code wiki / _hdl_build / nx_synth_test.nx
nx_synth_test.nx
buildroot/runtime/_hdl_build/nx_synth_test.nx
about
nx_synth_test.nx -- watch the team WRITE programs from specs. Each target is given
ONLY as input/output examples; the synthesizer discovers a program, which is then
checked on HELD-OUT inputs (so it generalizes -- not memorised). I wrote no
program here; the search wrote all of them. Known answer: every target synthesized
+ held-out-verified -> exit 0.
dependencies 1 imports · 0 importers
imports: nx_synth.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
| none |
functions
| 9 | func sy_puts(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 10 | func sy_num(v: i64) -> i64 |
| 18 | func sy_opname(o: i64) -> *u8 called by 1: sy_describe |
| 24 | func sy_describe(op: *i64, a: *i64, b: *i64, L: i64) -> i64 |
| 37 | func sy_target(id: i64, x: i64) -> i64 called by 1: main |
| 45 | func sy_name(id: i64) -> *u8 called by 1: main |
| 53 | func main() -> i64 |