code wiki / _hdl_build / nx_author_test.nx
nx_author_test.nx
buildroot/runtime/_hdl_build/nx_author_test.nx
about
nx_author_test.nx -- the team AUTHORS a new primitive from its own diagnosis, by EXPERIMENT.
It is given ONLY the mnemonic it diagnosed as missing ("imulq") -- not what it does. It
probes the instruction on 5 (K,x) examples, observes the outputs by RUNNING them, and
INFERS the semantics by testing hypotheses. It learns, with no one telling it, that imul
computes MULTIPLY -- the team teaches itself a new op. Known answer: learned == MULTIPLY.
dependencies 1 imports · 0 importers
imports: nx_author.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 at_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 at_num(v: i64) -> i64 |
| 20 | func at_main(r: *i64) -> i64 |
| 42 | func main() -> i64 calls 1: at_main |