/* A Bison parser, made by GNU Bison 3.4.2.  */

/* Bison implementation for Yacc-like parsers in C

   Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2019 Free Software Foundation,
   Inc.

   This program is free software: you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation, either version 3 of the License, or
   (at your option) any later version.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with this program.  If not, see <http://www.gnu.org/licenses/>.  */

/* As a special exception, you may create a larger work that contains
   part or all of the Bison parser skeleton and distribute that work
   under terms of your choice, so long as that work isn't itself a
   parser generator using the skeleton or a modified version thereof
   as a parser skeleton.  Alternatively, if you modify or redistribute
   the parser skeleton itself, you may (at your option) remove this
   special exception, which will cause the skeleton and the resulting
   Bison output files to be licensed under the GNU General Public
   License without this special exception.

   This special exception was added by the Free Software Foundation in
   version 2.2 of Bison.  */

/* C LALR(1) parser skeleton written by Richard Stallman, by
   simplifying the original so-called "semantic" parser.  */

/* All symbols defined below should begin with yy or YY, to avoid
   infringing on user name space.  This should be done even for local
   variables, as they might otherwise be expanded by user macros.
   There are some unavoidable exceptions within include files to
   define necessary library symbols; they are noted "INFRINGES ON
   USER NAME SPACE" below.  */

/* Undocumented macros, especially those whose name start with YY_,
   are private implementation details.  Do not rely on them.  */

/* Identify Bison output.  */
#define YYBISON 1

/* Bison version.  */
#define YYBISON_VERSION "3.4.2"

/* Skeleton name.  */
#define YYSKELETON_NAME "yacc.c"

/* Pure parsers.  */
#define YYPURE 0

/* Push parsers.  */
#define YYPUSH 0

/* Pull parsers.  */
#define YYPULL 1




/* First part of user prologue.  */
#line 2 "parse.y"

/*
 * Copyright (c) 2001-2015 Stephen Williams (steve@icarus.com)
 *
 *    This source code is free software; you can redistribute it
 *    and/or modify it in source code form under the terms of the GNU
 *    General Public License as published by the Free Software
 *    Foundation; either version 2 of the License, or (at your option)
 *    any later version.
 *
 *    This program is distributed in the hope that it will be useful,
 *    but WITHOUT ANY WARRANTY; without even the implied warranty of
 *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *    GNU General Public License for more details.
 *
 *    You should have received a copy of the GNU General Public License
 *    along with this program; if not, write to the Free Software
 *    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 */

# include  "parse_misc.h"
# include  "compile.h"
# include  "delay.h"
# include  <list>
# include  <cstdio>
# include  <cstdlib>
# include  <cassert>
# include  "ivl_alloc.h"

/*
 * These are bits in the lexor.
 */
extern FILE*yyin;

vector <const char*> file_names;

/*
 * Local variables.
 */

/*
 * When parsing a modpath list, this is the processed destination that
 * the source items will attach themselves to.
 */
static struct __vpiModPath*modpath_dst = 0;

#line 117 "parse.cc"

# ifndef YY_NULLPTR
#  if defined __cplusplus
#   if 201103L <= __cplusplus
#    define YY_NULLPTR nullptr
#   else
#    define YY_NULLPTR 0
#   endif
#  else
#   define YY_NULLPTR ((void*)0)
#  endif
# endif

/* Enabling verbose error messages.  */
#ifdef YYERROR_VERBOSE
# undef YYERROR_VERBOSE
# define YYERROR_VERBOSE 1
#else
# define YYERROR_VERBOSE 0
#endif

/* Use api.header.include to #include this header
   instead of duplicating it here.  */
#ifndef YY_YY_PARSE_HH_INCLUDED
# define YY_YY_PARSE_HH_INCLUDED
/* Debug traces.  */
#ifndef YYDEBUG
# define YYDEBUG 1
#endif
#if YYDEBUG
extern int yydebug;
#endif

/* Token type.  */
#ifndef YYTOKENTYPE
# define YYTOKENTYPE
  enum yytokentype
  {
    K_A = 258,
    K_ALIAS = 259,
    K_ALIAS_R = 260,
    K_APV = 261,
    K_ARITH_ABS = 262,
    K_ARITH_DIV = 263,
    K_ARITH_DIV_R = 264,
    K_ARITH_DIV_S = 265,
    K_ARITH_MOD = 266,
    K_ARITH_MOD_R = 267,
    K_ARITH_MOD_S = 268,
    K_ARITH_MULT = 269,
    K_ARITH_MULT_R = 270,
    K_ARITH_SUB = 271,
    K_ARITH_SUB_R = 272,
    K_ARITH_SUM = 273,
    K_ARITH_SUM_R = 274,
    K_ARITH_POW = 275,
    K_ARITH_POW_R = 276,
    K_ARITH_POW_S = 277,
    K_ARRAY = 278,
    K_ARRAY_2U = 279,
    K_ARRAY_2S = 280,
    K_ARRAY_I = 281,
    K_ARRAY_OBJ = 282,
    K_ARRAY_R = 283,
    K_ARRAY_S = 284,
    K_ARRAY_STR = 285,
    K_ARRAY_PORT = 286,
    K_CAST_INT = 287,
    K_CAST_REAL = 288,
    K_CAST_REAL_S = 289,
    K_CAST_2 = 290,
    K_CLASS = 291,
    K_CMP_EEQ = 292,
    K_CMP_EQ = 293,
    K_CMP_EQX = 294,
    K_CMP_EQZ = 295,
    K_CMP_EQ_R = 296,
    K_CMP_NEE = 297,
    K_CMP_NE = 298,
    K_CMP_NE_R = 299,
    K_CMP_GE = 300,
    K_CMP_GE_R = 301,
    K_CMP_GE_S = 302,
    K_CMP_GT = 303,
    K_CMP_GT_R = 304,
    K_CMP_GT_S = 305,
    K_CONCAT = 306,
    K_CONCAT8 = 307,
    K_DEBUG = 308,
    K_DELAY = 309,
    K_DFF_N = 310,
    K_DFF_N_ACLR = 311,
    K_DFF_N_ASET = 312,
    K_DFF_P = 313,
    K_DFF_P_ACLR = 314,
    K_DFF_P_ASET = 315,
    K_ENUM2 = 316,
    K_ENUM2_S = 317,
    K_ENUM4 = 318,
    K_ENUM4_S = 319,
    K_EVENT = 320,
    K_EVENT_OR = 321,
    K_EXPORT = 322,
    K_EXTEND_S = 323,
    K_FUNCTOR = 324,
    K_IMPORT = 325,
    K_ISLAND = 326,
    K_MODPATH = 327,
    K_NET = 328,
    K_NET_S = 329,
    K_NET_R = 330,
    K_NET_2S = 331,
    K_NET_2U = 332,
    K_NET8 = 333,
    K_NET8_2S = 334,
    K_NET8_2U = 335,
    K_NET8_S = 336,
    K_PARAM_STR = 337,
    K_PARAM_L = 338,
    K_PARAM_REAL = 339,
    K_PART = 340,
    K_PART_PV = 341,
    K_PART_V = 342,
    K_PART_V_S = 343,
    K_PORT = 344,
    K_PORT_INFO = 345,
    K_PV = 346,
    K_REDUCE_AND = 347,
    K_REDUCE_OR = 348,
    K_REDUCE_XOR = 349,
    K_REDUCE_NAND = 350,
    K_REDUCE_NOR = 351,
    K_REDUCE_XNOR = 352,
    K_REPEAT = 353,
    K_RESOLV = 354,
    K_SCOPE = 355,
    K_SFUNC = 356,
    K_SFUNC_E = 357,
    K_SHIFTL = 358,
    K_SHIFTR = 359,
    K_SHIFTRS = 360,
    K_SUBSTITUTE = 361,
    K_THREAD = 362,
    K_TIMESCALE = 363,
    K_TRAN = 364,
    K_TRANIF0 = 365,
    K_TRANIF1 = 366,
    K_TRANVP = 367,
    K_UFUNC = 368,
    K_UFUNC_E = 369,
    K_UDP = 370,
    K_UDP_C = 371,
    K_UDP_S = 372,
    K_VAR = 373,
    K_VAR_COBJECT = 374,
    K_VAR_DARRAY = 375,
    K_VAR_QUEUE = 376,
    K_VAR_S = 377,
    K_VAR_STR = 378,
    K_VAR_I = 379,
    K_VAR_R = 380,
    K_VAR_2S = 381,
    K_VAR_2U = 382,
    K_vpi_call = 383,
    K_vpi_call_w = 384,
    K_vpi_call_i = 385,
    K_vpi_func = 386,
    K_vpi_func_r = 387,
    K_disable = 388,
    K_fork = 389,
    K_ivl_version = 390,
    K_ivl_delay_selection = 391,
    K_vpi_module = 392,
    K_vpi_time_precision = 393,
    K_file_names = 394,
    K_file_line = 395,
    K_PORT_INPUT = 396,
    K_PORT_OUTPUT = 397,
    K_PORT_INOUT = 398,
    K_PORT_MIXED = 399,
    K_PORT_NODIR = 400,
    T_INSTR = 401,
    T_LABEL = 402,
    T_NUMBER = 403,
    T_STRING = 404,
    T_SYMBOL = 405,
    T_VECTOR = 406
  };
#endif
/* Tokens.  */
#define K_A 258
#define K_ALIAS 259
#define K_ALIAS_R 260
#define K_APV 261
#define K_ARITH_ABS 262
#define K_ARITH_DIV 263
#define K_ARITH_DIV_R 264
#define K_ARITH_DIV_S 265
#define K_ARITH_MOD 266
#define K_ARITH_MOD_R 267
#define K_ARITH_MOD_S 268
#define K_ARITH_MULT 269
#define K_ARITH_MULT_R 270
#define K_ARITH_SUB 271
#define K_ARITH_SUB_R 272
#define K_ARITH_SUM 273
#define K_ARITH_SUM_R 274
#define K_ARITH_POW 275
#define K_ARITH_POW_R 276
#define K_ARITH_POW_S 277
#define K_ARRAY 278
#define K_ARRAY_2U 279
#define K_ARRAY_2S 280
#define K_ARRAY_I 281
#define K_ARRAY_OBJ 282
#define K_ARRAY_R 283
#define K_ARRAY_S 284
#define K_ARRAY_STR 285
#define K_ARRAY_PORT 286
#define K_CAST_INT 287
#define K_CAST_REAL 288
#define K_CAST_REAL_S 289
#define K_CAST_2 290
#define K_CLASS 291
#define K_CMP_EEQ 292
#define K_CMP_EQ 293
#define K_CMP_EQX 294
#define K_CMP_EQZ 295
#define K_CMP_EQ_R 296
#define K_CMP_NEE 297
#define K_CMP_NE 298
#define K_CMP_NE_R 299
#define K_CMP_GE 300
#define K_CMP_GE_R 301
#define K_CMP_GE_S 302
#define K_CMP_GT 303
#define K_CMP_GT_R 304
#define K_CMP_GT_S 305
#define K_CONCAT 306
#define K_CONCAT8 307
#define K_DEBUG 308
#define K_DELAY 309
#define K_DFF_N 310
#define K_DFF_N_ACLR 311
#define K_DFF_N_ASET 312
#define K_DFF_P 313
#define K_DFF_P_ACLR 314
#define K_DFF_P_ASET 315
#define K_ENUM2 316
#define K_ENUM2_S 317
#define K_ENUM4 318
#define K_ENUM4_S 319
#define K_EVENT 320
#define K_EVENT_OR 321
#define K_EXPORT 322
#define K_EXTEND_S 323
#define K_FUNCTOR 324
#define K_IMPORT 325
#define K_ISLAND 326
#define K_MODPATH 327
#define K_NET 328
#define K_NET_S 329
#define K_NET_R 330
#define K_NET_2S 331
#define K_NET_2U 332
#define K_NET8 333
#define K_NET8_2S 334
#define K_NET8_2U 335
#define K_NET8_S 336
#define K_PARAM_STR 337
#define K_PARAM_L 338
#define K_PARAM_REAL 339
#define K_PART 340
#define K_PART_PV 341
#define K_PART_V 342
#define K_PART_V_S 343
#define K_PORT 344
#define K_PORT_INFO 345
#define K_PV 346
#define K_REDUCE_AND 347
#define K_REDUCE_OR 348
#define K_REDUCE_XOR 349
#define K_REDUCE_NAND 350
#define K_REDUCE_NOR 351
#define K_REDUCE_XNOR 352
#define K_REPEAT 353
#define K_RESOLV 354
#define K_SCOPE 355
#define K_SFUNC 356
#define K_SFUNC_E 357
#define K_SHIFTL 358
#define K_SHIFTR 359
#define K_SHIFTRS 360
#define K_SUBSTITUTE 361
#define K_THREAD 362
#define K_TIMESCALE 363
#define K_TRAN 364
#define K_TRANIF0 365
#define K_TRANIF1 366
#define K_TRANVP 367
#define K_UFUNC 368
#define K_UFUNC_E 369
#define K_UDP 370
#define K_UDP_C 371
#define K_UDP_S 372
#define K_VAR 373
#define K_VAR_COBJECT 374
#define K_VAR_DARRAY 375
#define K_VAR_QUEUE 376
#define K_VAR_S 377
#define K_VAR_STR 378
#define K_VAR_I 379
#define K_VAR_R 380
#define K_VAR_2S 381
#define K_VAR_2U 382
#define K_vpi_call 383
#define K_vpi_call_w 384
#define K_vpi_call_i 385
#define K_vpi_func 386
#define K_vpi_func_r 387
#define K_disable 388
#define K_fork 389
#define K_ivl_version 390
#define K_ivl_delay_selection 391
#define K_vpi_module 392
#define K_vpi_time_precision 393
#define K_file_names 394
#define K_file_line 395
#define K_PORT_INPUT 396
#define K_PORT_OUTPUT 397
#define K_PORT_INOUT 398
#define K_PORT_MIXED 399
#define K_PORT_NODIR 400
#define T_INSTR 401
#define T_LABEL 402
#define T_NUMBER 403
#define T_STRING 404
#define T_SYMBOL 405
#define T_VECTOR 406

/* Value type.  */
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
union YYSTYPE
{
#line 49 "parse.y"

      char*text;
      char **table;
      uint64_t numb;
      bool flag;

      comp_operands_t opa;

      struct symb_s  symb;
      struct symbv_s symbv;

      struct numbv_s numbv;

      struct enum_name_s enum_name;
      std::list<struct enum_name_s>*enum_namev;

      struct symb_s vect;

      struct argv_s argv;
      vpiHandle vpi;

      vvp_delay_t*cdelay;

      int      vpi_enum;

#line 488 "parse.cc"

};
typedef union YYSTYPE YYSTYPE;
# define YYSTYPE_IS_TRIVIAL 1
# define YYSTYPE_IS_DECLARED 1
#endif


extern YYSTYPE yylval;

int yyparse (void);

#endif /* !YY_YY_PARSE_HH_INCLUDED  */



#ifdef short
# undef short
#endif

#ifdef YYTYPE_UINT8
typedef YYTYPE_UINT8 yytype_uint8;
#else
typedef unsigned char yytype_uint8;
#endif

#ifdef YYTYPE_INT8
typedef YYTYPE_INT8 yytype_int8;
#else
typedef signed char yytype_int8;
#endif

#ifdef YYTYPE_UINT16
typedef YYTYPE_UINT16 yytype_uint16;
#else
typedef unsigned short yytype_uint16;
#endif

#ifdef YYTYPE_INT16
typedef YYTYPE_INT16 yytype_int16;
#else
typedef short yytype_int16;
#endif

#ifndef YYSIZE_T
# ifdef __SIZE_TYPE__
#  define YYSIZE_T __SIZE_TYPE__
# elif defined size_t
#  define YYSIZE_T size_t
# elif ! defined YYSIZE_T
#  include <stddef.h> /* INFRINGES ON USER NAME SPACE */
#  define YYSIZE_T size_t
# else
#  define YYSIZE_T unsigned
# endif
#endif

#define YYSIZE_MAXIMUM ((YYSIZE_T) -1)

#ifndef YY_
# if defined YYENABLE_NLS && YYENABLE_NLS
#  if ENABLE_NLS
#   include <libintl.h> /* INFRINGES ON USER NAME SPACE */
#   define YY_(Msgid) dgettext ("bison-runtime", Msgid)
#  endif
# endif
# ifndef YY_
#  define YY_(Msgid) Msgid
# endif
#endif

#ifndef YY_ATTRIBUTE
# if (defined __GNUC__                                               \
      && (2 < __GNUC__ || (__GNUC__ == 2 && 96 <= __GNUC_MINOR__)))  \
     || defined __SUNPRO_C && 0x5110 <= __SUNPRO_C
#  define YY_ATTRIBUTE(Spec) __attribute__(Spec)
# else
#  define YY_ATTRIBUTE(Spec) /* empty */
# endif
#endif

#ifndef YY_ATTRIBUTE_PURE
# define YY_ATTRIBUTE_PURE   YY_ATTRIBUTE ((__pure__))
#endif

#ifndef YY_ATTRIBUTE_UNUSED
# define YY_ATTRIBUTE_UNUSED YY_ATTRIBUTE ((__unused__))
#endif

/* Suppress unused-variable warnings by "using" E.  */
#if ! defined lint || defined __GNUC__
# define YYUSE(E) ((void) (E))
#else
# define YYUSE(E) /* empty */
#endif

#if defined __GNUC__ && ! defined __ICC && 407 <= __GNUC__ * 100 + __GNUC_MINOR__
/* Suppress an incorrect diagnostic about yylval being uninitialized.  */
# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \
    _Pragma ("GCC diagnostic push") \
    _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"")\
    _Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"")
# define YY_IGNORE_MAYBE_UNINITIALIZED_END \
    _Pragma ("GCC diagnostic pop")
#else
# define YY_INITIAL_VALUE(Value) Value
#endif
#ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
# define YY_IGNORE_MAYBE_UNINITIALIZED_END
#endif
#ifndef YY_INITIAL_VALUE
# define YY_INITIAL_VALUE(Value) /* Nothing. */
#endif


#define YY_ASSERT(E) ((void) (0 && (E)))

#if ! defined yyoverflow || YYERROR_VERBOSE

/* The parser invokes alloca or malloc; define the necessary symbols.  */

# ifdef YYSTACK_USE_ALLOCA
#  if YYSTACK_USE_ALLOCA
#   ifdef __GNUC__
#    define YYSTACK_ALLOC __builtin_alloca
#   elif defined __BUILTIN_VA_ARG_INCR
#    include <alloca.h> /* INFRINGES ON USER NAME SPACE */
#   elif defined _AIX
#    define YYSTACK_ALLOC __alloca
#   elif defined _MSC_VER
#    include <malloc.h> /* INFRINGES ON USER NAME SPACE */
#    define alloca _alloca
#   else
#    define YYSTACK_ALLOC alloca
#    if ! defined _ALLOCA_H && ! defined EXIT_SUCCESS
#     include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
      /* Use EXIT_SUCCESS as a witness for stdlib.h.  */
#     ifndef EXIT_SUCCESS
#      define EXIT_SUCCESS 0
#     endif
#    endif
#   endif
#  endif
# endif

# ifdef YYSTACK_ALLOC
   /* Pacify GCC's 'empty if-body' warning.  */
#  define YYSTACK_FREE(Ptr) do { /* empty */; } while (0)
#  ifndef YYSTACK_ALLOC_MAXIMUM
    /* The OS might guarantee only one guard page at the bottom of the stack,
       and a page size can be as small as 4096 bytes.  So we cannot safely
       invoke alloca (N) if N exceeds 4096.  Use a slightly smaller number
       to allow for a few compiler-allocated temporary stack slots.  */
#   define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */
#  endif
# else
#  define YYSTACK_ALLOC YYMALLOC
#  define YYSTACK_FREE YYFREE
#  ifndef YYSTACK_ALLOC_MAXIMUM
#   define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM
#  endif
#  if (defined __cplusplus && ! defined EXIT_SUCCESS \
       && ! ((defined YYMALLOC || defined malloc) \
             && (defined YYFREE || defined free)))
#   include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
#   ifndef EXIT_SUCCESS
#    define EXIT_SUCCESS 0
#   endif
#  endif
#  ifndef YYMALLOC
#   define YYMALLOC malloc
#   if ! defined malloc && ! defined EXIT_SUCCESS
void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */
#   endif
#  endif
#  ifndef YYFREE
#   define YYFREE free
#   if ! defined free && ! defined EXIT_SUCCESS
void free (void *); /* INFRINGES ON USER NAME SPACE */
#   endif
#  endif
# endif
#endif /* ! defined yyoverflow || YYERROR_VERBOSE */


#if (! defined yyoverflow \
     && (! defined __cplusplus \
         || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))

/* A type that is properly aligned for any stack member.  */
union yyalloc
{
  yytype_int16 yyss_alloc;
  YYSTYPE yyvs_alloc;
};

/* The size of the maximum gap between one aligned stack and the next.  */
# define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1)

/* The size of an array large to enough to hold all stacks, each with
   N elements.  */
