From 1d441b6489b8b9df53297ab4c115ac86ae0d448c Mon Sep 17 00:00:00 2001 From: Alan Mishchenko Date: Tue, 10 Jul 2012 01:26:23 -0700 Subject: Performance bug fix in the SAT solver (clearing variable activity after rollback). --- src/sat/bsat/satSolver2.c | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src') diff --git a/src/sat/bsat/satSolver2.c b/src/sat/bsat/satSolver2.c index 45d23548..0e456f46 100644 --- a/src/sat/bsat/satSolver2.c +++ b/src/sat/bsat/satSolver2.c @@ -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; -- cgit v1.2.3