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

Function bucket_count_afl

hail-fuzz/src/coverage.rs:265–277  ·  view source on GitHub ↗
(count: u8)

Source from the content-addressed store, hash-verified

263/// that each bit in the output byte corresponds to a range of counts.
264#[rustfmt::skip]
265const fn bucket_count_afl(count: u8) -> u8 {
266 match count {
267 0 => 0b0000_0000,
268 1 => 0b0000_0001,
269 2 => 0b0000_0010,
270 3 => 0b0000_0100,
271 4..=7 => 0b0000_1000,
272 8..=15 => 0b0001_0000,
273 16..=31 => 0b0010_0000,
274 32..=127 => 0b0100_0000,
275 128..=255 => 0b1000_0000,
276 }
277}
278
279/// Modified that avoids treating smaller counts as interesting if we already have inputs that reach
280/// larger counts.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected