Skip to content

Commit 73c3952

Browse files
committed
Add a test for the exercise of the signed-overflow-check flag under the new SMT backend.
1 parent ebcad79 commit 73c3952

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#include <limits.h>
2+
3+
int main()
4+
{
5+
int x = INT_MAX;
6+
int y;
7+
int z = x + y;
8+
9+
__CPROVER_assert(z < INT_MIN, "This assertion is falsifiable");
10+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
KNOWNBUG
2+
signed_overflow.c
3+
--incremental-smt2-solver 'z3 --smt2 -in' --signed-overflow-check --trace
4+
^VERIFICATION FAILED$
5+
^EXIT=10$
6+
^SIGNAL=0$
7+
--
8+
Invariant check failed
9+
Reason: Reached unimplemented Generation of SMT formula for unknown kind of expression: overflow-\+
10+
--
11+
This tests exercise the driving of the `--signed-overflow-check` flag.

0 commit comments

Comments
 (0)