-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Delay printing playback harness until after verification status (#2480)
- Loading branch information
1 parent
5c78a6a
commit d4f0dd0
Showing
4 changed files
with
26 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
VERIFICATION:- SUCCESSFUL | ||
|
||
|
||
Concrete playback unit test for `dummy`: | ||
``` | ||
#[test] | ||
fn kani_concrete_playback_dummy | ||
let concrete_vals: Vec<Vec<u8>> = vec![ | ||
// 32778 | ||
vec![10, 128, 0, 0], | ||
]; | ||
kani::concrete_playback_run(concrete_vals, dummy); | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// Copyright Kani Contributors | ||
// SPDX-License-Identifier: Apache-2.0 OR MIT | ||
|
||
// kani-flags: --concrete-playback=print --harness dummy -Z concrete-playback | ||
|
||
#[kani::proof] | ||
fn dummy() { | ||
kani::cover!(kani::any::<u32>() != 10); | ||
} |