(lhs: &Interval, rhs: &Interval)
| 502 | } |
| 503 | |
| 504 | fn meet_interval(lhs: &Interval, rhs: &Interval) -> Interval { |
| 505 | if lhs.is_bottom() || rhs.is_bottom() { |
| 506 | Interval::bottom() |
| 507 | } else { |
| 508 | Interval::new( |
| 509 | lhs.low.clone().max(rhs.low.clone()), |
| 510 | lhs.high.clone().min(rhs.high.clone()), |
| 511 | ) |
| 512 | } |
| 513 | } |
| 514 | |
| 515 | fn widen_interval(old: &Interval, new: &Interval) -> Interval { |
| 516 | if old.is_bottom() { |
no test coverage detected