summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLiana Hadarean <lianahady@gmail.com>2013-07-16 17:59:31 -0500
committerLiana Hadarean <lianahady@gmail.com>2013-07-16 17:59:31 -0500
commitcffc449795c777217c6412998c7900ad80c389e8 (patch)
tree88eb1604e6af89fdc0ba0b79e41d562eab7cb7ed
parent0ac27cd827035835a176a7e599530231386412cb (diff)
fixed seg fault when bv equality is turned off
-rw-r--r--src/theory/bv/theory_bv.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/theory/bv/theory_bv.cpp b/src/theory/bv/theory_bv.cpp
index 224359952..38d3a2f5e 100644
--- a/src/theory/bv/theory_bv.cpp
+++ b/src/theory/bv/theory_bv.cpp
@@ -72,7 +72,9 @@ TheoryBV::~TheoryBV() {
}
void TheoryBV::setMasterEqualityEngine(eq::EqualityEngine* eq) {
- dynamic_cast<CoreSolver*>(d_subtheoryMap[SUB_CORE])->setMasterEqualityEngine(eq);
+ if (options::bvEquality()) {
+ dynamic_cast<CoreSolver*>(d_subtheoryMap[SUB_CORE])->setMasterEqualityEngine(eq);
+ }
}
TheoryBV::Statistics::Statistics():
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback