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:
parent
09afb31d4c
commit
c82319b358
10 changed files with 28 additions and 29 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue