pub struct NautilusGenerator { /* private fields */ }Expand description
NAUTILUS-style coverage-guided generator
Implementations§
Source§impl NautilusGenerator
impl NautilusGenerator
Sourcepub fn with_max_corpus(self, size: usize) -> Self
pub fn with_max_corpus(self, size: usize) -> Self
Set maximum corpus size
Sourcepub fn initialize_corpus(&mut self)
pub fn initialize_corpus(&mut self)
Initialize corpus with seed inputs from exhaustive enumeration
Sourcepub fn initialize_corpus_with_ast(&mut self)
pub fn initialize_corpus_with_ast(&mut self)
Initialize corpus with ASTs for mutation
Sourcepub fn add_to_corpus(
&mut self,
code: GeneratedCode,
coverage: CoverageMap,
) -> bool
pub fn add_to_corpus( &mut self, code: GeneratedCode, coverage: CoverageMap, ) -> bool
Add a new entry to the corpus if it has new coverage
Sourcepub fn generate(&mut self, count: usize) -> Vec<GeneratedCode>
pub fn generate(&mut self, count: usize) -> Vec<GeneratedCode>
Generate programs using coverage-guided fuzzing
Sourcepub fn corpus_size(&self) -> usize
pub fn corpus_size(&self) -> usize
Get current corpus size
Sourcepub fn coverage_stats(&self) -> CoverageStats
pub fn coverage_stats(&self) -> CoverageStats
Get global coverage statistics
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NautilusGenerator
impl RefUnwindSafe for NautilusGenerator
impl Send for NautilusGenerator
impl Sync for NautilusGenerator
impl Unpin for NautilusGenerator
impl UnsafeUnpin for NautilusGenerator
impl UnwindSafe for NautilusGenerator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more