mirror of
https://github.com/Z3Prover/z3
synced 2025-04-24 09:35:32 +00:00
Remove redundant void arg.
While this was needed in ANSI C, it isn't in C++ and triggers a warning in clang-tidy when `modernize-redundant-void-arg` is enabled.
This commit is contained in:
parent
792fdb915f
commit
7bf80c66d0
11 changed files with 15 additions and 15 deletions
|
@ -459,7 +459,7 @@ public:
|
|||
SASSERT(g->is_well_sorted());
|
||||
}
|
||||
|
||||
void cleanup(void) override {
|
||||
void cleanup() override {
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -65,7 +65,7 @@ protected:
|
|||
unsigned & best_const, mpz & best_value, unsigned & new_bit, move_type & move,
|
||||
mpz const & max_score, expr * objective);
|
||||
|
||||
mpz top_score(void) {
|
||||
mpz top_score() {
|
||||
mpz res(0);
|
||||
obj_hashtable<expr> const & top_exprs = m_obj_tracker.get_top_exprs();
|
||||
for (obj_hashtable<expr>::iterator it = top_exprs.begin();
|
||||
|
|
|
@ -99,7 +99,7 @@ public:
|
|||
|
||||
// stats const & get_stats(void) { return m_stats; }
|
||||
void collect_statistics(statistics & st) const;
|
||||
void reset_statistics(void) { m_stats.reset(); }
|
||||
void reset_statistics() { m_stats.reset(); }
|
||||
|
||||
bool full_eval(model & mdl);
|
||||
|
||||
|
@ -109,7 +109,7 @@ public:
|
|||
void mk_inv(unsigned bv_sz, const mpz & old_value, mpz & inverted);
|
||||
void mk_flip(sort * s, const mpz & old_value, unsigned bit, mpz & flipped);
|
||||
|
||||
lbool search(void);
|
||||
lbool search();
|
||||
|
||||
lbool operator()();
|
||||
void operator()(goal_ref const & g, model_converter_ref & mc);
|
||||
|
|
|
@ -907,7 +907,7 @@ public:
|
|||
m_t->operator()(in, result, mc, pc, core);
|
||||
}
|
||||
|
||||
void cleanup(void) override { m_t->cleanup(); }
|
||||
void cleanup() override { m_t->cleanup(); }
|
||||
void collect_statistics(statistics & st) const override { m_t->collect_statistics(st); }
|
||||
void reset_statistics() override { m_t->reset_statistics(); }
|
||||
void updt_params(params_ref const & p) override { m_t->updt_params(p); }
|
||||
|
|
|
@ -196,14 +196,14 @@ int ufbv_rewriter::is_smaller(expr * e1, expr * e2) const {
|
|||
class max_var_id_proc {
|
||||
unsigned m_max_var_id;
|
||||
public:
|
||||
max_var_id_proc(void):m_max_var_id(0) {}
|
||||
max_var_id_proc():m_max_var_id(0) {}
|
||||
void operator()(var * n) {
|
||||
if(n->get_idx() > m_max_var_id)
|
||||
m_max_var_id = n->get_idx();
|
||||
}
|
||||
void operator()(quantifier * n) {}
|
||||
void operator()(app * n) {}
|
||||
unsigned get_max(void) { return m_max_var_id; }
|
||||
unsigned get_max() { return m_max_var_id; }
|
||||
};
|
||||
|
||||
unsigned ufbv_rewriter::max_var_id(expr * e)
|
||||
|
@ -253,7 +253,7 @@ void ufbv_rewriter::remove_fwd_idx(func_decl * f, quantifier * demodulator) {
|
|||
}
|
||||
}
|
||||
|
||||
bool ufbv_rewriter::check_fwd_idx_consistency(void) {
|
||||
bool ufbv_rewriter::check_fwd_idx_consistency() {
|
||||
for (fwd_idx_map::iterator it = m_fwd_idx.begin(); it != m_fwd_idx.end() ; it++ ) {
|
||||
quantifier_set * set = it->m_value;
|
||||
SASSERT(set);
|
||||
|
|
|
@ -173,7 +173,7 @@ class ufbv_rewriter {
|
|||
|
||||
void insert_fwd_idx(expr * large, expr * small, quantifier * demodulator);
|
||||
void remove_fwd_idx(func_decl * f, quantifier * demodulator);
|
||||
bool check_fwd_idx_consistency(void);
|
||||
bool check_fwd_idx_consistency();
|
||||
void show_fwd_idx(std::ostream & out);
|
||||
bool is_demodulator(expr * e, expr_ref & large, expr_ref & small) const;
|
||||
bool can_rewrite(expr * n, expr * lhs);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue