Skip to content

Commit

Permalink
Merge pull request #392 from ethereum/no-dups-in-flatten
Browse files Browse the repository at this point in the history
SymExec: flattenExpr: rm duplicated props
  • Loading branch information
d-xo authored Oct 5, 2023
2 parents 6c32727 + bc20c16 commit 144f25a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/EVM/SymExec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -474,9 +474,9 @@ flattenExpr = go []
go :: [Prop] -> Expr End -> [Expr End]
go pcs = \case
ITE c t f -> go (PNeg ((PEq c (Lit 0))) : pcs) t <> go (PEq c (Lit 0) : pcs) f
Success ps trace msg store -> [Success (ps <> pcs) trace msg store]
Failure ps trace e -> [Failure (ps <> pcs) trace e]
Partial ps trace p -> [Partial (ps <> pcs) trace p]
Success ps trace msg store -> [Success (nubOrd $ ps <> pcs) trace msg store]
Failure ps trace e -> [Failure (nubOrd $ ps <> pcs) trace e]
Partial ps trace p -> [Partial (nubOrd $ ps <> pcs) trace p]
GVar _ -> internalError "cannot flatten an Expr containing a GVar"

-- | Strips unreachable branches from a given expr
Expand Down

0 comments on commit 144f25a

Please sign in to comment.