mirror of
https://github.com/Z3Prover/z3
synced 2025-04-29 03:45:51 +00:00
parent
0b856638e9
commit
426e4cc75c
65 changed files with 135 additions and 146 deletions
|
@ -33,8 +33,7 @@ struct cofactor_elim_term_ite::imp {
|
|||
void checkpoint() {
|
||||
if (memory::get_allocation_size() > m_max_memory)
|
||||
throw tactic_exception(TACTIC_MAX_MEMORY_MSG);
|
||||
if (m.canceled())
|
||||
throw tactic_exception(m.limit().get_cancel_msg());
|
||||
tactic::checkpoint(m);
|
||||
}
|
||||
|
||||
// Collect atoms that contain term if-then-else
|
||||
|
|
|
@ -203,8 +203,7 @@ struct ctx_simplify_tactic::imp {
|
|||
void checkpoint() {
|
||||
if (memory::get_allocation_size() > m_max_memory)
|
||||
throw tactic_exception(TACTIC_MAX_MEMORY_MSG);
|
||||
if (m.canceled())
|
||||
throw tactic_exception(m.limit().get_cancel_msg());
|
||||
tactic::checkpoint(m);
|
||||
}
|
||||
|
||||
bool shared(expr * t) const {
|
||||
|
|
|
@ -35,8 +35,7 @@ class occf_tactic : public tactic {
|
|||
}
|
||||
|
||||
void checkpoint() {
|
||||
if (m.canceled())
|
||||
throw tactic_exception(TACTIC_CANCELED_MSG);
|
||||
tactic::checkpoint(m);
|
||||
}
|
||||
|
||||
bool is_literal(expr * t) const {
|
||||
|
|
|
@ -112,8 +112,7 @@ struct reduce_args_tactic::imp {
|
|||
}
|
||||
|
||||
void checkpoint() {
|
||||
if (m_manager.canceled())
|
||||
throw tactic_exception(m_manager.limit().get_cancel_msg());
|
||||
tactic::checkpoint(m_manager);
|
||||
}
|
||||
|
||||
struct find_non_candidates_proc {
|
||||
|
|
|
@ -101,8 +101,7 @@ public:
|
|||
|
||||
private:
|
||||
void checkpoint() {
|
||||
if (m.canceled())
|
||||
throw tactic_exception(m.limit().get_cancel_msg());
|
||||
tactic::checkpoint(m);
|
||||
}
|
||||
|
||||
bool is_bv_neg(expr * e) {
|
||||
|
|
|
@ -86,8 +86,7 @@ class solve_eqs_tactic : public tactic {
|
|||
}
|
||||
|
||||
void checkpoint() {
|
||||
if (m().canceled())
|
||||
throw tactic_exception(m().limit().get_cancel_msg());
|
||||
tactic::checkpoint(m());
|
||||
}
|
||||
|
||||
// Check if the number of occurrences of t is below the specified threshold :solve-eqs-max-occs
|
||||
|
|
|
@ -786,8 +786,7 @@ class tseitin_cnf_tactic : public tactic {
|
|||
|
||||
|
||||
void checkpoint() {
|
||||
if (m.canceled())
|
||||
throw tactic_exception(TACTIC_CANCELED_MSG);
|
||||
tactic::checkpoint(m);
|
||||
if (memory::get_allocation_size() > m_max_memory)
|
||||
throw tactic_exception(TACTIC_MAX_MEMORY_MSG);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue