diff options
author | lianah <lianahady@gmail.com> | 2013-04-17 15:34:16 -0400 |
---|---|---|
committer | lianah <lianahady@gmail.com> | 2013-04-30 15:54:24 -0400 |
commit | d312565a63e38ad42af1ca1c5d8fb1f49eda8929 (patch) | |
tree | 2b91ebee542ec7026d4ada260d9e3793f8736430 /src/theory/bv/bv_to_bool.h | |
parent | cf99724618884765ce692cec8916d80607de4026 (diff) |
innd examples are solved fast, but destruction assertion fail
Diffstat (limited to 'src/theory/bv/bv_to_bool.h')
-rw-r--r-- | src/theory/bv/bv_to_bool.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/theory/bv/bv_to_bool.h b/src/theory/bv/bv_to_bool.h index 39c6b4251..186f2b317 100644 --- a/src/theory/bv/bv_to_bool.h +++ b/src/theory/bv/bv_to_bool.h @@ -25,11 +25,11 @@ namespace theory { namespace bv { typedef __gnu_cxx::hash_set<TNode, TNodeHashFunction> TNodeSet; -typedef __gnu_cxx::hash_map<TNode, Node, TNodeHashFunction> TNodeNodeMap; +typedef __gnu_cxx::hash_map<Node, Node, TNodeHashFunction> NodeNodeMap; class BvToBoolVisitor { - TNodeNodeMap d_bvToBoolMap; - TNodeNodeMap d_cache; + NodeNodeMap d_bvToBoolMap; + NodeNodeMap d_cache; Node d_one; Node d_zero; @@ -40,14 +40,13 @@ class BvToBoolVisitor { bool isConvertibleBvTerm(TNode node); bool isConvertibleBvAtom(TNode node); Node getBoolForBvTerm(TNode node); - void storeBvToBool(TNode bv_term, TNode bool_term); Node convertBvAtom(TNode node); Node convertBvTerm(TNode node); void check(TNode current, TNode parent); public: typedef Node return_type; - BvToBoolVisitor(TNodeNodeMap& bvToBool) - : d_bvToBoolMap(bvToBool), + BvToBoolVisitor() + : d_bvToBoolMap(), d_cache(), d_one(utils::mkConst(BitVector(1, 1u))), d_zero(utils::mkConst(BitVector(1, 0u))) @@ -56,6 +55,8 @@ public: bool alreadyVisited(TNode current, TNode parent); void visit(TNode current, TNode parent); return_type done(TNode node); + void storeBvToBool(TNode bv_term, TNode bool_term); + bool hasBoolTerm(TNode node); }; |