mirror of
https://github.com/Z3Prover/z3
synced 2025-04-14 21:08:46 +00:00
parent
8bdc8d0e1a
commit
a7bc4719c0
|
@ -532,14 +532,14 @@ void asserted_formulas::propagate_values() {
|
||||||
flush_cache();
|
flush_cache();
|
||||||
|
|
||||||
unsigned num_prop = 0;
|
unsigned num_prop = 0;
|
||||||
unsigned delta_prop = m_formulas.size();
|
unsigned sz = m_formulas.size();
|
||||||
while (!inconsistent() && m_formulas.size()/20 < delta_prop) {
|
unsigned delta_prop = sz;
|
||||||
|
while (!inconsistent() && sz/20 < delta_prop) {
|
||||||
m_expr2depth.reset();
|
m_expr2depth.reset();
|
||||||
m_scoped_substitution.push();
|
m_scoped_substitution.push();
|
||||||
unsigned prop = num_prop;
|
unsigned prop = num_prop;
|
||||||
TRACE("propagate_values", display(tout << "before:\n"););
|
TRACE("propagate_values", display(tout << "before:\n"););
|
||||||
unsigned i = m_qhead;
|
unsigned i = m_qhead;
|
||||||
unsigned sz = m_formulas.size();
|
|
||||||
for (; i < sz; i++) {
|
for (; i < sz; i++) {
|
||||||
prop += propagate_values(i);
|
prop += propagate_values(i);
|
||||||
}
|
}
|
||||||
|
@ -558,6 +558,9 @@ void asserted_formulas::propagate_values() {
|
||||||
TRACE("propagate_values", tout << "after:\n"; display(tout););
|
TRACE("propagate_values", tout << "after:\n"; display(tout););
|
||||||
delta_prop = prop - num_prop;
|
delta_prop = prop - num_prop;
|
||||||
num_prop = prop;
|
num_prop = prop;
|
||||||
|
if (sz <= m_formulas.size())
|
||||||
|
break;
|
||||||
|
sz = m_formulas.size();
|
||||||
}
|
}
|
||||||
TRACE("asserted_formulas", tout << num_prop << "\n";);
|
TRACE("asserted_formulas", tout << num_prop << "\n";);
|
||||||
if (num_prop > 0)
|
if (num_prop > 0)
|
||||||
|
|
Loading…
Reference in a new issue