summaryrefslogtreecommitdiff
path: root/src/theory/theory_inference.cpp
diff options
context:
space:
mode:
authorGereon Kremer <gkremer@stanford.edu>2021-02-11 21:25:50 +0100
committerGitHub <noreply@github.com>2021-02-11 21:25:50 +0100
commite8333750e5932ab5ce9a8a491b53aef4ffa4b0aa (patch)
treea6de942fd32afb4dcb67d33884cdff7252c6f14f /src/theory/theory_inference.cpp
parentf5486884229348516ac26300273e4f5458a74208 (diff)
Make most methods of TheoryInferenceManager expect an InferenceId. (#5897)
This PR makes most methods of the TheoryInferenceManager expect an InferenceId. All classes that inherit from TheoryInferenceManager are adapted accordingly and InferenceIds are passed everywhere. In some cases, there are no appropriate InferenceIds yet. We use InferenceId::UNKNOWN for the time being and introduce proper values in future PRs. The InferenceIds are not yet used, but will be used for statistics and debug output.
Diffstat (limited to 'src/theory/theory_inference.cpp')
-rw-r--r--src/theory/theory_inference.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/theory/theory_inference.cpp b/src/theory/theory_inference.cpp
index f64b88daa..8ccbb7e1f 100644
--- a/src/theory/theory_inference.cpp
+++ b/src/theory/theory_inference.cpp
@@ -34,7 +34,7 @@ bool SimpleTheoryLemma::process(TheoryInferenceManager* im, bool asLemma)
Assert(!d_node.isNull());
Assert(asLemma);
// send (trusted) lemma on the output channel with property p
- return im->trustedLemma(TrustNode::mkTrustLemma(d_node, d_pg), d_property);
+ return im->trustedLemma(TrustNode::mkTrustLemma(d_node, d_pg), getId(), d_property);
}
SimpleTheoryInternalFact::SimpleTheoryInternalFact(InferenceId id,
@@ -54,11 +54,11 @@ bool SimpleTheoryInternalFact::process(TheoryInferenceManager* im, bool asLemma)
Assert(atom.getKind() != NOT && atom.getKind() != AND);
if (d_pg != nullptr)
{
- im->assertInternalFact(atom, polarity, {d_exp}, d_pg);
+ im->assertInternalFact(atom, polarity, getId(), {d_exp}, d_pg);
}
else
{
- im->assertInternalFact(atom, polarity, d_exp);
+ im->assertInternalFact(atom, polarity, getId(), d_exp);
}
return true;
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback