code wiki / _hdl_build / nx_infra_control_test.nx

nx_infra_control_test.nx

buildroot/runtime/_hdl_build/nx_infra_control_test.nx

4374 B61 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind gate/prooftopic infra
docsdependenciesstructsconstsfunctions

about

nx_infra_control_test.nx -- INFRACTLGATE: proves the sovereign infra-host control posture model over the honest current census (NAS / router / west-server) AND catches false-sovereign lies (liar-kill). Honest current state: all three still NAME-TRUSTED + vendor/OpenSSH-driven => 3 gaps, 0 violations, sovereign-coverage 0permil (no host on a bits-up control path yet). GREEN iff the census is CONSISTENT (no false-sovereign claims), the tampers (claiming sovereign control over a vendor/OpenSSH path) are CAUGHT, and the real sovereign end-state is NOT flagged. NO fabricated exceed. exit 0 on 7/7.

dependencies 2 imports · 0 importers

nx_infra_control.nx nx_syscalls.nx nx_infra_control_test.nx

imports: nx_infra_control.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 ig_puts sys_write sys_mmap ic_false_sovereign ic_gap ic_is_sovereign ic_coverage_permil ig_num sys_mmap ↻ sys_write ↻ ic_posture_clean ic_false_sovereign ↻ sys_exit

structs

none

consts

none

functions

10func ig_puts(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 1: main calls 1: sys_write
11func ig_num(v: i64) -> i64 { let b: *u8 = sys_mmap(28); var m: i64=v; if m<0 {m=0-m}; let t: *u8 = sys_mmap(28); var k: i64=0; if m==0 {t[0]=48;k=1}; while m>0 {t[k]=48+(m%10); m=m/10; k=k+1}; var i: i64=0; while i<k {b[i]=t[k-1-i]; i=i+1}; sys_write(1,b,k); return 0 }
called by 1: main calls 2: sys_mmapsys_write
13func main() -> i64