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:
parent
e180cfe256
commit
478b3160ac
4 changed files with 89 additions and 49 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue