mirror of
https://github.com/Z3Prover/z3
synced 2025-09-04 17:17:41 +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
|
@ -93,7 +93,7 @@ namespace datalog {
|
|||
unsigned n = head_pred->get_arity();
|
||||
|
||||
rm.get_counter().reset();
|
||||
rm.get_counter().count_vars(m, head, 1);
|
||||
rm.get_counter().count_vars(head, 1);
|
||||
|
||||
for (unsigned i=0; i<n; i++) {
|
||||
expr * arg = head->get_arg(i);
|
||||
|
@ -125,7 +125,7 @@ namespace datalog {
|
|||
unsigned head_arity = head_pred->get_arity();
|
||||
|
||||
rm.get_counter().reset();
|
||||
rm.get_counter().count_vars(m, head);
|
||||
rm.get_counter().count_vars(head);
|
||||
|
||||
unsigned arg_index;
|
||||
for (arg_index = 0; arg_index < head_arity; arg_index++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue