summaryrefslogtreecommitdiff
path: root/src/theory/theory.cpp
diff options
context:
space:
mode:
authorTim King <taking@cs.nyu.edu>2012-10-19 19:26:31 +0000
committerTim King <taking@cs.nyu.edu>2012-10-19 19:26:31 +0000
commit15dd90e7101ae199f15d4ed9976428c93e98cee0 (patch)
tree89623cf093e5ec013a17d0737b0f6be048ee63b0 /src/theory/theory.cpp
parent5796f9398adfab80860f17f4c99f143801689d56 (diff)
Fix for model building with shared terms for arithmetic.
(this commit was certified error- and warning-free by the test-and-commit script.)
Diffstat (limited to 'src/theory/theory.cpp')
-rw-r--r--src/theory/theory.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/theory/theory.cpp b/src/theory/theory.cpp
index cdad1e19c..43574f6e4 100644
--- a/src/theory/theory.cpp
+++ b/src/theory/theory.cpp
@@ -237,6 +237,13 @@ int Instantiator::doInstantiation(Node f, Theory::Effort effort, int e ) {
// }
//}
+std::hash_set<TNode, TNodeHashFunction> Theory::currentlySharedTerms() const{
+ std::hash_set<TNode, TNodeHashFunction> currentlyShared;
+ for(shared_terms_iterator i = shared_terms_begin(), i_end = shared_terms_end(); i != i_end; ++i){
+ currentlyShared.insert (*i);
+ }
+ return currentlyShared;
+}
}/* CVC4::theory namespace */
}/* CVC4 namespace */
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback