Repository navigation
Replies: 1 comment
|
The difference is which Kani library gets linked, not your In the For the harness, avoid #[cfg(kani)]
#[kani::proof]
#[kani::unwind(17)]
pub fn verify_pop() {
let mut vect: Vec<i32> = kani::vec::any_vec::<i32, 16>();
// ...
}If the pinned Kani in this repo does not have let len: usize = kani::any_where(|n| *n <= 16);
let mut vect: Vec<i32> = (0..len).map(|_| kani::any()).collect();Keep Also confirm that If this explains it, please mark it as the accepted answer. |
Uh oh!
There was an error while loading. Please reload this page.
Hi, if I try to verify this on its own with
cargo kaniit works fine:However if I put it in
library/alloc/src/vec/mod.rsin this repo and run./scripts/run-kani.sh --path . --kani-args --harness verify_pop --output-format=terseI get this error:Any idea why?
All reactions