diff options
Diffstat (limited to 'src/theory/theory.cpp')
-rw-r--r-- | src/theory/theory.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/theory/theory.cpp b/src/theory/theory.cpp index 340ab2373..ab72bf55f 100644 --- a/src/theory/theory.cpp +++ b/src/theory/theory.cpp @@ -296,6 +296,22 @@ std::pair<bool, Node> Theory::entailmentCheck( return make_pair(false, Node::null()); } +void Theory::addCarePair(TNode t1, TNode t2) { + if (d_careGraph) { + d_careGraph->insert(CarePair(t1, t2, d_id)); + } +} + +void Theory::getCareGraph(CareGraph* careGraph) { + Assert(careGraph != NULL); + + Trace("sharing") << "Theory<" << getId() << ">::getCareGraph()" << std::endl; + TimerStat::CodeTimer computeCareGraphTime(d_computeCareGraphTime); + d_careGraph = careGraph; + computeCareGraph(); + d_careGraph = NULL; +} + EntailmentCheckParameters::EntailmentCheckParameters(TheoryId tid) : d_tid(tid) { } |