3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-28 19:35:50 +00:00

optimization in interval calculations

Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
This commit is contained in:
Lev Nachmanson 2019-08-21 18:45:34 -07:00
parent bf5b06285b
commit 03a0ead668
4 changed files with 78 additions and 31 deletions

View file

@ -241,7 +241,10 @@ public:
int vars_sign(const svector<lpvar>& v);
bool has_upper_bound(lpvar j) const;
bool has_lower_bound(lpvar j) const;
bool has_lower_bound(lpvar j) const;
bool no_bounds(lpvar j) const {
return !has_upper_bound(j) && !has_lower_bound(j);
}
const rational& get_upper_bound(unsigned j) const;
const rational& get_lower_bound(unsigned j) const;