Commit b11a706
committed
Add sort validation tests for typed operations
Add positive and negative tests verifying egraph sort enforcement:
- Eq/Ne reject BoolExpr operands (must use LogEq/LogNe instead)
- LogEq/LogNe accept BoolExpr and fold correctly
- Conversion ops enforce correct operand sorts (FloatExpr vs IntExpr)
- Bitwise ops reject BoolExpr (require IntExpr)
- Logical ops reject IntExpr (require BoolExpr)
- Float comparisons reject IntExpr (require FloatExpr)
- Float arithmetic rejects IntExpr, int arithmetic rejects FloatExpr1 parent 2dae722 commit b11a706
1 file changed
Lines changed: 472 additions & 0 deletions
0 commit comments