summaryrefslogtreecommitdiff
path: root/src/smt/term_formula_removal.cpp
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2019-04-17 12:42:11 -0500
committerGitHub <noreply@github.com>2019-04-17 12:42:11 -0500
commitd0c44a9e048558887ab75aaec4c493696c67b456 (patch)
treeba64a48d289a7d2cde5ff2a2e5886a4babfb441f /src/smt/term_formula_removal.cpp
parent5b00f8d6804bf9f71d6169634341011f99d59b8b (diff)
More use of isClosure (#2959)
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