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

Emit an error when proof_for_contract function is not found #3609

Merged
merged 7 commits into from
Oct 19, 2024

Conversation

zhassan-aws
Copy link
Contributor

Currently, Kani panics if the function specified in the proof_for_contract attribute is not found (e.g. because the function is not reachable) (see #3467). This PR adds an error message pointing out the issue.

Towards #3467

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

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

@celinval celinval left a comment

Choose a reason for hiding this comment

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

I wonder if this should be done as part of kani::middle::check_reachable_items which is where we run our validations. The main advantage is that we emit all possible configuration errors.

I won't block this PR though since it's a clear improvement to the existing flow. Thanks!

@zhassan-aws
Copy link
Contributor Author

I wonder if this should be done as part of kani::middle::check_reachable_items which is where we run our validations

That makes sense. I'll check if it's easy to do that.

@zhassan-aws
Copy link
Contributor Author

I moved the check to check_reachable_items.

Copy link
Contributor

@celinval celinval left a comment

Choose a reason for hiding this comment

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

Thanks!!!

@zhassan-aws zhassan-aws added this pull request to the merge queue Oct 19, 2024
Merged via the queue into model-checking:main with commit dcb4d6d Oct 19, 2024
27 checks passed
@zhassan-aws zhassan-aws deleted the iss-3467 branch October 19, 2024 01:54
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