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

Enable contracts for const generic functions #3726

Merged
merged 11 commits into from
Nov 19, 2024

Conversation

qinheping
Copy link
Contributor

This PR adds dummy assignments of the input variables to local variables in contracts-replace-closure to avoid may-drop checks in const generic functions.

Resolves #3667

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 November 18, 2024 18:27
@github-actions github-actions bot added the Z-BenchCI Tag a PR to run benchmark CI label Nov 18, 2024
Copy link
Contributor

@zhassan-aws zhassan-aws left a comment

Choose a reason for hiding this comment

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

Nice, thanks!

@qinheping qinheping marked this pull request as draft November 18, 2024 21:35
@qinheping qinheping marked this pull request as ready for review November 18, 2024 22:10
@qinheping qinheping added this pull request to the merge queue Nov 19, 2024
Merged via the queue into model-checking:main with commit 51958f0 Nov 19, 2024
26 checks passed
@qinheping qinheping deleted the issues/3667 branch November 19, 2024 18:24
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.

Cannot annotate a const generic function with a contract
3 participants