code wiki / (root) / nx_adversarial_sov_gate.nx

nx_adversarial_sov_gate.nx

buildroot/runtime/nx_adversarial_sov_gate.nx

3462 B59 linesdepth 4pulls 4 transitivereach 0 importersview sourcekind gate/prooftopic adversarial
docsdependenciesstructsconstsfunctions

about

nx_adversarial_sov_gate.nx -- proves the ADVERSARIAL-SUITE store flip (nx_adversarial_sov) is byte-exact + has teeth. GREEN (exit 0) only when: migrate seeds knowledge/store/adversarial byte-exact from the .conf (ver==tot, tot>0), the store round-trips (ag_count==tot), the reader reconstructs every gate (ag_read_all yields tot newline rows with the known anchor gate first), AND the neg-controls hold (no phantom row past the end; the byte comparison discriminates right-vs-wrong). Run standalone (CWD=nxc2). license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_adversarial_sov.nx nx_syscalls.nx nx_adversarial_sov_gate.nx

imports: nx_adversarial_sov.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 ag_migrate sys_mmap ↻ ss_readall sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close ss_begin ss_begin_cap sys_mmap ↻ ag_key sys_mmap ↻ ss_add ss_add2 ss_w32 ss_len ss_commit ss_segid_ok sys_mmap ↻ ss_cat ss_catn sys_mmap ↻ sys_write ↻ ss_write_seg ss_segid_ok ↻ sys_mmap ↻ ss_cat ↻ ss_catn ↻ sys_write ↻ ss_segname ss_cat ↻ ss_catn ↻ ss_writefile sys_openat_wr sys_write ↻

structs

none

consts

none

functions

9func 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: gredmain calls 1: sys_write
10func gn(v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
16func gred(msg: *u8) -> i64 { gp(" RED: " as *u8); gp(msg); gp("\n" as *u8); sys_exit(1); return 1 }
called by 1: main calls 2: gpsys_exit
19func gstreq(a: *u8, b: *u8) -> i64 { var i: i64=0; while a[i]!=(0 as u8){ if a[i]!=b[i]{return 0} i=i+1 } if b[i]!=(0 as u8){return 0} return 1 }
called by 1: main
21func main() -> i64