3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-24 09:35:32 +00:00

Refactor count_vars and count_rule_vars

ast_manager m was not used
This commit is contained in:
Matthias Schlaipfer 2015-05-13 19:15:59 +01:00
parent 09afb31d4c
commit c82319b358
10 changed files with 28 additions and 29 deletions

View file

@ -86,7 +86,7 @@ int counter::get_max_counter_value() const {
return res;
}
void var_counter::count_vars(ast_manager & m, const app * pred, int coef) {
void var_counter::count_vars(const app * pred, int coef) {
unsigned n = pred->get_num_args();
for (unsigned i = 0; i < n; i++) {
m_fv(pred->get_arg(i));

View file

@ -76,7 +76,7 @@ protected:
unsigned get_max_var(bool & has_var);
public:
var_counter() {}
void count_vars(ast_manager & m, const app * t, int coef = 1);
void count_vars(const app * t, int coef = 1);
unsigned get_max_var(expr* e);
unsigned get_next_var(expr* e);
};