Skip to content

Commit 616a4b3

Browse files
authored
Merge pull request #4338 from peterschrammel/floating-point-timeout
Tests exhibiting performance problems with floating point equalities
2 parents bc6c41e + b3c9ade commit 616a4b3

File tree

3 files changed

+32
-0
lines changed

3 files changed

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

0 commit comments

Comments
 (0)