summaryrefslogtreecommitdiff
path: root/src/preprocessing/preprocessing_pass_context.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/preprocessing/preprocessing_pass_context.cpp')
-rw-r--r--src/preprocessing/preprocessing_pass_context.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/preprocessing/preprocessing_pass_context.cpp b/src/preprocessing/preprocessing_pass_context.cpp
index eaccce1a9..b21fcb261 100644
--- a/src/preprocessing/preprocessing_pass_context.cpp
+++ b/src/preprocessing/preprocessing_pass_context.cpp
@@ -30,6 +30,9 @@ PreprocessingPassContext::PreprocessingPassContext(
: d_smt(smt),
d_env(env),
d_circuitPropagator(circuitPropagator),
+ d_llm(env.getTopLevelSubstitutions(),
+ env.getUserContext(),
+ env.getProofNodeManager()),
d_symsInAssertions(env.getUserContext())
{
}
@@ -67,6 +70,16 @@ void PreprocessingPassContext::recordSymbolsInAssertions(
}
}
+void PreprocessingPassContext::notifyLearnedLiteral(TNode lit)
+{
+ d_llm.notifyLearnedLiteral(lit);
+}
+
+std::vector<Node> PreprocessingPassContext::getLearnedLiterals()
+{
+ return d_llm.getLearnedLiterals();
+}
+
void PreprocessingPassContext::addSubstitution(const Node& lhs,
const Node& rhs,
ProofGenerator* pg)
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback