pub struct StdTMinMutationalStage<CS, E, EM, F1, F2, FF, M, OT, Z> { /* private fields */ }
Expand description

The default corpus entry minimising mutational stage

Implementations§

source§

impl<CS, E, EM, F1, F2, FF, M, OT, Z> StdTMinMutationalStage<CS, E, EM, F1, F2, FF, M, OT, Z>where
    CS: Scheduler,
    M: Mutator<CS::Input, CS::State>,
    Z: ExecutionProcessor<OT, State = CS::State>,

source

pub fn new(mutator: M, factory: FF, runs: usize) -> Self

Creates a new minimising mutational stage that will minimize provided corpus entries

Trait Implementations§

source§

impl<CS: Clone, E: Clone, EM: Clone, F1: Clone, F2: Clone, FF: Clone, M: Clone, OT: Clone, Z: Clone> Clone for StdTMinMutationalStage<CS, E, EM, F1, F2, FF, M, OT, Z>

source§

fn clone(&self) -> StdTMinMutationalStage<CS, E, EM, F1, F2, FF, M, OT, Z>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<CS: Debug, E: Debug, EM: Debug, F1: Debug, F2: Debug, FF: Debug, M: Debug, OT: Debug, Z: Debug> Debug for StdTMinMutationalStage<CS, E, EM, F1, F2, FF, M, OT, Z>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<CS, E, EM, F1, F2, FF, M, OT, Z> FeedbackFactory<F2, <Z as UsesState>::State, OT> for StdTMinMutationalStage<CS, E, EM, F1, F2, FF, M, OT, Z>where
    F2: Feedback<Z::State>,
    FF: FeedbackFactory<F2, Z::State, OT>,
    Z: UsesState,
    Z::State: HasClientPerfMonitor,

source§

fn create_feedback(&self, ctx: &OT) -> F2

Create the feedback from the provided context
source§

impl<CS, E, EM, F1, F2, FF, M, OT, Z> Stage<E, EM, Z> for StdTMinMutationalStage<CS, E, EM, F1, F2, FF, M, OT, Z>where
    CS: Scheduler,
    CS::State: HasCorpus + HasExecutions + HasMaxSize + HasClientPerfMonitor,
    <CS::State as UsesInput>::Input: HasLen + Hash,
    E: Executor<EM, Z> + HasObservers<Observers = OT, State = CS::State>,
    EM: EventFirer<State = CS::State>,
    F1: Feedback<CS::State>,
    F2: Feedback<CS::State>,
    FF: FeedbackFactory<F2, CS::State, OT>,
    M: Mutator<CS::Input, CS::State>,
    OT: ObserversTuple<CS::State>,
    Z: ExecutionProcessor<OT, State = CS::State> + ExecutesInput<E, EM> + HasFeedback<Feedback = F1> + HasScheduler<Scheduler = CS>,

source§

fn perform(
    &mut self,
    fuzzer: &mut Z,
    executor: &mut E,
    state: &mut CS::State,
    manager: &mut EM,
    corpus_idx: CorpusId
) -> Result<(), Error>

Run the stage
source§

impl<CS, E, EM, F1, F2, FF, M, OT, Z> TMinMutationalStage<CS, E, EM, F1, F2, M, OT, Z> for StdTMinMutationalStage<CS, E, EM, F1, F2, FF, M, OT, Z>where
    CS: Scheduler,
    E: HasObservers<Observers = OT, State = CS::State> + Executor<EM, Z>,
    EM: EventFirer<State = CS::State>,
    F1: Feedback<CS::State>,
    F2: Feedback<CS::State>,
    FF: FeedbackFactory<F2, CS::State, OT>,
    <CS::State as UsesInput>::Input: HasLen + Hash,
    M: Mutator<CS::Input, CS::State>,
    OT: ObserversTuple<CS::State>,
    CS::State: HasClientPerfMonitor + HasCorpus + HasExecutions + HasMaxSize,
    Z: ExecutionProcessor<OT, State = CS::State> + ExecutesInput<E, EM> + HasFeedback<Feedback = F1> + HasScheduler<Scheduler = CS>,

