code wiki / _hdl_build / nx_genome_gate.nx
nx_genome_gate.nx
buildroot/runtime/_hdl_build/nx_genome_gate.nx
about
nx_genome_gate.nx -- certifies the genetics/breeding part (capability 30, F1066, plan Lane B1).
METHOD: every equality tooth carries a NON-VACUITY guard; the flagship tooth is the ADULT
INVARIANT (breeding with a minor parent REFUSES with output bit-untouched), and the mutation test
breaks exactly that and must drive T4 RED while anti-vacuity T7 holds.
license_tier: ORIGINAL expect_exit: 0
dependencies 3 imports · 0 importers
imports: nx_syscalls.nxnx_gamesave.nxnx_breeding.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 GG_BREED_N: i64 = 100 // offspring per uniqueness sweep |
| 11 | const GG_BOUND_N: i64 = 200 // breedings per bounds/heritability sweep |
| 12 | const GG_GEN_N: i64 = 25 // chained generations for the drift sweep |
| 13 | const GG_SAVEAT: i64 = 1785200000 |
| 14 | const GG_SENT: i64 = 424242 // sentinel fill: proves REFUSAL leaves output untouched |
| 15 | const GG_FMODE: i64 = 0x1a4 |
functions
| 17 | func pw(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 18 | func pn(v: i64) -> i64 |
| 27 | func line_g(nm: *u8) -> i64 { pw(" " as *u8); pw(nm as *u8); pw(" GREEN\n" as *u8); return 0 } |
| 28 | func line_r(nm: *u8) -> i64 { pw(" " as *u8); pw(nm as *u8); pw(" RED\n" as *u8); return 0 } |
| 29 | func stamp(path: *u8, s: *u8) -> i64 |
| 38 | func main(argc: i64, argv: *i64) -> i64 |