MCPcopy Create free account
hub / github.com/HexHive/NASS / PrintRecommendedDictionary

Method PrintRecommendedDictionary

fuzz/libfuzzer/FuzzerMutate.cpp:493–507  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

491}
492
493void MutationDispatcher::PrintRecommendedDictionary() {
494 std::vector<DictionaryEntry> V;
495 for (auto &DE : PersistentAutoDictionary)
496 if (!ManualDictionary.ContainsWord(DE.GetW()))
497 V.push_back(DE);
498 if (V.empty()) return;
499 Printf("###### Recommended dictionary. ######\n");
500 for (auto &DE: V) {
501 assert(DE.GetW().size());
502 Printf("\"");
503 PrintASCII(DE.GetW(), "\"");
504 Printf(" # Uses: %zd\n", DE.GetUseCount());
505 }
506 Printf("###### End of recommended dictionary. ######\n");
507}
508
509void MutationDispatcher::PrintMutationSequence(bool Verbose) {
510 Printf("MS: %zd ", CurrentMutatorSequence.size());

Callers 1

LoopMethod · 0.80

Calls 7

ContainsWordMethod · 0.80
GetUseCountMethod · 0.80
PrintfFunction · 0.70
PrintASCIIFunction · 0.70
push_backMethod · 0.45
emptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected