diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/aig/gia/giaSatLE.c | 3 | ||||
-rw-r--r-- | src/sat/bsat/satSolver.c | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/aig/gia/giaSatLE.c b/src/aig/gia/giaSatLE.c index c1588571..ec243423 100644 --- a/src/aig/gia/giaSatLE.c +++ b/src/aig/gia/giaSatLE.c @@ -881,7 +881,7 @@ void Sle_ManDeriveResult( Sle_Man_t * p, Vec_Int_t * vEdge2, Vec_Int_t * vMappin if ( !sat_solver_var_value(p->pSat, iObj) ) continue; Vec_IntForEachEntry( vCutFans, iFanin, i ) - if ( sat_solver_var_value(p->pSat, iEdgeVar0 + i) ) + if ( sat_solver_var_value(p->pSat, iFanin) && sat_solver_var_value(p->pSat, iEdgeVar0 + i) ) Vec_IntPushTwo( vEdge2, iFanin, iObj ); } } @@ -1029,6 +1029,7 @@ void Sle_ManExplore( Gia_Man_t * pGia, int nBTLimit, int DelayInit, int fDynamic Vec_IntFree( vEdges2 ); Vec_IntFree( vMapping ); } + Vec_IntFreeP( &p->pGia->vPacking ); Sle_ManStop( p ); } diff --git a/src/sat/bsat/satSolver.c b/src/sat/bsat/satSolver.c index 9d885701..88a05093 100644 --- a/src/sat/bsat/satSolver.c +++ b/src/sat/bsat/satSolver.c @@ -1019,7 +1019,7 @@ sat_solver* sat_solver_new(void) sat_solver* s = (sat_solver*)ABC_CALLOC( char, sizeof(sat_solver)); // Vec_SetAlloc_(&s->Mem, 15); - Sat_MemAlloc_(&s->Mem, 15); + Sat_MemAlloc_(&s->Mem, 17); s->hLearnts = -1; s->hBinary = Sat_MemAppend( &s->Mem, NULL, 2, 0, 0 ); s->binary = clause_read( s, s->hBinary ); |