code wiki / _hdl_build / nx_expand_driver_gate.nx

nx_expand_driver_gate.nx

buildroot/runtime/_hdl_build/nx_expand_driver_gate.nx

5976 B73 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_expand_driver_gate.nx

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 constrained_optimize csp_valid objective objective ↻ csp_valid ↻ gn sys_exit

structs

none

consts

none

functions

20func grow(name: *u8, ok: i64) -> i64 { if ok==1 { gw(" PASS " as *u8) } else { gw(" FAIL " as *u8) } gw(name); gw("
calls 1: gw
22func csp_valid(x: i64) -> i64 { if (x%2)==0 { return 1 } return 0 } // constraint: x even
23func objective(x: i64) -> i64 { let d: i64=x-7; return d*d } // minimize (x-7)^2
25func constrained_optimize(lo: i64, hi: i64) -> i64
31func main() -> i64