summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLiana Hadarean <lianahady@gmail.com>2015-08-24 11:46:07 +0100
committerLiana Hadarean <lianahady@gmail.com>2015-08-24 17:50:49 +0100
commit531e7931a33079c4f1213ac56d285c578710ed49 (patch)
treeb259d0df5de49f56ef2dd576c7de88cb41ad6fed
parentd455be07def0b09c3eadbe4e602950fddd4aec1c (diff)
Fix for bv core cardinality lemma generation
-rw-r--r--src/theory/bv/bv_subtheory_core.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/theory/bv/bv_subtheory_core.cpp b/src/theory/bv/bv_subtheory_core.cpp
index 13c31463b..9b8e0677e 100644
--- a/src/theory/bv/bv_subtheory_core.cpp
+++ b/src/theory/bv/bv_subtheory_core.cpp
@@ -276,6 +276,11 @@ void CoreSolver::buildModel() {
for (unsigned j = i + 1; j < representatives.size(); ++j) {
TNode a = representatives[i];
TNode b = representatives[j];
+ if (a.getKind() == kind::CONST_BITVECTOR &&
+ b.getKind() == kind::CONST_BITVECTOR) {
+ Assert (a != b);
+ continue;
+ }
if (utils::getSize(a) == utils::getSize(b)) {
equalities.push_back(utils::mkNode(kind::EQUAL, a, b));
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback