diff options
author | Dejan Jovanović <dejan@cs.nyu.edu> | 2013-03-26 16:52:21 -0400 |
---|---|---|
committer | Dejan Jovanović <dejan@cs.nyu.edu> | 2013-03-26 16:52:21 -0400 |
commit | 70d1a0171840cd62b5c1d89b875ffb50da216793 (patch) | |
tree | 3c1c68b7e7ba11f7787d253f7d27064d99c956ed /src | |
parent | e586b8cdbed537bd2a6cba01f68eb3b34ecf08d8 (diff) |
getModelValue implementation in bitvectors
Diffstat (limited to 'src')
-rw-r--r-- | src/theory/bv/theory_bv.cpp | 6 | ||||
-rw-r--r-- | src/theory/bv/theory_bv.h | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/theory/bv/theory_bv.cpp b/src/theory/bv/theory_bv.cpp index 57a77c0d2..e28ef3ddf 100644 --- a/src/theory/bv/theory_bv.cpp +++ b/src/theory/bv/theory_bv.cpp @@ -137,6 +137,12 @@ void TheoryBV::collectModelInfo( TheoryModel* m, bool fullModel ){ } +Node TheoryBV::getModelValue(TNode var) { + Assert(!inConflict()); + return d_bitblastSolver.getModelValue(var); +} + + void TheoryBV::propagate(Effort e) { Debug("bitvector") << indent() << "TheoryBV::propagate()" << std::endl; diff --git a/src/theory/bv/theory_bv.h b/src/theory/bv/theory_bv.h index e38f3568c..ffb043bb6 100644 --- a/src/theory/bv/theory_bv.h +++ b/src/theory/bv/theory_bv.h @@ -117,6 +117,8 @@ private: EqualityStatus getEqualityStatus(TNode a, TNode b); + Node getModelValue(TNode var); + inline std::string indent() { std::string indentStr(getSatContext()->getLevel(), ' '); |