-
Notifications
You must be signed in to change notification settings - Fork 0
/
y.output
8927 lines (6294 loc) · 287 KB
/
y.output
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
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
State 598 conflicts: 1 shift/reduce
State 604 conflicts: 1 shift/reduce
Grammar
0 $accept: Program $end
1 Program: FuncBodies
2 FuncBodies: FuncBodies FuncBody
3 | FuncBody
4 FuncBody: T_FunBegin Stmts
5 Stmts: Stmts Stmt
6 | Stmt
7 Stmt: '(' Note ')'
8 | '(' Barrier ')'
9 | '(' Insn ')'
10 | '(' JumpInsn ')'
11 | '(' Call ')'
12 | '(' CodeLabel ')'
13 Note: T_Note T_IntConstant T_IntConstant T_IntConstant T_IntConstant
14 | T_Note T_IntConstant T_IntConstant T_IntConstant
15 Barrier: T_Barrier T_IntConstant T_IntConstant T_IntConstant
16 CodeLabel: T_CodeLabel T_IntConstant T_IntConstant T_IntConstant T_IntConstant T_IntConstant '(' T_Nil ')'
17 | T_CodeLabel T_IntConstant T_IntConstant T_IntConstant T_IntConstant '(' T_Nil ')'
18 | T_CodeLabel T_IntConstant T_IntConstant T_IntConstant T_IntConstant T_IntConstant '(' T_StringConstant ')'
19 Integer: '-' T_IntConstant
20 | T_IntConstant
21 Insn: T_Insn T_IntConstant T_IntConstant T_IntConstant T_IntConstant '(' MainCmd ')' T_StringConstant ':' T_IntConstant Integer '(' T_Nil ')'
22 | T_Insn T_IntConstant T_IntConstant T_IntConstant T_IntConstant '(' MainCmd ')' T_StringConstant ':' T_IntConstant Integer '(' T_ExprList '(' Operand ')' '(' T_Nil ')' ')'
23 | T_Insn T_IntConstant T_IntConstant T_IntConstant T_IntConstant '(' MainCmd ')' Integer '(' T_ExprList '(' Operand ')' '(' T_Nil ')' ')'
24 | T_Insn T_IntConstant T_IntConstant T_IntConstant T_IntConstant '(' MainCmd ')' Integer '(' T_Nil ')'
25 | T_Insn T_IntConstant T_IntConstant T_IntConstant T_IntConstant '(' T_ConstInt T_IntConstant ')' T_StringConstant ':' T_IntConstant Integer '(' T_Nil ')'
26 | T_Insn T_IntConstant T_IntConstant T_IntConstant T_IntConstant '(' MainCmd ')' T_StringConstant ':' T_IntConstant Integer '(' ':' T_IntConstant '(' T_Nil ')' ')'
27 MainCmd: PlainCmd
28 | ParallelCmd
29 PlainCmd: ClobberCmd
30 | SetCmd
31 | UseCmd
32 ParallelCmd: T_Parallel Cmds T_EndPara
33 Cmds: Cmds '(' PlainCmd ')'
34 | '(' PlainCmd ')'
35 ClobberCmd: T_Clobber '(' T_Reg ':' TypeInfo T_IntConstant ')'
36 | T_Clobber '(' T_Reg Flags ':' TypeInfo T_IntConstant ')'
37 | T_Clobber '(' T_Mem ':' '(' ')' ')'
38 | T_Clobber '(' T_Mem ':' '(' T_Scratch ')' ')'
39 | T_Clobber '(' T_Mem ':' '(' Operand ')' ')'
40 | T_Clobber '(' T_Scratch ':' TypeInfo ')'
41 SetCmd: T_Set '(' Operand ')' '(' Operand ')'
42 UseCmd: T_Use '(' T_Reg Flags ':' TypeInfo T_IntConstant ')'
43 Operand: IntOperand
44 | ExprOperand
45 | ExtendOperand
46 | TruncateOperand
47 | SymbolRefOperand
48 | DerefOperand
49 | NegOperand
50 | FixOperand
51 | Dest
52 IntOperand: T_ConstInt Integer
53 ExprOperand: LocInfo ':' TypeInfo Expr
54 | AshiftExpr
55 | LshiftExpr
56 | AshiftRtExpr
57 | LshiftRtExpr
58 | CompareExpr
59 | PlusExpr
60 | MinusExpr
61 | MultExpr
62 | DivExpr
63 | UDivExpr
64 | ModExpr
65 | UModExpr
66 | XorExpr
67 | SubregExpr
68 | ConditionExpr
69 | SymbolRefExpr
70 ExtendOperand: T_SiExtend TypeInfo '(' Operand ')'
71 | T_ZeExtend TypeInfo '(' Operand ')'
72 | T_FlExtend TypeInfo '(' Operand ')'
73 TruncateOperand: T_Truncate TypeInfo '(' Operand ')'
74 DerefOperand: LocInfo ':' TypeInfo '(' Operand ')'
75 SymbolRefOperand: T_SymbolRef Flags ':' T_DIType '(' T_StringConstant ')'
76 NegOperand: T_Neg ':' TypeInfo '(' Operand ')'
77 | T_Neg '(' Operand ')'
78 FixOperand: T_Fix ':' TypeInfo '(' Operand ')'
79 LocInfo: MemType Flags
80 | MemType
81 Flags: Flags Flag
82 | Flag
83 Flag: T_IFlag
84 | T_VFlag
85 | T_FFlag
86 | T_CFlag
87 | T_UFlag
88 MemType: T_Mem
89 | T_Reg
90 TypeInfo: T_SIType
91 | T_SFType
92 | T_DIType
93 | T_QIType
94 | T_TIType
95 | T_CCType
96 | T_CCZType
97 | T_CCGCType
98 | T_CCGOCType
99 Expr: IntegerExpr
100 | '(' PlusExpr ')'
101 | '(' MinusExpr ')'
102 | '(' MultExpr ')'
103 | '(' AshiftExpr ')'
104 | '(' LshiftExpr ')'
105 | '(' AshiftRtExpr ')'
106 | '(' LshiftRtExpr ')'
107 | '(' XorExpr ')'
108 | '(' SubregExpr ')'
109 | '(' CompareExpr ')'
110 | '(' DivExpr ')'
111 | '(' UDivExpr ')'
112 | '(' ModExpr ')'
113 | '(' UModExpr ')'
114 | '(' ConditionExpr ')'
115 | '(' SymbolRefExpr ')'
116 IntegerExpr: Integer
117 PlusExpr: T_Plus TypeInfo '(' Operand ')' '(' Operand ')'
118 MinusExpr: T_Minus TypeInfo '(' Operand ')' '(' Operand ')'
119 MultExpr: T_Mult TypeInfo '(' Operand ')' '(' Operand ')'
120 DivExpr: T_Div TypeInfo '(' Operand ')' '(' Operand ')'
121 UDivExpr: T_UDiv TypeInfo '(' Operand ')' '(' Operand ')'
122 ModExpr: T_Mod TypeInfo '(' Operand ')' '(' Operand ')'
123 UModExpr: T_UMod TypeInfo '(' Operand ')' '(' Operand ')'
124 LshiftExpr: T_Lshift TypeInfo '(' Operand ')' '(' Operand ')'
125 AshiftExpr: T_Ashift TypeInfo '(' Operand ')' '(' Operand ')'
126 LshiftRtExpr: T_LshiftRt TypeInfo '(' Operand ')' '(' Operand ')'
127 AshiftRtExpr: T_AshiftRt TypeInfo '(' Operand ')' '(' Operand ')'
128 XorExpr: T_Xor TypeInfo '(' Operand ')' '(' Operand ')'
129 SubregExpr: T_Subreg TypeInfo '(' Operand ')' Integer
130 CompareExpr: T_Compare TypeInfo '(' Operand ')' '(' Operand ')'
131 ConditionExpr: Condition ':' TypeInfo '(' Operand ')' '(' Operand ')'
132 SymbolRefExpr: T_SymbolRef ':' TypeInfo '(' T_StringConstant ')'
133 JumpInsn: T_JumpInsn T_IntConstant T_IntConstant T_IntConstant T_IntConstant '(' T_Set '(' T_Pc ')' '(' Dest ')' ')' T_StringConstant ':' T_IntConstant Integer '(' T_Nil ')' T_RArrow T_IntConstant
134 | T_JumpInsn T_IntConstant T_IntConstant T_IntConstant T_IntConstant '(' T_Set '(' T_Pc ')' '(' Dest ')' ')' T_IntConstant '(' T_Nil ')' T_RArrow T_IntConstant
135 Dest: Label
136 | IfThenElse
137 | Pc
138 Label: T_LabelRef T_IntConstant
139 | T_LabelRef ':' TypeInfo T_IntConstant
140 IfThenElse: T_IfThenElse '(' Comparison ')' '(' Operand ')' '(' Operand ')'
141 | T_IfThenElse ':' TypeInfo '(' Comparison ')' '(' Operand ')' '(' Operand ')'
142 Pc: T_Pc
143 Comparison: Condition '(' Operand ')' '(' Operand ')'
144 Condition: T_Lt
145 | T_Gt
146 | T_Le
147 | T_Ge
148 | T_Eq
149 | T_Ne
150 | T_Gtu
151 | T_Ltu
152 | T_Geu
153 | T_Leu
154 Call: RetCall
155 | NoRetCall
156 RetCall: T_CallInsn T_IntConstant T_IntConstant T_IntConstant T_IntConstant '(' T_Set '(' T_Reg ':' TypeInfo T_IntConstant ')' '(' T_Call '(' T_Mem ':' T_QIType '(' T_SymbolRef ':' T_DIType '(' T_StringConstant ')' ')' ')' '(' T_ConstInt Integer ')' ')' ')' T_StringConstant ':' T_IntConstant Integer '(' Junk2 ')' '(' ExprList ')'
157 NoRetCall: T_CallInsn T_IntConstant T_IntConstant T_IntConstant T_IntConstant '(' T_Call '(' T_Mem ':' T_QIType '(' T_SymbolRef ':' T_DIType '(' T_StringConstant ')' ')' ')' '(' T_ConstInt Integer ')' ')' T_StringConstant ':' T_IntConstant Integer '(' Junk2 ')' '(' ExprList ')'
158 ExprList: ExprListExpr
159 ExprListExpr: T_ExprList TypeInfo '(' T_Use '(' T_Reg ':' TypeInfo T_IntConstant ')' ')' '(' T_Nil ')'
160 | '(' T_Use '(' T_Reg ':' TypeInfo T_IntConstant ')' ')' '(' T_Nil ')'
161 | T_ExprList TypeInfo '(' T_Use '(' T_Reg ':' TypeInfo T_IntConstant ')' ')' '(' ExprListExpr ')'
162 | '(' T_Use '(' T_Reg ':' TypeInfo T_IntConstant ')' ')' '(' ExprListExpr ')'
163 | T_Nil
164 Junk2: T_Nil
165 | T_ExprList '(' Operand ')' '(' Junk2 ')'
166 | T_ExprList TypeInfo '(' Operand ')' '(' Junk2 ')'
Terminals, with rules where they appear
$end (0) 0
'(' (40) 7 8 9 10 11 12 16 17 18 21 22 23 24 25 26 33 34 35 36 37 38
39 40 41 42 70 71 72 73 74 75 76 77 78 100 101 102 103 104 105
106 107 108 109 110 111 112 113 114 115 117 118 119 120 121 122
123 124 125 126 127 128 129 130 131 132 133 134 140 141 143 156
157 159 160 161 162 165 166
')' (41) 7 8 9 10 11 12 16 17 18 21 22 23 24 25 26 33 34 35 36 37 38
39 40 41 42 70 71 72 73 74 75 76 77 78 100 101 102 103 104 105
106 107 108 109 110 111 112 113 114 115 117 118 119 120 121 122
123 124 125 126 127 128 129 130 131 132 133 134 140 141 143 156
157 159 160 161 162 165 166
'-' (45) 19
':' (58) 21 22 25 26 35 36 37 38 39 40 42 53 74 75 76 78 131 132 133
139 141 156 157 159 160 161 162
error (256)
T_Note (258) 13 14
T_Insn (259) 21 22 23 24 25 26
T_JumpInsn (260) 133 134
T_CallInsn (261) 156 157
T_Call (262) 156 157
T_SymbolRef (263) 75 132 156 157
T_Nil (264) 16 17 21 22 23 24 25 26 133 134 159 160 163 164
T_Parallel (265) 32
T_TIType (266) 94
T_Clobber (267) 35 36 37 38 39 40
T_Set (268) 41 133 134 156
T_Use (269) 42 159 160 161 162
T_IfThenElse (270) 140 141
T_ConstInt (271) 25 52 156 157
T_Barrier (272) 15
T_Mem (273) 37 38 39 88 156 157
T_Reg (274) 35 36 42 89 156 159 160 161 162
T_Pc (275) 133 134 142
T_LabelRef (276) 138 139
T_IFlag (277) 83
T_VFlag (278) 84
T_FFlag (279) 85
T_CFlag (280) 86
T_UFlag (281) 87
T_SIType (282) 90
T_SFType (283) 91
T_DIType (284) 75 92 156 157
T_QIType (285) 93 156 157
T_CCType (286) 95
T_CCZType (287) 96
T_CCGCType (288) 97
T_Plus (289) 117
T_Minus (290) 118
T_Mult (291) 119
T_Div (292) 120
T_Lshift (293) 124
T_Ashift (294) 125
T_LshiftRt (295) 126
T_AshiftRt (296) 127
T_Subreg (297) 129
T_ExprList (298) 22 23 159 161 165 166
T_EndPara (299) 32
T_RArrow (300) 133 134
T_SiExtend (301) 70
T_Compare (302) 130
T_Lt (303) 144
T_Gt (304) 145
T_Le (305) 146
T_Ge (306) 147
T_Eq (307) 148
T_Ne (308) 149
T_CodeLabel (309) 16 17 18
T_UDiv (310) 121
T_Mod (311) 122
T_UMod (312) 123
T_CCGOCType (313) 98
T_ZeExtend (314) 71
T_FlExtend (315) 72
T_Gtu (316) 150
T_Ltu (317) 151
T_Leu (318) 153
T_Geu (319) 152
T_Neg (320) 76 77
T_Xor (321) 128
T_Fix (322) 78
T_Truncate (323) 73
T_Scratch (324) 38 40
T_StringConstant (325) 18 21 22 25 26 75 132 133 156 157
T_IntConstant (326) 13 14 15 16 17 18 19 20 21 22 23 24 25 26 35 36
42 133 134 138 139 156 157 159 160 161 162
T_FunBegin (327) 4
TWO (328)
Nonterminals, with rules where they appear
$accept (78)
on left: 0
Program (79)
on left: 1, on right: 0
FuncBodies (80)
on left: 2 3, on right: 1 2
FuncBody (81)
on left: 4, on right: 2 3
Stmts (82)
on left: 5 6, on right: 4 5
Stmt (83)
on left: 7 8 9 10 11 12, on right: 5 6
Note (84)
on left: 13 14, on right: 7
Barrier (85)
on left: 15, on right: 8
CodeLabel (86)
on left: 16 17 18, on right: 12
Integer (87)
on left: 19 20, on right: 21 22 23 24 25 26 52 116 129 133 156
157
Insn (88)
on left: 21 22 23 24 25 26, on right: 9
MainCmd (89)
on left: 27 28, on right: 21 22 23 24 26
PlainCmd (90)
on left: 29 30 31, on right: 27 33 34
ParallelCmd (91)
on left: 32, on right: 28
Cmds (92)
on left: 33 34, on right: 32 33
ClobberCmd (93)
on left: 35 36 37 38 39 40, on right: 29
SetCmd (94)
on left: 41, on right: 30
UseCmd (95)
on left: 42, on right: 31
Operand (96)
on left: 43 44 45 46 47 48 49 50 51, on right: 22 23 39 41 70 71
72 73 74 76 77 78 117 118 119 120 121 122 123 124 125 126 127 128
129 130 131 140 141 143 165 166
IntOperand (97)
on left: 52, on right: 43
ExprOperand (98)
on left: 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69, on right:
44
ExtendOperand (99)
on left: 70 71 72, on right: 45
TruncateOperand (100)
on left: 73, on right: 46
DerefOperand (101)
on left: 74, on right: 48
SymbolRefOperand (102)
on left: 75, on right: 47
NegOperand (103)
on left: 76 77, on right: 49
FixOperand (104)
on left: 78, on right: 50
LocInfo (105)
on left: 79 80, on right: 53 74
Flags (106)
on left: 81 82, on right: 36 42 75 79 81
Flag (107)
on left: 83 84 85 86 87, on right: 81 82
MemType (108)
on left: 88 89, on right: 79 80
TypeInfo (109)
on left: 90 91 92 93 94 95 96 97 98, on right: 35 36 40 42 53 70
71 72 73 74 76 78 117 118 119 120 121 122 123 124 125 126 127 128
129 130 131 132 139 141 156 159 160 161 162 166
Expr (110)
on left: 99 100 101 102 103 104 105 106 107 108 109 110 111 112
113 114 115, on right: 53
IntegerExpr (111)
on left: 116, on right: 99
PlusExpr (112)
on left: 117, on right: 59 100
MinusExpr (113)
on left: 118, on right: 60 101
MultExpr (114)
on left: 119, on right: 61 102
DivExpr (115)
on left: 120, on right: 62 110
UDivExpr (116)
on left: 121, on right: 63 111
ModExpr (117)
on left: 122, on right: 64 112
UModExpr (118)
on left: 123, on right: 65 113
LshiftExpr (119)
on left: 124, on right: 55 104
AshiftExpr (120)
on left: 125, on right: 54 103
LshiftRtExpr (121)
on left: 126, on right: 57 106
AshiftRtExpr (122)
on left: 127, on right: 56 105
XorExpr (123)
on left: 128, on right: 66 107
SubregExpr (124)
on left: 129, on right: 67 108
CompareExpr (125)
on left: 130, on right: 58 109
ConditionExpr (126)
on left: 131, on right: 68 114
SymbolRefExpr (127)
on left: 132, on right: 69 115
JumpInsn (128)
on left: 133 134, on right: 10
Dest (129)
on left: 135 136 137, on right: 51 133 134
Label (130)
on left: 138 139, on right: 135
IfThenElse (131)
on left: 140 141, on right: 136
Pc (132)
on left: 142, on right: 137
Comparison (133)
on left: 143, on right: 140 141
Condition (134)
on left: 144 145 146 147 148 149 150 151 152 153, on right: 131
143
Call (135)
on left: 154 155, on right: 11
RetCall (136)
on left: 156, on right: 154
NoRetCall (137)
on left: 157, on right: 155
ExprList (138)
on left: 158, on right: 156 157
ExprListExpr (139)
on left: 159 160 161 162 163, on right: 158 161 162
Junk2 (140)
on left: 164 165 166, on right: 156 157 165 166
State 0
0 $accept: . Program $end
T_FunBegin shift, and go to state 1
Program go to state 2
FuncBodies go to state 3
FuncBody go to state 4
State 1
4 FuncBody: T_FunBegin . Stmts
'(' shift, and go to state 5
Stmts go to state 6
Stmt go to state 7
State 2
0 $accept: Program . $end
$end shift, and go to state 8
State 3
1 Program: FuncBodies .
2 FuncBodies: FuncBodies . FuncBody
T_FunBegin shift, and go to state 1
$default reduce using rule 1 (Program)
FuncBody go to state 9
State 4
3 FuncBodies: FuncBody .
$default reduce using rule 3 (FuncBodies)
State 5
7 Stmt: '(' . Note ')'
8 | '(' . Barrier ')'
9 | '(' . Insn ')'
10 | '(' . JumpInsn ')'
11 | '(' . Call ')'
12 | '(' . CodeLabel ')'
T_Note shift, and go to state 10
T_Insn shift, and go to state 11
T_JumpInsn shift, and go to state 12
T_CallInsn shift, and go to state 13
T_Barrier shift, and go to state 14
T_CodeLabel shift, and go to state 15
Note go to state 16
Barrier go to state 17
CodeLabel go to state 18
Insn go to state 19
JumpInsn go to state 20
Call go to state 21
RetCall go to state 22
NoRetCall go to state 23
State 6
4 FuncBody: T_FunBegin Stmts .
5 Stmts: Stmts . Stmt
'(' shift, and go to state 5
$default reduce using rule 4 (FuncBody)
Stmt go to state 24
State 7
6 Stmts: Stmt .
$default reduce using rule 6 (Stmts)
State 8
0 $accept: Program $end .
$default accept
State 9
2 FuncBodies: FuncBodies FuncBody .
$default reduce using rule 2 (FuncBodies)
State 10
13 Note: T_Note . T_IntConstant T_IntConstant T_IntConstant T_IntConstant
14 | T_Note . T_IntConstant T_IntConstant T_IntConstant
T_IntConstant shift, and go to state 25
State 11
21 Insn: T_Insn . T_IntConstant T_IntConstant T_IntConstant T_IntConstant '(' MainCmd ')' T_StringConstant ':' T_IntConstant Integer '(' T_Nil ')'
22 | T_Insn . T_IntConstant T_IntConstant T_IntConstant T_IntConstant '(' MainCmd ')' T_StringConstant ':' T_IntConstant Integer '(' T_ExprList '(' Operand ')' '(' T_Nil ')' ')'
23 | T_Insn . T_IntConstant T_IntConstant T_IntConstant T_IntConstant '(' MainCmd ')' Integer '(' T_ExprList '(' Operand ')' '(' T_Nil ')' ')'
24 | T_Insn . T_IntConstant T_IntConstant T_IntConstant T_IntConstant '(' MainCmd ')' Integer '(' T_Nil ')'
25 | T_Insn . T_IntConstant T_IntConstant T_IntConstant T_IntConstant '(' T_ConstInt T_IntConstant ')' T_StringConstant ':' T_IntConstant Integer '(' T_Nil ')'
26 | T_Insn . T_IntConstant T_IntConstant T_IntConstant T_IntConstant '(' MainCmd ')' T_StringConstant ':' T_IntConstant Integer '(' ':' T_IntConstant '(' T_Nil ')' ')'
T_IntConstant shift, and go to state 26
State 12
133 JumpInsn: T_JumpInsn . T_IntConstant T_IntConstant T_IntConstant T_IntConstant '(' T_Set '(' T_Pc ')' '(' Dest ')' ')' T_StringConstant ':' T_IntConstant Integer '(' T_Nil ')' T_RArrow T_IntConstant
134 | T_JumpInsn . T_IntConstant T_IntConstant T_IntConstant T_IntConstant '(' T_Set '(' T_Pc ')' '(' Dest ')' ')' T_IntConstant '(' T_Nil ')' T_RArrow T_IntConstant
T_IntConstant shift, and go to state 27
State 13
156 RetCall: T_CallInsn . T_IntConstant T_IntConstant T_IntConstant T_IntConstant '(' T_Set '(' T_Reg ':' TypeInfo T_IntConstant ')' '(' T_Call '(' T_Mem ':' T_QIType '(' T_SymbolRef ':' T_DIType '(' T_StringConstant ')' ')' ')' '(' T_ConstInt Integer ')' ')' ')' T_StringConstant ':' T_IntConstant Integer '(' Junk2 ')' '(' ExprList ')'
157 NoRetCall: T_CallInsn . T_IntConstant T_IntConstant T_IntConstant T_IntConstant '(' T_Call '(' T_Mem ':' T_QIType '(' T_SymbolRef ':' T_DIType '(' T_StringConstant ')' ')' ')' '(' T_ConstInt Integer ')' ')' T_StringConstant ':' T_IntConstant Integer '(' Junk2 ')' '(' ExprList ')'
T_IntConstant shift, and go to state 28
State 14
15 Barrier: T_Barrier . T_IntConstant T_IntConstant T_IntConstant
T_IntConstant shift, and go to state 29
State 15
16 CodeLabel: T_CodeLabel . T_IntConstant T_IntConstant T_IntConstant T_IntConstant T_IntConstant '(' T_Nil ')'
17 | T_CodeLabel . T_IntConstant T_IntConstant T_IntConstant T_IntConstant '(' T_Nil ')'
18 | T_CodeLabel . T_IntConstant T_IntConstant T_IntConstant T_IntConstant T_IntConstant '(' T_StringConstant ')'
T_IntConstant shift, and go to state 30
State 16
7 Stmt: '(' Note . ')'
')' shift, and go to state 31
State 17
8 Stmt: '(' Barrier . ')'
')' shift, and go to state 32
State 18
12 Stmt: '(' CodeLabel . ')'
')' shift, and go to state 33
State 19
9 Stmt: '(' Insn . ')'
')' shift, and go to state 34
State 20
10 Stmt: '(' JumpInsn . ')'
')' shift, and go to state 35
State 21
11 Stmt: '(' Call . ')'
')' shift, and go to state 36
State 22
154 Call: RetCall .
$default reduce using rule 154 (Call)
State 23
155 Call: NoRetCall .
$default reduce using rule 155 (Call)
State 24
5 Stmts: Stmts Stmt .
$default reduce using rule 5 (Stmts)
State 25
13 Note: T_Note T_IntConstant . T_IntConstant T_IntConstant T_IntConstant
14 | T_Note T_IntConstant . T_IntConstant T_IntConstant
T_IntConstant shift, and go to state 37
State 26
21 Insn: T_Insn T_IntConstant . T_IntConstant T_IntConstant T_IntConstant '(' MainCmd ')' T_StringConstant ':' T_IntConstant Integer '(' T_Nil ')'
22 | T_Insn T_IntConstant . T_IntConstant T_IntConstant T_IntConstant '(' MainCmd ')' T_StringConstant ':' T_IntConstant Integer '(' T_ExprList '(' Operand ')' '(' T_Nil ')' ')'
23 | T_Insn T_IntConstant . T_IntConstant T_IntConstant T_IntConstant '(' MainCmd ')' Integer '(' T_ExprList '(' Operand ')' '(' T_Nil ')' ')'
24 | T_Insn T_IntConstant . T_IntConstant T_IntConstant T_IntConstant '(' MainCmd ')' Integer '(' T_Nil ')'
25 | T_Insn T_IntConstant . T_IntConstant T_IntConstant T_IntConstant '(' T_ConstInt T_IntConstant ')' T_StringConstant ':' T_IntConstant Integer '(' T_Nil ')'
26 | T_Insn T_IntConstant . T_IntConstant T_IntConstant T_IntConstant '(' MainCmd ')' T_StringConstant ':' T_IntConstant Integer '(' ':' T_IntConstant '(' T_Nil ')' ')'
T_IntConstant shift, and go to state 38
State 27
133 JumpInsn: T_JumpInsn T_IntConstant . T_IntConstant T_IntConstant T_IntConstant '(' T_Set '(' T_Pc ')' '(' Dest ')' ')' T_StringConstant ':' T_IntConstant Integer '(' T_Nil ')' T_RArrow T_IntConstant
134 | T_JumpInsn T_IntConstant . T_IntConstant T_IntConstant T_IntConstant '(' T_Set '(' T_Pc ')' '(' Dest ')' ')' T_IntConstant '(' T_Nil ')' T_RArrow T_IntConstant
T_IntConstant shift, and go to state 39
State 28
156 RetCall: T_CallInsn T_IntConstant . T_IntConstant T_IntConstant T_IntConstant '(' T_Set '(' T_Reg ':' TypeInfo T_IntConstant ')' '(' T_Call '(' T_Mem ':' T_QIType '(' T_SymbolRef ':' T_DIType '(' T_StringConstant ')' ')' ')' '(' T_ConstInt Integer ')' ')' ')' T_StringConstant ':' T_IntConstant Integer '(' Junk2 ')' '(' ExprList ')'
157 NoRetCall: T_CallInsn T_IntConstant . T_IntConstant T_IntConstant T_IntConstant '(' T_Call '(' T_Mem ':' T_QIType '(' T_SymbolRef ':' T_DIType '(' T_StringConstant ')' ')' ')' '(' T_ConstInt Integer ')' ')' T_StringConstant ':' T_IntConstant Integer '(' Junk2 ')' '(' ExprList ')'
T_IntConstant shift, and go to state 40
State 29
15 Barrier: T_Barrier T_IntConstant . T_IntConstant T_IntConstant
T_IntConstant shift, and go to state 41
State 30
16 CodeLabel: T_CodeLabel T_IntConstant . T_IntConstant T_IntConstant T_IntConstant T_IntConstant '(' T_Nil ')'
17 | T_CodeLabel T_IntConstant . T_IntConstant T_IntConstant T_IntConstant '(' T_Nil ')'
18 | T_CodeLabel T_IntConstant . T_IntConstant T_IntConstant T_IntConstant T_IntConstant '(' T_StringConstant ')'
T_IntConstant shift, and go to state 42
State 31
7 Stmt: '(' Note ')' .
$default reduce using rule 7 (Stmt)
State 32
8 Stmt: '(' Barrier ')' .
$default reduce using rule 8 (Stmt)
State 33
12 Stmt: '(' CodeLabel ')' .
$default reduce using rule 12 (Stmt)
State 34
9 Stmt: '(' Insn ')' .
$default reduce using rule 9 (Stmt)
State 35
10 Stmt: '(' JumpInsn ')' .
$default reduce using rule 10 (Stmt)
State 36
11 Stmt: '(' Call ')' .
$default reduce using rule 11 (Stmt)
State 37
13 Note: T_Note T_IntConstant T_IntConstant . T_IntConstant T_IntConstant
14 | T_Note T_IntConstant T_IntConstant . T_IntConstant
T_IntConstant shift, and go to state 43
State 38
21 Insn: T_Insn T_IntConstant T_IntConstant . T_IntConstant T_IntConstant '(' MainCmd ')' T_StringConstant ':' T_IntConstant Integer '(' T_Nil ')'
22 | T_Insn T_IntConstant T_IntConstant . T_IntConstant T_IntConstant '(' MainCmd ')' T_StringConstant ':' T_IntConstant Integer '(' T_ExprList '(' Operand ')' '(' T_Nil ')' ')'
23 | T_Insn T_IntConstant T_IntConstant . T_IntConstant T_IntConstant '(' MainCmd ')' Integer '(' T_ExprList '(' Operand ')' '(' T_Nil ')' ')'
24 | T_Insn T_IntConstant T_IntConstant . T_IntConstant T_IntConstant '(' MainCmd ')' Integer '(' T_Nil ')'
25 | T_Insn T_IntConstant T_IntConstant . T_IntConstant T_IntConstant '(' T_ConstInt T_IntConstant ')' T_StringConstant ':' T_IntConstant Integer '(' T_Nil ')'
26 | T_Insn T_IntConstant T_IntConstant . T_IntConstant T_IntConstant '(' MainCmd ')' T_StringConstant ':' T_IntConstant Integer '(' ':' T_IntConstant '(' T_Nil ')' ')'
T_IntConstant shift, and go to state 44
State 39
133 JumpInsn: T_JumpInsn T_IntConstant T_IntConstant . T_IntConstant T_IntConstant '(' T_Set '(' T_Pc ')' '(' Dest ')' ')' T_StringConstant ':' T_IntConstant Integer '(' T_Nil ')' T_RArrow T_IntConstant
134 | T_JumpInsn T_IntConstant T_IntConstant . T_IntConstant T_IntConstant '(' T_Set '(' T_Pc ')' '(' Dest ')' ')' T_IntConstant '(' T_Nil ')' T_RArrow T_IntConstant
T_IntConstant shift, and go to state 45
State 40
156 RetCall: T_CallInsn T_IntConstant T_IntConstant . T_IntConstant T_IntConstant '(' T_Set '(' T_Reg ':' TypeInfo T_IntConstant ')' '(' T_Call '(' T_Mem ':' T_QIType '(' T_SymbolRef ':' T_DIType '(' T_StringConstant ')' ')' ')' '(' T_ConstInt Integer ')' ')' ')' T_StringConstant ':' T_IntConstant Integer '(' Junk2 ')' '(' ExprList ')'
157 NoRetCall: T_CallInsn T_IntConstant T_IntConstant . T_IntConstant T_IntConstant '(' T_Call '(' T_Mem ':' T_QIType '(' T_SymbolRef ':' T_DIType '(' T_StringConstant ')' ')' ')' '(' T_ConstInt Integer ')' ')' T_StringConstant ':' T_IntConstant Integer '(' Junk2 ')' '(' ExprList ')'
T_IntConstant shift, and go to state 46
State 41
15 Barrier: T_Barrier T_IntConstant T_IntConstant . T_IntConstant
T_IntConstant shift, and go to state 47
State 42
16 CodeLabel: T_CodeLabel T_IntConstant T_IntConstant . T_IntConstant T_IntConstant T_IntConstant '(' T_Nil ')'
17 | T_CodeLabel T_IntConstant T_IntConstant . T_IntConstant T_IntConstant '(' T_Nil ')'
18 | T_CodeLabel T_IntConstant T_IntConstant . T_IntConstant T_IntConstant T_IntConstant '(' T_StringConstant ')'
T_IntConstant shift, and go to state 48
State 43
13 Note: T_Note T_IntConstant T_IntConstant T_IntConstant . T_IntConstant
14 | T_Note T_IntConstant T_IntConstant T_IntConstant .
T_IntConstant shift, and go to state 49
$default reduce using rule 14 (Note)
State 44
21 Insn: T_Insn T_IntConstant T_IntConstant T_IntConstant . T_IntConstant '(' MainCmd ')' T_StringConstant ':' T_IntConstant Integer '(' T_Nil ')'
22 | T_Insn T_IntConstant T_IntConstant T_IntConstant . T_IntConstant '(' MainCmd ')' T_StringConstant ':' T_IntConstant Integer '(' T_ExprList '(' Operand ')' '(' T_Nil ')' ')'
23 | T_Insn T_IntConstant T_IntConstant T_IntConstant . T_IntConstant '(' MainCmd ')' Integer '(' T_ExprList '(' Operand ')' '(' T_Nil ')' ')'
24 | T_Insn T_IntConstant T_IntConstant T_IntConstant . T_IntConstant '(' MainCmd ')' Integer '(' T_Nil ')'
25 | T_Insn T_IntConstant T_IntConstant T_IntConstant . T_IntConstant '(' T_ConstInt T_IntConstant ')' T_StringConstant ':' T_IntConstant Integer '(' T_Nil ')'
26 | T_Insn T_IntConstant T_IntConstant T_IntConstant . T_IntConstant '(' MainCmd ')' T_StringConstant ':' T_IntConstant Integer '(' ':' T_IntConstant '(' T_Nil ')' ')'
T_IntConstant shift, and go to state 50
State 45
133 JumpInsn: T_JumpInsn T_IntConstant T_IntConstant T_IntConstant . T_IntConstant '(' T_Set '(' T_Pc ')' '(' Dest ')' ')' T_StringConstant ':' T_IntConstant Integer '(' T_Nil ')' T_RArrow T_IntConstant
134 | T_JumpInsn T_IntConstant T_IntConstant T_IntConstant . T_IntConstant '(' T_Set '(' T_Pc ')' '(' Dest ')' ')' T_IntConstant '(' T_Nil ')' T_RArrow T_IntConstant
T_IntConstant shift, and go to state 51
State 46
156 RetCall: T_CallInsn T_IntConstant T_IntConstant T_IntConstant . T_IntConstant '(' T_Set '(' T_Reg ':' TypeInfo T_IntConstant ')' '(' T_Call '(' T_Mem ':' T_QIType '(' T_SymbolRef ':' T_DIType '(' T_StringConstant ')' ')' ')' '(' T_ConstInt Integer ')' ')' ')' T_StringConstant ':' T_IntConstant Integer '(' Junk2 ')' '(' ExprList ')'
157 NoRetCall: T_CallInsn T_IntConstant T_IntConstant T_IntConstant . T_IntConstant '(' T_Call '(' T_Mem ':' T_QIType '(' T_SymbolRef ':' T_DIType '(' T_StringConstant ')' ')' ')' '(' T_ConstInt Integer ')' ')' T_StringConstant ':' T_IntConstant Integer '(' Junk2 ')' '(' ExprList ')'
T_IntConstant shift, and go to state 52
State 47
15 Barrier: T_Barrier T_IntConstant T_IntConstant T_IntConstant .
$default reduce using rule 15 (Barrier)
State 48
16 CodeLabel: T_CodeLabel T_IntConstant T_IntConstant T_IntConstant . T_IntConstant T_IntConstant '(' T_Nil ')'
17 | T_CodeLabel T_IntConstant T_IntConstant T_IntConstant . T_IntConstant '(' T_Nil ')'
18 | T_CodeLabel T_IntConstant T_IntConstant T_IntConstant . T_IntConstant T_IntConstant '(' T_StringConstant ')'
T_IntConstant shift, and go to state 53
State 49
13 Note: T_Note T_IntConstant T_IntConstant T_IntConstant T_IntConstant .
$default reduce using rule 13 (Note)
State 50
21 Insn: T_Insn T_IntConstant T_IntConstant T_IntConstant T_IntConstant . '(' MainCmd ')' T_StringConstant ':' T_IntConstant Integer '(' T_Nil ')'
22 | T_Insn T_IntConstant T_IntConstant T_IntConstant T_IntConstant . '(' MainCmd ')' T_StringConstant ':' T_IntConstant Integer '(' T_ExprList '(' Operand ')' '(' T_Nil ')' ')'
23 | T_Insn T_IntConstant T_IntConstant T_IntConstant T_IntConstant . '(' MainCmd ')' Integer '(' T_ExprList '(' Operand ')' '(' T_Nil ')' ')'
24 | T_Insn T_IntConstant T_IntConstant T_IntConstant T_IntConstant . '(' MainCmd ')' Integer '(' T_Nil ')'
25 | T_Insn T_IntConstant T_IntConstant T_IntConstant T_IntConstant . '(' T_ConstInt T_IntConstant ')' T_StringConstant ':' T_IntConstant Integer '(' T_Nil ')'
26 | T_Insn T_IntConstant T_IntConstant T_IntConstant T_IntConstant . '(' MainCmd ')' T_StringConstant ':' T_IntConstant Integer '(' ':' T_IntConstant '(' T_Nil ')' ')'
'(' shift, and go to state 54
State 51
133 JumpInsn: T_JumpInsn T_IntConstant T_IntConstant T_IntConstant T_IntConstant . '(' T_Set '(' T_Pc ')' '(' Dest ')' ')' T_StringConstant ':' T_IntConstant Integer '(' T_Nil ')' T_RArrow T_IntConstant
134 | T_JumpInsn T_IntConstant T_IntConstant T_IntConstant T_IntConstant . '(' T_Set '(' T_Pc ')' '(' Dest ')' ')' T_IntConstant '(' T_Nil ')' T_RArrow T_IntConstant
'(' shift, and go to state 55
State 52
156 RetCall: T_CallInsn T_IntConstant T_IntConstant T_IntConstant T_IntConstant . '(' T_Set '(' T_Reg ':' TypeInfo T_IntConstant ')' '(' T_Call '(' T_Mem ':' T_QIType '(' T_SymbolRef ':' T_DIType '(' T_StringConstant ')' ')' ')' '(' T_ConstInt Integer ')' ')' ')' T_StringConstant ':' T_IntConstant Integer '(' Junk2 ')' '(' ExprList ')'
157 NoRetCall: T_CallInsn T_IntConstant T_IntConstant T_IntConstant T_IntConstant . '(' T_Call '(' T_Mem ':' T_QIType '(' T_SymbolRef ':' T_DIType '(' T_StringConstant ')' ')' ')' '(' T_ConstInt Integer ')' ')' T_StringConstant ':' T_IntConstant Integer '(' Junk2 ')' '(' ExprList ')'
'(' shift, and go to state 56
State 53
16 CodeLabel: T_CodeLabel T_IntConstant T_IntConstant T_IntConstant T_IntConstant . T_IntConstant '(' T_Nil ')'
17 | T_CodeLabel T_IntConstant T_IntConstant T_IntConstant T_IntConstant . '(' T_Nil ')'
18 | T_CodeLabel T_IntConstant T_IntConstant T_IntConstant T_IntConstant . T_IntConstant '(' T_StringConstant ')'
T_IntConstant shift, and go to state 57
'(' shift, and go to state 58
State 54
21 Insn: T_Insn T_IntConstant T_IntConstant T_IntConstant T_IntConstant '(' . MainCmd ')' T_StringConstant ':' T_IntConstant Integer '(' T_Nil ')'
22 | T_Insn T_IntConstant T_IntConstant T_IntConstant T_IntConstant '(' . MainCmd ')' T_StringConstant ':' T_IntConstant Integer '(' T_ExprList '(' Operand ')' '(' T_Nil ')' ')'
23 | T_Insn T_IntConstant T_IntConstant T_IntConstant T_IntConstant '(' . MainCmd ')' Integer '(' T_ExprList '(' Operand ')' '(' T_Nil ')' ')'
24 | T_Insn T_IntConstant T_IntConstant T_IntConstant T_IntConstant '(' . MainCmd ')' Integer '(' T_Nil ')'
25 | T_Insn T_IntConstant T_IntConstant T_IntConstant T_IntConstant '(' . T_ConstInt T_IntConstant ')' T_StringConstant ':' T_IntConstant Integer '(' T_Nil ')'
26 | T_Insn T_IntConstant T_IntConstant T_IntConstant T_IntConstant '(' . MainCmd ')' T_StringConstant ':' T_IntConstant Integer '(' ':' T_IntConstant '(' T_Nil ')' ')'
T_Parallel shift, and go to state 59
T_Clobber shift, and go to state 60
T_Set shift, and go to state 61
T_Use shift, and go to state 62
T_ConstInt shift, and go to state 63
MainCmd go to state 64
PlainCmd go to state 65
ParallelCmd go to state 66
ClobberCmd go to state 67
SetCmd go to state 68
UseCmd go to state 69
State 55
133 JumpInsn: T_JumpInsn T_IntConstant T_IntConstant T_IntConstant T_IntConstant '(' . T_Set '(' T_Pc ')' '(' Dest ')' ')' T_StringConstant ':' T_IntConstant Integer '(' T_Nil ')' T_RArrow T_IntConstant
134 | T_JumpInsn T_IntConstant T_IntConstant T_IntConstant T_IntConstant '(' . T_Set '(' T_Pc ')' '(' Dest ')' ')' T_IntConstant '(' T_Nil ')' T_RArrow T_IntConstant
T_Set shift, and go to state 70
State 56
156 RetCall: T_CallInsn T_IntConstant T_IntConstant T_IntConstant T_IntConstant '(' . T_Set '(' T_Reg ':' TypeInfo T_IntConstant ')' '(' T_Call '(' T_Mem ':' T_QIType '(' T_SymbolRef ':' T_DIType '(' T_StringConstant ')' ')' ')' '(' T_ConstInt Integer ')' ')' ')' T_StringConstant ':' T_IntConstant Integer '(' Junk2 ')' '(' ExprList ')'
157 NoRetCall: T_CallInsn T_IntConstant T_IntConstant T_IntConstant T_IntConstant '(' . T_Call '(' T_Mem ':' T_QIType '(' T_SymbolRef ':' T_DIType '(' T_StringConstant ')' ')' ')' '(' T_ConstInt Integer ')' ')' T_StringConstant ':' T_IntConstant Integer '(' Junk2 ')' '(' ExprList ')'
T_Call shift, and go to state 71
T_Set shift, and go to state 72
State 57
16 CodeLabel: T_CodeLabel T_IntConstant T_IntConstant T_IntConstant T_IntConstant T_IntConstant . '(' T_Nil ')'
18 | T_CodeLabel T_IntConstant T_IntConstant T_IntConstant T_IntConstant T_IntConstant . '(' T_StringConstant ')'
'(' shift, and go to state 73
State 58
17 CodeLabel: T_CodeLabel T_IntConstant T_IntConstant T_IntConstant T_IntConstant '(' . T_Nil ')'
T_Nil shift, and go to state 74
State 59
32 ParallelCmd: T_Parallel . Cmds T_EndPara
'(' shift, and go to state 75
Cmds go to state 76
State 60
35 ClobberCmd: T_Clobber . '(' T_Reg ':' TypeInfo T_IntConstant ')'
36 | T_Clobber . '(' T_Reg Flags ':' TypeInfo T_IntConstant ')'