-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharraytest.j
executable file
·138 lines (123 loc) · 2.36 KB
/
arraytest.j
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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
.class public arraytest
.super java/lang/Object
.field private static _runTimer LRunTimer;
.field private static _standardIn LPascalTextIn;
.field private static a1 [I
.field private static a2 [[I
.field private static a3 [[[I
.field private static i I
.field private static j I
.field private static k I
.field private static n I
.method public <init>()V
aload_0
invokenonvirtual java/lang/Object/<init>()V
return
.limit locals 1
.limit stack 1
.end method
.method public static main([Ljava/lang/String;)V
new RunTimer
dup
invokenonvirtual RunTimer/<init>()V
putstatic arraytest/_runTimer LRunTimer;
new PascalTextIn
dup
invokenonvirtual PascalTextIn/<init>()V
putstatic arraytest/_standardIn LPascalTextIn;
bipush 10
newarray int
putstatic arraytest/a1 [I
iconst_5
iconst_5
multianewarray [[I 2
putstatic arraytest/a2 [[I
iconst_2
iconst_3
iconst_4
multianewarray [[[I 3
putstatic arraytest/a3 [[[I
.line 15
iconst_0
putstatic arraytest/i I
.line 15
iconst_0
putstatic arraytest/j I
.line 15
iconst_0
putstatic arraytest/k I
.line 17
getstatic arraytest/a1 [I
getstatic arraytest/i I
iaload
putstatic arraytest/j I
.line 18
getstatic arraytest/a2 [[I
getstatic arraytest/i I
aaload
getstatic arraytest/j I
iaload
putstatic arraytest/k I
.line 19
getstatic arraytest/a3 [[[I
getstatic arraytest/i I
aaload
getstatic arraytest/j I
aaload
getstatic arraytest/k I
iaload
putstatic arraytest/n I
.line 21
getstatic arraytest/a1 [I
getstatic arraytest/i I
getstatic arraytest/j I
iastore
.line 22
getstatic arraytest/a2 [[I
getstatic arraytest/i I
aaload
getstatic arraytest/j I
getstatic arraytest/k I
iastore
.line 23
getstatic arraytest/a3 [[[I
getstatic arraytest/i I
aaload
getstatic arraytest/j I
aaload
getstatic arraytest/k I
getstatic arraytest/n I
iastore
.line 25
getstatic arraytest/a3 [[[I
getstatic arraytest/i I
aaload
getstatic arraytest/a1 [I
getstatic arraytest/j I
iaload
aaload
getstatic arraytest/k I
getstatic arraytest/a2 [[I
getstatic arraytest/i I
aaload
getstatic arraytest/j I
iaload
getstatic arraytest/a3 [[[I
getstatic arraytest/k I
aaload
iconst_2
getstatic arraytest/n I
imul
aaload
getstatic arraytest/k I
iconst_1
iadd
iaload
isub
iastore
getstatic arraytest/_runTimer LRunTimer;
invokevirtual RunTimer.printElapsedTime()V
return
.limit locals 1
.limit stack 6
.end method