code wiki / _hdl_build / nx_anatomy_critic_gate.nx

nx_anatomy_critic_gate.nx

buildroot/runtime/_hdl_build/nx_anatomy_critic_gate.nx

11479 B236 linesdepth 3pulls 5 transitivereach 0 importersview sourcekind gate/prooftopic anatomy
docsdependenciesstructsconstsfunctions

about

nx_anatomy_critic_gate.nx -- proves the anatomy critic is a REAL instrument by making it FAIL things that should fail, including OUR OWN current figure. A critic you have not seen reject your own work is not evidence -- that is the banked law this whole gate exists to honour. MUTATION TARGET (documented): remove the connectivity hard-cap in ac2_quality => T1 RED (a detached head scores as a sound body). license_tier: ORIGINAL

dependencies 4 imports · 0 importers

nx_syscalls.nx nx_anatomy_critic.nx nx_game_raster.nx nx_game_critic.nx nx_anatomy_critic_gate.nx

imports: nx_syscalls.nxnx_anatomy_critic.nxnx_game_raster.nxnx_game_critic.nx

imported by: nobody (leaf or entry point)

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

main p sys_write sys_mmap newfb sys_mmap ↻ gr_clear draw_sound gr_pack ell gr_px ac2_score sys_mmap ↻ ac2_largest_component ac2_is_fig sys_mmap ↻ ac2_row_width ac2_is_fig ↻ ac2_center_run ac2_is_fig ↻ ac2_row_mass ac2_is_fig ↻ ac2_quality ac2_cap draw_detached gr_pack ↻ ell ↻ pn sys_mmap ↻ sys_write ↻ ac2_verdict nl p ↻ draw_lollipop gr_pack ↻ ell ↻ draw_cylinder gr_pack ↻ ell ↻ gr_rect

structs

none

consts

29const FW: i64 = 160
30const FH: i64 = 220
31const BG: i64 = 0 // black background

functions

12func p(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 2: nlmain calls 1: sys_write
13func pn(v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
27func nl() -> i64 { p("\n" as *u8); return 0 }
called by 1: main calls 1: p
33func newfb() -> *i64
called by 1: main calls 2: sys_mmapgr_clear
38func ell(fb: *i64, cx: i64, cy: i64, rx: i64, ry: i64, c: i64) -> i64
53func draw_sound(fb: *i64) -> i64
called by 1: main calls 2: gr_packell
67func draw_detached(fb: *i64) -> i64
called by 1: main calls 2: gr_packell
80func ell_shaded(fb: *i64, cx: i64, cy: i64, rx: i64, ry: i64, r: i64, g: i64, b: i64) -> i64
called by 1: draw_shaded_detached calls 2: gr_pxgr_pack
106func draw_shaded_detached(fb: *i64) -> i64
called by 1: main calls 1: ell_shaded
118func draw_lollipop(fb: *i64) -> i64
called by 1: main calls 2: gr_packell
126func draw_cylinder(fb: *i64) -> i64
called by 1: main calls 3: gr_packellgr_rect
134func main() -> i64