3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-24 17:45:32 +00:00
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2021-04-14 04:53:13 -07:00
parent 8c9aae5640
commit de66c12b93

View file

@ -445,10 +445,7 @@ namespace polysat {
}
void solver::backtrack(unsigned i, scoped_ptr<constraint>& lemma) {
if (lemma) {
m_conflict.push_back(lemma.get());
add_lemma(lemma.detach());
}
add_lemma(lemma.detach());
do {
auto v = m_search[i].first;
if (!is_marked(v))
@ -580,6 +577,8 @@ namespace polysat {
}
void solver::add_lemma(constraint* c) {
if (!c)
return;
add_watch(*c);
m_redundant.push_back(c);
for (unsigned i = m_redundant.size() - 1; i-- > 0; ) {