mirror of
https://github.com/Z3Prover/z3
synced 2025-06-06 06:03:23 +00:00
throw from push #4425
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
b013df9a9f
commit
9f8887cc2e
1 changed files with 4 additions and 2 deletions
|
@ -2846,11 +2846,12 @@ namespace smt {
|
||||||
}
|
}
|
||||||
|
|
||||||
void context::push() {
|
void context::push() {
|
||||||
TRACE("unit_subsumption_bug", display(tout << "context::push()\n"););
|
|
||||||
pop_to_base_lvl();
|
pop_to_base_lvl();
|
||||||
setup_context(false);
|
setup_context(false);
|
||||||
bool was_consistent = !inconsistent();
|
bool was_consistent = !inconsistent();
|
||||||
internalize_assertions(); // internalize assertions before invoking m_asserted_formulas.push_scope
|
internalize_assertions(); // internalize assertions before invoking m_asserted_formulas.push_scope
|
||||||
|
if (!m.inc())
|
||||||
|
throw default_exception("push canceled");
|
||||||
scoped_suspend_rlimit _suspend_cancel(m.limit());
|
scoped_suspend_rlimit _suspend_cancel(m.limit());
|
||||||
propagate();
|
propagate();
|
||||||
if (was_consistent && inconsistent() && !m_asserted_formulas.inconsistent()) {
|
if (was_consistent && inconsistent() && !m_asserted_formulas.inconsistent()) {
|
||||||
|
@ -3084,6 +3085,7 @@ namespace smt {
|
||||||
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");
|
||||||
reduce_assertions();
|
reduce_assertions();
|
||||||
|
if (get_cancel_flag()) return;
|
||||||
if (!m_asserted_formulas.inconsistent()) {
|
if (!m_asserted_formulas.inconsistent()) {
|
||||||
unsigned sz = m_asserted_formulas.get_num_formulas();
|
unsigned sz = m_asserted_formulas.get_num_formulas();
|
||||||
unsigned qhead = m_asserted_formulas.get_qhead();
|
unsigned qhead = m_asserted_formulas.get_qhead();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue