code wiki / (root) / nx_zstd_seqtab_gate.nx

nx_zstd_seqtab_gate.nx

buildroot/runtime/nx_zstd_seqtab_gate.nx

7829 B190 linesdepth 4pulls 4 transitivereach 0 importersview sourcekind gate/prooftopic zstd
docsdependenciesstructsconstsfunctions

about

nx_zstd_seqtab_gate.nx -- proves the predefined sequence distributions. These are transcribed spec data, so the gate's job is to catch a TYPO. T1 checks the totals directly: 64, 64, 32. A single mistyped digit almost always breaks the sum, which makes this a real transcription check rather than a restatement of the source. T2 checks that all three actually BUILD. nx_fse_build_dtable refuses unless the counts tile the table exactly and every cell receives a symbol, so a successful build is independent evidence on top of the sum. T3 pins that a -1 entry is a REAL low-probability symbol, not a terminator: it must appear in the built table and it must sit at the TOP, which is where the spread algorithm places low-probability symbols. Dropping those entries is the obvious misreading -- they look like end markers. T4 spot-checks distinctive values that a shifted transcription would move: the literal-length 3 at index 25 sitting alone in a run of 2s, and the offset table's 2,2,2 at indices 6-8 surrounded by 1s. license_tier: ORIGINAL

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_zstd_fse.nx nx_zstd_seqtab.nx nx_zstd_seqtab_gate.nx

imports: nx_syscalls.nxnx_zstd_fse.nxnx_zstd_seqtab.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 nx_zstd_seqtab_ll nx_zstd_seqtab_total nx_zstd_seqtab_ml nx_zstd_seqtab_of nx_zstd_seqtab_ll_table sys_mmap ↻ nx_zstd_seqtab_ll ↻ nx_fse_build_dtable nx_fse_step sys_mmap ↻ nx_fse_highbit nx_zstd_seqtab_ml_table sys_mmap ↻ nx_zstd_seqtab_ml ↻ nx_fse_build_dtable ↻ nx_zstd_seqtab_of_table sys_mmap ↻ nx_zstd_seqtab_of ↻ nx_fse_build_dtable ↻ nx_fse_cell_symbol nx_fse_build_dtable ↻ g_puts sys_write sys_exit g_putn sys_mmap ↻ g_puts ↻ sys_write ↻

structs

none

consts

none

functions

27func g_puts(s: *u8) -> i64
called by 2: g_putnmain calls 1: sys_write
34func g_putn(v: i64) -> i64
called by 1: main calls 3: sys_mmapg_putssys_write
48func main() -> i64