Skip to content

[DSLX Fuzz testing] Refactor ValidateFuzzTestDomain to always evaluate domain expressions to InterpValue using ConstexprEvaluator. Restores early type safety by recursively validating constexpr-evaluated domain values against struct parameter types.#4333

Draft
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_922314923

Conversation

@copybara-service
Copy link
Copy Markdown

[DSLX Fuzz testing] Refactor ValidateFuzzTestDomain to always evaluate domain expressions to InterpValue using ConstexprEvaluator. Restores early type safety by recursively validating constexpr-evaluated domain values against struct parameter types.

Support StructType in ValidateFuzzTestDomainValue by recursively validating elements against struct members.

Fix a bug where empty tuple domains () (which represent Arbitrary) were incorrectly rejected as "implies a tuple type, but parameter is not a tuple". Empty tuples are now allowed as arbitrary domains for any parameter type.

…e domain expressions to InterpValue using ConstexprEvaluator. Restores early type safety by recursively validating constexpr-evaluated domain values against struct parameter types.

Support StructType in ValidateFuzzTestDomainValue by recursively validating elements against struct members.

Fix a bug where empty tuple domains `()` (which represent Arbitrary) were incorrectly rejected as "implies a tuple type, but parameter is not a tuple". Empty tuples are now allowed as arbitrary domains for any parameter type.

PiperOrigin-RevId: 922314923
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant