We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
signed-overflow-check
1 parent ebcad79 commit 73c3952Copy full SHA for 73c3952
regression/cbmc-incr-smt2/bitvector-flag-tests/signed_overflow.c
@@ -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
+}
regression/cbmc-incr-smt2/bitvector-flag-tests/signed_overflow.desc
@@ -0,0 +1,11 @@
+KNOWNBUG
+signed_overflow.c
+--incremental-smt2-solver 'z3 --smt2 -in' --signed-overflow-check --trace
+^VERIFICATION FAILED$
+^EXIT=10$
+^SIGNAL=0$
+--
+Invariant check failed
+Reason: Reached unimplemented Generation of SMT formula for unknown kind of expression: overflow-\+
11
+This tests exercise the driving of the `--signed-overflow-check` flag.
0 commit comments