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

Allow users to only replace calls to "proved" functions with contracts #142

Open
feliperodri opened this issue Oct 5, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@feliperodri
Copy link
Contributor

We should prevent users from using contracts for unproven functions, since this could lead to unsound results.

I don't think this could be built into CBMC because this would require a "global" view of a project -- track contracts that have been already proved and can be "trusted".
This would probably be a CI script that implements a top-sort over call graph and verifies functions bottom-up in the call tree, i.e. first "enforce" contracts for callee functions and then replace them in the caller's body if the contracts are found to be correct.

Actually, I think there may be good reasons to do this. Doing this is a case of completing a proof under some assumptions. I would prefer to do something a little more relaxed. Either

  1. Allow this in general, but have CI report all functions used but not checked.
  2. Allow this only for functions in some list supplied by the user so it is not done accidentally ... and still have the CI report all such functions used but not checked.
@feliperodri feliperodri added the enhancement New feature or request label Oct 5, 2022
@feliperodri feliperodri self-assigned this Nov 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant