Skip to content

Commit

Permalink
Remove getUnannotatedTerm case for bound variables
Browse files Browse the repository at this point in the history
  • Loading branch information
langston-barrett committed Dec 6, 2023
1 parent be3e8b1 commit e46dff4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion what4/src/What4/Expr/Builder.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1646,7 +1646,6 @@ instance IsExprBuilder (ExprBuilder t st fs) where

getUnannotatedTerm _sym e =
case e of
BoundVarExpr {} -> Just e
NonceAppExpr (nonceExprApp -> Annotation _ _ x) -> Just x
_ -> Nothing

Expand Down
3 changes: 2 additions & 1 deletion what4/src/What4/Interface.hs
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,8 @@ class ( IsExpr (SymExpr sym), HashableF (SymExpr sym), HashableF (BoundVar sym)
getAnnotation :: sym -> SymExpr sym tp -> Maybe (SymAnnotation sym tp)

-- | Project the original, unannotated term from an annotated term.
-- This returns 'Nothing' for terms that do not have annotations.
-- This returns 'Nothing' for terms that do not have annotations,
-- or for terms that cannot be separated from their annotations.
getUnannotatedTerm :: sym -> SymExpr sym tp -> Maybe (SymExpr sym tp)

----------------------------------------------------------------------
Expand Down

0 comments on commit e46dff4

Please sign in to comment.