[PATCH] D49621: [libFuzzer] Initial implementation of weighted mutation leveraging during runtime.

Matt Morehouse via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 2 11:35:34 PDT 2018


morehouse added inline comments.


================
Comment at: lib/fuzzer/FuzzerMutate.cpp:601
+  double SumOfStats = std::accumulate(Stats.begin(), Stats.end(), 0.0);
+  if (!SumOfStats) return;
+  Distribution = std::discrete_distribution<size_t>(Stats.begin(), Stats.end());
----------------
`SumOfStats` doesn't need to be calculated.


Repository:
  rCRT Compiler Runtime

https://reviews.llvm.org/D49621





More information about the llvm-commits mailing list