code wiki / _hdl_build / nx_govern_sweep_gate.nx

nx_govern_sweep_gate.nx

buildroot/runtime/_hdl_build/nx_govern_sweep_gate.nx

3252 B63 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_govern_sweep_gate.nx -- gate for gov F750. Fixtures built with explicit newline bytes. T1 crash-loop log (25 respawns, threshold 20) -> UNGOVERNED (positive: catches ungoverned churn) T2 healthy log (3 respawns) -> GOVERNED (NEGATIVE CONTROL) Captures stdout via tr_run_capture + substring-matches the verdict. license_tier: ORIGINAL expect_exit: 0

dependencies 1 imports · 0 importers

nx_tool_run.nx nx_govern_sweep_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 sys_openat_wr g_line 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

7func 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
8func 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
9func g_line(fd: i64, s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(fd, s, n); let nl: *u8 = sys_mmap(2); nl[0] = 10 as u8; sys_write(fd, nl, 1); return 0 }
called by 1: main
10func g_has(buf: *u8, n: i64, pat: *u8) -> i64
called by 1: main
24func g_run(path: *u8, thr: *u8, out: *u8, ocap: i64, ol: *i64) -> i64
called by 1: main calls 1: tr_run_capture
33func main() -> i64