I tried this code:
#[kani::proof] fn main() {
let x = String::new().repeat(1);
let z = x.chars().nth(1).unwrap();
}
using the following command line invocation:
RUSTC_WRAPPER="" cargo kani --harness main --tests
with Kani version: 0.22.0
I expected to see this happen: explanation
It looks like there was some kind of hang..? kani/cmbc was crunching on that for more than 5 minutes until I cancelled it.
If I remove the repeat(1) , it finishes within a second 🤔
I tried this code:
using the following command line invocation:
with Kani version: 0.22.0
I expected to see this happen: explanation
It looks like there was some kind of hang..? kani/cmbc was crunching on that for more than 5 minutes until I cancelled it.
If I remove the
repeat(1), it finishes within a second 🤔