We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 246af82 commit 941f001Copy full SHA for 941f001
regression/contracts/assigns_enforce_17/main.c
@@ -0,0 +1,16 @@
1
+#include <assert.h>
2
+
3
+int x = 0;
4
5
+void pure() __CPROVER_assigns()
6
+{
7
+ int x;
8
+ x++;
9
+}
10
11
+int main()
12
13
+ pure();
14
+ assert(x == 0);
15
+ return 0;
16
regression/contracts/assigns_enforce_17/test.desc
@@ -0,0 +1,11 @@
+CORE
+main.c
+--enforce-all-contracts _ --pointer-primitive-check
+^EXIT=0$
+^SIGNAL=0$
+^\[main.assertion.\d+\] line \d+ assertion x \=\= 0\: SUCCESS$
+^VERIFICATION SUCCESSFUL$
+--
+Checks whether verification correctly distincts local variables
+and global variables with same name when checking frame conditions.
0 commit comments