code wiki / _hdl_build / nx_viz_shape_gate.nx

nx_viz_shape_gate.nx

buildroot/runtime/_hdl_build/nx_viz_shape_gate.nx

2882 B61 linesdepth 4pulls 5 transitivereach 0 importersview sourcekind gate/prooftopic viz
docsdependenciesstructsconstsfunctions

about

nx_viz_shape_gate.nx -- REFEREE for the shapes layer (KAT for the d3-shape/d3-path equivalent path strings). T1 line -> "M 0 0 L 10 5 L 20 0" T2 area -> "M 0 5 L 10 8 L 10 0 L 0 0 Z" (line across top, down to baseline, back, closed) GREEN iff T1+T2. Sovereign: nx_viz_shape + nx_syscalls. license_tier: ORIGINAL

dependencies 3 imports · 0 importers

nx_viz_shape.nx nx_syscalls.nx nx_gate_verdict.nx nx_viz_shape_gate.nx

imports: nx_viz_shape.nxnx_syscalls.nxnx_gate_verdict.nx

imported by: nobody (leaf or entry point)

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

main g_w sys_write sys_mmap vs_line vsh_lit vsh_n sys_mmap ↻ g_streq g_row g_w ↻ vs_area vs_line ↻ vsh_lit ↻ vsh_n ↻ vs_arc vs_cos vs_sin vs_sin ↻ vsh_lit ↻ vsh_n ↻ vs_symbol vsh_lit ↻ vsh_n ↻ vs_link vsh_lit ↻ vsh_n ↻ gv_ctr sys_mmap ↻ gv_verdict gv_puts sys_write ↻ gv_num sys_mmap ↻ sys_write ↻ sys_munmap gv_journal sys_openat_append sys_mmap ↻ gv_catn

structs

none

consts

none

functions

9func g_w(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 2: g_rowmain calls 1: sys_write
10func g_streq(a: *u8, b: *u8) -> i64 { var i: i64 = 0; while 1 == 1 { if a[i] != b[i] { return 0 } if a[i] == (0 as u8) { return 1 } i = i + 1 } return 1 }
called by 1: main
11func g_row(name: *u8, ok: i64) -> i64
called by 1: main calls 1: g_w
18func main() -> i64