code wiki / _hdl_build / nx_govern_sweep_gate.nx
nx_govern_sweep_gate.nx
buildroot/runtime/_hdl_build/nx_govern_sweep_gate.nx
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
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
| 7 | 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 } |
| 8 | 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 } |
| 9 | func 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 |
| 10 | func g_has(buf: *u8, n: i64, pat: *u8) -> i64 called by 1: main |
| 24 | func g_run(path: *u8, thr: *u8, out: *u8, ocap: i64, ol: *i64) -> i64 |
| 33 | func main() -> i64 |