code wiki / _hdl_build / nx_live_xlate_call_gate.nx

nx_live_xlate_call_gate.nx

buildroot/runtime/_hdl_build/nx_live_xlate_call_gate.nx

5929 B111 linesdepth 5pulls 13 transitivereach 0 importersview sourcekind gate/prooftopic live
docsdependenciesstructsconstsfunctions

about

nx_live_xlate_call_gate.nx -- proves the live-translated call for "a girl in Belarus (RU) talking to a boy in Texas (EN)", NO fake green. (1) the boy says "hello friend" -> the GIRL's screen shows it in RUSSIAN "привет друг" (byte-exact) rendered in NATIVE Cyrillic; (2) the girl says "спасибо любовь" -> the BOY's screen shows "thanks love" in Latin; (3) neg-control: same-locale = NO translation (verbatim). Eyeball -> knowledge/nx_live_xlate_call.png (girl's screen top, boy's screen bottom). expect_exit: 0 license_tier: ORIGINAL

dependencies 10 imports · 0 importers

nx_syscalls.nx nx_css_color_decode.nx nx_paint_solid_rect.nx nx_font8x8.nx nx_font_cyrillic8.nx nx_utf8.nx nx_caption_render_uni.nx nx_mt_ruen.nx nx_live_xlate_call.nx nx_png_write.nx nx_live_xlate_call_gate.nx

imports: nx_syscalls.nxnx_css_color_decode.nxnx_paint_solid_rect.nxnx_font8x8.nxnx_font_cyrillic8.nxnx_utf8.nxnx_caption_render_uni.nxnx_mt_ruen.nxnx_live_xlate_call.nxnx_png_write.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main rg sys_write sys_mmap lx_caption_for_listener nx_ruen_translate sys_mmap ↻ mr_is_tok mr_appb mr_ru_for_en mr_eq_ci mr_lc mr_en_for_ru mr_eq_exact mr_app slen sys_write ↻ bcmp mkfb sys_mmap ↻ nx_framebuffer_init nx_framebuffer_clear nx_paint_solid_rect nx_caption_render_uni nx_paint_solid_rect ↻ font8x8_table sys_mmap ↻ fg cyr8_table sys_mmap ↻ cf cr_cp_count sys_mmap ↻ utf8_decode_one sys_mmap ↻ utf8_decode_one ↻ cr_glyph_ptr latinext8_glyph lx_base font8x8_table ↻

structs

none

consts

none

functions

17func rg(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 }
called by 1: main calls 1: sys_write
18func rgn(v: i64) -> i64
called by 1: main calls 2: sys_writesys_mmap
27func slen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n }
called by 1: main
29func bcmp(a: *u8, alen: i64, b: *u8) -> i64
called by 1: main
35func mkfb(w: i64, h: i64) -> *Framebuffer
43func main() -> i64