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 aa28e14 commit 297e7aaCopy full SHA for 297e7aa
regression/cbmc/Float-div3/main.c
@@ -0,0 +1,21 @@
1
+#include <assert.h>
2
+#include <math.h>
3
+
4
+float nondet_float (void);
5
6
+int main (void) {
7
+ float f = nondet_float();
8
+ __CPROVER_assume(f < +INFINITY);
9
+ __CPROVER_assume(f > 1.0f);
10
11
+ float g = nondet_float();
12
+ __CPROVER_assume(g < 1.0f);
13
+ __CPROVER_assume(g >= 0x1.0p-126f);
14
+ __CPROVER_assume(g > 0.0f);
15
16
+ float div = f / g;
17
18
+ assert(!(div == 0.0));
19
20
+ return 1;
21
+}
regression/cbmc/Float-div3/test.desc
@@ -0,0 +1,8 @@
+CORE
+main.c
+--floatbv
+^EXIT=0$
+^SIGNAL=0$
+^VERIFICATION SUCCESSFUL$
+--
+^warning: ignoring
0 commit comments