code wiki / _hdl_build / nx_genome_gate.nx

nx_genome_gate.nx

buildroot/runtime/_hdl_build/nx_genome_gate.nx

9475 B194 linesdepth 3pulls 5 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

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

nx_syscalls.nx nx_gamesave.nx nx_breeding.nx nx_genome_gate.nx

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

main pw sys_write sys_mmap gn_wild gn_hi gn_lo gn_hash3 gn_mix gn_breed gn_get gn_hash3 ↻ gn_mut gn_hi ↻ gn_lo ↻ gn_clamp gn_lo ↻ gn_hi ↻ gn_mix ↻ gn_ck gn_mix ↻ line_g pw ↻ line_r pw ↻ gn_get ↻ gn_mut ↻ pn sys_write ↻ sys_mmap ↻ gn_lo ↻ gn_hi ↻ gs_save sys_mmap ↻ put64 gsc_put64 gs_cksum gsc_fold_bytes joinsuf slen

structs

none

consts

10const GG_BREED_N: i64 = 100 // offspring per uniqueness sweep
11const GG_BOUND_N: i64 = 200 // breedings per bounds/heritability sweep
12const GG_GEN_N: i64 = 25 // chained generations for the drift sweep
13const GG_SAVEAT: i64 = 1785200000
14const GG_SENT: i64 = 424242 // sentinel fill: proves REFUSAL leaves output untouched
15const GG_FMODE: i64 = 0x1a4

functions

17func pw(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 3: line_gline_rmain calls 1: sys_write
18func pn(v: i64) -> i64
called by 1: main calls 2: sys_writesys_mmap
27func line_g(nm: *u8) -> i64 { pw(" " as *u8); pw(nm as *u8); pw(" GREEN\n" as *u8); return 0 }
called by 1: main calls 1: pw
28func line_r(nm: *u8) -> i64 { pw(" " as *u8); pw(nm as *u8); pw(" RED\n" as *u8); return 0 }
called by 1: main calls 1: pw
29func stamp(path: *u8, s: *u8) -> i64
38func main(argc: i64, argv: *i64) -> i64