code wiki / _hdl_build / nx_team_selfdirect_test.nx

nx_team_selfdirect_test.nx

buildroot/runtime/_hdl_build/nx_team_selfdirect_test.nx

5387 B127 linesdepth 3pulls 4 transitivereach 0 importersview sourcekind gate/prooftopic team
docsdependenciesstructsconstsfunctions

about

nx_team_selfdirect_test.nx -- the team DIRECTS ITS OWN WORK: scans a domain, finds the GAPS its library can't compute, builds exactly those (synth->verify->govern-> bank), and KNOWS WHEN DONE (a re-scan finds nothing). Domain = x*c for c in 2..7. NOTE: the per-goal work lives in helper functions, not in main. The Engineer (nx_engineer_crash) caught an earlier version crashing with SIGSEGV at main entry, 0 output -- the known-good compiler miscompiles very-high-local-count functions (the g1 high-pressure class). Splitting main into smaller frames is the workaround; the underlying compiler bug is owed by the codegen arc. Known answer: pass 1 builds 6, pass 2 finds 0 gaps.

dependencies 2 imports · 0 importers

nx_synth.nx nx_crew_council.nx nx_team_selfdirect_test.nx

imports: nx_synth.nxnx_crew_council.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main sd_puts sd_is_gap sd_fill sd_covered synth_eval sd_build sd_fill ↻ synth_find sys_mmap synth_matches synth_eval ↻ synth_eval ↻ cc_set cc_council sd_num

structs

none

consts

none

functions

15func sd_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 1: main
16func sd_num(v: i64) -> i64
called by 1: main
25func sd_covered(lib_op: *i64, lib_a: *i64, lib_b: *i64, lib_L: *i64, lib_n: i64,
called by 1: sd_is_gap calls 1: synth_eval
42func sd_fill(ex_x: *i64, ex_y: *i64, c: i64) -> i64
called by 2: sd_is_gapsd_build
49func sd_is_gap(lib_op: *i64, lib_a: *i64, lib_b: *i64, lib_L: *i64, lib_n: i64, c: i64) -> i64
called by 1: main calls 2: sd_fillsd_covered
58func sd_build(lib_op: *i64, lib_a: *i64, lib_b: *i64, lib_L: *i64, lib_n_ptr: *i64,
87func main() -> i64