# define YYSTACK_BYTES(N) \
     ((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \
      + YYSTACK_GAP_MAXIMUM)

# define YYCOPY_NEEDED 1

/* Relocate STACK from its old location to the new one.  The
   local variables YYSIZE and YYSTACKSIZE give the old and new number of
   elements in the stack, and YYPTR gives the new location of the
   stack.  Advance YYPTR to a properly aligned location for the next
   stack.  */
# define YYSTACK_RELOCATE(Stack_alloc, Stack)                           \
    do                                                                  \
      {                                                                 \
        YYSIZE_T yynewbytes;                                            \
        YYCOPY (&yyptr->Stack_alloc, Stack, yysize);                    \
        Stack = &yyptr->Stack_alloc;                                    \
        yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
        yyptr += yynewbytes / sizeof (*yyptr);                          \
      }                                                                 \
    while (0)

#endif

#if defined YYCOPY_NEEDED && YYCOPY_NEEDED
/* Copy COUNT objects from SRC to DST.  The source and destination do
   not overlap.  */
# ifndef YYCOPY
#  if defined __GNUC__ && 1 < __GNUC__
#   define YYCOPY(Dst, Src, Count) \
      __builtin_memcpy (Dst, Src, (Count) * sizeof (*(Src)))
#  else
#   define YYCOPY(Dst, Src, Count)              \
      do                                        \
        {                                       \
          YYSIZE_T yyi;                         \
          for (yyi = 0; yyi < (Count); yyi++)   \
            (Dst)[yyi] = (Src)[yyi];            \
        }                                       \
      while (0)
#  endif
# endif
#endif /* !YYCOPY_NEEDED */

/* YYFINAL -- State number of the termination state.  */
#define YYFINAL  14
/* YYLAST -- Last index in YYTABLE.  */
#define YYLAST   1243

/* YYNTOKENS -- Number of terminals.  */
#define YYNTOKENS  167
/* YYNNTS -- Number of nonterminals.  */
#define YYNNTS  41
/* YYNRULES -- Number of rules.  */
#define YYNRULES  256
/* YYNSTATES -- Number of states.  */
#define YYNSTATES  1145

#define YYUNDEFTOK  2
#define YYMAXUTOK   406

/* YYTRANSLATE(TOKEN-NUM) -- Symbol number corresponding to TOKEN-NUM
   as returned by yylex, with out-of-bounds checking.  */
#define YYTRANSLATE(YYX)                                                \
  ((unsigned) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)

/* YYTRANSLATE[TOKEN-NUM] -- Symbol number corresponding to TOKEN-NUM
   as returned by yylex.  */
static const yytype_uint8 yytranslate[] =
{
       0,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     158,   159,   163,   153,   155,   154,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,   162,   152,
     164,     2,   165,   166,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,   156,     2,   157,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,   160,     2,   161,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     1,     2,     3,     4,
       5,     6,     7,     8,     9,    10,    11,    12,    13,    14,
      15,    16,    17,    18,    19,    20,    21,    22,    23,    24,
      25,    26,    27,    28,    29,    30,    31,    32,    33,    34,
      35,    36,    37,    38,    39,    40,    41,    42,    43,    44,
      45,    46,    47,    48,    49,    50,    51,    52,    53,    54,
      55,    56,    57,    58,    59,    60,    61,    62,    63,    64,
      65,    66,    67,    68,    69,    70,    71,    72,    73,    74,
      75,    76,    77,    78,    79,    80,    81,    82,    83,    84,
      85,    86,    87,    88,    89,    90,    91,    92,    93,    94,
      95,    96,    97,    98,    99,   100,   101,   102,   103,   104,
     105,   106,   107,   108,   109,   110,   111,   112,   113,   114,
     115,   116,   117,   118,   119,   120,   121,   122,   123,   124,
     125,   126,   127,   128,   129,   130,   131,   132,   133,   134,
     135,   136,   137,   138,   139,   140,   141,   142,   143,   144,
     145,   146,   147,   148,   149,   150,   151
};

#if YYDEBUG
  /* YYRLINE[YYN] -- Source line where rule number YYN was defined.  */
static const yytype_uint16 yyrline[] =
{
       0,   136,   136,   138,   138,   142,   143,   147,   149,   151,
     153,   155,   157,   162,   162,   167,   169,   175,   176,   191,
     194,   207,   210,   213,   219,   222,   224,   227,   230,   233,
     236,   239,   242,   245,   248,   251,   258,   265,   275,   283,
     286,   289,   291,   296,   300,   305,   311,   316,   321,   326,
     331,   339,   344,   349,   354,   359,   364,   369,   374,   379,
     384,   389,   394,   399,   404,   409,   414,   419,   424,   429,
     434,   439,   444,   449,   454,   459,   464,   469,   474,   479,
     488,   490,   494,   501,   500,   507,   510,   513,   516,   519,
     522,   525,   528,   533,   536,   539,   542,   545,   548,   551,
     556,   560,   564,   569,   573,   579,   584,   590,   600,   603,
     606,   609,   617,   620,   625,   628,   638,   645,   652,   657,
     662,   670,   674,   692,   695,   701,   707,   710,   716,   721,
     725,   727,   729,   731,   738,   741,   748,   751,   754,   757,
     760,   763,   766,   769,   772,   775,   781,   785,   789,   793,
     797,   801,   805,   809,   813,   819,   823,   827,   831,   835,
     839,   845,   850,   858,   861,   864,   867,   872,   875,   878,
     881,   884,   887,   890,   893,   899,   898,   903,   908,   912,
     913,   917,   918,   922,   933,   935,   939,   941,   946,   952,
     954,   956,   958,   963,   968,   976,   978,   983,   984,   991,
     992,   996,   997,  1001,  1010,  1015,  1023,  1031,  1056,  1062,
    1069,  1075,  1080,  1086,  1094,  1096,  1100,  1105,  1107,  1109,
    1111,  1113,  1115,  1117,  1119,  1125,  1131,  1140,  1146,  1155,
    1161,  1173,  1180,  1183,  1193,  1194,  1198,  1199,  1200,  1201,
    1202,  1206,  1208,  1210,  1212,  1214,  1216,  1218,  1220,  1222,
    1227,  1229,  1234,  1235,  1239,  1241,  1243
};
#endif

#if YYDEBUG || YYERROR_VERBOSE || 0
/* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
   First, the terminals, then, starting at YYNTOKENS, nonterminals.  */
static const char *const yytname[] =
{
  "$end", "error", "$undefined", "K_A", "K_ALIAS", "K_ALIAS_R", "K_APV",
  "K_ARITH_ABS", "K_ARITH_DIV", "K_ARITH_DIV_R", "K_ARITH_DIV_S",
  "K_ARITH_MOD", "K_ARITH_MOD_R", "K_ARITH_MOD_S", "K_ARITH_MULT",
  "K_ARITH_MULT_R", "K_ARITH_SUB", "K_ARITH_SUB_R", "K_ARITH_SUM",
  "K_ARITH_SUM_R", "K_ARITH_POW", "K_ARITH_POW_R", "K_ARITH_POW_S",
  "K_ARRAY", "K_ARRAY_2U", "K_ARRAY_2S", "K_ARRAY_I", "K_ARRAY_OBJ",
  "K_ARRAY_R", "K_ARRAY_S", "K_ARRAY_STR", "K_ARRAY_PORT", "K_CAST_INT",
  "K_CAST_REAL", "K_CAST_REAL_S", "K_CAST_2", "K_CLASS", "K_CMP_EEQ",
  "K_CMP_EQ", "K_CMP_EQX", "K_CMP_EQZ", "K_CMP_EQ_R", "K_CMP_NEE",
  "K_CMP_NE", "K_CMP_NE_R", "K_CMP_GE", "K_CMP_GE_R", "K_CMP_GE_S",
  "K_CMP_GT", "K_CMP_GT_R", "K_CMP_GT_S", "K_CONCAT", "K_CONCAT8",
  "K_DEBUG", "K_DELAY", "K_DFF_N", "K_DFF_N_ACLR", "K_DFF_N_ASET",
  "K_DFF_P", "K_DFF_P_ACLR", "K_DFF_P_ASET", "K_ENUM2", "K_ENUM2_S",
  "K_ENUM4", "K_ENUM4_S", "K_EVENT", "K_EVENT_OR", "K_EXPORT",
  "K_EXTEND_S", "K_FUNCTOR", "K_IMPORT", "K_ISLAND", "K_MODPATH", "K_NET",
  "K_NET_S", "K_NET_R", "K_NET_2S", "K_NET_2U", "K_NET8", "K_NET8_2S",
  "K_NET8_2U", "K_NET8_S", "K_PARAM_STR", "K_PARAM_L", "K_PARAM_REAL",
  "K_PART", "K_PART_PV", "K_PART_V", "K_PART_V_S", "K_PORT", "K_PORT_INFO",
  "K_PV", "K_REDUCE_AND", "K_REDUCE_OR", "K_REDUCE_XOR", "K_REDUCE_NAND",
  "K_REDUCE_NOR", "K_REDUCE_XNOR", "K_REPEAT", "K_RESOLV", "K_SCOPE",
  "K_SFUNC", "K_SFUNC_E", "K_SHIFTL", "K_SHIFTR", "K_SHIFTRS",
  "K_SUBSTITUTE", "K_THREAD", "K_TIMESCALE", "K_TRAN", "K_TRANIF0",
  "K_TRANIF1", "K_TRANVP", "K_UFUNC", "K_UFUNC_E", "K_UDP", "K_UDP_C",
  "K_UDP_S", "K_VAR", "K_VAR_COBJECT", "K_VAR_DARRAY", "K_VAR_QUEUE",
  "K_VAR_S", "K_VAR_STR", "K_VAR_I", "K_VAR_R", "K_VAR_2S", "K_VAR_2U",
  "K_vpi_call", "K_vpi_call_w", "K_vpi_call_i", "K_vpi_func",
  "K_vpi_func_r", "K_disable", "K_fork", "K_ivl_version",
  "K_ivl_delay_selection", "K_vpi_module", "K_vpi_time_precision",
  "K_file_names", "K_file_line", "K_PORT_INPUT", "K_PORT_OUTPUT",
  "K_PORT_INOUT", "K_PORT_MIXED", "K_PORT_NODIR", "T_INSTR", "T_LABEL",
  "T_NUMBER", "T_STRING", "T_SYMBOL", "T_VECTOR", "';'", "'+'", "'-'",
  "','", "'['", "']'", "'('", "')'", "'{'", "'}'", "':'", "'*'", "'<'",
  "'>'", "'?'", "$accept", "source_file", "header_lines_opt",
  "header_lines", "header_line", "footer_lines", "$@1", "name_strings",
  "program", "statement", "$@2", "$@3", "class_properties_opt",
  "class_properties", "class_property", "dimensions_opt", "dimensions",
  "dimension", "enum_type", "enum_type_names", "enum_type_name",
  "local_flag", "label_opt", "operands_opt", "operands", "operand",
  "argument_opt", "argument_list", "argument", "symbol_access", "symbols",
  "numbers", "symbols_net", "symbol", "symbol_opt", "modpath_src_list",
  "port_type", "modpath_src", "udp_table", "signed_t_number", "delay", YY_NULLPTR
};
#endif

# ifdef YYPRINT
/* YYTOKNUM[NUM] -- (External) token number corresponding to the
   (internal) symbol number NUM (which must be that of a token).  */
static const yytype_uint16 yytoknum[] =
{
       0,   256,   257,   258,   259,   260,   261,   262,   263,   264,
     265,   266,   267,   268,   269,   270,   271,   272,   273,   274,
     275,   276,   277,   278,   279,   280,   281,   282,   283,   284,
     285,   286,   287,   288,   289,   290,   291,   292,   293,   294,
     295,   296,   297,   298,   299,   300,   301,   302,   303,   304,
     305,   306,   307,   308,   309,   310,   311,   312,   313,   314,
     315,   316,   317,   318,   319,   320,   321,   322,   323,   324,
     325,   326,   327,   328,   329,   330,   331,   332,   333,   334,
     335,   336,   337,   338,   339,   340,   341,   342,   343,   344,
     345,   346,   347,   348,   349,   350,   351,   352,   353,   354,
     355,   356,   357,   358,   359,   360,   361,   362,   363,   364,
     365,   366,   367,   368,   369,   370,   371,   372,   373,   374,
     375,   376,   377,   378,   379,   380,   381,   382,   383,   384,
     385,   386,   387,   388,   389,   390,   391,   392,   393,   394,
     395,   396,   397,   398,   399,   400,   401,   402,   403,   404,
     405,   406,    59,    43,    45,    44,    91,    93,    40,    41,
     123,   125,    58,    42,    60,    62,    63
};
# endif

#define YYPACT_NINF -849

#define yypact_value_is_default(Yystate) \
  (!!((Yystate) == (-849)))

#define YYTABLE_NINF -1

#define yytable_value_is_error(Yytable_value) \
  0

  /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
     STATE-NUM.  */
static const yytype_int16 yypact[] =
{
      56,   -83,   -72,   -47,   -62,    20,   -54,    56,  -849,   -40,
     -42,    12,    28,    60,  -849,    64,    47,   110,   -49,   136,
     166,   195,   161,   993,  -849,   -77,  -849,  -849,    39,  -849,
     209,  -849,  -849,  -849,   231,   241,    45,   254,    23,   -28,
     294,   288,   289,   291,   297,   298,   299,   300,   303,   304,
     305,   306,   307,   308,   309,   310,   311,   312,   313,   314,
     315,   317,   318,   319,   320,   321,   322,   323,   324,   325,
     326,   327,   328,   300,   300,   330,   331,   333,   334,   335,
     336,   337,   338,   341,   342,   343,   344,   346,   347,   349,
     350,   345,   348,   351,   352,   354,   355,   357,   358,   359,
     360,   361,   362,   363,   -46,   300,   329,   368,   367,   372,
     373,   376,  -126,  -125,  -122,  -103,   284,  -100,   284,   284,
     -99,   377,   378,   379,   375,   380,   381,   382,   383,   300,
     300,   300,   300,   300,   300,   386,   385,   387,   388,   390,
     391,   392,   393,   394,   395,   396,   397,   399,   400,   284,
     401,   402,   403,   284,   404,   284,   405,   284,   284,  -849,
     407,  -849,  -849,   408,   409,   425,   426,   427,   300,   300,
     428,   239,  -849,  -849,  -849,  -849,  -849,  -849,  -849,  -849,
     429,  -849,  -849,   431,   430,   435,   -24,   434,   436,   437,
     440,   441,   442,  -849,    43,  -849,   374,   389,   423,   424,
     438,   439,   446,   447,   448,   449,   450,   451,   452,   453,
     454,   455,   456,   457,   458,   459,   460,   463,   464,   465,
     466,    44,    48,   467,   468,   470,   471,   472,   473,   474,
     475,   476,   483,   484,   485,   486,   487,   488,   489,   443,
     444,  -136,   300,   300,   300,   300,   300,   300,   497,   498,
     499,   501,   500,   433,   496,    49,   445,   502,   504,   503,
     507,   300,   505,  -849,   506,   508,   511,   513,   515,   514,
     516,   517,   519,   520,   521,   522,   524,   525,   527,   528,
     529,   518,   523,   526,   530,   531,   532,   550,   551,   552,
     553,   554,   555,   556,   557,   534,   535,   558,   559,   560,
     561,   562,   563,   564,   565,   566,   573,   571,   572,   576,
     580,   601,   583,   570,   605,   607,   606,   609,   611,   612,
     613,   614,   615,   608,   616,  -849,  -849,   617,   610,  -849,
    -849,   619,   618,  -849,   620,   621,   623,   624,   625,   626,
     622,   627,   628,  -849,   300,   300,   300,   300,   300,   300,
     300,   300,   300,   300,   300,   300,   300,   300,   300,   300,
     -53,    26,    26,    26,    26,    26,    26,    26,   -19,   300,
    -849,  -849,   300,   630,   300,   300,   300,   300,   300,   300,
     300,   300,   300,   300,   300,   300,   300,   300,   631,   632,
     633,    50,   300,   629,   634,   635,   636,   637,   638,   384,
     495,   509,   639,   640,  -849,   300,  -849,  -849,   300,   -34,
     644,  -849,   300,   641,   642,   647,   650,   651,   652,   653,
     654,   656,   657,   658,   659,   660,   661,   662,   670,   671,
     672,   673,   674,   649,   675,   676,  -849,  -849,  -849,  -849,
    -849,  -849,   679,   300,   680,   681,   682,   300,   300,   300,
     685,   686,   689,   300,   690,   696,   668,  -849,  -849,  -849,
     669,  -849,   691,    26,   692,   693,  -849,   700,   701,   702,
     704,   705,  -849,   300,    34,  -849,   239,  -849,  -849,  -849,
    -849,   703,   706,   707,   708,   678,    26,    26,  -849,    54,
      55,    59,    61,    65,    66,    67,    71,    72,    73,    77,
      78,    79,    83,    84,  -849,   709,   697,    26,    26,    26,
      26,    26,    26,    26,    26,   712,   713,    85,    89,   699,
      90,    91,    95,    96,    97,   101,   102,   103,   107,   109,
     113,   114,   115,   119,   711,   718,   -48,  -849,   290,   715,
     300,   300,   300,   300,   300,   300,   721,   721,   721,   721,
     300,   120,   719,   300,   724,   722,   720,    26,    26,    26,
      26,    26,    26,    26,    26,    26,    26,    26,    26,    26,
      26,    26,   725,   728,   730,   726,   727,   729,   731,   733,
     732,   121,   -73,   734,   735,   125,   126,   130,   740,   736,
     737,   132,   738,   741,    26,    26,   747,    26,    26,    26,
     748,   743,   743,   743,   751,   743,   749,   750,   752,  -849,
    -849,  -849,   710,   753,   745,    26,    26,  -849,  -849,  -849,
    -849,  -849,  -849,  -849,  -849,  -849,  -849,  -849,  -849,  -849,
    -849,  -849,  -849,  -849,   151,   754,   755,   756,   760,   761,
     759,   763,  -849,  -849,  -849,  -849,  -849,  -849,  -849,  -849,
    -849,  -849,  -849,  -849,  -849,  -849,  -849,  -849,  -849,  -849,
    -849,   757,   758,   768,  -849,   765,  -849,   766,   767,   769,
     770,   771,   772,   156,   153,  -849,   158,   159,   179,   180,
    -849,  -849,   181,   775,  -849,  -849,    26,    26,    26,    26,
      26,    26,    26,    26,    26,    26,    26,    26,    26,    26,
      26,   773,   774,   776,   782,   784,   785,   786,  -849,   300,
    -849,   787,  -849,   788,   790,   795,  -849,  -849,  -849,   781,
     300,   796,  -849,   791,   789,    26,    26,   800,   797,    26,
      26,   798,   802,     5,   549,   723,   792,   743,   794,  -849,
    -849,  -849,   803,   804,   807,   805,   806,  -849,    26,    26,
      26,    26,  -849,  -849,    26,  -849,   810,   809,   811,    -7,
    -849,   300,   300,   300,   300,   300,   300,  -849,  -849,  -849,
     721,  -849,  -849,  -849,  -849,  -849,   812,   300,   808,   815,
     816,   817,   818,   820,   821,   823,   824,   826,   827,   828,
     829,   830,   831,   813,   187,   814,   835,   833,   837,   838,
     839,   844,   841,   186,   840,   300,   184,   891,  -849,   191,
     928,   847,   932,   948,  -849,   949,   950,  -849,   951,   602,
     716,   744,  -849,  -849,  -849,   966,  -849,  -849,   956,   957,
     974,   799,   975,  -849,  -849,   976,   300,   300,    26,    26,
      26,    26,    26,   461,   972,   810,  -849,   970,   973,   979,
    -849,   977,   978,   980,   982,   981,   983,  -849,   984,  -109,
     197,  -849,   300,   300,   300,   300,   300,   300,   300,   300,
     300,   300,   300,   300,   300,   300,   300,   985,   988,   991,
     990,  -849,   995,  -849,  -849,  -849,   198,  -849,  -849,   300,
     997,   199,   300,   300,  -849,   998,   791,  -849,  -849,  -849,
    -849,  -849,  -849,   994,   999,  1000,     9,  1003,  1004,  1005,
    1006,  1007,   996,   203,  -849,  -849,   204,  1008,  1009,  1010,
    1011,  1012,  1016,  -849,  -849,   300,   300,   698,  -849,   300,
     300,  -849,   300,   300,   300,  1001,  1013,  1018,  -849,   300,
     205,   217,   218,   219,   223,   224,   225,   229,   230,   242,
     243,   247,   248,   249,   253,  -849,  -849,  1015,  -849,  1017,
    -849,  1020,   255,   265,  -849,     7,   263,  -849,   267,  1002,
    1019,  1021,  -849,  -849,  1022,  1024,  1025,  1027,  1029,  -849,
    -849,   300,  -849,  -849,  -849,  -849,  -849,  -849,  1023,   271,
     272,  -849,  1028,   273,  1030,   277,   278,  1018,  1018,  -849,
     -94,  -849,  -849,  -849,  -849,  -849,  -849,  -849,  -849,  -849,
    -849,  -849,  -849,  -849,  -849,  -849,  -849,  -849,  -849,  1031,
    -849,  -849,   300,   300,   300,  -849,    15,  1033,     3,   746,
     969,   971,  1035,  1026,  -849,  1036,  -849,  -849,  -849,  -849,
    1034,  -849,  -849,  1038,  -849,   -88,   -86,  1041,   300,  -140,
     -74,   279,  1040,    22,   302,   714,  1032,  1037,  1039,  1043,
    1045,  1044,  1048,  1049,  1050,  1042,  1052,   762,  1053,  1054,
     300,  -107,   300,   -91,  -849,  -849,   300,  1051,  1056,  1046,
    -849,  1055,   300,  -849,  -849,  -849,  1047,  1060,  1061,  1057,
    1065,  -849,  -849,  -849,  1062,  -849,  1067,  -849,   762,  -849,
    -849,  -849,  -849,   300,  1058,  -849,   300,  1059,  -849,   300,
    1066,  1068,  -849,  1069,  1070,  1063,  1064,  1073,  1071,  -849,
    1072,  -849,  -849,   300,  -849,   300,  -849,  1074,  -849,  1075,
    1076,  -849,  -849,  1077,  -849,  1082,  -849,  -849,  -849,  -849,
    1078,  -849,  1080,  -849,  -849
};

  /* YYDEFACT[STATE-NUM] -- Default reduction number in state STATE-NUM.
     Performed when YYTABLE does not specify something else to do.  Zero
     means the default is an error.  */
static const yytype_uint16 yydefact[] =
{
       4,     0,     0,     0,     0,     0,   200,     3,     5,     0,
       0,     0,     0,     0,     1,     0,     0,     0,     0,     0,
       0,     0,     0,   199,   178,   200,    17,   177,     0,     6,
       0,     7,     9,    10,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,   198,   198,   198,   198,   198,   198,   198,   198,
     198,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,   198,
       0,     0,     0,   198,     0,   198,     0,   198,   198,   113,
       0,     2,    18,     0,     0,     0,     0,     0,     0,     0,
       0,   202,     8,    11,    12,   236,   237,   238,   239,   240,
       0,   128,   134,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,   231,     0,   225,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,   197,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,   206,   207,     0,   201,   204,
     205,     0,     0,   130,     0,     0,     0,     0,     0,     0,
       0,     0,     0,    46,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
      48,    49,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,   110,     0,   111,   170,     0,     0,
       0,   167,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,    93,    94,    95,    96,
      97,    98,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,   145,   143,   144,
       0,   142,     0,     0,     0,     0,    13,     0,     0,     0,
       0,     0,   121,     0,     0,   112,     0,   129,   135,   132,
     131,     0,     0,     0,     0,     0,     0,     0,   226,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,   252,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,    81,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,   209,   209,   209,     0,   209,     0,     0,     0,   203,
     133,   171,     0,     0,     0,     0,     0,    51,    52,    53,
      54,    55,    56,    57,    58,    62,    63,    64,    65,    59,
      60,    61,    35,   253,     0,     0,     0,     0,     0,     0,
       0,     0,    34,    33,    47,    50,   175,    66,    68,    69,
      70,    71,    67,    72,    73,    74,    75,    76,    77,    78,
      79,     0,     0,     0,   254,     0,    80,     0,     0,     0,
       0,     0,     0,     0,     0,   193,     0,     0,     0,     0,
     108,   100,     0,     0,   169,    83,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,   168,     0,
      38,     0,   126,     0,     0,     0,   105,   106,   107,     0,
       0,     0,    23,     0,     0,     0,     0,     0,     0,     0,
       0,     0,    14,     0,     0,     0,     0,   209,     0,   122,
     115,   114,     0,     0,     0,     0,     0,    32,     0,     0,
       0,     0,    31,    28,     0,    30,   180,     0,     0,     0,
      82,     0,     0,     0,     0,     0,     0,   195,   196,   189,
       0,   190,   191,   192,   109,    19,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,   250,     0,
       0,     0,     0,     0,   141,     0,     0,    15,     0,     0,
       0,     0,   214,   212,   215,   208,   210,   216,     0,     0,
       0,     0,     0,   172,   173,     0,   233,   233,     0,     0,
       0,     0,     0,     0,     0,   179,   182,     0,     0,     0,
     255,     0,     0,     0,     0,     0,     0,   194,     0,     0,
       0,   234,   233,   233,   233,   233,   233,   233,   233,   233,
     233,   233,   233,   233,   233,   233,   233,     0,     0,     0,
       0,    39,     0,    41,    42,    99,     0,   127,   103,     0,
       0,     0,     0,     0,    22,     0,     0,   136,   137,   138,
     139,   140,    16,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,   232,   229,     0,     0,     0,     0,
       0,     0,     0,   176,   181,     0,     0,     0,    85,     0,
       0,    86,     0,     0,     0,     0,     0,     0,    84,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,   163,   164,     0,   166,     0,
     123,     0,     0,     0,    45,     0,     0,   251,     0,     0,
       0,     0,   213,   211,     0,     0,     0,     0,     0,   174,
     161,   233,   162,    24,    25,    26,    27,    29,     0,     0,
       0,   256,     0,     0,     0,     0,     0,     0,     0,   227,
       0,   235,   155,   146,   156,   147,   160,   154,   157,   149,
     148,   158,   150,   153,   151,   159,   152,   165,    40,     0,
     101,   104,     0,     0,     0,    21,     0,     0,     0,     0,
       0,     0,     0,     0,   230,     0,    43,    44,    87,    89,
       0,    88,    90,     0,    20,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,   185,     0,     0,
       0,     0,     0,     0,   228,   241,     0,     0,     0,     0,
     102,     0,     0,   217,   218,   219,     0,     0,     0,     0,
       0,   116,   117,   118,     0,   120,     0,   183,   184,   187,
      91,    92,   244,     0,     0,   247,     0,     0,   242,     0,
       0,     0,    36,     0,     0,     0,     0,     0,     0,   119,
       0,   186,   245,     0,   248,     0,   243,     0,   125,     0,
       0,   220,   222,     0,   223,     0,   246,   249,   124,    37,
       0,   221,     0,   224,   188
};

  /* YYPGOTO[NTERM-NUM].  */
static const yytype_int16 yypgoto[] =
{
    -849,  -849,  -849,  -849,   778,  -849,  -849,  -849,  -849,   655,
    -849,  -849,  -849,  -849,  -166,  -849,  -849,  -312,  -849,  -112,
      17,   -30,  -849,  -849,  -849,   764,  -576,  -849,  -118,  -587,
     -57,  -848,  -729,  -129,   150,  -849,  -849,   252,   260,     1,
    -849
};

  /* YYDEFGOTO[NTERM-NUM].  */
static const yytype_int16 yydefgoto[] =
{
      -1,     5,     6,     7,     8,   161,   600,   732,    25,    26,
     777,   756,   844,   845,   846,  1097,  1098,  1099,    27,   674,
     675,   264,    28,   327,   328,   329,   734,   825,   826,   827,
     194,  1000,   913,   195,   915,   860,   180,   861,   809,   507,
     392
};

  /* YYTABLE[YYPACT[STATE-NUM]] -- What to do in state STATE-NUM.  If
     positive, shift that token.  If negative, reduce the rule whose
     number is the opposite.  If YYTABLE_NINF, syntax error.  */
static const yytype_uint16 yytable[] =
{
     286,   287,   288,   289,   290,   291,   819,   252,   819,   820,
     193,   820,   819,    15,   193,   820,   221,   222,   819,  1076,
      14,   820,   390,    16,   262,   265,   735,   736,   267,   738,
      17,    18,    19,    20,    21,    22,    15,   263,   263,   322,
     323,   263,   330,   193,   935,   936,    16,   269,   255,   937,
     272,   276,  1103,    17,    18,    19,    20,    21,    22,   193,
     263,  1047,   160,   263,   263,  1048,     9,  1047,  1106,  1047,
      23,  1070,  1049,  1072,  1078,    24,   711,    10,  1071,   712,
    1073,  1079,   713,   266,   268,   270,   271,   273,   274,   275,
     277,    12,    13,    23,   821,   504,   821,   505,    24,    39,
     821,   506,    11,   253,   254,    40,   821,   663,   916,    30,
      32,   664,    31,   393,   394,   395,   396,   397,   398,   306,
     184,   553,   554,   310,   335,   312,   185,   314,   315,   515,
     336,   516,   412,   940,   941,   942,   943,   944,   945,   946,
     947,   948,   949,   950,   951,   952,   953,   954,   849,  1045,
    1046,  1058,   850,  1059,   822,   823,   824,  1060,   822,   972,
     824,   831,   344,  1054,    33,  1055,  1023,   163,   164,   165,
     166,   167,   168,   169,   504,   182,    34,   344,   183,   170,
     506,  1082,   607,   608,   391,   171,   175,   176,   177,   178,
     179,     1,     2,     3,     4,   343,   370,    37,   344,   344,
     371,   406,   537,   344,   344,   538,   617,   618,    35,   344,
     344,   619,    36,   620,   344,   488,   344,   621,   622,   623,
     344,   344,   344,   624,   625,   626,   344,   344,   344,   627,
     628,   629,   344,   344,   344,   630,   631,   644,   344,   344,
     344,   645,   647,   648,   344,   344,   344,   649,   650,   651,
     344,   344,   344,   652,   653,   654,   344,   344,   344,   655,
      38,   656,   344,   539,   344,   657,   658,   659,   344,   344,
     344,   660,   680,   710,   344,   344,   344,   716,   717,   552,
     344,   344,   718,   556,   722,   344,    41,   344,   489,   490,
     491,   492,   493,   494,   495,   496,   497,   498,   499,   500,
     501,   502,   503,   747,   767,   769,   748,   768,   770,    44,
     771,   772,   517,   770,   770,   518,    42,   520,   521,   522,
     523,   524,   525,   526,   527,   528,   529,   530,   531,   532,
     533,   773,   774,   775,   770,   344,   344,   878,   888,   344,
     879,   889,   892,   894,   606,    43,   895,   330,   551,   938,
     960,   964,   939,   961,   344,   980,   982,  1002,   981,   981,
     981,   172,   508,   509,   510,   511,   512,   513,   514,  1003,
    1004,  1005,   981,   981,   981,  1006,  1007,  1008,   981,   981,
     981,  1009,  1010,   173,   981,   981,   581,   325,   326,   193,
     585,   586,   587,   174,  1011,  1012,   591,   981,   981,  1013,
    1014,  1015,   981,   981,   981,  1016,   181,  1020,   981,   488,
     344,   667,   668,   669,   670,   671,   672,  1021,   344,  1025,
    1022,  1024,   895,  1036,  1037,  1039,   344,   344,  1040,  1042,
    1044,  1080,  1043,   344,   344,   676,   677,   678,   665,  1056,
     193,  1061,   186,   187,   188,   190,   189,   263,   191,   192,
     193,   196,   197,   198,   199,   200,   201,   202,   203,   204,
     205,   206,   207,   208,   597,   209,   210,  1083,   211,   212,
     213,   214,   215,   216,   217,   218,   220,   219,   223,   256,
     224,   225,   226,   227,   228,   229,   230,   615,   616,   231,
     232,   233,   234,   679,   235,   236,   682,   237,   238,   241,
     242,   239,   243,   244,   240,   245,   246,   247,   634,   635,
     636,   637,   638,   639,   640,   641,   257,   258,   248,   249,
     250,   251,   259,   260,   261,   281,   278,   279,   280,   345,
     282,   283,   284,   285,   292,   293,   295,   294,   296,   297,
     298,   299,   300,   546,   346,   301,   302,   303,   304,   305,
     307,   308,   309,   311,   313,   316,   317,   318,   686,   687,
     688,   689,   690,   691,   692,   693,   694,   695,   696,   697,
     698,   699,   700,   319,   320,   321,   324,   331,   347,   348,
     800,   332,   333,   334,   337,   404,   338,   339,   340,   341,
     342,   388,   389,   349,   350,   725,   726,   407,   728,   729,
     730,   351,   352,   353,   354,   355,   356,   357,   358,   359,
     360,   361,   362,   363,   364,   365,   745,   746,   366,   367,
     368,   369,   372,   922,   373,   374,   375,   376,   377,   378,
     379,   380,   851,   852,   853,   854,   855,   856,   381,   382,
     383,   384,   385,   386,   387,   399,   400,   401,   859,   402,
     403,   405,   409,   413,   547,   414,   415,   408,   410,   411,
     416,   417,   419,   806,   418,   420,   421,   422,   548,   423,
     424,   425,   426,   431,   427,   428,   429,   430,   432,   924,
     162,   433,   445,   446,   436,   434,   435,   778,   779,   780,
     781,   782,   783,   784,   785,   786,   787,   788,   789,   790,
     791,   792,   437,   438,   439,   440,   441,   914,   914,   828,
     442,   443,   444,   447,   448,   449,   450,   451,   452,   453,
     454,   455,   456,   457,   458,   463,   811,   812,   459,   460,
     815,   816,   462,   914,   914,   914,   914,   914,   914,   914,
     914,   914,   914,   914,   914,   914,   914,   914,   891,   838,
     839,   840,   841,   461,   464,   842,   465,   467,   466,   468,
     469,   470,   471,   473,   474,   476,   903,   472,   477,   475,
     478,   481,   479,   480,   482,   483,   484,   485,   519,   534,
     535,   536,   486,   487,   540,    29,  1121,   857,   973,   541,
     542,   543,   544,   545,   555,   550,   557,   558,   549,   577,
     992,   993,   559,   994,   995,   560,   561,   562,   563,   564,
     859,   565,   566,   567,   568,   569,   570,   571,   572,   573,
     574,   575,   576,   594,   595,   578,   579,   580,   614,   582,
     583,   584,   962,   588,   589,   965,   966,   590,   592,   917,
     918,   919,   920,   921,   593,   633,   596,   598,   599,   601,
     602,   603,   914,   604,   605,   610,   646,   991,   611,   661,
     742,   632,   612,   613,   642,   643,   662,   666,   989,   990,
     673,   681,   683,   701,   684,   685,   702,   996,   703,  1084,
     904,   704,   705,   829,   706,   708,   707,   709,   719,   714,
     715,   720,   721,   723,  1052,   727,   724,   731,   733,   737,
     744,   739,   740,   743,   741,   757,   758,  1062,   905,   749,
     750,   751,   752,   753,   754,   755,   759,   760,  1096,  1075,
    1077,   761,   762,   776,   763,   764,   765,   766,   793,   794,
     796,   795,   797,   798,   799,   801,   805,   810,   802,   803,
     808,  1102,  1104,  1105,  1107,   804,   807,  1108,   813,   814,
     817,   818,   830,  1113,   832,   833,   834,   835,   843,   910,
     836,   837,   877,   862,   880,  1051,   847,  1053,   848,   858,
     863,   864,   865,   866,  1122,   867,   868,  1124,   869,   870,
    1126,   871,   872,   873,   874,   875,   876,   881,   882,   883,
     884,   885,   886,   887,  1136,   890,  1137,    45,    46,   897,
      47,    48,    49,    50,    51,    52,    53,    54,    55,    56,
      57,    58,    59,    60,    61,    62,    63,    64,    65,    66,
      67,    68,    69,    70,    71,    72,    73,    74,    75,    76,
      77,    78,    79,    80,    81,    82,    83,    84,    85,    86,
      87,    88,    89,    90,    91,    92,   893,    93,    94,    95,
      96,    97,    98,    99,   100,   101,   102,   103,   104,   105,
     106,   107,   108,   109,   110,   111,   112,   113,   114,   115,
     116,   117,   118,   119,   120,   121,   122,   123,   124,   125,
     126,   127,   128,   896,   898,   129,   130,   131,   132,   133,
     134,   135,   136,   137,   138,   139,   140,   141,   142,   143,
     899,   900,   901,   902,   907,   908,   144,   145,   146,   147,
     148,   149,   150,   151,   152,   153,   154,   155,   156,   157,
     158,   906,   909,   911,   923,   925,   912,   927,   926,   928,
    1063,  1034,  1064,   929,   931,   930,   932,   955,   933,   934,
     956,   957,   958,   959,   969,   159,   963,   967,   979,   970,
     971,   974,   975,   976,   977,   978,   968,  1026,     0,   997,
     983,   984,   985,   986,   987,   988,   999,  1017,  1019,  1018,
    1029,   998,  1030,  1031,  1027,  1032,  1028,  1033,  1035,  1050,
    1038,  1057,  1041,  1065,  1068,  1067,     0,  1066,  1069,  1074,
    1081,  1001,  1086,  1089,  1087,  1114,  1111,  1085,  1088,  1090,
    1091,  1092,  1093,  1094,  1095,  1100,  1101,  1112,  1115,  1116,
    1109,  1110,  1117,  1118,  1119,  1120,  1127,  1123,  1125,  1129,
    1128,  1133,     0,     0,  1140,  1130,  1138,  1139,  1131,  1132,
    1142,     0,     0,     0,  1135,     0,  1134,  1144,     0,     0,
     609,     0,  1141,  1143
};

static const yytype_int16 yycheck[] =
{
     129,   130,   131,   132,   133,   134,     3,    53,     3,     6,
     150,     6,     3,    90,   150,     6,    73,    74,     3,   159,
       0,     6,   158,   100,   150,   150,   602,   603,   150,   605,
     107,   108,   109,   110,   111,   112,    90,   163,   163,   168,
     169,   163,   171,   150,   153,   154,   100,   150,   105,   158,
     150,   150,   159,   107,   108,   109,   110,   111,   112,   150,
     163,   155,   139,   163,   163,   159,   149,   155,   159,   155,
     147,   159,   166,   159,   148,   152,   149,   149,   166,   152,
     166,   155,   155,   113,   114,   115,   116,   117,   118,   119,
     120,   153,   154,   147,    91,   148,    91,   150,   152,   148,
      91,   154,   149,   149,   150,   154,    91,   155,   837,   149,
     152,   159,   152,   242,   243,   244,   245,   246,   247,   149,
     148,   155,   156,   153,   148,   155,   154,   157,   158,   148,
     154,   150,   261,   862,   863,   864,   865,   866,   867,   868,
     869,   870,   871,   872,   873,   874,   875,   876,   155,   997,
     998,   148,   159,   150,   149,   150,   151,   154,   149,   150,
     151,   737,   155,   148,   152,   150,   159,   128,   129,   130,
     131,   132,   133,   134,   148,   152,   148,   155,   155,   140,
     154,   159,   148,   149,   241,   146,   141,   142,   143,   144,
     145,   135,   136,   137,   138,   152,   152,   150,   155,   155,
     152,   152,   152,   155,   155,   155,   152,   152,   148,   155,
     155,   152,   148,   152,   155,   344,   155,   152,   152,   152,
     155,   155,   155,   152,   152,   152,   155,   155,   155,   152,
     152,   152,   155,   155,   155,   152,   152,   152,   155,   155,
     155,   152,   152,   152,   155,   155,   155,   152,   152,   152,
     155,   155,   155,   152,   152,   152,   155,   155,   155,   152,
     150,   152,   155,   392,   155,   152,   152,   152,   155,   155,
     155,   152,   152,   152,   155,   155,   155,   152,   152,   408,
     155,   155,   152,   412,   152,   155,   150,   155,   345,   346,
     347,   348,   349,   350,   351,   352,   353,   354,   355,   356,
     357,   358,   359,   152,   148,   152,   155,   151,   155,   148,
     152,   152,   369,   155,   155,   372,   150,   374,   375,   376,
     377,   378,   379,   380,   381,   382,   383,   384,   385,   386,
     387,   152,   152,   152,   155,   155,   155,   150,   152,   155,
     153,   155,   158,   152,   473,   150,   155,   476,   405,   152,
     152,   152,   155,   155,   155,   152,   152,   152,   155,   155,
     155,   152,   361,   362,   363,   364,   365,   366,   367,   152,
     152,   152,   155,   155,   155,   152,   152,   152,   155,   155,
     155,   152,   152,   152,   155,   155,   443,   148,   149,   150,
     447,   448,   449,   152,   152,   152,   453,   155,   155,   152,
     152,   152,   155,   155,   155,   152,   152,   152,   155,   538,
     155,   540,   541,   542,   543,   544,   545,   152,   155,   152,
     155,   158,   155,   152,   152,   152,   155,   155,   155,   152,
     152,   152,   155,   155,   155,   547,   548,   549,   148,  1026,
     150,  1028,   148,   155,   155,   148,   155,   163,   150,   150,
     150,   148,   148,   148,   148,   148,   148,   148,   148,   148,
     148,   148,   148,   148,   463,   148,   148,   165,   149,   149,
     149,   149,   149,   149,   149,   149,   148,   150,   148,   150,
     149,   148,   148,   148,   148,   148,   148,   486,   487,   148,
     148,   148,   148,   550,   148,   148,   553,   148,   148,   148,
     148,   156,   148,   148,   156,   148,   148,   148,   507,   508,
     509,   510,   511,   512,   513,   514,   148,   150,   158,   158,
     158,   158,   150,   150,   148,   150,   149,   149,   149,   155,
     150,   150,   150,   150,   148,   150,   148,   150,   148,   148,
     148,   148,   148,   159,   155,   150,   150,   150,   149,   149,
     149,   149,   149,   149,   149,   148,   148,   148,   557,   558,
     559,   560,   561,   562,   563,   564,   565,   566,   567,   568,
     569,   570,   571,   148,   148,   148,   148,   148,   155,   155,
     709,   150,   152,   148,   150,   152,   150,   150,   148,   148,
     148,   148,   148,   155,   155,   594,   595,   152,   597,   598,
     599,   155,   155,   155,   155,   155,   155,   155,   155,   155,
     155,   155,   155,   155,   155,   155,   615,   616,   155,   155,
     155,   155,   155,   162,   156,   155,   155,   155,   155,   155,
     155,   155,   761,   762,   763,   764,   765,   766,   155,   155,
     155,   155,   155,   155,   155,   148,   148,   148,   777,   148,
     150,   155,   148,   148,   159,   149,   148,   155,   155,   152,
     149,   148,   148,   720,   149,   149,   149,   148,   159,   149,
     149,   149,   148,   155,   149,   148,   148,   148,   155,   845,
      25,   155,   148,   148,   152,   155,   155,   686,   687,   688,
     689,   690,   691,   692,   693,   694,   695,   696,   697,   698,
     699,   700,   152,   152,   152,   152,   152,   836,   837,   160,
     155,   155,   155,   155,   155,   155,   155,   155,   155,   155,
     155,   155,   149,   152,   152,   155,   725,   726,   152,   149,
     729,   730,   149,   862,   863,   864,   865,   866,   867,   868,
     869,   870,   871,   872,   873,   874,   875,   876,   805,   748,
     749,   750,   751,   152,   149,   754,   149,   148,   152,   148,
     148,   148,   148,   155,   148,   155,   164,   152,   149,   152,
     152,   148,   152,   152,   150,   150,   150,   155,   148,   148,
     148,   148,   155,   155,   155,     7,  1098,   770,   906,   155,
     155,   155,   155,   155,   150,   155,   155,   155,   159,   150,
     929,   930,   155,   932,   933,   155,   155,   155,   155,   155,
     939,   155,   155,   155,   155,   155,   155,   155,   148,   148,
     148,   148,   148,   155,   155,   150,   150,   148,   150,   149,
     149,   149,   889,   148,   148,   892,   893,   148,   148,   838,
     839,   840,   841,   842,   148,   148,   155,   155,   155,   149,
     149,   149,   981,   149,   149,   152,   157,   159,   152,   148,
     150,   152,   155,   155,   152,   152,   148,   152,   925,   926,
     149,   152,   148,   148,   152,   155,   148,   934,   148,   165,
     164,   155,   155,   160,   155,   152,   155,   155,   148,   155,
     155,   155,   155,   155,  1023,   148,   155,   149,   155,   148,
     155,   152,   152,   150,   152,   148,   148,   161,   164,   155,
     155,   155,   152,   152,   155,   152,   148,   152,   156,  1048,
    1049,   155,   155,   148,   155,   155,   155,   155,   155,   155,
     148,   155,   148,   148,   148,   148,   155,   148,   150,   149,
     149,  1070,  1071,  1072,  1073,   150,   150,  1076,   148,   152,
     152,   149,   160,  1082,   160,   152,   152,   150,   148,   160,
     155,   155,   149,   155,   150,  1022,   157,  1024,   157,   157,
     155,   155,   155,   155,  1103,   155,   155,  1106,   155,   155,
    1109,   155,   155,   155,   155,   155,   155,   152,   155,   152,
     152,   152,   148,   152,  1123,   155,  1125,     4,     5,   152,
       7,     8,     9,    10,    11,    12,    13,    14,    15,    16,
      17,    18,    19,    20,    21,    22,    23,    24,    25,    26,
      27,    28,    29,    30,    31,    32,    33,    34,    35,    36,
      37,    38,    39,    40,    41,    42,    43,    44,    45,    46,
      47,    48,    49,    50,    51,    52,   155,    54,    55,    56,
      57,    58,    59,    60,    61,    62,    63,    64,    65,    66,
      67,    68,    69,    70,    71,    72,    73,    74,    75,    76,
      77,    78,    79,    80,    81,    82,    83,    84,    85,    86,
      87,    88,    89,   155,   152,    92,    93,    94,    95,    96,
      97,    98,    99,   100,   101,   102,   103,   104,   105,   106,
     152,   152,   152,   152,   148,   148,   113,   114,   115,   116,
     117,   118,   119,   120,   121,   122,   123,   124,   125,   126,
     127,   155,   148,   148,   152,   155,   150,   148,   155,   152,
     161,   981,   161,   155,   152,   155,   155,   152,   155,   155,
     152,   150,   152,   148,   150,   152,   149,   149,   152,   150,
     150,   148,   148,   148,   148,   148,   896,   155,    -1,   158,
     152,   152,   152,   152,   152,   149,   148,   152,   148,   152,
     148,   158,   148,   148,   155,   148,   155,   148,   155,   148,
     152,   148,   152,   148,   150,   149,    -1,   161,   150,   148,
     150,   939,   155,   148,   155,   148,   150,   165,   155,   155,
     152,   152,   152,   161,   152,   152,   152,   152,   148,   148,
     159,   155,   155,   148,   152,   148,   150,   159,   159,   150,
     152,   148,    -1,    -1,   148,   155,   152,   152,   165,   165,
     148,    -1,    -1,    -1,   162,    -1,   165,   157,    -1,    -1,
     476,    -1,   165,   165
};

  /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
     symbol of state STATE-NUM.  */
static const yytype_uint8 yystos[] =
{
       0,   135,   136,   137,   138,   168,   169,   170,   171,   149,
     149,   149,   153,   154,     0,    90,   100,   107,   108,   109,
     110,   111,   112,   147,   152,   175,   176,   185,   189,   171,
     149,   152,   152,   152,   148,   148,   148,   150,   150,   148,
     154,   150,   150,   150,   148,     4,     5,     7,     8,     9,
      10,    11,    12,    13,    14,    15,    16,    17,    18,    19,
      20,    21,    22,    23,    24,    25,    26,    27,    28,    29,
      30,    31,    32,    33,    34,    35,    36,    37,    38,    39,
      40,    41,    42,    43,    44,    45,    46,    47,    48,    49,
      50,    51,    52,    54,    55,    56,    57,    58,    59,    60,
      61,    62,    63,    64,    65,    66,    67,    68,    69,    70,
      71,    72,    73,    74,    75,    76,    77,    78,    79,    80,
      81,    82,    83,    84,    85,    86,    87,    88,    89,    92,
      93,    94,    95,    96,    97,    98,    99,   100,   101,   102,
     103,   104,   105,   106,   113,   114,   115,   116,   117,   118,
     119,   120,   121,   122,   123,   124,   125,   126,   127,   152,
     139,   172,   176,   128,   129,   130,   131,   132,   133,   134,
     140,   146,   152,   152,   152,   141,   142,   143,   144,   145,
     203,   152,   152,   155,   148,   154,   148,   155,   155,   155,
     148,   150,   150,   150,   197,   200,   148,   148,   148,   148,
     148,   148,   148,   148,   148,   148,   148,   148,   148,   148,
     148,   149,   149,   149,   149,   149,   149,   149,   149,   150,
     148,   197,   197,   148,   149,   148,   148,   148,   148,   148,
     148,   148,   148,   148,   148,   148,   148,   148,   148,   156,
     156,   148,   148,   148,   148,   148,   148,   148,   158,   158,
     158,   158,    53,   149,   150,   197,   150,   148,   150,   150,
     150,   148,   150,   163,   188,   150,   188,   150,   188,   150,
     188,   188,   150,   188,   188,   188,   150,   188,   149,   149,
     149,   150,   150,   150,   150,   150,   200,   200,   200,   200,
     200,   200,   148,   150,   150,   148,   148,   148,   148,   148,
     148,   150,   150,   150,   149,   149,   188,   149,   149,   149,
     188,   149,   188,   149,   188,   188,   148,   148,   148,   148,
     148,   148,   200,   200,   148,   148,   149,   190,   191,   192,
     200,   148,   150,   152,   148,   148,   154,   150,   150,   150,
     148,   148,   148,   152,   155,   155,   155,   155,   155,   155,
     155,   155,   155,   155,   155,   155,   155,   155,   155,   155,
     155,   155,   155,   155,   155,   155,   155,   155,   155,   155,
     152,   152,   155,   156,   155,   155,   155,   155,   155,   155,
     155,   155,   155,   155,   155,   155,   155,   155,   148,   148,
     158,   197,   207,   200,   200,   200,   200,   200,   200,   148,
     148,   148,   148,   150,   152,   155,   152,   152,   155,   148,
     155,   152,   200,   148,   149,   148,   149,   148,   149,   148,
     149,   149,   148,   149,   149,   149,   148,   149,   148,   148,
     148,   155,   155,   155,   155,   155,   152,   152,   152,   152,
     152,   152,   155,   155,   155,   148,   148,   155,   155,   155,
     155,   155,   155,   155,   155,   155,   149,   152,   152,   152,
     149,   152,   149,   155,   149,   149,   152,   148,   148,   148,
     148,   148,   152,   155,   148,   152,   155,   149,   152,   152,
     152,   148,   150,   150,   150,   155,   155,   155,   200,   197,
     197,   197,   197,   197,   197,   197,   197,   197,   197,   197,
     197,   197,   197,   197,   148,   150,   154,   206,   206,   206,
     206,   206,   206,   206,   206,   148,   150,   197,   197,   148,
     197,   197,   197,   197,   197,   197,   197,   197,   197,   197,
     197,   197,   197,   197,   148,   148,   148,   152,   155,   200,
     155,   155,   155,   155,   155,   155,   159,   159,   159,   159,
     155,   197,   200,   155,   156,   150,   200,   155,   155,   155,
     155,   155,   155,   155,   155,   155,   155,   155,   155,   155,
     155,   155,   148,   148,   148,   148,   148,   150,   150,   150,
     148,   197,   149,   149,   149,   197,   197,   197,   148,   148,
     148,   197,   148,   148,   155,   155,   155,   206,   155,   155,
     173,   149,   149,   149,   149,   149,   200,   148,   149,   192,
     152,   152,   155,   155,   150,   206,   206,   152,   152,   152,
     152,   152,   152,   152,   152,   152,   152,   152,   152,   152,
     152,   152,   152,   148,   206,   206,   206,   206,   206,   206,
     206,   206,   152,   152,   152,   152,   157,   152,   152,   152,
     152,   152,   152,   152,   152,   152,   152,   152,   152,   152,
     152,   148,   148,   155,   159,   148,   152,   200,   200,   200,
     200,   200,   200,   149,   186,   187,   186,   186,   186,   197,
     152,   152,   197,   148,   152,   155,   206,   206,   206,   206,
     206,   206,   206,   206,   206,   206,   206,   206,   206,   206,
     206,   148,   148,   148,   155,   155,   155,   155,   152,   155,
     152,   149,   152,   155,   155,   155,   152,   152,   152,   148,
     155,   155,   152,   155,   155,   206,   206,   148,   206,   206,
     206,   149,   174,   155,   193,   193,   193,   148,   193,   152,
     152,   152,   150,   150,   155,   206,   206,   152,   155,   155,
     155,   155,   152,   152,   155,   152,   178,   148,   148,   148,
     152,   155,   155,   155,   155,   155,   155,   148,   151,   152,
     155,   152,   152,   152,   152,   152,   148,   177,   206,   206,
     206,   206,   206,   206,   206,   206,   206,   206,   206,   206,
     206,   206,   206,   155,   155,   155,   148,   148,   148,   148,
     200,   148,   150,   149,   150,   155,   197,   150,   149,   205,
     148,   206,   206,   148,   152,   206,   206,   152,   149,     3,
       6,    91,   149,   150,   151,   194,   195,   196,   160,   160,
     160,   193,   160,   152,   152,   150,   155,   155,   206,   206,
     206,   206,   206,   148,   179,   180,   181,   157,   157,   155,
     159,   200,   200,   200,   200,   200,   200,   187,   157,   200,
     202,   204,   155,   155,   155,   155,   155,   155,   155,   155,
     155,   155,   155,   155,   155,   155,   155,   149,   150,   153,
     150,   152,   155,   152,   152,   152,   148,   152,   152,   155,
     155,   197,   158,   155,   152,   155,   155,   152,   152,   152,
     152,   152,   152,   164,   164,   164,   155,   148,   148,   148,
     160,   148,   150,   199,   200,   201,   199,   206,   206,   206,
     206,   206,   162,   152,   181,   155,   155,   148,   152,   155,
     155,   152,   155,   155,   155,   153,   154,   158,   152,   155,
     199,   199,   199,   199,   199,   199,   199,   199,   199,   199,
     199,   199,   199,   199,   199,   152,   152,   150,   152,   148,
     152,   155,   197,   149,   152,   197,   197,   149,   205,   150,
     150,   150,   150,   195,   148,   148,   148,   148,   148,   152,
     152,   155,   152,   152,   152,   152,   152,   152,   149,   197,
     197,   159,   200,   200,   200,   200,   197,   158,   158,   148,
     198,   204,   152,   152,   152,   152,   152,   152,   152,   152,
     152,   152,   152,   152,   152,   152,   152,   152,   152,   148,
     152,   152,   155,   159,   158,   152,   155,   155,   155,   148,
     148,   148,   148,   148,   201,   155,   152,   152,   152,   152,
     155,   152,   152,   155,   152,   198,   198,   155,   159,   166,
     148,   197,   200,   197,   148,   150,   196,   148,   148,   150,
     154,   196,   161,   161,   161,   148,   161,   149,   150,   150,
     159,   166,   159,   166,   148,   200,   159,   200,   148,   155,
     152,   150,   159,   165,   165,   165,   155,   155,   155,   148,
     155,   152,   152,   152,   161,   152,   156,   182,   183,   184,
     152,   152,   200,   159,   200,   200,   159,   200,   200,   159,
     155,   150,   152,   200,   148,   148,   148,   155,   148,   152,
     148,   184,   200,   159,   200,   159,   200,   150,   152,   150,
     155,   165,   165,   148,   165,   162,   200,   200,   152,   152,
     148,   165,   148,   165,   157
};

  /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives.  */
static const yytype_uint8 yyr1[] =
{
       0,   167,   168,   169,   169,   170,   170,   171,   171,   171,
     171,   171,   171,   173,   172,   174,   174,   175,   175,   176,
     176,   176,   176,   176,   176,   176,   176,   176,   176,   176,
     176,   176,   176,   176,   176,   176,   176,   176,   176,   176,
     176,   176,   176,   176,   176,   176,   176,   176,   176,   176,
     176,   176,   176,   176,   176,   176,   176,   176,   176,   176,
     176,   176,   176,   176,   176,   176,   176,   176,   176,   176,
     176,   176,   176,   176,   176,   176,   176,   176,   176,   176,
     176,   176,   176,   177,   176,   176,   176,   176,   176,   176,
     176,   176,   176,   176,   176,   176,   176,   176,   176,   176,
     176,   176,   176,   176,   176,   176,   176,   176,   176,   176,
     176,   176,   176,   176,   176,   176,   176,   176,   176,   176,
     176,   176,   176,   176,   176,   176,   176,   176,   176,   176,
     176,   176,   176,   176,   176,   176,   176,   176,   176,   176,
     176,   176,   176,   176,   176,   176,   176,   176,   176,   176,
     176,   176,   176,   176,   176,   176,   176,   176,   176,   176,
     176,   176,   176,   176,   176,   176,   176,   176,   176,   176,
     176,   176,   176,   176,   176,   178,   176,   176,   176,   179,
     179,   180,   180,   181,   182,   182,   183,   183,   184,   185,
     185,   185,   185,   186,   186,   187,   187,   188,   188,   189,
     189,   190,   190,   191,   191,   192,   192,   192,   193,   193,
     194,   194,   194,   194,   195,   195,   195,   196,   196,   196,
     196,   196,   196,   196,   196,   197,   197,   198,   198,   199,
     199,   200,   201,   201,   202,   202,   203,   203,   203,   203,
     203,   204,   204,   204,   204,   204,   204,   204,   204,   204,
     205,   205,   206,   206,   207,   207,   207
};

  /* YYR2[YYN] -- Number of symbols on the right hand side of rule YYN.  */
static const yytype_uint8 yyr2[] =
{
       0,     2,     3,     1,     0,     1,     2,     3,     4,     3,
       3,     4,     4,     0,     5,     2,     3,     1,     2,     7,
      11,    10,     8,     6,    10,    10,    10,    10,     7,    10,
       7,     7,     7,     6,     6,     6,    13,    15,     6,     8,
      10,     8,     8,    11,    11,     9,     4,     6,     4,     4,
       6,     6,     6,     6,     6,     6,     6,     6,     6,     6,
       6,     6,     6,     6,     6,     6,     6,     6,     6,     6,
       6,     6,     6,     6,     6,     6,     6,     6,     6,     6,
       6,     5,     7,     0,     9,     9,     9,    11,    11,    11,
      11,    13,    13,     4,     4,     4,     4,     4,     4,     8,
       6,    10,    12,     8,    10,     6,     6,     6,     6,     7,
       4,     4,     4,     2,     6,     6,    12,    12,    12,    13,
      12,     4,     6,     9,    15,    14,     6,     8,     3,     5,
       4,     5,     5,     6,     3,     5,     8,     8,     8,     8,
       8,     7,     4,     4,     4,     4,    10,    10,    10,    10,
      10,    10,    10,    10,    10,    10,    10,    10,    10,    10,
      10,    10,    10,     9,     9,    10,     9,     4,     6,     6,
       4,     6,     8,     8,    10,     0,     9,     1,     1,     1,
       0,     2,     1,     6,     1,     0,     2,     1,     5,     7,
       7,     7,     7,     1,     3,     2,     2,     1,     0,     1,
       0,     1,     0,     3,     1,     1,     1,     1,     2,     0,
       1,     3,     1,     3,     1,     1,     1,     6,     6,     6,
       8,     9,     8,     8,    10,     1,     3,     1,     3,     1,
       3,     1,     1,     0,     1,     3,     1,     1,     1,     1,
       1,     5,     6,     7,     6,     7,     8,     6,     7,     8,
       1,     3,     1,     2,     3,     5,     7
};


#define yyerrok         (yyerrstatus = 0)
#define yyclearin       (yychar = YYEMPTY)
#define YYEMPTY         (-2)
#define YYEOF           0

#define YYACCEPT        goto yyacceptlab
#define YYABORT         goto yyabortlab
#define YYERROR         goto yyerrorlab


#define YYRECOVERING()  (!!yyerrstatus)

#define YYBACKUP(Token, Value)                                    \
  do                                                              \
    if (yychar == YYEMPTY)                                        \
      {                                                           \
        yychar = (Token);                                         \
        yylval = (Value);                                         \
        YYPOPSTACK (yylen);                                       \
        yystate = *yyssp;                                         \
        goto yybackup;                                            \
      }                                                           \
    else                                                          \
      {                                                           \
        yyerror (YY_("syntax error: cannot back up")); \
        YYERROR;                                                  \
      }                                                           \
  while (0)

/* Error token number */
#define YYTERROR        1
#define YYERRCODE       256



/* Enable debugging if requested.  */
#if YYDEBUG

# ifndef YYFPRINTF
#  include <stdio.h> /* INFRINGES ON USER NAME SPACE */
#  define YYFPRINTF fprintf
# endif

# define YYDPRINTF(Args)                        \
do {                                            \
  if (yydebug)                                  \
    YYFPRINTF Args;                             \
} while (0)

/* This macro is provided for backward compatibility. */
#ifndef YY_LOCATION_PRINT
# define YY_LOCATION_PRINT(File, Loc) ((void) 0)
#endif


# define YY_SYMBOL_PRINT(Title, Type, Value, Location)                    \
do {                                                                      \
  if (yydebug)                                                            \
    {                                                                     \
      YYFPRINTF (stderr, "%s ", Title);                                   \
      yy_symbol_print (stderr,                                            \
                  Type, Value); \
      YYFPRINTF (stderr, "\n");                                           \
    }                                                                     \
} while (0)


/*-----------------------------------.
| Print this symbol's value on YYO.  |
`-----------------------------------*/

static void
yy_symbol_value_print (FILE *yyo, int yytype, YYSTYPE const * const yyvaluep)
{
  FILE *yyoutput = yyo;
  YYUSE (yyoutput);
  if (!yyvaluep)
    return;
# ifdef YYPRINT
  if (yytype < YYNTOKENS)
    YYPRINT (yyo, yytoknum[yytype], *yyvaluep);
# endif
  YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
  YYUSE (yytype);
  YY_IGNORE_MAYBE_UNINITIALIZED_END
}


/*---------------------------.
| Print this symbol on YYO.  |
`---------------------------*/

static void
yy_symbol_print (FILE *yyo, int yytype, YYSTYPE const * const yyvaluep)
{
  YYFPRINTF (yyo, "%s %s (",
             yytype < YYNTOKENS ? "token" : "nterm", yytname[yytype]);

  yy_symbol_value_print (yyo, yytype, yyvaluep);
  YYFPRINTF (yyo, ")");
}

/*------------------------------------------------------------------.
| yy_stack_print -- Print the state stack from its BOTTOM up to its |
| TOP (included).                                                   |
`------------------------------------------------------------------*/

static void
yy_stack_print (yytype_int16 *yybottom, yytype_int16 *yytop)
{
  YYFPRINTF (stderr, "Stack now");
  for (; yybottom <= yytop; yybottom++)
    {
      int yybot = *yybottom;
      YYFPRINTF (stderr, " %d", yybot);
    }
  YYFPRINTF (stderr, "\n");
}

# define YY_STACK_PRINT(Bottom, Top)                            \
do {                                                            \
  if (yydebug)                                                  \
    yy_stack_print ((Bottom), (Top));                           \
} while (0)


/*------------------------------------------------.
| Report that the YYRULE is going to be reduced.  |
`------------------------------------------------*/

static void
yy_reduce_print (yytype_int16 *yyssp, YYSTYPE *yyvsp, int yyrule)
{
  unsigned long yylno = yyrline[yyrule];
  int yynrhs = yyr2[yyrule];
  int yyi;
  YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu):\n",
             yyrule - 1, yylno);
  /* The symbols being reduced.  */
  for (yyi = 0; yyi < yynrhs; yyi++)
    {
      YYFPRINTF (stderr, "   $%d = ", yyi + 1);
      yy_symbol_print (stderr,
                       yystos[yyssp[yyi + 1 - yynrhs]],
                       &yyvsp[(yyi + 1) - (yynrhs)]
                                              );
      YYFPRINTF (stderr, "\n");
    }
}

