code wiki / _hdl_build / nx_gzip_lib_probe.nx

nx_gzip_lib_probe.nx

buildroot/runtime/_hdl_build/nx_gzip_lib_probe.nx

1807 B25 linesdepth 4pulls 4 transitivereach 0 importersview sourcekind probetopic gzip
docsdependenciesstructsconstsfunctions

about

nx_gzip_lib_probe.nx -- proves nx_gzip_lib.nx is IMPORTABLE and that gz_compress links and works. WHY THIS EXISTS: /api/build compiles its target as a PROGRAM, so a no-main lib cannot be built standalone -- "no artifact" from `build target=nx_gzip_lib` is therefore NOT evidence the lib is broken. The only honest test of an importable lib is to build a consumer of it. This is that consumer, and it is also the CONTROL that separates "my lib is bad" from "the build lane is stuck". ANTI-VACUITY: a probe that only checked rc=0 would pass if gz_compress returned garbage, so it asserts the RFC-1952 magic bytes AND that the output is genuinely smaller than the input. A stub returning 0, or copying the input through, cannot pass this.

dependencies 1 imports · 0 importers

nx_gzip_lib.nx nx_gzip_lib_probe.nx

imports: nx_gzip_lib.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main gz_compress 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 ↻ gz_deflate gz_putbits gz_flushbits sys_mmap ↻ gz_fill_len gz_fill_dist gz_hash3 gz_lencode gz_distcode gz_dh_lens sys_mmap ↻ gz_dh_pow2 gz_dh_canon sys_mmap ↻ gz_dh_clrle gz_dh_fill_clperm gz_dh_fixlen gz_puthuff gz_putbits ↻ gz_rev gz_fixed gz_crc32 gz_w

structs

none

consts

none

functions

11func main(argc: i64, argv: *i64) -> i64