code wiki / _hdl_build / nx_charjudge_gate.nx
nx_charjudge_gate.nx
buildroot/runtime/_hdl_build/nx_charjudge_gate.nx
about
nx_charjudge_gate.nx -- the LIAR-KILLER battery for the v2 character judge, all fixtures SYNTHETIC +
deterministic (no file deps): a composed "character" (smooth bg + textured figure + border contours +
face patch with an eye pair), its eyeless twin, a flat blob, an aligned-16px patch-scramble of the
composed image, and the smooth+noise+palette COLLAGE that games v1. Teeth assert the HUMAN ordering,
per-axis kills, determinism, and the conf override path. Designing this battery already killed two
contour-axis designs before they shipped (plain run-length: dense noise is fully connected; scramble
seams are long lines) -- that is the gate doing its job at design time. license_tier: ORIGINAL expect_exit: 0
dependencies 2 imports · 0 importers
imports: nx_syscalls.nxnx_charjudge_lib.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
| 10 | const CHG_W: i64 = 256 |
| 11 | const CHG_H: i64 = 256 |
| 12 | const CHG_LCG_A: i64 = 1103515245 |
| 13 | const CHG_LCG_C: i64 = 12345 |
| 14 | const CHG_LCG_M: i64 = 2147483647 |
functions
| 16 | func gw(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 17 | func gn(v: i64) -> i64 |
| 28 | func chg_px(r: i64, g: i64, b: i64) -> i64 |
| 41 | func chg_composed(fb: *i64, eyes: i64) -> i64 |
| 106 | func chg_blob(fb: *i64) -> i64 |
| 139 | func chg_scramble(src: *i64, dst: *i64) -> i64 |
| 172 | func chg_collage(fb: *i64) -> i64 |
| 196 | func tooth(name: *u8, ok: i64, fails: *i64) -> i64 |
| 204 | func main() -> i64 |