Skip to content

Added arrays and tuples to the IR Fuzzer. #2611

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

copybara-service[bot]
Copy link

Added arrays and tuples to the IR Fuzzer.

Arrays and tuples are recursive types in the sense that they contain sub-types. In order to coerce between recursive types, we must recursively iterate over the sub-types and coerce them into the correct type. This is currently done by using a default value if the types mismatch. Same categorical type conversion for tuples and arrays simply extends or shrinks the list with default types, which is done by recreating the list type.

@copybara-service copybara-service bot force-pushed the test_783102262 branch 4 times, most recently from 8d09a07 to ab906b6 Compare July 23, 2025 18:33
Arrays and tuples are recursive types in the sense that they contain sub-types. In order to coerce between recursive types, we must recursively iterate over the sub-types and coerce them into the correct type. This is currently done by using a default value if the types mismatch. Same categorical type conversion for tuples and arrays simply extends or shrinks the list with default types, which is done by recreating the list type.

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