summaryrefslogtreecommitdiff
path: root/src/preprocessing
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2021-01-11 09:46:28 -0600
committerGitHub <noreply@github.com>2021-01-11 09:46:28 -0600
commitb8841e768a37131c492508cd0e12b9acd8bf4c2b (patch)
treea4de18a51ac37abcf874265bea431154f18cc2ac /src/preprocessing
parentae82eb306143ade54a6f99b2aae0b62b8c77cd35 (diff)
Further simplifications in preparation for removing Expr layer (#5756)
This deletes variable flags from NodeManager::mkVar and moves ExprManager sort flags to NodeManager. These flags are used for determining when a variable or sort should be printed via the old dump infrastructure. The old dump infrastructure is simplified in this PR accordingly. This PR should preserve behavior of the previous dumping with a minor exception that the internal trace "declarations" will also included symbols introduced from define-fun. This will be further refactored later. This is in preparation for removing the includes expr.h/expr_manager.h from node_manager.h.
Diffstat (limited to 'src/preprocessing')
-rw-r--r--src/preprocessing/passes/miplib_trick.cpp2
-rw-r--r--src/preprocessing/passes/miplib_trick.h2
-rw-r--r--src/preprocessing/passes/synth_rew_rules.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/preprocessing/passes/miplib_trick.cpp b/src/preprocessing/passes/miplib_trick.cpp
index 0bb386697..23a17c939 100644
--- a/src/preprocessing/passes/miplib_trick.cpp
+++ b/src/preprocessing/passes/miplib_trick.cpp
@@ -156,7 +156,7 @@ MipLibTrick::~MipLibTrick()
}
}
-void MipLibTrick::nmNotifyNewVar(TNode n, uint32_t flags)
+void MipLibTrick::nmNotifyNewVar(TNode n)
{
if (n.getType().isBoolean())
{
diff --git a/src/preprocessing/passes/miplib_trick.h b/src/preprocessing/passes/miplib_trick.h
index d3cf9da53..f7be87f18 100644
--- a/src/preprocessing/passes/miplib_trick.h
+++ b/src/preprocessing/passes/miplib_trick.h
@@ -32,7 +32,7 @@ class MipLibTrick : public PreprocessingPass, public NodeManagerListener
~MipLibTrick();
// NodeManagerListener callbacks to collect d_boolVars.
- void nmNotifyNewVar(TNode n, uint32_t flags) override;
+ void nmNotifyNewVar(TNode n) override;
void nmNotifyNewSkolem(TNode n,
const std::string& comment,
uint32_t flags) override;
diff --git a/src/preprocessing/passes/synth_rew_rules.cpp b/src/preprocessing/passes/synth_rew_rules.cpp
index ecf1e281d..7b54fee61 100644
--- a/src/preprocessing/passes/synth_rew_rules.cpp
+++ b/src/preprocessing/passes/synth_rew_rules.cpp
@@ -252,7 +252,7 @@ PreprocessingPassResult SynthRewRulesPass::applyInternal(
std::stringstream ss;
ss << "T" << i;
std::string tname = ss.str();
- TypeNode tnu = nm->mkSort(tname, ExprManager::SORT_FLAG_PLACEHOLDER);
+ TypeNode tnu = nm->mkSort(tname, NodeManager::SORT_FLAG_PLACEHOLDER);
cterm_to_utype[ct] = tnu;
unres.insert(tnu);
sdts.push_back(SygusDatatype(tname));
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback