Skip to content

Commit

Permalink
Update src/Act/Decompile.hs
Browse files Browse the repository at this point in the history
  • Loading branch information
d-xo authored Aug 6, 2024
1 parent 95f3a90 commit d3b0b22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Act/Decompile.hs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ makeIntSafe solvers expr = evalStateT (mapExprM go expr) mempty
e@(EVM.Mul a b) -> binop (EVM.Div (EVM.Mul a b) b .== a) a b e
-- we can't encode symbolic exponents in smt, so we just always wrap
e@(EVM.Exp {}) -> pure (EVM.Mod e (EVM.Lit MAX_UINT))
-- TODO: I don't understand what this thing does, so just wrap it in a mod to be safe for now
-- TODO: It's probably sound to remove the Mod here, but signextend is pretty mysterious so keeping it here for now to be on the safe side.
e@(EVM.SEx {}) -> pure (EVM.Mod e (EVM.Lit MAX_UINT))
e -> pure e

Expand Down

0 comments on commit d3b0b22

Please sign in to comment.