code wiki / (root) / nx_eqsat_wire_probe.nx

nx_eqsat_wire_probe.nx

buildroot/runtime/nx_eqsat_wire_probe.nx

1735 B32 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind probetopic eqsat
docsdependenciesstructsconstsfunctions

about

nx_eqsat_wire_probe.nx -- LN8 WIRING WITNESS (lang.plan rung LN8, symbol opt_eqsat_pass). The pass itself is proven by nx_opt_eqsat_pass_gate (10/10) on an in-memory IR fixture. THIS file is the witness that the SHIPPING PIPELINE runs it: compiled by the toolchain compiler under --ir-dump, the post-opt IR of ewp_xor_self must carry NO live OP_XOR (op=12) whose result is a non-constant -- the x ^ x instruction folds to the constant 0 through the e-graph, which the incumbent opt_const_fold structurally cannot do (it needs BOTH operands constant). The control ewp_xor_pair (x ^ y, two distinct params) MUST keep its xor. Behaviour is identical either way (the gate runs the binary too: exit code = the same small number with or without the pass). Built with --no-crash-guard inside the gate so the dumped IR is this file plus nx_syscalls only. license_tier: ORIGINAL No hw writes (Rule 26).

dependencies 1 imports · 0 importers

nx_syscalls.nx nx_eqsat_wire_probe.nx

imports: nx_syscalls.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main ewp_xor_self ewp_xor_pair

structs

none

consts

none

functions

16func ewp_xor_self(x: i64) -> i64
called by 1: main
21func ewp_xor_pair(x: i64, y: i64) -> i64
called by 1: main
25func main(argc: i64, argv: *i64) -> i64