Deleting the eager bitblasting solver if present in TheoryBV.
authorTim King <taking@google.com>
Mon, 26 Sep 2016 03:46:26 +0000 (20:46 -0700)
committerTim King <taking@google.com>
Mon, 26 Sep 2016 03:46:26 +0000 (20:46 -0700)
src/theory/bv/theory_bv.cpp

index f0981044b3362f3a720956414bbc0404d4d76fa0..de596e3d5bdbbfa2dfb220a42fdf0e7ce3876c5c 100644 (file)
@@ -100,8 +100,10 @@ TheoryBV::TheoryBV(context::Context* c, context::UserContext* u,
   d_subtheoryMap[SUB_BITBLAST] = bb_solver;
 }
 
-
 TheoryBV::~TheoryBV() {
+  if (d_eagerSolver) {
+    delete d_eagerSolver;
+  }
   for (unsigned i = 0; i < d_subtheories.size(); ++i) {
     delete d_subtheories[i];
   }