@@ -811,6 +811,7 @@ mod verification {
811
811
/// Function `chunk_bytes` will always fail with an error if the passed
812
812
/// `block_byte_sizes` is empty.
813
813
#[ kani:: proof]
814
+ #[ kani:: unwind( 101 ) ] // unwind threshold set to block_chunks.len() ^ 2 + 1
814
815
fn chunk_bytes_empty_sizes_error ( ) {
815
816
let total_bytes: NonZeroU32 = kani:: any ( ) ;
816
817
let block_byte_sizes = [ ] ;
@@ -826,6 +827,7 @@ mod verification {
826
827
/// Function `chunk_bytes` should not fail if no member of block sizes is
827
828
/// large than `total_bytes`.
828
829
#[ kani:: proof]
830
+ #[ kani:: unwind( 101 ) ] // unwind threshold set to block_chunks.len() ^ 2 + 1
829
831
fn chunk_bytes_sizes_under_under_check ( ) {
830
832
let total_bytes: NonZeroU32 = kani:: any_where ( |x : & NonZeroU32 | x. get ( ) < 64 ) ;
831
833
let mut block_chunks: [ u32 ; 10 ] = [ 0 ; 10 ] ;
@@ -841,6 +843,7 @@ mod verification {
841
843
/// Function `chunk_bytes` should not fail if no member of block sizes is
842
844
/// large than `total_bytes`.
843
845
#[ kani:: proof]
846
+ #[ kani:: unwind( 101 ) ] // unwind threshold set to block_chunks.len() ^ 2 + 1
844
847
fn chunk_bytes_sizes_under_equal_check ( ) {
845
848
let total_bytes: NonZeroU32 = kani:: any ( ) ;
846
849
let mut block_chunks: [ u32 ; 10 ] = [ 0 ; 10 ] ;
@@ -857,6 +860,7 @@ mod verification {
857
860
/// Function `chunk_bytes` will fail if any member of `block_byte_sizes` is
858
861
/// larger than `total_bytes`.
859
862
#[ kani:: proof]
863
+ #[ kani:: unwind( 101 ) ] // unwind threshold set to block_chunks.len() ^ 2 + 1
860
864
fn chunk_bytes_sizes_under_equal_over_check ( ) {
861
865
let total_bytes: NonZeroU32 = kani:: any ( ) ;
862
866
let mut block_chunks: [ u32 ; 10 ] = [ 0 ; 10 ] ;
@@ -873,6 +877,7 @@ mod verification {
873
877
874
878
/// Function `chunk_bytes` does not fail to return some chunks.
875
879
#[ kani:: proof]
880
+ #[ kani:: unwind( 101 ) ] // unwind threshold set to block_chunks.len() ^ 2 + 1
876
881
fn chunk_bytes_never_chunk_empty ( ) {
877
882
let total_bytes: NonZeroU32 = kani:: any ( ) ;
878
883
let byte_sizes: [ NonZeroU32 ; 5 ] = [
@@ -895,7 +900,7 @@ mod verification {
895
900
/// Function `chunk_bytes` does not return a chunk that is not present in
896
901
/// the byte sizes.
897
902
#[ kani:: proof]
898
- #[ kani:: unwind( 15 ) ]
903
+ #[ kani:: unwind( 101 ) ] // unwind threshold set to block_chunks.len() ^ 2 + 1
899
904
fn chunk_bytes_always_present ( ) {
900
905
let total_bytes: NonZeroU32 = kani:: any ( ) ;
901
906
let byte_sizes: [ NonZeroU32 ; 5 ] = [
@@ -920,7 +925,7 @@ mod verification {
920
925
/// Function `chunk_bytes` does not populate values above the returned
921
926
/// index, that is, they all remain zero.
922
927
#[ kani:: proof]
923
- #[ kani:: unwind( 15 ) ]
928
+ #[ kani:: unwind( 101 ) ] // unwind threshold set to block_chunks.len() ^ 2 + 1
924
929
fn chunk_bytes_never_populate_above_index ( ) {
925
930
let total_bytes: NonZeroU32 = kani:: any ( ) ;
926
931
let byte_sizes: [ NonZeroU32 ; 5 ] = [
0 commit comments