Skip to content

Commit efe8ec3

Browse files
authored
Merge pull request #4896 from yumibagge/yb/jbmc-regression-multi-dimentional-char-array
Add KNOWNBUG for multidimentional char array[TG-8466]
2 parents ffbf8be + a5fd2df commit efe8ec3

File tree

3 files changed

+34
-0
lines changed

3 files changed

+34
-0
lines changed
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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+
assert diff < 10;
10+
} else if (board[row][col] == 'X') {
11+
diff--;
12+
assert !assertionCheck;
13+
assert diff < 10 ;
14+
}
15+
}
16+
}
17+
return diff;
18+
}
19+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
KNOWNBUG
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 9 assertion at file My.java.*: SUCCESS
6+
line 12 assertion at file My.java.*: FAILURE
7+
line 13 assertion at file My.java.*: SUCCESS
8+
^VERIFICATION FAILED$
9+
^EXIT=10$
10+
^SIGNAL=0$
11+
--
12+
--
13+
Multidimentional char array used to cause a performance issue which is reported
14+
in TG-5076. The issue is no longer reproducible.
15+
It currently core-dump jbmc by generating invalid trace: TG-8466

0 commit comments

Comments
 (0)