diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2012-07-10 01:26:23 -0700 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2012-07-10 01:26:23 -0700 |
commit | 1d441b6489b8b9df53297ab4c115ac86ae0d448c (patch) | |
tree | 6fb41dd27d8ae48d93f71cda4ed56526092c5302 | |
parent | 997e4c77acc191a0d0b9575c435f3618d4f09ebc (diff) | |
download | abc-1d441b6489b8b9df53297ab4c115ac86ae0d448c.tar.gz abc-1d441b6489b8b9df53297ab4c115ac86ae0d448c.tar.bz2 abc-1d441b6489b8b9df53297ab4c115ac86ae0d448c.zip |
Performance bug fix in the SAT solver (clearing variable activity after rollback).
-rw-r--r-- | src/sat/bsat/satSolver2.c | 10 |
1 files changed, 0 insertions, 10 deletions
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; |