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 780d6cc commit d60f030Copy full SHA for d60f030
regression/cbmc-incr-smt2/arrays_traces/array_write.c
@@ -0,0 +1,9 @@
1
+int main()
2
+{
3
+ int example_array[1025];
4
+ unsigned int index;
5
+ __CPROVER_assume(index < 1025);
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_traces/array_write.desc
@@ -0,0 +1,12 @@
+CORE
+array_write.c
+--trace
+Passing problem to incremental SMT2 solving
+^Trace for main\.assertion\.2
+example_array\[\d{1,4}ll?\]=42
+^EXIT=10$
+^SIGNAL=0$
+--
10
11
+Test of writing a value at a non-deterministic index of an array, then asserting
12
+the value we expect.
0 commit comments