3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-02-23 08:47:37 +00:00

Replace empty destructors with = default for compiler optimization (#8189)

* Initial plan

* Replace empty destructors with = default

Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com>
This commit is contained in:
Copilot 2026-01-13 10:50:10 -08:00 committed by Nikolaj Bjorner
parent e29289ad97
commit a6c1d32074
36 changed files with 34 additions and 55 deletions

View file

@ -25,8 +25,7 @@ public:
updt_params(p);
}
~dom_bv_bounds_simplifier() override {
}
~dom_bv_bounds_simplifier() override = default;
void updt_params(params_ref const & p) override {
m_propagate_eq = p.get_bool("propagate_eq", false);

View file

@ -66,7 +66,7 @@ class dependent_expr_state {
};
public:
dependent_expr_state(ast_manager& m) : m_frozen_trail(m) {}
virtual ~dependent_expr_state() {}
virtual ~dependent_expr_state() = default;
unsigned qhead() const { return m_qhead; }
virtual unsigned qtail() const = 0;
virtual dependent_expr const& operator[](unsigned i) = 0;
@ -227,7 +227,7 @@ protected:
proof* tr(proof* a, proof* b) { return m.mk_transitivity(a, b); }
public:
dependent_expr_simplifier(ast_manager& m, dependent_expr_state& s) : m(m), m_fmls(s), m_trail(s.m_trail) {}
virtual ~dependent_expr_simplifier() {}
virtual ~dependent_expr_simplifier() = default;
virtual char const* name() const = 0;
virtual void push() { }
virtual void pop(unsigned n) { }

View file

@ -140,9 +140,6 @@ namespace euf {
}
completion::~completion() {
}
bool completion::should_stop() {
return
!m.inc() ||

View file

@ -226,7 +226,7 @@ namespace euf {
bool is_gt(expr* a, expr* b) const;
public:
completion(ast_manager& m, dependent_expr_state& fmls);
~completion() override;
~completion() override = default;
char const* name() const override { return "euf-completion"; }
void push() override;
void pop(unsigned n) override;

View file

@ -40,7 +40,7 @@ namespace euf {
class extract_eq {
public:
virtual ~extract_eq() {}
virtual ~extract_eq() = default;
virtual void get_eqs(dependent_expr const& e, dep_eq_vector& eqs) = 0;
virtual void pre_process(dependent_expr_state& fmls) {}
virtual void updt_params(params_ref const& p) {}