-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathout.txt
282 lines (163 loc) · 2.95 KB
/
out.txt
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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
.data
VFTable_PRINT: .word Label_1_printInt_PRINT
VFTable_A: .word Label_3_m_A
VFTable_B: .word Label_8_main_B
.text
main:
li $a0,8
li $v0,9
syscall
la Temp_1,VFTable_B
sw Temp_1,0($v0)
li Temp_2,4
addi Temp_4,$a0,-4
mov Temp_3,Temp_4
Label_13_init_for:
bgt Temp_2,Temp_3,Label_14_init_end_for
addi Temp_5,$v0,4
li Temp_6,0
sw Temp_6,0(Temp_5)
addi Temp_2,Temp_2,4
j Label_13_init_for
Label_14_init_end_for:
addi $sp,$sp,-4
sw $v0,0($sp)
jal Label_8_main_B
j Label_2_skipFunc
Label_1_printInt_PRINT:
mov $t7,$ra
addi $sp,$sp,-4
sw $fp,0($sp)
mov $fp,$sp
addi $sp,$sp,-0
lw $a0,8($fp)
li $v0,1
syscall
li $a0,32
li $v0,11
syscall
mov $ra,$t7
mov $sp,$fp
lw $fp,0($sp)
addi $sp,$sp,4
jr $ra
Label_2_skipFunc:
j Label_7_skipFunc
Label_3_m_A:
mov $t7,$ra
addi $sp,$sp,-4
sw $fp,0($sp)
mov $fp,$sp
addi $sp,$sp,-0
li Temp_9,4
li Temp_12,4
add Temp_11,Temp_12,$fp
lw Temp_10,0(Temp_11)
add Temp_8,Temp_9,Temp_10
lw Temp_7,0(Temp_8)
li Temp_13,0
beq Temp_7,Temp_13,Label_4_AccessViolation
j Label_5_AllOK
Label_4_AccessViolation:
j Label_0_Access_Violation
Label_5_AllOK:
addi $sp,$sp,-4
sw $t7,0($sp)
li Temp_16,8
add Temp_15,Temp_16,$fp
lw Temp_14,0(Temp_15)
addi $sp,$sp,-4
sw Temp_14,0($sp)
li Temp_19,4
li Temp_22,4
add Temp_21,Temp_22,$fp
lw Temp_20,0(Temp_21)
add Temp_18,Temp_19,Temp_20
lw Temp_17,0(Temp_18)
addi $sp,$sp,-4
sw Temp_17,0($sp)
la $t0,VFTable_PRINT
addi $t0,$t0,0
lw $t0,0($t0)
jalr $t0
addi $sp,$sp,8
lw $t7,0($sp)
addi $sp,$sp,4
mov $ra,$t7
mov $sp,$fp
lw $fp,0($sp)
addi $sp,$sp,4
jr $ra
Label_7_skipFunc:
j Label_12_skipFunc
Label_8_main_B:
mov $t7,$ra
addi $sp,$sp,-4
sw $fp,0($sp)
mov $fp,$sp
addi $sp,$sp,-8
li Temp_24,-4
add Temp_23,Temp_24,$fp
li Temp_25,6
sw Temp_25,0(Temp_23)
li Temp_27,-8
add Temp_26,Temp_27,$fp
li $a0,8
li $v0,9
syscall
la Temp_28,VFTable_A
sw Temp_28,0($v0)
li Temp_29,4
addi Temp_31,$a0,-4
mov Temp_30,Temp_31
Label_15_init_for:
bgt Temp_29,Temp_30,Label_16_init_end_for
addi Temp_32,$v0,4
li Temp_33,0
sw Temp_33,0(Temp_32)
addi Temp_29,Temp_29,4
j Label_15_init_for
Label_16_init_end_for:
sw $v0,0(Temp_26)
li Temp_36,-8
add Temp_35,Temp_36,$fp
lw Temp_34,0(Temp_35)
li Temp_37,0
beq Temp_34,Temp_37,Label_9_AccessViolation
j Label_10_AllOK
Label_9_AccessViolation:
j Label_0_Access_Violation
Label_10_AllOK:
addi $sp,$sp,-4
sw $t7,0($sp)
li Temp_40,-4
add Temp_39,Temp_40,$fp
lw Temp_38,0(Temp_39)
addi $sp,$sp,-4
sw Temp_38,0($sp)
li Temp_43,-8
add Temp_42,Temp_43,$fp
lw Temp_41,0(Temp_42)
addi $sp,$sp,-4
sw Temp_41,0($sp)
la $t0,VFTable_A
addi $t0,$t0,0
lw $t0,0($t0)
jalr $t0
addi $sp,$sp,8
lw $t7,0($sp)
addi $sp,$sp,4
mov $ra,$t7
mov $sp,$fp
lw $fp,0($sp)
addi $sp,$sp,4
jr $ra
Label_12_skipFunc:
li $v0,10
syscall
Label_0_Access_Violation:
li $a0,666
li $v0,1
syscall
li $v0,10
syscall