code wiki / _hdl_build / nx_grammatical_evolution_gate.nx

nx_grammatical_evolution_gate.nx

buildroot/runtime/_hdl_build/nx_grammatical_evolution_gate.nx

5927 B78 linesdepth 4pulls 4 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

dependencies 3 imports · 0 importers

nx_gate_gn.nx nx_gate_base.nx nx_syscalls.nx nx_grammatical_evolution_gate.

imports: nx_gate_gn.nxnx_gate_base.nxnx_syscalls.nx

imported by: nobody (leaf or entry point)

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

main gw sys_write sys_mmap ge_map apply_op varval varname opname gn sys_exit

structs

none

consts

none

functions

18func grow(name: *u8, ok: i64) -> i64 { if ok==1 { gw(" PASS " as *u8) } else { gw(" FAIL " as *u8) } gw(name); gw("
calls 1: gw
20func varval(idx: i64) -> i64 { if idx==0 { return 3 } if idx==1 { return 5 } return 2 }
called by 1: main
21func varname(idx: i64) -> *u8 { if idx==0 { return "x" as *u8 } if idx==1 { return "y" as *u8 } return "z" as *u8 }
called by 1: main
22func opname(idx: i64) -> *u8 { if idx==0 { return "+" as *u8 } if idx==1 { return "*" as *u8 } return "-" as *u8 }
called by 1: ge_map
23func apply_op(op: i64, a: i64, b: i64) -> i64 { if op==0 { return a+b } if op==1 { return a*b } return a-b }
25func ge_map(genome: *i64, out: *i64) -> i64
32func main() -> i64