3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-06-19 12:23:38 +00:00

#6340 again - reduce new assertions in fresh iteration

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2022-09-13 19:58:32 -07:00
parent a6a5985f8e
commit 34969b71ee

View file

@ -3202,11 +3202,15 @@ namespace smt {
flet<bool> _internalizing(m_internalizing_assertions, true);
TRACE("internalize_assertions", tout << "internalize_assertions()...\n";);
timeit tt(get_verbosity_level() >= 100, "smt.preprocessing");
unsigned qhead = 0;
do {
reduce_assertions();
if (get_cancel_flag()) return;
if (get_cancel_flag())
return;
qhead = m_asserted_formulas.get_qhead();
if (!m_asserted_formulas.inconsistent()) {
unsigned qhead = m_asserted_formulas.get_qhead();
while (qhead < m_asserted_formulas.get_num_formulas()) {
unsigned sz = m_asserted_formulas.get_num_formulas();
while (qhead < sz) {
if (get_cancel_flag()) {
m_asserted_formulas.commit(qhead);
return;
@ -3221,7 +3225,11 @@ namespace smt {
}
if (m_asserted_formulas.inconsistent() && !inconsistent()) {
asserted_inconsistent();
break;
}
}
while (qhead < m_asserted_formulas.get_num_formulas());
TRACE("internalize_assertions", tout << "after internalize_assertions()...\n";
tout << "inconsistent: " << inconsistent() << "\n";);
TRACE("after_internalize_assertions", display(tout););