mirror of
https://github.com/Z3Prover/z3
synced 2025-04-07 09:55:19 +00:00
use iterator shortcut
This commit is contained in:
parent
a9f9d3ddf4
commit
1710fe4927
|
@ -1672,12 +1672,7 @@ namespace smt {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool context::can_theories_propagate() const {
|
bool context::can_theories_propagate() const {
|
||||||
for (theory* t : m_theory_set) {
|
return any_of(m_theory_set, [&](theory* t) { return t->can_propagate(); });
|
||||||
if (t->can_propagate()) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool context::can_propagate() const {
|
bool context::can_propagate() const {
|
||||||
|
|
Loading…
Reference in a new issue