We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d6c3a5 commit 2a12580Copy full SHA for 2a12580
regression/cbmc-library/feraiseexcept-01/main.c
@@ -0,0 +1,9 @@
1
+#include <assert.h>
2
+#include <fenv.h>
3
+
4
+int main()
5
+{
6
+ int exceptions;
7
+ feraiseexcept(exceptions);
8
+ return 0;
9
+}
regression/cbmc-library/feraiseexcept-01/test.desc
@@ -0,0 +1,8 @@
+CORE
+main.c
+^VERIFICATION FAILED$
+^EXIT=10$
+^SIGNAL=0$
+--
+^warning: ignoring
src/ansi-c/library/fenv.c
@@ -40,3 +40,12 @@ __CPROVER_HIDE:;
40
0;
41
return 0; // we never fail
42
}
43
44
+/* FUNCTION: feraiseexcept */
45
46
+int feraiseexcept(int excepts)
47
48
+__CPROVER_HIDE:;
49
+ __CPROVER_assert(excepts == 0, "floating-point exception");
50
+ return 0; // we never fail
51
0 commit comments