3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-23 17:15:31 +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

@ -58,6 +58,7 @@ public:
static checked_int64 minus_one() { return ci(-1);}
int64_t get_int64() const { return m_value; }
double get_double() const { return (double)m_value; }
rational to_rational() const { return r64(m_value); }
checked_int64 abs() const {

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)