Skip to content

Commit 9c7170f

Browse files
Tests exhibiting performance problems with floating point equalities
See #4337.
1 parent 4f19015 commit 9c7170f

File tree

3 files changed

+31
-0
lines changed

3 files changed

+31
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#include <assert.h>
2+
3+
void main() {
4+
double a, b, c;
5+
__CPROVER_assume(a + b > c);
6+
#ifdef EQUALITY
7+
double x = a, y = b, z = c;
8+
assert(!(z > x + y) );
9+
#else
10+
assert(!(c > a + b) );
11+
#endif
12+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
KNOWNBUG
2+
main.c
3+
-DEQUALITY
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
^VERIFICATION SUCCESSFUL$
7+
--
8+
^warning: ignoring
9+
--
10+
Times out. See #4337.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
CORE
2+
main.c
3+
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
^VERIFICATION SUCCESSFUL$
7+
--
8+
^warning: ignoring
9+
--

0 commit comments

Comments
 (0)