Skip to content

Commit

Permalink
Minor improvements in documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
adpaco-aws committed Jan 3, 2024
1 parent b5b8447 commit 1dda0ed
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions kani-driver/src/call_cbmc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,9 @@ fn outcome_from_global_conditions(
.filter(|cond| cond.enabled())
.collect::<Vec<&GlobalCondition>>()
.is_empty();

if !enabled_global_conditions {
// If no global conditions are enabled, the outcome only depends on failed properties
let failed_properties = determine_failed_properties(properties);
if failed_properties == FailedProperties::None {
VerificationStatus::Success
Expand Down
4 changes: 2 additions & 2 deletions tests/ui/fail-uncoverable/all-covered/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// SPDX-License-Identifier: Apache-2.0 OR MIT
// kani-flags: --enable-unstable --fail-uncoverable

//! Checks that all cover statements are covered/satisfied and
//! `--fail-uncoverable` doesn't cause failures.
//! Checks that all cover statements are satisfied and `--fail-uncoverable`
//! doesn't cause failures.

#[kani::proof]
fn harness1() {
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/fail-uncoverable/uncoverable/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
// kani-flags: --enable-unstable --fail-uncoverable

//! Checks that the `--fail-uncoverable` option cause a failure due to a cover
//! Checks that the `--fail-uncoverable` option causes a failure due to a cover
//! statement not being covered.

#[kani::proof]
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/fail-uncoverable/unsatisfied/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
// kani-flags: --enable-unstable --fail-uncoverable

//! Checks that the `--fail-uncoverable` option cause a failure due to a cover
//! Checks that the `--fail-uncoverable` option causes a failure due to a cover
//! statement not being satisfied.

#[kani::proof]
Expand Down

0 comments on commit 1dda0ed

Please sign in to comment.