MCPcopy Create free account
hub / github.com/MultiFuzz/MultiFuzz / merge

Method merge

hail-fuzz/src/load_resizer.rs:439–451  ·  view source on GitHub ↗
(&mut self, fork: &EvalState)

Source from the content-addressed store, hash-verified

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.

Callers 1

calculate_used_bitsMethod · 0.45

Calls 1

get_mutMethod · 0.80

Tested by

no test coverage detected