Skip to content
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

fix(bolero-kani): use cover instead of assume #190

Merged
merged 1 commit into from
Sep 28, 2023
Merged

Conversation

camshaft
Copy link
Owner

@camshaft camshaft commented Sep 28, 2023

We currently use kani::assume(was_valid) on the generator result. This isn't really what we want, since kani won't actually fail the proof if an assumption is unsatisfiable; see model-checking/kani#2693.

Instead, the cover! macro is somewhat closer to what we want. It at least reports if the was_valid variable was ever true. Ideally, it would fail the proof so I've opened an issue for that: model-checking/kani#2792.

@camshaft camshaft marked this pull request as ready for review September 28, 2023 19:08
@camshaft camshaft merged commit 3308f42 into master Sep 28, 2023
8 of 9 checks passed
@camshaft camshaft deleted the kani-cover branch September 28, 2023 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant