mirror of
https://github.com/GaloisInc/what4.git
synced 2024-11-29 05:45:01 +03:00
Remove getUnannotatedTerm
case for bound variables
This commit is contained in:
parent
be3e8b1189
commit
e46dff4209
@ -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
|
||||
|
||||
|
@ -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)
|
||||
|
||||
----------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user