Skip to content

Commit b11a706

Browse files
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 FloatExpr
1 parent 2dae722 commit b11a706

1 file changed

Lines changed: 472 additions & 0 deletions

File tree

  • rust/spirv-tools-opt/src/egglog_opt

0 commit comments

Comments
 (0)