Skip to content

Commit 2110147

Browse files
authored
Merge pull request #6826 from tautschnig/bugfixes/trace-values
Test trace-values: create reads to enforce instantiation
2 parents 098898c + 8742f4f commit 2110147

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

regression/cbmc/trace-values/unbounded_array.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,8 @@ int main(int argc, char *argv[])
99
array[size - 1] = 42;
1010
int fixed_array[] = {1, 2};
1111
__CPROVER_array_replace(array, fixed_array);
12+
assert(array[0] == 1);
13+
assert(array[1] == 2);
14+
assert(array[size - 1] == 42);
1215
assert(array[0] == 0);
1316
}

0 commit comments

Comments
 (0)