Skip to content

Add KNOWNBUG for multidimentional char array[TG-8466] #4896

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
19 changes: 19 additions & 0 deletions jbmc/regression/jbmc/multidimensional-array-char/My.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
public class My {
public int check2DCharArray(char[][] board, boolean assertionCheck) {
int diff = 0;
for (int row = 0; row < 2; row++) {
for (int col = 0; col < 2; col++) {
if (board[row][col] == 'O') {
diff++;
assert !assertionCheck;
assert diff < 10;
} else if (board[row][col] == 'X') {
diff--;
assert !assertionCheck;
assert diff < 10 ;
}
}
}
return diff;
}
}
15 changes: 15 additions & 0 deletions jbmc/regression/jbmc/multidimensional-array-char/test.desc
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
KNOWNBUG
My.class
--function My.check2DCharArray --unwind 5 --max-nondet-array-length 10
line 8 assertion at file My.java.*: FAILURE
line 9 assertion at file My.java.*: SUCCESS
line 12 assertion at file My.java.*: FAILURE
line 13 assertion at file My.java.*: SUCCESS
^VERIFICATION FAILED$
^EXIT=10$
^SIGNAL=0$
--
--
Multidimentional char array used to cause a performance issue which is reported
in TG-5076. The issue is no longer reproducible.
It currently core-dump jbmc by generating invalid trace: TG-8466