From 2a013fa64e5daf71276d521bb894803b0eb900cc Mon Sep 17 00:00:00 2001 From: trevor_hansen Date: Wed, 23 Jun 2010 14:04:41 +0000 Subject: [PATCH] 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 --- src/STPManager/STP.cpp | 3 +++ 1 file changed, 3 insertions(+) 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, -- 2.47.3