Skip to content

Commit 203a537

Browse files
committed
More bad case :(
1 parent 7211ec7 commit 203a537

File tree

2 files changed

+61
-3
lines changed

2 files changed

+61
-3
lines changed

testData/results/pkg/TestArrayPPMM.dec

Lines changed: 49 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,20 @@ public class TestArrayPPMM {
3737
this.accept(array[i++], array[++i]);// 39
3838
}// 40
3939

40-
private void accept(int i, int j) {
40+
public void test9(int[] array, int i) {
41+
array[i] = ++i;// 43
4142
}// 44
43+
44+
public void test10(int i) {
45+
this.getArray()[i] = ++i;// 47
46+
}// 48
47+
48+
private void accept(int i, int j) {
49+
}// 52
50+
51+
private int[] getArray() {
52+
return new int[10];// 55
53+
}
4254
}
4355

4456
class 'pkg/TestArrayPPMM' {
@@ -190,8 +202,37 @@ class 'pkg/TestArrayPPMM' {
190202
10 37
191203
}
192204

193-
method 'accept (II)V' {
205+
method 'test9 ([II)V' {
194206
0 40
207+
1 40
208+
2 40
209+
3 40
210+
4 40
211+
6 40
212+
7 41
213+
}
214+
215+
method 'test10 (I)V' {
216+
0 44
217+
1 44
218+
2 44
219+
3 44
220+
4 44
221+
5 44
222+
6 44
223+
7 44
224+
9 44
225+
a 45
226+
}
227+
228+
method 'accept (II)V' {
229+
0 48
230+
}
231+
232+
method 'getArray ()[I' {
233+
0 51
234+
1 51
235+
4 51
195236
}
196237
}
197238

@@ -214,4 +255,9 @@ Lines mapping:
214255
36 <-> 34
215256
39 <-> 37
216257
40 <-> 38
217-
44 <-> 41
258+
43 <-> 41
259+
44 <-> 42
260+
47 <-> 45
261+
48 <-> 46
262+
52 <-> 49
263+
55 <-> 52

testData/src/java8/pkg/TestArrayPPMM.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,19 @@ public void test8(int[] array, int i) {
3939
accept(array[i++], array[++i]);
4040
}
4141

42+
public void test9(int[] array, int i) {
43+
array[++i] = i;
44+
}
45+
46+
public void test10(int i) {
47+
getArray()[++i] = i;
48+
}
49+
4250
private void accept(int i, int j) {
4351

4452
}
53+
54+
private int[] getArray() {
55+
return new int[10];
56+
}
4557
}

0 commit comments

Comments
 (0)