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

3742 B67 linesdepth 5pulls 6 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 2 imports · 0 importers

nx_tool_run.nx nx_gate_verdict.nx nx_store_collision_check_gate.

imports: nx_tool_run.nxnx_gate_verdict.nx

imported by: nobody (leaf or entry point)

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

main g_row g_bytes g_ch g_run tr_run_capture sys_mmap nxa_die sys_write sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ sys_pipe2 sys_fork sys_close sys_dup3 sys_execve_clean sys_close_inherited sys_close_inherited_proc sys_openat_rd sys_mmap ↻ sys_getdents64 dirent_reclen sys_close ↻ sys_munmap sys_execve tr_exec_failed sys_write ↻ sys_exit ↻ sys_read sys_wait4

structs

none

consts

none

functions

8func 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
9func 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
10func 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
11func 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
12func 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
13func g_has(buf: *u8, n: i64, pat: *u8) -> i64
called by 1: main
27func g_run(path: *u8, out: *u8, ocap: i64, ol: *i64) -> i64
called by 1: main calls 1: tr_run_capture
36func main() -> i64