mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 04:03:39 +00:00
pre-flatten use list before iterating over m_unsat
select_max_same_sign accesses the use-list which may cause it to be flattened.
This commit is contained in:
parent
e3566288a4
commit
c9ac4d6f75
|
@ -558,6 +558,7 @@ namespace sat {
|
||||||
void ddfw::shift_weights() {
|
void ddfw::shift_weights() {
|
||||||
++m_shifts;
|
++m_shifts;
|
||||||
bool shifted = false;
|
bool shifted = false;
|
||||||
|
flatten_use_list();
|
||||||
for (unsigned to_idx : m_unsat) {
|
for (unsigned to_idx : m_unsat) {
|
||||||
SASSERT(!m_clauses[to_idx].is_true());
|
SASSERT(!m_clauses[to_idx].is_true());
|
||||||
unsigned from_idx = select_max_same_sign(to_idx);
|
unsigned from_idx = select_max_same_sign(to_idx);
|
||||||
|
|
Loading…
Reference in a new issue