3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-05-05 14:55:45 +00:00
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2021-11-13 06:50:11 -08:00
parent 5708de4301
commit d073583d88
7 changed files with 146 additions and 39 deletions

View file

@ -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) {