3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-24 01:25:31 +00:00

Remove empty leaf destructors. (#6211)

This commit is contained in:
Bruce Mitchener 2022-07-30 16:07:03 +07:00 committed by GitHub
parent f7fbb78fc8
commit 5d0dea05aa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
134 changed files with 10 additions and 322 deletions

View file

@ -115,8 +115,6 @@ public:
return m_solver.get_config().m_incremental;
}
~inc_sat_solver() override {}
solver* translate(ast_manager& dst_m, params_ref const& p) override {
if (m_num_scopes > 0) {
throw default_exception("Cannot translate sat solver at non-base level");

View file

@ -313,7 +313,6 @@ namespace bv {
public:
solver(euf::solver& ctx, theory_id id);
~solver() override {}
void set_lookahead(sat::lookahead* s) override { }
void init_search() override {}
double get_reward(literal l, sat::ext_constraint_idx idx, sat::literal_occs_fun& occs) const override;

View file

@ -3744,9 +3744,6 @@ namespace q {
reset_pp_pc();
}
~mam_impl() override {
}
void add_pattern(quantifier * qa, app * mp) override {
SASSERT(m.is_pattern(mp));
TRACE("trigger_bug", tout << "adding pattern\n" << mk_ismt2_pp(qa, m) << "\n" << mk_ismt2_pp(mp, m) << "\n";);

View file

@ -45,7 +45,6 @@ namespace q {
arith_util a;
public:
arith_projection(ast_manager& m) : projection_function(m), a(m) {}
~arith_projection() override {}
bool operator()(expr* e1, expr* e2) const override { return lt(a, e1, e2); }
expr* mk_lt(expr* x, expr* y) override { return a.mk_lt(x, y); }
};
@ -54,7 +53,6 @@ namespace q {
bv_util bvu;
public:
ubv_projection(ast_manager& m) : projection_function(m), bvu(m) {}
~ubv_projection() override {}
bool operator()(expr* e1, expr* e2) const override { return lt(bvu, e1, e2); }
expr* mk_lt(expr* x, expr* y) override { return m.mk_not(bvu.mk_ule(y, x)); }
};

View file

@ -95,7 +95,6 @@ namespace q {
public:
model_fixer(euf::solver& ctx, solver& qs);
~model_fixer() override {}
/**
* Update model in order to best satisfy quantifiers.

View file

@ -65,7 +65,6 @@ namespace q {
public:
solver(euf::solver& ctx, family_id fid);
~solver() override {}
bool is_external(sat::bool_var v) override { return false; }
void get_antecedents(sat::literal l, sat::ext_justification_idx idx, sat::literal_vector& r, bool probing) override;
void asserted(sat::literal l) override;

View file

@ -189,7 +189,6 @@ namespace euf {
public:
th_euf_solver(euf::solver& ctx, symbol const& name, euf::theory_id id);
~th_euf_solver() override {}
virtual theory_var mk_var(enode* n);
unsigned get_num_vars() const { return m_var2enode.size(); }
euf::enode* e_internalize(expr* e);

View file

@ -93,10 +93,6 @@ struct goal2sat::imp : public sat::sat_internalizer {
updt_params(p);
}
~imp() override {
}
sat::cut_simplifier* aig() {
return m_solver.get_cut_simplifier();
}

View file

@ -51,7 +51,6 @@ public:
public:
mc(ast_manager& m);
~mc() override {}
// flush model converter from SAT solver to this structure.
void flush_smc(sat::solver& s, atom2bool_var const& map);
void operator()(sat::model& m);