-
Notifications
You must be signed in to change notification settings - Fork 121
Closed
Labels
Z-QuantifiersIssues related to quantifiersIssues related to quantifiers[C] Feature / EnhancementA new feature request or enhancement to an existing feature.A new feature request or enhancement to an existing feature.
Description
Requested feature: Allow quantifiers in Kani asserts and assumes
Use case: CBMC supports bounded quantification under constant lower and upper bounds [0]. It would be great to have this in Kani too.
Link to relevant documentation (Rust reference, Nomicon, RFC): N/A
Is this a breaking change? No
Possible syntax, inspired by Prusti:
fn main() {
let xs: [i32; 4] = kani::any();
kani::assume(
kani::forall(|i: usize| (0 <= i && i < 4) ==> (0 <= xs[i] && xs[i] < 1024)));
}
Metadata
Metadata
Assignees
Labels
Z-QuantifiersIssues related to quantifiersIssues related to quantifiers[C] Feature / EnhancementA new feature request or enhancement to an existing feature.A new feature request or enhancement to an existing feature.