source§

fn mutator(&self) -> &M

The mutator, added to this stage

source§

fn mutator_mut(&mut self) -> &mut M

The list of mutators, added to this stage (as mutable ref)

source§

fn iterations(
    &self,
    _state: &mut CS::State,
    _corpus_idx: CorpusId
) -> Result<usize, Error>

Gets the number of iterations from a fixed number of runs

source§

fn perform_minification(
    &mut self,
    fuzzer: &mut Z,
    executor: &mut E,
    state: &mut CS::State,
    manager: &mut EM,
    base_corpus_idx: CorpusId
) -> Result<(), Error>

Runs this (mutational) stage for new objectives
source§

impl<CS, E, EM, F1, F2, FF, M, OT, Z> UsesState for StdTMinMutationalStage<CS, E, EM, F1, F2, FF, M, OT, Z>where
    CS: Scheduler,
    M: Mutator<CS::Input, CS::State>,
    Z: ExecutionProcessor<OT, State = CS::State>,

§

type State = <CS as UsesState>::State

The state known by this type.

Auto Trait Implementations§

§

impl<CS, E, EM, F1, F2, FF, M, OT, Z> RefUnwindSafe for StdTMinMutationalStage<CS, E, EM, F1, F2, FF, M, OT, Z>where
    CS: RefUnwindSafe,
    E: RefUnwindSafe,
    EM: RefUnwindSafe,
    F1: RefUnwindSafe,
    F2: RefUnwindSafe,
    FF: RefUnwindSafe,
    M: RefUnwindSafe,
    OT: RefUnwindSafe,
    Z: RefUnwindSafe,

§

impl<CS, E, EM, F1, F2, FF, M, OT, Z> Send for StdTMinMutationalStage<CS, E, EM, F1, F2, FF, M, OT, Z>where
    CS: Send,
    E: Send,
    EM: Send,
    F1: Send,
    F2: Send,
    FF: Send,
    M: Send,
    OT: Send,
    Z: Send,

§

impl<CS, E, EM, F1, F2, FF, M, OT, Z> Sync for StdTMinMutationalStage<CS, E, EM, F1, F2, FF, M, OT, Z>where
    CS: Sync,
    E: Sync,
    EM: Sync,
    F1: Sync,
    F2: Sync,
    FF: Sync,
    M: Sync,
    OT: Sync,
    Z: Sync,

§

impl<CS, E, EM, F1, F2, FF, M, OT, Z> Unpin for StdTMinMutationalStage<CS, E, EM, F1, F2, FF, M, OT, Z>where
    CS: Unpin,
    E: Unpin,
    EM: Unpin,
    F1: Unpin,
    F2: Unpin,
    FF: Unpin,
    M: Unpin,
    OT: Unpin,
    Z: Unpin,

§

impl<CS, E, EM, F1, F2, FF, M, OT, Z> UnwindSafe for StdTMinMutationalStage<CS, E, EM, F1, F2, FF, M, OT, Z>where
    CS: UnwindSafe,
    E: UnwindSafe,
    EM: UnwindSafe,
    F1: UnwindSafe,
    F2: UnwindSafe,
    FF: UnwindSafe,
    M: UnwindSafe,
    OT: UnwindSafe,
    Z: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for Twhere
    T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere
    T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere
    T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere
    U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<Tail, T> Prepend<T> for Tail

§

type PreprendResult = Tail

The Resulting TupleList, of an Prepend::prepend() call, including the prepended entry.
source§

fn prepend(self, value: T) -> (T, <Tail as Prepend<T>>::PreprendResult)

Prepend a value to this tuple, returning a new tuple with prepended value.
source§

impl<T> ToOwned for Twhere
    T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere
    U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere
    U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<KS> UsesInput for KSwhere
    KS: UsesState,

§

type Input = <<KS as UsesState>::State as UsesInput>::Input

Type which will be used throughout this state.