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

/* Bison interface for Yacc-like parsers in C

   Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2021 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 <https://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.  */

/* DO NOT RELY ON FEATURES THAT ARE NOT DOCUMENTED in the manual,
   especially those whose name start with YY_ or yy_.  They are
   private implementation details that can be changed or removed.  */

#ifndef YY_CVC_BUILD_STP_SRC_BUILD_LIB_PARSER_PARSECVC_TAB_H_INCLUDED
# define YY_CVC_BUILD_STP_SRC_BUILD_LIB_PARSER_PARSECVC_TAB_H_INCLUDED
/* Debug traces.  */
#ifndef CVCDEBUG
# if defined YYDEBUG
#if YYDEBUG
#   define CVCDEBUG 1
#  else
#   define CVCDEBUG 0
#  endif
# else /* ! defined YYDEBUG */
#  define CVCDEBUG 1
# endif /* ! defined YYDEBUG */
#endif  /* ! defined CVCDEBUG */
#if CVCDEBUG
extern int cvcdebug;
#endif

/* Token kinds.  */
#ifndef CVCTOKENTYPE
# define CVCTOKENTYPE
  enum cvctokentype
  {
    CVCEMPTY = -2,
    CVCEOF = 0,                    /* "end of file"  */
    CVCerror = 256,                /* error  */
    CVCUNDEF = 257,                /* "invalid token"  */
    AND_TOK = 258,                 /* "AND"  */
    OR_TOK = 259,                  /* "OR"  */
    NOT_TOK = 260,                 /* "NOT"  */
    EXCEPT_TOK = 261,              /* "EXCEPT"  */
    XOR_TOK = 262,                 /* "XOR"  */
    NAND_TOK = 263,                /* "NAND"  */
    NOR_TOK = 264,                 /* "NOR"  */
    IMPLIES_TOK = 265,             /* "=>"  */
    IFF_TOK = 266,                 /* "<=>"  */
    IF_TOK = 267,                  /* "IF"  */
    THEN_TOK = 268,                /* "THEN"  */
    ELSE_TOK = 269,                /* "ELSE"  */
    ELSIF_TOK = 270,               /* "ELSIF"  */
    END_TOK = 271,                 /* "END"  */
    ENDIF_TOK = 272,               /* "ENDIF"  */
    NEQ_TOK = 273,                 /* "/="  */
    ASSIGN_TOK = 274,              /* ":="  */
    BV_TOK = 275,                  /* "BV"  */
    BVLEFTSHIFT_TOK = 276,         /* "<<"  */
    BVRIGHTSHIFT_TOK = 277,        /* ">>"  */
    BVSHL_TOK = 278,               /* "BVSHL"  */
    BVLSHR_TOK = 279,              /* "BVLSHR"  */
    BVASHR_TOK = 280,              /* "BVASHR"  */
    BVPLUS_TOK = 281,              /* "BVPLUS"  */
    BVSUB_TOK = 282,               /* "BVSUB"  */
    BVUMINUS_TOK = 283,            /* "BVUMINUS"  */
    BVMULT_TOK = 284,              /* "BVMULT"  */
    BVDIV_TOK = 285,               /* "BVDIV"  */
    BVMOD_TOK = 286,               /* "BVMOD"  */
    SBVDIV_TOK = 287,              /* "SBVDIV"  */
    SBVREM_TOK = 288,              /* "SBVREM"  */
    BVNEG_TOK = 289,               /* "~"  */
    BVAND_TOK = 290,               /* "&"  */
    BVOR_TOK = 291,                /* "|"  */
    BVXOR_TOK = 292,               /* "BVXOR"  */
    BVNAND_TOK = 293,              /* "BVNAND"  */
    BVNOR_TOK = 294,               /* "BVNOR"  */
    BVXNOR_TOK = 295,              /* "BVXNOR"  */
    BVCONCAT_TOK = 296,            /* "@"  */
    BVLT_TOK = 297,                /* "BVLT"  */
    BVGT_TOK = 298,                /* "BVGT"  */
    BVLE_TOK = 299,                /* "BVLE"  */
    BVGE_TOK = 300,                /* "BVGE"  */
    BVSLT_TOK = 301,               /* "BVSLT"  */
    BVSGT_TOK = 302,               /* "BVSGT"  */
    BVSLE_TOK = 303,               /* "BVSLE"  */
    BVSGE_TOK = 304,               /* "BVSGE"  */
    BOOL_TO_BV_TOK = 305,          /* "BOOLBV"  */
    BVSX_TOK = 306,                /* "BVSX"  */
    BVZX_TOK = 307,                /* "BVZX"  */
    BOOLEXTRACT_TOK = 308,         /* "BOOLEXTRACT"  */
    ASSERT_TOK = 309,              /* "ASSERT"  */
    QUERY_TOK = 310,               /* "QUERY"  */
    BOOLEAN_TOK = 311,             /* "BOOLEAN"  */
    ARRAY_TOK = 312,               /* "ARRAY"  */
    OF_TOK = 313,                  /* "OF"  */
    WITH_TOK = 314,                /* "WITH"  */
    TRUELIT_TOK = 315,             /* "TRUE"  */
    FALSELIT_TOK = 316,            /* "FALSE"  */
    IN_TOK = 317,                  /* "IN"  */
    LET_TOK = 318,                 /* "LET"  */
    PUSH_TOK = 319,                /* "PUSH"  */
    POP_TOK = 320,                 /* "POP"  */
    BVCONST_TOK = 321,             /* BVCONST_TOK  */
    TERMID_TOK = 322,              /* TERMID_TOK  */
    FORMID_TOK = 323,              /* FORMID_TOK  */
    COUNTEREXAMPLE_TOK = 324,      /* COUNTEREXAMPLE_TOK  */
    NUMERAL_TOK = 325,             /* NUMERAL_TOK  */
    BIN_BASED_NUMBER = 326,        /* BIN_BASED_NUMBER  */
    DEC_BASED_NUMBER = 327,        /* DEC_BASED_NUMBER  */
    HEX_BASED_NUMBER = 328,        /* HEX_BASED_NUMBER  */
    STRING_TOK = 329               /* STRING_TOK  */
  };
  typedef enum cvctokentype cvctoken_kind_t;
#endif

/* Value type.  */
#if ! defined CVCSTYPE && ! defined CVCSTYPE_IS_DECLARED
union CVCSTYPE
{
#line 59 "/build/stp/src/stp-2.3.4/lib/Parser/cvc.y"


  unsigned int uintval;                 /* for numerals in types. */
  struct {
    //stores the indexwidth and valuewidth
    //indexwidth is 0 iff type is bitvector. positive iff type is
    //array, and stores the width of the indexing bitvector
    unsigned int indexwidth;
    //width of the bitvector type
    unsigned int valuewidth;
  } indexvaluewidth;

  //ASTNode,ASTVec
  stp::ASTNode *node;
  stp::ASTVec *vec;
  vector<char*> * stringVec;
  char* str;

  //Hash_Map to hold Array Updates during parse A map from array index
  //to array values. To support the WITH construct
  stp::ASTNodeMap * Index_To_UpdateValue;

#line 169 "/build/stp/src/build/lib/Parser/parsecvc.tab.h"

};
typedef union CVCSTYPE CVCSTYPE;
# define CVCSTYPE_IS_TRIVIAL 1
# define CVCSTYPE_IS_DECLARED 1
#endif


extern CVCSTYPE cvclval;


int cvcparse (void* AssertsQuery);


#endif /* !YY_CVC_BUILD_STP_SRC_BUILD_LIB_PARSER_PARSECVC_TAB_H_INCLUDED  */
