3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-23 17:15:31 +00:00

optimize theory pb

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2014-02-25 18:06:54 -08:00
parent e180cfe256
commit 478b3160ac
4 changed files with 89 additions and 49 deletions

View file

@ -97,6 +97,10 @@ public:
return a.m().eq(a, b);
}
friend bool operator!=(_scoped_numeral const & a, numeral const & b) {
return !a.m().eq(a, b);
}
friend bool operator<(_scoped_numeral const & a, numeral const & b) {
return a.m().lt(a, b);
}
@ -113,6 +117,26 @@ public:
return a.m().ge(a, b);
}
bool is_zero() const {
return m().is_zero(*this);
}
bool is_pos() const {
return m().is_pos(*this);
}
bool is_neg() const {
return m().is_neg(*this);
}
bool is_nonpos() const {
return m().is_nonpos(*this);
}
bool is_nonneg() const {
return m().is_nonneg(*this);
}
friend bool is_zero(_scoped_numeral const & a) {
return a.m().is_zero(a);
}