mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 17:15:31 +00:00
fixes
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
c9d6dccc12
commit
9ae3339c33
4 changed files with 21 additions and 12 deletions
|
@ -482,11 +482,6 @@ inline bool operator<=(rational const & r1, rational const & r2) {
|
|||
return !operator>(r1, r2);
|
||||
}
|
||||
|
||||
inline bool operator<=(rational const & r1, int r2) {
|
||||
return r1 <= rational(r2);
|
||||
}
|
||||
|
||||
|
||||
inline bool operator>=(rational const & r1, rational const & r2) {
|
||||
return !operator<(r1, r2);
|
||||
}
|
||||
|
@ -499,7 +494,6 @@ inline bool operator>(int a, rational const & b) {
|
|||
return rational(a) > b;
|
||||
}
|
||||
|
||||
|
||||
inline bool operator>=(rational const& a, int b) {
|
||||
return a >= rational(b);
|
||||
}
|
||||
|
@ -508,6 +502,13 @@ inline bool operator>=(int a, rational const& b) {
|
|||
return rational(a) >= b;
|
||||
}
|
||||
|
||||
inline bool operator<=(rational const& a, int b) {
|
||||
return a <= rational(b);
|
||||
}
|
||||
|
||||
inline bool operator<=(int a, rational const& b) {
|
||||
return rational(a) <= b;
|
||||
}
|
||||
|
||||
inline bool operator!=(rational const& a, int b) {
|
||||
return !(a == rational(b));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue