code wiki / _hdl_build / nx_clobber_guard_gate.nx

nx_clobber_guard_gate.nx

buildroot/runtime/_hdl_build/nx_clobber_guard_gate.nx

3635 B73 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_clobber_guard_gate.nx -- gate for the acl F744 guard. Fixture-based + DETERMINISTIC, with a negative control (the scale-law/liar-kill discipline): captures the guard's stdout via tr_run_capture (same proven idiom as nx_drift_watch) and substring-matches the verdict -- avoids exit-status decode. T1 identical surfaces -> verdict=CONVERGED (positive) T2 different surfaces -> verdict=DIVERGED (NEGATIVE CONTROL: a real clobber must be caught) T3 absent surface -> verdict=ABSENT (fail-closed on a missing copy) Runs _offc/nx_clobber_guard.elf (staged before this gate). license_tier: ORIGINAL expect_exit: 0

dependencies 1 imports · 0 importers

nx_tool_run.nx nx_clobber_guard_gate.nx

imports: nx_tool_run.nx

imported by: nobody (leaf or entry point)

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

main g_wf sys_openat_wr g_run tr_run_capture sys_mmap sys_pipe2 sys_fork sys_close sys_dup3 sys_execve_clean sys_close ↻ sys_execve sys_exit sys_read sys_wait4 wait_exit_code g_has g_w g_wn g_w ↻

structs

none

consts

none

functions

10func g_w(fd: i64, s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(fd, s, n); return 0 }
called by 2: g_wnmain
11func g_wn(fd: i64, v: i64) -> i64 { var m: i64 = v; if m < 0 { g_w(fd, "-" as *u8); m = 0 - m } let t: *u8 = sys_mmap(28); var k: i64 = 0; if m == 0 { t[0] = 48 as u8; k = 1 } while m > 0 { t[k] = (48 + (m % 10)) as u8; m = m / 10; k = k + 1 } let o: *u8 = sys_mmap(28); var i: i64 = 0; while i < k { o[i] = t[k - 1 - i]; i = i + 1 } sys_write(fd, o, k); return 0 }
called by 1: main calls 1: g_w
12func g_wf(path: *u8, s: *u8) -> i64
called by 1: main calls 1: sys_openat_wr
22func g_has(buf: *u8, n: i64, pat: *u8) -> i64
called by 1: main
37func g_run(pa: *u8, pb: *u8, out: *u8, ocap: i64, ol: *i64) -> i64
called by 1: main calls 1: tr_run_capture
46func main() -> i64