File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed
regression/cbmc-incr-smt2/arrays_traces Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change 1+ int main ()
2+ {
3+ int example_array [1025 ];
4+ unsigned int index ;
5+ __CPROVER_assume (index < 1025 );
6+ __CPROVER_assert (example_array [index ] != 42 , "Array condition" );
7+ }
Original file line number Diff line number Diff line change 1+ CORE
2+ array_read.c
3+ --trace
4+ Passing problem to incremental SMT2 solving
5+ \[main\.assertion\.1\] line \d+ Array condition: FAILURE
6+ ^Trace for main\.assertion\.1
7+ example_array=\{ (\d+, )*42
8+ ^EXIT=10$
9+ ^SIGNAL=0$
10+ --
11+ --
12+ Test of reading a value at a non-deterministic index of an array.
13+ Similar to the test in ../arrays/array_read.c, but we want to assert
14+ the value of the array that comes back in the trace to make sure we're
15+ observing the correct values.
You can’t perform that action at this time.
0 commit comments