nx_memory_gate.nx
buildroot/runtime/nx_memory_gate.nx
about
nx_memory_gate.nx -- gates the consolidated memory tool on a REAL fixture seg-store (authored via the
canonical ss_begin/ss_add/ss_commit + ss_next_segid): latest-version get, absent vs TOMBSTONED
discrimination, version-history count, registry-index readback, store discovery + live segment count.
Runner must clean /tmp/memgate first. Exit 0 only on all-PASS. license_tier: ORIGINAL expect_exit: 0
dependencies 1 imports · 0 importers
imports: nx_memory_lib.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
| 7 | const GATE_CHECKS: i64 = 7 |
| 8 | const DIR_MODE: i64 = 0x1ed // 0755 |
| 9 | const V2_LEN: i64 = 2 // len("v2") -- the LATEST k1 value |
| 10 | const HIST_N: i64 = 2 // k1 versions authored |
| 11 | const IDX_LEN: i64 = 6 // len("k1\nk2\n") |
| 12 | const FIX_SEGS: i64 = 4 // commits authored below |
| 13 | const TOMB_KIND: i64 = 2 // seg-store tombstone record kind |
functions
| 15 | func mg_check(name: *u8, ok: i64, pass: *i64) -> i64 |
| 20 | func mg_commit1(prefix: *u8, key: *u8, val: *u8, kind: i64) -> i64 |
| 26 | func main(argc: i64, argv: *i64) -> i64 |