mirror of https://github.com/YosysHQ/abc.git
Performance bug fix in the SAT solver (clearing variable activity after rollback).
This commit is contained in:
parent
6ba6c3279a
commit
997e4c77ac
|
|
@ -1574,8 +1574,15 @@ void sat_solver2_rollback( sat_solver2* s )
|
|||
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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue