nx_deflate_huffman_test.nx
buildroot/runtime/nx_deflate_huffman_test.nx
about
nx_deflate_huffman_test.nx -- regression smoke for the BTYPE=01
(static Huffman) and BTYPE=10 (dynamic Huffman) inflate paths.
SURFACED 2026-05-18: nx_deflate.nx self-reports
"CAPABILITY_COMPLETENESS: FULL -- all three BTYPE handlers
(stored, static Huffman, dynamic Huffman) implemented end-to-end"
but only BTYPE=00 (stored) was ever exercised by an existing smoke.
Real PNGs from gen-img use BTYPE=01/10 and crashed the substrate.
This test pins the Huffman paths with python-zlib ground-truth
byte sequences so the false-OK can't return.
Fixtures captured via:
python3 -c "import zlib; co = zlib.compressobj(level=zlib.Z_BEST_SPEED,
wbits=-zlib.MAX_WBITS, strategy=zlib.Z_FIXED);
print(co.compress(b'Hello, world!') + co.flush())"
dependencies 3 imports · 0 importers
imports: nx_syscalls.nxnx_runtime.nxnx_deflate.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
| none |
functions
| 21 | func main() -> nx_int |