code wiki / (root) / nx_img_core_gate.nx

nx_img_core_gate.nx

buildroot/runtime/nx_img_core_gate.nx

3119 B66 linesdepth 3pulls 4 transitivereach 0 importersview sourcekind gate/prooftopic img
docsdependenciesstructsconstsfunctions

about

nx_img_core_gate.nx -- proves R1 (bytes -> pixels): decode a P2 (ASCII) PGM and a P5 (binary) PGM into the pixel buffer, verify dimensions + individual pixels + histogram + invert. Exit 0 iff all pass. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_gate.nx nx_img_core.nx nx_img_core_gate.nx

imports: nx_gate.nxnx_img_core.nx

imported by: nobody (leaf or entry point)

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

main img_pgm_decode img_parse_header sys_mmap img_next_uint img_skip_ws img_is_ws sys_mmap ↻ img_next_uint ↻ chk gw sys_write gn sys_write ↻ sys_mmap ↻ img_get img_histogram img_invert gw ↻ gn ↻

structs

none

consts

none

functions

6func chk(name: *u8, got: i64, want: i64, st: *i64) -> i64
called by 1: main calls 2: gwgn
12func main() -> i64