Skip to content

Commit

Permalink
Run formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jaisnan committed Jul 28, 2023
1 parent e200b52 commit cd47c9f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions kani-driver/src/cbmc_output_parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -328,8 +328,8 @@ impl std::fmt::Display for TraceData {
#[serde(rename_all = "UPPERCASE")]
pub enum CheckStatus {
Failure,
Covered, // for `code_coverage` properties only
Satisfied, // for `cover` properties only
Covered, // for `code_coverage` properties only
Satisfied, // for `cover` properties only
Success,
Undetermined,
Unreachable,
Expand Down
2 changes: 1 addition & 1 deletion kani-driver/src/cbmc_property_renderer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ pub fn format_coverage(
/// - A status `FULL` if all checks pertaining to a line number are `COVERED`
/// - A status `NONE` if all checks related to a line are `UNCOVERED`
/// - Otherwise (i.e., if the line contains both) it reports `PARTIAL`.
///
///
/// Used when the user requests coverage information with `--coverage`.
/// Output is tested through the `coverage-based` testing suite, not the regular
/// `expected` suite.
Expand Down
6 changes: 3 additions & 3 deletions tests/coverage/reachable/bounds/reachable_fail/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
// SPDX-License-Identifier: Apache-2.0 OR MIT

fn get(s: &[i16], index: usize) -> i16 {
s[index] // PARTIAL: `index = 15` causes failure, but `s[index]` is `COVERED`
} // NONE: `index = 15` caused failure earlier
s[index] // PARTIAL: `index = 15` causes failure, but `s[index]` is `COVERED`
} // NONE: `index = 15` caused failure earlier

#[kani::proof]
fn main() {
get(&[7, -83, 19], 15);
} // NONE: `index = 15` caused failure earlier
} // NONE: `index = 15` caused failure earlier
2 changes: 1 addition & 1 deletion tests/coverage/reachable/div-zero/reachable_fail/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// SPDX-License-Identifier: Apache-2.0 OR MIT

fn div(x: u16, y: u16) -> u16 {
x / y // PARTIAL: `y = 0` causes failure, but `x / y` is `COVERED`
x / y // PARTIAL: `y = 0` causes failure, but `x / y` is `COVERED`
}

#[kani::proof]
Expand Down

0 comments on commit cd47c9f

Please sign in to comment.