code wiki / _hdl_build / nx_god_pulse_gate.nx
nx_god_pulse_gate.nx
buildroot/runtime/_hdl_build/nx_god_pulse_gate.nx
dependencies 3 imports · 0 importers
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
structs
| none |
consts
| 11 | const GP_NPROBE: i64 = 4 |
| 12 | const GP_MAXOPS: i64 = 8 |
| 13 | const GP_MAXF: i64 = 40 |
| 14 | const GP_MAXTICKS: i64 = 4 |
| 15 | const GP_BOUND: i64 = 1000000 |
| 16 | const GP_BEATS: i64 = 3 |
| 17 | const GP_ORGAN: *u8 = "runtime/_hdl_build/ss_cycle_organ.nx" |
| 18 | const GP_NAME: *u8 = "ss_cycle_organ" |
| 19 | const GP_RESULT: *u8 = "knowledge/status/ss_cycle_out.bin" |
| 20 | const GP_RUNNER: *u8 = "_offc/nx_sov_build_run.elf" |
| 21 | const GP_LOG: *u8 = "knowledge/status/god_pulse.log" |
functions
| 23 | func grow(name: *u8, ok: i64) -> i64 { if ok==1 { gw(" PASS " as *u8) } else { gw(" FAIL " as *u8) } gw(name); gw(" calls 1: gw |
| 25 | func 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 } |
| 26 | func 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 } |
| 28 | func a_eval(fops: *i64, fargs: *i64, flens: *i64, idx: i64, raw: *i64, shape: *i64, ovf: *i64) -> i64 |
| 47 | func 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 } |
| 49 | func gp_scaffold(target: *i64, fops_out: *i64, fargs_out: *i64, flen_out: *i64) -> i64 |
| 101 | func gp_emit(ops: *i64, args: *i64, len: i64) -> i64 |
| 118 | func gp_god_build(name: *u8) -> i64 |
| 134 | func gp_read(path: *u8) -> i64 |
| 143 | func gp_beat(target: *i64) -> i64 |
| 155 | func main(argc: i64, argv: *i64) -> i64 |