We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56c724b commit f9e2cefCopy full SHA for f9e2cef
tests/kani/ArithOperators/rem_float_fixme.rs
@@ -0,0 +1,13 @@
1
+// Copyright Kani Contributors
2
+// SPDX-License-Identifier: Apache-2.0 OR MIT
3
+
4
+// Checks that the remainder operator works with floating point values (see issue #2669)
5
6
+#[kani::proof]
7
+fn rem_float() {
8
+ let dividend = 0.5 * f32::from(kani::any::<i8>());
9
+ let divisor = 0.5 * f32::from(kani::any::<i8>());
10
+ kani::assume(divisor != 0.0);
11
+ let result = dividend % divisor;
12
+ assert!(result == 0.0 || result.is_normal());
13
+}
0 commit comments