-
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.
NOP concrete playback to type check during verification mode. (#2476)
- Loading branch information
1 parent
4a8712b
commit c6e9169
Showing
3 changed files
with
30 additions
and
0 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
10 changes: 10 additions & 0 deletions
10
tests/cargo-kani/concrete-playback-in-verification-mode/Cargo.toml
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,10 @@ | ||
# Copyright Kani Contributors | ||
# SPDX-License-Identifier: Apache-2.0 OR MIT | ||
[package] | ||
name = "playback-test" | ||
version = "0.1.0" | ||
edition = "2018" | ||
|
||
[dependencies] | ||
|
||
[workspace] |
14 changes: 14 additions & 0 deletions
14
tests/cargo-kani/concrete-playback-in-verification-mode/src/main.rs
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 @@ | ||
// Copyright Kani Contributors | ||
// SPDX-License-Identifier: Apache-2.0 OR MIT | ||
#[kani::proof] | ||
fn main() { | ||
assert!(1 == 1); | ||
} | ||
|
||
#[test] | ||
/// Purpose of this is to check if Kani can comple this code in | ||
/// verification mode when `kani::concrete_playback_run` is in the | ||
/// code, | ||
fn _playback_type_checks() { | ||
kani::concrete_playback_run(vec![], test_sum); | ||
} |