From e1b51d1863a974f7be203a3cc46727575045e3bd Mon Sep 17 00:00:00 2001 From: Alan Mishchenko Date: Wed, 15 Jun 2016 18:47:10 -0700 Subject: Experiments with edge-based mapping. --- src/sat/bsat/satSolver.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/sat/bsat') 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 ); } } -- cgit v1.2.3