summaryrefslogtreecommitdiffstats
path: root/src/proof
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2012-01-23 12:21:29 -0800
committerAlan Mishchenko <alanmi@berkeley.edu>2012-01-23 12:21:29 -0800
commit14457af21aeb475b6d3c42ab1926d41ef00d3887 (patch)
tree73bcf26fa9f16d58eebd8539342984abd4a68165 /src/proof
parent3906e37c125bbfba718aa6f4d0d48669dbd238fc (diff)
downloadabc-14457af21aeb475b6d3c42ab1926d41ef00d3887.tar.gz
abc-14457af21aeb475b6d3c42ab1926d41ef00d3887.tar.bz2
abc-14457af21aeb475b6d3c42ab1926d41ef00d3887.zip
Bug fix for incorrect memory allocation in main SAT solver, leading to crashes in 'dsec' (correction to the previous fix).
Diffstat (limited to 'src/proof')
-rw-r--r--src/proof/cec/cecSolve.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/proof/cec/cecSolve.c b/src/proof/cec/cecSolve.c
index 712d5380..e779e68c 100644
--- a/src/proof/cec/cecSolve.c
+++ b/src/proof/cec/cecSolve.c
@@ -377,7 +377,7 @@ void Cec_ManSatSolverRecycle( Cec_ManSat_t * p )
}
p->pSat = sat_solver_new();
sat_solver_setnvars( p->pSat, 1000 );
- p->pSat->factors = ABC_CALLOC( double, 1000 );
+ p->pSat->factors = ABC_CALLOC( double, p->pSat->cap );
// var 0 is not used
// var 1 is reserved for const0 node - add the clause
p->nSatVars = 1;