3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-19 01:32:17 +00:00

Fixed infinite loop bugs in blocked clause retention. Added option to

disable incremental sat solver
This commit is contained in:
Miguel Angelo Da Terra Neves 2017-10-24 13:51:27 -07:00
parent 63545c1e7b
commit 80041d7131
3 changed files with 12 additions and 5 deletions

View file

@ -1044,6 +1044,7 @@ namespace sat {
clause_use_list::iterator it = occs.mk_iterator();
while (!it.at_end()) {
clause & c = it.curr();
it.next();
if (c.is_blocked()) continue;
m_counter -= c.size();
SASSERT(c.contains(l));
@ -1053,7 +1054,6 @@ namespace sat {
s.m_num_blocked_clauses++;
}
s.unmark_all(c);
it.next();
}
for (clause* c : m_to_remove)
s.block_clause(*c);
@ -1086,6 +1086,7 @@ namespace sat {
while (!it.at_end()) {
bool tautology = false;
clause & c = it.curr();
it.next();
if (c.is_blocked()) continue;
for (literal lit : c) {
if (s.is_marked(~lit) && lit != ~l) {
@ -1110,7 +1111,6 @@ namespace sat {
if (j == 0) return false;
}
}
it.next();
}
return first;
}
@ -1360,6 +1360,7 @@ namespace sat {
clause_use_list::iterator it = neg_occs.mk_iterator();
while (!it.at_end()) {
clause & c = it.curr();
it.next();
if (c.is_blocked()) continue;
m_counter -= c.size();
unsigned sz = c.size();
@ -1370,7 +1371,6 @@ namespace sat {
}
if (i == sz)
return false;
it.next();
}
if (s.s.m_ext) {