8000 Added a test to the IR Fuzzer that verifies the result of IR before and after an optimization pass. by copybara-service[bot] · Pull Request #2465 · google/xls · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Added a test to the IR Fuzzer that verifies the result of IR before and after an optimization pass. #2465

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 a test to the IR Fuzzer that verifies the result of IR before and after an optimization pass.

A new IrFuzzTest was added which generates random IR, runs the ReassociationPass over it, plugs in parameters into the non-reassociated IR and the reassociated IR, and verifies that the results are the same. To achieve this, I added a function which accepts an optimization pass object and then proceeds to perform all of the logic. Additionally, the IrFuzzDomain was updated to allow you to generate fuzzed integer parameters, with a way to configure how many parameter sets are generated for each IR function.

@copybara-service copybara-service bot force-pushed the test_773803866 branch 6 times, most recently from e43b893 to ae6d73b Compare June 30, 2025 18:10
…nd after an optimization pass.

A new IrFuzzTest was added which generates random IR, runs the ReassociationPass over it, plugs in parameters into the non-reassociated IR and the reassociated IR, and verifies that the results are the same. To achieve this, I added a function which accepts an optimization pass object and then proceeds to perform all of the logic. Additionally, the IrFuzzDomain was updated to allow you to generate fuzzed integer parameters, with a way to configure how many parameter sets are generated for each IR function.

PiperOrigin-RevId: 773803866
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
0