3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-26 04:56:03 +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

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