mirror of
https://github.com/Z3Prover/z3
synced 2025-08-05 02:40:24 +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
|
@ -22,7 +22,6 @@ Notes:
|
|||
#include "ast/arith_decl_plugin.h"
|
||||
#include "ast/ast_smt2_pp.h"
|
||||
#include "util/z3_exception.h"
|
||||
#include "util/cooperate.h"
|
||||
#include "util/common_msgs.h"
|
||||
|
||||
struct expr2polynomial::imp {
|
||||
|
@ -96,7 +95,6 @@ struct expr2polynomial::imp {
|
|||
void checkpoint() {
|
||||
if (m_cancel)
|
||||
throw default_exception(Z3_CANCELED_MSG);
|
||||
cooperate("expr2polynomial");
|
||||
}
|
||||
|
||||
void throw_not_polynomial() {
|
||||
|
|
|
@ -20,7 +20,6 @@ Notes:
|
|||
|
||||
#include "ast/rewriter/rewriter_def.h"
|
||||
#include "ast/fpa/fpa2bv_rewriter.h"
|
||||
#include "util/cooperate.h"
|
||||
#include "ast/fpa/fpa2bv_rewriter_params.hpp"
|
||||
|
||||
|
||||
|
@ -50,7 +49,6 @@ void fpa2bv_rewriter_cfg::updt_params(params_ref const & p) {
|
|||
}
|
||||
|
||||
bool fpa2bv_rewriter_cfg::max_steps_exceeded(unsigned num_steps) const {
|
||||
cooperate("fpa2bv");
|
||||
return num_steps > m_max_steps;
|
||||
}
|
||||
|
||||
|
|
|
@ -19,7 +19,6 @@ Notes:
|
|||
--*/
|
||||
|
||||
#include "util/warning.h"
|
||||
#include "util/cooperate.h"
|
||||
#include "ast/normal_forms/nnf.h"
|
||||
#include "ast/normal_forms/nnf_params.hpp"
|
||||
#include "ast/used_vars.h"
|
||||
|
@ -380,7 +379,6 @@ struct nnf::imp {
|
|||
|
||||
|
||||
void checkpoint() {
|
||||
cooperate("nnf");
|
||||
if (memory::get_allocation_size() > m_max_memory)
|
||||
throw nnf_exception(Z3_MAX_MEMORY_MSG);
|
||||
if (m.canceled())
|
||||
|
|
|
@ -142,7 +142,6 @@ struct blaster_rewriter_cfg : public default_rewriter_cfg {
|
|||
bool rewrite_patterns() const { return true; }
|
||||
|
||||
bool max_steps_exceeded(unsigned num_steps) const {
|
||||
cooperate("bit blaster");
|
||||
if (memory::get_allocation_size() > m_max_memory)
|
||||
throw rewriter_exception(Z3_MAX_MEMORY_MSG);
|
||||
return num_steps > m_max_steps;
|
||||
|
|
|
@ -19,7 +19,6 @@ Revision History:
|
|||
#include "ast/rewriter/bit_blaster/bit_blaster_tpl.h"
|
||||
#include "util/rational.h"
|
||||
#include "ast/ast_pp.h"
|
||||
#include "util/cooperate.h"
|
||||
#include "util/common_msgs.h"
|
||||
#include "ast/rewriter/rewriter_types.h"
|
||||
|
||||
|
@ -30,7 +29,6 @@ void bit_blaster_tpl<Cfg>::checkpoint() {
|
|||
throw rewriter_exception(Z3_MAX_MEMORY_MSG);
|
||||
if (m().canceled())
|
||||
throw rewriter_exception(m().limit().get_cancel_msg());
|
||||
cooperate("bit-blaster");
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -19,7 +19,6 @@ Notes:
|
|||
#include "ast/rewriter/expr_replacer.h"
|
||||
#include "ast/rewriter/rewriter_def.h"
|
||||
#include "ast/rewriter/th_rewriter.h"
|
||||
#include "util/cooperate.h"
|
||||
|
||||
void expr_replacer::operator()(expr * t, expr_ref & result, proof_ref & result_pr) {
|
||||
expr_dependency_ref result_dep(m());
|
||||
|
@ -74,7 +73,6 @@ struct default_expr_replacer_cfg : public default_rewriter_cfg {
|
|||
}
|
||||
|
||||
bool max_steps_exceeded(unsigned num_steps) const {
|
||||
cooperate("simplifier");
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
|
|
@ -16,7 +16,6 @@ Author:
|
|||
Notes:
|
||||
|
||||
--*/
|
||||
#include "util/cooperate.h"
|
||||
#include "ast/rewriter/th_rewriter.h"
|
||||
#include "ast/rewriter/rewriter_params.hpp"
|
||||
#include "ast/rewriter/bool_rewriter.h"
|
||||
|
@ -108,7 +107,6 @@ struct th_rewriter_cfg : public default_rewriter_cfg {
|
|||
bool cache_all_results() const { return m_cache_all; }
|
||||
|
||||
bool max_steps_exceeded(unsigned num_steps) const {
|
||||
cooperate("simplifier");
|
||||
if (memory::get_allocation_size() > m_max_memory)
|
||||
throw rewriter_exception(Z3_MAX_MEMORY_MSG);
|
||||
return num_steps > m_max_steps;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue