code wiki / _hdl_build / nx_store_collision_check_gate.nx

nx_store_collision_check_gate.nx

buildroot/runtime/_hdl_build/nx_store_collision_check_gate.nx

3295 B61 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind gate/prooftopic store
docsdependenciesstructsconstsfunctions

about

nx_store_collision_check_gate.nx -- gate for acl F745. Fixtures built with explicit tab(9)/nl(10) bytes (NishiLang string literals don't carry \t). Captures stdout via tr_run_capture + substring matches the verdict. T1 reused id -> COLLISION (positive) ; T2 unique ids -> CLEAN (NEG-CONTROL). Runs _offc/nx_store_collision_check.elf (staged first). license_tier: ORIGINAL expect_exit: 0

dependencies 1 imports · 0 importers

nx_tool_run.nx nx_store_collision_check_gate.

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_row g_bytes g_ch 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_bytes(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 1: g_row
10func g_ch(fd: i64, c: i64) -> i64 { let b: *u8 = sys_mmap(2); b[0] = c as u8; sys_write(fd, b, 1); return 0 }
called by 1: g_row
11func g_row(fd: i64, id: *u8, val: *u8) -> i64 { g_bytes(fd, id); g_ch(fd, 9); g_bytes(fd, val); g_ch(fd, 10); return 0 }
called by 1: main calls 2: g_bytesg_ch
12func g_has(buf: *u8, n: i64, pat: *u8) -> i64
called by 1: main
26func g_run(path: *u8, out: *u8, ocap: i64, ol: *i64) -> i64
called by 1: main calls 1: tr_run_capture
35func main() -> i64