Repository navigation
Description
This umbrella tracks functions that autoharness skips because Kani has no body to verify. It is one of five skip-reason umbrellas indexed in #4879.
What this category means
Autoharness verifies a function by translating its body. If the function has no body available to Kani, it is skipped with the reason NoBody. Most of these are compiler intrinsics, which are implemented by the compiler rather than in Rust source. Skipping them is expected, and no change is planned for this category as a whole.
Classification rule
We classify by the skip reason Kani reports, not by the underlying cause. Kani reports only one reason per function: the first check that fails, in this order:
- Const generic parameter Kani can't pick a value for (non-usize, or a
const {}block constraint) - Generic function with no candidate type
- No function body
- Missing
Arbitrary - Requires bounded arguments
This check only runs for non-generic functions and for generic functions that were instantiated successfully. If Kani reports NoBody, the function belongs here.
What belongs here
- A function reported as
NoBodythat is not an intrinsic, where you'd expect Kani to find a body. - A proposal to handle a specific group of
NoBodyfunctions differently, for example through existing Kani models or stubs.
Individual intrinsics being skipped are expected and don't need an issue.
Cases that belong elsewhere
- A generic function without a body that is reported as
GenericFn: the generics checks run first, so go by Autoharness umbrella: generic function with no candidate type (GenericFn) #4888 (no candidate type) or Autoharness umbrella: non-usize const generic parameters (GenericFn) #4889 (const generic parameters). - A function that has a body but is skipped for another reason: go by that reason's umbrella.
All umbrellas are listed in #4879.
How to check
Run autoharness on your crate (cargo kani autoharness -Z autoharness), or in verify-rust-std run kani autoharness -Z autoharness --std ./library with the flags your setup uses. Kani prints a table of skipped functions with their reasons before the list of harnesses. Don't pass --quiet, which suppresses that table.
How to link
Add Part of #<this issue> to your issue or PR description so it shows up here.
Activity