File tree 3 files changed +34
-0
lines changed
jbmc/regression/jbmc/multidimensional-array-char
3 files changed +34
-0
lines changed Original file line number Diff line number Diff line change
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 number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments