code wiki / (root) / nx_integral_gate.nx

nx_integral_gate.nx

buildroot/runtime/nx_integral_gate.nx

3581 B97 linesdepth 6pulls 7 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_integral_gate.nx -- REFEREE for R-FACE-0 (nx_integral). Fills an 8x6 grayscale image with a deterministic varied pattern, builds the SAT, and checks nx_integral_rect_sum against a BRUTE-FORCE pixel sum for a range of rectangles (full frame, interior sub-rect, single pixel, the four edges/corners). Every pair PRINTED. Exit 0 GREEN / 1 RED. Sovereign: syscalls + nx_image + nx_integral. license_tier: ORIGINAL

dependencies 3 imports · 0 importers

syscalls.nx nx_image.nx nx_integral.nx nx_integral_gate.nx

imports: syscalls.nxnx_image.nxnx_integral.nx

imported by: nobody (leaf or entry point)

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

main sys_openat_append gp nx_image_alloc sys_mmap nx_image_set nx_integral_build nx_image_get nx_integral_rect_sum brute nx_image_get ↻ gn

structs

none

consts

11const W: i64 = 8
12const H: i64 = 6

functions

14func gp(logfd: i64, s: *u8) -> i64
called by 1: main
21func gn(logfd: i64, v: i64) -> i64
called by 1: main
36func brute(img: *Image, x0: i64, y0: i64, x1: i64, y1: i64) -> i64
called by 1: main calls 1: nx_image_get
47func main() -> i64