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
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
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_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 |
| 10 | func 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 |
| 11 | func 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 } |
| 12 | func g_has(buf: *u8, n: i64, pat: *u8) -> i64 called by 1: main |
| 26 | func g_run(path: *u8, out: *u8, ocap: i64, ol: *i64) -> i64 |
| 35 | func main() -> i64 |