Skip to content

Commit 2c1c363

Browse files
committed
Add regression test for multidimentional char array
1 parent 16f63e8 commit 2c1c363

File tree

3 files changed

+29
-0
lines changed

3 files changed

+29
-0
lines changed
Binary file not shown.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
public class My {
2+
public int check2DCharArray(char[][] board, boolean assertionCheck) {
3+
int diff = 0;
4+
for (int row = 0; row < 2; row++) {
5+
for (int col = 0; col < 2; col++) {
6+
if (board[row][col] == 'O') {
7+
diff++;
8+
assert !assertionCheck;
9+
} else if (board[row][col] == 'X') {
10+
diff--;
11+
assert !assertionCheck;
12+
}
13+
}
14+
}
15+
return 0;
16+
}
17+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
CORE
2+
My.class
3+
--function My.check2DCharArray --unwind 5 --max-nondet-array-length 10
4+
line 8 assertion at file My.java.*: FAILURE
5+
line 11 assertion at file My.java.*: FAILURE
6+
^VERIFICATION FAILED$
7+
^EXIT=10$
8+
^SIGNAL=0$
9+
--
10+
--
11+
Multidimentional char array used to cause a performance issue (test-gen 0.8.1).
12+
This was reported in TG-5076. The issue is no longer reproducible 0.9.0+.

0 commit comments

Comments
 (0)