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 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 ↻ _deflate_distance_base _deflate_distance_extra _deflate_copy_overlap sys_mmap ↻ _deflate_build_dynamic_tre nx_bitstream_read_lsb ↻ sys_mmap ↻ _deflate_cl_order nx_huffman_build ↻ nx_huffman_decode_lsb ↻ _deflate_bytes_consumed

structs

none

consts

none

functions

12func main() -> i64