mirror of
https://github.com/Z3Prover/z3
synced 2025-04-27 10:55:50 +00:00
updates to resource exceptions, update master possibly handle pull request issue
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
3ff7283f94
commit
a7e2fb31e3
24 changed files with 38 additions and 33 deletions
|
@ -36,7 +36,7 @@ struct cofactor_elim_term_ite::imp {
|
|||
if (memory::get_allocation_size() > m_max_memory)
|
||||
throw tactic_exception(TACTIC_MAX_MEMORY_MSG);
|
||||
if (m.canceled())
|
||||
throw tactic_exception(TACTIC_CANCELED_MSG);
|
||||
throw tactic_exception(m.limit().get_cancel_msg());
|
||||
}
|
||||
|
||||
// Collect atoms that contain term if-then-else
|
||||
|
|
|
@ -96,7 +96,7 @@ struct ctx_simplify_tactic::imp {
|
|||
if (memory::get_allocation_size() > m_max_memory)
|
||||
throw tactic_exception(TACTIC_MAX_MEMORY_MSG);
|
||||
if (m.canceled())
|
||||
throw tactic_exception(TACTIC_CANCELED_MSG);
|
||||
throw tactic_exception(m.limit().get_cancel_msg());
|
||||
}
|
||||
|
||||
bool shared(expr * t) const {
|
||||
|
|
|
@ -94,7 +94,7 @@ struct reduce_args_tactic::imp {
|
|||
|
||||
void checkpoint() {
|
||||
if (m_manager.canceled())
|
||||
throw tactic_exception(TACTIC_CANCELED_MSG);
|
||||
throw tactic_exception(m_manager.limit().get_cancel_msg());
|
||||
cooperate("reduce-args");
|
||||
}
|
||||
|
||||
|
|
|
@ -77,8 +77,8 @@ class solve_eqs_tactic : public tactic {
|
|||
|
||||
void checkpoint() {
|
||||
if (m().canceled())
|
||||
throw tactic_exception(TACTIC_CANCELED_MSG);
|
||||
cooperate("solve-eqs");
|
||||
throw tactic_exception(m().limit().get_cancel_msg());
|
||||
cooperate("solve-eqs");
|
||||
}
|
||||
|
||||
// Check if the number of occurrences of t is below the specified threshold :solve-eqs-max-occs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue