mirror of
https://github.com/Z3Prover/z3
synced 2025-06-19 20:33:38 +00:00
#6340 again - reduce new assertions in fresh iteration
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
a6a5985f8e
commit
34969b71ee
1 changed files with 25 additions and 17 deletions
|
@ -3202,11 +3202,15 @@ namespace smt {
|
||||||
flet<bool> _internalizing(m_internalizing_assertions, true);
|
flet<bool> _internalizing(m_internalizing_assertions, true);
|
||||||
TRACE("internalize_assertions", tout << "internalize_assertions()...\n";);
|
TRACE("internalize_assertions", tout << "internalize_assertions()...\n";);
|
||||||
timeit tt(get_verbosity_level() >= 100, "smt.preprocessing");
|
timeit tt(get_verbosity_level() >= 100, "smt.preprocessing");
|
||||||
|
unsigned qhead = 0;
|
||||||
|
do {
|
||||||
reduce_assertions();
|
reduce_assertions();
|
||||||
if (get_cancel_flag()) return;
|
if (get_cancel_flag())
|
||||||
|
return;
|
||||||
|
qhead = m_asserted_formulas.get_qhead();
|
||||||
if (!m_asserted_formulas.inconsistent()) {
|
if (!m_asserted_formulas.inconsistent()) {
|
||||||
unsigned qhead = m_asserted_formulas.get_qhead();
|
unsigned sz = m_asserted_formulas.get_num_formulas();
|
||||||
while (qhead < m_asserted_formulas.get_num_formulas()) {
|
while (qhead < sz) {
|
||||||
if (get_cancel_flag()) {
|
if (get_cancel_flag()) {
|
||||||
m_asserted_formulas.commit(qhead);
|
m_asserted_formulas.commit(qhead);
|
||||||
return;
|
return;
|
||||||
|
@ -3221,7 +3225,11 @@ namespace smt {
|
||||||
}
|
}
|
||||||
if (m_asserted_formulas.inconsistent() && !inconsistent()) {
|
if (m_asserted_formulas.inconsistent() && !inconsistent()) {
|
||||||
asserted_inconsistent();
|
asserted_inconsistent();
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
while (qhead < m_asserted_formulas.get_num_formulas());
|
||||||
|
|
||||||
TRACE("internalize_assertions", tout << "after internalize_assertions()...\n";
|
TRACE("internalize_assertions", tout << "after internalize_assertions()...\n";
|
||||||
tout << "inconsistent: " << inconsistent() << "\n";);
|
tout << "inconsistent: " << inconsistent() << "\n";);
|
||||||
TRACE("after_internalize_assertions", display(tout););
|
TRACE("after_internalize_assertions", display(tout););
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue