Skip to content

Commit ca7cecf

Browse files
Add a test checking array types in the trace
This checks that symbols no longer appear as size of array types.
1 parent 5bab915 commit ca7cecf

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
lines changed
249 Bytes
Binary file not shown.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
public class Test
2+
{
3+
public void f(int i)
4+
{
5+
int[] array = new int[i];
6+
array[10] = 4;
7+
}
8+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
CORE
2+
Test.class
3+
--function Test.f --trace --json-ui --trace-json-extended
4+
// Enable multi-line checking
5+
activate-multi-line-match
6+
^EXIT=10$
7+
^SIGNAL=0$
8+
VERIFICATION FAILED
9+
"type": \{\n\s*"id": "array",[^{]*\{[^}]*\},[\s\n]*"size": \{\n\s*"id": "constant"
10+
--
11+
"type": \{\n\s*"id": "array",[^{]*\{[^}]*\},[\s\n]*"size": \{\n\s*"id": "symbol"
12+
"type": \{\n\s*"id": "array",[^{]*\{[^}]*\},[\s\n]*"size": \{\n\s*"id": "nondet_symbol",
13+
--
14+
Check that symbols in array types in the trace, got replaced by actual values.

0 commit comments

Comments
 (0)