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

Function is_bit_set

hail-fuzz/src/coverage.rs:351–357  ·  view source on GitHub ↗
(cov: &[u64], bit: u32)

Source from the content-addressed store, hash-verified

349gen_count_lookup_table!(SMALL_COUNT_LOOKUP_16, bucket_count_small);
350
351pub fn is_bit_set(cov: &[u64], bit: u32) -> bool {
352 let (index, bit) = (bit / 64, bit % 64);
353 match cov.get(index as usize) {
354 Some(entry) => (entry & (1 << bit)) != 0,
355 None => false,
356 }
357}
358
359type BlockCoverageSnapshot = Vec<u8>;
360

Callers 2

runMethod · 0.85
get_unreached_blocksMethod · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected