diff options
author | Tim King <taking@google.com> | 2017-03-27 10:02:11 -0700 |
---|---|---|
committer | Tim King <taking@google.com> | 2017-03-27 10:02:11 -0700 |
commit | 09d14ac7f81111882327cb168f100e9f998611ac (patch) | |
tree | 688ec6a2b884b26a28b74c3f3a07fe74ffccce16 /src/theory/theory.cpp | |
parent | 7b89724488085d7eed3e37520ca11d8cd1e18120 (diff) |
Moving the CareGraph into its own file.
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) { } |