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

Method average_stream_end_execs

hail-fuzz/src/extension.rs:347–354  ·  view source on GitHub ↗

Returns the average (across streams) number of times that we end execution due to reaching the end of a particular stream.

(&self)

Source from the content-addressed store, hash-verified

345 /// Returns the average (across streams) number of times that we end execution due to reaching
346 /// the end of a particular stream.
347 pub(crate) fn average_stream_end_execs(&self) -> f64 {
348 if self.stream_exits.is_empty() {
349 return 1.0;
350 }
351
352 let total_stream_exits: usize = self.stream_exits.values().sum();
353 total_stream_exits as f64 / self.stream_exits.len() as f64
354 }
355
356 /// Returns a factor to use for length extension that attempts to increase the size of inputs
357 /// that regularly cause execution to stop.

Callers 1

extension_factorMethod · 0.80

Calls 2

is_emptyMethod · 0.80
lenMethod · 0.45

Tested by

no test coverage detected