diff --git a/src/smt/smt_context.cpp b/src/smt/smt_context.cpp index 6d90653ba8b..9a9b9239350 100644 --- a/src/smt/smt_context.cpp +++ b/src/smt/smt_context.cpp @@ -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 {