Skip to content

Do not show "Generate concrete test" for unsupported cases #91

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
celinval opened this issue May 25, 2023 · 0 comments
Open

Do not show "Generate concrete test" for unsupported cases #91

celinval opened this issue May 25, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@celinval
Copy link
Contributor

Screenshot or description of the issue:

I ran the verification for the code:

unsafe fn use_after_drop(ptr: *mut String) {
    std::ptr::drop_in_place(ptr);
    let _ = *ptr;
}

#[cfg(kani)]
mod harnesses {
    use super::*;
    #[kani::proof]
    fn check_mem_error() {
        let mut string = "hi".to_string();
        unsafe { use_after_drop(&mut string) };
    }
}

I got a bunch of UB and memory safety checks failure. I tried to generate a concrete playback test.

I expected to see this happen: I think there are few possible behaviors:

  1. The command should generate a test. This is ideal but it's a Kani issue (captured here: Concrete playback should support all kind of property failures kani#2163)
  2. The extension shouldn't suggest that this was possible.
  3. The extension should have a pop-up error saying that the property is not supported.

Instead, this happened: Nothing visible happens

Link to PR / commit where the action failed: ed948a5

@celinval celinval added the bug Something isn't working label May 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant