code wiki / _hdl_build / nx_boolhunt_test.nx

nx_boolhunt_test.nx

buildroot/runtime/_hdl_build/nx_boolhunt_test.nx

3729 B65 linesdepth 4pulls 6 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

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

nx_boolhunt.nx nx_boolhunt_test.nx

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

main bh_main bh_puts gr_newest_gcc gr_exists sys_openat_rd sys_close bh_sweep bool_hunt_one bl_find sys_mmap bl_enum bl_is_unary bl_eval bl_enum ↻ bse_emit_full bh_emit bse_emit_synth bl_is_unary ↻ bh_emit ↻ bse_rn bse_opmn sys_openat_wr eng_link sys_mmap ↻ sys_fork sys_openat_wr ↻ sys_dup3 sys_close ↻ sys_execve sys_exit sys_wait4 eng_run sys_mmap ↻ sys_fork ↻ sys_openat_wr ↻ sys_dup3 ↻ sys_close ↻ sys_execve ↻ sys_exit ↻

structs

none

consts

none

functions

11func 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 }
called by 2: bh_numbh_main
12func bh_num(v: i64) -> i64
called by 1: bh_main calls 1: bh_puts
23func bh_sweep(gcc: *u8, c: *i64, ex: *i64) -> i64
called by 1: bh_main calls 1: bool_hunt_one
42func bh_main() -> i64
61func main() -> i64
calls 1: bh_main