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 367a9c7 commit bfe3b33Copy full SHA for bfe3b33
regression/cbmc-shadow-memory/float1/main.c
@@ -0,0 +1,16 @@
1
+#include <assert.h>
2
+
3
+int main()
4
+{
5
+ // field declarations
6
+ __CPROVER_field_decl_local("field1", (unsigned __CPROVER_bitvector[7])0);
7
8
+ unsigned __CPROVER_bitvector[7] v;
9
+ float x;
10
+ assert(!__CPROVER_get_field(&x, "field1"));
11
12
+ __CPROVER_set_field(&x, "field1", v);
13
+ assert(__CPROVER_get_field(&x, "field1") == v);
14
15
+ return 0;
16
+}
regression/cbmc-shadow-memory/float1/test.desc
@@ -0,0 +1,8 @@
+CORE
+main.c
+--verbosity 10
+^EXIT=0$
+^SIGNAL=0$
+^VERIFICATION SUCCESSFUL$
+--
+^warning: ignoring
0 commit comments