/* A Bison parser, made by GNU Bison 2.3. */ /* Skeleton implementation for Bison's Yacc-like parsers in C Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006 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 2, 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. */ /* 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. */ /* Identify Bison output. */ #define YYBISON 1 /* Bison version. */ #define YYBISON_VERSION "2.3" /* Skeleton name. */ #define YYSKELETON_NAME "yacc.c" /* Pure parsers. */ #define YYPURE 0 /* Using locations. */ #define YYLSP_NEEDED 0 /* Substitute the variable and function names. */ #define yyparse gmsh_yyparse #define yylex gmsh_yylex #define yyerror gmsh_yyerror #define yylval gmsh_yylval #define yychar gmsh_yychar #define yydebug gmsh_yydebug #define yynerrs gmsh_yynerrs /* Tokens. */ #ifndef YYTOKENTYPE # define YYTOKENTYPE /* Put the tokens into the symbol table, so that GDB and other debuggers know about them. */ enum yytokentype { tDOUBLE = 258, tSTRING = 259, tBIGSTR = 260, tEND = 261, tAFFECT = 262, tDOTS = 263, tPi = 264, tMPI_Rank = 265, tMPI_Size = 266, tEuclidian = 267, tCoordinates = 268, tExp = 269, tLog = 270, tLog10 = 271, tSqrt = 272, tSin = 273, tAsin = 274, tCos = 275, tAcos = 276, tTan = 277, tRand = 278, tAtan = 279, tAtan2 = 280, tSinh = 281, tCosh = 282, tTanh = 283, tFabs = 284, tFloor = 285, tCeil = 286, tFmod = 287, tModulo = 288, tHypot = 289, tPrintf = 290, tSprintf = 291, tStrCat = 292, tStrPrefix = 293, tStrRelative = 294, tBoundingBox = 295, tDraw = 296, tToday = 297, tPoint = 298, tCircle = 299, tEllipse = 300, tLine = 301, tSphere = 302, tPolarSphere = 303, tSurface = 304, tSpline = 305, tVolume = 306, tCharacteristic = 307, tLength = 308, tParametric = 309, tElliptic = 310, tPlane = 311, tRuled = 312, tTransfinite = 313, tComplex = 314, tPhysical = 315, tCompound = 316, tUsing = 317, tPlugin = 318, tRotate = 319, tTranslate = 320, tSymmetry = 321, tDilate = 322, tExtrude = 323, tLoop = 324, tRecombine = 325, tSmoother = 326, tSplit = 327, tDelete = 328, tCoherence = 329, tIntersect = 330, tLayers = 331, tHole = 332, tAlias = 333, tAliasWithOptions = 334, tText2D = 335, tText3D = 336, tInterpolationScheme = 337, tTime = 338, tCombine = 339, tBSpline = 340, tBezier = 341, tNurbs = 342, tOrder = 343, tKnots = 344, tColor = 345, tColorTable = 346, tFor = 347, tIn = 348, tEndFor = 349, tIf = 350, tEndIf = 351, tExit = 352, tField = 353, tReturn = 354, tCall = 355, tFunction = 356, tShow = 357, tHide = 358, tGetValue = 359, tGMSH_MAJOR_VERSION = 360, tGMSH_MINOR_VERSION = 361, tGMSH_PATCH_VERSION = 362, tAFFECTDIVIDE = 363, tAFFECTTIMES = 364, tAFFECTMINUS = 365, tAFFECTPLUS = 366, tOR = 367, tAND = 368, tNOTEQUAL = 369, tEQUAL = 370, tGREATEROREQUAL = 371, tLESSOREQUAL = 372, UNARYPREC = 373, tMINUSMINUS = 374, tPLUSPLUS = 375 }; #endif /* Tokens. */ #define tDOUBLE 258 #define tSTRING 259 #define tBIGSTR 260 #define tEND 261 #define tAFFECT 262 #define tDOTS 263 #define tPi 264 #define tMPI_Rank 265 #define tMPI_Size 266 #define tEuclidian 267 #define tCoordinates 268 #define tExp 269 #define tLog 270 #define tLog10 271 #define tSqrt 272 #define tSin 273 #define tAsin 274 #define tCos 275 #define tAcos 276 #define tTan 277 #define tRand 278 #define tAtan 279 #define tAtan2 280 #define tSinh 281 #define tCosh 282 #define tTanh 283 #define tFabs 284 #define tFloor 285 #define tCeil 286 #define tFmod 287 #define tModulo 288 #define tHypot 289 #define tPrintf 290 #define tSprintf 291 #define tStrCat 292 #define tStrPrefix 293 #define tStrRelative 294 #define tBoundingBox 295 #define tDraw 296 #define tToday 297 #define tPoint 298 #define tCircle 299 #define tEllipse 300 #define tLine 301 #define tSphere 302 #define tPolarSphere 303 #define tSurface 304 #define tSpline 305 #define tVolume 306 #define tCharacteristic 307 #define tLength 308 #define tParametric 309 #define tElliptic 310 #define tPlane 311 #define tRuled 312 #define tTransfinite 313 #define tComplex 314 #define tPhysical 315 #define tCompound 316 #define tUsing 317 #define tPlugin 318 #define tRotate 319 #define tTranslate 320 #define tSymmetry 321 #define tDilate 322 #define tExtrude 323 #define tLoop 324 #define tRecombine 325 #define tSmoother 326 #define tSplit 327 #define tDelete 328 #define tCoherence 329 #define tIntersect 330 #define tLayers 331 #define tHole 332 #define tAlias 333 #define tAliasWithOptions 334 #define tText2D 335 #define tText3D 336 #define tInterpolationScheme 337 #define tTime 338 #define tCombine 339 #define tBSpline 340 #define tBezier 341 #define tNurbs 342 #define tOrder 343 #define tKnots 344 #define tColor 345 #define tColorTable 346 #define tFor 347 #define tIn 348 #define tEndFor 349 #define tIf 350 #define tEndIf 351 #define tExit 352 #define tField 353 #define tReturn 354 #define tCall 355 #define tFunction 356 #define tShow 357 #define tHide 358 #define tGetValue 359 #define tGMSH_MAJOR_VERSION 360 #define tGMSH_MINOR_VERSION 361 #define tGMSH_PATCH_VERSION 362 #define tAFFECTDIVIDE 363 #define tAFFECTTIMES 364 #define tAFFECTMINUS 365 #define tAFFECTPLUS 366 #define tOR 367 #define tAND 368 #define tNOTEQUAL 369 #define tEQUAL 370 #define tGREATEROREQUAL 371 #define tLESSOREQUAL 372 #define UNARYPREC 373 #define tMINUSMINUS 374 #define tPLUSPLUS 375 /* Copy the first part of user declarations. */ #line 1 "Gmsh.y" // Gmsh - Copyright (C) 1997-2009 C. Geuzaine, J.-F. Remacle // // See the LICENSE.txt file for license information. Please report all // bugs and problems to <gmsh@geuz.org>. #include <string.h> #include <stdarg.h> #include <time.h> #include "GmshConfig.h" #include "GmshMessage.h" #include "GmshMatrix.h" #include "MallocUtils.h" #include "ListUtils.h" #include "TreeUtils.h" #include "Numeric.h" #include "Context.h" #include "GModel.h" #include "Geo.h" #include "GeoInterpolation.h" #include "Generator.h" #include "Draw.h" #include "Options.h" #include "Colors.h" #include "Parser.h" #include "OpenFile.h" #include "CommandLine.h" #include "FunctionManager.h" #include "ColorTable.h" #include "OS.h" #include "CreateFile.h" #include "gmshSurface.h" #include "Field.h" #include "BackgroundMesh.h" #if !defined(HAVE_NO_POST) #include "PView.h" #include "PViewDataList.h" #include "PluginManager.h" #endif // Global parser variables std::string gmsh_yyname; int gmsh_yyerrorstate = 0; int gmsh_yyviewindex = 0; std::map<std::string, std::vector<double> > gmsh_yysymbols; // Static parser variables (accessible only in this file) static std::map<std::string, std::string > gmsh_yystringsymbols; #if !defined(HAVE_NO_POST) static PViewDataList *ViewData; #endif static std::vector<double> ViewCoord; static List_T *ViewValueList = 0; static int *ViewNumList = 0; static ExtrudeParams extr; static gmshSurface *myGmshSurface = 0; #define MAX_RECUR_LOOPS 100 static int ImbricatedLoop = 0; static fpos_t yyposImbricatedLoopsTab[MAX_RECUR_LOOPS]; static int yylinenoImbricatedLoopsTab[MAX_RECUR_LOOPS]; static double LoopControlVariablesTab[MAX_RECUR_LOOPS][3]; static char *LoopControlVariablesNameTab[MAX_RECUR_LOOPS]; void yyerror(char *s); void yymsg(int level, const char *fmt, ...); void skip_until(const char *skip, const char *until); int PrintListOfDouble(char *format, List_T *list, char *buffer); Double_Matrix ListOfListOfDouble2Matrix(List_T *list); void FixRelativePath(const char *in, char *out); /* Enabling traces. */ #ifndef YYDEBUG # define YYDEBUG 0 #endif /* Enabling verbose error messages. */ #ifdef YYERROR_VERBOSE # undef YYERROR_VERBOSE # define YYERROR_VERBOSE 1 #else # define YYERROR_VERBOSE 0 #endif /* Enabling the token table. */ #ifndef YYTOKEN_TABLE # define YYTOKEN_TABLE 0 #endif #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED typedef union YYSTYPE #line 72 "Gmsh.y" { char *c; int i; unsigned int u; double d; double v[5]; Shape s; List_T *l; } /* Line 193 of yacc.c. */ #line 425 "Gmsh.tab.cpp" YYSTYPE; # define yystype YYSTYPE /* obsolescent; will be withdrawn */ # define YYSTYPE_IS_DECLARED 1 # define YYSTYPE_IS_TRIVIAL 1 #endif /* Copy the second part of user declarations. */ /* Line 216 of yacc.c. */ #line 438 "Gmsh.tab.cpp" #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; #elif (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) typedef signed char yytype_int8; #else typedef short int yytype_int8; #endif #ifdef YYTYPE_UINT16 typedef YYTYPE_UINT16 yytype_uint16; #else typedef unsigned short int yytype_uint16; #endif #ifdef YYTYPE_INT16 typedef YYTYPE_INT16 yytype_int16; #else typedef short int 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 && (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) # include <stddef.h> /* INFRINGES ON USER NAME SPACE */ # define YYSIZE_T size_t # else # define YYSIZE_T unsigned int # 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 /* Suppress unused-variable warnings by "using" E. */ #if ! defined lint || defined __GNUC__ # define YYUSE(e) ((void) (e)) #else # define YYUSE(e) /* empty */ #endif /* Identity function, used to suppress warnings about constant conditions. */ #ifndef lint # define YYID(n) (n) #else #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) static int YYID (int i) #else static int YYID (i) int i; #endif { return i; } #endif #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 _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) # include <stdlib.h> /* INFRINGES ON USER NAME SPACE */ # ifndef _STDLIB_H # define _STDLIB_H 1 # endif # endif # endif # endif # endif # ifdef YYSTACK_ALLOC /* Pacify GCC's `empty if-body' warning. */ # define YYSTACK_FREE(Ptr) do { /* empty */; } while (YYID (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 _STDLIB_H \ && ! ((defined YYMALLOC || defined malloc) \ && (defined YYFREE || defined free))) # include <stdlib.h> /* INFRINGES ON USER NAME SPACE */ # ifndef _STDLIB_H # define _STDLIB_H 1 # endif # endif # ifndef YYMALLOC # define YYMALLOC malloc # if ! defined malloc && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */ # endif # endif # ifndef YYFREE # define YYFREE free # if ! defined free && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) 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; YYSTYPE yyvs; }; /* 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) /* Copy COUNT objects from FROM to TO. The source and destination do not overlap. */ # ifndef YYCOPY # if defined __GNUC__ && 1 < __GNUC__ # define YYCOPY(To, From, Count) \ __builtin_memcpy (To, From, (Count) * sizeof (*(From))) # else # define YYCOPY(To, From, Count) \ do \ { \ YYSIZE_T yyi; \ for (yyi = 0; yyi < (Count); yyi++) \ (To)[yyi] = (From)[yyi]; \ } \ while (YYID (0)) # endif # endif /* 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) \ do \ { \ YYSIZE_T yynewbytes; \ YYCOPY (&yyptr->Stack, Stack, yysize); \ Stack = &yyptr->Stack; \ yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \ yyptr += yynewbytes / sizeof (*yyptr); \ } \ while (YYID (0)) #endif /* YYFINAL -- State number of the termination state. */ #define YYFINAL 5 /* YYLAST -- Last index in YYTABLE. */ #define YYLAST 6191 /* YYNTOKENS -- Number of terminals. */ #define YYNTOKENS 141 /* YYNNTS -- Number of nonterminals. */ #define YYNNTS 74 /* YYNRULES -- Number of rules. */ #define YYNRULES 358 /* YYNRULES -- Number of states. */ #define YYNSTATES 1250 /* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */ #define YYUNDEFTOK 2 #define YYMAXUTOK 375 #define YYTRANSLATE(YYX) \ ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) /* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to 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, 126, 2, 136, 2, 125, 2, 2, 131, 132, 123, 121, 137, 122, 135, 124, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 117, 2, 118, 112, 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, 133, 2, 134, 130, 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, 138, 2, 139, 140, 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, 113, 114, 115, 116, 119, 120, 127, 128, 129 }; #if YYDEBUG /* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in YYRHS. */ static const yytype_uint16 yyprhs[] = { 0, 0, 3, 5, 8, 9, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 45, 51, 59, 67, 77, 84, 91, 98, 99, 102, 105, 108, 111, 114, 116, 120, 122, 126, 127, 128, 139, 141, 145, 146, 160, 162, 166, 167, 183, 192, 207, 208, 215, 217, 219, 221, 223, 225, 227, 229, 234, 242, 252, 259, 266, 270, 277, 282, 289, 299, 306, 316, 322, 331, 340, 352, 359, 369, 375, 383, 393, 403, 415, 425, 435, 437, 439, 440, 446, 447, 450, 458, 467, 474, 482, 490, 499, 508, 526, 534, 542, 554, 563, 572, 581, 591, 595, 600, 611, 619, 627, 636, 645, 658, 667, 675, 684, 690, 702, 708, 718, 723, 733, 743, 745, 747, 748, 751, 758, 765, 772, 779, 784, 791, 798, 802, 807, 813, 817, 821, 826, 831, 835, 843, 851, 855, 863, 867, 870, 873, 889, 892, 899, 908, 917, 928, 930, 933, 935, 939, 944, 946, 952, 964, 978, 979, 987, 988, 1002, 1003, 1019, 1020, 1027, 1036, 1045, 1054, 1067, 1080, 1093, 1108, 1123, 1138, 1139, 1152, 1153, 1166, 1167, 1180, 1181, 1198, 1199, 1216, 1217, 1234, 1235, 1254, 1255, 1274, 1275, 1294, 1296, 1299, 1305, 1313, 1323, 1326, 1336, 1337, 1341, 1342, 1344, 1345, 1348, 1349, 1352, 1360, 1367, 1376, 1382, 1388, 1395, 1406, 1417, 1428, 1439, 1442, 1446, 1448, 1452, 1455, 1458, 1461, 1465, 1469, 1473, 1477, 1481, 1485, 1489, 1493, 1497, 1501, 1505, 1509, 1513, 1517, 1523, 1528, 1533, 1538, 1543, 1548, 1553, 1558, 1563, 1568, 1573, 1580, 1585, 1590, 1595, 1600, 1605, 1610, 1617, 1624, 1631, 1636, 1641, 1646, 1651, 1656, 1661, 1666, 1671, 1676, 1681, 1686, 1693, 1698, 1703, 1708, 1713, 1718, 1723, 1730, 1737, 1744, 1749, 1751, 1753, 1755, 1757, 1759, 1761, 1763, 1765, 1771, 1776, 1781, 1784, 1790, 1794, 1801, 1806, 1814, 1821, 1823, 1826, 1829, 1833, 1837, 1849, 1859, 1867, 1875, 1877, 1881, 1883, 1885, 1888, 1892, 1897, 1903, 1905, 1907, 1910, 1914, 1918, 1924, 1929, 1931, 1933, 1937, 1944, 1946, 1948, 1952, 1956, 1966, 1974, 1976, 1982, 1986, 1993, 1995, 1999, 2001, 2003, 2007, 2014, 2016, 2018, 2025, 2030, 2035, 2040 }; /* YYRHS -- A `-1'-separated list of the rules' RHS. */ static const yytype_int16 yyrhs[] = { 142, 0, -1, 143, -1, 1, 6, -1, -1, 143, 144, -1, 147, -1, 146, -1, 165, -1, 169, -1, 170, -1, 173, -1, 174, -1, 175, -1, 178, -1, 198, -1, 199, -1, 200, -1, 177, -1, 176, -1, 118, -1, 118, 118, -1, 35, 131, 5, 132, 6, -1, 35, 131, 5, 132, 145, 213, 6, -1, 35, 131, 5, 137, 209, 132, 6, -1, 35, 131, 5, 137, 209, 132, 145, 213, 6, -1, 4, 5, 138, 148, 139, 6, -1, 78, 4, 133, 201, 134, 6, -1, 79, 4, 133, 201, 134, 6, -1, -1, 148, 151, -1, 148, 155, -1, 148, 158, -1, 148, 160, -1, 148, 161, -1, 201, -1, 149, 137, 201, -1, 201, -1, 150, 137, 201, -1, -1, -1, 4, 152, 131, 149, 132, 153, 138, 150, 139, 6, -1, 213, -1, 154, 137, 213, -1, -1, 80, 131, 201, 137, 201, 137, 201, 132, 156, 138, 154, 139, 6, -1, 213, -1, 157, 137, 213, -1, -1, 81, 131, 201, 137, 201, 137, 201, 137, 201, 132, 159, 138, 157, 139, 6, -1, 82, 138, 205, 139, 138, 205, 139, 6, -1, 82, 138, 205, 139, 138, 205, 139, 138, 205, 139, 138, 205, 139, 6, -1, -1, 83, 162, 138, 150, 139, 6, -1, 7, -1, 111, -1, 110, -1, 109, -1, 108, -1, 129, -1, 128, -1, 4, 163, 201, 6, -1, 4, 133, 201, 134, 163, 201, 6, -1, 4, 133, 138, 209, 139, 134, 163, 206, 6, -1, 4, 133, 134, 7, 206, 6, -1, 4, 133, 134, 111, 206, 6, -1, 4, 164, 6, -1, 4, 133, 201, 134, 164, 6, -1, 4, 7, 214, 6, -1, 4, 135, 4, 7, 214, 6, -1, 4, 133, 201, 134, 135, 4, 7, 214, 6, -1, 4, 135, 4, 163, 201, 6, -1, 4, 133, 201, 134, 135, 4, 163, 201, 6, -1, 4, 135, 4, 164, 6, -1, 4, 133, 201, 134, 135, 4, 164, 6, -1, 4, 135, 90, 135, 4, 7, 210, 6, -1, 4, 133, 201, 134, 135, 90, 135, 4, 7, 210, 6, -1, 4, 135, 91, 7, 211, 6, -1, 4, 133, 201, 134, 135, 91, 7, 211, 6, -1, 4, 98, 7, 201, 6, -1, 98, 133, 201, 134, 7, 4, 6, -1, 98, 133, 201, 134, 135, 4, 7, 201, 6, -1, 98, 133, 201, 134, 135, 4, 7, 214, 6, -1, 98, 133, 201, 134, 135, 4, 7, 138, 209, 139, 6, -1, 63, 131, 4, 132, 135, 4, 7, 201, 6, -1, 63, 131, 4, 132, 135, 4, 7, 214, 6, -1, 201, -1, 214, -1, -1, 93, 47, 138, 201, 139, -1, -1, 56, 203, -1, 43, 131, 201, 132, 7, 203, 6, -1, 60, 43, 131, 166, 132, 7, 206, 6, -1, 52, 53, 206, 7, 201, 6, -1, 46, 131, 201, 132, 7, 206, 6, -1, 50, 131, 201, 132, 7, 206, 6, -1, 44, 131, 201, 132, 7, 206, 168, 6, -1, 45, 131, 201, 132, 7, 206, 168, 6, -1, 54, 131, 201, 132, 7, 138, 201, 137, 201, 137, 5, 137, 5, 137, 5, 139, 6, -1, 85, 131, 201, 132, 7, 206, 6, -1, 86, 131, 201, 132, 7, 206, 6, -1, 87, 131, 201, 132, 7, 206, 89, 206, 88, 201, 6, -1, 46, 69, 131, 201, 132, 7, 206, 6, -1, 60, 46, 131, 166, 132, 7, 206, 6, -1, 56, 49, 131, 201, 132, 7, 206, 6, -1, 57, 49, 131, 201, 132, 7, 206, 167, 6, -1, 12, 13, 6, -1, 13, 49, 201, 6, -1, 54, 49, 131, 201, 132, 7, 5, 5, 5, 6, -1, 47, 131, 201, 132, 7, 206, 6, -1, 48, 131, 201, 132, 7, 206, 6, -1, 49, 69, 131, 201, 132, 7, 206, 6, -1, 60, 49, 131, 166, 132, 7, 206, 6, -1, 61, 49, 131, 201, 132, 7, 206, 4, 138, 205, 139, 6, -1, 59, 51, 131, 201, 132, 7, 206, 6, -1, 51, 131, 201, 132, 7, 206, 6, -1, 60, 51, 131, 166, 132, 7, 206, 6, -1, 65, 203, 138, 171, 139, -1, 64, 138, 203, 137, 203, 137, 201, 139, 138, 171, 139, -1, 66, 203, 138, 171, 139, -1, 67, 138, 203, 137, 201, 139, 138, 171, 139, -1, 4, 138, 171, 139, -1, 75, 46, 138, 209, 139, 49, 138, 201, 139, -1, 72, 46, 131, 201, 132, 138, 209, 139, 6, -1, 172, -1, 170, -1, -1, 172, 169, -1, 172, 43, 138, 209, 139, 6, -1, 172, 46, 138, 209, 139, 6, -1, 172, 49, 138, 209, 139, 6, -1, 172, 51, 138, 209, 139, 6, -1, 73, 138, 172, 139, -1, 73, 98, 133, 201, 134, 6, -1, 73, 4, 133, 201, 134, 6, -1, 73, 4, 6, -1, 73, 4, 4, 6, -1, 90, 210, 138, 172, 139, -1, 102, 5, 6, -1, 103, 5, 6, -1, 102, 138, 172, 139, -1, 103, 138, 172, 139, -1, 4, 214, 6, -1, 4, 4, 133, 201, 134, 213, 6, -1, 4, 4, 4, 133, 201, 134, 6, -1, 4, 201, 6, -1, 63, 131, 4, 132, 135, 4, 6, -1, 84, 4, 6, -1, 97, 6, -1, 40, 6, -1, 40, 138, 201, 137, 201, 137, 201, 137, 201, 137, 201, 137, 201, 139, 6, -1, 41, 6, -1, 92, 131, 201, 8, 201, 132, -1, 92, 131, 201, 8, 201, 8, 201, 132, -1, 92, 4, 93, 138, 201, 8, 201, 139, -1, 92, 4, 93, 138, 201, 8, 201, 8, 201, 139, -1, 94, -1, 101, 4, -1, 99, -1, 100, 4, 6, -1, 95, 131, 201, 132, -1, 96, -1, 68, 203, 138, 172, 139, -1, 68, 138, 203, 137, 203, 137, 201, 139, 138, 172, 139, -1, 68, 138, 203, 137, 203, 137, 203, 137, 201, 139, 138, 172, 139, -1, -1, 68, 203, 138, 172, 179, 192, 139, -1, -1, 68, 138, 203, 137, 203, 137, 201, 139, 138, 172, 180, 192, 139, -1, -1, 68, 138, 203, 137, 203, 137, 203, 137, 201, 139, 138, 172, 181, 192, 139, -1, -1, 68, 138, 172, 182, 192, 139, -1, 68, 43, 138, 201, 137, 203, 139, 6, -1, 68, 46, 138, 201, 137, 203, 139, 6, -1, 68, 49, 138, 201, 137, 203, 139, 6, -1, 68, 43, 138, 201, 137, 203, 137, 203, 137, 201, 139, 6, -1, 68, 46, 138, 201, 137, 203, 137, 203, 137, 201, 139, 6, -1, 68, 49, 138, 201, 137, 203, 137, 203, 137, 201, 139, 6, -1, 68, 43, 138, 201, 137, 203, 137, 203, 137, 203, 137, 201, 139, 6, -1, 68, 46, 138, 201, 137, 203, 137, 203, 137, 203, 137, 201, 139, 6, -1, 68, 49, 138, 201, 137, 203, 137, 203, 137, 203, 137, 201, 139, 6, -1, -1, 68, 43, 138, 201, 137, 203, 139, 183, 138, 192, 139, 6, -1, -1, 68, 46, 138, 201, 137, 203, 139, 184, 138, 192, 139, 6, -1, -1, 68, 49, 138, 201, 137, 203, 139, 185, 138, 192, 139, 6, -1, -1, 68, 43, 138, 201, 137, 203, 137, 203, 137, 201, 139, 186, 138, 192, 139, 6, -1, -1, 68, 46, 138, 201, 137, 203, 137, 203, 137, 201, 139, 187, 138, 192, 139, 6, -1, -1, 68, 49, 138, 201, 137, 203, 137, 203, 137, 201, 139, 188, 138, 192, 139, 6, -1, -1, 68, 43, 138, 201, 137, 203, 137, 203, 137, 203, 137, 201, 139, 189, 138, 192, 139, 6, -1, -1, 68, 46, 138, 201, 137, 203, 137, 203, 137, 203, 137, 201, 139, 190, 138, 192, 139, 6, -1, -1, 68, 49, 138, 201, 137, 203, 137, 203, 137, 203, 137, 201, 139, 191, 138, 192, 139, 6, -1, 193, -1, 192, 193, -1, 76, 138, 201, 139, 6, -1, 76, 138, 206, 137, 206, 139, 6, -1, 76, 138, 206, 137, 206, 137, 206, 139, 6, -1, 70, 6, -1, 77, 131, 201, 132, 7, 206, 62, 201, 6, -1, -1, 62, 4, 201, -1, -1, 4, -1, -1, 7, 206, -1, -1, 7, 201, -1, 58, 46, 207, 7, 201, 194, 6, -1, 58, 49, 207, 196, 195, 6, -1, 55, 49, 138, 201, 139, 7, 206, 6, -1, 58, 51, 207, 196, 6, -1, 70, 49, 207, 197, 6, -1, 71, 49, 206, 7, 201, 6, -1, 43, 138, 209, 139, 93, 49, 138, 201, 139, 6, -1, 46, 138, 209, 139, 93, 49, 138, 201, 139, 6, -1, 46, 138, 209, 139, 93, 51, 138, 201, 139, 6, -1, 49, 138, 209, 139, 93, 51, 138, 201, 139, 6, -1, 74, 6, -1, 74, 4, 6, -1, 202, -1, 131, 201, 132, -1, 122, 201, -1, 121, 201, -1, 126, 201, -1, 201, 122, 201, -1, 201, 121, 201, -1, 201, 123, 201, -1, 201, 124, 201, -1, 201, 125, 201, -1, 201, 130, 201, -1, 201, 117, 201, -1, 201, 118, 201, -1, 201, 120, 201, -1, 201, 119, 201, -1, 201, 116, 201, -1, 201, 115, 201, -1, 201, 114, 201, -1, 201, 113, 201, -1, 201, 112, 201, 8, 201, -1, 14, 131, 201, 132, -1, 15, 131, 201, 132, -1, 16, 131, 201, 132, -1, 17, 131, 201, 132, -1, 18, 131, 201, 132, -1, 19, 131, 201, 132, -1, 20, 131, 201, 132, -1, 21, 131, 201, 132, -1, 22, 131, 201, 132, -1, 24, 131, 201, 132, -1, 25, 131, 201, 137, 201, 132, -1, 26, 131, 201, 132, -1, 27, 131, 201, 132, -1, 28, 131, 201, 132, -1, 29, 131, 201, 132, -1, 30, 131, 201, 132, -1, 31, 131, 201, 132, -1, 32, 131, 201, 137, 201, 132, -1, 33, 131, 201, 137, 201, 132, -1, 34, 131, 201, 137, 201, 132, -1, 23, 131, 201, 132, -1, 14, 133, 201, 134, -1, 15, 133, 201, 134, -1, 16, 133, 201, 134, -1, 17, 133, 201, 134, -1, 18, 133, 201, 134, -1, 19, 133, 201, 134, -1, 20, 133, 201, 134, -1, 21, 133, 201, 134, -1, 22, 133, 201, 134, -1, 24, 133, 201, 134, -1, 25, 133, 201, 137, 201, 134, -1, 26, 133, 201, 134, -1, 27, 133, 201, 134, -1, 28, 133, 201, 134, -1, 29, 133, 201, 134, -1, 30, 133, 201, 134, -1, 31, 133, 201, 134, -1, 32, 133, 201, 137, 201, 134, -1, 33, 133, 201, 137, 201, 134, -1, 34, 133, 201, 137, 201, 134, -1, 23, 133, 201, 134, -1, 3, -1, 9, -1, 10, -1, 11, -1, 105, -1, 106, -1, 107, -1, 4, -1, 4, 140, 138, 201, 139, -1, 4, 133, 201, 134, -1, 136, 4, 133, 134, -1, 4, 164, -1, 4, 133, 201, 134, 164, -1, 4, 135, 4, -1, 4, 133, 201, 134, 135, 4, -1, 4, 135, 4, 164, -1, 4, 133, 201, 134, 135, 4, 164, -1, 104, 131, 5, 137, 201, 132, -1, 204, -1, 122, 203, -1, 121, 203, -1, 203, 122, 203, -1, 203, 121, 203, -1, 138, 201, 137, 201, 137, 201, 137, 201, 137, 201, 139, -1, 138, 201, 137, 201, 137, 201, 137, 201, 139, -1, 138, 201, 137, 201, 137, 201, 139, -1, 131, 201, 137, 201, 137, 201, 132, -1, 206, -1, 205, 137, 206, -1, 201, -1, 208, -1, 138, 139, -1, 138, 209, 139, -1, 122, 138, 209, 139, -1, 201, 123, 138, 209, 139, -1, 206, -1, 5, -1, 122, 208, -1, 201, 123, 208, -1, 201, 8, 201, -1, 201, 8, 201, 8, 201, -1, 43, 138, 201, 139, -1, 170, -1, 178, -1, 4, 133, 134, -1, 4, 133, 138, 209, 139, 134, -1, 201, -1, 208, -1, 209, 137, 201, -1, 209, 137, 208, -1, 138, 201, 137, 201, 137, 201, 137, 201, 139, -1, 138, 201, 137, 201, 137, 201, 139, -1, 4, -1, 4, 135, 90, 135, 4, -1, 138, 212, 139, -1, 4, 133, 201, 134, 135, 91, -1, 210, -1, 212, 137, 210, -1, 214, -1, 4, -1, 4, 135, 4, -1, 4, 133, 201, 134, 135, 4, -1, 5, -1, 42, -1, 37, 131, 213, 137, 213, 132, -1, 38, 131, 213, 132, -1, 39, 131, 213, 132, -1, 36, 131, 213, 132, -1, 36, 131, 213, 137, 209, 132, -1 }; /* YYRLINE[YYN] -- source line where rule number YYN was defined. */ static const yytype_uint16 yyrline[] = { 0, 140, 140, 141, 146, 148, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 169, 173, 180, 185, 200, 213, 242, 256, 267, 282, 287, 288, 289, 290, 291, 295, 297, 302, 304, 310, 456, 309, 474, 481, 492, 491, 510, 517, 528, 527, 545, 561, 584, 583, 597, 598, 599, 600, 601, 605, 606, 613, 635, 662, 702, 712, 720, 728, 740, 749, 755, 764, 782, 800, 809, 821, 826, 834, 854, 877, 884, 890, 910, 931, 957, 969, 986, 990, 1000, 1003, 1016, 1019, 1029, 1052, 1068, 1090, 1108, 1126, 1156, 1186, 1206, 1224, 1242, 1268, 1285, 1304, 1322, 1361, 1367, 1373, 1380, 1405, 1430, 1446, 1462, 1493, 1511, 1528, 1549, 1554, 1559, 1564, 1569, 1589, 1595, 1606, 1607, 1612, 1615, 1619, 1642, 1665, 1688, 1716, 1725, 1729, 1744, 1771, 1788, 1802, 1808, 1814, 1823, 1837, 1885, 1903, 1918, 1937, 1949, 1973, 1977, 1982, 1987, 1998, 2015, 2032, 2051, 2070, 2098, 2106, 2112, 2119, 2123, 2132, 2140, 2148, 2157, 2156, 2169, 2168, 2181, 2180, 2193, 2192, 2205, 2212, 2219, 2226, 2233, 2240, 2247, 2254, 2261, 2269, 2268, 2280, 2279, 2291, 2290, 2302, 2301, 2313, 2312, 2324, 2323, 2335, 2334, 2346, 2345, 2357, 2356, 2371, 2374, 2380, 2389, 2409, 2432, 2436, 2460, 2463, 2479, 2482, 2495, 2498, 2504, 2507, 2514, 2568, 2638, 2643, 2710, 2753, 2779, 2802, 2825, 2828, 2837, 2841, 2857, 2858, 2859, 2860, 2861, 2862, 2863, 2864, 2865, 2872, 2873, 2874, 2875, 2876, 2877, 2878, 2879, 2880, 2881, 2882, 2883, 2884, 2885, 2886, 2887, 2888, 2889, 2890, 2891, 2892, 2893, 2894, 2895, 2896, 2897, 2898, 2899, 2900, 2901, 2902, 2903, 2905, 2906, 2907, 2908, 2909, 2910, 2911, 2912, 2913, 2914, 2915, 2916, 2917, 2918, 2919, 2920, 2921, 2922, 2923, 2924, 2925, 2934, 2935, 2936, 2937, 2938, 2939, 2940, 2944, 2957, 2969, 2984, 2994, 3004, 3022, 3027, 3032, 3042, 3052, 3060, 3064, 3068, 3072, 3076, 3083, 3087, 3091, 3095, 3102, 3107, 3114, 3119, 3123, 3128, 3132, 3140, 3151, 3155, 3167, 3175, 3183, 3190, 3201, 3221, 3231, 3241, 3251, 3271, 3276, 3280, 3284, 3296, 3300, 3312, 3319, 3329, 3333, 3348, 3353, 3360, 3364, 3377, 3385, 3396, 3400, 3408, 3416, 3430, 3444, 3448 }; #endif #if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE /* 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", "tDOUBLE", "tSTRING", "tBIGSTR", "tEND", "tAFFECT", "tDOTS", "tPi", "tMPI_Rank", "tMPI_Size", "tEuclidian", "tCoordinates", "tExp", "tLog", "tLog10", "tSqrt", "tSin", "tAsin", "tCos", "tAcos", "tTan", "tRand", "tAtan", "tAtan2", "tSinh", "tCosh", "tTanh", "tFabs", "tFloor", "tCeil", "tFmod", "tModulo", "tHypot", "tPrintf", "tSprintf", "tStrCat", "tStrPrefix", "tStrRelative", "tBoundingBox", "tDraw", "tToday", "tPoint", "tCircle", "tEllipse", "tLine", "tSphere", "tPolarSphere", "tSurface", "tSpline", "tVolume", "tCharacteristic", "tLength", "tParametric", "tElliptic", "tPlane", "tRuled", "tTransfinite", "tComplex", "tPhysical", "tCompound", "tUsing", "tPlugin", "tRotate", "tTranslate", "tSymmetry", "tDilate", "tExtrude", "tLoop", "tRecombine", "tSmoother", "tSplit", "tDelete", "tCoherence", "tIntersect", "tLayers", "tHole", "tAlias", "tAliasWithOptions", "tText2D", "tText3D", "tInterpolationScheme", "tTime", "tCombine", "tBSpline", "tBezier", "tNurbs", "tOrder", "tKnots", "tColor", "tColorTable", "tFor", "tIn", "tEndFor", "tIf", "tEndIf", "tExit", "tField", "tReturn", "tCall", "tFunction", "tShow", "tHide", "tGetValue", "tGMSH_MAJOR_VERSION", "tGMSH_MINOR_VERSION", "tGMSH_PATCH_VERSION", "tAFFECTDIVIDE", "tAFFECTTIMES", "tAFFECTMINUS", "tAFFECTPLUS", "'?'", "tOR", "tAND", "tNOTEQUAL", "tEQUAL", "'<'", "'>'", "tGREATEROREQUAL", "tLESSOREQUAL", "'+'", "'-'", "'*'", "'/'", "'%'", "'!'", "UNARYPREC", "tMINUSMINUS", "tPLUSPLUS", "'^'", "'('", "')'", "'['", "']'", "'.'", "'#'", "','", "'{'", "'}'", "'~'", "$accept", "All", "GeoFormatItems", "GeoFormatItem", "SendToFile", "Printf", "View", "Views", "ElementCoords", "ElementValues", "Element", "@1", "@2", "Text2DValues", "Text2D", "@3", "Text3DValues", "Text3D", "@4", "InterpolationMatrix", "Time", "@5", "NumericAffectation", "NumericIncrement", "Affectation", "PhysicalId", "InSphereCenter", "CircleOptions", "Shape", "Transform", "MultipleShape", "ListOfShapes", "Delete", "Colorify", "Visibility", "Command", "Loop", "Extrude", "@6", "@7", "@8", "@9", "@10", "@11", "@12", "@13", "@14", "@15", "@16", "@17", "@18", "ExtrudeParameters", "ExtrudeParameter", "TransfiniteType", "TransfiniteArrangement", "TransfiniteCorners", "RecombineAngle", "Transfinite", "Embedding", "Coherence", "FExpr", "FExpr_Single", "VExpr", "VExpr_Single", "RecursiveListOfListOfDouble", "ListOfDouble", "ListOfDoubleOrAll", "FExpr_Multi", "RecursiveListOfDouble", "ColorExpr", "ListOfColor", "RecursiveListOfColor", "StringExprVar", "StringExpr", 0 }; #endif # ifdef YYPRINT /* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to token YYLEX-NUM. */ 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, 63, 367, 368, 369, 370, 60, 62, 371, 372, 43, 45, 42, 47, 37, 33, 373, 374, 375, 94, 40, 41, 91, 93, 46, 35, 44, 123, 125, 126 }; # endif /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */ static const yytype_uint8 yyr1[] = { 0, 141, 142, 142, 143, 143, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 145, 145, 146, 146, 146, 146, 147, 147, 147, 148, 148, 148, 148, 148, 148, 149, 149, 150, 150, 152, 153, 151, 154, 154, 156, 155, 157, 157, 159, 158, 160, 160, 162, 161, 163, 163, 163, 163, 163, 164, 164, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 166, 166, 167, 167, 168, 168, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 170, 170, 170, 170, 170, 170, 170, 171, 171, 172, 172, 172, 172, 172, 172, 173, 173, 173, 173, 173, 174, 175, 175, 175, 175, 176, 176, 176, 176, 176, 176, 176, 176, 176, 176, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 178, 178, 178, 179, 178, 180, 178, 181, 178, 182, 178, 178, 178, 178, 178, 178, 178, 178, 178, 178, 183, 178, 184, 178, 185, 178, 186, 178, 187, 178, 188, 178, 189, 178, 190, 178, 191, 178, 192, 192, 193, 193, 193, 193, 193, 194, 194, 195, 195, 196, 196, 197, 197, 198, 198, 198, 198, 198, 198, 199, 199, 199, 199, 200, 200, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, 203, 203, 203, 203, 203, 204, 204, 204, 204, 205, 205, 206, 206, 206, 206, 206, 206, 207, 207, 208, 208, 208, 208, 208, 208, 208, 208, 208, 209, 209, 209, 209, 210, 210, 210, 210, 211, 211, 212, 212, 213, 213, 213, 213, 214, 214, 214, 214, 214, 214, 214 }; /* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */ static const yytype_uint8 yyr2[] = { 0, 2, 1, 2, 0, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 5, 7, 7, 9, 6, 6, 6, 0, 2, 2, 2, 2, 2, 1, 3, 1, 3, 0, 0, 10, 1, 3, 0, 13, 1, 3, 0, 15, 8, 14, 0, 6, 1, 1, 1, 1, 1, 1, 1, 4, 7, 9, 6, 6, 3, 6, 4, 6, 9, 6, 9, 5, 8, 8, 11, 6, 9, 5, 7, 9, 9, 11, 9, 9, 1, 1, 0, 5, 0, 2, 7, 8, 6, 7, 7, 8, 8, 17, 7, 7, 11, 8, 8, 8, 9, 3, 4, 10, 7, 7, 8, 8, 12, 8, 7, 8, 5, 11, 5, 9, 4, 9, 9, 1, 1, 0, 2, 6, 6, 6, 6, 4, 6, 6, 3, 4, 5, 3, 3, 4, 4, 3, 7, 7, 3, 7, 3, 2, 2, 15, 2, 6, 8, 8, 10, 1, 2, 1, 3, 4, 1, 5, 11, 13, 0, 7, 0, 13, 0, 15, 0, 6, 8, 8, 8, 12, 12, 12, 14, 14, 14, 0, 12, 0, 12, 0, 12, 0, 16, 0, 16, 0, 16, 0, 18, 0, 18, 0, 18, 1, 2, 5, 7, 9, 2, 9, 0, 3, 0, 1, 0, 2, 0, 2, 7, 6, 8, 5, 5, 6, 10, 10, 10, 10, 2, 3, 1, 3, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 5, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 6, 4, 4, 4, 4, 4, 4, 6, 6, 6, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 6, 4, 4, 4, 4, 4, 4, 6, 6, 6, 4, 1, 1, 1, 1, 1, 1, 1, 1, 5, 4, 4, 2, 5, 3, 6, 4, 7, 6, 1, 2, 2, 3, 3, 11, 9, 7, 7, 1, 3, 1, 1, 2, 3, 4, 5, 1, 1, 2, 3, 3, 5, 4, 1, 1, 3, 6, 1, 1, 3, 3, 9, 7, 1, 5, 3, 6, 1, 3, 1, 1, 3, 6, 1, 1, 6, 4, 4, 4, 6 }; /* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state STATE-NUM when YYTABLE doesn't specify something else to do. Zero means the default is an error. */ static const yytype_uint16 yydefact[] = { 0, 0, 0, 2, 3, 1, 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, 157, 0, 162, 0, 0, 159, 0, 0, 0, 0, 5, 7, 6, 8, 9, 10, 11, 12, 13, 19, 18, 14, 15, 16, 17, 290, 297, 352, 54, 291, 292, 293, 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, 353, 0, 0, 294, 295, 296, 58, 57, 56, 55, 0, 0, 0, 60, 59, 0, 0, 0, 0, 127, 0, 0, 0, 228, 0, 0, 0, 0, 150, 0, 152, 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, 308, 0, 0, 0, 0, 0, 127, 0, 0, 0, 0, 0, 0, 127, 0, 226, 0, 0, 0, 0, 0, 0, 0, 342, 0, 0, 0, 0, 0, 149, 0, 0, 158, 0, 127, 0, 127, 0, 0, 0, 0, 301, 29, 352, 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, 297, 231, 230, 232, 0, 0, 0, 0, 0, 0, 0, 0, 0, 126, 0, 125, 0, 66, 146, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 143, 107, 0, 0, 0, 0, 297, 0, 0, 332, 333, 336, 337, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 319, 0, 320, 0, 0, 0, 0, 0, 326, 325, 0, 212, 212, 0, 0, 0, 0, 0, 0, 0, 0, 310, 309, 0, 0, 0, 0, 127, 127, 0, 0, 0, 0, 0, 0, 0, 172, 0, 127, 214, 0, 0, 0, 136, 0, 0, 0, 227, 0, 0, 0, 148, 0, 0, 0, 0, 0, 127, 0, 0, 0, 0, 160, 139, 0, 140, 0, 0, 0, 303, 0, 0, 68, 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, 349, 0, 348, 0, 0, 0, 0, 0, 0, 229, 0, 0, 0, 0, 54, 0, 0, 0, 0, 0, 122, 0, 0, 0, 0, 128, 61, 0, 246, 245, 244, 243, 239, 240, 242, 241, 234, 233, 235, 236, 237, 238, 108, 0, 0, 0, 0, 0, 0, 230, 327, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 321, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 210, 0, 0, 0, 86, 87, 0, 0, 0, 0, 0, 0, 0, 0, 312, 311, 0, 0, 0, 0, 0, 0, 0, 0, 0, 166, 0, 0, 0, 0, 137, 0, 0, 133, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 161, 0, 141, 142, 0, 299, 305, 0, 39, 0, 0, 0, 52, 0, 30, 31, 32, 33, 34, 248, 269, 249, 270, 250, 271, 251, 272, 252, 273, 253, 274, 254, 275, 255, 276, 256, 277, 268, 289, 257, 278, 0, 0, 259, 280, 260, 281, 261, 282, 262, 283, 263, 284, 264, 285, 0, 0, 0, 0, 0, 0, 0, 0, 357, 0, 0, 355, 356, 79, 0, 0, 0, 0, 0, 54, 0, 0, 0, 0, 0, 73, 0, 0, 0, 0, 300, 0, 0, 0, 0, 0, 22, 20, 0, 0, 0, 0, 334, 0, 0, 329, 235, 328, 338, 339, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 322, 0, 0, 0, 0, 0, 0, 0, 208, 213, 211, 0, 219, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 118, 120, 0, 0, 0, 0, 0, 0, 0, 0, 201, 0, 163, 0, 215, 220, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 138, 0, 0, 0, 0, 0, 0, 302, 0, 298, 0, 0, 0, 0, 0, 26, 0, 0, 0, 0, 0, 0, 0, 0, 0, 350, 0, 0, 0, 299, 64, 65, 0, 0, 0, 0, 0, 67, 69, 71, 0, 0, 346, 0, 77, 0, 0, 0, 0, 247, 21, 0, 0, 0, 0, 0, 331, 0, 0, 90, 90, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 323, 0, 94, 0, 0, 0, 0, 0, 0, 0, 217, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 206, 0, 0, 173, 202, 0, 0, 221, 0, 135, 134, 0, 27, 28, 0, 0, 0, 343, 0, 0, 0, 153, 0, 0, 145, 304, 144, 0, 0, 0, 0, 317, 0, 258, 279, 265, 286, 266, 287, 267, 288, 0, 358, 354, 307, 0, 54, 0, 0, 0, 0, 62, 0, 0, 0, 344, 0, 0, 0, 0, 23, 24, 0, 0, 92, 0, 330, 0, 0, 0, 0, 0, 95, 0, 0, 110, 111, 0, 0, 96, 116, 324, 0, 0, 0, 0, 88, 0, 216, 0, 0, 0, 0, 0, 0, 147, 0, 0, 0, 0, 127, 0, 183, 0, 185, 0, 187, 319, 0, 0, 0, 0, 167, 0, 0, 100, 101, 0, 0, 0, 0, 80, 0, 306, 0, 35, 0, 0, 0, 0, 0, 37, 0, 0, 0, 0, 74, 0, 0, 75, 0, 347, 129, 130, 131, 132, 0, 0, 335, 0, 91, 97, 98, 103, 0, 0, 112, 0, 0, 0, 218, 105, 0, 0, 209, 115, 93, 104, 113, 117, 0, 0, 0, 0, 316, 0, 315, 0, 0, 174, 0, 0, 175, 0, 0, 176, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 341, 0, 155, 154, 0, 0, 0, 40, 0, 0, 0, 318, 0, 0, 0, 351, 63, 70, 72, 0, 78, 0, 25, 0, 0, 0, 0, 0, 0, 0, 0, 106, 0, 84, 85, 127, 0, 121, 0, 0, 0, 0, 0, 0, 203, 0, 0, 127, 0, 124, 123, 0, 0, 0, 0, 81, 82, 0, 36, 0, 0, 0, 38, 53, 0, 345, 0, 222, 223, 224, 225, 109, 0, 0, 0, 0, 0, 314, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 168, 0, 0, 340, 156, 0, 0, 0, 0, 0, 76, 0, 0, 0, 0, 119, 0, 189, 0, 0, 191, 0, 0, 193, 0, 0, 0, 204, 0, 164, 0, 127, 102, 83, 0, 44, 0, 50, 0, 0, 0, 89, 114, 313, 177, 0, 0, 184, 178, 0, 0, 186, 179, 0, 0, 188, 0, 0, 0, 170, 0, 0, 0, 0, 0, 0, 0, 195, 0, 197, 0, 199, 205, 207, 169, 165, 0, 41, 0, 48, 0, 0, 0, 0, 180, 0, 0, 181, 0, 0, 182, 0, 0, 0, 42, 0, 0, 151, 0, 0, 0, 0, 0, 0, 0, 171, 0, 0, 0, 0, 0, 190, 0, 192, 0, 194, 0, 43, 45, 0, 46, 0, 99, 0, 0, 0, 0, 0, 51, 196, 198, 200, 47, 49 }; /* YYDEFGOTO[NTERM-NUM]. */ static const yytype_int16 yydefgoto[] = { -1, 2, 3, 60, 658, 61, 62, 398, 954, 960, 579, 744, 1083, 1209, 580, 1177, 1235, 581, 1211, 582, 583, 748, 127, 214, 63, 523, 993, 899, 467, 309, 280, 281, 66, 67, 68, 69, 70, 310, 719, 1146, 1192, 543, 1010, 1013, 1016, 1161, 1165, 1169, 1201, 1204, 1207, 715, 716, 814, 694, 520, 547, 72, 73, 74, 327, 130, 348, 173, 860, 861, 337, 329, 313, 198, 649, 777, 443, 444 }; /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing STATE-NUM. */ #define YYPACT_NINF -1014 static const yytype_int16 yypact[] = { 2725, 50, 78, 2801, -1014, -1014, 1281, 46, 33, -58, 21, 97, -105, -9, 55, 62, 65, 71, -32, 79, 130, 99, -48, 219, 248, 255, -8, 262, 418, 273, 198, 223, 242, 242, 240, 268, 318, 333, 341, 25, 253, 349, 399, 406, 411, 290, 310, 319, -2, 40, -1014, 326, -1014, 459, 339, -1014, 499, 503, 15, 19, -1014, -1014, -1014, -1014, -1014, -1014, -1014, -1014, -1014, -1014, -1014, -1014, -1014, -1014, -1014, -1014, 27, 340, 616, -1014, -1014, -1014, 59, 141, 176, 359, 362, 398, 408, 415, 449, 473, 478, 500, 508, 511, 565, 570, 574, 604, 614, 625, 633, 351, 373, 387, 390, -1014, 529, 421, -1014, -1014, -1014, -1014, -1014, -1014, -1014, 2254, 2254, 2254, -1014, -1014, 2254, 1886, 28, 545, 35, 2254, 550, 547, -1014, 602, 606, 2254, 617, -1014, 2254, -1014, 2254, 2187, 2254, 2254, 501, 2254, 2187, 2254, 2254, 512, 2187, 2254, 2254, 1459, 519, 2254, 518, 555, 556, 1329, 1329, 1329, 569, 573, 578, 579, 584, 591, 745, 242, 242, 242, 2254, 2254, -71, -1014, 63, 242, 596, 623, 642, 2057, 416, 1329, 1459, 640, 36, 650, -1014, 783, -1014, 670, 679, 683, 818, 2254, 2254, 2254, 692, 2254, 696, 756, 2254, 2254, -1014, 2254, 852, -1014, 889, -1014, 894, -1014, 770, 2254, 900, 767, -1014, -1014, -1014, 901, 2254, 2254, 2254, 2254, 2254, 2254, 2254, 2254, 2254, 2254, 2254, 2254, 2254, 2254, 2254, 2254, 2254, 2254, 2254, 2254, 2254, 2254, 2254, 2254, 2254, 2254, 2254, 2254, 2254, 2254, 2254, 2254, 2254, 2254, 2254, 2254, 2254, 2254, 2254, 2254, 2254, 2254, 588, 588, 588, 588, 2254, 903, 470, 776, 776, 776, 5032, 9, 2187, 4296, 167, 774, 906, 782, 778, -1014, 779, 2865, 1652, -1014, -1014, 2254, 2254, 2254, 2254, 2254, 2254, 2254, 2254, 2254, 2254, 2254, 2254, 2254, 2254, 2254, -1014, -1014, 1980, -114, 3542, 5053, -59, 781, 2187, -1014, -1014, 2499, -1014, 628, 5074, 5095, 2254, 5116, 631, 5137, 5158, 2254, 639, 5179, 5200, 1589, 1144, 2521, 910, -1014, 2254, 5221, 2254, 2254, 2254, -1014, -1014, 914, 915, 915, 2254, 2311, 2311, 2311, 2311, 2254, 791, 364, -1014, -1014, 3568, 3594, 242, 242, 35, 35, 452, 2254, 2254, 2254, 2057, 2057, 2254, 2865, 454, -1014, 917, 919, 2254, 921, -1014, 2254, 2254, 750, -1014, 2187, 2254, 2254, -1014, 5242, 5263, 5284, 839, 3620, -1014, 792, 2540, 5305, 4319, -1014, -1014, 944, -1014, 1054, 2254, 4342, 213, 2254, 11, -1014, 5326, 4365, 5347, 4388, 5368, 4411, 5389, 4434, 5410, 4457, 5431, 4480, 5452, 4503, 5473, 4526, 5494, 4549, 5515, 4572, 5536, 4595, 3646, 3672, 5557, 4618, 5578, 4641, 5599, 4664, 5620, 4687, 5641, 4710, 5662, 4733, 3698, 3724, 3750, 3776, 3802, 3828, 644, -60, -1014, 794, 800, 802, 2000, 798, 2254, -1014, 1459, 1459, 649, 314, 616, 2254, 931, 935, 13, 806, -1014, -84, 129, -12, 73, -1014, -1014, 2560, 1307, 1002, 763, 763, 630, 630, 630, 630, 251, 251, 776, 776, 776, 776, -1014, 7, 2187, 2254, 934, 2022, 2254, 776, -1014, 2254, 2187, 2187, 849, 936, 937, 5683, 938, 854, 941, 942, 5704, 859, 946, 948, 2187, -1014, 653, 1719, 2254, 5725, 951, 2628, 5746, 5767, 2254, 1459, 956, 955, 5788, 831, 6061, -1014, 833, 835, 836, 5809, 834, 242, 2254, 2254, -1014, -1014, 837, 838, 2254, 3854, 3880, 3906, 3516, 38, 242, 1177, 2254, 964, 2254, 5830, -1014, 4756, 4779, -1014, 676, 4802, 4825, 965, 966, 967, 840, 2254, 1492, 2254, 2254, -1014, 14, -1014, -1014, 4848, 48, -1014, 2900, -1014, 847, 850, 842, -1014, 976, -1014, -1014, -1014, -1014, -1014, -1014, -1014, -1014, -1014, -1014, -1014, -1014, -1014, -1014, -1014, -1014, -1014, -1014, -1014, -1014, -1014, -1014, -1014, -1014, -1014, -1014, -1014, 2254, 2254, -1014, -1014, -1014, -1014, -1014, -1014, -1014, -1014, -1014, -1014, -1014, -1014, 2254, 2254, 2254, 2254, 2254, 2254, 2254, 981, -1014, 2187, 588, -1014, -1014, -1014, 2254, 4871, 980, 991, 868, -1014, 91, 2254, 1000, 1001, 2283, -1014, 1003, 875, -2, 1005, -1014, 2187, 2187, 2187, 2187, 2254, -1014, 891, 588, -28, 3932, 242, -1014, 2187, 2928, 2579, 776, -1014, 2499, -1014, 963, 1459, 1459, 1006, 1459, 771, 1459, 1459, 1007, 971, 1459, 1459, 684, -1014, 2187, 2340, 1009, 879, 1011, 1016, 1018, 2119, -1014, -1014, 1020, -1014, 1025, 1027, 1028, 1030, 1031, 1032, 1023, 558, 3958, 3984, -1014, -1014, 2956, 242, 242, 242, 1034, 904, 913, -42, -1014, 560, -1014, 38, 6061, -1014, 2359, 908, 1035, 1042, 1004, 1043, 1044, 1459, 1459, 1459, 1047, 4010, -1014, 2598, 1683, 1050, 1051, 1053, 1052, -1014, 1055, -1014, 926, 2254, 2254, 1459, 925, -1014, 5851, 4894, 5872, 4917, 5893, 4940, 5914, 4963, 4986, -1014, 43, 933, 5935, 467, -1014, -1014, 98, 583, 939, 1061, 2378, -1014, -1014, -1014, -2, 2254, -1014, 691, -1014, 694, 701, 702, 708, 6061, -1014, 1063, 54, 2254, 57, 709, -1014, 2254, 932, 1017, 1017, 1459, 1066, 940, 943, 1069, 1070, 1459, 947, 1071, 1076, -1014, 713, -1014, 1079, 2254, 1459, 1459, 1459, 1083, 1082, -1014, 1459, 1459, 1459, 1459, 1459, 1459, 343, 2254, 2254, 2254, 952, 179, 331, 338, -1014, 1459, 2254, -1014, -1014, 2057, -15, -1014, 2187, -1014, -1014, 953, -1014, -1014, 1086, 1088, 1040, -1014, 2254, 2254, 2254, -1014, 1089, 1100, -1014, 213, -1014, 2254, 4036, 4062, 716, -1014, 2254, -1014, -1014, -1014, -1014, -1014, -1014, -1014, -1014, 954, -1014, -1014, -1014, 1459, 616, 2254, 1103, 1108, 13, -1014, 1124, 5009, -2, -1014, 1127, 1129, 1130, 1131, -1014, -1014, 588, 4088, -1014, 1008, 6061, 2254, 242, 1137, 1138, 1139, -1014, 2254, 2254, -1014, -1014, 1146, 2254, -1014, -1014, -1014, 1145, 4114, 1150, 1151, 1087, 2254, -1014, 1173, 1175, 1176, 1178, 1179, 1182, -1014, 2311, 2984, 5956, 2816, 35, 242, 1185, 242, 1186, 242, 1188, 315, 1046, 5977, 3012, 562, -1014, 720, 2254, -1014, -1014, 1459, 2844, 447, 5998, -1014, 1849, -1014, 171, 6061, 2254, 2254, 1459, 1057, 724, 6061, 1184, 1190, 1191, 2403, -1014, 1192, 1194, -1014, 1067, -1014, -1014, -1014, -1014, -1014, 1195, 2254, -1014, 3040, 377, -1014, -1014, -1014, 3068, 3096, -1014, 3124, 1193, 2254, -1014, -1014, 1156, 1198, 6061, -1014, -1014, -1014, -1014, -1014, 1068, 2422, 1199, 1075, -1014, 2254, -1014, 1078, 592, -1014, 1077, 599, -1014, 1080, 609, -1014, 1092, 1201, 1459, 1207, 1094, 2254, 1229, 3152, 1152, 2254, -1014, 2254, -1014, -1014, 2187, 2442, 1233, -1014, 2254, 4140, 4166, -1014, 1459, 2254, 1235, -1014, -1014, -1014, -1014, -2, -1014, 1153, -1014, 4192, 1236, 1237, 1239, 1240, 1241, 4218, 1114, -1014, 1459, -1014, -1014, 35, 2872, -1014, 2057, 38, 2057, 38, 2057, 38, -1014, 725, 1459, -1014, 3180, -1014, -1014, 2254, 3208, 3236, 729, -1014, -1014, 1115, 6061, 2254, 2254, 730, 6061, -1014, 1248, -1014, 2254, -1014, -1014, -1014, -1014, -1014, 1250, 2254, 733, 1117, 2254, -1014, 3264, 611, 186, 3292, 620, 194, 3320, 622, 229, 1459, 1251, 1196, 1622, 1121, 2461, -1014, -1014, 1254, 2254, 6019, 4244, 30, -1014, 4270, 1132, 3348, 1255, -1014, 3376, 1261, 2254, 1262, 1265, 2254, 1266, 1267, 2254, 1268, 1140, -1014, 2254, -1014, 38, -1014, -1014, -1014, 736, -1014, 2254, -1014, 1459, 2254, 1271, -1014, -1014, -1014, -1014, 1143, 3404, -1014, -1014, 1149, 3432, -1014, -1014, 1155, 3460, -1014, 1272, 2480, 307, 1880, 1276, 1183, 6040, 737, 3488, 1157, 38, 1283, 38, 1316, 38, 1318, -1014, -1014, -1014, -1014, 38, -1014, 588, -1014, 1187, 1320, 1322, 309, -1014, 1197, 332, -1014, 1203, 335, -1014, 1204, 337, 753, -1014, 1226, 1459, -1014, 1189, 1323, 38, 1324, 38, 1325, 38, -1014, 588, 1330, 588, 757, 1331, -1014, 386, -1014, 458, -1014, 474, -1014, -1014, 762, -1014, 1359, -1014, 1360, 1361, 1362, 588, 1363, -1014, -1014, -1014, -1014, -1014, -1014 }; /* YYPGOTO[NTERM-NUM]. */ static const yytype_int16 yypgoto[] = { -1014, -1014, -1014, -1014, 491, -1014, -1014, -1014, -1014, 249, -1014, -1014, -1014, -1014, -1014, -1014, -1014, -1014, -1014, -1014, -1014, -1014, -252, 24, -1014, 75, -1014, 576, 1370, 3, -345, -111, -1014, -1014, -1014, -1014, -1014, 1371, -1014, -1014, -1014, -1014, -1014, -1014, -1014, -1014, -1014, -1014, -1014, -1014, -1014, -673, -708, -1014, -1014, 1036, -1014, -1014, -1014, -1014, -6, -1014, -21, -1014, -1013, -93, -110, 22, 121, -629, 496, -1014, -258, 2 }; /* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If positive, shift that token. If negative, reduce the rule which number is the opposite. If zero, do what YYDEFACT says. If YYTABLE_NINF, syntax error. */ #define YYTABLE_NINF -5 static const yytype_int16 yytable[] = { 129, 152, 196, 445, 446, 447, 65, 834, 131, 536, 537, 172, 174, 656, 180, 573, 452, 647, 485, 776, 206, 737, 457, 486, 208, 1087, 138, 135, 712, 184, 128, 210, 274, 139, 713, 714, 1153, 147, 157, 278, 369, 158, 370, 159, 199, 1100, 836, 138, 338, 339, 352, 353, 442, 216, 651, 712, 4, 147, 328, 132, 891, 713, 714, 894, 336, 336, 336, 354, 363, 120, 121, 366, 628, 134, 489, 373, 212, 629, 5, 126, 217, 213, 133, 153, 103, 104, 105, 106, 336, 367, 107, 574, 575, 576, 577, 767, 391, 833, 393, 31, 32, 33, 34, 137, 786, 639, 148, 38, 712, 495, 41, 267, 268, 269, 713, 714, 270, 273, 275, 276, 453, 282, 140, 185, 942, 657, 653, 302, 834, 279, 304, 142, 305, 311, 314, 315, 197, 317, 311, 319, 320, 1179, 311, 323, 324, 882, 347, 331, 349, 738, 578, 648, 151, 207, 356, 120, 121, 209, 364, 136, 211, 312, 212, 186, 350, 351, 312, 213, 1154, 371, 312, 200, 657, 351, 456, 872, 120, 121, 352, 353, 495, 768, 769, 740, 352, 353, 141, 379, 380, 381, 218, 383, 219, 143, 386, 387, 145, 388, 142, 1225, 144, 355, 146, 641, 150, 395, 113, 114, 115, 116, 149, 654, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 545, 971, 712, 187, 448, 188, 143, 150, 713, 714, 712, 318, 311, 652, 154, 322, 713, 714, 220, 562, 221, 113, 114, 115, 116, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 312, 120, 121, 155, 458, 712, 352, 353, 491, 1033, 156, 713, 714, 222, 1034, 223, 499, 176, 742, 160, 177, 504, 931, 178, 932, 491, 311, 639, 165, 493, 513, 1135, 515, 516, 517, 166, 492, 534, 535, 1138, 522, 524, 524, 524, 524, 529, 349, 120, 121, 525, 525, 525, 525, 492, 312, 925, 926, 539, 540, 541, 267, 268, 542, 279, 279, 636, 637, 167, 549, 168, 169, 551, 552, 181, 1141, 311, 555, 556, 761, 170, 296, 297, 298, 712, 175, 712, 171, 299, 182, 713, 714, 713, 714, 183, 569, 168, 169, 572, 1106, 454, 1109, 189, 1112, 312, 834, 170, 785, 834, 712, 190, 834, 712, 179, 712, 713, 714, 191, 713, 714, 713, 714, 192, 1090, 526, 527, 528, 571, 193, 113, 114, 115, 116, 692, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 511, 297, 298, 194, 120, 121, 635, 299, 1190, 510, 1215, 640, 195, 644, 352, 353, 1017, 1027, 712, 201, 643, 352, 353, 161, 713, 714, 162, 202, 834, 163, 933, 164, 934, 1217, 203, 1174, 1219, 935, 1221, 936, 215, 642, 311, 660, 260, 635, 664, 352, 353, 665, 666, 668, 224, 834, 225, 226, 834, 227, 554, 834, 352, 353, 834, 531, 311, 204, 261, 666, 685, 205, 312, 1199, 703, 1202, 691, 1205, 875, 877, 667, 669, 262, 1208, 834, 263, 834, 717, 834, 1239, 704, 705, 712, 228, 312, 229, 708, 667, 713, 714, 264, 352, 353, 230, 720, 231, 722, 1228, 712, 1230, 232, 1232, 233, 277, 713, 714, 265, 284, 365, 733, 283, 735, 736, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 352, 353, 352, 353, 299, 793, 794, 234, 796, 235, 799, 800, 1007, 1028, 803, 804, 538, 876, 544, 442, 216, 741, 120, 121, 1240, 120, 121, 750, 751, 740, 450, 236, 212, 237, 659, 300, 238, 213, 239, 301, 1241, 752, 753, 754, 755, 756, 757, 758, 216, 303, 311, 103, 104, 105, 106, 762, 682, 107, 240, 316, 241, 976, 770, 844, 845, 846, 242, 788, 243, 244, 321, 245, 311, 311, 311, 311, 783, 330, 312, 103, 104, 105, 106, 332, 311, 107, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 312, 312, 312, 312, 299, 311, 352, 353, 352, 353, 352, 353, 312, 333, 334, 827, 828, 829, 113, 114, 115, 116, 823, 246, 835, 247, 1021, 340, 248, 901, 249, 341, 250, 312, 251, 907, 342, 343, 120, 121, 352, 353, 344, 1101, 914, 915, 916, 352, 353, 345, 919, 920, 921, 922, 923, 924, 1064, 352, 353, 352, 353, 357, 252, 1066, 253, 938, 858, 859, 352, 353, 352, 353, 254, 1068, 255, 1134, 346, 760, 294, 295, 296, 297, 298, 256, 1137, 257, 1140, 299, 358, 7, 8, 258, 495, 259, 496, 495, 883, 501, 368, 779, 780, 781, 782, 495, 626, 505, 627, 359, 893, 963, 372, 789, 896, 495, 741, 638, 374, 495, 878, 683, 463, 13, 14, 464, 16, 17, 465, 19, 466, 21, 913, 22, 806, 24, 25, 375, 27, 28, 29, 376, 495, 941, 726, 377, 927, 928, 929, 797, 495, 798, 805, 378, 937, 939, 382, 884, 940, 885, 495, 311, 886, 384, 45, 46, 47, 495, 495, 887, 888, 948, 949, 950, 495, 495, 889, 895, 385, 495, 955, 911, 958, 1024, 959, 961, 495, 389, 1022, 312, 1039, 1113, 1040, 1114, 1037, 495, 958, 1121, 1125, 958, 965, 1130, 1039, 958, 1176, 1196, 980, 964, 953, 290, 291, 292, 293, 294, 295, 296, 297, 298, 553, 1222, 979, 1223, 299, 958, 390, 1237, 984, 985, 1242, 392, 1243, 987, 394, 396, 397, 299, 399, 449, 459, 1008, 994, 1011, 460, 1014, 461, 126, 512, 462, 490, 1001, 518, 519, 530, 546, 1071, 548, 550, 1002, 560, 563, 630, 631, 279, 632, 634, 1210, 645, 1023, 646, 650, 661, 670, 671, 672, 674, 1031, 675, 676, 677, 1035, 1036, 679, 680, 1032, 681, 7, 8, 687, 943, 693, 695, 1116, 697, 1233, 698, 1236, 699, 700, 702, 721, 1049, 729, 730, 731, 732, 706, 707, 745, 1115, 747, 746, 749, 1055, 1248, 759, 764, 463, 13, 14, 464, 16, 17, 465, 19, 466, 21, 765, 22, 1062, 24, 25, 766, 27, 28, 29, 771, 772, 775, 784, 774, 778, 792, 795, 801, 1074, 808, 809, 810, 1078, 1142, 1079, 802, 811, 311, 812, 815, 822, 1084, 45, 46, 47, 816, 1088, 817, 818, 1175, 819, 820, 821, 830, 839, 831, 1105, 832, 1108, 838, 1111, 840, 842, 843, 847, 312, 841, 852, 853, 855, 857, 1104, 854, 1107, 856, 1110, 862, 279, 873, 7, 8, 880, 890, 897, 1118, 902, 898, 879, 905, 906, 909, 903, 1123, 1124, 904, 910, 567, 912, 908, 1127, 917, 918, 962, 930, 944, 945, 1129, 946, 951, 1132, 463, 13, 14, 464, 16, 17, 465, 19, 466, 21, 952, 22, 966, 24, 25, 967, 27, 28, 29, 961, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 1162, 947, 969, 1166, 299, 972, 1170, 973, 974, 975, 1173, 45, 46, 47, 978, 981, 982, 983, 1178, 75, 306, 1180, 988, 1080, 986, 79, 80, 81, 990, 991, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 995, 992, 996, 997, 1018, 998, 999, 1000, 307, 1041, 7, 8, 1009, 1012, 568, 1015, 1038, 1042, 1043, 1054, 1045, 1046, 1048, 1047, 1056, 1057, 1060, 1058, 1070, 31, 32, 33, 34, 35, 1061, 1072, 1065, 38, 1063, 1067, 41, 463, 13, 14, 464, 16, 17, 465, 19, 466, 21, 1069, 22, 1073, 24, 25, 1075, 27, 28, 29, 1082, 1077, 1089, 1093, 1094, 1091, 1095, 1096, 1097, 109, 110, 111, 112, 1099, 1122, 1126, 1128, 1131, 1143, 1144, 1147, 1149, 1158, 45, 46, 47, 117, 308, 1160, 1163, 1156, 119, 1164, 1167, 1168, 1171, 122, 1181, 892, 1188, 1172, 125, 1182, 1193, 509, 75, 76, 77, 1184, 78, 1200, 79, 80, 81, 1186, 1198, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 718, 103, 104, 105, 106, 1194, 1203, 107, 1206, 1212, 1213, 1214, 1226, 1227, 1229, 1231, 75, 306, 335, 1216, 1234, 1238, 79, 80, 81, 1218, 1220, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 1224, 1244, 1245, 1246, 1247, 1249, 900, 1150, 307, 64, 71, 521, 968, 0, 0, 108, 0, 0, 0, 0, 0, 109, 110, 111, 112, 113, 114, 115, 116, 31, 32, 33, 34, 35, 0, 0, 0, 38, 117, 118, 41, 0, 0, 119, 0, 120, 121, 0, 122, 0, 123, 0, 124, 125, 0, 126, 0, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 109, 110, 111, 112, 299, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 117, 325, 0, 0, 0, 119, 0, 0, 0, 0, 122, 0, 75, 306, 0, 125, 0, 326, 79, 80, 81, 0, 0, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 0, 0, 0, 0, 0, 0, 0, 0, 307, 0, 7, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 31, 32, 33, 34, 35, 0, 0, 0, 38, 0, 0, 41, 463, 13, 14, 464, 16, 17, 465, 19, 466, 21, 0, 22, 0, 24, 25, 0, 27, 28, 29, 0, 0, 0, 0, 0, 0, 0, 0, 0, 109, 110, 111, 112, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 45, 46, 47, 117, 325, 0, 0, 0, 119, 0, 0, 0, 0, 122, 0, 75, 306, 0, 125, 0, 326, 79, 80, 81, 0, 0, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 0, 0, 0, 0, 0, 0, 0, 734, 307, 0, 7, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 31, 32, 33, 34, 35, 468, 0, 0, 38, 0, 0, 41, 463, 13, 14, 464, 16, 17, 465, 19, 466, 21, 0, 22, 0, 24, 25, 0, 27, 28, 29, 0, 0, 0, 0, 0, 0, 0, 850, 0, 109, 110, 111, 112, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 45, 46, 47, 117, 308, 0, 0, 0, 119, 0, 0, 0, 0, 122, 0, 75, 306, 0, 125, 0, 508, 79, 80, 81, 0, 0, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 0, 0, 0, 0, 0, 0, 0, 1145, 307, 0, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 31, 32, 33, 34, 35, 0, 0, 0, 38, 0, 0, 41, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 851, 0, 0, 0, 0, 0, 0, 0, 109, 110, 111, 112, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 117, 308, 0, 0, 0, 119, 0, 0, 0, 0, 122, 0, 75, 266, 216, 125, 0, 684, 79, 80, 81, 0, 0, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 0, 103, 104, 105, 106, 75, 266, 107, 7, 8, 0, 79, 80, 81, 0, 0, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 0, 0, 463, 13, 14, 464, 16, 17, 465, 19, 466, 21, 0, 22, 0, 24, 25, 0, 27, 28, 29, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 109, 110, 111, 112, 0, 0, 0, 0, 0, 0, 0, 0, 45, 46, 47, 0, 0, 117, 118, 0, 0, 0, 119, 0, 0, 0, 0, 122, 0, 0, 0, 0, 125, 484, 1030, 0, 0, 109, 110, 111, 112, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 633, 117, 118, 0, 0, 0, 119, 0, 0, 0, 0, 122, 0, 1191, 271, 0, 125, 0, 272, 75, 266, 0, 0, 0, 0, 79, 80, 81, 0, 0, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 0, 0, 0, 75, 266, 0, 0, 0, 0, 79, 80, 81, 0, 0, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 109, 110, 111, 112, 299, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 117, 118, 0, 0, 0, 119, 0, 0, 0, 0, 122, 0, 0, 662, 0, 125, 0, 663, 109, 110, 111, 112, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 360, 361, 0, 813, 0, 119, 0, 0, 0, 0, 362, 0, 75, 306, 0, 125, 0, 171, 79, 80, 81, 0, 0, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 0, 0, 0, 0, 0, 0, 0, 0, 307, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 31, 32, 33, 34, 35, 0, 75, 266, 38, 0, 0, 41, 79, 80, 81, 0, 0, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 773, 0, 109, 110, 111, 112, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 117, 308, 0, 0, 0, 119, 75, 266, 216, 0, 122, 0, 79, 80, 81, 125, 0, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 807, 103, 104, 105, 106, 0, 0, 107, 0, 0, 0, 0, 109, 110, 111, 112, 0, 0, 0, 837, 0, 0, 0, 0, 0, 0, 0, 0, 0, 117, 118, 0, 0, 0, 119, 0, 0, 0, 881, 122, 0, 0, 0, 0, 125, 0, 0, 0, 0, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 1044, 0, 0, 0, 299, 0, 109, 110, 111, 112, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1059, 0, 0, 0, 117, 118, 0, 0, 0, 119, 0, 0, 0, 0, 122, 0, 0, 0, 0, 125, 1081, 0, 0, 0, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 1148, 0, 0, 299, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 1189, 0, 0, 299, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 493, 299, 0, 0, 0, 0, 0, 0, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 493, 0, 0, 0, 299, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 564, 0, 0, 0, 299, 0, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 655, 0, 0, 0, 299, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 791, 0, 0, 0, 299, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 849, 0, 0, 0, 299, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 494, 297, 298, 0, 0, 0, 0, 299, 0, 0, 0, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 511, 297, 298, 0, 0, 0, 0, 299, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, -4, 1, 0, 299, -4, 0, 0, 0, 0, 0, 0, 0, -4, -4, 0, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, -4, 0, 0, 0, 0, -4, -4, 688, -4, -4, -4, -4, -4, -4, -4, -4, -4, -4, 0, -4, -4, -4, -4, -4, -4, -4, -4, 0, -4, -4, -4, -4, -4, -4, 0, -4, -4, -4, -4, -4, -4, 0, 0, -4, -4, 6, 0, 0, 0, -4, -4, -4, -4, 7, 8, -4, 0, -4, 0, -4, -4, -4, -4, -4, -4, -4, -4, -4, -4, 0, 0, 0, 0, 0, 0, 0, 9, 0, 0, 0, 0, 10, 11, 0, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 0, 22, 23, 24, 25, 26, 27, 28, 29, 0, 30, 31, 32, 33, 34, 35, 0, 36, 37, 38, 39, 40, 41, 7, 8, 42, 43, 0, 0, 0, 0, 44, 45, 46, 47, 0, 0, 48, 0, 49, 0, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 0, 0, 0, 463, 13, 14, 464, 16, 17, 465, 19, 466, 21, 0, 22, 0, 24, 25, 0, 27, 28, 29, 0, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 0, 0, 45, 46, 47, 1005, 0, 1006, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 0, 0, 0, 0, 0, 1025, 0, 1026, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 0, 0, 0, 0, 0, 1102, 0, 1103, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 0, 0, 0, 0, 0, 0, 0, 743, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 0, 0, 0, 0, 0, 0, 0, 790, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 0, 0, 0, 0, 0, 0, 0, 826, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 0, 0, 0, 0, 0, 0, 0, 1003, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 0, 0, 0, 0, 0, 0, 0, 1020, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 0, 0, 0, 0, 0, 0, 0, 1050, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 0, 0, 0, 0, 0, 0, 0, 1051, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 0, 0, 0, 0, 0, 0, 0, 1052, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 0, 0, 0, 0, 0, 0, 0, 1053, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 0, 0, 0, 0, 0, 0, 0, 1076, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 0, 0, 0, 0, 0, 0, 0, 1117, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 0, 0, 0, 0, 0, 0, 0, 1119, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 0, 0, 0, 0, 0, 0, 0, 1120, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 0, 0, 0, 0, 0, 0, 0, 1133, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 0, 0, 0, 0, 0, 0, 0, 1136, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 0, 0, 0, 0, 0, 0, 0, 1139, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 0, 0, 0, 0, 0, 0, 0, 1157, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 0, 0, 0, 0, 0, 0, 0, 1159, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 0, 0, 0, 0, 0, 0, 0, 1183, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 0, 0, 0, 0, 0, 0, 0, 1185, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 0, 0, 0, 0, 0, 0, 0, 1187, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 0, 0, 0, 0, 0, 0, 0, 1197, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 451, 0, 0, 0, 0, 532, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 0, 0, 0, 0, 0, 487, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 0, 0, 0, 0, 0, 532, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 0, 0, 0, 0, 0, 533, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 0, 0, 0, 0, 0, 561, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 0, 0, 0, 0, 0, 606, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 0, 0, 0, 0, 0, 607, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 0, 0, 0, 0, 0, 620, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 0, 0, 0, 0, 0, 621, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 0, 0, 0, 0, 0, 622, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 0, 0, 0, 0, 0, 623, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 0, 0, 0, 0, 0, 624, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 0, 0, 0, 0, 0, 625, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 0, 0, 0, 0, 0, 709, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 0, 0, 0, 0, 0, 710, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 0, 0, 0, 0, 0, 711, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 0, 0, 0, 0, 0, 787, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 0, 0, 0, 0, 0, 824, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 0, 0, 0, 0, 0, 825, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 0, 0, 0, 0, 0, 848, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 0, 0, 0, 0, 0, 956, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 0, 0, 0, 0, 0, 957, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 0, 0, 0, 0, 0, 977, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 0, 0, 0, 0, 0, 989, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 0, 0, 0, 0, 0, 1085, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 0, 0, 0, 0, 0, 1086, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 0, 0, 0, 0, 0, 1092, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 0, 0, 0, 0, 0, 1098, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 0, 0, 0, 0, 0, 1152, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 0, 0, 0, 0, 0, 1155, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 0, 0, 455, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 0, 0, 566, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 0, 0, 570, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 0, 0, 585, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 0, 0, 587, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 0, 0, 589, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 0, 0, 591, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 0, 0, 593, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 0, 0, 595, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 0, 0, 597, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 0, 0, 599, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 0, 0, 601, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 0, 0, 603, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 0, 0, 605, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 0, 0, 609, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 0, 0, 611, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 0, 0, 613, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 0, 0, 615, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 0, 0, 617, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 0, 0, 619, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 0, 0, 724, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 0, 0, 725, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 0, 0, 727, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 0, 0, 728, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 0, 0, 739, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 0, 0, 763, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 0, 0, 864, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 0, 0, 866, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 0, 0, 868, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 0, 0, 870, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 0, 0, 871, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 0, 0, 970, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 451, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 488, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 497, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 498, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 500, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 502, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 503, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 506, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 507, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 514, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 557, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 558, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 559, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 565, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 584, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 586, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 588, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 590, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 592, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 594, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 596, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 598, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 600, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 602, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 604, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 608, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 610, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 612, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 614, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 616, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 618, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 673, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 678, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 686, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 689, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 690, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 696, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 701, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 723, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 863, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 865, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 867, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 869, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 874, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 1004, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 1019, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 1029, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 1151, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299, 0, 1195, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 0, 0, 0, 0, 299 }; static const yytype_int16 yycheck[] = { 6, 49, 4, 261, 262, 263, 3, 715, 6, 354, 355, 32, 33, 6, 35, 4, 7, 4, 132, 648, 5, 7, 274, 137, 5, 1038, 131, 6, 70, 4, 6, 4, 4, 138, 76, 77, 6, 69, 46, 4, 4, 49, 6, 51, 4, 1058, 719, 131, 158, 159, 121, 122, 4, 5, 138, 70, 6, 69, 151, 13, 6, 76, 77, 6, 157, 158, 159, 138, 179, 128, 129, 181, 132, 131, 133, 186, 135, 137, 0, 138, 78, 140, 49, 131, 36, 37, 38, 39, 181, 182, 42, 80, 81, 82, 83, 4, 207, 139, 209, 64, 65, 66, 67, 6, 132, 7, 138, 72, 70, 137, 75, 117, 118, 119, 76, 77, 122, 123, 90, 91, 111, 127, 131, 98, 139, 118, 138, 133, 836, 126, 136, 69, 138, 139, 140, 141, 138, 143, 144, 145, 146, 1154, 148, 149, 150, 774, 167, 153, 169, 135, 139, 138, 53, 138, 175, 128, 129, 138, 179, 138, 133, 139, 135, 138, 170, 171, 144, 140, 138, 133, 148, 131, 118, 179, 7, 132, 128, 129, 121, 122, 137, 90, 91, 135, 121, 122, 131, 193, 194, 195, 131, 197, 133, 131, 200, 201, 131, 203, 69, 1212, 138, 138, 131, 455, 131, 211, 108, 109, 110, 111, 131, 138, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 365, 884, 70, 4, 264, 6, 131, 131, 76, 77, 70, 144, 272, 138, 49, 148, 76, 77, 131, 384, 133, 108, 109, 110, 111, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 272, 128, 129, 49, 274, 70, 121, 122, 308, 132, 49, 76, 77, 131, 137, 133, 316, 43, 570, 51, 46, 321, 137, 49, 139, 325, 326, 7, 49, 8, 330, 139, 332, 333, 334, 131, 308, 352, 353, 139, 340, 341, 342, 343, 344, 345, 361, 128, 129, 341, 342, 343, 344, 325, 326, 6, 7, 357, 358, 359, 360, 361, 362, 354, 355, 452, 453, 138, 368, 121, 122, 371, 372, 49, 139, 375, 376, 377, 630, 131, 123, 124, 125, 70, 138, 70, 138, 130, 49, 76, 77, 76, 77, 46, 394, 121, 122, 397, 1065, 272, 1067, 46, 1069, 375, 1106, 131, 658, 1109, 70, 4, 1112, 70, 138, 70, 76, 77, 4, 76, 77, 76, 77, 4, 1045, 342, 343, 344, 396, 131, 108, 109, 110, 111, 519, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 131, 128, 129, 450, 130, 139, 326, 139, 135, 131, 457, 121, 122, 139, 8, 70, 131, 456, 121, 122, 43, 76, 77, 46, 6, 1174, 49, 137, 51, 139, 139, 133, 1146, 139, 137, 139, 139, 138, 455, 486, 487, 131, 489, 490, 121, 122, 493, 494, 495, 131, 1199, 133, 131, 1202, 133, 375, 1205, 121, 122, 1208, 137, 508, 4, 131, 511, 512, 4, 486, 1182, 531, 1184, 518, 1186, 766, 767, 494, 495, 131, 1192, 1228, 131, 1230, 544, 1232, 139, 532, 533, 70, 131, 508, 133, 538, 511, 76, 77, 7, 121, 122, 131, 546, 133, 548, 1216, 70, 1218, 131, 1220, 133, 4, 76, 77, 131, 6, 138, 561, 6, 563, 564, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 121, 122, 121, 122, 130, 671, 672, 131, 674, 133, 676, 677, 930, 139, 680, 681, 137, 7, 137, 4, 5, 570, 128, 129, 139, 128, 129, 606, 607, 135, 133, 131, 135, 133, 486, 6, 131, 140, 133, 6, 139, 620, 621, 622, 623, 624, 625, 626, 5, 5, 629, 36, 37, 38, 39, 634, 508, 42, 131, 131, 133, 892, 641, 729, 730, 731, 131, 661, 133, 131, 131, 133, 651, 652, 653, 654, 655, 131, 629, 36, 37, 38, 39, 138, 663, 42, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 651, 652, 653, 654, 130, 684, 121, 122, 121, 122, 121, 122, 663, 131, 131, 709, 710, 711, 108, 109, 110, 111, 137, 131, 137, 133, 137, 131, 131, 795, 133, 131, 131, 684, 133, 801, 131, 131, 128, 129, 121, 122, 131, 1061, 810, 811, 812, 121, 122, 131, 816, 817, 818, 819, 820, 821, 137, 121, 122, 121, 122, 138, 131, 137, 133, 831, 745, 746, 121, 122, 121, 122, 131, 137, 133, 137, 4, 629, 121, 122, 123, 124, 125, 131, 137, 133, 137, 130, 138, 12, 13, 131, 137, 133, 139, 137, 775, 139, 131, 651, 652, 653, 654, 137, 133, 139, 135, 138, 787, 875, 133, 663, 791, 137, 763, 139, 6, 137, 767, 139, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 809, 54, 684, 56, 57, 138, 59, 60, 61, 133, 137, 835, 139, 133, 823, 824, 825, 49, 137, 51, 139, 6, 831, 832, 135, 137, 835, 139, 137, 838, 139, 138, 85, 86, 87, 137, 137, 139, 139, 848, 849, 850, 137, 137, 139, 139, 93, 137, 857, 139, 137, 947, 139, 862, 137, 6, 139, 838, 137, 137, 139, 139, 958, 137, 137, 139, 139, 137, 877, 139, 137, 137, 139, 139, 898, 876, 855, 117, 118, 119, 120, 121, 122, 123, 124, 125, 139, 137, 897, 139, 130, 137, 6, 139, 903, 904, 137, 6, 139, 908, 133, 4, 138, 130, 6, 5, 135, 931, 917, 933, 7, 935, 133, 138, 7, 139, 138, 926, 7, 7, 132, 7, 1018, 7, 6, 926, 90, 138, 137, 132, 930, 132, 137, 1194, 6, 944, 4, 134, 7, 93, 7, 7, 7, 952, 93, 7, 7, 956, 957, 93, 7, 952, 7, 12, 13, 7, 838, 4, 6, 1073, 132, 1222, 132, 1224, 132, 132, 135, 6, 977, 7, 7, 7, 135, 139, 139, 131, 1072, 138, 131, 6, 989, 1242, 4, 6, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 6, 54, 1005, 56, 57, 134, 59, 60, 61, 6, 6, 133, 118, 7, 6, 49, 7, 7, 1021, 7, 138, 7, 1025, 1113, 1027, 51, 7, 1030, 7, 6, 4, 1034, 85, 86, 87, 7, 1039, 7, 7, 1147, 7, 7, 7, 6, 6, 138, 1064, 131, 1066, 138, 1068, 6, 6, 6, 4, 1030, 49, 4, 4, 4, 131, 1064, 6, 1066, 6, 1068, 138, 1061, 132, 12, 13, 7, 6, 138, 1077, 6, 56, 135, 6, 6, 6, 138, 1085, 1086, 138, 6, 139, 5, 138, 1092, 4, 6, 135, 138, 138, 6, 1099, 6, 6, 1102, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 7, 54, 6, 56, 57, 4, 59, 60, 61, 1122, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 1134, 89, 6, 1137, 130, 6, 1140, 6, 6, 6, 1144, 85, 86, 87, 134, 6, 6, 6, 1152, 3, 4, 1155, 5, 1030, 6, 9, 10, 11, 6, 6, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 6, 93, 6, 6, 137, 6, 6, 4, 43, 4, 12, 13, 6, 6, 139, 6, 138, 6, 6, 5, 7, 6, 6, 135, 47, 6, 6, 138, 6, 64, 65, 66, 67, 68, 138, 7, 138, 72, 139, 138, 75, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 138, 54, 138, 56, 57, 6, 59, 60, 61, 6, 88, 6, 6, 6, 91, 6, 6, 6, 104, 105, 106, 107, 138, 138, 6, 5, 139, 6, 62, 138, 6, 6, 85, 86, 87, 121, 122, 6, 6, 137, 126, 6, 6, 6, 6, 131, 5, 786, 6, 139, 136, 138, 6, 139, 3, 4, 5, 138, 7, 6, 9, 10, 11, 138, 137, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 139, 36, 37, 38, 39, 138, 6, 42, 6, 138, 6, 5, 139, 6, 6, 6, 3, 4, 5, 138, 6, 6, 9, 10, 11, 138, 138, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 138, 6, 6, 6, 6, 6, 794, 1122, 43, 3, 3, 339, 880, -1, -1, 98, -1, -1, -1, -1, -1, 104, 105, 106, 107, 108, 109, 110, 111, 64, 65, 66, 67, 68, -1, -1, -1, 72, 121, 122, 75, -1, -1, 126, -1, 128, 129, -1, 131, -1, 133, -1, 135, 136, -1, 138, -1, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 104, 105, 106, 107, 130, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 121, 122, -1, -1, -1, 126, -1, -1, -1, -1, 131, -1, 3, 4, -1, 136, -1, 138, 9, 10, 11, -1, -1, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, -1, -1, -1, -1, -1, -1, -1, -1, 43, -1, 12, 13, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 64, 65, 66, 67, 68, -1, -1, -1, 72, -1, -1, 75, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, -1, 54, -1, 56, 57, -1, 59, 60, 61, -1, -1, -1, -1, -1, -1, -1, -1, -1, 104, 105, 106, 107, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 85, 86, 87, 121, 122, -1, -1, -1, 126, -1, -1, -1, -1, 131, -1, 3, 4, -1, 136, -1, 138, 9, 10, 11, -1, -1, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, -1, -1, -1, -1, -1, -1, -1, 139, 43, -1, 12, 13, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 64, 65, 66, 67, 68, 6, -1, -1, 72, -1, -1, 75, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, -1, 54, -1, 56, 57, -1, 59, 60, 61, -1, -1, -1, -1, -1, -1, -1, 8, -1, 104, 105, 106, 107, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 85, 86, 87, 121, 122, -1, -1, -1, 126, -1, -1, -1, -1, 131, -1, 3, 4, -1, 136, -1, 138, 9, 10, 11, -1, -1, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, -1, -1, -1, -1, -1, -1, -1, 139, 43, -1, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, 64, 65, 66, 67, 68, -1, -1, -1, 72, -1, -1, 75, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, 132, -1, -1, -1, -1, -1, -1, -1, 104, 105, 106, 107, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 121, 122, -1, -1, -1, 126, -1, -1, -1, -1, 131, -1, 3, 4, 5, 136, -1, 138, 9, 10, 11, -1, -1, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, -1, 36, 37, 38, 39, 3, 4, 42, 12, 13, -1, 9, 10, 11, -1, -1, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, -1, -1, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, -1, 54, -1, 56, 57, -1, 59, 60, 61, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 104, 105, 106, 107, -1, -1, -1, -1, -1, -1, -1, -1, 85, 86, 87, -1, -1, 121, 122, -1, -1, -1, 126, -1, -1, -1, -1, 131, -1, -1, -1, -1, 136, 6, 138, -1, -1, 104, 105, 106, 107, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 6, 121, 122, -1, -1, -1, 126, -1, -1, -1, -1, 131, -1, 139, 134, -1, 136, -1, 138, 3, 4, -1, -1, -1, -1, 9, 10, 11, -1, -1, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, -1, -1, -1, 3, 4, -1, -1, -1, -1, 9, 10, 11, -1, -1, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 104, 105, 106, 107, 130, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 121, 122, -1, -1, -1, 126, -1, -1, -1, -1, 131, -1, -1, 134, -1, 136, -1, 138, 104, 105, 106, 107, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 121, 122, -1, 62, -1, 126, -1, -1, -1, -1, 131, -1, 3, 4, -1, 136, -1, 138, 9, 10, 11, -1, -1, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, -1, -1, -1, -1, -1, -1, -1, -1, 43, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, 64, 65, 66, 67, 68, -1, 3, 4, 72, -1, -1, 75, 9, 10, 11, -1, -1, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 6, -1, 104, 105, 106, 107, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 121, 122, -1, -1, -1, 126, 3, 4, 5, -1, 131, -1, 9, 10, 11, 136, -1, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 6, 36, 37, 38, 39, -1, -1, 42, -1, -1, -1, -1, 104, 105, 106, 107, -1, -1, -1, 6, -1, -1, -1, -1, -1, -1, -1, -1, -1, 121, 122, -1, -1, -1, 126, -1, -1, -1, 6, 131, -1, -1, -1, -1, 136, -1, -1, -1, -1, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 6, -1, -1, -1, 130, -1, 104, 105, 106, 107, -1, -1, -1, -1, -1, -1, -1, -1, -1, 6, -1, -1, -1, 121, 122, -1, -1, -1, 126, -1, -1, -1, -1, 131, -1, -1, -1, -1, 136, 6, -1, -1, -1, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, 6, -1, -1, 130, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, 6, -1, -1, 130, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, 8, 130, -1, -1, -1, -1, -1, -1, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 8, -1, -1, -1, 130, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 8, -1, -1, -1, 130, -1, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 8, -1, -1, -1, 130, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 8, -1, -1, -1, 130, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 8, -1, -1, -1, 130, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, -1, -1, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, 0, 1, -1, 130, 4, -1, -1, -1, -1, -1, -1, -1, 12, 13, -1, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, 35, -1, -1, -1, -1, 40, 41, 139, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, -1, 54, 55, 56, 57, 58, 59, 60, 61, -1, 63, 64, 65, 66, 67, 68, -1, 70, 71, 72, 73, 74, 75, -1, -1, 78, 79, 4, -1, -1, -1, 84, 85, 86, 87, 12, 13, 90, -1, 92, -1, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, -1, -1, -1, -1, -1, -1, -1, 35, -1, -1, -1, -1, 40, 41, -1, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, -1, 54, 55, 56, 57, 58, 59, 60, 61, -1, 63, 64, 65, 66, 67, 68, -1, 70, 71, 72, 73, 74, 75, 12, 13, 78, 79, -1, -1, -1, -1, 84, 85, 86, 87, -1, -1, 90, -1, 92, -1, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, -1, -1, -1, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, -1, 54, -1, 56, 57, -1, 59, 60, 61, -1, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, -1, -1, 85, 86, 87, 137, -1, 139, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, -1, -1, -1, -1, -1, 137, -1, 139, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, -1, -1, -1, -1, -1, 137, -1, 139, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, -1, -1, -1, -1, -1, -1, -1, 139, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, -1, -1, -1, -1, -1, -1, -1, 139, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, -1, -1, -1, -1, -1, -1, -1, 139, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, -1, -1, -1, -1, -1, -1, -1, 139, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, -1, -1, -1, -1, -1, -1, -1, 139, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, -1, -1, -1, -1, -1, -1, -1, 139, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, -1, -1, -1, -1, -1, -1, -1, 139, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, -1, -1, -1, -1, -1, -1, -1, 139, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, -1, -1, -1, -1, -1, -1, -1, 139, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, -1, -1, -1, -1, -1, -1, -1, 139, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, -1, -1, -1, -1, -1, -1, -1, 139, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, -1, -1, -1, -1, -1, -1, -1, 139, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, -1, -1, -1, -1, -1, -1, -1, 139, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, -1, -1, -1, -1, -1, -1, -1, 139, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, -1, -1, -1, -1, -1, -1, -1, 139, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, -1, -1, -1, -1, -1, -1, -1, 139, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, -1, -1, -1, -1, -1, -1, -1, 139, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, -1, -1, -1, -1, -1, -1, -1, 139, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, -1, -1, -1, -1, -1, -1, -1, 139, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, -1, -1, -1, -1, -1, -1, -1, 139, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, -1, -1, -1, -1, -1, -1, -1, 139, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, -1, -1, -1, -1, -1, -1, -1, 139, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, 132, -1, -1, -1, -1, 137, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, -1, -1, -1, -1, -1, 137, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, -1, -1, -1, -1, -1, 137, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, -1, -1, -1, -1, -1, 137, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, -1, -1, -1, -1, -1, 137, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, -1, -1, -1, -1, -1, 137, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, -1, -1, -1, -1, -1, 137, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, -1, -1, -1, -1, -1, 137, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, -1, -1, -1, -1, -1, 137, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, -1, -1, -1, -1, -1, 137, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, -1, -1, -1, -1, -1, 137, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, -1, -1, -1, -1, -1, 137, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, -1, -1, -1, -1, -1, 137, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, -1, -1, -1, -1, -1, 137, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, -1, -1, -1, -1, -1, 137, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, -1, -1, -1, -1, -1, 137, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, -1, -1, -1, -1, -1, 137, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, -1, -1, -1, -1, -1, 137, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, -1, -1, -1, -1, -1, 137, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, -1, -1, -1, -1, -1, 137, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, -1, -1, -1, -1, -1, 137, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, -1, -1, -1, -1, -1, 137, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, -1, -1, -1, -1, -1, 137, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, -1, -1, -1, -1, -1, 137, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, -1, -1, -1, -1, -1, 137, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, -1, -1, -1, -1, -1, 137, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, -1, -1, -1, -1, -1, 137, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, -1, -1, -1, -1, -1, 137, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, -1, -1, -1, -1, -1, 137, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, -1, -1, -1, -1, -1, 137, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, -1, -1, 134, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, -1, -1, 134, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, -1, -1, 134, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, -1, -1, 134, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, -1, -1, 134, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, -1, -1, 134, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, -1, -1, 134, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, -1, -1, 134, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, -1, -1, 134, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, -1, -1, 134, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, -1, -1, 134, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, -1, -1, 134, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, -1, -1, 134, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, -1, -1, 134, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, -1, -1, 134, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, -1, -1, 134, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, -1, -1, 134, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, -1, -1, 134, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, -1, -1, 134, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, -1, -1, 134, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, -1, -1, 134, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, -1, -1, 134, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, -1, -1, 134, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, -1, -1, 134, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, -1, -1, 134, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, -1, -1, 134, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, -1, -1, 134, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, -1, -1, 134, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, -1, -1, 134, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, -1, -1, 134, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, -1, -1, 134, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, -1, -1, 134, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, 132, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, 132, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, 132, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, 132, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, 132, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, 132, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, 132, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, 132, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, 132, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, 132, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, 132, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, 132, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, 132, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, 132, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, 132, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, 132, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, 132, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, 132, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, 132, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, 132, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, 132, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, 132, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, 132, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, 132, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, 132, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, 132, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, 132, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, 132, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, 132, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, 132, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, 132, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, 132, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, 132, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, 132, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, 132, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, 132, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, 132, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, 132, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, 132, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, 132, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, 132, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, 132, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, 132, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, 132, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, 132, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, 132, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, 132, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, 132, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130, -1, 132, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, -1, -1, -1, -1, 130 }; /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing symbol of state STATE-NUM. */ static const yytype_uint8 yystos[] = { 0, 1, 142, 143, 6, 0, 4, 12, 13, 35, 40, 41, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 54, 55, 56, 57, 58, 59, 60, 61, 63, 64, 65, 66, 67, 68, 70, 71, 72, 73, 74, 75, 78, 79, 84, 85, 86, 87, 90, 92, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 144, 146, 147, 165, 169, 170, 173, 174, 175, 176, 177, 178, 198, 199, 200, 3, 4, 5, 7, 9, 10, 11, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 36, 37, 38, 39, 42, 98, 104, 105, 106, 107, 108, 109, 110, 111, 121, 122, 126, 128, 129, 131, 133, 135, 136, 138, 163, 164, 201, 202, 214, 13, 49, 131, 6, 138, 6, 131, 138, 131, 131, 69, 131, 138, 131, 131, 69, 138, 131, 131, 53, 49, 131, 49, 49, 49, 46, 49, 51, 51, 43, 46, 49, 51, 49, 131, 138, 121, 122, 131, 138, 203, 204, 203, 138, 43, 46, 49, 138, 203, 49, 49, 46, 4, 98, 138, 4, 6, 46, 4, 4, 4, 131, 131, 131, 4, 138, 210, 4, 131, 131, 6, 133, 4, 4, 5, 138, 5, 138, 4, 133, 135, 140, 164, 138, 5, 214, 131, 133, 131, 133, 131, 133, 131, 133, 131, 133, 131, 133, 131, 133, 131, 133, 131, 133, 131, 133, 131, 133, 131, 133, 131, 133, 131, 133, 131, 133, 131, 133, 131, 133, 131, 133, 131, 133, 131, 133, 131, 133, 131, 131, 131, 131, 7, 131, 4, 201, 201, 201, 201, 134, 138, 201, 4, 90, 91, 4, 4, 170, 171, 172, 201, 6, 6, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 130, 6, 6, 201, 5, 201, 201, 4, 43, 122, 170, 178, 201, 208, 209, 201, 201, 131, 201, 209, 201, 201, 131, 209, 201, 201, 122, 138, 201, 206, 208, 131, 201, 138, 131, 131, 5, 206, 207, 207, 207, 131, 131, 131, 131, 131, 131, 4, 203, 203, 203, 201, 201, 121, 122, 138, 138, 203, 138, 138, 138, 121, 122, 131, 172, 203, 138, 207, 206, 131, 4, 6, 133, 133, 172, 6, 138, 133, 133, 6, 201, 201, 201, 135, 201, 138, 93, 201, 201, 201, 6, 6, 172, 6, 172, 133, 201, 4, 138, 148, 6, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 4, 213, 214, 213, 213, 213, 201, 5, 133, 132, 7, 111, 209, 134, 7, 163, 164, 135, 7, 133, 139, 43, 46, 49, 51, 169, 6, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 6, 132, 137, 137, 132, 133, 138, 201, 208, 8, 123, 137, 139, 132, 132, 201, 132, 139, 132, 132, 201, 139, 132, 132, 138, 139, 209, 123, 7, 201, 132, 201, 201, 201, 7, 7, 196, 196, 201, 166, 201, 214, 166, 166, 166, 201, 132, 137, 137, 137, 203, 203, 171, 171, 137, 201, 201, 201, 201, 182, 137, 172, 7, 197, 7, 201, 6, 201, 201, 139, 209, 201, 201, 132, 132, 132, 90, 137, 172, 138, 8, 132, 134, 139, 139, 201, 134, 164, 201, 4, 80, 81, 82, 83, 139, 151, 155, 158, 160, 161, 132, 134, 132, 134, 132, 134, 132, 134, 132, 134, 132, 134, 132, 134, 132, 134, 132, 134, 132, 134, 132, 134, 137, 137, 132, 134, 132, 134, 132, 134, 132, 134, 132, 134, 132, 134, 137, 137, 137, 137, 137, 137, 133, 135, 132, 137, 137, 132, 132, 6, 137, 201, 206, 206, 139, 7, 135, 163, 164, 214, 201, 6, 4, 4, 138, 211, 134, 138, 138, 138, 138, 8, 6, 118, 145, 209, 201, 7, 134, 138, 201, 201, 201, 208, 201, 208, 93, 7, 7, 132, 7, 93, 7, 7, 132, 93, 7, 7, 209, 139, 138, 201, 132, 7, 139, 132, 132, 201, 206, 4, 195, 6, 132, 132, 132, 132, 132, 132, 135, 203, 201, 201, 139, 139, 201, 137, 137, 137, 70, 76, 77, 192, 193, 203, 139, 179, 201, 6, 201, 132, 134, 134, 139, 134, 134, 7, 7, 7, 135, 201, 139, 201, 201, 7, 135, 134, 135, 164, 213, 139, 152, 131, 131, 138, 162, 6, 201, 201, 201, 201, 201, 201, 201, 201, 201, 4, 209, 213, 201, 134, 6, 6, 134, 4, 90, 91, 201, 6, 6, 6, 7, 133, 210, 212, 6, 209, 209, 209, 209, 201, 118, 213, 132, 137, 203, 209, 139, 8, 49, 206, 206, 7, 206, 49, 51, 206, 206, 7, 51, 206, 206, 139, 209, 6, 7, 138, 7, 7, 7, 62, 194, 6, 7, 7, 7, 7, 7, 7, 4, 137, 137, 137, 139, 203, 203, 203, 6, 138, 131, 139, 193, 137, 192, 6, 138, 6, 6, 49, 6, 6, 206, 206, 206, 4, 137, 8, 8, 132, 4, 4, 6, 4, 6, 131, 201, 201, 205, 206, 138, 132, 134, 132, 134, 132, 134, 132, 134, 134, 132, 132, 132, 163, 7, 163, 164, 135, 7, 6, 210, 201, 137, 139, 139, 139, 139, 139, 6, 6, 145, 201, 6, 139, 201, 138, 56, 168, 168, 206, 6, 138, 138, 6, 6, 206, 138, 6, 6, 139, 5, 201, 206, 206, 206, 4, 6, 206, 206, 206, 206, 206, 206, 6, 7, 201, 201, 201, 138, 137, 139, 137, 139, 137, 139, 201, 206, 201, 201, 203, 139, 209, 138, 6, 6, 89, 201, 201, 201, 6, 7, 164, 149, 201, 137, 137, 137, 139, 150, 201, 135, 206, 214, 201, 6, 4, 211, 6, 134, 210, 6, 6, 6, 6, 213, 137, 134, 201, 203, 6, 6, 6, 201, 201, 6, 201, 5, 137, 6, 6, 93, 167, 201, 6, 6, 6, 6, 6, 4, 201, 214, 139, 132, 137, 139, 171, 203, 6, 183, 203, 6, 184, 203, 6, 185, 139, 137, 132, 139, 137, 139, 201, 206, 137, 139, 8, 139, 132, 138, 201, 214, 132, 137, 201, 201, 206, 138, 137, 139, 4, 6, 6, 6, 7, 6, 135, 6, 201, 139, 139, 139, 139, 5, 201, 47, 6, 138, 6, 6, 138, 201, 139, 137, 138, 137, 138, 137, 138, 6, 206, 7, 138, 201, 6, 139, 88, 201, 201, 209, 6, 6, 153, 201, 137, 137, 205, 201, 6, 210, 91, 137, 6, 6, 6, 6, 6, 137, 138, 205, 171, 137, 139, 201, 203, 192, 201, 203, 192, 201, 203, 192, 137, 139, 206, 172, 139, 201, 139, 139, 139, 138, 201, 201, 139, 6, 201, 5, 201, 139, 139, 201, 139, 137, 139, 139, 137, 139, 139, 137, 139, 206, 6, 62, 139, 180, 138, 6, 6, 150, 132, 137, 6, 138, 137, 137, 139, 6, 139, 6, 186, 201, 6, 6, 187, 201, 6, 6, 188, 201, 6, 139, 201, 192, 172, 139, 156, 201, 205, 201, 5, 138, 139, 138, 139, 138, 139, 6, 6, 139, 139, 181, 6, 138, 132, 139, 139, 137, 192, 6, 189, 192, 6, 190, 192, 6, 191, 192, 154, 213, 159, 138, 6, 5, 139, 138, 139, 138, 139, 138, 139, 137, 139, 138, 205, 139, 6, 192, 6, 192, 6, 192, 213, 6, 157, 213, 139, 6, 139, 139, 139, 137, 139, 6, 6, 6, 6, 213, 6 }; #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 /* Like YYERROR except do call yyerror. This remains here temporarily to ease the transition to the new meaning of YYERROR, for GCC. Once GCC version 2 has supplanted version 1, this can go. */ #define YYFAIL goto yyerrlab #define YYRECOVERING() (!!yyerrstatus) #define YYBACKUP(Token, Value) \ do \ if (yychar == YYEMPTY && yylen == 1) \ { \ yychar = (Token); \ yylval = (Value); \ yytoken = YYTRANSLATE (yychar); \ YYPOPSTACK (1); \ goto yybackup; \ } \ else \ { \ yyerror (YY_("syntax error: cannot back up")); \ YYERROR; \ } \ while (YYID (0)) #define YYTERROR 1 #define YYERRCODE 256 /* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N]. If N is 0, then set CURRENT to the empty location which ends the previous symbol: RHS[0] (always defined). */ #define YYRHSLOC(Rhs, K) ((Rhs)[K]) #ifndef YYLLOC_DEFAULT # define YYLLOC_DEFAULT(Current, Rhs, N) \ do \ if (YYID (N)) \ { \ (Current).first_line = YYRHSLOC (Rhs, 1).first_line; \ (Current).first_column = YYRHSLOC (Rhs, 1).first_column; \ (Current).last_line = YYRHSLOC (Rhs, N).last_line; \ (Current).last_column = YYRHSLOC (Rhs, N).last_column; \ } \ else \ { \ (Current).first_line = (Current).last_line = \ YYRHSLOC (Rhs, 0).last_line; \ (Current).first_column = (Current).last_column = \ YYRHSLOC (Rhs, 0).last_column; \ } \ while (YYID (0)) #endif /* YY_LOCATION_PRINT -- Print the location on the stream. This macro was not mandated originally: define only if we know we won't break user code: when these are the locations we know. */ #ifndef YY_LOCATION_PRINT # if defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL # define YY_LOCATION_PRINT(File, Loc) \ fprintf (File, "%d.%d-%d.%d", \ (Loc).first_line, (Loc).first_column, \ (Loc).last_line, (Loc).last_column) # else # define YY_LOCATION_PRINT(File, Loc) ((void) 0) # endif #endif /* YYLEX -- calling `yylex' with the right arguments. */ #ifdef YYLEX_PARAM # define YYLEX yylex (YYLEX_PARAM) #else # define YYLEX yylex () #endif /* 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 (YYID (0)) # 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 (YYID (0)) /*--------------------------------. | Print this symbol on YYOUTPUT. | `--------------------------------*/ /*ARGSUSED*/ #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) static void yy_symbol_value_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep) #else static void yy_symbol_value_print (yyoutput, yytype, yyvaluep) FILE *yyoutput; int yytype; YYSTYPE const * const yyvaluep; #endif { if (!yyvaluep) return; # ifdef YYPRINT if (yytype < YYNTOKENS) YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep); # else YYUSE (yyoutput); # endif switch (yytype) { default: break; } } /*--------------------------------. | Print this symbol on YYOUTPUT. | `--------------------------------*/ #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) static void yy_symbol_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep) #else static void yy_symbol_print (yyoutput, yytype, yyvaluep) FILE *yyoutput; int yytype; YYSTYPE const * const yyvaluep; #endif { if (yytype < YYNTOKENS) YYFPRINTF (yyoutput, "token %s (", yytname[yytype]); else YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]); yy_symbol_value_print (yyoutput, yytype, yyvaluep); YYFPRINTF (yyoutput, ")"); } /*------------------------------------------------------------------. | yy_stack_print -- Print the state stack from its BOTTOM up to its | | TOP (included). | `------------------------------------------------------------------*/ #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) static void yy_stack_print (yytype_int16 *bottom, yytype_int16 *top) #else static void yy_stack_print (bottom, top) yytype_int16 *bottom; yytype_int16 *top; #endif { YYFPRINTF (stderr, "Stack now"); for (; bottom <= top; ++bottom) YYFPRINTF (stderr, " %d", *bottom); YYFPRINTF (stderr, "\n"); } # define YY_STACK_PRINT(Bottom, Top) \ do { \ if (yydebug) \ yy_stack_print ((Bottom), (Top)); \ } while (YYID (0)) /*------------------------------------------------. | Report that the YYRULE is going to be reduced. | `------------------------------------------------*/ #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) static void yy_reduce_print (YYSTYPE *yyvsp, int yyrule) #else static void yy_reduce_print (yyvsp, yyrule) YYSTYPE *yyvsp; int yyrule; #endif { int yynrhs = yyr2[yyrule]; int yyi; unsigned long int yylno = yyrline[yyrule]; YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu):\n", yyrule - 1, yylno); /* The symbols being reduced. */ for (yyi = 0; yyi < yynrhs; yyi++) { fprintf (stderr, " $%d = ", yyi + 1); yy_symbol_print (stderr, yyrhs[yyprhs[yyrule] + yyi], &(yyvsp[(yyi + 1) - (yynrhs)]) ); fprintf (stderr, "\n"); } } # define YY_REDUCE_PRINT(Rule) \ do { \ if (yydebug) \ yy_reduce_print (yyvsp, Rule); \ } while (YYID (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. */ #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) static YYSIZE_T yystrlen (const char *yystr) #else static YYSIZE_T yystrlen (yystr) const char *yystr; #endif { 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. */ #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) static char * yystpcpy (char *yydest, const char *yysrc) #else static char * yystpcpy (yydest, yysrc) char *yydest; const char *yysrc; #endif { 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; /* Fall through. */ 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 yystpcpy (yyres, yystr) - yyres; } # endif /* Copy into YYRESULT an error message about the unexpected token YYCHAR while in state YYSTATE. Return the number of bytes copied, including the terminating null byte. If YYRESULT is null, do not copy anything; just return the number of bytes that would be copied. As a special case, return 0 if an ordinary "syntax error" message will do. Return YYSIZE_MAXIMUM if overflow occurs during size calculation. */ static YYSIZE_T yysyntax_error (char *yyresult, int yystate, int yychar) { int yyn = yypact[yystate]; if (! (YYPACT_NINF < yyn && yyn <= YYLAST)) return 0; else { int yytype = YYTRANSLATE (yychar); YYSIZE_T yysize0 = yytnamerr (0, yytname[yytype]); YYSIZE_T yysize = yysize0; YYSIZE_T yysize1; int yysize_overflow = 0; enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 }; char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM]; int yyx; # if 0 /* This is so xgettext sees the translatable formats that are constructed on the fly. */ YY_("syntax error, unexpected %s"); YY_("syntax error, unexpected %s, expecting %s"); YY_("syntax error, unexpected %s, expecting %s or %s"); YY_("syntax error, unexpected %s, expecting %s or %s or %s"); YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s"); # endif char *yyfmt; char const *yyf; static char const yyunexpected[] = "syntax error, unexpected %s"; static char const yyexpecting[] = ", expecting %s"; static char const yyor[] = " or %s"; char yyformat[sizeof yyunexpected + sizeof yyexpecting - 1 + ((YYERROR_VERBOSE_ARGS_MAXIMUM - 2) * (sizeof yyor - 1))]; char const *yyprefix = yyexpecting; /* Start YYX at -YYN if negative to avoid negative indexes in YYCHECK. */ 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 yycount = 1; yyarg[0] = yytname[yytype]; yyfmt = yystpcpy (yyformat, yyunexpected); for (yyx = yyxbegin; yyx < yyxend; ++yyx) if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR) { if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM) { yycount = 1; yysize = yysize0; yyformat[sizeof yyunexpected - 1] = '\0'; break; } yyarg[yycount++] = yytname[yyx]; yysize1 = yysize + yytnamerr (0, yytname[yyx]); yysize_overflow |= (yysize1 < yysize); yysize = yysize1; yyfmt = yystpcpy (yyfmt, yyprefix); yyprefix = yyor; } yyf = YY_(yyformat); yysize1 = yysize + yystrlen (yyf); yysize_overflow |= (yysize1 < yysize); yysize = yysize1; if (yysize_overflow) return YYSIZE_MAXIMUM; if (yyresult) { /* 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 = yyresult; int yyi = 0; while ((*yyp = *yyf) != '\0') { if (*yyp == '%' && yyf[1] == 's' && yyi < yycount) { yyp += yytnamerr (yyp, yyarg[yyi++]); yyf += 2; } else { yyp++; yyf++; } } } return yysize; } } #endif /* YYERROR_VERBOSE */ /*-----------------------------------------------. | Release the memory associated to this symbol. | `-----------------------------------------------*/ /*ARGSUSED*/ #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) static void yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep) #else static void yydestruct (yymsg, yytype, yyvaluep) const char *yymsg; int yytype; YYSTYPE *yyvaluep; #endif { YYUSE (yyvaluep); if (!yymsg) yymsg = "Deleting"; YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp); switch (yytype) { default: break; } } /* Prevent warnings from -Wmissing-prototypes. */ #ifdef YYPARSE_PARAM #if defined __STDC__ || defined __cplusplus int yyparse (void *YYPARSE_PARAM); #else int yyparse (); #endif #else /* ! YYPARSE_PARAM */ #if defined __STDC__ || defined __cplusplus int yyparse (void); #else int yyparse (); #endif #endif /* ! YYPARSE_PARAM */ /* The look-ahead symbol. */ int yychar; /* The semantic value of the look-ahead symbol. */ YYSTYPE yylval; /* Number of syntax errors so far. */ int yynerrs; /*----------. | yyparse. | `----------*/ #ifdef YYPARSE_PARAM #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) int yyparse (void *YYPARSE_PARAM) #else int yyparse (YYPARSE_PARAM) void *YYPARSE_PARAM; #endif #else /* ! YYPARSE_PARAM */ #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) int yyparse (void) #else int yyparse () #endif #endif { int yystate; int yyn; int yyresult; /* Number of tokens to shift before error messages enabled. */ int yyerrstatus; /* Look-ahead token as an internal (translated) token number. */ int yytoken = 0; #if YYERROR_VERBOSE /* Buffer for error messages, and its allocated size. */ char yymsgbuf[128]; char *yymsg = yymsgbuf; YYSIZE_T yymsg_alloc = sizeof yymsgbuf; #endif /* Three stacks and their tools: `yyss': related to states, `yyvs': related to semantic values, `yyls': related to locations. Refer to the stacks thru separate pointers, to allow yyoverflow to reallocate them elsewhere. */ /* The state stack. */ yytype_int16 yyssa[YYINITDEPTH]; yytype_int16 *yyss = yyssa; yytype_int16 *yyssp; /* The semantic value stack. */ YYSTYPE yyvsa[YYINITDEPTH]; YYSTYPE *yyvs = yyvsa; YYSTYPE *yyvsp; #define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N)) YYSIZE_T yystacksize = YYINITDEPTH; /* The variables used to return semantic value and location from the action routines. */ YYSTYPE yyval; /* The number of symbols on the RHS of the reduced rule. Keep to zero when no symbol should be popped. */ int yylen = 0; YYDPRINTF ((stderr, "Starting parse\n")); yystate = 0; yyerrstatus = 0; yynerrs = 0; yychar = YYEMPTY; /* Cause a token to be read. */ /* Initialize stack pointers. Waste one element of value and location stack so that they stay on the same level as the state stack. The wasted elements are never initialized. */ yyssp = yyss; yyvsp = yyvs; 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++; yysetstate: *yyssp = yystate; if (yyss + yystacksize - 1 <= yyssp) { /* Get the current used size of the three stacks, in elements. */ YYSIZE_T yysize = yyssp - yyss + 1; #ifdef 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 /* no yyoverflow */ # ifndef YYSTACK_RELOCATE goto yyexhaustedlab; # else /* 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); YYSTACK_RELOCATE (yyvs); # undef YYSTACK_RELOCATE if (yyss1 != yyssa) YYSTACK_FREE (yyss1); } # endif #endif /* no yyoverflow */ yyssp = yyss + yysize - 1; yyvsp = yyvs + yysize - 1; YYDPRINTF ((stderr, "Stack size increased to %lu\n", (unsigned long int) yystacksize)); if (yyss + yystacksize - 1 <= yyssp) YYABORT; } YYDPRINTF ((stderr, "Entering state %d\n", yystate)); goto yybackup; /*-----------. | yybackup. | `-----------*/ yybackup: /* Do appropriate processing given the current state. Read a look-ahead token if we need one and don't already have one. */ /* First try to decide what to do without reference to look-ahead token. */ yyn = yypact[yystate]; if (yyn == YYPACT_NINF) goto yydefault; /* Not known => get a look-ahead token if don't already have one. */ /* YYCHAR is either YYEMPTY or YYEOF or a valid look-ahead 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 (yyn == 0 || yyn == YYTABLE_NINF) goto yyerrlab; yyn = -yyn; goto yyreduce; } if (yyn == YYFINAL) YYACCEPT; /* Count tokens shifted since error; after three, turn off error status. */ if (yyerrstatus) yyerrstatus--; /* Shift the look-ahead token. */ YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc); /* Discard the shifted token unless it is eof. */ if (yychar != YYEOF) yychar = YYEMPTY; yystate = yyn; *++yyvsp = yylval; 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 3: #line 141 "Gmsh.y" { yyerrok; return 1; ;} break; case 6: #line 152 "Gmsh.y" { return 1; ;} break; case 7: #line 153 "Gmsh.y" { return 1; ;} break; case 8: #line 154 "Gmsh.y" { return 1; ;} break; case 9: #line 155 "Gmsh.y" { return 1; ;} break; case 10: #line 156 "Gmsh.y" { List_Delete((yyvsp[(1) - (1)].l)); return 1; ;} break; case 11: #line 157 "Gmsh.y" { return 1; ;} break; case 12: #line 158 "Gmsh.y" { return 1; ;} break; case 13: #line 159 "Gmsh.y" { return 1; ;} break; case 14: #line 160 "Gmsh.y" { List_Delete((yyvsp[(1) - (1)].l)); return 1; ;} break; case 15: #line 161 "Gmsh.y" { return 1; ;} break; case 16: #line 162 "Gmsh.y" { return 1; ;} break; case 17: #line 163 "Gmsh.y" { return 1; ;} break; case 18: #line 164 "Gmsh.y" { return 1; ;} break; case 19: #line 165 "Gmsh.y" { return 1; ;} break; case 20: #line 170 "Gmsh.y" { (yyval.c) = (char*)"w"; ;} break; case 21: #line 174 "Gmsh.y" { (yyval.c) = (char*)"a"; ;} break; case 22: #line 181 "Gmsh.y" { Msg::Direct((yyvsp[(3) - (5)].c)); Free((yyvsp[(3) - (5)].c)); ;} break; case 23: #line 186 "Gmsh.y" { char tmpstring[1024]; FixRelativePath((yyvsp[(6) - (7)].c), tmpstring); FILE *fp = fopen(tmpstring, (yyvsp[(5) - (7)].c)); if(!fp){ yymsg(0, "Unable to open file '%s'", tmpstring); } else{ fprintf(fp, "%s\n", (yyvsp[(3) - (7)].c)); fclose(fp); } Free((yyvsp[(3) - (7)].c)); Free((yyvsp[(6) - (7)].c)); ;} break; case 24: #line 201 "Gmsh.y" { char tmpstring[1024]; int i = PrintListOfDouble((yyvsp[(3) - (7)].c), (yyvsp[(5) - (7)].l), tmpstring); if(i < 0) yymsg(0, "Too few arguments in Printf"); else if(i > 0) yymsg(0, "%d extra argument%s in Printf", i, (i > 1) ? "s" : ""); else Msg::Direct(tmpstring); Free((yyvsp[(3) - (7)].c)); List_Delete((yyvsp[(5) - (7)].l)); ;} break; case 25: #line 214 "Gmsh.y" { char tmpstring[1024]; int i = PrintListOfDouble((yyvsp[(3) - (9)].c), (yyvsp[(5) - (9)].l), tmpstring); if(i < 0) yymsg(0, "Too few arguments in Printf"); else if(i > 0) yymsg(0, "%d extra argument%s in Printf", i, (i > 1) ? "s" : ""); else{ char tmpstring2[1024]; FixRelativePath((yyvsp[(8) - (9)].c), tmpstring2); FILE *fp = fopen(tmpstring2, (yyvsp[(7) - (9)].c)); if(!fp){ yymsg(0, "Unable to open file '%s'", tmpstring2); } else{ fprintf(fp, "%s\n", tmpstring); fclose(fp); } } Free((yyvsp[(3) - (9)].c)); Free((yyvsp[(8) - (9)].c)); List_Delete((yyvsp[(5) - (9)].l)); ;} break; case 26: #line 243 "Gmsh.y" { #if !defined(HAVE_NO_POST) if(!strcmp((yyvsp[(1) - (6)].c), "View") && ViewData->finalize()){ ViewData->setName((yyvsp[(2) - (6)].c)); ViewData->setFileName(gmsh_yyname); ViewData->setFileIndex(gmsh_yyviewindex++); new PView(ViewData); } else delete ViewData; #endif Free((yyvsp[(1) - (6)].c)); Free((yyvsp[(2) - (6)].c)); ;} break; case 27: #line 257 "Gmsh.y" { #if !defined(HAVE_NO_POST) if(!strcmp((yyvsp[(2) - (6)].c), "View")){ int index = (int)(yyvsp[(4) - (6)].d); if(index >= 0 && index < (int)PView::list.size()) new PView(PView::list[index], false); } #endif Free((yyvsp[(2) - (6)].c)); ;} break; case 28: #line 268 "Gmsh.y" { #if !defined(HAVE_NO_POST) if(!strcmp((yyvsp[(2) - (6)].c), "View")){ int index = (int)(yyvsp[(4) - (6)].d); if(index >= 0 && index < (int)PView::list.size()) new PView(PView::list[index], true); } #endif Free((yyvsp[(2) - (6)].c)); ;} break; case 29: #line 282 "Gmsh.y" { #if !defined(HAVE_NO_POST) ViewData = new PViewDataList(true); #endif ;} break; case 35: #line 296 "Gmsh.y" { ViewCoord.push_back((yyvsp[(1) - (1)].d)); ;} break; case 36: #line 298 "Gmsh.y" { ViewCoord.push_back((yyvsp[(3) - (3)].d)); ;} break; case 37: #line 303 "Gmsh.y" { if(ViewValueList) List_Add(ViewValueList, &(yyvsp[(1) - (1)].d)); ;} break; case 38: #line 305 "Gmsh.y" { if(ViewValueList) List_Add(ViewValueList, &(yyvsp[(3) - (3)].d)); ;} break; case 39: #line 310 "Gmsh.y" { #if !defined(HAVE_NO_POST) if(!strcmp((yyvsp[(1) - (1)].c), "SP")){ ViewValueList = ViewData->SP; ViewNumList = &ViewData->NbSP; } else if(!strcmp((yyvsp[(1) - (1)].c), "VP")){ ViewValueList = ViewData->VP; ViewNumList = &ViewData->NbVP; } else if(!strcmp((yyvsp[(1) - (1)].c), "TP")){ ViewValueList = ViewData->TP; ViewNumList = &ViewData->NbTP; } else if(!strcmp((yyvsp[(1) - (1)].c), "SL")){ ViewValueList = ViewData->SL; ViewNumList = &ViewData->NbSL; } else if(!strcmp((yyvsp[(1) - (1)].c), "VL")){ ViewValueList = ViewData->VL; ViewNumList = &ViewData->NbVL; } else if(!strcmp((yyvsp[(1) - (1)].c), "TL")){ ViewValueList = ViewData->TL; ViewNumList = &ViewData->NbTL; } else if(!strcmp((yyvsp[(1) - (1)].c), "ST")){ ViewValueList = ViewData->ST; ViewNumList = &ViewData->NbST; } else if(!strcmp((yyvsp[(1) - (1)].c), "VT")){ ViewValueList = ViewData->VT; ViewNumList = &ViewData->NbVT; } else if(!strcmp((yyvsp[(1) - (1)].c), "TT")){ ViewValueList = ViewData->TT; ViewNumList = &ViewData->NbTT; } else if(!strcmp((yyvsp[(1) - (1)].c), "SQ")){ ViewValueList = ViewData->SQ; ViewNumList = &ViewData->NbSQ; } else if(!strcmp((yyvsp[(1) - (1)].c), "VQ")){ ViewValueList = ViewData->VQ; ViewNumList = &ViewData->NbVQ; } else if(!strcmp((yyvsp[(1) - (1)].c), "TQ")){ ViewValueList = ViewData->TQ; ViewNumList = &ViewData->NbTQ; } else if(!strcmp((yyvsp[(1) - (1)].c), "SS")){ ViewValueList = ViewData->SS; ViewNumList = &ViewData->NbSS; } else if(!strcmp((yyvsp[(1) - (1)].c), "VS")){ ViewValueList = ViewData->VS; ViewNumList = &ViewData->NbVS; } else if(!strcmp((yyvsp[(1) - (1)].c), "TS")){ ViewValueList = ViewData->TS; ViewNumList = &ViewData->NbTS; } else if(!strcmp((yyvsp[(1) - (1)].c), "SH")){ ViewValueList = ViewData->SH; ViewNumList = &ViewData->NbSH; } else if(!strcmp((yyvsp[(1) - (1)].c), "VH")){ ViewValueList = ViewData->VH; ViewNumList = &ViewData->NbVH; } else if(!strcmp((yyvsp[(1) - (1)].c), "TH")){ ViewValueList = ViewData->TH; ViewNumList = &ViewData->NbTH; } else if(!strcmp((yyvsp[(1) - (1)].c), "SI")){ ViewValueList = ViewData->SI; ViewNumList = &ViewData->NbSI; } else if(!strcmp((yyvsp[(1) - (1)].c), "VI")){ ViewValueList = ViewData->VI; ViewNumList = &ViewData->NbVI; } else if(!strcmp((yyvsp[(1) - (1)].c), "TI")){ ViewValueList = ViewData->TI; ViewNumList = &ViewData->NbTI; } else if(!strcmp((yyvsp[(1) - (1)].c), "SY")){ ViewValueList = ViewData->SY; ViewNumList = &ViewData->NbSY; } else if(!strcmp((yyvsp[(1) - (1)].c), "VY")){ ViewValueList = ViewData->VY; ViewNumList = &ViewData->NbVY; } else if(!strcmp((yyvsp[(1) - (1)].c), "TY")){ ViewValueList = ViewData->TY; ViewNumList = &ViewData->NbTY; } else if(!strcmp((yyvsp[(1) - (1)].c), "SL2")){ ViewValueList = ViewData->SL2; ViewNumList = &ViewData->NbSL2; } else if(!strcmp((yyvsp[(1) - (1)].c), "VL2")){ ViewValueList = ViewData->VL2; ViewNumList = &ViewData->NbVL2; } else if(!strcmp((yyvsp[(1) - (1)].c), "TL2")){ ViewValueList = ViewData->TL2; ViewNumList = &ViewData->NbTL2; } else if(!strcmp((yyvsp[(1) - (1)].c), "ST2")){ ViewValueList = ViewData->ST2; ViewNumList = &ViewData->NbST2; } else if(!strcmp((yyvsp[(1) - (1)].c), "VT2")){ ViewValueList = ViewData->VT2; ViewNumList = &ViewData->NbVT2; } else if(!strcmp((yyvsp[(1) - (1)].c), "TT2")){ ViewValueList = ViewData->TT2; ViewNumList = &ViewData->NbTT2; } else if(!strcmp((yyvsp[(1) - (1)].c), "SQ2")){ ViewValueList = ViewData->SQ2; ViewNumList = &ViewData->NbSQ2; } else if(!strcmp((yyvsp[(1) - (1)].c), "VQ2")){ ViewValueList = ViewData->VQ2; ViewNumList = &ViewData->NbVQ2; } else if(!strcmp((yyvsp[(1) - (1)].c), "TQ2")){ ViewValueList = ViewData->TQ2; ViewNumList = &ViewData->NbTQ2; } else if(!strcmp((yyvsp[(1) - (1)].c), "SS2")){ ViewValueList = ViewData->SS2; ViewNumList = &ViewData->NbSS2; } else if(!strcmp((yyvsp[(1) - (1)].c), "VS2")){ ViewValueList = ViewData->VS2; ViewNumList = &ViewData->NbVS2; } else if(!strcmp((yyvsp[(1) - (1)].c), "TS2")){ ViewValueList = ViewData->TS2; ViewNumList = &ViewData->NbTS2; } else if(!strcmp((yyvsp[(1) - (1)].c), "SH2")){ ViewValueList = ViewData->SH2; ViewNumList = &ViewData->NbSH2; } else if(!strcmp((yyvsp[(1) - (1)].c), "VH2")){ ViewValueList = ViewData->VH2; ViewNumList = &ViewData->NbVH2; } else if(!strcmp((yyvsp[(1) - (1)].c), "TH2")){ ViewValueList = ViewData->TH2; ViewNumList = &ViewData->NbTH2; } else if(!strcmp((yyvsp[(1) - (1)].c), "SI2")){ ViewValueList = ViewData->SI2; ViewNumList = &ViewData->NbSI2; } else if(!strcmp((yyvsp[(1) - (1)].c), "VI2")){ ViewValueList = ViewData->VI2; ViewNumList = &ViewData->NbVI2; } else if(!strcmp((yyvsp[(1) - (1)].c), "TI2")){ ViewValueList = ViewData->TI2; ViewNumList = &ViewData->NbTI2; } else if(!strcmp((yyvsp[(1) - (1)].c), "SY2")){ ViewValueList = ViewData->SY2; ViewNumList = &ViewData->NbSY2; } else if(!strcmp((yyvsp[(1) - (1)].c), "VY2")){ ViewValueList = ViewData->VY2; ViewNumList = &ViewData->NbVY2; } else if(!strcmp((yyvsp[(1) - (1)].c), "TY2")){ ViewValueList = ViewData->TY2; ViewNumList = &ViewData->NbTY2; } else{ yymsg(0, "Unknown element type '%s'", (yyvsp[(1) - (1)].c)); ViewValueList = 0; ViewNumList = 0; } #endif ViewCoord.clear(); Free((yyvsp[(1) - (1)].c)); ;} break; case 40: #line 456 "Gmsh.y" { #if !defined(HAVE_NO_POST) if(ViewValueList){ for(int i = 0; i < 3; i++) for(int j = 0; j < ViewCoord.size() / 3; j++) List_Add(ViewValueList, &ViewCoord[3 * j + i]); } #endif ;} break; case 41: #line 466 "Gmsh.y" { #if !defined(HAVE_NO_POST) if(ViewValueList) (*ViewNumList)++; #endif ;} break; case 42: #line 475 "Gmsh.y" { #if !defined(HAVE_NO_POST) for(int i = 0; i < (int)strlen((yyvsp[(1) - (1)].c))+1; i++) List_Add(ViewData->T2C, &(yyvsp[(1) - (1)].c)[i]); #endif Free((yyvsp[(1) - (1)].c)); ;} break; case 43: #line 482 "Gmsh.y" { #if !defined(HAVE_NO_POST) for(int i = 0; i < (int)strlen((yyvsp[(3) - (3)].c))+1; i++) List_Add(ViewData->T2C, &(yyvsp[(3) - (3)].c)[i]); #endif Free((yyvsp[(3) - (3)].c)); ;} break; case 44: #line 492 "Gmsh.y" { #if !defined(HAVE_NO_POST) List_Add(ViewData->T2D, &(yyvsp[(3) - (8)].d)); List_Add(ViewData->T2D, &(yyvsp[(5) - (8)].d)); List_Add(ViewData->T2D, &(yyvsp[(7) - (8)].d)); double d = List_Nbr(ViewData->T2C); List_Add(ViewData->T2D, &d); #endif ;} break; case 45: #line 502 "Gmsh.y" { #if !defined(HAVE_NO_POST) ViewData->NbT2++; #endif ;} break; case 46: #line 511 "Gmsh.y" { #if !defined(HAVE_NO_POST) for(int i = 0; i < (int)strlen((yyvsp[(1) - (1)].c))+1; i++) List_Add(ViewData->T3C, &(yyvsp[(1) - (1)].c)[i]); #endif Free((yyvsp[(1) - (1)].c)); ;} break; case 47: #line 518 "Gmsh.y" { #if !defined(HAVE_NO_POST) for(int i = 0; i < (int)strlen((yyvsp[(3) - (3)].c))+1; i++) List_Add(ViewData->T3C, &(yyvsp[(3) - (3)].c)[i]); #endif Free((yyvsp[(3) - (3)].c)); ;} break; case 48: #line 528 "Gmsh.y" { #if !defined(HAVE_NO_POST) List_Add(ViewData->T3D, &(yyvsp[(3) - (10)].d)); List_Add(ViewData->T3D, &(yyvsp[(5) - (10)].d)); List_Add(ViewData->T3D, &(yyvsp[(7) - (10)].d)); List_Add(ViewData->T3D, &(yyvsp[(9) - (10)].d)); double d = List_Nbr(ViewData->T3C); List_Add(ViewData->T3D, &d); #endif ;} break; case 49: #line 537 "Gmsh.y" { #if !defined(HAVE_NO_POST) ViewData->NbT3++; #endif ;} break; case 50: #line 547 "Gmsh.y" { #if !defined(HAVE_NO_POST) int type = (ViewData->NbSL || ViewData->NbVL) ? 1 : (ViewData->NbST || ViewData->NbVT) ? 3 : (ViewData->NbSQ || ViewData->NbVQ) ? 4 : (ViewData->NbSS || ViewData->NbVS) ? 6 : (ViewData->NbSI || ViewData->NbVI) ? 9 : (ViewData->NbSH || ViewData->NbVH) ? 12 : 0; ViewData->setInterpolationMatrices(type, ListOfListOfDouble2Matrix((yyvsp[(3) - (8)].l)), ListOfListOfDouble2Matrix((yyvsp[(6) - (8)].l))); #endif ;} break; case 51: #line 565 "Gmsh.y" { #if !defined(HAVE_NO_POST) int type = (ViewData->NbSL || ViewData->NbVL) ? 1 : (ViewData->NbST || ViewData->NbVT) ? 3 : (ViewData->NbSQ || ViewData->NbVQ) ? 4 : (ViewData->NbSS || ViewData->NbVS) ? 6 : (ViewData->NbSH || ViewData->NbVH) ? 12 : 0; ViewData->setInterpolationMatrices(type, ListOfListOfDouble2Matrix((yyvsp[(3) - (14)].l)), ListOfListOfDouble2Matrix((yyvsp[(6) - (14)].l)), ListOfListOfDouble2Matrix((yyvsp[(9) - (14)].l)), ListOfListOfDouble2Matrix((yyvsp[(12) - (14)].l))); #endif ;} break; case 52: #line 584 "Gmsh.y" { #if !defined(HAVE_NO_POST) ViewValueList = ViewData->Time; #endif ;} break; case 53: #line 590 "Gmsh.y" { ;} break; case 54: #line 597 "Gmsh.y" { (yyval.i) = 0; ;} break; case 55: #line 598 "Gmsh.y" { (yyval.i) = 1; ;} break; case 56: #line 599 "Gmsh.y" { (yyval.i) = 2; ;} break; case 57: #line 600 "Gmsh.y" { (yyval.i) = 3; ;} break; case 58: #line 601 "Gmsh.y" { (yyval.i) = 4; ;} break; case 59: #line 605 "Gmsh.y" { (yyval.i) = 1; ;} break; case 60: #line 606 "Gmsh.y" { (yyval.i) = -1; ;} break; case 61: #line 614 "Gmsh.y" { if(!gmsh_yysymbols.count((yyvsp[(1) - (4)].c))){ if(!(yyvsp[(2) - (4)].i)) gmsh_yysymbols[(yyvsp[(1) - (4)].c)].push_back((yyvsp[(3) - (4)].d)); else yymsg(0, "Unknown variable '%s'", (yyvsp[(1) - (4)].c)); } else{ switch((yyvsp[(2) - (4)].i)){ case 0 : gmsh_yysymbols[(yyvsp[(1) - (4)].c)][0] = (yyvsp[(3) - (4)].d); break; case 1 : gmsh_yysymbols[(yyvsp[(1) - (4)].c)][0] += (yyvsp[(3) - (4)].d); break; case 2 : gmsh_yysymbols[(yyvsp[(1) - (4)].c)][0] -= (yyvsp[(3) - (4)].d); break; case 3 : gmsh_yysymbols[(yyvsp[(1) - (4)].c)][0] *= (yyvsp[(3) - (4)].d); break; case 4 : if((yyvsp[(3) - (4)].d)) gmsh_yysymbols[(yyvsp[(1) - (4)].c)][0] /= (yyvsp[(3) - (4)].d); else yymsg(0, "Division by zero in '%s /= %g'", (yyvsp[(1) - (4)].c), (yyvsp[(3) - (4)].d)); break; } } Free((yyvsp[(1) - (4)].c)); ;} break; case 62: #line 636 "Gmsh.y" { int index = (int)(yyvsp[(3) - (7)].d); if(!gmsh_yysymbols.count((yyvsp[(1) - (7)].c))){ if(!(yyvsp[(5) - (7)].i)){ gmsh_yysymbols[(yyvsp[(1) - (7)].c)].resize(index + 1, 0.); gmsh_yysymbols[(yyvsp[(1) - (7)].c)][index] = (yyvsp[(6) - (7)].d); } else yymsg(0, "Unknown variable '%s'", (yyvsp[(1) - (7)].c)); } else{ if(gmsh_yysymbols[(yyvsp[(1) - (7)].c)].size() < index + 1) gmsh_yysymbols[(yyvsp[(1) - (7)].c)].resize(index + 1, 0.); switch((yyvsp[(5) - (7)].i)){ case 0 : gmsh_yysymbols[(yyvsp[(1) - (7)].c)][index] = (yyvsp[(6) - (7)].d); break; case 1 : gmsh_yysymbols[(yyvsp[(1) - (7)].c)][index] += (yyvsp[(6) - (7)].d); break; case 2 : gmsh_yysymbols[(yyvsp[(1) - (7)].c)][index] -= (yyvsp[(6) - (7)].d); break; case 3 : gmsh_yysymbols[(yyvsp[(1) - (7)].c)][index] *= (yyvsp[(6) - (7)].d); break; case 4 : if((yyvsp[(6) - (7)].d)) gmsh_yysymbols[(yyvsp[(1) - (7)].c)][index] /= (yyvsp[(6) - (7)].d); else yymsg(0, "Division by zero in '%s[%d] /= %g'", (yyvsp[(1) - (7)].c), index, (yyvsp[(6) - (7)].d)); break; } } Free((yyvsp[(1) - (7)].c)); ;} break; case 63: #line 663 "Gmsh.y" { if(List_Nbr((yyvsp[(4) - (9)].l)) != List_Nbr((yyvsp[(8) - (9)].l))){ yymsg(0, "Incompatible array dimensions in affectation"); } else{ if(!gmsh_yysymbols.count((yyvsp[(1) - (9)].c))){ if(!(yyvsp[(7) - (9)].i)){ for(int i = 0; i < List_Nbr((yyvsp[(4) - (9)].l)); i++){ int index = (int)(*(double*)List_Pointer((yyvsp[(4) - (9)].l), i)); gmsh_yysymbols[(yyvsp[(1) - (9)].c)].resize(index + 1, 0.); gmsh_yysymbols[(yyvsp[(1) - (9)].c)][index] = *(double*)List_Pointer((yyvsp[(8) - (9)].l), i); } } else yymsg(0, "Unknown variable '%s'", (yyvsp[(1) - (9)].c)); } else{ for(int i = 0; i < List_Nbr((yyvsp[(4) - (9)].l)); i++){ int index = (int)(*(double*)List_Pointer((yyvsp[(4) - (9)].l), i)); double d = *(double*)List_Pointer((yyvsp[(8) - (9)].l), i); if(gmsh_yysymbols[(yyvsp[(1) - (9)].c)].size() < index + 1) gmsh_yysymbols[(yyvsp[(1) - (9)].c)].resize(index + 1, 0.); switch((yyvsp[(7) - (9)].i)){ case 0 : gmsh_yysymbols[(yyvsp[(1) - (9)].c)][index] = d; break; case 1 : gmsh_yysymbols[(yyvsp[(1) - (9)].c)][index] += d; break; case 2 : gmsh_yysymbols[(yyvsp[(1) - (9)].c)][index] -= d; break; case 3 : gmsh_yysymbols[(yyvsp[(1) - (9)].c)][index] *= d; break; case 4 : if((yyvsp[(8) - (9)].l)) gmsh_yysymbols[(yyvsp[(1) - (9)].c)][index] /= d; else yymsg(0, "Division by zero in '%s[%d] /= %g'", (yyvsp[(1) - (9)].c), index, d); break; } } } } Free((yyvsp[(1) - (9)].c)); List_Delete((yyvsp[(4) - (9)].l)); List_Delete((yyvsp[(8) - (9)].l)); ;} break; case 64: #line 703 "Gmsh.y" { if(gmsh_yysymbols.count((yyvsp[(1) - (6)].c))) gmsh_yysymbols[(yyvsp[(1) - (6)].c)].clear(); gmsh_yysymbols[(yyvsp[(1) - (6)].c)] = std::vector<double>(); for(int i = 0; i < List_Nbr((yyvsp[(5) - (6)].l)); i++) gmsh_yysymbols[(yyvsp[(1) - (6)].c)].push_back(*(double*)List_Pointer((yyvsp[(5) - (6)].l), i)); Free((yyvsp[(1) - (6)].c)); List_Delete((yyvsp[(5) - (6)].l)); ;} break; case 65: #line 713 "Gmsh.y" { // appends to the list for(int i = 0; i < List_Nbr((yyvsp[(5) - (6)].l)); i++) gmsh_yysymbols[(yyvsp[(1) - (6)].c)].push_back(*(double*)List_Pointer((yyvsp[(5) - (6)].l), i)); Free((yyvsp[(1) - (6)].c)); List_Delete((yyvsp[(5) - (6)].l)); ;} break; case 66: #line 721 "Gmsh.y" { if(!gmsh_yysymbols.count((yyvsp[(1) - (3)].c))) yymsg(0, "Unknown variable '%s'", (yyvsp[(1) - (3)].c)); else gmsh_yysymbols[(yyvsp[(1) - (3)].c)][0] += (yyvsp[(2) - (3)].i); Free((yyvsp[(1) - (3)].c)); ;} break; case 67: #line 729 "Gmsh.y" { if(!gmsh_yysymbols.count((yyvsp[(1) - (6)].c))) yymsg(0, "Unknown variable '%s'", (yyvsp[(1) - (6)].c)); else{ int index = (int)(yyvsp[(3) - (6)].d); if(gmsh_yysymbols[(yyvsp[(1) - (6)].c)].size() < index + 1) gmsh_yysymbols[(yyvsp[(1) - (6)].c)].resize(index + 1, 0.); gmsh_yysymbols[(yyvsp[(1) - (6)].c)][index] += (yyvsp[(5) - (6)].i); } Free((yyvsp[(1) - (6)].c)); ;} break; case 68: #line 741 "Gmsh.y" { gmsh_yystringsymbols[(yyvsp[(1) - (4)].c)] = std::string((yyvsp[(3) - (4)].c)); Free((yyvsp[(1) - (4)].c)); Free((yyvsp[(3) - (4)].c)); ;} break; case 69: #line 750 "Gmsh.y" { std::string tmp((yyvsp[(5) - (6)].c)); StringOption(GMSH_SET|GMSH_GUI, (yyvsp[(1) - (6)].c), 0, (yyvsp[(3) - (6)].c), tmp); Free((yyvsp[(1) - (6)].c)); Free((yyvsp[(3) - (6)].c)); Free((yyvsp[(5) - (6)].c)) ;} break; case 70: #line 756 "Gmsh.y" { std::string tmp((yyvsp[(8) - (9)].c)); StringOption(GMSH_SET|GMSH_GUI, (yyvsp[(1) - (9)].c), (int)(yyvsp[(3) - (9)].d), (yyvsp[(6) - (9)].c), tmp); Free((yyvsp[(1) - (9)].c)); Free((yyvsp[(6) - (9)].c)); Free((yyvsp[(8) - (9)].c)) ;} break; case 71: #line 765 "Gmsh.y" { double d = 0.; if(NumberOption(GMSH_GET, (yyvsp[(1) - (6)].c), 0, (yyvsp[(3) - (6)].c), d)){ switch((yyvsp[(4) - (6)].i)){ case 0 : d = (yyvsp[(5) - (6)].d); break; case 1 : d += (yyvsp[(5) - (6)].d); break; case 2 : d -= (yyvsp[(5) - (6)].d); break; case 3 : d *= (yyvsp[(5) - (6)].d); break; case 4 : if((yyvsp[(5) - (6)].d)) d /= (yyvsp[(5) - (6)].d); else yymsg(0, "Division by zero in '%s.%s /= %g'", (yyvsp[(1) - (6)].c), (yyvsp[(3) - (6)].c), (yyvsp[(5) - (6)].d)); break; } NumberOption(GMSH_SET|GMSH_GUI, (yyvsp[(1) - (6)].c), 0, (yyvsp[(3) - (6)].c), d); } Free((yyvsp[(1) - (6)].c)); Free((yyvsp[(3) - (6)].c)); ;} break; case 72: #line 783 "Gmsh.y" { double d = 0.; if(NumberOption(GMSH_GET, (yyvsp[(1) - (9)].c), (int)(yyvsp[(3) - (9)].d), (yyvsp[(6) - (9)].c), d)){ switch((yyvsp[(7) - (9)].i)){ case 0 : d = (yyvsp[(8) - (9)].d); break; case 1 : d += (yyvsp[(8) - (9)].d); break; case 2 : d -= (yyvsp[(8) - (9)].d); break; case 3 : d *= (yyvsp[(8) - (9)].d); break; case 4 : if((yyvsp[(8) - (9)].d)) d /= (yyvsp[(8) - (9)].d); else yymsg(0, "Division by zero in '%s[%d].%s /= %g'", (yyvsp[(1) - (9)].c), (int)(yyvsp[(3) - (9)].d), (yyvsp[(6) - (9)].c), (yyvsp[(8) - (9)].d)); break; } NumberOption(GMSH_SET|GMSH_GUI, (yyvsp[(1) - (9)].c), (int)(yyvsp[(3) - (9)].d), (yyvsp[(6) - (9)].c), d); } Free((yyvsp[(1) - (9)].c)); Free((yyvsp[(6) - (9)].c)); ;} break; case 73: #line 801 "Gmsh.y" { double d = 0.; if(NumberOption(GMSH_GET, (yyvsp[(1) - (5)].c), 0, (yyvsp[(3) - (5)].c), d)){ d += (yyvsp[(4) - (5)].i); NumberOption(GMSH_SET|GMSH_GUI, (yyvsp[(1) - (5)].c), 0, (yyvsp[(3) - (5)].c), d); } Free((yyvsp[(1) - (5)].c)); Free((yyvsp[(3) - (5)].c)); ;} break; case 74: #line 810 "Gmsh.y" { double d = 0.; if(NumberOption(GMSH_GET, (yyvsp[(1) - (8)].c), (int)(yyvsp[(3) - (8)].d), (yyvsp[(6) - (8)].c), d)){ d += (yyvsp[(7) - (8)].i); NumberOption(GMSH_SET|GMSH_GUI, (yyvsp[(1) - (8)].c), (int)(yyvsp[(3) - (8)].d), (yyvsp[(6) - (8)].c), d); } Free((yyvsp[(1) - (8)].c)); Free((yyvsp[(6) - (8)].c)); ;} break; case 75: #line 822 "Gmsh.y" { ColorOption(GMSH_SET|GMSH_GUI, (yyvsp[(1) - (8)].c), 0, (yyvsp[(5) - (8)].c), (yyvsp[(7) - (8)].u)); Free((yyvsp[(1) - (8)].c)); Free((yyvsp[(5) - (8)].c)); ;} break; case 76: #line 827 "Gmsh.y" { ColorOption(GMSH_SET|GMSH_GUI, (yyvsp[(1) - (11)].c), (int)(yyvsp[(3) - (11)].d), (yyvsp[(8) - (11)].c), (yyvsp[(10) - (11)].u)); Free((yyvsp[(1) - (11)].c)); Free((yyvsp[(8) - (11)].c)); ;} break; case 77: #line 835 "Gmsh.y" { GmshColorTable *ct = Get_ColorTable(0); if(!ct) yymsg(0, "View[%d] does not exist", 0); else{ ct->size = List_Nbr((yyvsp[(5) - (6)].l)); if(ct->size > COLORTABLE_NBMAX_COLOR) yymsg(0, "Too many (%d>%d) colors in View[%d].ColorTable", ct->size, COLORTABLE_NBMAX_COLOR, 0); else for(int i = 0; i < ct->size; i++) List_Read((yyvsp[(5) - (6)].l), i, &ct->table[i]); if(ct->size == 1){ ct->size = 2; ct->table[1] = ct->table[0]; } } Free((yyvsp[(1) - (6)].c)); List_Delete((yyvsp[(5) - (6)].l)); ;} break; case 78: #line 855 "Gmsh.y" { GmshColorTable *ct = Get_ColorTable((int)(yyvsp[(3) - (9)].d)); if(!ct) yymsg(0, "View[%d] does not exist", (int)(yyvsp[(3) - (9)].d)); else{ ct->size = List_Nbr((yyvsp[(8) - (9)].l)); if(ct->size > COLORTABLE_NBMAX_COLOR) yymsg(0, "Too many (%d>%d) colors in View[%d].ColorTable", ct->size, COLORTABLE_NBMAX_COLOR, (int)(yyvsp[(3) - (9)].d)); else for(int i = 0; i < ct->size; i++) List_Read((yyvsp[(8) - (9)].l), i, &ct->table[i]); if(ct->size == 1){ ct->size = 2; ct->table[1] = ct->table[0]; } } Free((yyvsp[(1) - (9)].c)); List_Delete((yyvsp[(8) - (9)].l)); ;} break; case 79: #line 878 "Gmsh.y" { if(!strcmp((yyvsp[(1) - (5)].c),"Background")) GModel::current()->getFields()->background_field = (int)(yyvsp[(4) - (5)].d); else yymsg(0, "Unknown command %s Field", (yyvsp[(1) - (5)].c)); ;} break; case 80: #line 885 "Gmsh.y" { if(!GModel::current()->getFields()->new_field((int)(yyvsp[(3) - (7)].d), (yyvsp[(6) - (7)].c))) yymsg(0, "Cannot create field %i of type '%s'", (int)(yyvsp[(3) - (7)].d), (yyvsp[(6) - (7)].c)); Free((yyvsp[(6) - (7)].c)); ;} break; case 81: #line 891 "Gmsh.y" { Field *field = GModel::current()->getFields()->get((int)(yyvsp[(3) - (9)].d)); if(field){ FieldOption *option = field->options[(yyvsp[(6) - (9)].c)]; if(option){ try { option->numerical_value((yyvsp[(8) - (9)].d)); } catch(...){ yymsg(0, "Cannot assign a numerical value to option '%s' " "in field %i of type '%s'", (yyvsp[(6) - (9)].c), (int)(yyvsp[(3) - (9)].d), field->get_name()); } } else yymsg(0, "Unknown option '%s' in field %i of type '%s'", (yyvsp[(6) - (9)].c), (int)(yyvsp[(3) - (9)].d), field->get_name()); } else yymsg(0, "No field with id %i", (int)(yyvsp[(3) - (9)].d)); Free((yyvsp[(6) - (9)].c)); ;} break; case 82: #line 911 "Gmsh.y" { Field *field = GModel::current()->getFields()->get((int)(yyvsp[(3) - (9)].d)); if(field){ FieldOption *option = field->options[(yyvsp[(6) - (9)].c)]; if(option){ try { option->string() = (yyvsp[(8) - (9)].c); } catch (...){ yymsg(0, "Cannot assign a string value to option '%s' " "in field %i of type '%s'", (yyvsp[(6) - (9)].c), (int)(yyvsp[(3) - (9)].d), field->get_name()); } } else yymsg(0, "Unknown option '%s' in field %i of type '%s'", (yyvsp[(6) - (9)].c), (int)(yyvsp[(3) - (9)].d), field->get_name()); } else yymsg(0, "No field with id %i", (int)(yyvsp[(3) - (9)].d)); Free((yyvsp[(6) - (9)].c)); Free((yyvsp[(8) - (9)].c)); ;} break; case 83: #line 932 "Gmsh.y" { Field *field = GModel::current()->getFields()->get((int)(yyvsp[(3) - (11)].d)); if(field){ FieldOption *option = field->options[(yyvsp[(6) - (11)].c)]; if(option){ std::list<int> &vl = option->list(); vl.clear(); for(int i = 0; i < List_Nbr((yyvsp[(9) - (11)].l)); i++){ double id; List_Read((yyvsp[(9) - (11)].l), i, &id); vl.push_back((int)id); } } else yymsg(0, "Unknown option '%s' in field %i of type '%s'", (yyvsp[(6) - (11)].c), (int)(yyvsp[(3) - (11)].d), field->get_name()); } else yymsg(0, "No field with id %i", (int)(yyvsp[(3) - (11)].d)); Free((yyvsp[(6) - (11)].c)); List_Delete((yyvsp[(9) - (11)].l)); ;} break; case 84: #line 958 "Gmsh.y" { #if !defined(HAVE_NO_POST) try { GMSH_PluginManager::instance()->setPluginOption((yyvsp[(3) - (9)].c), (yyvsp[(6) - (9)].c), (yyvsp[(8) - (9)].d)); } catch (...) { yymsg(0, "Unknown option '%s' or plugin '%s'", (yyvsp[(6) - (9)].c), (yyvsp[(3) - (9)].c)); } #endif Free((yyvsp[(3) - (9)].c)); Free((yyvsp[(6) - (9)].c)); ;} break; case 85: #line 970 "Gmsh.y" { #if !defined(HAVE_NO_POST) try { GMSH_PluginManager::instance()->setPluginOption((yyvsp[(3) - (9)].c), (yyvsp[(6) - (9)].c), (yyvsp[(8) - (9)].c)); } catch (...) { yymsg(0, "Unknown option '%s' or plugin '%s'", (yyvsp[(6) - (9)].c), (yyvsp[(3) - (9)].c)); } #endif Free((yyvsp[(3) - (9)].c)); Free((yyvsp[(6) - (9)].c)); ;} break; case 86: #line 987 "Gmsh.y" { (yyval.i) = (int)(yyvsp[(1) - (1)].d); ;} break; case 87: #line 991 "Gmsh.y" { (yyval.i) = GModel::current()->setPhysicalName (std::string((yyvsp[(1) - (1)].c)), ++GModel::current()->getGEOInternals()->MaxPhysicalNum); Free((yyvsp[(1) - (1)].c)); ;} break; case 88: #line 1000 "Gmsh.y" { (yyval.l) = 0; ;} break; case 89: #line 1004 "Gmsh.y" { (yyval.l) = List_Create(1, 1, sizeof(Vertex*)); Vertex *v = FindPoint((int)(yyvsp[(4) - (5)].d)); if(!v) yymsg(0, "Unknown point %d", (int)(yyvsp[(4) - (5)].d)); else{ List_Add((yyval.l), &v); } ;} break; case 90: #line 1016 "Gmsh.y" { for(int i = 0; i < 4; i++) (yyval.v)[i] = 0.; ;} break; case 91: #line 1020 "Gmsh.y" { for(int i = 0; i < 4; i++) (yyval.v)[i] = (yyvsp[(2) - (2)].v)[i]; ;} break; case 92: #line 1030 "Gmsh.y" { int num = (int)(yyvsp[(3) - (7)].d); if(FindPoint(num)){ yymsg(0, "Point %d already exists", num); } else{ double x = CTX::instance()->geom.scaling_factor * (yyvsp[(6) - (7)].v)[0]; double y = CTX::instance()->geom.scaling_factor * (yyvsp[(6) - (7)].v)[1]; double z = CTX::instance()->geom.scaling_factor * (yyvsp[(6) - (7)].v)[2]; double lc = CTX::instance()->geom.scaling_factor * (yyvsp[(6) - (7)].v)[3]; if(lc == 0.) lc = MAX_LC; // no mesh size given at the point Vertex *v; if(!myGmshSurface) v = Create_Vertex(num, x, y, z, lc, 1.0); else v = Create_Vertex(num, x, y, myGmshSurface, lc); Tree_Add(GModel::current()->getGEOInternals()->Points, &v); AddToTemporaryBoundingBox(v->Pos.X, v->Pos.Y, v->Pos.Z); } (yyval.s).Type = MSH_POINT; (yyval.s).Num = num; ;} break; case 93: #line 1053 "Gmsh.y" { int num = (int)(yyvsp[(4) - (8)].i); if(FindPhysicalGroup(num, MSH_PHYSICAL_POINT)){ yymsg(0, "Physical point %d already exists", num); } else{ List_T *temp = ListOfDouble2ListOfInt((yyvsp[(7) - (8)].l)); PhysicalGroup *p = Create_PhysicalGroup(num, MSH_PHYSICAL_POINT, temp); List_Delete(temp); List_Add(GModel::current()->getGEOInternals()->PhysicalGroups, &p); } List_Delete((yyvsp[(7) - (8)].l)); (yyval.s).Type = MSH_PHYSICAL_POINT; (yyval.s).Num = num; ;} break; case 94: #line 1069 "Gmsh.y" { for(int i = 0; i < List_Nbr((yyvsp[(3) - (6)].l)); i++){ double d; List_Read((yyvsp[(3) - (6)].l), i, &d); Vertex *v = FindPoint((int)d); if(v) v->lc = (yyvsp[(5) - (6)].d); else{ GVertex *gv = GModel::current()->getVertexByTag((int)d); if(gv) gv->setPrescribedMeshSizeAtVertex((yyvsp[(5) - (6)].d)); } } List_Delete((yyvsp[(3) - (6)].l)); // dummy values (yyval.s).Type = 0; (yyval.s).Num = 0; ;} break; case 95: #line 1091 "Gmsh.y" { int num = (int)(yyvsp[(3) - (7)].d); if(FindCurve(num)){ yymsg(0, "Curve %d already exists", num); } else{ List_T *temp = ListOfDouble2ListOfInt((yyvsp[(6) - (7)].l)); Curve *c = Create_Curve(num, MSH_SEGM_LINE, 1, temp, NULL, -1, -1, 0., 1.); Tree_Add(GModel::current()->getGEOInternals()->Curves, &c); CreateReversedCurve(c); List_Delete(temp); } List_Delete((yyvsp[(6) - (7)].l)); (yyval.s).Type = MSH_SEGM_LINE; (yyval.s).Num = num; ;} break; case 96: #line 1109 "Gmsh.y" { int num = (int)(yyvsp[(3) - (7)].d); if(FindCurve(num)){ yymsg(0, "Curve %d already exists", num); } else{ List_T *temp = ListOfDouble2ListOfInt((yyvsp[(6) - (7)].l)); Curve *c = Create_Curve(num, MSH_SEGM_SPLN, 3, temp, NULL, -1, -1, 0., 1.); Tree_Add(GModel::current()->getGEOInternals()->Curves, &c); CreateReversedCurve(c); List_Delete(temp); } List_Delete((yyvsp[(6) - (7)].l)); (yyval.s).Type = MSH_SEGM_SPLN; (yyval.s).Num = num; ;} break; case 97: #line 1127 "Gmsh.y" { int num = (int)(yyvsp[(3) - (8)].d); if(FindCurve(num)){ yymsg(0, "Curve %d already exists", num); } else{ List_T *temp = ListOfDouble2ListOfInt((yyvsp[(6) - (8)].l)); Curve *c = Create_Curve(num, MSH_SEGM_CIRC, 2, temp, NULL, -1, -1, 0., 1.); if((yyvsp[(7) - (8)].v)[0] || (yyvsp[(7) - (8)].v)[1] || (yyvsp[(7) - (8)].v)[2]){ c->Circle.n[0] = (yyvsp[(7) - (8)].v)[0]; c->Circle.n[1] = (yyvsp[(7) - (8)].v)[1]; c->Circle.n[2] = (yyvsp[(7) - (8)].v)[2]; End_Curve(c); } Tree_Add(GModel::current()->getGEOInternals()->Curves, &c); Curve *rc = CreateReversedCurve(c); if((yyvsp[(7) - (8)].v)[0] || (yyvsp[(7) - (8)].v)[1] || (yyvsp[(7) - (8)].v)[2]){ rc->Circle.n[0] = (yyvsp[(7) - (8)].v)[0]; rc->Circle.n[1] = (yyvsp[(7) - (8)].v)[1]; rc->Circle.n[2] = (yyvsp[(7) - (8)].v)[2]; End_Curve(rc); } List_Delete(temp); } List_Delete((yyvsp[(6) - (8)].l)); (yyval.s).Type = MSH_SEGM_CIRC; (yyval.s).Num = num; ;} break; case 98: #line 1157 "Gmsh.y" { int num = (int)(yyvsp[(3) - (8)].d); if(FindCurve(num)){ yymsg(0, "Curve %d already exists", num); } else{ List_T *temp = ListOfDouble2ListOfInt((yyvsp[(6) - (8)].l)); Curve *c = Create_Curve(num, MSH_SEGM_ELLI, 2, temp, NULL, -1, -1, 0., 1.); if((yyvsp[(7) - (8)].v)[0] || (yyvsp[(7) - (8)].v)[1] || (yyvsp[(7) - (8)].v)[2]){ c->Circle.n[0] = (yyvsp[(7) - (8)].v)[0]; c->Circle.n[1] = (yyvsp[(7) - (8)].v)[1]; c->Circle.n[2] = (yyvsp[(7) - (8)].v)[2]; End_Curve(c); } Tree_Add(GModel::current()->getGEOInternals()->Curves, &c); Curve *rc = CreateReversedCurve(c); if((yyvsp[(7) - (8)].v)[0] || (yyvsp[(7) - (8)].v)[1] || (yyvsp[(7) - (8)].v)[2]){ rc->Circle.n[0] = (yyvsp[(7) - (8)].v)[0]; rc->Circle.n[1] = (yyvsp[(7) - (8)].v)[1]; rc->Circle.n[2] = (yyvsp[(7) - (8)].v)[2]; End_Curve(rc); } List_Delete(temp); } List_Delete((yyvsp[(6) - (8)].l)); (yyval.s).Type = MSH_SEGM_ELLI; (yyval.s).Num = num; ;} break; case 99: #line 1188 "Gmsh.y" { int num = (int)(yyvsp[(3) - (17)].d); if(FindCurve(num)){ yymsg(0, "Curve %d already exists", num); } else{ Curve *c = Create_Curve(num, MSH_SEGM_PARAMETRIC, 2, NULL, NULL, -1, -1, (yyvsp[(7) - (17)].d), (yyvsp[(9) - (17)].d)); strcpy(c->functu, (yyvsp[(11) - (17)].c)); strcpy(c->functv, (yyvsp[(13) - (17)].c)); strcpy(c->functw, (yyvsp[(15) - (17)].c)); Tree_Add(GModel::current()->getGEOInternals()->Curves, &c); CreateReversedCurve(c); } Free((yyvsp[(11) - (17)].c)); Free((yyvsp[(13) - (17)].c)); Free((yyvsp[(15) - (17)].c)); (yyval.s).Type = MSH_SEGM_PARAMETRIC; (yyval.s).Num = num; ;} break; case 100: #line 1207 "Gmsh.y" { int num = (int)(yyvsp[(3) - (7)].d); if(FindCurve(num)){ yymsg(0, "Curve %d already exists", num); } else{ List_T *temp = ListOfDouble2ListOfInt((yyvsp[(6) - (7)].l)); Curve *c = Create_Curve(num, MSH_SEGM_BSPLN, 2, temp, NULL, -1, -1, 0., 1.); Tree_Add(GModel::current()->getGEOInternals()->Curves, &c); CreateReversedCurve(c); List_Delete(temp); } List_Delete((yyvsp[(6) - (7)].l)); (yyval.s).Type = MSH_SEGM_BSPLN; (yyval.s).Num = num; ;} break; case 101: #line 1225 "Gmsh.y" { int num = (int)(yyvsp[(3) - (7)].d); if(FindCurve(num)){ yymsg(0, "Curve %d already exists", num); } else{ List_T *temp = ListOfDouble2ListOfInt((yyvsp[(6) - (7)].l)); Curve *c = Create_Curve(num, MSH_SEGM_BEZIER, 2, temp, NULL, -1, -1, 0., 1.); Tree_Add(GModel::current()->getGEOInternals()->Curves, &c); CreateReversedCurve(c); List_Delete(temp); } List_Delete((yyvsp[(6) - (7)].l)); (yyval.s).Type = MSH_SEGM_BEZIER; (yyval.s).Num = num; ;} break; case 102: #line 1243 "Gmsh.y" { int num = (int)(yyvsp[(3) - (11)].d); if(List_Nbr((yyvsp[(6) - (11)].l)) + (int)(yyvsp[(10) - (11)].d) + 1 != List_Nbr((yyvsp[(8) - (11)].l))){ yymsg(0, "Wrong definition of Nurbs Curve %d: " "got %d knots, need N + D + 1 = %d + %d + 1 = %d", (int)(yyvsp[(3) - (11)].d), List_Nbr((yyvsp[(8) - (11)].l)), List_Nbr((yyvsp[(6) - (11)].l)), (int)(yyvsp[(10) - (11)].d), List_Nbr((yyvsp[(6) - (11)].l)) + (int)(yyvsp[(10) - (11)].d) + 1); } else{ if(FindCurve(num)){ yymsg(0, "Curve %d already exists", num); } else{ List_T *temp = ListOfDouble2ListOfInt((yyvsp[(6) - (11)].l)); Curve *c = Create_Curve(num, MSH_SEGM_NURBS, (int)(yyvsp[(10) - (11)].d), temp, (yyvsp[(8) - (11)].l), -1, -1, 0., 1.); Tree_Add(GModel::current()->getGEOInternals()->Curves, &c); CreateReversedCurve(c); List_Delete(temp); } } List_Delete((yyvsp[(6) - (11)].l)); List_Delete((yyvsp[(8) - (11)].l)); (yyval.s).Type = MSH_SEGM_NURBS; (yyval.s).Num = num; ;} break; case 103: #line 1269 "Gmsh.y" { int num = (int)(yyvsp[(4) - (8)].d); if(FindEdgeLoop(num)){ yymsg(0, "Line loop %d already exists", num); } else{ List_T *temp = ListOfDouble2ListOfInt((yyvsp[(7) - (8)].l)); sortEdgesInLoop(num, temp); EdgeLoop *l = Create_EdgeLoop(num, temp); Tree_Add(GModel::current()->getGEOInternals()->EdgeLoops, &l); List_Delete(temp); } List_Delete((yyvsp[(7) - (8)].l)); (yyval.s).Type = MSH_SEGM_LOOP; (yyval.s).Num = num; ;} break; case 104: #line 1286 "Gmsh.y" { int num = (int)(yyvsp[(4) - (8)].i); if(FindPhysicalGroup(num, MSH_PHYSICAL_LINE)){ yymsg(0, "Physical line %d already exists", num); } else{ List_T *temp = ListOfDouble2ListOfInt((yyvsp[(7) - (8)].l)); PhysicalGroup *p = Create_PhysicalGroup(num, MSH_PHYSICAL_LINE, temp); List_Delete(temp); List_Add(GModel::current()->getGEOInternals()->PhysicalGroups, &p); } List_Delete((yyvsp[(7) - (8)].l)); (yyval.s).Type = MSH_PHYSICAL_LINE; (yyval.s).Num = num; ;} break; case 105: #line 1305 "Gmsh.y" { int num = (int)(yyvsp[(4) - (8)].d); if(FindSurface(num)){ yymsg(0, "Surface %d already exists", num); } else{ Surface *s = Create_Surface(num, MSH_SURF_PLAN); List_T *temp = ListOfDouble2ListOfInt((yyvsp[(7) - (8)].l)); setSurfaceGeneratrices(s, temp); List_Delete(temp); End_Surface(s); Tree_Add(GModel::current()->getGEOInternals()->Surfaces, &s); } List_Delete((yyvsp[(7) - (8)].l)); (yyval.s).Type = MSH_SURF_PLAN; (yyval.s).Num = num; ;} break; case 106: #line 1323 "Gmsh.y" { int num = (int)(yyvsp[(4) - (9)].d), type = 0; if(FindSurface(num)){ yymsg(0, "Surface %d already exists", num); } else{ double d; List_Read((yyvsp[(7) - (9)].l), 0, &d); EdgeLoop *el = FindEdgeLoop((int)fabs(d)); if(!el){ yymsg(0, "Unknown line loop %d", (int)d); } else{ int j = List_Nbr(el->Curves); if(j == 4){ type = MSH_SURF_REGL; } else if(j == 3){ type = MSH_SURF_TRIC; } else{ yymsg(0, "Wrong definition of Ruled Surface %d: " "%d borders instead of 3 or 4", num, j); type = MSH_SURF_PLAN; } Surface *s = Create_Surface(num, type); List_T *temp = ListOfDouble2ListOfInt((yyvsp[(7) - (9)].l)); setSurfaceGeneratrices(s, temp); List_Delete(temp); End_Surface(s); s->InSphereCenter = (yyvsp[(8) - (9)].l); Tree_Add(GModel::current()->getGEOInternals()->Surfaces, &s); } } List_Delete((yyvsp[(7) - (9)].l)); (yyval.s).Type = type; (yyval.s).Num = num; ;} break; case 107: #line 1362 "Gmsh.y" { myGmshSurface = 0; (yyval.s).Type = 0; (yyval.s).Num = 0; ;} break; case 108: #line 1368 "Gmsh.y" { myGmshSurface = gmshSurface::getSurface((int)(yyvsp[(3) - (4)].d)); (yyval.s).Type = 0; (yyval.s).Num = 0; ;} break; case 109: #line 1374 "Gmsh.y" { int num = (int)(yyvsp[(4) - (10)].d); myGmshSurface = gmshParametricSurface::NewParametricSurface(num, (yyvsp[(7) - (10)].c), (yyvsp[(8) - (10)].c), (yyvsp[(9) - (10)].c)); (yyval.s).Type = 0; (yyval.s).Num = num; ;} break; case 110: #line 1381 "Gmsh.y" { int num = (int)(yyvsp[(3) - (7)].d); if (List_Nbr((yyvsp[(6) - (7)].l)) != 2){ yymsg(0, "Sphere %d has to be defined using 2 points (center + " "any point) and not %d", num, List_Nbr((yyvsp[(6) - (7)].l))); } else{ double p1,p2; List_Read((yyvsp[(6) - (7)].l), 0, &p1); List_Read((yyvsp[(6) - (7)].l), 1, &p2); Vertex *v1 = FindPoint((int)p1); Vertex *v2 = FindPoint((int)p2); if(!v1) yymsg(0, "Sphere %d : unknown point %d", num, (int)p1); if(!v2) yymsg(0, "Sphere %d : unknown point %d", num, (int)p2); if(v1 && v2) myGmshSurface = gmshSphere::NewSphere (num, v1->Pos.X, v1->Pos.Y, v1->Pos.Z, sqrt((v2->Pos.X - v1->Pos.X) * (v2->Pos.X - v1->Pos.X) + (v2->Pos.Y - v1->Pos.Y) * (v2->Pos.Y - v1->Pos.Y) + (v2->Pos.Z - v1->Pos.Z) * (v2->Pos.Z - v1->Pos.Z))); } (yyval.s).Type = 0; (yyval.s).Num = num; ;} break; case 111: #line 1406 "Gmsh.y" { int num = (int)(yyvsp[(3) - (7)].d); if (List_Nbr((yyvsp[(6) - (7)].l)) != 2){ yymsg(0, "PolarSphere %d has to be defined using 2 points (center + " "any point) and not %d", num, List_Nbr((yyvsp[(6) - (7)].l))); } else{ double p1,p2; List_Read((yyvsp[(6) - (7)].l), 0, &p1); List_Read((yyvsp[(6) - (7)].l), 1, &p2); Vertex *v1 = FindPoint((int)p1); Vertex *v2 = FindPoint((int)p2); if(!v1) yymsg(0, "PolarSphere %d : unknown point %d", num, (int)p1); if(!v2) yymsg(0, "PolarSphere %d : unknown point %d", num, (int)p2); if(v1 && v2) myGmshSurface = gmshPolarSphere::NewPolarSphere (num, v1->Pos.X, v1->Pos.Y, v1->Pos.Z, sqrt((v2->Pos.X - v1->Pos.X) * (v2->Pos.X - v1->Pos.X) + (v2->Pos.Y - v1->Pos.Y) * (v2->Pos.Y - v1->Pos.Y) + (v2->Pos.Z - v1->Pos.Z) * (v2->Pos.Z - v1->Pos.Z))); } (yyval.s).Type = 0; (yyval.s).Num = num; ;} break; case 112: #line 1431 "Gmsh.y" { int num = (int)(yyvsp[(4) - (8)].d); if(FindSurfaceLoop(num)){ yymsg(0, "Surface loop %d already exists", num); } else{ List_T *temp = ListOfDouble2ListOfInt((yyvsp[(7) - (8)].l)); SurfaceLoop *l = Create_SurfaceLoop(num, temp); Tree_Add(GModel::current()->getGEOInternals()->SurfaceLoops, &l); List_Delete(temp); } List_Delete((yyvsp[(7) - (8)].l)); (yyval.s).Type = MSH_SURF_LOOP; (yyval.s).Num = num; ;} break; case 113: #line 1447 "Gmsh.y" { int num = (int)(yyvsp[(4) - (8)].i); if(FindPhysicalGroup(num, MSH_PHYSICAL_SURFACE)){ yymsg(0, "Physical surface %d already exists", num); } else{ List_T *temp = ListOfDouble2ListOfInt((yyvsp[(7) - (8)].l)); PhysicalGroup *p = Create_PhysicalGroup(num, MSH_PHYSICAL_SURFACE, temp); List_Delete(temp); List_Add(GModel::current()->getGEOInternals()->PhysicalGroups, &p); } List_Delete((yyvsp[(7) - (8)].l)); (yyval.s).Type = MSH_PHYSICAL_SURFACE; (yyval.s).Num = num; ;} break; case 114: #line 1463 "Gmsh.y" { int num = (int)(yyvsp[(4) - (12)].d); if(FindPhysicalGroup(num, MSH_PHYSICAL_SURFACE)){ yymsg(0, "Physical surface %d already exists", num); } else{ List_T *temp = ListOfDouble2ListOfInt((yyvsp[(7) - (12)].l)); List_T *S[4] = {0, 0, 0, 0}; for (int i = 0; i < List_Nbr((yyvsp[(10) - (12)].l)); i++){ List_T *ll; List_Read((yyvsp[(10) - (12)].l), i, &ll); S[i] = ListOfDouble2ListOfInt(ll); List_Delete(ll); } PhysicalGroup *p = Create_PhysicalGroup(num, MSH_PHYSICAL_SURFACE, temp, S); List_Delete(temp); for (int i = 0; i < List_Nbr((yyvsp[(10) - (12)].l)); i++) List_Delete(S[i]); List_Add(GModel::current()->getGEOInternals()->PhysicalGroups, &p); } List_Delete((yyvsp[(7) - (12)].l)); List_Delete((yyvsp[(10) - (12)].l)); Free((yyvsp[(8) - (12)].c)); (yyval.s).Type = MSH_PHYSICAL_SURFACE; (yyval.s).Num = num; ;} break; case 115: #line 1494 "Gmsh.y" { yymsg(0, "'Complex Volume' command is deprecated: use 'Volume' instead"); int num = (int)(yyvsp[(4) - (8)].d); if(FindVolume(num)){ yymsg(0, "Volume %d already exists", num); } else{ Volume *v = Create_Volume(num, MSH_VOLUME); List_T *temp = ListOfDouble2ListOfInt((yyvsp[(7) - (8)].l)); setVolumeSurfaces(v, temp); List_Delete(temp); Tree_Add(GModel::current()->getGEOInternals()->Volumes, &v); } List_Delete((yyvsp[(7) - (8)].l)); (yyval.s).Type = MSH_VOLUME; (yyval.s).Num = num; ;} break; case 116: #line 1512 "Gmsh.y" { int num = (int)(yyvsp[(3) - (7)].d); if(FindVolume(num)){ yymsg(0, "Volume %d already exists", num); } else{ Volume *v = Create_Volume(num, MSH_VOLUME); List_T *temp = ListOfDouble2ListOfInt((yyvsp[(6) - (7)].l)); setVolumeSurfaces(v, temp); List_Delete(temp); Tree_Add(GModel::current()->getGEOInternals()->Volumes, &v); } List_Delete((yyvsp[(6) - (7)].l)); (yyval.s).Type = MSH_VOLUME; (yyval.s).Num = num; ;} break; case 117: #line 1529 "Gmsh.y" { int num = (int)(yyvsp[(4) - (8)].i); if(FindPhysicalGroup(num, MSH_PHYSICAL_VOLUME)){ yymsg(0, "Physical volume %d already exists", num); } else{ List_T *temp = ListOfDouble2ListOfInt((yyvsp[(7) - (8)].l)); PhysicalGroup *p = Create_PhysicalGroup(num, MSH_PHYSICAL_VOLUME, temp); List_Delete(temp); List_Add(GModel::current()->getGEOInternals()->PhysicalGroups, &p); } List_Delete((yyvsp[(7) - (8)].l)); (yyval.s).Type = MSH_PHYSICAL_VOLUME; (yyval.s).Num = num; ;} break; case 118: #line 1550 "Gmsh.y" { TranslateShapes((yyvsp[(2) - (5)].v)[0], (yyvsp[(2) - (5)].v)[1], (yyvsp[(2) - (5)].v)[2], (yyvsp[(4) - (5)].l)); (yyval.l) = (yyvsp[(4) - (5)].l); ;} break; case 119: #line 1555 "Gmsh.y" { RotateShapes((yyvsp[(3) - (11)].v)[0], (yyvsp[(3) - (11)].v)[1], (yyvsp[(3) - (11)].v)[2], (yyvsp[(5) - (11)].v)[0], (yyvsp[(5) - (11)].v)[1], (yyvsp[(5) - (11)].v)[2], (yyvsp[(7) - (11)].d), (yyvsp[(10) - (11)].l)); (yyval.l) = (yyvsp[(10) - (11)].l); ;} break; case 120: #line 1560 "Gmsh.y" { SymmetryShapes((yyvsp[(2) - (5)].v)[0], (yyvsp[(2) - (5)].v)[1], (yyvsp[(2) - (5)].v)[2], (yyvsp[(2) - (5)].v)[3], (yyvsp[(4) - (5)].l)); (yyval.l) = (yyvsp[(4) - (5)].l); ;} break; case 121: #line 1565 "Gmsh.y" { DilatShapes((yyvsp[(3) - (9)].v)[0], (yyvsp[(3) - (9)].v)[1], (yyvsp[(3) - (9)].v)[2], (yyvsp[(5) - (9)].d), (yyvsp[(8) - (9)].l)); (yyval.l) = (yyvsp[(8) - (9)].l); ;} break; case 122: #line 1570 "Gmsh.y" { (yyval.l) = List_Create(3, 3, sizeof(Shape)); if(!strcmp((yyvsp[(1) - (4)].c), "Duplicata")){ for(int i = 0; i < List_Nbr((yyvsp[(3) - (4)].l)); i++){ Shape TheShape; List_Read((yyvsp[(3) - (4)].l), i, &TheShape); CopyShape(TheShape.Type, TheShape.Num, &TheShape.Num); List_Add((yyval.l), &TheShape); } } else if(!strcmp((yyvsp[(1) - (4)].c), "Boundary")){ BoundaryShapes((yyvsp[(3) - (4)].l), (yyval.l)); } else{ yymsg(0, "Unknown command on multiple shapes: '%s'", (yyvsp[(1) - (4)].c)); } Free((yyvsp[(1) - (4)].c)); List_Delete((yyvsp[(3) - (4)].l)); ;} break; case 123: #line 1590 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(Shape)); IntersectCurvesWithSurface((yyvsp[(4) - (9)].l), (int)(yyvsp[(8) - (9)].d), (yyval.l)); List_Delete((yyvsp[(4) - (9)].l)); ;} break; case 124: #line 1596 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(Shape*)); List_T *tmp = ListOfDouble2ListOfInt((yyvsp[(7) - (9)].l)); List_Delete((yyvsp[(7) - (9)].l)); SplitCurve((int)(yyvsp[(4) - (9)].d), tmp, (yyval.l)); List_Delete(tmp); ;} break; case 125: #line 1606 "Gmsh.y" { (yyval.l) = (yyvsp[(1) - (1)].l); ;} break; case 126: #line 1607 "Gmsh.y" { (yyval.l) = (yyvsp[(1) - (1)].l); ;} break; case 127: #line 1612 "Gmsh.y" { (yyval.l) = List_Create(3, 3, sizeof(Shape)); ;} break; case 128: #line 1616 "Gmsh.y" { List_Add((yyval.l), &(yyvsp[(2) - (2)].s)); ;} break; case 129: #line 1620 "Gmsh.y" { for(int i = 0; i < List_Nbr((yyvsp[(4) - (6)].l)); i++){ double d; List_Read((yyvsp[(4) - (6)].l), i, &d); Shape TheShape; TheShape.Num = (int)d; Vertex *v = FindPoint(std::abs(TheShape.Num)); if(v){ TheShape.Type = MSH_POINT; List_Add((yyval.l), &TheShape); } else{ GVertex *gv = GModel::current()->getVertexByTag(std::abs(TheShape.Num)); if(gv){ TheShape.Type = MSH_POINT_FROM_GMODEL; List_Add((yyval.l), &TheShape); } else yymsg(1, "Unknown point %d", TheShape.Num); } } ;} break; case 130: #line 1643 "Gmsh.y" { for(int i = 0; i < List_Nbr((yyvsp[(4) - (6)].l)); i++){ double d; List_Read((yyvsp[(4) - (6)].l), i, &d); Shape TheShape; TheShape.Num = (int)d; Curve *c = FindCurve(std::abs(TheShape.Num)); if(c){ TheShape.Type = c->Typ; List_Add((yyval.l), &TheShape); } else{ GEdge *ge = GModel::current()->getEdgeByTag(std::abs(TheShape.Num)); if(ge){ TheShape.Type = MSH_SEGM_FROM_GMODEL; List_Add((yyval.l), &TheShape); } else yymsg(1, "Unknown curve %d", TheShape.Num); } } ;} break; case 131: #line 1666 "Gmsh.y" { for(int i = 0; i < List_Nbr((yyvsp[(4) - (6)].l)); i++){ double d; List_Read((yyvsp[(4) - (6)].l), i, &d); Shape TheShape; TheShape.Num = (int)d; Surface *s = FindSurface(std::abs(TheShape.Num)); if(s){ TheShape.Type = s->Typ; List_Add((yyval.l), &TheShape); } else{ GFace *gf = GModel::current()->getFaceByTag(std::abs(TheShape.Num)); if(gf){ TheShape.Type = MSH_SURF_FROM_GMODEL; List_Add((yyval.l), &TheShape); } else yymsg(1, "Unknown surface %d", TheShape.Num); } } ;} break; case 132: #line 1689 "Gmsh.y" { for(int i = 0; i < List_Nbr((yyvsp[(4) - (6)].l)); i++){ double d; List_Read((yyvsp[(4) - (6)].l), i, &d); Shape TheShape; TheShape.Num = (int)d; Volume *v = FindVolume(std::abs(TheShape.Num)); if(v){ TheShape.Type = v->Typ; List_Add((yyval.l), &TheShape); } else{ GRegion *gr = GModel::current()->getRegionByTag(std::abs(TheShape.Num)); if(gr){ TheShape.Type = MSH_VOLUME_FROM_GMODEL; List_Add((yyval.l), &TheShape); } else yymsg(1, "Unknown volume %d", TheShape.Num); } } ;} break; case 133: #line 1717 "Gmsh.y" { for(int i = 0; i < List_Nbr((yyvsp[(3) - (4)].l)); i++){ Shape TheShape; List_Read((yyvsp[(3) - (4)].l), i, &TheShape); DeleteShape(TheShape.Type, TheShape.Num); } List_Delete((yyvsp[(3) - (4)].l)); ;} break; case 134: #line 1726 "Gmsh.y" { GModel::current()->getFields()->delete_field((int)(yyvsp[(4) - (6)].d)); ;} break; case 135: #line 1730 "Gmsh.y" { #if !defined(HAVE_NO_POST) if(!strcmp((yyvsp[(2) - (6)].c), "View")){ int index = (int)(yyvsp[(4) - (6)].d); if(index >= 0 && index < (int)PView::list.size()) delete PView::list[index]; else yymsg(0, "Unknown view %d", index); } else yymsg(0, "Unknown command 'Delete %s'", (yyvsp[(2) - (6)].c)); #endif Free((yyvsp[(2) - (6)].c)); ;} break; case 136: #line 1745 "Gmsh.y" { if(!strcmp((yyvsp[(2) - (3)].c), "Meshes") || !strcmp((yyvsp[(2) - (3)].c), "All")){ for(unsigned int i = 0; i < GModel::list.size(); i++){ GModel::list[i]->destroy(); GModel::list[i]->getGEOInternals()->destroy(); } } else if(!strcmp((yyvsp[(2) - (3)].c), "Model")){ GModel::current()->destroy(); GModel::current()->getGEOInternals()->destroy(); } else if(!strcmp((yyvsp[(2) - (3)].c), "Physicals")){ GModel::current()->getGEOInternals()->reset_physicals(); GModel::current()->deletePhysicalGroups(); } else if(!strcmp((yyvsp[(2) - (3)].c), "Variables")){ gmsh_yysymbols.clear(); } else{ if(gmsh_yysymbols.count((yyvsp[(2) - (3)].c))) gmsh_yysymbols.erase((yyvsp[(2) - (3)].c)); else yymsg(0, "Unknown object or expression to delete '%s'", (yyvsp[(2) - (3)].c)); } Free((yyvsp[(2) - (3)].c)); ;} break; case 137: #line 1772 "Gmsh.y" { #if !defined(HAVE_NO_POST) if(!strcmp((yyvsp[(2) - (4)].c), "Empty") && !strcmp((yyvsp[(3) - (4)].c), "Views")){ for(int i = PView::list.size() - 1; i >= 0; i--) if(PView::list[i]->getData()->empty()) delete PView::list[i]; } else yymsg(0, "Unknown command 'Delete %s %s'", (yyvsp[(2) - (4)].c), (yyvsp[(3) - (4)].c)); #endif Free((yyvsp[(2) - (4)].c)); Free((yyvsp[(3) - (4)].c)); ;} break; case 138: #line 1789 "Gmsh.y" { for(int i = 0; i < List_Nbr((yyvsp[(4) - (5)].l)); i++){ Shape TheShape; List_Read((yyvsp[(4) - (5)].l), i, &TheShape); ColorShape(TheShape.Type, TheShape.Num, (yyvsp[(2) - (5)].u)); } List_Delete((yyvsp[(4) - (5)].l)); ;} break; case 139: #line 1803 "Gmsh.y" { for(int i = 0; i < 4; i++) VisibilityShape((yyvsp[(2) - (3)].c), i, 1); Free((yyvsp[(2) - (3)].c)); ;} break; case 140: #line 1809 "Gmsh.y" { for(int i = 0; i < 4; i++) VisibilityShape((yyvsp[(2) - (3)].c), i, 0); Free((yyvsp[(2) - (3)].c)); ;} break; case 141: #line 1815 "Gmsh.y" { for(int i = 0; i < List_Nbr((yyvsp[(3) - (4)].l)); i++){ Shape TheShape; List_Read((yyvsp[(3) - (4)].l), i, &TheShape); VisibilityShape(TheShape.Type, TheShape.Num, 1); } List_Delete((yyvsp[(3) - (4)].l)); ;} break; case 142: #line 1824 "Gmsh.y" { for(int i = 0; i < List_Nbr((yyvsp[(3) - (4)].l)); i++){ Shape TheShape; List_Read((yyvsp[(3) - (4)].l), i, &TheShape); VisibilityShape(TheShape.Type, TheShape.Num, 0); } List_Delete((yyvsp[(3) - (4)].l)); ;} break; case 143: #line 1838 "Gmsh.y" { if(!strcmp((yyvsp[(1) - (3)].c), "Include")){ char tmpstring[1024]; FixRelativePath((yyvsp[(2) - (3)].c), tmpstring); // Warning: we *don't* close included files (to allow user // functions in these files). If you need to include many many // files and don't have functions in the files, use "Merge" // instead: some OSes limit the number of files a process can // open simultaneously. The right solution would be of course // to modify FunctionManager to reopen the files instead of // using the FILE pointer, but hey, I'm lazy... Msg::StatusBar(2, true, "Reading '%s'", tmpstring); ParseFile(tmpstring, false, true); SetBoundingBox(); Msg::StatusBar(2, true, "Read '%s'", tmpstring); } else if(!strcmp((yyvsp[(1) - (3)].c), "Print")){ #if defined(HAVE_FLTK) // make sure we have the latest data from GEO_Internals in GModel // (fixes bug where we would have no geometry in the picture if // the print command is in the same file as the geometry) GModel::current()->importGEOInternals(); char tmpstring[1024]; FixRelativePath((yyvsp[(2) - (3)].c), tmpstring); CreateOutputFile(tmpstring, CTX::instance()->print.format); #endif } else if(!strcmp((yyvsp[(1) - (3)].c), "Save")){ #if defined(HAVE_FLTK) GModel::current()->importGEOInternals(); char tmpstring[1024]; FixRelativePath((yyvsp[(2) - (3)].c), tmpstring); CreateOutputFile(tmpstring, CTX::instance()->mesh.format); #endif } else if(!strcmp((yyvsp[(1) - (3)].c), "Merge") || !strcmp((yyvsp[(1) - (3)].c), "MergeWithBoundingBox")){ // MergeWithBoundingBox is deprecated char tmpstring[1024]; FixRelativePath((yyvsp[(2) - (3)].c), tmpstring); MergeFile(tmpstring, true); } else if(!strcmp((yyvsp[(1) - (3)].c), "System")) SystemCall((yyvsp[(2) - (3)].c)); else yymsg(0, "Unknown command '%s'", (yyvsp[(1) - (3)].c)); Free((yyvsp[(1) - (3)].c)); Free((yyvsp[(2) - (3)].c)); ;} break; case 144: #line 1886 "Gmsh.y" { #if !defined(HAVE_NO_POST) if(!strcmp((yyvsp[(1) - (7)].c), "Save") && !strcmp((yyvsp[(2) - (7)].c), "View")){ int index = (int)(yyvsp[(4) - (7)].d); if(index >= 0 && index < (int)PView::list.size()){ char tmpstring[1024]; FixRelativePath((yyvsp[(6) - (7)].c), tmpstring); PView::list[index]->write(tmpstring, CTX::instance()->post.file_format); } else yymsg(0, "Unknown view %d", index); } else yymsg(0, "Unknown command '%s'", (yyvsp[(1) - (7)].c)); #endif Free((yyvsp[(1) - (7)].c)); Free((yyvsp[(2) - (7)].c)); Free((yyvsp[(6) - (7)].c)); ;} break; case 145: #line 1904 "Gmsh.y" { #if !defined(HAVE_NO_POST) if(!strcmp((yyvsp[(1) - (7)].c), "Background") && !strcmp((yyvsp[(2) - (7)].c), "Mesh") && !strcmp((yyvsp[(3) - (7)].c), "View")){ int index = (int)(yyvsp[(5) - (7)].d); if(index >= 0 && index < (int)PView::list.size()) GModel::current()->getFields()->set_background_mesh(index); else yymsg(0, "Unknown view %d", index); } else yymsg(0, "Unknown command '%s'", (yyvsp[(1) - (7)].c)); #endif Free((yyvsp[(1) - (7)].c)); Free((yyvsp[(2) - (7)].c)); Free((yyvsp[(3) - (7)].c)); ;} break; case 146: #line 1919 "Gmsh.y" { if(!strcmp((yyvsp[(1) - (3)].c), "Sleep")){ SleepInSeconds((yyvsp[(2) - (3)].d)); } else if(!strcmp((yyvsp[(1) - (3)].c), "Remesh")){ yymsg(0, "Surface remeshing must be reinterfaced"); } else if(!strcmp((yyvsp[(1) - (3)].c), "Mesh")){ int lock = CTX::instance()->threads_lock; CTX::instance()->threads_lock = 0; GModel::current()->importGEOInternals(); GModel::current()->mesh((int)(yyvsp[(2) - (3)].d)); CTX::instance()->threads_lock = lock; } else yymsg(0, "Unknown command '%s'", (yyvsp[(1) - (3)].c)); Free((yyvsp[(1) - (3)].c)); ;} break; case 147: #line 1938 "Gmsh.y" { #if !defined(HAVE_NO_POST) try { GMSH_PluginManager::instance()->action((yyvsp[(3) - (7)].c), (yyvsp[(6) - (7)].c), 0); } catch(...) { yymsg(0, "Unknown action '%s' or plugin '%s'", (yyvsp[(6) - (7)].c), (yyvsp[(3) - (7)].c)); } #endif Free((yyvsp[(3) - (7)].c)); Free((yyvsp[(6) - (7)].c)); ;} break; case 148: #line 1950 "Gmsh.y" { #if !defined(HAVE_NO_POST) if(!strcmp((yyvsp[(2) - (3)].c), "ElementsFromAllViews")) PView::combine(false, 1, CTX::instance()->post.combine_remove_orig); else if(!strcmp((yyvsp[(2) - (3)].c), "ElementsFromVisibleViews")) PView::combine(false, 0, CTX::instance()->post.combine_remove_orig); else if(!strcmp((yyvsp[(2) - (3)].c), "ElementsByViewName")) PView::combine(false, 2, CTX::instance()->post.combine_remove_orig); else if(!strcmp((yyvsp[(2) - (3)].c), "TimeStepsFromAllViews")) PView::combine(true, 1, CTX::instance()->post.combine_remove_orig); else if(!strcmp((yyvsp[(2) - (3)].c), "TimeStepsFromVisibleViews")) PView::combine(true, 0, CTX::instance()->post.combine_remove_orig); else if(!strcmp((yyvsp[(2) - (3)].c), "TimeStepsByViewName")) PView::combine(true, 2, CTX::instance()->post.combine_remove_orig); else if(!strcmp((yyvsp[(2) - (3)].c), "Views")) PView::combine(false, 1, CTX::instance()->post.combine_remove_orig); else if(!strcmp((yyvsp[(2) - (3)].c), "TimeSteps")) PView::combine(true, 2, CTX::instance()->post.combine_remove_orig); else yymsg(0, "Unknown 'Combine' command"); #endif Free((yyvsp[(2) - (3)].c)); ;} break; case 149: #line 1974 "Gmsh.y" { exit(0); ;} break; case 150: #line 1978 "Gmsh.y" { CTX::instance()->forced_bbox = 0; SetBoundingBox(); ;} break; case 151: #line 1983 "Gmsh.y" { CTX::instance()->forced_bbox = 1; SetBoundingBox((yyvsp[(3) - (15)].d), (yyvsp[(5) - (15)].d), (yyvsp[(7) - (15)].d), (yyvsp[(9) - (15)].d), (yyvsp[(11) - (15)].d), (yyvsp[(13) - (15)].d)); ;} break; case 152: #line 1988 "Gmsh.y" { #if defined(HAVE_FLTK) Draw(); #endif ;} break; case 153: #line 1999 "Gmsh.y" { LoopControlVariablesTab[ImbricatedLoop][0] = (yyvsp[(3) - (6)].d); LoopControlVariablesTab[ImbricatedLoop][1] = (yyvsp[(5) - (6)].d); LoopControlVariablesTab[ImbricatedLoop][2] = 1.0; LoopControlVariablesNameTab[ImbricatedLoop] = NULL; fgetpos(gmsh_yyin, &yyposImbricatedLoopsTab[ImbricatedLoop]); yylinenoImbricatedLoopsTab[ImbricatedLoop] = gmsh_yylineno; if((yyvsp[(3) - (6)].d) > (yyvsp[(5) - (6)].d)) skip_until("For", "EndFor"); else ImbricatedLoop++; if(ImbricatedLoop > MAX_RECUR_LOOPS - 1){ yymsg(0, "Reached maximum number of imbricated loops"); ImbricatedLoop = MAX_RECUR_LOOPS - 1; } ;} break; case 154: #line 2016 "Gmsh.y" { LoopControlVariablesTab[ImbricatedLoop][0] = (yyvsp[(3) - (8)].d); LoopControlVariablesTab[ImbricatedLoop][1] = (yyvsp[(5) - (8)].d); LoopControlVariablesTab[ImbricatedLoop][2] = (yyvsp[(7) - (8)].d); LoopControlVariablesNameTab[ImbricatedLoop] = NULL; fgetpos(gmsh_yyin, &yyposImbricatedLoopsTab[ImbricatedLoop]); yylinenoImbricatedLoopsTab[ImbricatedLoop] = gmsh_yylineno; if(((yyvsp[(7) - (8)].d) > 0. && (yyvsp[(3) - (8)].d) > (yyvsp[(5) - (8)].d)) || ((yyvsp[(7) - (8)].d) < 0. && (yyvsp[(3) - (8)].d) < (yyvsp[(5) - (8)].d))) skip_until("For", "EndFor"); else ImbricatedLoop++; if(ImbricatedLoop > MAX_RECUR_LOOPS - 1){ yymsg(0, "Reached maximum number of imbricated loops"); ImbricatedLoop = MAX_RECUR_LOOPS - 1; } ;} break; case 155: #line 2033 "Gmsh.y" { LoopControlVariablesTab[ImbricatedLoop][0] = (yyvsp[(5) - (8)].d); LoopControlVariablesTab[ImbricatedLoop][1] = (yyvsp[(7) - (8)].d); LoopControlVariablesTab[ImbricatedLoop][2] = 1.0; LoopControlVariablesNameTab[ImbricatedLoop] = (yyvsp[(2) - (8)].c); gmsh_yysymbols[(yyvsp[(2) - (8)].c)].resize(1); gmsh_yysymbols[(yyvsp[(2) - (8)].c)][0] = (yyvsp[(5) - (8)].d); fgetpos(gmsh_yyin, &yyposImbricatedLoopsTab[ImbricatedLoop]); yylinenoImbricatedLoopsTab[ImbricatedLoop] = gmsh_yylineno; if((yyvsp[(5) - (8)].d) > (yyvsp[(7) - (8)].d)) skip_until("For", "EndFor"); else ImbricatedLoop++; if(ImbricatedLoop > MAX_RECUR_LOOPS - 1){ yymsg(0, "Reached maximum number of imbricated loops"); ImbricatedLoop = MAX_RECUR_LOOPS - 1; } ;} break; case 156: #line 2052 "Gmsh.y" { LoopControlVariablesTab[ImbricatedLoop][0] = (yyvsp[(5) - (10)].d); LoopControlVariablesTab[ImbricatedLoop][1] = (yyvsp[(7) - (10)].d); LoopControlVariablesTab[ImbricatedLoop][2] = (yyvsp[(9) - (10)].d); LoopControlVariablesNameTab[ImbricatedLoop] = (yyvsp[(2) - (10)].c); gmsh_yysymbols[(yyvsp[(2) - (10)].c)].resize(1); gmsh_yysymbols[(yyvsp[(2) - (10)].c)][0] = (yyvsp[(5) - (10)].d); fgetpos(gmsh_yyin, &yyposImbricatedLoopsTab[ImbricatedLoop]); yylinenoImbricatedLoopsTab[ImbricatedLoop] = gmsh_yylineno; if(((yyvsp[(9) - (10)].d) > 0. && (yyvsp[(5) - (10)].d) > (yyvsp[(7) - (10)].d)) || ((yyvsp[(9) - (10)].d) < 0. && (yyvsp[(5) - (10)].d) < (yyvsp[(7) - (10)].d))) skip_until("For", "EndFor"); else ImbricatedLoop++; if(ImbricatedLoop > MAX_RECUR_LOOPS - 1){ yymsg(0, "Reached maximum number of imbricated loops"); ImbricatedLoop = MAX_RECUR_LOOPS - 1; } ;} break; case 157: #line 2071 "Gmsh.y" { if(ImbricatedLoop <= 0){ yymsg(0, "Invalid For/EndFor loop"); ImbricatedLoop = 0; } else{ double x0 = LoopControlVariablesTab[ImbricatedLoop - 1][0]; double x1 = LoopControlVariablesTab[ImbricatedLoop - 1][1]; double step = LoopControlVariablesTab[ImbricatedLoop - 1][2]; int do_next = (step > 0.) ? (x0 + step <= x1) : (x0 + step >= x1); if(do_next){ LoopControlVariablesTab[ImbricatedLoop - 1][0] += LoopControlVariablesTab[ImbricatedLoop - 1][2]; if(LoopControlVariablesNameTab[ImbricatedLoop - 1]){ if(!gmsh_yysymbols.count(LoopControlVariablesNameTab[ImbricatedLoop - 1])) yymsg(0, "Unknown loop variable"); else gmsh_yysymbols[LoopControlVariablesNameTab[ImbricatedLoop - 1]][0] += LoopControlVariablesTab[ImbricatedLoop - 1][2]; } fsetpos(gmsh_yyin, &yyposImbricatedLoopsTab[ImbricatedLoop - 1]); gmsh_yylineno = yylinenoImbricatedLoopsTab[ImbricatedLoop - 1]; } else ImbricatedLoop--; } ;} break; case 158: #line 2099 "Gmsh.y" { if(!FunctionManager::Instance()->createFunction ((yyvsp[(2) - (2)].c), gmsh_yyin, gmsh_yyname, gmsh_yylineno)) yymsg(0, "Redefinition of function %s", (yyvsp[(2) - (2)].c)); skip_until(NULL, "Return"); //FIXME: wee leak $2 ;} break; case 159: #line 2107 "Gmsh.y" { if(!FunctionManager::Instance()->leaveFunction (&gmsh_yyin, gmsh_yyname, gmsh_yylineno)) yymsg(0, "Error while exiting function"); ;} break; case 160: #line 2113 "Gmsh.y" { if(!FunctionManager::Instance()->enterFunction ((yyvsp[(2) - (3)].c), &gmsh_yyin, gmsh_yyname, gmsh_yylineno)) yymsg(0, "Unknown function %s", (yyvsp[(2) - (3)].c)); //FIXME: wee leak $2 ;} break; case 161: #line 2120 "Gmsh.y" { if(!(yyvsp[(3) - (4)].d)) skip_until("If", "EndIf"); ;} break; case 162: #line 2124 "Gmsh.y" { ;} break; case 163: #line 2133 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(Shape)); ExtrudeShapes(TRANSLATE, (yyvsp[(4) - (5)].l), (yyvsp[(2) - (5)].v)[0], (yyvsp[(2) - (5)].v)[1], (yyvsp[(2) - (5)].v)[2], 0., 0., 0., 0., 0., 0., 0., NULL, (yyval.l)); List_Delete((yyvsp[(4) - (5)].l)); ;} break; case 164: #line 2141 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(Shape)); ExtrudeShapes(ROTATE, (yyvsp[(10) - (11)].l), 0., 0., 0., (yyvsp[(3) - (11)].v)[0], (yyvsp[(3) - (11)].v)[1], (yyvsp[(3) - (11)].v)[2], (yyvsp[(5) - (11)].v)[0], (yyvsp[(5) - (11)].v)[1], (yyvsp[(5) - (11)].v)[2], (yyvsp[(7) - (11)].d), NULL, (yyval.l)); List_Delete((yyvsp[(10) - (11)].l)); ;} break; case 165: #line 2149 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(Shape)); ExtrudeShapes(TRANSLATE_ROTATE, (yyvsp[(12) - (13)].l), (yyvsp[(3) - (13)].v)[0], (yyvsp[(3) - (13)].v)[1], (yyvsp[(3) - (13)].v)[2], (yyvsp[(5) - (13)].v)[0], (yyvsp[(5) - (13)].v)[1], (yyvsp[(5) - (13)].v)[2], (yyvsp[(7) - (13)].v)[0], (yyvsp[(7) - (13)].v)[1], (yyvsp[(7) - (13)].v)[2], (yyvsp[(9) - (13)].d), NULL, (yyval.l)); List_Delete((yyvsp[(12) - (13)].l)); ;} break; case 166: #line 2157 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; ;} break; case 167: #line 2161 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(Shape)); ExtrudeShapes(TRANSLATE, (yyvsp[(4) - (7)].l), (yyvsp[(2) - (7)].v)[0], (yyvsp[(2) - (7)].v)[1], (yyvsp[(2) - (7)].v)[2], 0., 0., 0., 0., 0., 0., 0., &extr, (yyval.l)); List_Delete((yyvsp[(4) - (7)].l)); ;} break; case 168: #line 2169 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; ;} break; case 169: #line 2173 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(Shape)); ExtrudeShapes(ROTATE, (yyvsp[(10) - (13)].l), 0., 0., 0., (yyvsp[(3) - (13)].v)[0], (yyvsp[(3) - (13)].v)[1], (yyvsp[(3) - (13)].v)[2], (yyvsp[(5) - (13)].v)[0], (yyvsp[(5) - (13)].v)[1], (yyvsp[(5) - (13)].v)[2], (yyvsp[(7) - (13)].d), &extr, (yyval.l)); List_Delete((yyvsp[(10) - (13)].l)); ;} break; case 170: #line 2181 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; ;} break; case 171: #line 2185 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(Shape)); ExtrudeShapes(TRANSLATE_ROTATE, (yyvsp[(12) - (15)].l), (yyvsp[(3) - (15)].v)[0], (yyvsp[(3) - (15)].v)[1], (yyvsp[(3) - (15)].v)[2], (yyvsp[(5) - (15)].v)[0], (yyvsp[(5) - (15)].v)[1], (yyvsp[(5) - (15)].v)[2], (yyvsp[(7) - (15)].v)[0], (yyvsp[(7) - (15)].v)[1], (yyvsp[(7) - (15)].v)[2], (yyvsp[(9) - (15)].d), &extr, (yyval.l)); List_Delete((yyvsp[(12) - (15)].l)); ;} break; case 172: #line 2193 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; ;} break; case 173: #line 2197 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(Shape)); ExtrudeShapes(BOUNDARY_LAYER, (yyvsp[(3) - (6)].l), 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., &extr, (yyval.l)); List_Delete((yyvsp[(3) - (6)].l)); ;} break; case 174: #line 2206 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(Shape)); ExtrudeShape(TRANSLATE, MSH_POINT, (int)(yyvsp[(4) - (8)].d), (yyvsp[(6) - (8)].v)[0], (yyvsp[(6) - (8)].v)[1], (yyvsp[(6) - (8)].v)[2], 0., 0., 0., 0., 0., 0., 0., NULL, (yyval.l)); ;} break; case 175: #line 2213 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(Shape)); ExtrudeShape(TRANSLATE, MSH_SEGM_LINE, (int)(yyvsp[(4) - (8)].d), (yyvsp[(6) - (8)].v)[0], (yyvsp[(6) - (8)].v)[1], (yyvsp[(6) - (8)].v)[2], 0., 0., 0., 0., 0., 0., 0., NULL, (yyval.l)); ;} break; case 176: #line 2220 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(Shape)); ExtrudeShape(TRANSLATE, MSH_SURF_PLAN, (int)(yyvsp[(4) - (8)].d), (yyvsp[(6) - (8)].v)[0], (yyvsp[(6) - (8)].v)[1], (yyvsp[(6) - (8)].v)[2], 0., 0., 0., 0., 0., 0., 0., NULL, (yyval.l)); ;} break; case 177: #line 2227 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(Shape)); ExtrudeShape(ROTATE, MSH_POINT, (int)(yyvsp[(4) - (12)].d), 0., 0., 0., (yyvsp[(6) - (12)].v)[0], (yyvsp[(6) - (12)].v)[1], (yyvsp[(6) - (12)].v)[2], (yyvsp[(8) - (12)].v)[0], (yyvsp[(8) - (12)].v)[1], (yyvsp[(8) - (12)].v)[2], (yyvsp[(10) - (12)].d), NULL, (yyval.l)); ;} break; case 178: #line 2234 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(Shape)); ExtrudeShape(ROTATE, MSH_SEGM_LINE, (int)(yyvsp[(4) - (12)].d), 0., 0., 0., (yyvsp[(6) - (12)].v)[0], (yyvsp[(6) - (12)].v)[1], (yyvsp[(6) - (12)].v)[2], (yyvsp[(8) - (12)].v)[0], (yyvsp[(8) - (12)].v)[1], (yyvsp[(8) - (12)].v)[2], (yyvsp[(10) - (12)].d), NULL, (yyval.l)); ;} break; case 179: #line 2241 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(Shape)); ExtrudeShape(ROTATE, MSH_SURF_PLAN, (int)(yyvsp[(4) - (12)].d), 0., 0., 0., (yyvsp[(6) - (12)].v)[0], (yyvsp[(6) - (12)].v)[1], (yyvsp[(6) - (12)].v)[2], (yyvsp[(8) - (12)].v)[0], (yyvsp[(8) - (12)].v)[1], (yyvsp[(8) - (12)].v)[2], (yyvsp[(10) - (12)].d), NULL, (yyval.l)); ;} break; case 180: #line 2248 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(Shape)); ExtrudeShape(TRANSLATE_ROTATE, MSH_POINT, (int)(yyvsp[(4) - (14)].d), (yyvsp[(6) - (14)].v)[0], (yyvsp[(6) - (14)].v)[1], (yyvsp[(6) - (14)].v)[2], (yyvsp[(8) - (14)].v)[0], (yyvsp[(8) - (14)].v)[1], (yyvsp[(8) - (14)].v)[2], (yyvsp[(10) - (14)].v)[0], (yyvsp[(10) - (14)].v)[1], (yyvsp[(10) - (14)].v)[2], (yyvsp[(12) - (14)].d), NULL, (yyval.l)); ;} break; case 181: #line 2255 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(Shape)); ExtrudeShape(TRANSLATE_ROTATE, MSH_SEGM_LINE, (int)(yyvsp[(4) - (14)].d), (yyvsp[(6) - (14)].v)[0], (yyvsp[(6) - (14)].v)[1], (yyvsp[(6) - (14)].v)[2], (yyvsp[(8) - (14)].v)[0], (yyvsp[(8) - (14)].v)[1], (yyvsp[(8) - (14)].v)[2], (yyvsp[(10) - (14)].v)[0], (yyvsp[(10) - (14)].v)[1], (yyvsp[(10) - (14)].v)[2], (yyvsp[(12) - (14)].d), NULL, (yyval.l)); ;} break; case 182: #line 2262 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(Shape)); ExtrudeShape(TRANSLATE_ROTATE, MSH_SURF_PLAN, (int)(yyvsp[(4) - (14)].d), (yyvsp[(6) - (14)].v)[0], (yyvsp[(6) - (14)].v)[1], (yyvsp[(6) - (14)].v)[2], (yyvsp[(8) - (14)].v)[0], (yyvsp[(8) - (14)].v)[1], (yyvsp[(8) - (14)].v)[2], (yyvsp[(10) - (14)].v)[0], (yyvsp[(10) - (14)].v)[1], (yyvsp[(10) - (14)].v)[2], (yyvsp[(12) - (14)].d), NULL, (yyval.l)); ;} break; case 183: #line 2269 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; ;} break; case 184: #line 2273 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(Shape)); ExtrudeShape(TRANSLATE, MSH_POINT, (int)(yyvsp[(4) - (12)].d), (yyvsp[(6) - (12)].v)[0], (yyvsp[(6) - (12)].v)[1], (yyvsp[(6) - (12)].v)[2], 0., 0., 0., 0., 0., 0., 0., &extr, (yyval.l)); ;} break; case 185: #line 2280 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; ;} break; case 186: #line 2284 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(Shape)); ExtrudeShape(TRANSLATE, MSH_SEGM_LINE, (int)(yyvsp[(4) - (12)].d), (yyvsp[(6) - (12)].v)[0], (yyvsp[(6) - (12)].v)[1], (yyvsp[(6) - (12)].v)[2], 0., 0., 0., 0., 0., 0., 0., &extr, (yyval.l)); ;} break; case 187: #line 2291 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; ;} break; case 188: #line 2295 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(Shape)); ExtrudeShape(TRANSLATE, MSH_SURF_PLAN, (int)(yyvsp[(4) - (12)].d), (yyvsp[(6) - (12)].v)[0], (yyvsp[(6) - (12)].v)[1], (yyvsp[(6) - (12)].v)[2], 0., 0., 0., 0., 0., 0., 0., &extr, (yyval.l)); ;} break; case 189: #line 2302 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; ;} break; case 190: #line 2306 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(Shape)); ExtrudeShape(ROTATE, MSH_POINT, (int)(yyvsp[(4) - (16)].d), 0., 0., 0., (yyvsp[(6) - (16)].v)[0], (yyvsp[(6) - (16)].v)[1], (yyvsp[(6) - (16)].v)[2], (yyvsp[(8) - (16)].v)[0], (yyvsp[(8) - (16)].v)[1], (yyvsp[(8) - (16)].v)[2], (yyvsp[(10) - (16)].d), &extr, (yyval.l)); ;} break; case 191: #line 2313 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; ;} break; case 192: #line 2317 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(Shape)); ExtrudeShape(ROTATE, MSH_SEGM_LINE, (int)(yyvsp[(4) - (16)].d), 0., 0., 0., (yyvsp[(6) - (16)].v)[0], (yyvsp[(6) - (16)].v)[1], (yyvsp[(6) - (16)].v)[2], (yyvsp[(8) - (16)].v)[0], (yyvsp[(8) - (16)].v)[1], (yyvsp[(8) - (16)].v)[2], (yyvsp[(10) - (16)].d), &extr, (yyval.l)); ;} break; case 193: #line 2324 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; ;} break; case 194: #line 2328 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(Shape)); ExtrudeShape(ROTATE, MSH_SURF_PLAN, (int)(yyvsp[(4) - (16)].d), 0., 0., 0., (yyvsp[(6) - (16)].v)[0], (yyvsp[(6) - (16)].v)[1], (yyvsp[(6) - (16)].v)[2], (yyvsp[(8) - (16)].v)[0], (yyvsp[(8) - (16)].v)[1], (yyvsp[(8) - (16)].v)[2], (yyvsp[(10) - (16)].d), &extr, (yyval.l)); ;} break; case 195: #line 2335 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; ;} break; case 196: #line 2339 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(Shape)); ExtrudeShape(TRANSLATE_ROTATE, MSH_POINT, (int)(yyvsp[(4) - (18)].d), (yyvsp[(6) - (18)].v)[0], (yyvsp[(6) - (18)].v)[1], (yyvsp[(6) - (18)].v)[2], (yyvsp[(8) - (18)].v)[0], (yyvsp[(8) - (18)].v)[1], (yyvsp[(8) - (18)].v)[2], (yyvsp[(10) - (18)].v)[0], (yyvsp[(10) - (18)].v)[1], (yyvsp[(10) - (18)].v)[2], (yyvsp[(12) - (18)].d), &extr, (yyval.l)); ;} break; case 197: #line 2346 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; ;} break; case 198: #line 2350 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(Shape)); ExtrudeShape(TRANSLATE_ROTATE, MSH_SEGM_LINE, (int)(yyvsp[(4) - (18)].d), (yyvsp[(6) - (18)].v)[0], (yyvsp[(6) - (18)].v)[1], (yyvsp[(6) - (18)].v)[2], (yyvsp[(8) - (18)].v)[0], (yyvsp[(8) - (18)].v)[1], (yyvsp[(8) - (18)].v)[2], (yyvsp[(10) - (18)].v)[0], (yyvsp[(10) - (18)].v)[1], (yyvsp[(10) - (18)].v)[2], (yyvsp[(12) - (18)].d), &extr, (yyval.l)); ;} break; case 199: #line 2357 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; ;} break; case 200: #line 2361 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(Shape)); ExtrudeShape(TRANSLATE_ROTATE, MSH_SURF_PLAN, (int)(yyvsp[(4) - (18)].d), (yyvsp[(6) - (18)].v)[0], (yyvsp[(6) - (18)].v)[1], (yyvsp[(6) - (18)].v)[2], (yyvsp[(8) - (18)].v)[0], (yyvsp[(8) - (18)].v)[1], (yyvsp[(8) - (18)].v)[2], (yyvsp[(10) - (18)].v)[0], (yyvsp[(10) - (18)].v)[1], (yyvsp[(10) - (18)].v)[2], (yyvsp[(12) - (18)].d), &extr, (yyval.l)); ;} break; case 201: #line 2372 "Gmsh.y" { ;} break; case 202: #line 2375 "Gmsh.y" { ;} break; case 203: #line 2381 "Gmsh.y" { extr.mesh.ExtrudeMesh = true; extr.mesh.NbLayer = 1; extr.mesh.NbElmLayer.clear(); extr.mesh.hLayer.clear(); extr.mesh.NbElmLayer.push_back((int)fabs((yyvsp[(3) - (5)].d))); extr.mesh.hLayer.push_back(1.); ;} break; case 204: #line 2390 "Gmsh.y" { extr.mesh.ExtrudeMesh = true; extr.mesh.NbLayer = List_Nbr((yyvsp[(3) - (7)].l)); if(List_Nbr((yyvsp[(3) - (7)].l)) == List_Nbr((yyvsp[(5) - (7)].l))){ extr.mesh.NbElmLayer.clear(); extr.mesh.hLayer.clear(); for(int i = 0; i < List_Nbr((yyvsp[(3) - (7)].l)); i++){ double d; List_Read((yyvsp[(3) - (7)].l), i, &d); extr.mesh.NbElmLayer.push_back((d > 0) ? (int)d : 1); List_Read((yyvsp[(5) - (7)].l), i, &d); extr.mesh.hLayer.push_back(d); } } else yymsg(0, "Wrong layer definition {%d, %d}", List_Nbr((yyvsp[(3) - (7)].l)), List_Nbr((yyvsp[(5) - (7)].l))); List_Delete((yyvsp[(3) - (7)].l)); List_Delete((yyvsp[(5) - (7)].l)); ;} break; case 205: #line 2410 "Gmsh.y" { yymsg(0, "Explicit region numbers in layers are deprecated"); extr.mesh.ExtrudeMesh = true; extr.mesh.NbLayer = List_Nbr((yyvsp[(3) - (9)].l)); if(List_Nbr((yyvsp[(3) - (9)].l)) == List_Nbr((yyvsp[(5) - (9)].l)) && List_Nbr((yyvsp[(3) - (9)].l)) == List_Nbr((yyvsp[(7) - (9)].l))){ extr.mesh.NbElmLayer.clear(); extr.mesh.hLayer.clear(); for(int i = 0; i < List_Nbr((yyvsp[(3) - (9)].l)); i++){ double d; List_Read((yyvsp[(3) - (9)].l), i, &d); extr.mesh.NbElmLayer.push_back((d > 0) ? (int)d : 1); List_Read((yyvsp[(7) - (9)].l), i, &d); extr.mesh.hLayer.push_back(d); } } else yymsg(0, "Wrong layer definition {%d, %d, %d}", List_Nbr((yyvsp[(3) - (9)].l)), List_Nbr((yyvsp[(5) - (9)].l)), List_Nbr((yyvsp[(7) - (9)].l))); List_Delete((yyvsp[(3) - (9)].l)); List_Delete((yyvsp[(5) - (9)].l)); List_Delete((yyvsp[(7) - (9)].l)); ;} break; case 206: #line 2433 "Gmsh.y" { extr.mesh.Recombine = true; ;} break; case 207: #line 2437 "Gmsh.y" { int num = (int)(yyvsp[(3) - (9)].d); if(FindSurface(num)){ yymsg(0, "Surface %d already exists", num); } else{ Surface *s = Create_Surface(num, MSH_SURF_DISCRETE); Tree_Add(GModel::current()->getGEOInternals()->Surfaces, &s); extr.mesh.Holes[num].first = (yyvsp[(8) - (9)].d); extr.mesh.Holes[num].second.clear(); for(int i = 0; i < List_Nbr((yyvsp[(6) - (9)].l)); i++){ double d; List_Read((yyvsp[(6) - (9)].l), i, &d); extr.mesh.Holes[num].second.push_back((int)d); } } List_Delete((yyvsp[(6) - (9)].l)); ;} break; case 208: #line 2460 "Gmsh.y" { (yyval.v)[0] = (yyval.v)[1] = 1.; ;} break; case 209: #line 2464 "Gmsh.y" { if(!strcmp((yyvsp[(2) - (3)].c), "Progression") || !strcmp((yyvsp[(2) - (3)].c), "Power")) (yyval.v)[0] = 1.; else if(!strcmp((yyvsp[(2) - (3)].c), "Bump")) (yyval.v)[0] = 2.; else{ yymsg(0, "Unknown transfinite mesh type"); (yyval.v)[0] = 1.; } (yyval.v)[1] = (yyvsp[(3) - (3)].d); Free((yyvsp[(2) - (3)].c)); ;} break; case 210: #line 2479 "Gmsh.y" { (yyval.i) = -1; // left ;} break; case 211: #line 2483 "Gmsh.y" { if(!strcmp((yyvsp[(1) - (1)].c), "Right")) (yyval.i) = 1; else if(!strcmp((yyvsp[(1) - (1)].c), "Left")) (yyval.i) = -1; else // alternated (yyval.i) = 0; Free((yyvsp[(1) - (1)].c)); ;} break; case 212: #line 2495 "Gmsh.y" { (yyval.l) = List_Create(1, 1, sizeof(double)); ;} break; case 213: #line 2499 "Gmsh.y" { (yyval.l) = (yyvsp[(2) - (2)].l); ;} break; case 214: #line 2504 "Gmsh.y" { (yyval.i) = 45; ;} break; case 215: #line 2508 "Gmsh.y" { (yyval.i) = (int)(yyvsp[(2) - (2)].d); ;} break; case 216: #line 2515 "Gmsh.y" { int type = (int)(yyvsp[(6) - (7)].v)[0]; double coef = fabs((yyvsp[(6) - (7)].v)[1]); if(!(yyvsp[(3) - (7)].l)){ List_T *tmp = Tree2List(GModel::current()->getGEOInternals()->Curves); if(List_Nbr(tmp)){ for(int i = 0; i < List_Nbr(tmp); i++){ Curve *c; List_Read(tmp, i, &c); c->Method = MESH_TRANSFINITE; c->nbPointsTransfinite = ((yyvsp[(5) - (7)].d) > 2) ? (int)(yyvsp[(5) - (7)].d) : 2; c->typeTransfinite = type; c->coeffTransfinite = coef; } } else{ for(GModel::eiter it = GModel::current()->firstEdge(); it != GModel::current()->lastEdge(); it++){ (*it)->meshAttributes.Method = MESH_TRANSFINITE; (*it)->meshAttributes.nbPointsTransfinite = ((yyvsp[(5) - (7)].d) > 2) ? (int)(yyvsp[(5) - (7)].d) : 2; (*it)->meshAttributes.typeTransfinite = type; (*it)->meshAttributes.coeffTransfinite = coef; } } List_Delete(tmp); } else{ for(int i = 0; i < List_Nbr((yyvsp[(3) - (7)].l)); i++){ double d; List_Read((yyvsp[(3) - (7)].l), i, &d); int j = (int)fabs(d); Curve *c = FindCurve(j); if(c){ c->Method = MESH_TRANSFINITE; c->nbPointsTransfinite = ((yyvsp[(5) - (7)].d) > 2) ? (int)(yyvsp[(5) - (7)].d) : 2; c->typeTransfinite = type * sign(d); c->coeffTransfinite = coef; } else{ GEdge *ge = GModel::current()->getEdgeByTag(j); if(ge){ ge->meshAttributes.Method = MESH_TRANSFINITE; ge->meshAttributes.nbPointsTransfinite = ((yyvsp[(5) - (7)].d) > 2) ? (int)(yyvsp[(5) - (7)].d) : 2; ge->meshAttributes.typeTransfinite = type * sign(d); ge->meshAttributes.coeffTransfinite = coef; } else yymsg(0, "Unknown line %d", j); } } List_Delete((yyvsp[(3) - (7)].l)); } ;} break; case 217: #line 2569 "Gmsh.y" { int k = List_Nbr((yyvsp[(4) - (6)].l)); if(k != 0 && k != 3 && k != 4){ yymsg(0, "Wrong definition of Transfinite Surface: 0, 3 or 4 points needed"); } else{ if(!(yyvsp[(3) - (6)].l)){ List_T *tmp = Tree2List(GModel::current()->getGEOInternals()->Surfaces); if(List_Nbr(tmp)){ for(int i = 0; i < List_Nbr(tmp); i++){ Surface *s; List_Read(tmp, i, &s); s->Method = MESH_TRANSFINITE; s->Recombine_Dir = (yyvsp[(5) - (6)].i); List_Reset(s->TrsfPoints); } } else{ for(GModel::fiter it = GModel::current()->firstFace(); it != GModel::current()->lastFace(); it++){ (*it)->meshAttributes.Method = MESH_TRANSFINITE; (*it)->meshAttributes.transfiniteArrangement = (yyvsp[(5) - (6)].i); } } List_Delete(tmp); } else{ for(int i = 0; i < List_Nbr((yyvsp[(3) - (6)].l)); i++){ double d; List_Read((yyvsp[(3) - (6)].l), i, &d); Surface *s = FindSurface((int)d); if(s){ s->Method = MESH_TRANSFINITE; s->Recombine_Dir = (yyvsp[(5) - (6)].i); List_Reset(s->TrsfPoints); for(int j = 0; j < k; j++){ double p; List_Read((yyvsp[(4) - (6)].l), j, &p); Vertex *v = FindPoint((int)fabs(p)); if(v) List_Add(s->TrsfPoints, &v); else yymsg(0, "Unknown point %d", (int)fabs(p)); } } else{ GFace *gf = GModel::current()->getFaceByTag((int)d); if(gf){ gf->meshAttributes.Method = MESH_TRANSFINITE; gf->meshAttributes.transfiniteArrangement = (yyvsp[(5) - (6)].i); for(int j = 0; j < k; j++){ double p; List_Read((yyvsp[(4) - (6)].l), j, &p); GVertex *gv = GModel::current()->getVertexByTag((int)fabs(p)); if(gv) gf->meshAttributes.corners.push_back(gv); else yymsg(0, "Unknown point %d", (int)fabs(p)); } } else yymsg(0, "Unknown surface %d", (int)d); } } List_Delete((yyvsp[(3) - (6)].l)); } } List_Delete((yyvsp[(4) - (6)].l)); ;} break; case 218: #line 2639 "Gmsh.y" { yymsg(1, "Elliptic Surface is deprecated: use Transfinite instead (with smoothing)"); List_Delete((yyvsp[(7) - (8)].l)); ;} break; case 219: #line 2644 "Gmsh.y" { int k = List_Nbr((yyvsp[(4) - (5)].l)); if(k != 0 && k != 6 && k != 8){ yymsg(0, "Wrong definition of Transfinite Volume: " "%d points instead of 6 or 8", k); } else{ if(!(yyvsp[(3) - (5)].l)){ List_T *tmp = Tree2List(GModel::current()->getGEOInternals()->Volumes); if(List_Nbr(tmp)){ for(int i = 0; i < List_Nbr(tmp); i++){ Volume *v; List_Read(tmp, i, &v); v->Method = MESH_TRANSFINITE; List_Reset(v->TrsfPoints); } } else{ for(GModel::riter it = GModel::current()->firstRegion(); it != GModel::current()->lastRegion(); it++){ (*it)->meshAttributes.Method = MESH_TRANSFINITE; } } List_Delete(tmp); } else{ for(int i = 0; i < List_Nbr((yyvsp[(3) - (5)].l)); i++){ double d; List_Read((yyvsp[(3) - (5)].l), i, &d); Volume *v = FindVolume((int)d); if(v){ v->Method = MESH_TRANSFINITE; List_Reset(v->TrsfPoints); for(int i = 0; i < k; i++){ double p; List_Read((yyvsp[(4) - (5)].l), i, &p); Vertex *vert = FindPoint((int)fabs(p)); if(vert) List_Add(v->TrsfPoints, &vert); else yymsg(0, "Unknown point %d", (int)fabs(p)); } } else{ GRegion *gr = GModel::current()->getRegionByTag((int)d); if(gr){ gr->meshAttributes.Method = MESH_TRANSFINITE; for(int i = 0; i < k; i++){ double p; List_Read((yyvsp[(4) - (5)].l), i, &p); GVertex *gv = GModel::current()->getVertexByTag((int)fabs(p)); if(gv) gr->meshAttributes.corners.push_back(gv); else yymsg(0, "Unknown point %d", (int)fabs(p)); } } else yymsg(0, "Unknown volume %d", (int)d); } } List_Delete((yyvsp[(3) - (5)].l)); } } List_Delete((yyvsp[(4) - (5)].l)); ;} break; case 220: #line 2711 "Gmsh.y" { if(!(yyvsp[(3) - (5)].l)){ List_T *tmp = Tree2List(GModel::current()->getGEOInternals()->Surfaces); if(List_Nbr(tmp)){ for(int i = 0; i < List_Nbr(tmp); i++){ Surface *s; List_Read(tmp, i, &s); s->Recombine = 1; s->RecombineAngle = (yyvsp[(4) - (5)].i); } } else{ for(GModel::fiter it = GModel::current()->firstFace(); it != GModel::current()->lastFace(); it++){ (*it)->meshAttributes.recombine = 1; (*it)->meshAttributes.recombineAngle = (yyvsp[(4) - (5)].i); } } List_Delete(tmp); } else{ for(int i = 0; i < List_Nbr((yyvsp[(3) - (5)].l)); i++){ double d; List_Read((yyvsp[(3) - (5)].l), i, &d); Surface *s = FindSurface((int)d); if(s){ s->Recombine = 1; s->RecombineAngle = (yyvsp[(4) - (5)].i); } else{ GFace *gf = GModel::current()->getFaceByTag((int)d); if(gf){ gf->meshAttributes.recombine = 1; gf->meshAttributes.recombineAngle = (yyvsp[(4) - (5)].i); } else yymsg(1, "Unknown surface %d", (int)d); } } List_Delete((yyvsp[(3) - (5)].l)); } ;} break; case 221: #line 2754 "Gmsh.y" { for(int i = 0; i < List_Nbr((yyvsp[(3) - (6)].l)); i++){ double d; List_Read((yyvsp[(3) - (6)].l), i, &d); int j = (int)d; Surface *s = FindSurface(j); if(s){ s->TransfiniteSmoothing = (int)(yyvsp[(5) - (6)].d); } else{ GFace *gf = GModel::current()->getFaceByTag(j); if(gf) gf->meshAttributes.transfiniteSmoothing = (int)(yyvsp[(5) - (6)].d); else yymsg(1, "Unknown surface %d", (int)(yyvsp[(5) - (6)].d)); } } List_Delete((yyvsp[(3) - (6)].l)); ;} break; case 222: #line 2780 "Gmsh.y" { Surface *s = FindSurface((int)(yyvsp[(8) - (10)].d)); if(s){ setSurfaceEmbeddedPoints(s, (yyvsp[(3) - (10)].l)); } else{ GFace *gf = GModel::current()->getFaceByTag((int)(yyvsp[(8) - (10)].d)); if(gf){ for(int i = 0; i < List_Nbr((yyvsp[(3) - (10)].l)); i++){ int iPoint; List_Read((yyvsp[(3) - (10)].l), i, &iPoint); GVertex *gv = GModel::current()->getVertexByTag(iPoint); if(gv) gf->addEmbeddedVertex(gv); else yymsg(0, "Unknown point %d", iPoint); } } else yymsg(0, "Unknown surface %d", (int)(yyvsp[(8) - (10)].d)); } ;} break; case 223: #line 2803 "Gmsh.y" { Surface *s = FindSurface((int)(yyvsp[(8) - (10)].d)); if(s){ setSurfaceEmbeddedCurves(s, (yyvsp[(3) - (10)].l)); } else{ GFace *gf = GModel::current()->getFaceByTag((int)(yyvsp[(8) - (10)].d)); if(gf){ for(int i = 0; i < List_Nbr((yyvsp[(3) - (10)].l)); i++){ int iCurve; List_Read((yyvsp[(3) - (10)].l), i, &iCurve); GEdge *ge = GModel::current()->getEdgeByTag(iCurve); if(ge) gf->addEmbeddedEdge(ge); else yymsg(0, "Unknown line %d", iCurve); } } else yymsg(0, "Unknown surface %d", (int)(yyvsp[(8) - (10)].d)); } ;} break; case 224: #line 2826 "Gmsh.y" { ;} break; case 225: #line 2829 "Gmsh.y" { ;} break; case 226: #line 2838 "Gmsh.y" { ReplaceAllDuplicates(); ;} break; case 227: #line 2842 "Gmsh.y" { if(!strcmp((yyvsp[(2) - (3)].c), "Geometry")) ReplaceAllDuplicates(); else if(!strcmp((yyvsp[(2) - (3)].c), "Mesh")) GModel::current()->removeDuplicateMeshVertices(CTX::instance()->geom.tolerance); else yymsg(0, "Unknown coherence command"); Free((yyvsp[(2) - (3)].c)); ;} break; case 228: #line 2857 "Gmsh.y" { (yyval.d) = (yyvsp[(1) - (1)].d); ;} break; case 229: #line 2858 "Gmsh.y" { (yyval.d) = (yyvsp[(2) - (3)].d); ;} break; case 230: #line 2859 "Gmsh.y" { (yyval.d) = -(yyvsp[(2) - (2)].d); ;} break; case 231: #line 2860 "Gmsh.y" { (yyval.d) = (yyvsp[(2) - (2)].d); ;} break; case 232: #line 2861 "Gmsh.y" { (yyval.d) = !(yyvsp[(2) - (2)].d); ;} break; case 233: #line 2862 "Gmsh.y" { (yyval.d) = (yyvsp[(1) - (3)].d) - (yyvsp[(3) - (3)].d); ;} break; case 234: #line 2863 "Gmsh.y" { (yyval.d) = (yyvsp[(1) - (3)].d) + (yyvsp[(3) - (3)].d); ;} break; case 235: #line 2864 "Gmsh.y" { (yyval.d) = (yyvsp[(1) - (3)].d) * (yyvsp[(3) - (3)].d); ;} break; case 236: #line 2866 "Gmsh.y" { if(!(yyvsp[(3) - (3)].d)) yymsg(0, "Division by zero in '%g / %g'", (yyvsp[(1) - (3)].d), (yyvsp[(3) - (3)].d)); else (yyval.d) = (yyvsp[(1) - (3)].d) / (yyvsp[(3) - (3)].d); ;} break; case 237: #line 2872 "Gmsh.y" { (yyval.d) = (int)(yyvsp[(1) - (3)].d) % (int)(yyvsp[(3) - (3)].d); ;} break; case 238: #line 2873 "Gmsh.y" { (yyval.d) = pow((yyvsp[(1) - (3)].d), (yyvsp[(3) - (3)].d)); ;} break; case 239: #line 2874 "Gmsh.y" { (yyval.d) = (yyvsp[(1) - (3)].d) < (yyvsp[(3) - (3)].d); ;} break; case 240: #line 2875 "Gmsh.y" { (yyval.d) = (yyvsp[(1) - (3)].d) > (yyvsp[(3) - (3)].d); ;} break; case 241: #line 2876 "Gmsh.y" { (yyval.d) = (yyvsp[(1) - (3)].d) <= (yyvsp[(3) - (3)].d); ;} break; case 242: #line 2877 "Gmsh.y" { (yyval.d) = (yyvsp[(1) - (3)].d) >= (yyvsp[(3) - (3)].d); ;} break; case 243: #line 2878 "Gmsh.y" { (yyval.d) = (yyvsp[(1) - (3)].d) == (yyvsp[(3) - (3)].d); ;} break; case 244: #line 2879 "Gmsh.y" { (yyval.d) = (yyvsp[(1) - (3)].d) != (yyvsp[(3) - (3)].d); ;} break; case 245: #line 2880 "Gmsh.y" { (yyval.d) = (yyvsp[(1) - (3)].d) && (yyvsp[(3) - (3)].d); ;} break; case 246: #line 2881 "Gmsh.y" { (yyval.d) = (yyvsp[(1) - (3)].d) || (yyvsp[(3) - (3)].d); ;} break; case 247: #line 2882 "Gmsh.y" { (yyval.d) = (yyvsp[(1) - (5)].d) ? (yyvsp[(3) - (5)].d) : (yyvsp[(5) - (5)].d); ;} break; case 248: #line 2883 "Gmsh.y" { (yyval.d) = exp((yyvsp[(3) - (4)].d)); ;} break; case 249: #line 2884 "Gmsh.y" { (yyval.d) = log((yyvsp[(3) - (4)].d)); ;} break; case 250: #line 2885 "Gmsh.y" { (yyval.d) = log10((yyvsp[(3) - (4)].d)); ;} break; case 251: #line 2886 "Gmsh.y" { (yyval.d) = sqrt((yyvsp[(3) - (4)].d)); ;} break; case 252: #line 2887 "Gmsh.y" { (yyval.d) = sin((yyvsp[(3) - (4)].d)); ;} break; case 253: #line 2888 "Gmsh.y" { (yyval.d) = asin((yyvsp[(3) - (4)].d)); ;} break; case 254: #line 2889 "Gmsh.y" { (yyval.d) = cos((yyvsp[(3) - (4)].d)); ;} break; case 255: #line 2890 "Gmsh.y" { (yyval.d) = acos((yyvsp[(3) - (4)].d)); ;} break; case 256: #line 2891 "Gmsh.y" { (yyval.d) = tan((yyvsp[(3) - (4)].d)); ;} break; case 257: #line 2892 "Gmsh.y" { (yyval.d) = atan((yyvsp[(3) - (4)].d)); ;} break; case 258: #line 2893 "Gmsh.y" { (yyval.d) = atan2((yyvsp[(3) - (6)].d), (yyvsp[(5) - (6)].d));;} break; case 259: #line 2894 "Gmsh.y" { (yyval.d) = sinh((yyvsp[(3) - (4)].d)); ;} break; case 260: #line 2895 "Gmsh.y" { (yyval.d) = cosh((yyvsp[(3) - (4)].d)); ;} break; case 261: #line 2896 "Gmsh.y" { (yyval.d) = tanh((yyvsp[(3) - (4)].d)); ;} break; case 262: #line 2897 "Gmsh.y" { (yyval.d) = fabs((yyvsp[(3) - (4)].d)); ;} break; case 263: #line 2898 "Gmsh.y" { (yyval.d) = floor((yyvsp[(3) - (4)].d)); ;} break; case 264: #line 2899 "Gmsh.y" { (yyval.d) = ceil((yyvsp[(3) - (4)].d)); ;} break; case 265: #line 2900 "Gmsh.y" { (yyval.d) = fmod((yyvsp[(3) - (6)].d), (yyvsp[(5) - (6)].d)); ;} break; case 266: #line 2901 "Gmsh.y" { (yyval.d) = fmod((yyvsp[(3) - (6)].d), (yyvsp[(5) - (6)].d)); ;} break; case 267: #line 2902 "Gmsh.y" { (yyval.d) = sqrt((yyvsp[(3) - (6)].d) * (yyvsp[(3) - (6)].d) + (yyvsp[(5) - (6)].d) * (yyvsp[(5) - (6)].d)); ;} break; case 268: #line 2903 "Gmsh.y" { (yyval.d) = (yyvsp[(3) - (4)].d) * (double)rand() / (double)RAND_MAX; ;} break; case 269: #line 2905 "Gmsh.y" { (yyval.d) = exp((yyvsp[(3) - (4)].d)); ;} break; case 270: #line 2906 "Gmsh.y" { (yyval.d) = log((yyvsp[(3) - (4)].d)); ;} break; case 271: #line 2907 "Gmsh.y" { (yyval.d) = log10((yyvsp[(3) - (4)].d)); ;} break; case 272: #line 2908 "Gmsh.y" { (yyval.d) = sqrt((yyvsp[(3) - (4)].d)); ;} break; case 273: #line 2909 "Gmsh.y" { (yyval.d) = sin((yyvsp[(3) - (4)].d)); ;} break; case 274: #line 2910 "Gmsh.y" { (yyval.d) = asin((yyvsp[(3) - (4)].d)); ;} break; case 275: #line 2911 "Gmsh.y" { (yyval.d) = cos((yyvsp[(3) - (4)].d)); ;} break; case 276: #line 2912 "Gmsh.y" { (yyval.d) = acos((yyvsp[(3) - (4)].d)); ;} break; case 277: #line 2913 "Gmsh.y" { (yyval.d) = tan((yyvsp[(3) - (4)].d)); ;} break; case 278: #line 2914 "Gmsh.y" { (yyval.d) = atan((yyvsp[(3) - (4)].d)); ;} break; case 279: #line 2915 "Gmsh.y" { (yyval.d) = atan2((yyvsp[(3) - (6)].d), (yyvsp[(5) - (6)].d));;} break; case 280: #line 2916 "Gmsh.y" { (yyval.d) = sinh((yyvsp[(3) - (4)].d)); ;} break; case 281: #line 2917 "Gmsh.y" { (yyval.d) = cosh((yyvsp[(3) - (4)].d)); ;} break; case 282: #line 2918 "Gmsh.y" { (yyval.d) = tanh((yyvsp[(3) - (4)].d)); ;} break; case 283: #line 2919 "Gmsh.y" { (yyval.d) = fabs((yyvsp[(3) - (4)].d)); ;} break; case 284: #line 2920 "Gmsh.y" { (yyval.d) = floor((yyvsp[(3) - (4)].d)); ;} break; case 285: #line 2921 "Gmsh.y" { (yyval.d) = ceil((yyvsp[(3) - (4)].d)); ;} break; case 286: #line 2922 "Gmsh.y" { (yyval.d) = fmod((yyvsp[(3) - (6)].d), (yyvsp[(5) - (6)].d)); ;} break; case 287: #line 2923 "Gmsh.y" { (yyval.d) = fmod((yyvsp[(3) - (6)].d), (yyvsp[(5) - (6)].d)); ;} break; case 288: #line 2924 "Gmsh.y" { (yyval.d) = sqrt((yyvsp[(3) - (6)].d) * (yyvsp[(3) - (6)].d) + (yyvsp[(5) - (6)].d) * (yyvsp[(5) - (6)].d)); ;} break; case 289: #line 2925 "Gmsh.y" { (yyval.d) = (yyvsp[(3) - (4)].d) * (double)rand() / (double)RAND_MAX; ;} break; case 290: #line 2934 "Gmsh.y" { (yyval.d) = (yyvsp[(1) - (1)].d); ;} break; case 291: #line 2935 "Gmsh.y" { (yyval.d) = 3.141592653589793; ;} break; case 292: #line 2936 "Gmsh.y" { (yyval.d) = Msg::GetCommRank(); ;} break; case 293: #line 2937 "Gmsh.y" { (yyval.d) = Msg::GetCommSize(); ;} break; case 294: #line 2938 "Gmsh.y" { (yyval.d) = Get_GmshMajorVersion(); ;} break; case 295: #line 2939 "Gmsh.y" { (yyval.d) = Get_GmshMinorVersion(); ;} break; case 296: #line 2940 "Gmsh.y" { (yyval.d) = Get_GmshPatchVersion(); ;} break; case 297: #line 2945 "Gmsh.y" { if(!gmsh_yysymbols.count((yyvsp[(1) - (1)].c))){ yymsg(0, "Unknown variable '%s'", (yyvsp[(1) - (1)].c)); (yyval.d) = 0.; } else (yyval.d) = gmsh_yysymbols[(yyvsp[(1) - (1)].c)][0]; Free((yyvsp[(1) - (1)].c)); ;} break; case 298: #line 2958 "Gmsh.y" { char tmpstring[1024]; sprintf(tmpstring, "%s_%d", (yyvsp[(1) - (5)].c), (int)(yyvsp[(4) - (5)].d)) ; if(!gmsh_yysymbols.count(tmpstring)){ yymsg(0, "Unknown variable '%s'", tmpstring); (yyval.d) = 0.; } else (yyval.d) = gmsh_yysymbols[tmpstring][0]; Free((yyvsp[(1) - (5)].c)); ;} break; case 299: #line 2970 "Gmsh.y" { int index = (int)(yyvsp[(3) - (4)].d); if(!gmsh_yysymbols.count((yyvsp[(1) - (4)].c))){ yymsg(0, "Unknown variable '%s'", (yyvsp[(1) - (4)].c)); (yyval.d) = 0.; } else if(gmsh_yysymbols[(yyvsp[(1) - (4)].c)].size() < index + 1){ yymsg(0, "Uninitialized variable '%s[%d]'", (yyvsp[(1) - (4)].c), index); (yyval.d) = 0.; } else (yyval.d) = gmsh_yysymbols[(yyvsp[(1) - (4)].c)][index]; Free((yyvsp[(1) - (4)].c)); ;} break; case 300: #line 2985 "Gmsh.y" { if(!gmsh_yysymbols.count((yyvsp[(2) - (4)].c))){ yymsg(0, "Unknown variable '%s'", (yyvsp[(2) - (4)].c)); (yyval.d) = 0.; } else (yyval.d) = gmsh_yysymbols[(yyvsp[(2) - (4)].c)].size(); Free((yyvsp[(2) - (4)].c)); ;} break; case 301: #line 2995 "Gmsh.y" { if(!gmsh_yysymbols.count((yyvsp[(1) - (2)].c))){ yymsg(0, "Unknown variable '%s'", (yyvsp[(1) - (2)].c)); (yyval.d) = 0.; } else (yyval.d) = (gmsh_yysymbols[(yyvsp[(1) - (2)].c)][0] += (yyvsp[(2) - (2)].i)); Free((yyvsp[(1) - (2)].c)); ;} break; case 302: #line 3005 "Gmsh.y" { int index = (int)(yyvsp[(3) - (5)].d); if(!gmsh_yysymbols.count((yyvsp[(1) - (5)].c))){ yymsg(0, "Unknown variable '%s'", (yyvsp[(1) - (5)].c)); (yyval.d) = 0.; } else if(gmsh_yysymbols[(yyvsp[(1) - (5)].c)].size() < index + 1){ yymsg(0, "Uninitialized variable '%s[%d]'", (yyvsp[(1) - (5)].c), index); (yyval.d) = 0.; } else (yyval.d) = (gmsh_yysymbols[(yyvsp[(1) - (5)].c)][index] += (yyvsp[(5) - (5)].i)); Free((yyvsp[(1) - (5)].c)); ;} break; case 303: #line 3023 "Gmsh.y" { NumberOption(GMSH_GET, (yyvsp[(1) - (3)].c), 0, (yyvsp[(3) - (3)].c), (yyval.d)); Free((yyvsp[(1) - (3)].c)); Free((yyvsp[(3) - (3)].c)); ;} break; case 304: #line 3028 "Gmsh.y" { NumberOption(GMSH_GET, (yyvsp[(1) - (6)].c), (int)(yyvsp[(3) - (6)].d), (yyvsp[(6) - (6)].c), (yyval.d)); Free((yyvsp[(1) - (6)].c)); Free((yyvsp[(6) - (6)].c)); ;} break; case 305: #line 3033 "Gmsh.y" { double d = 0.; if(NumberOption(GMSH_GET, (yyvsp[(1) - (4)].c), 0, (yyvsp[(3) - (4)].c), d)){ d += (yyvsp[(4) - (4)].i); NumberOption(GMSH_SET|GMSH_GUI, (yyvsp[(1) - (4)].c), 0, (yyvsp[(3) - (4)].c), d); (yyval.d) = d; } Free((yyvsp[(1) - (4)].c)); Free((yyvsp[(3) - (4)].c)); ;} break; case 306: #line 3043 "Gmsh.y" { double d = 0.; if(NumberOption(GMSH_GET, (yyvsp[(1) - (7)].c), (int)(yyvsp[(3) - (7)].d), (yyvsp[(6) - (7)].c), d)){ d += (yyvsp[(7) - (7)].i); NumberOption(GMSH_SET|GMSH_GUI, (yyvsp[(1) - (7)].c), (int)(yyvsp[(3) - (7)].d), (yyvsp[(6) - (7)].c), d); (yyval.d) = d; } Free((yyvsp[(1) - (7)].c)); Free((yyvsp[(6) - (7)].c)); ;} break; case 307: #line 3053 "Gmsh.y" { (yyval.d) = Msg::GetValue((yyvsp[(3) - (6)].c), (yyvsp[(5) - (6)].d)); Free((yyvsp[(3) - (6)].c)); ;} break; case 308: #line 3061 "Gmsh.y" { memcpy((yyval.v), (yyvsp[(1) - (1)].v), 5*sizeof(double)); ;} break; case 309: #line 3065 "Gmsh.y" { for(int i = 0; i < 5; i++) (yyval.v)[i] = -(yyvsp[(2) - (2)].v)[i]; ;} break; case 310: #line 3069 "Gmsh.y" { for(int i = 0; i < 5; i++) (yyval.v)[i] = (yyvsp[(2) - (2)].v)[i]; ;} break; case 311: #line 3073 "Gmsh.y" { for(int i = 0; i < 5; i++) (yyval.v)[i] = (yyvsp[(1) - (3)].v)[i] - (yyvsp[(3) - (3)].v)[i]; ;} break; case 312: #line 3077 "Gmsh.y" { for(int i = 0; i < 5; i++) (yyval.v)[i] = (yyvsp[(1) - (3)].v)[i] + (yyvsp[(3) - (3)].v)[i]; ;} break; case 313: #line 3084 "Gmsh.y" { (yyval.v)[0] = (yyvsp[(2) - (11)].d); (yyval.v)[1] = (yyvsp[(4) - (11)].d); (yyval.v)[2] = (yyvsp[(6) - (11)].d); (yyval.v)[3] = (yyvsp[(8) - (11)].d); (yyval.v)[4] = (yyvsp[(10) - (11)].d); ;} break; case 314: #line 3088 "Gmsh.y" { (yyval.v)[0] = (yyvsp[(2) - (9)].d); (yyval.v)[1] = (yyvsp[(4) - (9)].d); (yyval.v)[2] = (yyvsp[(6) - (9)].d); (yyval.v)[3] = (yyvsp[(8) - (9)].d); (yyval.v)[4] = 1.0; ;} break; case 315: #line 3092 "Gmsh.y" { (yyval.v)[0] = (yyvsp[(2) - (7)].d); (yyval.v)[1] = (yyvsp[(4) - (7)].d); (yyval.v)[2] = (yyvsp[(6) - (7)].d); (yyval.v)[3] = 0.0; (yyval.v)[4] = 1.0; ;} break; case 316: #line 3096 "Gmsh.y" { (yyval.v)[0] = (yyvsp[(2) - (7)].d); (yyval.v)[1] = (yyvsp[(4) - (7)].d); (yyval.v)[2] = (yyvsp[(6) - (7)].d); (yyval.v)[3] = 0.0; (yyval.v)[4] = 1.0; ;} break; case 317: #line 3103 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(List_T*)); List_Add((yyval.l), &((yyvsp[(1) - (1)].l))); ;} break; case 318: #line 3108 "Gmsh.y" { List_Add((yyval.l), &((yyvsp[(3) - (3)].l))); ;} break; case 319: #line 3115 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(double)); List_Add((yyval.l), &((yyvsp[(1) - (1)].d))); ;} break; case 320: #line 3120 "Gmsh.y" { (yyval.l) = (yyvsp[(1) - (1)].l); ;} break; case 321: #line 3124 "Gmsh.y" { // creates an empty list (yyval.l) = List_Create(2, 1, sizeof(double)); ;} break; case 322: #line 3129 "Gmsh.y" { (yyval.l) = (yyvsp[(2) - (3)].l); ;} break; case 323: #line 3133 "Gmsh.y" { (yyval.l) = (yyvsp[(3) - (4)].l); for(int i = 0; i < List_Nbr((yyval.l)); i++){ double *pd = (double*)List_Pointer((yyval.l), i); (*pd) = - (*pd); } ;} break; case 324: #line 3141 "Gmsh.y" { (yyval.l) = (yyvsp[(4) - (5)].l); for(int i = 0; i < List_Nbr((yyval.l)); i++){ double *pd = (double*)List_Pointer((yyval.l), i); (*pd) *= (yyvsp[(1) - (5)].d); } ;} break; case 325: #line 3152 "Gmsh.y" { (yyval.l) = (yyvsp[(1) - (1)].l); ;} break; case 326: #line 3156 "Gmsh.y" { if(!strcmp((yyvsp[(1) - (1)].c), "*") || !strcmp((yyvsp[(1) - (1)].c), "all")) (yyval.l) = 0; else{ yyerror("Unknown special string for list replacement"); (yyval.l) = List_Create(2, 1, sizeof(double)); } ;} break; case 327: #line 3168 "Gmsh.y" { (yyval.l) = (yyvsp[(2) - (2)].l); for(int i = 0; i < List_Nbr((yyval.l)); i++){ double *pd = (double*)List_Pointer((yyval.l), i); (*pd) = - (*pd); } ;} break; case 328: #line 3176 "Gmsh.y" { (yyval.l) = (yyvsp[(3) - (3)].l); for(int i = 0; i < List_Nbr((yyval.l)); i++){ double *pd = (double*)List_Pointer((yyval.l), i); (*pd) *= (yyvsp[(1) - (3)].d); } ;} break; case 329: #line 3184 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(double)); for(double d = (yyvsp[(1) - (3)].d); ((yyvsp[(1) - (3)].d) < (yyvsp[(3) - (3)].d)) ? (d <= (yyvsp[(3) - (3)].d)) : (d >= (yyvsp[(3) - (3)].d)); ((yyvsp[(1) - (3)].d) < (yyvsp[(3) - (3)].d)) ? (d += 1.) : (d -= 1.)) List_Add((yyval.l), &d); ;} break; case 330: #line 3191 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(double)); if(!(yyvsp[(5) - (5)].d) || ((yyvsp[(1) - (5)].d) < (yyvsp[(3) - (5)].d) && (yyvsp[(5) - (5)].d) < 0) || ((yyvsp[(1) - (5)].d) > (yyvsp[(3) - (5)].d) && (yyvsp[(5) - (5)].d) > 0)){ yymsg(0, "Wrong increment in '%g:%g:%g'", (yyvsp[(1) - (5)].d), (yyvsp[(3) - (5)].d), (yyvsp[(5) - (5)].d)); List_Add((yyval.l), &((yyvsp[(1) - (5)].d))); } else for(double d = (yyvsp[(1) - (5)].d); ((yyvsp[(5) - (5)].d) > 0) ? (d <= (yyvsp[(3) - (5)].d)) : (d >= (yyvsp[(3) - (5)].d)); d += (yyvsp[(5) - (5)].d)) List_Add((yyval.l), &d); ;} break; case 331: #line 3202 "Gmsh.y" { // Returns the coordinates of a point and fills a list with it. // This allows to ensure e.g. that relative point positions are // always conserved Vertex *v = FindPoint((int)(yyvsp[(3) - (4)].d)); (yyval.l) = List_Create(3, 1, sizeof(double)); if(!v) { yymsg(0, "Unknown point '%d'", (int)(yyvsp[(3) - (4)].d)); double d = 0.0; List_Add((yyval.l), &d); List_Add((yyval.l), &d); List_Add((yyval.l), &d); } else{ List_Add((yyval.l), &v->Pos.X); List_Add((yyval.l), &v->Pos.Y); List_Add((yyval.l), &v->Pos.Z); } ;} break; case 332: #line 3222 "Gmsh.y" { (yyval.l) = List_Create(List_Nbr((yyvsp[(1) - (1)].l)), 1, sizeof(double)); for(int i = 0; i < List_Nbr((yyvsp[(1) - (1)].l)); i++){ Shape *s = (Shape*) List_Pointer((yyvsp[(1) - (1)].l), i); double d = s->Num; List_Add((yyval.l), &d); } List_Delete((yyvsp[(1) - (1)].l)); ;} break; case 333: #line 3232 "Gmsh.y" { (yyval.l) = List_Create(List_Nbr((yyvsp[(1) - (1)].l)), 1, sizeof(double)); for(int i = 0; i < List_Nbr((yyvsp[(1) - (1)].l)); i++){ Shape *s = (Shape*) List_Pointer((yyvsp[(1) - (1)].l), i); double d = s->Num; List_Add((yyval.l), &d); } List_Delete((yyvsp[(1) - (1)].l)); ;} break; case 334: #line 3242 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(double)); if(!gmsh_yysymbols.count((yyvsp[(1) - (3)].c))) yymsg(0, "Unknown variable '%s'", (yyvsp[(1) - (3)].c)); else for(unsigned int i = 0; i < gmsh_yysymbols[(yyvsp[(1) - (3)].c)].size(); i++) List_Add((yyval.l), &gmsh_yysymbols[(yyvsp[(1) - (3)].c)][i]); Free((yyvsp[(1) - (3)].c)); ;} break; case 335: #line 3252 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(double)); if(!gmsh_yysymbols.count((yyvsp[(1) - (6)].c))) yymsg(0, "Unknown variable '%s'", (yyvsp[(1) - (6)].c)); else{ for(int i = 0; i < List_Nbr((yyvsp[(4) - (6)].l)); i++){ int index = (int)(*(double*)List_Pointer_Fast((yyvsp[(4) - (6)].l), i)); if(gmsh_yysymbols[(yyvsp[(1) - (6)].c)].size() < index + 1) yymsg(0, "Uninitialized variable '%s[%d]'", (yyvsp[(1) - (6)].c), index); else List_Add((yyval.l), &gmsh_yysymbols[(yyvsp[(1) - (6)].c)][index]); } } Free((yyvsp[(1) - (6)].c)); List_Delete((yyvsp[(4) - (6)].l)); ;} break; case 336: #line 3272 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(double)); List_Add((yyval.l), &((yyvsp[(1) - (1)].d))); ;} break; case 337: #line 3277 "Gmsh.y" { (yyval.l) = (yyvsp[(1) - (1)].l); ;} break; case 338: #line 3281 "Gmsh.y" { List_Add((yyval.l), &((yyvsp[(3) - (3)].d))); ;} break; case 339: #line 3285 "Gmsh.y" { for(int i = 0; i < List_Nbr((yyvsp[(3) - (3)].l)); i++){ double d; List_Read((yyvsp[(3) - (3)].l), i, &d); List_Add((yyval.l), &d); } List_Delete((yyvsp[(3) - (3)].l)); ;} break; case 340: #line 3297 "Gmsh.y" { (yyval.u) = CTX::instance()->pack_color((int)(yyvsp[(2) - (9)].d), (int)(yyvsp[(4) - (9)].d), (int)(yyvsp[(6) - (9)].d), (int)(yyvsp[(8) - (9)].d)); ;} break; case 341: #line 3301 "Gmsh.y" { (yyval.u) = CTX::instance()->pack_color((int)(yyvsp[(2) - (7)].d), (int)(yyvsp[(4) - (7)].d), (int)(yyvsp[(6) - (7)].d), 255); ;} break; case 342: #line 3313 "Gmsh.y" { int flag; (yyval.u) = Get_ColorForString(ColorString, -1, (yyvsp[(1) - (1)].c), &flag); if(flag) yymsg(0, "Unknown color '%s'", (yyvsp[(1) - (1)].c)); Free((yyvsp[(1) - (1)].c)); ;} break; case 343: #line 3320 "Gmsh.y" { unsigned int val = 0; ColorOption(GMSH_GET, (yyvsp[(1) - (5)].c), 0, (yyvsp[(5) - (5)].c), val); (yyval.u) = val; Free((yyvsp[(1) - (5)].c)); Free((yyvsp[(5) - (5)].c)); ;} break; case 344: #line 3330 "Gmsh.y" { (yyval.l) = (yyvsp[(2) - (3)].l); ;} break; case 345: #line 3334 "Gmsh.y" { (yyval.l) = List_Create(256, 10, sizeof(unsigned int)); GmshColorTable *ct = Get_ColorTable((int)(yyvsp[(3) - (6)].d)); if(!ct) yymsg(0, "View[%d] does not exist", (int)(yyvsp[(3) - (6)].d)); else{ for(int i = 0; i < ct->size; i++) List_Add((yyval.l), &ct->table[i]); } Free((yyvsp[(1) - (6)].c)); ;} break; case 346: #line 3349 "Gmsh.y" { (yyval.l) = List_Create(256, 10, sizeof(unsigned int)); List_Add((yyval.l), &((yyvsp[(1) - (1)].u))); ;} break; case 347: #line 3354 "Gmsh.y" { List_Add((yyval.l), &((yyvsp[(3) - (3)].u))); ;} break; case 348: #line 3361 "Gmsh.y" { (yyval.c) = (yyvsp[(1) - (1)].c); ;} break; case 349: #line 3365 "Gmsh.y" { if(!gmsh_yystringsymbols.count((yyvsp[(1) - (1)].c))){ yymsg(0, "Unknown string variable '%s'", (yyvsp[(1) - (1)].c)); (yyval.c) = (yyvsp[(1) - (1)].c); } else{ std::string val = gmsh_yystringsymbols[(yyvsp[(1) - (1)].c)]; (yyval.c) = (char *)Malloc((val.size() + 1) * sizeof(char)); strcpy((yyval.c), val.c_str()); Free((yyvsp[(1) - (1)].c)); } ;} break; case 350: #line 3378 "Gmsh.y" { std::string out; StringOption(GMSH_GET, (yyvsp[(1) - (3)].c), 0, (yyvsp[(3) - (3)].c), out); (yyval.c) = (char*)Malloc((out.size() + 1) * sizeof(char)); strcpy((yyval.c), out.c_str()); Free((yyvsp[(1) - (3)].c)); Free((yyvsp[(3) - (3)].c)); ;} break; case 351: #line 3386 "Gmsh.y" { std::string out; StringOption(GMSH_GET, (yyvsp[(1) - (6)].c), (int)(yyvsp[(3) - (6)].d), (yyvsp[(6) - (6)].c), out); (yyval.c) = (char*)Malloc((out.size() + 1) * sizeof(char)); strcpy((yyval.c), out.c_str()); Free((yyvsp[(1) - (6)].c)); Free((yyvsp[(6) - (6)].c)); ;} break; case 352: #line 3397 "Gmsh.y" { (yyval.c) = (yyvsp[(1) - (1)].c); ;} break; case 353: #line 3401 "Gmsh.y" { (yyval.c) = (char *)Malloc(32 * sizeof(char)); time_t now; time(&now); strcpy((yyval.c), ctime(&now)); (yyval.c)[strlen((yyval.c)) - 1] = '\0'; ;} break; case 354: #line 3409 "Gmsh.y" { (yyval.c) = (char *)Malloc((strlen((yyvsp[(3) - (6)].c)) + strlen((yyvsp[(5) - (6)].c)) + 1) * sizeof(char)); strcpy((yyval.c), (yyvsp[(3) - (6)].c)); strcat((yyval.c), (yyvsp[(5) - (6)].c)); Free((yyvsp[(3) - (6)].c)); Free((yyvsp[(5) - (6)].c)); ;} break; case 355: #line 3417 "Gmsh.y" { (yyval.c) = (char *)Malloc((strlen((yyvsp[(3) - (4)].c)) + 1) * sizeof(char)); int i; for(i = strlen((yyvsp[(3) - (4)].c)) - 1; i >= 0; i--){ if((yyvsp[(3) - (4)].c)[i] == '.'){ strncpy((yyval.c), (yyvsp[(3) - (4)].c), i); (yyval.c)[i]='\0'; break; } } if(i <= 0) strcpy((yyval.c), (yyvsp[(3) - (4)].c)); Free((yyvsp[(3) - (4)].c)); ;} break; case 356: #line 3431 "Gmsh.y" { (yyval.c) = (char *)Malloc((strlen((yyvsp[(3) - (4)].c)) + 1) * sizeof(char)); int i; for(i = strlen((yyvsp[(3) - (4)].c)) - 1; i >= 0; i--){ if((yyvsp[(3) - (4)].c)[i] == '/' || (yyvsp[(3) - (4)].c)[i] == '\\') break; } if(i <= 0) strcpy((yyval.c), (yyvsp[(3) - (4)].c)); else strcpy((yyval.c), &(yyvsp[(3) - (4)].c)[i+1]); Free((yyvsp[(3) - (4)].c)); ;} break; case 357: #line 3445 "Gmsh.y" { (yyval.c) = (yyvsp[(3) - (4)].c); ;} break; case 358: #line 3449 "Gmsh.y" { char tmpstring[1024]; int i = PrintListOfDouble((yyvsp[(3) - (6)].c), (yyvsp[(5) - (6)].l), tmpstring); if(i < 0){ yymsg(0, "Too few arguments in Sprintf"); (yyval.c) = (yyvsp[(3) - (6)].c); } else if(i > 0){ yymsg(0, "%d extra argument%s in Sprintf", i, (i > 1) ? "s" : ""); (yyval.c) = (yyvsp[(3) - (6)].c); } else{ (yyval.c) = (char*)Malloc((strlen(tmpstring) + 1) * sizeof(char)); strcpy((yyval.c), tmpstring); Free((yyvsp[(3) - (6)].c)); } List_Delete((yyvsp[(5) - (6)].l)); ;} break; /* Line 1267 of yacc.c. */ #line 7849 "Gmsh.tab.cpp" default: break; } 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. */ yyn = yyr1[yyn]; yystate = yypgoto[yyn - YYNTOKENS] + *yyssp; if (0 <= yystate && yystate <= YYLAST && yycheck[yystate] == *yyssp) yystate = yytable[yystate]; else yystate = yydefgoto[yyn - YYNTOKENS]; goto yynewstate; /*------------------------------------. | yyerrlab -- here on detecting error | `------------------------------------*/ yyerrlab: /* If not already recovering from an error, report this error. */ if (!yyerrstatus) { ++yynerrs; #if ! YYERROR_VERBOSE yyerror (YY_("syntax error")); #else { YYSIZE_T yysize = yysyntax_error (0, yystate, yychar); if (yymsg_alloc < yysize && yymsg_alloc < YYSTACK_ALLOC_MAXIMUM) { YYSIZE_T yyalloc = 2 * yysize; if (! (yysize <= yyalloc && yyalloc <= YYSTACK_ALLOC_MAXIMUM)) yyalloc = YYSTACK_ALLOC_MAXIMUM; if (yymsg != yymsgbuf) YYSTACK_FREE (yymsg); yymsg = (char *) YYSTACK_ALLOC (yyalloc); if (yymsg) yymsg_alloc = yyalloc; else { yymsg = yymsgbuf; yymsg_alloc = sizeof yymsgbuf; } } if (0 < yysize && yysize <= yymsg_alloc) { (void) yysyntax_error (yymsg, yystate, yychar); yyerror (yymsg); } else { yyerror (YY_("syntax error")); if (yysize != 0) goto yyexhaustedlab; } } #endif } if (yyerrstatus == 3) { /* If just tried and failed to reuse look-ahead 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 look-ahead token after shifting the error token. */ goto yyerrlab1; /*---------------------------------------------------. | yyerrorlab -- error raised explicitly by YYERROR. | `---------------------------------------------------*/ yyerrorlab: /* Pacify compilers like GCC when the user code never invokes YYERROR and the label yyerrorlab therefore never appears in user code. */ if (/*CONSTCOND*/ 0) goto yyerrorlab; /* Do not reclaim the symbols of the rule which 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 (yyn != YYPACT_NINF) { 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); } if (yyn == YYFINAL) YYACCEPT; *++yyvsp = yylval; /* 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; #ifndef yyoverflow /*-------------------------------------------------. | yyexhaustedlab -- memory exhaustion comes here. | `-------------------------------------------------*/ yyexhaustedlab: yyerror (YY_("memory exhausted")); yyresult = 2; /* Fall through. */ #endif yyreturn: if (yychar != YYEOF && yychar != YYEMPTY) yydestruct ("Cleanup: discarding lookahead", yytoken, &yylval); /* Do not reclaim the symbols of the rule which 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 /* Make sure YYID is used. */ return YYID (yyresult); } #line 3469 "Gmsh.y" int PrintListOfDouble(char *format, List_T *list, char *buffer) { int j, k; char tmp1[256], tmp2[256]; j = 0; buffer[j] = '\0'; while(j < (int)strlen(format) && format[j] != '%') j++; strncpy(buffer, format, j); buffer[j]='\0'; for(int i = 0; i < List_Nbr(list); i++){ k = j; j++; if(j < (int)strlen(format)){ if(format[j] == '%'){ strcat(buffer, "%"); j++; } while(j < (int)strlen(format) && format[j] != '%') j++; if(k != j){ strncpy(tmp1, &(format[k]), j-k); tmp1[j-k] = '\0'; sprintf(tmp2, tmp1, *(double*)List_Pointer(list, i)); strcat(buffer, tmp2); } } else return List_Nbr(list)-i; } if(j != (int)strlen(format)) return -1; return 0; } Double_Matrix ListOfListOfDouble2Matrix(List_T *list) { int M = List_Nbr(list); int N = 0; for(int i = 0; i < M; i++){ List_T *line = *(List_T**)List_Pointer_Fast(list, i); N = std::max(N, List_Nbr(line)); } Double_Matrix mat(M, N); for(int i = 0; i < M; i++){ List_T *line = *(List_T**)List_Pointer_Fast(list, i); for(int j = 0; j < List_Nbr(line); j++){ double val; List_Read(line, j, &val); mat(i, j) = val; } } for(int i = 0; i < List_Nbr(list); i++) List_Delete(*(List_T**)List_Pointer(list, i)); List_Delete(list); return mat; } void FixRelativePath(const char *in, char *out) { if(in[0] == '/' || in[0] == '\\' || (strlen(in)>2 && in[1] == ':')){ // do nothing: 'in' is an absolute path strcpy(out, in); } else{ // append 'in' to the path of the parent file strcpy(out, gmsh_yyname.c_str()); int i = strlen(out) - 1 ; while(i >= 0 && gmsh_yyname.c_str()[i] != '/' && gmsh_yyname.c_str()[i] != '\\') i-- ; out[i+1] = '\0'; strcat(out, in); } } void yyerror(char *s) { Msg::Error("'%s', line %d : %s (%s)", gmsh_yyname.c_str(), gmsh_yylineno - 1, s, gmsh_yytext); gmsh_yyerrorstate++; } void yymsg(int level, const char *fmt, ...) { va_list args; char tmp[1024]; va_start(args, fmt); vsprintf(tmp, fmt, args); va_end(args); if(level == 0){ Msg::Error("'%s', line %d : %s", gmsh_yyname.c_str(), gmsh_yylineno - 1, tmp); gmsh_yyerrorstate++; } else Msg::Warning("'%s', line %d : %s", gmsh_yyname.c_str(), gmsh_yylineno - 1, tmp); }