Searched refs:sort_iter (Results 1 – 2 of 2) sorted by relevance
/external/llvm-project/libcxx/test/libcxx/fuzzing/ |
D | partial_sort.pass.cpp | 24 const auto sort_iter = working.begin() + sort_point; in LLVMFuzzerTestOneInput() local 25 std::partial_sort(working.begin(), sort_iter, working.end()); in LLVMFuzzerTestOneInput() 27 if (sort_iter != working.end()) { in LLVMFuzzerTestOneInput() 28 const std::uint8_t nth = *std::min_element(sort_iter, working.end()); in LLVMFuzzerTestOneInput() 29 if (!std::all_of(working.begin(), sort_iter, [=](std::uint8_t v) { return v <= nth; })) in LLVMFuzzerTestOneInput() 31 if (!std::all_of(sort_iter, working.end(), [=](std::uint8_t v) { return v >= nth; })) in LLVMFuzzerTestOneInput() 34 if (!std::is_sorted(working.begin(), sort_iter)) in LLVMFuzzerTestOneInput()
|
/external/libcxx/fuzzing/ |
D | fuzzing.cpp | 299 const auto sort_iter = working.begin() + sort_point; in partial_sort() local 300 std::partial_sort(working.begin(), sort_iter, working.end()); in partial_sort() 302 if (sort_iter != working.end()) in partial_sort() 304 const uint8_t nth = *std::min_element(sort_iter, working.end()); in partial_sort() 305 if (!std::all_of(working.begin(), sort_iter, [=](uint8_t v) { return v <= nth; })) in partial_sort() 307 if (!std::all_of(sort_iter, working.end(), [=](uint8_t v) { return v >= nth; })) in partial_sort() 310 if (!std::is_sorted(working.begin(), sort_iter)) return 3; in partial_sort()
|