Skip to content

Support concrete playback for kani::cover #2133

Closed

Description

@zhassan-aws

Requested feature: Allow --concrete-playback to generate harnesses for satisfied cover properties specified using kani::cover.
Use case: The kani::cover macro can be used to check if certain scenario are possible. When they are, it would be useful to determine the input that can lead to such scenarios.
Link to relevant documentation (Rust reference, Nomicon, RFC): https://model-checking.github.io/kani/crates/doc/kani/macro.cover.html

Test case:

#[kani::proof]
fn main() {
    let x: i32 = kani::any();
    // What is a possible value of `x` that satisfies the following condition?
    kani::cover!(x != 0 && x / 2 == 0);
}

Activity

  1. added
    [C] Feature / Enhancement
    [E] User Experience
    on Jan 17, 2023
  2. self-assigned this
    on Jan 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

[C] Feature / Enhancement[E] User Experience

Type

No type

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions