Skip to content

Commit

Permalink
bypass replaying new clause within propagation
Browse files Browse the repository at this point in the history
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
  • Loading branch information
NikolajBjorner committed Feb 4, 2024
1 parent 3b90816 commit 3cec3fc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/smt/theory_user_propagator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,9 @@ void theory_user_propagator::propagate_consequence(prop_info const& prop) {
for (auto lit : m_lits)
clause.push_back(ctx.literal2expr(lit));
m_clauses_to_replay.push_back(clause);
if (m_replay_qhead + 1 < m_clauses_to_replay.size())
std::swap(m_clauses_to_replay[m_replay_qhead], m_clauses_to_replay[m_clauses_to_replay.size()-1]);
++m_replay_qhead;
}
else {
ctx.mk_th_lemma(get_id(), m_lits);
Expand Down

0 comments on commit 3cec3fc

Please sign in to comment.