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

working on upper bound optimziation

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2013-11-03 14:54:42 -08:00
parent e5698119d7
commit c0de1e34ac
17 changed files with 343 additions and 125 deletions

View file

@ -155,6 +155,11 @@ class inf_eps_rational {
return inf_eps_rational(Numeral::minus_one());
}
static inf_eps_rational infinity() {
return inf_eps_rational(rational::one(), Numeral::zero());
}
inf_eps_rational & operator=(const inf_eps_rational & r) {
m_infty = r.m_infty;
m_r = r.m_r;
@ -179,6 +184,16 @@ class inf_eps_rational {
return *this;
}
inf_eps_rational & operator-=(const inf_rational & r) {
m_r -= r;
return *this;
}
inf_eps_rational & operator+=(const inf_rational & r) {
m_r += r;
return *this;
}
inf_eps_rational & operator+=(const rational & r) {
m_r += r;
return *this;