code wiki / _hdl_build / _evolve_gate_authored.nx

_evolve_gate_authored.nx

buildroot/runtime/_hdl_build/_evolve_gate_authored.nx

5766 B125 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

_evolve_gate_authored.nx -- gate for X-EVO-001. An optimizer you cannot verify is worse than none, so the gate proves the THREE things that make EC trustworthy: K1 CONVERGE default config reaches the known optimum (exit 0, final_best=0) K2 DETERMINISM same seed -> BYTE-IDENTICAL final_best across two runs (the reproducibility law: seeded EC is replayable, never roulette) K3 BEATS-RANDOM mutation ON converges where a degenerate run (1 generation = random init only) does NOT -- evolution is doing real work K4 MULTIMODAL kind=1 (many basins) still converges (not just the easy sphere) Markers: EVG-*; final EVGATE row -> knowledge/status/evolve.log license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_syscalls.nx _evolve_gate_authored.nx

imports: nx_syscalls.nx

imported by: nobody (leaf or entry point)

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

main eg_p sys_write sys_mmap eg_run sys_fork sys_openat_wr sys_dup3 sys_mmap ↻ eg_ic sys_mmap ↻ sys_execve sys_exit sys_wait4 eg_finalbest sys_mmap ↻ sys_openat_rd sys_read sys_close eg_chk eg_p ↻ sys_openat_append eg_f sys_write ↻ eg_n sys_mmap ↻ sys_write ↻ sys_close ↻ sys_exit ↻

structs

none

consts

none

functions

12func eg_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: eg_chkmain calls 1: sys_write
13func eg_f(fd: i64, s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(fd,s,n); return 0 }
called by 1: main calls 1: sys_write
14func eg_n(fd: i64, v: i64) -> i64 { let bb: *u8=sys_mmap(28); var m: i64=v; if m<0{m=0-m; sys_write(fd,"-" as *u8,1)}; let t: *u8=sys_mmap(28); var k: i64=0; if m==0{t[0]=48 as u8;k=1}; while m>0{t[k]=(48+(m%10)) as u8;m=m/10;k=k+1}; var i: i64=0; while i<k{bb[i]=t[k-1-i];i=i+1}; sys_write(fd,bb,k); return 0 }
called by 1: main calls 2: sys_mmapsys_write
15func eg_ic(dst: *u8, off: i64, v: i64) -> i64
called by 1: eg_run calls 1: sys_mmap
30func eg_run(args: *i64, nargs: i64, outp: *u8, rcout: *i64) -> i64
58func eg_finalbest(path: *u8) -> i64
88func eg_chk(label: *u8, ok: i64, bad: *i64) -> i64
called by 1: main calls 1: eg_p
93func main() -> i64