mirror of
https://github.com/Z3Prover/z3
synced 2025-08-25 20:46:01 +00:00
refactoring to use for-range
This commit is contained in:
parent
7ebe7c46b9
commit
47c12f9a18
7 changed files with 20 additions and 26 deletions
|
@ -30,7 +30,7 @@ class cofactor_term_ite_tactic : public tactic {
|
|||
void process(goal & g) {
|
||||
ast_manager & m = g.m();
|
||||
unsigned idx = 0;
|
||||
for (auto [f, dep, pr] : g) {
|
||||
for (const auto& [f, dep, pr] : g) {
|
||||
if (g.inconsistent())
|
||||
break;
|
||||
expr_ref new_f(m);
|
||||
|
|
|
@ -853,7 +853,7 @@ class tseitin_cnf_tactic : public tactic {
|
|||
m_mc = nullptr;
|
||||
|
||||
unsigned idx = 0;
|
||||
for (auto [f, dep, pr] : *g) {
|
||||
for (const auto& [f, dep, pr] : *g) {
|
||||
process(f, dep);
|
||||
g->update(idx++, m.mk_true(), nullptr, nullptr);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue