code wiki / _hdl_build / nx_horizontal_test.nx

nx_horizontal_test.nx

buildroot/runtime/_hdl_build/nx_horizontal_test.nx

5693 B107 linesdepth 4pulls 7 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_horizontal_test.nx -- the team's find-minimal-verify loop runs HORIZONTAL, across many DISTINCT functionalities, not just one vertical codegen path. The same engine handles a spread of functional domains, each synthesized + verified by the team: ARITHMETIC mul -- multiply-by-constant (machine code, exec-verified) ARITHMETIC add -- an N-bit adder composed from synthesized gates (verified to add) LOGIC -- majority (exact-verified) CHECKSUM -- parity / odd-ones (exact-verified) SELECT/CONTROL -- mux a?b:c (exact-verified) Combined with the vertical level-8->0 stack, this is the team improving across the whole 2D grid: up the sovereign stack AND across functionalities.

dependencies 4 imports · 0 importers

nx_mulchain.nx nx_superopt_emit.nx nx_engineer_crash.nx nx_boolsynth.nx nx_horizontal_test.nx

imports: nx_mulchain.nxnx_superopt_emit.nxnx_engineer_crash.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 hz_run hz_puts hz_mul 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 hz_bwrite 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 ↻

structs

none

consts

none

functions

17func hz_puts(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 }
18func hz_num(v: i64) -> i64
called by 3: hz_mulhz_addhz_bool
26func tally(r: *i64, n: i64) -> i64 { var ec: i64 = 0; var i: i64 = 0; while i < n { if r[i] != 1 { if ec == 0 { ec = i + 1 } } i = i + 1 } return ec }
called by 1: main
27func hz_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 1: hz_mul calls 1: sys_openat_wr
28func hz_booleval(op: *i64, a: *i64, b: *i64, L: i64) -> i64
called by 1: hz_bool calls 1: bl_eval
33func hz_eval1(op: *i64, a: *i64, b: *i64, L: i64, x0: i64, x1: i64, x2: i64) -> i64
called by 1: hz_add calls 1: bl_eval
40func hz_mul(label: *u8) -> i64
55func hz_add(label: *u8) -> i64
called by 1: hz_run calls 4: bl_findhz_eval1hz_putshz_num
81func hz_bool(target: i64, label: *u8) -> i64
89func hz_run(r: *i64) -> i64
called by 1: main calls 4: hz_putshz_mulhz_addhz_bool
101func main() -> i64
calls 2: hz_runtally