code wiki / (root) / nx_img_segment_gate.nx

nx_img_segment_gate.nx

buildroot/runtime/nx_img_segment_gate.nx

3010 B59 linesdepth 5pulls 6 transitivereach 0 importersview sourcekind gate/prooftopic img
docsdependenciesstructsconstsfunctions

about

nx_img_segment_gate.nx -- proves R3 (connected-component segmentation) on a 5x5 binary image with TWO separate ink blobs: a 2x2 block top-left and a vertical pair on the right edge. Verifies component count, per-component bounding boxes, and a couple of label assignments. Exit 0 iff all pass. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_gate.nx nx_img_segment.nx nx_img_segment_gate.nx

imports: nx_gate.nxnx_img_segment.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 ↻ seg_components sys_mmap ↻ seg_box_minx seg_box_miny seg_box_maxx seg_box_maxy seg_box_width seg_box_height gw ↻ gn ↻

structs

none

consts

none

functions

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