3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-05-10 09:15:47 +00:00
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2022-09-13 17:01:45 -07:00
parent c30b884247
commit fd5448d26b
4 changed files with 16 additions and 8 deletions

View file

@ -3198,14 +3198,15 @@ namespace smt {
void context::internalize_assertions() {
if (get_cancel_flag()) return;
if (m_internalizing_assertions) return;
flet<bool> _internalizing(m_internalizing_assertions, true);
TRACE("internalize_assertions", tout << "internalize_assertions()...\n";);
timeit tt(get_verbosity_level() >= 100, "smt.preprocessing");
reduce_assertions();
if (get_cancel_flag()) return;
if (!m_asserted_formulas.inconsistent()) {
unsigned sz = m_asserted_formulas.get_num_formulas();
unsigned qhead = m_asserted_formulas.get_qhead();
while (qhead < sz) {
while (qhead < m_asserted_formulas.get_num_formulas()) {
if (get_cancel_flag()) {
m_asserted_formulas.commit(qhead);
return;