LCOV - code coverage report
Current view: top level - src/test/isolation - specparse.c (source / functions) Hit Total Coverage
Test: PostgreSQL 13beta1 Lines: 112 175 64.0 %
Date: 2020-06-01 00:06:26 Functions: 2 2 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* A Bison parser, made by GNU Bison 3.3.2.  */
       2             : 
       3             : /* Bison implementation for Yacc-like parsers in C
       4             : 
       5             :    Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2019 Free Software Foundation,
       6             :    Inc.
       7             : 
       8             :    This program is free software: you can redistribute it and/or modify
       9             :    it under the terms of the GNU General Public License as published by
      10             :    the Free Software Foundation, either version 3 of the License, or
      11             :    (at your option) any later version.
      12             : 
      13             :    This program is distributed in the hope that it will be useful,
      14             :    but WITHOUT ANY WARRANTY; without even the implied warranty of
      15             :    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      16             :    GNU General Public License for more details.
      17             : 
      18             :    You should have received a copy of the GNU General Public License
      19             :    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
      20             : 
      21             : /* As a special exception, you may create a larger work that contains
      22             :    part or all of the Bison parser skeleton and distribute that work
      23             :    under terms of your choice, so long as that work isn't itself a
      24             :    parser generator using the skeleton or a modified version thereof
      25             :    as a parser skeleton.  Alternatively, if you modify or redistribute
      26             :    the parser skeleton itself, you may (at your option) remove this
      27             :    special exception, which will cause the skeleton and the resulting
      28             :    Bison output files to be licensed under the GNU General Public
      29             :    License without this special exception.
      30             : 
      31             :    This special exception was added by the Free Software Foundation in
      32             :    version 2.2 of Bison.  */
      33             : 
      34             : /* C LALR(1) parser skeleton written by Richard Stallman, by
      35             :    simplifying the original so-called "semantic" parser.  */
      36             : 
      37             : /* All symbols defined below should begin with yy or YY, to avoid
      38             :    infringing on user name space.  This should be done even for local
      39             :    variables, as they might otherwise be expanded by user macros.
      40             :    There are some unavoidable exceptions within include files to
      41             :    define necessary library symbols; they are noted "INFRINGES ON
      42             :    USER NAME SPACE" below.  */
      43             : 
      44             : /* Undocumented macros, especially those whose name start with YY_,
      45             :    are private implementation details.  Do not rely on them.  */
      46             : 
      47             : /* Identify Bison output.  */
      48             : #define YYBISON 1
      49             : 
      50             : /* Bison version.  */
      51             : #define YYBISON_VERSION "3.3.2"
      52             : 
      53             : /* Skeleton name.  */
      54             : #define YYSKELETON_NAME "yacc.c"
      55             : 
      56             : /* Pure parsers.  */
      57             : #define YYPURE 0
      58             : 
      59             : /* Push parsers.  */
      60             : #define YYPUSH 0
      61             : 
      62             : /* Pull parsers.  */
      63             : #define YYPULL 1
      64             : 
      65             : 
      66             : /* Substitute the variable and function names.  */
      67             : #define yyparse         spec_yyparse
      68             : #define yylex           spec_yylex
      69             : #define yyerror         spec_yyerror
      70             : #define yydebug         spec_yydebug
      71             : #define yynerrs         spec_yynerrs
      72             : 
      73             : #define yylval          spec_yylval
      74             : #define yychar          spec_yychar
      75             : 
      76             : /* First part of user prologue.  */
      77             : #line 1 "specparse.y" /* yacc.c:337  */
      78             : 
      79             : /*-------------------------------------------------------------------------
      80             :  *
      81             :  * specparse.y
      82             :  *    bison grammar for the isolation test file format
      83             :  *
      84             :  * Portions Copyright (c) 1996-2020, PostgreSQL Global Development Group
      85             :  * Portions Copyright (c) 1994, Regents of the University of California
      86             :  *
      87             :  *-------------------------------------------------------------------------
      88             :  */
      89             : 
      90             : #include "postgres_fe.h"
      91             : 
      92             : #include "isolationtester.h"
      93             : 
      94             : 
      95             : TestSpec        parseresult;            /* result of parsing is left here */
      96             : 
      97             : 
      98             : #line 99 "specparse.c" /* yacc.c:337  */
      99             : # ifndef YY_NULLPTR
     100             : #  if defined __cplusplus
     101             : #   if 201103L <= __cplusplus
     102             : #    define YY_NULLPTR nullptr
     103             : #   else
     104             : #    define YY_NULLPTR 0
     105             : #   endif
     106             : #  else
     107             : #   define YY_NULLPTR ((void*)0)
     108             : #  endif
     109             : # endif
     110             : 
     111             : /* Enabling verbose error messages.  */
     112             : #ifdef YYERROR_VERBOSE
     113             : # undef YYERROR_VERBOSE
     114             : # define YYERROR_VERBOSE 1
     115             : #else
     116             : # define YYERROR_VERBOSE 0
     117             : #endif
     118             : 
     119             : 
     120             : /* Debug traces.  */
     121             : #ifndef YYDEBUG
     122             : # define YYDEBUG 0
     123             : #endif
     124             : #if YYDEBUG
     125             : extern int spec_yydebug;
     126             : #endif
     127             : 
     128             : /* Token type.  */
     129             : #ifndef YYTOKENTYPE
     130             : # define YYTOKENTYPE
     131             :   enum yytokentype
     132             :   {
     133             :     sqlblock = 258,
     134             :     string_literal = 259,
     135             :     PERMUTATION = 260,
     136             :     SESSION = 261,
     137             :     SETUP = 262,
     138             :     STEP = 263,
     139             :     TEARDOWN = 264,
     140             :     TEST = 265
     141             :   };
     142             : #endif
     143             : 
     144             : /* Value type.  */
     145             : #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
     146             : 
     147             : union YYSTYPE
     148             : {
     149             : #line 26 "specparse.y" /* yacc.c:352  */
     150             : 
     151             :     char       *str;
     152             :     Session    *session;
     153             :     Step       *step;
     154             :     Permutation *permutation;
     155             :     struct
     156             :     {
     157             :         void  **elements;
     158             :         int     nelements;
     159             :     }           ptr_list;
     160             : 
     161             : #line 162 "specparse.c" /* yacc.c:352  */
     162             : };
     163             : 
     164             : typedef union YYSTYPE YYSTYPE;
     165             : # define YYSTYPE_IS_TRIVIAL 1
     166             : # define YYSTYPE_IS_DECLARED 1
     167             : #endif
     168             : 
     169             : 
     170             : extern YYSTYPE spec_yylval;
     171             : 
     172             : int spec_yyparse (void);
     173             : 
     174             : 
     175             : 
     176             : 
     177             : 
     178             : #ifdef short
     179             : # undef short
     180             : #endif
     181             : 
     182             : #ifdef YYTYPE_UINT8
     183             : typedef YYTYPE_UINT8 yytype_uint8;
     184             : #else
     185             : typedef unsigned char yytype_uint8;
     186             : #endif
     187             : 
     188             : #ifdef YYTYPE_INT8
     189             : typedef YYTYPE_INT8 yytype_int8;
     190             : #else
     191             : typedef signed char yytype_int8;
     192             : #endif
     193             : 
     194             : #ifdef YYTYPE_UINT16
     195             : typedef YYTYPE_UINT16 yytype_uint16;
     196             : #else
     197             : typedef unsigned short yytype_uint16;
     198             : #endif
     199             : 
     200             : #ifdef YYTYPE_INT16
     201             : typedef YYTYPE_INT16 yytype_int16;
     202             : #else
     203             : typedef short yytype_int16;
     204             : #endif
     205             : 
     206             : #ifndef YYSIZE_T
     207             : # ifdef __SIZE_TYPE__
     208             : #  define YYSIZE_T __SIZE_TYPE__
     209             : # elif defined size_t
     210             : #  define YYSIZE_T size_t
     211             : # elif ! defined YYSIZE_T
     212             : #  include <stddef.h> /* INFRINGES ON USER NAME SPACE */
     213             : #  define YYSIZE_T size_t
     214             : # else
     215             : #  define YYSIZE_T unsigned
     216             : # endif
     217             : #endif
     218             : 
     219             : #define YYSIZE_MAXIMUM ((YYSIZE_T) -1)
     220             : 
     221             : #ifndef YY_
     222             : # if defined YYENABLE_NLS && YYENABLE_NLS
     223             : #  if ENABLE_NLS
     224             : #   include <libintl.h> /* INFRINGES ON USER NAME SPACE */
     225             : #   define YY_(Msgid) dgettext ("bison-runtime", Msgid)
     226             : #  endif
     227             : # endif
     228             : # ifndef YY_
     229             : #  define YY_(Msgid) Msgid
     230             : # endif
     231             : #endif
     232             : 
     233             : #ifndef YY_ATTRIBUTE
     234             : # if (defined __GNUC__                                               \
     235             :       && (2 < __GNUC__ || (__GNUC__ == 2 && 96 <= __GNUC_MINOR__)))  \
     236             :      || defined __SUNPRO_C && 0x5110 <= __SUNPRO_C
     237             : #  define YY_ATTRIBUTE(Spec) __attribute__(Spec)
     238             : # else
     239             : #  define YY_ATTRIBUTE(Spec) /* empty */
     240             : # endif
     241             : #endif
     242             : 
     243             : #ifndef YY_ATTRIBUTE_PURE
     244             : # define YY_ATTRIBUTE_PURE   YY_ATTRIBUTE ((__pure__))
     245             : #endif
     246             : 
     247             : #ifndef YY_ATTRIBUTE_UNUSED
     248             : # define YY_ATTRIBUTE_UNUSED YY_ATTRIBUTE ((__unused__))
     249             : #endif
     250             : 
     251             : /* Suppress unused-variable warnings by "using" E.  */
     252             : #if ! defined lint || defined __GNUC__
     253             : # define YYUSE(E) ((void) (E))
     254             : #else
     255             : # define YYUSE(E) /* empty */
     256             : #endif
     257             : 
     258             : #if defined __GNUC__ && ! defined __ICC && 407 <= __GNUC__ * 100 + __GNUC_MINOR__
     259             : /* Suppress an incorrect diagnostic about yylval being uninitialized.  */
     260             : # define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \
     261             :     _Pragma ("GCC diagnostic push") \
     262             :     _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"")\
     263             :     _Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"")
     264             : # define YY_IGNORE_MAYBE_UNINITIALIZED_END \
     265             :     _Pragma ("GCC diagnostic pop")
     266             : #else
     267             : # define YY_INITIAL_VALUE(Value) Value
     268             : #endif
     269             : #ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
     270             : # define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
     271             : # define YY_IGNORE_MAYBE_UNINITIALIZED_END
     272             : #endif
     273             : #ifndef YY_INITIAL_VALUE
     274             : # define YY_INITIAL_VALUE(Value) /* Nothing. */
     275             : #endif
     276             : 
     277             : 
     278             : #if ! defined yyoverflow || YYERROR_VERBOSE
     279             : 
     280             : /* The parser invokes alloca or malloc; define the necessary symbols.  */
     281             : 
     282             : # ifdef YYSTACK_USE_ALLOCA
     283             : #  if YYSTACK_USE_ALLOCA
     284             : #   ifdef __GNUC__
     285             : #    define YYSTACK_ALLOC __builtin_alloca
     286             : #   elif defined __BUILTIN_VA_ARG_INCR
     287             : #    include <alloca.h> /* INFRINGES ON USER NAME SPACE */
     288             : #   elif defined _AIX
     289             : #    define YYSTACK_ALLOC __alloca
     290             : #   elif defined _MSC_VER
     291             : #    include <malloc.h> /* INFRINGES ON USER NAME SPACE */
     292             : #    define alloca _alloca
     293             : #   else
     294             : #    define YYSTACK_ALLOC alloca
     295             : #    if ! defined _ALLOCA_H && ! defined EXIT_SUCCESS
     296             : #     include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
     297             :       /* Use EXIT_SUCCESS as a witness for stdlib.h.  */
     298             : #     ifndef EXIT_SUCCESS
     299             : #      define EXIT_SUCCESS 0
     300             : #     endif
     301             : #    endif
     302             : #   endif
     303             : #  endif
     304             : # endif
     305             : 
     306             : # ifdef YYSTACK_ALLOC
     307             :    /* Pacify GCC's 'empty if-body' warning.  */
     308             : #  define YYSTACK_FREE(Ptr) do { /* empty */; } while (0)
     309             : #  ifndef YYSTACK_ALLOC_MAXIMUM
     310             :     /* The OS might guarantee only one guard page at the bottom of the stack,
     311             :        and a page size can be as small as 4096 bytes.  So we cannot safely
     312             :        invoke alloca (N) if N exceeds 4096.  Use a slightly smaller number
     313             :        to allow for a few compiler-allocated temporary stack slots.  */
     314             : #   define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */
     315             : #  endif
     316             : # else
     317             : #  define YYSTACK_ALLOC YYMALLOC
     318             : #  define YYSTACK_FREE YYFREE
     319             : #  ifndef YYSTACK_ALLOC_MAXIMUM
     320             : #   define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM
     321             : #  endif
     322             : #  if (defined __cplusplus && ! defined EXIT_SUCCESS \
     323             :        && ! ((defined YYMALLOC || defined malloc) \
     324             :              && (defined YYFREE || defined free)))
     325             : #   include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
     326             : #   ifndef EXIT_SUCCESS
     327             : #    define EXIT_SUCCESS 0
     328             : #   endif
     329             : #  endif
     330             : #  ifndef YYMALLOC
     331             : #   define YYMALLOC malloc
     332             : #   if ! defined malloc && ! defined EXIT_SUCCESS
     333             : void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */
     334             : #   endif
     335             : #  endif
     336             : #  ifndef YYFREE
     337             : #   define YYFREE free
     338             : #   if ! defined free && ! defined EXIT_SUCCESS
     339             : void free (void *); /* INFRINGES ON USER NAME SPACE */
     340             : #   endif
     341             : #  endif
     342             : # endif
     343             : #endif /* ! defined yyoverflow || YYERROR_VERBOSE */
     344             : 
     345             : 
     346             : #if (! defined yyoverflow \
     347             :      && (! defined __cplusplus \
     348             :          || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))
     349             : 
     350             : /* A type that is properly aligned for any stack member.  */
     351             : union yyalloc
     352             : {
     353             :   yytype_int16 yyss_alloc;
     354             :   YYSTYPE yyvs_alloc;
     355             : };
     356             : 
     357             : /* The size of the maximum gap between one aligned stack and the next.  */
     358             : # define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1)
     359             : 
     360             : /* The size of an array large to enough to hold all stacks, each with
     361             :    N elements.  */
     362             : # define YYSTACK_BYTES(N) \
     363             :      ((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \
     364             :       + YYSTACK_GAP_MAXIMUM)
     365             : 
     366             : # define YYCOPY_NEEDED 1
     367             : 
     368             : /* Relocate STACK from its old location to the new one.  The
     369             :    local variables YYSIZE and YYSTACKSIZE give the old and new number of
     370             :    elements in the stack, and YYPTR gives the new location of the
     371             :    stack.  Advance YYPTR to a properly aligned location for the next
     372             :    stack.  */
     373             : # define YYSTACK_RELOCATE(Stack_alloc, Stack)                           \
     374             :     do                                                                  \
     375             :       {                                                                 \
     376             :         YYSIZE_T yynewbytes;                                            \
     377             :         YYCOPY (&yyptr->Stack_alloc, Stack, yysize);                    \
     378             :         Stack = &yyptr->Stack_alloc;                                    \
     379             :         yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
     380             :         yyptr += yynewbytes / sizeof (*yyptr);                          \
     381             :       }                                                                 \
     382             :     while (0)
     383             : 
     384             : #endif
     385             : 
     386             : #if defined YYCOPY_NEEDED && YYCOPY_NEEDED
     387             : /* Copy COUNT objects from SRC to DST.  The source and destination do
     388             :    not overlap.  */
     389             : # ifndef YYCOPY
     390             : #  if defined __GNUC__ && 1 < __GNUC__
     391             : #   define YYCOPY(Dst, Src, Count) \
     392             :       __builtin_memcpy (Dst, Src, (Count) * sizeof (*(Src)))
     393             : #  else
     394             : #   define YYCOPY(Dst, Src, Count)              \
     395             :       do                                        \
     396             :         {                                       \
     397             :           YYSIZE_T yyi;                         \
     398             :           for (yyi = 0; yyi < (Count); yyi++)   \
     399             :             (Dst)[yyi] = (Src)[yyi];            \
     400             :         }                                       \
     401             :       while (0)
     402             : #  endif
     403             : # endif
     404             : #endif /* !YYCOPY_NEEDED */
     405             : 
     406             : /* YYFINAL -- State number of the termination state.  */
     407             : #define YYFINAL  3
     408             : /* YYLAST -- Last index in YYTABLE.  */
     409             : #define YYLAST   30
     410             : 
     411             : /* YYNTOKENS -- Number of terminals.  */
     412             : #define YYNTOKENS  11
     413             : /* YYNNTS -- Number of nonterminals.  */
     414             : #define YYNNTS  14
     415             : /* YYNRULES -- Number of rules.  */
     416             : #define YYNRULES  22
     417             : /* YYNSTATES -- Number of states.  */
     418             : #define YYNSTATES  32
     419             : 
     420             : #define YYUNDEFTOK  2
     421             : #define YYMAXUTOK   265
     422             : 
     423             : /* YYTRANSLATE(TOKEN-NUM) -- Symbol number corresponding to TOKEN-NUM
     424             :    as returned by yylex, with out-of-bounds checking.  */
     425             : #define YYTRANSLATE(YYX)                                                \
     426             :   ((unsigned) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
     427             : 
     428             : /* YYTRANSLATE[TOKEN-NUM] -- Symbol number corresponding to TOKEN-NUM
     429             :    as returned by yylex.  */
     430             : static const yytype_uint8 yytranslate[] =
     431             : {
     432             :        0,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     433             :        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     434             :        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     435             :        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     436             :        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     437             :        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     438             :        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     439             :        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     440             :        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     441             :        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     442             :        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     443             :        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     444             :        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     445             :        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     446             :        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     447             :        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     448             :        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     449             :        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     450             :        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     451             :        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     452             :        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     453             :        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     454             :        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     455             :        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     456             :        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     457             :        2,     2,     2,     2,     2,     2,     1,     2,     3,     4,
     458             :        5,     6,     7,     8,     9,    10
     459             : };
     460             : 
     461             : #if YYDEBUG
     462             :   /* YYRLINE[YYN] -- Source line where rule number YYN was defined.  */
     463             : static const yytype_uint8 yyrline[] =
     464             : {
     465             :        0,    53,    53,    70,    74,    84,    85,    89,    93,    94,
     466             :       98,   105,   114,   126,   133,   143,   155,   160,   166,   173,
     467             :      183,   192,   199
     468             : };
     469             : #endif
     470             : 
     471             : #if YYDEBUG || YYERROR_VERBOSE || 0
     472             : /* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
     473             :    First, the terminals, then, starting at YYNTOKENS, nonterminals.  */
     474             : static const char *const yytname[] =
     475             : {
     476             :   "$end", "error", "$undefined", "sqlblock", "string_literal",
     477             :   "PERMUTATION", "SESSION", "SETUP", "STEP", "TEARDOWN", "TEST", "$accept",
     478             :   "TestSpec", "setup_list", "opt_setup", "setup", "opt_teardown",
     479             :   "session_list", "session", "step_list", "step", "opt_permutation_list",
     480             :   "permutation_list", "permutation", "string_literal_list", YY_NULLPTR
     481             : };
     482             : #endif
     483             : 
     484             : # ifdef YYPRINT
     485             : /* YYTOKNUM[NUM] -- (External) token number corresponding to the
     486             :    (internal) symbol number NUM (which must be that of a token).  */
     487             : static const yytype_uint16 yytoknum[] =
     488             : {
     489             :        0,   256,   257,   258,   259,   260,   261,   262,   263,   264,
     490             :      265
     491             : };
     492             : # endif
     493             : 
     494             : #define YYPACT_NINF -15
     495             : 
     496             : #define yypact_value_is_default(Yystate) \
     497             :   (!!((Yystate) == (-15)))
     498             : 
     499             : #define YYTABLE_NINF -1
     500             : 
     501             : #define yytable_value_is_error(Yytable_value) \
     502             :   0
     503             : 
     504             :   /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
     505             :      STATE-NUM.  */
     506             : static const yytype_int8 yypact[] =
     507             : {
     508             :      -15,     1,    -7,   -15,     4,     5,   -15,     3,   -15,   -15,
     509             :        6,    -2,   -15,     7,     8,   -15,   -15,    10,   -15,     9,
     510             :      -15,   -15,    12,   -15,    14,    -3,   -15,   -15,    16,   -15,
     511             :      -15,   -15
     512             : };
     513             : 
     514             :   /* YYDEFACT[STATE-NUM] -- Default reduction number in state STATE-NUM.
     515             :      Performed when YYTABLE does not specify something else to do.  Zero
     516             :      means the default is an error.  */
     517             : static const yytype_uint8 yydefact[] =
     518             : {
     519             :        3,     0,     8,     1,     0,     0,     4,     0,     7,     9,
     520             :        0,    17,    11,     5,     0,    10,     2,    16,    19,     0,
     521             :        6,    22,    20,    18,     0,     8,    14,    21,     0,    12,
     522             :       13,    15
     523             : };
     524             : 
     525             :   /* YYPGOTO[NTERM-NUM].  */
     526             : static const yytype_int8 yypgoto[] =
     527             : {
     528             :      -15,   -15,   -15,   -15,     0,   -14,   -15,    11,   -15,    -5,
     529             :      -15,   -15,    13,   -15
     530             : };
     531             : 
     532             :   /* YYDEFGOTO[NTERM-NUM].  */
     533             : static const yytype_int8 yydefgoto[] =
     534             : {
     535             :       -1,     1,     2,    19,     6,     7,    11,    12,    25,    26,
     536             :       16,    17,    18,    22
     537             : };
     538             : 
     539             :   /* YYTABLE[YYPACT[STATE-NUM]] -- What to do in state STATE-NUM.  If
     540             :      positive, shift that token.  If negative, reduce the rule whose
     541             :      number is the opposite.  If YYTABLE_NINF, syntax error.  */
     542             : static const yytype_uint8 yytable[] =
     543             : {
     544             :        4,     3,     5,    14,    10,    24,     5,     8,     9,    10,
     545             :       13,    29,    21,    20,     4,    14,    27,    24,    28,    31,
     546             :       30,     0,    15,     0,     0,     0,     0,     0,     0,     0,
     547             :       23
     548             : };
     549             : 
     550             : static const yytype_int8 yycheck[] =
     551             : {
     552             :        7,     0,     9,     5,     6,     8,     9,     3,     3,     6,
     553             :        4,    25,     4,    13,     7,     5,     4,     8,     4,     3,
     554             :       25,    -1,    11,    -1,    -1,    -1,    -1,    -1,    -1,    -1,
     555             :       17
     556             : };
     557             : 
     558             :   /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
     559             :      symbol of state STATE-NUM.  */
     560             : static const yytype_uint8 yystos[] =
     561             : {
     562             :        0,    12,    13,     0,     7,     9,    15,    16,     3,     3,
     563             :        6,    17,    18,     4,     5,    18,    21,    22,    23,    14,
     564             :       15,     4,    24,    23,     8,    19,    20,     4,     4,    16,
     565             :       20,     3
     566             : };
     567             : 
     568             :   /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives.  */
     569             : static const yytype_uint8 yyr1[] =
     570             : {
     571             :        0,    11,    12,    13,    13,    14,    14,    15,    16,    16,
     572             :       17,    17,    18,    19,    19,    20,    21,    21,    22,    22,
     573             :       23,    24,    24
     574             : };
     575             : 
     576             :   /* YYR2[YYN] -- Number of symbols on the right hand side of rule YYN.  */
     577             : static const yytype_uint8 yyr2[] =
     578             : {
     579             :        0,     2,     4,     0,     2,     0,     1,     2,     0,     2,
     580             :        2,     1,     5,     2,     1,     3,     1,     0,     2,     1,
     581             :        2,     2,     1
     582             : };
     583             : 
     584             : 
     585             : #define yyerrok         (yyerrstatus = 0)
     586             : #define yyclearin       (yychar = YYEMPTY)
     587             : #define YYEMPTY         (-2)
     588             : #define YYEOF           0
     589             : 
     590             : #define YYACCEPT        goto yyacceptlab
     591             : #define YYABORT         goto yyabortlab
     592             : #define YYERROR         goto yyerrorlab
     593             : 
     594             : 
     595             : #define YYRECOVERING()  (!!yyerrstatus)
     596             : 
     597             : #define YYBACKUP(Token, Value)                                    \
     598             :   do                                                              \
     599             :     if (yychar == YYEMPTY)                                        \
     600             :       {                                                           \
     601             :         yychar = (Token);                                         \
     602             :         yylval = (Value);                                         \
     603             :         YYPOPSTACK (yylen);                                       \
     604             :         yystate = *yyssp;                                         \
     605             :         goto yybackup;                                            \
     606             :       }                                                           \
     607             :     else                                                          \
     608             :       {                                                           \
     609             :         yyerror (YY_("syntax error: cannot back up")); \
     610             :         YYERROR;                                                  \
     611             :       }                                                           \
     612             :   while (0)
     613             : 
     614             : /* Error token number */
     615             : #define YYTERROR        1
     616             : #define YYERRCODE       256
     617             : 
     618             : 
     619             : 
     620             : /* Enable debugging if requested.  */
     621             : #if YYDEBUG
     622             : 
     623             : # ifndef YYFPRINTF
     624             : #  include <stdio.h> /* INFRINGES ON USER NAME SPACE */
     625             : #  define YYFPRINTF fprintf
     626             : # endif
     627             : 
     628             : # define YYDPRINTF(Args)                        \
     629             : do {                                            \
     630             :   if (yydebug)                                  \
     631             :     YYFPRINTF Args;                             \
     632             : } while (0)
     633             : 
     634             : /* This macro is provided for backward compatibility. */
     635             : #ifndef YY_LOCATION_PRINT
     636             : # define YY_LOCATION_PRINT(File, Loc) ((void) 0)
     637             : #endif
     638             : 
     639             : 
     640             : # define YY_SYMBOL_PRINT(Title, Type, Value, Location)                    \
     641             : do {                                                                      \
     642             :   if (yydebug)                                                            \
     643             :     {                                                                     \
     644             :       YYFPRINTF (stderr, "%s ", Title);                                   \
     645             :       yy_symbol_print (stderr,                                            \
     646             :                   Type, Value); \
     647             :       YYFPRINTF (stderr, "\n");                                           \
     648             :     }                                                                     \
     649             : } while (0)
     650             : 
     651             : 
     652             : /*-----------------------------------.
     653             : | Print this symbol's value on YYO.  |
     654             : `-----------------------------------*/
     655             : 
     656             : static void
     657             : yy_symbol_value_print (FILE *yyo, int yytype, YYSTYPE const * const yyvaluep)
     658             : {
     659             :   FILE *yyoutput = yyo;
     660             :   YYUSE (yyoutput);
     661             :   if (!yyvaluep)
     662             :     return;
     663             : # ifdef YYPRINT
     664             :   if (yytype < YYNTOKENS)
     665             :     YYPRINT (yyo, yytoknum[yytype], *yyvaluep);
     666             : # endif
     667             :   YYUSE (yytype);
     668             : }
     669             : 
     670             : 
     671             : /*---------------------------.
     672             : | Print this symbol on YYO.  |
     673             : `---------------------------*/
     674             : 
     675             : static void
     676             : yy_symbol_print (FILE *yyo, int yytype, YYSTYPE const * const yyvaluep)
     677             : {
     678             :   YYFPRINTF (yyo, "%s %s (",
     679             :              yytype < YYNTOKENS ? "token" : "nterm", yytname[yytype]);
     680             : 
     681             :   yy_symbol_value_print (yyo, yytype, yyvaluep);
     682             :   YYFPRINTF (yyo, ")");
     683             : }
     684             : 
     685             : /*------------------------------------------------------------------.
     686             : | yy_stack_print -- Print the state stack from its BOTTOM up to its |
     687             : | TOP (included).                                                   |
     688             : `------------------------------------------------------------------*/
     689             : 
     690             : static void
     691             : yy_stack_print (yytype_int16 *yybottom, yytype_int16 *yytop)
     692             : {
     693             :   YYFPRINTF (stderr, "Stack now");
     694             :   for (; yybottom <= yytop; yybottom++)
     695             :     {
     696             :       int yybot = *yybottom;
     697             :       YYFPRINTF (stderr, " %d", yybot);
     698             :     }
     699             :   YYFPRINTF (stderr, "\n");
     700             : }
     701             : 
     702             : # define YY_STACK_PRINT(Bottom, Top)                            \
     703             : do {                                                            \
     704             :   if (yydebug)                                                  \
     705             :     yy_stack_print ((Bottom), (Top));                           \
     706             : } while (0)
     707             : 
     708             : 
     709             : /*------------------------------------------------.
     710             : | Report that the YYRULE is going to be reduced.  |
     711             : `------------------------------------------------*/
     712             : 
     713             : static void
     714             : yy_reduce_print (yytype_int16 *yyssp, YYSTYPE *yyvsp, int yyrule)
     715             : {
     716             :   unsigned long yylno = yyrline[yyrule];
     717             :   int yynrhs = yyr2[yyrule];
     718             :   int yyi;
     719             :   YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu):\n",
     720             :              yyrule - 1, yylno);
     721             :   /* The symbols being reduced.  */
     722             :   for (yyi = 0; yyi < yynrhs; yyi++)
     723             :     {
     724             :       YYFPRINTF (stderr, "   $%d = ", yyi + 1);
     725             :       yy_symbol_print (stderr,
     726             :                        yystos[yyssp[yyi + 1 - yynrhs]],
     727             :                        &yyvsp[(yyi + 1) - (yynrhs)]
     728             :                                               );
     729             :       YYFPRINTF (stderr, "\n");
     730             :     }
     731             : }
     732             : 
     733             : # define YY_REDUCE_PRINT(Rule)          \
     734             : do {                                    \
     735             :   if (yydebug)                          \
     736             :     yy_reduce_print (yyssp, yyvsp, Rule); \
     737             : } while (0)
     738             : 
     739             : /* Nonzero means print parse trace.  It is left uninitialized so that
     740             :    multiple parsers can coexist.  */
     741             : int yydebug;
     742             : #else /* !YYDEBUG */
     743             : # define YYDPRINTF(Args)
     744             : # define YY_SYMBOL_PRINT(Title, Type, Value, Location)
     745             : # define YY_STACK_PRINT(Bottom, Top)
     746             : # define YY_REDUCE_PRINT(Rule)
     747             : #endif /* !YYDEBUG */
     748             : 
     749             : 
     750             : /* YYINITDEPTH -- initial size of the parser's stacks.  */
     751             : #ifndef YYINITDEPTH
     752             : # define YYINITDEPTH 200
     753             : #endif
     754             : 
     755             : /* YYMAXDEPTH -- maximum size the stacks can grow to (effective only
     756             :    if the built-in stack extension method is used).
     757             : 
     758             :    Do not make this value too large; the results are undefined if
     759             :    YYSTACK_ALLOC_MAXIMUM < YYSTACK_BYTES (YYMAXDEPTH)
     760             :    evaluated with infinite-precision integer arithmetic.  */
     761             : 
     762             : #ifndef YYMAXDEPTH
     763             : # define YYMAXDEPTH 10000
     764             : #endif
     765             : 
     766             : 
     767             : #if YYERROR_VERBOSE
     768             : 
     769             : # ifndef yystrlen
     770             : #  if defined __GLIBC__ && defined _STRING_H
     771             : #   define yystrlen strlen
     772             : #  else
     773             : /* Return the length of YYSTR.  */
     774             : static YYSIZE_T
     775             : yystrlen (const char *yystr)
     776             : {
     777             :   YYSIZE_T yylen;
     778             :   for (yylen = 0; yystr[yylen]; yylen++)
     779             :     continue;
     780             :   return yylen;
     781             : }
     782             : #  endif
     783             : # endif
     784             : 
     785             : # ifndef yystpcpy
     786             : #  if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE
     787             : #   define yystpcpy stpcpy
     788             : #  else
     789             : /* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in
     790             :    YYDEST.  */
     791             : static char *
     792             : yystpcpy (char *yydest, const char *yysrc)
     793             : {
     794             :   char *yyd = yydest;
     795             :   const char *yys = yysrc;
     796             : 
     797             :   while ((*yyd++ = *yys++) != '\0')
     798             :     continue;
     799             : 
     800             :   return yyd - 1;
     801             : }
     802             : #  endif
     803             : # endif
     804             : 
     805             : # ifndef yytnamerr
     806             : /* Copy to YYRES the contents of YYSTR after stripping away unnecessary
     807             :    quotes and backslashes, so that it's suitable for yyerror.  The
     808             :    heuristic is that double-quoting is unnecessary unless the string
     809             :    contains an apostrophe, a comma, or backslash (other than
     810             :    backslash-backslash).  YYSTR is taken from yytname.  If YYRES is
     811             :    null, do not copy; instead, return the length of what the result
     812             :    would have been.  */
     813             : static YYSIZE_T
     814             : yytnamerr (char *yyres, const char *yystr)
     815             : {
     816             :   if (*yystr == '"')
     817             :     {
     818             :       YYSIZE_T yyn = 0;
     819             :       char const *yyp = yystr;
     820             : 
     821             :       for (;;)
     822             :         switch (*++yyp)
     823             :           {
     824             :           case '\'':
     825             :           case ',':
     826             :             goto do_not_strip_quotes;
     827             : 
     828             :           case '\\':
     829             :             if (*++yyp != '\\')
     830             :               goto do_not_strip_quotes;
     831             :             else
     832             :               goto append;
     833             : 
     834             :           append:
     835             :           default:
     836             :             if (yyres)
     837             :               yyres[yyn] = *yyp;
     838             :             yyn++;
     839             :             break;
     840             : 
     841             :           case '"':
     842             :             if (yyres)
     843             :               yyres[yyn] = '\0';
     844             :             return yyn;
     845             :           }
     846             :     do_not_strip_quotes: ;
     847             :     }
     848             : 
     849             :   if (! yyres)
     850             :     return yystrlen (yystr);
     851             : 
     852             :   return (YYSIZE_T) (yystpcpy (yyres, yystr) - yyres);
     853             : }
     854             : # endif
     855             : 
     856             : /* Copy into *YYMSG, which is of size *YYMSG_ALLOC, an error message
     857             :    about the unexpected token YYTOKEN for the state stack whose top is
     858             :    YYSSP.
     859             : 
     860             :    Return 0 if *YYMSG was successfully written.  Return 1 if *YYMSG is
     861             :    not large enough to hold the message.  In that case, also set
     862             :    *YYMSG_ALLOC to the required number of bytes.  Return 2 if the
     863             :    required number of bytes is too large to store.  */
     864             : static int
     865             : yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg,
     866             :                 yytype_int16 *yyssp, int yytoken)
     867             : {
     868             :   YYSIZE_T yysize0 = yytnamerr (YY_NULLPTR, yytname[yytoken]);
     869             :   YYSIZE_T yysize = yysize0;
     870             :   enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 };
     871             :   /* Internationalized format string. */
     872             :   const char *yyformat = YY_NULLPTR;
     873             :   /* Arguments of yyformat. */
     874             :   char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
     875             :   /* Number of reported tokens (one for the "unexpected", one per
     876             :      "expected"). */
     877             :   int yycount = 0;
     878             : 
     879             :   /* There are many possibilities here to consider:
     880             :      - If this state is a consistent state with a default action, then
     881             :        the only way this function was invoked is if the default action
     882             :        is an error action.  In that case, don't check for expected
     883             :        tokens because there are none.
     884             :      - The only way there can be no lookahead present (in yychar) is if
     885             :        this state is a consistent state with a default action.  Thus,
     886             :        detecting the absence of a lookahead is sufficient to determine
     887             :        that there is no unexpected or expected token to report.  In that
     888             :        case, just report a simple "syntax error".
     889             :      - Don't assume there isn't a lookahead just because this state is a
     890             :        consistent state with a default action.  There might have been a
     891             :        previous inconsistent state, consistent state with a non-default
     892             :        action, or user semantic action that manipulated yychar.
     893             :      - Of course, the expected token list depends on states to have
     894             :        correct lookahead information, and it depends on the parser not
     895             :        to perform extra reductions after fetching a lookahead from the
     896             :        scanner and before detecting a syntax error.  Thus, state merging
     897             :        (from LALR or IELR) and default reductions corrupt the expected
     898             :        token list.  However, the list is correct for canonical LR with
     899             :        one exception: it will still contain any token that will not be
     900             :        accepted due to an error action in a later state.
     901             :   */
     902             :   if (yytoken != YYEMPTY)
     903             :     {
     904             :       int yyn = yypact[*yyssp];
     905             :       yyarg[yycount++] = yytname[yytoken];
     906             :       if (!yypact_value_is_default (yyn))
     907             :         {
     908             :           /* Start YYX at -YYN if negative to avoid negative indexes in
     909             :              YYCHECK.  In other words, skip the first -YYN actions for
     910             :              this state because they are default actions.  */
     911             :           int yyxbegin = yyn < 0 ? -yyn : 0;
     912             :           /* Stay within bounds of both yycheck and yytname.  */
     913             :           int yychecklim = YYLAST - yyn + 1;
     914             :           int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS;
     915             :           int yyx;
     916             : 
     917             :           for (yyx = yyxbegin; yyx < yyxend; ++yyx)
     918             :             if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR
     919             :                 && !yytable_value_is_error (yytable[yyx + yyn]))
     920             :               {
     921             :                 if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM)
     922             :                   {
     923             :                     yycount = 1;
     924             :                     yysize = yysize0;
     925             :                     break;
     926             :                   }
     927             :                 yyarg[yycount++] = yytname[yyx];
     928             :                 {
     929             :                   YYSIZE_T yysize1 = yysize + yytnamerr (YY_NULLPTR, yytname[yyx]);
     930             :                   if (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM)
     931             :                     yysize = yysize1;
     932             :                   else
     933             :                     return 2;
     934             :                 }
     935             :               }
     936             :         }
     937             :     }
     938             : 
     939             :   switch (yycount)
     940             :     {
     941             : # define YYCASE_(N, S)                      \
     942             :       case N:                               \
     943             :         yyformat = S;                       \
     944             :       break
     945             :     default: /* Avoid compiler warnings. */
     946             :       YYCASE_(0, YY_("syntax error"));
     947             :       YYCASE_(1, YY_("syntax error, unexpected %s"));
     948             :       YYCASE_(2, YY_("syntax error, unexpected %s, expecting %s"));
     949             :       YYCASE_(3, YY_("syntax error, unexpected %s, expecting %s or %s"));
     950             :       YYCASE_(4, YY_("syntax error, unexpected %s, expecting %s or %s or %s"));
     951             :       YYCASE_(5, YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s"));
     952             : # undef YYCASE_
     953             :     }
     954             : 
     955             :   {
     956             :     YYSIZE_T yysize1 = yysize + yystrlen (yyformat);
     957             :     if (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM)
     958             :       yysize = yysize1;
     959             :     else
     960             :       return 2;
     961             :   }
     962             : 
     963             :   if (*yymsg_alloc < yysize)
     964             :     {
     965             :       *yymsg_alloc = 2 * yysize;
     966             :       if (! (yysize <= *yymsg_alloc
     967             :              && *yymsg_alloc <= YYSTACK_ALLOC_MAXIMUM))
     968             :         *yymsg_alloc = YYSTACK_ALLOC_MAXIMUM;
     969             :       return 1;
     970             :     }
     971             : 
     972             :   /* Avoid sprintf, as that infringes on the user's name space.
     973             :      Don't have undefined behavior even if the translation
     974             :      produced a string with the wrong number of "%s"s.  */
     975             :   {
     976             :     char *yyp = *yymsg;
     977             :     int yyi = 0;
     978             :     while ((*yyp = *yyformat) != '\0')
     979             :       if (*yyp == '%' && yyformat[1] == 's' && yyi < yycount)
     980             :         {
     981             :           yyp += yytnamerr (yyp, yyarg[yyi++]);
     982             :           yyformat += 2;
     983             :         }
     984             :       else
     985             :         {
     986             :           yyp++;
     987             :           yyformat++;
     988             :         }
     989             :   }
     990             :   return 0;
     991             : }
     992             : #endif /* YYERROR_VERBOSE */
     993             : 
     994             : /*-----------------------------------------------.
     995             : | Release the memory associated to this symbol.  |
     996             : `-----------------------------------------------*/
     997             : 
     998             : static void
     999         400 : yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep)
    1000             : {
    1001             :   YYUSE (yyvaluep);
    1002         400 :   if (!yymsg)
    1003           0 :     yymsg = "Deleting";
    1004             :   YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp);
    1005             : 
    1006             :   YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
    1007             :   YYUSE (yytype);
    1008             :   YY_IGNORE_MAYBE_UNINITIALIZED_END
    1009         400 : }
    1010             : 
    1011             : 
    1012             : 
    1013             : 
    1014             : /* The lookahead symbol.  */
    1015             : int yychar;
    1016             : 
    1017             : /* The semantic value of the lookahead symbol.  */
    1018             : YYSTYPE yylval;
    1019             : /* Number of syntax errors so far.  */
    1020             : int yynerrs;
    1021             : 
    1022             : 
    1023             : /*----------.
    1024             : | yyparse.  |
    1025             : `----------*/
    1026             : 
    1027             : int
    1028         200 : yyparse (void)
    1029             : {
    1030             :     int yystate;
    1031             :     /* Number of tokens to shift before error messages enabled.  */
    1032             :     int yyerrstatus;
    1033             : 
    1034             :     /* The stacks and their tools:
    1035             :        'yyss': related to states.
    1036             :        'yyvs': related to semantic values.
    1037             : 
    1038             :        Refer to the stacks through separate pointers, to allow yyoverflow
    1039             :        to reallocate them elsewhere.  */
    1040             : 
    1041             :     /* The state stack.  */
    1042             :     yytype_int16 yyssa[YYINITDEPTH];
    1043             :     yytype_int16 *yyss;
    1044             :     yytype_int16 *yyssp;
    1045             : 
    1046             :     /* The semantic value stack.  */
    1047             :     YYSTYPE yyvsa[YYINITDEPTH];
    1048             :     YYSTYPE *yyvs;
    1049             :     YYSTYPE *yyvsp;
    1050             : 
    1051             :     YYSIZE_T yystacksize;
    1052             : 
    1053             :   int yyn;
    1054             :   int yyresult;
    1055             :   /* Lookahead token as an internal (translated) token number.  */
    1056         200 :   int yytoken = 0;
    1057             :   /* The variables used to return semantic value and location from the
    1058             :      action routines.  */
    1059             :   YYSTYPE yyval;
    1060             : 
    1061             : #if YYERROR_VERBOSE
    1062             :   /* Buffer for error messages, and its allocated size.  */
    1063             :   char yymsgbuf[128];
    1064             :   char *yymsg = yymsgbuf;
    1065             :   YYSIZE_T yymsg_alloc = sizeof yymsgbuf;
    1066             : #endif
    1067             : 
    1068             : #define YYPOPSTACK(N)   (yyvsp -= (N), yyssp -= (N))
    1069             : 
    1070             :   /* The number of symbols on the RHS of the reduced rule.
    1071             :      Keep to zero when no symbol should be popped.  */
    1072         200 :   int yylen = 0;
    1073             : 
    1074         200 :   yyssp = yyss = yyssa;
    1075         200 :   yyvsp = yyvs = yyvsa;
    1076         200 :   yystacksize = YYINITDEPTH;
    1077             : 
    1078             :   YYDPRINTF ((stderr, "Starting parse\n"));
    1079             : 
    1080         200 :   yystate = 0;
    1081         200 :   yyerrstatus = 0;
    1082         200 :   yynerrs = 0;
    1083         200 :   yychar = YYEMPTY; /* Cause a token to be read.  */
    1084         200 :   goto yysetstate;
    1085             : 
    1086             : 
    1087             : /*------------------------------------------------------------.
    1088             : | yynewstate -- push a new state, which is found in yystate.  |
    1089             : `------------------------------------------------------------*/
    1090       46522 : yynewstate:
    1091             :   /* In all cases, when you get here, the value and location stacks
    1092             :      have just been pushed.  So pushing a state here evens the stacks.  */
    1093       46522 :   yyssp++;
    1094             : 
    1095             : 
    1096             : /*--------------------------------------------------------------------.
    1097             : | yynewstate -- set current state (the top of the stack) to yystate.  |
    1098             : `--------------------------------------------------------------------*/
    1099       46722 : yysetstate:
    1100       46722 :   *yyssp = (yytype_int16) yystate;
    1101             : 
    1102       46722 :   if (yyss + yystacksize - 1 <= yyssp)
    1103             : #if !defined yyoverflow && !defined YYSTACK_RELOCATE
    1104             :     goto yyexhaustedlab;
    1105             : #else
    1106             :     {
    1107             :       /* Get the current used size of the three stacks, in elements.  */
    1108           0 :       YYSIZE_T yysize = (YYSIZE_T) (yyssp - yyss + 1);
    1109             : 
    1110             : # if defined yyoverflow
    1111             :       {
    1112             :         /* Give user a chance to reallocate the stack.  Use copies of
    1113             :            these so that the &'s don't force the real ones into
    1114             :            memory.  */
    1115             :         YYSTYPE *yyvs1 = yyvs;
    1116             :         yytype_int16 *yyss1 = yyss;
    1117             : 
    1118             :         /* Each stack pointer address is followed by the size of the
    1119             :            data in use in that stack, in bytes.  This used to be a
    1120             :            conditional around just the two extra args, but that might
    1121             :            be undefined if yyoverflow is a macro.  */
    1122             :         yyoverflow (YY_("memory exhausted"),
    1123             :                     &yyss1, yysize * sizeof (*yyssp),
    1124             :                     &yyvs1, yysize * sizeof (*yyvsp),
    1125             :                     &yystacksize);
    1126             :         yyss = yyss1;
    1127             :         yyvs = yyvs1;
    1128             :       }
    1129             : # else /* defined YYSTACK_RELOCATE */
    1130             :       /* Extend the stack our own way.  */
    1131           0 :       if (YYMAXDEPTH <= yystacksize)
    1132           0 :         goto yyexhaustedlab;
    1133           0 :       yystacksize *= 2;
    1134           0 :       if (YYMAXDEPTH < yystacksize)
    1135           0 :         yystacksize = YYMAXDEPTH;
    1136             : 
    1137             :       {
    1138           0 :         yytype_int16 *yyss1 = yyss;
    1139             :         union yyalloc *yyptr =
    1140           0 :           (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize));
    1141           0 :         if (! yyptr)
    1142           0 :           goto yyexhaustedlab;
    1143           0 :         YYSTACK_RELOCATE (yyss_alloc, yyss);
    1144           0 :         YYSTACK_RELOCATE (yyvs_alloc, yyvs);
    1145             : # undef YYSTACK_RELOCATE
    1146           0 :         if (yyss1 != yyssa)
    1147           0 :           YYSTACK_FREE (yyss1);
    1148             :       }
    1149             : # endif
    1150             : 
    1151           0 :       yyssp = yyss + yysize - 1;
    1152           0 :       yyvsp = yyvs + yysize - 1;
    1153             : 
    1154             :       YYDPRINTF ((stderr, "Stack size increased to %lu\n",
    1155             :                   (unsigned long) yystacksize));
    1156             : 
    1157           0 :       if (yyss + yystacksize - 1 <= yyssp)
    1158           0 :         YYABORT;
    1159             :     }
    1160             : #endif /* !defined yyoverflow && !defined YYSTACK_RELOCATE */
    1161             : 
    1162             :   YYDPRINTF ((stderr, "Entering state %d\n", yystate));
    1163             : 
    1164       46722 :   if (yystate == YYFINAL)
    1165         200 :     YYACCEPT;
    1166             : 
    1167       46522 :   goto yybackup;
    1168             : 
    1169             : 
    1170             : /*-----------.
    1171             : | yybackup.  |
    1172             : `-----------*/
    1173       46522 : yybackup:
    1174             :   /* Do appropriate processing given the current state.  Read a
    1175             :      lookahead token if we need one and don't already have one.  */
    1176             : 
    1177             :   /* First try to decide what to do without reference to lookahead token.  */
    1178       46522 :   yyn = yypact[yystate];
    1179       46522 :   if (yypact_value_is_default (yyn))
    1180       21048 :     goto yydefault;
    1181             : 
    1182             :   /* Not known => get a lookahead token if don't already have one.  */
    1183             : 
    1184             :   /* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol.  */
    1185       25474 :   if (yychar == YYEMPTY)
    1186             :     {
    1187             :       YYDPRINTF ((stderr, "Reading a token: "));
    1188       22942 :       yychar = yylex ();
    1189             :     }
    1190             : 
    1191       25474 :   if (yychar <= YYEOF)
    1192             :     {
    1193         600 :       yychar = yytoken = YYEOF;
    1194             :       YYDPRINTF ((stderr, "Now at end of input.\n"));
    1195             :     }
    1196             :   else
    1197             :     {
    1198       24874 :       yytoken = YYTRANSLATE (yychar);
    1199             :       YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc);
    1200             :     }
    1201             : 
    1202             :   /* If the proper action on seeing token YYTOKEN is to reduce or to
    1203             :      detect an error, take that action.  */
    1204       25474 :   yyn += yytoken;
    1205       25474 :   if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken)
    1206        2532 :     goto yydefault;
    1207       22942 :   yyn = yytable[yyn];
    1208       22942 :   if (yyn <= 0)
    1209             :     {
    1210             :       if (yytable_value_is_error (yyn))
    1211             :         goto yyerrlab;
    1212           0 :       yyn = -yyn;
    1213           0 :       goto yyreduce;
    1214             :     }
    1215             : 
    1216             :   /* Count tokens shifted since error; after three, turn off error
    1217             :      status.  */
    1218       22942 :   if (yyerrstatus)
    1219           0 :     yyerrstatus--;
    1220             : 
    1221             :   /* Shift the lookahead token.  */
    1222             :   YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc);
    1223             : 
    1224             :   /* Discard the shifted token.  */
    1225       22942 :   yychar = YYEMPTY;
    1226             : 
    1227       22942 :   yystate = yyn;
    1228             :   YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
    1229       22942 :   *++yyvsp = yylval;
    1230             :   YY_IGNORE_MAYBE_UNINITIALIZED_END
    1231             : 
    1232       22942 :   goto yynewstate;
    1233             : 
    1234             : 
    1235             : /*-----------------------------------------------------------.
    1236             : | yydefault -- do the default action for the current state.  |
    1237             : `-----------------------------------------------------------*/
    1238       23580 : yydefault:
    1239       23580 :   yyn = yydefact[yystate];
    1240       23580 :   if (yyn == 0)
    1241           0 :     goto yyerrlab;
    1242       23580 :   goto yyreduce;
    1243             : 
    1244             : 
    1245             : /*-----------------------------.
    1246             : | yyreduce -- do a reduction.  |
    1247             : `-----------------------------*/
    1248       23580 : yyreduce:
    1249             :   /* yyn is the number of a rule to reduce with.  */
    1250       23580 :   yylen = yyr2[yyn];
    1251             : 
    1252             :   /* If YYLEN is nonzero, implement the default value of the action:
    1253             :      '$$ = $1'.
    1254             : 
    1255             :      Otherwise, the following line sets YYVAL to garbage.
    1256             :      This behavior is undocumented and Bison
    1257             :      users should not rely upon it.  Assigning to YYVAL
    1258             :      unconditionally makes the parser a bit smaller, and it avoids a
    1259             :      GCC warning that YYVAL may be used uninitialized.  */
    1260       23580 :   yyval = yyvsp[1-yylen];
    1261             : 
    1262             : 
    1263             :   YY_REDUCE_PRINT (yyn);
    1264       23580 :   switch (yyn)
    1265             :     {
    1266         200 :         case 2:
    1267             : #line 57 "specparse.y" /* yacc.c:1652  */
    1268             :     {
    1269             :                 parseresult.setupsqls = (char **) (yyvsp[-3].ptr_list).elements;
    1270             :                 parseresult.nsetupsqls = (yyvsp[-3].ptr_list).nelements;
    1271             :                 parseresult.teardownsql = (yyvsp[-2].str);
    1272             :                 parseresult.sessions = (Session **) (yyvsp[-1].ptr_list).elements;
    1273             :                 parseresult.nsessions = (yyvsp[-1].ptr_list).nelements;
    1274             :                 parseresult.permutations = (Permutation **) (yyvsp[0].ptr_list).elements;
    1275             :                 parseresult.npermutations = (yyvsp[0].ptr_list).nelements;
    1276             :             }
    1277             : #line 1278 "specparse.c" /* yacc.c:1652  */
    1278         200 :     break;
    1279             : 
    1280         200 :   case 3:
    1281             : #line 70 "specparse.y" /* yacc.c:1652  */
    1282             :     {
    1283             :                 (yyval.ptr_list).elements = NULL;
    1284             :                 (yyval.ptr_list).nelements = 0;
    1285             :             }
    1286             : #line 1287 "specparse.c" /* yacc.c:1652  */
    1287         200 :     break;
    1288             : 
    1289         210 :   case 4:
    1290             : #line 75 "specparse.y" /* yacc.c:1652  */
    1291             :     {
    1292             :                 (yyval.ptr_list).elements = pg_realloc((yyvsp[-1].ptr_list).elements,
    1293             :                                          ((yyvsp[-1].ptr_list).nelements + 1) * sizeof(void *));
    1294             :                 (yyval.ptr_list).elements[(yyvsp[-1].ptr_list).nelements] = (yyvsp[0].str);
    1295             :                 (yyval.ptr_list).nelements = (yyvsp[-1].ptr_list).nelements + 1;
    1296             :             }
    1297             : #line 1298 "specparse.c" /* yacc.c:1652  */
    1298         210 :     break;
    1299             : 
    1300         162 :   case 5:
    1301             : #line 84 "specparse.y" /* yacc.c:1652  */
    1302             :     { (yyval.str) = NULL; }
    1303             : #line 1304 "specparse.c" /* yacc.c:1652  */
    1304         162 :     break;
    1305             : 
    1306         326 :   case 6:
    1307             : #line 85 "specparse.y" /* yacc.c:1652  */
    1308             :     { (yyval.str) = (yyvsp[0].str); }
    1309             : #line 1310 "specparse.c" /* yacc.c:1652  */
    1310         326 :     break;
    1311             : 
    1312         536 :   case 7:
    1313             : #line 89 "specparse.y" /* yacc.c:1652  */
    1314             :     { (yyval.str) = (yyvsp[0].str); }
    1315             : #line 1316 "specparse.c" /* yacc.c:1652  */
    1316         536 :     break;
    1317             : 
    1318         456 :   case 8:
    1319             : #line 93 "specparse.y" /* yacc.c:1652  */
    1320             :     { (yyval.str) = NULL; }
    1321             : #line 1322 "specparse.c" /* yacc.c:1652  */
    1322         456 :     break;
    1323             : 
    1324         232 :   case 9:
    1325             : #line 94 "specparse.y" /* yacc.c:1652  */
    1326             :     { (yyval.str) = (yyvsp[0].str); }
    1327             : #line 1328 "specparse.c" /* yacc.c:1652  */
    1328         232 :     break;
    1329             : 
    1330         288 :   case 10:
    1331             : #line 99 "specparse.y" /* yacc.c:1652  */
    1332             :     {
    1333             :                 (yyval.ptr_list).elements = pg_realloc((yyvsp[-1].ptr_list).elements,
    1334             :                                          ((yyvsp[-1].ptr_list).nelements + 1) * sizeof(void *));
    1335             :                 (yyval.ptr_list).elements[(yyvsp[-1].ptr_list).nelements] = (yyvsp[0].session);
    1336             :                 (yyval.ptr_list).nelements = (yyvsp[-1].ptr_list).nelements + 1;
    1337             :             }
    1338             : #line 1339 "specparse.c" /* yacc.c:1652  */
    1339         288 :     break;
    1340             : 
    1341         200 :   case 11:
    1342             : #line 106 "specparse.y" /* yacc.c:1652  */
    1343             :     {
    1344             :                 (yyval.ptr_list).nelements = 1;
    1345             :                 (yyval.ptr_list).elements = pg_malloc(sizeof(void *));
    1346             :                 (yyval.ptr_list).elements[0] = (yyvsp[0].session);
    1347             :             }
    1348             : #line 1349 "specparse.c" /* yacc.c:1652  */
    1349         200 :     break;
    1350             : 
    1351         488 :   case 12:
    1352             : #line 115 "specparse.y" /* yacc.c:1652  */
    1353             :     {
    1354             :                 (yyval.session) = pg_malloc(sizeof(Session));
    1355             :                 (yyval.session)->name = (yyvsp[-3].str);
    1356             :                 (yyval.session)->setupsql = (yyvsp[-2].str);
    1357             :                 (yyval.session)->steps = (Step **) (yyvsp[-1].ptr_list).elements;
    1358             :                 (yyval.session)->nsteps = (yyvsp[-1].ptr_list).nelements;
    1359             :                 (yyval.session)->teardownsql = (yyvsp[0].str);
    1360             :             }
    1361             : #line 1362 "specparse.c" /* yacc.c:1652  */
    1362         488 :     break;
    1363             : 
    1364        1374 :   case 13:
    1365             : #line 127 "specparse.y" /* yacc.c:1652  */
    1366             :     {
    1367             :                 (yyval.ptr_list).elements = pg_realloc((yyvsp[-1].ptr_list).elements,
    1368             :                                          ((yyvsp[-1].ptr_list).nelements + 1) * sizeof(void *));
    1369             :                 (yyval.ptr_list).elements[(yyvsp[-1].ptr_list).nelements] = (yyvsp[0].step);
    1370             :                 (yyval.ptr_list).nelements = (yyvsp[-1].ptr_list).nelements + 1;
    1371             :             }
    1372             : #line 1373 "specparse.c" /* yacc.c:1652  */
    1373        1374 :     break;
    1374             : 
    1375         488 :   case 14:
    1376             : #line 134 "specparse.y" /* yacc.c:1652  */
    1377             :     {
    1378             :                 (yyval.ptr_list).nelements = 1;
    1379             :                 (yyval.ptr_list).elements = pg_malloc(sizeof(void *));
    1380             :                 (yyval.ptr_list).elements[0] = (yyvsp[0].step);
    1381             :             }
    1382             : #line 1383 "specparse.c" /* yacc.c:1652  */
    1383         488 :     break;
    1384             : 
    1385        1862 :   case 15:
    1386             : #line 144 "specparse.y" /* yacc.c:1652  */
    1387             :     {
    1388             :                 (yyval.step) = pg_malloc(sizeof(Step));
    1389             :                 (yyval.step)->name = (yyvsp[-1].str);
    1390             :                 (yyval.step)->sql = (yyvsp[0].str);
    1391             :                 (yyval.step)->used = false;
    1392             :                 (yyval.step)->errormsg = NULL;
    1393             :             }
    1394             : #line 1395 "specparse.c" /* yacc.c:1652  */
    1395        1862 :     break;
    1396             : 
    1397         168 :   case 16:
    1398             : #line 156 "specparse.y" /* yacc.c:1652  */
    1399             :     {
    1400             :                 (yyval.ptr_list) = (yyvsp[0].ptr_list);
    1401             :             }
    1402             : #line 1403 "specparse.c" /* yacc.c:1652  */
    1403         168 :     break;
    1404             : 
    1405          32 :   case 17:
    1406             : #line 160 "specparse.y" /* yacc.c:1652  */
    1407             :     {
    1408             :                 (yyval.ptr_list).elements = NULL;
    1409             :                 (yyval.ptr_list).nelements = 0;
    1410             :             }
    1411             : #line 1412 "specparse.c" /* yacc.c:1652  */
    1412          32 :     break;
    1413             : 
    1414        1546 :   case 18:
    1415             : #line 167 "specparse.y" /* yacc.c:1652  */
    1416             :     {
    1417             :                 (yyval.ptr_list).elements = pg_realloc((yyvsp[-1].ptr_list).elements,
    1418             :                                          ((yyvsp[-1].ptr_list).nelements + 1) * sizeof(void *));
    1419             :                 (yyval.ptr_list).elements[(yyvsp[-1].ptr_list).nelements] = (yyvsp[0].permutation);
    1420             :                 (yyval.ptr_list).nelements = (yyvsp[-1].ptr_list).nelements + 1;
    1421             :             }
    1422             : #line 1423 "specparse.c" /* yacc.c:1652  */
    1423        1546 :     break;
    1424             : 
    1425         168 :   case 19:
    1426             : #line 174 "specparse.y" /* yacc.c:1652  */
    1427             :     {
    1428             :                 (yyval.ptr_list).nelements = 1;
    1429             :                 (yyval.ptr_list).elements = pg_malloc(sizeof(void *));
    1430             :                 (yyval.ptr_list).elements[0] = (yyvsp[0].permutation);
    1431             :             }
    1432             : #line 1433 "specparse.c" /* yacc.c:1652  */
    1433         168 :     break;
    1434             : 
    1435        1714 :   case 20:
    1436             : #line 184 "specparse.y" /* yacc.c:1652  */
    1437             :     {
    1438             :                 (yyval.permutation) = pg_malloc(sizeof(Permutation));
    1439             :                 (yyval.permutation)->stepnames = (char **) (yyvsp[0].ptr_list).elements;
    1440             :                 (yyval.permutation)->nsteps = (yyvsp[0].ptr_list).nelements;
    1441             :             }
    1442             : #line 1443 "specparse.c" /* yacc.c:1652  */
    1443        1714 :     break;
    1444             : 
    1445       11216 :   case 21:
    1446             : #line 193 "specparse.y" /* yacc.c:1652  */
    1447             :     {
    1448             :                 (yyval.ptr_list).elements = pg_realloc((yyvsp[-1].ptr_list).elements,
    1449             :                                          ((yyvsp[-1].ptr_list).nelements + 1) * sizeof(void *));
    1450             :                 (yyval.ptr_list).elements[(yyvsp[-1].ptr_list).nelements] = (yyvsp[0].str);
    1451             :                 (yyval.ptr_list).nelements = (yyvsp[-1].ptr_list).nelements + 1;
    1452             :             }
    1453             : #line 1454 "specparse.c" /* yacc.c:1652  */
    1454       11216 :     break;
    1455             : 
    1456        1714 :   case 22:
    1457             : #line 200 "specparse.y" /* yacc.c:1652  */
    1458             :     {
    1459             :                 (yyval.ptr_list).nelements = 1;
    1460             :                 (yyval.ptr_list).elements = pg_malloc(sizeof(void *));
    1461             :                 (yyval.ptr_list).elements[0] = (yyvsp[0].str);
    1462             :             }
    1463             : #line 1464 "specparse.c" /* yacc.c:1652  */
    1464        1714 :     break;
    1465             : 
    1466             : 
    1467             : #line 1468 "specparse.c" /* yacc.c:1652  */
    1468           0 :       default: break;
    1469             :     }
    1470             :   /* User semantic actions sometimes alter yychar, and that requires
    1471             :      that yytoken be updated with the new translation.  We take the
    1472             :      approach of translating immediately before every use of yytoken.
    1473             :      One alternative is translating here after every semantic action,
    1474             :      but that translation would be missed if the semantic action invokes
    1475             :      YYABORT, YYACCEPT, or YYERROR immediately after altering yychar or
    1476             :      if it invokes YYBACKUP.  In the case of YYABORT or YYACCEPT, an
    1477             :      incorrect destructor might then be invoked immediately.  In the
    1478             :      case of YYERROR or YYBACKUP, subsequent parser actions might lead
    1479             :      to an incorrect destructor call or verbose syntax error message
    1480             :      before the lookahead is translated.  */
    1481             :   YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc);
    1482             : 
    1483       23580 :   YYPOPSTACK (yylen);
    1484       23580 :   yylen = 0;
    1485             :   YY_STACK_PRINT (yyss, yyssp);
    1486             : 
    1487       23580 :   *++yyvsp = yyval;
    1488             : 
    1489             :   /* Now 'shift' the result of the reduction.  Determine what state
    1490             :      that goes to, based on the state we popped back to and the rule
    1491             :      number reduced by.  */
    1492             :   {
    1493       23580 :     const int yylhs = yyr1[yyn] - YYNTOKENS;
    1494       23580 :     const int yyi = yypgoto[yylhs] + *yyssp;
    1495        6950 :     yystate = (0 <= yyi && yyi <= YYLAST && yycheck[yyi] == *yyssp
    1496        4022 :                ? yytable[yyi]
    1497       30530 :                : yydefgoto[yylhs]);
    1498             :   }
    1499             : 
    1500       23580 :   goto yynewstate;
    1501             : 
    1502             : 
    1503             : /*--------------------------------------.
    1504             : | yyerrlab -- here on detecting error.  |
    1505             : `--------------------------------------*/
    1506           0 : yyerrlab:
    1507             :   /* Make sure we have latest lookahead translation.  See comments at
    1508             :      user semantic actions for why this is necessary.  */
    1509           0 :   yytoken = yychar == YYEMPTY ? YYEMPTY : YYTRANSLATE (yychar);
    1510             : 
    1511             :   /* If not already recovering from an error, report this error.  */
    1512           0 :   if (!yyerrstatus)
    1513             :     {
    1514           0 :       ++yynerrs;
    1515             : #if ! YYERROR_VERBOSE
    1516           0 :       yyerror (YY_("syntax error"));
    1517             : #else
    1518             : # define YYSYNTAX_ERROR yysyntax_error (&yymsg_alloc, &yymsg, \
    1519             :                                         yyssp, yytoken)
    1520             :       {
    1521             :         char const *yymsgp = YY_("syntax error");
    1522             :         int yysyntax_error_status;
    1523             :         yysyntax_error_status = YYSYNTAX_ERROR;
    1524             :         if (yysyntax_error_status == 0)
    1525             :           yymsgp = yymsg;
    1526             :         else if (yysyntax_error_status == 1)
    1527             :           {
    1528             :             if (yymsg != yymsgbuf)
    1529             :               YYSTACK_FREE (yymsg);
    1530             :             yymsg = (char *) YYSTACK_ALLOC (yymsg_alloc);
    1531             :             if (!yymsg)
    1532             :               {
    1533             :                 yymsg = yymsgbuf;
    1534             :                 yymsg_alloc = sizeof yymsgbuf;
    1535             :                 yysyntax_error_status = 2;
    1536             :               }
    1537             :             else
    1538             :               {
    1539             :                 yysyntax_error_status = YYSYNTAX_ERROR;
    1540             :                 yymsgp = yymsg;
    1541             :               }
    1542             :           }
    1543             :         yyerror (yymsgp);
    1544             :         if (yysyntax_error_status == 2)
    1545             :           goto yyexhaustedlab;
    1546             :       }
    1547             : # undef YYSYNTAX_ERROR
    1548             : #endif
    1549             :     }
    1550             : 
    1551             : 
    1552             : 
    1553           0 :   if (yyerrstatus == 3)
    1554             :     {
    1555             :       /* If just tried and failed to reuse lookahead token after an
    1556             :          error, discard it.  */
    1557             : 
    1558           0 :       if (yychar <= YYEOF)
    1559             :         {
    1560             :           /* Return failure if at end of input.  */
    1561           0 :           if (yychar == YYEOF)
    1562           0 :             YYABORT;
    1563             :         }
    1564             :       else
    1565             :         {
    1566           0 :           yydestruct ("Error: discarding",
    1567             :                       yytoken, &yylval);
    1568           0 :           yychar = YYEMPTY;
    1569             :         }
    1570             :     }
    1571             : 
    1572             :   /* Else will try to reuse lookahead token after shifting the error
    1573             :      token.  */
    1574           0 :   goto yyerrlab1;
    1575             : 
    1576             : 
    1577             : /*---------------------------------------------------.
    1578             : | yyerrorlab -- error raised explicitly by YYERROR.  |
    1579             : `---------------------------------------------------*/
    1580             : yyerrorlab:
    1581             :   /* Pacify compilers when the user code never invokes YYERROR and the
    1582             :      label yyerrorlab therefore never appears in user code.  */
    1583             :   if (0)
    1584             :     YYERROR;
    1585             : 
    1586             :   /* Do not reclaim the symbols of the rule whose action triggered
    1587             :      this YYERROR.  */
    1588             :   YYPOPSTACK (yylen);
    1589             :   yylen = 0;
    1590             :   YY_STACK_PRINT (yyss, yyssp);
    1591             :   yystate = *yyssp;
    1592             :   goto yyerrlab1;
    1593             : 
    1594             : 
    1595             : /*-------------------------------------------------------------.
    1596             : | yyerrlab1 -- common code for both syntax error and YYERROR.  |
    1597             : `-------------------------------------------------------------*/
    1598           0 : yyerrlab1:
    1599           0 :   yyerrstatus = 3;      /* Each real token shifted decrements this.  */
    1600             : 
    1601             :   for (;;)
    1602             :     {
    1603           0 :       yyn = yypact[yystate];
    1604           0 :       if (!yypact_value_is_default (yyn))
    1605             :         {
    1606           0 :           yyn += YYTERROR;
    1607           0 :           if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR)
    1608             :             {
    1609           0 :               yyn = yytable[yyn];
    1610           0 :               if (0 < yyn)
    1611           0 :                 break;
    1612             :             }
    1613             :         }
    1614             : 
    1615             :       /* Pop the current state because it cannot handle the error token.  */
    1616           0 :       if (yyssp == yyss)
    1617           0 :         YYABORT;
    1618             : 
    1619             : 
    1620           0 :       yydestruct ("Error: popping",
    1621           0 :                   yystos[yystate], yyvsp);
    1622           0 :       YYPOPSTACK (1);
    1623           0 :       yystate = *yyssp;
    1624             :       YY_STACK_PRINT (yyss, yyssp);
    1625             :     }
    1626             : 
    1627             :   YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
    1628           0 :   *++yyvsp = yylval;
    1629             :   YY_IGNORE_MAYBE_UNINITIALIZED_END
    1630             : 
    1631             : 
    1632             :   /* Shift the error token.  */
    1633             :   YY_SYMBOL_PRINT ("Shifting", yystos[yyn], yyvsp, yylsp);
    1634             : 
    1635           0 :   yystate = yyn;
    1636           0 :   goto yynewstate;
    1637             : 
    1638             : 
    1639             : /*-------------------------------------.
    1640             : | yyacceptlab -- YYACCEPT comes here.  |
    1641             : `-------------------------------------*/
    1642         200 : yyacceptlab:
    1643         200 :   yyresult = 0;
    1644         200 :   goto yyreturn;
    1645             : 
    1646             : 
    1647             : /*-----------------------------------.
    1648             : | yyabortlab -- YYABORT comes here.  |
    1649             : `-----------------------------------*/
    1650           0 : yyabortlab:
    1651           0 :   yyresult = 1;
    1652           0 :   goto yyreturn;
    1653             : 
    1654             : 
    1655             : #if !defined yyoverflow || YYERROR_VERBOSE
    1656             : /*-------------------------------------------------.
    1657             : | yyexhaustedlab -- memory exhaustion comes here.  |
    1658             : `-------------------------------------------------*/
    1659           0 : yyexhaustedlab:
    1660           0 :   yyerror (YY_("memory exhausted"));
    1661           0 :   yyresult = 2;
    1662             :   /* Fall through.  */
    1663             : #endif
    1664             : 
    1665             : 
    1666             : /*-----------------------------------------------------.
    1667             : | yyreturn -- parsing is finished, return the result.  |
    1668             : `-----------------------------------------------------*/
    1669         200 : yyreturn:
    1670         200 :   if (yychar != YYEMPTY)
    1671             :     {
    1672             :       /* Make sure we have latest lookahead translation.  See comments at
    1673             :          user semantic actions for why this is necessary.  */
    1674           0 :       yytoken = YYTRANSLATE (yychar);
    1675           0 :       yydestruct ("Cleanup: discarding lookahead",
    1676             :                   yytoken, &yylval);
    1677             :     }
    1678             :   /* Do not reclaim the symbols of the rule whose action triggered
    1679             :      this YYABORT or YYACCEPT.  */
    1680         200 :   YYPOPSTACK (yylen);
    1681             :   YY_STACK_PRINT (yyss, yyssp);
    1682         600 :   while (yyssp != yyss)
    1683             :     {
    1684         400 :       yydestruct ("Cleanup: popping",
    1685         400 :                   yystos[*yyssp], yyvsp);
    1686         400 :       YYPOPSTACK (1);
    1687             :     }
    1688             : #ifndef yyoverflow
    1689         200 :   if (yyss != yyssa)
    1690           0 :     YYSTACK_FREE (yyss);
    1691             : #endif
    1692             : #if YYERROR_VERBOSE
    1693             :   if (yymsg != yymsgbuf)
    1694             :     YYSTACK_FREE (yymsg);
    1695             : #endif
    1696         200 :   return yyresult;
    1697             : }
    1698             : #line 207 "specparse.y" /* yacc.c:1918  */
    1699             : 
    1700             : 
    1701             : #include "specscanner.c"

Generated by: LCOV version 1.13