code wiki / _hdl_build / nx_cleanserve_resolve_gate.nx

nx_cleanserve_resolve_gate.nx

buildroot/runtime/_hdl_build/nx_cleanserve_resolve_gate.nx

3418 B35 linesdepth 23pulls 174 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_cleanserve_resolve_gate.nx -- KAT witness for the clean-serve last-resort resolve helpers before they reach the LIVE /clean route. csd_plan_url turns a sniff plan into the <video src>; a bug = a broken player the deploy health-check can't see. csd_looks_videoish gates the JS-VM off text pages. license_tier: ORIGINAL expect_exit:0

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_cleanserve_resolve.nx nx_cleanserve_resolve_gate.nx

imports: nx_syscalls.nxnx_cleanserve_resolve.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 csd_plan_url chk_str gslen gcw sys_write sys_write ↻ chk_int gcw ↻ gpn gcw ↻ sys_mmap ↻ sys_write ↻ csd_looks_videoish mjx_contains gslen ↻ gcw ↻ sys_exit gpn ↻

structs

none

consts

none

functions

7func gcw(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 4: gpnchk_intchk_strmain calls 1: sys_write
8func gpn(v: i64) -> i64 { var m: i64=v; if m==0 { gcw("0" as *u8); return 0 } let t: *u8=sys_mmap(24); var k: i64=0; while m>0 { t[k]=(48+(m%10)) as u8; m=m/10; k=k+1 } let o: *u8=sys_mmap(24); var i: i64=0; while i<k { o[i]=t[k-1-i]; i=i+1 } sys_write(1,o,k); return 0 }
called by 2: chk_intmain calls 3: gcwsys_mmapsys_write
9func gslen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n }
called by 2: chk_strmain
10func chk_int(name: *u8, got: i64, want: i64, f: *i64) -> i64 { gcw(name); gcw(" got=" as *u8); gpn(got); gcw(" want=" as *u8); gpn(want); if got==want { gcw(" PASS\n" as *u8) } else { gcw(" FAIL\n" as *u8); f[0]=f[0]+1 } return 0 }
called by 1: main calls 2: gcwgpn
11func chk_str(name: *u8, gb: *u8, gl: i64, want: *u8, f: *i64) -> i64
called by 1: main calls 3: gslengcwsys_write
18func main() -> i64