(&self, rhs: &Self)
| 259 | } |
| 260 | |
| 261 | pub fn join(&self, rhs: &Self) -> Self { |
| 262 | if self.is_bottom() || rhs.is_top() { |
| 263 | return rhs.clone(); |
| 264 | } |
| 265 | if rhs.is_bottom() || self.is_top() { |
| 266 | return self.clone(); |
| 267 | } |
| 268 | let mut res = Self::top(); |
| 269 | for path in union_paths(self, rhs) { |
| 270 | let joined = join_interval(&self.var2itv(&path), &rhs.var2itv(&path)); |
| 271 | res.set_interval(&path, joined); |
| 272 | } |
| 273 | res |
| 274 | } |
| 275 | |
| 276 | pub fn meet(&self, rhs: &Self) -> Self { |
| 277 | if self.is_bottom() || rhs.is_bottom() { |
no test coverage detected