3
0
Fork 0
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:
Nikolaj Bjorner 2025-05-15 10:57:31 -07:00
parent 7ebe7c46b9
commit 47c12f9a18
7 changed files with 20 additions and 26 deletions

View file

@ -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);

View file

@ -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);
}