You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
kani-driver needs its own notion of Kani Metadata #1758
In kani-compiler, we accumulate metadata in the GotoCtx. We then translate this into:
In kani_metadata, we record the "file format" for Kani metadata. We then read this into:
In kani-driver, we then apply a "merge" operation to produce one overall metadata structure.
This last step is an inappropriate hack. It "worked" when metadata consisted of nothing but a flat array of proof harnesses. But now we want richer structure allowing us to aggregate this information better.
Further, that was (maybe) never even the right behavior because it meant we accumulated together all proof harnesses from dependencies as well, when we really only care about the "main crate" we're building.
The solution is to define our own metadata data types in kani-driver and compute them from the flat serialization format from kani_metadata. (Though we might even want to put these types in kani_metadata, since they'd be generally usable functions for consuming this information...)
Are you talking about the entire metadata or just the harness metadata?
What do you mean by "we record the file format"?
Further, that was (maybe) never even the right behavior because it meant we accumulated together all proof harnesses from dependencies as well, when we really only care about the "main crate" we're building.
Yes, I don't think merging was the correct way here. I would strongly prefer if we don't have different notions of metadata format. This will likely cause some confusion.
Activity
celinval commentedon Oct 6, 2022
I have two questions about the description:
Yes, I don't think merging was the correct way here. I would strongly prefer if we don't have different notions of metadata format. This will likely cause some confusion.
celinval commentedon Oct 6, 2022
BTW,
#1might not be clear, but I'm thinking about the vtable metadata. Note that with MIR Linker, there will be only one relevant metadata file.tedinski commentedon Oct 7, 2022
Ooh, good point, mir linker will change how metadata is collected.
So originally I was just thinking this was an internal problem for
kani-driver, but that might mean there are implications forkani_metadatatoo.feliperodri commentedon Nov 5, 2026
Closing: fixed in 5b6700e; kani-driver/src/project.rs; kani-driver/src/list/collect_metadata.rs. Reopen with a minimal repro if it still happens.