# define YY_REDUCE_PRINT(Rule)          \
do {                                    \
  if (yydebug)                          \
    yy_reduce_print (yyssp, yyvsp, Rule); \
} while (0)

/* Nonzero means print parse trace.  It is left uninitialized so that
   multiple parsers can coexist.  */
int yydebug;
#else /* !YYDEBUG */
# define YYDPRINTF(Args)
# define YY_SYMBOL_PRINT(Title, Type, Value, Location)
# define YY_STACK_PRINT(Bottom, Top)
# define YY_REDUCE_PRINT(Rule)
#endif /* !YYDEBUG */


/* YYINITDEPTH -- initial size of the parser's stacks.  */
#ifndef YYINITDEPTH
# define YYINITDEPTH 200
#endif

/* YYMAXDEPTH -- maximum size the stacks can grow to (effective only
   if the built-in stack extension method is used).

   Do not make this value too large; the results are undefined if
   YYSTACK_ALLOC_MAXIMUM < YYSTACK_BYTES (YYMAXDEPTH)
   evaluated with infinite-precision integer arithmetic.  */

#ifndef YYMAXDEPTH
# define YYMAXDEPTH 10000
#endif


#if YYERROR_VERBOSE

# ifndef yystrlen
#  if defined __GLIBC__ && defined _STRING_H
#   define yystrlen strlen
#  else
/* Return the length of YYSTR.  */
static YYSIZE_T
yystrlen (const char *yystr)
{
  YYSIZE_T yylen;
  for (yylen = 0; yystr[yylen]; yylen++)
    continue;
  return yylen;
}
#  endif
# endif

