(lhs: &Interval, rhs: &Interval)
| 489 | } |
| 490 | |
| 491 | fn join_interval(lhs: &Interval, rhs: &Interval) -> Interval { |
| 492 | if lhs.is_bottom() { |
| 493 | rhs.clone() |
| 494 | } else if rhs.is_bottom() { |
| 495 | lhs.clone() |
| 496 | } else { |
| 497 | Interval::new( |
| 498 | lhs.low.clone().min(rhs.low.clone()), |
| 499 | lhs.high.clone().max(rhs.high.clone()), |
| 500 | ) |
| 501 | } |
| 502 | } |
| 503 | |
| 504 | fn meet_interval(lhs: &Interval, rhs: &Interval) -> Interval { |
| 505 | if lhs.is_bottom() || rhs.is_bottom() { |