code wiki / _hdl_build / nx_codegen_diff_gate.nx
nx_codegen_diff_gate.nx
buildroot/runtime/_hdl_build/nx_codegen_diff_gate.nx
about
nx_codegen_diff_gate.nx -- DIFFERENTIAL codegen verifier: the safety gate that
lets the Nishi team improve register allocation (nx_x86_regalloc) WITHOUT a g1
repeat. Compiles a corpus of self-verifying programs with TWO compilers (the
pinned known-good and a candidate), links + runs both, asserts IDENTICAL runtime
behaviour. A correct codegen change emits different asm but the SAME result; a
g1-style high-pressure miscompile DIVERGES and is CAUGHT before promotion.
Build pipeline = nx_codegen_exec (shared). Known answer: all agree -> exit 0.
dependencies 1 imports · 0 importers
imports: nx_codegen_exec.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 main() -> i64 |