You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
85 lines
1.4 KiB
85 lines
1.4 KiB
package pkg;
|
|
|
|
public class TestClassLoop {
|
|
public static void testSimpleInfinite() {
|
|
while(true) {
|
|
System.out.println();// 23
|
|
}
|
|
}
|
|
|
|
public static void testFinally() {
|
|
boolean var0 = Math.random() > 0.0D;// 29
|
|
|
|
while(true) {
|
|
try {
|
|
if(!var0) {// 33
|
|
return;
|
|
}
|
|
} finally {
|
|
System.out.println("1");// 38
|
|
}
|
|
}
|
|
}
|
|
|
|
public static void testFinallyContinue() {
|
|
boolean var0 = Math.random() > 0.0D;// 45
|
|
|
|
while(true) {
|
|
while(true) {
|
|
try {
|
|
System.out.println("1");// 49
|
|
break;
|
|
} finally {
|
|
if(var0) {// 52
|
|
System.out.println("3");// 53
|
|
continue;
|
|
}
|
|
}
|
|
}
|
|
|
|
System.out.println("4");
|
|
}
|
|
}
|
|
}
|
|
|
|
class 'pkg/TestClassLoop' {
|
|
method 'testSimpleInfinite ()V' {
|
|
0 5
|
|
3 5
|
|
}
|
|
|
|
method 'testFinally ()V' {
|
|
0 10
|
|
3 10
|
|
4 10
|
|
d 10
|
|
f 14
|
|
26 18
|
|
27 18
|
|
2a 18
|
|
}
|
|
|
|
method 'testFinallyContinue ()V' {
|
|
0 24
|
|
3 24
|
|
4 24
|
|
d 24
|
|
e 29
|
|
11 29
|
|
13 29
|
|
26 32
|
|
2a 33
|
|
2d 33
|
|
2f 33
|
|
}
|
|
}
|
|
|
|
Lines mapping:
|
|
23 <-> 6
|
|
29 <-> 11
|
|
33 <-> 15
|
|
38 <-> 19
|
|
45 <-> 25
|
|
49 <-> 30
|
|
52 <-> 33
|
|
53 <-> 34
|
|
|