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:
parent
f9ce41bd2b
commit
847278fba8
6 changed files with 552 additions and 9 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue