code wiki / _hdl_build / nx_team_tick.nx
nx_team_tick.nx
buildroot/runtime/_hdl_build/nx_team_tick.nx
about
nx_team_tick.nx -- the team's AUTONOMY TICK: one self-contained beat of the whole self-
improvement loop, so it runs INDEPENDENTLY (wrap in a loop / cron) or on the operator's
TRIGGER (just run it). One tick exercises the full stack, bits-up, end to end:
GATE level -- synthesize a boolean circuit (majority) + verify EXACTLY (truth table)
MACHINE level -- synthesize+emit a multiply (x*C) + verify BY EXECUTION
RACE -- cost it vs the newest gcc, classify the standing
REPORT -- one honest line + TICK COMPLETE
Everything sovereign (the team's own generators/verifiers/racer); no human in the beat.
dependencies 5 imports · 0 importers
imports: nx_mulchain.nxnx_superopt_emit.nxnx_engineer_crash.nxnx_gcc_race.nxnx_boolsynth.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
| 15 | const K_MAGIC_8192: i64 = 8192 |
functions
| 17 | func tk_puts(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 18 | func tk_num(v: i64) -> i64 |
| 27 | func tk_bwrite(path: *u8, buf: *u8, len: i64) -> i64 { let fd: i64 = sys_openat_wr(path, 0x1a4); if fd < 0 { return 0 - 1 } sys_write(fd, buf, len); sys_close(fd); return 0 } |
| 28 | func tk_genc(c: i64, path: *u8) -> i64 |
| 40 | func tk_booleval(op: *i64, a: *i64, b: *i64, L: i64) -> i64 |
| 49 | func tk_run(out: *i64) -> i64 |
| 76 | func tk_main(r: *i64) -> i64 |
| 90 | func main() -> i64 calls 1: tk_main |