Commit ac409b31 by Bruno Schmitt

Bug fix in analyze_final method.

parent 131c1613
...@@ -362,13 +362,13 @@ static inline void solver_handle_conflict(solver_t *s, unsigned confl_cref) ...@@ -362,13 +362,13 @@ static inline void solver_handle_conflict(solver_t *s, unsigned confl_cref)
static inline void solver_analyze_final(solver_t *s, unsigned lit) static inline void solver_analyze_final(solver_t *s, unsigned lit)
{ {
unsigned i; int i;
vec_uint_push_back(s->final_conflict, lit); vec_uint_push_back(s->final_conflict, lit);
if (solver_dlevel(s) == 0) if (solver_dlevel(s) == 0)
return; return;
vec_char_assign(s->seen, lit2var(lit), 1); vec_char_assign(s->seen, lit2var(lit), 1);
for (i = vec_uint_size(s->trail) - 1; i <= vec_uint_at(s->trail_lim, 0); i--) { for (i = (int) vec_uint_size(s->trail) - 1; i >= (int) vec_uint_at(s->trail_lim, 0); i--) {
unsigned var = lit2var(vec_uint_at(s->trail, i)); unsigned var = lit2var(vec_uint_at(s->trail, i));
if (vec_char_at(s->seen, var)) { if (vec_char_at(s->seen, var)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment