code wiki / (root) / nx_adversarial_sov_gate.nx

nx_adversarial_sov_gate.nx

buildroot/runtime/nx_adversarial_sov_gate.nx

6284 B96 linesdepth 4pulls 5 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 3 imports · 0 importers

nx_adversarial_sov.nx nx_syscalls.nx nx_gate_verdict.nx nx_adversarial_sov_gate.nx

imports: nx_adversarial_sov.nxnx_syscalls.nxnx_gate_verdict.nx

imported by: nobody (leaf or entry point)

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

main gv_ctr 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 ↻ gv_head gv_puts 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

structs

none

consts

none

functions

10func 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 1: main calls 1: sys_write
11func gn(v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
23func 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
27func ag_eq(a: i64, b: i64) -> i64 { if a == b { return 1 } return 0 }
called by 1: main
43func main() -> i64