@@ -891,7 +891,7 @@ mod verify {
891
891
892
892
// pub const fn from_bytes_until_nul(bytes: &[u8]) -> Result<&CStr, FromBytesUntilNulError>
893
893
#[ kani:: proof]
894
- #[ kani:: unwind ( 32 ) ] // 7.3 seconds when 16; 33.1 seconds when 32
894
+ #[ kani:: solver ( cvc5 ) ] // 7.3 seconds when 16; 33.1 seconds when 32
895
895
fn check_from_bytes_until_nul ( ) {
896
896
const MAX_SIZE : usize = 32 ;
897
897
let string: [ u8 ; MAX_SIZE ] = kani:: any ( ) ;
@@ -907,7 +907,7 @@ mod verify {
907
907
908
908
// pub const unsafe fn from_bytes_with_nul_unchecked(bytes: &[u8]) -> &CStr
909
909
#[ kani:: proof_for_contract( CStr :: from_bytes_with_nul_unchecked) ]
910
- #[ kani:: unwind ( 33 ) ]
910
+ #[ kani:: solver ( cvc5 ) ]
911
911
fn check_from_bytes_with_nul_unchecked ( ) {
912
912
const MAX_SIZE : usize = 32 ;
913
913
let string: [ u8 ; MAX_SIZE ] = kani:: any ( ) ;
@@ -926,7 +926,7 @@ mod verify {
926
926
927
927
// pub fn bytes(&self) -> Bytes<'_>
928
928
#[ kani:: proof]
929
- #[ kani:: unwind ( 32 ) ]
929
+ #[ kani:: solver ( cvc5 ) ]
930
930
fn check_bytes ( ) {
931
931
const MAX_SIZE : usize = 32 ;
932
932
let string: [ u8 ; MAX_SIZE ] = kani:: any ( ) ;
@@ -944,7 +944,7 @@ mod verify {
944
944
945
945
// pub const fn to_str(&self) -> Result<&str, str::Utf8Error>
946
946
#[ kani:: proof]
947
- #[ kani:: unwind ( 32 ) ]
947
+ #[ kani:: solver ( cvc5 ) ]
948
948
fn check_to_str ( ) {
949
949
const MAX_SIZE : usize = 32 ;
950
950
let string: [ u8 ; MAX_SIZE ] = kani:: any ( ) ;
@@ -988,7 +988,7 @@ mod verify {
988
988
989
989
// pub const fn from_bytes_with_nul(bytes: &[u8]) -> Result<&Self, FromBytesWithNulError>
990
990
#[ kani:: proof]
991
- #[ kani:: unwind ( 17 ) ]
991
+ #[ kani:: solver ( cvc5 ) ]
992
992
fn check_from_bytes_with_nul ( ) {
993
993
const MAX_SIZE : usize = 16 ;
994
994
let string: [ u8 ; MAX_SIZE ] = kani:: any ( ) ;
@@ -1027,7 +1027,7 @@ mod verify {
1027
1027
1028
1028
// pub const fn to_bytes(&self) -> &[u8]
1029
1029
#[ kani:: proof]
1030
- #[ kani:: unwind ( 32 ) ]
1030
+ #[ kani:: solver ( cvc5 ) ]
1031
1031
fn check_to_bytes ( ) {
1032
1032
const MAX_SIZE : usize = 32 ;
1033
1033
let string: [ u8 ; MAX_SIZE ] = kani:: any ( ) ;
@@ -1072,7 +1072,7 @@ mod verify {
1072
1072
1073
1073
// pub const unsafe fn from_ptr<'a>(ptr: *const c_char) -> &'a CStr
1074
1074
#[ kani:: proof_for_contract( CStr :: from_ptr) ]
1075
- #[ kani:: unwind ( 33 ) ]
1075
+ #[ kani:: solver ( cvc5 ) ]
1076
1076
fn check_from_ptr_contract ( ) {
1077
1077
const MAX_SIZE : usize = 32 ;
1078
1078
let string: [ u8 ; MAX_SIZE ] = kani:: any ( ) ;
@@ -1085,7 +1085,7 @@ mod verify {
1085
1085
1086
1086
// pub const fn is_empty(&self) -> bool
1087
1087
#[ kani:: proof]
1088
- #[ kani:: unwind ( 33 ) ]
1088
+ #[ kani:: solver ( cvc5 ) ]
1089
1089
fn check_is_empty ( ) {
1090
1090
const MAX_SIZE : usize = 32 ;
1091
1091
let string: [ u8 ; MAX_SIZE ] = kani:: any ( ) ;
0 commit comments