diff options
author | Liana Hadarean <lianahady@gmail.com> | 2013-07-16 17:59:31 -0500 |
---|---|---|
committer | Liana Hadarean <lianahady@gmail.com> | 2013-07-16 17:59:31 -0500 |
commit | cffc449795c777217c6412998c7900ad80c389e8 (patch) | |
tree | 88eb1604e6af89fdc0ba0b79e41d562eab7cb7ed /src | |
parent | 0ac27cd827035835a176a7e599530231386412cb (diff) |
fixed seg fault when bv equality is turned off
Diffstat (limited to 'src')
-rw-r--r-- | src/theory/bv/theory_bv.cpp | 4 |
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(): |