Skip to content

Commit a9a7bf6

Browse files
bdalrhmtedinski
authored andcommitted
Differentiate between check, codegen, and verification errors. (rust-lang#353)
* Differentiate between check, codegen, and verification errors. * Fix typo. * Rename tests. * Address concerns. * Remove unnecessary code and fix typos.
1 parent 93ae13d commit a9a7bf6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+229
-22
lines changed

src/test/cbmc/Assert/UninitValid/fixme_main_fail.rs renamed to src/test/cbmc/Assert/UninitValid/fixme_main.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0 OR MIT
3+
// rmc-verify-fail
4+
35
use std::mem::{self, MaybeUninit};
46

57
fn main() {

src/test/cbmc/Assert/ZeroValid/fixme_main_fail.rs renamed to src/test/cbmc/Assert/ZeroValid/fixme_main.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0 OR MIT
3+
// rmc-verify-fail
4+
35
// The function zeroed() calls assert_zero_valid to mark that it is only defined to assign an
46
// all-zero bit pattern to a type T if this is a valid value. So the following is undefined.
57

src/test/cbmc/BinOp_Offset/main_fail.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0 OR MIT
3+
// rmc-verify-fail
4+
35
include!("../../rmc-prelude.rs");
46

57
pub fn test_offset_in_double_array() {

src/test/cbmc/BitManipulation/Stable/fixme_main_fail.rs renamed to src/test/cbmc/BitManipulation/Stable/fixme_main.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0 OR MIT
3+
// rmc-verify-fail
4+
35
fn main() {
46
// Intrinsics implemented as integer primitives
57
// https://doc.rust-lang.org/core/intrinsics/fn.cttz.html

src/test/cbmc/BitManipulation/Unstable/fixme_main_fail.rs renamed to src/test/cbmc/BitManipulation/Unstable/fixme_main.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0 OR MIT
3+
// rmc-verify-fail
4+
35
#![feature(core_intrinsics)]
46
use std::intrinsics::{ctlz, cttz, cttz_nonzero};
57

src/test/cbmc/Count/Unstable/Ctlz/bounds_fail.rs renamed to src/test/cbmc/Count/Unstable/Ctlz/bounds.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0 OR MIT
3-
3+
// rmc-verify-fail
44
// cbmc-flags: --bounds-check
55

66
#![feature(core_intrinsics)]

src/test/cbmc/Count/Unstable/Cttz/bounds_fail.rs renamed to src/test/cbmc/Count/Unstable/Cttz/bounds.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0 OR MIT
3-
3+
// rmc-verify-fail
44
// cbmc-flags: --bounds-check
55

66
#![feature(core_intrinsics)]

src/test/cbmc/DynTrait/boxed_closure_fail_fixme.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0 OR MIT
3+
// rmc-verify-fail
34

45
// Check that we can codegen a boxed dyn closure and fail an inner assertion
56

67
// This current verifies "successfully" because the closure is not actually
7-
// called in the resulting CotoC code.
8+
// called in the resulting GotoC code.
89
// https://github.com/model-checking/rmc/issues/240
910

1011
include!("../../rmc-prelude.rs");

src/test/cbmc/DynTrait/boxed_trait_fail.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0 OR MIT
3+
// rmc-verify-fail
34

45
// Dynamic traits should work when used through a box
56
// _fail test; all assertions inverted.

src/test/cbmc/DynTrait/different_crates_fail.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0 OR MIT
3+
// rmc-verify-fail
34

45
// This test uses a trait defined in a different crate (the standard library)
56
// and a test defined in the local crate. The goal is to test vtable resolution

src/test/cbmc/DynTrait/nested_boxes_fail.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0 OR MIT
3+
// rmc-verify-fail
34

45
// This test checks the size and align fields for 3-deep nested trait pointers. The
56
// outter 2 dynamic trait objects have fat pointers as their backing data.

src/test/cbmc/FatPointers/boxmuttrait_fail.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0 OR MIT
3+
// rmc-verify-fail
34

45
use std::io::{sink, Write};
56

src/test/cbmc/FatPointers/boxslice1.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ fn main() {
1111
// This transformer produces a Box<[u8]>
1212
let _sparkle_heart_str = str::from_utf8(&sparkle_heart_vec);
1313

14-
// see boxslice2_fail.rs for an attempt to test sparkle_heart_str
14+
// see boxslice2.rs for an attempt to test sparkle_heart_str
1515
}

src/test/cbmc/FatPointers/boxslice2_fail.rs renamed to src/test/cbmc/FatPointers/boxslice2.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0 OR MIT
3+
// rmc-verify-fail
34

45
// Casts boxed array to boxed slice (example taken from rust documentation)
56
use std::str;

src/test/cbmc/FatPointers/boxtrait_fail.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0 OR MIT
3+
// rmc-verify-fail
34

45
// This is handled by the box to box case of unsized pointers
56

src/test/cbmc/FatPointers/trait1_fail.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0 OR MIT
3+
// rmc-verify-fail
34

45
// Cast a concrete ref to a trait ref.
56

src/test/cbmc/FatPointers/trait2_fail.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0 OR MIT
3+
// rmc-verify-fail
34

45
// Cast a concrete ref to a trait raw pointer.
56

src/test/cbmc/FatPointers/trait3_fail.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0 OR MIT
3+
// rmc-verify-fail
34

45
// Cast a concrete ref to
56
// concrete raw pointer

src/test/cbmc/Intrinsics/abort_fail.rs renamed to src/test/cbmc/Intrinsics/abort.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0 OR MIT
3+
// rmc-verify-fail
4+
35
#![feature(core_intrinsics)]
46
use std::intrinsics;
57
fn main() {

src/test/cbmc/PointerOffset/Unstable/main_fail.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0 OR MIT
3+
// rmc-verify-fail
4+
35
#![feature(core_intrinsics)]
46
use std::intrinsics::ptr_offset_from;
57

src/test/cbmc/Pointers_Basic/fixme_from_raw_fail.rs renamed to src/test/cbmc/Pointers_Basic/fixme_from_raw.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0 OR MIT
3+
// rmc-verify-fail
34

45
fn main() {
56
let address = 0x01234usize;

src/test/cbmc/Pointers_OutOfScopeFail/fixme_main_fail.rs renamed to src/test/cbmc/Pointers_OutOfScopeFail/fixme_main.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0 OR MIT
3+
// rmc-verify-fail
4+
35
fn main() {
46
// declare pointer to integer
57
let p_subscoped: *const u32;

src/test/cbmc/SIMD/Compare/main_fail.rs renamed to src/test/cbmc/SIMD/Compare/main.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0 OR MIT
3+
// rmc-verify-fail
4+
35
#![feature(repr_simd, platform_intrinsics)]
46

57
#[repr(simd)]

src/test/cbmc/Serde/main_fail.rs renamed to src/test/cbmc/Serde/main.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0 OR MIT
3+
// rmc-check-fail
4+
35
// We currently assert(false) for reify function pointer.
46
// So this codegens but fails model checking.
57

src/test/cbmc/SizeAndAlignOfDst/main_fail.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
// Arc<Mutex<dyn Subscriber>>.
66
// This test still fails with a final coercion error for
77
// DummySubscriber to dyn Subscriber.
8+
// rmc-verify-fail
89

910
use std::sync::Arc;
1011
use std::sync::Mutex;

src/test/cbmc/Slice/drop_in_place_fail.rs renamed to src/test/cbmc/Slice/drop_in_place.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0 OR MIT
3+
// rmc-check-fail
4+
35
#[allow(unconditional_recursion)]
46
pub unsafe fn drop_in_place<T: ?Sized>(to_drop: *mut T) {
57
// Code here does not matter - this is replaced by the

src/test/cbmc/Slice/pathbuf_fail.rs renamed to src/test/cbmc/Slice/pathbuf.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0 OR MIT
3+
// rmc-verify-fail
4+
35
use std::fs;
46
use std::path::PathBuf;
57
pub fn main() {

src/test/cbmc/Slice/slice_from_raw_fail.rs renamed to src/test/cbmc/Slice/slice_from_raw.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0 OR MIT
3+
// rmc-verify-fail
4+
35
use std::slice;
46

57
include!("../../rmc-prelude.rs");
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
// SPDX-License-Identifier: Apache-2.0 OR MIT
3+
// rmc-codegen-fail
4+
5+
#![feature(core_intrinsics)]
6+
7+
use std::intrinsics::*;
8+
9+
pub fn main() {
10+
let mut a: Box<u8> = Box::new(0);
11+
unsafe {
12+
let x = volatile_load(&*a);
13+
assert!(x == *a);
14+
volatile_store(&mut *a, 1);
15+
assert!(*a == 1);
16+
unaligned_volatile_store(&mut *a, 2);
17+
assert!(*a == 2);
18+
volatile_set_memory(&mut *a, 3, 1);
19+
assert!(*a == 3);
20+
}
21+
}

src/test/prusti/Binary_search_fail.rs renamed to src/test/prusti/Binary_search.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0 OR MIT
3-
3+
// rmc-verify-fail
44
// cbmc-flags: --unwind 4
55

66
use std::cmp::Ordering::*;
@@ -43,7 +43,7 @@ fn binary_search<T: Ord>(arr: &[T], elem: &T) -> Option<usize> {
4343
None
4444
}
4545

46-
include!("../../rmc-prelude.rs");
46+
include!("../rmc-prelude.rs");
4747

4848
fn get() -> [i32; 11] {
4949
[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]

src/test/smack/basic/add_fail.rs renamed to src/test/smack/basic/add.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0 OR MIT
33
// @expect error
4+
// rmc-verify-fail
45

56
pub fn main() {
67
let a = 2;

src/test/smack/basic/arith_assume_fail.rs renamed to src/test/smack/basic/arith_assume3.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0 OR MIT
33
// @expect error
4+
// rmc-verify-fail
45

56
include!("../../rmc-prelude.rs");
67

src/test/smack/basic/div_fail.rs renamed to src/test/smack/basic/div.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0 OR MIT
33
// @expect error
4+
// rmc-verify-fail
45

56
pub fn main() {
67
let a = 2;

src/test/smack/basic/mod_fail.rs renamed to src/test/smack/basic/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0 OR MIT
33
// @expect error
4+
// rmc-verify-fail
45

56
pub fn main() {
67
let a = 2;

src/test/smack/basic/mul_fail.rs renamed to src/test/smack/basic/mul.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0 OR MIT
33
// @expect error
4+
// rmc-verify-fail
45

56
pub fn main() {
67
let a = 2;

src/test/smack/basic/sub_fail.rs renamed to src/test/smack/basic/sub.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0 OR MIT
33
// @expect error
4+
// rmc-verify-fail
45

56
pub fn main() {
67
let a = 2;

src/test/smack/functions/closure_fail.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// SPDX-License-Identifier: Apache-2.0 OR MIT
33
// @flag --no-memory-splitting
44
// @expect verified
5+
// rmc-verify-fail
56

67
fn call_with_one<F>(mut some_closure: F) -> ()
78
where

src/test/smack/functions/double_fail.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0 OR MIT
33
// @expect error
4+
// rmc-verify-fail
45

56
fn double(a: u32) -> u32 {
67
a * 2

src/test/smack/generics/generic_function_fail1.rs renamed to src/test/smack/generics/generic_function1.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0 OR MIT
33
// @expect error
4+
// rmc-verify-fail
45

56
struct Point<T> {
67
pub x: T,

src/test/smack/generics/generic_function_fail2.rs renamed to src/test/smack/generics/generic_function2.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0 OR MIT
33
// @expect error
4+
// rmc-verify-fail
45

56
struct Point<T> {
67
pub x: T,

src/test/smack/generics/generic_function_fail3.rs renamed to src/test/smack/generics/generic_function3.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0 OR MIT
33
// @expect error
4+
// rmc-verify-fail
45

56
struct Point<T> {
67
pub x: T,

src/test/smack/generics/generic_function_fail4.rs renamed to src/test/smack/generics/generic_function4.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0 OR MIT
33
// @expect verified
4+
// rmc-verify-fail
45

56
struct Point<T> {
67
pub x: T,

src/test/smack/generics/generic_function_fail5.rs renamed to src/test/smack/generics/generic_function5.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0 OR MIT
33
// @expect verified
4+
// rmc-verify-fail
45

56
struct Point<T> {
67
pub x: T,

src/test/smack/loops/gauss_sum_nondet.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// SPDX-License-Identifier: Apache-2.0 OR MIT
33
// @flag --no-memory-splitting --unroll=4
44
// @expect verified
5-
65
// cbmc-flags: --unwind 5
76

87
include!("../../rmc-prelude.rs");

src/test/smack/loops/gauss_sum_nondet_fail.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// SPDX-License-Identifier: Apache-2.0 OR MIT
33
// @flag --no-memory-splitting --unroll=10
44
// @expect error
5-
5+
// rmc-verify-fail
66
// cbmc-flags: --unwind 5
77

88
include!("../../rmc-prelude.rs");

src/test/smack/loops/iterator_fail.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// SPDX-License-Identifier: Apache-2.0 OR MIT
33
// @flag --no-memory-splitting --unroll=10
44
// @expect error
5-
5+
// rmc-verify-fail
66
// cbmc-flags: --unwind 5
77

88
fn fac(n: u64) -> u64 {

src/test/smack/overflow/add_overflow_fail.rs renamed to src/test/smack/overflow/add_overflow.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// SPDX-License-Identifier: Apache-2.0 OR MIT
33
// @flag --integer-overflow
44
// @expect overflow
5+
// rmc-verify-fail
56

67
pub fn get128() -> u8 {
78
128

0 commit comments

Comments
 (0)