# ifndef yystpcpy
#  if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE
#   define yystpcpy stpcpy
#  else
/* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in
   YYDEST.  */
static char *
yystpcpy (char *yydest, const char *yysrc)
{
  char *yyd = yydest;
  const char *yys = yysrc;

  while ((*yyd++ = *yys++) != '\0')
    continue;

  return yyd - 1;
}
#  endif
# endif

# ifndef yytnamerr
/* Copy to YYRES the contents of YYSTR after stripping away unnecessary
   quotes and backslashes, so that it's suitable for yyerror.  The
   heuristic is that double-quoting is unnecessary unless the string
   contains an apostrophe, a comma, or backslash (other than
   backslash-backslash).  YYSTR is taken from yytname.  If YYRES is
   null, do not copy; instead, return the length of what the result
   would have been.  */
static YYSIZE_T
yytnamerr (char *yyres, const char *yystr)
{
  if (*yystr == '"')
    {
      YYSIZE_T yyn = 0;
      char const *yyp = yystr;

      for (;;)
        switch (*++yyp)
          {
          case '\'':
          case ',':
            goto do_not_strip_quotes;

          case '\\':
            if (*++yyp != '\\')
              goto do_not_strip_quotes;
            else
              goto append;

          append:
          default:
            if (yyres)
              yyres[yyn] = *yyp;
            yyn++;
            break;

          case '"':
            if (yyres)
              yyres[yyn] = '\0';
            return yyn;
          }
    do_not_strip_quotes: ;
    }

  if (! yyres)
    return yystrlen (yystr);

  return (YYSIZE_T) (yystpcpy (yyres, yystr) - yyres);
}
# endif

