diff options
author | lianah <lianahady@gmail.com> | 2013-03-26 22:14:24 -0400 |
---|---|---|
committer | lianah <lianahady@gmail.com> | 2013-03-26 22:14:24 -0400 |
commit | 2bed73156740d7e93e303b02319c407a1d587109 (patch) | |
tree | 99876e3263f20b0c507caac27c147a991fc759dd /src/theory/bv/bv_inequality_graph.h | |
parent | 33a5c0897bdbfb8367dfa90342471615908df1bc (diff) | |
parent | 70d1a0171840cd62b5c1d89b875ffb50da216793 (diff) |
added model generation for bv subtheories and bv-inequality solver option
Diffstat (limited to 'src/theory/bv/bv_inequality_graph.h')
-rw-r--r-- | src/theory/bv/bv_inequality_graph.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/theory/bv/bv_inequality_graph.h b/src/theory/bv/bv_inequality_graph.h index b23ea7704..860302aa4 100644 --- a/src/theory/bv/bv_inequality_graph.h +++ b/src/theory/bv/bv_inequality_graph.h @@ -88,11 +88,11 @@ class InequalityGraph : public context::ContextNotifyObj{ {} }; - typedef context::CDHashMap<TermId, ModelValue> Model; + typedef context::CDHashMap<TermId, ModelValue> ModelValues; struct QueueComparator { - const Model* d_model; - QueueComparator(const Model* model) + const ModelValues* d_model; + QueueComparator(const ModelValues* model) : d_model(model) {} bool operator() (TermId left, TermId right) const { @@ -128,7 +128,7 @@ class InequalityGraph : public context::ContextNotifyObj{ std::vector<TNode> d_conflict; bool d_signed; - Model d_modelValues; + ModelValues d_modelValues; void initializeModelValue(TNode node); void setModelValue(TermId term, const ModelValue& mv); ModelValue getModelValue(TermId term) const; @@ -290,7 +290,9 @@ public: * * @return */ - BitVector getValueInModel(TNode a) const; + BitVector getValueInModel(TNode a) const; + + void getAllValuesInModel(std::vector<Node>& assignments); }; } |