summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Fuzzer/FuzzerInternal.h
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2015-11-04 23:22:25 +0000
committerKostya Serebryany <kcc@google.com>2015-11-04 23:22:25 +0000
commite692621a9dc6eff696939a552fe7aa1fed4300ad (patch)
tree923baa6ac86011e7e8689574dd0d12eeb67d75d8 /llvm/lib/Fuzzer/FuzzerInternal.h
parent58a7e659d94d14fe6e78012d474691964f31a29a (diff)
downloadbcm5719-llvm-e692621a9dc6eff696939a552fe7aa1fed4300ad.tar.gz
bcm5719-llvm-e692621a9dc6eff696939a552fe7aa1fed4300ad.zip
[libFuzzer] when choosing the next unit to mutate, give some preference to the most recent units (they are more likely to be interesting)
llvm-svn: 252097
Diffstat (limited to 'llvm/lib/Fuzzer/FuzzerInternal.h')
-rw-r--r--llvm/lib/Fuzzer/FuzzerInternal.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Fuzzer/FuzzerInternal.h b/llvm/lib/Fuzzer/FuzzerInternal.h
index d6e1cb85a23..0fa0b90b803 100644
--- a/llvm/lib/Fuzzer/FuzzerInternal.h
+++ b/llvm/lib/Fuzzer/FuzzerInternal.h
@@ -99,6 +99,7 @@ class Fuzzer {
};
Fuzzer(UserSuppliedFuzzer &USF, FuzzingOptions Options);
void AddToCorpus(const Unit &U) { Corpus.push_back(U); }
+ size_t ChooseUnitToMutate();
void Loop();
void ShuffleAndMinimize();
void InitializeTraceState();
OpenPOWER on IntegriCloud