Skip to content

Commit

Permalink
use iterator shortcut
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolajBjorner committed Nov 18, 2023
1 parent a9f9d3d commit 1710fe4
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/smt/smt_context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1672,12 +1672,7 @@ namespace smt {
}

bool context::can_theories_propagate() const {
for (theory* t : m_theory_set) {
if (t->can_propagate()) {
return true;
}
}
return false;
return any_of(m_theory_set, [&](theory* t) { return t->can_propagate(); });
}

bool context::can_propagate() const {
Expand Down

0 comments on commit 1710fe4

Please sign in to comment.