Home
last modified time | relevance | path

Searched refs:ByteWithPayload (Results 1 – 3 of 3) sorted by relevance

/llvm-project-15.0.7/libcxx/test/libcxx/fuzzing/
H A Dfuzz.h23 struct ByteWithPayload { struct
27 ByteWithPayload(std::uint8_t k) : key(k), payload(0) { } in ByteWithPayload() argument
28 ByteWithPayload(std::uint8_t k, std::size_t p) : key(k), payload(p) { } in ByteWithPayload() argument
30 friend bool operator==(ByteWithPayload const& x, ByteWithPayload const& y) {
34 friend bool operator!=(ByteWithPayload const& x, ByteWithPayload const& y) {
39 bool operator()(ByteWithPayload const& x, ByteWithPayload const& y) const in operator() argument
44 bool operator()(ByteWithPayload const& x, ByteWithPayload const& y) const in operator() argument
49 bool operator()(ByteWithPayload const& x, ByteWithPayload const& y) const { in operator() argument
54 friend void swap(ByteWithPayload& lhs, ByteWithPayload& rhs) { in swap() argument
65 std::is_same<typename std::iterator_traits<Iter1>::value_type, ByteWithPayload>::value &&
[all …]
H A Dstable_sort.pass.cpp19 std::vector<ByteWithPayload> input; in LLVMFuzzerTestOneInput()
21 input.push_back(ByteWithPayload(data[i], i)); in LLVMFuzzerTestOneInput()
23 std::vector<ByteWithPayload> working = input; in LLVMFuzzerTestOneInput()
24 std::stable_sort(working.begin(), working.end(), ByteWithPayload::key_less()); in LLVMFuzzerTestOneInput()
26 if (!std::is_sorted(working.begin(), working.end(), ByteWithPayload::key_less())) in LLVMFuzzerTestOneInput()
31 auto range = std::equal_range(iter, working.end(), *iter, ByteWithPayload::key_less()); in LLVMFuzzerTestOneInput()
32 if (!std::is_sorted(range.first, range.second, ByteWithPayload::total_less())) in LLVMFuzzerTestOneInput()
H A Dstable_partition.pass.cpp21 std::vector<ByteWithPayload> input; in LLVMFuzzerTestOneInput()
23 input.push_back(ByteWithPayload(data[i], i)); in LLVMFuzzerTestOneInput()
24 std::vector<ByteWithPayload> working = input; in LLVMFuzzerTestOneInput()
31 if (!std::is_sorted(working.begin(), iter, ByteWithPayload::payload_less())) in LLVMFuzzerTestOneInput()
33 if (!std::is_sorted(iter, working.end(), ByteWithPayload::payload_less())) in LLVMFuzzerTestOneInput()