code wiki / _hdl_build / nx_brand_spacescale_gate.nx

nx_brand_spacescale_gate.nx

buildroot/runtime/_hdl_build/nx_brand_spacescale_gate.nx

3278 B62 linesdepth 5pulls 9 transitivereach 0 importersview sourcekind gate/prooftopic brand
docsdependenciesstructsconstsfunctions

about

nx_brand_spacescale_gate.nx -- the spacing-scale generator yields an on-grid, monotonic ramp that passes the R2 spacing guard and feeds the SSOT. 100% sovereign. expect_exit: 0

dependencies 5 imports · 0 importers

nx_syscalls.nx nx_brand_spacescale.nx nx_brand_guard.nx nx_brand_tokens.nx nx_gate_verdict.nx nx_brand_spacescale_gate.nx

imports: nx_syscalls.nxnx_brand_spacescale.nxnx_brand_guard.nxnx_brand_tokens.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 sys_mmap gw sys_write ss_emit_scale ss_emit_one bt_app ss_put_int sys_mmap ↻ sys_write ↻ g_has bt_find bt_len t_row gw ↻ bg_space_grid_ok sys_mmap ↻ bt_lookup bt_len ↻ sys_mmap ↻ bt_slice_eq bg_num_milli bt_emit_root_buf bt_app ↻ sys_mmap ↻ bt_slice_eq ↻ bt_ident_safe bt_value_safe bt_find ↻ bt_app_n gn sys_mmap ↻ sys_write ↻ gv_ctr sys_mmap ↻ gv_verdict gv_puts sys_write ↻ gv_num sys_mmap ↻

structs

none

consts

none

functions

9func gw(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: t_rowmain calls 1: sys_write
10func gn(v: i64) -> i64 { let bb: *u8=sys_mmap(28); var m: i64=v; if m<0{m=0-m;sys_write(1,"-" as *u8,1)} let t: *u8=sys_mmap(28); var k: i64=0; if m==0{t[0]=48 as u8;k=1} while m>0{t[k]=(48+(m%10)) as u8;m=m/10;k=k+1} var i: i64=0; while i<k{bb[i]=t[k-1-i];i=i+1} sys_write(1,bb,k); return 0 }
called by 1: main calls 2: sys_mmapsys_write
11func t_row(name: *u8, ok: i64, tot: *i64) -> i64
called by 1: main calls 1: gw
15func g_has(s: *u8, n: i64, lit: *u8) -> i64 { if bt_find(s, n, lit, bt_len(lit)) >= 0 { return 1 } return 0 }
called by 1: main calls 2: bt_findbt_len
17func main() -> i64