Commit 443d4f0
committed
Add non-determinism to array_address_of test
This test is intended to cover incremental SMT decision procedure
support expressions of the form `address_of(array[0])`. These occur as
part of the conversion from array to pointer, which may be implicitly
introduced by applying `__CPROVER_OBJECT_SIZE` to an array. The existing
test is not actually checking this conversion due to it being simplified
away during constant propagation. The introduction of non-determinism in
this commit prevents constant propagation from removing expressions of
this form, so that their conversion will actually be tested.1 parent 2181146 commit 443d4f0
File tree
2 files changed
+13
-6
lines changed- regression/cbmc-incr-smt2/arrays
2 files changed
+13
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
8 | 13 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
| |||
0 commit comments