/* 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, tSyncModel = 298, tCreateTopology = 299, tPoint = 300, tCircle = 301, tEllipse = 302, tLine = 303, tSphere = 304, tPolarSphere = 305, tSurface = 306, tSpline = 307, tVolume = 308, tCharacteristic = 309, tLength = 310, tParametric = 311, tElliptic = 312, tPlane = 313, tRuled = 314, tTransfinite = 315, tComplex = 316, tPhysical = 317, tCompound = 318, tUsing = 319, tPlugin = 320, tRotate = 321, tTranslate = 322, tSymmetry = 323, tDilate = 324, tExtrude = 325, tLevelset = 326, tLoop = 327, tRecombine = 328, tSmoother = 329, tSplit = 330, tDelete = 331, tCoherence = 332, tIntersect = 333, tLayers = 334, tHole = 335, tAlias = 336, tAliasWithOptions = 337, tText2D = 338, tText3D = 339, tInterpolationScheme = 340, tTime = 341, tCombine = 342, tBSpline = 343, tBezier = 344, tNurbs = 345, tOrder = 346, tKnots = 347, tColor = 348, tColorTable = 349, tFor = 350, tIn = 351, tEndFor = 352, tIf = 353, tEndIf = 354, tExit = 355, tField = 356, tReturn = 357, tCall = 358, tFunction = 359, tShow = 360, tHide = 361, tGetValue = 362, tGMSH_MAJOR_VERSION = 363, tGMSH_MINOR_VERSION = 364, tGMSH_PATCH_VERSION = 365, tAFFECTDIVIDE = 366, tAFFECTTIMES = 367, tAFFECTMINUS = 368, tAFFECTPLUS = 369, tOR = 370, tAND = 371, tNOTEQUAL = 372, tEQUAL = 373, tGREATEROREQUAL = 374, tLESSOREQUAL = 375, UNARYPREC = 376, tMINUSMINUS = 377, tPLUSPLUS = 378 }; #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 tSyncModel 298 #define tCreateTopology 299 #define tPoint 300 #define tCircle 301 #define tEllipse 302 #define tLine 303 #define tSphere 304 #define tPolarSphere 305 #define tSurface 306 #define tSpline 307 #define tVolume 308 #define tCharacteristic 309 #define tLength 310 #define tParametric 311 #define tElliptic 312 #define tPlane 313 #define tRuled 314 #define tTransfinite 315 #define tComplex 316 #define tPhysical 317 #define tCompound 318 #define tUsing 319 #define tPlugin 320 #define tRotate 321 #define tTranslate 322 #define tSymmetry 323 #define tDilate 324 #define tExtrude 325 #define tLevelset 326 #define tLoop 327 #define tRecombine 328 #define tSmoother 329 #define tSplit 330 #define tDelete 331 #define tCoherence 332 #define tIntersect 333 #define tLayers 334 #define tHole 335 #define tAlias 336 #define tAliasWithOptions 337 #define tText2D 338 #define tText3D 339 #define tInterpolationScheme 340 #define tTime 341 #define tCombine 342 #define tBSpline 343 #define tBezier 344 #define tNurbs 345 #define tOrder 346 #define tKnots 347 #define tColor 348 #define tColorTable 349 #define tFor 350 #define tIn 351 #define tEndFor 352 #define tIf 353 #define tEndIf 354 #define tExit 355 #define tField 356 #define tReturn 357 #define tCall 358 #define tFunction 359 #define tShow 360 #define tHide 361 #define tGetValue 362 #define tGMSH_MAJOR_VERSION 363 #define tGMSH_MINOR_VERSION 364 #define tGMSH_PATCH_VERSION 365 #define tAFFECTDIVIDE 366 #define tAFFECTTIMES 367 #define tAFFECTMINUS 368 #define tAFFECTPLUS 369 #define tOR 370 #define tAND 371 #define tNOTEQUAL 372 #define tEQUAL 373 #define tGREATEROREQUAL 374 #define tLESSOREQUAL 375 #define UNARYPREC 376 #define tMINUSMINUS 377 #define tPLUSPLUS 378 /* 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" #include "DILevelset.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 std::vector<double> *ViewValueList = 0; static int *ViewNumList = 0; static ExtrudeParams extr; static int curPhysDim = 0; 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); gmshMatrix<double> 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 74 "Gmsh.y" { char *c; int i; unsigned int u; double d; double v[5]; Shape s; List_T *l; } /* Line 187 of yacc.c. */ #line 433 "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 446 "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 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 6858 /* YYNTOKENS -- Number of terminals. */ #define YYNTOKENS 144 /* YYNNTS -- Number of nonterminals. */ #define YYNNTS 79 /* YYNRULES -- Number of rules. */ #define YYNRULES 372 /* YYNRULES -- Number of states. */ #define YYNSTATES 1291 /* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */ #define YYUNDEFTOK 2 #define YYMAXUTOK 378 #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, 129, 2, 139, 2, 128, 2, 2, 134, 135, 126, 124, 140, 125, 138, 127, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 120, 2, 121, 115, 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, 136, 2, 137, 133, 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, 141, 2, 142, 143, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 116, 117, 118, 119, 122, 123, 130, 131, 132 }; #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, 44, 47, 53, 61, 69, 79, 86, 93, 100, 101, 104, 107, 110, 113, 116, 118, 122, 124, 128, 129, 130, 141, 143, 147, 148, 162, 164, 168, 169, 185, 194, 209, 210, 217, 219, 221, 223, 225, 227, 229, 231, 236, 244, 254, 261, 268, 272, 279, 284, 291, 301, 308, 318, 324, 333, 342, 354, 361, 371, 377, 385, 395, 405, 417, 427, 437, 439, 441, 442, 448, 449, 452, 460, 461, 471, 478, 486, 494, 503, 512, 520, 528, 540, 549, 550, 560, 569, 579, 583, 588, 599, 607, 615, 624, 625, 635, 644, 657, 666, 675, 684, 692, 693, 703, 709, 721, 727, 737, 742, 752, 762, 764, 766, 767, 770, 777, 784, 791, 798, 807, 814, 827, 842, 859, 864, 871, 878, 882, 887, 893, 897, 901, 906, 911, 915, 923, 931, 935, 943, 947, 950, 953, 956, 972, 975, 978, 985, 994, 1003, 1014, 1016, 1019, 1021, 1025, 1030, 1032, 1038, 1050, 1064, 1065, 1073, 1074, 1088, 1089, 1105, 1106, 1113, 1122, 1131, 1140, 1153, 1166, 1179, 1194, 1209, 1224, 1225, 1238, 1239, 1252, 1253, 1266, 1267, 1284, 1285, 1302, 1303, 1320, 1321, 1340, 1341, 1360, 1361, 1380, 1382, 1385, 1391, 1399, 1409, 1412, 1422, 1423, 1427, 1428, 1430, 1431, 1434, 1435, 1438, 1446, 1453, 1462, 1468, 1474, 1481, 1492, 1503, 1514, 1525, 1528, 1532, 1534, 1538, 1541, 1544, 1547, 1551, 1555, 1559, 1563, 1567, 1571, 1575, 1579, 1583, 1587, 1591, 1595, 1599, 1603, 1609, 1614, 1619, 1624, 1629, 1634, 1639, 1644, 1649, 1654, 1659, 1666, 1671, 1676, 1681, 1686, 1691, 1696, 1703, 1710, 1717, 1722, 1727, 1732, 1737, 1742, 1747, 1752, 1757, 1762, 1767, 1772, 1779, 1784, 1789, 1794, 1799, 1804, 1809, 1816, 1823, 1830, 1835, 1837, 1839, 1841, 1843, 1845, 1847, 1849, 1851, 1857, 1862, 1867, 1870, 1876, 1880, 1887, 1892, 1900, 1907, 1909, 1912, 1915, 1919, 1923, 1935, 1945, 1953, 1961, 1963, 1967, 1969, 1971, 1974, 1978, 1983, 1989, 1991, 1993, 1996, 2000, 2004, 2010, 2015, 2017, 2019, 2023, 2030, 2032, 2034, 2038, 2042, 2052, 2060, 2062, 2068, 2072, 2079, 2081, 2085, 2087, 2089, 2093, 2100, 2102, 2104, 2111, 2116, 2121, 2126 }; /* YYRHS -- A `-1'-separated list of the rules' RHS. */ static const yytype_int16 yyrhs[] = { 145, 0, -1, 146, -1, 1, 6, -1, -1, 146, 147, -1, 150, -1, 149, -1, 168, -1, 172, -1, 177, -1, 181, -1, 182, -1, 183, -1, 186, -1, 206, -1, 207, -1, 208, -1, 185, -1, 184, -1, 180, -1, 121, -1, 121, 121, -1, 35, 134, 5, 135, 6, -1, 35, 134, 5, 135, 148, 221, 6, -1, 35, 134, 5, 140, 217, 135, 6, -1, 35, 134, 5, 140, 217, 135, 148, 221, 6, -1, 4, 5, 141, 151, 142, 6, -1, 81, 4, 136, 209, 137, 6, -1, 82, 4, 136, 209, 137, 6, -1, -1, 151, 154, -1, 151, 158, -1, 151, 161, -1, 151, 163, -1, 151, 164, -1, 209, -1, 152, 140, 209, -1, 209, -1, 153, 140, 209, -1, -1, -1, 4, 155, 134, 152, 135, 156, 141, 153, 142, 6, -1, 221, -1, 157, 140, 221, -1, -1, 83, 134, 209, 140, 209, 140, 209, 135, 159, 141, 157, 142, 6, -1, 221, -1, 160, 140, 221, -1, -1, 84, 134, 209, 140, 209, 140, 209, 140, 209, 135, 162, 141, 160, 142, 6, -1, 85, 141, 213, 142, 141, 213, 142, 6, -1, 85, 141, 213, 142, 141, 213, 142, 141, 213, 142, 141, 213, 142, 6, -1, -1, 86, 165, 141, 153, 142, 6, -1, 7, -1, 114, -1, 113, -1, 112, -1, 111, -1, 132, -1, 131, -1, 4, 166, 209, 6, -1, 4, 136, 209, 137, 166, 209, 6, -1, 4, 136, 141, 217, 142, 137, 166, 214, 6, -1, 4, 136, 137, 7, 214, 6, -1, 4, 136, 137, 114, 214, 6, -1, 4, 167, 6, -1, 4, 136, 209, 137, 167, 6, -1, 4, 7, 222, 6, -1, 4, 138, 4, 7, 222, 6, -1, 4, 136, 209, 137, 138, 4, 7, 222, 6, -1, 4, 138, 4, 166, 209, 6, -1, 4, 136, 209, 137, 138, 4, 166, 209, 6, -1, 4, 138, 4, 167, 6, -1, 4, 136, 209, 137, 138, 4, 167, 6, -1, 4, 138, 93, 138, 4, 7, 218, 6, -1, 4, 136, 209, 137, 138, 93, 138, 4, 7, 218, 6, -1, 4, 138, 94, 7, 219, 6, -1, 4, 136, 209, 137, 138, 94, 7, 219, 6, -1, 4, 101, 7, 209, 6, -1, 101, 136, 209, 137, 7, 4, 6, -1, 101, 136, 209, 137, 138, 4, 7, 209, 6, -1, 101, 136, 209, 137, 138, 4, 7, 222, 6, -1, 101, 136, 209, 137, 138, 4, 7, 141, 217, 142, 6, -1, 65, 134, 4, 135, 138, 4, 7, 209, 6, -1, 65, 134, 4, 135, 138, 4, 7, 222, 6, -1, 209, -1, 222, -1, -1, 96, 49, 141, 209, 142, -1, -1, 58, 211, -1, 45, 134, 209, 135, 7, 211, 6, -1, -1, 62, 45, 173, 134, 169, 135, 7, 214, 6, -1, 54, 55, 214, 7, 209, 6, -1, 48, 134, 209, 135, 7, 214, 6, -1, 52, 134, 209, 135, 7, 214, 6, -1, 46, 134, 209, 135, 7, 214, 171, 6, -1, 47, 134, 209, 135, 7, 214, 171, 6, -1, 88, 134, 209, 135, 7, 214, 6, -1, 89, 134, 209, 135, 7, 214, 6, -1, 90, 134, 209, 135, 7, 214, 92, 214, 91, 209, 6, -1, 48, 72, 134, 209, 135, 7, 214, 6, -1, -1, 62, 48, 174, 134, 169, 135, 7, 214, 6, -1, 58, 51, 134, 209, 135, 7, 214, 6, -1, 59, 51, 134, 209, 135, 7, 214, 170, 6, -1, 12, 13, 6, -1, 13, 51, 209, 6, -1, 56, 51, 134, 209, 135, 7, 5, 5, 5, 6, -1, 49, 134, 209, 135, 7, 214, 6, -1, 50, 134, 209, 135, 7, 214, 6, -1, 51, 72, 134, 209, 135, 7, 214, 6, -1, -1, 62, 51, 175, 134, 169, 135, 7, 214, 6, -1, 63, 53, 134, 209, 135, 7, 214, 6, -1, 63, 51, 134, 209, 135, 7, 214, 4, 141, 213, 142, 6, -1, 63, 51, 134, 209, 135, 7, 214, 6, -1, 63, 48, 134, 209, 135, 7, 214, 6, -1, 61, 53, 134, 209, 135, 7, 214, 6, -1, 53, 134, 209, 135, 7, 214, 6, -1, -1, 62, 53, 176, 134, 169, 135, 7, 214, 6, -1, 67, 211, 141, 178, 142, -1, 66, 141, 211, 140, 211, 140, 209, 142, 141, 178, 142, -1, 68, 211, 141, 178, 142, -1, 69, 141, 211, 140, 209, 142, 141, 178, 142, -1, 4, 141, 178, 142, -1, 78, 48, 141, 217, 142, 51, 141, 209, 142, -1, 75, 48, 134, 209, 135, 141, 217, 142, 6, -1, 179, -1, 177, -1, -1, 179, 172, -1, 179, 45, 141, 217, 142, 6, -1, 179, 48, 141, 217, 142, 6, -1, 179, 51, 141, 217, 142, 6, -1, 179, 53, 141, 217, 142, 6, -1, 71, 4, 134, 209, 135, 7, 214, 6, -1, 71, 4, 141, 209, 142, 6, -1, 71, 4, 134, 209, 135, 7, 141, 211, 140, 214, 142, 6, -1, 71, 4, 134, 209, 135, 7, 141, 211, 140, 211, 140, 214, 142, 6, -1, 71, 4, 134, 209, 135, 7, 141, 211, 140, 211, 140, 211, 140, 214, 142, 6, -1, 76, 141, 179, 142, -1, 76, 101, 136, 209, 137, 6, -1, 76, 4, 136, 209, 137, 6, -1, 76, 4, 6, -1, 76, 4, 4, 6, -1, 93, 218, 141, 179, 142, -1, 105, 5, 6, -1, 106, 5, 6, -1, 105, 141, 179, 142, -1, 106, 141, 179, 142, -1, 4, 222, 6, -1, 4, 4, 136, 209, 137, 221, 6, -1, 4, 4, 4, 136, 209, 137, 6, -1, 4, 209, 6, -1, 65, 134, 4, 135, 138, 4, 6, -1, 87, 4, 6, -1, 100, 6, -1, 43, 6, -1, 40, 6, -1, 40, 141, 209, 140, 209, 140, 209, 140, 209, 140, 209, 140, 209, 142, 6, -1, 41, 6, -1, 44, 6, -1, 95, 134, 209, 8, 209, 135, -1, 95, 134, 209, 8, 209, 8, 209, 135, -1, 95, 4, 96, 141, 209, 8, 209, 142, -1, 95, 4, 96, 141, 209, 8, 209, 8, 209, 142, -1, 97, -1, 104, 4, -1, 102, -1, 103, 4, 6, -1, 98, 134, 209, 135, -1, 99, -1, 70, 211, 141, 179, 142, -1, 70, 141, 211, 140, 211, 140, 209, 142, 141, 179, 142, -1, 70, 141, 211, 140, 211, 140, 211, 140, 209, 142, 141, 179, 142, -1, -1, 70, 211, 141, 179, 187, 200, 142, -1, -1, 70, 141, 211, 140, 211, 140, 209, 142, 141, 179, 188, 200, 142, -1, -1, 70, 141, 211, 140, 211, 140, 211, 140, 209, 142, 141, 179, 189, 200, 142, -1, -1, 70, 141, 179, 190, 200, 142, -1, 70, 45, 141, 209, 140, 211, 142, 6, -1, 70, 48, 141, 209, 140, 211, 142, 6, -1, 70, 51, 141, 209, 140, 211, 142, 6, -1, 70, 45, 141, 209, 140, 211, 140, 211, 140, 209, 142, 6, -1, 70, 48, 141, 209, 140, 211, 140, 211, 140, 209, 142, 6, -1, 70, 51, 141, 209, 140, 211, 140, 211, 140, 209, 142, 6, -1, 70, 45, 141, 209, 140, 211, 140, 211, 140, 211, 140, 209, 142, 6, -1, 70, 48, 141, 209, 140, 211, 140, 211, 140, 211, 140, 209, 142, 6, -1, 70, 51, 141, 209, 140, 211, 140, 211, 140, 211, 140, 209, 142, 6, -1, -1, 70, 45, 141, 209, 140, 211, 142, 191, 141, 200, 142, 6, -1, -1, 70, 48, 141, 209, 140, 211, 142, 192, 141, 200, 142, 6, -1, -1, 70, 51, 141, 209, 140, 211, 142, 193, 141, 200, 142, 6, -1, -1, 70, 45, 141, 209, 140, 211, 140, 211, 140, 209, 142, 194, 141, 200, 142, 6, -1, -1, 70, 48, 141, 209, 140, 211, 140, 211, 140, 209, 142, 195, 141, 200, 142, 6, -1, -1, 70, 51, 141, 209, 140, 211, 140, 211, 140, 209, 142, 196, 141, 200, 142, 6, -1, -1, 70, 45, 141, 209, 140, 211, 140, 211, 140, 211, 140, 209, 142, 197, 141, 200, 142, 6, -1, -1, 70, 48, 141, 209, 140, 211, 140, 211, 140, 211, 140, 209, 142, 198, 141, 200, 142, 6, -1, -1, 70, 51, 141, 209, 140, 211, 140, 211, 140, 211, 140, 209, 142, 199, 141, 200, 142, 6, -1, 201, -1, 200, 201, -1, 79, 141, 209, 142, 6, -1, 79, 141, 214, 140, 214, 142, 6, -1, 79, 141, 214, 140, 214, 140, 214, 142, 6, -1, 73, 6, -1, 80, 134, 209, 135, 7, 214, 64, 209, 6, -1, -1, 64, 4, 209, -1, -1, 4, -1, -1, 7, 214, -1, -1, 7, 209, -1, 60, 48, 215, 7, 209, 202, 6, -1, 60, 51, 215, 204, 203, 6, -1, 57, 51, 141, 209, 142, 7, 214, 6, -1, 60, 53, 215, 204, 6, -1, 73, 51, 215, 205, 6, -1, 74, 51, 214, 7, 209, 6, -1, 45, 141, 217, 142, 96, 51, 141, 209, 142, 6, -1, 48, 141, 217, 142, 96, 51, 141, 209, 142, 6, -1, 48, 141, 217, 142, 96, 53, 141, 209, 142, 6, -1, 51, 141, 217, 142, 96, 53, 141, 209, 142, 6, -1, 77, 6, -1, 77, 4, 6, -1, 210, -1, 134, 209, 135, -1, 125, 209, -1, 124, 209, -1, 129, 209, -1, 209, 125, 209, -1, 209, 124, 209, -1, 209, 126, 209, -1, 209, 127, 209, -1, 209, 128, 209, -1, 209, 133, 209, -1, 209, 120, 209, -1, 209, 121, 209, -1, 209, 123, 209, -1, 209, 122, 209, -1, 209, 119, 209, -1, 209, 118, 209, -1, 209, 117, 209, -1, 209, 116, 209, -1, 209, 115, 209, 8, 209, -1, 14, 134, 209, 135, -1, 15, 134, 209, 135, -1, 16, 134, 209, 135, -1, 17, 134, 209, 135, -1, 18, 134, 209, 135, -1, 19, 134, 209, 135, -1, 20, 134, 209, 135, -1, 21, 134, 209, 135, -1, 22, 134, 209, 135, -1, 24, 134, 209, 135, -1, 25, 134, 209, 140, 209, 135, -1, 26, 134, 209, 135, -1, 27, 134, 209, 135, -1, 28, 134, 209, 135, -1, 29, 134, 209, 135, -1, 30, 134, 209, 135, -1, 31, 134, 209, 135, -1, 32, 134, 209, 140, 209, 135, -1, 33, 134, 209, 140, 209, 135, -1, 34, 134, 209, 140, 209, 135, -1, 23, 134, 209, 135, -1, 14, 136, 209, 137, -1, 15, 136, 209, 137, -1, 16, 136, 209, 137, -1, 17, 136, 209, 137, -1, 18, 136, 209, 137, -1, 19, 136, 209, 137, -1, 20, 136, 209, 137, -1, 21, 136, 209, 137, -1, 22, 136, 209, 137, -1, 24, 136, 209, 137, -1, 25, 136, 209, 140, 209, 137, -1, 26, 136, 209, 137, -1, 27, 136, 209, 137, -1, 28, 136, 209, 137, -1, 29, 136, 209, 137, -1, 30, 136, 209, 137, -1, 31, 136, 209, 137, -1, 32, 136, 209, 140, 209, 137, -1, 33, 136, 209, 140, 209, 137, -1, 34, 136, 209, 140, 209, 137, -1, 23, 136, 209, 137, -1, 3, -1, 9, -1, 10, -1, 11, -1, 108, -1, 109, -1, 110, -1, 4, -1, 4, 143, 141, 209, 142, -1, 4, 136, 209, 137, -1, 139, 4, 136, 137, -1, 4, 167, -1, 4, 136, 209, 137, 167, -1, 4, 138, 4, -1, 4, 136, 209, 137, 138, 4, -1, 4, 138, 4, 167, -1, 4, 136, 209, 137, 138, 4, 167, -1, 107, 134, 5, 140, 209, 135, -1, 212, -1, 125, 211, -1, 124, 211, -1, 211, 125, 211, -1, 211, 124, 211, -1, 141, 209, 140, 209, 140, 209, 140, 209, 140, 209, 142, -1, 141, 209, 140, 209, 140, 209, 140, 209, 142, -1, 141, 209, 140, 209, 140, 209, 142, -1, 134, 209, 140, 209, 140, 209, 135, -1, 214, -1, 213, 140, 214, -1, 209, -1, 216, -1, 141, 142, -1, 141, 217, 142, -1, 125, 141, 217, 142, -1, 209, 126, 141, 217, 142, -1, 214, -1, 5, -1, 125, 216, -1, 209, 126, 216, -1, 209, 8, 209, -1, 209, 8, 209, 8, 209, -1, 45, 141, 209, 142, -1, 177, -1, 186, -1, 4, 136, 137, -1, 4, 136, 141, 217, 142, 137, -1, 209, -1, 216, -1, 217, 140, 209, -1, 217, 140, 216, -1, 141, 209, 140, 209, 140, 209, 140, 209, 142, -1, 141, 209, 140, 209, 140, 209, 142, -1, 4, -1, 4, 138, 93, 138, 4, -1, 141, 220, 142, -1, 4, 136, 209, 137, 138, 94, -1, 218, -1, 220, 140, 218, -1, 222, -1, 4, -1, 4, 138, 4, -1, 4, 136, 209, 137, 138, 4, -1, 5, -1, 42, -1, 37, 134, 221, 140, 221, 135, -1, 38, 134, 221, 135, -1, 39, 134, 221, 135, -1, 36, 134, 221, 135, -1, 36, 134, 221, 140, 217, 135, -1 }; /* YYRLINE[YYN] -- source line where rule number YYN was defined. */ static const yytype_uint16 yyrline[] = { 0, 142, 142, 143, 148, 150, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 172, 176, 183, 188, 203, 216, 245, 259, 270, 285, 290, 291, 292, 293, 294, 298, 300, 305, 307, 313, 417, 312, 435, 442, 453, 452, 470, 477, 488, 487, 504, 521, 544, 543, 557, 558, 559, 560, 561, 565, 566, 573, 595, 622, 662, 672, 680, 688, 700, 709, 715, 724, 742, 760, 769, 781, 786, 794, 814, 837, 844, 850, 870, 891, 917, 929, 946, 950, 961, 964, 977, 980, 990, 1014, 1013, 1033, 1055, 1073, 1091, 1121, 1151, 1169, 1187, 1213, 1231, 1230, 1253, 1271, 1310, 1316, 1322, 1329, 1354, 1379, 1396, 1395, 1415, 1432, 1460, 1477, 1497, 1515, 1533, 1532, 1557, 1562, 1567, 1572, 1577, 1597, 1603, 1614, 1615, 1620, 1623, 1627, 1650, 1673, 1696, 1724, 1816, 1828, 1847, 1960, 1985, 1994, 1998, 2013, 2040, 2057, 2071, 2077, 2083, 2092, 2106, 2154, 2172, 2187, 2206, 2218, 2242, 2246, 2253, 2259, 2264, 2270, 2279, 2296, 2313, 2332, 2351, 2379, 2387, 2393, 2400, 2404, 2413, 2421, 2429, 2438, 2437, 2450, 2449, 2462, 2461, 2474, 2473, 2486, 2493, 2500, 2507, 2514, 2521, 2528, 2535, 2542, 2550, 2549, 2561, 2560, 2572, 2571, 2583, 2582, 2594, 2593, 2605, 2604, 2616, 2615, 2627, 2626, 2638, 2637, 2652, 2655, 2661, 2670, 2690, 2713, 2717, 2741, 2744, 2760, 2763, 2776, 2779, 2785, 2788, 2795, 2851, 2921, 2926, 2993, 3036, 3062, 3085, 3108, 3111, 3120, 3124, 3140, 3141, 3142, 3143, 3144, 3145, 3146, 3147, 3148, 3155, 3156, 3157, 3158, 3159, 3160, 3161, 3162, 3163, 3164, 3165, 3166, 3167, 3168, 3169, 3170, 3171, 3172, 3173, 3174, 3175, 3176, 3177, 3178, 3179, 3180, 3181, 3182, 3183, 3184, 3185, 3186, 3188, 3189, 3190, 3191, 3192, 3193, 3194, 3195, 3196, 3197, 3198, 3199, 3200, 3201, 3202, 3203, 3204, 3205, 3206, 3207, 3208, 3217, 3218, 3219, 3220, 3221, 3222, 3223, 3227, 3240, 3252, 3267, 3277, 3287, 3305, 3310, 3315, 3325, 3335, 3343, 3347, 3351, 3355, 3359, 3366, 3370, 3374, 3378, 3385, 3390, 3397, 3402, 3406, 3411, 3415, 3423, 3434, 3438, 3450, 3458, 3466, 3473, 3484, 3504, 3514, 3524, 3534, 3554, 3559, 3563, 3567, 3579, 3583, 3595, 3602, 3612, 3616, 3631, 3636, 3643, 3647, 3660, 3668, 3679, 3683, 3691, 3699, 3713, 3727, 3731 }; #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", "tSyncModel", "tCreateTopology", "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", "tLevelset", "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", "@6", "@7", "@8", "@9", "Transform", "MultipleShape", "ListOfShapes", "LevelSet", "Delete", "Colorify", "Visibility", "Command", "Loop", "Extrude", "@10", "@11", "@12", "@13", "@14", "@15", "@16", "@17", "@18", "@19", "@20", "@21", "@22", "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, 367, 368, 369, 63, 370, 371, 372, 373, 60, 62, 374, 375, 43, 45, 42, 47, 37, 33, 376, 377, 378, 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, 144, 145, 145, 146, 146, 147, 147, 147, 147, 147, 147, 147, 147, 147, 147, 147, 147, 147, 147, 147, 148, 148, 149, 149, 149, 149, 150, 150, 150, 151, 151, 151, 151, 151, 151, 152, 152, 153, 153, 155, 156, 154, 157, 157, 159, 158, 160, 160, 162, 161, 163, 163, 165, 164, 166, 166, 166, 166, 166, 167, 167, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 169, 169, 170, 170, 171, 171, 172, 173, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 174, 172, 172, 172, 172, 172, 172, 172, 172, 172, 175, 172, 172, 172, 172, 172, 172, 172, 176, 172, 177, 177, 177, 177, 177, 177, 177, 178, 178, 179, 179, 179, 179, 179, 179, 180, 180, 180, 180, 180, 181, 181, 181, 181, 181, 182, 183, 183, 183, 183, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 186, 186, 186, 187, 186, 188, 186, 189, 186, 190, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, 191, 186, 192, 186, 193, 186, 194, 186, 195, 186, 196, 186, 197, 186, 198, 186, 199, 186, 200, 200, 201, 201, 201, 201, 201, 202, 202, 203, 203, 204, 204, 205, 205, 206, 206, 206, 206, 206, 206, 207, 207, 207, 207, 208, 208, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 210, 210, 210, 210, 210, 210, 210, 210, 210, 210, 210, 210, 210, 210, 210, 210, 210, 210, 211, 211, 211, 211, 211, 212, 212, 212, 212, 213, 213, 214, 214, 214, 214, 214, 214, 215, 215, 216, 216, 216, 216, 216, 216, 216, 216, 216, 217, 217, 217, 217, 218, 218, 218, 218, 219, 219, 220, 220, 221, 221, 221, 221, 222, 222, 222, 222, 222, 222, 222 }; /* 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, 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, 0, 9, 6, 7, 7, 8, 8, 7, 7, 11, 8, 0, 9, 8, 9, 3, 4, 10, 7, 7, 8, 0, 9, 8, 12, 8, 8, 8, 7, 0, 9, 5, 11, 5, 9, 4, 9, 9, 1, 1, 0, 2, 6, 6, 6, 6, 8, 6, 12, 14, 16, 4, 6, 6, 3, 4, 5, 3, 3, 4, 4, 3, 7, 7, 3, 7, 3, 2, 2, 2, 15, 2, 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, 0, 0, 0, 171, 0, 176, 0, 0, 173, 0, 0, 0, 0, 5, 7, 6, 8, 9, 10, 20, 11, 12, 13, 19, 18, 14, 15, 16, 17, 304, 311, 366, 55, 305, 306, 307, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 367, 0, 0, 308, 309, 310, 59, 58, 57, 56, 0, 0, 0, 61, 60, 0, 0, 0, 0, 134, 0, 0, 0, 242, 0, 0, 0, 0, 163, 0, 165, 162, 166, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 94, 105, 115, 123, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 322, 0, 0, 0, 0, 0, 134, 0, 0, 0, 0, 0, 0, 0, 134, 0, 240, 0, 0, 0, 0, 0, 0, 0, 356, 0, 0, 0, 0, 0, 161, 0, 0, 172, 0, 134, 0, 134, 0, 0, 0, 0, 315, 30, 366, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 311, 245, 244, 246, 0, 0, 0, 0, 0, 0, 0, 0, 0, 133, 0, 132, 0, 67, 158, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 155, 109, 0, 0, 0, 0, 311, 0, 0, 346, 347, 350, 351, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 333, 0, 334, 0, 0, 0, 0, 340, 339, 0, 226, 226, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 324, 323, 0, 0, 0, 0, 134, 134, 0, 0, 0, 0, 0, 0, 0, 186, 0, 134, 0, 0, 228, 0, 0, 0, 148, 0, 0, 0, 241, 0, 0, 0, 160, 0, 0, 0, 0, 0, 134, 0, 0, 0, 0, 174, 151, 0, 152, 0, 0, 0, 317, 0, 0, 69, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 363, 0, 362, 0, 0, 0, 0, 0, 0, 243, 0, 0, 0, 0, 55, 0, 0, 0, 0, 0, 129, 0, 0, 0, 0, 135, 62, 0, 260, 259, 258, 257, 253, 254, 256, 255, 248, 247, 249, 250, 251, 252, 110, 0, 0, 0, 0, 0, 0, 244, 341, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 335, 0, 0, 0, 0, 0, 0, 0, 0, 0, 224, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 326, 325, 0, 0, 0, 0, 0, 0, 0, 0, 0, 180, 0, 0, 0, 0, 0, 0, 149, 0, 0, 145, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 0, 153, 154, 0, 313, 319, 0, 40, 0, 0, 0, 53, 0, 31, 32, 33, 34, 35, 262, 283, 263, 284, 264, 285, 265, 286, 266, 287, 267, 288, 268, 289, 269, 290, 270, 291, 282, 303, 271, 292, 0, 0, 273, 294, 274, 295, 275, 296, 276, 297, 277, 298, 278, 299, 0, 0, 0, 0, 0, 0, 0, 0, 371, 0, 0, 369, 370, 80, 0, 0, 0, 0, 0, 55, 0, 0, 0, 0, 0, 74, 0, 0, 0, 0, 314, 0, 0, 0, 0, 0, 23, 21, 0, 0, 0, 0, 348, 0, 0, 343, 249, 342, 352, 353, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 336, 0, 0, 0, 0, 0, 0, 222, 227, 225, 0, 233, 0, 0, 87, 88, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 125, 127, 0, 0, 0, 0, 0, 0, 0, 0, 215, 0, 177, 0, 0, 0, 229, 234, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 150, 0, 0, 0, 0, 0, 0, 316, 0, 312, 0, 0, 0, 0, 0, 27, 0, 0, 0, 0, 0, 0, 0, 0, 0, 364, 0, 0, 0, 313, 65, 66, 0, 0, 0, 0, 0, 68, 70, 72, 0, 0, 360, 0, 78, 0, 0, 0, 0, 261, 22, 0, 0, 0, 0, 0, 345, 0, 0, 91, 91, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 337, 0, 96, 0, 0, 0, 0, 0, 0, 231, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 220, 0, 0, 187, 216, 0, 0, 0, 141, 235, 0, 147, 146, 0, 28, 29, 0, 0, 0, 357, 0, 0, 0, 167, 0, 0, 157, 318, 156, 0, 0, 0, 0, 331, 0, 272, 293, 279, 300, 280, 301, 281, 302, 0, 372, 368, 321, 0, 55, 0, 0, 0, 0, 63, 0, 0, 0, 358, 0, 0, 0, 0, 24, 25, 0, 0, 93, 0, 344, 0, 0, 0, 0, 0, 97, 0, 0, 112, 113, 0, 0, 98, 122, 338, 0, 0, 0, 89, 0, 230, 0, 0, 0, 0, 0, 0, 0, 0, 159, 0, 0, 0, 0, 134, 0, 197, 0, 199, 0, 201, 333, 0, 0, 0, 0, 181, 0, 0, 0, 0, 101, 102, 0, 0, 0, 0, 81, 0, 320, 0, 36, 0, 0, 0, 0, 0, 38, 0, 0, 0, 0, 75, 0, 0, 76, 0, 361, 136, 137, 138, 139, 0, 0, 349, 0, 92, 99, 100, 104, 0, 0, 114, 0, 0, 232, 107, 0, 0, 223, 121, 0, 0, 0, 0, 120, 0, 119, 117, 0, 0, 0, 330, 0, 329, 0, 0, 188, 0, 0, 189, 0, 0, 190, 0, 0, 0, 0, 0, 0, 0, 0, 140, 0, 0, 0, 0, 355, 0, 169, 168, 0, 0, 0, 41, 0, 0, 0, 332, 0, 0, 0, 365, 64, 71, 73, 0, 79, 0, 26, 0, 0, 0, 0, 0, 0, 0, 108, 95, 106, 116, 124, 0, 85, 86, 134, 0, 128, 0, 0, 0, 0, 0, 0, 217, 0, 0, 134, 0, 0, 131, 130, 0, 0, 0, 0, 82, 83, 0, 37, 0, 0, 0, 39, 54, 0, 359, 0, 236, 237, 238, 239, 111, 0, 0, 0, 0, 328, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 182, 0, 0, 0, 0, 0, 0, 354, 170, 0, 0, 0, 0, 0, 77, 0, 0, 0, 126, 0, 203, 0, 0, 205, 0, 0, 207, 0, 0, 0, 218, 0, 178, 0, 134, 0, 350, 0, 0, 103, 84, 0, 45, 0, 51, 0, 0, 90, 118, 327, 191, 0, 0, 198, 192, 0, 0, 200, 193, 0, 0, 202, 0, 0, 0, 184, 0, 0, 142, 0, 0, 0, 0, 0, 0, 209, 0, 211, 0, 213, 219, 221, 183, 179, 0, 0, 0, 42, 0, 49, 0, 0, 0, 194, 0, 0, 195, 0, 0, 196, 0, 0, 0, 143, 0, 43, 0, 0, 164, 0, 0, 0, 0, 0, 0, 185, 0, 0, 0, 0, 0, 204, 0, 206, 0, 208, 0, 144, 44, 46, 0, 47, 0, 0, 0, 0, 0, 0, 52, 210, 212, 214, 48, 50 }; /* YYDEFGOTO[NTERM-NUM]. */ static const yytype_int16 yydefgoto[] = { -1, 2, 3, 63, 670, 64, 65, 409, 977, 983, 591, 761, 1115, 1251, 592, 1217, 1277, 593, 1253, 594, 595, 765, 131, 222, 66, 708, 1015, 919, 478, 348, 349, 350, 351, 317, 288, 289, 69, 70, 71, 72, 73, 74, 318, 734, 1180, 1231, 553, 1035, 1038, 1041, 1198, 1202, 1206, 1241, 1244, 1247, 730, 731, 830, 705, 530, 559, 76, 77, 78, 335, 134, 358, 180, 880, 881, 344, 337, 521, 206, 661, 794, 454, 455 }; /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing STATE-NUM. */ #define YYPACT_NINF -1051 static const yytype_int16 yypact[] = { 3365, 30, 28, 3444, -1051, -1051, 1490, 33, 41, -61, 6, 48, 57, 95, 60, -5, 1, -39, 42, 45, -31, 58, 64, 107, 216, 222, 235, 253, 335, 264, 166, 347, 203, 209, -48, -48, 213, 260, 370, 340, 358, 376, 17, 105, 383, 450, 457, 464, 355, 367, 372, 15, 36, -1051, 380, -1051, 504, 384, -1051, 511, 519, 22, 24, -1051, -1051, -1051, -1051, -1051, -1051, -1051, -1051, -1051, -1051, -1051, -1051, -1051, -1051, -1051, -1051, -1051, 21, 385, 569, -1051, -1051, -1051, 54, 82, 333, 371, 463, 503, 507, 508, 512, 529, 592, 596, 602, 607, 608, 611, 612, 624, 627, 632, 639, 397, 401, 412, 413, -1051, 544, 424, -1051, -1051, -1051, -1051, -1051, -1051, -1051, 3026, 3026, 3026, -1051, -1051, 3026, 1427, 10, 578, 202, 3026, 584, 325, -1051, 598, 603, 3026, 609, -1051, 3026, -1051, -1051, -1051, 3026, 2862, 3026, 3026, 481, 3026, 2862, 3026, 3026, 485, 2862, 3026, 3026, 1762, 490, 484, 520, 533, 1629, 1629, 1629, 538, -1051, -1051, -1051, -1051, 555, 562, 563, 688, -48, -48, -48, 3026, 3026, -66, -1051, 138, -48, 582, 586, 593, 2826, 188, 131, 1629, 1762, 615, 18, 619, -1051, 771, -1051, 626, 636, 644, 778, 3026, 3026, 3026, 650, 3026, 655, 708, 3026, 3026, -1051, 3026, 804, -1051, 805, -1051, 818, -1051, 691, 3026, 824, 693, -1051, -1051, -1051, 839, 3026, 3026, 3026, 3026, 3026, 3026, 3026, 3026, 3026, 3026, 3026, 3026, 3026, 3026, 3026, 3026, 3026, 3026, 3026, 3026, 3026, 3026, 3026, 3026, 3026, 3026, 3026, 3026, 3026, 3026, 3026, 3026, 3026, 3026, 3026, 3026, 3026, 3026, 3026, 3026, 3026, 3026, 52, 52, 52, 52, 3026, 846, 669, 736, 736, 736, 5654, 8, 2862, 4918, 171, 734, 902, 777, 775, -1051, 786, 3511, 1172, -1051, -1051, 3026, 3026, 3026, 3026, 3026, 3026, 3026, 3026, 3026, 3026, 3026, 3026, 3026, 3026, 3026, -1051, -1051, 1295, -91, 4216, 5675, 633, 779, 2862, -1051, -1051, 558, -1051, 184, 5696, 5717, 3026, 5738, 522, 5759, 5780, 3026, 591, 5801, 5822, 1895, 1241, 3153, 929, -1051, 3026, 3026, 3026, 3026, -1051, -1051, 931, 932, 932, 3026, 808, 809, 810, 811, 3026, 3026, 3026, 816, -53, -1051, -1051, 4242, 4268, -48, -48, 202, 202, 268, 3026, 3026, 3026, 2826, 2826, 3026, 3511, 297, -1051, 3026, 3026, 939, 945, 3026, 947, -1051, 3026, 3026, 1667, -1051, 2862, 3026, 3026, -1051, 5843, 5864, 5885, 862, 4294, -1051, 815, 3172, 5906, 4941, -1051, -1051, 1800, -1051, 1933, 3026, 4964, 304, 3026, 13, -1051, 5927, 4987, 5948, 5010, 5969, 5033, 5990, 5056, 6011, 5079, 6032, 5102, 6053, 5125, 6074, 5148, 6095, 5171, 6116, 5194, 6137, 5217, 4320, 4346, 6158, 5240, 6179, 5263, 6200, 5286, 6221, 5309, 6242, 5332, 6263, 5355, 4372, 4398, 4424, 4450, 4476, 4502, 649, -71, -1051, 817, 825, 827, 1352, 823, 3026, -1051, 1762, 1762, 657, 55, 569, 3026, 958, 966, 19, 834, -1051, 173, -29, -17, 175, -1051, -1051, 3191, 1421, 2490, 733, 733, 705, 705, 705, 705, -20, -20, 736, 736, 736, 736, -1051, 2, 2862, 3026, 965, 2630, 3026, 736, -1051, 3026, 2862, 2862, 880, 970, 972, 6284, 974, 886, 976, 977, 6305, 889, 979, 980, 2862, -1051, 674, 2028, 3026, 6326, 3265, 6347, 6368, 3026, 1762, 984, 983, 6389, 2989, 2989, 2989, 2989, 6410, 6431, 6452, 852, -48, 3026, 3026, -1051, -1051, 850, 851, 3026, 4528, 4554, 4580, 4190, 346, -48, 2066, 6473, 3546, 3026, 989, 3026, 6494, -1051, 5378, 5401, -1051, 675, 5424, 5447, 991, 1007, 1008, 879, 3026, 2199, 3026, 3026, -1051, 35, -1051, -1051, 5470, 43, -1051, 3574, -1051, 887, 888, 882, -1051, 1014, -1051, -1051, -1051, -1051, -1051, -1051, -1051, -1051, -1051, -1051, -1051, -1051, -1051, -1051, -1051, -1051, -1051, -1051, -1051, -1051, -1051, -1051, -1051, -1051, -1051, -1051, -1051, 3026, 3026, -1051, -1051, -1051, -1051, -1051, -1051, -1051, -1051, -1051, -1051, -1051, -1051, 3026, 3026, 3026, 3026, 3026, 3026, 3026, 1038, -1051, 2862, 52, -1051, -1051, -1051, 3026, 5493, 1037, 1039, 909, -1051, 115, 3026, 1042, 1044, 1456, -1051, 1046, 915, 15, 1048, -1051, 2862, 2862, 2862, 2862, 3026, -1051, 934, 52, -8, 4606, -48, -1051, 2862, 3602, 3216, 736, -1051, 558, -1051, 1006, 1762, 1762, 1051, 1762, 768, 1762, 1762, 1052, 1009, 1762, 1762, 680, -1051, 2862, 2659, 1053, 1056, 1057, 1058, 911, -1051, -1051, 1060, -1051, 1061, 936, 6725, -1051, 938, 941, 942, 1073, 1074, 1075, 1063, 416, 4632, 4658, -1051, -1051, 3630, -48, -48, -48, 1077, 943, 951, -42, -1051, 420, -1051, 346, 1079, 1081, 6725, -1051, 2793, 949, 1082, 1086, 1045, 1091, 1092, 1762, 1762, 1762, 1095, 4684, -1051, 3235, 1269, 1096, 1097, 1098, 1101, -1051, 1100, -1051, 973, 3026, 3026, 1762, 967, -1051, 6515, 5516, 6536, 5539, 6557, 5562, 6578, 5585, 5608, -1051, 72, 975, 6599, 221, -1051, -1051, 71, 208, 971, 1106, 2946, -1051, -1051, -1051, 15, 3026, -1051, 699, -1051, 700, 706, 725, 728, 6725, -1051, 1108, 7, 3026, 12, 752, -1051, 3026, 978, 1059, 1059, 1762, 1109, 981, 982, 1110, 1114, 1762, 985, 1115, 1119, -1051, 756, -1051, 1123, 1762, 1762, 1762, 1125, 1124, -1051, 1762, 1128, 1129, 1130, 1131, 1762, 1762, 1762, 77, 3026, 3026, 3026, 990, 247, 332, 379, -1051, 1762, 3026, -1051, -1051, 2826, -28, 2161, -1051, -1051, 2862, -1051, -1051, 998, -1051, -1051, 1134, 1135, 1054, -1051, 3026, 3026, 3026, -1051, 1139, 1140, -1051, 304, -1051, 3026, 4710, 4736, 757, -1051, 3026, -1051, -1051, -1051, -1051, -1051, -1051, -1051, -1051, 1010, -1051, -1051, -1051, 1762, 569, 3026, 1143, 1146, 19, -1051, 1147, 5631, 15, -1051, 1148, 1149, 1150, 1151, -1051, -1051, 52, 4762, -1051, 1015, 6725, 3026, -48, 1152, 1154, 1155, -1051, 3026, 3026, -1051, -1051, 1157, 3026, -1051, -1051, -1051, 1159, 1160, 1161, 1078, 3026, -1051, 1163, 1762, 1762, 1762, 1762, 1164, 869, 1165, -1051, 2989, 3658, 6620, 3462, 202, -48, 1167, -48, 1169, -48, 1171, 360, 1040, 6641, 3686, 448, -1051, 684, 1173, 760, 3026, -1051, -1051, 1762, 3490, 762, 6662, -1051, 2693, -1051, 190, 6725, 3026, 3026, 1762, 1041, 761, 6725, 1177, 1179, 1180, 2967, -1051, 1176, 1182, -1051, 1062, -1051, -1051, -1051, -1051, -1051, 1183, 3026, -1051, 3714, 254, -1051, -1051, -1051, 3742, 3770, -1051, 3798, 1185, -1051, -1051, 1142, 1186, 6725, -1051, 1188, 1190, 1193, 1195, -1051, 1065, -1051, -1051, 3069, 1196, 1066, -1051, 3026, -1051, 1067, 496, -1051, 1069, 498, -1051, 1070, 509, -1051, 1076, 1197, 1762, 1201, 1080, 3026, 2294, 526, -1051, 1209, 3826, 1136, 3026, -1051, 3026, -1051, -1051, 2862, 3095, 1210, -1051, 3026, 4788, 4814, -1051, 1762, 3026, 1213, -1051, -1051, -1051, -1051, 15, -1051, 1126, -1051, 4840, 1216, 1220, 1222, 1223, 1224, 1090, -1051, -1051, -1051, -1051, -1051, 1762, -1051, -1051, 202, 3518, -1051, 2826, 346, 2826, 346, 2826, 346, -1051, 765, 1762, -1051, 3854, 2427, -1051, -1051, 3026, 3882, 3910, 766, -1051, -1051, 1093, 6725, 3026, 3026, 770, 6725, -1051, 1226, -1051, 3026, -1051, -1051, -1051, -1051, -1051, 3026, 781, 1094, 3026, -1051, 3938, 528, -12, 3966, 531, 263, 3994, 595, 265, 1762, 1227, 1174, 2332, 1099, 2560, 1241, 597, 1104, 3114, -1051, -1051, 1231, 3026, 6683, 4866, 20, -1051, 4892, 4022, 1233, -1051, 4050, 1236, 3026, 1237, 1243, 3026, 1247, 1248, 3026, 1270, 1105, -1051, 3026, -1051, 346, -1051, 2862, 885, 2427, 1272, -1051, -1051, 784, -1051, 3026, -1051, 1762, 3026, -1051, -1051, -1051, -1051, 1138, 4078, -1051, -1051, 1141, 4106, -1051, -1051, 1144, 4134, -1051, 1274, 3133, 276, 2465, 600, 1162, -1051, 1277, 1181, 6704, 787, 4162, 346, 1278, 346, 1296, 346, 1297, -1051, -1051, -1051, -1051, 346, 1762, 1300, -1051, 52, -1051, 1189, 1306, 278, -1051, 1191, 317, -1051, 1192, 331, -1051, 1194, 391, 1175, -1051, 791, -1051, 1198, 1762, -1051, 1307, 346, 1308, 346, 1309, 346, -1051, 1312, 52, 1314, 52, 792, -1051, 417, -1051, 445, -1051, 459, -1051, -1051, -1051, 795, -1051, 1315, 1317, 1318, 1323, 52, 1328, -1051, -1051, -1051, -1051, -1051, -1051 }; /* YYPGOTO[NTERM-NUM]. */ static const yytype_int16 yypgoto[] = { -1051, -1051, -1051, -1051, 534, -1051, -1051, -1051, -1051, 186, -1051, -1051, -1051, -1051, -1051, -1051, -1051, -1051, -1051, -1051, -1051, -1051, -275, -1, -1051, -122, -1051, 530, 1341, -1051, -1051, -1051, -1051, 3, -353, -185, -1051, -1051, -1051, -1051, -1051, -1051, 1342, -1051, -1051, -1051, -1051, -1051, -1051, -1051, -1051, -1051, -1051, -1051, -1051, -1051, -668, -677, -1051, -1051, 1000, -1051, -1051, -1051, -1051, -6, -1051, 241, -1051, -1050, 386, -129, 284, -80, -640, 452, -1051, -267, 44 }; /* 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[] = { 133, 372, 456, 457, 458, 132, 68, 468, 668, 384, 546, 547, 139, 911, 282, 463, 1119, 585, 914, 204, 793, 192, 380, 659, 381, 218, 1191, 214, 5, 216, 402, 727, 404, 148, 345, 346, 4, 728, 729, 1131, 207, 153, 754, 148, 496, 727, 136, 453, 224, 497, 135, 728, 729, 852, 141, 153, 453, 224, 361, 362, 377, 727, 651, 142, 640, 321, 854, 728, 729, 641, 326, 361, 362, 138, 330, 363, 175, 176, 651, 107, 108, 109, 110, 946, 947, 111, 177, 541, 107, 108, 109, 110, 137, 178, 111, 149, 586, 587, 588, 589, 851, 143, 150, 283, 284, 149, 304, 305, 306, 195, 154, 196, 664, 307, 963, 275, 276, 277, 193, 784, 278, 281, 464, 669, 665, 290, 225, 803, 669, 146, 1169, 310, 506, 287, 312, 147, 361, 362, 313, 319, 322, 323, 1219, 325, 319, 327, 328, 140, 319, 331, 332, 902, 124, 125, 382, 590, 205, 219, 194, 220, 660, 1192, 157, 215, 221, 217, 117, 118, 119, 120, 208, 359, 360, 755, 124, 125, 151, 852, 467, 152, 360, 757, 117, 118, 119, 120, 124, 125, 226, 555, 227, 653, 155, 652, 144, 390, 391, 392, 156, 394, 465, 145, 397, 398, 1267, 399, 286, 892, 785, 786, 574, 166, 506, 406, 167, 896, 228, 168, 229, 169, 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, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 361, 362, 994, 375, 459, 158, 33, 34, 35, 36, 376, 159, 319, 179, 181, 41, 187, 364, 44, 469, 117, 118, 119, 120, 160, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 124, 125, 161, 183, 566, 144, 184, 156, 502, 185, 361, 362, 663, 759, 666, 165, 510, 117, 118, 119, 120, 515, 506, 1061, 507, 502, 319, 374, 1062, 292, 524, 525, 526, 527, 727, 173, 727, 124, 125, 532, 728, 729, 728, 729, 537, 538, 539, 727, 174, 727, 124, 125, 182, 728, 729, 728, 729, 757, 549, 550, 551, 275, 276, 552, 287, 287, 504, 556, 557, 361, 362, 561, 188, 778, 563, 564, 361, 362, 319, 567, 568, 162, 175, 176, 163, 952, 164, 953, 727, 189, 361, 362, 177, 170, 728, 729, 171, 581, 172, 186, 584, 802, 727, 1172, 583, 1175, 548, 190, 728, 729, 711, 712, 713, 356, 357, 671, 1229, 727, 1256, 361, 362, 365, 191, 728, 729, 373, 1137, 320, 1140, 197, 1143, 1122, 320, 124, 125, 554, 320, 694, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 198, 647, 361, 362, 307, 1258, 852, 199, 656, 852, 727, 654, 852, 230, 200, 231, 728, 729, 954, 1260, 955, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 522, 305, 306, 201, 727, 319, 672, 307, 647, 676, 728, 729, 677, 678, 680, 202, 1042, 361, 362, 232, 203, 233, 895, 897, 210, 655, 1211, 319, 209, 212, 678, 697, 727, 956, 211, 957, 702, 213, 728, 729, 223, 709, 709, 709, 709, 268, 727, 1262, 852, 269, 719, 720, 728, 729, 361, 362, 723, 336, 361, 362, 270, 271, 343, 343, 343, 272, 737, 1239, 739, 1242, 841, 1245, 273, 1280, 853, 777, 852, 1248, 320, 852, 504, 750, 852, 752, 753, 852, 361, 362, 224, 343, 378, 710, 710, 710, 710, 758, 285, 796, 797, 798, 799, 1281, 1046, 1269, 291, 1271, 852, 1273, 852, 806, 852, 234, 1032, 235, 503, 1282, 544, 545, 308, 107, 108, 109, 110, 309, 357, 111, 767, 768, 311, 324, 823, 503, 320, 329, 361, 362, 361, 362, 338, 339, 769, 770, 771, 772, 773, 774, 775, 361, 362, 319, 1095, 236, 1097, 237, 779, 238, 240, 239, 241, 999, 242, 787, 243, 1099, 361, 362, 361, 362, 340, 361, 362, 319, 319, 319, 319, 800, 506, 244, 512, 245, 1106, 341, 1168, 319, 320, 1171, 347, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 505, 305, 306, 79, 314, 352, 319, 307, 355, 83, 84, 85, 353, 354, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 361, 362, 361, 362, 366, 361, 362, 246, 367, 247, 315, 248, 506, 249, 516, 368, 1174, 250, 1184, 251, 1132, 1232, 252, 254, 253, 255, 256, 258, 257, 259, 379, 33, 34, 35, 36, 37, 383, 878, 879, 260, 41, 261, 262, 44, 263, 124, 125, 264, 386, 265, 500, 1055, 220, 387, 266, 130, 267, 221, 385, 966, 758, 388, 320, 718, 898, 389, 638, 903, 639, 393, 679, 681, 113, 114, 115, 116, 732, 395, 506, 913, 650, 124, 125, 916, 320, 396, 461, 679, 220, 369, 1047, 400, 401, 221, 123, 506, 506, 695, 743, 371, 814, 506, 815, 822, 129, 403, 178, 520, 405, 407, 302, 303, 304, 305, 306, 408, 948, 949, 950, 307, 904, 506, 905, 906, 958, 960, 410, 506, 961, 907, 648, 649, 460, 319, 298, 299, 300, 301, 302, 303, 304, 305, 306, 971, 972, 973, 506, 307, 908, 506, 307, 909, 978, 470, 1023, 976, 1024, 984, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 988, 506, 504, 915, 307, 506, 981, 931, 982, 506, 1067, 1050, 1068, 1056, 1144, 506, 1145, 1156, 471, 981, 1002, 1160, 472, 805, 703, 130, 1007, 1008, 1147, 501, 981, 1010, 1164, 1067, 320, 1216, 981, 473, 1237, 1016, 1264, 981, 1265, 1279, 1283, 523, 1284, 528, 529, 987, 1026, 533, 534, 535, 536, 558, 320, 320, 320, 320, 540, 560, 562, 287, 572, 575, 642, 319, 320, 643, 1051, 644, 646, 657, 845, 846, 847, 1252, 1059, 658, 662, 673, 1063, 1064, 829, 682, 683, 1112, 684, 320, 686, 687, 688, 689, 691, 692, 693, 704, 706, 717, 1027, 721, 722, 1077, 738, 1212, 1275, 746, 1278, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 505, 305, 306, 747, 748, 1289, 749, 307, 1060, 766, 762, 763, 764, 1093, 543, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 1105, 502, 776, 781, 307, 782, 783, 1110, 788, 1111, 789, 792, 319, 791, 795, 801, 1116, 809, 812, 818, 825, 1120, 819, 826, 827, 828, 831, 840, 832, 810, 811, 833, 813, 834, 816, 817, 835, 836, 820, 821, 837, 838, 839, 848, 849, 850, 855, 856, 859, 1135, 858, 1138, 860, 1141, 962, 287, 861, 862, 863, 867, 872, 873, 694, 1153, 874, 875, 876, 877, 882, 899, 893, 1158, 1159, 900, 910, 922, 925, 918, 1162, 917, 926, 929, 923, 924, 1163, 930, 928, 1166, 932, 936, 937, 951, 864, 865, 866, 939, 940, 941, 942, 967, 968, 969, 320, 502, 1183, 974, 970, 975, 985, 989, 990, 984, 1001, 992, 995, 996, 997, 998, 1004, 1003, 1005, 1006, 1199, 1009, 1011, 1203, 1012, 1013, 1207, 1017, 1022, 1025, 1210, 1034, 1014, 1037, 1183, 1040, 479, 1049, 1043, 1069, 1066, 1073, 1218, 1070, 1071, 1220, 1074, 1076, 1082, 1083, 1084, 1033, 1085, 1036, 1086, 1039, 921, 1087, 1075, 1088, 1091, 1101, 927, 1048, 1089, 1092, 1103, 1094, 1096, 1098, 933, 934, 935, 1107, 1114, 1100, 938, 1121, 1123, 1104, 1125, 943, 944, 945, 1126, 1109, 1127, 1128, 1129, 1130, 1161, 1177, 1157, 959, 1165, 1187, 1178, 1195, 1181, 965, 1197, 1200, 79, 314, 1185, 1209, 320, 1201, 83, 84, 85, 1204, 1205, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 1208, 870, 1215, 1221, 1227, 986, 1223, 1234, 1240, 1225, 315, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 495, 1243, 1246, 1233, 307, 1250, 33, 34, 35, 36, 37, 1255, 1268, 1270, 1272, 41, 1263, 1274, 44, 1276, 1285, 1235, 1286, 1287, 1018, 1019, 1020, 1021, 1288, 1254, 503, 1257, 1259, 1290, 1261, 1136, 912, 1139, 1266, 1142, 920, 320, 1188, 67, 75, 531, 1151, 113, 114, 115, 116, 991, 0, 0, 0, 1052, 0, 645, 0, 0, 0, 0, 0, 0, 121, 316, 1065, 0, 0, 123, 0, 0, 0, 0, 126, 0, 0, 0, 0, 129, 0, 0, 520, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 871, 0, 0, 0, 0, 0, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 1213, 0, 0, 307, 1102, 79, 274, 0, 503, 320, 0, 83, 84, 85, 0, 0, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 790, 0, 0, 0, 320, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 0, 0, 1146, 0, 0, 1152, 79, 80, 81, 0, 82, 0, 83, 84, 85, 0, 0, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 0, 107, 108, 109, 110, 1176, 0, 111, 0, 113, 114, 115, 116, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 121, 122, 0, 307, 0, 123, 0, 0, 0, 0, 126, 0, 0, 279, 0, 129, 0, 280, 0, 1214, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 112, 0, 0, 0, 0, 0, 113, 114, 115, 116, 117, 118, 119, 120, 0, 0, 0, 0, 0, 0, 0, 0, 0, 121, 122, 0, 0, 1249, 123, 0, 124, 125, 0, 126, 0, 127, 0, 128, 129, 0, 130, 79, 314, 342, 0, 0, 0, 83, 84, 85, 0, 0, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 315, 0, 0, 0, 0, 7, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 33, 34, 35, 36, 37, 0, 0, 0, 0, 41, 0, 0, 44, 0, 0, 0, 0, 474, 15, 16, 475, 18, 19, 476, 21, 477, 23, 0, 24, 0, 26, 27, 0, 29, 30, 31, 0, 0, 0, 0, 0, 113, 114, 115, 116, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 121, 333, 48, 49, 50, 123, 0, 0, 0, 0, 126, 0, 79, 314, 0, 129, 0, 334, 83, 84, 85, 0, 0, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 315, 0, 565, 0, 0, 7, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 33, 34, 35, 36, 37, 0, 0, 0, 0, 41, 0, 0, 44, 0, 0, 0, 0, 474, 15, 16, 475, 18, 19, 476, 21, 477, 23, 0, 24, 0, 26, 27, 0, 29, 30, 31, 0, 0, 0, 0, 0, 113, 114, 115, 116, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 121, 333, 48, 49, 50, 123, 0, 0, 0, 0, 126, 0, 79, 314, 0, 129, 0, 334, 83, 84, 85, 0, 0, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 315, 0, 579, 0, 0, 7, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 33, 34, 35, 36, 37, 0, 0, 0, 0, 41, 0, 0, 44, 0, 0, 0, 0, 474, 15, 16, 475, 18, 19, 476, 21, 477, 23, 0, 24, 0, 26, 27, 0, 29, 30, 31, 0, 0, 0, 0, 0, 113, 114, 115, 116, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 121, 316, 48, 49, 50, 123, 0, 0, 0, 0, 126, 0, 79, 314, 0, 129, 0, 519, 83, 84, 85, 0, 0, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 315, 0, 580, 0, 0, 7, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 33, 34, 35, 36, 37, 0, 0, 0, 0, 41, 0, 0, 44, 0, 0, 0, 0, 474, 15, 16, 475, 18, 19, 476, 21, 477, 23, 0, 24, 0, 26, 27, 0, 29, 30, 31, 0, 0, 0, 0, 0, 113, 114, 115, 116, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 121, 316, 48, 49, 50, 123, 0, 0, 0, 0, 126, 0, 79, 314, 0, 129, 0, 696, 83, 84, 85, 0, 0, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 315, 0, 733, 0, 0, 7, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 33, 34, 35, 36, 37, 0, 0, 0, 0, 41, 0, 0, 44, 0, 0, 0, 0, 474, 15, 16, 475, 18, 19, 476, 21, 477, 23, 0, 24, 0, 26, 27, 0, 29, 30, 31, 0, 0, 0, 0, 0, 113, 114, 115, 116, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 121, 333, 48, 49, 50, 123, 0, 0, 0, 0, 126, 0, 79, 314, 0, 129, 0, 964, 83, 84, 85, 0, 0, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 315, 0, 751, 0, 0, 7, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 33, 34, 35, 36, 37, 0, 0, 0, 0, 41, 0, 0, 44, 0, 0, 0, 0, 474, 15, 16, 475, 18, 19, 476, 21, 477, 23, 0, 24, 0, 26, 27, 0, 29, 30, 31, 0, 0, 0, 0, 0, 113, 114, 115, 116, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 369, 1047, 48, 49, 50, 123, 0, 0, 0, 0, 371, 0, 79, 314, 0, 129, 0, 178, 83, 84, 85, 0, 0, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 315, 0, 1179, 0, 0, 7, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 33, 34, 35, 36, 37, 0, 0, 0, 0, 41, 0, 0, 44, 0, 0, 0, 0, 474, 15, 16, 475, 18, 19, 476, 21, 477, 23, 0, 24, 0, 26, 27, 0, 29, 30, 31, 0, 0, 0, 0, 0, 113, 114, 115, 116, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 369, 1149, 48, 49, 50, 123, 0, 0, 0, 0, 371, 0, 79, 314, 0, 129, 0, 1150, 83, 84, 85, 0, 0, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 315, 0, 1230, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 0, 33, 34, 35, 36, 37, 0, 0, 79, 274, 41, 0, 0, 44, 83, 84, 85, 0, 0, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 824, 0, 113, 114, 115, 116, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 369, 1047, 0, 0, 0, 123, 0, 0, 0, 0, 371, 0, 79, 274, 224, 129, 0, 1182, 83, 84, 85, 0, 0, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 0, 107, 108, 109, 110, 0, 0, 111, 0, 113, 114, 115, 116, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 121, 122, 0, 0, 0, 123, 0, 0, 0, 0, 126, 0, 0, 674, 0, 129, 0, 675, 0, 0, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 0, 0, 0, 0, 0, 857, 113, 114, 115, 116, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 121, 122, 0, 0, 0, 123, 0, 0, 0, 0, 126, 0, 79, 274, 0, 129, 0, 1058, 83, 84, 85, 0, 0, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 0, 0, 0, 0, 79, 314, 0, 0, 0, 0, 83, 84, 85, 0, 0, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 315, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 33, 34, 35, 36, 37, 113, 114, 115, 116, 41, 0, 0, 44, 0, 0, 0, 0, 0, 0, 0, 0, 0, 369, 370, 901, 0, 0, 123, 0, 0, 0, 0, 371, 0, 0, 0, 0, 129, 0, 178, 0, 113, 114, 115, 116, 1072, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 121, 316, 0, 0, 0, 123, 79, 274, 224, 0, 126, 0, 83, 84, 85, 129, 0, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 0, 107, 108, 109, 110, 79, 274, 111, 0, 0, 0, 83, 84, 85, 0, 0, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 1090, 0, 0, 0, 307, 0, 0, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 113, 114, 115, 116, 307, 1113, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 121, 122, 0, 0, 0, 123, 0, 1186, 0, 0, 126, 0, 0, 0, 0, 129, 0, 0, 0, 0, 113, 114, 115, 116, 0, 0, 1228, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 121, 122, 0, 0, 0, 123, 0, 0, 0, 0, 126, 504, 0, 0, 0, 129, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 576, 0, 0, 0, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 667, 0, 0, 307, 0, 0, 0, 0, 0, 0, 0, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 808, 0, 0, 0, 307, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 869, 0, 0, 0, 307, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 522, 305, 306, 0, 0, 0, 0, 307, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 0, 0, 0, 0, 0, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, -4, 1, 0, 307, -4, 0, 0, 0, 0, 0, 0, 0, -4, -4, 0, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, -4, 0, 0, 0, 0, -4, -4, 699, -4, -4, -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, -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, 22, 23, 0, 24, 25, 26, 27, 28, 29, 30, 31, 0, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 43, 44, 7, 8, 45, 46, 0, 0, 0, 0, 47, 48, 49, 50, 0, 0, 51, 0, 52, 0, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 0, 0, 0, 0, 0, 474, 15, 16, 475, 18, 19, 476, 21, 477, 23, 0, 24, 0, 26, 27, 0, 29, 30, 31, 0, 0, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 0, 0, 48, 49, 50, 1030, 0, 1031, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 0, 0, 0, 0, 0, 1053, 0, 1054, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 0, 0, 0, 0, 0, 1133, 0, 1134, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 0, 0, 0, 0, 0, 0, 0, 736, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 0, 0, 0, 0, 0, 0, 0, 760, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 0, 0, 0, 0, 0, 0, 0, 807, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 0, 0, 0, 0, 0, 0, 0, 844, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 0, 0, 0, 0, 0, 0, 0, 1028, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 0, 0, 0, 0, 0, 0, 0, 1045, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 0, 0, 0, 0, 0, 0, 0, 1078, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 0, 0, 0, 0, 0, 0, 0, 1079, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 0, 0, 0, 0, 0, 0, 0, 1080, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 0, 0, 0, 0, 0, 0, 0, 1081, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 0, 0, 0, 0, 0, 0, 0, 1108, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 0, 0, 0, 0, 0, 0, 0, 1148, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 0, 0, 0, 0, 0, 0, 0, 1154, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 0, 0, 0, 0, 0, 0, 0, 1155, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 0, 0, 0, 0, 0, 0, 0, 1167, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 0, 0, 0, 0, 0, 0, 0, 1170, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 0, 0, 0, 0, 0, 0, 0, 1173, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 0, 0, 0, 0, 0, 0, 0, 1194, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 0, 0, 0, 0, 0, 0, 0, 1196, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 0, 0, 0, 0, 0, 0, 0, 1222, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 0, 0, 0, 0, 0, 0, 0, 1224, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 0, 0, 0, 0, 0, 0, 0, 1226, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 0, 0, 0, 0, 0, 0, 0, 1238, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 462, 0, 0, 0, 0, 542, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 0, 0, 0, 0, 0, 498, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 0, 0, 0, 0, 0, 542, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 0, 0, 0, 0, 0, 543, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 0, 0, 0, 0, 0, 573, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 0, 0, 0, 0, 0, 618, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 0, 0, 0, 0, 0, 619, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 0, 0, 0, 0, 0, 632, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 0, 0, 0, 0, 0, 633, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 0, 0, 0, 0, 0, 634, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 0, 0, 0, 0, 0, 635, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 0, 0, 0, 0, 0, 636, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 0, 0, 0, 0, 0, 637, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 0, 0, 0, 0, 0, 724, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 0, 0, 0, 0, 0, 725, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 0, 0, 0, 0, 0, 726, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 0, 0, 0, 0, 0, 804, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 0, 0, 0, 0, 0, 842, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 0, 0, 0, 0, 0, 843, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 0, 0, 0, 0, 0, 868, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 0, 0, 0, 0, 0, 979, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 0, 0, 0, 0, 0, 980, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 0, 0, 0, 0, 0, 1000, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 0, 0, 0, 0, 0, 1117, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 0, 0, 0, 0, 0, 1118, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 0, 0, 0, 0, 0, 1124, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 0, 0, 0, 0, 0, 1190, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 0, 0, 0, 0, 0, 1193, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 0, 0, 466, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 0, 0, 578, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 0, 0, 582, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 0, 0, 597, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 0, 0, 599, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 0, 0, 601, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 0, 0, 603, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 0, 0, 605, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 0, 0, 607, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 0, 0, 609, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 0, 0, 611, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 0, 0, 613, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 0, 0, 615, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 0, 0, 617, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 0, 0, 621, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 0, 0, 623, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 0, 0, 625, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 0, 0, 627, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 0, 0, 629, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 0, 0, 631, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 0, 0, 741, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 0, 0, 742, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 0, 0, 744, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 0, 0, 745, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 0, 0, 756, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 0, 0, 780, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 0, 0, 884, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 0, 0, 886, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 0, 0, 888, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 0, 0, 890, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 0, 0, 891, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 0, 0, 993, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 462, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 499, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 508, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 509, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 511, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 513, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 514, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 517, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 518, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 569, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 570, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 571, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 577, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 596, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 598, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 600, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 602, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 604, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 606, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 608, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 610, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 612, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 614, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 616, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 620, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 622, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 624, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 626, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 628, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 630, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 685, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 690, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 698, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 700, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 701, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 707, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 714, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 715, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 716, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 735, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 740, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 883, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 885, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 887, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 889, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 894, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 1029, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 1044, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 1057, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 1189, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307, 0, 1236, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 0, 0, 0, 0, 307 }; static const yytype_int16 yycheck[] = { 6, 186, 269, 270, 271, 6, 3, 282, 6, 194, 363, 364, 6, 6, 4, 7, 1066, 4, 6, 4, 660, 4, 4, 4, 6, 4, 6, 5, 0, 5, 215, 73, 217, 72, 163, 164, 6, 79, 80, 1089, 4, 72, 7, 72, 135, 73, 13, 4, 5, 140, 6, 79, 80, 730, 6, 72, 4, 5, 124, 125, 189, 73, 7, 6, 135, 145, 734, 79, 80, 140, 150, 124, 125, 134, 154, 141, 124, 125, 7, 36, 37, 38, 39, 6, 7, 42, 134, 140, 36, 37, 38, 39, 51, 141, 42, 134, 83, 84, 85, 86, 142, 6, 141, 93, 94, 134, 126, 127, 128, 4, 141, 6, 141, 133, 142, 121, 122, 123, 101, 4, 126, 127, 114, 121, 141, 131, 82, 135, 121, 134, 142, 137, 140, 130, 140, 134, 124, 125, 144, 145, 146, 147, 1192, 149, 150, 151, 152, 141, 154, 155, 156, 791, 131, 132, 136, 142, 141, 136, 141, 138, 141, 141, 55, 141, 143, 141, 111, 112, 113, 114, 134, 177, 178, 138, 131, 132, 134, 854, 7, 134, 186, 138, 111, 112, 113, 114, 131, 132, 134, 374, 136, 466, 134, 138, 134, 201, 202, 203, 134, 205, 280, 141, 208, 209, 1254, 211, 4, 135, 93, 94, 395, 45, 140, 219, 48, 7, 134, 51, 136, 53, 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, 260, 261, 262, 263, 264, 265, 266, 267, 124, 125, 904, 134, 272, 51, 66, 67, 68, 69, 141, 51, 280, 34, 35, 75, 37, 141, 78, 282, 111, 112, 113, 114, 51, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 131, 132, 51, 45, 386, 134, 48, 134, 316, 51, 124, 125, 141, 582, 141, 53, 324, 111, 112, 113, 114, 329, 140, 135, 142, 333, 334, 141, 140, 6, 338, 339, 340, 341, 73, 134, 73, 131, 132, 347, 79, 80, 79, 80, 352, 353, 354, 73, 141, 73, 131, 132, 141, 79, 80, 79, 80, 138, 366, 367, 368, 369, 370, 371, 363, 364, 8, 375, 376, 124, 125, 379, 4, 642, 382, 383, 124, 125, 386, 387, 388, 48, 124, 125, 51, 140, 53, 142, 73, 51, 124, 125, 134, 48, 79, 80, 51, 405, 53, 141, 408, 670, 73, 142, 407, 142, 140, 51, 79, 80, 534, 535, 536, 174, 175, 497, 142, 73, 142, 124, 125, 182, 48, 79, 80, 186, 1096, 145, 1098, 48, 1100, 1073, 150, 131, 132, 140, 154, 519, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 4, 461, 124, 125, 133, 142, 1137, 4, 468, 1140, 73, 466, 1143, 134, 4, 136, 79, 80, 140, 142, 142, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 134, 73, 497, 498, 133, 500, 501, 79, 80, 504, 505, 506, 134, 142, 124, 125, 134, 134, 136, 783, 784, 6, 467, 1180, 519, 134, 4, 522, 523, 73, 140, 136, 142, 528, 4, 79, 80, 141, 533, 534, 535, 536, 134, 73, 142, 1211, 134, 542, 543, 79, 80, 124, 125, 548, 157, 124, 125, 134, 134, 162, 163, 164, 7, 558, 1221, 560, 1223, 140, 1225, 134, 142, 140, 641, 1239, 1231, 280, 1242, 8, 573, 1245, 575, 576, 1248, 124, 125, 5, 189, 190, 533, 534, 535, 536, 582, 4, 663, 664, 665, 666, 142, 140, 1257, 6, 1259, 1269, 1261, 1271, 675, 1273, 134, 951, 136, 316, 142, 361, 362, 6, 36, 37, 38, 39, 6, 369, 42, 618, 619, 5, 134, 696, 333, 334, 134, 124, 125, 124, 125, 134, 141, 632, 633, 634, 635, 636, 637, 638, 124, 125, 641, 140, 134, 140, 136, 646, 134, 134, 136, 136, 912, 134, 653, 136, 140, 124, 125, 124, 125, 134, 124, 125, 663, 664, 665, 666, 667, 140, 134, 142, 136, 140, 134, 140, 675, 386, 140, 134, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 3, 4, 134, 696, 133, 4, 9, 10, 11, 134, 134, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 124, 125, 124, 125, 141, 124, 125, 134, 141, 136, 45, 134, 140, 136, 142, 141, 140, 134, 140, 136, 1092, 140, 134, 134, 136, 136, 134, 134, 136, 136, 134, 66, 67, 68, 69, 70, 136, 762, 763, 134, 75, 136, 134, 78, 136, 131, 132, 134, 141, 136, 136, 8, 138, 136, 134, 141, 136, 143, 6, 858, 780, 136, 497, 541, 784, 6, 136, 792, 138, 138, 505, 506, 107, 108, 109, 110, 554, 141, 140, 804, 142, 131, 132, 808, 519, 96, 136, 522, 138, 124, 125, 6, 6, 143, 129, 140, 140, 142, 142, 134, 51, 140, 53, 142, 139, 6, 141, 142, 136, 4, 124, 125, 126, 127, 128, 141, 841, 842, 843, 133, 140, 140, 142, 142, 849, 850, 6, 140, 853, 142, 463, 464, 5, 858, 120, 121, 122, 123, 124, 125, 126, 127, 128, 868, 869, 870, 140, 133, 142, 140, 133, 142, 877, 138, 4, 875, 6, 882, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 897, 140, 8, 142, 133, 140, 140, 142, 142, 140, 140, 142, 142, 142, 140, 140, 142, 142, 7, 140, 917, 142, 136, 673, 529, 141, 923, 924, 1104, 141, 140, 928, 142, 140, 641, 142, 140, 142, 142, 936, 140, 140, 142, 142, 140, 7, 142, 7, 7, 896, 947, 134, 134, 134, 134, 7, 663, 664, 665, 666, 135, 7, 6, 951, 93, 141, 140, 964, 675, 135, 967, 135, 140, 6, 724, 725, 726, 1235, 975, 4, 137, 7, 979, 980, 64, 96, 7, 1058, 7, 696, 7, 96, 7, 7, 96, 7, 7, 4, 6, 138, 947, 142, 142, 1000, 6, 1181, 1264, 7, 1266, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 7, 7, 1283, 138, 133, 975, 6, 134, 134, 141, 1030, 140, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 1046, 1047, 4, 6, 133, 6, 137, 1053, 6, 1055, 6, 136, 1058, 7, 6, 121, 1062, 51, 7, 7, 7, 1067, 53, 7, 7, 7, 6, 4, 7, 683, 684, 135, 686, 135, 688, 689, 135, 135, 692, 693, 7, 7, 7, 6, 141, 134, 7, 6, 6, 1095, 141, 1097, 6, 1099, 853, 1092, 51, 6, 6, 4, 4, 4, 1182, 1109, 6, 4, 6, 134, 141, 138, 135, 1117, 1118, 7, 6, 6, 6, 58, 1124, 141, 6, 6, 141, 141, 1130, 6, 141, 1133, 5, 4, 6, 141, 746, 747, 748, 7, 7, 7, 7, 141, 6, 6, 858, 1149, 1150, 6, 92, 7, 138, 6, 4, 1157, 137, 6, 6, 6, 6, 6, 6, 918, 6, 6, 1168, 6, 5, 1171, 6, 6, 1174, 6, 6, 6, 1178, 6, 96, 6, 1182, 6, 6, 6, 140, 4, 141, 7, 1190, 6, 6, 1193, 6, 6, 5, 49, 6, 952, 6, 954, 6, 956, 812, 6, 138, 6, 6, 6, 818, 964, 141, 141, 7, 142, 141, 141, 826, 827, 828, 6, 6, 141, 832, 6, 94, 141, 6, 837, 838, 839, 6, 91, 6, 6, 6, 141, 6, 6, 141, 849, 142, 6, 64, 6, 141, 855, 6, 6, 3, 4, 142, 142, 964, 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, 8, 6, 141, 6, 895, 141, 6, 6, 141, 45, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 6, 6, 6, 142, 133, 6, 66, 67, 68, 69, 70, 6, 6, 6, 6, 75, 142, 6, 78, 6, 6, 141, 6, 6, 939, 940, 941, 942, 6, 141, 1047, 141, 141, 6, 141, 1095, 803, 1097, 141, 1099, 811, 1058, 1157, 3, 3, 346, 1106, 107, 108, 109, 110, 900, -1, -1, -1, 970, -1, 6, -1, -1, -1, -1, -1, -1, 124, 125, 981, -1, -1, 129, -1, -1, -1, -1, 134, -1, -1, -1, -1, 139, -1, -1, 142, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, 135, -1, -1, -1, -1, -1, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, 1184, -1, -1, 133, 1043, 3, 4, -1, 1149, 1150, -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, 6, -1, -1, -1, 1182, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, -1, -1, 1103, -1, -1, 1106, 3, 4, 5, -1, 7, -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, 36, 37, 38, 39, 1144, -1, 42, -1, 107, 108, 109, 110, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, 124, 125, -1, 133, -1, 129, -1, -1, -1, -1, 134, -1, -1, 137, -1, 139, -1, 141, -1, 1184, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, 101, -1, -1, -1, -1, -1, 107, 108, 109, 110, 111, 112, 113, 114, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, 125, -1, -1, 1232, 129, -1, 131, 132, -1, 134, -1, 136, -1, 138, 139, -1, 141, 3, 4, 5, -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, -1, -1, -1, -1, -1, -1, -1, 45, -1, -1, -1, -1, 12, 13, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 66, 67, 68, 69, 70, -1, -1, -1, -1, 75, -1, -1, 78, -1, -1, -1, -1, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, -1, 56, -1, 58, 59, -1, 61, 62, 63, -1, -1, -1, -1, -1, 107, 108, 109, 110, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, 125, 88, 89, 90, 129, -1, -1, -1, -1, 134, -1, 3, 4, -1, 139, -1, 141, 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, -1, -1, 45, -1, 142, -1, -1, 12, 13, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 66, 67, 68, 69, 70, -1, -1, -1, -1, 75, -1, -1, 78, -1, -1, -1, -1, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, -1, 56, -1, 58, 59, -1, 61, 62, 63, -1, -1, -1, -1, -1, 107, 108, 109, 110, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, 125, 88, 89, 90, 129, -1, -1, -1, -1, 134, -1, 3, 4, -1, 139, -1, 141, 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, -1, -1, 45, -1, 142, -1, -1, 12, 13, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 66, 67, 68, 69, 70, -1, -1, -1, -1, 75, -1, -1, 78, -1, -1, -1, -1, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, -1, 56, -1, 58, 59, -1, 61, 62, 63, -1, -1, -1, -1, -1, 107, 108, 109, 110, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, 125, 88, 89, 90, 129, -1, -1, -1, -1, 134, -1, 3, 4, -1, 139, -1, 141, 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, -1, -1, 45, -1, 142, -1, -1, 12, 13, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 66, 67, 68, 69, 70, -1, -1, -1, -1, 75, -1, -1, 78, -1, -1, -1, -1, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, -1, 56, -1, 58, 59, -1, 61, 62, 63, -1, -1, -1, -1, -1, 107, 108, 109, 110, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, 125, 88, 89, 90, 129, -1, -1, -1, -1, 134, -1, 3, 4, -1, 139, -1, 141, 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, -1, -1, 45, -1, 142, -1, -1, 12, 13, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 66, 67, 68, 69, 70, -1, -1, -1, -1, 75, -1, -1, 78, -1, -1, -1, -1, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, -1, 56, -1, 58, 59, -1, 61, 62, 63, -1, -1, -1, -1, -1, 107, 108, 109, 110, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, 125, 88, 89, 90, 129, -1, -1, -1, -1, 134, -1, 3, 4, -1, 139, -1, 141, 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, -1, -1, 45, -1, 142, -1, -1, 12, 13, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 66, 67, 68, 69, 70, -1, -1, -1, -1, 75, -1, -1, 78, -1, -1, -1, -1, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, -1, 56, -1, 58, 59, -1, 61, 62, 63, -1, -1, -1, -1, -1, 107, 108, 109, 110, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, 125, 88, 89, 90, 129, -1, -1, -1, -1, 134, -1, 3, 4, -1, 139, -1, 141, 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, -1, -1, 45, -1, 142, -1, -1, 12, 13, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 66, 67, 68, 69, 70, -1, -1, -1, -1, 75, -1, -1, 78, -1, -1, -1, -1, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, -1, 56, -1, 58, 59, -1, 61, 62, 63, -1, -1, -1, -1, -1, 107, 108, 109, 110, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, 125, 88, 89, 90, 129, -1, -1, -1, -1, 134, -1, 3, 4, -1, 139, -1, 141, 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, -1, -1, 45, -1, 142, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, -1, 66, 67, 68, 69, 70, -1, -1, 3, 4, 75, -1, -1, 78, 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, 107, 108, 109, 110, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, 125, -1, -1, -1, 129, -1, -1, -1, -1, 134, -1, 3, 4, 5, 139, -1, 141, 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, -1, -1, 42, -1, 107, 108, 109, 110, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, 125, -1, -1, -1, 129, -1, -1, -1, -1, 134, -1, -1, 137, -1, 139, -1, 141, -1, -1, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, -1, -1, -1, -1, -1, 6, 107, 108, 109, 110, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, 125, -1, -1, -1, 129, -1, -1, -1, -1, 134, -1, 3, 4, -1, 139, -1, 141, 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, 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, -1, -1, -1, -1, -1, -1, -1, 45, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, 66, 67, 68, 69, 70, 107, 108, 109, 110, 75, -1, -1, 78, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, 125, 6, -1, -1, 129, -1, -1, -1, -1, 134, -1, -1, -1, -1, 139, -1, 141, -1, 107, 108, 109, 110, 6, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, 125, -1, -1, -1, 129, 3, 4, 5, -1, 134, -1, 9, 10, 11, 139, -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, -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, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 6, -1, -1, -1, 133, -1, -1, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 107, 108, 109, 110, 133, 6, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, 125, -1, -1, -1, 129, -1, 6, -1, -1, 134, -1, -1, -1, -1, 139, -1, -1, -1, -1, 107, 108, 109, 110, -1, -1, 6, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, 125, -1, -1, -1, 129, -1, -1, -1, -1, 134, 8, -1, -1, -1, 139, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 8, -1, -1, -1, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, 8, -1, -1, 133, -1, -1, -1, -1, -1, -1, -1, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 8, -1, -1, -1, 133, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 8, -1, -1, -1, 133, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, -1, -1, -1, -1, -1, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, 0, 1, -1, 133, 4, -1, -1, -1, -1, -1, -1, -1, 12, 13, -1, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, 35, -1, -1, -1, -1, 40, 41, 142, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, -1, 56, 57, 58, 59, 60, 61, 62, 63, -1, 65, 66, 67, 68, 69, 70, 71, -1, 73, 74, 75, 76, 77, 78, -1, -1, 81, 82, 4, -1, -1, -1, 87, 88, 89, 90, 12, 13, 93, -1, 95, -1, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, -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, 53, 54, -1, 56, 57, 58, 59, 60, 61, 62, 63, -1, 65, 66, 67, 68, 69, 70, 71, -1, 73, 74, 75, 76, 77, 78, 12, 13, 81, 82, -1, -1, -1, -1, 87, 88, 89, 90, -1, -1, 93, -1, 95, -1, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, -1, -1, -1, -1, -1, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, -1, 56, -1, 58, 59, -1, 61, 62, 63, -1, -1, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, -1, -1, 88, 89, 90, 140, -1, 142, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, -1, -1, -1, -1, -1, 140, -1, 142, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, -1, -1, -1, -1, -1, 140, -1, 142, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, -1, -1, -1, -1, -1, -1, -1, 142, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, -1, -1, -1, -1, -1, -1, -1, 142, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, -1, -1, -1, -1, -1, -1, -1, 142, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, -1, -1, -1, -1, -1, -1, -1, 142, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, -1, -1, -1, -1, -1, -1, -1, 142, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, -1, -1, -1, -1, -1, -1, -1, 142, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, -1, -1, -1, -1, -1, -1, -1, 142, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, -1, -1, -1, -1, -1, -1, -1, 142, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, -1, -1, -1, -1, -1, -1, -1, 142, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, -1, -1, -1, -1, -1, -1, -1, 142, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, -1, -1, -1, -1, -1, -1, -1, 142, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, -1, -1, -1, -1, -1, -1, -1, 142, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, -1, -1, -1, -1, -1, -1, -1, 142, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, -1, -1, -1, -1, -1, -1, -1, 142, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, -1, -1, -1, -1, -1, -1, -1, 142, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, -1, -1, -1, -1, -1, -1, -1, 142, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, -1, -1, -1, -1, -1, -1, -1, 142, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, -1, -1, -1, -1, -1, -1, -1, 142, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, -1, -1, -1, -1, -1, -1, -1, 142, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, -1, -1, -1, -1, -1, -1, -1, 142, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, -1, -1, -1, -1, -1, -1, -1, 142, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, -1, -1, -1, -1, -1, -1, -1, 142, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, -1, -1, -1, -1, -1, -1, -1, 142, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, 135, -1, -1, -1, -1, 140, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, -1, -1, -1, -1, -1, 140, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, -1, -1, -1, -1, -1, 140, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, -1, -1, -1, -1, -1, 140, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, -1, -1, -1, -1, -1, 140, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, -1, -1, -1, -1, -1, 140, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, -1, -1, -1, -1, -1, 140, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, -1, -1, -1, -1, -1, 140, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, -1, -1, -1, -1, -1, 140, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, -1, -1, -1, -1, -1, 140, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, -1, -1, -1, -1, -1, 140, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, -1, -1, -1, -1, -1, 140, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, -1, -1, -1, -1, -1, 140, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, -1, -1, -1, -1, -1, 140, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, -1, -1, -1, -1, -1, 140, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, -1, -1, -1, -1, -1, 140, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, -1, -1, -1, -1, -1, 140, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, -1, -1, -1, -1, -1, 140, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, -1, -1, -1, -1, -1, 140, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, -1, -1, -1, -1, -1, 140, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, -1, -1, -1, -1, -1, 140, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, -1, -1, -1, -1, -1, 140, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, -1, -1, -1, -1, -1, 140, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, -1, -1, -1, -1, -1, 140, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, -1, -1, -1, -1, -1, 140, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, -1, -1, -1, -1, -1, 140, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, -1, -1, -1, -1, -1, 140, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, -1, -1, -1, -1, -1, 140, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, -1, -1, 137, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, -1, -1, 137, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, -1, -1, 137, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, -1, -1, 137, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, -1, -1, 137, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, -1, -1, 137, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, -1, -1, 137, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, -1, -1, 137, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, -1, -1, 137, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, -1, -1, 137, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, -1, -1, 137, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, -1, -1, 137, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, -1, -1, 137, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, -1, -1, 137, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, -1, -1, 137, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, -1, -1, 137, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, -1, -1, 137, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, -1, -1, 137, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, -1, -1, 137, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, -1, -1, 137, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, -1, -1, 137, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, -1, -1, 137, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, -1, -1, 137, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, -1, -1, 137, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, -1, -1, 137, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, -1, -1, 137, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, -1, -1, 137, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, -1, -1, 137, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, -1, -1, 137, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, -1, -1, 137, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, -1, -1, 137, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, -1, -1, 137, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, 135, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, 135, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, 135, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, 135, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, 135, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, 135, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, 135, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, 135, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, 135, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, 135, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, 135, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, 135, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, 135, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, 135, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, 135, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, 135, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, 135, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, 135, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, 135, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, 135, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, 135, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, 135, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, 135, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, 135, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, 135, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, 135, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, 135, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, 135, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, 135, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, 135, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, 135, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, 135, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, 135, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, 135, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, 135, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, 135, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, 135, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, 135, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, 135, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, 135, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, 135, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, 135, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, 135, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, 135, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, 135, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, 135, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, 135, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, 135, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, 135, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, 135, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133, -1, 135, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 133 }; /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing symbol of state STATE-NUM. */ static const yytype_uint8 yystos[] = { 0, 1, 145, 146, 6, 0, 4, 12, 13, 35, 40, 41, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 56, 57, 58, 59, 60, 61, 62, 63, 65, 66, 67, 68, 69, 70, 71, 73, 74, 75, 76, 77, 78, 81, 82, 87, 88, 89, 90, 93, 95, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 147, 149, 150, 168, 172, 177, 180, 181, 182, 183, 184, 185, 186, 206, 207, 208, 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, 101, 107, 108, 109, 110, 111, 112, 113, 114, 124, 125, 129, 131, 132, 134, 136, 138, 139, 141, 166, 167, 209, 210, 222, 13, 51, 134, 6, 141, 6, 6, 6, 134, 141, 134, 134, 72, 134, 141, 134, 134, 72, 141, 134, 134, 55, 51, 51, 51, 51, 48, 51, 53, 53, 45, 48, 51, 53, 48, 51, 53, 134, 141, 124, 125, 134, 141, 211, 212, 211, 141, 45, 48, 51, 141, 211, 4, 51, 51, 48, 4, 101, 141, 4, 6, 48, 4, 4, 4, 134, 134, 134, 4, 141, 218, 4, 134, 134, 6, 136, 4, 4, 5, 141, 5, 141, 4, 136, 138, 143, 167, 141, 5, 222, 134, 136, 134, 136, 134, 136, 134, 136, 134, 136, 134, 136, 134, 136, 134, 136, 134, 136, 134, 136, 134, 136, 134, 136, 134, 136, 134, 136, 134, 136, 134, 136, 134, 136, 134, 136, 134, 136, 134, 136, 134, 136, 134, 134, 134, 134, 7, 134, 4, 209, 209, 209, 209, 137, 141, 209, 4, 93, 94, 4, 4, 177, 178, 179, 209, 6, 6, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 133, 6, 6, 209, 5, 209, 209, 4, 45, 125, 177, 186, 209, 216, 217, 209, 209, 134, 209, 217, 209, 209, 134, 217, 209, 209, 125, 141, 209, 214, 216, 134, 141, 134, 134, 5, 214, 215, 215, 215, 134, 173, 174, 175, 176, 134, 134, 134, 4, 211, 211, 211, 209, 209, 124, 125, 141, 141, 211, 141, 141, 141, 124, 125, 134, 179, 211, 141, 134, 141, 215, 214, 134, 4, 6, 136, 136, 179, 6, 141, 136, 136, 6, 209, 209, 209, 138, 209, 141, 96, 209, 209, 209, 6, 6, 179, 6, 179, 136, 209, 4, 141, 151, 6, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 4, 221, 222, 221, 221, 221, 209, 5, 136, 135, 7, 114, 217, 137, 7, 166, 167, 138, 7, 136, 142, 45, 48, 51, 53, 172, 6, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 6, 135, 140, 140, 135, 136, 141, 209, 216, 8, 126, 140, 142, 135, 135, 209, 135, 142, 135, 135, 209, 142, 135, 135, 141, 142, 217, 126, 7, 209, 209, 209, 209, 7, 7, 204, 204, 209, 134, 134, 134, 134, 209, 209, 209, 135, 140, 140, 140, 211, 211, 178, 178, 140, 209, 209, 209, 209, 190, 140, 179, 209, 209, 7, 205, 7, 209, 6, 209, 209, 142, 217, 209, 209, 135, 135, 135, 93, 140, 179, 141, 8, 135, 137, 142, 142, 209, 137, 167, 209, 4, 83, 84, 85, 86, 142, 154, 158, 161, 163, 164, 135, 137, 135, 137, 135, 137, 135, 137, 135, 137, 135, 137, 135, 137, 135, 137, 135, 137, 135, 137, 135, 137, 140, 140, 135, 137, 135, 137, 135, 137, 135, 137, 135, 137, 135, 137, 140, 140, 140, 140, 140, 140, 136, 138, 135, 140, 140, 135, 135, 6, 140, 209, 214, 214, 142, 7, 138, 166, 167, 222, 209, 6, 4, 4, 141, 219, 137, 141, 141, 141, 141, 8, 6, 121, 148, 217, 209, 7, 137, 141, 209, 209, 209, 216, 209, 216, 96, 7, 7, 135, 7, 96, 7, 7, 135, 96, 7, 7, 217, 142, 141, 209, 135, 142, 135, 135, 209, 214, 4, 203, 6, 135, 169, 209, 222, 169, 169, 169, 135, 135, 135, 138, 211, 209, 209, 142, 142, 209, 140, 140, 140, 73, 79, 80, 200, 201, 211, 142, 187, 135, 142, 209, 6, 209, 135, 137, 137, 142, 137, 137, 7, 7, 7, 138, 209, 142, 209, 209, 7, 138, 137, 138, 167, 221, 142, 155, 134, 134, 141, 165, 6, 209, 209, 209, 209, 209, 209, 209, 209, 209, 4, 217, 221, 209, 137, 6, 6, 137, 4, 93, 94, 209, 6, 6, 6, 7, 136, 218, 220, 6, 217, 217, 217, 217, 209, 121, 221, 135, 140, 211, 217, 142, 8, 51, 214, 214, 7, 214, 51, 53, 214, 214, 7, 53, 214, 214, 142, 217, 6, 7, 7, 7, 7, 64, 202, 6, 7, 135, 135, 135, 135, 7, 7, 7, 4, 140, 140, 140, 142, 211, 211, 211, 6, 141, 134, 142, 201, 140, 200, 7, 6, 6, 141, 6, 6, 51, 6, 6, 214, 214, 214, 4, 140, 8, 8, 135, 4, 4, 6, 4, 6, 134, 209, 209, 213, 214, 141, 135, 137, 135, 137, 135, 137, 135, 137, 137, 135, 135, 135, 166, 7, 166, 167, 138, 7, 6, 218, 209, 140, 142, 142, 142, 142, 142, 6, 6, 148, 209, 6, 142, 209, 141, 58, 171, 171, 214, 6, 141, 141, 6, 6, 214, 141, 6, 6, 142, 5, 214, 214, 214, 4, 6, 214, 7, 7, 7, 7, 214, 214, 214, 6, 7, 209, 209, 209, 141, 140, 142, 140, 142, 140, 142, 209, 214, 209, 209, 211, 142, 141, 214, 217, 141, 6, 6, 92, 209, 209, 209, 6, 7, 167, 152, 209, 140, 140, 140, 142, 153, 209, 138, 214, 222, 209, 6, 4, 219, 6, 137, 218, 6, 6, 6, 6, 221, 140, 137, 209, 211, 6, 6, 6, 209, 209, 6, 209, 5, 6, 6, 96, 170, 209, 6, 214, 214, 214, 214, 6, 4, 6, 6, 209, 222, 142, 135, 140, 142, 178, 211, 6, 191, 211, 6, 192, 211, 6, 193, 142, 140, 135, 142, 140, 125, 211, 6, 142, 209, 214, 140, 142, 8, 142, 135, 141, 209, 222, 135, 140, 209, 209, 214, 141, 140, 142, 4, 6, 6, 6, 7, 6, 138, 6, 209, 142, 142, 142, 142, 5, 49, 6, 6, 6, 6, 6, 141, 6, 6, 141, 209, 142, 140, 141, 140, 141, 140, 141, 6, 214, 7, 141, 209, 140, 6, 142, 91, 209, 209, 217, 6, 6, 156, 209, 140, 140, 213, 209, 6, 218, 94, 140, 6, 6, 6, 6, 6, 141, 213, 178, 140, 142, 209, 211, 200, 209, 211, 200, 209, 211, 200, 140, 142, 214, 179, 142, 125, 141, 211, 214, 209, 142, 142, 142, 141, 209, 209, 142, 6, 209, 209, 142, 142, 209, 142, 140, 142, 142, 140, 142, 142, 140, 142, 214, 6, 64, 142, 188, 141, 141, 209, 140, 142, 6, 6, 153, 135, 140, 6, 141, 140, 142, 6, 142, 6, 194, 209, 6, 6, 195, 209, 6, 6, 196, 209, 6, 142, 209, 200, 179, 211, 214, 6, 142, 159, 209, 213, 209, 141, 142, 141, 142, 141, 142, 6, 6, 142, 142, 189, 140, 142, 6, 141, 135, 142, 142, 200, 6, 197, 200, 6, 198, 200, 6, 199, 200, 214, 6, 157, 221, 162, 141, 6, 142, 141, 142, 141, 142, 141, 142, 142, 140, 142, 141, 213, 6, 200, 6, 200, 6, 200, 6, 221, 6, 160, 221, 142, 142, 142, 142, 140, 142, 6, 6, 6, 6, 221, 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 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 143 "Gmsh.y" { yyerrok; return 1; ;} break; case 6: #line 154 "Gmsh.y" { return 1; ;} break; case 7: #line 155 "Gmsh.y" { return 1; ;} break; case 8: #line 156 "Gmsh.y" { return 1; ;} break; case 9: #line 157 "Gmsh.y" { return 1; ;} break; case 10: #line 158 "Gmsh.y" { List_Delete((yyvsp[(1) - (1)].l)); return 1; ;} break; case 11: #line 159 "Gmsh.y" { return 1; ;} break; case 12: #line 160 "Gmsh.y" { return 1; ;} break; case 13: #line 161 "Gmsh.y" { return 1; ;} break; case 14: #line 162 "Gmsh.y" { List_Delete((yyvsp[(1) - (1)].l)); return 1; ;} break; case 15: #line 163 "Gmsh.y" { return 1; ;} break; case 16: #line 164 "Gmsh.y" { return 1; ;} break; case 17: #line 165 "Gmsh.y" { return 1; ;} break; case 18: #line 166 "Gmsh.y" { return 1; ;} break; case 19: #line 167 "Gmsh.y" { return 1; ;} break; case 20: #line 168 "Gmsh.y" { return 1; ;} break; case 21: #line 173 "Gmsh.y" { (yyval.c) = (char*)"w"; ;} break; case 22: #line 177 "Gmsh.y" { (yyval.c) = (char*)"a"; ;} break; case 23: #line 184 "Gmsh.y" { Msg::Direct((yyvsp[(3) - (5)].c)); Free((yyvsp[(3) - (5)].c)); ;} break; case 24: #line 189 "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 25: #line 204 "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 26: #line 217 "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 27: #line 246 "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 28: #line 260 "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 29: #line 271 "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 30: #line 285 "Gmsh.y" { #if !defined(HAVE_NO_POST) ViewData = new PViewDataList(); #endif ;} break; case 36: #line 299 "Gmsh.y" { ViewCoord.push_back((yyvsp[(1) - (1)].d)); ;} break; case 37: #line 301 "Gmsh.y" { ViewCoord.push_back((yyvsp[(3) - (3)].d)); ;} break; case 38: #line 306 "Gmsh.y" { if(ViewValueList) ViewValueList->push_back((yyvsp[(1) - (1)].d)); ;} break; case 39: #line 308 "Gmsh.y" { if(ViewValueList) ViewValueList->push_back((yyvsp[(3) - (3)].d)); ;} break; case 40: #line 313 "Gmsh.y" { #if !defined(HAVE_NO_POST) if(!strncmp((yyvsp[(1) - (1)].c), "SP", 2)){ ViewValueList = &ViewData->SP; ViewNumList = &ViewData->NbSP; } else if(!strncmp((yyvsp[(1) - (1)].c), "VP", 2)){ ViewValueList = &ViewData->VP; ViewNumList = &ViewData->NbVP; } else if(!strncmp((yyvsp[(1) - (1)].c), "TP", 2)){ ViewValueList = &ViewData->TP; ViewNumList = &ViewData->NbTP; } else if(!strncmp((yyvsp[(1) - (1)].c), "SL", 2)){ ViewValueList = &ViewData->SL; ViewNumList = &ViewData->NbSL; if(strlen((yyvsp[(1) - (1)].c)) > 2) ViewData->setOrder2(TYPE_LIN); } else if(!strncmp((yyvsp[(1) - (1)].c), "VL", 2)){ ViewValueList = &ViewData->VL; ViewNumList = &ViewData->NbVL; if(strlen((yyvsp[(1) - (1)].c)) > 2) ViewData->setOrder2(TYPE_LIN); } else if(!strncmp((yyvsp[(1) - (1)].c), "TL", 2)){ ViewValueList = &ViewData->TL; ViewNumList = &ViewData->NbTL; if(strlen((yyvsp[(1) - (1)].c)) > 2) ViewData->setOrder2(TYPE_LIN); } else if(!strncmp((yyvsp[(1) - (1)].c), "ST", 2)){ ViewValueList = &ViewData->ST; ViewNumList = &ViewData->NbST; if(strlen((yyvsp[(1) - (1)].c)) > 2) ViewData->setOrder2(TYPE_TRI); } else if(!strncmp((yyvsp[(1) - (1)].c), "VT", 2)){ ViewValueList = &ViewData->VT; ViewNumList = &ViewData->NbVT; if(strlen((yyvsp[(1) - (1)].c)) > 2) ViewData->setOrder2(TYPE_TRI); } else if(!strncmp((yyvsp[(1) - (1)].c), "TT", 2)){ ViewValueList = &ViewData->TT; ViewNumList = &ViewData->NbTT; if(strlen((yyvsp[(1) - (1)].c)) > 2) ViewData->setOrder2(TYPE_TRI); } else if(!strncmp((yyvsp[(1) - (1)].c), "SQ", 2)){ ViewValueList = &ViewData->SQ; ViewNumList = &ViewData->NbSQ; if(strlen((yyvsp[(1) - (1)].c)) > 2) ViewData->setOrder2(TYPE_QUA); } else if(!strncmp((yyvsp[(1) - (1)].c), "VQ", 2)){ ViewValueList = &ViewData->VQ; ViewNumList = &ViewData->NbVQ; if(strlen((yyvsp[(1) - (1)].c)) > 2) ViewData->setOrder2(TYPE_QUA); } else if(!strncmp((yyvsp[(1) - (1)].c), "TQ", 2)){ ViewValueList = &ViewData->TQ; ViewNumList = &ViewData->NbTQ; if(strlen((yyvsp[(1) - (1)].c)) > 2) ViewData->setOrder2(TYPE_QUA); } else if(!strncmp((yyvsp[(1) - (1)].c), "SS", 2)){ ViewValueList = &ViewData->SS; ViewNumList = &ViewData->NbSS; if(strlen((yyvsp[(1) - (1)].c)) > 2) ViewData->setOrder2(TYPE_TET); } else if(!strncmp((yyvsp[(1) - (1)].c), "VS", 2)){ ViewValueList = &ViewData->VS; ViewNumList = &ViewData->NbVS; if(strlen((yyvsp[(1) - (1)].c)) > 2) ViewData->setOrder2(TYPE_TET); } else if(!strncmp((yyvsp[(1) - (1)].c), "TS", 2)){ ViewValueList = &ViewData->TS; ViewNumList = &ViewData->NbTS; if(strlen((yyvsp[(1) - (1)].c)) > 2) ViewData->setOrder2(TYPE_TET); } else if(!strncmp((yyvsp[(1) - (1)].c), "SH", 2)){ ViewValueList = &ViewData->SH; ViewNumList = &ViewData->NbSH; if(strlen((yyvsp[(1) - (1)].c)) > 2) ViewData->setOrder2(TYPE_HEX); } else if(!strncmp((yyvsp[(1) - (1)].c), "VH", 2)){ ViewValueList = &ViewData->VH; ViewNumList = &ViewData->NbVH; if(strlen((yyvsp[(1) - (1)].c)) > 2) ViewData->setOrder2(TYPE_HEX); } else if(!strncmp((yyvsp[(1) - (1)].c), "TH", 2)){ ViewValueList = &ViewData->TH; ViewNumList = &ViewData->NbTH; if(strlen((yyvsp[(1) - (1)].c)) > 2) ViewData->setOrder2(TYPE_HEX); } else if(!strncmp((yyvsp[(1) - (1)].c), "SI", 2)){ ViewValueList = &ViewData->SI; ViewNumList = &ViewData->NbSI; if(strlen((yyvsp[(1) - (1)].c)) > 2) ViewData->setOrder2(TYPE_PRI); } else if(!strncmp((yyvsp[(1) - (1)].c), "VI", 2)){ ViewValueList = &ViewData->VI; ViewNumList = &ViewData->NbVI; if(strlen((yyvsp[(1) - (1)].c)) > 2) ViewData->setOrder2(TYPE_PRI); } else if(!strncmp((yyvsp[(1) - (1)].c), "TI", 2)){ ViewValueList = &ViewData->TI; ViewNumList = &ViewData->NbTI; if(strlen((yyvsp[(1) - (1)].c)) > 2) ViewData->setOrder2(TYPE_PRI); } else if(!strncmp((yyvsp[(1) - (1)].c), "SY", 2)){ ViewValueList = &ViewData->SY; ViewNumList = &ViewData->NbSY; if(strlen((yyvsp[(1) - (1)].c)) > 2) ViewData->setOrder2(TYPE_PYR); } else if(!strncmp((yyvsp[(1) - (1)].c), "VY", 2)){ ViewValueList = &ViewData->VY; ViewNumList = &ViewData->NbVY; if(strlen((yyvsp[(1) - (1)].c)) > 2) ViewData->setOrder2(TYPE_PYR); } else if(!strncmp((yyvsp[(1) - (1)].c), "TY", 2)){ ViewValueList = &ViewData->TY; ViewNumList = &ViewData->NbTY; if(strlen((yyvsp[(1) - (1)].c)) > 2) ViewData->setOrder2(TYPE_PYR); } 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 41: #line 417 "Gmsh.y" { #if !defined(HAVE_NO_POST) if(ViewValueList){ for(int i = 0; i < 3; i++) for(unsigned int j = 0; j < ViewCoord.size() / 3; j++) ViewValueList->push_back(ViewCoord[3 * j + i]); } #endif ;} break; case 42: #line 427 "Gmsh.y" { #if !defined(HAVE_NO_POST) if(ViewValueList) (*ViewNumList)++; #endif ;} break; case 43: #line 436 "Gmsh.y" { #if !defined(HAVE_NO_POST) for(int i = 0; i < (int)strlen((yyvsp[(1) - (1)].c)) + 1; i++) ViewData->T2C.push_back((yyvsp[(1) - (1)].c)[i]); #endif Free((yyvsp[(1) - (1)].c)); ;} break; case 44: #line 443 "Gmsh.y" { #if !defined(HAVE_NO_POST) for(int i = 0; i < (int)strlen((yyvsp[(3) - (3)].c)) + 1; i++) ViewData->T2C.push_back((yyvsp[(3) - (3)].c)[i]); #endif Free((yyvsp[(3) - (3)].c)); ;} break; case 45: #line 453 "Gmsh.y" { #if !defined(HAVE_NO_POST) ViewData->T2D.push_back((yyvsp[(3) - (8)].d)); ViewData->T2D.push_back((yyvsp[(5) - (8)].d)); ViewData->T2D.push_back((yyvsp[(7) - (8)].d)); ViewData->T2D.push_back(ViewData->T2C.size()); #endif ;} break; case 46: #line 462 "Gmsh.y" { #if !defined(HAVE_NO_POST) ViewData->NbT2++; #endif ;} break; case 47: #line 471 "Gmsh.y" { #if !defined(HAVE_NO_POST) for(int i = 0; i < (int)strlen((yyvsp[(1) - (1)].c)) + 1; i++) ViewData->T3C.push_back((yyvsp[(1) - (1)].c)[i]); #endif Free((yyvsp[(1) - (1)].c)); ;} break; case 48: #line 478 "Gmsh.y" { #if !defined(HAVE_NO_POST) for(int i = 0; i < (int)strlen((yyvsp[(3) - (3)].c)) + 1; i++) ViewData->T3C.push_back((yyvsp[(3) - (3)].c)[i]); #endif Free((yyvsp[(3) - (3)].c)); ;} break; case 49: #line 488 "Gmsh.y" { #if !defined(HAVE_NO_POST) ViewData->T3D.push_back((yyvsp[(3) - (10)].d)); ViewData->T3D.push_back((yyvsp[(5) - (10)].d)); ViewData->T3D.push_back((yyvsp[(7) - (10)].d)); ViewData->T3D.push_back((yyvsp[(9) - (10)].d)); ViewData->T3D.push_back(ViewData->T3C.size()); #endif ;} break; case 50: #line 496 "Gmsh.y" { #if !defined(HAVE_NO_POST) ViewData->NbT3++; #endif ;} break; case 51: #line 506 "Gmsh.y" { #if !defined(HAVE_NO_POST) int type = (ViewData->NbSL || ViewData->NbVL) ? TYPE_LIN : (ViewData->NbST || ViewData->NbVT) ? TYPE_TRI : (ViewData->NbSQ || ViewData->NbVQ) ? TYPE_QUA : (ViewData->NbSS || ViewData->NbVS) ? TYPE_TET : (ViewData->NbSY || ViewData->NbVY) ? TYPE_PYR : (ViewData->NbSI || ViewData->NbVI) ? TYPE_PRI : (ViewData->NbSH || ViewData->NbVH) ? TYPE_HEX : 0; ViewData->setInterpolationMatrices(type, ListOfListOfDouble2Matrix((yyvsp[(3) - (8)].l)), ListOfListOfDouble2Matrix((yyvsp[(6) - (8)].l))); #endif ;} break; case 52: #line 525 "Gmsh.y" { #if !defined(HAVE_NO_POST) int type = (ViewData->NbSL || ViewData->NbVL) ? TYPE_LIN : (ViewData->NbST || ViewData->NbVT) ? TYPE_TRI : (ViewData->NbSQ || ViewData->NbVQ) ? TYPE_QUA : (ViewData->NbSS || ViewData->NbVS) ? TYPE_TET : (ViewData->NbSH || ViewData->NbVH) ? TYPE_HEX : 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 53: #line 544 "Gmsh.y" { #if !defined(HAVE_NO_POST) ViewValueList = &ViewData->Time; #endif ;} break; case 54: #line 550 "Gmsh.y" { ;} break; case 55: #line 557 "Gmsh.y" { (yyval.i) = 0; ;} break; case 56: #line 558 "Gmsh.y" { (yyval.i) = 1; ;} break; case 57: #line 559 "Gmsh.y" { (yyval.i) = 2; ;} break; case 58: #line 560 "Gmsh.y" { (yyval.i) = 3; ;} break; case 59: #line 561 "Gmsh.y" { (yyval.i) = 4; ;} break; case 60: #line 565 "Gmsh.y" { (yyval.i) = 1; ;} break; case 61: #line 566 "Gmsh.y" { (yyval.i) = -1; ;} break; case 62: #line 574 "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 63: #line 596 "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((int)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 64: #line 623 "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((int)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 65: #line 663 "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 66: #line 673 "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 67: #line 681 "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 68: #line 689 "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((int)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 69: #line 701 "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 70: #line 710 "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 71: #line 716 "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 72: #line 725 "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 73: #line 743 "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 74: #line 761 "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 75: #line 770 "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 76: #line 782 "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 77: #line 787 "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 78: #line 795 "Gmsh.y" { GmshColorTable *ct = GetColorTable(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 79: #line 815 "Gmsh.y" { GmshColorTable *ct = GetColorTable((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 80: #line 838 "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 81: #line 845 "Gmsh.y" { if(!GModel::current()->getFields()->newField((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 82: #line 851 "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->numericalValue((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->getName()); } } else yymsg(0, "Unknown option '%s' in field %i of type '%s'", (yyvsp[(6) - (9)].c), (int)(yyvsp[(3) - (9)].d), field->getName()); } else yymsg(0, "No field with id %i", (int)(yyvsp[(3) - (9)].d)); Free((yyvsp[(6) - (9)].c)); ;} break; case 83: #line 871 "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->getName()); } } else yymsg(0, "Unknown option '%s' in field %i of type '%s'", (yyvsp[(6) - (9)].c), (int)(yyvsp[(3) - (9)].d), field->getName()); } 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 84: #line 892 "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->getName()); } 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 85: #line 918 "Gmsh.y" { #if !defined(HAVE_NO_POST) try { 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 86: #line 930 "Gmsh.y" { #if !defined(HAVE_NO_POST) try { 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)); Free((yyvsp[(8) - (9)].c)); ;} break; case 87: #line 947 "Gmsh.y" { (yyval.i) = (int)(yyvsp[(1) - (1)].d); ;} break; case 88: #line 951 "Gmsh.y" { (yyval.i) = GModel::current()->setPhysicalName (std::string((yyvsp[(1) - (1)].c)), curPhysDim, ++GModel::current()->getGEOInternals()->MaxPhysicalNum); Free((yyvsp[(1) - (1)].c)); ;} break; case 89: #line 961 "Gmsh.y" { (yyval.l) = 0; ;} break; case 90: #line 965 "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 91: #line 977 "Gmsh.y" { for(int i = 0; i < 4; i++) (yyval.v)[i] = 0.; ;} break; case 92: #line 981 "Gmsh.y" { for(int i = 0; i < 4; i++) (yyval.v)[i] = (yyvsp[(2) - (2)].v)[i]; ;} break; case 93: #line 991 "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.scalingFactor * (yyvsp[(6) - (7)].v)[0]; double y = CTX::instance()->geom.scalingFactor * (yyvsp[(6) - (7)].v)[1]; double z = CTX::instance()->geom.scalingFactor * (yyvsp[(6) - (7)].v)[2]; double lc = CTX::instance()->geom.scalingFactor * (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 94: #line 1014 "Gmsh.y" { curPhysDim = 0; ;} break; case 95: #line 1018 "Gmsh.y" { int num = (int)(yyvsp[(5) - (9)].i); if(FindPhysicalGroup(num, MSH_PHYSICAL_POINT)){ yymsg(0, "Physical point %d already exists", num); } else{ List_T *temp = ListOfDouble2ListOfInt((yyvsp[(8) - (9)].l)); PhysicalGroup *p = Create_PhysicalGroup(num, MSH_PHYSICAL_POINT, temp); List_Delete(temp); List_Add(GModel::current()->getGEOInternals()->PhysicalGroups, &p); } List_Delete((yyvsp[(8) - (9)].l)); (yyval.s).Type = MSH_PHYSICAL_POINT; (yyval.s).Num = num; ;} break; case 96: #line 1034 "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 97: #line 1056 "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 98: #line 1074 "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 99: #line 1092 "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 100: #line 1122 "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 101: #line 1152 "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 102: #line 1170 "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 103: #line 1188 "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 104: #line 1214 "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 105: #line 1231 "Gmsh.y" { curPhysDim = 1; ;} break; case 106: #line 1235 "Gmsh.y" { int num = (int)(yyvsp[(5) - (9)].i); if(FindPhysicalGroup(num, MSH_PHYSICAL_LINE)){ yymsg(0, "Physical line %d already exists", num); } else{ List_T *temp = ListOfDouble2ListOfInt((yyvsp[(8) - (9)].l)); PhysicalGroup *p = Create_PhysicalGroup(num, MSH_PHYSICAL_LINE, temp); List_Delete(temp); List_Add(GModel::current()->getGEOInternals()->PhysicalGroups, &p); } List_Delete((yyvsp[(8) - (9)].l)); (yyval.s).Type = MSH_PHYSICAL_LINE; (yyval.s).Num = num; ;} break; case 107: #line 1254 "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 108: #line 1272 "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 109: #line 1311 "Gmsh.y" { myGmshSurface = 0; (yyval.s).Type = 0; (yyval.s).Num = 0; ;} break; case 110: #line 1317 "Gmsh.y" { myGmshSurface = gmshSurface::getSurface((int)(yyvsp[(3) - (4)].d)); (yyval.s).Type = 0; (yyval.s).Num = 0; ;} break; case 111: #line 1323 "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 112: #line 1330 "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 113: #line 1355 "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 114: #line 1380 "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 115: #line 1396 "Gmsh.y" { curPhysDim = 2; ;} break; case 116: #line 1400 "Gmsh.y" { int num = (int)(yyvsp[(5) - (9)].i); if(FindPhysicalGroup(num, MSH_PHYSICAL_SURFACE)){ yymsg(0, "Physical surface %d already exists", num); } else{ List_T *temp = ListOfDouble2ListOfInt((yyvsp[(8) - (9)].l)); PhysicalGroup *p = Create_PhysicalGroup(num, MSH_PHYSICAL_SURFACE, temp); List_Delete(temp); List_Add(GModel::current()->getGEOInternals()->PhysicalGroups, &p); } List_Delete((yyvsp[(8) - (9)].l)); (yyval.s).Type = MSH_PHYSICAL_SURFACE; (yyval.s).Num = num; ;} break; case 117: #line 1416 "Gmsh.y" { int num = (int)(yyvsp[(4) - (8)].d); if(FindPhysicalGroup(num, MSH_PHYSICAL_VOLUME)){ yymsg(0, "Physical volume %d already exists", num); } else{ List_T *temp = ListOfDouble2ListOfInt((yyvsp[(7) - (8)].l)); List_T *S[4] = {temp, 0, 0, 0}; PhysicalGroup *p = Create_PhysicalGroup(num, MSH_PHYSICAL_VOLUME, temp, S); 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 1434 "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 119: #line 1461 "Gmsh.y" { int num = (int)(yyvsp[(4) - (8)].d); if(FindPhysicalGroup(num, MSH_PHYSICAL_SURFACE)){ yymsg(0, "Physical surface %d already exists", num); } else{ List_T *temp = ListOfDouble2ListOfInt((yyvsp[(7) - (8)].l)); List_T *S[4] = {0, 0, 0, 0}; PhysicalGroup *p = Create_PhysicalGroup(num, MSH_PHYSICAL_SURFACE, temp, S); 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 120: #line 1478 "Gmsh.y" { int num = (int)(yyvsp[(4) - (8)].d); if(FindPhysicalGroup(num, MSH_PHYSICAL_LINE)){ yymsg(0, "Physical line %d already exists", num); } else{ List_T *temp = ListOfDouble2ListOfInt((yyvsp[(7) - (8)].l)); List_T *S[4] = {temp, 0, 0, 0}; PhysicalGroup *p = Create_PhysicalGroup(num, MSH_PHYSICAL_LINE, temp, S); 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 121: #line 1498 "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 122: #line 1516 "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 123: #line 1533 "Gmsh.y" { curPhysDim = 3; ;} break; case 124: #line 1537 "Gmsh.y" { int num = (int)(yyvsp[(5) - (9)].i); if(FindPhysicalGroup(num, MSH_PHYSICAL_VOLUME)){ yymsg(0, "Physical volume %d already exists", num); } else{ List_T *temp = ListOfDouble2ListOfInt((yyvsp[(8) - (9)].l)); PhysicalGroup *p = Create_PhysicalGroup(num, MSH_PHYSICAL_VOLUME, temp); List_Delete(temp); List_Add(GModel::current()->getGEOInternals()->PhysicalGroups, &p); } List_Delete((yyvsp[(8) - (9)].l)); (yyval.s).Type = MSH_PHYSICAL_VOLUME; (yyval.s).Num = num; ;} break; case 125: #line 1558 "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 126: #line 1563 "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 127: #line 1568 "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 128: #line 1573 "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 129: #line 1578 "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 130: #line 1598 "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 131: #line 1604 "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 132: #line 1614 "Gmsh.y" { (yyval.l) = (yyvsp[(1) - (1)].l); ;} break; case 133: #line 1615 "Gmsh.y" { (yyval.l) = (yyvsp[(1) - (1)].l); ;} break; case 134: #line 1620 "Gmsh.y" { (yyval.l) = List_Create(3, 3, sizeof(Shape)); ;} break; case 135: #line 1624 "Gmsh.y" { List_Add((yyval.l), &(yyvsp[(2) - (2)].s)); ;} break; case 136: #line 1628 "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 137: #line 1651 "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 138: #line 1674 "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 139: #line 1697 "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 140: #line 1725 "Gmsh.y" { if(!strcmp((yyvsp[(2) - (8)].c), "plane") && List_Nbr((yyvsp[(7) - (8)].l)) == 4){ int t = (int)(yyvsp[(4) - (8)].d); if(FindLevelSet(t)){ yymsg(0, "Levelset %d already exists", t); } else { double d[4]; for(int i = 0; i < 4; i++) List_Read((yyvsp[(7) - (8)].l), i, &d[i]); gLevelset *ls = new gLevelsetPlane(d[0], d[1], d[2], d[3], t); LevelSet *l = Create_LevelSet(ls->getTag(), ls); Tree_Add(GModel::current()->getGEOInternals()->LevelSets, &l); } } else if(!strcmp((yyvsp[(2) - (8)].c), "union")){ int t = (int)(yyvsp[(4) - (8)].d); if(FindLevelSet(t)){ yymsg(0, "Levelset %d already exists", t); } else { std::vector<const gLevelset *> vl; for(int i = 0; i < List_Nbr((yyvsp[(7) - (8)].l)); i++) { double d; List_Read((yyvsp[(7) - (8)].l), i, &d); LevelSet *pl = FindLevelSet((int)d); if(!pl) yymsg(0, "Levelset Union %d : unknown levelset %d", t, (int)d); else vl.push_back(pl->ls); } gLevelset *ls = new gLevelsetUnion(vl); LevelSet *l = Create_LevelSet(t, ls); Tree_Add(GModel::current()->getGEOInternals()->LevelSets, &l); } } else if(!strcmp((yyvsp[(2) - (8)].c), "intersection")){ int t = (int)(yyvsp[(4) - (8)].d); if(FindLevelSet(t)){ yymsg(0, "Levelset %d already exists", t); } else { std::vector<const gLevelset *> vl; for(int i = 0; i < List_Nbr((yyvsp[(7) - (8)].l)); i++) { double d; List_Read((yyvsp[(7) - (8)].l), i, &d); LevelSet *pl = FindLevelSet((int)d); if(!pl) yymsg(0, "Levelset Intersection %d : unknown levelset %d", t, (int)d); else vl.push_back(pl->ls); } gLevelset *ls = new gLevelsetIntersection(vl); LevelSet *l = Create_LevelSet(t, ls); Tree_Add(GModel::current()->getGEOInternals()->LevelSets, &l); } } else if(!strcmp((yyvsp[(2) - (8)].c), "cut")){ int t = (int)(yyvsp[(4) - (8)].d); if(FindLevelSet(t)){ yymsg(0, "Levelset %d already exists", t); } else { std::vector<const gLevelset *> vl; for(int i = 0; i < List_Nbr((yyvsp[(7) - (8)].l)); i++) { double d; List_Read((yyvsp[(7) - (8)].l), i, &d); LevelSet *pl = FindLevelSet((int)d); if(!pl) yymsg(0, "Levelset Cut %d : unknown levelset %d", t, (int)d); else vl.push_back(pl->ls); } gLevelset *ls = new gLevelsetCut(vl); LevelSet *l = Create_LevelSet(t, ls); Tree_Add(GModel::current()->getGEOInternals()->LevelSets, &l); } } else if(!strcmp((yyvsp[(2) - (8)].c), "crack")){ int t = (int)(yyvsp[(4) - (8)].d); if(FindLevelSet(t)){ yymsg(0, "Levelset %d already exists", t); } else { std::vector<const gLevelset *> vl; for(int i = 0; i < List_Nbr((yyvsp[(7) - (8)].l)); i++) { double d; List_Read((yyvsp[(7) - (8)].l), i, &d); LevelSet *pl = FindLevelSet((int)d); if(!pl) yymsg(0, "Levelset Crack %d : unknown levelset %d", t, (int)d); else vl.push_back(pl->ls); } gLevelset *ls = new gLevelsetCrack(vl); LevelSet *l = Create_LevelSet(t, ls); Tree_Add(GModel::current()->getGEOInternals()->LevelSets, &l); } } else yymsg(0, "Wrong levelset definition (%d)", (yyvsp[(4) - (8)].d)); Free((yyvsp[(2) - (8)].c)); ;} break; case 141: #line 1817 "Gmsh.y" { if(!strcmp((yyvsp[(2) - (6)].c), "cutMesh")){ int t = (int)(yyvsp[(4) - (6)].d); GModel *GM = GModel::current(); GM->buildCutGModel(FindLevelSet(t)->ls); GM->destroy(); } else yymsg(0, "Wrong levelset definition"); Free((yyvsp[(2) - (6)].c)); ;} break; case 142: #line 1829 "Gmsh.y" { if(!strcmp((yyvsp[(2) - (12)].c), "sphere") && List_Nbr((yyvsp[(10) - (12)].l)) == 1){ int t = (int)(yyvsp[(4) - (12)].d); if(FindLevelSet(t)){ yymsg(0, "Levelset %d already exists", t); } else { double d; List_Read((yyvsp[(10) - (12)].l), 0, &d); gLevelset *ls = new gLevelsetSphere((yyvsp[(8) - (12)].v)[0], (yyvsp[(8) - (12)].v)[1], (yyvsp[(8) - (12)].v)[2], d, t); LevelSet *l = Create_LevelSet(ls->getTag(), ls); Tree_Add(GModel::current()->getGEOInternals()->LevelSets, &l); } } else yymsg(0, "Wrong levelset definition (%d)", (yyvsp[(4) - (12)].d)); Free((yyvsp[(2) - (12)].c)); ;} break; case 143: #line 1848 "Gmsh.y" { if(!strcmp((yyvsp[(2) - (14)].c), "Plane") && List_Nbr((yyvsp[(12) - (14)].l)) == 0){ int t = (int)(yyvsp[(4) - (14)].d); if(FindLevelSet(t)){ yymsg(0, "Levelset %d already exists", t); } else { double pt[3] = {(yyvsp[(8) - (14)].v)[0], (yyvsp[(8) - (14)].v)[1], (yyvsp[(8) - (14)].v)[2]}; double n[3] = {(yyvsp[(10) - (14)].v)[0], (yyvsp[(10) - (14)].v)[1], (yyvsp[(10) - (14)].v)[2]}; gLevelset *ls = new gLevelsetPlane(pt, n, t); LevelSet *l = Create_LevelSet(ls->getTag(), ls); Tree_Add(GModel::current()->getGEOInternals()->LevelSets, &l); } } if(!strcmp((yyvsp[(2) - (14)].c), "Cylinder") && List_Nbr((yyvsp[(12) - (14)].l)) == 1){ int t = (int)(yyvsp[(4) - (14)].d); if(FindLevelSet(t)){ yymsg(0, "Levelset %d already exists", t); } else { double d; List_Read((yyvsp[(12) - (14)].l), 0, &d); double pt[3] = {(yyvsp[(8) - (14)].v)[0], (yyvsp[(8) - (14)].v)[1], (yyvsp[(8) - (14)].v)[2]}; double dir[3] = {(yyvsp[(10) - (14)].v)[0], (yyvsp[(10) - (14)].v)[1], (yyvsp[(10) - (14)].v)[2]}; gLevelset *ls = new gLevelsetGenCylinder(pt, dir, d, t); LevelSet *l = Create_LevelSet(ls->getTag(), ls); Tree_Add(GModel::current()->getGEOInternals()->LevelSets, &l); } } if(!strcmp((yyvsp[(2) - (14)].c), "Cone") && List_Nbr((yyvsp[(12) - (14)].l)) == 1){ int t = (int)(yyvsp[(4) - (14)].d); if(FindLevelSet(t)){ yymsg(0, "Levelset %d already exists", t); } else { double d; List_Read((yyvsp[(12) - (14)].l), 0, &d); double pt[3] = {(yyvsp[(8) - (14)].v)[0], (yyvsp[(8) - (14)].v)[1], (yyvsp[(8) - (14)].v)[2]}; double dir[3] = {(yyvsp[(10) - (14)].v)[0], (yyvsp[(10) - (14)].v)[1], (yyvsp[(10) - (14)].v)[2]}; gLevelset *ls = new gLevelsetCone(pt, dir, d, t); LevelSet *l = Create_LevelSet(ls->getTag(), ls); Tree_Add(GModel::current()->getGEOInternals()->LevelSets, &l); } } if(!strcmp((yyvsp[(2) - (14)].c), "Cylinder") && List_Nbr((yyvsp[(12) - (14)].l)) == 2){ int t = (int)(yyvsp[(4) - (14)].d); if(FindLevelSet(t)){ yymsg(0, "Levelset %d already exists", t); } else { double d[2]; for(int i = 0; i < 2; i++) List_Read((yyvsp[(12) - (14)].l), i, &d[i]); double pt[3] = {(yyvsp[(8) - (14)].v)[0], (yyvsp[(8) - (14)].v)[1], (yyvsp[(8) - (14)].v)[2]}; double dir[3] = {(yyvsp[(10) - (14)].v)[0], (yyvsp[(10) - (14)].v)[1], (yyvsp[(10) - (14)].v)[2]}; gLevelset *ls = new gLevelsetCylinder(pt, dir, d[0], d[1], t); LevelSet *l = Create_LevelSet(ls->getTag(), ls); Tree_Add(GModel::current()->getGEOInternals()->LevelSets, &l); } } if(!strcmp((yyvsp[(2) - (14)].c), "Cylinder") && List_Nbr((yyvsp[(12) - (14)].l)) == 3){ int t = (int)(yyvsp[(4) - (14)].d); if(FindLevelSet(t)){ yymsg(0, "Levelset %d already exists", t); } else { double d[3]; for(int i = 0; i < 3; i++) List_Read((yyvsp[(12) - (14)].l), i, &d[i]); double pt[3] = {(yyvsp[(8) - (14)].v)[0], (yyvsp[(8) - (14)].v)[1], (yyvsp[(8) - (14)].v)[2]}; double dir[3] = {(yyvsp[(10) - (14)].v)[0], (yyvsp[(10) - (14)].v)[1], (yyvsp[(10) - (14)].v)[2]}; gLevelset *ls = new gLevelsetCylinder(pt, dir, d[0], d[1], d[2], t); LevelSet *l = Create_LevelSet(ls->getTag(), ls); Tree_Add(GModel::current()->getGEOInternals()->LevelSets, &l); } } if(!strcmp((yyvsp[(2) - (14)].c), "Ellips") && List_Nbr((yyvsp[(12) - (14)].l)) == 3){ int t = (int)(yyvsp[(4) - (14)].d); if(FindLevelSet(t)){ yymsg(0, "Levelset %d already exists", t); } else { double d[3]; for(int i = 0; i < 3; i++) List_Read((yyvsp[(12) - (14)].l), i, &d[i]); double pt[3] = {(yyvsp[(8) - (14)].v)[0], (yyvsp[(8) - (14)].v)[1], (yyvsp[(8) - (14)].v)[2]}; double dir[3] = {(yyvsp[(10) - (14)].v)[0], (yyvsp[(10) - (14)].v)[1], (yyvsp[(10) - (14)].v)[2]}; gLevelset *ls = new gLevelsetEllipsoid(pt, dir, d[0], d[1], d[2], t); LevelSet *l = Create_LevelSet(ls->getTag(), ls); Tree_Add(GModel::current()->getGEOInternals()->LevelSets, &l); } } if(!strcmp((yyvsp[(2) - (14)].c), "Quadric") && List_Nbr((yyvsp[(12) - (14)].l)) == 5){ int t = (int)(yyvsp[(4) - (14)].d); if(FindLevelSet(t)){ yymsg(0, "Levelset %d already exists", t); } else { double d[5]; for(int i = 0; i < 5; i++) List_Read((yyvsp[(12) - (14)].l), i, &d[i]); double pt[3] = {(yyvsp[(8) - (14)].v)[0], (yyvsp[(8) - (14)].v)[1], (yyvsp[(8) - (14)].v)[2]}; double dir[3] = {(yyvsp[(10) - (14)].v)[0], (yyvsp[(10) - (14)].v)[1], (yyvsp[(10) - (14)].v)[2]}; gLevelset *ls = new gLevelsetGeneralQuadric(pt, dir, d[0], d[1], d[2], d[3], d[4], t); LevelSet *l = Create_LevelSet(ls->getTag(), ls); Tree_Add(GModel::current()->getGEOInternals()->LevelSets, &l); } } else yymsg(0, "Wrong levelset definition (%d)", (yyvsp[(4) - (14)].d)); Free((yyvsp[(2) - (14)].c)); ;} break; case 144: #line 1961 "Gmsh.y" { if(!strcmp((yyvsp[(2) - (16)].c), "Plane") && List_Nbr((yyvsp[(14) - (16)].l)) == 0){ int t = (int)(yyvsp[(4) - (16)].d); if(FindLevelSet(t)){ yymsg(0, "Levelset %d already exists", t); } else { double pt1[3] = {(yyvsp[(8) - (16)].v)[0], (yyvsp[(8) - (16)].v)[1], (yyvsp[(8) - (16)].v)[2]}; double pt2[3] = {(yyvsp[(10) - (16)].v)[0], (yyvsp[(10) - (16)].v)[1], (yyvsp[(10) - (16)].v)[2]}; double pt3[3] = {(yyvsp[(12) - (16)].v)[0], (yyvsp[(12) - (16)].v)[1], (yyvsp[(12) - (16)].v)[2]}; gLevelset *ls = new gLevelsetPlane(pt1, pt2, pt3, t); LevelSet *l = Create_LevelSet(ls->getTag(), ls); Tree_Add(GModel::current()->getGEOInternals()->LevelSets, &l); } } else yymsg(0, "Wrong levelset definition (%d)", (yyvsp[(4) - (16)].d)); Free((yyvsp[(2) - (16)].c)); ;} break; case 145: #line 1986 "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 146: #line 1995 "Gmsh.y" { GModel::current()->getFields()->deleteField((int)(yyvsp[(4) - (6)].d)); ;} break; case 147: #line 1999 "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 148: #line 2014 "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 149: #line 2041 "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 150: #line 2058 "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 151: #line 2072 "Gmsh.y" { for(int i = 0; i < 4; i++) VisibilityShape((yyvsp[(2) - (3)].c), i, 1); Free((yyvsp[(2) - (3)].c)); ;} break; case 152: #line 2078 "Gmsh.y" { for(int i = 0; i < 4; i++) VisibilityShape((yyvsp[(2) - (3)].c), i, 0); Free((yyvsp[(2) - (3)].c)); ;} break; case 153: #line 2084 "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 154: #line 2093 "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 155: #line 2107 "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 156: #line 2155 "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.fileFormat); } 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 157: #line 2173 "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()->setBackgroundMesh(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 158: #line 2188 "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()->lock; CTX::instance()->lock = 0; GModel::current()->importGEOInternals(); GModel::current()->mesh((int)(yyvsp[(2) - (3)].d)); CTX::instance()->lock = lock; } else yymsg(0, "Unknown command '%s'", (yyvsp[(1) - (3)].c)); Free((yyvsp[(1) - (3)].c)); ;} break; case 159: #line 2207 "Gmsh.y" { #if !defined(HAVE_NO_POST) try { 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 160: #line 2219 "Gmsh.y" { #if !defined(HAVE_NO_POST) if(!strcmp((yyvsp[(2) - (3)].c), "ElementsFromAllViews")) PView::combine(false, 1, CTX::instance()->post.combineRemoveOrig); else if(!strcmp((yyvsp[(2) - (3)].c), "ElementsFromVisibleViews")) PView::combine(false, 0, CTX::instance()->post.combineRemoveOrig); else if(!strcmp((yyvsp[(2) - (3)].c), "ElementsByViewName")) PView::combine(false, 2, CTX::instance()->post.combineRemoveOrig); else if(!strcmp((yyvsp[(2) - (3)].c), "TimeStepsFromAllViews")) PView::combine(true, 1, CTX::instance()->post.combineRemoveOrig); else if(!strcmp((yyvsp[(2) - (3)].c), "TimeStepsFromVisibleViews")) PView::combine(true, 0, CTX::instance()->post.combineRemoveOrig); else if(!strcmp((yyvsp[(2) - (3)].c), "TimeStepsByViewName")) PView::combine(true, 2, CTX::instance()->post.combineRemoveOrig); else if(!strcmp((yyvsp[(2) - (3)].c), "Views")) PView::combine(false, 1, CTX::instance()->post.combineRemoveOrig); else if(!strcmp((yyvsp[(2) - (3)].c), "TimeSteps")) PView::combine(true, 2, CTX::instance()->post.combineRemoveOrig); else yymsg(0, "Unknown 'Combine' command"); #endif Free((yyvsp[(2) - (3)].c)); ;} break; case 161: #line 2243 "Gmsh.y" { exit(0); ;} break; case 162: #line 2247 "Gmsh.y" { // FIXME: this is a hack to force a transfer from the old DB to // the new DB. This will become unnecessary if/when we fill the // GModel directly during parsing. GModel::current()->importGEOInternals(); ;} break; case 163: #line 2254 "Gmsh.y" { CTX::instance()->forcedBBox = 0; GModel::current()->importGEOInternals(); SetBoundingBox(); ;} break; case 164: #line 2260 "Gmsh.y" { CTX::instance()->forcedBBox = 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 165: #line 2265 "Gmsh.y" { #if defined(HAVE_FLTK) Draw(); #endif ;} break; case 166: #line 2271 "Gmsh.y" { GModel::current()->createTopologyFromMesh(); ;} break; case 167: #line 2280 "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 168: #line 2297 "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 169: #line 2314 "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 170: #line 2333 "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 171: #line 2352 "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 172: #line 2380 "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 173: #line 2388 "Gmsh.y" { if(!FunctionManager::Instance()->leaveFunction (&gmsh_yyin, gmsh_yyname, gmsh_yylineno)) yymsg(0, "Error while exiting function"); ;} break; case 174: #line 2394 "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 175: #line 2401 "Gmsh.y" { if(!(yyvsp[(3) - (4)].d)) skip_until("If", "EndIf"); ;} break; case 176: #line 2405 "Gmsh.y" { ;} break; case 177: #line 2414 "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 178: #line 2422 "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 179: #line 2430 "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 180: #line 2438 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; ;} break; case 181: #line 2442 "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 182: #line 2450 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; ;} break; case 183: #line 2454 "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 184: #line 2462 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; ;} break; case 185: #line 2466 "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 186: #line 2474 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; ;} break; case 187: #line 2478 "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 188: #line 2487 "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 189: #line 2494 "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 190: #line 2501 "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 191: #line 2508 "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 192: #line 2515 "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 193: #line 2522 "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 194: #line 2529 "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 195: #line 2536 "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 196: #line 2543 "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 197: #line 2550 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; ;} break; case 198: #line 2554 "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 199: #line 2561 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; ;} break; case 200: #line 2565 "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 201: #line 2572 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; ;} break; case 202: #line 2576 "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 203: #line 2583 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; ;} break; case 204: #line 2587 "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 205: #line 2594 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; ;} break; case 206: #line 2598 "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 207: #line 2605 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; ;} break; case 208: #line 2609 "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 209: #line 2616 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; ;} break; case 210: #line 2620 "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 211: #line 2627 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; ;} break; case 212: #line 2631 "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 213: #line 2638 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; ;} break; case 214: #line 2642 "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 215: #line 2653 "Gmsh.y" { ;} break; case 216: #line 2656 "Gmsh.y" { ;} break; case 217: #line 2662 "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 218: #line 2671 "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 219: #line 2691 "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 220: #line 2714 "Gmsh.y" { extr.mesh.Recombine = true; ;} break; case 221: #line 2718 "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 222: #line 2741 "Gmsh.y" { (yyval.v)[0] = (yyval.v)[1] = 1.; ;} break; case 223: #line 2745 "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 224: #line 2760 "Gmsh.y" { (yyval.i) = -1; // left ;} break; case 225: #line 2764 "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 226: #line 2776 "Gmsh.y" { (yyval.l) = List_Create(1, 1, sizeof(double)); ;} break; case 227: #line 2780 "Gmsh.y" { (yyval.l) = (yyvsp[(2) - (2)].l); ;} break; case 228: #line 2785 "Gmsh.y" { (yyval.i) = 45; ;} break; case 229: #line 2789 "Gmsh.y" { (yyval.i) = (int)(yyvsp[(2) - (2)].d); ;} break; case 230: #line 2796 "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); for(int sign = -1; sign <= 1; sign += 2){ Curve *c = FindCurve(sign * 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(sign * 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 if(sign > 0) yymsg(0, "Unknown line %d", j); } } } List_Delete((yyvsp[(3) - (7)].l)); } ;} break; case 231: #line 2852 "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 232: #line 2922 "Gmsh.y" { yymsg(1, "Elliptic Surface is deprecated: use Transfinite instead (with smoothing)"); List_Delete((yyvsp[(7) - (8)].l)); ;} break; case 233: #line 2927 "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 234: #line 2994 "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 235: #line 3037 "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 236: #line 3063 "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 237: #line 3086 "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 238: #line 3109 "Gmsh.y" { ;} break; case 239: #line 3112 "Gmsh.y" { ;} break; case 240: #line 3121 "Gmsh.y" { ReplaceAllDuplicates(); ;} break; case 241: #line 3125 "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 242: #line 3140 "Gmsh.y" { (yyval.d) = (yyvsp[(1) - (1)].d); ;} break; case 243: #line 3141 "Gmsh.y" { (yyval.d) = (yyvsp[(2) - (3)].d); ;} break; case 244: #line 3142 "Gmsh.y" { (yyval.d) = -(yyvsp[(2) - (2)].d); ;} break; case 245: #line 3143 "Gmsh.y" { (yyval.d) = (yyvsp[(2) - (2)].d); ;} break; case 246: #line 3144 "Gmsh.y" { (yyval.d) = !(yyvsp[(2) - (2)].d); ;} break; case 247: #line 3145 "Gmsh.y" { (yyval.d) = (yyvsp[(1) - (3)].d) - (yyvsp[(3) - (3)].d); ;} break; case 248: #line 3146 "Gmsh.y" { (yyval.d) = (yyvsp[(1) - (3)].d) + (yyvsp[(3) - (3)].d); ;} break; case 249: #line 3147 "Gmsh.y" { (yyval.d) = (yyvsp[(1) - (3)].d) * (yyvsp[(3) - (3)].d); ;} break; case 250: #line 3149 "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 251: #line 3155 "Gmsh.y" { (yyval.d) = (int)(yyvsp[(1) - (3)].d) % (int)(yyvsp[(3) - (3)].d); ;} break; case 252: #line 3156 "Gmsh.y" { (yyval.d) = pow((yyvsp[(1) - (3)].d), (yyvsp[(3) - (3)].d)); ;} break; case 253: #line 3157 "Gmsh.y" { (yyval.d) = (yyvsp[(1) - (3)].d) < (yyvsp[(3) - (3)].d); ;} break; case 254: #line 3158 "Gmsh.y" { (yyval.d) = (yyvsp[(1) - (3)].d) > (yyvsp[(3) - (3)].d); ;} break; case 255: #line 3159 "Gmsh.y" { (yyval.d) = (yyvsp[(1) - (3)].d) <= (yyvsp[(3) - (3)].d); ;} break; case 256: #line 3160 "Gmsh.y" { (yyval.d) = (yyvsp[(1) - (3)].d) >= (yyvsp[(3) - (3)].d); ;} break; case 257: #line 3161 "Gmsh.y" { (yyval.d) = (yyvsp[(1) - (3)].d) == (yyvsp[(3) - (3)].d); ;} break; case 258: #line 3162 "Gmsh.y" { (yyval.d) = (yyvsp[(1) - (3)].d) != (yyvsp[(3) - (3)].d); ;} break; case 259: #line 3163 "Gmsh.y" { (yyval.d) = (yyvsp[(1) - (3)].d) && (yyvsp[(3) - (3)].d); ;} break; case 260: #line 3164 "Gmsh.y" { (yyval.d) = (yyvsp[(1) - (3)].d) || (yyvsp[(3) - (3)].d); ;} break; case 261: #line 3165 "Gmsh.y" { (yyval.d) = (yyvsp[(1) - (5)].d) ? (yyvsp[(3) - (5)].d) : (yyvsp[(5) - (5)].d); ;} break; case 262: #line 3166 "Gmsh.y" { (yyval.d) = exp((yyvsp[(3) - (4)].d)); ;} break; case 263: #line 3167 "Gmsh.y" { (yyval.d) = log((yyvsp[(3) - (4)].d)); ;} break; case 264: #line 3168 "Gmsh.y" { (yyval.d) = log10((yyvsp[(3) - (4)].d)); ;} break; case 265: #line 3169 "Gmsh.y" { (yyval.d) = sqrt((yyvsp[(3) - (4)].d)); ;} break; case 266: #line 3170 "Gmsh.y" { (yyval.d) = sin((yyvsp[(3) - (4)].d)); ;} break; case 267: #line 3171 "Gmsh.y" { (yyval.d) = asin((yyvsp[(3) - (4)].d)); ;} break; case 268: #line 3172 "Gmsh.y" { (yyval.d) = cos((yyvsp[(3) - (4)].d)); ;} break; case 269: #line 3173 "Gmsh.y" { (yyval.d) = acos((yyvsp[(3) - (4)].d)); ;} break; case 270: #line 3174 "Gmsh.y" { (yyval.d) = tan((yyvsp[(3) - (4)].d)); ;} break; case 271: #line 3175 "Gmsh.y" { (yyval.d) = atan((yyvsp[(3) - (4)].d)); ;} break; case 272: #line 3176 "Gmsh.y" { (yyval.d) = atan2((yyvsp[(3) - (6)].d), (yyvsp[(5) - (6)].d));;} break; case 273: #line 3177 "Gmsh.y" { (yyval.d) = sinh((yyvsp[(3) - (4)].d)); ;} break; case 274: #line 3178 "Gmsh.y" { (yyval.d) = cosh((yyvsp[(3) - (4)].d)); ;} break; case 275: #line 3179 "Gmsh.y" { (yyval.d) = tanh((yyvsp[(3) - (4)].d)); ;} break; case 276: #line 3180 "Gmsh.y" { (yyval.d) = fabs((yyvsp[(3) - (4)].d)); ;} break; case 277: #line 3181 "Gmsh.y" { (yyval.d) = floor((yyvsp[(3) - (4)].d)); ;} break; case 278: #line 3182 "Gmsh.y" { (yyval.d) = ceil((yyvsp[(3) - (4)].d)); ;} break; case 279: #line 3183 "Gmsh.y" { (yyval.d) = fmod((yyvsp[(3) - (6)].d), (yyvsp[(5) - (6)].d)); ;} break; case 280: #line 3184 "Gmsh.y" { (yyval.d) = fmod((yyvsp[(3) - (6)].d), (yyvsp[(5) - (6)].d)); ;} break; case 281: #line 3185 "Gmsh.y" { (yyval.d) = sqrt((yyvsp[(3) - (6)].d) * (yyvsp[(3) - (6)].d) + (yyvsp[(5) - (6)].d) * (yyvsp[(5) - (6)].d)); ;} break; case 282: #line 3186 "Gmsh.y" { (yyval.d) = (yyvsp[(3) - (4)].d) * (double)rand() / (double)RAND_MAX; ;} break; case 283: #line 3188 "Gmsh.y" { (yyval.d) = exp((yyvsp[(3) - (4)].d)); ;} break; case 284: #line 3189 "Gmsh.y" { (yyval.d) = log((yyvsp[(3) - (4)].d)); ;} break; case 285: #line 3190 "Gmsh.y" { (yyval.d) = log10((yyvsp[(3) - (4)].d)); ;} break; case 286: #line 3191 "Gmsh.y" { (yyval.d) = sqrt((yyvsp[(3) - (4)].d)); ;} break; case 287: #line 3192 "Gmsh.y" { (yyval.d) = sin((yyvsp[(3) - (4)].d)); ;} break; case 288: #line 3193 "Gmsh.y" { (yyval.d) = asin((yyvsp[(3) - (4)].d)); ;} break; case 289: #line 3194 "Gmsh.y" { (yyval.d) = cos((yyvsp[(3) - (4)].d)); ;} break; case 290: #line 3195 "Gmsh.y" { (yyval.d) = acos((yyvsp[(3) - (4)].d)); ;} break; case 291: #line 3196 "Gmsh.y" { (yyval.d) = tan((yyvsp[(3) - (4)].d)); ;} break; case 292: #line 3197 "Gmsh.y" { (yyval.d) = atan((yyvsp[(3) - (4)].d)); ;} break; case 293: #line 3198 "Gmsh.y" { (yyval.d) = atan2((yyvsp[(3) - (6)].d), (yyvsp[(5) - (6)].d));;} break; case 294: #line 3199 "Gmsh.y" { (yyval.d) = sinh((yyvsp[(3) - (4)].d)); ;} break; case 295: #line 3200 "Gmsh.y" { (yyval.d) = cosh((yyvsp[(3) - (4)].d)); ;} break; case 296: #line 3201 "Gmsh.y" { (yyval.d) = tanh((yyvsp[(3) - (4)].d)); ;} break; case 297: #line 3202 "Gmsh.y" { (yyval.d) = fabs((yyvsp[(3) - (4)].d)); ;} break; case 298: #line 3203 "Gmsh.y" { (yyval.d) = floor((yyvsp[(3) - (4)].d)); ;} break; case 299: #line 3204 "Gmsh.y" { (yyval.d) = ceil((yyvsp[(3) - (4)].d)); ;} break; case 300: #line 3205 "Gmsh.y" { (yyval.d) = fmod((yyvsp[(3) - (6)].d), (yyvsp[(5) - (6)].d)); ;} break; case 301: #line 3206 "Gmsh.y" { (yyval.d) = fmod((yyvsp[(3) - (6)].d), (yyvsp[(5) - (6)].d)); ;} break; case 302: #line 3207 "Gmsh.y" { (yyval.d) = sqrt((yyvsp[(3) - (6)].d) * (yyvsp[(3) - (6)].d) + (yyvsp[(5) - (6)].d) * (yyvsp[(5) - (6)].d)); ;} break; case 303: #line 3208 "Gmsh.y" { (yyval.d) = (yyvsp[(3) - (4)].d) * (double)rand() / (double)RAND_MAX; ;} break; case 304: #line 3217 "Gmsh.y" { (yyval.d) = (yyvsp[(1) - (1)].d); ;} break; case 305: #line 3218 "Gmsh.y" { (yyval.d) = 3.141592653589793; ;} break; case 306: #line 3219 "Gmsh.y" { (yyval.d) = Msg::GetCommRank(); ;} break; case 307: #line 3220 "Gmsh.y" { (yyval.d) = Msg::GetCommSize(); ;} break; case 308: #line 3221 "Gmsh.y" { (yyval.d) = GetGmshMajorVersion(); ;} break; case 309: #line 3222 "Gmsh.y" { (yyval.d) = GetGmshMinorVersion(); ;} break; case 310: #line 3223 "Gmsh.y" { (yyval.d) = GetGmshPatchVersion(); ;} break; case 311: #line 3228 "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 312: #line 3241 "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 313: #line 3253 "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((int)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 314: #line 3268 "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 315: #line 3278 "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 316: #line 3288 "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((int)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 317: #line 3306 "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 318: #line 3311 "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 319: #line 3316 "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 320: #line 3326 "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 321: #line 3336 "Gmsh.y" { (yyval.d) = Msg::GetValue((yyvsp[(3) - (6)].c), (yyvsp[(5) - (6)].d)); Free((yyvsp[(3) - (6)].c)); ;} break; case 322: #line 3344 "Gmsh.y" { memcpy((yyval.v), (yyvsp[(1) - (1)].v), 5*sizeof(double)); ;} break; case 323: #line 3348 "Gmsh.y" { for(int i = 0; i < 5; i++) (yyval.v)[i] = -(yyvsp[(2) - (2)].v)[i]; ;} break; case 324: #line 3352 "Gmsh.y" { for(int i = 0; i < 5; i++) (yyval.v)[i] = (yyvsp[(2) - (2)].v)[i]; ;} break; case 325: #line 3356 "Gmsh.y" { for(int i = 0; i < 5; i++) (yyval.v)[i] = (yyvsp[(1) - (3)].v)[i] - (yyvsp[(3) - (3)].v)[i]; ;} break; case 326: #line 3360 "Gmsh.y" { for(int i = 0; i < 5; i++) (yyval.v)[i] = (yyvsp[(1) - (3)].v)[i] + (yyvsp[(3) - (3)].v)[i]; ;} break; case 327: #line 3367 "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 328: #line 3371 "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 329: #line 3375 "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 330: #line 3379 "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 331: #line 3386 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(List_T*)); List_Add((yyval.l), &((yyvsp[(1) - (1)].l))); ;} break; case 332: #line 3391 "Gmsh.y" { List_Add((yyval.l), &((yyvsp[(3) - (3)].l))); ;} break; case 333: #line 3398 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(double)); List_Add((yyval.l), &((yyvsp[(1) - (1)].d))); ;} break; case 334: #line 3403 "Gmsh.y" { (yyval.l) = (yyvsp[(1) - (1)].l); ;} break; case 335: #line 3407 "Gmsh.y" { // creates an empty list (yyval.l) = List_Create(2, 1, sizeof(double)); ;} break; case 336: #line 3412 "Gmsh.y" { (yyval.l) = (yyvsp[(2) - (3)].l); ;} break; case 337: #line 3416 "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 338: #line 3424 "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 339: #line 3435 "Gmsh.y" { (yyval.l) = (yyvsp[(1) - (1)].l); ;} break; case 340: #line 3439 "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 341: #line 3451 "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 342: #line 3459 "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 343: #line 3467 "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 344: #line 3474 "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 345: #line 3485 "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 346: #line 3505 "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 347: #line 3515 "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 348: #line 3525 "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 349: #line 3535 "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((int)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 350: #line 3555 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(double)); List_Add((yyval.l), &((yyvsp[(1) - (1)].d))); ;} break; case 351: #line 3560 "Gmsh.y" { (yyval.l) = (yyvsp[(1) - (1)].l); ;} break; case 352: #line 3564 "Gmsh.y" { List_Add((yyval.l), &((yyvsp[(3) - (3)].d))); ;} break; case 353: #line 3568 "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 354: #line 3580 "Gmsh.y" { (yyval.u) = CTX::instance()->packColor((int)(yyvsp[(2) - (9)].d), (int)(yyvsp[(4) - (9)].d), (int)(yyvsp[(6) - (9)].d), (int)(yyvsp[(8) - (9)].d)); ;} break; case 355: #line 3584 "Gmsh.y" { (yyval.u) = CTX::instance()->packColor((int)(yyvsp[(2) - (7)].d), (int)(yyvsp[(4) - (7)].d), (int)(yyvsp[(6) - (7)].d), 255); ;} break; case 356: #line 3596 "Gmsh.y" { int flag; (yyval.u) = GetColorForString(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 357: #line 3603 "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 358: #line 3613 "Gmsh.y" { (yyval.l) = (yyvsp[(2) - (3)].l); ;} break; case 359: #line 3617 "Gmsh.y" { (yyval.l) = List_Create(256, 10, sizeof(unsigned int)); GmshColorTable *ct = GetColorTable((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 360: #line 3632 "Gmsh.y" { (yyval.l) = List_Create(256, 10, sizeof(unsigned int)); List_Add((yyval.l), &((yyvsp[(1) - (1)].u))); ;} break; case 361: #line 3637 "Gmsh.y" { List_Add((yyval.l), &((yyvsp[(3) - (3)].u))); ;} break; case 362: #line 3644 "Gmsh.y" { (yyval.c) = (yyvsp[(1) - (1)].c); ;} break; case 363: #line 3648 "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 364: #line 3661 "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 365: #line 3669 "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 366: #line 3680 "Gmsh.y" { (yyval.c) = (yyvsp[(1) - (1)].c); ;} break; case 367: #line 3684 "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 368: #line 3692 "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 369: #line 3700 "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 370: #line 3714 "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 371: #line 3728 "Gmsh.y" { (yyval.c) = (yyvsp[(3) - (4)].c); ;} break; case 372: #line 3732 "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 8342 "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 3752 "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; } gmshMatrix<double> 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)); } gmshMatrix<double> 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); }