Tested on Kani 0.68.0 / commit `9461e07af7ec929f050aa4192f29363c9be07779`, with `-Z quantifiers` enabled. 1. Quantifier extraction loses branch conditions The following assertion is false at i = 0: ```rust #[kani::proof] fn branch_must_have_counterexample() { assert!(kani::forall!(|i in (0, 2)| if i == 0 { i == 5 } else { i < 2 } )); } ``` Both Z3 and MiniSat report VERIFICATION:- SUCCESSFUL 2. Quantifier extraction drops an assertion inside the predicate ```rust #[kani::proof] fn predicate_check_must_not_disappear() { assert!(kani::forall!(|i in (0, 2)| { assert!(i != 0); true })); } ``` Both Z3 and MiniSat report VERIFICATION:- SUCCESSFUL 3. Nested quantifiers cause a backend crash ```rust #[kani::proof] fn nested_division_is_true() { assert!(kani::forall!(|i in (1, 3)| { kani::forall!(|j in (1, 3)| j / i <= j) })); } ``` This assertion is true for every value in the given ranges, and the divisor is never zero. However, Kani fails with: Reason: quantifier must not contain side effects error: goto-cc exited with status signal: 6 (SIGABRT)
Activity
Fix nested quantifier capture projection and guard unsupported safety…