mirror of
https://github.com/Z3Prover/z3
synced 2025-04-28 11:25:51 +00:00
fixing 2267
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
16af728fbe
commit
28ce701e17
15 changed files with 174 additions and 48 deletions
|
@ -234,6 +234,11 @@ public:
|
|||
|
||||
bool check_invariant(interval const & n) const;
|
||||
|
||||
/**
|
||||
\brief b <- k
|
||||
*/
|
||||
void set(numeral const& k, interval & b);
|
||||
|
||||
/**
|
||||
\brief b <- -a
|
||||
*/
|
||||
|
|
|
@ -664,6 +664,16 @@ bool interval_manager<C>::check_invariant(interval const & n) const {
|
|||
return true;
|
||||
}
|
||||
|
||||
template<typename C>
|
||||
void interval_manager<C>::set(numeral const& k, interval & b) {
|
||||
set_lower_is_inf(b, false);
|
||||
set_upper_is_inf(b, false);
|
||||
m().set(lower(b), k);
|
||||
m().set(upper(b), k);
|
||||
set_lower_is_open(b, false);
|
||||
set_upper_is_open(b, false);
|
||||
}
|
||||
|
||||
template<typename C>
|
||||
void interval_manager<C>::set(interval & t, interval const & s) {
|
||||
if (&t == &const_cast<interval&>(s))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue