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

Method blocks_for

hail-fuzz/src/coverage.rs:455–459  ·  view source on GitHub ↗

Translate coverage bits to real blocks.

(&self, vm: &mut Vm, bits: &[u32])

Source from the content-addressed store, hash-verified

453
454 /// Translate coverage bits to real blocks.
455 pub fn blocks_for(&self, vm: &mut Vm, bits: &[u32]) -> Vec<u64> {
456 self.update_mapping_cache(vm);
457 let mapping = self.mapping_cache.borrow();
458 bits.iter().map(|x| mapping.get(*x as usize).map_or(0, |(addr, _)| *addr)).collect()
459 }
460}
461
462impl Coverage for BlockCoverage {

Callers 1

trace_new_bitsMethod · 0.80

Calls 2

update_mapping_cacheMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected