I tried this code:
#[kani::proof]
fn check_sz() {
let refstr = "hello";
let ptr = refstr as *const _;
assert_eq!(size_of_val(&ptr), 4);
}
using the following command line invocation:
kani check_sz.rs -Z uninit-checks
with Kani version:
I expected to see this happen: Verification succeeds
Instead, this happened: Kani crashes
Kani Rust Verifier 0.54.0 (standalone)
thread 'rustc' panicked at kani-compiler/src/kani_middle/points_to/points_to_analysis.rs:449:54:
called `Option::unwrap()` on a `None` value
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Kani unexpectedly panicked during compilation.
Please file an issue here: https://github.com/model-checking/kani/issues/new?labels=bug&template=bug_report.md
[Kani] no current codegen item.
[Kani] no current codegen location.
I tried this code:
using the following command line invocation:
with Kani version:
I expected to see this happen: Verification succeeds
Instead, this happened: Kani crashes