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
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
---
source: crates/rascal/src/program.rs
expression: parsed
input_file: samples/as2/delete.as
---
Ok:
initial_script:
- Declare:
name:
span:
start: 4
end: 7
file: 0
value: num
value:
span:
start: 10
end: 11
file: 0
value:
Constant:
Integer: 1
type_name: ~
- Declare:
name:
span:
start: 17
end: 20
file: 0
value: obj
value:
span:
start: 23
end: 31
file: 0
value:
InitObject:
- - num
- span:
start: 29
end: 30
file: 0
value:
Constant:
Integer: 1
type_name: ~
- Expr:
span:
start: 33
end: 69
file: 0
value:
Trace:
span:
start: 39
end: 68
file: 0
value:
BinaryOperator:
- Add
- span:
start: 39
end: 53
file: 0
value:
Constant:
String: "delete num: "
- span:
start: 57
end: 67
file: 0
value:
Delete:
span:
start: 64
end: 67
file: 0
value:
Constant:
Identifier: num
- Expr:
span:
start: 79
end: 115
file: 0
value:
Trace:
span:
start: 85
end: 114
file: 0
value:
BinaryOperator:
- Add
- span:
start: 85
end: 99
file: 0
value:
Constant:
String: "delete obj: "
- span:
start: 103
end: 113
file: 0
value:
Delete:
span:
start: 110
end: 113
file: 0
value:
Constant:
Identifier: obj
- Declare:
name:
span:
start: 129
end: 132
file: 0
value: obj
value:
span:
start: 135
end: 143
file: 0
value:
InitObject:
- - num
- span:
start: 141
end: 142
file: 0
value:
Constant:
Integer: 1
type_name: ~
- Expr:
span:
start: 145
end: 189
file: 0
value:
Trace:
span:
start: 151
end: 188
file: 0
value:
BinaryOperator:
- Add
- span:
start: 151
end: 169
file: 0
value:
Constant:
String: "delete obj.num: "
- span:
start: 173
end: 187
file: 0
value:
Delete:
span:
start: 183
end: 187
file: 0
value:
Field:
- span:
start: 180
end: 183
file: 0
value:
Constant:
Identifier: obj
- span:
start: 184
end: 187
file: 0
value:
Constant:
String: num
- Declare:
name:
span:
start: 203
end: 206
file: 0
value: obj
value:
span:
start: 209
end: 217
file: 0
value:
InitObject:
- - num
- span:
start: 215
end: 216
file: 0
value:
Constant:
Integer: 1
type_name: ~
- Expr:
span:
start: 219
end: 271
file: 0
value:
Trace:
span:
start: 225
end: 270
file: 0
value:
BinaryOperator:
- Add
- span:
start: 225
end: 247
file: 0
value:
Constant:
String: "delete obj.num + 1: "
- span:
start: 251
end: 269
file: 0
value:
BinaryOperator:
- Add
- span:
start: 251
end: 265
file: 0
value:
Delete:
span:
start: 261
end: 265
file: 0
value:
Field:
- span:
start: 258
end: 261
file: 0
value:
Constant:
Identifier: obj
- span:
start: 262
end: 265
file: 0
value:
Constant:
String: num
- span:
start: 268
end: 269
file: 0
value:
Constant:
Integer: 1
- Declare:
name:
span:
start: 282
end: 285
file: 0
value: obj
value:
span:
start: 288
end: 296
file: 0
value:
InitObject:
- - num
- span:
start: 294
end: 295
file: 0
value:
Constant:
Integer: 1
type_name: ~
- Expr:
span:
start: 298
end: 388
file: 0
value:
Trace:
span:
start: 304
end: 387
file: 0
value:
BinaryOperator:
- Add
- span:
start: 304
end: 354
file: 0
value:
Constant:
String: "delete obj.num == \"number\" ? \":)\" : \":(\": "
- span:
start: 358
end: 386
file: 0
value:
Ternary:
condition:
span:
start: 358
end: 372
file: 0
value:
Delete:
span:
start: 368
end: 372
file: 0
value:
Field:
- span:
start: 365
end: 368
file: 0
value:
Constant:
Identifier: obj
- span:
start: 369
end: 372
file: 0
value:
Constant:
String: num
"yes":
span:
start: 375
end: 379
file: 0
value:
Constant:
String: ":)"
"no":
span:
start: 382
end: 386
file: 0
value:
Constant:
String: ":("
- Declare:
name:
span:
start: 400
end: 403
file: 0
value: obj
value:
span:
start: 406
end: 414
file: 0
value:
InitObject:
- - num
- span:
start: 412
end: 413
file: 0
value:
Constant:
Integer: 1
type_name: ~
- Expr:
span:
start: 416
end: 494
file: 0
value:
Trace:
span:
start: 422
end: 493
file: 0
value:
BinaryOperator:
- Add
- span:
start: 422
end: 457
file: 0
value:
Constant:
String: "delete obj.num + delete obj.num: "
- span:
start: 461
end: 492
file: 0
value:
BinaryOperator:
- Add
- span:
start: 461
end: 475
file: 0
value:
Delete:
span:
start: 471
end: 475
file: 0
value:
Field:
- span:
start: 468
end: 471
file: 0
value:
Constant:
Identifier: obj
- span:
start: 472
end: 475
file: 0
value:
Constant:
String: num
- span:
start: 478
end: 492
file: 0
value:
Delete:
span:
start: 488
end: 492
file: 0
value:
Field:
- span:
start: 485
end: 488
file: 0
value:
Constant:
Identifier: obj
- span:
start: 489
end: 492
file: 0
value:
Constant:
String: num
- Declare:
name:
span:
start: 505
end: 508
file: 0
value: obj
value:
span:
start: 511
end: 533
file: 0
value:
InitObject:
- - num
- span:
start: 517
end: 518
file: 0
value:
Constant:
Integer: 1
- - trace
- span:
start: 527
end: 532
file: 0
value:
Constant:
Identifier: trace
type_name: ~
- Expr:
span:
start: 535
end: 583
file: 0
value:
Trace:
span:
start: 541
end: 582
file: 0
value:
BinaryOperator:
- Add
- span:
start: 541
end: 561
file: 0
value:
Constant:
String: "delete obj.trace: "
- span:
start: 565
end: 581
file: 0
value:
Delete:
span:
start: 575
end: 581
file: 0
value:
Field:
- span:
start: 572
end: 575
file: 0
value:
Constant:
Identifier: obj
- span:
start: 576
end: 581
file: 0
value:
Constant:
String: trace
- Declare:
name:
span:
start: 597
end: 600
file: 0
value: obj
value:
span:
start: 603
end: 625
file: 0
value:
InitObject:
- - num
- span:
start: 609
end: 610
file: 0
value:
Constant:
Integer: 1
- - trace
- span:
start: 619
end: 624
file: 0
value:
Constant:
Identifier: trace
type_name: ~
- Expr:
span:
start: 627
end: 679
file: 0
value:
Trace:
span:
start: 633
end: 678
file: 0
value:
BinaryOperator:
- Add
- span:
start: 633
end: 655
file: 0
value:
Constant:
String: "delete obj.trace(): "
- span:
start: 659
end: 677
file: 0
value:
Delete:
span:
start: 669
end: 677
file: 0
value:
Call:
name:
span:
start: 669
end: 675
file: 0
value:
Field:
- span:
start: 666
end: 669
file: 0
value:
Constant:
Identifier: obj
- span:
start: 670
end: 675
file: 0
value:
Constant:
String: trace
args: []
interfaces: []
classes: []
custom_pcodes: []
compile_options:
swf_version: 15
optimizations:
fold_constants: true
promote_variables_to_registers: true