/* Copy into *YYMSG, which is of size *YYMSG_ALLOC, an error message
   about the unexpected token YYTOKEN for the state stack whose top is
   YYSSP.

   Return 0 if *YYMSG was successfully written.  Return 1 if *YYMSG is
   not large enough to hold the message.  In that case, also set
   *YYMSG_ALLOC to the required number of bytes.  Return 2 if the
   required number of bytes is too large to store.  */
static int
yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg,
                yytype_int16 *yyssp, int yytoken)
{
  YYSIZE_T yysize0 = yytnamerr (YY_NULLPTR, yytname[yytoken]);
  YYSIZE_T yysize = yysize0;
  enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 };
  /* Internationalized format string. */
  const char *yyformat = YY_NULLPTR;
  /* Arguments of yyformat. */
  char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
  /* Number of reported tokens (one for the "unexpected", one per
     "expected"). */
  int yycount = 0;

  /* There are many possibilities here to consider:
     - If this state is a consistent state with a default action, then
       the only way this function was invoked is if the default action
       is an error action.  In that case, don't check for expected
       tokens because there are none.
     - The only way there can be no lookahead present (in yychar) is if
       this state is a consistent state with a default action.  Thus,
       detecting the absence of a lookahead is sufficient to determine
       that there is no unexpected or expected token to report.  In that
       case, just report a simple "syntax error".
     - Don't assume there isn't a lookahead just because this state is a
       consistent state with a default action.  There might have been a
       previous inconsistent state, consistent state with a non-default
       action, or user semantic action that manipulated yychar.
     - Of course, the expected token list depends on states to have
       correct lookahead information, and it depends on the parser not
       to perform extra reductions after fetching a lookahead from the
       scanner and before detecting a syntax error.  Thus, state merging
       (from LALR or IELR) and default reductions corrupt the expected
       token list.  However, the list is correct for canonical LR with
       one exception: it will still contain any token that will not be
       accepted due to an error action in a later state.
  */
  if (yytoken != YYEMPTY)
    {
      int yyn = yypact[*yyssp];
      yyarg[yycount++] = yytname[yytoken];
      if (!yypact_value_is_default (yyn))
        {
          /* Start YYX at -YYN if negative to avoid negative indexes in
             YYCHECK.  In other words, skip the first -YYN actions for
             this state because they are default actions.  */
          int yyxbegin = yyn < 0 ? -yyn : 0;
          /* Stay within bounds of both yycheck and yytname.  */
          int yychecklim = YYLAST - yyn + 1;
          int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS;
          int yyx;

          for (yyx = yyxbegin; yyx < yyxend; ++yyx)
            if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR
                && !yytable_value_is_error (yytable[yyx + yyn]))
              {
                if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM)
                  {
                    yycount = 1;
                    yysize = yysize0;
                    break;
                  }
                yyarg[yycount++] = yytname[yyx];
                {
                  YYSIZE_T yysize1 = yysize + yytnamerr (YY_NULLPTR, yytname[yyx]);
                  if (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM)
                    yysize = yysize1;
                  else
                    return 2;
                }
              }
        }
    }

  switch (yycount)
    {
# define YYCASE_(N, S)                      \
      case N:                               \
        yyformat = S;                       \
      break
    default: /* Avoid compiler warnings. */
      YYCASE_(0, YY_("syntax error"));
      YYCASE_(1, YY_("syntax error, unexpected %s"));
      YYCASE_(2, YY_("syntax error, unexpected %s, expecting %s"));
      YYCASE_(3, YY_("syntax error, unexpected %s, expecting %s or %s"));
      YYCASE_(4, YY_("syntax error, unexpected %s, expecting %s or %s or %s"));
      YYCASE_(5, YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s"));
# undef YYCASE_
    }

  {
    YYSIZE_T yysize1 = yysize + yystrlen (yyformat);
    if (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM)
      yysize = yysize1;
    else
      return 2;
  }

  if (*yymsg_alloc < yysize)
    {
      *yymsg_alloc = 2 * yysize;
      if (! (yysize <= *yymsg_alloc
             && *yymsg_alloc <= YYSTACK_ALLOC_MAXIMUM))
        *yymsg_alloc = YYSTACK_ALLOC_MAXIMUM;
      return 1;
    }

  /* Avoid sprintf, as that infringes on the user's name space.
     Don't have undefined behavior even if the translation
     produced a string with the wrong number of "%s"s.  */
  {
    char *yyp = *yymsg;
    int yyi = 0;
    while ((*yyp = *yyformat) != '\0')
      if (*yyp == '%' && yyformat[1] == 's' && yyi < yycount)
        {
          yyp += yytnamerr (yyp, yyarg[yyi++]);
          yyformat += 2;
        }
      else
        {
          yyp++;
          yyformat++;
        }
  }
  return 0;
}
#endif /* YYERROR_VERBOSE */

/*-----------------------------------------------.
| Release the memory associated to this symbol.  |
`-----------------------------------------------*/

static void
yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep)
{
  YYUSE (yyvaluep);
  if (!yymsg)
    yymsg = "Deleting";
  YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp);

  YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
  YYUSE (yytype);
  YY_IGNORE_MAYBE_UNINITIALIZED_END
}




/* The lookahead symbol.  */
int yychar;

/* The semantic value of the lookahead symbol.  */
YYSTYPE yylval;
/* Number of syntax errors so far.  */
int yynerrs;


/*----------.
| yyparse.  |
`----------*/

int
yyparse (void)
{
    int yystate;
    /* Number of tokens to shift before error messages enabled.  */
    int yyerrstatus;

    /* The stacks and their tools:
       'yyss': related to states.
       'yyvs': related to semantic values.

       Refer to the stacks through separate pointers, to allow yyoverflow
       to reallocate them elsewhere.  */

    /* The state stack.  */
    yytype_int16 yyssa[YYINITDEPTH];
    yytype_int16 *yyss;
    yytype_int16 *yyssp;

    /* The semantic value stack.  */
    YYSTYPE yyvsa[YYINITDEPTH];
    YYSTYPE *yyvs;
    YYSTYPE *yyvsp;

    YYSIZE_T yystacksize;

  int yyn;
  int yyresult;
  /* Lookahead token as an internal (translated) token number.  */
  int yytoken = 0;
  /* The variables used to return semantic value and location from the
     action routines.  */
  YYSTYPE yyval;

#if YYERROR_VERBOSE
  /* Buffer for error messages, and its allocated size.  */
  char yymsgbuf[128];
  char *yymsg = yymsgbuf;
  YYSIZE_T yymsg_alloc = sizeof yymsgbuf;
#endif

#define YYPOPSTACK(N)   (yyvsp -= (N), yyssp -= (N))

  /* The number of symbols on the RHS of the reduced rule.
     Keep to zero when no symbol should be popped.  */
  int yylen = 0;

  yyssp = yyss = yyssa;
  yyvsp = yyvs = yyvsa;
  yystacksize = YYINITDEPTH;

  YYDPRINTF ((stderr, "Starting parse\n"));

  yystate = 0;
  yyerrstatus = 0;
  yynerrs = 0;
  yychar = YYEMPTY; /* Cause a token to be read.  */
  goto yysetstate;


/*------------------------------------------------------------.
| yynewstate -- push a new state, which is found in yystate.  |
`------------------------------------------------------------*/
yynewstate:
  /* In all cases, when you get here, the value and location stacks
     have just been pushed.  So pushing a state here evens the stacks.  */
  yyssp++;


/*--------------------------------------------------------------------.
| yynewstate -- set current state (the top of the stack) to yystate.  |
`--------------------------------------------------------------------*/
yysetstate:
  YYDPRINTF ((stderr, "Entering state %d\n", yystate));
  YY_ASSERT (0 <= yystate && yystate < YYNSTATES);
  *yyssp = (yytype_int16) yystate;

  if (yyss + yystacksize - 1 <= yyssp)
#if !defined yyoverflow && !defined YYSTACK_RELOCATE
    goto yyexhaustedlab;
#else
    {
      /* Get the current used size of the three stacks, in elements.  */
      YYSIZE_T yysize = (YYSIZE_T) (yyssp - yyss + 1);

# if defined yyoverflow
      {
        /* Give user a chance to reallocate the stack.  Use copies of
           these so that the &'s don't force the real ones into
           memory.  */
        YYSTYPE *yyvs1 = yyvs;
        yytype_int16 *yyss1 = yyss;

        /* Each stack pointer address is followed by the size of the
           data in use in that stack, in bytes.  This used to be a
           conditional around just the two extra args, but that might
           be undefined if yyoverflow is a macro.  */
        yyoverflow (YY_("memory exhausted"),
                    &yyss1, yysize * sizeof (*yyssp),
                    &yyvs1, yysize * sizeof (*yyvsp),
                    &yystacksize);
        yyss = yyss1;
        yyvs = yyvs1;
      }
# else /* defined YYSTACK_RELOCATE */
      /* Extend the stack our own way.  */
      if (YYMAXDEPTH <= yystacksize)
        goto yyexhaustedlab;
      yystacksize *= 2;
      if (YYMAXDEPTH < yystacksize)
        yystacksize = YYMAXDEPTH;

      {
        yytype_int16 *yyss1 = yyss;
        union yyalloc *yyptr =
          (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize));
        if (! yyptr)
          goto yyexhaustedlab;
        YYSTACK_RELOCATE (yyss_alloc, yyss);
        YYSTACK_RELOCATE (yyvs_alloc, yyvs);
# undef YYSTACK_RELOCATE
        if (yyss1 != yyssa)
          YYSTACK_FREE (yyss1);
      }
# endif

      yyssp = yyss + yysize - 1;
      yyvsp = yyvs + yysize - 1;

      YYDPRINTF ((stderr, "Stack size increased to %lu\n",
                  (unsigned long) yystacksize));

      if (yyss + yystacksize - 1 <= yyssp)
        YYABORT;
    }
#endif /* !defined yyoverflow && !defined YYSTACK_RELOCATE */

  if (yystate == YYFINAL)
    YYACCEPT;

  goto yybackup;


/*-----------.
| yybackup.  |
`-----------*/
yybackup:
  /* Do appropriate processing given the current state.  Read a
     lookahead token if we need one and don't already have one.  */

  /* First try to decide what to do without reference to lookahead token.  */
  yyn = yypact[yystate];
  if (yypact_value_is_default (yyn))
    goto yydefault;

  /* Not known => get a lookahead token if don't already have one.  */

  /* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol.  */
  if (yychar == YYEMPTY)
    {
      YYDPRINTF ((stderr, "Reading a token: "));
      yychar = yylex ();
    }

  if (yychar <= YYEOF)
    {
      yychar = yytoken = YYEOF;
      YYDPRINTF ((stderr, "Now at end of input.\n"));
    }
  else
    {
      yytoken = YYTRANSLATE (yychar);
      YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc);
    }

  /* If the proper action on seeing token YYTOKEN is to reduce or to
     detect an error, take that action.  */
  yyn += yytoken;
  if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken)
    goto yydefault;
  yyn = yytable[yyn];
  if (yyn <= 0)
    {
      if (yytable_value_is_error (yyn))
        goto yyerrlab;
      yyn = -yyn;
      goto yyreduce;
    }

  /* Count tokens shifted since error; after three, turn off error
     status.  */
  if (yyerrstatus)
    yyerrstatus--;

  /* Shift the lookahead token.  */
  YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc);

  /* Discard the shifted token.  */
  yychar = YYEMPTY;

  yystate = yyn;
  YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
  *++yyvsp = yylval;
  YY_IGNORE_MAYBE_UNINITIALIZED_END
  goto yynewstate;


/*-----------------------------------------------------------.
| yydefault -- do the default action for the current state.  |
`-----------------------------------------------------------*/
yydefault:
  yyn = yydefact[yystate];
  if (yyn == 0)
    goto yyerrlab;
  goto yyreduce;


