1 /* A Bison parser, made by GNU Bison 2.1. */
3 /* Skeleton parser for Yacc-like parsing with Bison,
4 Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2, or (at your option)
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 Boston, MA 02110-1301, USA. */
21 /* As a special exception, when this file is copied by Bison into a
22 Bison output file, you may use that output file without restriction.
23 This special exception was added by the Free Software Foundation
24 in version 1.24 of Bison. */
26 /* Written by Richard Stallman by simplifying the original so called
27 ``semantic'' parser. */
29 /* All symbols defined below should begin with yy or YY, to avoid
30 infringing on user name space. This should be done even for local
31 variables, as they might otherwise be expanded by user macros.
32 There are some unavoidable exceptions within include files to
33 define necessary library symbols; they are noted "INFRINGES ON
34 USER NAME SPACE" below. */
36 /* Identify Bison output. */
40 #define YYBISON_VERSION "2.1"
43 #define YYSKELETON_NAME "yacc.c"
48 /* Using locations. */
49 #define YYLSP_NEEDED 0
51 /* Substitute the variable and function names. */
52 #define yyparse Upgradeparse
53 #define yylex Upgradelex
54 #define yyerror Upgradeerror
55 #define yylval Upgradelval
56 #define yychar Upgradechar
57 #define yydebug Upgradedebug
58 #define yynerrs Upgradenerrs
64 /* Put the tokens into the symbol table, so that GDB and other debuggers
88 ZEROINITIALIZER = 279,
135 X86_STDCALLCC_TOK = 326,
136 X86_FASTCALLCC_TOK = 327,
200 EXTRACTELEMENT = 391,
233 #define ESINT64VAL 272
234 #define EUINT64VAL 273
240 #define ZEROINITIALIZER 279
246 #define STRINGCONSTANT 285
247 #define IMPLEMENTATION 286
257 #define DOTDOTDOT 296
262 #define DLLIMPORT 301
263 #define DLLEXPORT 302
264 #define EXTERN_WEAK 303
265 #define APPENDING 304
271 #define POINTERSIZE 310
275 #define UNINITIALIZED 314
281 #define SIDEEFFECT 320
284 #define CSRETCC_TOK 323
285 #define FASTCC_TOK 324
286 #define COLDCC_TOK 325
287 #define X86_STDCALLCC_TOK 326
288 #define X86_FASTCALLCC_TOK 327
289 #define DATALAYOUT 328
296 #define UNREACHABLE 335
344 #define GETELEMENTPTR 383
352 #define EXTRACTELEMENT 391
353 #define INSERTELEMENT 392
354 #define SHUFFLEVECTOR 393
372 /* Copy the first part of user declarations. */
373 #line 14 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
375 #include "ParserInternals.h"
376 #include <llvm/ADT/StringExtras.h>
383 #define YYERROR_VERBOSE 1
384 #define YYINCLUDED_STDLIB_H
387 int yylex(); // declaration" of xxx warnings.
391 static std::string CurFilename;
392 static std::ostream *O = 0;
393 std::istream* LexInput = 0;
394 unsigned SizeOfPointer = 32;
395 static uint64_t unique = 1;
397 typedef std::vector<TypeInfo> TypeVector;
398 static TypeVector EnumeratedTypes;
399 typedef std::map<std::string,TypeInfo> TypeMap;
400 static TypeMap NamedTypes;
401 static TypeMap Globals;
403 void destroy(ValueList* VL) {
404 while (!VL->empty()) {
405 ValueInfo& VI = VL->back();
412 void UpgradeAssembly(const std::string &infile, std::istream& in,
413 std::ostream &out, bool debug)
416 CurFilename = infile;
422 std::cerr << "Parse failed.\n";
427 static void ResolveType(TypeInfo& Ty) {
428 if (Ty.oldTy == UnresolvedTy) {
429 TypeMap::iterator I = NamedTypes.find(*Ty.newTy);
430 if (I != NamedTypes.end()) {
431 Ty.oldTy = I->second.oldTy;
432 Ty.elemTy = I->second.elemTy;
434 std::string msg("Can't resolve type: ");
436 yyerror(msg.c_str());
438 } else if (Ty.oldTy == NumericTy) {
439 unsigned ref = atoi(&((Ty.newTy->c_str())[1])); // Skip the '\\'
440 if (ref < EnumeratedTypes.size()) {
441 Ty.oldTy = EnumeratedTypes[ref].oldTy;
442 Ty.elemTy = EnumeratedTypes[ref].elemTy;
444 std::string msg("Can't resolve type: ");
446 yyerror(msg.c_str());
449 // otherwise its already resolved.
452 static const char* getCastOpcode(
453 std::string& Source, const TypeInfo& SrcTy, const TypeInfo& DstTy)
455 unsigned SrcBits = SrcTy.getBitWidth();
456 unsigned DstBits = DstTy.getBitWidth();
457 const char* opcode = "bitcast";
458 // Run through the possibilities ...
459 if (DstTy.isIntegral()) { // Casting to integral
460 if (SrcTy.isIntegral()) { // Casting from integral
461 if (DstBits < SrcBits)
463 else if (DstBits > SrcBits) { // its an extension
464 if (SrcTy.isSigned())
465 opcode ="sext"; // signed -> SEXT
467 opcode = "zext"; // unsigned -> ZEXT
469 opcode = "bitcast"; // Same size, No-op cast
471 } else if (SrcTy.isFloatingPoint()) { // Casting from floating pt
472 if (DstTy.isSigned())
473 opcode = "fptosi"; // FP -> sint
475 opcode = "fptoui"; // FP -> uint
476 } else if (SrcTy.isPacked()) {
477 assert(DstBits == SrcTy.getBitWidth() &&
478 "Casting packed to integer of different width");
479 opcode = "bitcast"; // same size, no-op cast
481 assert(SrcTy.isPointer() &&
482 "Casting from a value that is not first-class type");
483 opcode = "ptrtoint"; // ptr -> int
485 } else if (DstTy.isFloatingPoint()) { // Casting to floating pt
486 if (SrcTy.isIntegral()) { // Casting from integral
487 if (SrcTy.isSigned())
488 opcode = "sitofp"; // sint -> FP
490 opcode = "uitofp"; // uint -> FP
491 } else if (SrcTy.isFloatingPoint()) { // Casting from floating pt
492 if (DstBits < SrcBits) {
493 opcode = "fptrunc"; // FP -> smaller FP
494 } else if (DstBits > SrcBits) {
495 opcode = "fpext"; // FP -> larger FP
497 opcode ="bitcast"; // same size, no-op cast
499 } else if (SrcTy.isPacked()) {
500 assert(DstBits == SrcTy.getBitWidth() &&
501 "Casting packed to floating point of different width");
502 opcode = "bitcast"; // same size, no-op cast
504 assert(0 && "Casting pointer or non-first class to float");
506 } else if (DstTy.isPacked()) {
507 if (SrcTy.isPacked()) {
508 assert(DstTy.getBitWidth() == SrcTy.getBitWidth() &&
509 "Casting packed to packed of different widths");
510 opcode = "bitcast"; // packed -> packed
511 } else if (DstTy.getBitWidth() == SrcBits) {
512 opcode = "bitcast"; // float/int -> packed
514 assert(!"Illegal cast to packed (wrong type or size)");
516 } else if (DstTy.isPointer()) {
517 if (SrcTy.isPointer()) {
518 opcode = "bitcast"; // ptr -> ptr
519 } else if (SrcTy.isIntegral()) {
520 opcode = "inttoptr"; // int -> ptr
522 assert(!"Casting invalid type to pointer");
525 assert(!"Casting to type that is not first-class");
530 static std::string getCastUpgrade(
531 const std::string& Src, TypeInfo& SrcTy, TypeInfo& DstTy, bool isConst)
534 std::string Source = Src;
535 if (SrcTy.isFloatingPoint() && DstTy.isPointer()) {
536 // fp -> ptr cast is no longer supported but we must upgrade this
537 // by doing a double cast: fp -> int -> ptr
539 Source = "ulong fptoui(" + Source + " to ulong)";
541 *O << " %cast_upgrade" << unique << " = fptoui " << Source
543 Source = "ulong %cast_upgrade" + llvm::utostr(unique);
545 // Update the SrcTy for the getCastOpcode call below
547 SrcTy.newTy = new std::string("ulong");
548 SrcTy.oldTy = ULongTy;
549 } else if (DstTy.oldTy == BoolTy && SrcTy.oldTy != BoolTy) {
550 // cast ptr %x to bool was previously defined as setne ptr %x, null
551 // The ptrtoint semantic is to truncate, not compare so we must retain
552 // the original intent by replace the cast with a setne
553 const char* comparator = SrcTy.isPointer() ? ", null" :
554 (SrcTy.isFloatingPoint() ? ", 0.0" : ", 0");
555 const char* compareOp = SrcTy.isFloatingPoint() ? "fcmp one " : "icmp ne ";
557 Result = "(" + Source + comparator + ")";
558 Result = compareOp + Result;
560 Result = compareOp + Source + comparator;
561 return Result; // skip cast processing below
565 std::string Opcode(getCastOpcode(Source, SrcTy, DstTy));
567 Result += Opcode + "( " + Source + " to " + *DstTy.newTy + ")";
569 Result += Opcode + " " + Source + " to " + *DstTy.newTy;
573 const char* getDivRemOpcode(const std::string& opcode, const TypeInfo& TI) {
574 const char* op = opcode.c_str();
578 Ty.oldTy = Ty.getElementType();
580 if (Ty.isFloatingPoint())
582 else if (Ty.isUnsigned())
584 else if (Ty.isSigned())
587 yyerror("Invalid type for div instruction");
588 else if (opcode == "rem")
589 if (Ty.isFloatingPoint())
591 else if (Ty.isUnsigned())
593 else if (Ty.isSigned())
596 yyerror("Invalid type for rem instruction");
601 getCompareOp(const std::string& setcc, const TypeInfo& TI) {
602 assert(setcc.length() == 5);
605 assert(cc1 == 'e' || cc1 == 'n' || cc1 == 'l' || cc1 == 'g');
606 assert(cc2 == 'q' || cc2 == 'e' || cc2 == 'e' || cc2 == 't');
607 std::string result("xcmp xxx");
610 if (TI.isFloatingPoint()) {
614 result[5] = 'u'; // NE maps to unordered
616 result[5] = 'o'; // everything else maps to ordered
617 } else if (TI.isIntegral() || TI.isPointer()) {
619 if ((cc1 == 'e' && cc2 == 'q') || (cc1 == 'n' && cc2 == 'e'))
621 else if (TI.isSigned())
623 else if (TI.isUnsigned() || TI.isPointer() || TI.isBool())
626 yyerror("Invalid integral type for setcc");
633 /* Enabling traces. */
638 /* Enabling verbose error messages. */
639 #ifdef YYERROR_VERBOSE
640 # undef YYERROR_VERBOSE
641 # define YYERROR_VERBOSE 1
643 # define YYERROR_VERBOSE 0
646 /* Enabling the token table. */
647 #ifndef YYTOKEN_TABLE
648 # define YYTOKEN_TABLE 0
651 #if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
652 #line 275 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
653 typedef union YYSTYPE {
660 /* Line 196 of yacc.c. */
661 #line 662 "UpgradeParser.tab.c"
662 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
663 # define YYSTYPE_IS_DECLARED 1
664 # define YYSTYPE_IS_TRIVIAL 1
669 /* Copy the second part of user declarations. */
672 /* Line 219 of yacc.c. */
673 #line 674 "UpgradeParser.tab.c"
675 #if ! defined (YYSIZE_T) && defined (__SIZE_TYPE__)
676 # define YYSIZE_T __SIZE_TYPE__
678 #if ! defined (YYSIZE_T) && defined (size_t)
679 # define YYSIZE_T size_t
681 #if ! defined (YYSIZE_T) && (defined (__STDC__) || defined (__cplusplus))
682 # include <stddef.h> /* INFRINGES ON USER NAME SPACE */
683 # define YYSIZE_T size_t
685 #if ! defined (YYSIZE_T)
686 # define YYSIZE_T unsigned int
692 # include <libintl.h> /* INFRINGES ON USER NAME SPACE */
693 # define YY_(msgid) dgettext ("bison-runtime", msgid)
697 # define YY_(msgid) msgid
701 #if ! defined (yyoverflow) || YYERROR_VERBOSE
703 /* The parser invokes alloca or malloc; define the necessary symbols. */
705 # ifdef YYSTACK_USE_ALLOCA
706 # if YYSTACK_USE_ALLOCA
708 # define YYSTACK_ALLOC __builtin_alloca
710 # define YYSTACK_ALLOC alloca
711 # if defined (__STDC__) || defined (__cplusplus)
712 # include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
713 # define YYINCLUDED_STDLIB_H
719 # ifdef YYSTACK_ALLOC
720 /* Pacify GCC's `empty if-body' warning. */
721 # define YYSTACK_FREE(Ptr) do { /* empty */; } while (0)
722 # ifndef YYSTACK_ALLOC_MAXIMUM
723 /* The OS might guarantee only one guard page at the bottom of the stack,
724 and a page size can be as small as 4096 bytes. So we cannot safely
725 invoke alloca (N) if N exceeds 4096. Use a slightly smaller number
726 to allow for a few compiler-allocated temporary stack slots. */
727 # define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2005 */
730 # define YYSTACK_ALLOC YYMALLOC
731 # define YYSTACK_FREE YYFREE
732 # ifndef YYSTACK_ALLOC_MAXIMUM
733 # define YYSTACK_ALLOC_MAXIMUM ((YYSIZE_T) -1)
739 # define YYMALLOC malloc
740 # if (! defined (malloc) && ! defined (YYINCLUDED_STDLIB_H) \
741 && (defined (__STDC__) || defined (__cplusplus)))
742 void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */
747 # if (! defined (free) && ! defined (YYINCLUDED_STDLIB_H) \
748 && (defined (__STDC__) || defined (__cplusplus)))
749 void free (void *); /* INFRINGES ON USER NAME SPACE */
756 #endif /* ! defined (yyoverflow) || YYERROR_VERBOSE */
759 #if (! defined (yyoverflow) \
760 && (! defined (__cplusplus) \
761 || (defined (YYSTYPE_IS_TRIVIAL) && YYSTYPE_IS_TRIVIAL)))
763 /* A type that is properly aligned for any stack member. */
770 /* The size of the maximum gap between one aligned stack and the next. */
771 # define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1)
773 /* The size of an array large to enough to hold all stacks, each with
775 # define YYSTACK_BYTES(N) \
776 ((N) * (sizeof (short int) + sizeof (YYSTYPE)) \
777 + YYSTACK_GAP_MAXIMUM)
779 /* Copy COUNT objects from FROM to TO. The source and destination do
782 # if defined (__GNUC__) && 1 < __GNUC__
783 # define YYCOPY(To, From, Count) \
784 __builtin_memcpy (To, From, (Count) * sizeof (*(From)))
786 # define YYCOPY(To, From, Count) \
790 for (yyi = 0; yyi < (Count); yyi++) \
791 (To)[yyi] = (From)[yyi]; \
797 /* Relocate STACK from its old location to the new one. The
798 local variables YYSIZE and YYSTACKSIZE give the old and new number of
799 elements in the stack, and YYPTR gives the new location of the
800 stack. Advance YYPTR to a properly aligned location for the next
802 # define YYSTACK_RELOCATE(Stack) \
805 YYSIZE_T yynewbytes; \
806 YYCOPY (&yyptr->Stack, Stack, yysize); \
807 Stack = &yyptr->Stack; \
808 yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
809 yyptr += yynewbytes / sizeof (*yyptr); \
815 #if defined (__STDC__) || defined (__cplusplus)
816 typedef signed char yysigned_char;
818 typedef short int yysigned_char;
821 /* YYFINAL -- State number of the termination state. */
823 /* YYLAST -- Last index in YYTABLE. */
826 /* YYNTOKENS -- Number of terminals. */
827 #define YYNTOKENS 166
828 /* YYNNTS -- Number of nonterminals. */
830 /* YYNRULES -- Number of rules. */
832 /* YYNRULES -- Number of states. */
833 #define YYNSTATES 590
835 /* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */
837 #define YYMAXUTOK 406
839 #define YYTRANSLATE(YYX) \
840 ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
842 /* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */
843 static const unsigned char yytranslate[] =
845 0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
846 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
847 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
848 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
849 155, 156, 164, 2, 153, 2, 2, 2, 2, 2,
850 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
851 160, 152, 161, 2, 2, 2, 2, 2, 2, 2,
852 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
853 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
854 2, 157, 154, 159, 2, 2, 2, 2, 2, 165,
855 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
856 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
857 158, 2, 2, 162, 2, 163, 2, 2, 2, 2,
858 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
859 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
860 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
861 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
862 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
863 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
864 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
865 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
866 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
867 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
868 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
869 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
870 2, 2, 2, 2, 2, 2, 1, 2, 3, 4,
871 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
872 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
873 25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
874 35, 36, 37, 38, 39, 40, 41, 42, 43, 44,
875 45, 46, 47, 48, 49, 50, 51, 52, 53, 54,
876 55, 56, 57, 58, 59, 60, 61, 62, 63, 64,
877 65, 66, 67, 68, 69, 70, 71, 72, 73, 74,
878 75, 76, 77, 78, 79, 80, 81, 82, 83, 84,
879 85, 86, 87, 88, 89, 90, 91, 92, 93, 94,
880 95, 96, 97, 98, 99, 100, 101, 102, 103, 104,
881 105, 106, 107, 108, 109, 110, 111, 112, 113, 114,
882 115, 116, 117, 118, 119, 120, 121, 122, 123, 124,
883 125, 126, 127, 128, 129, 130, 131, 132, 133, 134,
884 135, 136, 137, 138, 139, 140, 141, 142, 143, 144,
885 145, 146, 147, 148, 149, 150, 151
889 /* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
891 static const unsigned short int yyprhs[] =
893 0, 0, 3, 5, 7, 9, 11, 13, 15, 17,
894 19, 21, 23, 25, 27, 29, 31, 33, 35, 37,
895 39, 41, 43, 45, 47, 49, 51, 53, 55, 57,
896 59, 61, 63, 65, 67, 69, 71, 73, 75, 77,
897 79, 81, 83, 85, 87, 89, 91, 93, 95, 97,
898 99, 101, 103, 105, 107, 109, 111, 113, 115, 117,
899 119, 121, 123, 125, 127, 129, 131, 133, 135, 137,
900 139, 141, 143, 145, 147, 149, 151, 153, 155, 157,
901 159, 161, 164, 165, 167, 169, 171, 173, 175, 177,
902 179, 180, 182, 184, 186, 188, 190, 192, 195, 196,
903 197, 200, 201, 205, 208, 209, 211, 212, 216, 218,
904 221, 223, 225, 227, 229, 231, 233, 235, 237, 239,
905 241, 243, 245, 247, 249, 251, 253, 255, 257, 259,
906 261, 264, 269, 275, 281, 285, 288, 294, 299, 302,
907 304, 308, 310, 314, 316, 317, 322, 326, 330, 335,
908 340, 344, 347, 350, 353, 356, 359, 362, 365, 368,
909 371, 374, 381, 387, 396, 403, 410, 417, 425, 433,
910 440, 447, 456, 465, 469, 471, 473, 475, 477, 480,
911 483, 488, 491, 493, 495, 497, 502, 505, 510, 517,
912 524, 531, 538, 542, 547, 548, 550, 552, 554, 558,
913 562, 566, 570, 574, 578, 580, 581, 583, 585, 587,
914 588, 591, 595, 597, 599, 603, 605, 606, 615, 617,
915 619, 623, 628, 630, 632, 636, 637, 639, 641, 645,
916 646, 648, 650, 652, 654, 656, 658, 660, 662, 664,
917 668, 670, 676, 678, 680, 682, 684, 687, 690, 692,
918 695, 698, 699, 701, 703, 705, 708, 711, 715, 725,
919 735, 744, 759, 761, 763, 770, 776, 779, 786, 794,
920 796, 800, 802, 803, 806, 808, 814, 820, 826, 833,
921 840, 843, 848, 853, 860, 865, 870, 877, 884, 887,
922 895, 897, 900, 901, 903, 904, 908, 915, 919, 926,
926 /* YYRHS -- A `-1'-separated list of the rules' RHS. */
927 static const short int yyrhs[] =
929 200, 0, -1, 19, -1, 20, -1, 17, -1, 18,
930 -1, 81, -1, 82, -1, 83, -1, 84, -1, 85,
931 -1, 86, -1, 87, -1, 88, -1, 89, -1, 90,
932 -1, 91, -1, 92, -1, 93, -1, 94, -1, 95,
933 -1, 96, -1, 97, -1, 98, -1, 99, -1, 100,
934 -1, 103, -1, 104, -1, 105, -1, 106, -1, 107,
935 -1, 108, -1, 119, -1, 120, -1, 121, -1, 122,
936 -1, 109, -1, 110, -1, 111, -1, 112, -1, 113,
937 -1, 114, -1, 115, -1, 116, -1, 117, -1, 118,
938 -1, 119, -1, 120, -1, 121, -1, 122, -1, 25,
939 -1, 26, -1, 131, -1, 132, -1, 133, -1, 134,
940 -1, 140, -1, 141, -1, 142, -1, 143, -1, 144,
941 -1, 145, -1, 146, -1, 147, -1, 148, -1, 149,
942 -1, 150, -1, 151, -1, 139, -1, 11, -1, 9,
943 -1, 7, -1, 5, -1, 12, -1, 10, -1, 8,
944 -1, 6, -1, 176, -1, 177, -1, 13, -1, 14,
945 -1, 209, 152, -1, -1, 43, -1, 44, -1, 45,
946 -1, 49, -1, 46, -1, 47, -1, 48, -1, -1,
947 67, -1, 68, -1, 69, -1, 70, -1, 71, -1,
948 72, -1, 66, 18, -1, -1, -1, 58, 18, -1,
949 -1, 153, 58, 18, -1, 38, 30, -1, -1, 185,
950 -1, -1, 153, 188, 187, -1, 185, -1, 58, 18,
951 -1, 191, -1, 3, -1, 193, -1, 3, -1, 193,
952 -1, 4, -1, 5, -1, 6, -1, 7, -1, 8,
953 -1, 9, -1, 10, -1, 11, -1, 12, -1, 13,
954 -1, 14, -1, 15, -1, 16, -1, 223, -1, 192,
955 -1, 154, 18, -1, 190, 155, 195, 156, -1, 157,
956 18, 158, 193, 159, -1, 160, 18, 158, 193, 161,
957 -1, 162, 194, 163, -1, 162, 163, -1, 160, 162,
958 194, 163, 161, -1, 160, 162, 163, 161, -1, 193,
959 164, -1, 193, -1, 194, 153, 193, -1, 194, -1,
960 194, 153, 41, -1, 41, -1, -1, 191, 157, 198,
961 159, -1, 191, 157, 159, -1, 191, 165, 30, -1,
962 191, 160, 198, 161, -1, 191, 162, 198, 163, -1,
963 191, 162, 163, -1, 191, 22, -1, 191, 23, -1,
964 191, 223, -1, 191, 197, -1, 191, 24, -1, 176,
965 168, -1, 177, 18, -1, 4, 25, -1, 4, 26,
966 -1, 179, 21, -1, 175, 155, 196, 40, 191, 156,
967 -1, 128, 155, 196, 238, 156, -1, 130, 155, 196,
968 153, 196, 153, 196, 156, -1, 169, 155, 196, 153,
969 196, 156, -1, 170, 155, 196, 153, 196, 156, -1,
970 171, 155, 196, 153, 196, 156, -1, 101, 172, 155,
971 196, 153, 196, 156, -1, 102, 173, 155, 196, 153,
972 196, 156, -1, 174, 155, 196, 153, 196, 156, -1,
973 136, 155, 196, 153, 196, 156, -1, 137, 155, 196,
974 153, 196, 153, 196, 156, -1, 138, 155, 196, 153,
975 196, 153, 196, 156, -1, 198, 153, 196, -1, 196,
976 -1, 36, -1, 37, -1, 201, -1, 201, 218, -1,
977 201, 220, -1, 201, 64, 63, 204, -1, 201, 31,
978 -1, 203, -1, 51, -1, 59, -1, 203, 180, 27,
979 189, -1, 203, 220, -1, 203, 64, 63, 204, -1,
980 203, 180, 181, 199, 196, 187, -1, 203, 180, 202,
981 199, 191, 187, -1, 203, 180, 46, 199, 191, 187,
982 -1, 203, 180, 48, 199, 191, 187, -1, 203, 52,
983 206, -1, 203, 60, 152, 207, -1, -1, 30, -1,
984 57, -1, 56, -1, 54, 152, 205, -1, 55, 152,
985 18, -1, 53, 152, 30, -1, 73, 152, 30, -1,
986 157, 208, 159, -1, 208, 153, 30, -1, 30, -1,
987 -1, 28, -1, 30, -1, 209, -1, -1, 191, 210,
988 -1, 212, 153, 211, -1, 211, -1, 212, -1, 212,
989 153, 41, -1, 41, -1, -1, 182, 189, 209, 155,
990 213, 156, 186, 183, -1, 32, -1, 162, -1, 181,
991 214, 215, -1, 35, 181, 214, 215, -1, 33, -1,
992 163, -1, 216, 226, 217, -1, -1, 46, -1, 48,
993 -1, 34, 219, 214, -1, -1, 65, -1, 17, -1,
994 18, -1, 21, -1, 25, -1, 26, -1, 22, -1,
995 23, -1, 24, -1, 160, 198, 161, -1, 197, -1,
996 63, 221, 30, 153, 30, -1, 167, -1, 209, -1,
997 223, -1, 222, -1, 191, 224, -1, 226, 227, -1,
998 227, -1, 228, 230, -1, 228, 232, -1, -1, 29,
999 -1, 79, -1, 78, -1, 74, 225, -1, 74, 3,
1000 -1, 75, 15, 224, -1, 75, 4, 224, 153, 15,
1001 224, 153, 15, 224, -1, 76, 178, 224, 153, 15,
1002 224, 157, 231, 159, -1, 76, 178, 224, 153, 15,
1003 224, 157, 159, -1, 180, 77, 182, 189, 224, 155,
1004 235, 156, 40, 15, 224, 229, 15, 224, -1, 229,
1005 -1, 80, -1, 231, 178, 222, 153, 15, 224, -1,
1006 178, 222, 153, 15, 224, -1, 180, 237, -1, 191,
1007 157, 224, 153, 224, 159, -1, 233, 153, 157, 224,
1008 153, 224, 159, -1, 225, -1, 234, 153, 225, -1,
1009 234, -1, -1, 62, 61, -1, 61, -1, 169, 191,
1010 224, 153, 224, -1, 170, 191, 224, 153, 224, -1,
1011 171, 191, 224, 153, 224, -1, 101, 172, 191, 224,
1012 153, 224, -1, 102, 173, 191, 224, 153, 224, -1,
1013 50, 225, -1, 174, 225, 153, 225, -1, 175, 225,
1014 40, 191, -1, 130, 225, 153, 225, 153, 225, -1,
1015 135, 225, 153, 191, -1, 136, 225, 153, 225, -1,
1016 137, 225, 153, 225, 153, 225, -1, 138, 225, 153,
1017 225, 153, 225, -1, 129, 233, -1, 236, 182, 189,
1018 224, 155, 235, 156, -1, 240, -1, 153, 234, -1,
1019 -1, 39, -1, -1, 123, 191, 184, -1, 123, 191,
1020 153, 10, 224, 184, -1, 124, 191, 184, -1, 124,
1021 191, 153, 10, 224, 184, -1, 125, 225, -1, 239,
1022 126, 191, 224, -1, 239, 127, 225, 153, 191, 224,
1023 -1, 128, 191, 224, 238, -1
1026 /* YYRLINE[YYN] -- source line where rule number YYN was defined. */
1027 static const unsigned short int yyrline[] =
1029 0, 338, 338, 338, 339, 339, 343, 343, 343, 343,
1030 343, 343, 343, 344, 344, 344, 344, 345, 345, 345,
1031 346, 346, 346, 346, 346, 346, 347, 347, 347, 347,
1032 347, 347, 347, 347, 347, 347, 348, 348, 348, 348,
1033 348, 348, 348, 348, 348, 348, 349, 349, 349, 349,
1034 349, 349, 350, 350, 350, 350, 351, 351, 351, 351,
1035 351, 351, 351, 352, 352, 352, 352, 352, 352, 357,
1036 357, 357, 357, 358, 358, 358, 358, 359, 359, 360,
1037 360, 363, 366, 371, 371, 371, 371, 371, 371, 372,
1038 373, 376, 376, 376, 376, 376, 377, 378, 383, 388,
1039 389, 392, 393, 401, 407, 408, 411, 412, 421, 422,
1040 435, 435, 436, 436, 437, 441, 441, 441, 441, 441,
1041 441, 441, 442, 442, 442, 442, 442, 444, 448, 452,
1042 455, 460, 466, 474, 482, 488, 492, 498, 502, 513,
1043 516, 524, 525, 530, 533, 543, 549, 554, 560, 566,
1044 572, 577, 583, 589, 595, 601, 607, 613, 619, 625,
1045 631, 639, 653, 665, 670, 676, 681, 687, 692, 697,
1046 705, 710, 715, 725, 730, 735, 735, 745, 750, 753,
1047 758, 762, 766, 768, 768, 771, 783, 788, 793, 802,
1048 811, 820, 829, 834, 839, 844, 846, 846, 849, 854,
1049 861, 866, 873, 880, 885, 886, 894, 894, 895, 895,
1050 897, 904, 908, 912, 915, 920, 923, 925, 945, 946,
1051 949, 958, 969, 970, 972, 980, 981, 982, 986, 999,
1052 1000, 1003, 1003, 1003, 1003, 1003, 1003, 1003, 1004, 1005,
1053 1010, 1011, 1020, 1020, 1024, 1030, 1041, 1047, 1050, 1058,
1054 1062, 1067, 1070, 1076, 1076, 1078, 1083, 1088, 1093, 1101,
1055 1108, 1114, 1134, 1139, 1145, 1150, 1158, 1167, 1174, 1182,
1056 1186, 1193, 1194, 1198, 1203, 1206, 1212, 1217, 1223, 1228,
1057 1233, 1238, 1246, 1260, 1265, 1270, 1275, 1280, 1285, 1290,
1058 1307, 1312, 1313, 1317, 1318, 1321, 1328, 1335, 1342, 1349,
1063 #if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE
1064 /* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
1065 First, the terminals, then, starting at YYNTOKENS, nonterminals. */
1066 static const char *const yytname[] =
1068 "$end", "error", "$undefined", "VOID", "BOOL", "SBYTE", "UBYTE",
1069 "SHORT", "USHORT", "INT", "UINT", "LONG", "ULONG", "FLOAT", "DOUBLE",
1070 "LABEL", "OPAQUE", "ESINT64VAL", "EUINT64VAL", "SINTVAL", "UINTVAL",
1071 "FPVAL", "NULL_TOK", "UNDEF", "ZEROINITIALIZER", "TRUETOK", "FALSETOK",
1072 "TYPE", "VAR_ID", "LABELSTR", "STRINGCONSTANT", "IMPLEMENTATION",
1073 "BEGINTOK", "ENDTOK", "DECLARE", "DEFINE", "GLOBAL", "CONSTANT",
1074 "SECTION", "VOLATILE", "TO", "DOTDOTDOT", "CONST", "INTERNAL",
1075 "LINKONCE", "WEAK", "DLLIMPORT", "DLLEXPORT", "EXTERN_WEAK", "APPENDING",
1076 "NOT", "EXTERNAL", "TARGET", "TRIPLE", "ENDIAN", "POINTERSIZE", "LITTLE",
1077 "BIG", "ALIGN", "UNINITIALIZED", "DEPLIBS", "CALL", "TAIL", "ASM_TOK",
1078 "MODULE", "SIDEEFFECT", "CC_TOK", "CCC_TOK", "CSRETCC_TOK", "FASTCC_TOK",
1079 "COLDCC_TOK", "X86_STDCALLCC_TOK", "X86_FASTCALLCC_TOK", "DATALAYOUT",
1080 "RET", "BR", "SWITCH", "INVOKE", "EXCEPT", "UNWIND", "UNREACHABLE",
1081 "ADD", "SUB", "MUL", "DIV", "UDIV", "SDIV", "FDIV", "REM", "UREM",
1082 "SREM", "FREM", "AND", "OR", "XOR", "SETLE", "SETGE", "SETLT", "SETGT",
1083 "SETEQ", "SETNE", "ICMP", "FCMP", "EQ", "NE", "SLT", "SGT", "SLE", "SGE",
1084 "OEQ", "ONE", "OLT", "OGT", "OLE", "OGE", "ORD", "UNO", "UEQ", "UNE",
1085 "ULT", "UGT", "ULE", "UGE", "MALLOC", "ALLOCA", "FREE", "LOAD", "STORE",
1086 "GETELEMENTPTR", "PHI_TOK", "SELECT", "SHL", "SHR", "ASHR", "LSHR",
1087 "VAARG", "EXTRACTELEMENT", "INSERTELEMENT", "SHUFFLEVECTOR", "CAST",
1088 "TRUNC", "ZEXT", "SEXT", "FPTRUNC", "FPEXT", "FPTOUI", "FPTOSI",
1089 "UITOFP", "SITOFP", "PTRTOINT", "INTTOPTR", "BITCAST", "'='", "','",
1090 "'\\\\'", "'('", "')'", "'['", "'x'", "']'", "'<'", "'>'", "'{'", "'}'",
1091 "'*'", "'c'", "$accept", "IntVal", "EInt64Val", "ArithmeticOps",
1092 "LogicalOps", "SetCondOps", "IPredicates", "FPredicates", "ShiftOps",
1093 "CastOps", "SIntType", "UIntType", "IntType", "FPType", "OptAssign",
1094 "OptLinkage", "OptCallingConv", "OptAlign", "OptCAlign", "SectionString",
1095 "OptSection", "GlobalVarAttributes", "GlobalVarAttribute", "TypesV",
1096 "UpRTypesV", "Types", "PrimType", "UpRTypes", "TypeListI",
1097 "ArgTypeListI", "ConstVal", "ConstExpr", "ConstVector", "GlobalType",
1098 "Module", "DefinitionList", "External", "ConstPool", "AsmBlock",
1099 "BigOrLittle", "TargetDefinition", "LibrariesDefinition", "LibList",
1100 "Name", "OptName", "ArgVal", "ArgListH", "ArgList", "FunctionHeaderH",
1101 "BEGIN", "FunctionHeader", "END", "Function", "FnDeclareLinkage",
1102 "FunctionProto", "OptSideEffect", "ConstValueRef", "SymbolicValueRef",
1103 "ValueRef", "ResolvedVal", "BasicBlockList", "BasicBlock",
1104 "InstructionList", "Unwind", "BBTerminatorInst", "JumpTable", "Inst",
1105 "PHIList", "ValueRefList", "ValueRefListE", "OptTailCall", "InstVal",
1106 "IndexList", "OptVolatile", "MemoryInst", 0
1111 /* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to
1113 static const unsigned short int yytoknum[] =
1115 0, 256, 257, 258, 259, 260, 261, 262, 263, 264,
1116 265, 266, 267, 268, 269, 270, 271, 272, 273, 274,
1117 275, 276, 277, 278, 279, 280, 281, 282, 283, 284,
1118 285, 286, 287, 288, 289, 290, 291, 292, 293, 294,
1119 295, 296, 297, 298, 299, 300, 301, 302, 303, 304,
1120 305, 306, 307, 308, 309, 310, 311, 312, 313, 314,
1121 315, 316, 317, 318, 319, 320, 321, 322, 323, 324,
1122 325, 326, 327, 328, 329, 330, 331, 332, 333, 334,
1123 335, 336, 337, 338, 339, 340, 341, 342, 343, 344,
1124 345, 346, 347, 348, 349, 350, 351, 352, 353, 354,
1125 355, 356, 357, 358, 359, 360, 361, 362, 363, 364,
1126 365, 366, 367, 368, 369, 370, 371, 372, 373, 374,
1127 375, 376, 377, 378, 379, 380, 381, 382, 383, 384,
1128 385, 386, 387, 388, 389, 390, 391, 392, 393, 394,
1129 395, 396, 397, 398, 399, 400, 401, 402, 403, 404,
1130 405, 406, 61, 44, 92, 40, 41, 91, 120, 93,
1131 60, 62, 123, 125, 42, 99
1135 /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
1136 static const unsigned char yyr1[] =
1138 0, 166, 167, 167, 168, 168, 169, 169, 169, 169,
1139 169, 169, 169, 169, 169, 169, 169, 170, 170, 170,
1140 171, 171, 171, 171, 171, 171, 172, 172, 172, 172,
1141 172, 172, 172, 172, 172, 172, 173, 173, 173, 173,
1142 173, 173, 173, 173, 173, 173, 173, 173, 173, 173,
1143 173, 173, 174, 174, 174, 174, 175, 175, 175, 175,
1144 175, 175, 175, 175, 175, 175, 175, 175, 175, 176,
1145 176, 176, 176, 177, 177, 177, 177, 178, 178, 179,
1146 179, 180, 180, 181, 181, 181, 181, 181, 181, 181,
1147 181, 182, 182, 182, 182, 182, 182, 182, 182, 183,
1148 183, 184, 184, 185, 186, 186, 187, 187, 188, 188,
1149 189, 189, 190, 190, 191, 192, 192, 192, 192, 192,
1150 192, 192, 192, 192, 192, 192, 192, 193, 193, 193,
1151 193, 193, 193, 193, 193, 193, 193, 193, 193, 194,
1152 194, 195, 195, 195, 195, 196, 196, 196, 196, 196,
1153 196, 196, 196, 196, 196, 196, 196, 196, 196, 196,
1154 196, 197, 197, 197, 197, 197, 197, 197, 197, 197,
1155 197, 197, 197, 198, 198, 199, 199, 200, 201, 201,
1156 201, 201, 201, 202, 202, 203, 203, 203, 203, 203,
1157 203, 203, 203, 203, 203, 204, 205, 205, 206, 206,
1158 206, 206, 207, 208, 208, 208, 209, 209, 210, 210,
1159 211, 212, 212, 213, 213, 213, 213, 214, 215, 215,
1160 216, 216, 217, 217, 218, 219, 219, 219, 220, 221,
1161 221, 222, 222, 222, 222, 222, 222, 222, 222, 222,
1162 222, 222, 223, 223, 224, 224, 225, 226, 226, 227,
1163 228, 228, 228, 229, 229, 230, 230, 230, 230, 230,
1164 230, 230, 230, 230, 231, 231, 232, 233, 233, 234,
1165 234, 235, 235, 236, 236, 237, 237, 237, 237, 237,
1166 237, 237, 237, 237, 237, 237, 237, 237, 237, 237,
1167 237, 238, 238, 239, 239, 240, 240, 240, 240, 240,
1171 /* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */
1172 static const unsigned char yyr2[] =
1174 0, 2, 1, 1, 1, 1, 1, 1, 1, 1,
1175 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1176 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1177 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1178 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1179 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1180 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1181 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1182 1, 2, 0, 1, 1, 1, 1, 1, 1, 1,
1183 0, 1, 1, 1, 1, 1, 1, 2, 0, 0,
1184 2, 0, 3, 2, 0, 1, 0, 3, 1, 2,
1185 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1186 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1187 2, 4, 5, 5, 3, 2, 5, 4, 2, 1,
1188 3, 1, 3, 1, 0, 4, 3, 3, 4, 4,
1189 3, 2, 2, 2, 2, 2, 2, 2, 2, 2,
1190 2, 6, 5, 8, 6, 6, 6, 7, 7, 6,
1191 6, 8, 8, 3, 1, 1, 1, 1, 2, 2,
1192 4, 2, 1, 1, 1, 4, 2, 4, 6, 6,
1193 6, 6, 3, 4, 0, 1, 1, 1, 3, 3,
1194 3, 3, 3, 3, 1, 0, 1, 1, 1, 0,
1195 2, 3, 1, 1, 3, 1, 0, 8, 1, 1,
1196 3, 4, 1, 1, 3, 0, 1, 1, 3, 0,
1197 1, 1, 1, 1, 1, 1, 1, 1, 1, 3,
1198 1, 5, 1, 1, 1, 1, 2, 2, 1, 2,
1199 2, 0, 1, 1, 1, 2, 2, 3, 9, 9,
1200 8, 14, 1, 1, 6, 5, 2, 6, 7, 1,
1201 3, 1, 0, 2, 1, 5, 5, 5, 6, 6,
1202 2, 4, 4, 6, 4, 4, 6, 6, 2, 7,
1203 1, 2, 0, 1, 0, 3, 6, 3, 6, 2,
1207 /* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state
1208 STATE-NUM when YYTABLE doesn't specify something else to do. Zero
1209 means the default is an error. */
1210 static const unsigned short int yydefact[] =
1212 194, 0, 90, 182, 1, 181, 225, 90, 83, 84,
1213 85, 87, 88, 89, 86, 0, 98, 251, 178, 179,
1214 206, 207, 0, 0, 0, 90, 0, 186, 226, 227,
1215 98, 98, 0, 0, 91, 92, 93, 94, 95, 96,
1216 0, 0, 252, 251, 248, 82, 0, 0, 0, 0,
1217 192, 0, 0, 0, 0, 0, 183, 184, 0, 0,
1218 81, 228, 0, 195, 180, 97, 111, 115, 116, 117,
1219 118, 119, 120, 121, 122, 123, 124, 125, 126, 127,
1220 2, 3, 0, 0, 0, 0, 242, 0, 0, 110,
1221 129, 114, 243, 128, 218, 219, 220, 222, 223, 224,
1222 247, 0, 0, 0, 254, 253, 263, 294, 262, 249,
1223 250, 0, 0, 0, 0, 205, 193, 187, 185, 175,
1224 176, 0, 0, 0, 0, 221, 130, 0, 0, 0,
1225 113, 135, 139, 0, 0, 144, 138, 256, 0, 255,
1226 0, 0, 72, 76, 71, 75, 70, 74, 69, 73,
1227 77, 78, 0, 293, 0, 274, 0, 98, 6, 7,
1228 8, 9, 10, 11, 12, 13, 14, 15, 16, 17,
1229 18, 19, 20, 21, 22, 23, 24, 25, 0, 0,
1230 0, 0, 0, 0, 0, 0, 52, 53, 54, 55,
1231 0, 0, 0, 0, 68, 56, 57, 58, 59, 60,
1232 61, 62, 63, 64, 65, 66, 67, 0, 0, 0,
1233 0, 0, 98, 266, 0, 290, 200, 197, 196, 198,
1234 199, 201, 204, 0, 106, 106, 115, 116, 117, 118,
1235 119, 120, 121, 122, 123, 124, 125, 0, 0, 0,
1236 0, 106, 106, 0, 0, 0, 0, 0, 134, 216,
1237 143, 141, 0, 231, 232, 233, 236, 237, 238, 234,
1238 235, 229, 0, 0, 0, 0, 0, 0, 0, 0,
1239 0, 0, 0, 0, 0, 240, 245, 244, 246, 0,
1240 257, 0, 280, 273, 0, 26, 27, 28, 29, 30,
1241 31, 32, 33, 34, 35, 0, 50, 51, 36, 37,
1242 38, 39, 40, 41, 42, 43, 44, 45, 46, 47,
1243 48, 49, 0, 101, 101, 299, 0, 0, 288, 0,
1244 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
1245 0, 0, 0, 202, 0, 190, 191, 158, 159, 4,
1246 5, 156, 157, 160, 151, 152, 155, 0, 0, 0,
1247 0, 154, 153, 188, 189, 112, 112, 137, 0, 140,
1248 215, 209, 212, 213, 0, 0, 131, 230, 0, 0,
1249 0, 0, 0, 0, 0, 0, 174, 0, 0, 0,
1250 0, 0, 0, 0, 0, 0, 0, 0, 0, 295,
1251 0, 297, 292, 0, 0, 0, 0, 0, 0, 0,
1252 0, 0, 0, 0, 0, 0, 0, 0, 203, 0,
1253 0, 108, 106, 146, 0, 0, 150, 0, 147, 132,
1254 133, 136, 208, 210, 0, 104, 142, 0, 0, 0,
1255 292, 0, 0, 0, 0, 0, 239, 0, 0, 0,
1256 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
1257 0, 302, 0, 0, 0, 284, 285, 0, 0, 0,
1258 0, 0, 281, 282, 0, 300, 0, 103, 109, 107,
1259 145, 148, 149, 214, 211, 105, 99, 0, 0, 0,
1260 0, 0, 0, 0, 0, 173, 0, 0, 0, 0,
1261 0, 0, 0, 272, 0, 0, 101, 102, 101, 269,
1262 291, 0, 0, 0, 0, 0, 275, 276, 277, 272,
1263 0, 0, 217, 241, 0, 0, 162, 0, 0, 0,
1264 0, 0, 0, 0, 0, 0, 0, 0, 271, 0,
1265 278, 279, 0, 296, 298, 0, 0, 0, 283, 286,
1266 287, 0, 301, 100, 0, 0, 0, 170, 0, 0,
1267 164, 165, 166, 169, 161, 0, 260, 0, 0, 0,
1268 270, 267, 0, 289, 167, 168, 0, 0, 0, 258,
1269 0, 259, 0, 0, 268, 163, 171, 172, 0, 0,
1270 0, 0, 0, 0, 265, 0, 0, 264, 0, 261
1273 /* YYDEFGOTO[NTERM-NUM]. */
1274 static const short int yydefgoto[] =
1276 -1, 86, 341, 270, 271, 272, 295, 312, 273, 274,
1277 237, 238, 152, 239, 25, 16, 40, 512, 389, 411,
1278 476, 335, 412, 87, 88, 240, 90, 91, 133, 252,
1279 376, 275, 377, 121, 1, 2, 59, 3, 64, 219,
1280 50, 116, 223, 92, 423, 362, 363, 364, 41, 96,
1281 17, 99, 18, 30, 19, 368, 276, 93, 278, 499,
1282 43, 44, 45, 108, 109, 558, 110, 318, 528, 529,
1283 212, 213, 451, 214, 215
1286 /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
1288 #define YYPACT_NINF -543
1289 static const short int yypact[] =
1291 -543, 41, 25, 215, -543, -543, 82, 277, -543, -543,
1292 -543, -543, -543, -543, -543, -10, 300, 62, -543, -543,
1293 -543, -543, 22, -95, 57, 78, 30, -543, -543, -543,
1294 300, 300, 156, 170, -543, -543, -543, -543, -543, -543,
1295 887, -26, -543, -17, -543, 37, 39, 42, 46, 48,
1296 -543, 77, 156, 887, 43, 43, -543, -543, 43, 43,
1297 -543, -543, -26, -543, -543, -543, 53, -543, -543, -543,
1298 -543, -543, -543, -543, -543, -543, -543, -543, -543, -543,
1299 -543, -543, 188, 196, -8, 561, -543, 153, 81, -543,
1300 -543, -70, -543, -543, -543, -543, -543, -543, -543, -543,
1301 -543, 924, 13, 307, -543, -543, -543, 1403, -543, -543,
1302 -543, 207, 101, 220, 210, 211, -543, -543, -543, -543,
1303 -543, 969, 969, 1008, 969, -543, -543, 88, 89, 603,
1304 -543, -543, -70, -75, 93, 676, -543, 53, 1201, -543,
1305 1201, 1201, -543, -543, -543, -543, -543, -543, -543, -543,
1306 -543, -543, 1201, -543, 969, -543, 189, 300, -543, -543,
1307 -543, -543, -543, -543, -543, -543, -543, -543, -543, -543,
1308 -543, -543, -543, -543, -543, -543, -543, -543, 58, 109,
1309 969, 969, 969, 969, 969, 969, -543, -543, -543, -543,
1310 969, 969, 969, 969, -543, -543, -543, -543, -543, -543,
1311 -543, -543, -543, -543, -543, -543, -543, 969, 969, 969,
1312 969, 969, 300, -543, -19, -543, -543, -543, -543, -543,
1313 -543, -543, -543, -133, 100, 100, 149, 167, 236, 179,
1314 238, 185, 239, 187, 247, 248, 249, 193, 250, 252,
1315 1052, 100, 100, 969, 969, 110, -66, 969, -543, 723,
1316 -543, 128, 127, -543, -543, -543, -543, -543, -543, -543,
1317 -543, 221, 58, 109, 130, 132, 133, 137, 138, 1008,
1318 140, 143, 144, 145, 146, -543, -543, -543, -543, 151,
1319 -543, 155, -543, -543, 887, -543, -543, -543, -543, -543,
1320 -543, -543, -543, -543, -543, 969, -543, -543, -543, -543,
1321 -543, -543, -543, -543, -543, -543, -543, -543, -543, -543,
1322 -543, -543, 969, 157, 174, -543, 1201, 152, 175, 176,
1323 177, 178, 182, 183, 1201, 1201, 1201, 184, 262, 887,
1324 969, 969, 302, -543, 45, -543, -543, -543, -543, -543,
1325 -543, -543, -543, -543, -543, -543, -543, 764, 1008, 647,
1326 309, -543, -543, -543, -543, -4, -5, -543, 180, -70,
1327 -543, 153, -543, 190, 186, 809, -543, -543, 315, 191,
1328 192, 1008, 1008, 1008, 1008, 1008, -543, -134, 1008, 1008,
1329 1008, 1008, 1008, 333, 334, 1201, 1201, 1201, -3, -543,
1330 8, -543, 200, 1201, 197, 969, 969, 969, 969, 969,
1331 208, 209, 223, 969, 969, 1201, 1201, 224, -543, 348,
1332 361, -543, 100, -543, -21, -57, -543, -61, -543, -543,
1333 -543, -543, -543, -543, 848, 342, -543, 228, 1008, 1008,
1334 200, 229, 230, 234, 235, 1008, -543, 237, 240, 241,
1335 242, 349, 1201, 1201, 243, 244, 246, 1201, 373, 1201,
1336 969, -543, 251, 1201, 253, -543, -543, 254, 255, 1201,
1337 1201, 1201, -543, -543, 245, -543, 969, -543, -543, -543,
1338 -543, -543, -543, -543, -543, -543, 338, 372, 256, 261,
1339 259, 1008, 1008, 1008, 1008, -543, 1008, 1008, 1008, 1008,
1340 969, 263, 260, 969, 1201, 1201, 265, -543, 265, -543,
1341 266, 1201, 267, 969, 969, 969, -543, -543, -543, 969,
1342 1201, 385, -543, -543, 1008, 1008, -543, 268, 273, 269,
1343 270, 274, 275, 276, 281, 282, 390, 28, 266, 283,
1344 -543, -543, 366, -543, -543, 969, 285, 1201, -543, -543,
1345 -543, 284, -543, -543, 289, 291, 1008, -543, 1008, 1008,
1346 -543, -543, -543, -543, -543, 1201, -543, 1290, 40, 393,
1347 -543, -543, 290, -543, -543, -543, 292, 295, 296, -543,
1348 288, -543, 1290, 442, -543, -543, -543, -543, 444, 308,
1349 1201, 1201, 445, 134, -543, 1201, 447, -543, 1201, -543
1352 /* YYPGOTO[NTERM-NUM]. */
1353 static const short int yypgoto[] =
1355 -543, -543, -543, 359, 360, 363, 206, 212, 367, 370,
1356 -102, -100, -504, -543, 428, 17, -149, -543, -303, 55,
1357 -543, -220, -543, -49, -543, -40, -543, -71, 4, -543,
1358 159, 257, -200, 51, -543, -543, -543, -543, 426, -543,
1359 -543, -543, -543, -1, -543, 59, -543, -543, 202, 419,
1360 -543, -543, -543, -543, 479, -543, -542, -109, 49, -92,
1361 -543, 441, -543, -98, -543, -543, -543, -543, 36, -22,
1362 -543, -543, 60, -543, -543
1365 /* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If
1366 positive, shift that token. If negative, reduce the rule which
1367 number is the opposite. If zero, do what YYDEFACT says.
1368 If YYTABLE_NINF, syntax error. */
1369 #define YYTABLE_NINF -178
1370 static const short int yytable[] =
1372 89, 150, 26, 151, 118, 336, 94, 447, 284, 139,
1373 128, 391, 42, 89, 132, 570, 97, 140, 449, 435,
1374 332, 353, 354, 557, 31, -177, 333, 436, 141, 277,
1375 579, 277, 277, 142, 143, 144, 145, 146, 147, 148,
1376 149, 4, 58, 277, 26, 142, 143, 144, 145, 146,
1377 147, 148, 149, 32, 572, 448, 5, 51, 132, 6,
1378 7, 138, 282, 329, 132, 20, 448, 21, 8, 9,
1379 10, 11, 12, 13, 14, 46, 47, 48, 247, 119,
1380 120, 224, 225, 409, 242, -112, 134, 247, 248, 15,
1381 315, 42, 435, 319, 136, 49, 435, 358, 320, 321,
1382 322, 323, 472, 410, 471, 53, 122, 330, 331, 123,
1383 124, 101, 102, 103, 138, 104, 105, 106, 327, 328,
1384 52, 8, 9, 10, 54, 12, 55, 14, 28, 56,
1385 29, 352, 435, 246, 296, 297, 95, 57, 470, 251,
1386 313, 314, 138, 316, 317, 138, 98, 414, 415, 417,
1387 138, 138, 138, 138, 129, 419, 420, 217, 218, 136,
1388 136, 285, 286, 287, 288, 289, 290, 324, 325, 326,
1389 138, 138, 355, 356, 337, 338, 359, 291, 292, 293,
1390 294, 20, 60, 21, -72, -72, 63, 556, 65, 279,
1391 280, 111, 469, 533, 112, 534, -71, -71, 113, 571,
1392 114, 281, -70, -70, -69, -69, 126, 277, -113, 361,
1393 339, 340, 104, 105, 127, 277, 277, 277, 298, 299,
1394 300, 301, 302, 303, 304, 305, 306, 307, 308, 309,
1395 310, 311, 61, 62, 115, 385, 135, 216, 220, 407,
1396 221, 222, -82, 20, 89, 21, 243, 244, 249, 6,
1397 283, -82, -82, 334, -76, 386, -75, -74, -82, -82,
1398 -82, -82, -82, -82, -82, -73, -82, 22, 342, -79,
1399 -80, 357, 387, 343, -82, 23, 277, 277, 277, 24,
1400 405, 365, 241, 366, 277, 371, 367, 372, 373, 89,
1401 406, 138, 374, 375, 359, 378, 277, 277, 379, 380,
1402 381, 382, 404, 454, 383, 456, 457, 458, 384, 393,
1403 388, 462, 142, 143, 144, 145, 146, 147, 148, 149,
1404 8, 9, 10, 11, 12, 13, 14, 390, 394, 395,
1405 396, 397, 408, 277, 277, 398, 399, 403, 277, 418,
1406 277, 421, 425, 424, 277, 427, 428, 429, 442, 443,
1407 277, 277, 277, 450, 453, 138, 455, 138, 138, 138,
1408 422, 459, 460, 138, 463, 392, 33, 34, 35, 36,
1409 37, 38, 39, 400, 401, 402, 461, 466, 467, 468,
1410 409, 477, 481, 482, 361, 277, 277, 483, 484, 490,
1411 486, 497, 277, 487, 488, 489, 511, 494, 493, 495,
1412 509, 277, 513, 543, 501, 555, 503, 504, 505, 514,
1413 138, 538, 539, 540, 515, 516, 526, 527, 532, 535,
1414 537, 546, 548, 549, 448, 150, 510, 151, 277, 547,
1415 550, 551, 552, 573, 444, 445, 446, 553, 554, 559,
1416 563, 578, 452, 560, 561, 564, 277, 565, 575, 574,
1417 525, 576, 577, 138, 464, 465, 150, 580, 151, 581,
1418 585, 582, 588, 138, 138, 138, 207, 208, 369, 138,
1419 209, 277, 277, 107, 210, 370, 277, 211, 117, 277,
1420 475, 125, 27, 474, 100, 586, 500, 541, 0, 0,
1421 480, 491, 492, 0, 0, 138, 496, 351, 498, 0,
1422 0, 0, 502, 0, 0, 0, 0, 0, 506, 507,
1423 508, 0, 0, 0, 0, 0, 0, 0, 0, 0,
1424 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
1425 430, 431, 432, 433, 434, 0, 0, 437, 438, 439,
1426 440, 441, 0, 530, 531, 0, 0, 0, 0, 0,
1427 536, 0, 0, 0, 0, 0, 0, 0, 0, 542,
1428 0, 0, 0, 0, 130, 67, 68, 69, 70, 71,
1429 72, 73, 74, 75, 76, 77, 78, 79, 0, 0,
1430 80, 81, 0, 0, 0, 0, 562, 478, 479, 20,
1431 0, 21, 0, 0, 485, 0, 0, 0, 0, 0,
1432 0, 0, 0, 0, 569, 0, 130, 67, 68, 69,
1433 70, 71, 72, 73, 74, 75, 76, 77, 78, 79,
1434 0, 0, 80, 81, 0, 0, 0, 0, 0, 583,
1435 584, 20, 0, 21, 587, 0, 0, 589, 0, 0,
1436 517, 518, 519, 520, 0, 521, 522, 523, 524, 0,
1437 130, 226, 227, 228, 229, 230, 231, 232, 233, 234,
1438 235, 236, 78, 79, 0, 0, 80, 81, 0, 0,
1439 0, 0, 0, 544, 545, 20, 0, 21, 0, 130,
1440 67, 68, 69, 70, 71, 72, 73, 74, 75, 76,
1441 77, 78, 79, 0, 0, 80, 81, 0, 0, 0,
1442 0, 0, 0, 0, 20, 566, 21, 567, 568, 0,
1443 0, 0, 0, 0, 0, 82, 0, 250, 83, 0,
1444 0, 84, 0, 85, 131, 0, 130, 67, 68, 69,
1445 70, 71, 72, 73, 74, 75, 76, 77, 78, 79,
1446 0, 0, 80, 81, 0, 0, 0, 0, 0, 0,
1447 0, 20, 0, 21, 0, 0, 0, 82, 0, 0,
1448 83, 0, 0, 84, 360, 85, 245, 130, 226, 227,
1449 228, 229, 230, 231, 232, 233, 234, 235, 236, 78,
1450 79, 0, 0, 80, 81, 0, 0, 0, 0, 0,
1451 0, 0, 20, 0, 21, 0, 0, 0, 0, 0,
1452 0, 82, 0, 0, 83, 0, 0, 84, 0, 85,
1453 416, 0, 130, 67, 68, 69, 70, 71, 72, 73,
1454 74, 75, 76, 77, 78, 79, 0, 0, 80, 81,
1455 82, 0, 0, 83, 0, 0, 84, 20, 85, 21,
1456 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
1457 426, 130, 67, 68, 69, 70, 71, 72, 73, 74,
1458 75, 76, 77, 78, 79, 0, 0, 80, 81, 0,
1459 0, 0, 0, 0, 0, 0, 20, 82, 21, 0,
1460 83, 0, 0, 84, 0, 85, 0, 0, 0, 473,
1461 66, 67, 68, 69, 70, 71, 72, 73, 74, 75,
1462 76, 77, 78, 79, 0, 0, 80, 81, 0, 0,
1463 0, 0, 0, 0, 0, 20, 0, 21, 82, 0,
1464 0, 83, 0, 413, 84, 0, 85, 137, 67, 68,
1465 69, 70, 71, 72, 73, 74, 75, 76, 77, 78,
1466 79, 0, 0, 80, 81, 0, 0, 0, 0, 0,
1467 0, 0, 20, 0, 21, 0, 0, 0, 0, 0,
1468 0, 0, 0, 82, 0, 0, 83, 0, 0, 84,
1469 0, 85, 130, 67, 68, 69, 70, 71, 72, 73,
1470 74, 75, 76, 77, 78, 79, 0, 0, 80, 81,
1471 0, 0, 0, 0, 0, 0, 0, 20, 0, 21,
1472 0, 0, 82, 0, 0, 83, 0, 0, 84, 0,
1473 85, 130, 226, 227, 228, 229, 230, 231, 232, 233,
1474 234, 235, 236, 78, 79, 0, 0, 80, 81, 0,
1475 0, 0, 0, 0, 0, 0, 20, 0, 21, 0,
1476 0, 82, 0, 0, 83, 0, 0, 84, 0, 85,
1477 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
1478 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
1479 0, 80, 81, 0, 344, 345, 346, 0, 82, 0,
1480 20, 83, 21, 0, 84, 0, 85, 0, 0, 0,
1481 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
1482 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
1483 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
1484 0, 0, 0, 82, 0, 0, 83, 0, 0, 84,
1485 0, 85, 0, 158, 159, 160, 161, 162, 163, 164,
1486 165, 166, 167, 168, 169, 170, 171, 172, 173, 174,
1487 175, 176, 177, 262, 263, 0, 0, 0, 0, 0,
1488 0, 0, 82, 0, 0, 83, 0, 0, 84, 0,
1489 85, 0, 0, 0, 0, 0, 0, 0, 0, 0,
1490 264, 0, 265, 186, 187, 188, 189, 0, 266, 267,
1491 268, 194, 195, 196, 197, 198, 199, 200, 201, 202,
1492 203, 204, 205, 206, 0, 0, 0, 0, 0, 347,
1493 0, 0, 348, 0, 349, 0, 0, 350, 253, 254,
1494 80, 81, 255, 256, 257, 258, 259, 260, 0, 20,
1495 0, 21, 0, 0, 0, 0, 0, 0, 0, 0,
1496 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
1497 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
1498 0, 0, 0, 0, 261, 0, 0, 0, 0, 0,
1499 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
1500 0, 0, 158, 159, 160, 161, 162, 163, 164, 165,
1501 166, 167, 168, 169, 170, 171, 172, 173, 174, 175,
1502 176, 177, 262, 263, 0, 0, 0, 253, 254, 0,
1503 0, 255, 256, 257, 258, 259, 260, 0, 0, 0,
1504 0, 0, 0, 0, 0, 0, 0, 0, 0, 264,
1505 0, 265, 186, 187, 188, 189, 0, 266, 267, 268,
1506 194, 195, 196, 197, 198, 199, 200, 201, 202, 203,
1507 204, 205, 206, 261, 0, 0, 0, 0, 0, 0,
1508 0, 269, 0, 0, 0, 0, 0, 0, 0, 0,
1509 0, 158, 159, 160, 161, 162, 163, 164, 165, 166,
1510 167, 168, 169, 170, 171, 172, 173, 174, 175, 176,
1511 177, 262, 263, 0, 0, 0, 0, 0, 0, 0,
1512 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
1513 0, 0, 0, 0, 0, 0, 0, 0, 264, 0,
1514 265, 186, 187, 188, 189, 0, 266, 267, 268, 194,
1515 195, 196, 197, 198, 199, 200, 201, 202, 203, 204,
1516 205, 206, 153, 0, 0, 0, 0, 0, 0, 0,
1517 269, 0, 0, 154, 0, 0, 0, 0, 0, 0,
1518 0, 0, 0, 0, 155, 156, 0, 0, 0, 0,
1519 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
1520 157, 0, 0, 0, 158, 159, 160, 161, 162, 163,
1521 164, 165, 166, 167, 168, 169, 170, 171, 172, 173,
1522 174, 175, 176, 177, 178, 179, 0, 0, 0, 0,
1523 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
1524 0, 0, 0, 0, 0, 0, 180, 181, 182, 0,
1525 0, 183, 184, 185, 186, 187, 188, 189, 190, 191,
1526 192, 193, 194, 195, 196, 197, 198, 199, 200, 201,
1527 202, 203, 204, 205, 206
1530 static const short int yycheck[] =
1532 40, 103, 3, 103, 53, 225, 32, 10, 157, 101,
1533 18, 314, 29, 53, 85, 557, 33, 4, 10, 153,
1534 153, 241, 242, 527, 7, 0, 159, 161, 15, 138,
1535 572, 140, 141, 5, 6, 7, 8, 9, 10, 11,
1536 12, 0, 25, 152, 45, 5, 6, 7, 8, 9,
1537 10, 11, 12, 63, 558, 58, 31, 152, 129, 34,
1538 35, 101, 154, 212, 135, 28, 58, 30, 43, 44,
1539 45, 46, 47, 48, 49, 53, 54, 55, 153, 36,
1540 37, 121, 122, 38, 124, 155, 87, 153, 163, 64,
1541 182, 29, 153, 185, 164, 73, 153, 163, 190, 191,
1542 192, 193, 163, 58, 161, 27, 55, 126, 127, 58,
1543 59, 74, 75, 76, 154, 78, 79, 80, 210, 211,
1544 63, 43, 44, 45, 46, 47, 48, 49, 46, 51,
1545 48, 240, 153, 129, 25, 26, 162, 59, 159, 135,
1546 180, 181, 182, 183, 184, 185, 163, 347, 348, 349,
1547 190, 191, 192, 193, 162, 159, 161, 56, 57, 164,
1548 164, 103, 104, 105, 106, 107, 108, 207, 208, 209,
1549 210, 211, 243, 244, 25, 26, 247, 119, 120, 121,
1550 122, 28, 152, 30, 17, 18, 30, 159, 18, 140,
1551 141, 152, 412, 496, 152, 498, 17, 18, 152, 159,
1552 152, 152, 17, 18, 17, 18, 18, 316, 155, 249,
1553 17, 18, 78, 79, 18, 324, 325, 326, 109, 110,
1554 111, 112, 113, 114, 115, 116, 117, 118, 119, 120,
1555 121, 122, 30, 31, 157, 284, 155, 30, 18, 331,
1556 30, 30, 27, 28, 284, 30, 158, 158, 155, 34,
1557 61, 36, 37, 153, 18, 295, 18, 18, 43, 44,
1558 45, 46, 47, 48, 49, 18, 51, 52, 18, 21,
1559 21, 161, 312, 21, 59, 60, 385, 386, 387, 64,
1560 329, 153, 123, 156, 393, 155, 65, 155, 155, 329,
1561 330, 331, 155, 155, 365, 155, 405, 406, 155, 155,
1562 155, 155, 40, 395, 153, 397, 398, 399, 153, 157,
1563 153, 403, 5, 6, 7, 8, 9, 10, 11, 12,
1564 43, 44, 45, 46, 47, 48, 49, 153, 153, 153,
1565 153, 153, 30, 442, 443, 153, 153, 153, 447, 30,
1566 449, 161, 156, 153, 453, 30, 155, 155, 15, 15,
1567 459, 460, 461, 153, 157, 395, 396, 397, 398, 399,
1568 361, 153, 153, 403, 404, 316, 66, 67, 68, 69,
1569 70, 71, 72, 324, 325, 326, 153, 153, 30, 18,
1570 38, 153, 153, 153, 424, 494, 495, 153, 153, 40,
1571 153, 18, 501, 153, 153, 153, 58, 153, 155, 153,
1572 155, 510, 30, 18, 153, 15, 153, 153, 153, 153,
1573 450, 503, 504, 505, 153, 156, 153, 157, 153, 153,
1574 153, 153, 153, 153, 58, 527, 466, 527, 537, 156,
1575 156, 156, 156, 40, 385, 386, 387, 156, 156, 156,
1576 156, 153, 393, 535, 159, 156, 555, 156, 156, 159,
1577 490, 156, 156, 493, 405, 406, 558, 15, 558, 15,
1578 15, 153, 15, 503, 504, 505, 107, 107, 262, 509,
1579 107, 580, 581, 45, 107, 263, 585, 107, 52, 588,
1580 425, 62, 3, 424, 43, 583, 450, 509, -1, -1,
1581 430, 442, 443, -1, -1, 535, 447, 240, 449, -1,
1582 -1, -1, 453, -1, -1, -1, -1, -1, 459, 460,
1583 461, -1, -1, -1, -1, -1, -1, -1, -1, -1,
1584 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
1585 371, 372, 373, 374, 375, -1, -1, 378, 379, 380,
1586 381, 382, -1, 494, 495, -1, -1, -1, -1, -1,
1587 501, -1, -1, -1, -1, -1, -1, -1, -1, 510,
1588 -1, -1, -1, -1, 3, 4, 5, 6, 7, 8,
1589 9, 10, 11, 12, 13, 14, 15, 16, -1, -1,
1590 19, 20, -1, -1, -1, -1, 537, 428, 429, 28,
1591 -1, 30, -1, -1, 435, -1, -1, -1, -1, -1,
1592 -1, -1, -1, -1, 555, -1, 3, 4, 5, 6,
1593 7, 8, 9, 10, 11, 12, 13, 14, 15, 16,
1594 -1, -1, 19, 20, -1, -1, -1, -1, -1, 580,
1595 581, 28, -1, 30, 585, -1, -1, 588, -1, -1,
1596 481, 482, 483, 484, -1, 486, 487, 488, 489, -1,
1597 3, 4, 5, 6, 7, 8, 9, 10, 11, 12,
1598 13, 14, 15, 16, -1, -1, 19, 20, -1, -1,
1599 -1, -1, -1, 514, 515, 28, -1, 30, -1, 3,
1600 4, 5, 6, 7, 8, 9, 10, 11, 12, 13,
1601 14, 15, 16, -1, -1, 19, 20, -1, -1, -1,
1602 -1, -1, -1, -1, 28, 546, 30, 548, 549, -1,
1603 -1, -1, -1, -1, -1, 154, -1, 41, 157, -1,
1604 -1, 160, -1, 162, 163, -1, 3, 4, 5, 6,
1605 7, 8, 9, 10, 11, 12, 13, 14, 15, 16,
1606 -1, -1, 19, 20, -1, -1, -1, -1, -1, -1,
1607 -1, 28, -1, 30, -1, -1, -1, 154, -1, -1,
1608 157, -1, -1, 160, 41, 162, 163, 3, 4, 5,
1609 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
1610 16, -1, -1, 19, 20, -1, -1, -1, -1, -1,
1611 -1, -1, 28, -1, 30, -1, -1, -1, -1, -1,
1612 -1, 154, -1, -1, 157, -1, -1, 160, -1, 162,
1613 163, -1, 3, 4, 5, 6, 7, 8, 9, 10,
1614 11, 12, 13, 14, 15, 16, -1, -1, 19, 20,
1615 154, -1, -1, 157, -1, -1, 160, 28, 162, 30,
1616 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
1617 41, 3, 4, 5, 6, 7, 8, 9, 10, 11,
1618 12, 13, 14, 15, 16, -1, -1, 19, 20, -1,
1619 -1, -1, -1, -1, -1, -1, 28, 154, 30, -1,
1620 157, -1, -1, 160, -1, 162, -1, -1, -1, 41,
1621 3, 4, 5, 6, 7, 8, 9, 10, 11, 12,
1622 13, 14, 15, 16, -1, -1, 19, 20, -1, -1,
1623 -1, -1, -1, -1, -1, 28, -1, 30, 154, -1,
1624 -1, 157, -1, 159, 160, -1, 162, 3, 4, 5,
1625 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
1626 16, -1, -1, 19, 20, -1, -1, -1, -1, -1,
1627 -1, -1, 28, -1, 30, -1, -1, -1, -1, -1,
1628 -1, -1, -1, 154, -1, -1, 157, -1, -1, 160,
1629 -1, 162, 3, 4, 5, 6, 7, 8, 9, 10,
1630 11, 12, 13, 14, 15, 16, -1, -1, 19, 20,
1631 -1, -1, -1, -1, -1, -1, -1, 28, -1, 30,
1632 -1, -1, 154, -1, -1, 157, -1, -1, 160, -1,
1633 162, 3, 4, 5, 6, 7, 8, 9, 10, 11,
1634 12, 13, 14, 15, 16, -1, -1, 19, 20, -1,
1635 -1, -1, -1, -1, -1, -1, 28, -1, 30, -1,
1636 -1, 154, -1, -1, 157, -1, -1, 160, -1, 162,
1637 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
1638 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
1639 -1, 19, 20, -1, 22, 23, 24, -1, 154, -1,
1640 28, 157, 30, -1, 160, -1, 162, -1, -1, -1,
1641 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
1642 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
1643 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
1644 -1, -1, -1, 154, -1, -1, 157, -1, -1, 160,
1645 -1, 162, -1, 81, 82, 83, 84, 85, 86, 87,
1646 88, 89, 90, 91, 92, 93, 94, 95, 96, 97,
1647 98, 99, 100, 101, 102, -1, -1, -1, -1, -1,
1648 -1, -1, 154, -1, -1, 157, -1, -1, 160, -1,
1649 162, -1, -1, -1, -1, -1, -1, -1, -1, -1,
1650 128, -1, 130, 131, 132, 133, 134, -1, 136, 137,
1651 138, 139, 140, 141, 142, 143, 144, 145, 146, 147,
1652 148, 149, 150, 151, -1, -1, -1, -1, -1, 157,
1653 -1, -1, 160, -1, 162, -1, -1, 165, 17, 18,
1654 19, 20, 21, 22, 23, 24, 25, 26, -1, 28,
1655 -1, 30, -1, -1, -1, -1, -1, -1, -1, -1,
1656 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
1657 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
1658 -1, -1, -1, -1, 63, -1, -1, -1, -1, -1,
1659 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
1660 -1, -1, 81, 82, 83, 84, 85, 86, 87, 88,
1661 89, 90, 91, 92, 93, 94, 95, 96, 97, 98,
1662 99, 100, 101, 102, -1, -1, -1, 17, 18, -1,
1663 -1, 21, 22, 23, 24, 25, 26, -1, -1, -1,
1664 -1, -1, -1, -1, -1, -1, -1, -1, -1, 128,
1665 -1, 130, 131, 132, 133, 134, -1, 136, 137, 138,
1666 139, 140, 141, 142, 143, 144, 145, 146, 147, 148,
1667 149, 150, 151, 63, -1, -1, -1, -1, -1, -1,
1668 -1, 160, -1, -1, -1, -1, -1, -1, -1, -1,
1669 -1, 81, 82, 83, 84, 85, 86, 87, 88, 89,
1670 90, 91, 92, 93, 94, 95, 96, 97, 98, 99,
1671 100, 101, 102, -1, -1, -1, -1, -1, -1, -1,
1672 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
1673 -1, -1, -1, -1, -1, -1, -1, -1, 128, -1,
1674 130, 131, 132, 133, 134, -1, 136, 137, 138, 139,
1675 140, 141, 142, 143, 144, 145, 146, 147, 148, 149,
1676 150, 151, 39, -1, -1, -1, -1, -1, -1, -1,
1677 160, -1, -1, 50, -1, -1, -1, -1, -1, -1,
1678 -1, -1, -1, -1, 61, 62, -1, -1, -1, -1,
1679 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
1680 77, -1, -1, -1, 81, 82, 83, 84, 85, 86,
1681 87, 88, 89, 90, 91, 92, 93, 94, 95, 96,
1682 97, 98, 99, 100, 101, 102, -1, -1, -1, -1,
1683 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
1684 -1, -1, -1, -1, -1, -1, 123, 124, 125, -1,
1685 -1, 128, 129, 130, 131, 132, 133, 134, 135, 136,
1686 137, 138, 139, 140, 141, 142, 143, 144, 145, 146,
1687 147, 148, 149, 150, 151
1690 /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
1691 symbol of state STATE-NUM. */
1692 static const unsigned char yystos[] =
1694 0, 200, 201, 203, 0, 31, 34, 35, 43, 44,
1695 45, 46, 47, 48, 49, 64, 181, 216, 218, 220,
1696 28, 30, 52, 60, 64, 180, 209, 220, 46, 48,
1697 219, 181, 63, 66, 67, 68, 69, 70, 71, 72,
1698 182, 214, 29, 226, 227, 228, 53, 54, 55, 73,
1699 206, 152, 63, 27, 46, 48, 51, 59, 181, 202,
1700 152, 214, 214, 30, 204, 18, 3, 4, 5, 6,
1701 7, 8, 9, 10, 11, 12, 13, 14, 15, 16,
1702 19, 20, 154, 157, 160, 162, 167, 189, 190, 191,
1703 192, 193, 209, 223, 32, 162, 215, 33, 163, 217,
1704 227, 74, 75, 76, 78, 79, 80, 180, 229, 230,
1705 232, 152, 152, 152, 152, 157, 207, 204, 189, 36,
1706 37, 199, 199, 199, 199, 215, 18, 18, 18, 162,
1707 3, 163, 193, 194, 209, 155, 164, 3, 191, 225,
1708 4, 15, 5, 6, 7, 8, 9, 10, 11, 12,
1709 176, 177, 178, 39, 50, 61, 62, 77, 81, 82,
1710 83, 84, 85, 86, 87, 88, 89, 90, 91, 92,
1711 93, 94, 95, 96, 97, 98, 99, 100, 101, 102,
1712 123, 124, 125, 128, 129, 130, 131, 132, 133, 134,
1713 135, 136, 137, 138, 139, 140, 141, 142, 143, 144,
1714 145, 146, 147, 148, 149, 150, 151, 169, 170, 171,
1715 174, 175, 236, 237, 239, 240, 30, 56, 57, 205,
1716 18, 30, 30, 208, 191, 191, 4, 5, 6, 7,
1717 8, 9, 10, 11, 12, 13, 14, 176, 177, 179,
1718 191, 196, 191, 158, 158, 163, 194, 153, 163, 155,
1719 41, 194, 195, 17, 18, 21, 22, 23, 24, 25,
1720 26, 63, 101, 102, 128, 130, 136, 137, 138, 160,
1721 169, 170, 171, 174, 175, 197, 222, 223, 224, 224,
1722 224, 224, 225, 61, 182, 103, 104, 105, 106, 107,
1723 108, 119, 120, 121, 122, 172, 25, 26, 109, 110,
1724 111, 112, 113, 114, 115, 116, 117, 118, 119, 120,
1725 121, 122, 173, 191, 191, 225, 191, 191, 233, 225,
1726 225, 225, 225, 225, 191, 191, 191, 225, 225, 182,
1727 126, 127, 153, 159, 153, 187, 187, 25, 26, 17,
1728 18, 168, 18, 21, 22, 23, 24, 157, 160, 162,
1729 165, 197, 223, 187, 187, 193, 193, 161, 163, 193,
1730 41, 191, 211, 212, 213, 153, 156, 65, 221, 172,
1731 173, 155, 155, 155, 155, 155, 196, 198, 155, 155,
1732 155, 155, 155, 153, 153, 189, 191, 191, 153, 184,
1733 153, 184, 224, 157, 153, 153, 153, 153, 153, 153,
1734 224, 224, 224, 153, 40, 189, 191, 225, 30, 38,
1735 58, 185, 188, 159, 198, 198, 163, 198, 30, 159,
1736 161, 161, 209, 210, 153, 156, 41, 30, 155, 155,
1737 196, 196, 196, 196, 196, 153, 161, 196, 196, 196,
1738 196, 196, 15, 15, 224, 224, 224, 10, 58, 10,
1739 153, 238, 224, 157, 225, 191, 225, 225, 225, 153,
1740 153, 153, 225, 191, 224, 224, 153, 30, 18, 187,
1741 159, 161, 163, 41, 211, 185, 186, 153, 196, 196,
1742 238, 153, 153, 153, 153, 196, 153, 153, 153, 153,
1743 40, 224, 224, 155, 153, 153, 224, 18, 224, 225,
1744 234, 153, 224, 153, 153, 153, 224, 224, 224, 155,
1745 191, 58, 183, 30, 153, 153, 156, 196, 196, 196,
1746 196, 196, 196, 196, 196, 191, 153, 157, 234, 235,
1747 224, 224, 153, 184, 184, 153, 224, 153, 225, 225,
1748 225, 235, 224, 18, 196, 196, 153, 156, 153, 153,
1749 156, 156, 156, 156, 156, 15, 159, 178, 231, 156,
1750 225, 159, 224, 156, 156, 156, 196, 196, 196, 224,
1751 222, 159, 178, 40, 159, 156, 156, 156, 153, 222,
1752 15, 15, 153, 224, 224, 15, 229, 224, 15, 224
1755 #define yyerrok (yyerrstatus = 0)
1756 #define yyclearin (yychar = YYEMPTY)
1757 #define YYEMPTY (-2)
1760 #define YYACCEPT goto yyacceptlab
1761 #define YYABORT goto yyabortlab
1762 #define YYERROR goto yyerrorlab
1765 /* Like YYERROR except do call yyerror. This remains here temporarily
1766 to ease the transition to the new meaning of YYERROR, for GCC.
1767 Once GCC version 2 has supplanted version 1, this can go. */
1769 #define YYFAIL goto yyerrlab
1771 #define YYRECOVERING() (!!yyerrstatus)
1773 #define YYBACKUP(Token, Value) \
1775 if (yychar == YYEMPTY && yylen == 1) \
1779 yytoken = YYTRANSLATE (yychar); \
1785 yyerror (YY_("syntax error: cannot back up")); \
1792 #define YYERRCODE 256
1795 /* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N].
1796 If N is 0, then set CURRENT to the empty location which ends
1797 the previous symbol: RHS[0] (always defined). */
1799 #define YYRHSLOC(Rhs, K) ((Rhs)[K])
1800 #ifndef YYLLOC_DEFAULT
1801 # define YYLLOC_DEFAULT(Current, Rhs, N) \
1805 (Current).first_line = YYRHSLOC (Rhs, 1).first_line; \
1806 (Current).first_column = YYRHSLOC (Rhs, 1).first_column; \
1807 (Current).last_line = YYRHSLOC (Rhs, N).last_line; \
1808 (Current).last_column = YYRHSLOC (Rhs, N).last_column; \
1812 (Current).first_line = (Current).last_line = \
1813 YYRHSLOC (Rhs, 0).last_line; \
1814 (Current).first_column = (Current).last_column = \
1815 YYRHSLOC (Rhs, 0).last_column; \
1821 /* YY_LOCATION_PRINT -- Print the location on the stream.
1822 This macro was not mandated originally: define only if we know
1823 we won't break user code: when these are the locations we know. */
1825 #ifndef YY_LOCATION_PRINT
1826 # if YYLTYPE_IS_TRIVIAL
1827 # define YY_LOCATION_PRINT(File, Loc) \
1828 fprintf (File, "%d.%d-%d.%d", \
1829 (Loc).first_line, (Loc).first_column, \
1830 (Loc).last_line, (Loc).last_column)
1832 # define YY_LOCATION_PRINT(File, Loc) ((void) 0)
1837 /* YYLEX -- calling `yylex' with the right arguments. */
1840 # define YYLEX yylex (YYLEX_PARAM)
1842 # define YYLEX yylex ()
1845 /* Enable debugging if requested. */
1849 # include <stdio.h> /* INFRINGES ON USER NAME SPACE */
1850 # define YYFPRINTF fprintf
1853 # define YYDPRINTF(Args) \
1859 # define YY_SYMBOL_PRINT(Title, Type, Value, Location) \
1863 YYFPRINTF (stderr, "%s ", Title); \
1864 yysymprint (stderr, \
1866 YYFPRINTF (stderr, "\n"); \
1870 /*------------------------------------------------------------------.
1871 | yy_stack_print -- Print the state stack from its BOTTOM up to its |
1873 `------------------------------------------------------------------*/
1875 #if defined (__STDC__) || defined (__cplusplus)
1877 yy_stack_print (short int *bottom, short int *top)
1880 yy_stack_print (bottom, top)
1885 YYFPRINTF (stderr, "Stack now");
1886 for (/* Nothing. */; bottom <= top; ++bottom)
1887 YYFPRINTF (stderr, " %d", *bottom);
1888 YYFPRINTF (stderr, "\n");
1891 # define YY_STACK_PRINT(Bottom, Top) \
1894 yy_stack_print ((Bottom), (Top)); \
1898 /*------------------------------------------------.
1899 | Report that the YYRULE is going to be reduced. |
1900 `------------------------------------------------*/
1902 #if defined (__STDC__) || defined (__cplusplus)
1904 yy_reduce_print (int yyrule)
1907 yy_reduce_print (yyrule)
1912 unsigned long int yylno = yyrline[yyrule];
1913 YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu), ",
1915 /* Print the symbols being reduced, and their result. */
1916 for (yyi = yyprhs[yyrule]; 0 <= yyrhs[yyi]; yyi++)
1917 YYFPRINTF (stderr, "%s ", yytname[yyrhs[yyi]]);
1918 YYFPRINTF (stderr, "-> %s\n", yytname[yyr1[yyrule]]);
1921 # define YY_REDUCE_PRINT(Rule) \
1924 yy_reduce_print (Rule); \
1927 /* Nonzero means print parse trace. It is left uninitialized so that
1928 multiple parsers can coexist. */
1930 #else /* !YYDEBUG */
1931 # define YYDPRINTF(Args)
1932 # define YY_SYMBOL_PRINT(Title, Type, Value, Location)
1933 # define YY_STACK_PRINT(Bottom, Top)
1934 # define YY_REDUCE_PRINT(Rule)
1935 #endif /* !YYDEBUG */
1938 /* YYINITDEPTH -- initial size of the parser's stacks. */
1940 # define YYINITDEPTH 200
1943 /* YYMAXDEPTH -- maximum size the stacks can grow to (effective only
1944 if the built-in stack extension method is used).
1946 Do not make this value too large; the results are undefined if
1947 YYSTACK_ALLOC_MAXIMUM < YYSTACK_BYTES (YYMAXDEPTH)
1948 evaluated with infinite-precision integer arithmetic. */
1951 # define YYMAXDEPTH 10000
1959 # if defined (__GLIBC__) && defined (_STRING_H)
1960 # define yystrlen strlen
1962 /* Return the length of YYSTR. */
1964 # if defined (__STDC__) || defined (__cplusplus)
1965 yystrlen (const char *yystr)
1971 const char *yys = yystr;
1973 while (*yys++ != '\0')
1976 return yys - yystr - 1;
1982 # if defined (__GLIBC__) && defined (_STRING_H) && defined (_GNU_SOURCE)
1983 # define yystpcpy stpcpy
1985 /* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in
1988 # if defined (__STDC__) || defined (__cplusplus)
1989 yystpcpy (char *yydest, const char *yysrc)
1991 yystpcpy (yydest, yysrc)
1997 const char *yys = yysrc;
1999 while ((*yyd++ = *yys++) != '\0')
2008 /* Copy to YYRES the contents of YYSTR after stripping away unnecessary
2009 quotes and backslashes, so that it's suitable for yyerror. The
2010 heuristic is that double-quoting is unnecessary unless the string
2011 contains an apostrophe, a comma, or backslash (other than
2012 backslash-backslash). YYSTR is taken from yytname. If YYRES is
2013 null, do not copy; instead, return the length of what the result
2016 yytnamerr (char *yyres, const char *yystr)
2021 char const *yyp = yystr;
2028 goto do_not_strip_quotes;
2032 goto do_not_strip_quotes;
2045 do_not_strip_quotes: ;
2049 return yystrlen (yystr);
2051 return yystpcpy (yyres, yystr) - yyres;
2055 #endif /* YYERROR_VERBOSE */
2060 /*--------------------------------.
2061 | Print this symbol on YYOUTPUT. |
2062 `--------------------------------*/
2064 #if defined (__STDC__) || defined (__cplusplus)
2066 yysymprint (FILE *yyoutput, int yytype, YYSTYPE *yyvaluep)
2069 yysymprint (yyoutput, yytype, yyvaluep)
2075 /* Pacify ``unused variable'' warnings. */
2078 if (yytype < YYNTOKENS)
2079 YYFPRINTF (yyoutput, "token %s (", yytname[yytype]);
2081 YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]);
2085 if (yytype < YYNTOKENS)
2086 YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
2093 YYFPRINTF (yyoutput, ")");
2096 #endif /* ! YYDEBUG */
2097 /*-----------------------------------------------.
2098 | Release the memory associated to this symbol. |
2099 `-----------------------------------------------*/
2101 #if defined (__STDC__) || defined (__cplusplus)
2103 yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep)
2106 yydestruct (yymsg, yytype, yyvaluep)
2112 /* Pacify ``unused variable'' warnings. */
2117 YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp);
2128 /* Prevent warnings from -Wmissing-prototypes. */
2130 #ifdef YYPARSE_PARAM
2131 # if defined (__STDC__) || defined (__cplusplus)
2132 int yyparse (void *YYPARSE_PARAM);
2136 #else /* ! YYPARSE_PARAM */
2137 #if defined (__STDC__) || defined (__cplusplus)
2142 #endif /* ! YYPARSE_PARAM */
2146 /* The look-ahead symbol. */
2149 /* The semantic value of the look-ahead symbol. */
2152 /* Number of syntax errors so far. */
2161 #ifdef YYPARSE_PARAM
2162 # if defined (__STDC__) || defined (__cplusplus)
2163 int yyparse (void *YYPARSE_PARAM)
2165 int yyparse (YYPARSE_PARAM)
2166 void *YYPARSE_PARAM;
2168 #else /* ! YYPARSE_PARAM */
2169 #if defined (__STDC__) || defined (__cplusplus)
2183 /* Number of tokens to shift before error messages enabled. */
2185 /* Look-ahead token as an internal (translated) token number. */
2188 /* Three stacks and their tools:
2189 `yyss': related to states,
2190 `yyvs': related to semantic values,
2191 `yyls': related to locations.
2193 Refer to the stacks thru separate pointers, to allow yyoverflow
2194 to reallocate them elsewhere. */
2196 /* The state stack. */
2197 short int yyssa[YYINITDEPTH];
2198 short int *yyss = yyssa;
2201 /* The semantic value stack. */
2202 YYSTYPE yyvsa[YYINITDEPTH];
2203 YYSTYPE *yyvs = yyvsa;
2208 #define YYPOPSTACK (yyvsp--, yyssp--)
2210 YYSIZE_T yystacksize = YYINITDEPTH;
2212 /* The variables used to return semantic value and location from the
2217 /* When reducing, the number of symbols on the RHS of the reduced
2221 YYDPRINTF ((stderr, "Starting parse\n"));
2226 yychar = YYEMPTY; /* Cause a token to be read. */
2228 /* Initialize stack pointers.
2229 Waste one element of value and location stack
2230 so that they stay on the same level as the state stack.
2231 The wasted elements are never initialized. */
2238 /*------------------------------------------------------------.
2239 | yynewstate -- Push a new state, which is found in yystate. |
2240 `------------------------------------------------------------*/
2242 /* In all cases, when you get here, the value and location stacks
2243 have just been pushed. so pushing a state here evens the stacks.
2250 if (yyss + yystacksize - 1 <= yyssp)
2252 /* Get the current used size of the three stacks, in elements. */
2253 YYSIZE_T yysize = yyssp - yyss + 1;
2257 /* Give user a chance to reallocate the stack. Use copies of
2258 these so that the &'s don't force the real ones into
2260 YYSTYPE *yyvs1 = yyvs;
2261 short int *yyss1 = yyss;
2264 /* Each stack pointer address is followed by the size of the
2265 data in use in that stack, in bytes. This used to be a
2266 conditional around just the two extra args, but that might
2267 be undefined if yyoverflow is a macro. */
2268 yyoverflow (YY_("memory exhausted"),
2269 &yyss1, yysize * sizeof (*yyssp),
2270 &yyvs1, yysize * sizeof (*yyvsp),
2277 #else /* no yyoverflow */
2278 # ifndef YYSTACK_RELOCATE
2279 goto yyexhaustedlab;
2281 /* Extend the stack our own way. */
2282 if (YYMAXDEPTH <= yystacksize)
2283 goto yyexhaustedlab;
2285 if (YYMAXDEPTH < yystacksize)
2286 yystacksize = YYMAXDEPTH;
2289 short int *yyss1 = yyss;
2290 union yyalloc *yyptr =
2291 (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize));
2293 goto yyexhaustedlab;
2294 YYSTACK_RELOCATE (yyss);
2295 YYSTACK_RELOCATE (yyvs);
2297 # undef YYSTACK_RELOCATE
2299 YYSTACK_FREE (yyss1);
2302 #endif /* no yyoverflow */
2304 yyssp = yyss + yysize - 1;
2305 yyvsp = yyvs + yysize - 1;
2308 YYDPRINTF ((stderr, "Stack size increased to %lu\n",
2309 (unsigned long int) yystacksize));
2311 if (yyss + yystacksize - 1 <= yyssp)
2315 YYDPRINTF ((stderr, "Entering state %d\n", yystate));
2324 /* Do appropriate processing given the current state. */
2325 /* Read a look-ahead token if we need one and don't already have one. */
2328 /* First try to decide what to do without reference to look-ahead token. */
2330 yyn = yypact[yystate];
2331 if (yyn == YYPACT_NINF)
2334 /* Not known => get a look-ahead token if don't already have one. */
2336 /* YYCHAR is either YYEMPTY or YYEOF or a valid look-ahead symbol. */
2337 if (yychar == YYEMPTY)
2339 YYDPRINTF ((stderr, "Reading a token: "));
2343 if (yychar <= YYEOF)
2345 yychar = yytoken = YYEOF;
2346 YYDPRINTF ((stderr, "Now at end of input.\n"));
2350 yytoken = YYTRANSLATE (yychar);
2351 YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc);
2354 /* If the proper action on seeing token YYTOKEN is to reduce or to
2355 detect an error, take that action. */
2357 if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken)
2362 if (yyn == 0 || yyn == YYTABLE_NINF)
2371 /* Shift the look-ahead token. */
2372 YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc);
2374 /* Discard the token being shifted unless it is eof. */
2375 if (yychar != YYEOF)
2381 /* Count tokens shifted since error; after three, turn off error
2390 /*-----------------------------------------------------------.
2391 | yydefault -- do the default action for the current state. |
2392 `-----------------------------------------------------------*/
2394 yyn = yydefact[yystate];
2400 /*-----------------------------.
2401 | yyreduce -- Do a reduction. |
2402 `-----------------------------*/
2404 /* yyn is the number of a rule to reduce with. */
2407 /* If YYLEN is nonzero, implement the default value of the action:
2410 Otherwise, the following line sets YYVAL to garbage.
2411 This behavior is undocumented and Bison
2412 users should not rely upon it. Assigning to YYVAL
2413 unconditionally makes the parser a bit smaller, and it avoids a
2414 GCC warning that YYVAL may be used uninitialized. */
2415 yyval = yyvsp[1-yylen];
2418 YY_REDUCE_PRINT (yyn);
2422 #line 363 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
2424 (yyval.String) = (yyvsp[-1].String);
2429 #line 366 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
2431 (yyval.String) = new std::string("");
2436 #line 373 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
2437 { (yyval.String) = new std::string(""); ;}
2441 #line 378 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
2443 *(yyvsp[-1].String) += *(yyvsp[0].String);
2444 delete (yyvsp[0].String);
2445 (yyval.String) = (yyvsp[-1].String);
2450 #line 383 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
2451 { (yyval.String) = new std::string(""); ;}
2455 #line 388 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
2456 { (yyval.String) = new std::string(); ;}
2460 #line 389 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
2461 { *(yyvsp[-1].String) += " " + *(yyvsp[0].String); delete (yyvsp[0].String); (yyval.String) = (yyvsp[-1].String); ;}
2465 #line 392 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
2466 { (yyval.String) = new std::string(); ;}
2470 #line 393 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
2472 (yyvsp[-1].String)->insert(0, ", ");
2473 *(yyvsp[-1].String) += " " + *(yyvsp[0].String);
2474 delete (yyvsp[0].String);
2475 (yyval.String) = (yyvsp[-1].String);
2480 #line 401 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
2482 *(yyvsp[-1].String) += " " + *(yyvsp[0].String);
2483 delete (yyvsp[0].String);
2484 (yyval.String) = (yyvsp[-1].String);
2489 #line 407 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
2490 { (yyval.String) = new std::string(); ;}
2494 #line 411 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
2495 { (yyval.String) = new std::string(); ;}
2499 #line 412 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
2501 (yyvsp[-1].String)->insert(0, ", ");
2502 if (!(yyvsp[0].String)->empty())
2503 *(yyvsp[-1].String) += " " + *(yyvsp[0].String);
2504 delete (yyvsp[0].String);
2505 (yyval.String) = (yyvsp[-1].String);
2510 #line 422 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
2512 *(yyvsp[-1].String) += " " + *(yyvsp[0].String);
2513 delete (yyvsp[0].String);
2514 (yyval.String) = (yyvsp[-1].String);
2519 #line 444 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
2521 (yyval.Type).newTy = (yyvsp[0].String);
2522 (yyval.Type).oldTy = OpaqueTy;
2527 #line 448 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
2529 (yyval.Type).newTy = (yyvsp[0].String);
2530 (yyval.Type).oldTy = UnresolvedTy;
2535 #line 452 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
2537 (yyval.Type) = (yyvsp[0].Type);
2542 #line 455 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
2543 { // Type UpReference
2544 (yyvsp[0].String)->insert(0, "\\");
2545 (yyval.Type).newTy = (yyvsp[0].String);
2546 (yyval.Type).oldTy = NumericTy;
2551 #line 460 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
2552 { // Function derived type?
2553 *(yyvsp[-3].Type).newTy += "( " + *(yyvsp[-1].String) + " )";
2554 delete (yyvsp[-1].String);
2555 (yyval.Type).newTy = (yyvsp[-3].Type).newTy;
2556 (yyval.Type).oldTy = FunctionTy;
2561 #line 466 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
2562 { // Sized array type?
2563 (yyvsp[-3].String)->insert(0,"[ ");
2564 *(yyvsp[-3].String) += " x " + *(yyvsp[-1].Type).newTy + " ]";
2565 delete (yyvsp[-1].Type).newTy;
2566 (yyval.Type).newTy = (yyvsp[-3].String);
2567 (yyval.Type).oldTy = ArrayTy;
2568 (yyval.Type).elemTy = (yyvsp[-1].Type).oldTy;
2573 #line 474 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
2574 { // Packed array type?
2575 (yyvsp[-3].String)->insert(0,"< ");
2576 *(yyvsp[-3].String) += " x " + *(yyvsp[-1].Type).newTy + " >";
2577 delete (yyvsp[-1].Type).newTy;
2578 (yyval.Type).newTy = (yyvsp[-3].String);
2579 (yyval.Type).oldTy = PackedTy;
2580 (yyval.Type).elemTy = (yyvsp[-1].Type).oldTy;
2585 #line 482 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
2586 { // Structure type?
2587 (yyvsp[-1].String)->insert(0, "{ ");
2588 *(yyvsp[-1].String) += " }";
2589 (yyval.Type).newTy = (yyvsp[-1].String);
2590 (yyval.Type).oldTy = StructTy;
2595 #line 488 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
2596 { // Empty structure type?
2597 (yyval.Type).newTy = new std::string("{}");
2598 (yyval.Type).oldTy = StructTy;
2603 #line 492 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
2604 { // Packed Structure type?
2605 (yyvsp[-2].String)->insert(0, "<{ ");
2606 *(yyvsp[-2].String) += " }>";
2607 (yyval.Type).newTy = (yyvsp[-2].String);
2608 (yyval.Type).oldTy = StructTy;
2613 #line 498 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
2614 { // Empty packed structure type?
2615 (yyval.Type).newTy = new std::string("<{}>");
2616 (yyval.Type).oldTy = StructTy;
2621 #line 502 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
2623 *(yyvsp[-1].Type).newTy += '*';
2624 (yyval.Type).elemTy = (yyvsp[-1].Type).oldTy;
2625 (yyvsp[-1].Type).oldTy = PointerTy;
2626 (yyval.Type) = (yyvsp[-1].Type);
2631 #line 513 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
2633 (yyval.String) = (yyvsp[0].Type).newTy;
2638 #line 516 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
2640 *(yyvsp[-2].String) += ", " + *(yyvsp[0].Type).newTy;
2641 delete (yyvsp[0].Type).newTy;
2642 (yyval.String) = (yyvsp[-2].String);
2647 #line 525 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
2649 *(yyvsp[-2].String) += ", ...";
2650 delete (yyvsp[0].String);
2651 (yyval.String) = (yyvsp[-2].String);
2656 #line 530 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
2658 (yyval.String) = (yyvsp[0].String);
2663 #line 533 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
2665 (yyval.String) = new std::string();
2670 #line 543 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
2671 { // Nonempty unsized arr
2672 (yyval.Const).type = (yyvsp[-3].Type);
2673 (yyval.Const).cnst = new std::string(*(yyvsp[-3].Type).newTy);
2674 *(yyval.Const).cnst += " [ " + *(yyvsp[-1].String) + " ]";
2675 delete (yyvsp[-1].String);
2680 #line 549 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
2682 (yyval.Const).type = (yyvsp[-2].Type);
2683 (yyval.Const).cnst = new std::string(*(yyvsp[-2].Type).newTy);
2684 *(yyval.Const).cnst += "[ ]";
2689 #line 554 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
2691 (yyval.Const).type = (yyvsp[-2].Type);
2692 (yyval.Const).cnst = new std::string(*(yyvsp[-2].Type).newTy);
2693 *(yyval.Const).cnst += " c" + *(yyvsp[0].String);
2694 delete (yyvsp[0].String);
2699 #line 560 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
2700 { // Nonempty unsized arr
2701 (yyval.Const).type = (yyvsp[-3].Type);
2702 (yyval.Const).cnst = new std::string(*(yyvsp[-3].Type).newTy);
2703 *(yyval.Const).cnst += " < " + *(yyvsp[-1].String) + " >";
2704 delete (yyvsp[-1].String);
2709 #line 566 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
2711 (yyval.Const).type = (yyvsp[-3].Type);
2712 (yyval.Const).cnst = new std::string(*(yyvsp[-3].Type).newTy);
2713 *(yyval.Const).cnst += " { " + *(yyvsp[-1].String) + " }";
2714 delete (yyvsp[-1].String);
2719 #line 572 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
2721 (yyval.Const).type = (yyvsp[-2].Type);
2722 (yyval.Const).cnst = new std::string(*(yyvsp[-2].Type).newTy);
2723 *(yyval.Const).cnst += " {}";
2728 #line 577 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
2730 (yyval.Const).type = (yyvsp[-1].Type);
2731 (yyval.Const).cnst = new std::string(*(yyvsp[-1].Type).newTy);
2732 *(yyval.Const).cnst += " " + *(yyvsp[0].String);
2733 delete (yyvsp[0].String);
2738 #line 583 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
2740 (yyval.Const).type = (yyvsp[-1].Type);
2741 (yyval.Const).cnst = new std::string(*(yyvsp[-1].Type).newTy);
2742 *(yyval.Const).cnst += " " + *(yyvsp[0].String);
2743 delete (yyvsp[0].String);
2748 #line 589 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
2750 (yyval.Const).type = (yyvsp[-1].Type);
2751 (yyval.Const).cnst = new std::string(*(yyvsp[-1].Type).newTy);
2752 *(yyval.Const).cnst += " " + *(yyvsp[0].String);
2753 delete (yyvsp[0].String);
2758 #line 595 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
2760 (yyval.Const).type = (yyvsp[-1].Type);
2761 (yyval.Const).cnst = new std::string(*(yyvsp[-1].Type).newTy);
2762 *(yyval.Const).cnst += " " + *(yyvsp[0].String);
2763 delete (yyvsp[0].String);
2768 #line 601 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
2770 (yyval.Const).type = (yyvsp[-1].Type);
2771 (yyval.Const).cnst = new std::string(*(yyvsp[-1].Type).newTy);
2772 *(yyval.Const).cnst += " " + *(yyvsp[0].String);
2773 delete (yyvsp[0].String);
2778 #line 607 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
2779 { // integral constants
2780 (yyval.Const).type = (yyvsp[-1].Type);
2781 (yyval.Const).cnst = new std::string(*(yyvsp[-1].Type).newTy);
2782 *(yyval.Const).cnst += " " + *(yyvsp[0].String);
2783 delete (yyvsp[0].String);
2788 #line 613 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
2789 { // integral constants
2790 (yyval.Const).type = (yyvsp[-1].Type);
2791 (yyval.Const).cnst = new std::string(*(yyvsp[-1].Type).newTy);
2792 *(yyval.Const).cnst += " " + *(yyvsp[0].String);
2793 delete (yyvsp[0].String);
2798 #line 619 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
2799 { // Boolean constants
2800 (yyval.Const).type = (yyvsp[-1].Type);
2801 (yyval.Const).cnst = new std::string(*(yyvsp[-1].Type).newTy);
2802 *(yyval.Const).cnst += " " + *(yyvsp[0].String);
2803 delete (yyvsp[0].String);
2808 #line 625 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
2809 { // Boolean constants
2810 (yyval.Const).type = (yyvsp[-1].Type);
2811 (yyval.Const).cnst = new std::string(*(yyvsp[-1].Type).newTy);
2812 *(yyval.Const).cnst += " " + *(yyvsp[0].String);
2813 delete (yyvsp[0].String);
2818 #line 631 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
2819 { // Float & Double constants
2820 (yyval.Const).type = (yyvsp[-1].Type);
2821 (yyval.Const).cnst = new std::string(*(yyvsp[-1].Type).newTy);
2822 *(yyval.Const).cnst += " " + *(yyvsp[0].String);
2823 delete (yyvsp[0].String);
2828 #line 639 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
2830 std::string source = *(yyvsp[-3].Const).cnst;
2831 TypeInfo DstTy = (yyvsp[-1].Type);
2833 if (*(yyvsp[-5].String) == "cast") {
2834 // Call getCastUpgrade to upgrade the old cast
2835 (yyval.String) = new std::string(getCastUpgrade(source, (yyvsp[-3].Const).type, (yyvsp[-1].Type), true));
2837 // Nothing to upgrade, just create the cast constant expr
2838 (yyval.String) = new std::string(*(yyvsp[-5].String));
2839 *(yyval.String) += "( " + source + " to " + *(yyvsp[-1].Type).newTy + ")";
2841 delete (yyvsp[-5].String); (yyvsp[-3].Const).destroy(); delete (yyvsp[-2].String); (yyvsp[-1].Type).destroy();
2846 #line 653 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
2848 *(yyvsp[-4].String) += "(" + *(yyvsp[-2].Const).cnst;
2849 for (unsigned i = 0; i < (yyvsp[-1].ValList)->size(); ++i) {
2850 ValueInfo& VI = (*(yyvsp[-1].ValList))[i];
2851 *(yyvsp[-4].String) += ", " + *VI.val;
2854 *(yyvsp[-4].String) += ")";
2855 (yyval.String) = (yyvsp[-4].String);
2856 (yyvsp[-2].Const).destroy();
2857 delete (yyvsp[-1].ValList);
2862 #line 665 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
2864 *(yyvsp[-7].String) += "(" + *(yyvsp[-5].Const).cnst + "," + *(yyvsp[-3].Const).cnst + "," + *(yyvsp[-1].Const).cnst + ")";
2865 (yyvsp[-5].Const).destroy(); (yyvsp[-3].Const).destroy(); (yyvsp[-1].Const).destroy();
2866 (yyval.String) = (yyvsp[-7].String);
2871 #line 670 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
2873 const char* op = getDivRemOpcode(*(yyvsp[-5].String), (yyvsp[-3].Const).type);
2874 (yyval.String) = new std::string(op);
2875 *(yyval.String) += "(" + *(yyvsp[-3].Const).cnst + "," + *(yyvsp[-1].Const).cnst + ")";
2876 delete (yyvsp[-5].String); (yyvsp[-3].Const).destroy(); (yyvsp[-1].Const).destroy();
2881 #line 676 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
2883 *(yyvsp[-5].String) += "(" + *(yyvsp[-3].Const).cnst + "," + *(yyvsp[-1].Const).cnst + ")";
2884 (yyvsp[-3].Const).destroy(); (yyvsp[-1].Const).destroy();
2885 (yyval.String) = (yyvsp[-5].String);
2890 #line 681 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
2892 *(yyvsp[-5].String) = getCompareOp(*(yyvsp[-5].String), (yyvsp[-3].Const).type);
2893 *(yyvsp[-5].String) += "(" + *(yyvsp[-3].Const).cnst + "," + *(yyvsp[-1].Const).cnst + ")";
2894 (yyvsp[-3].Const).destroy(); (yyvsp[-1].Const).destroy();
2895 (yyval.String) = (yyvsp[-5].String);
2900 #line 687 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
2902 *(yyvsp[-6].String) += "(" + *(yyvsp[-5].String) + "," + *(yyvsp[-3].Const).cnst + "," + *(yyvsp[-1].Const).cnst + ")";
2903 delete (yyvsp[-5].String); (yyvsp[-3].Const).destroy(); (yyvsp[-1].Const).destroy();
2904 (yyval.String) = (yyvsp[-6].String);
2909 #line 692 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
2911 *(yyvsp[-6].String) += "(" + *(yyvsp[-5].String) + "," + *(yyvsp[-3].Const).cnst + "," + *(yyvsp[-1].Const).cnst + ")";
2912 delete (yyvsp[-5].String); (yyvsp[-3].Const).destroy(); (yyvsp[-1].Const).destroy();
2913 (yyval.String) = (yyvsp[-6].String);
2918 #line 697 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
2920 const char* shiftop = (yyvsp[-5].String)->c_str();
2921 if (*(yyvsp[-5].String) == "shr")
2922 shiftop = ((yyvsp[-3].Const).type.isUnsigned()) ? "lshr" : "ashr";
2923 (yyval.String) = new std::string(shiftop);
2924 *(yyval.String) += "(" + *(yyvsp[-3].Const).cnst + "," + *(yyvsp[-1].Const).cnst + ")";
2925 delete (yyvsp[-5].String); (yyvsp[-3].Const).destroy(); (yyvsp[-1].Const).destroy();
2930 #line 705 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
2932 *(yyvsp[-5].String) += "(" + *(yyvsp[-3].Const).cnst + "," + *(yyvsp[-1].Const).cnst + ")";
2933 (yyvsp[-3].Const).destroy(); (yyvsp[-1].Const).destroy();
2934 (yyval.String) = (yyvsp[-5].String);
2939 #line 710 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
2941 *(yyvsp[-7].String) += "(" + *(yyvsp[-5].Const).cnst + "," + *(yyvsp[-3].Const).cnst + "," + *(yyvsp[-1].Const).cnst + ")";
2942 (yyvsp[-5].Const).destroy(); (yyvsp[-3].Const).destroy(); (yyvsp[-1].Const).destroy();
2943 (yyval.String) = (yyvsp[-7].String);
2948 #line 715 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
2950 *(yyvsp[-7].String) += "(" + *(yyvsp[-5].Const).cnst + "," + *(yyvsp[-3].Const).cnst + "," + *(yyvsp[-1].Const).cnst + ")";
2951 (yyvsp[-5].Const).destroy(); (yyvsp[-3].Const).destroy(); (yyvsp[-1].Const).destroy();
2952 (yyval.String) = (yyvsp[-7].String);
2957 #line 725 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
2959 *(yyvsp[-2].String) += ", " + *(yyvsp[0].Const).cnst;
2960 (yyvsp[0].Const).destroy();
2961 (yyval.String) = (yyvsp[-2].String);
2966 #line 730 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
2967 { (yyval.String) = new std::string(*(yyvsp[0].Const).cnst); (yyvsp[0].Const).destroy(); ;}
2971 #line 745 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
2977 #line 750 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
2984 #line 753 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
2986 *O << *(yyvsp[0].String) << '\n';
2987 delete (yyvsp[0].String);
2993 #line 758 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
2995 *O << "module asm " << ' ' << *(yyvsp[0].String) << '\n';
3001 #line 762 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3003 *O << "implementation\n";
3009 #line 766 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3010 { (yyval.String) = 0; ;}
3014 #line 768 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3015 { (yyval.String) = (yyvsp[0].String); *(yyval.String) = "external"; ;}
3019 #line 771 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3021 EnumeratedTypes.push_back((yyvsp[0].Type));
3022 if (!(yyvsp[-2].String)->empty()) {
3023 NamedTypes[*(yyvsp[-2].String)].newTy = new std::string(*(yyvsp[0].Type).newTy);
3024 NamedTypes[*(yyvsp[-2].String)].oldTy = (yyvsp[0].Type).oldTy;
3025 NamedTypes[*(yyvsp[-2].String)].elemTy = (yyvsp[0].Type).elemTy;
3026 *O << *(yyvsp[-2].String) << " = ";
3028 *O << "type " << *(yyvsp[0].Type).newTy << '\n';
3029 delete (yyvsp[-2].String); delete (yyvsp[-1].String); (yyvsp[0].Type).destroy();
3035 #line 783 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3036 { // Function prototypes can be in const pool
3037 *O << *(yyvsp[0].String) << '\n';
3038 delete (yyvsp[0].String);
3044 #line 788 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3045 { // Asm blocks can be in the const pool
3046 *O << *(yyvsp[-2].String) << ' ' << *(yyvsp[-1].String) << ' ' << *(yyvsp[0].String) << '\n';
3047 delete (yyvsp[-2].String); delete (yyvsp[-1].String); delete (yyvsp[0].String);
3053 #line 793 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3055 if (!(yyvsp[-4].String)->empty()) {
3056 *O << *(yyvsp[-4].String) << " = ";
3057 Globals[*(yyvsp[-4].String)] = (yyvsp[-1].Const).type.clone();
3059 *O << *(yyvsp[-3].String) << ' ' << *(yyvsp[-2].String) << ' ' << *(yyvsp[-1].Const).cnst << ' ' << *(yyvsp[0].String) << '\n';
3060 delete (yyvsp[-4].String); delete (yyvsp[-3].String); delete (yyvsp[-2].String); (yyvsp[-1].Const).destroy(); delete (yyvsp[0].String);
3066 #line 802 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3068 if (!(yyvsp[-4].String)->empty()) {
3069 *O << *(yyvsp[-4].String) << " = ";
3070 Globals[*(yyvsp[-4].String)] = (yyvsp[-1].Type).clone();
3072 *O << *(yyvsp[-3].String) << ' ' << *(yyvsp[-2].String) << ' ' << *(yyvsp[-1].Type).newTy << ' ' << *(yyvsp[0].String) << '\n';
3073 delete (yyvsp[-4].String); delete (yyvsp[-3].String); delete (yyvsp[-2].String); (yyvsp[-1].Type).destroy(); delete (yyvsp[0].String);
3079 #line 811 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3081 if (!(yyvsp[-4].String)->empty()) {
3082 *O << *(yyvsp[-4].String) << " = ";
3083 Globals[*(yyvsp[-4].String)] = (yyvsp[-1].Type).clone();
3085 *O << *(yyvsp[-3].String) << ' ' << *(yyvsp[-2].String) << ' ' << *(yyvsp[-1].Type).newTy << ' ' << *(yyvsp[0].String) << '\n';
3086 delete (yyvsp[-4].String); delete (yyvsp[-3].String); delete (yyvsp[-2].String); (yyvsp[-1].Type).destroy(); delete (yyvsp[0].String);
3092 #line 820 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3094 if (!(yyvsp[-4].String)->empty()) {
3095 *O << *(yyvsp[-4].String) << " = ";
3096 Globals[*(yyvsp[-4].String)] = (yyvsp[-1].Type).clone();
3098 *O << *(yyvsp[-3].String) << ' ' << *(yyvsp[-2].String) << ' ' << *(yyvsp[-1].Type).newTy << ' ' << *(yyvsp[0].String) << '\n';
3099 delete (yyvsp[-4].String); delete (yyvsp[-3].String); delete (yyvsp[-2].String); (yyvsp[-1].Type).destroy(); delete (yyvsp[0].String);
3105 #line 829 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3107 *O << *(yyvsp[-1].String) << ' ' << *(yyvsp[0].String) << '\n';
3108 delete (yyvsp[-1].String); delete (yyvsp[0].String);
3114 #line 834 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3116 *O << *(yyvsp[-2].String) << " = " << *(yyvsp[0].String) << '\n';
3117 delete (yyvsp[-2].String); delete (yyvsp[0].String);
3123 #line 839 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3130 #line 849 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3132 *(yyvsp[-2].String) += " = " + *(yyvsp[0].String);
3133 delete (yyvsp[0].String);
3134 (yyval.String) = (yyvsp[-2].String);
3139 #line 854 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3141 *(yyvsp[-2].String) += " = " + *(yyvsp[0].String);
3142 if (*(yyvsp[0].String) == "64")
3144 delete (yyvsp[0].String);
3145 (yyval.String) = (yyvsp[-2].String);
3150 #line 861 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3152 *(yyvsp[-2].String) += " = " + *(yyvsp[0].String);
3153 delete (yyvsp[0].String);
3154 (yyval.String) = (yyvsp[-2].String);
3159 #line 866 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3161 *(yyvsp[-2].String) += " = " + *(yyvsp[0].String);
3162 delete (yyvsp[0].String);
3163 (yyval.String) = (yyvsp[-2].String);
3168 #line 873 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3170 (yyvsp[-1].String)->insert(0, "[ ");
3171 *(yyvsp[-1].String) += " ]";
3172 (yyval.String) = (yyvsp[-1].String);
3177 #line 880 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3179 *(yyvsp[-2].String) += ", " + *(yyvsp[0].String);
3180 delete (yyvsp[0].String);
3181 (yyval.String) = (yyvsp[-2].String);
3186 #line 886 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3188 (yyval.String) = new std::string();
3193 #line 895 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3194 { (yyval.String) = new std::string(); ;}
3198 #line 897 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3200 (yyval.String) = (yyvsp[-1].Type).newTy;
3201 if (!(yyvsp[0].String)->empty())
3202 *(yyval.String) += " " + *(yyvsp[0].String);
3203 delete (yyvsp[0].String);
3208 #line 904 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3210 *(yyvsp[-2].String) += ", " + *(yyvsp[0].String);
3211 delete (yyvsp[0].String);
3216 #line 908 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3218 (yyval.String) = (yyvsp[0].String);
3223 #line 912 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3225 (yyval.String) = (yyvsp[0].String);
3230 #line 915 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3232 *(yyvsp[-2].String) += ", ...";
3233 (yyval.String) = (yyvsp[-2].String);
3234 delete (yyvsp[0].String);
3239 #line 920 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3241 (yyval.String) = (yyvsp[0].String);
3246 #line 923 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3247 { (yyval.String) = new std::string(); ;}
3251 #line 926 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3253 if (!(yyvsp[-7].String)->empty()) {
3254 *(yyvsp[-7].String) += " ";
3256 *(yyvsp[-7].String) += *(yyvsp[-6].Type).newTy + " " + *(yyvsp[-5].String) + "(" + *(yyvsp[-3].String) + ")";
3257 if (!(yyvsp[-1].String)->empty()) {
3258 *(yyvsp[-7].String) += " " + *(yyvsp[-1].String);
3260 if (!(yyvsp[0].String)->empty()) {
3261 *(yyvsp[-7].String) += " " + *(yyvsp[0].String);
3263 (yyvsp[-6].Type).destroy();
3264 delete (yyvsp[-5].String);
3265 delete (yyvsp[-3].String);
3266 delete (yyvsp[-1].String);
3267 delete (yyvsp[0].String);
3268 (yyval.String) = (yyvsp[-7].String);
3273 #line 945 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3274 { (yyval.String) = new std::string("{"); delete (yyvsp[0].String); ;}
3278 #line 946 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3279 { (yyval.String) = new std::string ("{"); ;}
3283 #line 949 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3286 if (!(yyvsp[-2].String)->empty()) {
3287 *O << *(yyvsp[-2].String) << ' ';
3289 *O << *(yyvsp[-1].String) << ' ' << *(yyvsp[0].String) << '\n';
3290 delete (yyvsp[-2].String); delete (yyvsp[-1].String); delete (yyvsp[0].String);
3296 #line 958 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3298 *O << *(yyvsp[-3].String) << ' ';
3299 if (!(yyvsp[-2].String)->empty()) {
3300 *O << *(yyvsp[-2].String) << ' ';
3302 *O << *(yyvsp[-1].String) << ' ' << *(yyvsp[0].String) << '\n';
3303 delete (yyvsp[-3].String); delete (yyvsp[-2].String); delete (yyvsp[-1].String); delete (yyvsp[0].String);
3309 #line 969 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3310 { (yyval.String) = new std::string("}"); delete (yyvsp[0].String); ;}
3314 #line 970 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3315 { (yyval.String) = new std::string("}"); ;}
3319 #line 972 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3321 if ((yyvsp[-1].String))
3322 *O << *(yyvsp[-1].String);
3323 *O << '\n' << *(yyvsp[0].String) << '\n';
3329 #line 980 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3330 { (yyval.String) = new std::string(); ;}
3334 #line 986 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3336 if (!(yyvsp[-1].String)->empty())
3337 *(yyvsp[-2].String) += " " + *(yyvsp[-1].String);
3338 *(yyvsp[-2].String) += " " + *(yyvsp[0].String);
3339 delete (yyvsp[-1].String);
3340 delete (yyvsp[0].String);
3341 (yyval.String) = (yyvsp[-2].String);
3346 #line 999 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3347 { (yyval.String) = new std::string(); ;}
3351 #line 1005 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3353 (yyvsp[-1].String)->insert(0, "<");
3354 *(yyvsp[-1].String) += ">";
3355 (yyval.String) = (yyvsp[-1].String);
3360 #line 1011 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3362 if (!(yyvsp[-3].String)->empty()) {
3363 *(yyvsp[-4].String) += " " + *(yyvsp[-3].String);
3365 *(yyvsp[-4].String) += " " + *(yyvsp[-2].String) + ", " + *(yyvsp[0].String);
3366 delete (yyvsp[-3].String); delete (yyvsp[-2].String); delete (yyvsp[0].String);
3367 (yyval.String) = (yyvsp[-4].String);
3372 #line 1024 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3374 (yyval.Value).val = (yyvsp[0].String);
3375 (yyval.Value).constant = false;
3376 (yyval.Value).type.newTy = 0;
3377 (yyval.Value).type.oldTy = UnresolvedTy;
3382 #line 1030 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3384 (yyval.Value).val = (yyvsp[0].String);
3385 (yyval.Value).constant = true;
3386 (yyval.Value).type.newTy = 0;
3387 (yyval.Value).type.oldTy = UnresolvedTy;
3392 #line 1041 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3394 (yyval.Value) = (yyvsp[0].Value);
3395 (yyval.Value).type = (yyvsp[-1].Type);
3396 (yyval.Value).val->insert(0, *(yyvsp[-1].Type).newTy + " ");
3401 #line 1047 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3408 #line 1050 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3409 { // Do not allow functions with 0 basic blocks
3415 #line 1058 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3422 #line 1062 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3424 *O << " " << *(yyvsp[0].String) << '\n';
3425 delete (yyvsp[0].String);
3431 #line 1067 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3438 #line 1070 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3440 *O << *(yyvsp[0].String) << '\n';
3441 delete (yyvsp[0].String);
3447 #line 1076 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3448 { (yyval.String) = (yyvsp[0].String); *(yyval.String) = "unwind"; ;}
3452 #line 1078 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3453 { // Return with a result...
3454 *O << " " << *(yyvsp[-1].String) << ' ' << *(yyvsp[0].Value).val << '\n';
3455 delete (yyvsp[-1].String); (yyvsp[0].Value).destroy();
3461 #line 1083 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3462 { // Return with no result...
3463 *O << " " << *(yyvsp[-1].String) << ' ' << *(yyvsp[0].Type).newTy << '\n';
3464 delete (yyvsp[-1].String); (yyvsp[0].Type).destroy();
3470 #line 1088 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3471 { // Unconditional Branch...
3472 *O << " " << *(yyvsp[-2].String) << ' ' << *(yyvsp[-1].Type).newTy << ' ' << *(yyvsp[0].Value).val << '\n';
3473 delete (yyvsp[-2].String); (yyvsp[-1].Type).destroy(); (yyvsp[0].Value).destroy();
3479 #line 1093 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3481 *O << " " << *(yyvsp[-8].String) << ' ' << *(yyvsp[-7].Type).newTy << ' ' << *(yyvsp[-6].Value).val << ", "
3482 << *(yyvsp[-4].Type).newTy << ' ' << *(yyvsp[-3].Value).val << ", " << *(yyvsp[-1].Type).newTy << ' '
3483 << *(yyvsp[0].Value).val << '\n';
3484 delete (yyvsp[-8].String); (yyvsp[-7].Type).destroy(); (yyvsp[-6].Value).destroy(); (yyvsp[-4].Type).destroy(); (yyvsp[-3].Value).destroy();
3485 (yyvsp[-1].Type).destroy(); (yyvsp[0].Value).destroy();
3491 #line 1101 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3493 *O << " " << *(yyvsp[-8].String) << ' ' << *(yyvsp[-7].Type).newTy << ' ' << *(yyvsp[-6].Value).val << ", "
3494 << *(yyvsp[-4].Type).newTy << ' ' << *(yyvsp[-3].Value).val << " [" << *(yyvsp[-1].String) << " ]\n";
3495 delete (yyvsp[-8].String); (yyvsp[-7].Type).destroy(); (yyvsp[-6].Value).destroy(); (yyvsp[-4].Type).destroy(); (yyvsp[-3].Value).destroy();
3496 delete (yyvsp[-1].String);
3502 #line 1108 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3504 *O << " " << *(yyvsp[-7].String) << ' ' << *(yyvsp[-6].Type).newTy << ' ' << *(yyvsp[-5].Value).val << ", "
3505 << *(yyvsp[-3].Type).newTy << ' ' << *(yyvsp[-2].Value).val << "[]\n";
3506 delete (yyvsp[-7].String); (yyvsp[-6].Type).destroy(); (yyvsp[-5].Value).destroy(); (yyvsp[-3].Type).destroy(); (yyvsp[-2].Value).destroy();
3512 #line 1115 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3515 if (!(yyvsp[-13].String)->empty())
3516 *O << *(yyvsp[-13].String) << " = ";
3517 *O << *(yyvsp[-12].String) << ' ' << *(yyvsp[-11].String) << ' ' << *(yyvsp[-10].Type).newTy << ' ' << *(yyvsp[-9].Value).val << " (";
3518 for (unsigned i = 0; i < (yyvsp[-7].ValList)->size(); ++i) {
3519 ValueInfo& VI = (*(yyvsp[-7].ValList))[i];
3521 if (i+1 < (yyvsp[-7].ValList)->size())
3525 *O << ") " << *(yyvsp[-5].String) << ' ' << *(yyvsp[-4].Type).newTy << ' ' << *(yyvsp[-3].Value).val << ' '
3526 << *(yyvsp[-2].String) << ' ' << *(yyvsp[-1].Type).newTy << ' ' << *(yyvsp[0].Value).val << '\n';
3527 delete (yyvsp[-13].String); delete (yyvsp[-12].String); delete (yyvsp[-11].String); (yyvsp[-10].Type).destroy(); (yyvsp[-9].Value).destroy(); delete (yyvsp[-7].ValList);
3528 delete (yyvsp[-5].String); (yyvsp[-4].Type).destroy(); (yyvsp[-3].Value).destroy(); delete (yyvsp[-2].String); (yyvsp[-1].Type).destroy();
3529 (yyvsp[0].Value).destroy();
3535 #line 1134 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3537 *O << " " << *(yyvsp[0].String) << '\n';
3538 delete (yyvsp[0].String);
3544 #line 1139 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3546 *O << " " << *(yyvsp[0].String) << '\n';
3547 delete (yyvsp[0].String);
3553 #line 1145 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3555 *(yyvsp[-5].String) += " " + *(yyvsp[-4].Type).newTy + " " + *(yyvsp[-3].String) + ", " + *(yyvsp[-1].Type).newTy + " " + *(yyvsp[0].Value).val;
3556 (yyvsp[-4].Type).destroy(); delete (yyvsp[-3].String); (yyvsp[-1].Type).destroy(); (yyvsp[0].Value).destroy();
3557 (yyval.String) = (yyvsp[-5].String);
3562 #line 1150 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3564 (yyvsp[-3].String)->insert(0, *(yyvsp[-4].Type).newTy + " " );
3565 *(yyvsp[-3].String) += ", " + *(yyvsp[-1].Type).newTy + " " + *(yyvsp[0].Value).val;
3566 (yyvsp[-4].Type).destroy(); (yyvsp[-1].Type).destroy(); (yyvsp[0].Value).destroy();
3567 (yyval.String) = (yyvsp[-3].String);
3572 #line 1158 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3574 if (!(yyvsp[-1].String)->empty())
3575 *(yyvsp[-1].String) += " = ";
3576 *(yyvsp[-1].String) += *(yyvsp[0].String);
3577 delete (yyvsp[0].String);
3578 (yyval.String) = (yyvsp[-1].String);
3583 #line 1167 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3584 { // Used for PHI nodes
3585 (yyvsp[-3].Value).val->insert(0, *(yyvsp[-5].Type).newTy + "[");
3586 *(yyvsp[-3].Value).val += "," + *(yyvsp[-1].Value).val + "]";
3587 (yyvsp[-5].Type).destroy(); (yyvsp[-1].Value).destroy();
3588 (yyval.String) = new std::string(*(yyvsp[-3].Value).val);
3589 (yyvsp[-3].Value).destroy();
3594 #line 1174 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3596 *(yyvsp[-6].String) += ", [" + *(yyvsp[-3].Value).val + "," + *(yyvsp[-1].Value).val + "]";
3597 (yyvsp[-3].Value).destroy(); (yyvsp[-1].Value).destroy();
3598 (yyval.String) = (yyvsp[-6].String);
3603 #line 1182 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3605 (yyval.ValList) = new ValueList();
3606 (yyval.ValList)->push_back((yyvsp[0].Value));
3611 #line 1186 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3613 (yyvsp[-2].ValList)->push_back((yyvsp[0].Value));
3614 (yyval.ValList) = (yyvsp[-2].ValList);
3619 #line 1193 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3620 { (yyval.ValList) = (yyvsp[0].ValList); ;}
3624 #line 1194 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3625 { (yyval.ValList) = new ValueList(); ;}
3629 #line 1198 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3631 *(yyvsp[-1].String) += " " + *(yyvsp[0].String);
3632 delete (yyvsp[0].String);
3633 (yyval.String) = (yyvsp[-1].String);
3638 #line 1206 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3640 const char* op = getDivRemOpcode(*(yyvsp[-4].String), (yyvsp[-3].Type));
3641 (yyval.String) = new std::string(op);
3642 *(yyval.String) += " " + *(yyvsp[-3].Type).newTy + " " + *(yyvsp[-2].Value).val + ", " + *(yyvsp[0].Value).val;
3643 delete (yyvsp[-4].String); (yyvsp[-3].Type).destroy(); (yyvsp[-2].Value).destroy(); (yyvsp[0].Value).destroy();
3648 #line 1212 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3650 *(yyvsp[-4].String) += " " + *(yyvsp[-3].Type).newTy + " " + *(yyvsp[-2].Value).val + ", " + *(yyvsp[0].Value).val;
3651 (yyvsp[-3].Type).destroy(); (yyvsp[-2].Value).destroy(); (yyvsp[0].Value).destroy();
3652 (yyval.String) = (yyvsp[-4].String);
3657 #line 1217 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3659 *(yyvsp[-4].String) = getCompareOp(*(yyvsp[-4].String), (yyvsp[-3].Type));
3660 *(yyvsp[-4].String) += " " + *(yyvsp[-3].Type).newTy + " " + *(yyvsp[-2].Value).val + ", " + *(yyvsp[0].Value).val;
3661 (yyvsp[-3].Type).destroy(); (yyvsp[-2].Value).destroy(); (yyvsp[0].Value).destroy();
3662 (yyval.String) = (yyvsp[-4].String);
3667 #line 1223 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3669 *(yyvsp[-5].String) += " " + *(yyvsp[-4].String) + " " + *(yyvsp[-3].Type).newTy + " " + *(yyvsp[-2].Value).val + "," + *(yyvsp[0].Value).val;
3670 delete (yyvsp[-4].String); (yyvsp[-2].Value).destroy(); (yyvsp[0].Value).destroy();
3671 (yyval.String) = (yyvsp[-5].String);
3676 #line 1228 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3678 *(yyvsp[-5].String) += " " + *(yyvsp[-4].String) + " " + *(yyvsp[-3].Type).newTy + " " + *(yyvsp[-2].Value).val + "," + *(yyvsp[0].Value).val;
3679 delete (yyvsp[-4].String); (yyvsp[-2].Value).destroy(); (yyvsp[0].Value).destroy();
3680 (yyval.String) = (yyvsp[-5].String);
3685 #line 1233 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3687 *(yyvsp[-1].String) += " " + *(yyvsp[0].Value).val;
3688 (yyvsp[0].Value).destroy();
3689 (yyval.String) = (yyvsp[-1].String);
3694 #line 1238 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3696 const char* shiftop = (yyvsp[-3].String)->c_str();
3697 if (*(yyvsp[-3].String) == "shr")
3698 shiftop = ((yyvsp[-2].Value).type.isUnsigned()) ? "lshr" : "ashr";
3699 (yyval.String) = new std::string(shiftop);
3700 *(yyval.String) += " " + *(yyvsp[-2].Value).val + ", " + *(yyvsp[0].Value).val;
3701 delete (yyvsp[-3].String); (yyvsp[-2].Value).destroy(); (yyvsp[0].Value).destroy();
3706 #line 1246 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3708 std::string source = *(yyvsp[-2].Value).val;
3709 TypeInfo SrcTy = (yyvsp[-2].Value).type;
3710 TypeInfo DstTy = (yyvsp[0].Type);
3712 (yyval.String) = new std::string();
3713 if (*(yyvsp[-3].String) == "cast") {
3714 *(yyval.String) += getCastUpgrade(source, SrcTy, DstTy, false);
3716 *(yyval.String) += *(yyvsp[-3].String) + " " + source + " to " + *DstTy.newTy;
3718 delete (yyvsp[-3].String); (yyvsp[-2].Value).destroy();
3719 delete (yyvsp[-1].String); (yyvsp[0].Type).destroy();
3724 #line 1260 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3726 *(yyvsp[-5].String) += " " + *(yyvsp[-4].Value).val + ", " + *(yyvsp[-2].Value).val + ", " + *(yyvsp[0].Value).val;
3727 (yyvsp[-4].Value).destroy(); (yyvsp[-2].Value).destroy(); (yyvsp[0].Value).destroy();
3728 (yyval.String) = (yyvsp[-5].String);
3733 #line 1265 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3735 *(yyvsp[-3].String) += " " + *(yyvsp[-2].Value).val + ", " + *(yyvsp[0].Type).newTy;
3736 (yyvsp[-2].Value).destroy(); (yyvsp[0].Type).destroy();
3737 (yyval.String) = (yyvsp[-3].String);
3742 #line 1270 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3744 *(yyvsp[-3].String) += " " + *(yyvsp[-2].Value).val + ", " + *(yyvsp[0].Value).val;
3745 (yyvsp[-2].Value).destroy(); (yyvsp[0].Value).destroy();
3746 (yyval.String) = (yyvsp[-3].String);
3751 #line 1275 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3753 *(yyvsp[-5].String) += " " + *(yyvsp[-4].Value).val + ", " + *(yyvsp[-2].Value).val + ", " + *(yyvsp[0].Value).val;
3754 (yyvsp[-4].Value).destroy(); (yyvsp[-2].Value).destroy(); (yyvsp[0].Value).destroy();
3755 (yyval.String) = (yyvsp[-5].String);
3760 #line 1280 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3762 *(yyvsp[-5].String) += " " + *(yyvsp[-4].Value).val + ", " + *(yyvsp[-2].Value).val + ", " + *(yyvsp[0].Value).val;
3763 (yyvsp[-4].Value).destroy(); (yyvsp[-2].Value).destroy(); (yyvsp[0].Value).destroy();
3764 (yyval.String) = (yyvsp[-5].String);
3769 #line 1285 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3771 *(yyvsp[-1].String) += " " + *(yyvsp[0].String);
3772 delete (yyvsp[0].String);
3773 (yyval.String) = (yyvsp[-1].String);
3778 #line 1290 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3780 if (!(yyvsp[-5].String)->empty())
3781 *(yyvsp[-6].String) += " " + *(yyvsp[-5].String);
3782 if (!(yyvsp[-6].String)->empty())
3783 *(yyvsp[-6].String) += " ";
3784 *(yyvsp[-6].String) += *(yyvsp[-4].Type).newTy + " " + *(yyvsp[-3].Value).val + "(";
3785 for (unsigned i = 0; i < (yyvsp[-1].ValList)->size(); ++i) {
3786 ValueInfo& VI = (*(yyvsp[-1].ValList))[i];
3787 *(yyvsp[-6].String) += *VI.val;
3788 if (i+1 < (yyvsp[-1].ValList)->size())
3789 *(yyvsp[-6].String) += ", ";
3792 *(yyvsp[-6].String) += ")";
3793 delete (yyvsp[-5].String); (yyvsp[-4].Type).destroy(); (yyvsp[-3].Value).destroy(); delete (yyvsp[-1].ValList);
3794 (yyval.String) = (yyvsp[-6].String);
3799 #line 1312 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3800 { (yyval.ValList) = (yyvsp[0].ValList); ;}
3804 #line 1313 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3805 { (yyval.ValList) = new ValueList(); ;}
3809 #line 1318 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3810 { (yyval.String) = new std::string(); ;}
3814 #line 1321 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3816 *(yyvsp[-2].String) += " " + *(yyvsp[-1].Type).newTy;
3817 if (!(yyvsp[0].String)->empty())
3818 *(yyvsp[-2].String) += " " + *(yyvsp[0].String);
3819 (yyvsp[-1].Type).destroy(); delete (yyvsp[0].String);
3820 (yyval.String) = (yyvsp[-2].String);
3825 #line 1328 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3827 *(yyvsp[-5].String) += " " + *(yyvsp[-4].Type).newTy + ", " + *(yyvsp[-2].Type).newTy + " " + *(yyvsp[-1].Value).val;
3828 if (!(yyvsp[0].String)->empty())
3829 *(yyvsp[-5].String) += " " + *(yyvsp[0].String);
3830 (yyvsp[-4].Type).destroy(); (yyvsp[-2].Type).destroy(); (yyvsp[-1].Value).destroy(); delete (yyvsp[0].String);
3831 (yyval.String) = (yyvsp[-5].String);
3836 #line 1335 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3838 *(yyvsp[-2].String) += " " + *(yyvsp[-1].Type).newTy;
3839 if (!(yyvsp[0].String)->empty())
3840 *(yyvsp[-2].String) += " " + *(yyvsp[0].String);
3841 (yyvsp[-1].Type).destroy(); delete (yyvsp[0].String);
3842 (yyval.String) = (yyvsp[-2].String);
3847 #line 1342 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3849 *(yyvsp[-5].String) += " " + *(yyvsp[-4].Type).newTy + ", " + *(yyvsp[-2].Type).newTy + " " + *(yyvsp[-1].Value).val;
3850 if (!(yyvsp[0].String)->empty())
3851 *(yyvsp[-5].String) += " " + *(yyvsp[0].String);
3852 (yyvsp[-4].Type).destroy(); (yyvsp[-2].Type).destroy(); (yyvsp[-1].Value).destroy(); delete (yyvsp[0].String);
3853 (yyval.String) = (yyvsp[-5].String);
3858 #line 1349 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3860 *(yyvsp[-1].String) += " " + *(yyvsp[0].Value).val;
3861 (yyvsp[0].Value).destroy();
3862 (yyval.String) = (yyvsp[-1].String);
3867 #line 1354 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3869 if (!(yyvsp[-3].String)->empty())
3870 *(yyvsp[-3].String) += " ";
3871 *(yyvsp[-3].String) += *(yyvsp[-2].String) + " " + *(yyvsp[-1].Type).newTy + " " + *(yyvsp[0].Value).val;
3872 delete (yyvsp[-2].String); (yyvsp[-1].Type).destroy(); (yyvsp[0].Value).destroy();
3873 (yyval.String) = (yyvsp[-3].String);
3878 #line 1361 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3880 if (!(yyvsp[-5].String)->empty())
3881 *(yyvsp[-5].String) += " ";
3882 *(yyvsp[-5].String) += *(yyvsp[-4].String) + " " + *(yyvsp[-3].Value).val + ", " + *(yyvsp[-1].Type).newTy + " " + *(yyvsp[0].Value).val;
3883 delete (yyvsp[-4].String); (yyvsp[-3].Value).destroy(); (yyvsp[-1].Type).destroy(); (yyvsp[0].Value).destroy();
3884 (yyval.String) = (yyvsp[-5].String);
3889 #line 1368 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
3891 // Upgrade the indices
3892 for (unsigned i = 0; i < (yyvsp[0].ValList)->size(); ++i) {
3893 ValueInfo& VI = (*(yyvsp[0].ValList))[i];
3894 if (VI.type.isUnsigned() && !VI.isConstant() &&
3895 VI.type.getBitWidth() < 64) {
3896 std::string* old = VI.val;
3897 *O << " %gep_upgrade" << unique << " = zext " << *old
3899 VI.val = new std::string("ulong %gep_upgrade" + llvm::utostr(unique++));
3900 VI.type.oldTy = ULongTy;
3904 *(yyvsp[-3].String) += " " + *(yyvsp[-2].Type).newTy + " " + *(yyvsp[-1].Value).val;
3905 for (unsigned i = 0; i < (yyvsp[0].ValList)->size(); ++i) {
3906 ValueInfo& VI = (*(yyvsp[0].ValList))[i];
3907 *(yyvsp[-3].String) += ", " + *VI.val;
3910 (yyvsp[-2].Type).destroy(); (yyvsp[-1].Value).destroy(); delete (yyvsp[0].ValList);
3911 (yyval.String) = (yyvsp[-3].String);
3919 /* Line 1126 of yacc.c. */
3920 #line 3921 "UpgradeParser.tab.c"
3926 YY_STACK_PRINT (yyss, yyssp);
3931 /* Now `shift' the result of the reduction. Determine what state
3932 that goes to, based on the state we popped back to and the rule
3933 number reduced by. */
3937 yystate = yypgoto[yyn - YYNTOKENS] + *yyssp;
3938 if (0 <= yystate && yystate <= YYLAST && yycheck[yystate] == *yyssp)
3939 yystate = yytable[yystate];
3941 yystate = yydefgoto[yyn - YYNTOKENS];
3946 /*------------------------------------.
3947 | yyerrlab -- here on detecting error |
3948 `------------------------------------*/
3950 /* If not already recovering from an error, report this error. */
3955 yyn = yypact[yystate];
3957 if (YYPACT_NINF < yyn && yyn < YYLAST)
3959 int yytype = YYTRANSLATE (yychar);
3960 YYSIZE_T yysize0 = yytnamerr (0, yytname[yytype]);
3961 YYSIZE_T yysize = yysize0;
3963 int yysize_overflow = 0;
3965 # define YYERROR_VERBOSE_ARGS_MAXIMUM 5
3966 char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
3970 /* This is so xgettext sees the translatable formats that are
3971 constructed on the fly. */
3972 YY_("syntax error, unexpected %s");
3973 YY_("syntax error, unexpected %s, expecting %s");
3974 YY_("syntax error, unexpected %s, expecting %s or %s");
3975 YY_("syntax error, unexpected %s, expecting %s or %s or %s");
3976 YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s");
3980 static char const yyunexpected[] = "syntax error, unexpected %s";
3981 static char const yyexpecting[] = ", expecting %s";
3982 static char const yyor[] = " or %s";
3983 char yyformat[sizeof yyunexpected
3984 + sizeof yyexpecting - 1
3985 + ((YYERROR_VERBOSE_ARGS_MAXIMUM - 2)
3986 * (sizeof yyor - 1))];
3987 char const *yyprefix = yyexpecting;
3989 /* Start YYX at -YYN if negative to avoid negative indexes in
3991 int yyxbegin = yyn < 0 ? -yyn : 0;
3993 /* Stay within bounds of both yycheck and yytname. */
3994 int yychecklim = YYLAST - yyn;
3995 int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS;
3998 yyarg[0] = yytname[yytype];
3999 yyfmt = yystpcpy (yyformat, yyunexpected);
4001 for (yyx = yyxbegin; yyx < yyxend; ++yyx)
4002 if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR)
4004 if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM)
4008 yyformat[sizeof yyunexpected - 1] = '\0';
4011 yyarg[yycount++] = yytname[yyx];
4012 yysize1 = yysize + yytnamerr (0, yytname[yyx]);
4013 yysize_overflow |= yysize1 < yysize;
4015 yyfmt = yystpcpy (yyfmt, yyprefix);
4019 yyf = YY_(yyformat);
4020 yysize1 = yysize + yystrlen (yyf);
4021 yysize_overflow |= yysize1 < yysize;
4024 if (!yysize_overflow && yysize <= YYSTACK_ALLOC_MAXIMUM)
4025 yymsg = (char *) YYSTACK_ALLOC (yysize);
4028 /* Avoid sprintf, as that infringes on the user's name space.
4029 Don't have undefined behavior even if the translation
4030 produced a string with the wrong number of "%s"s. */
4033 while ((*yyp = *yyf))
4035 if (*yyp == '%' && yyf[1] == 's' && yyi < yycount)
4037 yyp += yytnamerr (yyp, yyarg[yyi++]);
4047 YYSTACK_FREE (yymsg);
4051 yyerror (YY_("syntax error"));
4052 goto yyexhaustedlab;
4056 #endif /* YYERROR_VERBOSE */
4057 yyerror (YY_("syntax error"));
4062 if (yyerrstatus == 3)
4064 /* If just tried and failed to reuse look-ahead token after an
4065 error, discard it. */
4067 if (yychar <= YYEOF)
4069 /* Return failure if at end of input. */
4070 if (yychar == YYEOF)
4075 yydestruct ("Error: discarding", yytoken, &yylval);
4080 /* Else will try to reuse look-ahead token after shifting the error
4085 /*---------------------------------------------------.
4086 | yyerrorlab -- error raised explicitly by YYERROR. |
4087 `---------------------------------------------------*/
4090 /* Pacify compilers like GCC when the user code never invokes
4091 YYERROR and the label yyerrorlab therefore never appears in user
4102 /*-------------------------------------------------------------.
4103 | yyerrlab1 -- common code for both syntax error and YYERROR. |
4104 `-------------------------------------------------------------*/
4106 yyerrstatus = 3; /* Each real token shifted decrements this. */
4110 yyn = yypact[yystate];
4111 if (yyn != YYPACT_NINF)
4114 if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR)
4122 /* Pop the current state because it cannot handle the error token. */
4127 yydestruct ("Error: popping", yystos[yystate], yyvsp);
4130 YY_STACK_PRINT (yyss, yyssp);
4139 /* Shift the error token. */
4140 YY_SYMBOL_PRINT ("Shifting", yystos[yyn], yyvsp, yylsp);
4146 /*-------------------------------------.
4147 | yyacceptlab -- YYACCEPT comes here. |
4148 `-------------------------------------*/
4153 /*-----------------------------------.
4154 | yyabortlab -- YYABORT comes here. |
4155 `-----------------------------------*/
4161 /*-------------------------------------------------.
4162 | yyexhaustedlab -- memory exhaustion comes here. |
4163 `-------------------------------------------------*/
4165 yyerror (YY_("memory exhausted"));
4171 if (yychar != YYEOF && yychar != YYEMPTY)
4172 yydestruct ("Cleanup: discarding lookahead",
4174 while (yyssp != yyss)
4176 yydestruct ("Cleanup: popping",
4177 yystos[*yyssp], yyvsp);
4182 YYSTACK_FREE (yyss);
4188 #line 1392 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
4191 int yyerror(const char *ErrorMsg) {
4193 = std::string((CurFilename == "-") ? std::string("<stdin>") : CurFilename)
4194 + ":" + llvm::utostr((unsigned) Upgradelineno) + ": ";
4195 std::string errMsg = std::string(ErrorMsg) + "\n" + where + " while reading ";
4196 if (yychar == YYEMPTY || yychar == 0)
4197 errMsg += "end-of-file.";
4199 errMsg += "token: '" + std::string(Upgradetext, Upgradeleng) + "'";
4200 std::cerr << errMsg << '\n';