code wiki / _hdl_build / nx_boolhunt_test.nx
nx_boolhunt_test.nx
buildroot/runtime/_hdl_build/nx_boolhunt_test.nx
about
nx_boolhunt_test.nx -- the TEAM finds its own opportunities. It sweeps EVERY 3-input
boolean function (all 256), finds each minimal circuit, races the best of {gcc, clang},
and reports what IT discovered: where its exhaustive-minimal op-count is below the
compiler's instruction count (candidate exceeds), where it ties, and where it is behind
(the behind cases name ops the team should next AUTHOR -- e.g. andn/lea the compiler has).
No human picks the functions. Honest: team size = minimal OP COUNT (the floor); a confirmed
exceed also needs the team's emitted insn count, but op-count<compiler-insns is the signal.
dependencies 1 imports · 0 importers
imports: nx_boolhunt.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
| 11 | func bh_puts(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 12 | func bh_num(v: i64) -> i64 |
| 23 | func bh_sweep(gcc: *u8, c: *i64, ex: *i64) -> i64 |
| 42 | func bh_main() -> i64 |
| 61 | func main() -> i64 calls 1: bh_main |