Skip to content

Commit

Permalink
Support contract equality
Browse files Browse the repository at this point in the history
  • Loading branch information
zoep committed Sep 4, 2024
1 parent f146225 commit deb66c8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Act/HEVM.hs
Original file line number Diff line number Diff line change
Expand Up @@ -445,13 +445,17 @@ toProp cmap = \case
(LitBool _ b) -> pure $ EVM.PBool b
(Eq _ SInteger e1 e2) -> op2 EVM.PEq e1 e2
(Eq _ SBoolean e1 e2) -> op2 EVM.PEq e1 e2
(Eq _ SContract e1 e2) -> op2 EVM.PEq e1 e2
(Eq _ _ _ _) -> error "unsupported"
(NEq _ SInteger e1 e2) -> do
e <- op2 EVM.PEq e1 e2
pure $ EVM.PNeg e
(NEq _ SBoolean e1 e2) -> do
e <- op2 EVM.PEq e1 e2
pure $ EVM.PNeg e
(NEq _ SContract e1 e2) -> do
e <- op2 EVM.PEq e1 e2
pure $ EVM.PNeg e
(NEq _ _ _ _) -> error "unsupported"
(ITE _ _ _ _) -> error "Internal error: expecting flat expression"
(Var _ _ _ _) -> error "TODO"
Expand Down Expand Up @@ -798,7 +802,6 @@ checkAliasing solver constructor@(Constructor _ (Interface ifaceName decls) prec
prelude = SMT2 src mempty mempty mempty
where
src = [ "; logic",
"; this is a test",
"(set-info :smt-lib-version 2.6)",
"(set-logic ALL)" ]

Expand Down

0 comments on commit deb66c8

Please sign in to comment.