(&mut self, fork: &EvalState)
| 437 | } |
| 438 | |
| 439 | fn merge(&mut self, fork: &EvalState) { |
| 440 | for (src, metadata) in &fork.loads { |
| 441 | match self.loads.entry(*src) { |
| 442 | std::collections::hash_map::Entry::Occupied(mut slot) => { |
| 443 | slot.get_mut().max_bit = slot.get_mut().max_bit.max(metadata.max_bit); |
| 444 | slot.get_mut().min_bit = slot.get_mut().min_bit.min(metadata.min_bit); |
| 445 | } |
| 446 | std::collections::hash_map::Entry::Vacant(slot) => { |
| 447 | slot.insert(*metadata); |
| 448 | } |
| 449 | } |
| 450 | } |
| 451 | } |
| 452 | } |
| 453 | |
| 454 | /// Removes upper bits from `a` and `b` for operations with partial constants. |
no test coverage detected