FA-11454 / Compiler transformation correctness / Member archive
Expression numbering commutes subtraction operands · case 04
Expression numbering commutes subtraction operands.
Case contract
Return an expression key [opcode, operand1, operand2]; add and mul commute, sub and div preserve order. Operands are integer value numbers.
Why this case matters
A deterministic miniature compiler-pass model; inputs are explicit IR facts, not a production compiler.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| sub ordered | ["sub", 4, 5] | ["sub", 5, 4] | Failed |
MEMBER ARCHIVE
The complete case is available to members.
This record includes three runnable implementations, regression fixtures, execution results, and source hashes.
Member access is invitation-based. Sign in with your invited account to inspect the sources.
Sign in to the archive ↗