diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2012-01-22 22:24:23 -0800 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2012-01-22 22:24:23 -0800 |
commit | 3906e37c125bbfba718aa6f4d0d48669dbd238fc (patch) | |
tree | 6f8c3275b1783fb065d453940c47b4d023457fd8 /src/proof/cec | |
parent | fb918249ca73beed90365655619fec0f530c5700 (diff) | |
download | abc-3906e37c125bbfba718aa6f4d0d48669dbd238fc.tar.gz abc-3906e37c125bbfba718aa6f4d0d48669dbd238fc.tar.bz2 abc-3906e37c125bbfba718aa6f4d0d48669dbd238fc.zip |
Bug fix for incorrect memory allocation in main SAT solver, leading to crashes in 'dsec'.
Diffstat (limited to 'src/proof/cec')
-rw-r--r-- | src/proof/cec/cecSolve.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/proof/cec/cecSolve.c b/src/proof/cec/cecSolve.c index bd7202e4..712d5380 100644 --- a/src/proof/cec/cecSolve.c +++ b/src/proof/cec/cecSolve.c @@ -376,8 +376,8 @@ void Cec_ManSatSolverRecycle( Cec_ManSat_t * p ) sat_solver_delete( p->pSat ); } p->pSat = sat_solver_new(); - p->pSat->factors = ABC_CALLOC( double, 1 ); sat_solver_setnvars( p->pSat, 1000 ); + p->pSat->factors = ABC_CALLOC( double, 1000 ); // var 0 is not used // var 1 is reserved for const0 node - add the clause p->nSatVars = 1; |