You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#[kani::proof]fncheck_sub_overflow(){let a = [0;5];let ptr0:*consti32 = &a[0];let ptr1:*consti32 = &a[1];let _:usize = ptr0 asusize - ptr1 asusize;unreachable!("Previous statement should fail");}
using the following command line invocation:
kani check.rs
with Kani version: 0.2
I expected to see this happen: There should be an overflow check failure but the unreachable code should not panic since it is unreachable (playground example).
Instead, this happened: Both checks fail, the overflow check and the unreachable panic.
Yes, there are many places where we assert false but we should be using (assert + assume) false. If I'm not mistaken, this would be covered by the "assertions audit" described in #1056.
Activity
Add "fixme" testcase for model-checking#1208
adpaco commentedon May 20, 2022
Yes, there are many places where we assert false but we should be using (assert + assume) false. If I'm not mistaken, this would be covered by the "assertions audit" described in #1056.
Add "fixme" testcase for #1208 (#1210)