Skip to content

Commit a96b095

Browse files
change unwind to solver(cvc5)
1 parent e5515d6 commit a96b095

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

library/core/src/ffi/c_str.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -961,7 +961,7 @@ mod verify {
961961

962962
// pub const fn as_ptr(&self) -> *const c_char
963963
#[kani::proof]
964-
#[kani::unwind(33)]
964+
#[kani::solver(cvc5)]
965965
fn check_as_ptr() {
966966
const MAX_SIZE: usize = 32;
967967
let string: [u8; MAX_SIZE] = kani::any();
@@ -1002,7 +1002,7 @@ mod verify {
10021002

10031003
// pub const fn count_bytes(&self) -> usize
10041004
#[kani::proof]
1005-
#[kani::unwind(32)]
1005+
#[kani::solver(cvc5)]
10061006
fn check_count_bytes() {
10071007
const MAX_SIZE: usize = 32;
10081008
let mut bytes: [u8; MAX_SIZE] = kani::any();
@@ -1043,7 +1043,7 @@ mod verify {
10431043

10441044
// pub const fn to_bytes_with_nul(&self) -> &[u8]
10451045
#[kani::proof]
1046-
#[kani::unwind(33)]
1046+
#[kani::solver(cvc5)]
10471047
fn check_to_bytes_with_nul() {
10481048
const MAX_SIZE: usize = 32;
10491049
let string: [u8; MAX_SIZE] = kani::any();
@@ -1059,7 +1059,7 @@ mod verify {
10591059

10601060
// const unsafe fn strlen(ptr: *const c_char) -> usize
10611061
#[kani::proof_for_contract(super::strlen)]
1062-
#[kani::unwind(33)]
1062+
#[kani::solver(cvc5)]
10631063
fn check_strlen_contract() {
10641064
const MAX_SIZE: usize = 32;
10651065
let mut string: [u8; MAX_SIZE] = kani::any();

0 commit comments

Comments
 (0)