summaryrefslogtreecommitdiff
path: root/src/theory/bv/bitblast_strategies.cpp
diff options
context:
space:
mode:
authorLiana Hadarean <lianahady@gmail.com>2012-10-03 22:38:37 +0000
committerLiana Hadarean <lianahady@gmail.com>2012-10-03 22:38:37 +0000
commitc7d04993e8d73105d091e0b732ddb63131b431a3 (patch)
tree42c80ecf9990839349310d2baefbd1ab7c543c6d /src/theory/bv/bitblast_strategies.cpp
parentb60ea598f9e45b6b82ea6085e786be394ac9f012 (diff)
implemented collectModelInfo for TheoryBV
Diffstat (limited to 'src/theory/bv/bitblast_strategies.cpp')
-rw-r--r--src/theory/bv/bitblast_strategies.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/theory/bv/bitblast_strategies.cpp b/src/theory/bv/bitblast_strategies.cpp
index 80b689b8c..08bd3475a 100644
--- a/src/theory/bv/bitblast_strategies.cpp
+++ b/src/theory/bv/bitblast_strategies.cpp
@@ -338,9 +338,7 @@ void UndefinedTermBBStrategy(TNode node, Bits& bits, Bitblaster* bb) {
}
void DefaultVarBB (TNode node, Bits& bits, Bitblaster* bb) {
- // Assert (node.getKind() == kind::VARIABLE);
Assert(bits.size() == 0);
-
for (unsigned i = 0; i < utils::getSize(node); ++i) {
bits.push_back(utils::mkBitOf(node, i));
}
@@ -349,6 +347,10 @@ void DefaultVarBB (TNode node, Bits& bits, Bitblaster* bb) {
BVDebug("bitvector-bb") << "theory::bv::DefaultVarBB bitblasting " << node << "\n";
BVDebug("bitvector-bb") << " with bits " << toString(bits);
}
+ // this is not necessairily a variable, but it is a term the theory of bitvectors treads as one
+ // e.g. a select over a bv array
+ bb->storeVariable(node);
+
}
void DefaultConstBB (TNode node, Bits& bits, Bitblaster* bb) {
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback