Commit 1d441b64 by Alan Mishchenko

Performance bug fix in the SAT solver (clearing variable activity after rollback).

parent 997e4c77
......@@ -1573,16 +1573,6 @@ void sat_solver2_rollback( sat_solver2* s )
// reset watcher lists
for ( i = 2*s->iVarPivot; i < 2*s->size; i++ )
s->wlists[i].size = 0;
// clear variable activity
#ifdef USE_FLOAT_ACTIVITY2
for ( i = s->iVarPivot; i < s->size; i++ )
s->activity[i] = 0;
#else
for ( i = s->iVarPivot; i < s->size; i++ )
s->activity[i] = (1<<10);
#endif
// initialize other vars
s->size = s->iVarPivot;
......
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