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 3 imports · 0 importers
imports: nx_syscalls.nxnx_charjudge_lib.nxnx_gate_verdict.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 CHG_W: i64 = 256 |
| 12 | const CHG_H: i64 = 256 |
| 13 | const CHG_LCG_A: i64 = 1103515245 |
| 14 | const CHG_LCG_C: i64 = 12345 |
| 15 | const CHG_LCG_M: i64 = 2147483647 |
| 21 | const CHG_W2: i64 = 512 |
| 22 | const CHG_H2: i64 = 512 |
functions
| 24 | 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 } |
| 25 | func gn(v: i64) -> i64 |
| 36 | func chg_px(r: i64, g: i64, b: i64) -> i64 |
| 49 | func chg_composed(fb: *i64, eyes: i64) -> i64 |
| 114 | func chg_blob(fb: *i64) -> i64 |
| 147 | func chg_scramble(src: *i64, dst: *i64) -> i64 |
| 180 | func chg_collage(fb: *i64) -> i64 |
| 206 | func chg_upscale2(src: *i64, dst: *i64) -> i64 called by 1: main |
| 221 | func chg_textured_blob(fb: *i64) -> i64 |
| 241 | func chg_texture_only(fb: *i64) -> i64 |
| 263 | func main() -> i64 |