Move existing fuzzers to test/fuzz#9053
Merged
alexreinking merged 17 commits intomainfrom Mar 22, 2026
Merged
Conversation
mcourteaux
reviewed
Mar 17, 2026
| template<typename T> | ||
| auto PickValueInArray(T &array) -> decltype(auto) { | ||
| return array[ConsumeIntegralInRange(static_cast<std::size_t>(0), std::size(array) - 1)]; | ||
| auto PickValueInArray(const std::initializer_list<T> &list) -> decltype(auto) { |
Contributor
There was a problem hiding this comment.
Why decltype(auto) instead of simply T? What does that even mean? it's already auto? The signature that exists is perfectly fine IMO.
mcourteaux
reviewed
Mar 17, 2026
Contributor
mcourteaux
left a comment
There was a problem hiding this comment.
Nice. Why does git not detect the file moves? It's treating it as a full new file.
Co-authored-by: Andrew Adams <anadams@adobe.com>
Member
Author
|
A fuzzing failure: |
Member
Author
|
I decided to back out merging the random expression generators between simplify and lossless_cast. It started creeping too far in scope. The simplifier fixes we discovered along the way remain, of course. |
mcourteaux
approved these changes
Mar 21, 2026
Contributor
mcourteaux
left a comment
There was a problem hiding this comment.
LGTM, except one concern regarding simplifying 0 / 0, @abadams.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR moves the existing fuzz tests that were under test/correctness to test/fuzz, and integrates them into the fuzz test framework from #9050.
Checklist
performance.