Skip to content
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

Fix loop contracts transformation when loops in branching #3640

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

qinheping
Copy link
Contributor

In loop contracts transformation, we want to visit non-loop blocks before visiting loop blocks. So we pop loop_queue only when queue is empty. We should use or_else instead of or which always pop the front of loop_queue.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.

@qinheping qinheping requested a review from a team as a code owner October 24, 2024 05:24
@github-actions github-actions bot added the Z-BenchCI Tag a PR to run benchmark CI label Oct 24, 2024
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why did you have to change this test?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I put the first loop in a if statement, so that the test can be correctly proved only if the bug is fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Z-BenchCI Tag a PR to run benchmark CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants