3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-07-19 10:52:02 +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

@ -256,12 +256,12 @@ namespace datalog {
}
void rule_counter::count_rule_vars(ast_manager & m, const rule * r, int coef) {
void rule_counter::count_rule_vars(const rule * r, int coef) {
reset();
count_vars(m, r->get_head(), 1);
count_vars(r->get_head(), 1);
unsigned n = r->get_tail_size();
for (unsigned i = 0; i < n; i++) {
count_vars(m, r->get_tail(i), coef);
count_vars(r->get_tail(i), coef);
}
}