code wiki / _hdl_build / nx_im4_compact_gate.nx
nx_im4_compact_gate.nx
buildroot/runtime/_hdl_build/nx_im4_compact_gate.nx
about
nx_im4_compact_gate.nx -- PROVES the EXISTING IM4 compaction (nx_seg_store ss_compact_cap) at scale: it folds a
store with MORE than the 256-segment ss_manifest cap into ONE merged segment, with ZERO data loss + history
preserved (never-delete) + crash-safe-by-construction (fail-before-swap). Verify-don't-rebuild: IM4 already
exists; this MEASURES it (no-wave) so the s-class-exceed "scale" axis is graded honestly (compaction-backed
PARITY, not the BEHIND I overstated). Seeds 300 single-record segments (distinct segids), compacts, checks
segment-count 300->1, two values intact, and the archive holding all 300 retired names. license_tier: ORIGINAL
dependencies 3 imports · 0 importers
imports: nx_seg_store.nxnx_g_puts_lib.nxnx_syscalls.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
| 11 | const G_PFX: *u8 = "/tmp/im4gate-" as *u8 |
| 12 | const G_N: i64 = 300 |
functions
| 14 | func g_putn(v: i64) -> i64 |
| 24 | func g_dig(v: i64, out: *u8) -> i64 |
| 32 | func g_key(c: i64, i: i64, out: *u8) -> i64 |
| 38 | func g_eq(a: *u8, an: i64, b: *u8, bn: i64) -> i64 called by 1: main |
| 43 | func main() -> i64 |