code wiki / _hdl_build / nx_deflate_enc_gate.nx
nx_deflate_enc_gate.nx
buildroot/runtime/_hdl_build/nx_deflate_enc_gate.nx
about
nx_deflate_enc_gate.nx -- prove the sovereign DEFLATE compressor round-trips against our own inflater.
T1 compresses (output smaller than input on compressible data)
T2 our nx_deflate.nx INFLATE decodes it with no error
T3 the decoded bytes are BYTE-IDENTICAL to the original (correctness)
T4 a second dataset (image-like: zero runs + repeats) also round-trips + compresses
license_tier: ORIGINAL expect_exit: 0
dependencies 3 imports · 0 importers
imports: nx_syscalls.nxnx_deflate_enc.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
| 11 | func hw(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 12 | func pn(v: i64) -> i64 |
| 23 | func roundtrip(src: *u8, slen: i64, label: *u8) -> i64 |
| 44 | func main() -> i64 |