nx_integral_gate.nx
buildroot/runtime/nx_integral_gate.nx
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
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
structs
| none |
consts
| 11 | const W: i64 = 8 |
| 12 | const H: i64 = 6 |
functions
| 14 | func gp(logfd: i64, s: *u8) -> i64 called by 1: main |
| 21 | func gn(logfd: i64, v: i64) -> i64 called by 1: main |
| 36 | func brute(img: *Image, x0: i64, y0: i64, x1: i64, y1: i64) -> i64 |
| 47 | func main() -> i64 |