Skip to content

Autoharness umbrella: no function body (NoBody) #4891

Open

Description

@CYJ904

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:

  1. Const generic parameter Kani can't pick a value for (non-usize, or a const {} block constraint)
  2. Generic function with no candidate type
  3. No function body
  4. Missing Arbitrary
  5. 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

  1. A function reported as NoBody that is not an intrinsic, where you'd expect Kani to find a body.
  2. A proposal to handle a specific group of NoBody functions 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

  1. 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).
  2. 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

  1. added this to the Autoharness milestone on Sep 30, 2026
  2. added
    Z-Autoharness
    on Nov 6, 2026
  3. changed the issue type fromtoon Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Z-Autoharness

    Type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions