parent
019c71a368
commit
2e26af90db
@ -312,12 +312,13 @@ where
|
||||
None => 0.0,
|
||||
};
|
||||
|
||||
let avg_top_size =
|
||||
match state.metadata::<TopRatedsMetadata>() {
|
||||
let avg_top_size = match state.metadata::<TopRatedsMetadata>() {
|
||||
Ok(m) => m.map().len() as f64,
|
||||
Err(_) => return Err(Error::key_not_found(
|
||||
"TopRatedsMetadata not found! You have to use Minimizer scheduler with this.",
|
||||
)),
|
||||
Err(e) => {
|
||||
return Err(Error::key_not_found(format!(
|
||||
"{e:?} You have to use Minimizer scheduler with this.",
|
||||
)))
|
||||
}
|
||||
};
|
||||
|
||||
weight *= 1.0 + (tc_ref / avg_top_size);
|
||||
|
@ -38,7 +38,11 @@ impl<E, EM, TE, S, Z> Stage<E, EM, S, Z> for AFLppCmplogTracingStage<'_, EM, TE,
|
||||
where
|
||||
TE: HasObservers + Executor<EM, BytesInput, S, Z>,
|
||||
TE::Observers: MatchNameRef + ObserversTuple<BytesInput, S>,
|
||||
S: HasCorpus<BytesInput> + HasCurrentTestcase<BytesInput> + HasMetadata + HasNamedMetadata + HasCurrentCorpusId,
|
||||
S: HasCorpus<BytesInput>
|
||||
+ HasCurrentTestcase<BytesInput>
|
||||
+ HasMetadata
|
||||
+ HasNamedMetadata
|
||||
+ HasCurrentCorpusId,
|
||||
{
|
||||
#[inline]
|
||||
fn perform(
|
||||
|
Loading…
x
Reference in New Issue
Block a user