code wiki / _hdl_build / nx_evolution_oracle_gate.nx

nx_evolution_oracle_gate.nx

buildroot/runtime/_hdl_build/nx_evolution_oracle_gate.nx

7822 B131 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_evolution_oracle_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 sys_mmap o_sig lin_put o_grade sys_mmap ↻ o_sig ↻ lin_find o_sigeq lin_put ↻ gn lin_find ↻ sys_exit

structs

none

consts

18const O_NPROBE: i64 = 4
19const O_MAXOPS: i64 = 8
20const O_MAXLIN: i64 = 16

functions

23func grow(name: *u8, ok: i64) -> i64 { if ok==1 { gw(" PASS " as *u8) } else { gw(" FAIL " as *u8) } gw(name); gw("
calls 1: gw
25func o_sig(ops: *i64, args: *i64, len: i64, sig: *i64) -> i64
34func o_sigeq(a: *i64, b: *i64) -> i64 { var p: i64=0; while p<O_NPROBE { if a[p]!=b[p] { return 0 } p=p+1 } return 1 }
38func lin_find(lin_sig: *i64, nlin: i64, sig: *i64) -> i64
44func lin_put(lin_sig: *i64, lin_len: *i64, lin_ops: *i64, idx: i64, sig: *i64, ops: *i64, args: *i64, len: i64) -> i64
53func o_grade(lin_sig: *i64, lin_len: *i64, lin_ops: *i64, nlin_p: *i64, ops: *i64, args: *i64, len: i64, bt_len: *i64) -> i64
70func main(argc: i64, argv: *i64) -> i64