summaryrefslogtreecommitdiff
path: root/src/smt/term_formula_removal.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/smt/term_formula_removal.cpp')
-rw-r--r--src/smt/term_formula_removal.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/smt/term_formula_removal.cpp b/src/smt/term_formula_removal.cpp
index f610cc7df..d37ed05e1 100644
--- a/src/smt/term_formula_removal.cpp
+++ b/src/smt/term_formula_removal.cpp
@@ -207,9 +207,7 @@ Node RemoveTermFormulas::run(TNode node, std::vector<Node>& output,
return skolem;
}
- if (node.getKind() == kind::FORALL || node.getKind() == kind::EXISTS
- || node.getKind() == kind::LAMBDA
- || node.getKind() == kind::CHOICE)
+ if (node.isClosure())
{
// Remember if we're inside a quantifier
inQuant = true;
@@ -269,9 +267,7 @@ Node RemoveTermFormulas::replace(TNode node, bool inQuant, bool inTerm) const {
return cached.isNull() ? Node(node) : cached;
}
- if (node.getKind() == kind::FORALL || node.getKind() == kind::EXISTS
- || node.getKind() == kind::LAMBDA
- || node.getKind() == kind::CHOICE)
+ if (node.isClosure())
{
// Remember if we're inside a quantifier
inQuant = true;
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback