3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-11-01 20:17:52 +00:00

fixes to build warnings

This commit is contained in:
Nikolaj Bjorner 2024-09-30 08:23:31 -07:00
parent 2ac6f8bb06
commit 826835fd7c
21 changed files with 20 additions and 65 deletions

View file

@ -678,14 +678,9 @@ namespace datalog {
}
bool compile_rules1(rule_set const& rules, rule_set& new_rules) {
datalog::rule_set::iterator it = rules.begin();
datalog::rule_set::iterator end = rules.end();
unsigned idx = 0;
for (; it != end; ++idx, ++it) {
if (!compile_rule1(**it, rules, new_rules)) {
for (auto const & r : rules)
if (!compile_rule1(*r, rules, new_rules))
return false;
}
}
return true;
}