Bug fix in the recent changes to the SAT solver.

This commit is contained in:
Alan Mishchenko 2012-07-09 22:44:38 -07:00
parent b2f1d21d37
commit d46c49088d
1 changed files with 3 additions and 0 deletions

View File

@ -1092,11 +1092,14 @@ void sat_solver_rollback( sat_solver* s )
s->hBinary = Sat_MemAppend( &s->Mem, NULL, 2, 0 );
s->binary = clause_read( s, s->hBinary );
veci_resize(&s->act_clas, 0);
veci_resize(&s->trail_lim, 0);
veci_resize(&s->order, 0);
for ( i = 0; i < s->size*2; i++ )
s->wlists[i].size = 0;
s->nLearntMax = s->nLearntStart;
// initialize other vars
s->size = 0;
// s->cap = 0;