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 84da25e commit 462ab19Copy full SHA for 462ab19
regression/cbmc-incr-smt2/arrays/array_write.c
@@ -0,0 +1,9 @@
1
+int main()
2
+{
3
+ int example_array[10000];
4
+ unsigned int index;
5
+ __CPROVER_assume(index < 10000);
6
+ example_array[index] = 42;
7
+ __CPROVER_assert(example_array[index] == 42, "Array condition");
8
+ __CPROVER_assert(example_array[index] != 42, "Array condition");
9
+}
regression/cbmc-incr-smt2/arrays/array_write.desc
@@ -0,0 +1,11 @@
+CORE
+array_write.c
+
+Passing problem to incremental SMT2 solving
+\[main\.assertion\.1\] line \d+ Array condition: SUCCESS
+\[main\.assertion\.2\] line \d+ Array condition: FAILURE
+^EXIT=10$
+^SIGNAL=0$
+--
10
11
+Test of updating the value at an index of an array.
0 commit comments