3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-02-19 15:04:42 +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

@ -35,9 +35,7 @@ namespace smt {
bv(m),
a(m)
{}
theory_intblast::~theory_intblast() {}
final_check_status theory_intblast::final_check_eh(unsigned) {
for (auto e : m_translator.bv2int()) {
auto* n = ctx.get_enode(e);

View file

@ -50,7 +50,7 @@ namespace smt {
public:
theory_intblast(context& ctx);
~theory_intblast() override;
~theory_intblast() override = default;
char const* get_name() const override { return "bv-intblast"; }
smt::theory* mk_fresh(context* new_ctx) override { return alloc(theory_intblast, *new_ctx); }

View file

@ -30,7 +30,7 @@ namespace smt {
model_ref m_model;
public:
theory_sls(context& ctx);
~theory_sls() override {}
~theory_sls() override = default;
model_ref get_model() { return m_model; }
char const* get_name() const override { return "sls"; }
smt::theory* mk_fresh(context* new_ctx) override { return alloc(theory_sls, *new_ctx); }