From: trevor_hansen Date: Wed, 23 Jun 2010 14:04:41 +0000 (+0000) Subject: Reduce memory usage. Clear out the caches from the bvsolver before calling the SAT... X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=2a013fa64e5daf71276d521bb894803b0eb900cc;p=francis%2Fstp.git Reduce memory usage. Clear out the caches from the bvsolver before calling the SAT solver. git-svn-id: https://stp-fast-prover.svn.sourceforge.net/svnroot/stp-fast-prover/trunk/stp@865 e59a4935-1847-0410-ae03-e826735625c1 --- diff --git a/src/STPManager/STP.cpp b/src/STPManager/STP.cpp index 346bc15..3fe4c0a 100644 --- a/src/STPManager/STP.cpp +++ b/src/STPManager/STP.cpp @@ -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,