/
switch.pjb
119 lines (114 loc) · 1.79 KB
/
switch.pjb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
.class public org/isk/pjb/TestSwitch
.method public static tableswitch(I)I
iload_0
tableswitch default 5 7
label_5
label_6
label_7
label_5:
bipush 10
goto return
label_6:
bipush 12
goto return
label_7:
bipush 14
goto return
default:
bipush 100
return:
ireturn
.methodend
.method public static tableswitch_signed(I)I
iload_0
tableswitch default -1 1
label_m1
label_0
label_1
label_0:
bipush 10
goto return
label_1:
bipush 12
goto return
label_m1:
bipush 14
goto return
default:
bipush 100
return:
ireturn
.methodend
.method public static tableswitch_neg(I)I
loop:
iload_0
ifgt ok
iload_0
tableswitch ok 0 1
label_0
ok
label_0:
iconst_3
istore_0
goto loop
ok:
iload_0
ireturn
.methodend
.method public static lookupswitch(I)I
iload_0
lookupswitch default 3
5 label_5
10 label_10
15 label_15
label_5:
bipush 10
goto return
label_10:
bipush 20
goto return
label_15:
bipush 30
goto return
default:
bipush 100
return:
ireturn
.methodend
.method public static lookupswitch_signed(I)I
iload_0
lookupswitch default 3
-10 label_m10
-5 label_m5
15 label_15
label_m5:
bipush 10
goto return
default:
bipush 100
goto return
label_m10:
bipush 20
goto return
label_15:
bipush 30
return:
ireturn
.methodend
.method public static lookupswitch_neg(I)I
loop:
iload_0
ifgt ok
iload_0
lookupswitch ok 2
0 label_0
5000 ok
label_0:
iconst_3
istore_0
goto loop
ok:
iload_0
ireturn
.methodend
.classend