code wiki / (root) / nx_deflate_byte_diff_test.nx

nx_deflate_byte_diff_test.nx

buildroot/runtime/nx_deflate_byte_diff_test.nx

3692 B113 linesdepth 6pulls 6 transitivereach 0 importersview sourcekind gate/prooftopic deflate
docsdependenciesstructsconstsfunctions

about

nx_deflate_byte_diff_test.nx -- byte-by-byte compare nx_deflate output against the EXPECTED 7550-byte raw bytes for the 50x50 PNG case. Returns 0 on full byte-match. On mismatch, returns 1 + (mismatch_index % 250) so we can localize which region of the output diverges. (Exit codes are mod 256, so for indices >= 250 we shift modulus; first call gives the band.)

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_deflate.nx nx_deflate_byte_diff_test.nx

imports: nx_syscalls.nxnx_deflate.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 ↻ nx_deflate_inflate sys_mmap ↻ nx_bitstream_alloc sys_mmap ↻ _deflate_inflate_block nx_bitstream_read_lsb nx_bitstream_bits_remainin _bs_peek_byte nx_bitstream_byte_align nx_bitstream_read_byte_ali nx_bitstream_byte_align ↻ _deflate_build_static_litl sys_mmap ↻ nx_huffman_build sys_mmap ↻ _deflate_build_static_dist sys_mmap ↻ nx_huffman_build ↻ _deflate_decode_huffman_bl nx_huffman_decode_lsb nx_bitstream_read_lsb ↻ _deflate_length_base _deflate_length_extra nx_bitstream_read_lsb ↻

structs

none

consts

none

functions

12func main() -> i64