Skip to content

Commit

Permalink
This rewrite is actually helpful in some cases
Browse files Browse the repository at this point in the history
  • Loading branch information
msooseth committed Sep 7, 2023
1 parent db5e472 commit 7d0a3cb
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 7d0a3cb

Please sign in to comment.