From f435372b7832350f31e6fbca19ca0ae3c0379008 Mon Sep 17 00:00:00 2001 From: Kostya Serebryany Date: Wed, 23 May 2018 01:42:53 +0000 Subject: [libFuzzer] modify -print_corpus_stats to print whether the input reaches the focus function git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@333048 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/fuzzer/FuzzerCorpus.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/fuzzer/FuzzerCorpus.h') diff --git a/lib/fuzzer/FuzzerCorpus.h b/lib/fuzzer/FuzzerCorpus.h index 05d527ba0..d09702b3a 100644 --- a/lib/fuzzer/FuzzerCorpus.h +++ b/lib/fuzzer/FuzzerCorpus.h @@ -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); } } -- cgit v1.2.3