/*-----------------------------.
| yyreduce -- do a reduction.  |
`-----------------------------*/
yyreduce:
  /* yyn is the number of a rule to reduce with.  */
  yylen = yyr2[yyn];

  /* If YYLEN is nonzero, implement the default value of the action:
     '$$ = $1'.

     Otherwise, the following line sets YYVAL to garbage.
     This behavior is undocumented and Bison
     users should not rely upon it.  Assigning to YYVAL
     unconditionally makes the parser a bit smaller, and it avoids a
     GCC warning that YYVAL may be used uninitialized.  */
  yyval = yyvsp[1-yylen];


  YY_REDUCE_PRINT (yyn);
  switch (yyn)
    {
  case 7:
#line 148 "parse.y"
    { verify_version((yyvsp[-1].text), NULL); }
#line 2314 "parse.cc"
    break;

  case 8:
#line 150 "parse.y"
    { verify_version((yyvsp[-2].text), (yyvsp[-1].text)); }
#line 2320 "parse.cc"
    break;

  case 9:
#line 152 "parse.y"
    { set_delay_selection((yyvsp[-1].text)); }
#line 2326 "parse.cc"
    break;

  case 10:
#line 154 "parse.y"
    { compile_load_vpi_module((yyvsp[-1].text)); }
#line 2332 "parse.cc"
    break;

  case 11:
#line 156 "parse.y"
    { compile_vpi_time_precision((yyvsp[-1].numb)); }
#line 2338 "parse.cc"
    break;

  case 12:
#line 158 "parse.y"
    { compile_vpi_time_precision(-(yyvsp[-1].numb)); }
#line 2344 "parse.cc"
    break;

  case 13:
#line 162 "parse.y"
    { file_names.reserve((yyvsp[-1].numb)); }
#line 2350 "parse.cc"
    break;

  case 15:
#line 168 "parse.y"
    { file_names.push_back((yyvsp[-1].text)); }
#line 2356 "parse.cc"
    break;

  case 16:
#line 170 "parse.y"
    { file_names.push_back((yyvsp[-1].text)); }
#line 2362 "parse.cc"
    break;

  case 19:
#line 192 "parse.y"
    { compile_functor((yyvsp[-6].text), (yyvsp[-4].text), (yyvsp[-3].numb), 6, 6, (yyvsp[-1].symbv).cnt, (yyvsp[-1].symbv).vect); }
#line 2368 "parse.cc"
    break;

  case 20:
#line 196 "parse.y"
    { unsigned str0 = (yyvsp[-5].numb);
		  unsigned str1 = (yyvsp[-4].numb);
		  compile_functor((yyvsp[-10].text), (yyvsp[-8].text), (yyvsp[-7].numb), str0, str1,
				  (yyvsp[-1].symbv).cnt, (yyvsp[-1].symbv).vect);
		}
#line 2378 "parse.cc"
    break;

  case 21:
#line 208 "parse.y"
    { compile_udp_def(1, (yyvsp[-9].text), (yyvsp[-7].text), (yyvsp[-5].numb), (yyvsp[-3].numb), (yyvsp[-1].table)); }
#line 2384 "parse.cc"
    break;

  case 22:
#line 211 "parse.y"
    { compile_udp_def(0, (yyvsp[-7].text), (yyvsp[-5].text), (yyvsp[-3].numb), 0, (yyvsp[-1].table)); }
#line 2390 "parse.cc"
    break;

  case 23:
#line 214 "parse.y"
    { compile_udp_functor((yyvsp[-5].text), (yyvsp[-3].text), (yyvsp[-1].symbv).cnt, (yyvsp[-1].symbv).vect); }
#line 2396 "parse.cc"
    break;

  case 24:
#line 220 "parse.y"
    { compile_var_array((yyvsp[-9].text), (yyvsp[-7].text), (yyvsp[-5].numb), (yyvsp[-4].numb), (yyvsp[-2].numb), (yyvsp[-1].numb), 0); }
#line 2402 "parse.cc"
    break;

  case 25:
#line 223 "parse.y"
    { compile_var2_array((yyvsp[-9].text), (yyvsp[-7].text), (yyvsp[-5].numb), (yyvsp[-4].numb), (yyvsp[-2].numb), (yyvsp[-1].numb), false); }
#line 2408 "parse.cc"
    break;

  case 26:
#line 225 "parse.y"
    { compile_var2_array((yyvsp[-9].text), (yyvsp[-7].text), (yyvsp[-5].numb), (yyvsp[-4].numb), (yyvsp[-2].numb), (yyvsp[-1].numb), true); }
#line 2414 "parse.cc"
    break;

  case 27:
#line 228 "parse.y"
    { compile_var_array((yyvsp[-9].text), (yyvsp[-7].text), (yyvsp[-5].numb), (yyvsp[-4].numb), (yyvsp[-2].numb), (yyvsp[-1].numb), 2); }
#line 2420 "parse.cc"
    break;

  case 28:
#line 231 "parse.y"
    { compile_real_array((yyvsp[-6].text), (yyvsp[-4].text), (yyvsp[-2].numb), (yyvsp[-1].numb)); }
#line 2426 "parse.cc"
    break;

  case 29:
#line 234 "parse.y"
    { compile_var_array((yyvsp[-9].text), (yyvsp[-7].text), (yyvsp[-5].numb), (yyvsp[-4].numb), (yyvsp[-2].numb), (yyvsp[-1].numb), 1); }
#line 2432 "parse.cc"
    break;

  case 30:
#line 237 "parse.y"
    { compile_string_array((yyvsp[-6].text), (yyvsp[-4].text), (yyvsp[-2].numb), (yyvsp[-1].numb)); }
#line 2438 "parse.cc"
    break;

  case 31:
#line 240 "parse.y"
    { compile_object_array((yyvsp[-6].text), (yyvsp[-4].text), (yyvsp[-2].numb), (yyvsp[-1].numb)); }
#line 2444 "parse.cc"
    break;

  case 32:
#line 243 "parse.y"
    { compile_net_array((yyvsp[-6].text), (yyvsp[-4].text), (yyvsp[-2].numb), (yyvsp[-1].numb)); }
#line 2450 "parse.cc"
    break;

  case 33:
#line 246 "parse.y"
    { compile_array_port((yyvsp[-5].text), (yyvsp[-3].text), (yyvsp[-1].text)); }
#line 2456 "parse.cc"
    break;

  case 34:
#line 249 "parse.y"
    { compile_array_port((yyvsp[-5].text), (yyvsp[-3].text), (yyvsp[-1].numb)); }
#line 2462 "parse.cc"
    break;

  case 35:
#line 252 "parse.y"
    { compile_array_alias((yyvsp[-5].text), (yyvsp[-3].text), (yyvsp[-1].text)); }
#line 2468 "parse.cc"
    break;

  case 36:
#line 260 "parse.y"
    { compile_ufunc((yyvsp[-12].text), (yyvsp[-10].text), (yyvsp[-8].numb),
				(yyvsp[-6].symbv).cnt, (yyvsp[-6].symbv).vect,
				(yyvsp[-4].symbv).cnt, (yyvsp[-4].symbv).vect,
				(yyvsp[-2].symb), (yyvsp[-1].text), 0); }
#line 2477 "parse.cc"
    break;

  case 37:
#line 267 "parse.y"
    { compile_ufunc((yyvsp[-14].text), (yyvsp[-12].text), (yyvsp[-10].numb),
				(yyvsp[-6].symbv).cnt, (yyvsp[-6].symbv).vect,
				(yyvsp[-4].symbv).cnt, (yyvsp[-4].symbv).vect,
				(yyvsp[-2].symb), (yyvsp[-1].text), (yyvsp[-8].text)); }
#line 2486 "parse.cc"
    break;

  case 38:
#line 276 "parse.y"
    { struct symbv_s obj = (yyvsp[-1].symbv);
		  compile_resolver((yyvsp[-5].text), (yyvsp[-3].text), obj.cnt, obj.vect);
		}
#line 2494 "parse.cc"
    break;

  case 39:
#line 284 "parse.y"
    { compile_part_select((yyvsp[-7].text), (yyvsp[-5].text), (yyvsp[-3].numb), (yyvsp[-1].numb)); }
#line 2500 "parse.cc"
    break;

  case 40:
#line 287 "parse.y"
    { compile_part_select_pv((yyvsp[-9].text), (yyvsp[-7].text), (yyvsp[-5].numb), (yyvsp[-3].numb), (yyvsp[-1].numb)); }
#line 2506 "parse.cc"
    break;

  case 41:
#line 290 "parse.y"
    { compile_part_select_var((yyvsp[-7].text), (yyvsp[-5].text), (yyvsp[-3].text), (yyvsp[-1].numb), false); }
#line 2512 "parse.cc"
    break;

  case 42:
#line 292 "parse.y"
    { compile_part_select_var((yyvsp[-7].text), (yyvsp[-5].text), (yyvsp[-3].text), (yyvsp[-1].numb), true); }
#line 2518 "parse.cc"
    break;

  case 43:
#line 298 "parse.y"
    { compile_concat((yyvsp[-10].text), (yyvsp[-7].numb), (yyvsp[-6].numb), (yyvsp[-5].numb), (yyvsp[-4].numb), (yyvsp[-1].symbv).cnt, (yyvsp[-1].symbv).vect); }
#line 2524 "parse.cc"
    break;

  case 44:
#line 302 "parse.y"
    { compile_concat8((yyvsp[-10].text), (yyvsp[-7].numb), (yyvsp[-6].numb), (yyvsp[-5].numb), (yyvsp[-4].numb), (yyvsp[-1].symbv).cnt, (yyvsp[-1].symbv).vect); }
#line 2530 "parse.cc"
    break;

  case 45:
#line 306 "parse.y"
    { compile_substitute((yyvsp[-8].text), (yyvsp[-6].numb), (yyvsp[-4].numb), (yyvsp[-3].numb), (yyvsp[-1].symbv).cnt, (yyvsp[-1].symbv).vect); }
#line 2536 "parse.cc"
    break;

  case 46:
#line 312 "parse.y"
    { struct symbv_s obj = (yyvsp[-1].symbv);
		  compile_arith_abs((yyvsp[-3].text), obj.cnt, obj.vect);
		}
#line 2544 "parse.cc"
    break;

  case 47:
#line 317 "parse.y"
    { struct symbv_s obj = (yyvsp[-1].symbv);
	compile_arith_cast_int((yyvsp[-5].text), (yyvsp[-3].numb), obj.cnt, obj.vect);
      }
#line 2552 "parse.cc"
    break;

  case 48:
#line 322 "parse.y"
    { struct symbv_s obj = (yyvsp[-1].symbv);
	compile_arith_cast_real((yyvsp[-3].text), false, obj.cnt, obj.vect);
      }
#line 2560 "parse.cc"
    break;

  case 49:
#line 327 "parse.y"
    { struct symbv_s obj = (yyvsp[-1].symbv);
	compile_arith_cast_real((yyvsp[-3].text), true, obj.cnt, obj.vect);
      }
#line 2568 "parse.cc"
    break;

  case 50:
#line 332 "parse.y"
    { struct symbv_s obj = (yyvsp[-1].symbv);
	compile_arith_cast_vec2((yyvsp[-5].text), (yyvsp[-3].numb), obj.cnt, obj.vect);
      }
#line 2576 "parse.cc"
    break;

  case 51:
#line 340 "parse.y"
    { struct symbv_s obj = (yyvsp[-1].symbv);
		  compile_arith_div((yyvsp[-5].text), (yyvsp[-3].numb), false, obj.cnt, obj.vect);
		}
#line 2584 "parse.cc"
    break;

  case 52:
#line 345 "parse.y"
    { struct symbv_s obj = (yyvsp[-1].symbv);
		  compile_arith_div_r((yyvsp[-5].text), obj.cnt, obj.vect);
		}
#line 2592 "parse.cc"
    break;

  case 53:
#line 350 "parse.y"
    { struct symbv_s obj = (yyvsp[-1].symbv);
		  compile_arith_div((yyvsp[-5].text), (yyvsp[-3].numb), true, obj.cnt, obj.vect);
		}
#line 2600 "parse.cc"
    break;

  case 54:
#line 355 "parse.y"
    { struct symbv_s obj = (yyvsp[-1].symbv);
		  compile_arith_mod((yyvsp[-5].text), (yyvsp[-3].numb), false, obj.cnt, obj.vect);
		}
#line 2608 "parse.cc"
    break;

  case 55:
#line 360 "parse.y"
    { struct symbv_s obj = (yyvsp[-1].symbv);
		  compile_arith_mod_r((yyvsp[-5].text), obj.cnt, obj.vect);
		}
#line 2616 "parse.cc"
    break;

  case 56:
#line 365 "parse.y"
    { struct symbv_s obj = (yyvsp[-1].symbv);
		  compile_arith_mod((yyvsp[-5].text), (yyvsp[-3].numb), true, obj.cnt, obj.vect);
		}
#line 2624 "parse.cc"
    break;

  case 57:
#line 370 "parse.y"
    { struct symbv_s obj = (yyvsp[-1].symbv);
		  compile_arith_mult((yyvsp[-5].text), (yyvsp[-3].numb), obj.cnt, obj.vect);
		}
#line 2632 "parse.cc"
    break;

  case 58:
#line 375 "parse.y"
    { struct symbv_s obj = (yyvsp[-1].symbv);
		  compile_arith_mult_r((yyvsp[-5].text), obj.cnt, obj.vect);
		}
#line 2640 "parse.cc"
    break;

  case 59:
#line 380 "parse.y"
    { struct symbv_s obj = (yyvsp[-1].symbv);
		  compile_arith_pow((yyvsp[-5].text), (yyvsp[-3].numb), false, obj.cnt, obj.vect);
		}
#line 2648 "parse.cc"
    break;

  case 60:
#line 385 "parse.y"
    { struct symbv_s obj = (yyvsp[-1].symbv);
		  compile_arith_pow_r((yyvsp[-5].text), obj.cnt, obj.vect);
		}
#line 2656 "parse.cc"
    break;

  case 61:
#line 390 "parse.y"
    { struct symbv_s obj = (yyvsp[-1].symbv);
		  compile_arith_pow((yyvsp[-5].text), (yyvsp[-3].numb), true, obj.cnt, obj.vect);
		}
#line 2664 "parse.cc"
    break;

  case 62:
#line 395 "parse.y"
    { struct symbv_s obj = (yyvsp[-1].symbv);
		  compile_arith_sub((yyvsp[-5].text), (yyvsp[-3].numb), obj.cnt, obj.vect);
		}
#line 2672 "parse.cc"
    break;

  case 63:
#line 400 "parse.y"
    { struct symbv_s obj = (yyvsp[-1].symbv);
		  compile_arith_sub_r((yyvsp[-5].text), obj.cnt, obj.vect);
		}
#line 2680 "parse.cc"
    break;

  case 64:
#line 405 "parse.y"
    { struct symbv_s obj = (yyvsp[-1].symbv);
		  compile_arith_sum((yyvsp[-5].text), (yyvsp[-3].numb), obj.cnt, obj.vect);
		}
#line 2688 "parse.cc"
    break;

  case 65:
#line 410 "parse.y"
    { struct symbv_s obj = (yyvsp[-1].symbv);
		  compile_arith_sum_r((yyvsp[-5].text), obj.cnt, obj.vect);
		}
#line 2696 "parse.cc"
    break;

  case 66:
#line 415 "parse.y"
    { struct symbv_s obj = (yyvsp[-1].symbv);
		  compile_cmp_eeq((yyvsp[-5].text), (yyvsp[-3].numb), obj.cnt, obj.vect);
		}
#line 2704 "parse.cc"
    break;

  case 67:
#line 420 "parse.y"
    { struct symbv_s obj = (yyvsp[-1].symbv);
		  compile_cmp_nee((yyvsp[-5].text), (yyvsp[-3].numb), obj.cnt, obj.vect);
		}
#line 2712 "parse.cc"
    break;

  case 68:
#line 425 "parse.y"
    { struct symbv_s obj = (yyvsp[-1].symbv);
		  compile_cmp_eq((yyvsp[-5].text), (yyvsp[-3].numb), obj.cnt, obj.vect);
		}
#line 2720 "parse.cc"
    break;

  case 69:
#line 430 "parse.y"
    { struct symbv_s obj = (yyvsp[-1].symbv);
		  compile_cmp_eqx((yyvsp[-5].text), (yyvsp[-3].numb), obj.cnt, obj.vect);
		}
#line 2728 "parse.cc"
    break;

  case 70:
#line 435 "parse.y"
    { struct symbv_s obj = (yyvsp[-1].symbv);
		  compile_cmp_eqz((yyvsp[-5].text), (yyvsp[-3].numb), obj.cnt, obj.vect);
		}
#line 2736 "parse.cc"
    break;

  case 71:
#line 440 "parse.y"
    { struct symbv_s obj = (yyvsp[-1].symbv);
		  compile_cmp_eq_r((yyvsp[-5].text), obj.cnt, obj.vect);
		}
#line 2744 "parse.cc"
    break;

  case 72:
#line 445 "parse.y"
    { struct symbv_s obj = (yyvsp[-1].symbv);
		  compile_cmp_ne((yyvsp[-5].text), (yyvsp[-3].numb), obj.cnt, obj.vect);
		}
#line 2752 "parse.cc"
    break;

  case 73:
#line 450 "parse.y"
    { struct symbv_s obj = (yyvsp[-1].symbv);
		  compile_cmp_ne_r((yyvsp[-5].text), obj.cnt, obj.vect);
		}
#line 2760 "parse.cc"
    break;

  case 74:
#line 455 "parse.y"
    { struct symbv_s obj = (yyvsp[-1].symbv);
		  compile_cmp_ge((yyvsp[-5].text), (yyvsp[-3].numb), false, obj.cnt, obj.vect);
		}
#line 2768 "parse.cc"
    break;

  case 75:
#line 460 "parse.y"
    { struct symbv_s obj = (yyvsp[-1].symbv);
		  compile_cmp_ge_r((yyvsp[-5].text), obj.cnt, obj.vect);
		}
#line 2776 "parse.cc"
    break;

  case 76:
#line 465 "parse.y"
    { struct symbv_s obj = (yyvsp[-1].symbv);
		  compile_cmp_ge((yyvsp[-5].text), (yyvsp[-3].numb), true, obj.cnt, obj.vect);
		}
#line 2784 "parse.cc"
    break;

  case 77:
#line 470 "parse.y"
    { struct symbv_s obj = (yyvsp[-1].symbv);
		  compile_cmp_gt((yyvsp[-5].text), (yyvsp[-3].numb), false, obj.cnt, obj.vect);
		}
#line 2792 "parse.cc"
    break;

  case 78:
#line 475 "parse.y"
    { struct symbv_s obj = (yyvsp[-1].symbv);
		  compile_cmp_gt_r((yyvsp[-5].text), obj.cnt, obj.vect);
		}
#line 2800 "parse.cc"
    break;

  case 79:
#line 480 "parse.y"
    { struct symbv_s obj = (yyvsp[-1].symbv);
		  compile_cmp_gt((yyvsp[-5].text), (yyvsp[-3].numb), true, obj.cnt, obj.vect);
		}
#line 2808 "parse.cc"
    break;

  case 80:
#line 489 "parse.y"
    { compile_delay((yyvsp[-5].text), (yyvsp[-3].numb), (yyvsp[-2].cdelay), (yyvsp[-1].symb)); }
#line 2814 "parse.cc"
    break;

  case 81:
#line 491 "parse.y"
    { struct symbv_s obj = (yyvsp[-1].symbv);
      compile_delay((yyvsp[-4].text), (yyvsp[-2].numb), obj.cnt, obj.vect, false);
    }
#line 2822 "parse.cc"
    break;

  case 82:
#line 495 "parse.y"
    { struct symbv_s obj = (yyvsp[-3].symbv);
      if ((yyvsp[-1].numb) != 0) assert(0);
      compile_delay((yyvsp[-6].text), (yyvsp[-4].numb), obj.cnt, obj.vect, true);
    }
#line 2831 "parse.cc"
    break;

  case 83:
#line 501 "parse.y"
    { modpath_dst = compile_modpath((yyvsp[-5].text), (yyvsp[-3].numb), (yyvsp[-2].symb), (yyvsp[-1].symb)); }
#line 2837 "parse.cc"
    break;

  case 84:
#line 503 "parse.y"
    { modpath_dst = 0; }
#line 2843 "parse.cc"
    break;

  case 85:
#line 508 "parse.y"
    { compile_dff((yyvsp[-8].text), (yyvsp[-6].numb), true, (yyvsp[-5].symb), (yyvsp[-3].symb), (yyvsp[-1].symb)); }
#line 2849 "parse.cc"
    break;

  case 86:
#line 511 "parse.y"
    { compile_dff((yyvsp[-8].text), (yyvsp[-6].numb), false, (yyvsp[-5].symb), (yyvsp[-3].symb), (yyvsp[-1].symb)); }
#line 2855 "parse.cc"
    break;

  case 87:
#line 514 "parse.y"
    { compile_dff_aclr((yyvsp[-10].text), (yyvsp[-8].numb), true, (yyvsp[-7].symb), (yyvsp[-5].symb), (yyvsp[-3].symb), (yyvsp[-1].symb)); }
#line 2861 "parse.cc"
    break;

  case 88:
#line 517 "parse.y"
    { compile_dff_aclr((yyvsp[-10].text), (yyvsp[-8].numb), false, (yyvsp[-7].symb), (yyvsp[-5].symb), (yyvsp[-3].symb), (yyvsp[-1].symb)); }
#line 2867 "parse.cc"
    break;

  case 89:
#line 520 "parse.y"
    { compile_dff_aset((yyvsp[-10].text), (yyvsp[-8].numb), true, (yyvsp[-7].symb), (yyvsp[-5].symb), (yyvsp[-3].symb), (yyvsp[-1].symb), 0); }
#line 2873 "parse.cc"
    break;

  case 90:
#line 523 "parse.y"
    { compile_dff_aset((yyvsp[-10].text), (yyvsp[-8].numb), false, (yyvsp[-7].symb), (yyvsp[-5].symb), (yyvsp[-3].symb), (yyvsp[-1].symb), 0); }
#line 2879 "parse.cc"
    break;

  case 91:
#line 526 "parse.y"
    { compile_dff_aset((yyvsp[-12].text), (yyvsp[-10].numb), true, (yyvsp[-9].symb), (yyvsp[-7].symb), (yyvsp[-5].symb), (yyvsp[-3].symb), (yyvsp[-1].text)); }
#line 2885 "parse.cc"
    break;

  case 92:
#line 529 "parse.y"
    { compile_dff_aset((yyvsp[-12].text), (yyvsp[-10].numb), false, (yyvsp[-9].symb), (yyvsp[-7].symb), (yyvsp[-5].symb), (yyvsp[-3].symb), (yyvsp[-1].text)); }
#line 2891 "parse.cc"
    break;

  case 93:
#line 534 "parse.y"
    { compile_reduce_and((yyvsp[-3].text), (yyvsp[-1].symb)); }
#line 2897 "parse.cc"
    break;

  case 94:
#line 537 "parse.y"
    { compile_reduce_or((yyvsp[-3].text), (yyvsp[-1].symb)); }
#line 2903 "parse.cc"
    break;

  case 95:
#line 540 "parse.y"
    { compile_reduce_xor((yyvsp[-3].text), (yyvsp[-1].symb)); }
#line 2909 "parse.cc"
    break;

  case 96:
#line 543 "parse.y"
    { compile_reduce_nand((yyvsp[-3].text), (yyvsp[-1].symb)); }
#line 2915 "parse.cc"
    break;

  case 97:
#line 546 "parse.y"
    { compile_reduce_nor((yyvsp[-3].text), (yyvsp[-1].symb)); }
#line 2921 "parse.cc"
    break;

  case 98:
#line 549 "parse.y"
    { compile_reduce_xnor((yyvsp[-3].text), (yyvsp[-1].symb)); }
#line 2927 "parse.cc"
    break;

  case 99:
#line 552 "parse.y"
    { compile_repeat((yyvsp[-7].text), (yyvsp[-5].numb), (yyvsp[-3].numb), (yyvsp[-1].symb)); }
#line 2933 "parse.cc"
    break;

  case 100:
#line 557 "parse.y"
    { compile_extend_signed((yyvsp[-5].text), (yyvsp[-3].numb), (yyvsp[-1].symb)); }
#line 2939 "parse.cc"
    break;

  case 101:
#line 562 "parse.y"
    { compile_sfunc((yyvsp[-9].text), (yyvsp[-5].text), (yyvsp[-3].text), (yyvsp[-7].numb), (yyvsp[-6].numb), (yyvsp[-1].symbv).cnt, (yyvsp[-1].symbv).vect, 0); }
#line 2945 "parse.cc"
    break;

  case 102:
#line 566 "parse.y"
    { compile_sfunc((yyvsp[-11].text), (yyvsp[-7].text), (yyvsp[-3].text), (yyvsp[-9].numb), (yyvsp[-8].numb), (yyvsp[-1].symbv).cnt, (yyvsp[-1].symbv).vect, (yyvsp[-5].text)); }
#line 2951 "parse.cc"
    break;

  case 103:
#line 571 "parse.y"
    { compile_sfunc((yyvsp[-7].text), (yyvsp[-3].text), (yyvsp[-1].text), (yyvsp[-5].numb), (yyvsp[-4].numb), 0, 0, 0); }
#line 2957 "parse.cc"
    break;

  case 104:
#line 575 "parse.y"
    { compile_sfunc((yyvsp[-9].text), (yyvsp[-5].text), (yyvsp[-1].text), (yyvsp[-7].numb), (yyvsp[-6].numb), 0, 0, (yyvsp[-3].text)); }
#line 2963 "parse.cc"
    break;

  case 105:
#line 580 "parse.y"
    { struct symbv_s obj = (yyvsp[-1].symbv);
		  compile_shiftl((yyvsp[-5].text), (yyvsp[-3].numb), obj.cnt, obj.vect);
		}
#line 2971 "parse.cc"
    break;

  case 106:
#line 585 "parse.y"
    { struct symbv_s obj = (yyvsp[-1].symbv);
		      compile_shiftr((yyvsp[-5].text), (yyvsp[-3].numb), false, obj.cnt, obj.vect);
		}
#line 2979 "parse.cc"
    break;

  case 107:
#line 591 "parse.y"
    { struct symbv_s obj = (yyvsp[-1].symbv);
		      compile_shiftr((yyvsp[-5].text), (yyvsp[-3].numb), true, obj.cnt, obj.vect);
		}
#line 2987 "parse.cc"
    break;

  case 108:
#line 601 "parse.y"
    { compile_event((yyvsp[-5].text), (yyvsp[-3].text), (yyvsp[-1].symbv).cnt, (yyvsp[-1].symbv).vect); }
#line 2993 "parse.cc"
    break;

  case 109:
#line 604 "parse.y"
    { compile_event((yyvsp[-6].text), (yyvsp[-3].text), (yyvsp[-1].symbv).cnt, (yyvsp[-1].symbv).vect); }
#line 2999 "parse.cc"
    break;

  case 110:
#line 607 "parse.y"
    { compile_named_event((yyvsp[-3].text), (yyvsp[-1].text)); }
#line 3005 "parse.cc"
    break;

  case 111:
#line 610 "parse.y"
    { compile_event((yyvsp[-3].text), 0, (yyvsp[-1].symbv).cnt, (yyvsp[-1].symbv).vect); }
#line 3011 "parse.cc"
    break;

  case 112:
#line 618 "parse.y"
    { compile_code((yyvsp[-3].text), (yyvsp[-2].text), (yyvsp[-1].opa)); }
#line 3017 "parse.cc"
    break;

  case 113:
#line 621 "parse.y"
    { compile_codelabel((yyvsp[-1].text)); }
#line 3023 "parse.cc"
    break;

  case 114:
#line 626 "parse.y"
    { compile_file_line((yyvsp[-5].text), (yyvsp[-3].numb), (yyvsp[-2].numb), (yyvsp[-1].text)); }
#line 3029 "parse.cc"
    break;

  case 115:
#line 629 "parse.y"
    { assert((yyvsp[-1].numb) == 0);
		  compile_file_line((yyvsp[-5].text), (yyvsp[-3].numb), (yyvsp[-2].numb), 0); }
#line 3036 "parse.cc"
    break;

  case 116:
#line 640 "parse.y"
    { compile_vpi_call((yyvsp[-11].text), (yyvsp[-7].text), true, false, (yyvsp[-9].numb), (yyvsp[-8].numb),
			 (yyvsp[-6].argv).argc, (yyvsp[-6].argv).argv, (yyvsp[-4].numb), (yyvsp[-3].numb), (yyvsp[-2].numb)); }
#line 3043 "parse.cc"
    break;

  case 117:
#line 647 "parse.y"
    { compile_vpi_call((yyvsp[-11].text), (yyvsp[-7].text), false, true, (yyvsp[-9].numb), (yyvsp[-8].numb),
			 (yyvsp[-6].argv).argc, (yyvsp[-6].argv).argv, (yyvsp[-4].numb), (yyvsp[-3].numb), (yyvsp[-2].numb)); }
#line 3050 "parse.cc"
    break;

  case 118:
#line 654 "parse.y"
    { compile_vpi_call((yyvsp[-11].text), (yyvsp[-7].text), false, false, (yyvsp[-9].numb), (yyvsp[-8].numb),
			 (yyvsp[-6].argv).argc, (yyvsp[-6].argv).argv, (yyvsp[-4].numb), (yyvsp[-3].numb), (yyvsp[-2].numb)); }
#line 3057 "parse.cc"
    break;

  case 119:
#line 659 "parse.y"
    { compile_vpi_func_call((yyvsp[-12].text), (yyvsp[-8].text), -vpiVectorVal, (yyvsp[-7].numb), (yyvsp[-10].numb), (yyvsp[-9].numb),
			      (yyvsp[-6].argv).argc, (yyvsp[-6].argv).argv, (yyvsp[-4].numb), (yyvsp[-3].numb), (yyvsp[-2].numb)); }
#line 3064 "parse.cc"
    break;

  case 120:
#line 664 "parse.y"
    { compile_vpi_func_call((yyvsp[-11].text), (yyvsp[-7].text), -vpiRealVal, 0, (yyvsp[-9].numb), (yyvsp[-8].numb),
			      (yyvsp[-6].argv).argc, (yyvsp[-6].argv).argv, (yyvsp[-4].numb), (yyvsp[-3].numb), (yyvsp[-2].numb)); }
#line 3071 "parse.cc"
    break;

  case 121:
#line 671 "parse.y"
    { compile_disable((yyvsp[-3].text), (yyvsp[-1].symb)); }
#line 3077 "parse.cc"
    break;

  case 122:
#line 675 "parse.y"
    { compile_fork((yyvsp[-5].text), (yyvsp[-3].symb), (yyvsp[-1].symb)); }
#line 3083 "parse.cc"
    break;

  case 123:
#line 693 "parse.y"
    { compile_scope_decl((yyvsp[-8].text), (yyvsp[-6].text), (yyvsp[-4].text), (yyvsp[-3].text), 0, (yyvsp[-2].numb), (yyvsp[-1].numb), (yyvsp[-2].numb), (yyvsp[-1].numb), 0); }
#line 3089 "parse.cc"
    break;

  case 124:
#line 697 "parse.y"
    { compile_scope_decl((yyvsp[-14].text), (yyvsp[-12].text), (yyvsp[-10].text), (yyvsp[-9].text), (yyvsp[-1].text), (yyvsp[-8].numb), (yyvsp[-7].numb), (yyvsp[-5].numb), (yyvsp[-4].numb), (yyvsp[-3].numb)); }
#line 3095 "parse.cc"
    break;

  case 125:
#line 703 "parse.y"
    { compile_scope_decl((yyvsp[-13].text), (yyvsp[-11].text), (yyvsp[-9].text), (yyvsp[-8].text), (yyvsp[-1].text), (yyvsp[-7].numb), (yyvsp[-6].numb), (yyvsp[-4].numb), (yyvsp[-3].numb), 0); }
#line 3101 "parse.cc"
    break;

  case 126:
#line 708 "parse.y"
    { compile_scope_decl((yyvsp[-5].text), (yyvsp[-3].text), (yyvsp[-1].text), 0, 0, 0, 0, 0, 0, 0); }
#line 3107 "parse.cc"
    break;

  case 127:
#line 711 "parse.y"
    { compile_scope_decl((yyvsp[-7].text), (yyvsp[-5].text), (yyvsp[-3].text), 0, (yyvsp[-1].text), 0, 0, 0, 0, 0); }
#line 3113 "parse.cc"
    break;

  case 128:
#line 717 "parse.y"
    { compile_scope_recall((yyvsp[-1].text)); }
#line 3119 "parse.cc"
    break;

  case 129:
#line 722 "parse.y"
    { compile_port_info( (yyvsp[-3].numb) /* port_index */, (yyvsp[-2].vpi_enum), (yyvsp[-1].numb) /* width */,
		                     (yyvsp[0].text) /*&name */ ); }
#line 3126 "parse.cc"
    break;

  case 130:
#line 726 "parse.y"
    { compile_timescale((yyvsp[-2].numb), (yyvsp[-1].numb)); }
#line 3132 "parse.cc"
    break;

  case 131:
#line 728 "parse.y"
    { compile_timescale(-(yyvsp[-2].numb), (yyvsp[-1].numb)); }
#line 3138 "parse.cc"
    break;

  case 132:
#line 730 "parse.y"
    { compile_timescale((yyvsp[-3].numb), -(yyvsp[-1].numb)); }
#line 3144 "parse.cc"
    break;

  case 133:
#line 732 "parse.y"
    { compile_timescale(-(yyvsp[-3].numb), -(yyvsp[-1].numb)); }
#line 3150 "parse.cc"
    break;

  case 134:
#line 739 "parse.y"
    { compile_thread((yyvsp[-1].text), 0); }
#line 3156 "parse.cc"
    break;

  case 135:
#line 742 "parse.y"
    { compile_thread((yyvsp[-3].text), (yyvsp[-1].text)); }
#line 3162 "parse.cc"
    break;

  case 136:
#line 749 "parse.y"
    { compile_variable((yyvsp[-7].text), (yyvsp[-4].text), (yyvsp[-2].numb), (yyvsp[-1].numb), vpiLogicVar, false, (yyvsp[-5].flag)); }
#line 3168 "parse.cc"
    break;

  case 137:
#line 752 "parse.y"
    { compile_variable((yyvsp[-7].text), (yyvsp[-4].text), (yyvsp[-2].numb), (yyvsp[-1].numb), vpiLogicVar, true, (yyvsp[-5].flag)); }
#line 3174 "parse.cc"
    break;

  case 138:
#line 755 "parse.y"
    { compile_variable((yyvsp[-7].text), (yyvsp[-4].text), (yyvsp[-2].numb), (yyvsp[-1].numb), vpiIntegerVar, true, (yyvsp[-5].flag)); }
#line 3180 "parse.cc"
    break;

  case 139:
#line 758 "parse.y"
    { compile_variable((yyvsp[-7].text), (yyvsp[-4].text), (yyvsp[-2].numb), (yyvsp[-1].numb), vpiIntVar, true, (yyvsp[-5].flag)); }
#line 3186 "parse.cc"
    break;

  case 140:
#line 761 "parse.y"
    { compile_variable((yyvsp[-7].text), (yyvsp[-4].text), (yyvsp[-2].numb), (yyvsp[-1].numb), vpiIntVar, false, (yyvsp[-5].flag)); }
#line 3192 "parse.cc"
    break;

  case 141:
#line 764 "parse.y"
    { compile_var_real((yyvsp[-6].text), (yyvsp[-4].text)); }
#line 3198 "parse.cc"
    break;

  case 142:
#line 767 "parse.y"
    { compile_var_string((yyvsp[-3].text), (yyvsp[-1].text)); }
#line 3204 "parse.cc"
    break;

  case 143:
#line 770 "parse.y"
    { compile_var_darray((yyvsp[-3].text), (yyvsp[-1].text)); }
#line 3210 "parse.cc"
    break;

  case 144:
#line 773 "parse.y"
    { compile_var_queue((yyvsp[-3].text), (yyvsp[-1].text)); }
#line 3216 "parse.cc"
    break;

  case 145:
#line 776 "parse.y"
    { compile_var_cobject((yyvsp[-3].text), (yyvsp[-1].text)); }
#line 3222 "parse.cc"
    break;

  case 146:
#line 783 "parse.y"
    { compile_net((yyvsp[-9].text), (yyvsp[-6].text), (yyvsp[-4].numb), (yyvsp[-3].numb), vpiLogicVar, false, (yyvsp[-7].flag), (yyvsp[-1].symbv).cnt, (yyvsp[-1].symbv).vect); }
#line 3228 "parse.cc"
    break;

  case 147:
#line 787 "parse.y"
    { compile_net((yyvsp[-9].text), (yyvsp[-6].text), (yyvsp[-4].numb), (yyvsp[-3].numb), vpiLogicVar, true, (yyvsp[-7].flag), (yyvsp[-1].symbv).cnt, (yyvsp[-1].symbv).vect); }
#line 3234 "parse.cc"
    break;

  case 148:
#line 791 "parse.y"
    { compile_net((yyvsp[-9].text), (yyvsp[-6].text), (yyvsp[-4].numb), (yyvsp[-3].numb), vpiIntVar, false, (yyvsp[-7].flag), (yyvsp[-1].symbv).cnt, (yyvsp[-1].symbv).vect); }
#line 3240 "parse.cc"
    break;

  case 149:
#line 795 "parse.y"
    { compile_net((yyvsp[-9].text), (yyvsp[-6].text), (yyvsp[-4].numb), (yyvsp[-3].numb), vpiIntVar, true, (yyvsp[-7].flag), (yyvsp[-1].symbv).cnt, (yyvsp[-1].symbv).vect); }
#line 3246 "parse.cc"
    break;

  case 150:
#line 799 "parse.y"
    { compile_net((yyvsp[-9].text), (yyvsp[-6].text), (yyvsp[-4].numb), (yyvsp[-3].numb), -vpiLogicVar, false, (yyvsp[-7].flag), (yyvsp[-1].symbv).cnt, (yyvsp[-1].symbv).vect); }
#line 3252 "parse.cc"
    break;

  case 151:
#line 803 "parse.y"
    { compile_net((yyvsp[-9].text), (yyvsp[-6].text), (yyvsp[-4].numb), (yyvsp[-3].numb), -vpiLogicVar, false, (yyvsp[-7].flag), (yyvsp[-1].symbv).cnt, (yyvsp[-1].symbv).vect); }
#line 3258 "parse.cc"
    break;

  case 152:
#line 807 "parse.y"
    { compile_net((yyvsp[-9].text), (yyvsp[-6].text), (yyvsp[-4].numb), (yyvsp[-3].numb), -vpiLogicVar, true, (yyvsp[-7].flag), (yyvsp[-1].symbv).cnt, (yyvsp[-1].symbv).vect); }
#line 3264 "parse.cc"
    break;

  case 153:
#line 811 "parse.y"
    { compile_net((yyvsp[-9].text), (yyvsp[-6].text), (yyvsp[-4].numb), (yyvsp[-3].numb), -vpiLogicVar, true, (yyvsp[-7].flag), (yyvsp[-1].symbv).cnt, (yyvsp[-1].symbv).vect); }
#line 3270 "parse.cc"
    break;

  case 154:
#line 815 "parse.y"
    { compile_net_real((yyvsp[-9].text), (yyvsp[-6].text), (yyvsp[-4].numb), (yyvsp[-3].numb), (yyvsp[-7].flag), (yyvsp[-1].symbv).cnt, (yyvsp[-1].symbv).vect); }
#line 3276 "parse.cc"
    break;

  case 155:
#line 821 "parse.y"
    { compile_netw((yyvsp[-9].text), (yyvsp[-7].text), (yyvsp[-6].numb), (yyvsp[-4].numb), (yyvsp[-3].numb), vpiLogicVar, false, (yyvsp[-1].symbv).cnt, (yyvsp[-1].symbv).vect); }
#line 3282 "parse.cc"
    break;

  case 156:
#line 825 "parse.y"
    { compile_netw((yyvsp[-9].text), (yyvsp[-7].text), (yyvsp[-6].numb), (yyvsp[-4].numb), (yyvsp[-3].numb), vpiLogicVar, true, (yyvsp[-1].symbv).cnt, (yyvsp[-1].symbv).vect); }
#line 3288 "parse.cc"
    break;

  case 157:
#line 829 "parse.y"
    { compile_netw((yyvsp[-9].text), (yyvsp[-7].text), (yyvsp[-6].numb), (yyvsp[-4].numb), (yyvsp[-3].numb), vpiIntVar, true, (yyvsp[-1].symbv).cnt, (yyvsp[-1].symbv).vect); }
#line 3294 "parse.cc"
    break;

  case 158:
#line 833 "parse.y"
    { compile_netw((yyvsp[-9].text), (yyvsp[-7].text), (yyvsp[-6].numb), (yyvsp[-4].numb), (yyvsp[-3].numb), -vpiLogicVar, false, (yyvsp[-1].symbv).cnt, (yyvsp[-1].symbv).vect); }
#line 3300 "parse.cc"
    break;

  case 159:
#line 837 "parse.y"
    { compile_netw((yyvsp[-9].text), (yyvsp[-7].text), (yyvsp[-6].numb), (yyvsp[-4].numb), (yyvsp[-3].numb), -vpiLogicVar, true, (yyvsp[-1].symbv).cnt, (yyvsp[-1].symbv).vect); }
#line 3306 "parse.cc"
    break;

  case 160:
#line 841 "parse.y"
    { compile_netw_real((yyvsp[-9].text), (yyvsp[-7].text), (yyvsp[-6].numb), (yyvsp[-4].numb), (yyvsp[-3].numb), (yyvsp[-1].symbv).cnt, (yyvsp[-1].symbv).vect); }
#line 3312 "parse.cc"
    break;

  case 161:
#line 848 "parse.y"
    { compile_aliasw((yyvsp[-9].text), (yyvsp[-7].text), (yyvsp[-6].numb), (yyvsp[-4].numb), (yyvsp[-3].numb), (yyvsp[-1].symbv).cnt, (yyvsp[-1].symbv).vect); }
#line 3318 "parse.cc"
    break;

  case 162:
#line 853 "parse.y"
    { compile_aliasw((yyvsp[-9].text), (yyvsp[-7].text), (yyvsp[-6].numb), (yyvsp[-4].numb), (yyvsp[-3].numb), (yyvsp[-1].symbv).cnt, (yyvsp[-1].symbv).vect); }
#line 3324 "parse.cc"
    break;

  case 163:
#line 859 "parse.y"
    { compile_param_string((yyvsp[-8].text), (yyvsp[-6].text), (yyvsp[-1].text), (yyvsp[-5].numb), (yyvsp[-4].numb), (yyvsp[-3].numb)); }
#line 3330 "parse.cc"
    break;

  case 164:
#line 862 "parse.y"
    { compile_param_logic((yyvsp[-8].text), (yyvsp[-6].text), (yyvsp[-1].text), false, (yyvsp[-5].numb), (yyvsp[-4].numb), (yyvsp[-3].numb)); }
#line 3336 "parse.cc"
    break;

  case 165:
#line 865 "parse.y"
    { compile_param_logic((yyvsp[-9].text), (yyvsp[-7].text), (yyvsp[-1].text), true, (yyvsp[-6].numb), (yyvsp[-5].numb), (yyvsp[-4].numb) ); }
#line 3342 "parse.cc"
    break;

  case 166:
#line 868 "parse.y"
    { compile_param_real((yyvsp[-8].text), (yyvsp[-6].text), (yyvsp[-1].text), (yyvsp[-5].numb), (yyvsp[-4].numb), (yyvsp[-3].numb)); }
#line 3348 "parse.cc"
    break;

  case 167:
#line 873 "parse.y"
    { compile_island((yyvsp[-3].text), (yyvsp[-1].text)); }
#line 3354 "parse.cc"
    break;

  case 168:
#line 876 "parse.y"
    { compile_island_port((yyvsp[-5].text), (yyvsp[-3].text), (yyvsp[-1].text)); }
#line 3360 "parse.cc"
    break;

  case 169:
#line 879 "parse.y"
    { compile_island_import((yyvsp[-5].text), (yyvsp[-3].text), (yyvsp[-1].text)); }
#line 3366 "parse.cc"
    break;

  case 170:
#line 882 "parse.y"
    { compile_island_export((yyvsp[-3].text), (yyvsp[-1].text)); }
#line 3372 "parse.cc"
    break;

  case 171:
#line 885 "parse.y"
    { compile_island_tranif(0, (yyvsp[-4].text), (yyvsp[-2].text), (yyvsp[-1].text), 0); }
#line 3378 "parse.cc"
    break;

  case 172:
#line 888 "parse.y"
    { compile_island_tranif(0, (yyvsp[-6].text), (yyvsp[-4].text), (yyvsp[-3].text), (yyvsp[-1].text)); }
#line 3384 "parse.cc"
    break;

  case 173:
#line 891 "parse.y"
    { compile_island_tranif(1, (yyvsp[-6].text), (yyvsp[-4].text), (yyvsp[-3].text), (yyvsp[-1].text)); }
#line 3390 "parse.cc"
    break;

  case 174:
#line 894 "parse.y"
    { compile_island_tranvp((yyvsp[-4].text), (yyvsp[-2].text), (yyvsp[-1].text), (yyvsp[-8].numb), (yyvsp[-7].numb), (yyvsp[-6].numb)); }
#line 3396 "parse.cc"
    break;

  case 175:
#line 899 "parse.y"
    { compile_class_start((yyvsp[-5].text), (yyvsp[-3].text), (yyvsp[-1].numb)); }
#line 3402 "parse.cc"
    break;

  case 176:
#line 901 "parse.y"
    { compile_class_done(); }
#line 3408 "parse.cc"
    break;

  case 177:
#line 904 "parse.y"
    { ; }
#line 3414 "parse.cc"
    break;

  case 183:
#line 923 "parse.y"
    { compile_class_property((yyvsp[-5].numb), (yyvsp[-3].text), (yyvsp[-1].text), (yyvsp[0].numb)); }
#line 3420 "parse.cc"
    break;

  case 184:
#line 934 "parse.y"
    { (yyval.numb) = (yyvsp[0].numb); }
#line 3426 "parse.cc"
    break;

  case 185:
#line 935 "parse.y"
    { (yyval.numb) = 0; }
#line 3432 "parse.cc"
    break;

  case 186:
#line 940 "parse.y"
    { (yyval.numb) = (yyvsp[-1].numb) * (yyvsp[0].numb); }
#line 3438 "parse.cc"
    break;

  case 187:
#line 942 "parse.y"
    { (yyval.numb) = (yyvsp[0].numb); }
#line 3444 "parse.cc"
    break;

  case 188:
#line 947 "parse.y"
    { (yyval.numb) = ((yyvsp[-3].numb) > (yyvsp[-1].numb)? (yyvsp[-3].numb) - (yyvsp[-1].numb) : (yyvsp[-1].numb) - (yyvsp[-3].numb)) + 1; }
#line 3450 "parse.cc"
    break;

  case 189:
#line 953 "parse.y"
    { compile_enum2_type((yyvsp[-6].text), (yyvsp[-3].numb), false, (yyvsp[-1].enum_namev)); }
#line 3456 "parse.cc"
    break;

  case 190:
#line 955 "parse.y"
    { compile_enum2_type((yyvsp[-6].text), (yyvsp[-3].numb), true, (yyvsp[-1].enum_namev)); }
#line 3462 "parse.cc"
    break;

  case 191:
#line 957 "parse.y"
    { compile_enum4_type((yyvsp[-6].text), (yyvsp[-3].numb), false, (yyvsp[-1].enum_namev)); }
#line 3468 "parse.cc"
    break;

  case 192:
#line 959 "parse.y"
    { compile_enum4_type((yyvsp[-6].text), (yyvsp[-3].numb), true, (yyvsp[-1].enum_namev)); }
#line 3474 "parse.cc"
    break;

  case 193:
#line 964 "parse.y"
    { list<struct enum_name_s>*tmp = new list<struct enum_name_s>;
	tmp->push_back((yyvsp[0].enum_name));
	(yyval.enum_namev) = tmp;
      }
#line 3483 "parse.cc"
    break;

  case 194:
#line 969 "parse.y"
    { list<struct enum_name_s>*tmp = (yyvsp[-2].enum_namev);
	tmp->push_back((yyvsp[0].enum_name));
	(yyval.enum_namev) = tmp;
      }
#line 3492 "parse.cc"
    break;

  case 195:
#line 977 "parse.y"
    { (yyval.enum_name).text = (yyvsp[-1].text); (yyval.enum_name).val2 = (yyvsp[0].numb); (yyval.enum_name).val4 = 0; }
#line 3498 "parse.cc"
    break;

  case 196:
#line 979 "parse.y"
    { (yyval.enum_name).text = (yyvsp[-1].text); (yyval.enum_name).val2 = 0; (yyval.enum_name).val4 = (yyvsp[0].vect).text; }
#line 3504 "parse.cc"
    break;

  case 197:
#line 983 "parse.y"
    { (yyval.flag) = true; }
#line 3510 "parse.cc"
    break;

  case 198:
#line 984 "parse.y"
    { (yyval.flag) = false; }
#line 3516 "parse.cc"
    break;

  case 199:
#line 991 "parse.y"
    { (yyval.text) = (yyvsp[0].text); }
#line 3522 "parse.cc"
    break;

  case 200:
#line 992 "parse.y"
    { (yyval.text) = 0; }
#line 3528 "parse.cc"
    break;

  case 201:
#line 996 "parse.y"
    { (yyval.opa) = (yyvsp[0].opa); }
#line 3534 "parse.cc"
    break;

  case 202:
#line 997 "parse.y"
    { (yyval.opa) = 0; }
#line 3540 "parse.cc"
    break;

  case 203:
#line 1002 "parse.y"
    { comp_operands_t opa = (yyvsp[-2].opa);
		  assert(opa->argc < 3);
		  assert((yyvsp[0].opa)->argc == 1);
		  opa->argv[opa->argc] = (yyvsp[0].opa)->argv[0];
		  opa->argc += 1;
		  free((yyvsp[0].opa));
		  (yyval.opa) =  opa;
		}
#line 3553 "parse.cc"
    break;

  case 204:
#line 1011 "parse.y"
    { (yyval.opa) = (yyvsp[0].opa); }
#line 3559 "parse.cc"
    break;

  case 205:
#line 1016 "parse.y"
    { comp_operands_t opa = (comp_operands_t)
		  calloc(1, sizeof(struct comp_operands_s));
	opa->argc = 1;
	opa->argv[0].ltype = L_SYMB;
	opa->argv[0].symb = (yyvsp[0].symb);
	(yyval.opa) = opa;
      }
#line 3571 "parse.cc"
    break;

  case 206:
#line 1024 "parse.y"
    { comp_operands_t opa = (comp_operands_t)
		  calloc(1, sizeof(struct comp_operands_s));
	opa->argc = 1;
	opa->argv[0].ltype = L_NUMB;
	opa->argv[0].numb = (yyvsp[0].numb);
	(yyval.opa) = opa;
      }
#line 3583 "parse.cc"
    break;

  case 207:
#line 1032 "parse.y"
    { comp_operands_t opa = (comp_operands_t)
		  calloc(1, sizeof(struct comp_operands_s));
	opa->argc = 1;
	opa->argv[0].ltype = L_STRING;
	opa->argv[0].text = (yyvsp[0].text);
	(yyval.opa) = opa;
      }
#line 3595 "parse.cc"
    break;

  case 208:
#line 1057 "parse.y"
    {
		  argv_sym_lookup(&(yyvsp[0].argv));
		  (yyval.argv) = (yyvsp[0].argv);
		}
#line 3604 "parse.cc"
    break;

  case 209:
#line 1062 "parse.y"
    { struct argv_s tmp;
		  argv_init(&tmp);
		  (yyval.argv) = tmp;
		}
#line 3613 "parse.cc"
    break;

  case 210:
#line 1070 "parse.y"
    { struct argv_s tmp;
	argv_init(&tmp);
	argv_add(&tmp, (yyvsp[0].vpi));
	(yyval.argv) = tmp;
      }
#line 3623 "parse.cc"
    break;

  case 211:
#line 1076 "parse.y"
    { struct argv_s tmp = (yyvsp[-2].argv);
	argv_add(&tmp, (yyvsp[0].vpi));
	(yyval.argv) = tmp;
      }
#line 3632 "parse.cc"
    break;

  case 212:
#line 1081 "parse.y"
    { struct argv_s tmp;
	argv_init(&tmp);
	argv_sym_add(&tmp, (yyvsp[0].text));
	(yyval.argv) = tmp;
      }
#line 3642 "parse.cc"
    break;

  case 213:
#line 1087 "parse.y"
    { struct argv_s tmp = (yyvsp[-2].argv);
	argv_sym_add(&tmp, (yyvsp[0].text));
	(yyval.argv) = tmp;
      }
#line 3651 "parse.cc"
    break;

  case 214:
#line 1095 "parse.y"
    { (yyval.vpi) = vpip_make_string_const((yyvsp[0].text)); }
#line 3657 "parse.cc"
    break;

  case 215:
#line 1097 "parse.y"
    { (yyval.vpi) = vpip_make_binary_const((yyvsp[0].vect).idx, (yyvsp[0].vect).text);
	free((yyvsp[0].vect).text);
      }
#line 3665 "parse.cc"
    break;

  case 216:
#line 1101 "parse.y"
    { (yyval.vpi) = (yyvsp[0].vpi); }
#line 3671 "parse.cc"
    break;

  case 217:
#line 1106 "parse.y"
    { (yyval.vpi) = vpip_make_vthr_A((yyvsp[-3].text), (yyvsp[-1].numb)); }
#line 3677 "parse.cc"
    break;

  case 218:
#line 1108 "parse.y"
    { (yyval.vpi) = vpip_make_vthr_A((yyvsp[-3].text), (yyvsp[-1].text)); }
#line 3683 "parse.cc"
    break;

  case 219:
#line 1110 "parse.y"
    { (yyval.vpi) = vpip_make_vthr_A((yyvsp[-3].text), (yyvsp[-1].vpi)); }
#line 3689 "parse.cc"
    break;

  case 220:
#line 1112 "parse.y"
    { (yyval.vpi) = vpip_make_PV((yyvsp[-5].text), (yyvsp[-3].numb), (yyvsp[-1].numb)); }
#line 3695 "parse.cc"
    break;

  case 221:
#line 1114 "parse.y"
    { (yyval.vpi) = vpip_make_PV((yyvsp[-6].text), -(yyvsp[-3].numb), (yyvsp[-1].numb)); }
#line 3701 "parse.cc"
    break;

  case 222:
#line 1116 "parse.y"
    { (yyval.vpi) = vpip_make_PV((yyvsp[-5].text), (yyvsp[-3].text), (yyvsp[-1].numb)); }
#line 3707 "parse.cc"
    break;

  case 223:
#line 1118 "parse.y"
    { (yyval.vpi) = vpip_make_PV((yyvsp[-5].text), (yyvsp[-3].vpi), (yyvsp[-1].numb)); }
#line 3713 "parse.cc"
    break;

  case 224:
#line 1120 "parse.y"
    { (yyval.vpi) = vpip_make_vthr_APV((yyvsp[-7].text), (yyvsp[-5].numb), (yyvsp[-3].numb), (yyvsp[-1].numb)); }
#line 3719 "parse.cc"
    break;

  case 225:
#line 1126 "parse.y"
    { struct symbv_s obj;
		  symbv_init(&obj);
		  symbv_add(&obj, (yyvsp[0].symb));
		  (yyval.symbv) = obj;
		}
#line 3729 "parse.cc"
    break;

  case 226:
#line 1132 "parse.y"
    { struct symbv_s obj = (yyvsp[-2].symbv);
		  symbv_add(&obj, (yyvsp[0].symb));
		  (yyval.symbv) = obj;
		}
#line 3738 "parse.cc"
    break;

  case 227:
#line 1141 "parse.y"
    { struct numbv_s obj;
		  numbv_init(&obj);
		  numbv_add(&obj, (yyvsp[0].numb));
		  (yyval.numbv) = obj;
		}
#line 3748 "parse.cc"
    break;

  case 228:
#line 1147 "parse.y"
    { struct numbv_s obj = (yyvsp[-2].numbv);
		  numbv_add(&obj, (yyvsp[0].numb));
		  (yyval.numbv) = obj;
		}
#line 3757 "parse.cc"
    break;

  case 229:
#line 1156 "parse.y"
    { struct symbv_s obj;
		  symbv_init(&obj);
		  symbv_add(&obj, (yyvsp[0].symb));
		  (yyval.symbv) = obj;
		}
#line 3767 "parse.cc"
    break;

  case 230:
#line 1162 "parse.y"
    { struct symbv_s obj = (yyvsp[-2].symbv);
		  symbv_add(&obj, (yyvsp[0].symb));
		  (yyval.symbv) = obj;
		}
#line 3776 "parse.cc"
    break;

  case 231:
#line 1174 "parse.y"
    { (yyval.symb).text = (yyvsp[0].text);
		  (yyval.symb).idx = 0;
		}
#line 3784 "parse.cc"
    break;

  case 232:
#line 1181 "parse.y"
    { (yyval.symb) = (yyvsp[0].symb); }
#line 3790 "parse.cc"
    break;

  case 233:
#line 1183 "parse.y"
    { (yyval.symb).text = 0;
		  (yyval.symb).idx = 0;
		}
#line 3798 "parse.cc"
    break;

  case 236:
#line 1198 "parse.y"
    { (yyval.vpi_enum) = vpiInput; }
#line 3804 "parse.cc"
    break;

  case 237:
#line 1199 "parse.y"
    { (yyval.vpi_enum) = vpiOutput; }
#line 3810 "parse.cc"
    break;

  case 238:
#line 1200 "parse.y"
    { (yyval.vpi_enum) = vpiInout; }
#line 3816 "parse.cc"
    break;

  case 239:
#line 1201 "parse.y"
    { (yyval.vpi_enum) = vpiMixedIO; }
#line 3822 "parse.cc"
    break;

  case 240:
#line 1202 "parse.y"
    { (yyval.vpi_enum) = vpiNoDirection; }
#line 3828 "parse.cc"
    break;

  case 241:
#line 1207 "parse.y"
    { compile_modpath_src(modpath_dst, 0, (yyvsp[-4].symb), (yyvsp[-2].numbv), 0, (yyvsp[0].symb), false); }
#line 3834 "parse.cc"
    break;

  case 242:
#line 1209 "parse.y"
    { compile_modpath_src(modpath_dst, 0, (yyvsp[-5].symb), (yyvsp[-3].numbv), 0, (yyvsp[0].symb), true); }
#line 3840 "parse.cc"
    break;

  case 243:
#line 1211 "parse.y"
    { compile_modpath_src(modpath_dst, 0, (yyvsp[-6].symb), (yyvsp[-4].numbv), (yyvsp[-2].symb), (yyvsp[0].symb)); }
#line 3846 "parse.cc"
    break;

  case 244:
#line 1213 "parse.y"
    { compile_modpath_src(modpath_dst, '+', (yyvsp[-5].symb), (yyvsp[-2].numbv), 0, (yyvsp[0].symb), false); }
#line 3852 "parse.cc"
    break;

  case 245:
#line 1215 "parse.y"
    { compile_modpath_src(modpath_dst, '+', (yyvsp[-6].symb), (yyvsp[-3].numbv), 0, (yyvsp[0].symb), true); }
#line 3858 "parse.cc"
    break;

  case 246:
#line 1217 "parse.y"
    { compile_modpath_src(modpath_dst, '+', (yyvsp[-7].symb), (yyvsp[-4].numbv), (yyvsp[-2].symb), (yyvsp[0].symb)); }
#line 3864 "parse.cc"
    break;

  case 247:
#line 1219 "parse.y"
    { compile_modpath_src(modpath_dst, '-', (yyvsp[-5].symb), (yyvsp[-2].numbv), 0, (yyvsp[0].symb), false); }
#line 3870 "parse.cc"
    break;

  case 248:
#line 1221 "parse.y"
    { compile_modpath_src(modpath_dst, '-', (yyvsp[-6].symb), (yyvsp[-3].numbv), 0, (yyvsp[0].symb), true); }
#line 3876 "parse.cc"
    break;

  case 249:
#line 1223 "parse.y"
    { compile_modpath_src(modpath_dst, '-', (yyvsp[-7].symb), (yyvsp[-4].numbv), (yyvsp[-2].symb), (yyvsp[0].symb)); }
#line 3882 "parse.cc"
    break;

  case 250:
#line 1228 "parse.y"
    { (yyval.table) = compile_udp_table(0x0, (yyvsp[0].text)); }
#line 3888 "parse.cc"
    break;

  case 251:
#line 1230 "parse.y"
    { (yyval.table) = compile_udp_table((yyvsp[-2].table),  (yyvsp[0].text)); }
#line 3894 "parse.cc"
    break;

  case 252:
#line 1234 "parse.y"
    { (yyval.numb) = (yyvsp[0].numb); }
#line 3900 "parse.cc"
    break;

  case 253:
#line 1235 "parse.y"
    { (yyval.numb) = -(yyvsp[0].numb); }
#line 3906 "parse.cc"
    break;

  case 254:
#line 1240 "parse.y"
    { (yyval.cdelay) = new vvp_delay_t((yyvsp[-1].numb), (yyvsp[-1].numb)); }
#line 3912 "parse.cc"
    break;

  case 255:
#line 1242 "parse.y"
    { (yyval.cdelay) = new vvp_delay_t((yyvsp[-3].numb), (yyvsp[-1].numb)); }
#line 3918 "parse.cc"
    break;

  case 256:
#line 1244 "parse.y"
    { (yyval.cdelay) = new vvp_delay_t((yyvsp[-5].numb), (yyvsp[-3].numb), (yyvsp[-1].numb)); }
#line 3924 "parse.cc"
    break;


#line 3928 "parse.cc"

      default: break;
    }
  /* User semantic actions sometimes alter yychar, and that requires
     that yytoken be updated with the new translation.  We take the
     approach of translating immediately before every use of yytoken.
     One alternative is translating here after every semantic action,
     but that translation would be missed if the semantic action invokes
     YYABORT, YYACCEPT, or YYERROR immediately after altering yychar or
     if it invokes YYBACKUP.  In the case of YYABORT or YYACCEPT, an
     incorrect destructor might then be invoked immediately.  In the
     case of YYERROR or YYBACKUP, subsequent parser actions might lead
     to an incorrect destructor call or verbose syntax error message
     before the lookahead is translated.  */
  YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc);

  YYPOPSTACK (yylen);
  yylen = 0;
  YY_STACK_PRINT (yyss, yyssp);

  *++yyvsp = yyval;

  /* Now 'shift' the result of the reduction.  Determine what state
     that goes to, based on the state we popped back to and the rule
     number reduced by.  */
  {
    const int yylhs = yyr1[yyn] - YYNTOKENS;
    const int yyi = yypgoto[yylhs] + *yyssp;
    yystate = (0 <= yyi && yyi <= YYLAST && yycheck[yyi] == *yyssp
               ? yytable[yyi]
               : yydefgoto[yylhs]);
  }

  goto yynewstate;


