Skip to content

Commit

Permalink
Merge pull request #375 from ethereum/pleq-rewrite
Browse files Browse the repository at this point in the history
PLEq -- This rewrite is actually helpful in some cases
  • Loading branch information
d-xo authored Sep 13, 2023
2 parents 73aeff4 + 7d0a3cb commit 5d2d095
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/EVM/Expr.hs
Original file line number Diff line number Diff line change
Expand Up @@ -863,6 +863,8 @@ evalProp prop =
go (PLEq (Var _) (Lit val)) | val == maxLit = PBool True
go (PLT (Lit l) (Lit r)) = PBool (l < r)
go (PLEq (Lit l) (Lit r)) = PBool (l <= r)
go (PLEq a (Max b _)) | a == b = PBool True
go (PLEq a (Max _ b)) | a == b = PBool True

-- negations
go (PNeg (PBool b)) = PBool (Prelude.not b)
Expand Down

0 comments on commit 5d2d095

Please sign in to comment.