[libFuzzer] modify -print_corpus_stats to print whether the input reaches the focus function

llvm-svn: 333048
This commit is contained in:
Kostya Serebryany 2018-05-23 01:42:53 +00:00
parent 610ac3bd42
commit 7f5bf83f53
1 changed files with 2 additions and 2 deletions

View File

@ -166,9 +166,9 @@ class InputCorpus {
void PrintStats() {
for (size_t i = 0; i < Inputs.size(); i++) {
const auto &II = *Inputs[i];
Printf(" [%zd %s]\tsz: %zd\truns: %zd\tsucc: %zd\n", i,
Printf(" [% 3zd %s] sz: % 5zd runs: % 5zd succ: % 5zd focus: %d\n", i,
Sha1ToString(II.Sha1).c_str(), II.U.size(),
II.NumExecutedMutations, II.NumSuccessfullMutations);
II.NumExecutedMutations, II.NumSuccessfullMutations, II.HasFocusFunction);
}
}