mirror of
https://github.com/Z3Prover/z3
synced 2025-04-29 11:55:51 +00:00
remove cooperate
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
42ac3a5363
commit
e0d8cefde4
52 changed files with 0 additions and 204 deletions
|
@ -16,7 +16,6 @@ Author:
|
|||
Notes:
|
||||
|
||||
--*/
|
||||
#include "util/cooperate.h"
|
||||
#include "ast/normal_forms/defined_names.h"
|
||||
#include "ast/rewriter/rewriter_def.h"
|
||||
#include "ast/scoped_proof.h"
|
||||
|
@ -60,7 +59,6 @@ class blast_term_ite_tactic : public tactic {
|
|||
|
||||
|
||||
bool max_steps_exceeded(unsigned num_steps) const {
|
||||
cooperate("blast term ite");
|
||||
// if (memory::get_allocation_size() > m_max_memory)
|
||||
// throw tactic_exception(TACTIC_MAX_MEMORY_MSG);
|
||||
return num_steps >= m_max_steps;
|
||||
|
|
|
@ -19,7 +19,6 @@ Revision History:
|
|||
#include "tactic/core/cofactor_elim_term_ite.h"
|
||||
#include "ast/rewriter/mk_simplified_app.h"
|
||||
#include "ast/rewriter/rewriter_def.h"
|
||||
#include "util/cooperate.h"
|
||||
#include "ast/for_each_expr.h"
|
||||
#include "ast/ast_smt2_pp.h"
|
||||
#include "ast/ast_ll_pp.h"
|
||||
|
@ -32,7 +31,6 @@ struct cofactor_elim_term_ite::imp {
|
|||
bool m_cofactor_equalities;
|
||||
|
||||
void checkpoint() {
|
||||
cooperate("cofactor ite");
|
||||
if (memory::get_allocation_size() > m_max_memory)
|
||||
throw tactic_exception(TACTIC_MAX_MEMORY_MSG);
|
||||
if (m.canceled())
|
||||
|
|
|
@ -18,7 +18,6 @@ Notes:
|
|||
--*/
|
||||
#include "tactic/core/ctx_simplify_tactic.h"
|
||||
#include "ast/rewriter/mk_simplified_app.h"
|
||||
#include "util/cooperate.h"
|
||||
#include "ast/ast_ll_pp.h"
|
||||
#include "ast/ast_pp.h"
|
||||
|
||||
|
@ -202,7 +201,6 @@ struct ctx_simplify_tactic::imp {
|
|||
}
|
||||
|
||||
void checkpoint() {
|
||||
cooperate("ctx_simplify_tactic");
|
||||
if (memory::get_allocation_size() > m_max_memory)
|
||||
throw tactic_exception(TACTIC_MAX_MEMORY_MSG);
|
||||
if (m.canceled())
|
||||
|
|
|
@ -21,7 +21,6 @@ Notes:
|
|||
#include "ast/normal_forms/defined_names.h"
|
||||
#include "ast/rewriter/rewriter_def.h"
|
||||
#include "tactic/generic_model_converter.h"
|
||||
#include "util/cooperate.h"
|
||||
|
||||
class elim_term_ite_tactic : public tactic {
|
||||
|
||||
|
@ -35,7 +34,6 @@ class elim_term_ite_tactic : public tactic {
|
|||
unsigned m_num_fresh;
|
||||
|
||||
bool max_steps_exceeded(unsigned num_steps) const {
|
||||
cooperate("elim term ite");
|
||||
if (memory::get_allocation_size() > m_max_memory)
|
||||
throw tactic_exception(TACTIC_MAX_MEMORY_MSG);
|
||||
return false;
|
||||
|
|
|
@ -24,7 +24,6 @@ Notes:
|
|||
#include "ast/array_decl_plugin.h"
|
||||
#include "ast/datatype_decl_plugin.h"
|
||||
#include "tactic/core/collect_occs.h"
|
||||
#include "util/cooperate.h"
|
||||
#include "ast/ast_smt2_pp.h"
|
||||
#include "ast/ast_ll_pp.h"
|
||||
|
||||
|
@ -67,7 +66,6 @@ class elim_uncnstr_tactic : public tactic {
|
|||
ast_manager & m() const { return m_a_util.get_manager(); }
|
||||
|
||||
bool max_steps_exceeded(unsigned num_steps) const {
|
||||
cooperate("elim-uncnstr-vars");
|
||||
if (memory::get_allocation_size() > m_max_memory)
|
||||
throw tactic_exception(TACTIC_MAX_MEMORY_MSG);
|
||||
return num_steps > m_max_steps;
|
||||
|
|
|
@ -24,7 +24,6 @@ Revision History:
|
|||
#include "tactic/tactical.h"
|
||||
#include "tactic/core/occf_tactic.h"
|
||||
#include "tactic/generic_model_converter.h"
|
||||
#include "util/cooperate.h"
|
||||
|
||||
class occf_tactic : public tactic {
|
||||
struct imp {
|
||||
|
@ -38,7 +37,6 @@ class occf_tactic : public tactic {
|
|||
void checkpoint() {
|
||||
if (m.canceled())
|
||||
throw tactic_exception(TACTIC_CANCELED_MSG);
|
||||
cooperate("occf");
|
||||
}
|
||||
|
||||
bool is_literal(expr * t) const {
|
||||
|
|
|
@ -17,7 +17,6 @@ Notes:
|
|||
|
||||
--*/
|
||||
#include "tactic/tactical.h"
|
||||
#include "util/cooperate.h"
|
||||
#include "ast/ast_smt2_pp.h"
|
||||
#include "ast/has_free_vars.h"
|
||||
#include "util/map.h"
|
||||
|
@ -115,7 +114,6 @@ struct reduce_args_tactic::imp {
|
|||
void checkpoint() {
|
||||
if (m_manager.canceled())
|
||||
throw tactic_exception(m_manager.limit().get_cancel_msg());
|
||||
cooperate("reduce-args");
|
||||
}
|
||||
|
||||
struct find_non_candidates_proc {
|
||||
|
|
|
@ -20,7 +20,6 @@ Notes:
|
|||
|
||||
--*/
|
||||
|
||||
#include "util/cooperate.h"
|
||||
#include "ast/bv_decl_plugin.h"
|
||||
#include "ast/arith_decl_plugin.h"
|
||||
#include "ast/ast_pp.h"
|
||||
|
@ -97,7 +96,6 @@ private:
|
|||
void checkpoint() {
|
||||
if (m.canceled())
|
||||
throw tactic_exception(m.limit().get_cancel_msg());
|
||||
cooperate("reduce-invertible");
|
||||
}
|
||||
|
||||
expr_mark m_inverted;
|
||||
|
|
|
@ -17,7 +17,6 @@ Revision History:
|
|||
|
||||
--*/
|
||||
#include "ast/rewriter/expr_replacer.h"
|
||||
#include "util/cooperate.h"
|
||||
#include "ast/occurs.h"
|
||||
#include "ast/ast_util.h"
|
||||
#include "ast/ast_pp.h"
|
||||
|
@ -87,7 +86,6 @@ class solve_eqs_tactic : public tactic {
|
|||
void checkpoint() {
|
||||
if (m().canceled())
|
||||
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
|
||||
|
|
|
@ -54,7 +54,6 @@ Notes:
|
|||
#include "tactic/generic_model_converter.h"
|
||||
#include "ast/rewriter/bool_rewriter.h"
|
||||
#include "tactic/core/simplify_tactic.h"
|
||||
#include "util/cooperate.h"
|
||||
|
||||
static void swap_if_gt(expr * & n1, expr * & n2) {
|
||||
if (n1->get_id() > n2->get_id())
|
||||
|
@ -785,7 +784,6 @@ class tseitin_cnf_tactic : public tactic {
|
|||
|
||||
|
||||
void checkpoint() {
|
||||
cooperate("tseitin cnf");
|
||||
if (m.canceled())
|
||||
throw tactic_exception(TACTIC_CANCELED_MSG);
|
||||
if (memory::get_allocation_size() > m_max_memory)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue