fixed seg fault when bv equality is turned off
authorLiana Hadarean <lianahady@gmail.com>
Tue, 16 Jul 2013 22:59:31 +0000 (17:59 -0500)
committerLiana Hadarean <lianahady@gmail.com>
Tue, 16 Jul 2013 22:59:31 +0000 (17:59 -0500)
src/theory/bv/theory_bv.cpp

index 224359952aeacd0da62d20f508081980ae640f18..38d3a2f5e09d54d8053b30572d39d054f054e9a6 100644 (file)
@@ -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():