mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 12:08:18 +00:00
add ad-hoc any-of for cross compatibility and simplifying interface
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
49d1490454
commit
7bb962d934
|
@ -68,7 +68,7 @@ class model_reconstruction_trail {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool intersects(ast_mark const& free_vars, vector<dependent_expr> const& added) {
|
bool intersects(ast_mark const& free_vars, vector<dependent_expr> const& added) {
|
||||||
return std::any_of(added.begin(), added.end(), [&](dependent_expr const& d) { return intersects(free_vars, d); });
|
return any_of(added, [&](dependent_expr const& d) { return intersects(free_vars, d); });
|
||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
Loading…
Reference in a new issue