code wiki / _hdl_build / nx_cleanserve_resolve_gate.nx
nx_cleanserve_resolve_gate.nx
buildroot/runtime/_hdl_build/nx_cleanserve_resolve_gate.nx
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
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
structs
| none |
consts
| none |
functions
| 7 | func gcw(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 8 | func 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 } |
| 9 | func gslen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n } |
| 10 | func 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 } |
| 11 | func chk_str(name: *u8, gb: *u8, gl: i64, want: *u8, f: *i64) -> i64 |
| 18 | func main() -> i64 |