code wiki / _hdl_build / nx_god_pulse_gate.nx

nx_god_pulse_gate.nx

buildroot/runtime/_hdl_build/nx_god_pulse_gate.nx

11147 B194 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_god_pulse_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 gp_beat sys_mmap ↻ gp_scaffold sys_mmap ↻ a_eval a_in gp_emit sys_mmap ↻ gcat gcatn sys_mmap ↻ sys_openat_wr sys_write ↻ sys_close sys_openat_wr ↻ sys_write ↻ sys_close ↻ gp_god_build sys_fork sys_openat_wr ↻ sys_dup3 sys_mmap ↻ sys_execve sys_exit sys_wait4 gp_read sys_mmap ↻ sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close ↻ gn gcat ↻ gcatn ↻

structs

none

consts

11const GP_NPROBE: i64 = 4
12const GP_MAXOPS: i64 = 8
13const GP_MAXF: i64 = 40
14const GP_MAXTICKS: i64 = 4
15const GP_BOUND: i64 = 1000000
16const GP_BEATS: i64 = 3
17const GP_ORGAN: *u8 = "runtime/_hdl_build/ss_cycle_organ.nx"
18const GP_NAME: *u8 = "ss_cycle_organ"
19const GP_RESULT: *u8 = "knowledge/status/ss_cycle_out.bin"
20const GP_RUNNER: *u8 = "_offc/nx_sov_build_run.elf"
21const GP_LOG: *u8 = "knowledge/status/god_pulse.log"

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 gcat(buf: *u8, off: i64, s: *u8) -> i64 { var o: i64=off; var i: i64=0; while s[i]!=(0 as u8){ buf[o]=s[i]; o=o+1; i=i+1 } return o }
called by 2: gp_emitmain calls 1: sys_mmap
26func gcatn(buf: *u8, off: i64, v: i64) -> i64 { var o: i64=off; if v==0 { buf[o]=48 as u8; return o+1 } var m: i64=v; if m<0 { buf[o]=45 as u8; o=o+1; m=0-m } let t: *u8=sys_mmap(24); var k: i64=0; while m>0 { t[k]=(48+(m%10)) as u8; m=m/10; k=k+1 } var i: i64=0; while i<k { buf[o]=t[k-1-i]; o=o+1; i=i+1 } return o }
28func a_eval(fops: *i64, fargs: *i64, flens: *i64, idx: i64, raw: *i64, shape: *i64, ovf: *i64) -> i64
47func a_in(sigs: *i64, n: i64, cand: *i64, w: i64) -> i64 { var i: i64=0; while i<n { var s: i64=1; var p: i64=0; while p<w { if sigs[i*w+p]!=cand[p] { s=0; p=w } else { p=p+1 } } if s==1 { return 1 } i=i+1 } return 0 }
49func gp_scaffold(target: *i64, fops_out: *i64, fargs_out: *i64, flen_out: *i64) -> i64
101func gp_emit(ops: *i64, args: *i64, len: i64) -> i64
118func gp_god_build(name: *u8) -> i64
134func gp_read(path: *u8) -> i64
143func gp_beat(target: *i64) -> i64
155func main(argc: i64, argv: *i64) -> i64