code wiki / _hdl_build / nx_sov_guard_gate.nx

nx_sov_guard_gate.nx

buildroot/runtime/_hdl_build/nx_sov_guard_gate.nx

2910 B47 linesdepth 4pulls 5 transitivereach 0 importersview sourcekind gate/prooftopic sov
docsdependenciesstructsconstsfunctions

about

nx_sov_guard_gate.nx -- SOVEREIGN gate for the no-new-tsv guard. T1 mixed dir (ok.tsv allowlisted, new.tsv NOT, notes.txt non-tsv) + allow=[ok.tsv] -> exactly 1 violation (proves: new tsv CAUGHT, allowlisted PASSED, non-tsv IGNORED) T2 clean dir (only ok.tsv) + allow=[ok.tsv] -> 0 violations (GREEN, neg-control) T3 LIAR-KILL: mixed dir + EMPTY allowlist -> 2 violations (the guard isn't silently passing) license_tier: ORIGINAL

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_sov_guard.nx nx_gate_verdict.nx nx_sov_guard_gate.nx

imports: nx_syscalls.nxnx_sov_guard.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 sys_mkdir gg_touch sys_openat_wr sys_close gg_write sys_openat_wr ↻ sys_write sys_close ↻ sg_scan sys_mmap sg_read sys_openat_rd sys_read sys_close ↻ sg_w sys_write ↻ sg_ends sg_slen sg_line_in sg_slen ↻ sys_close ↻ sg_wn nxi_out nxi_fd sys_mmap ↻ ccz_cat_num sys_write ↻ sys_munmap gg_uw sys_write ↻ sg_wn ↻ gv_ctr sys_mmap ↻ gv_verdict gv_puts sys_write ↻ gv_num sys_mmap ↻ sys_write ↻

structs

none

consts

none

functions

11func gg_uw(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
12func gg_touch(path: *u8) -> i64 { let fd: i64=sys_openat_wr(path, 0x1a4); if fd>=0 { sys_close(fd) } return 0 }
called by 1: main calls 2: sys_openat_wrsys_close
13func gg_write(path: *u8, s: *u8, len: i64) -> i64 { let fd: i64=sys_openat_wr(path, 0x1a4); if fd>=0 { sys_write(fd,s,len); sys_close(fd) } return 0 }
15func main(argc: i64, argv: *i64) -> i64