mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-25 22:51:03 +00:00
Extend clang-format column limit to 140
This commit is contained in:
@@ -177,8 +177,7 @@ namespace fuzzer
|
||||
const auto executions = context.executions.exchange(0);
|
||||
const auto highest_scorer = context.generator.get_highest_scorer();
|
||||
const auto avg_score = context.generator.get_average_score();
|
||||
printf("Executions/s: %" PRIu64 " - Score: %" PRIx64 " - Avg: %.3f\n", executions, highest_scorer.score,
|
||||
avg_score);
|
||||
printf("Executions/s: %" PRIu64 " - Score: %" PRIx64 " - Avg: %.3f\n", executions, highest_scorer.score, avg_score);
|
||||
}
|
||||
|
||||
const auto duration = t.elapsed();
|
||||
|
||||
@@ -19,8 +19,7 @@ namespace fuzzer
|
||||
{
|
||||
virtual ~executer() = default;
|
||||
|
||||
virtual execution_result execute(std::span<const uint8_t> data,
|
||||
const std::function<coverage_functor>& coverage_handler) = 0;
|
||||
virtual execution_result execute(std::span<const uint8_t> data, const std::function<coverage_functor>& coverage_handler) = 0;
|
||||
};
|
||||
|
||||
struct fuzzing_handler
|
||||
|
||||
@@ -106,8 +106,7 @@ namespace fuzzer
|
||||
}
|
||||
|
||||
const auto insert_at_random = this->rng.get(10) == 0;
|
||||
const auto index =
|
||||
insert_at_random ? (this->rng.get<size_t>() % this->top_scorer_.size()) : this->lowest_scorer;
|
||||
const auto index = insert_at_random ? (this->rng.get<size_t>() % this->top_scorer_.size()) : this->lowest_scorer;
|
||||
|
||||
this->top_scorer_[index] = std::move(entry);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user