LLVM  6.0.0svn
Public Member Functions | Public Attributes | List of all members
fuzzer::Merger Struct Reference

#include "Fuzzer/FuzzerMerge.h"

Collaboration diagram for fuzzer::Merger:
Collaboration graph
[legend]

Public Member Functions

bool Parse (std::istream &IS, bool ParseCoverage)
 
bool Parse (const std::string &Str, bool ParseCoverage)
 
void ParseOrExit (std::istream &IS, bool ParseCoverage)
 
void PrintSummary (std::ostream &OS)
 
std::set< uint32_tParseSummary (std::istream &IS)
 
size_t Merge (const std::set< uint32_t > &InitialFeatures, std::vector< std::string > *NewFiles)
 
size_t Merge (std::vector< std::string > *NewFiles)
 
size_t ApproximateMemoryConsumption () const
 
std::set< uint32_tAllFeatures () const
 

Public Attributes

std::vector< MergeFileInfoFiles
 
size_t NumFilesInFirstCorpus = 0
 
size_t FirstNotProcessedFile = 0
 
std::string LastFailure
 

Detailed Description

Definition at line 58 of file FuzzerMerge.h.

Member Function Documentation

◆ AllFeatures()

std::set< uint32_t > fuzzer::Merger::AllFeatures ( ) const

Definition at line 181 of file FuzzerMerge.cpp.

References llvm::ARMBuildAttrs::File, and Files.

Referenced by Merge().

◆ ApproximateMemoryConsumption()

size_t fuzzer::Merger::ApproximateMemoryConsumption ( ) const

Definition at line 116 of file FuzzerMerge.cpp.

References fuzzer::F, and Files.

Referenced by fuzzer::Fuzzer::CrashResistantMerge().

◆ Merge() [1/2]

size_t fuzzer::Merger::Merge ( const std::set< uint32_t > &  InitialFeatures,
std::vector< std::string > *  NewFiles 
)

◆ Merge() [2/2]

size_t fuzzer::Merger::Merge ( std::vector< std::string > *  NewFiles)
inline

Definition at line 71 of file FuzzerMerge.h.

References Merge.

◆ Parse() [1/2]

bool fuzzer::Merger::Parse ( std::istream &  IS,
bool  ParseCoverage 
)

◆ Parse() [2/2]

bool fuzzer::Merger::Parse ( const std::string &  Str,
bool  ParseCoverage 
)

Definition at line 25 of file FuzzerMerge.cpp.

References Parse().

◆ ParseOrExit()

void fuzzer::Merger::ParseOrExit ( std::istream &  IS,
bool  ParseCoverage 
)

Definition at line 30 of file FuzzerMerge.cpp.

References Parse(), and fuzzer::Printf().

Referenced by fuzzer::Fuzzer::CrashResistantMerge().

◆ ParseSummary()

std::set< uint32_t > fuzzer::Merger::ParseSummary ( std::istream &  IS)

Definition at line 188 of file FuzzerMerge.cpp.

References assert(), and N.

Referenced by fuzzer::Fuzzer::CrashResistantMerge().

◆ PrintSummary()

void fuzzer::Merger::PrintSummary ( std::ostream &  OS)

Definition at line 171 of file FuzzerMerge.cpp.

References llvm::ARMBuildAttrs::File, and Files.

Referenced by fuzzer::Fuzzer::CrashResistantMerge().

Member Data Documentation

◆ Files

std::vector<MergeFileInfo> fuzzer::Merger::Files

◆ FirstNotProcessedFile

size_t fuzzer::Merger::FirstNotProcessedFile = 0

Definition at line 61 of file FuzzerMerge.h.

Referenced by Parse().

◆ LastFailure

std::string fuzzer::Merger::LastFailure

Definition at line 62 of file FuzzerMerge.h.

Referenced by Parse().

◆ NumFilesInFirstCorpus

size_t fuzzer::Merger::NumFilesInFirstCorpus = 0

Definition at line 60 of file FuzzerMerge.h.

Referenced by fuzzer::Fuzzer::CrashResistantMerge(), Merge(), and Parse().


The documentation for this struct was generated from the following files: