mirror of
https://github.com/Z3Prover/z3
synced 2025-07-19 10:52:02 +00:00
fix #4227
This commit is contained in:
parent
603b5552fa
commit
691759c9e2
3 changed files with 13 additions and 4 deletions
|
@ -473,6 +473,14 @@ interval & interval::operator*=(interval const & other) {
|
|||
return *this;
|
||||
}
|
||||
|
||||
bool interval::empty() const {
|
||||
if (m_lower.is_infinite() || m_upper.is_infinite())
|
||||
return false;
|
||||
if (m_lower < m_upper)
|
||||
return false;
|
||||
return m_lower > m_upper || m_lower_open || m_upper_open;
|
||||
}
|
||||
|
||||
bool interval::contains_zero() const {
|
||||
TRACE("interval_zero_bug", tout << "contains_zero info: " << *this << "\n";
|
||||
tout << "m_lower.is_neg(): " << m_lower.is_neg() << "\n";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue