Skip to content

Commit

Permalink
do not delete reason clauses
Browse files Browse the repository at this point in the history
  • Loading branch information
krobelus committed May 28, 2019
1 parent de8a97c commit e0e1e52
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion minisat/core/Solver.cc
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,10 @@ void Solver::removeSatisfied(vec<CRef>& cs)
for (i = j = 0; i < cs.size(); i++){
Clause& c = ca[cs[i]];
if (satisfied(c))
removeClause(cs[i]);
if (locked(c))
cs[j++] = cs[i];
else
removeClause(cs[i]);
else{
// Trim clause:
assert(value(c[0]) == l_Undef && value(c[1]) == l_Undef);
Expand Down

0 comments on commit e0e1e52

Please sign in to comment.