code wiki / _hdl_build / nx_sts_bulkload_gate.nx

nx_sts_bulkload_gate.nx

buildroot/runtime/_hdl_build/nx_sts_bulkload_gate.nx

5899 B111 linesdepth 5pulls 7 transitivereach 0 importersview sourcekind gate/prooftopic sts
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 4 imports · 0 importers

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

imports: nx_store_seed_lib.nxnx_seg_store.nxnx_syscalls.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 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 ↻ sts_seed sts_pfxhash 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_cas ss_segid_ok ss_commit_body ss_segid_ok ↻ sys_mmap ↻ ss_cat ss_catn ↻

structs

none

consts

15const BG_CAP: i64 = 65536

functions

17func 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
18func bg_len(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
called by 1: main
20func bg_eq(a: *u8, an: i64, b: *u8, bn: i64) -> i64
called by 1: main
27func main(argc: i64, argv: *i64) -> i64