-
Notifications
You must be signed in to change notification settings - Fork 92
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
Delay writing metadata file (no UX impact) #2628
Conversation
Change required for model-checking#2493 and contracts work. This will allow us to store information collected during code generation.
Can you clarify in the description which compilation stage the writing of the metadata file was delayed to (and which stage it was currently written in)? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Also, not trying to rush (well maybe a bit) but I'm sorta waiting for this to get merged so I can finish the contracts rewrite that uses stubbing. |
Nice |
Description of changes:
Kani compiler will now only store KaniMetadata after compiling all harnesses. Before, we were storing before codegen in the first iteration of the compiler.
This will still allow us to generate metadata without actually performing codegen, if we ever implement a
kani list
subcommand. The metadata won't be stored though if Kani fails to codegen. However, we don't do anything extra with that file if the compilation fails.This change is required for #2493 and contracts work. This will allow us to store information collected during code generation.
Resolved issues:
Related to #2493
Related RFC:
N/A
Call-outs:
Testing:
How is this change tested? Existing tests
Is this a refactor change? yes
Checklist
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.