/*--------------------------------------.
| yyerrlab -- here on detecting error.  |
`--------------------------------------*/
yyerrlab:
  /* Make sure we have latest lookahead translation.  See comments at
     user semantic actions for why this is necessary.  */
  yytoken = yychar == YYEMPTY ? YYEMPTY : YYTRANSLATE (yychar);

  /* If not already recovering from an error, report this error.  */
  if (!yyerrstatus)
    {
      ++yynerrs;
#if ! YYERROR_VERBOSE
      yyerror (YY_("syntax error"));
#else
# define YYSYNTAX_ERROR yysyntax_error (&yymsg_alloc, &yymsg, \
                                        yyssp, yytoken)
      {
        char const *yymsgp = YY_("syntax error");
        int yysyntax_error_status;
        yysyntax_error_status = YYSYNTAX_ERROR;
        if (yysyntax_error_status == 0)
          yymsgp = yymsg;
        else if (yysyntax_error_status == 1)
          {
            if (yymsg != yymsgbuf)
              YYSTACK_FREE (yymsg);
            yymsg = (char *) YYSTACK_ALLOC (yymsg_alloc);
            if (!yymsg)
              {
                yymsg = yymsgbuf;
                yymsg_alloc = sizeof yymsgbuf;
                yysyntax_error_status = 2;
              }
            else
              {
                yysyntax_error_status = YYSYNTAX_ERROR;
                yymsgp = yymsg;
              }
          }
        yyerror (yymsgp);
        if (yysyntax_error_status == 2)
          goto yyexhaustedlab;
      }
