diff options
author | Dejan Jovanović <dejan@cs.nyu.edu> | 2013-03-26 16:47:47 -0400 |
---|---|---|
committer | Dejan Jovanović <dejan@cs.nyu.edu> | 2013-03-26 16:47:47 -0400 |
commit | e586b8cdbed537bd2a6cba01f68eb3b34ecf08d8 (patch) | |
tree | ca7be72bdc2c95dd196885d97f029da6e3c2ee13 /src/theory/theory_engine.cpp | |
parent | e0cee0f58e1f542a598f2543231c5a8417761d1f (diff) |
adding
* getModelValue to valuation
* getModelValue to theory engine
* getModelValue to theory
implemented getModelValue in bitvector
the purpose of getModelValue is to ask for a concrete value of a shared term
Diffstat (limited to 'src/theory/theory_engine.cpp')
-rw-r--r-- | src/theory/theory_engine.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/theory/theory_engine.cpp b/src/theory/theory_engine.cpp index f7f689850..b89ca8fa4 100644 --- a/src/theory/theory_engine.cpp +++ b/src/theory/theory_engine.cpp @@ -1129,6 +1129,11 @@ theory::EqualityStatus TheoryEngine::getEqualityStatus(TNode a, TNode b) { return theoryOf(Theory::theoryOf(a.getType()))->getEqualityStatus(a, b); } +Node TheoryEngine::getModelValue(TNode var) { + Assert(d_sharedTerms.isShared(var)); + return theoryOf(Theory::theoryOf(var.getType()))->getModelValue(var); +} + static Node mkExplanation(const std::vector<NodeTheoryPair>& explanation) { std::set<TNode> all; |