Commit a2df3318 by Alan Mishchenko

Variable timeframe abstraction.

parent 7a87f20c
...@@ -1410,7 +1410,6 @@ int Gia_VtaPerform( Gia_Man_t * pAig, Gia_ParVta_t * pPars ) ...@@ -1410,7 +1410,6 @@ int Gia_VtaPerform( Gia_Man_t * pAig, Gia_ParVta_t * pPars )
Vga_ManRollBack( p, nObjOld ); Vga_ManRollBack( p, nObjOld );
Vec_IntShrink( p->vCla2Var, (int)p->pSat->stats.clauses+1 ); Vec_IntShrink( p->vCla2Var, (int)p->pSat->stats.clauses+1 );
// load this timeframe // load this timeframe
nObjOld = p->nObjs;
Vga_ManLoadSlice( p, vCore, 0 ); Vga_ManLoadSlice( p, vCore, 0 );
Vec_IntFree( vCore ); Vec_IntFree( vCore );
} }
......
...@@ -1511,16 +1511,6 @@ void sat_solver2_rollback( sat_solver2* s ) ...@@ -1511,16 +1511,6 @@ void sat_solver2_rollback( sat_solver2* s )
pArray[j++] = pArray[k]; pArray[j++] = pArray[k];
veci_resize(&s->wlists[i],j); veci_resize(&s->wlists[i],j);
} }
// compact units
if ( s->fProofLogging ) {
for ( i = 0; i < s->size; i++ )
if ( s->units[i] && !clause_is_used(s, s->units[i]) )
{
var_set_value(s, i, varX);
s->reasons[i] = 0;
s->units[i] = 0;
}
}
} }
// reset implication queue // reset implication queue
assert( (&s->trail_lim)->ptr[0] >= s->iSimpPivot ); assert( (&s->trail_lim)->ptr[0] >= s->iSimpPivot );
...@@ -1548,6 +1538,20 @@ void sat_solver2_rollback( sat_solver2* s ) ...@@ -1548,6 +1538,20 @@ void sat_solver2_rollback( sat_solver2* s )
// reset watcher lists // reset watcher lists
for ( i = 2*s->iVarPivot; i < 2*s->size; i++ ) for ( i = 2*s->iVarPivot; i < 2*s->size; i++ )
s->wlists[i].size = 0; s->wlists[i].size = 0;
for ( i = s->iVarPivot; i < s->size; i++ )
{
*((int*)s->vi + i) = 0;
s->levels [i] = 0;
s->assigns [i] = varX;
s->reasons [i] = 0;
s->units [i] = 0;
#ifdef USE_FLOAT_ACTIVITY2
s->activity[i] = 0;
#else
s->activity[i] = (1<<10);
#endif
s->model [i] = 0;
}
s->size = s->iVarPivot; s->size = s->iVarPivot;
// initialize other vars // initialize other vars
if ( s->size == 0 ) if ( s->size == 0 )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment