code wiki / _hdl_build / nx_synth_test.nx

nx_synth_test.nx

buildroot/runtime/_hdl_build/nx_synth_test.nx

4085 B97 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind gate/prooftopic synth
docsdependenciesstructsconstsfunctions

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

nx_synth.nx nx_synth_test.nx

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

main sy_puts sy_target synth_find sys_mmap synth_matches synth_eval sy_name sy_describe sy_puts ↻ sy_num sy_opname synth_eval ↻ sy_num ↻

structs

none

consts

none

functions

9func 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 }
called by 2: sy_describemain
10func sy_num(v: i64) -> i64
called by 2: sy_describemain
18func sy_opname(o: i64) -> *u8
called by 1: sy_describe
24func sy_describe(op: *i64, a: *i64, b: *i64, L: i64) -> i64
called by 1: main calls 3: sy_putssy_numsy_opname
37func sy_target(id: i64, x: i64) -> i64
called by 1: main
45func sy_name(id: i64) -> *u8
called by 1: main
53func main() -> i64