We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a577254 commit 47e30f5Copy full SHA for 47e30f5
src/EVM/Expr.hs
@@ -1214,7 +1214,6 @@ simplifyNoLitToKeccak e = untilFixpoint (mapExpr go) e
1214
1215
-- Negation: ~x + 1 = 0 - x (two's complement)
1216
go (Add (Lit 1) (Not b)) = Sub (Lit 0) b
1217
- go (Xor (Lit a) b) | a == maxLit = Not b
1218
1219
-- add / sub identities
1220
go (Add a b)
@@ -1227,8 +1226,13 @@ simplifyNoLitToKeccak e = untilFixpoint (mapExpr go) e
1227
1226
| otherwise = sub a b
1228
1229
-- XOR normalization
+ go (Xor (Lit a) b) | a == maxLit = Not b
1230
go (Xor a b) = EVM.Expr.xor a b
1231
1232
+ -- Not concretization
1233
+ go (Not a) = EVM.Expr.not a
1234
+
1235
+ -- EqByte
1236
go (EqByte a b) = eqByte a b
1237
1238
-- SHL / SHR / SAR
0 commit comments