We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I tried this code:
pub mod a { use std::ffi::c_int; extern "C" { fn isalpha(_: c_int) -> c_int; } pub fn wrap(x: c_int) -> c_int { unsafe { isalpha(x) } } } pub mod b { use std::ffi::c_int; extern "C" { fn isalpha(_: c_int, _: c_int) -> c_int; } pub fn wrap(x: c_int, y: c_int) -> c_int { unsafe { isalpha(x, y) } } } fn main() { let x = a::wrap(10)); let y = b::wrap(10, 20); assert_eq!(x, y); }
which is a modified version of rust-lang/rust#105146.
using the following command line invocation:
kani -Z c-ffi clashing.rs
with Kani version: 0.27.0
I expected to see this happen: Kani fails due to the clashing definitions
Instead, this happened: Verification succeeds
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I tried this code:
which is a modified version of rust-lang/rust#105146.
using the following command line invocation:
with Kani version: 0.27.0
I expected to see this happen: Kani fails due to the clashing definitions
Instead, this happened: Verification succeeds
The text was updated successfully, but these errors were encountered: