nx_procgen_signature_test.nx
buildroot/runtime/nx_procgen_signature_test.nx
about
nx_procgen_signature_test.nx -- KATs for the P1 composed-primitives
signature features. Exit 0 = all pass; first failing KAT's number is
the exit code (loud, names the failure).
KAT 1 peak apex: center cell rises by exactly amp (d2=0 term).
KAT 2 peak reach: a cell beyond radius is untouched.
KAT 3 ridge symmetry: cells mirrored across the segment move equally.
KAT 4 valley is ridge negated: same geometry, opposite sign.
KAT 5 cliff is antisymmetric: left side up, right side down.
KAT 6 compose determinism: same (seed,preset) twice -> identical maps.
KAT 7 compose moves EXTREMES: graded ext after >= before on the same
fbm base (the P1 gate axis, proven at module level).
license_tier: ORIGINAL
dependencies 5 imports · 0 importers
imports: nx_syscalls.nxnx_tier.nxnx_procgen_signature.nxnx_world_quality_grader.nxnx_perlin.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
| 21 | const TW: nx_int = 64 |
| 22 | const TH: nx_int = 64 |
functions
| 24 | func t_fill_zero(hm: *nx_int, n: nx_int) -> nx_int called by 1: main |
| 30 | func t_fill_fbm(hm: *nx_int, seed: nx_int) -> nx_int |
| 44 | func main() -> i64 |