summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/sat/bsat/satSolver.c1
-rw-r--r--src/sat/bsat/satSolver2.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/sat/bsat/satSolver.c b/src/sat/bsat/satSolver.c
index a4bd29cd..188a504f 100644
--- a/src/sat/bsat/satSolver.c
+++ b/src/sat/bsat/satSolver.c
@@ -1035,6 +1035,7 @@ void sat_solver_setnvars(sat_solver* s,int n)
s->tags [var] = 0;
s->orderpos[var] = veci_size(&s->order);
s->reasons [var] = 0;
+ s->model [var] = 0;
/* does not hold because variables enqueued at top level will not be reinserted in the heap
assert(veci_size(&s->order) == var);
diff --git a/src/sat/bsat/satSolver2.c b/src/sat/bsat/satSolver2.c
index 0da59fda..1f46d88c 100644
--- a/src/sat/bsat/satSolver2.c
+++ b/src/sat/bsat/satSolver2.c
@@ -1296,6 +1296,7 @@ void sat_solver2_setnvars(sat_solver2* s,int n)
#else
s->activity[var] = (1<<10);
#endif
+ s->model [var] = 0;
// does not hold because variables enqueued at top level will not be reinserted in the heap
// assert(veci_size(&s->order) == var);
veci_push(&s->order,var);