Skip to content

Commit

Permalink
More bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
BrunoDutertre committed Dec 31, 2019
1 parent 27dbd38 commit 7655f85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/solvers/cdcl/new_sat_solver.c
Expand Up @@ -5864,7 +5864,7 @@ static inline void pp_push_unit_literal(sat_solver_t *solver, literal_t l) {
static void pp_decrement_occ(sat_solver_t *solver, literal_t l) {
assert(solver->occ[l] > 0);
solver->occ[l] --;
if (solver->occ[l] == 0 && solver->occ[not(l)] > 0 && !lit_is_assigned(solver, l)) {
if (solver->occ[l] == 0 && !lit_is_assigned(solver, l)) {
pp_push_pure_literal(solver, not(l));
}
}
Expand Down Expand Up @@ -6459,7 +6459,7 @@ static void pp_decrement_occ_counts_after_subst(sat_solver_t *solver, literal_t
l = a[i];
assert(solver->occ[l] > 0);
solver->occ[l] --;
if (solver->occ[l] == 0 && solver->occ[not(l)] > 0 && !lit_is_eliminated(solver, l)) {
if (solver->occ[l] == 0 && !lit_is_eliminated(solver, l)) {
vector_push(&solver->subst_pure, not(l));
}
}
Expand Down

0 comments on commit 7655f85

Please sign in to comment.