summaryrefslogtreecommitdiff
path: root/src/preprocessing/passes/synth_rew_rules.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/preprocessing/passes/synth_rew_rules.cpp')
-rw-r--r--src/preprocessing/passes/synth_rew_rules.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/preprocessing/passes/synth_rew_rules.cpp b/src/preprocessing/passes/synth_rew_rules.cpp
index f83cb7f31..6d6e8fb27 100644
--- a/src/preprocessing/passes/synth_rew_rules.cpp
+++ b/src/preprocessing/passes/synth_rew_rules.cpp
@@ -15,6 +15,7 @@
#include "preprocessing/passes/synth_rew_rules.h"
+#include "expr/term_canonize.h"
#include "options/base_options.h"
#include "options/quantifiers_options.h"
#include "printer/printer.h"
@@ -22,7 +23,6 @@
#include "theory/quantifiers/candidate_rewrite_database.h"
#include "theory/quantifiers/quantifiers_attributes.h"
#include "theory/quantifiers/sygus/sygus_grammar_cons.h"
-#include "theory/quantifiers/term_canonize.h"
#include "theory/quantifiers/term_util.h"
using namespace std;
@@ -79,8 +79,7 @@ PreprocessingPassResult SynthRewRulesPass::applyInternal(
{
Trace("srs-input-debug") << "...preprocess " << cur << std::endl;
visited[cur] = false;
- Kind k = cur.getKind();
- bool isQuant = k == FORALL || k == EXISTS || k == LAMBDA || k == CHOICE;
+ bool isQuant = cur.isClosure();
// we recurse on this node if it is not a quantified formula
if (!isQuant)
{
@@ -219,7 +218,7 @@ PreprocessingPassResult SynthRewRulesPass::applyInternal(
std::vector<Node> cterms;
// canonical terms for each type
std::map<TypeNode, std::vector<Node> > t_cterms;
- theory::quantifiers::TermCanonize tcanon;
+ expr::TermCanonize tcanon;
for (unsigned i = 0, nterms = terms.size(); i < nterms; i++)
{
Node n = terms[i];
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback