Skip to content

Commit 937751c

Browse files
committed
[RFC] Handling infinity in the back-end
The test demonstrates that we currently do not handle infinity_exprt in the back-end, although the C front-end can legitimately generate such expressions.
1 parent 31e4ddf commit 937751c

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

Diff for: regression/cbmc/infinity1/main.c

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
int A[__CPROVER_constant_infinity_uint];
2+
3+
int main()
4+
{
5+
__CPROVER_assert(__CPROVER_OBJECT_SIZE(A) > 0, "infinity is positive");
6+
}

Diff for: regression/cbmc/infinity1/test.desc

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

0 commit comments

Comments
 (0)