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 5bc32d7 commit c120e32Copy full SHA for c120e32
regression/cbmc-shadow-memory/trace1/main.c
@@ -0,0 +1,19 @@
1
+#include <assert.h>
2
+
3
+int main()
4
+{
5
+ __CPROVER_field_decl_local("field1", (_Bool)0);
6
7
+ int x;
8
9
+ // create a non-trivial counterexample trace
10
+ for(int i = 0; i < 4; ++i)
11
+ {
12
+ if(i == 2)
13
14
+ __CPROVER_set_field(&x, "field1", 1);
15
+ }
16
17
18
+ assert(__CPROVER_get_field(&x, "field1") == 0);
19
+}
regression/cbmc-shadow-memory/trace1/test.desc
@@ -0,0 +1,9 @@
+FUTURE
+main.c
+--stop-on-fail --unwind 5
+^EXIT=10$
+^SIGNAL=0$
+^VERIFICATION FAILED
+SM__&x!0@1__field1=
+--
+^warning: ignoring
0 commit comments