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: Reject modules that were never verified when building doo files #5170

Draft
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

robin-aws
Copy link
Member

Description

Fixes #4762 by adding a check in the library backend, for any modules that are to be compiled but were not verified and were not already preverified.

Note that it is still possible to build a doo file with --no-verify, but that option will be recorded in the resulting doo file, so it can never be used unless the consuming context also uses --no-verify.

How has this been tested?

Added doofiles/WithInclude.dfy as the direct regression test, but also added doofiles/MergeDooFiles.dfy to exercise the use case of passing doo files as direct sources rather than --library, which this check should not reject.

By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license.

@robin-aws robin-aws marked this pull request as draft March 12, 2024 15:42
@robin-aws
Copy link
Member Author

Flipped back to draft because I don't think the extra commit is correct, which also means I must be missing a test case somewhere to reject it. :)

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.

Include directives can lead to including unverified code in doo files
2 participants