code wiki / _hdl_build / nx_team_tick.nx

nx_team_tick.nx

buildroot/runtime/_hdl_build/nx_team_tick.nx

5486 B96 linesdepth 4pulls 8 transitivereach 0 importersview sourcekind tooltopic team
docsdependenciesstructsconstsfunctions

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

nx_mulchain.nx nx_superopt_emit.nx nx_engineer_crash.nx nx_gcc_race.nx nx_boolsynth.nx nx_team_tick.nx

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

main tk_main tk_puts tk_run bl_find sys_mmap bl_enum bl_is_unary bl_eval bl_enum ↻ tk_booleval bl_eval ↻ mulchain_find mc_abs mc_enum mc_avslot mc_abs ↻ mc_enum ↻ se_emit_full se_str se_num se_emit_synth so_is_shift se_str ↻ se_rn se_num ↻ se_slot_isreg se_slot se_str ↻ se_rn ↻ se_opmn tk_bwrite sys_openat_wr eng_link sys_mmap ↻ sys_fork sys_openat_wr ↻ sys_dup3 sys_close sys_execve

structs

none

consts

15const K_MAGIC_8192: i64 = 8192

functions

17func 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 }
called by 2: tk_numtk_main
18func tk_num(v: i64) -> i64
called by 1: tk_main calls 1: tk_puts
27func 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 }
called by 2: tk_genctk_run calls 1: sys_openat_wr
28func tk_genc(c: i64, path: *u8) -> i64
called by 1: tk_run calls 1: tk_bwrite
40func tk_booleval(op: *i64, a: *i64, b: *i64, L: i64) -> i64
called by 1: tk_run calls 1: bl_eval
49func tk_run(out: *i64) -> i64
76func tk_main(r: *i64) -> i64
called by 1: main calls 3: tk_putstk_runtk_num
90func main() -> i64
calls 1: tk_main