Skip to content

Commit 737c220

Browse files
committed
delete more default constructors
reduces code size by 0.1%
1 parent 4b4a282 commit 737c220

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+35
-91
lines changed

src/ackermannization/ackr_bound_probe.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,6 @@ class ackr_bound_probe : public probe {
6060
};
6161

6262
public:
63-
ackr_bound_probe() {}
64-
6563
result operator()(goal const & g) override {
6664
proc p(g.m());
6765
unsigned sz = g.size();

src/ast/converters/model_converter.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,6 @@ class model_converter : public converter {
7171
void display_del(std::ostream& out, func_decl* f) const;
7272
void display_add(std::ostream& out, ast_manager& m);
7373
public:
74-
75-
model_converter() {}
76-
7774
void set_completion(bool f) { m_completion = f; }
7875

7976
virtual void operator()(model_ref & m) = 0;

src/ast/recfun_decl_plugin.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,6 @@ namespace recfun {
417417
}
418418

419419
namespace decl {
420-
plugin::plugin() : decl_plugin(), m_defs(), m_case_defs() {}
421420
plugin::~plugin() { finalize(); }
422421

423422
void plugin::finalize() {

src/ast/recfun_decl_plugin.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,6 @@ namespace recfun {
173173
void compute_scores(expr* e, obj_map<expr, unsigned>& scores);
174174

175175
public:
176-
plugin();
177176
~plugin() override;
178177
void finalize() override;
179178

src/ast/rewriter/var_subst.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ class expr_free_vars {
9494
ptr_vector<sort> m_sorts;
9595
ptr_vector<expr> m_todo;
9696
public:
97-
expr_free_vars() {}
97+
expr_free_vars() = default;
9898
expr_free_vars(expr* e) { (*this)(e); }
9999
void reset();
100100
void operator()(expr* e);

src/ast/simplifiers/linear_equation.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class linear_equation {
3535
mpz * m_as; // precise coefficients
3636
double * m_approx_as; // approximated coefficients
3737
var * m_xs; // var ids
38-
linear_equation() {}
38+
linear_equation() = default;
3939
public:
4040
unsigned size() const { return m_size; }
4141
mpz const & a(unsigned idx) const { SASSERT(idx < m_size); return m_as[idx]; }

src/cmd_context/cmd_context.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class func_decls {
4747
bool signatures_collide(func_decl* f, func_decl* g) const;
4848
bool signatures_collide(unsigned n, sort*const* domain, sort* range, func_decl* g) const;
4949
public:
50-
func_decls() {}
50+
func_decls() = default;
5151
func_decls(ast_manager & m, func_decl * f);
5252
void finalize(ast_manager & m);
5353
bool contains(func_decl * f) const;

src/math/interval/mod_interval.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ namespace bv {
2626
bool tight = true;
2727

2828
interval_tpl(T const& l, T const& h, unsigned sz, bool tight = false): l(l), h(h), sz(sz), tight(tight) {}
29-
interval_tpl() {}
29+
interval_tpl() = default;
3030

3131
bool invariant() const {
3232
return
@@ -167,7 +167,7 @@ namespace bv {
167167
iinterval i;
168168
rinterval r;
169169

170-
interval() {}
170+
interval() = default;
171171

172172
interval(rational const& l, rational const& h, unsigned sz, bool tight = false) {
173173
if (sz <= 64) {

src/math/lp/factorization.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class factor {
2424
factor_type m_type = factor_type::VAR;
2525
bool m_sign = false;
2626
public:
27-
factor() { }
27+
factor() = default;
2828
explicit factor(lpvar v, factor_type t) : m_var(v), m_type(t) {}
2929
unsigned var() const { return m_var; }
3030
factor_type type() const { return m_type; }

src/math/lp/indexed_value.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class indexed_value {
2929
// m_other is the offset of the corresponding element in its vector : for a row element it points to the column element offset,
3030
// for a column element it points to the row element offset
3131
unsigned m_other;
32-
indexed_value() {}
32+
indexed_value() = default;
3333

3434
indexed_value(T v, unsigned i, unsigned other) :
3535
m_value(v), m_index(i), m_other(other) {

0 commit comments

Comments
 (0)