Skip to content

[DSLX Fuzz Testing] Fixed support for specifying domains of tuple parameters in fuzz tests.#4222

Draft
copybara-service[bot] wants to merge 1 commit intomainfrom
test_912076466
Draft

[DSLX Fuzz Testing] Fixed support for specifying domains of tuple parameters in fuzz tests.#4222
copybara-service[bot] wants to merge 1 commit intomainfrom
test_912076466

Conversation

@copybara-service
Copy link
Copy Markdown

[DSLX Fuzz Testing] Fixed support for specifying domains of tuple parameters in fuzz tests.

FuzzTest unpacks TupleOf domains for free functions, causing a signature mismatch when the function expects a single tuple argument. This was fixed by:

  • Wrapping top-level tuple domains in an extra fuzztest::TupleOf(...).
  • Generating C++ std::tuple for tuple parameters in the property function signature.
  • Generating recursive conversion logic to xls::Value in the property function body.

Also, updated the catalog of examples in fuzz_test_domains.x and documented the solution in README.md.

…ameters in fuzz tests.

FuzzTest unpacks `TupleOf` domains for free functions, causing a signature mismatch when the function expects a single tuple argument. This was fixed by:
- Wrapping top-level tuple domains in an extra `fuzztest::TupleOf(...)`.
- Generating C++ `std::tuple` for tuple parameters in the property function signature.
- Generating recursive conversion logic to `xls::Value` in the property function body.

Also, updated the catalog of examples in `fuzz_test_domains.x` and documented the solution in `README.md`.

PiperOrigin-RevId: 912076466
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