mirror of
https://github.com/Z3Prover/z3
synced 2025-08-04 02:10:23 +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);
|
||||
}
|
||||
|
|
|
@ -488,7 +488,7 @@ void goal::shrink(unsigned j) {
|
|||
*/
|
||||
void goal::elim_true() {
|
||||
unsigned i = 0, j = 0;
|
||||
for (auto [f, dep, pr] : *this) {
|
||||
for (const auto& [f, dep, pr] : *this) {
|
||||
if (m().is_true(f)) {
|
||||
++i;
|
||||
continue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue