3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-06-27 00:18:45 +00:00

adding global lookahead variant to sls arith solver

This commit is contained in:
Nikolaj Bjorner 2025-01-09 16:47:33 -08:00
parent f9ce41bd2b
commit 847278fba8
6 changed files with 552 additions and 9 deletions

View file

@ -389,6 +389,14 @@ bool all_of(S const& set, T const& p) {
return true;
}
template<typename S, typename T>
bool xor_of(S const& set, T const& p) {
bool r = false;
for (auto const& s : set)
r ^= p(s);
return r;
}
template<typename S, typename R>
R find(S const& set, std::function<bool(R)> p) {
for (auto const& s : set)