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.
1 parent acd7cfd commit a95089aCopy full SHA for a95089a
tests/regression/02-base/67-no-int-context-option.c
@@ -0,0 +1,15 @@
1
+// PARAM: --enable ana.int.interval --disable ana.context.widen --enable ana.base.context.int --set annotation.goblint_context.base.no-int[+] f
2
+#include <assert.h>
3
+
4
+int f(int x) {
5
+ if (x)
6
+ return f(x+1);
7
+ else
8
+ return x;
9
+}
10
11
+int main () {
12
+ int a = f(1);
13
+ assert(!a);
14
+ return 0;
15
tests/regression/02-base/68-int-context-option.c
+// PARAM: --enable ana.int.interval --disable ana.context.widen --disable ana.base.context.int --set annotation.goblint_context.base.int[+] f
+ return x * f(x - 1);
+ return 1;
+ int a = f(10);
+ assert(a == 3628800);
0 commit comments