mirror of
https://github.com/Z3Prover/z3
synced 2025-05-05 14:55:45 +00:00
na
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
5708de4301
commit
d073583d88
7 changed files with 146 additions and 39 deletions
|
@ -94,6 +94,17 @@ namespace polysat {
|
|||
else
|
||||
return val < hi_val() || val >= lo_val();
|
||||
}
|
||||
bool contains(eval_interval const& other) const {
|
||||
if (is_full())
|
||||
return true;
|
||||
if (lo_val() <= other.lo_val() && other.hi_val() <= hi_val())
|
||||
return true;
|
||||
if (hi_val() < lo_val() && lo_val() <= other.lo_val() && other.lo_val() <= other.hi_val())
|
||||
return true;
|
||||
if (hi_val() < lo_val() && other.lo_val() < hi_val() && other.hi_val() <= hi_val())
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
inline std::ostream& operator<<(std::ostream& os, eval_interval const& i) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue