Skip to content

Commit 16db8c0

Browse files
author
Daniel Kroening
committed
added a test for x>y <=> x-y>0 over floats
1 parent b8ce0a7 commit 16db8c0

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

regression/cbmc/Float23/main.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
int main()
2+
{
3+
float a, b;
4+
__CPROVER_assert((a>b)==(a-b>0), "theorem");
5+
}

regression/cbmc/Float23/test.desc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
CORE
2+
main.c
3+
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
^VERIFICATION SUCCESSFUL$
7+
--
8+
^warning: ignoring

0 commit comments

Comments
 (0)