Skip to content

Commit

Permalink
Preserve abstract values in opacify
Browse files Browse the repository at this point in the history
  • Loading branch information
langston-barrett committed Feb 12, 2025
1 parent 862a865 commit eef72a0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion what4/src/What4/Expr/Builder.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2070,7 +2070,9 @@ instance IsExprBuilder (ExprBuilder t st fs) where
opacify sym e =
case e of
NonceAppExpr (nonceExprApp -> Opaque _ _) -> return e
_ -> sbNonceExpr sym (Opaque (exprType e) e)
_ -> do
e' <- sbNonceExpr sym (Opaque (exprType e) e)
pure (unsafeSetAbstractValue (exprAbsValue e') e')

clarify _sym e =
case e of
Expand Down

0 comments on commit eef72a0

Please sign in to comment.