# undef YYSYNTAX_ERROR
#endif
    }



  if (yyerrstatus == 3)
    {
      /* If just tried and failed to reuse lookahead token after an
         error, discard it.  */

      if (yychar <= YYEOF)
        {
          /* Return failure if at end of input.  */
          if (yychar == YYEOF)
            YYABORT;
        }
      else
        {
          yydestruct ("Error: discarding",
                      yytoken, &yylval);
          yychar = YYEMPTY;
        }
    }

  /* Else will try to reuse lookahead token after shifting the error
     token.  */
  goto yyerrlab1;


/*---------------------------------------------------.
| yyerrorlab -- error raised explicitly by YYERROR.  |
`---------------------------------------------------*/
yyerrorlab:
  /* Pacify compilers when the user code never invokes YYERROR and the
     label yyerrorlab therefore never appears in user code.  */
  if (0)
    YYERROR;

  /* Do not reclaim the symbols of the rule whose action triggered
     this YYERROR.  */
  YYPOPSTACK (yylen);
  yylen = 0;
  YY_STACK_PRINT (yyss, yyssp);
  yystate = *yyssp;
  goto yyerrlab1;


/*-------------------------------------------------------------.
| yyerrlab1 -- common code for both syntax error and YYERROR.  |
`-------------------------------------------------------------*/
yyerrlab1:
  yyerrstatus = 3;      /* Each real token shifted decrements this.  */

  for (;;)
    {
      yyn = yypact[yystate];
      if (!yypact_value_is_default (yyn))
        {
          yyn += YYTERROR;
          if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR)
            {
              yyn = yytable[yyn];
              if (0 < yyn)
                break;
            }
        }

      /* Pop the current state because it cannot handle the error token.  */
      if (yyssp == yyss)
        YYABORT;


      yydestruct ("Error: popping",
                  yystos[yystate], yyvsp);
      YYPOPSTACK (1);
      yystate = *yyssp;
      YY_STACK_PRINT (yyss, yyssp);
    }

  YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
  *++yyvsp = yylval;
  YY_IGNORE_MAYBE_UNINITIALIZED_END


  /* Shift the error token.  */
  YY_SYMBOL_PRINT ("Shifting", yystos[yyn], yyvsp, yylsp);

  yystate = yyn;
  goto yynewstate;


/*-------------------------------------.
| yyacceptlab -- YYACCEPT comes here.  |
`-------------------------------------*/
yyacceptlab:
  yyresult = 0;
  goto yyreturn;


/*-----------------------------------.
| yyabortlab -- YYABORT comes here.  |
`-----------------------------------*/
yyabortlab:
  yyresult = 1;
  goto yyreturn;


#if !defined yyoverflow || YYERROR_VERBOSE
/*-------------------------------------------------.
| yyexhaustedlab -- memory exhaustion comes here.  |
`-------------------------------------------------*/
yyexhaustedlab:
  yyerror (YY_("memory exhausted"));
  yyresult = 2;
  /* Fall through.  */
#endif


/*-----------------------------------------------------.
| yyreturn -- parsing is finished, return the result.  |
`-----------------------------------------------------*/
yyreturn:
  if (yychar != YYEMPTY)
    {
      /* Make sure we have latest lookahead translation.  See comments at
         user semantic actions for why this is necessary.  */
      yytoken = YYTRANSLATE (yychar);
      yydestruct ("Cleanup: discarding lookahead",
                  yytoken, &yylval);
    }
  /* Do not reclaim the symbols of the rule whose action triggered
     this YYABORT or YYACCEPT.  */
  YYPOPSTACK (yylen);
  YY_STACK_PRINT (yyss, yyssp);
  while (yyssp != yyss)
    {
      yydestruct ("Cleanup: popping",
                  yystos[*yyssp], yyvsp);
      YYPOPSTACK (1);
    }
#ifndef yyoverflow
  if (yyss != yyssa)
    YYSTACK_FREE (yyss);
#endif
#if YYERROR_VERBOSE
  if (yymsg != yymsgbuf)
    YYSTACK_FREE (yymsg);
#endif
  return yyresult;
}
#line 1247 "parse.y"


int compile_design(const char*path)
{
      yypath = path;
      yyline = 1;
      yyin = fopen(path, "r");
      if (yyin == 0) {
	    fprintf(stderr, "%s: Unable to open input file.\n", path);
	    return -1;
      }

      int rc = yyparse();
      fclose(yyin);
      return rc;
}
