File tree Expand file tree Collapse file tree 5 files changed +29
-0
lines changed
sub_with_workflow_ice_fixme Expand file tree Collapse file tree 5 files changed +29
-0
lines changed File renamed without changes.
Original file line number Diff line number Diff line change
1
+ Kani unexpectedly panicked during compilation.
Original file line number Diff line number Diff line change
1
+ // Copyright Kani Contributors
2
+ // SPDX-License-Identifier: Apache-2.0 OR MIT
3
+ //! Check that we correctly handle type mistmatch when the argument is a ZST type.
4
+ //! The compiler crashes today: https://github.com/model-checking/kani/issues/2121
5
+
6
+ #![ feature( core_intrinsics) ]
7
+ use std:: intrinsics:: ctpop;
8
+
9
+ // These shouldn't compile.
10
+ #[ kani:: proof]
11
+ pub fn check_zst_ctpop ( ) {
12
+ let n = ctpop ( ( ) ) ;
13
+ assert ! ( n == ( ) ) ;
14
+ }
Original file line number Diff line number Diff line change
1
+ // Copyright Kani Contributors
2
+ // SPDX-License-Identifier: Apache-2.0 OR MIT
3
+ //! Check that arithmetic operations with overflow compilation fails.
4
+ //! The compiler crashes today: https://github.com/model-checking/kani/issues/2121
5
+
6
+ #![ feature( core_intrinsics) ]
7
+ use std:: intrinsics:: sub_with_overflow;
8
+
9
+ #[ kani:: proof]
10
+ pub fn check_zst_sub_with_overflow ( ) {
11
+ let n = sub_with_overflow ( ( ) , ( ) ) ;
12
+ assert ! ( !n. 1 ) ;
13
+ }
Original file line number Diff line number Diff line change
1
+ Kani unexpectedly panicked during compilation.
You can’t perform that action at this time.
0 commit comments