code wiki / _hdl_build / nx_anthro_gate.nx
nx_anthro_gate.nx
buildroot/runtime/_hdl_build/nx_anthro_gate.nx
about
nx_anthro_gate.nx -- ★Q4 ANATOMY REFERENCE PASS (operator reality audit: "the multi-layered person has no
anatomical correctness in an IRL situation"). This gate MEASURES the being's proportions FROM ITS SDF (execution-
level -- what is actually there, not what the part table claims) and grades them against the BANKED anthropometric
canon (knowledge/anthropometry_banked.txt, fetched from the artistic-anatomy/anthropometry reference 2026-07-12):
stature = 7.5 head-heights +-8% | legs (sole->crotch) 0.47..0.53 of stature | arm ~0.40 of stature +-8%
shoulder/hip halfwidth 1.08..1.30 (men 1.18) | fingertips at mid-thigh when arms hang
T1 bank present. T2 the measurements (printed -- the tape measure). T3 the canon verdicts. T4 determinism.
license_tier: ORIGINAL expect_exit: 0
dependencies 2 imports · 0 importers
imports: nx_syscalls.nxnx_bodyatlas.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
| none |
functions
| 12 | func hw(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 13 | func pn(v: i64) -> i64 { let b: *u8=sys_mmap(32) as *u8; var x: i64=v; var ng: i64=0; if x<0{ng=1;x=0-x} var i: i64=31; if x==0{b[i]=48 as u8;i=i-1} while x>0{b[i]=(48+x%10) as u8;x=x/10;i=i-1} if ng==1{b[i]=45 as u8;i=i-1} sys_write(1,(b as i64+i+1) as *u8,31-i); return 0 } |
| 16 | func scan_down(x: i64, z: i64, yhi: i64, ylo: i64) -> i64 |
| 25 | func scan_up(x: i64, z: i64, ylo: i64, yhi: i64) -> i64 |
| 34 | func halfwidth_at(y: i64, lim: i64) -> i64 |
| 44 | func main() -> i64 |