Skip to content

Commit dfcc7cc

Browse files
back to unwind
1 parent e411051 commit dfcc7cc

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

library/core/src/ffi/c_str.rs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -891,7 +891,7 @@ mod verify {
891891

892892
// pub const fn from_bytes_until_nul(bytes: &[u8]) -> Result<&CStr, FromBytesUntilNulError>
893893
#[kani::proof]
894-
#[kani::solver(cvc5)]
894+
#[kani::unwind(32)]
895895
#[cfg(not(all(target_arch = "x86_64", target_feature = "sse2")))]
896896
fn check_from_bytes_until_nul() {
897897
const MAX_SIZE: usize = 32;
@@ -908,7 +908,7 @@ mod verify {
908908

909909
// pub const unsafe fn from_bytes_with_nul_unchecked(bytes: &[u8]) -> &CStr
910910
#[kani::proof_for_contract(CStr::from_bytes_with_nul_unchecked)]
911-
#[kani::solver(cvc5)]
911+
#[kani::unwind(32)]
912912
fn check_from_bytes_with_nul_unchecked() {
913913
const MAX_SIZE: usize = 32;
914914
let string: [u8; MAX_SIZE] = kani::any();
@@ -927,7 +927,7 @@ mod verify {
927927

928928
// pub fn bytes(&self) -> Bytes<'_>
929929
#[kani::proof]
930-
#[kani::solver(cvc5)]
930+
#[kani::unwind(32)]
931931
#[cfg(not(all(target_arch = "x86_64", target_feature = "sse2")))]
932932
fn check_bytes() {
933933
const MAX_SIZE: usize = 32;
@@ -946,7 +946,7 @@ mod verify {
946946

947947
// pub const fn to_str(&self) -> Result<&str, str::Utf8Error>
948948
#[kani::proof]
949-
#[kani::solver(cvc5)]
949+
#[kani::unwind(32)]
950950
#[cfg(not(all(target_arch = "x86_64", target_feature = "sse2")))]
951951
fn check_to_str() {
952952
const MAX_SIZE: usize = 32;
@@ -964,7 +964,7 @@ mod verify {
964964

965965
// pub const fn as_ptr(&self) -> *const c_char
966966
#[kani::proof]
967-
#[kani::solver(cvc5)]
967+
#[kani::unwind(32)]
968968
#[cfg(not(all(target_arch = "x86_64", target_feature = "sse2")))]
969969
fn check_as_ptr() {
970970
const MAX_SIZE: usize = 32;
@@ -992,7 +992,7 @@ mod verify {
992992

993993
// pub const fn from_bytes_with_nul(bytes: &[u8]) -> Result<&Self, FromBytesWithNulError>
994994
#[kani::proof]
995-
#[kani::solver(cvc5)]
995+
#[kani::unwind(32)]
996996
#[cfg(not(all(target_arch = "x86_64", target_feature = "sse2")))]
997997
fn check_from_bytes_with_nul() {
998998
const MAX_SIZE: usize = 16;
@@ -1007,7 +1007,7 @@ mod verify {
10071007

10081008
// pub const fn count_bytes(&self) -> usize
10091009
#[kani::proof]
1010-
#[kani::solver(cvc5)]
1010+
#[kani::unwind(32)]
10111011
#[cfg(not(all(target_arch = "x86_64", target_feature = "sse2")))]
10121012
fn check_count_bytes() {
10131013
const MAX_SIZE: usize = 32;
@@ -1033,7 +1033,7 @@ mod verify {
10331033

10341034
// pub const fn to_bytes(&self) -> &[u8]
10351035
#[kani::proof]
1036-
#[kani::solver(cvc5)]
1036+
#[kani::unwind(32)]
10371037
#[cfg(not(all(target_arch = "x86_64", target_feature = "sse2")))]
10381038
fn check_to_bytes() {
10391039
const MAX_SIZE: usize = 32;
@@ -1050,7 +1050,7 @@ mod verify {
10501050

10511051
// pub const fn to_bytes_with_nul(&self) -> &[u8]
10521052
#[kani::proof]
1053-
#[kani::solver(cvc5)]
1053+
#[kani::unwind(32)]
10541054
#[cfg(not(all(target_arch = "x86_64", target_feature = "sse2")))]
10551055
fn check_to_bytes_with_nul() {
10561056
const MAX_SIZE: usize = 32;
@@ -1067,7 +1067,7 @@ mod verify {
10671067

10681068
// const unsafe fn strlen(ptr: *const c_char) -> usize
10691069
#[kani::proof_for_contract(super::strlen)]
1070-
#[kani::solver(cvc5)]
1070+
#[kani::unwind(32)]
10711071
#[cfg(not(all(target_arch = "x86_64", target_feature = "sse2")))]
10721072
fn check_strlen_contract() {
10731073
const MAX_SIZE: usize = 32;
@@ -1081,7 +1081,7 @@ mod verify {
10811081

10821082
// pub const unsafe fn from_ptr<'a>(ptr: *const c_char) -> &'a CStr
10831083
#[kani::proof_for_contract(CStr::from_ptr)]
1084-
#[kani::solver(cvc5)]
1084+
#[kani::unwind(32)]
10851085
#[cfg(not(all(target_arch = "x86_64", target_feature = "sse2")))]
10861086
fn check_from_ptr_contract() {
10871087
const MAX_SIZE: usize = 32;
@@ -1095,7 +1095,7 @@ mod verify {
10951095

10961096
// pub const fn is_empty(&self) -> bool
10971097
#[kani::proof]
1098-
#[kani::solver(cvc5)]
1098+
#[kani::unwind(32)]
10991099
#[cfg(not(all(target_arch = "x86_64", target_feature = "sse2")))]
11001100
fn check_is_empty() {
11011101
const MAX_SIZE: usize = 32;

0 commit comments

Comments
 (0)