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