Lines Matching refs:Corpus
138 Fuzzer::Fuzzer(UserCallback CB, InputCorpus &Corpus, MutationDispatcher &MD,
140 : CB(CB), Corpus(Corpus), MD(MD), Options(Options) {
333 if (size_t N = Features ? Features : Corpus.NumFeatures())
335 if (!Corpus.empty()) {
336 Printf(" corp: %zd", Corpus.NumActiveUnits());
337 if (size_t N = Corpus.SizeInBytes()) {
345 if (size_t FF = Corpus.NumInputsThatTouchFocusFunction())
364 Corpus.PrintStats();
407 if (Corpus.HasUnit(Options.ExitOnItem)) {
432 if (!Corpus.HasUnit(U)) {
521 size_t NumUpdatesBefore = Corpus.NumFeatureUpdates();
523 if (Corpus.AddFeature(Feature, static_cast<uint32_t>(Size), Options.Shrink))
526 Corpus.UpdateFeatureFrequency(II, Feature);
535 size_t NumNewFeatures = Corpus.NumFeatureUpdates() - NumUpdatesBefore;
539 Corpus.AddToCorpus({Data, Data + Size}, NumNewFeatures, MayDeleteFile,
553 Corpus.Replace(II, {Data, Data + Size}, TimeOfUnit);
657 Printf(" L: %zd/%zd ", U.size(), Corpus.MaxInputSize());
721 auto &II = Corpus.ChooseUnitToMutate(MD.GetRand());
723 auto &CrossOverII = Corpus.ChooseUnitToCrossOverWith(
757 Corpus.IncrementNumExecutedMutations();
841 Corpus.NumInputsThatTouchFocusFunction(), Corpus.size());
844 Corpus.NumInputsWithDataFlowTrace(),
845 Corpus.NumInputsThatTouchFocusFunction());
848 if (Corpus.empty() && Options.MaxNumberOfRuns) {
855 Corpus.AddToCorpus({'\n'}, /*NumFeatures=*/1, /*MayDeleteFile=*/true,
874 Min(MaxMutationLen, Max(size_t(4), Corpus.MaxInputSize()));