Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
add new clauses created during propagation to use-list
  • Loading branch information
NikolajBjorner committed Apr 2, 2022
1 parent 4cc3327 commit 97115e5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/sat/sat_simplifier.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -652,6 +652,7 @@ namespace sat {

inline void simplifier::propagate_unit(literal l) {
unsigned old_trail_sz = s.m_trail.size();
unsigned num_clauses = s.m_clauses.size();
s.assign_scoped(l);
s.propagate_core(false); // must not use propagate(), since s.m_clauses is not in a consistent state.
if (s.inconsistent())
Expand All @@ -672,6 +673,8 @@ namespace sat {
}
cs.reset();
}
for (unsigned i = num_clauses; i < s.m_clauses.size(); ++i)
m_use_list.insert(*s.m_clauses[i]);
}

void simplifier::elim_lit(clause & c, literal l) {
Expand Down

0 comments on commit 97115e5

Please sign in to comment.