code wiki / _hdl_build / nx_natstat_hardcases.nx

nx_natstat_hardcases.nx

buildroot/runtime/_hdl_build/nx_natstat_hardcases.nx

5350 B90 linesdepth 3pulls 5 transitivereach 0 importersview sourcekind tooltopic natstat
docsdependenciesstructsconstsfunctions

about

nx_natstat_hardcases.nx -- HARDEN the metric: axes 3 (colour) + 4 (ai-fingerprint) passed BOTH the target and our render, so they were unproven guards. Generate synthetic images with KNOWN ground truth and assert the guards BITE (drop below the pass band). No network, no decode -- we author the pixels, so the truth is certain. GREEN = every guard fired where it should + stayed quiet where it shouldn't. expect_exit: 0

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_natstat.nx nx_natstat_hardcases.nx

imports: nx_syscalls.nxnx_natstat.nx

imported by: nobody (leaf or entry point)

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

main 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 ↻ px hsh ns_colorful ns_isqrt vm_isqrt ns_band w sys_write ↻ pn sys_mmap ↻ sys_write ↻ ns_ai_periodicity ns_lum ns_abs

structs

none

consts

7const K_MAGIC_65536: i64 = 65536
8const K_MAGIC_374761393: i64 = 374761393
9const K_MAGIC_668265263: i64 = 668265263
10const K_MAGIC_8192: i64 = 8192
11const K_MAGIC_1274126177: i64 = 1274126177

functions

13func w(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 }
called by 1: main calls 1: sys_write
14func pn(v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
25func px(r: i64, g: i64, b: i64) -> i64 { return r + g * 256 + b * K_MAGIC_65536 }
called by 1: main
27func hsh(a: i64, b: i64) -> i64
called by 1: main
34func main() -> i64