Lines Matching refs:Unit
67 void Fuzzer::PrintUnitInASCII(const Unit &U, const char *PrintAfter) {
98 Printf("ALARM: working on the last Unit for %zd seconds\n", Seconds);
148 std::vector<Unit> AdditionalCorpus;
179 std::vector<Unit> NewCorpus;
185 [](const Unit &A, const Unit &B) { return A.size() < B.size(); });
187 Unit &U = CurrentUnit;
208 bool Fuzzer::RunOne(const Unit &U) {
225 Printf("Slowest unit: %zd s:\n", TimeOfLongestUnitInSeconds);
226 WriteUnitToFileWithPrefix(U, "slow-unit-");
231 void Fuzzer::RunOneAndUpdateCorpus(Unit &U) {
240 void Fuzzer::ExecuteCallback(const Unit &U) {
287 void Fuzzer::WriteToOutputCorpus(const Unit &U) {
296 void Fuzzer::WriteUnitToFileWithPrefix(const Unit &U, const char *Prefix) {
303 Printf("artifact_prefix='%s'; Test unit written to %s\n",
318 void Fuzzer::PrintStatusForNewUnit(const Unit &U) {
329 void Fuzzer::ReportNewCoverage(const Unit &U) {
381 assert(NewSize > 0 && "Mutator returned empty unit");
383 "Mutator return overisized unit");
391 Unit BackUp = U;
403 // Returns an index of random unit from the corpus to mutate.
425 // - Choose one random unit.
427 // - Start fuzzing as if the chosen unit was the only element of the corpus.
435 Unit U = ChooseUnitToMutate();
440 std::vector<Unit> SavedCorpus;