code wiki / _hdl_build / nx_authorgen_gate.nx

nx_authorgen_gate.nx

buildroot/runtime/_hdl_build/nx_authorgen_gate.nx

7620 B127 linesdepth 5pulls 10 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_authorgen_gate.nx -- ★THE ORCA PATTERN, GATED: describe -> build -> VALIDATE -> deploy, on the sovereign engine. T1 "a rabbit with long ears" -> rabbit built, long ears MEASURED present. T2 "a four-armed monster with horns and a tail" -> all four features MEASURED present. T3 SUBTRACTIVE causal: "a monster with two arms and no horns and no tail" -> those parts MEASURED ABSENT (the words really drive the build). T4 "a person" -> canon human. T5 ★ANTI- HALLUCINATION (the differentiator vs "AI writes code and hopes"): "a dragon with wings that breathes fire" builds a body but HONESTLY reports unmet features; "a shiny spaceship" is REFUSED (no fake build). T6 determinism. T7 evidence render. license_tier: ORIGINAL expect_exit: 0

dependencies 5 imports · 0 importers

nx_syscalls.nx nx_png.nx nx_bodyatlas.nx nx_genome.nx nx_authorgen.nx nx_authorgen_gate.nx

imports: nx_syscalls.nxnx_png.nxnx_bodyatlas.nxnx_genome.nxnx_authorgen.nx

imported by: nobody (leaf or entry point)

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

main hw sys_write ag_parse gen_defaults ag_slen ag_has ag_slen ↻ ag_lc gen_set_earlen gen_set_armpairs gen_set_horns gen_set_tail wp_init wp_set_temp_bias wp_set_mount_scale wp_set_cont_bias ag_build genome_build genome_rabbit gen_reset sys_mmap gen_defaults ↻ gene atlas_custom_reset ba_set_axes gen_walk gen_emit_one ba_add atlas_custom_finish atlas_sync_pose it_sin4096 it_cos4096 sys_mmap ↻ ba_fwd_fk atlas_part_count genome_monster gen_reset ↻ gene ↻ atlas_custom_reset ↻

structs

none

consts

none

functions

14func hw(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
15func 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 }
called by 1: main calls 2: sys_mmapsys_write
16func inside(x: i64, y: i64, z: i64) -> i64 { if ba_sdf(x, y, z, 1) < 0 { return 1 } return 0 }
called by 1: main calls 1: ba_sdf
17func top_at(x: i64, z: i64, yhi: i64, ylo: i64) -> i64
called by 1: main calls 1: ba_sdf
22func clearfb(fb: *i64, n: i64, c: i64) -> i64 { var i: i64=0; while i<n { fb[i]=c; i=i+1 } return 0 }
24func main() -> i64