mirror of
https://github.com/Z3Prover/z3
synced 2025-04-13 12:28:44 +00:00
Check more frequently for cancelation flags to address grep0095.stp.smt2 in issue #178. Z3 spends time in pre-processing simplification, which indicates there is some opportunity to tune this portion of the code
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
424f34d3d9
commit
702af71a2d
|
@ -2773,6 +2773,7 @@ namespace smt {
|
|||
}
|
||||
|
||||
void context::assert_expr_core(expr * e, proof * pr) {
|
||||
if (m_cancel_flag) return;
|
||||
SASSERT(is_well_sorted(m_manager, e));
|
||||
TRACE("begin_assert_expr", tout << mk_pp(e, m_manager) << "\n";);
|
||||
TRACE("begin_assert_expr_ll", tout << mk_ll_pp(e, m_manager) << "\n";);
|
||||
|
@ -2802,6 +2803,7 @@ namespace smt {
|
|||
}
|
||||
|
||||
void context::internalize_assertions() {
|
||||
if (m_cancel_flag) return;
|
||||
TRACE("internalize_assertions", tout << "internalize_assertions()...\n";);
|
||||
timeit tt(get_verbosity_level() >= 100, "smt.preprocessing");
|
||||
reduce_assertions();
|
||||
|
|
|
@ -229,6 +229,9 @@ public:
|
|||
m_ctx->assert_expr(in->form(i));
|
||||
}
|
||||
}
|
||||
if (m_ctx->canceled()) {
|
||||
throw tactic_exception("smt_tactic canceled");
|
||||
}
|
||||
|
||||
lbool r;
|
||||
if (assumptions.empty())
|
||||
|
|
Loading…
Reference in a new issue