Skip to content

Commit

Permalink
Remove unwind attributes that are no longer needed with CBMC v6 (#3403)
Browse files Browse the repository at this point in the history
CBMC v6 includes diffblue/cbmc#8247, which fixes
the need for unwind attributes that were newly found to be necessary
when upgrading to nightly-2024-03-15 (#3084).

Resolves: #3088
  • Loading branch information
tautschnig authored Aug 1, 2024
1 parent d6d1ebf commit e0141cf
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion docs/src/getting-started/verification-results/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// SPDX-License-Identifier: Apache-2.0 OR MIT

#[kani::proof]
#[kani::unwind(4)]
// ANCHOR: success_example
fn success_example() {
let mut sum = 0;
Expand Down
2 changes: 1 addition & 1 deletion tests/coverage/unreachable/abort/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use std::process;

#[cfg_attr(kani, kani::proof, kani::unwind(5))]
#[kani::proof]
fn main() {
for i in 0..4 {
if i == 1 {
Expand Down
1 change: 0 additions & 1 deletion tests/expected/abort/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
use std::process;

#[kani::proof]
#[kani::unwind(5)]
fn main() {
for i in 0..4 {
if i == 1 {
Expand Down
1 change: 0 additions & 1 deletion tests/expected/iterator/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// SPDX-License-Identifier: Apache-2.0 OR MIT

#[kani::proof]
#[kani::unwind(4)]
fn main() {
let mut z = 1;
for i in 1..4 {
Expand Down
1 change: 0 additions & 1 deletion tests/kani/Coroutines/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ use std::ops::{Coroutine, CoroutineState};
use std::pin::Pin;

#[kani::proof]
#[kani::unwind(3)]
fn main() {
let mut add_one = #[coroutine]
|mut resume: u8| {
Expand Down

0 comments on commit e0141cf

Please sign in to comment.