Skip to content

Commit 73aadd0

Browse files
authored
Merge branch 'main' into add-kmir-tool
2 parents d06457a + a5f6908 commit 73aadd0

4 files changed

Lines changed: 47 additions & 3 deletions

File tree

library/core/src/num/nonzero.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,7 @@ macro_rules! nonzero_integer {
755755
#[must_use = "this returns the result of the operation, \
756756
without modifying the original"]
757757
#[inline(always)]
758-
#[ensures(|result| result.get() > 0)]
758+
#[ensures(|result| result.get() != 0)]
759759
#[ensures(|result| result.rotate_right(n).get() == old(self).get())]
760760
pub const fn rotate_left(self, n: u32) -> Self {
761761
let result = self.get().rotate_left(n);
@@ -790,7 +790,7 @@ macro_rules! nonzero_integer {
790790
#[must_use = "this returns the result of the operation, \
791791
without modifying the original"]
792792
#[inline(always)]
793-
#[ensures(|result| result.get() > 0)]
793+
#[ensures(|result| result.get() != 0)]
794794
#[ensures(|result| result.rotate_left(n).get() == old(self).get())]
795795
pub const fn rotate_right(self, n: u32) -> Self {
796796
let result = self.get().rotate_right(n);

library/core/src/ptr/const_ptr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2614,7 +2614,7 @@ mod verify {
26142614
gen_const_byte_arith_harness_for_dyn!(byte_sub, check_const_byte_sub_dyn);
26152615
gen_const_byte_arith_harness_for_dyn!(byte_offset, check_const_byte_offset_dyn);
26162616

2617-
// Proof for contact of byte_offset_from to verify unit type
2617+
// Proof for contract of byte_offset_from to verify unit type
26182618
#[kani::proof_for_contract(<*const ()>::byte_offset_from)]
26192619
pub fn check_const_byte_offset_from_unit() {
26202620
let val: () = ();

scripts/kani-std-analysis/metrics-data-core.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,28 @@
270270
"verified_safe_fns_under_contract": 111,
271271
"verified_safe_fns_with_loop_under_contract": 0,
272272
"total_functions_under_contract_all_crates": 313
273+
},
274+
{
275+
"date": "2025-05-11",
276+
"total_unsafe_fns": 7249,
277+
"total_unsafe_fns_with_loop": 16,
278+
"total_safe_abstractions": 1805,
279+
"total_safe_abstractions_with_loop": 74,
280+
"total_safe_fns": 15737,
281+
"total_safe_fns_with_loop": 744,
282+
"unsafe_fns_under_contract": 194,
283+
"unsafe_fns_with_loop_under_contract": 2,
284+
"verified_unsafe_fns_under_contract": 184,
285+
"verified_unsafe_fns_with_loop_under_contract": 1,
286+
"safe_abstractions_under_contract": 77,
287+
"safe_abstractions_with_loop_under_contract": 0,
288+
"verified_safe_abstractions_under_contract": 77,
289+
"verified_safe_abstractions_with_loop_under_contract": 0,
290+
"safe_fns_under_contract": 113,
291+
"safe_fns_with_loop_under_contract": 0,
292+
"verified_safe_fns_under_contract": 111,
293+
"verified_safe_fns_with_loop_under_contract": 0,
294+
"total_functions_under_contract_all_crates": 313
273295
}
274296
]
275297
}

scripts/kani-std-analysis/metrics-data-std.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,28 @@
153153
"verified_safe_fns_under_contract": 0,
154154
"verified_safe_fns_with_loop_under_contract": 0,
155155
"total_functions_under_contract_all_crates": 313
156+
},
157+
{
158+
"date": "2025-05-11",
159+
"total_unsafe_fns": 179,
160+
"total_unsafe_fns_with_loop": 12,
161+
"total_safe_abstractions": 509,
162+
"total_safe_abstractions_with_loop": 44,
163+
"total_safe_fns": 4096,
164+
"total_safe_fns_with_loop": 176,
165+
"unsafe_fns_under_contract": 0,
166+
"unsafe_fns_with_loop_under_contract": 0,
167+
"verified_unsafe_fns_under_contract": 0,
168+
"verified_unsafe_fns_with_loop_under_contract": 0,
169+
"safe_abstractions_under_contract": 0,
170+
"safe_abstractions_with_loop_under_contract": 0,
171+
"verified_safe_abstractions_under_contract": 0,
172+
"verified_safe_abstractions_with_loop_under_contract": 0,
173+
"safe_fns_under_contract": 0,
174+
"safe_fns_with_loop_under_contract": 0,
175+
"verified_safe_fns_under_contract": 0,
176+
"verified_safe_fns_with_loop_under_contract": 0,
177+
"total_functions_under_contract_all_crates": 313
156178
}
157179
]
158180
}

0 commit comments

Comments
 (0)