]> git.unchartedbackwaters.co.uk Git - francis/stp.git/commitdiff
Reduce memory usage. Clear out the caches from the bvsolver before calling the SAT...
authortrevor_hansen <trevor_hansen@e59a4935-1847-0410-ae03-e826735625c1>
Wed, 23 Jun 2010 14:04:41 +0000 (14:04 +0000)
committertrevor_hansen <trevor_hansen@e59a4935-1847-0410-ae03-e826735625c1>
Wed, 23 Jun 2010 14:04:41 +0000 (14:04 +0000)
git-svn-id: https://stp-fast-prover.svn.sourceforge.net/svnroot/stp-fast-prover/trunk/stp@865 e59a4935-1847-0410-ae03-e826735625c1

src/STPManager/STP.cpp

index 346bc15cf14694861cb07623d5e444e7d9ca8b0a..3fe4c0a149ab9eabf49b059fbfe7574ed4910b21 100644 (file)
@@ -193,6 +193,9 @@ namespace BEEV {
 
     simp->ClearCaches();
     bm->ClearAllTables();
+    // Deleting it clears out all the buckets associated with hashmaps etc. too.
+    delete bvsolver;
+    bvsolver = new BVSolver(bm,simp);
 
     res = 
       Ctr_Example->CallSAT_ResultCheck(NewSolver,