mirror of
https://github.com/Z3Prover/z3
synced 2025-07-19 10:52:02 +00:00
fix updates to cce
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
2d0f80f78e
commit
2739342aba
16 changed files with 248 additions and 254 deletions
|
@ -71,29 +71,23 @@ namespace sat {
|
|||
}
|
||||
|
||||
void erase_ternary_watch(watch_list& wlist, literal l1, literal l2) {
|
||||
watched w(l1, l2);
|
||||
watch_list::iterator it = wlist.begin(), end = wlist.end();
|
||||
watch_list::iterator it2 = it;
|
||||
bool found = false;
|
||||
for (; it != end; ++it) {
|
||||
if (it->is_ternary_clause() && it->get_literal1() == l1 && it->get_literal2() == l2) {
|
||||
if (!found && w == *it) {
|
||||
found = true;
|
||||
continue;
|
||||
}
|
||||
*it2 = *it;
|
||||
++it2;
|
||||
else {
|
||||
*it2 = *it;
|
||||
++it2;
|
||||
}
|
||||
}
|
||||
wlist.set_end(it2);
|
||||
VERIFY(found);
|
||||
}
|
||||
|
||||
void set_ternary_learned(watch_list& wlist, literal l1, literal l2, bool learned) {
|
||||
for (watched& w : wlist) {
|
||||
if (w.is_ternary_clause() && w.get_literal1() == l1 && w.get_literal2() == l2) {
|
||||
w.set_learned(learned);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void conflict_cleanup(watch_list::iterator it, watch_list::iterator it2, watch_list& wlist) {
|
||||
watch_list::iterator end = wlist.end();
|
||||
for (; it != end; ++it, ++it2)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue