code wiki / _hdl_build / nx_superopt_govern_test.nx

nx_superopt_govern_test.nx

buildroot/runtime/_hdl_build/nx_superopt_govern_test.nx

3652 B74 linesdepth 3pulls 4 transitivereach 0 importersview sourcekind gate/prooftopic superopt
docsdependenciesstructsconstsfunctions

about

nx_superopt_govern_test.nx -- the team builds END TO END, no human in the rule: the GENERATOR authors a lowering for each constant (by search), the VERIFIER proves it 1:1, the COUNCIL (3->2->1) governs admission, and the winners are BANKED into a rewrite library the team grew ITSELF. I wrote the searcher and the council; the team wrote + selected the rules. GENERATE (so_best) -> VERIFY (so_verify) -> GOVERN (cc_council) -> BANK A genuine improvement (cheaper than mul) is ADMITTED; a constant with no cheaper form (the LCG prime -> mul) is "not worth it" and the council does NOT bank it -- the team only keeps real wins. Known answer: every reducible constant banked, the non-reducible one rejected. exit 0.

dependencies 2 imports · 0 importers

nx_superopt_strength.nx nx_crew_council.nx nx_superopt_govern_test.nx

imports: nx_superopt_strength.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 sg_puts so_best so_verify so_eval so_cost so_verify ↻ cc_set cc_council sg_num cc_verdict_name

structs

none

consts

none

functions

17func sg_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
18func sg_num(v: i64) -> i64
called by 1: main
27func main() -> i64