Skip to content

Reachability analysis cannot see through FFI #3263

Description

@tautschnig

See #3253 (comment) for an example of a test that fails when we don't directly use in Rust the function that is otherwise only invoked from C code. We might consider marking all functions with attribute no_mangle reachable.

Activity

  1. celinval commented on Jul 18, 2024

    @celinval
    Contributor

    We should only do that if -Z c-ffi is enabled though.

  2. added
    [C] Feature / EnhancementA new feature request or enhancement to an existing feature.
    and removed
    [C] BugThis is a bug. Something isn't working.
    on Jul 23, 2024
  3. added this to the C-FFI Milestone milestone on Mar 27, 2026
  4. added
    [F] Spurious FailureIssues that cause Kani verification to fail despite the code being correct.
    Z-Kani CompilerIssues that require some changes to the compiler
    on Nov 5, 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-Kani CompilerIssues that require some changes to the compiler[C] Feature / EnhancementA new feature request or enhancement to an existing feature.[F] Spurious FailureIssues that cause Kani verification to fail despite the code being correct.

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions