code wiki / _hdl_build / _synth_bench_authored.nx
_synth_bench_authored.nx
buildroot/runtime/_hdl_build/_synth_bench_authored.nx
about
AUTHORED BY THE NISHI BUILDER (nx_module_author synth-bench template) -- S6 suite compose-v1.
dependencies 1 imports · 0 importers
imports: nx_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
| 7 | const SB_KMAX: i64 = 64 |
| 8 | const SB_NCOMP: i64 = 12 |
| 9 | const SB_MAXTERM: i64 = 30000 |
| 10 | const SB_MAXLVL: i64 = 4 |
| 11 | const SB_HCAP: i64 = 131072 |
| 12 | const SB_BUDGET: i64 = 8000000 |
| 13 | const SB_MAXROUND: i64 = 16 |
| 14 | const SB_SLICE: i64 = 150000 |
functions
| 3 | func _sb_puts(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 4 | func _sb_num(v: i64) -> i64 { let bb: *u8=sys_mmap(28); var m: i64=v; if m<0{m=0-m;sys_write(1,"-" as *u8,1)}; let t: *u8=sys_mmap(28); var k: i64=0; if m==0{t[0]=48;k=1}; while m>0{t[k]=48+(m%10);m=m/10;k=k+1}; var i: i64=0; while i<k{bb[i]=t[k-1-i];i=i+1}; sys_write(1,bb,k); return 0 } |
| 5 | func _sb_fputs(fd2: i64, s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(fd2,s,n); return 0 } |
| 6 | func _sb_fnum(fd2: i64, v: i64) -> i64 { let bb: *u8=sys_mmap(28); var m: i64=v; if m<0{m=0-m;sys_write(fd2,"-" as *u8,1)}; let t: *u8=sys_mmap(28); var k: i64=0; if m==0{t[0]=48;k=1}; while m>0{t[k]=48+(m%10);m=m/10;k=k+1}; var i: i64=0; while i<k{bb[i]=t[k-1-i];i=i+1}; sys_write(fd2,bb,k); return 0 } |
| 15 | func sb_arity(c: i64) -> i64 { if c == 12 { return 1 } return 2 } |
| 16 | func sb_comm(c: i64) -> i64 { if c == 2 { return 1 } if c == 4 { return 1 } if c == 5 { return 1 } if c == 6 { return 1 } if c == 8 { return 1 } return 0 } called by 1: sb_search |
| 17 | func sb_apply(c: i64, a: i64, b: i64) -> i64 |
| 32 | func sb_oracle(oid: i64, a: i64, b: i64) -> i64 |
| 44 | func sb_claude(oid: i64, a: i64, b: i64) -> i64 |
| 54 | func sb_vech(vecs: *i64, ix: i64, kk: i64) -> i64 called by 1: sb_insert |
| 61 | func sb_vec_eq(vecs: *i64, x: i64, y: i64, kk: i64) -> i64 called by 1: sb_insert |
| 66 | func sb_insert(vecs: *i64, hash: *i64, nterm: i64, kk: i64) -> i64 |
| 79 | func sb_is_target(vecs: *i64, ix: i64, kx: *i64, kk: i64) -> i64 called by 1: sb_search |
| 84 | func sb_search(ka: *i64, kb: *i64, kx: *i64, kk: i64, cons: *i64, ncon: i64, terms: *i64, vecs: *i64, hash: *i64, stats: *i64) -> i64 |
| 192 | func sb_eval(terms: *i64, ix: i64, a: i64, b: i64) -> i64 |
| 202 | func sb_find_cex(terms: *i64, r: i64, oid: i64, ka: *i64, kb: *i64, kx: *i64, kbox: *i64, mode: i64, hterms: *i64, hroot: *i64) -> i64 |
| 241 | func ng_rand(sbox: *i64) -> i64 called by 1: ng_gen |
| 245 | func ng_gen(seed: i64, hterms: *i64, hb: *i64, cset: *i64, pa16: *i64, pb16: *i64) -> i64 |
| 314 | func sb_oracle2(mode: i64, oid: i64, a: i64, b: i64, hterms: *i64, hroot: *i64) -> i64 |
| 318 | func sb_claude_check(oid: i64) -> i64 |
| 330 | func sb_solve(oid: i64, cons: *i64, ncon: i64, terms: *i64, vecs: *i64, hash: *i64, mode: i64, hterms: *i64, hroot: *i64) -> i64 |
| 369 | func main() -> i64 |