code wiki / (root) / nx_cap_census_gate.nx

nx_cap_census_gate.nx

buildroot/runtime/nx_cap_census_gate.nx

4857 B69 linesdepth 5pulls 8 transitivereach 0 importersview sourcekind gate/prooftopic cap
docsdependenciesstructsconstsfunctions

about

nx_cap_census_gate.nx -- proves the unified capability driver: (1) LIAR-KILL grounding cannot be fooled, (2) the dynamic surface registry dedups labels, (3) pct math, and (4) the WHOLE pipeline reproduces the known-good torrent number end-to-end (score 483, HAVE 26 / PARTIAL 7 / GAP 28, 0 ungrounded) -- so a registry edit that silently changes the score is caught here. Imports the driver (main stripped).

dependencies 2 imports · 0 importers

nx_cap_census.nx nx_syscalls.nx nx_cap_census_gate.nx

imports: nx_cap_census.nxnx_syscalls.nx

imported by: nobody (leaf or entry point)

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

main gp sys_write sys_mmap nxa_die sys_write ↻ sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ chk gp ↻ gnum sys_write ↻ sys_mmap ↻ cap_contains cap_grounded cap_streq sys_openat_rd sys_read sys_close cap_contains ↻ cap_surf_reg cap_streq ↻ sys_mmap ↻ cap_pct cap_census_one sys_mmap ↻ cap_conf_path cap_app cap_store_path cap_app ↻

structs

none

consts

none

functions

8func gp(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: chkmain calls 1: sys_write
9func gnum(v: i64) -> i64 { if v==0 { sys_write(1,"0" as *u8,1); return 0 } var m: i64=v; if m<0 { sys_write(1,"-" as *u8,1); m=0-m } let t: *u8=sys_mmap(28); var k: i64=0; while m>0 { t[k]=(48+(m%10)) as u8; m=m/10; k=k+1 } while k>0 { k=k-1; sys_write(1,(((t as i64)+k) as *u8),1) } return 0 }
called by 2: chkmain calls 2: sys_writesys_mmap
10func chk(name: *u8, got: i64, want: i64, pass: *i64, fail: *i64) -> i64
called by 1: main calls 2: gpgnum
16func main() -> i64