code wiki / _hdl_build / nx_clobber_guard_gate.nx
nx_clobber_guard_gate.nx
buildroot/runtime/_hdl_build/nx_clobber_guard_gate.nx
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
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
structs
| none |
consts
| none |
functions
| 10 | func 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 } |
| 11 | func 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 } |
| 12 | func g_wf(path: *u8, s: *u8) -> i64 |
| 22 | func g_has(buf: *u8, n: i64, pat: *u8) -> i64 called by 1: main |
| 37 | func g_run(pa: *u8, pb: *u8, out: *u8, ocap: i64, ol: *i64) -> i64 |
| 46 | func main() -> i64 |