model-checking / kani

Kani Rust Verifier
https://model-checking.github.io/kani
Apache License 2.0
2.03k stars 85 forks source link

Reachability analysis cannot see through FFI #3263

Open tautschnig opened 2 weeks ago

tautschnig commented 2 weeks ago

See https://github.com/model-checking/kani/pull/3253#discussion_r1635382569 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.