diff options
author | Tim King <taking@cs.nyu.edu> | 2012-10-19 19:26:31 +0000 |
---|---|---|
committer | Tim King <taking@cs.nyu.edu> | 2012-10-19 19:26:31 +0000 |
commit | 15dd90e7101ae199f15d4ed9976428c93e98cee0 (patch) | |
tree | 89623cf093e5ec013a17d0737b0f6be048ee63b0 /src/theory/theory.cpp | |
parent | 5796f9398adfab80860f17f4c99f143801689d56 (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.cpp | 7 |
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 */ |