summaryrefslogtreecommitdiffstats
path: root/src/sat/bsat/satSolver2.h
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2012-07-29 22:31:00 -0700
committerAlan Mishchenko <alanmi@berkeley.edu>2012-07-29 22:31:00 -0700
commit8982bf58cb8c801bdd6e204d73ac6ed36d98adaa (patch)
treee5708bc3870873f0b901dcf792b6ac311b5aec3c /src/sat/bsat/satSolver2.h
parent5838789ee7d7e1b9bbfdf091e33f6749a9b1286f (diff)
downloadabc-8982bf58cb8c801bdd6e204d73ac6ed36d98adaa.tar.gz
abc-8982bf58cb8c801bdd6e204d73ac6ed36d98adaa.tar.bz2
abc-8982bf58cb8c801bdd6e204d73ac6ed36d98adaa.zip
Reducing memory usage in proof-based abstraction.
Diffstat (limited to 'src/sat/bsat/satSolver2.h')
-rw-r--r--src/sat/bsat/satSolver2.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/sat/bsat/satSolver2.h b/src/sat/bsat/satSolver2.h
index 81ecea76..1682ab6e 100644
--- a/src/sat/bsat/satSolver2.h
+++ b/src/sat/bsat/satSolver2.h
@@ -31,6 +31,7 @@ OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWA
#include "satVec.h"
#include "satClause.h"
#include "misc/vec/vecSet.h"
+#include "satProof2.h"
ABC_NAMESPACE_HEADER_START
@@ -147,10 +148,12 @@ struct sat_solver2_t
veci learnt_live; // remaining clauses after reduce DB
// proof logging
- Vec_Set_t Proofs; // sequence of proof records
+ Vec_Set_t * pPrf1; // sequence of proof records
veci temp_proof; // temporary place to store proofs
int hLearntLast; // in proof-logging mode, the ID of the final conflict clause (conf_final)
int hProofLast; // in proof-logging mode, the ID of the final conflict clause (conf_final)
+ Prf_Man_t * pPrf2; // another proof manager
+ double dPrfMemory; // memory used by the proof-logger
// statistics
stats_t stats;
@@ -234,7 +237,8 @@ static inline void sat_solver2_bookmark(sat_solver2* s)
assert( s->qhead == s->qtail );
s->iVarPivot = s->size;
s->iTrailPivot = s->qhead;
- s->hProofPivot = Vec_SetHandCurrent(&s->Proofs);
+ if ( s->pPrf1 )
+ s->hProofPivot = Vec_SetHandCurrent(s->pPrf1);
Sat_MemBookMark( &s->Mem );
}