code wiki / _hdl_build / nx_sts_bulkload_gate.nx

nx_sts_bulkload_gate.nx

buildroot/runtime/_hdl_build/nx_sts_bulkload_gate.nx

5487 B109 linesdepth 5pulls 6 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_sts_bulkload_gate.nx -- GATE for the seq356 sts_load bulk path (5 teeth incl an anti-vacuity negative). ORACLE = sts_load_slow (the verbatim pre-fix body): the new open-once path must be BYTE-IDENTICAL to the old per-row path on every plane shape. No forks; imports the lib directly. T1 single-segment plane identical + exact rows | T2 superseded plane (re-seed) identical AND equals the NEWEST snapshot | T3 shrink plane (5 rows -> 3) identical, stale q:3/q:4 invisible | T4 absent plane -> both 0 | T5 anti-vacuity: newest snapshot differs from the OLD snapshot (proves the byte-compare tooth can fail). Mutation (manual): flip ss_hget's newest-first walk -> T2/T3 RED. Verdict exit 0 iff 5/5. license_tier: ORIGINAL No hw writes (Rule 26).

dependencies 3 imports · 0 importers

nx_store_seed_lib.nx nx_seg_store.nx nx_syscalls.nx nx_sts_bulkload_gate.nx

imports: nx_store_seed_lib.nxnx_seg_store.nxnx_syscalls.nx

imported by: nobody (leaf or entry point)

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

main sys_mmap sts_seed ss_begin_cap sys_mmap ↻ sts_mm sys_mmap ↻ sts_werr sys_write sys_exit sts_rowkey ss_catn sys_mmap ↻ ss_add ss_add2 ss_w32 ss_len ss_catn ↻ ss_commit ss_segid_ok sys_mmap ↻ ss_cat ss_catn ↻ sys_write ↻ ss_write_seg ss_segid_ok ↻ sys_mmap ↻ ss_cat ↻ ss_catn ↻ sys_write ↻ ss_segname ss_cat ↻ ss_catn ↻ ss_writefile sys_openat_wr sys_write ↻ sys_close sys_fsync sys_renameat ss_build_keys

structs

none

consts

14const BG_CAP: i64 = 65536

functions

16func bg_w(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 }
called by 1: main calls 1: sys_write
17func bg_len(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
called by 1: main
19func bg_eq(a: *u8, an: i64, b: *u8, bn: i64) -> i64
called by 1: main
26func main(argc: i64, argv: *i64) -> i64