diff options
Diffstat (limited to 'src/sat/bsat')
-rw-r--r-- | src/sat/bsat/satSolver.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/sat/bsat/satSolver.c b/src/sat/bsat/satSolver.c index f1f6345e..9d885701 100644 --- a/src/sat/bsat/satSolver.c +++ b/src/sat/bsat/satSolver.c @@ -219,8 +219,9 @@ void sat_solver_set_var_activity(sat_solver* s, int * pVars, int nVars) s->var_inc = 1; for ( i = 0; i < nVars; i++ ) { - s->activity[pVars[i]] = nVars-i; - order_update( s, pVars[i] ); + int iVar = pVars ? pVars[i] : i; + s->activity[iVar] = nVars-i; + order_update( s, iVar ); } } |