/* A Bison parser, made by GNU Bison 2.5. */ /* Bison implementation for Yacc-like parsers in C Copyright (C) 1984, 1989-1990, 2000-2011 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ /* As a special exception, you may create a larger work that contains part or all of the Bison parser skeleton and distribute that work under terms of your choice, so long as that work isn't itself a parser generator using the skeleton or a modified version thereof as a parser skeleton. Alternatively, if you modify or redistribute the parser skeleton itself, you may (at your option) remove this special exception, which will cause the skeleton and the resulting Bison output files to be licensed under the GNU General Public License without this special exception. This special exception was added by the Free Software Foundation in version 2.2 of Bison. */ /* C LALR(1) parser skeleton written by Richard Stallman, by simplifying the original so-called "semantic" parser. */ /* All symbols defined below should begin with yy or YY, to avoid infringing on user name space. This should be done even for local variables, as they might otherwise be expanded by user macros. There are some unavoidable exceptions within include files to define necessary library symbols; they are noted "INFRINGES ON USER NAME SPACE" below. */ /* Identify Bison output. */ #define YYBISON 1 /* Bison version. */ #define YYBISON_VERSION "2.5" /* Skeleton name. */ #define YYSKELETON_NAME "yacc.c" /* Pure parsers. */ #define YYPURE 0 /* Push parsers. */ #define YYPUSH 0 /* Pull parsers. */ #define YYPULL 1 /* 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 /* Copy the first part of user declarations. */ /* Line 268 of yacc.c */ #line 1 "Gmsh.y" // Gmsh - Copyright (C) 1997-2012 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 "fullMatrix.h" #include "MallocUtils.h" #include "ListUtils.h" #include "TreeUtils.h" #include "StringUtils.h" #include "Numeric.h" #include "Context.h" #include "GModel.h" #include "Geo.h" #include "GeoInterpolation.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 "gmshLevelset.h" #include "fullMatrix.h" #if defined(HAVE_MESH) #include "Generator.h" #include "Field.h" #include "BackgroundMesh.h" #endif #if defined(HAVE_POST) #include "PView.h" #include "PViewDataList.h" #endif #if defined(HAVE_PLUGINS) #include "PluginManager.h" #endif #if defined(HAVE_OPENGL) #include "drawContext.h" #endif // Global parser variables std::string gmsh_yyname; int gmsh_yyerrorstate = 0; int gmsh_yyviewindex = 0; std::map<std::string, gmsh_yysymbol> gmsh_yysymbols; // Static parser variables (accessible only in this file) static std::map<std::string, std::string> gmsh_yystringsymbols; #if defined(HAVE_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 const char *LoopControlVariablesNameTab[MAX_RECUR_LOOPS]; static std::map<std::string, std::vector<double> > floatOptions; static std::map<std::string, std::vector<std::string> > charOptions; void yyerror(const 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); fullMatrix<double> ListOfListOfDouble2Matrix(List_T *list); /* Line 268 of yacc.c */ #line 166 "Gmsh.tab.cpp" /* 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 /* 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, tList = 290, tPrintf = 291, tSprintf = 292, tStrCat = 293, tStrPrefix = 294, tStrRelative = 295, tBoundingBox = 296, tDraw = 297, tToday = 298, tSyncModel = 299, tCreateTopology = 300, tCreateTopologyNoHoles = 301, tDistanceFunction = 302, tDefineConstant = 303, tPoint = 304, tCircle = 305, tEllipse = 306, tLine = 307, tSphere = 308, tPolarSphere = 309, tSurface = 310, tSpline = 311, tVolume = 312, tCharacteristic = 313, tLength = 314, tParametric = 315, tElliptic = 316, tRefineMesh = 317, tPlane = 318, tRuled = 319, tTransfinite = 320, tComplex = 321, tPhysical = 322, tCompound = 323, tPeriodic = 324, tUsing = 325, tPlugin = 326, tDegenerated = 327, tRotate = 328, tTranslate = 329, tSymmetry = 330, tDilate = 331, tExtrude = 332, tLevelset = 333, tRecombine = 334, tSmoother = 335, tSplit = 336, tDelete = 337, tCoherence = 338, tIntersect = 339, tLayers = 340, tHole = 341, tAlias = 342, tAliasWithOptions = 343, tQuadTriDbl = 344, tQuadTriSngl = 345, tRecombLaterals = 346, tTransfQuadTri = 347, tText2D = 348, tText3D = 349, tInterpolationScheme = 350, tTime = 351, tCombine = 352, tBSpline = 353, tBezier = 354, tNurbs = 355, tNurbsOrder = 356, tNurbsKnots = 357, tColor = 358, tColorTable = 359, tFor = 360, tIn = 361, tEndFor = 362, tIf = 363, tEndIf = 364, tExit = 365, tField = 366, tReturn = 367, tCall = 368, tFunction = 369, tShow = 370, tHide = 371, tGetValue = 372, tGetEnv = 373, tGetString = 374, tHomology = 375, tCohomology = 376, tGMSH_MAJOR_VERSION = 377, tGMSH_MINOR_VERSION = 378, tGMSH_PATCH_VERSION = 379, tAFFECTDIVIDE = 380, tAFFECTTIMES = 381, tAFFECTMINUS = 382, tAFFECTPLUS = 383, tOR = 384, tAND = 385, tNOTEQUAL = 386, tEQUAL = 387, tGREATEROREQUAL = 388, tLESSOREQUAL = 389, UNARYPREC = 390, tMINUSMINUS = 391, tPLUSPLUS = 392 }; #endif #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED typedef union YYSTYPE { /* Line 293 of yacc.c */ #line 87 "Gmsh.y" char *c; int i; unsigned int u; double d; double v[5]; Shape s; List_T *l; /* Line 293 of yacc.c */ #line 351 "Gmsh.tab.cpp" } YYSTYPE; # define YYSTYPE_IS_TRIVIAL 1 # define yystype YYSTYPE /* obsolescent; will be withdrawn */ # define YYSTYPE_IS_DECLARED 1 #endif /* Copy the second part of user declarations. */ /* Line 343 of yacc.c */ #line 363 "Gmsh.tab.cpp" #ifdef short # undef short #endif #ifdef YYTYPE_UINT8 typedef YYTYPE_UINT8 yytype_uint8; #else typedef unsigned char yytype_uint8; #endif #ifdef YYTYPE_INT8 typedef YYTYPE_INT8 yytype_int8; #elif (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) typedef signed char yytype_int8; #else typedef short int yytype_int8; #endif #ifdef YYTYPE_UINT16 typedef YYTYPE_UINT16 yytype_uint16; #else typedef unsigned short int yytype_uint16; #endif #ifdef YYTYPE_INT16 typedef YYTYPE_INT16 yytype_int16; #else typedef short int yytype_int16; #endif #ifndef YYSIZE_T # ifdef __SIZE_TYPE__ # define YYSIZE_T __SIZE_TYPE__ # elif defined size_t # define YYSIZE_T size_t # elif ! defined YYSIZE_T && (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) # include <stddef.h> /* INFRINGES ON USER NAME SPACE */ # define YYSIZE_T size_t # else # define YYSIZE_T unsigned int # endif #endif #define YYSIZE_MAXIMUM ((YYSIZE_T) -1) #ifndef YY_ # if defined YYENABLE_NLS && YYENABLE_NLS # if ENABLE_NLS # include <libintl.h> /* INFRINGES ON USER NAME SPACE */ # define YY_(msgid) dgettext ("bison-runtime", msgid) # endif # endif # ifndef YY_ # define YY_(msgid) msgid # endif #endif /* Suppress unused-variable warnings by "using" E. */ #if ! defined lint || defined __GNUC__ # define YYUSE(e) ((void) (e)) #else # define YYUSE(e) /* empty */ #endif /* Identity function, used to suppress warnings about constant conditions. */ #ifndef lint # define YYID(n) (n) #else #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) static int YYID (int yyi) #else static int YYID (yyi) int yyi; #endif { return yyi; } #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 EXIT_SUCCESS && (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) # include <stdlib.h> /* INFRINGES ON USER NAME SPACE */ # ifndef EXIT_SUCCESS # define EXIT_SUCCESS 0 # endif # endif # endif # endif # endif # ifdef YYSTACK_ALLOC /* Pacify GCC's `empty if-body' warning. */ # define YYSTACK_FREE(Ptr) do { /* empty */; } while (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 EXIT_SUCCESS \ && ! ((defined YYMALLOC || defined malloc) \ && (defined YYFREE || defined free))) # include <stdlib.h> /* INFRINGES ON USER NAME SPACE */ # ifndef EXIT_SUCCESS # define EXIT_SUCCESS 0 # endif # endif # ifndef YYMALLOC # define YYMALLOC malloc # if ! defined malloc && ! defined EXIT_SUCCESS && (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 EXIT_SUCCESS && (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_alloc; YYSTYPE yyvs_alloc; }; /* The size of the maximum gap between one aligned stack and the next. */ # define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1) /* The size of an array large to enough to hold all stacks, each with N elements. */ # define YYSTACK_BYTES(N) \ ((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \ + YYSTACK_GAP_MAXIMUM) # define YYCOPY_NEEDED 1 /* Relocate STACK from its old location to the new one. The local variables YYSIZE and YYSTACKSIZE give the old and new number of elements in the stack, and YYPTR gives the new location of the stack. Advance YYPTR to a properly aligned location for the next stack. */ # define YYSTACK_RELOCATE(Stack_alloc, Stack) \ do \ { \ YYSIZE_T yynewbytes; \ YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \ Stack = &yyptr->Stack_alloc; \ yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \ yyptr += yynewbytes / sizeof (*yyptr); \ } \ while (YYID (0)) #endif #if defined YYCOPY_NEEDED && YYCOPY_NEEDED /* 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 #endif /* !YYCOPY_NEEDED */ /* YYFINAL -- State number of the termination state. */ #define YYFINAL 5 /* YYLAST -- Last index in YYTABLE. */ #define YYLAST 7595 /* YYNTOKENS -- Number of terminals. */ #define YYNTOKENS 158 /* YYNNTS -- Number of nonterminals. */ #define YYNNTS 87 /* YYNRULES -- Number of rules. */ #define YYNRULES 414 /* YYNRULES -- Number of states. */ #define YYNSTATES 1421 /* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */ #define YYUNDEFTOK 2 #define YYMAXUTOK 392 #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, 143, 2, 153, 2, 142, 2, 2, 148, 149, 140, 138, 154, 139, 152, 141, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 134, 2, 135, 129, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 150, 2, 151, 147, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 155, 2, 156, 157, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 130, 131, 132, 133, 136, 137, 144, 145, 146 }; #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, 46, 48, 51, 57, 65, 73, 83, 90, 97, 104, 105, 108, 111, 114, 117, 120, 122, 126, 128, 132, 133, 134, 145, 147, 151, 152, 166, 168, 172, 173, 189, 198, 213, 214, 221, 223, 225, 227, 229, 231, 233, 235, 241, 246, 253, 261, 271, 275, 282, 287, 294, 304, 311, 321, 327, 336, 345, 357, 364, 374, 380, 388, 398, 408, 420, 428, 438, 448, 449, 451, 452, 456, 462, 463, 473, 474, 477, 481, 485, 487, 489, 490, 496, 497, 500, 508, 509, 519, 526, 534, 539, 547, 556, 565, 573, 581, 593, 602, 611, 612, 622, 631, 641, 645, 650, 661, 669, 677, 686, 695, 708, 709, 719, 728, 736, 745, 746, 756, 762, 774, 780, 790, 795, 805, 815, 817, 819, 820, 823, 830, 837, 844, 851, 860, 871, 886, 903, 916, 925, 934, 941, 956, 961, 968, 975, 979, 984, 990, 994, 998, 1003, 1008, 1012, 1020, 1028, 1032, 1040, 1044, 1047, 1050, 1053, 1069, 1072, 1075, 1078, 1081, 1088, 1097, 1106, 1117, 1119, 1122, 1124, 1128, 1133, 1135, 1141, 1153, 1167, 1168, 1176, 1177, 1191, 1192, 1208, 1209, 1216, 1225, 1234, 1243, 1256, 1269, 1282, 1297, 1312, 1327, 1328, 1341, 1342, 1355, 1356, 1369, 1370, 1387, 1388, 1405, 1406, 1423, 1424, 1443, 1444, 1463, 1464, 1483, 1485, 1488, 1494, 1502, 1512, 1515, 1518, 1522, 1525, 1529, 1539, 1546, 1547, 1551, 1552, 1554, 1555, 1558, 1559, 1562, 1570, 1577, 1586, 1592, 1596, 1602, 1609, 1616, 1629, 1640, 1651, 1662, 1673, 1676, 1680, 1687, 1689, 1691, 1694, 1700, 1708, 1710, 1714, 1717, 1720, 1723, 1727, 1731, 1735, 1739, 1743, 1747, 1751, 1755, 1759, 1763, 1767, 1771, 1775, 1779, 1785, 1790, 1795, 1800, 1805, 1810, 1815, 1820, 1825, 1830, 1835, 1842, 1847, 1852, 1857, 1862, 1867, 1872, 1879, 1886, 1893, 1898, 1903, 1908, 1913, 1918, 1923, 1928, 1933, 1938, 1943, 1948, 1955, 1960, 1965, 1970, 1975, 1980, 1985, 1992, 1999, 2006, 2011, 2013, 2015, 2017, 2019, 2021, 2023, 2025, 2027, 2033, 2038, 2043, 2046, 2052, 2056, 2063, 2068, 2076, 2083, 2085, 2088, 2091, 2095, 2099, 2111, 2121, 2129, 2137, 2139, 2143, 2145, 2147, 2150, 2154, 2159, 2165, 2167, 2169, 2172, 2176, 2180, 2186, 2191, 2194, 2197, 2200, 2203, 2205, 2207, 2211, 2216, 2223, 2225, 2227, 2231, 2235, 2245, 2253, 2255, 2261, 2265, 2272, 2274, 2278, 2280, 2282, 2286, 2293, 2295, 2297, 2302, 2309, 2316, 2321, 2326, 2331 }; /* YYRHS -- A `-1'-separated list of the rules' RHS. */ static const yytype_int16 yyrhs[] = { 159, 0, -1, 160, -1, 1, 6, -1, -1, 160, 161, -1, 164, -1, 163, -1, 182, -1, 191, -1, 196, -1, 200, -1, 201, -1, 202, -1, 205, -1, 225, -1, 226, -1, 227, -1, 228, -1, 204, -1, 203, -1, 199, -1, 230, -1, 135, -1, 135, 135, -1, 36, 148, 5, 149, 6, -1, 36, 148, 5, 149, 162, 243, 6, -1, 36, 148, 5, 154, 239, 149, 6, -1, 36, 148, 5, 154, 239, 149, 162, 243, 6, -1, 4, 5, 155, 165, 156, 6, -1, 87, 4, 150, 231, 151, 6, -1, 88, 4, 150, 231, 151, 6, -1, -1, 165, 168, -1, 165, 172, -1, 165, 175, -1, 165, 177, -1, 165, 178, -1, 231, -1, 166, 154, 231, -1, 231, -1, 167, 154, 231, -1, -1, -1, 4, 169, 148, 166, 149, 170, 155, 167, 156, 6, -1, 243, -1, 171, 154, 243, -1, -1, 93, 148, 231, 154, 231, 154, 231, 149, 173, 155, 171, 156, 6, -1, 243, -1, 174, 154, 243, -1, -1, 94, 148, 231, 154, 231, 154, 231, 154, 231, 149, 176, 155, 174, 156, 6, -1, 95, 155, 235, 156, 155, 235, 156, 6, -1, 95, 155, 235, 156, 155, 235, 156, 155, 235, 156, 155, 235, 156, 6, -1, -1, 96, 179, 155, 167, 156, 6, -1, 7, -1, 128, -1, 127, -1, 126, -1, 125, -1, 146, -1, 145, -1, 48, 150, 184, 151, 6, -1, 4, 180, 236, 6, -1, 4, 150, 151, 180, 236, 6, -1, 4, 150, 231, 151, 180, 231, 6, -1, 4, 150, 155, 239, 156, 151, 180, 236, 6, -1, 4, 181, 6, -1, 4, 150, 231, 151, 181, 6, -1, 4, 7, 244, 6, -1, 4, 152, 4, 7, 244, 6, -1, 4, 150, 231, 151, 152, 4, 7, 244, 6, -1, 4, 152, 4, 180, 231, 6, -1, 4, 150, 231, 151, 152, 4, 180, 231, 6, -1, 4, 152, 4, 181, 6, -1, 4, 150, 231, 151, 152, 4, 181, 6, -1, 4, 152, 103, 152, 4, 7, 240, 6, -1, 4, 150, 231, 151, 152, 103, 152, 4, 7, 240, 6, -1, 4, 152, 104, 7, 241, 6, -1, 4, 150, 231, 151, 152, 104, 7, 241, 6, -1, 4, 111, 7, 231, 6, -1, 111, 150, 231, 151, 7, 4, 6, -1, 111, 150, 231, 151, 152, 4, 7, 231, 6, -1, 111, 150, 231, 151, 152, 4, 7, 244, 6, -1, 111, 150, 231, 151, 152, 4, 7, 155, 239, 156, 6, -1, 111, 150, 231, 151, 152, 4, 6, -1, 71, 148, 4, 149, 152, 4, 7, 231, 6, -1, 71, 148, 4, 149, 152, 4, 7, 244, 6, -1, -1, 154, -1, -1, 184, 183, 4, -1, 184, 183, 4, 7, 231, -1, -1, 184, 183, 4, 7, 155, 231, 185, 186, 156, -1, -1, 186, 187, -1, 154, 4, 236, -1, 154, 4, 5, -1, 231, -1, 244, -1, -1, 106, 53, 155, 231, 156, -1, -1, 63, 233, -1, 49, 148, 231, 149, 7, 233, 6, -1, -1, 67, 49, 192, 148, 188, 149, 7, 236, 6, -1, 58, 59, 236, 7, 231, 6, -1, 52, 148, 231, 149, 7, 236, 6, -1, 72, 52, 236, 6, -1, 56, 148, 231, 149, 7, 236, 6, -1, 50, 148, 231, 149, 7, 236, 190, 6, -1, 51, 148, 231, 149, 7, 236, 190, 6, -1, 98, 148, 231, 149, 7, 236, 6, -1, 99, 148, 231, 149, 7, 236, 6, -1, 100, 148, 231, 149, 7, 236, 102, 236, 101, 231, 6, -1, 52, 4, 148, 231, 149, 7, 236, 6, -1, 68, 52, 148, 231, 149, 7, 236, 6, -1, -1, 67, 52, 193, 148, 188, 149, 7, 236, 6, -1, 63, 55, 148, 231, 149, 7, 236, 6, -1, 64, 55, 148, 231, 149, 7, 236, 189, 6, -1, 12, 13, 6, -1, 13, 55, 231, 6, -1, 60, 55, 148, 231, 149, 7, 5, 5, 5, 6, -1, 53, 148, 231, 149, 7, 236, 6, -1, 54, 148, 231, 149, 7, 236, 6, -1, 55, 4, 148, 231, 149, 7, 236, 6, -1, 68, 55, 148, 231, 149, 7, 236, 6, -1, 68, 55, 148, 231, 149, 7, 236, 4, 155, 235, 156, 6, -1, -1, 67, 55, 194, 148, 188, 149, 7, 236, 6, -1, 66, 57, 148, 231, 149, 7, 236, 6, -1, 57, 148, 231, 149, 7, 236, 6, -1, 68, 57, 148, 231, 149, 7, 236, 6, -1, -1, 67, 57, 195, 148, 188, 149, 7, 236, 6, -1, 74, 233, 155, 197, 156, -1, 73, 155, 233, 154, 233, 154, 231, 156, 155, 197, 156, -1, 75, 233, 155, 197, 156, -1, 76, 155, 233, 154, 231, 156, 155, 197, 156, -1, 4, 155, 197, 156, -1, 84, 52, 155, 239, 156, 55, 155, 231, 156, -1, 81, 52, 148, 231, 149, 155, 239, 156, 6, -1, 198, -1, 196, -1, -1, 198, 191, -1, 198, 49, 155, 239, 156, 6, -1, 198, 52, 155, 239, 156, 6, -1, 198, 55, 155, 239, 156, 6, -1, 198, 57, 155, 239, 156, 6, -1, 78, 63, 148, 231, 149, 7, 236, 6, -1, 78, 49, 148, 231, 149, 7, 155, 235, 156, 6, -1, 78, 63, 148, 231, 149, 7, 155, 233, 154, 233, 154, 239, 156, 6, -1, 78, 63, 148, 231, 149, 7, 155, 233, 154, 233, 154, 233, 154, 239, 156, 6, -1, 78, 53, 148, 231, 149, 7, 155, 233, 154, 239, 156, 6, -1, 78, 4, 148, 231, 149, 7, 236, 6, -1, 78, 4, 148, 231, 149, 7, 5, 6, -1, 78, 4, 155, 231, 156, 6, -1, 78, 4, 148, 231, 149, 7, 155, 233, 154, 233, 154, 239, 156, 6, -1, 82, 155, 198, 156, -1, 82, 111, 150, 231, 151, 6, -1, 82, 4, 150, 231, 151, 6, -1, 82, 4, 6, -1, 82, 4, 4, 6, -1, 103, 240, 155, 198, 156, -1, 115, 5, 6, -1, 116, 5, 6, -1, 115, 155, 198, 156, -1, 116, 155, 198, 156, -1, 4, 244, 6, -1, 4, 4, 150, 231, 151, 243, 6, -1, 4, 4, 4, 150, 231, 151, 6, -1, 4, 231, 6, -1, 71, 148, 4, 149, 152, 4, 6, -1, 97, 4, 6, -1, 110, 6, -1, 44, 6, -1, 41, 6, -1, 41, 155, 231, 154, 231, 154, 231, 154, 231, 154, 231, 154, 231, 156, 6, -1, 42, 6, -1, 45, 6, -1, 46, 6, -1, 62, 6, -1, 105, 148, 231, 8, 231, 149, -1, 105, 148, 231, 8, 231, 8, 231, 149, -1, 105, 4, 106, 155, 231, 8, 231, 156, -1, 105, 4, 106, 155, 231, 8, 231, 8, 231, 156, -1, 107, -1, 114, 4, -1, 112, -1, 113, 4, 6, -1, 108, 148, 231, 149, -1, 109, -1, 77, 233, 155, 198, 156, -1, 77, 155, 233, 154, 233, 154, 231, 156, 155, 198, 156, -1, 77, 155, 233, 154, 233, 154, 233, 154, 231, 156, 155, 198, 156, -1, -1, 77, 233, 155, 198, 206, 219, 156, -1, -1, 77, 155, 233, 154, 233, 154, 231, 156, 155, 198, 207, 219, 156, -1, -1, 77, 155, 233, 154, 233, 154, 233, 154, 231, 156, 155, 198, 208, 219, 156, -1, -1, 77, 155, 198, 209, 219, 156, -1, 77, 49, 155, 231, 154, 233, 156, 6, -1, 77, 52, 155, 231, 154, 233, 156, 6, -1, 77, 55, 155, 231, 154, 233, 156, 6, -1, 77, 49, 155, 231, 154, 233, 154, 233, 154, 231, 156, 6, -1, 77, 52, 155, 231, 154, 233, 154, 233, 154, 231, 156, 6, -1, 77, 55, 155, 231, 154, 233, 154, 233, 154, 231, 156, 6, -1, 77, 49, 155, 231, 154, 233, 154, 233, 154, 233, 154, 231, 156, 6, -1, 77, 52, 155, 231, 154, 233, 154, 233, 154, 233, 154, 231, 156, 6, -1, 77, 55, 155, 231, 154, 233, 154, 233, 154, 233, 154, 231, 156, 6, -1, -1, 77, 49, 155, 231, 154, 233, 156, 210, 155, 219, 156, 6, -1, -1, 77, 52, 155, 231, 154, 233, 156, 211, 155, 219, 156, 6, -1, -1, 77, 55, 155, 231, 154, 233, 156, 212, 155, 219, 156, 6, -1, -1, 77, 49, 155, 231, 154, 233, 154, 233, 154, 231, 156, 213, 155, 219, 156, 6, -1, -1, 77, 52, 155, 231, 154, 233, 154, 233, 154, 231, 156, 214, 155, 219, 156, 6, -1, -1, 77, 55, 155, 231, 154, 233, 154, 233, 154, 231, 156, 215, 155, 219, 156, 6, -1, -1, 77, 49, 155, 231, 154, 233, 154, 233, 154, 233, 154, 231, 156, 216, 155, 219, 156, 6, -1, -1, 77, 52, 155, 231, 154, 233, 154, 233, 154, 233, 154, 231, 156, 217, 155, 219, 156, 6, -1, -1, 77, 55, 155, 231, 154, 233, 154, 233, 154, 233, 154, 231, 156, 218, 155, 219, 156, 6, -1, 220, -1, 219, 220, -1, 85, 155, 231, 156, 6, -1, 85, 155, 236, 154, 236, 156, 6, -1, 85, 155, 236, 154, 236, 154, 236, 156, 6, -1, 79, 6, -1, 89, 6, -1, 89, 91, 6, -1, 90, 6, -1, 90, 91, 6, -1, 86, 148, 231, 149, 7, 236, 70, 231, 6, -1, 70, 4, 150, 231, 151, 6, -1, -1, 70, 4, 231, -1, -1, 4, -1, -1, 7, 236, -1, -1, 7, 231, -1, 65, 52, 237, 7, 231, 221, 6, -1, 65, 55, 237, 223, 222, 6, -1, 61, 55, 155, 231, 156, 7, 236, 6, -1, 65, 57, 237, 223, 6, -1, 92, 237, 6, -1, 79, 55, 237, 224, 6, -1, 80, 55, 236, 7, 231, 6, -1, 69, 52, 236, 7, 236, 6, -1, 69, 55, 231, 155, 239, 156, 7, 231, 155, 239, 156, 6, -1, 49, 155, 239, 156, 106, 55, 155, 231, 156, 6, -1, 52, 155, 239, 156, 106, 55, 155, 231, 156, 6, -1, 52, 155, 239, 156, 106, 57, 155, 231, 156, 6, -1, 55, 155, 239, 156, 106, 57, 155, 231, 156, 6, -1, 83, 6, -1, 83, 4, 6, -1, 83, 49, 155, 239, 156, 6, -1, 120, -1, 121, -1, 229, 6, -1, 229, 155, 236, 156, 6, -1, 229, 155, 236, 154, 236, 156, 6, -1, 232, -1, 148, 231, 149, -1, 139, 231, -1, 138, 231, -1, 143, 231, -1, 231, 139, 231, -1, 231, 138, 231, -1, 231, 140, 231, -1, 231, 141, 231, -1, 231, 142, 231, -1, 231, 147, 231, -1, 231, 134, 231, -1, 231, 135, 231, -1, 231, 137, 231, -1, 231, 136, 231, -1, 231, 133, 231, -1, 231, 132, 231, -1, 231, 131, 231, -1, 231, 130, 231, -1, 231, 129, 231, 8, 231, -1, 14, 148, 231, 149, -1, 15, 148, 231, 149, -1, 16, 148, 231, 149, -1, 17, 148, 231, 149, -1, 18, 148, 231, 149, -1, 19, 148, 231, 149, -1, 20, 148, 231, 149, -1, 21, 148, 231, 149, -1, 22, 148, 231, 149, -1, 24, 148, 231, 149, -1, 25, 148, 231, 154, 231, 149, -1, 26, 148, 231, 149, -1, 27, 148, 231, 149, -1, 28, 148, 231, 149, -1, 29, 148, 231, 149, -1, 30, 148, 231, 149, -1, 31, 148, 231, 149, -1, 32, 148, 231, 154, 231, 149, -1, 33, 148, 231, 154, 231, 149, -1, 34, 148, 231, 154, 231, 149, -1, 23, 148, 231, 149, -1, 14, 150, 231, 151, -1, 15, 150, 231, 151, -1, 16, 150, 231, 151, -1, 17, 150, 231, 151, -1, 18, 150, 231, 151, -1, 19, 150, 231, 151, -1, 20, 150, 231, 151, -1, 21, 150, 231, 151, -1, 22, 150, 231, 151, -1, 24, 150, 231, 151, -1, 25, 150, 231, 154, 231, 151, -1, 26, 150, 231, 151, -1, 27, 150, 231, 151, -1, 28, 150, 231, 151, -1, 29, 150, 231, 151, -1, 30, 150, 231, 151, -1, 31, 150, 231, 151, -1, 32, 150, 231, 154, 231, 151, -1, 33, 150, 231, 154, 231, 151, -1, 34, 150, 231, 154, 231, 151, -1, 23, 150, 231, 151, -1, 3, -1, 9, -1, 10, -1, 11, -1, 122, -1, 123, -1, 124, -1, 4, -1, 4, 157, 155, 231, 156, -1, 4, 150, 231, 151, -1, 153, 4, 150, 151, -1, 4, 181, -1, 4, 150, 231, 151, 181, -1, 4, 152, 4, -1, 4, 150, 231, 151, 152, 4, -1, 4, 152, 4, 181, -1, 4, 150, 231, 151, 152, 4, 181, -1, 117, 148, 243, 154, 231, 149, -1, 234, -1, 139, 233, -1, 138, 233, -1, 233, 139, 233, -1, 233, 138, 233, -1, 155, 231, 154, 231, 154, 231, 154, 231, 154, 231, 156, -1, 155, 231, 154, 231, 154, 231, 154, 231, 156, -1, 155, 231, 154, 231, 154, 231, 156, -1, 148, 231, 154, 231, 154, 231, 149, -1, 236, -1, 235, 154, 236, -1, 231, -1, 238, -1, 155, 156, -1, 155, 239, 156, -1, 139, 155, 239, 156, -1, 231, 140, 155, 239, 156, -1, 236, -1, 5, -1, 139, 238, -1, 231, 140, 238, -1, 231, 8, 231, -1, 231, 8, 231, 8, 231, -1, 49, 155, 231, 156, -1, 49, 5, -1, 52, 5, -1, 55, 5, -1, 57, 5, -1, 196, -1, 205, -1, 4, 150, 151, -1, 35, 150, 4, 151, -1, 4, 150, 155, 239, 156, 151, -1, 231, -1, 238, -1, 239, 154, 231, -1, 239, 154, 238, -1, 155, 231, 154, 231, 154, 231, 154, 231, 156, -1, 155, 231, 154, 231, 154, 231, 156, -1, 4, -1, 4, 152, 103, 152, 4, -1, 155, 242, 156, -1, 4, 150, 231, 151, 152, 104, -1, 240, -1, 242, 154, 240, -1, 244, -1, 4, -1, 4, 152, 4, -1, 4, 150, 231, 151, 152, 4, -1, 5, -1, 43, -1, 118, 148, 243, 149, -1, 119, 148, 243, 154, 243, 149, -1, 38, 148, 243, 154, 243, 149, -1, 39, 148, 243, 149, -1, 40, 148, 243, 149, -1, 37, 148, 243, 149, -1, 37, 148, 243, 154, 239, 149, -1 }; /* YYRLINE[YYN] -- source line where rule number YYN was defined. */ static const yytype_uint16 yyrline[] = { 0, 158, 158, 159, 164, 166, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 190, 194, 201, 206, 220, 233, 261, 275, 286, 301, 306, 307, 308, 309, 310, 314, 316, 321, 323, 329, 433, 328, 451, 458, 469, 468, 486, 493, 504, 503, 520, 537, 560, 559, 573, 574, 575, 576, 577, 581, 582, 588, 590, 653, 683, 716, 762, 777, 793, 802, 808, 817, 835, 853, 862, 874, 879, 887, 907, 930, 941, 949, 971, 994, 1019, 1040, 1052, 1066, 1066, 1068, 1070, 1081, 1093, 1092, 1105, 1106, 1110, 1121, 1134, 1138, 1149, 1152, 1165, 1168, 1178, 1202, 1201, 1221, 1243, 1261, 1282, 1300, 1330, 1360, 1378, 1396, 1422, 1440, 1459, 1458, 1481, 1499, 1538, 1544, 1550, 1557, 1582, 1607, 1624, 1641, 1673, 1672, 1696, 1714, 1731, 1748, 1747, 1773, 1778, 1783, 1788, 1793, 1816, 1822, 1833, 1834, 1839, 1842, 1846, 1869, 1892, 1915, 1943, 1964, 1987, 2008, 2030, 2050, 2162, 2181, 2219, 2328, 2337, 2343, 2358, 2386, 2403, 2417, 2423, 2429, 2438, 2452, 2494, 2511, 2526, 2545, 2557, 2581, 2585, 2592, 2598, 2603, 2609, 2613, 2617, 2627, 2644, 2661, 2682, 2703, 2738, 2746, 2752, 2759, 2763, 2772, 2780, 2788, 2797, 2796, 2810, 2809, 2823, 2822, 2836, 2835, 2848, 2855, 2862, 2869, 2876, 2883, 2890, 2897, 2904, 2912, 2911, 2924, 2923, 2936, 2935, 2948, 2947, 2960, 2959, 2972, 2971, 2984, 2983, 2996, 2995, 3008, 3007, 3023, 3026, 3032, 3041, 3061, 3084, 3088, 3092, 3096, 3100, 3104, 3123, 3136, 3139, 3155, 3158, 3171, 3174, 3180, 3183, 3190, 3246, 3316, 3321, 3388, 3424, 3467, 3492, 3519, 3563, 3586, 3609, 3612, 3621, 3625, 3635, 3670, 3671, 3675, 3680, 3691, 3713, 3714, 3715, 3716, 3717, 3718, 3719, 3720, 3721, 3728, 3729, 3730, 3731, 3732, 3733, 3734, 3735, 3736, 3737, 3738, 3739, 3740, 3741, 3742, 3743, 3744, 3745, 3746, 3747, 3748, 3749, 3750, 3751, 3752, 3753, 3754, 3755, 3756, 3757, 3758, 3759, 3761, 3762, 3763, 3764, 3765, 3766, 3767, 3768, 3769, 3770, 3771, 3772, 3773, 3774, 3775, 3776, 3777, 3778, 3779, 3780, 3781, 3790, 3791, 3792, 3793, 3794, 3795, 3796, 3800, 3820, 3839, 3857, 3869, 3886, 3907, 3912, 3917, 3927, 3937, 3945, 3949, 3953, 3957, 3961, 3968, 3972, 3976, 3980, 3987, 3992, 3999, 4004, 4008, 4013, 4017, 4025, 4036, 4040, 4052, 4060, 4068, 4075, 4086, 4106, 4110, 4114, 4118, 4122, 4132, 4142, 4154, 4166, 4187, 4192, 4196, 4200, 4212, 4216, 4228, 4235, 4245, 4249, 4264, 4269, 4276, 4280, 4293, 4301, 4312, 4316, 4324, 4332, 4340, 4348, 4362, 4376, 4380 }; #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", "tList", "tPrintf", "tSprintf", "tStrCat", "tStrPrefix", "tStrRelative", "tBoundingBox", "tDraw", "tToday", "tSyncModel", "tCreateTopology", "tCreateTopologyNoHoles", "tDistanceFunction", "tDefineConstant", "tPoint", "tCircle", "tEllipse", "tLine", "tSphere", "tPolarSphere", "tSurface", "tSpline", "tVolume", "tCharacteristic", "tLength", "tParametric", "tElliptic", "tRefineMesh", "tPlane", "tRuled", "tTransfinite", "tComplex", "tPhysical", "tCompound", "tPeriodic", "tUsing", "tPlugin", "tDegenerated", "tRotate", "tTranslate", "tSymmetry", "tDilate", "tExtrude", "tLevelset", "tRecombine", "tSmoother", "tSplit", "tDelete", "tCoherence", "tIntersect", "tLayers", "tHole", "tAlias", "tAliasWithOptions", "tQuadTriDbl", "tQuadTriSngl", "tRecombLaterals", "tTransfQuadTri", "tText2D", "tText3D", "tInterpolationScheme", "tTime", "tCombine", "tBSpline", "tBezier", "tNurbs", "tNurbsOrder", "tNurbsKnots", "tColor", "tColorTable", "tFor", "tIn", "tEndFor", "tIf", "tEndIf", "tExit", "tField", "tReturn", "tCall", "tFunction", "tShow", "tHide", "tGetValue", "tGetEnv", "tGetString", "tHomology", "tCohomology", "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", "Comma", "DefineConstants", "$@6", "FloatParameterOptions", "FloatParameterOption", "PhysicalId", "InSphereCenter", "CircleOptions", "Shape", "$@7", "$@8", "$@9", "$@10", "Transform", "MultipleShape", "ListOfShapes", "LevelSet", "Delete", "Colorify", "Visibility", "Command", "Loop", "Extrude", "$@11", "$@12", "$@13", "$@14", "$@15", "$@16", "$@17", "$@18", "$@19", "$@20", "$@21", "$@22", "$@23", "ExtrudeParameters", "ExtrudeParameter", "TransfiniteType", "TransfiniteArrangement", "TransfiniteCorners", "RecombineAngle", "Transfinite", "Periodic", "Embedding", "Coherence", "HomologyCommand", "Homology", "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, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 63, 384, 385, 386, 387, 60, 62, 388, 389, 43, 45, 42, 47, 37, 33, 390, 391, 392, 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, 158, 159, 159, 160, 160, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 161, 162, 162, 163, 163, 163, 163, 164, 164, 164, 165, 165, 165, 165, 165, 165, 166, 166, 167, 167, 169, 170, 168, 171, 171, 173, 172, 174, 174, 176, 175, 177, 177, 179, 178, 180, 180, 180, 180, 180, 181, 181, 182, 182, 182, 182, 182, 182, 182, 182, 182, 182, 182, 182, 182, 182, 182, 182, 182, 182, 182, 182, 182, 182, 182, 182, 182, 182, 183, 183, 184, 184, 184, 185, 184, 186, 186, 187, 187, 188, 188, 189, 189, 190, 190, 191, 192, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 193, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 194, 191, 191, 191, 191, 195, 191, 196, 196, 196, 196, 196, 196, 196, 197, 197, 198, 198, 198, 198, 198, 198, 199, 199, 199, 199, 199, 199, 199, 199, 199, 200, 200, 200, 200, 200, 201, 202, 202, 202, 202, 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, 204, 204, 204, 204, 204, 204, 204, 204, 204, 204, 205, 205, 205, 206, 205, 207, 205, 208, 205, 209, 205, 205, 205, 205, 205, 205, 205, 205, 205, 205, 210, 205, 211, 205, 212, 205, 213, 205, 214, 205, 215, 205, 216, 205, 217, 205, 218, 205, 219, 219, 220, 220, 220, 220, 220, 220, 220, 220, 220, 220, 221, 221, 222, 222, 223, 223, 224, 224, 225, 225, 225, 225, 225, 225, 225, 226, 226, 227, 227, 227, 227, 228, 228, 228, 229, 229, 230, 230, 230, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 232, 232, 232, 232, 232, 232, 232, 232, 232, 232, 232, 232, 232, 232, 232, 232, 232, 232, 233, 233, 233, 233, 233, 234, 234, 234, 234, 235, 235, 236, 236, 236, 236, 236, 236, 237, 237, 238, 238, 238, 238, 238, 238, 238, 238, 238, 238, 238, 238, 238, 238, 239, 239, 239, 239, 240, 240, 240, 240, 241, 241, 242, 242, 243, 243, 243, 243, 244, 244, 244, 244, 244, 244, 244, 244, 244 }; /* 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, 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, 5, 4, 6, 7, 9, 3, 6, 4, 6, 9, 6, 9, 5, 8, 8, 11, 6, 9, 5, 7, 9, 9, 11, 7, 9, 9, 0, 1, 0, 3, 5, 0, 9, 0, 2, 3, 3, 1, 1, 0, 5, 0, 2, 7, 0, 9, 6, 7, 4, 7, 8, 8, 7, 7, 11, 8, 8, 0, 9, 8, 9, 3, 4, 10, 7, 7, 8, 8, 12, 0, 9, 8, 7, 8, 0, 9, 5, 11, 5, 9, 4, 9, 9, 1, 1, 0, 2, 6, 6, 6, 6, 8, 10, 14, 16, 12, 8, 8, 6, 14, 4, 6, 6, 3, 4, 5, 3, 3, 4, 4, 3, 7, 7, 3, 7, 3, 2, 2, 2, 15, 2, 2, 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, 2, 3, 2, 3, 9, 6, 0, 3, 0, 1, 0, 2, 0, 2, 7, 6, 8, 5, 3, 5, 6, 6, 12, 10, 10, 10, 10, 2, 3, 6, 1, 1, 2, 5, 7, 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, 2, 2, 2, 2, 1, 1, 3, 4, 6, 1, 1, 3, 3, 9, 7, 1, 5, 3, 6, 1, 3, 1, 1, 3, 6, 1, 1, 4, 6, 6, 4, 4, 4, 6 }; /* YYDEFACT[STATE-NAME] -- Default reduction number in state STATE-NUM. Performed 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, 0, 0, 0, 0, 0, 0, 192, 0, 197, 0, 0, 194, 0, 0, 0, 0, 272, 273, 5, 7, 6, 8, 9, 10, 21, 11, 12, 13, 20, 19, 14, 15, 16, 17, 18, 0, 22, 339, 346, 406, 57, 340, 341, 342, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 407, 0, 0, 0, 0, 343, 344, 345, 61, 60, 59, 58, 0, 0, 0, 63, 62, 0, 0, 0, 0, 149, 0, 0, 0, 277, 0, 0, 0, 0, 182, 0, 184, 181, 185, 186, 92, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 187, 0, 0, 0, 0, 0, 0, 108, 121, 133, 138, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 357, 0, 0, 0, 0, 0, 149, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 149, 0, 269, 0, 0, 0, 0, 346, 375, 0, 0, 0, 0, 0, 0, 0, 385, 386, 368, 374, 0, 369, 0, 0, 0, 0, 396, 0, 0, 0, 0, 0, 180, 0, 0, 193, 0, 149, 0, 149, 274, 0, 0, 0, 0, 0, 350, 32, 406, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 346, 280, 279, 281, 0, 0, 0, 0, 0, 0, 0, 0, 0, 148, 0, 147, 0, 69, 177, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 174, 125, 0, 0, 0, 90, 0, 0, 390, 391, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 252, 252, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 359, 358, 0, 0, 0, 0, 149, 149, 0, 0, 0, 0, 0, 0, 0, 207, 0, 149, 0, 0, 0, 0, 0, 254, 0, 0, 0, 167, 0, 0, 0, 270, 0, 0, 0, 0, 0, 0, 381, 0, 382, 383, 384, 0, 279, 376, 370, 0, 0, 0, 260, 179, 0, 0, 0, 0, 0, 149, 0, 0, 0, 0, 195, 170, 0, 171, 0, 0, 0, 0, 352, 0, 0, 71, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 403, 0, 402, 0, 0, 0, 0, 0, 0, 0, 0, 278, 57, 0, 0, 0, 57, 0, 0, 0, 0, 0, 144, 0, 0, 0, 0, 150, 65, 0, 295, 294, 293, 292, 288, 289, 291, 290, 283, 282, 284, 285, 286, 287, 126, 0, 0, 0, 0, 91, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 250, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 112, 0, 0, 0, 361, 360, 0, 0, 0, 0, 0, 0, 0, 0, 0, 201, 0, 0, 0, 0, 0, 0, 0, 0, 0, 168, 0, 0, 164, 0, 0, 0, 0, 387, 0, 0, 0, 0, 0, 371, 378, 0, 284, 377, 0, 0, 0, 0, 0, 0, 0, 0, 196, 0, 172, 173, 0, 0, 0, 348, 354, 0, 42, 0, 0, 0, 55, 0, 33, 34, 35, 36, 37, 297, 318, 298, 319, 299, 320, 300, 321, 301, 322, 302, 323, 303, 324, 304, 325, 305, 326, 317, 338, 306, 327, 0, 0, 308, 329, 309, 330, 310, 331, 311, 332, 312, 333, 313, 334, 0, 0, 0, 0, 0, 0, 0, 0, 413, 0, 0, 411, 412, 82, 0, 408, 0, 0, 0, 0, 0, 0, 0, 0, 76, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 25, 23, 0, 0, 0, 64, 93, 0, 392, 393, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 248, 253, 251, 0, 259, 0, 0, 101, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 140, 142, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 236, 0, 198, 0, 0, 0, 0, 0, 0, 255, 261, 0, 0, 0, 0, 0, 0, 0, 0, 0, 348, 388, 380, 372, 0, 0, 0, 0, 0, 0, 0, 169, 0, 0, 0, 0, 0, 275, 0, 0, 351, 0, 347, 0, 0, 0, 0, 0, 29, 0, 0, 0, 0, 0, 0, 0, 0, 0, 404, 0, 0, 0, 0, 66, 0, 0, 0, 0, 0, 70, 72, 74, 0, 0, 400, 0, 80, 0, 0, 0, 0, 296, 24, 0, 0, 0, 0, 0, 0, 105, 105, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 110, 0, 0, 0, 0, 0, 0, 257, 0, 0, 0, 0, 0, 0, 0, 0, 263, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 241, 0, 0, 242, 0, 244, 0, 208, 237, 0, 0, 0, 162, 0, 0, 0, 262, 0, 166, 165, 271, 0, 30, 31, 0, 379, 373, 0, 0, 0, 397, 0, 0, 0, 188, 0, 0, 0, 176, 353, 175, 0, 0, 0, 0, 366, 0, 307, 328, 314, 335, 315, 336, 316, 337, 0, 414, 410, 356, 409, 0, 57, 0, 0, 0, 0, 67, 0, 0, 0, 398, 0, 0, 0, 0, 26, 27, 0, 0, 0, 94, 107, 0, 0, 0, 0, 0, 111, 0, 0, 128, 129, 0, 0, 113, 136, 0, 0, 0, 103, 0, 256, 0, 0, 0, 0, 0, 0, 0, 0, 0, 178, 0, 0, 0, 0, 149, 0, 218, 0, 220, 0, 222, 0, 368, 0, 0, 243, 245, 0, 0, 202, 0, 0, 0, 0, 0, 0, 0, 0, 0, 389, 116, 117, 0, 0, 0, 0, 83, 87, 0, 276, 355, 0, 38, 0, 0, 0, 0, 0, 40, 0, 0, 0, 0, 77, 0, 0, 78, 0, 401, 151, 152, 153, 154, 0, 0, 95, 0, 106, 114, 115, 119, 0, 0, 130, 0, 0, 258, 123, 0, 0, 249, 135, 0, 0, 0, 0, 120, 0, 131, 137, 0, 0, 0, 0, 365, 0, 364, 0, 0, 209, 0, 0, 210, 0, 0, 211, 0, 0, 0, 0, 0, 0, 0, 161, 0, 0, 160, 0, 0, 0, 155, 0, 0, 0, 0, 395, 0, 190, 189, 0, 0, 0, 43, 0, 0, 0, 367, 0, 0, 0, 405, 68, 73, 75, 0, 81, 0, 28, 0, 97, 0, 0, 0, 0, 0, 0, 124, 109, 122, 134, 139, 0, 0, 88, 89, 149, 0, 143, 0, 0, 0, 0, 0, 0, 0, 238, 0, 0, 149, 0, 0, 0, 0, 0, 146, 145, 0, 0, 0, 0, 84, 85, 0, 39, 0, 0, 0, 41, 56, 0, 399, 0, 0, 265, 266, 267, 268, 127, 0, 0, 0, 0, 0, 363, 0, 0, 0, 0, 0, 0, 0, 0, 0, 247, 0, 0, 0, 203, 0, 0, 156, 0, 0, 0, 394, 191, 0, 0, 0, 0, 0, 79, 0, 0, 96, 98, 0, 0, 0, 141, 0, 224, 0, 0, 226, 0, 0, 228, 0, 0, 0, 239, 0, 199, 0, 149, 0, 0, 0, 118, 86, 0, 47, 0, 53, 0, 0, 0, 104, 132, 264, 362, 212, 0, 0, 219, 213, 0, 0, 221, 214, 0, 0, 223, 0, 0, 0, 205, 0, 159, 0, 0, 0, 0, 0, 0, 0, 100, 99, 0, 230, 0, 232, 0, 234, 240, 246, 204, 200, 0, 0, 0, 0, 44, 0, 51, 0, 0, 0, 215, 0, 0, 216, 0, 0, 217, 0, 0, 163, 0, 157, 0, 45, 0, 0, 183, 0, 0, 0, 0, 0, 0, 206, 0, 0, 0, 0, 0, 225, 0, 227, 0, 229, 0, 158, 46, 48, 0, 49, 0, 0, 0, 0, 0, 0, 54, 231, 233, 235, 50, 52 }; /* YYDEFGOTO[NTERM-NUM]. */ static const yytype_int16 yydefgoto[] = { -1, 2, 3, 71, 741, 72, 73, 465, 1081, 1087, 663, 843, 1232, 1381, 664, 1343, 1407, 665, 1383, 666, 667, 847, 144, 262, 74, 559, 355, 1189, 1242, 1285, 772, 1119, 1012, 536, 381, 382, 383, 384, 232, 330, 331, 77, 78, 79, 80, 81, 82, 233, 803, 1304, 1359, 608, 1140, 1143, 1146, 1323, 1327, 1331, 1370, 1373, 1376, 799, 800, 907, 769, 582, 617, 84, 85, 86, 87, 88, 89, 234, 147, 394, 199, 972, 973, 236, 237, 440, 244, 732, 875, 510, 511 }; /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing STATE-NUM. */ #define YYPACT_NINF -1059 static const yytype_int16 yypact[] = { 3944, 16, 63, 4025, -1059, -1059, 1866, 32, 65, -81, 40, 90, 142, 170, 181, 47, -128, 79, 155, 14, 156, 175, 17, 200, 218, 134, 331, 349, 386, 372, 382, 377, 387, 402, 417, 154, 301, 426, 344, -37, -37, 348, 376, 46, 431, 437, 452, 20, 54, 455, 504, 507, 2019, 514, 374, 385, 413, 19, 62, -1059, 423, -1059, 520, 380, -1059, 530, 550, 2, 37, -1059, -1059, -1059, -1059, -1059, -1059, -1059, -1059, -1059, -1059, -1059, -1059, -1059, -1059, -1059, -1059, -1059, -1059, -1059, 41, -1059, -1059, 21, 410, 683, -1059, -1059, -1059, 228, 263, 337, 379, 422, 451, 457, 474, 484, 488, 502, 541, 561, 569, 577, 585, 588, 617, 618, 622, 649, 428, 442, 446, 447, -1059, 591, 454, 460, 468, -1059, -1059, -1059, -1059, -1059, -1059, -1059, 3571, 3571, 3571, -1059, -1059, 3571, 3124, 22, 621, 147, 2460, 620, 770, -1059, 623, 636, 3571, 640, -1059, 3571, -1059, -1059, -1059, -1059, -1059, 3571, 3495, 3571, 3571, 526, 3571, 3495, 3571, 3571, 532, 3495, 3571, 3571, 2460, 557, 553, -1059, 568, 595, 2019, 2019, 2019, 599, -1059, -1059, -1059, -1059, 602, 613, 614, 2460, 3571, 653, 2460, -37, -37, -37, 3571, 3571, -23, -1059, -3, -37, 584, 600, 637, 3277, 255, -91, 645, 652, 660, 2019, 2460, 664, 35, 512, -1059, 810, -1059, 666, 670, 672, 679, 99, -1059, 690, 39, 828, 836, 858, 2607, 1710, -1059, -1059, 3684, -1059, 856, -1059, 866, 3571, 3571, 3571, 706, 3571, 718, 771, 3571, 3571, -1059, 3571, 880, -1059, 883, -1059, 884, -1059, -1059, 2460, 775, 3571, 926, 779, -1059, -1059, -1059, 938, 3571, 3571, 3571, 3571, 3571, 3571, 3571, 3571, 3571, 3571, 3571, 3571, 3571, 3571, 3571, 3571, 3571, 3571, 3571, 3571, 3571, 3571, 3571, 3571, 3571, 3571, 3571, 3571, 3571, 3571, 3571, 3571, 3571, 3571, 3571, 3571, 3571, 3571, 3571, 3571, 3571, 3571, 345, 345, 345, 345, 3571, 345, 345, 345, 165, 798, 798, 798, 6314, 87, 3495, 5555, 219, 799, 945, 814, 815, -1059, 804, 4098, 969, -1059, -1059, 3571, 3571, 3571, 3571, 3571, 3571, 3571, 3571, 3571, 3571, 3571, 3571, 3571, 3571, 3571, -1059, -1059, 1194, 93, 4853, 101, 6335, 3495, 3703, -1059, 642, 6356, 6377, 3571, 6398, 661, 6419, 6440, 3571, 678, 6461, 6482, 978, 3571, 3571, 3571, 3571, 984, 985, 985, 3571, 855, 864, 869, 870, 3571, 3571, 3571, 1012, 4773, 874, 1024, -56, -1059, -1059, 4879, 4905, -37, -37, 147, 147, 78, 3571, 3571, 3571, 3277, 3277, 3571, 4098, 302, -1059, 3571, 3571, 3571, 3571, 3571, 1029, 1037, 3571, 1048, -1059, 3571, 3571, 615, -1059, 3495, 3495, 3571, 3571, 3195, 1053, -1059, 3571, -1059, -1059, -1059, 3495, 798, -1059, -1059, 698, 3571, 2754, -1059, -1059, 6503, 6524, 6545, 955, 4931, -1059, 919, 3735, 6566, 5578, -1059, -1059, 793, -1059, 1756, 712, 3571, 5601, -53, 3571, 12, -1059, 6587, 5624, 6608, 5647, 6629, 5670, 6650, 5693, 6671, 5716, 6692, 5739, 6713, 5762, 6734, 5785, 6755, 5808, 6776, 5831, 6797, 5854, 4957, 4983, 6818, 5877, 6839, 5900, 6860, 5923, 6881, 5946, 6902, 5969, 6923, 5992, 5009, 5035, 5061, 5087, 5113, 5139, 726, 158, -1059, 911, 933, 944, 1227, 921, 948, 947, 3571, -1059, -1059, 2460, 727, 55, 683, 3571, 1081, 1100, 33, 956, -1059, -58, 31, 34, -38, -1059, -1059, 3754, 1244, 1374, 1000, 1000, 214, 214, 214, 214, -86, -86, 798, 798, 798, 798, -1059, 6, 3495, 3571, 1102, -1059, 1108, 1107, 3495, 3495, 1013, 1109, 1113, 6944, 1116, 1018, 1118, 1119, 6965, 1021, 1121, 1123, 3571, 6986, 3831, 7007, 7028, 3571, 2460, 1127, 1138, 7049, 3636, 3636, 3636, 3636, 7070, 7091, 7112, 2460, 3495, 981, -1059, -37, 3571, 3571, -1059, -1059, 989, 993, 3571, 5165, 5191, 5217, 4827, 724, -37, 1901, 7133, 4129, 7154, 7175, 7196, 3571, 1144, 3571, 7217, -1059, 6015, 6038, -1059, 728, 731, 6061, 6084, -1059, 3495, 6107, 1001, 4157, 742, -1059, 3773, 3495, 798, -1059, 1146, 1148, 1149, 999, 3571, 2066, 3571, 3571, -1059, 52, -1059, -1059, 2460, 1151, 6130, 84, -1059, 4185, -1059, 1011, 1014, 1006, -1059, 1158, -1059, -1059, -1059, -1059, -1059, -1059, -1059, -1059, -1059, -1059, -1059, -1059, -1059, -1059, -1059, -1059, -1059, -1059, -1059, -1059, -1059, -1059, -1059, -1059, -1059, -1059, -1059, 3571, 3571, -1059, -1059, -1059, -1059, -1059, -1059, -1059, -1059, -1059, -1059, -1059, -1059, 3571, 3571, 3571, 3571, 3571, 3571, 3571, 1161, -1059, 3495, 345, -1059, -1059, -1059, 3571, -1059, 345, 1162, 1019, 36, 3571, 1163, 1165, 1520, -1059, 1166, 1040, 19, 1187, -1059, 3495, 3495, 3495, 3495, 3571, -1059, 1060, 345, 164, 5243, -1059, 1190, -37, 3703, -1059, 1143, 2460, 2460, 1192, 2460, 863, 2460, 2460, 1196, 1150, 2460, 2460, 1786, 1198, 1202, 1203, 1204, -61, -1059, -1059, 1195, -1059, 1205, 1065, 7448, -1059, 1066, 1068, 1069, 1212, 1214, 1215, 1217, 765, 1220, 323, 5269, 5295, -1059, -1059, 4213, -37, -37, -37, 1221, 1224, 1071, 1079, 9, 13, 235, -1059, 341, -1059, 724, 1225, 1228, 1229, 1230, 1231, 7448, -1059, 2416, 1076, 1233, 1234, 1235, 1188, 1239, 1241, 781, 272, -1059, -1059, -1059, 3571, 784, 2460, 2460, 2460, 1245, 5321, -1059, 3800, 1045, 1246, 1247, 1092, -1059, 1248, 1252, -1059, 1253, -1059, 1104, 3571, 3571, 2460, 1103, -1059, 7238, 6153, 7259, 6176, 7280, 6199, 7301, 6222, 6245, -1059, 209, 1111, 7322, 1112, -1059, 87, 320, 1110, 1256, 2563, -1059, -1059, -1059, 19, 3571, -1059, 794, -1059, 802, 805, 811, 824, 7448, -1059, 1258, 7, 3571, 3348, 11, 1114, 1207, 1207, 2460, 1260, 1117, 1120, 1261, 1267, 2460, 1122, 1268, 1270, -1059, 1274, 2460, 2460, 2460, 1276, 1275, -1059, 2460, 1277, 1278, 1280, 1281, 2460, 2460, 2460, -1059, 1283, 131, 3571, 3571, 3571, 1128, 221, 233, 314, 1132, -1059, 2460, 3571, -1059, 1285, -1059, 1287, -1059, -1059, 3277, 411, 2166, -1059, 1139, 1140, 2901, -1059, 3495, -1059, -1059, -1059, 1142, -1059, -1059, 1147, 7448, -1059, 1293, 1295, 1201, -1059, 3571, 3571, 3571, -1059, 1298, 212, 1299, -1059, -53, -1059, 3571, 5347, 5373, 825, -1059, 3571, -1059, -1059, -1059, -1059, -1059, -1059, -1059, -1059, 1154, -1059, -1059, -1059, -1059, 2460, 683, 3571, 1302, 1305, 33, -1059, 1308, 6268, 19, -1059, 1310, 1313, 1314, 1331, -1059, -1059, 345, 5399, 3571, 7448, -1059, 3571, -37, 1332, 1333, 1334, -1059, 3571, 3571, -1059, -1059, 1336, 3571, -1059, -1059, 1306, 1337, 1338, 1240, 3571, -1059, 1339, 2460, 2460, 2460, 2460, 1341, 982, 1342, 3571, -1059, 3636, 4241, 7343, 4045, 147, -37, 1343, -37, 1344, -37, 1345, 3571, 406, 1200, 7364, -1059, -1059, 4269, 367, -1059, 1346, 1548, 1364, 2460, -37, 1548, 1365, 841, 3571, -1059, -1059, -1059, 2460, 4073, 648, 7385, -1059, -1059, 1401, -1059, -1059, 241, 7448, 3571, 3571, 2460, 1218, 842, 7448, 1368, 1381, 1386, 2710, -1059, 1388, 1387, -1059, 1249, -1059, -1059, -1059, -1059, -1059, 1390, 3571, 7448, 4297, 120, -1059, -1059, -1059, 4325, 4353, -1059, 4381, 1392, -1059, -1059, 1347, 1393, 7448, -1059, 1396, 1397, 1402, 1403, -1059, 1259, -1059, -1059, 4800, 2857, 1407, 1282, -1059, 3571, -1059, 1251, 371, -1059, 1288, 378, -1059, 1290, 419, -1059, 1291, 6291, 1430, 2460, 1435, 1292, 3571, -1059, 3048, 421, -1059, 846, 439, 450, -1059, 1442, 4409, 1348, 3571, -1059, 3571, -1059, -1059, 3495, 3307, 1444, -1059, 3571, 5425, 5451, -1059, 2460, 3571, 1445, -1059, -1059, -1059, -1059, 19, -1059, 1350, -1059, 5477, -1059, 1446, 1449, 1450, 1451, 1452, 1307, -1059, -1059, -1059, -1059, -1059, 2460, 3495, -1059, -1059, 147, 4101, -1059, 3277, 724, 3277, 724, 3277, 724, 1454, -1059, 852, 2460, -1059, 4437, -37, 1455, 3495, -37, -1059, -1059, 3571, 4465, 4493, 853, -1059, -1059, 1309, 7448, 3571, 3571, 872, 7448, -1059, 1457, -1059, 3571, 873, -1059, -1059, -1059, -1059, -1059, 3571, 877, 881, 1312, 3571, -1059, 4521, 505, 607, 4549, 509, 667, 4577, 522, 741, -1059, 2460, 1463, 1400, 2213, 1317, 556, -1059, 885, 606, 3600, -1059, -1059, 1467, 3571, 7406, 5503, 43, -1059, 5529, 1470, -1059, -1059, 4605, 1469, 1473, -1059, 4633, 1474, 3571, 1475, 1476, 3571, 1477, 1478, 3571, 1479, 1330, -1059, 3571, -1059, 724, -1059, 3495, 1482, 3048, -1059, -1059, 886, -1059, 3571, -1059, 2460, 3571, 2313, -1059, -1059, -1059, -1059, -1059, 1335, 4661, -1059, -1059, 1340, 4689, -1059, -1059, 1349, 4717, -1059, 1483, 3665, 785, 2360, 894, -1059, 610, 895, 1486, 1362, 7427, 907, 4745, -1059, -1059, 724, 1487, 724, 1488, 724, 1490, -1059, -1059, -1059, -1059, 724, 1491, 3495, 1492, -1059, 345, -1059, 1367, 1493, 843, -1059, 1372, 857, -1059, 1373, 887, -1059, 1375, 904, -1059, 910, -1059, 917, -1059, 1376, 2460, -1059, 1494, 724, 1497, 724, 1523, 724, -1059, 1526, 345, 1527, 345, 925, -1059, 935, -1059, 1010, -1059, 1032, -1059, -1059, -1059, 932, -1059, 1528, 1530, 1531, 1532, 345, 1535, -1059, -1059, -1059, -1059, -1059, -1059 }; /* YYPGOTO[NTERM-NUM]. */ static const yytype_int16 yypgoto[] = { -1059, -1059, -1059, -1059, 658, -1059, -1059, -1059, -1059, 266, -1059, -1059, -1059, -1059, -1059, -1059, -1059, -1059, -1059, -1059, -1059, -1059, -313, 4, -1059, -1059, -1059, -1059, -1059, -1059, -104, -1059, 655, 1543, -1059, -1059, -1059, -1059, 3, -398, -202, -1059, -1059, -1059, -1059, -1059, -1059, 1544, -1059, -1059, -1059, -1059, -1059, -1059, -1059, -1059, -1059, -1059, -1059, -1059, -1059, -738, -768, -1059, -1059, 1169, -1059, -1059, -1059, -1059, -1059, -1059, -1059, -6, -1059, 45, -1059, -1058, 562, -66, 333, -117, -695, 560, -1059, -281, -2 }; /* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If positive, shift that token. If negative, reduce the rule which number is the opposite. If YYTABLE_NINF, syntax error. */ #define YYTABLE_NINF -5 static const yytype_int16 yytable[] = { 146, 601, 602, 408, 148, 1157, 76, 252, 522, 906, 145, 526, 739, 1004, 423, 931, 657, 1009, 163, 933, 159, 168, 4, 242, 214, 258, 324, 160, 512, 513, 514, 936, 516, 517, 518, 163, 874, 730, 168, 419, 865, 420, 254, 360, 431, 149, 152, 256, 365, 1314, 207, 457, 369, 459, 346, 347, 348, 411, 217, 834, 218, 349, 521, 5, 412, 938, 245, 151, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 397, 398, 198, 200, 349, 206, 509, 264, 159, 265, 137, 138, 521, 208, 154, 734, 596, 209, 932, 194, 195, 219, 934, 658, 659, 660, 661, 210, 171, 196, 377, 378, 379, 397, 398, 737, 197, 1236, 150, 118, 119, 120, 121, 325, 326, 122, 317, 318, 319, 215, 399, 320, 323, 397, 398, 1039, 1040, 866, 867, 740, 740, 1249, 352, 416, 329, 354, 155, 397, 398, 328, 400, 356, 358, 361, 362, 253, 364, 358, 366, 367, 164, 358, 370, 371, 137, 138, 662, 165, 936, 259, 169, 260, 243, 216, 156, 995, 261, 164, 130, 131, 132, 133, 389, 421, 735, 157, 731, 736, 395, 396, 255, 172, 432, 153, 257, 158, 1315, 396, 137, 138, 125, 126, 835, 523, 189, 723, 610, 190, 246, 724, 130, 131, 132, 133, 397, 398, 1077, 1078, 38, 39, 40, 41, 437, 358, 525, 161, 46, 137, 138, 49, 603, 445, 446, 447, 839, 449, 392, 393, 452, 453, 554, 454, 137, 138, 401, 555, 644, 429, 409, 260, 557, 462, 143, 558, 261, 1345, 397, 398, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 1098, 162, 166, 793, 515, 712, 624, 625, 137, 138, 713, 884, 794, 519, 358, 260, 562, 633, 795, 796, 261, 167, 797, 798, 1397, 989, 527, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 130, 131, 132, 133, 170, 509, 264, 437, 344, 345, 346, 347, 348, 566, 984, 397, 398, 349, 571, 562, 137, 138, 171, 576, 577, 578, 579, 397, 398, 841, 584, 1045, 266, 1046, 267, 589, 590, 591, 118, 119, 120, 121, 173, 1047, 122, 1048, 1172, 935, 175, 397, 398, 1173, 604, 605, 606, 317, 318, 607, 329, 329, 174, 611, 612, 613, 614, 615, 410, 268, 619, 269, 441, 621, 622, 137, 138, 358, 358, 626, 627, 630, 839, 202, 632, 176, 203, 178, 358, 204, 179, 860, 180, 635, 637, 177, 742, 862, 397, 398, 599, 600, 181, 130, 131, 132, 133, 191, 393, 182, 397, 398, 183, 653, 609, 184, 656, 185, 883, 397, 398, 125, 126, 137, 138, 655, 1049, 186, 1050, 1256, 187, 1259, 188, 1262, 782, 920, 192, 397, 398, 793, 775, 776, 777, 270, 211, 271, 936, 1239, 794, 936, 212, 359, 936, 937, 795, 796, 359, 193, 797, 798, 359, 201, 213, 397, 398, 220, 221, 397, 398, 222, 819, 630, 194, 195, 397, 398, 238, 825, 727, 1152, 239, 726, 196, 1208, 248, 272, 725, 273, 249, 205, 1210, 240, 250, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 442, 347, 348, 358, 743, 988, 990, 349, 251, 637, 747, 397, 398, 397, 398, 241, 1148, 438, 359, 263, 1336, 1059, 936, 761, 274, 247, 275, 1212, 766, 1220, 308, 397, 398, 773, 773, 773, 773, 774, 774, 774, 774, 358, 397, 398, 309, 785, 786, 1222, 310, 311, 859, 789, 312, 276, 936, 277, 313, 936, 1223, 278, 936, 279, 314, 936, 809, 1368, 811, 1371, 235, 1374, 315, 877, 878, 879, 880, 1377, 280, 358, 281, 327, 333, 7, 8, 350, 358, 936, 282, 936, 283, 936, 284, 830, 285, 832, 833, 784, 351, 397, 398, 353, 1137, 397, 398, 1399, 286, 1401, 287, 1403, 801, 359, 1166, 390, 840, 1292, 397, 398, 422, 1295, 532, 17, 18, 533, 20, 21, 534, 23, 535, 25, 363, 26, 1298, 793, 29, 30, 368, 32, 33, 34, 849, 850, 794, 37, 264, 288, 438, 289, 795, 796, 397, 398, 797, 798, 851, 852, 853, 854, 855, 856, 857, 373, 332, 358, 374, 290, 1306, 291, 861, 54, 55, 56, 375, 292, 868, 293, 118, 119, 120, 121, 1103, 294, 122, 295, 358, 358, 358, 358, 881, 296, 372, 297, 298, 793, 299, 402, 235, 235, 235, 376, 397, 398, 794, 380, 397, 398, 385, 388, 795, 796, 391, 403, 797, 798, 359, 359, 1308, 386, 387, 1293, 1361, 300, 302, 301, 303, 359, 304, 623, 305, 235, 417, 638, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 887, 404, 413, 793, 349, 562, 306, 563, 307, 414, 125, 126, 794, 1167, 7, 8, 1251, 415, 795, 796, 793, 418, 797, 798, 562, 424, 568, 953, 460, 794, 425, 427, 1296, 840, 426, 795, 796, 1067, 428, 797, 798, 562, 433, 572, 924, 925, 926, 970, 971, 430, 434, 532, 17, 18, 533, 20, 21, 534, 23, 535, 25, 562, 26, 634, 793, 29, 30, 448, 32, 33, 34, 443, 435, 794, 37, 651, 996, 652, 991, 795, 796, 444, 450, 797, 798, 710, 451, 711, 1006, 1008, 562, 562, 722, 815, 562, 455, 816, 359, 456, 458, 54, 55, 56, 638, 748, 562, 1299, 823, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 793, 1041, 1042, 1043, 349, 893, 562, 894, 918, 794, 1052, 1054, 461, 359, 793, 795, 796, 463, 1057, 797, 798, 464, 562, 794, 952, 562, 358, 954, 1357, 795, 796, 466, 349, 797, 798, 997, 649, 998, 528, 529, 1073, 1074, 1075, 562, 793, 999, 562, 531, 1000, 359, 1082, 530, 562, 794, 1001, 1088, 359, 143, 1080, 795, 796, 793, 537, 797, 798, 562, 1085, 1002, 1086, 1058, 794, 1092, 575, 1127, 1091, 1128, 795, 796, 580, 581, 797, 798, 562, 1178, 1161, 1179, 1386, 1085, 1105, 1221, 585, 1106, 793, 1264, 562, 1265, 1276, 1111, 1112, 586, 1388, 794, 1114, 1267, 587, 588, 592, 795, 796, 1120, 594, 797, 798, 1085, 1283, 1280, 1284, 595, 1085, 1130, 1287, 1131, 562, 616, 1288, 1132, 562, 1178, 1307, 1342, 1390, 618, 1147, 359, 329, 562, 562, 1360, 1362, 1229, 961, 620, 358, 1107, 631, 642, 358, 1392, 1085, 1162, 1366, 562, 714, 1393, 359, 359, 359, 359, 1394, 1170, 1395, 645, 718, 1171, 1174, 1175, 1085, 793, 1409, 715, 1382, 721, 1250, 1413, 728, 1414, 794, 1138, 1410, 1141, 716, 1144, 795, 796, 719, 1188, 797, 798, 720, 793, 1337, 729, 1271, 1155, 733, 744, 1158, 1159, 794, 745, 1405, 746, 1408, 750, 795, 796, 749, 751, 797, 798, 753, 754, 755, 756, 758, 759, 1206, 760, 768, 1419, 783, 340, 341, 342, 343, 344, 345, 346, 347, 348, 767, 770, 787, 1219, 349, 437, 788, 810, 829, 821, 826, 781, 827, 828, 837, 1227, 844, 1228, 846, 845, 358, 848, 858, 1411, 1233, 863, 869, 864, 870, 1237, 872, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 1412, 1338, 873, 1341, 349, 876, 962, 882, 358, 886, 888, 891, 553, 908, 1254, 897, 1257, 902, 1260, 898, 329, 903, 904, 905, 909, 836, 910, 911, 358, 912, 913, 914, 1273, 915, 916, 917, 919, 927, 929, 930, 1278, 1279, 928, 945, 939, 717, 940, 1282, 941, 942, 943, 946, 947, 948, 1286, 949, 1379, 950, 1290, 951, 965, 958, 963, 964, 969, 1255, 966, 1258, 967, 1261, 974, 968, 985, 987, 992, 993, 1003, 1269, 1015, 1018, 1272, 1010, 1011, 1088, 1016, 1019, 1022, 1017, 1023, 1021, 359, 1024, 1028, 1029, 1051, 1044, 1031, 1032, 1324, 1033, 1034, 1328, 1038, 1055, 1332, 1056, 1063, 1064, 1335, 1068, 1069, 1070, 358, 1071, 358, 1072, 1076, 1079, 1089, 1344, 1093, 1094, 1346, 1115, 889, 890, 1096, 892, 1099, 895, 896, 1100, 1101, 899, 900, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 1102, 1108, 1109, 1110, 349, 1113, 1116, 1117, 1121, 1118, 1126, 1129, 1139, 1142, 1145, 1153, 1340, 1149, 358, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 1156, 1160, 1180, 1177, 349, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 1181, 955, 956, 957, 349, 1182, 1185, 359, 1184, 1187, 1194, 359, 1196, 1195, 1186, 1197, 1198, 90, 316, 264, 1207, 1199, 1200, 94, 95, 96, 1204, 1201, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 1215, 1205, 118, 119, 120, 121, 1217, 1209, 122, 1211, 1213, 1218, 1224, 1226, 1231, 1238, 1243, 1014, 1240, 1244, 1245, 1246, 1247, 1020, 1263, 1270, 1248, 1281, 1277, 1025, 1026, 1027, 1289, 1301, 1302, 1030, 1305, 1310, 1317, 1319, 1035, 1036, 1037, 1320, 1322, 1325, 1326, 1329, 1330, 1333, 1334, 438, 1339, 1355, 1349, 1053, 1363, 1369, 1372, 1351, 1375, 1378, 1380, 1385, 1398, 1062, 359, 1400, 1353, 1066, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 1364, 124, 125, 126, 349, 1384, 127, 128, 129, 871, 1387, 1389, 1402, 1391, 1396, 1404, 1406, 1415, 359, 1416, 1417, 1418, 134, 135, 1420, 1005, 1311, 136, 1013, 75, 83, 583, 139, 1090, 90, 223, 1095, 142, 359, 1169, 94, 95, 96, 0, 0, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 225, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1122, 1123, 1124, 1125, 226, 0, 0, 227, 0, 0, 228, 0, 229, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 38, 39, 40, 41, 42, 0, 0, 0, 46, 0, 0, 49, 0, 1163, 0, 0, 0, 0, 359, 0, 359, 0, 0, 0, 0, 0, 1176, 0, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 124, 0, 349, 0, 0, 127, 128, 129, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 405, 1154, 0, 0, 0, 136, 0, 0, 359, 0, 407, 0, 0, 0, 0, 142, 0, 197, 439, 0, 0, 0, 0, 0, 0, 1216, 0, 90, 223, 0, 0, 0, 0, 94, 95, 96, 0, 0, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 225, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 226, 0, 0, 227, 0, 0, 228, 0, 229, 7, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1266, 0, 0, 0, 38, 39, 40, 41, 42, 0, 0, 0, 46, 901, 0, 49, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 532, 17, 18, 533, 20, 21, 534, 23, 535, 25, 0, 26, 0, 0, 29, 30, 0, 32, 33, 34, 0, 1300, 124, 37, 0, 0, 0, 127, 128, 129, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 134, 357, 0, 0, 0, 136, 54, 55, 56, 0, 139, 0, 0, 0, 0, 142, 0, 0, 439, 0, 0, 90, 91, 92, 0, 93, 0, 94, 95, 96, 0, 1348, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 0, 0, 118, 119, 120, 121, 0, 0, 122, 0, 0, 650, 7, 8, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 532, 17, 18, 533, 20, 21, 534, 23, 535, 25, 0, 26, 0, 0, 29, 30, 0, 32, 33, 34, 0, 0, 0, 37, 0, 0, 0, 123, 0, 0, 0, 0, 0, 124, 125, 126, 0, 0, 127, 128, 129, 130, 131, 132, 133, 0, 0, 0, 0, 54, 55, 56, 0, 0, 134, 135, 0, 0, 0, 136, 0, 137, 138, 0, 139, 0, 140, 0, 141, 142, 0, 143, 90, 223, 224, 0, 0, 0, 94, 95, 96, 0, 0, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 225, 0, 0, 802, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 226, 0, 0, 227, 0, 0, 228, 0, 229, 0, 7, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 38, 39, 40, 41, 42, 0, 0, 0, 46, 0, 0, 49, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 532, 17, 18, 533, 20, 21, 534, 23, 535, 25, 0, 26, 0, 0, 29, 30, 0, 32, 33, 34, 0, 124, 0, 37, 0, 0, 127, 128, 129, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 134, 230, 0, 0, 0, 136, 0, 54, 55, 56, 139, 0, 90, 223, 1060, 142, 0, 231, 94, 95, 96, 0, 0, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 225, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 226, 0, 0, 227, 0, 0, 228, 831, 229, 0, 7, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 38, 39, 40, 41, 42, 0, 0, 0, 46, 0, 0, 49, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 532, 17, 18, 533, 20, 21, 534, 23, 535, 25, 0, 26, 0, 0, 29, 30, 0, 32, 33, 34, 0, 124, 0, 37, 0, 0, 127, 128, 129, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 134, 230, 0, 0, 0, 136, 0, 54, 55, 56, 139, 0, 90, 223, 1347, 142, 0, 1061, 94, 95, 96, 0, 0, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 225, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 226, 0, 0, 227, 0, 0, 228, 1303, 229, 0, 7, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 38, 39, 40, 41, 42, 0, 0, 0, 46, 0, 0, 49, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 532, 17, 18, 533, 20, 21, 534, 23, 535, 25, 0, 26, 0, 944, 29, 30, 0, 32, 33, 34, 0, 124, 0, 37, 0, 0, 127, 128, 129, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 134, 230, 0, 0, 0, 136, 0, 54, 55, 56, 139, 0, 90, 223, 0, 142, 0, 231, 94, 95, 96, 0, 0, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 225, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 226, 0, 0, 227, 0, 0, 228, 1358, 229, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 38, 39, 40, 41, 42, 0, 0, 0, 46, 0, 0, 49, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 994, 0, 0, 0, 0, 0, 0, 0, 124, 0, 0, 0, 0, 127, 128, 129, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 134, 230, 0, 0, 0, 136, 0, 0, 0, 0, 139, 0, 90, 223, 0, 142, 0, 231, 94, 95, 96, 0, 0, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 225, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 226, 0, 0, 227, 0, 0, 228, 0, 229, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 38, 39, 40, 41, 42, 0, 0, 0, 46, 0, 0, 49, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 1183, 0, 0, 0, 0, 0, 0, 0, 124, 0, 0, 0, 0, 127, 128, 129, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 134, 357, 0, 0, 0, 136, 0, 0, 0, 0, 139, 0, 90, 223, 0, 142, 0, 436, 94, 95, 96, 0, 0, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 225, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 226, 0, 0, 227, 0, 0, 228, 0, 229, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 38, 39, 40, 41, 42, 0, 0, 0, 46, 0, 0, 49, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 1203, 0, 0, 0, 0, 0, 0, 0, 124, 0, 0, 0, 0, 127, 128, 129, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 134, 357, 0, 0, 0, 136, 0, 0, 0, 0, 139, 0, 90, 223, 0, 142, 0, 636, 94, 95, 96, 0, 0, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 225, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 226, 0, 0, 227, 0, 0, 228, 0, 229, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 38, 39, 40, 41, 42, 0, 0, 0, 46, 0, 0, 49, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 124, 0, 0, 0, 0, 127, 128, 129, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 134, 230, 0, 0, 0, 136, 0, 0, 0, 0, 139, 0, 90, 223, 0, 142, 0, 1065, 94, 95, 96, 0, 0, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 225, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 226, 0, 0, 227, 0, 0, 228, 0, 229, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 38, 39, 40, 41, 42, 0, 90, 316, 46, 0, 0, 49, 94, 95, 96, 0, 0, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 0, 0, 0, 0, 0, 0, 124, 0, 0, 0, 0, 127, 128, 129, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 405, 1154, 0, 0, 0, 136, 0, 0, 0, 0, 407, 0, 90, 316, 0, 142, 0, 197, 94, 95, 96, 0, 0, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 124, 0, 0, 0, 0, 127, 128, 129, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 134, 135, 0, 0, 0, 136, 0, 0, 0, 0, 139, 0, 0, 321, 0, 142, 0, 322, 90, 316, 0, 0, 0, 0, 94, 95, 96, 0, 0, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 124, 1230, 0, 0, 0, 127, 128, 129, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 134, 135, 0, 0, 0, 136, 0, 0, 0, 0, 139, 0, 0, 628, 0, 142, 0, 629, 90, 316, 0, 0, 0, 0, 94, 95, 96, 0, 0, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 124, 0, 0, 0, 0, 127, 128, 129, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 405, 406, 0, 0, 0, 136, 0, 0, 0, 0, 407, 0, 0, 0, 0, 142, 0, 197, 0, 0, 0, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 124, 0, 0, 0, 0, 127, 128, 129, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 134, 135, 0, 0, 0, 136, 0, 0, 0, 0, 139, 0, 90, 223, 0, 142, 0, 1007, 94, 95, 96, 0, 0, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 225, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 226, 0, 0, 227, 0, 0, 228, 0, 229, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 38, 39, 40, 41, 42, 0, 90, 316, 46, 0, 0, 49, 94, 95, 96, 0, 0, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 1309, 0, 0, 0, 0, 0, 124, 0, 0, 0, 0, 127, 128, 129, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 134, 357, 0, 0, 0, 136, 90, 316, 264, 0, 139, 0, 94, 95, 96, 142, 0, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 1356, 0, 118, 119, 120, 121, 0, 0, 122, 0, 0, 0, 0, 0, 0, 0, 0, 124, 0, 0, 0, 441, 127, 128, 129, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 134, 135, 441, 0, 0, 136, 0, 0, 0, 0, 139, 0, 0, 0, 0, 142, 0, 0, 0, 0, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 646, 0, 0, 0, 349, 0, 0, 0, 0, 0, 124, 125, 126, 0, 0, 127, 128, 129, 0, 738, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 134, 135, 0, 0, 0, 136, 0, 824, 0, 0, 139, 0, 0, 0, 0, 142, 0, 0, 0, 0, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 960, 0, 0, 0, 349, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 442, 347, 348, 0, 0, 0, 0, 349, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 561, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 0, 0, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, -4, 1, 0, 349, -4, 0, 0, 0, 0, 0, 0, 0, -4, -4, 0, 0, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, -4, 0, 0, 0, 0, -4, -4, 763, -4, -4, -4, 0, -4, -4, -4, -4, -4, -4, -4, -4, -4, -4, -4, 0, -4, -4, -4, -4, -4, -4, -4, -4, -4, -4, 0, -4, -4, -4, -4, -4, -4, -4, -4, -4, -4, -4, -4, -4, -4, 6, 0, -4, -4, 0, 0, 0, -4, 7, 8, 0, 0, -4, -4, -4, -4, 0, 0, -4, 0, -4, 0, -4, -4, -4, -4, -4, -4, -4, -4, -4, -4, 9, 0, 0, -4, -4, 10, 11, 0, 12, 13, 14, 0, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 0, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 0, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 7, 8, 50, 51, 0, 0, 0, 52, 0, 0, 0, 0, 53, 54, 55, 56, 0, 0, 57, 0, 58, 0, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 0, 0, 0, 69, 70, 532, 17, 18, 533, 20, 21, 534, 23, 535, 25, 0, 26, 0, 0, 29, 30, 0, 32, 33, 34, 0, 0, 0, 37, 0, 0, 0, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 54, 55, 56, 1135, 0, 1136, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 1164, 0, 1165, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 1252, 0, 1253, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 0, 0, 805, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 0, 0, 822, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 0, 0, 842, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 0, 0, 923, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 0, 0, 1133, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 0, 0, 1151, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 0, 0, 1190, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 0, 0, 1191, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 0, 0, 1192, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 0, 0, 1193, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 0, 0, 1225, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 0, 0, 1268, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 0, 0, 1274, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 0, 0, 1275, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 0, 0, 1291, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 0, 0, 1294, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 0, 0, 1297, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 0, 0, 1318, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 0, 0, 1321, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 0, 0, 1350, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 0, 0, 1352, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 0, 0, 1354, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 0, 0, 1367, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 0, 593, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 0, 1202, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 520, 0, 0, 0, 0, 597, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 556, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 597, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 598, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 643, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 690, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 691, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 704, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 705, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 706, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 707, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 708, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 709, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 790, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 791, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 792, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 885, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 921, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 922, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 959, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 1083, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 1084, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 1104, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 1234, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 1235, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 1241, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 1313, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 1316, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 524, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 648, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 654, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 669, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 671, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 673, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 675, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 677, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 679, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 681, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 683, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 685, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 687, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 689, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 693, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 695, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 697, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 699, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 701, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 703, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 813, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 814, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 817, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 818, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 820, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 838, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 976, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 978, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 980, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 982, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 983, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 1097, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 1214, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 520, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 560, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 564, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 565, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 567, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 569, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 570, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 573, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 574, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 639, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 640, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 641, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 647, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 668, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 670, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 672, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 674, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 676, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 678, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 680, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 682, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 684, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 686, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 688, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 692, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 694, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 696, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 698, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 700, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 702, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 752, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 757, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 762, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 764, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 765, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 771, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 778, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 779, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 780, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 804, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 806, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 807, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 808, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 812, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 975, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 977, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 979, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 981, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 986, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 1134, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 1150, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 1168, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 1312, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 1365, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349 }; #define yypact_value_is_default(yystate) \ ((yystate) == (-1059)) #define yytable_value_is_error(yytable_value) \ YYID (0) static const yytype_int16 yycheck[] = { 6, 399, 400, 205, 6, 1063, 3, 5, 321, 70, 6, 324, 6, 6, 216, 6, 4, 6, 4, 6, 148, 4, 6, 4, 4, 4, 4, 155, 309, 310, 311, 799, 313, 314, 315, 4, 731, 4, 4, 4, 4, 6, 5, 160, 5, 13, 6, 6, 165, 6, 4, 253, 169, 255, 140, 141, 142, 148, 4, 7, 6, 147, 7, 0, 155, 803, 4, 148, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 138, 139, 39, 40, 147, 42, 4, 5, 148, 93, 145, 146, 7, 49, 6, 155, 154, 53, 91, 138, 139, 49, 91, 93, 94, 95, 96, 63, 148, 148, 178, 179, 180, 138, 139, 155, 155, 1177, 55, 37, 38, 39, 40, 103, 104, 43, 134, 135, 136, 111, 155, 139, 140, 138, 139, 6, 7, 103, 104, 135, 135, 1201, 150, 211, 143, 153, 6, 138, 139, 4, 155, 159, 160, 161, 162, 155, 164, 165, 166, 167, 148, 169, 170, 171, 145, 146, 156, 155, 938, 150, 155, 152, 155, 155, 6, 872, 157, 148, 125, 126, 127, 128, 190, 150, 155, 6, 155, 155, 196, 197, 155, 59, 155, 155, 155, 150, 155, 205, 145, 146, 118, 119, 152, 322, 52, 152, 410, 55, 148, 524, 125, 126, 127, 128, 138, 139, 6, 7, 73, 74, 75, 76, 230, 231, 7, 148, 81, 145, 146, 84, 154, 239, 240, 241, 152, 243, 193, 194, 246, 247, 149, 249, 145, 146, 201, 154, 450, 150, 205, 152, 151, 259, 155, 154, 157, 1315, 138, 139, 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, 997, 148, 148, 70, 312, 149, 425, 426, 145, 146, 154, 149, 79, 150, 322, 152, 154, 436, 85, 86, 157, 148, 89, 90, 1384, 7, 324, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 125, 126, 127, 128, 148, 4, 5, 357, 138, 139, 140, 141, 142, 363, 149, 138, 139, 147, 368, 154, 145, 146, 148, 373, 374, 375, 376, 138, 139, 654, 380, 154, 148, 156, 150, 385, 386, 387, 37, 38, 39, 40, 55, 154, 43, 156, 149, 156, 6, 138, 139, 154, 402, 403, 404, 405, 406, 407, 399, 400, 55, 411, 412, 413, 414, 415, 155, 148, 418, 150, 8, 421, 422, 145, 146, 425, 426, 427, 428, 429, 152, 49, 432, 55, 52, 52, 436, 55, 55, 714, 57, 441, 442, 55, 555, 720, 138, 139, 397, 398, 57, 125, 126, 127, 128, 148, 405, 49, 138, 139, 52, 461, 154, 55, 464, 57, 741, 138, 139, 118, 119, 145, 146, 463, 154, 52, 156, 1209, 55, 1211, 57, 1213, 593, 154, 52, 138, 139, 70, 586, 587, 588, 148, 55, 150, 1256, 1184, 79, 1259, 55, 160, 1262, 154, 85, 86, 165, 155, 89, 90, 169, 155, 52, 138, 139, 52, 4, 138, 139, 4, 629, 519, 138, 139, 138, 139, 4, 636, 526, 154, 148, 525, 148, 154, 6, 148, 524, 150, 150, 155, 154, 148, 4, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 555, 556, 864, 865, 147, 4, 561, 562, 138, 139, 138, 139, 148, 156, 230, 231, 155, 1304, 156, 1336, 575, 148, 148, 150, 154, 580, 154, 148, 138, 139, 585, 586, 587, 588, 585, 586, 587, 588, 593, 138, 139, 148, 597, 598, 154, 148, 148, 713, 603, 7, 148, 1368, 150, 148, 1371, 154, 148, 1374, 150, 148, 1377, 616, 1349, 618, 1351, 52, 1353, 148, 734, 735, 736, 737, 1359, 148, 629, 150, 4, 6, 12, 13, 6, 636, 1399, 148, 1401, 150, 1403, 148, 643, 150, 645, 646, 596, 6, 138, 139, 5, 1044, 138, 139, 1387, 148, 1389, 150, 1391, 609, 322, 8, 4, 654, 154, 138, 139, 150, 154, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 148, 60, 154, 70, 63, 64, 148, 66, 67, 68, 690, 691, 79, 72, 5, 148, 357, 150, 85, 86, 138, 139, 89, 90, 704, 705, 706, 707, 708, 709, 710, 148, 144, 713, 155, 148, 154, 150, 718, 98, 99, 100, 148, 148, 724, 150, 37, 38, 39, 40, 1005, 148, 43, 150, 734, 735, 736, 737, 738, 148, 172, 150, 148, 70, 150, 155, 178, 179, 180, 148, 138, 139, 79, 148, 138, 139, 148, 189, 85, 86, 192, 155, 89, 90, 425, 426, 154, 148, 148, 156, 154, 148, 148, 150, 150, 436, 148, 156, 150, 211, 212, 442, 6, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 746, 155, 148, 70, 147, 154, 148, 156, 150, 148, 118, 119, 79, 156, 12, 13, 1205, 148, 85, 86, 70, 148, 89, 90, 154, 6, 156, 824, 257, 79, 155, 150, 156, 820, 155, 85, 86, 945, 150, 89, 90, 154, 5, 156, 790, 791, 792, 844, 845, 150, 5, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 154, 60, 156, 70, 63, 64, 152, 66, 67, 68, 6, 5, 79, 72, 154, 873, 156, 865, 85, 86, 6, 155, 89, 90, 150, 106, 152, 885, 886, 154, 154, 156, 156, 154, 6, 156, 555, 6, 6, 98, 99, 100, 561, 562, 154, 156, 156, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 70, 920, 921, 922, 147, 55, 154, 57, 156, 79, 929, 930, 150, 593, 70, 85, 86, 4, 937, 89, 90, 155, 154, 79, 156, 154, 945, 156, 156, 85, 86, 6, 147, 89, 90, 154, 156, 156, 152, 7, 959, 960, 961, 154, 70, 156, 154, 156, 156, 629, 969, 150, 154, 79, 156, 974, 636, 155, 967, 85, 86, 70, 6, 89, 90, 154, 154, 156, 156, 937, 79, 990, 7, 4, 989, 6, 85, 86, 7, 7, 89, 90, 154, 154, 156, 156, 156, 154, 1007, 156, 148, 1010, 70, 154, 154, 156, 156, 1016, 1017, 148, 156, 79, 1021, 1218, 148, 148, 7, 85, 86, 1028, 149, 89, 90, 154, 154, 156, 156, 6, 154, 1038, 156, 1040, 154, 7, 156, 1040, 154, 154, 156, 156, 156, 7, 1051, 713, 1044, 154, 154, 156, 156, 1169, 8, 6, 1061, 1011, 4, 103, 1065, 156, 154, 1068, 156, 154, 154, 156, 734, 735, 736, 737, 154, 1078, 156, 155, 154, 1078, 1083, 1084, 154, 70, 156, 149, 1364, 522, 1202, 154, 6, 156, 79, 1045, 156, 1047, 149, 1049, 85, 86, 149, 1104, 89, 90, 154, 70, 1305, 4, 1222, 1061, 151, 6, 1064, 1065, 79, 4, 1394, 7, 1396, 7, 85, 86, 106, 7, 89, 90, 7, 106, 7, 7, 106, 7, 1135, 7, 4, 1413, 152, 134, 135, 136, 137, 138, 139, 140, 141, 142, 581, 6, 156, 1152, 147, 1154, 156, 6, 152, 151, 7, 592, 7, 7, 6, 1164, 148, 1166, 155, 148, 1169, 6, 4, 156, 1173, 6, 6, 151, 6, 1178, 7, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 156, 1306, 150, 1308, 147, 6, 149, 135, 1202, 7, 55, 7, 6, 6, 1208, 7, 1210, 7, 1212, 57, 1205, 7, 7, 7, 7, 651, 149, 149, 1222, 149, 149, 7, 1226, 7, 7, 6, 4, 4, 155, 148, 1234, 1235, 6, 155, 7, 6, 6, 1241, 7, 7, 7, 6, 6, 6, 1248, 55, 1361, 6, 1252, 6, 156, 4, 4, 4, 148, 1208, 6, 1210, 4, 1212, 155, 6, 149, 149, 152, 7, 6, 1220, 6, 6, 1223, 155, 63, 1277, 155, 6, 6, 155, 6, 155, 945, 5, 4, 6, 150, 155, 7, 7, 1292, 7, 7, 1295, 7, 6, 1298, 6, 155, 155, 1302, 155, 151, 6, 1306, 6, 1308, 102, 6, 6, 152, 1313, 6, 4, 1316, 5, 750, 751, 6, 753, 6, 755, 756, 6, 6, 759, 760, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 6, 6, 6, 6, 147, 6, 6, 6, 6, 106, 6, 6, 6, 6, 6, 6, 1308, 154, 1361, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 6, 6, 4, 155, 147, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 6, 826, 827, 828, 147, 6, 6, 1061, 7, 6, 5, 1065, 6, 53, 152, 6, 6, 3, 4, 5, 156, 6, 6, 9, 10, 11, 6, 155, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 6, 155, 37, 38, 39, 40, 7, 155, 43, 155, 155, 155, 6, 101, 6, 6, 6, 891, 104, 6, 6, 6, 6, 897, 6, 6, 155, 6, 155, 903, 904, 905, 156, 6, 70, 909, 155, 6, 4, 6, 914, 915, 916, 6, 6, 6, 6, 6, 6, 6, 156, 1154, 6, 6, 155, 929, 6, 6, 6, 155, 6, 6, 6, 6, 6, 939, 1169, 6, 155, 943, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 155, 117, 118, 119, 147, 155, 122, 123, 124, 6, 155, 155, 6, 155, 155, 6, 6, 6, 1202, 6, 6, 6, 138, 139, 6, 884, 1277, 143, 890, 3, 3, 379, 148, 988, 3, 4, 993, 153, 1222, 155, 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, 35, -1, -1, -1, -1, -1, -1, -1, -1, -1, 1031, 1032, 1033, 1034, 49, -1, -1, 52, -1, -1, 55, -1, 57, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 73, 74, 75, 76, 77, -1, -1, -1, 81, -1, -1, 84, -1, 1072, -1, -1, -1, -1, 1306, -1, 1308, -1, -1, -1, -1, -1, 1085, -1, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, 117, -1, 147, -1, -1, 122, 123, 124, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 138, 139, -1, -1, -1, 143, -1, -1, 1361, -1, 148, -1, -1, -1, -1, 153, -1, 155, 156, -1, -1, -1, -1, -1, -1, 1149, -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, 35, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 49, -1, -1, 52, -1, -1, 55, -1, 57, 12, 13, -1, -1, -1, -1, -1, -1, -1, -1, -1, 1217, -1, -1, -1, 73, 74, 75, 76, 77, -1, -1, -1, 81, 6, -1, 84, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, -1, 60, -1, -1, 63, 64, -1, 66, 67, 68, -1, 1264, 117, 72, -1, -1, -1, 122, 123, 124, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 138, 139, -1, -1, -1, 143, 98, 99, 100, -1, 148, -1, -1, -1, -1, 153, -1, -1, 156, -1, -1, 3, 4, 5, -1, 7, -1, 9, 10, 11, -1, 1317, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, -1, -1, 37, 38, 39, 40, -1, -1, 43, -1, -1, 156, 12, 13, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, -1, 60, -1, -1, 63, 64, -1, 66, 67, 68, -1, -1, -1, 72, -1, -1, -1, 111, -1, -1, -1, -1, -1, 117, 118, 119, -1, -1, 122, 123, 124, 125, 126, 127, 128, -1, -1, -1, -1, 98, 99, 100, -1, -1, 138, 139, -1, -1, -1, 143, -1, 145, 146, -1, 148, -1, 150, -1, 152, 153, -1, 155, 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, 35, -1, -1, 156, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 49, -1, -1, 52, -1, -1, 55, -1, 57, -1, 12, 13, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 73, 74, 75, 76, 77, -1, -1, -1, 81, -1, -1, 84, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, -1, 60, -1, -1, 63, 64, -1, 66, 67, 68, -1, 117, -1, 72, -1, -1, 122, 123, 124, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 138, 139, -1, -1, -1, 143, -1, 98, 99, 100, 148, -1, 3, 4, 5, 153, -1, 155, 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, 35, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 49, -1, -1, 52, -1, -1, 55, 156, 57, -1, 12, 13, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 73, 74, 75, 76, 77, -1, -1, -1, 81, -1, -1, 84, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, -1, 60, -1, -1, 63, 64, -1, 66, 67, 68, -1, 117, -1, 72, -1, -1, 122, 123, 124, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 138, 139, -1, -1, -1, 143, -1, 98, 99, 100, 148, -1, 3, 4, 5, 153, -1, 155, 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, 35, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 49, -1, -1, 52, -1, -1, 55, 156, 57, -1, 12, 13, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 73, 74, 75, 76, 77, -1, -1, -1, 81, -1, -1, 84, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, -1, 60, -1, 6, 63, 64, -1, 66, 67, 68, -1, 117, -1, 72, -1, -1, 122, 123, 124, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 138, 139, -1, -1, -1, 143, -1, 98, 99, 100, 148, -1, 3, 4, -1, 153, -1, 155, 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, 35, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 49, -1, -1, 52, -1, -1, 55, 156, 57, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 73, 74, 75, 76, 77, -1, -1, -1, 81, -1, -1, 84, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, -1, -1, 6, -1, -1, -1, -1, -1, -1, -1, 117, -1, -1, -1, -1, 122, 123, 124, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 138, 139, -1, -1, -1, 143, -1, -1, -1, -1, 148, -1, 3, 4, -1, 153, -1, 155, 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, 35, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 49, -1, -1, 52, -1, -1, 55, -1, 57, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 73, 74, 75, 76, 77, -1, -1, -1, 81, -1, -1, 84, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, -1, -1, 6, -1, -1, -1, -1, -1, -1, -1, 117, -1, -1, -1, -1, 122, 123, 124, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 138, 139, -1, -1, -1, 143, -1, -1, -1, -1, 148, -1, 3, 4, -1, 153, -1, 155, 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, 35, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 49, -1, -1, 52, -1, -1, 55, -1, 57, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 73, 74, 75, 76, 77, -1, -1, -1, 81, -1, -1, 84, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, -1, -1, 6, -1, -1, -1, -1, -1, -1, -1, 117, -1, -1, -1, -1, 122, 123, 124, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 138, 139, -1, -1, -1, 143, -1, -1, -1, -1, 148, -1, 3, 4, -1, 153, -1, 155, 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, 35, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 49, -1, -1, 52, -1, -1, 55, -1, 57, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 73, 74, 75, 76, 77, -1, -1, -1, 81, -1, -1, 84, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 117, -1, -1, -1, -1, 122, 123, 124, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 138, 139, -1, -1, -1, 143, -1, -1, -1, -1, 148, -1, 3, 4, -1, 153, -1, 155, 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, 35, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 49, -1, -1, 52, -1, -1, 55, -1, 57, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 73, 74, 75, 76, 77, -1, 3, 4, 81, -1, -1, 84, 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, 117, -1, -1, -1, -1, 122, 123, 124, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 138, 139, -1, -1, -1, 143, -1, -1, -1, -1, 148, -1, 3, 4, -1, 153, -1, 155, 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, -1, 117, -1, -1, -1, -1, 122, 123, 124, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 138, 139, -1, -1, -1, 143, -1, -1, -1, -1, 148, -1, -1, 151, -1, 153, -1, 155, 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, 117, 6, -1, -1, -1, 122, 123, 124, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 138, 139, -1, -1, -1, 143, -1, -1, -1, -1, 148, -1, -1, 151, -1, 153, -1, 155, 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, -1, 117, -1, -1, -1, -1, 122, 123, 124, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 138, 139, -1, -1, -1, 143, -1, -1, -1, -1, 148, -1, -1, -1, -1, 153, -1, 155, -1, -1, -1, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 117, -1, -1, -1, -1, 122, 123, 124, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 138, 139, -1, -1, -1, 143, -1, -1, -1, -1, 148, -1, 3, 4, -1, 153, -1, 155, 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, 35, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 49, -1, -1, 52, -1, -1, 55, -1, 57, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 73, 74, 75, 76, 77, -1, 3, 4, 81, -1, -1, 84, 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, -1, -1, 117, -1, -1, -1, -1, 122, 123, 124, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 138, 139, -1, -1, -1, 143, 3, 4, 5, -1, 148, -1, 9, 10, 11, 153, -1, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 6, -1, 37, 38, 39, 40, -1, -1, 43, -1, -1, -1, -1, -1, -1, -1, -1, 117, -1, -1, -1, 8, 122, 123, 124, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 138, 139, 8, -1, -1, 143, -1, -1, -1, -1, 148, -1, -1, -1, -1, 153, -1, -1, -1, -1, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 8, -1, -1, -1, 147, -1, -1, -1, -1, -1, 117, 118, 119, -1, -1, 122, 123, 124, -1, 8, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 138, 139, -1, -1, -1, 143, -1, 8, -1, -1, 148, -1, -1, -1, -1, 153, -1, -1, -1, -1, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 8, -1, -1, -1, 147, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, -1, -1, -1, -1, -1, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, 0, 1, -1, 147, 4, -1, -1, -1, -1, -1, -1, -1, 12, 13, -1, -1, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, 36, -1, -1, -1, -1, 41, 42, 156, 44, 45, 46, -1, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, -1, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, -1, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 4, -1, 87, 88, -1, -1, -1, 92, 12, 13, -1, -1, 97, 98, 99, 100, -1, -1, 103, -1, 105, -1, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 36, -1, -1, 120, 121, 41, 42, -1, 44, 45, 46, -1, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, -1, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, -1, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 12, 13, 87, 88, -1, -1, -1, 92, -1, -1, -1, -1, 97, 98, 99, 100, -1, -1, 103, -1, 105, -1, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, -1, -1, -1, 120, 121, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, -1, 60, -1, -1, 63, 64, -1, 66, 67, 68, -1, -1, -1, 72, -1, -1, -1, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, 98, 99, 100, 154, -1, 156, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, -1, -1, -1, 154, -1, 156, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, -1, -1, -1, 154, -1, 156, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, -1, -1, -1, -1, -1, 156, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, -1, -1, -1, -1, -1, 156, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, -1, -1, -1, -1, -1, 156, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, -1, -1, -1, -1, -1, 156, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, -1, -1, -1, -1, -1, 156, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, -1, -1, -1, -1, -1, 156, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, -1, -1, -1, -1, -1, 156, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, -1, -1, -1, -1, -1, 156, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, -1, -1, -1, -1, -1, 156, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, -1, -1, -1, -1, -1, 156, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, -1, -1, -1, -1, -1, 156, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, -1, -1, -1, -1, -1, 156, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, -1, -1, -1, -1, -1, 156, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, -1, -1, -1, -1, -1, 156, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, -1, -1, -1, -1, -1, 156, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, -1, -1, -1, -1, -1, 156, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, -1, -1, -1, -1, -1, 156, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, -1, -1, -1, -1, -1, 156, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, -1, -1, -1, -1, -1, 156, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, -1, -1, -1, -1, -1, 156, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, -1, -1, -1, -1, -1, 156, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, -1, -1, -1, -1, -1, 156, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, -1, -1, -1, -1, -1, 156, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, -1, -1, -1, -1, 155, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, -1, -1, -1, -1, 155, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, 149, -1, -1, -1, -1, 154, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, -1, -1, -1, 154, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, -1, -1, -1, 154, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, -1, -1, -1, 154, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, -1, -1, -1, 154, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, -1, -1, -1, 154, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, -1, -1, -1, 154, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, -1, -1, -1, 154, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, -1, -1, -1, 154, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, -1, -1, -1, 154, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, -1, -1, -1, 154, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, -1, -1, -1, 154, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, -1, -1, -1, 154, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, -1, -1, -1, 154, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, -1, -1, -1, 154, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, -1, -1, -1, 154, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, -1, -1, -1, 154, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, -1, -1, -1, 154, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, -1, -1, -1, 154, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, -1, -1, -1, 154, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, -1, -1, -1, 154, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, -1, -1, -1, 154, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, -1, -1, -1, 154, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, -1, -1, -1, 154, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, -1, -1, -1, 154, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, -1, -1, -1, 154, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, -1, -1, -1, 154, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, -1, -1, -1, 154, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, 151, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, 151, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, 151, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, 151, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, 151, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, 151, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, 151, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, 151, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, 151, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, 151, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, 151, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, 151, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, 151, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, 151, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, 151, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, 151, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, 151, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, 151, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, 151, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, 151, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, 151, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, 151, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, 151, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, 151, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, 151, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, 151, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, 151, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, 151, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, 151, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, 151, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, 151, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, 151, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, -1, -1, 151, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, 149, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, 149, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, 149, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, 149, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, 149, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, 149, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, 149, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, 149, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, 149, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, 149, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, 149, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, 149, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, 149, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, 149, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, 149, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, 149, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, 149, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, 149, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, 149, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, 149, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, 149, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, 149, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, 149, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, 149, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, 149, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, 149, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, 149, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, 149, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, 149, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, 149, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, 149, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, 149, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, 149, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, 149, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, 149, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, 149, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, 149, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, 149, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, 149, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, 149, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, 149, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, 149, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, 149, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, 149, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, 149, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, 149, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, 149, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, 149, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, 149, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, 149, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, 149, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, 149, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, 149, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147, -1, 149, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, -1, -1, -1, -1, 147 }; /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing symbol of state STATE-NUM. */ static const yytype_uint8 yystos[] = { 0, 1, 159, 160, 6, 0, 4, 12, 13, 36, 41, 42, 44, 45, 46, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 87, 88, 92, 97, 98, 99, 100, 103, 105, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 120, 121, 161, 163, 164, 182, 191, 196, 199, 200, 201, 202, 203, 204, 205, 225, 226, 227, 228, 229, 230, 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, 37, 38, 39, 40, 43, 111, 117, 118, 119, 122, 123, 124, 125, 126, 127, 128, 138, 139, 143, 145, 146, 148, 150, 152, 153, 155, 180, 181, 231, 232, 244, 13, 55, 148, 6, 155, 6, 6, 6, 6, 150, 148, 155, 148, 148, 4, 148, 155, 148, 148, 4, 155, 148, 148, 59, 55, 55, 6, 55, 55, 52, 55, 57, 57, 49, 52, 55, 57, 52, 55, 57, 52, 55, 148, 52, 155, 138, 139, 148, 155, 233, 234, 233, 155, 49, 52, 55, 155, 233, 4, 49, 53, 63, 55, 55, 52, 4, 111, 155, 4, 6, 49, 52, 4, 4, 4, 5, 35, 49, 52, 55, 57, 139, 155, 196, 205, 231, 236, 237, 238, 4, 148, 148, 148, 4, 155, 240, 4, 148, 148, 6, 150, 4, 4, 5, 155, 5, 155, 6, 155, 4, 150, 152, 157, 181, 155, 5, 244, 148, 150, 148, 150, 148, 150, 148, 150, 148, 150, 148, 150, 148, 150, 148, 150, 148, 150, 148, 150, 148, 150, 148, 150, 148, 150, 148, 150, 148, 150, 148, 150, 148, 150, 148, 150, 148, 150, 148, 150, 148, 150, 148, 148, 148, 148, 7, 148, 148, 148, 4, 231, 231, 231, 231, 151, 155, 231, 4, 103, 104, 4, 4, 196, 197, 198, 236, 6, 6, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 147, 6, 6, 231, 5, 231, 184, 231, 139, 231, 238, 239, 231, 231, 148, 231, 239, 231, 231, 148, 239, 231, 231, 236, 148, 155, 148, 148, 237, 237, 237, 148, 192, 193, 194, 195, 148, 148, 148, 236, 231, 4, 236, 233, 233, 233, 231, 231, 138, 139, 155, 155, 233, 155, 155, 155, 138, 139, 148, 198, 233, 155, 148, 155, 148, 148, 148, 237, 236, 148, 4, 6, 150, 150, 198, 6, 155, 155, 150, 150, 150, 150, 5, 155, 5, 5, 5, 155, 231, 238, 156, 239, 8, 140, 6, 6, 231, 231, 231, 152, 231, 155, 106, 231, 231, 231, 6, 6, 198, 6, 198, 236, 150, 231, 4, 155, 165, 6, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 4, 243, 244, 243, 243, 243, 231, 243, 243, 243, 150, 149, 7, 180, 239, 151, 7, 180, 181, 152, 7, 150, 156, 49, 52, 55, 57, 191, 6, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 6, 149, 154, 154, 151, 154, 183, 149, 140, 154, 156, 149, 149, 231, 149, 156, 149, 149, 231, 156, 149, 149, 7, 231, 231, 231, 231, 7, 7, 223, 223, 231, 148, 148, 148, 148, 231, 231, 231, 7, 155, 149, 6, 154, 154, 154, 233, 233, 197, 197, 154, 231, 231, 231, 231, 209, 154, 198, 231, 231, 231, 231, 231, 7, 224, 7, 231, 6, 231, 231, 156, 239, 239, 231, 231, 151, 155, 231, 4, 231, 239, 156, 231, 155, 231, 238, 149, 149, 149, 103, 154, 198, 155, 8, 149, 151, 156, 156, 154, 156, 231, 151, 181, 231, 4, 93, 94, 95, 96, 156, 168, 172, 175, 177, 178, 149, 151, 149, 151, 149, 151, 149, 151, 149, 151, 149, 151, 149, 151, 149, 151, 149, 151, 149, 151, 149, 151, 154, 154, 149, 151, 149, 151, 149, 151, 149, 151, 149, 151, 149, 151, 154, 154, 154, 154, 154, 154, 150, 152, 149, 154, 154, 149, 149, 6, 154, 149, 154, 236, 156, 152, 180, 181, 244, 231, 6, 4, 4, 155, 241, 151, 155, 155, 155, 155, 8, 6, 135, 162, 239, 231, 6, 4, 7, 231, 238, 106, 7, 7, 149, 7, 106, 7, 7, 149, 106, 7, 7, 231, 149, 156, 149, 149, 231, 236, 4, 222, 6, 149, 188, 231, 244, 188, 188, 188, 149, 149, 149, 236, 239, 152, 233, 231, 231, 156, 156, 231, 154, 154, 154, 70, 79, 85, 86, 89, 90, 219, 220, 233, 156, 206, 149, 156, 149, 149, 149, 231, 6, 231, 149, 151, 151, 156, 156, 151, 151, 239, 151, 151, 156, 156, 8, 239, 7, 7, 7, 152, 231, 156, 231, 231, 7, 152, 236, 6, 151, 152, 181, 243, 156, 169, 148, 148, 155, 179, 6, 231, 231, 231, 231, 231, 231, 231, 231, 231, 4, 239, 243, 231, 243, 6, 151, 4, 103, 104, 231, 6, 6, 6, 7, 150, 240, 242, 6, 239, 239, 239, 239, 231, 135, 243, 149, 154, 7, 233, 55, 236, 236, 7, 236, 55, 57, 236, 236, 7, 57, 236, 236, 6, 7, 7, 7, 7, 70, 221, 6, 7, 149, 149, 149, 149, 7, 7, 7, 6, 156, 4, 154, 154, 154, 156, 233, 233, 233, 4, 6, 155, 148, 6, 91, 6, 91, 156, 220, 154, 219, 7, 6, 7, 7, 7, 6, 155, 6, 6, 6, 55, 6, 6, 156, 231, 156, 236, 236, 236, 4, 154, 8, 8, 149, 4, 4, 156, 6, 4, 6, 148, 231, 231, 235, 236, 155, 149, 151, 149, 151, 149, 151, 149, 151, 151, 149, 149, 149, 149, 180, 7, 180, 181, 152, 7, 6, 240, 231, 154, 156, 156, 156, 156, 156, 6, 6, 162, 231, 155, 231, 6, 155, 63, 190, 190, 236, 6, 155, 155, 6, 6, 236, 155, 6, 6, 5, 236, 236, 236, 4, 6, 236, 7, 7, 7, 7, 236, 236, 236, 7, 6, 7, 231, 231, 231, 155, 154, 156, 154, 156, 154, 156, 150, 231, 236, 231, 6, 6, 231, 233, 156, 5, 155, 236, 155, 155, 155, 236, 239, 155, 151, 6, 6, 102, 231, 231, 231, 6, 6, 7, 6, 181, 166, 231, 154, 154, 154, 156, 167, 231, 152, 236, 244, 231, 6, 4, 241, 6, 151, 240, 6, 6, 6, 6, 243, 154, 231, 231, 233, 6, 6, 6, 231, 231, 6, 231, 5, 6, 6, 106, 189, 231, 6, 236, 236, 236, 236, 6, 4, 6, 6, 231, 231, 244, 156, 149, 154, 156, 197, 233, 6, 210, 233, 6, 211, 233, 6, 212, 231, 156, 154, 149, 156, 154, 6, 139, 233, 6, 235, 233, 233, 6, 156, 231, 236, 154, 156, 8, 156, 149, 155, 231, 244, 149, 154, 231, 231, 236, 155, 154, 156, 4, 6, 6, 6, 7, 6, 152, 6, 231, 185, 156, 156, 156, 156, 5, 53, 6, 6, 6, 6, 6, 155, 155, 6, 6, 155, 231, 156, 154, 155, 154, 155, 154, 155, 151, 6, 236, 7, 155, 231, 154, 156, 154, 154, 6, 156, 101, 231, 231, 239, 6, 6, 170, 231, 154, 154, 235, 231, 6, 240, 104, 154, 186, 6, 6, 6, 6, 6, 155, 235, 239, 197, 154, 156, 231, 233, 219, 231, 233, 219, 231, 233, 219, 6, 154, 156, 236, 198, 156, 233, 6, 239, 233, 231, 156, 156, 156, 155, 231, 231, 156, 6, 231, 154, 156, 187, 231, 156, 156, 156, 231, 156, 154, 156, 156, 154, 156, 156, 154, 156, 236, 6, 70, 156, 207, 155, 154, 156, 154, 6, 6, 167, 149, 154, 6, 155, 154, 4, 156, 6, 6, 156, 6, 213, 231, 6, 6, 214, 231, 6, 6, 215, 231, 6, 156, 231, 219, 198, 239, 6, 233, 239, 156, 173, 231, 235, 231, 5, 236, 155, 156, 155, 156, 155, 156, 6, 6, 156, 156, 208, 156, 154, 156, 6, 155, 149, 156, 156, 219, 6, 216, 219, 6, 217, 219, 6, 218, 219, 6, 239, 6, 171, 243, 176, 155, 6, 156, 155, 156, 155, 156, 155, 156, 156, 154, 156, 155, 235, 6, 219, 6, 219, 6, 219, 6, 243, 6, 174, 243, 156, 156, 156, 156, 154, 156, 6, 6, 6, 6, 243, 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. However, YYFAIL appears to be in use. Nevertheless, it is formally deprecated in Bison 2.4.2's NEWS entry, where a plan to phase it out is discussed. */ #define YYFAIL goto yyerrlab #if defined YYFAIL /* This is here to suppress warnings from the GCC cpp's -Wunused-macros. Normally we don't worry about that warning, but some users do, and we want to make it easy for users to remove YYFAIL uses, which will produce warnings from Bison 2.5. */ #endif #define YYRECOVERING() (!!yyerrstatus) #define YYBACKUP(Token, Value) \ do \ if (yychar == YYEMPTY && yylen == 1) \ { \ yychar = (Token); \ yylval = (Value); \ 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 /* This macro is provided for backward compatibility. */ #ifndef YY_LOCATION_PRINT # define YY_LOCATION_PRINT(File, Loc) ((void) 0) #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 *yybottom, yytype_int16 *yytop) #else static void yy_stack_print (yybottom, yytop) yytype_int16 *yybottom; yytype_int16 *yytop; #endif { YYFPRINTF (stderr, "Stack now"); for (; yybottom <= yytop; yybottom++) { int yybot = *yybottom; YYFPRINTF (stderr, " %d", yybot); } YYFPRINTF (stderr, "\n"); } # define YY_STACK_PRINT(Bottom, Top) \ do { \ if (yydebug) \ yy_stack_print ((Bottom), (Top)); \ } while (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++) { YYFPRINTF (stderr, " $%d = ", yyi + 1); yy_symbol_print (stderr, yyrhs[yyprhs[yyrule] + yyi], &(yyvsp[(yyi + 1) - (yynrhs)]) ); YYFPRINTF (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 *YYMSG, which is of size *YYMSG_ALLOC, an error message about the unexpected token YYTOKEN for the state stack whose top is YYSSP. Return 0 if *YYMSG was successfully written. Return 1 if *YYMSG is not large enough to hold the message. In that case, also set *YYMSG_ALLOC to the required number of bytes. Return 2 if the required number of bytes is too large to store. */ static int yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg, yytype_int16 *yyssp, int yytoken) { YYSIZE_T yysize0 = yytnamerr (0, yytname[yytoken]); YYSIZE_T yysize = yysize0; YYSIZE_T yysize1; enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 }; /* Internationalized format string. */ const char *yyformat = 0; /* Arguments of yyformat. */ char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM]; /* Number of reported tokens (one for the "unexpected", one per "expected"). */ int yycount = 0; /* There are many possibilities here to consider: - Assume YYFAIL is not used. It's too flawed to consider. See <http://lists.gnu.org/archive/html/bison-patches/2009-12/msg00024.html> for details. YYERROR is fine as it does not invoke this function. - If this state is a consistent state with a default action, then the only way this function was invoked is if the default action is an error action. In that case, don't check for expected tokens because there are none. - The only way there can be no lookahead present (in yychar) is if this state is a consistent state with a default action. Thus, detecting the absence of a lookahead is sufficient to determine that there is no unexpected or expected token to report. In that case, just report a simple "syntax error". - Don't assume there isn't a lookahead just because this state is a consistent state with a default action. There might have been a previous inconsistent state, consistent state with a non-default action, or user semantic action that manipulated yychar. - Of course, the expected token list depends on states to have correct lookahead information, and it depends on the parser not to perform extra reductions after fetching a lookahead from the scanner and before detecting a syntax error. Thus, state merging (from LALR or IELR) and default reductions corrupt the expected token list. However, the list is correct for canonical LR with one exception: it will still contain any token that will not be accepted due to an error action in a later state. */ if (yytoken != YYEMPTY) { int yyn = yypact[*yyssp]; yyarg[yycount++] = yytname[yytoken]; if (!yypact_value_is_default (yyn)) { /* Start YYX at -YYN if negative to avoid negative indexes in YYCHECK. In other words, skip the first -YYN actions for this state because they are default actions. */ int yyxbegin = yyn < 0 ? -yyn : 0; /* Stay within bounds of both yycheck and yytname. */ int yychecklim = YYLAST - yyn + 1; int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS; int yyx; for (yyx = yyxbegin; yyx < yyxend; ++yyx) if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR && !yytable_value_is_error (yytable[yyx + yyn])) { if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM) { yycount = 1; yysize = yysize0; break; } yyarg[yycount++] = yytname[yyx]; yysize1 = yysize + yytnamerr (0, yytname[yyx]); if (! (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM)) return 2; yysize = yysize1; } } } switch (yycount) { # define YYCASE_(N, S) \ case N: \ yyformat = S; \ break YYCASE_(0, YY_("syntax error")); YYCASE_(1, YY_("syntax error, unexpected %s")); YYCASE_(2, YY_("syntax error, unexpected %s, expecting %s")); YYCASE_(3, YY_("syntax error, unexpected %s, expecting %s or %s")); YYCASE_(4, YY_("syntax error, unexpected %s, expecting %s or %s or %s")); YYCASE_(5, YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s")); # undef YYCASE_ } yysize1 = yysize + yystrlen (yyformat); if (! (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM)) return 2; yysize = yysize1; if (*yymsg_alloc < yysize) { *yymsg_alloc = 2 * yysize; if (! (yysize <= *yymsg_alloc && *yymsg_alloc <= YYSTACK_ALLOC_MAXIMUM)) *yymsg_alloc = YYSTACK_ALLOC_MAXIMUM; return 1; } /* Avoid sprintf, as that infringes on the user's name space. Don't have undefined behavior even if the translation produced a string with the wrong number of "%s"s. */ { char *yyp = *yymsg; int yyi = 0; while ((*yyp = *yyformat) != '\0') if (*yyp == '%' && yyformat[1] == 's' && yyi < yycount) { yyp += yytnamerr (yyp, yyarg[yyi++]); yyformat += 2; } else { yyp++; yyformat++; } } return 0; } #endif /* YYERROR_VERBOSE */ /*-----------------------------------------------. | Release the memory associated to this symbol. | `-----------------------------------------------*/ /*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 lookahead symbol. */ int yychar; /* The semantic value of the lookahead 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; /* Number of tokens to shift before error messages enabled. */ int yyerrstatus; /* The stacks and their tools: `yyss': related to states. `yyvs': related to semantic values. Refer to the stacks thru separate pointers, to allow yyoverflow to reallocate them elsewhere. */ /* The state stack. */ yytype_int16 yyssa[YYINITDEPTH]; yytype_int16 *yyss; yytype_int16 *yyssp; /* The semantic value stack. */ YYSTYPE yyvsa[YYINITDEPTH]; YYSTYPE *yyvs; YYSTYPE *yyvsp; YYSIZE_T yystacksize; int yyn; int yyresult; /* Lookahead token as an internal (translated) token number. */ int yytoken; /* The variables used to return semantic value and location from the action routines. */ YYSTYPE yyval; #if YYERROR_VERBOSE /* Buffer for error messages, and its allocated size. */ char yymsgbuf[128]; char *yymsg = yymsgbuf; YYSIZE_T yymsg_alloc = sizeof yymsgbuf; #endif #define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N)) /* The number of symbols on the RHS of the reduced rule. Keep to zero when no symbol should be popped. */ int yylen = 0; yytoken = 0; yyss = yyssa; yyvs = yyvsa; yystacksize = YYINITDEPTH; 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_alloc, yyss); YYSTACK_RELOCATE (yyvs_alloc, 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)); if (yystate == YYFINAL) YYACCEPT; goto yybackup; /*-----------. | yybackup. | `-----------*/ yybackup: /* Do appropriate processing given the current state. Read a lookahead token if we need one and don't already have one. */ /* First try to decide what to do without reference to lookahead token. */ yyn = yypact[yystate]; if (yypact_value_is_default (yyn)) goto yydefault; /* Not known => get a lookahead token if don't already have one. */ /* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol. */ if (yychar == YYEMPTY) { YYDPRINTF ((stderr, "Reading a token: ")); yychar = YYLEX; } if (yychar <= YYEOF) { yychar = yytoken = YYEOF; YYDPRINTF ((stderr, "Now at end of input.\n")); } else { yytoken = YYTRANSLATE (yychar); YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc); } /* If the proper action on seeing token YYTOKEN is to reduce or to detect an error, take that action. */ yyn += yytoken; if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) goto yydefault; yyn = yytable[yyn]; if (yyn <= 0) { if (yytable_value_is_error (yyn)) goto yyerrlab; yyn = -yyn; goto yyreduce; } /* Count tokens shifted since error; after three, turn off error status. */ if (yyerrstatus) yyerrstatus--; /* Shift the lookahead token. */ YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc); /* Discard the shifted token. */ yychar = YYEMPTY; yystate = yyn; *++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 1806 of yacc.c */ #line 159 "Gmsh.y" { yyerrok; return 1; } break; case 6: /* Line 1806 of yacc.c */ #line 170 "Gmsh.y" { return 1; } break; case 7: /* Line 1806 of yacc.c */ #line 171 "Gmsh.y" { return 1; } break; case 8: /* Line 1806 of yacc.c */ #line 172 "Gmsh.y" { return 1; } break; case 9: /* Line 1806 of yacc.c */ #line 173 "Gmsh.y" { return 1; } break; case 10: /* Line 1806 of yacc.c */ #line 174 "Gmsh.y" { List_Delete((yyvsp[(1) - (1)].l)); return 1; } break; case 11: /* Line 1806 of yacc.c */ #line 175 "Gmsh.y" { return 1; } break; case 12: /* Line 1806 of yacc.c */ #line 176 "Gmsh.y" { return 1; } break; case 13: /* Line 1806 of yacc.c */ #line 177 "Gmsh.y" { return 1; } break; case 14: /* Line 1806 of yacc.c */ #line 178 "Gmsh.y" { List_Delete((yyvsp[(1) - (1)].l)); return 1; } break; case 15: /* Line 1806 of yacc.c */ #line 179 "Gmsh.y" { return 1; } break; case 16: /* Line 1806 of yacc.c */ #line 180 "Gmsh.y" { return 1; } break; case 17: /* Line 1806 of yacc.c */ #line 181 "Gmsh.y" { return 1; } break; case 18: /* Line 1806 of yacc.c */ #line 182 "Gmsh.y" { return 1; } break; case 19: /* Line 1806 of yacc.c */ #line 183 "Gmsh.y" { return 1; } break; case 20: /* Line 1806 of yacc.c */ #line 184 "Gmsh.y" { return 1; } break; case 21: /* Line 1806 of yacc.c */ #line 185 "Gmsh.y" { return 1; } break; case 22: /* Line 1806 of yacc.c */ #line 186 "Gmsh.y" { return 1; } break; case 23: /* Line 1806 of yacc.c */ #line 191 "Gmsh.y" { (yyval.c) = (char*)"w"; } break; case 24: /* Line 1806 of yacc.c */ #line 195 "Gmsh.y" { (yyval.c) = (char*)"a"; } break; case 25: /* Line 1806 of yacc.c */ #line 202 "Gmsh.y" { Msg::Direct((yyvsp[(3) - (5)].c)); Free((yyvsp[(3) - (5)].c)); } break; case 26: /* Line 1806 of yacc.c */ #line 207 "Gmsh.y" { std::string tmp = FixRelativePath(gmsh_yyname, (yyvsp[(6) - (7)].c)); FILE *fp = fopen(tmp.c_str(), (yyvsp[(5) - (7)].c)); if(!fp){ yymsg(0, "Unable to open file '%s'", tmp.c_str()); } else{ fprintf(fp, "%s\n", (yyvsp[(3) - (7)].c)); fclose(fp); } Free((yyvsp[(3) - (7)].c)); Free((yyvsp[(6) - (7)].c)); } break; case 27: /* Line 1806 of yacc.c */ #line 221 "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 28: /* Line 1806 of yacc.c */ #line 234 "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{ std::string tmp = FixRelativePath(gmsh_yyname, (yyvsp[(8) - (9)].c)); FILE *fp = fopen(tmp.c_str(), (yyvsp[(7) - (9)].c)); if(!fp){ yymsg(0, "Unable to open file '%s'", tmp.c_str()); } 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 29: /* Line 1806 of yacc.c */ #line 262 "Gmsh.y" { #if defined(HAVE_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 30: /* Line 1806 of yacc.c */ #line 276 "Gmsh.y" { #if defined(HAVE_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 31: /* Line 1806 of yacc.c */ #line 287 "Gmsh.y" { #if defined(HAVE_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 32: /* Line 1806 of yacc.c */ #line 301 "Gmsh.y" { #if defined(HAVE_POST) ViewData = new PViewDataList(); #endif } break; case 38: /* Line 1806 of yacc.c */ #line 315 "Gmsh.y" { ViewCoord.push_back((yyvsp[(1) - (1)].d)); } break; case 39: /* Line 1806 of yacc.c */ #line 317 "Gmsh.y" { ViewCoord.push_back((yyvsp[(3) - (3)].d)); } break; case 40: /* Line 1806 of yacc.c */ #line 322 "Gmsh.y" { if(ViewValueList) ViewValueList->push_back((yyvsp[(1) - (1)].d)); } break; case 41: /* Line 1806 of yacc.c */ #line 324 "Gmsh.y" { if(ViewValueList) ViewValueList->push_back((yyvsp[(3) - (3)].d)); } break; case 42: /* Line 1806 of yacc.c */ #line 329 "Gmsh.y" { #if defined(HAVE_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 43: /* Line 1806 of yacc.c */ #line 433 "Gmsh.y" { #if defined(HAVE_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 44: /* Line 1806 of yacc.c */ #line 443 "Gmsh.y" { #if defined(HAVE_POST) if(ViewValueList) (*ViewNumList)++; #endif } break; case 45: /* Line 1806 of yacc.c */ #line 452 "Gmsh.y" { #if defined(HAVE_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 46: /* Line 1806 of yacc.c */ #line 459 "Gmsh.y" { #if defined(HAVE_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 47: /* Line 1806 of yacc.c */ #line 469 "Gmsh.y" { #if defined(HAVE_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 48: /* Line 1806 of yacc.c */ #line 478 "Gmsh.y" { #if defined(HAVE_POST) ViewData->NbT2++; #endif } break; case 49: /* Line 1806 of yacc.c */ #line 487 "Gmsh.y" { #if defined(HAVE_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 50: /* Line 1806 of yacc.c */ #line 494 "Gmsh.y" { #if defined(HAVE_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 51: /* Line 1806 of yacc.c */ #line 504 "Gmsh.y" { #if defined(HAVE_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 52: /* Line 1806 of yacc.c */ #line 512 "Gmsh.y" { #if defined(HAVE_POST) ViewData->NbT3++; #endif } break; case 53: /* Line 1806 of yacc.c */ #line 522 "Gmsh.y" { #if defined(HAVE_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 54: /* Line 1806 of yacc.c */ #line 541 "Gmsh.y" { #if defined(HAVE_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 55: /* Line 1806 of yacc.c */ #line 560 "Gmsh.y" { #if defined(HAVE_POST) ViewValueList = &ViewData->Time; #endif } break; case 56: /* Line 1806 of yacc.c */ #line 566 "Gmsh.y" { } break; case 57: /* Line 1806 of yacc.c */ #line 573 "Gmsh.y" { (yyval.i) = 0; } break; case 58: /* Line 1806 of yacc.c */ #line 574 "Gmsh.y" { (yyval.i) = 1; } break; case 59: /* Line 1806 of yacc.c */ #line 575 "Gmsh.y" { (yyval.i) = 2; } break; case 60: /* Line 1806 of yacc.c */ #line 576 "Gmsh.y" { (yyval.i) = 3; } break; case 61: /* Line 1806 of yacc.c */ #line 577 "Gmsh.y" { (yyval.i) = 4; } break; case 62: /* Line 1806 of yacc.c */ #line 581 "Gmsh.y" { (yyval.i) = 1; } break; case 63: /* Line 1806 of yacc.c */ #line 582 "Gmsh.y" { (yyval.i) = -1; } break; case 65: /* Line 1806 of yacc.c */ #line 591 "Gmsh.y" { if(!gmsh_yysymbols.count((yyvsp[(1) - (4)].c)) && (yyvsp[(2) - (4)].i) && List_Nbr((yyvsp[(3) - (4)].l)) == 1){ yymsg(0, "Unknown variable '%s'", (yyvsp[(1) - (4)].c)); } else{ gmsh_yysymbol &s(gmsh_yysymbols[(yyvsp[(1) - (4)].c)]); if(!(yyvsp[(2) - (4)].i)) s.list = (List_Nbr((yyvsp[(3) - (4)].l)) != 1); // list if 0 or > 1 elements if(!s.list){ // single expression if(List_Nbr((yyvsp[(3) - (4)].l)) != 1){ yymsg(0, "Cannot assign list to variable '%s'", (yyvsp[(1) - (4)].c)); } else{ double d; List_Read((yyvsp[(3) - (4)].l), 0, &d); if(s.value.empty()){ if((yyvsp[(2) - (4)].i)) yymsg(1, "Uninitialized variable '%s'", (yyvsp[(1) - (4)].c)); s.value.resize(1, 0.); } switch((yyvsp[(2) - (4)].i)){ case 0 : s.value[0] = d; break; case 1 : s.value[0] += d; break; case 2 : s.value[0] -= d; break; case 3 : s.value[0] *= d; break; case 4 : if(d) s.value[0] /= d; else yymsg(0, "Division by zero in '%s /= %g'", (yyvsp[(1) - (4)].c), d); break; } } } else{ // list of expressions switch((yyvsp[(2) - (4)].i)){ case 0: // affect s.value.clear(); // fall-through case 1: // append for(int i = 0; i < List_Nbr((yyvsp[(3) - (4)].l)); i++){ double d; List_Read((yyvsp[(3) - (4)].l), i, &d); s.value.push_back(d); } break; case 2: // remove for(int i = 0; i < List_Nbr((yyvsp[(3) - (4)].l)); i++){ double d; List_Read((yyvsp[(3) - (4)].l), i, &d); std::vector<double>::iterator it = std::find(s.value.begin(), s.value.end(), d); if(it != s.value.end()) s.value.erase(it); } break; default: yymsg(0, "Operators *= and /= not available for lists"); break; } } } Free((yyvsp[(1) - (4)].c)); List_Delete((yyvsp[(3) - (4)].l)); } break; case 66: /* Line 1806 of yacc.c */ #line 654 "Gmsh.y" { gmsh_yysymbol &s(gmsh_yysymbols[(yyvsp[(1) - (6)].c)]); s.list = true; double d; switch((yyvsp[(4) - (6)].i)){ case 0: // affect s.value.clear(); // fall-through case 1: // append for(int i = 0; i < List_Nbr((yyvsp[(5) - (6)].l)); i++){ List_Read((yyvsp[(5) - (6)].l), i, &d); s.value.push_back(d); } break; case 2: // remove for(int i = 0; i < List_Nbr((yyvsp[(5) - (6)].l)); i++){ List_Read((yyvsp[(5) - (6)].l), i, &d); std::vector<double>::iterator it = std::find(s.value.begin(), s.value.end(), d); if(it != s.value.end()) s.value.erase(it); } break; default: yymsg(0, "Operators *= and /= not available for lists"); break; } Free((yyvsp[(1) - (6)].c)); List_Delete((yyvsp[(5) - (6)].l)); } break; case 67: /* Line 1806 of yacc.c */ #line 684 "Gmsh.y" { int index = (int)(yyvsp[(3) - (7)].d); if(!gmsh_yysymbols.count((yyvsp[(1) - (7)].c))){ if(!(yyvsp[(5) - (7)].i)){ gmsh_yysymbol &s(gmsh_yysymbols[(yyvsp[(1) - (7)].c)]); s.list = true; s.value.resize(index + 1, 0.); s.value[index] = (yyvsp[(6) - (7)].d); } else yymsg(0, "Unknown variable '%s'", (yyvsp[(1) - (7)].c)); } else{ gmsh_yysymbol &s(gmsh_yysymbols[(yyvsp[(1) - (7)].c)]); if(s.list){ if((int)s.value.size() < index + 1) s.value.resize(index + 1, 0.); switch((yyvsp[(5) - (7)].i)){ case 0 : s.value[index] = (yyvsp[(6) - (7)].d); break; case 1 : s.value[index] += (yyvsp[(6) - (7)].d); break; case 2 : s.value[index] -= (yyvsp[(6) - (7)].d); break; case 3 : s.value[index] *= (yyvsp[(6) - (7)].d); break; case 4 : if((yyvsp[(6) - (7)].d)) s.value[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; } } else yymsg(0, "Variable '%s' is not a list", (yyvsp[(1) - (7)].c)); } Free((yyvsp[(1) - (7)].c)); } break; case 68: /* Line 1806 of yacc.c */ #line 717 "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)){ gmsh_yysymbol &s(gmsh_yysymbols[(yyvsp[(1) - (9)].c)]); s.list = true; for(int i = 0; i < List_Nbr((yyvsp[(4) - (9)].l)); i++){ int index = (int)(*(double*)List_Pointer((yyvsp[(4) - (9)].l), i)); s.value.resize(index + 1, 0.); s.value[index] = *(double*)List_Pointer((yyvsp[(8) - (9)].l), i); } } else yymsg(0, "Unknown variable '%s'", (yyvsp[(1) - (9)].c)); } else{ gmsh_yysymbol &s(gmsh_yysymbols[(yyvsp[(1) - (9)].c)]); if(s.list){ 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)s.value.size() < index + 1) s.value.resize(index + 1, 0.); switch((yyvsp[(7) - (9)].i)){ case 0 : s.value[index] = d; break; case 1 : s.value[index] += d; break; case 2 : s.value[index] -= d; break; case 3 : s.value[index] *= d; break; case 4 : if((yyvsp[(8) - (9)].l)) s.value[index] /= d; else yymsg(0, "Division by zero in '%s[%d] /= %g'", (yyvsp[(1) - (9)].c), index, d); break; } } } else yymsg(0, "Variable '%s' is not a list", (yyvsp[(1) - (9)].c)); } } Free((yyvsp[(1) - (9)].c)); List_Delete((yyvsp[(4) - (9)].l)); List_Delete((yyvsp[(8) - (9)].l)); } break; case 69: /* Line 1806 of yacc.c */ #line 763 "Gmsh.y" { if(!gmsh_yysymbols.count((yyvsp[(1) - (3)].c))) yymsg(0, "Unknown variable '%s'", (yyvsp[(1) - (3)].c)); else{ gmsh_yysymbol &s(gmsh_yysymbols[(yyvsp[(1) - (3)].c)]); if(!s.list && s.value.empty()) yymsg(0, "Uninitialized variable '%s'", (yyvsp[(1) - (3)].c)); else if(!s.list) s.value[0] += (yyvsp[(2) - (3)].i); else yymsg(0, "Variable '%s' is a list", (yyvsp[(1) - (3)].c)); } Free((yyvsp[(1) - (3)].c)); } break; case 70: /* Line 1806 of yacc.c */ #line 778 "Gmsh.y" { if(!gmsh_yysymbols.count((yyvsp[(1) - (6)].c))) yymsg(0, "Unknown variable '%s'", (yyvsp[(1) - (6)].c)); else{ gmsh_yysymbol &s(gmsh_yysymbols[(yyvsp[(1) - (6)].c)]); if(s.list){ int index = (int)(yyvsp[(3) - (6)].d); if((int)s.value.size() < index + 1) s.value.resize(index + 1, 0.); s.value[index] += (yyvsp[(5) - (6)].i); } else yymsg(0, "Variable '%s' is not a list", (yyvsp[(1) - (6)].c)); } Free((yyvsp[(1) - (6)].c)); } break; case 71: /* Line 1806 of yacc.c */ #line 794 "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 72: /* Line 1806 of yacc.c */ #line 803 "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 73: /* Line 1806 of yacc.c */ #line 809 "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 74: /* Line 1806 of yacc.c */ #line 818 "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 75: /* Line 1806 of yacc.c */ #line 836 "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 76: /* Line 1806 of yacc.c */ #line 854 "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 77: /* Line 1806 of yacc.c */ #line 863 "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 78: /* Line 1806 of yacc.c */ #line 875 "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 79: /* Line 1806 of yacc.c */ #line 880 "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 80: /* Line 1806 of yacc.c */ #line 888 "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 81: /* Line 1806 of yacc.c */ #line 908 "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 82: /* Line 1806 of yacc.c */ #line 931 "Gmsh.y" { #if defined(HAVE_MESH) if(!strcmp((yyvsp[(1) - (5)].c),"Background")) GModel::current()->getFields()->background_field = (int)(yyvsp[(4) - (5)].d); else if(!strcmp((yyvsp[(1) - (5)].c),"BoundaryLayer")) GModel::current()->getFields()->boundaryLayer_field = (int)(yyvsp[(4) - (5)].d); else yymsg(0, "Unknown command %s Field", (yyvsp[(1) - (5)].c)); #endif } break; case 83: /* Line 1806 of yacc.c */ #line 942 "Gmsh.y" { #if defined(HAVE_MESH) 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)); #endif Free((yyvsp[(6) - (7)].c)); } break; case 84: /* Line 1806 of yacc.c */ #line 950 "Gmsh.y" { #if defined(HAVE_MESH) 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)); #endif Free((yyvsp[(6) - (9)].c)); } break; case 85: /* Line 1806 of yacc.c */ #line 972 "Gmsh.y" { #if defined(HAVE_MESH) 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)); #endif Free((yyvsp[(6) - (9)].c)); Free((yyvsp[(8) - (9)].c)); } break; case 86: /* Line 1806 of yacc.c */ #line 995 "Gmsh.y" { #if defined(HAVE_MESH) 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)); #endif Free((yyvsp[(6) - (11)].c)); List_Delete((yyvsp[(9) - (11)].l)); } break; case 87: /* Line 1806 of yacc.c */ #line 1020 "Gmsh.y" { #if defined(HAVE_MESH) Field *field = GModel::current()->getFields()->get((int)(yyvsp[(3) - (7)].d)); if(field){ FieldCallback *callback = field->callbacks[(yyvsp[(6) - (7)].c)]; if(callback) { callback->run(); } else yymsg(0, "Unknown callback '%s' in field %i of type '%s'", (yyvsp[(6) - (7)].c), (int)(yyvsp[(3) - (7)].d), field->getName()); } else yymsg(0, "No field with id %i", (int)(yyvsp[(3) - (7)].d)); #endif Free((yyvsp[(6) - (7)].c)); } break; case 88: /* Line 1806 of yacc.c */ #line 1041 "Gmsh.y" { #if defined(HAVE_PLUGINS) 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 89: /* Line 1806 of yacc.c */ #line 1053 "Gmsh.y" { #if defined(HAVE_PLUGINS) 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 93: /* Line 1806 of yacc.c */ #line 1071 "Gmsh.y" { std::string key((yyvsp[(3) - (3)].c)); std::vector<double> val(1, 0.); floatOptions.clear(); charOptions.clear(); if(!gmsh_yysymbols.count(key)){ Msg::ExchangeOnelabParameter(key, val, floatOptions, charOptions); gmsh_yysymbols[key].value = val; } Free((yyvsp[(3) - (3)].c)); } break; case 94: /* Line 1806 of yacc.c */ #line 1082 "Gmsh.y" { std::string key((yyvsp[(3) - (5)].c)); std::vector<double> val(1, (yyvsp[(5) - (5)].d)); floatOptions.clear(); charOptions.clear(); if(!gmsh_yysymbols.count(key)){ Msg::ExchangeOnelabParameter(key, val, floatOptions, charOptions); gmsh_yysymbols[key].value = val; } Free((yyvsp[(3) - (5)].c)); } break; case 95: /* Line 1806 of yacc.c */ #line 1093 "Gmsh.y" { floatOptions.clear(); charOptions.clear(); } break; case 96: /* Line 1806 of yacc.c */ #line 1095 "Gmsh.y" { std::string key((yyvsp[(3) - (9)].c)); std::vector<double> val(1, (yyvsp[(6) - (9)].d)); if(!gmsh_yysymbols.count(key)){ Msg::ExchangeOnelabParameter(key, val, floatOptions, charOptions); gmsh_yysymbols[key].value = val; } } break; case 99: /* Line 1806 of yacc.c */ #line 1111 "Gmsh.y" { std::string key((yyvsp[(2) - (3)].c)); for(int i = 0; i < List_Nbr((yyvsp[(3) - (3)].l)); i++){ double v; List_Read((yyvsp[(3) - (3)].l), i, &v); floatOptions[key].push_back(v); } Free((yyvsp[(2) - (3)].c)); List_Delete((yyvsp[(3) - (3)].l)); } break; case 100: /* Line 1806 of yacc.c */ #line 1122 "Gmsh.y" { std::string key((yyvsp[(2) - (3)].c)); std::string val((yyvsp[(3) - (3)].c)); charOptions[key].push_back(val); Free((yyvsp[(2) - (3)].c)); Free((yyvsp[(3) - (3)].c)); } break; case 101: /* Line 1806 of yacc.c */ #line 1135 "Gmsh.y" { (yyval.i) = (int)(yyvsp[(1) - (1)].d); } break; case 102: /* Line 1806 of yacc.c */ #line 1139 "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 103: /* Line 1806 of yacc.c */ #line 1149 "Gmsh.y" { (yyval.l) = 0; } break; case 104: /* Line 1806 of yacc.c */ #line 1153 "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 105: /* Line 1806 of yacc.c */ #line 1165 "Gmsh.y" { for(int i = 0; i < 4; i++) (yyval.v)[i] = 0.; } break; case 106: /* Line 1806 of yacc.c */ #line 1169 "Gmsh.y" { for(int i = 0; i < 4; i++) (yyval.v)[i] = (yyvsp[(2) - (2)].v)[i]; } break; case 107: /* Line 1806 of yacc.c */ #line 1179 "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 108: /* Line 1806 of yacc.c */ #line 1202 "Gmsh.y" { curPhysDim = 0; } break; case 109: /* Line 1806 of yacc.c */ #line 1206 "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 110: /* Line 1806 of yacc.c */ #line 1222 "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 111: /* Line 1806 of yacc.c */ #line 1244 "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 112: /* Line 1806 of yacc.c */ #line 1262 "Gmsh.y" { for (int i = 0; i < List_Nbr((yyvsp[(3) - (4)].l)); i++){ double dnum; List_Read((yyvsp[(3) - (4)].l), i, &dnum); int num = (int) fabs(dnum); Curve *c = FindCurve(num); if (c){ c->degenerated = true; } else{ GEdge *ge = GModel::current()->getEdgeByTag(num); if (!ge){ yymsg(0, "Curve %d does not exist", num); } else{ ge->setTooSmall(true); } } } } break; case 113: /* Line 1806 of yacc.c */ #line 1283 "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 114: /* Line 1806 of yacc.c */ #line 1301 "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 115: /* Line 1806 of yacc.c */ #line 1331 "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 116: /* Line 1806 of yacc.c */ #line 1361 "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 117: /* Line 1806 of yacc.c */ #line 1379 "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 118: /* Line 1806 of yacc.c */ #line 1397 "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 119: /* Line 1806 of yacc.c */ #line 1423 "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)); Free((yyvsp[(2) - (8)].c)); (yyval.s).Type = MSH_SEGM_LOOP; (yyval.s).Num = num; } break; case 120: /* Line 1806 of yacc.c */ #line 1441 "Gmsh.y" { int num = (int)(yyvsp[(4) - (8)].d); if(FindCurve(num)){ yymsg(0, "Curve %d already exists", num); } else{ Curve *c = Create_Curve(num, MSH_SEGM_COMPOUND, 1, NULL, NULL, -1, -1, 0., 1.); for(int i = 0; i < List_Nbr((yyvsp[(7) - (8)].l)); i++) c->compound.push_back((int)*(double*)List_Pointer((yyvsp[(7) - (8)].l), i)); End_Curve(c); Tree_Add(GModel::current()->getGEOInternals()->Curves, &c); CreateReversedCurve(c); } List_Delete((yyvsp[(7) - (8)].l)); (yyval.s).Type = MSH_SEGM_COMPOUND; (yyval.s).Num = num; } break; case 121: /* Line 1806 of yacc.c */ #line 1459 "Gmsh.y" { curPhysDim = 1; } break; case 122: /* Line 1806 of yacc.c */ #line 1463 "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 123: /* Line 1806 of yacc.c */ #line 1482 "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 124: /* Line 1806 of yacc.c */ #line 1500 "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 125: /* Line 1806 of yacc.c */ #line 1539 "Gmsh.y" { myGmshSurface = 0; (yyval.s).Type = 0; (yyval.s).Num = 0; } break; case 126: /* Line 1806 of yacc.c */ #line 1545 "Gmsh.y" { myGmshSurface = gmshSurface::getSurface((int)(yyvsp[(3) - (4)].d)); (yyval.s).Type = 0; (yyval.s).Num = 0; } break; case 127: /* Line 1806 of yacc.c */ #line 1551 "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 128: /* Line 1806 of yacc.c */ #line 1558 "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 129: /* Line 1806 of yacc.c */ #line 1583 "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 130: /* Line 1806 of yacc.c */ #line 1608 "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)); Free((yyvsp[(2) - (8)].c)); (yyval.s).Type = MSH_SURF_LOOP; (yyval.s).Num = num; } break; case 131: /* Line 1806 of yacc.c */ #line 1625 "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_COMPOUND); for(int i = 0; i < List_Nbr((yyvsp[(7) - (8)].l)); i++){ s->compound.push_back((int)*(double*)List_Pointer((yyvsp[(7) - (8)].l), i)); } Tree_Add(GModel::current()->getGEOInternals()->Surfaces, &s); } List_Delete((yyvsp[(7) - (8)].l)); (yyval.s).Type = MSH_SURF_COMPOUND; (yyval.s).Num = num; } break; case 132: /* Line 1806 of yacc.c */ #line 1643 "Gmsh.y" { int num = (int)(yyvsp[(4) - (12)].d); if(FindSurface(num)){ yymsg(0, "Surface %d already exists", num); } else{ Surface *s = Create_Surface(num, MSH_SURF_COMPOUND); for(int i = 0; i < List_Nbr((yyvsp[(7) - (12)].l)); i++) s->compound.push_back((int)*(double*)List_Pointer((yyvsp[(7) - (12)].l), i)); for (int i = 0; i < List_Nbr((yyvsp[(10) - (12)].l)); i++){ if(i > 3){ yymsg(0, "Too many boundary specifiers in compound surface"); break; } List_T *l = *(List_T**)List_Pointer((yyvsp[(10) - (12)].l), i); for (int j = 0; j < List_Nbr(l); j++){ s->compoundBoundary[i].push_back((int)*(double*)List_Pointer(l, j)); } } Tree_Add(GModel::current()->getGEOInternals()->Surfaces, &s); } List_Delete((yyvsp[(7) - (12)].l)); for (int i = 0; i < List_Nbr((yyvsp[(10) - (12)].l)); i++) List_Delete(*(List_T**)List_Pointer((yyvsp[(10) - (12)].l), i)); List_Delete((yyvsp[(10) - (12)].l)); Free((yyvsp[(8) - (12)].c)); (yyval.s).Type = MSH_SURF_COMPOUND; (yyval.s).Num = num; } break; case 133: /* Line 1806 of yacc.c */ #line 1673 "Gmsh.y" { curPhysDim = 2; } break; case 134: /* Line 1806 of yacc.c */ #line 1677 "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 135: /* Line 1806 of yacc.c */ #line 1697 "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 136: /* Line 1806 of yacc.c */ #line 1715 "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 137: /* Line 1806 of yacc.c */ #line 1732 "Gmsh.y" { 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_COMPOUND); for(int i = 0; i < List_Nbr((yyvsp[(7) - (8)].l)); i++) v->compound.push_back((int)*(double*)List_Pointer((yyvsp[(7) - (8)].l), i)); Tree_Add(GModel::current()->getGEOInternals()->Volumes, &v); } List_Delete((yyvsp[(7) - (8)].l)); (yyval.s).Type = MSH_VOLUME_COMPOUND; (yyval.s).Num = num; } break; case 138: /* Line 1806 of yacc.c */ #line 1748 "Gmsh.y" { curPhysDim = 3; } break; case 139: /* Line 1806 of yacc.c */ #line 1752 "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 140: /* Line 1806 of yacc.c */ #line 1774 "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 141: /* Line 1806 of yacc.c */ #line 1779 "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 142: /* Line 1806 of yacc.c */ #line 1784 "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 143: /* Line 1806 of yacc.c */ #line 1789 "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 144: /* Line 1806 of yacc.c */ #line 1794 "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), false); } else if(!strcmp((yyvsp[(1) - (4)].c), "CombinedBoundary")){ BoundaryShapes((yyvsp[(3) - (4)].l), (yyval.l), true); } 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 145: /* Line 1806 of yacc.c */ #line 1817 "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 146: /* Line 1806 of yacc.c */ #line 1823 "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 147: /* Line 1806 of yacc.c */ #line 1833 "Gmsh.y" { (yyval.l) = (yyvsp[(1) - (1)].l); } break; case 148: /* Line 1806 of yacc.c */ #line 1834 "Gmsh.y" { (yyval.l) = (yyvsp[(1) - (1)].l); } break; case 149: /* Line 1806 of yacc.c */ #line 1839 "Gmsh.y" { (yyval.l) = List_Create(3, 3, sizeof(Shape)); } break; case 150: /* Line 1806 of yacc.c */ #line 1843 "Gmsh.y" { List_Add((yyval.l), &(yyvsp[(2) - (2)].s)); } break; case 151: /* Line 1806 of yacc.c */ #line 1847 "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 152: /* Line 1806 of yacc.c */ #line 1870 "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 153: /* Line 1806 of yacc.c */ #line 1893 "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 154: /* Line 1806 of yacc.c */ #line 1916 "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 155: /* Line 1806 of yacc.c */ #line 1944 "Gmsh.y" { #if defined(HAVE_DINTEGRATION) if(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 yymsg(0, "Wrong levelset definition (%d)", (yyvsp[(4) - (8)].d)); #endif } break; case 156: /* Line 1806 of yacc.c */ #line 1965 "Gmsh.y" { #if defined(HAVE_DINTEGRATION) int t = (int)(yyvsp[(4) - (10)].d); if(FindLevelSet(t)){ yymsg(0, "Levelset %d already exists", t); } else { //Msg::Info("nb = %d \n",List_Nbr($8) ); fullMatrix<double> centers(List_Nbr((yyvsp[(8) - (10)].l)),3); for (int i = 0; i < List_Nbr((yyvsp[(8) - (10)].l)); i++){ List_T *l = *(List_T**)List_Pointer((yyvsp[(8) - (10)].l), i); for (int j = 0; j < List_Nbr(l); j++){ //Msg::Info("nb j = %d \n",List_Nbr(l) ); centers(i,j) = (double)(*(double*)List_Pointer(l, j)); } } gLevelset *ls = new gLevelsetPoints(centers, t); LevelSet *l = Create_LevelSet(ls->getTag(), ls); Tree_Add(GModel::current()->getGEOInternals()->LevelSets, &l); } #endif } break; case 157: /* Line 1806 of yacc.c */ #line 1989 "Gmsh.y" { #if defined(HAVE_DINTEGRATION) if(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); } } else yymsg(0, "Wrong levelset definition (%d)", (yyvsp[(4) - (14)].d)); #endif } break; case 158: /* Line 1806 of yacc.c */ #line 2010 "Gmsh.y" { #if defined(HAVE_DINTEGRATION) if(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)); #endif } break; case 159: /* Line 1806 of yacc.c */ #line 2031 "Gmsh.y" { #if defined(HAVE_DINTEGRATION) if(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)); #endif } break; case 160: /* Line 1806 of yacc.c */ #line 2051 "Gmsh.y" { #if defined(HAVE_DINTEGRATION) 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<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, true); 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<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, true); 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<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, true); 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<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 if(!strcmp((yyvsp[(2) - (8)].c), "Reverse")){ int t = (int)(yyvsp[(4) - (8)].d); if(FindLevelSet(t)){ yymsg(0, "Levelset %d already exists", t); } else { double d; List_Read((yyvsp[(7) - (8)].l), 0, &d); LevelSet *pl = FindLevelSet((int)d); gLevelset *ls = NULL; if(!pl) yymsg(0, "Levelset Reverse %d : unknown levelset %d", t, (int)d); else ls = new gLevelsetReverse(pl->ls); LevelSet *l = Create_LevelSet(t, ls); Tree_Add(GModel::current()->getGEOInternals()->LevelSets, &l); } } #if defined(HAVE_POST) else if(!strcmp((yyvsp[(2) - (8)].c), "PostView")){ int t = (int)(yyvsp[(4) - (8)].d); if(FindLevelSet(t)){ yymsg(0, "Levelset %d already exists", t); } else { if(List_Nbr((yyvsp[(7) - (8)].l)) > 0){ double d; List_Read((yyvsp[(7) - (8)].l), 0, &d); gLevelset *ls = new gLevelsetPostView((int)d, t); LevelSet *l = Create_LevelSet(ls->getTag(), ls); Tree_Add(GModel::current()->getGEOInternals()->LevelSets, &l); } } } #endif else yymsg(0, "Wrong levelset definition (%d)", (yyvsp[(4) - (8)].d)); Free((yyvsp[(2) - (8)].c)); #endif } break; case 161: /* Line 1806 of yacc.c */ #line 2163 "Gmsh.y" { #if defined(HAVE_DINTEGRATION) if(!strcmp((yyvsp[(2) - (8)].c), "MathEval")){ int t = (int)(yyvsp[(4) - (8)].d); if(FindLevelSet(t)){ yymsg(0, "Levelset %d already exists", t); } else { gLevelset *ls = new gLevelsetMathEval((yyvsp[(7) - (8)].c), t); LevelSet *l = Create_LevelSet(ls->getTag(), ls); Tree_Add(GModel::current()->getGEOInternals()->LevelSets, &l); } } else yymsg(0, "Wrong levelset definition"); Free((yyvsp[(2) - (8)].c)); Free((yyvsp[(7) - (8)].c)); #endif } break; case 162: /* Line 1806 of yacc.c */ #line 2182 "Gmsh.y" { #if defined(HAVE_DINTEGRATION) if(!strcmp((yyvsp[(2) - (6)].c), "CutMesh")){ int t = (int)(yyvsp[(4) - (6)].d); GModel *GM = GModel::current(); if(FindLevelSet(t)){ GM->buildCutGModel(FindLevelSet(t)->ls, true, false); GM->setVisibility(0); } else yymsg(0, "Unknown levelset (%d)", t); } else if(!strcmp((yyvsp[(2) - (6)].c), "CutMeshTri")){ int t = (int)(yyvsp[(4) - (6)].d); GModel *GM = GModel::current(); if(FindLevelSet(t)){ GM->buildCutGModel(FindLevelSet(t)->ls, true, true); GM->setVisibility(0); } else yymsg(0, "Unknown levelset (%d)", t); } else if(!strcmp((yyvsp[(2) - (6)].c), "SplitMesh")){ int t = (int)(yyvsp[(4) - (6)].d); GModel *GM = GModel::current(); if(FindLevelSet(t)){ GM->buildCutGModel(FindLevelSet(t)->ls, false, true); GM->setVisibility(0); } else yymsg(0, "Unknown levelset (%d)", t); } else yymsg(0, "Wrong levelset definition"); Free((yyvsp[(2) - (6)].c)); #endif } break; case 163: /* Line 1806 of yacc.c */ #line 2221 "Gmsh.y" { #if defined(HAVE_DINTEGRATION) 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); } } else 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); } } else 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); } } else 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); } } else if(!strcmp((yyvsp[(2) - (14)].c), "Ellipsoid") && 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); } } else 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)); #endif } break; case 164: /* Line 1806 of yacc.c */ #line 2329 "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 165: /* Line 1806 of yacc.c */ #line 2338 "Gmsh.y" { #if defined(HAVE_MESH) GModel::current()->getFields()->deleteField((int)(yyvsp[(4) - (6)].d)); #endif } break; case 166: /* Line 1806 of yacc.c */ #line 2344 "Gmsh.y" { #if defined(HAVE_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 167: /* Line 1806 of yacc.c */ #line 2359 "Gmsh.y" { if(!strcmp((yyvsp[(2) - (3)].c), "Meshes") || !strcmp((yyvsp[(2) - (3)].c), "All")){ ClearProject(); } 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(!strcmp((yyvsp[(2) - (3)].c), "Options")){ ReInitOptions(0); InitOptionsGUI(0); } 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 168: /* Line 1806 of yacc.c */ #line 2387 "Gmsh.y" { #if defined(HAVE_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 169: /* Line 1806 of yacc.c */ #line 2404 "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 170: /* Line 1806 of yacc.c */ #line 2418 "Gmsh.y" { for(int i = 0; i < 4; i++) VisibilityShape((yyvsp[(2) - (3)].c), i, 1); Free((yyvsp[(2) - (3)].c)); } break; case 171: /* Line 1806 of yacc.c */ #line 2424 "Gmsh.y" { for(int i = 0; i < 4; i++) VisibilityShape((yyvsp[(2) - (3)].c), i, 0); Free((yyvsp[(2) - (3)].c)); } break; case 172: /* Line 1806 of yacc.c */ #line 2430 "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 173: /* Line 1806 of yacc.c */ #line 2439 "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 174: /* Line 1806 of yacc.c */ #line 2453 "Gmsh.y" { if(!strcmp((yyvsp[(1) - (3)].c), "Include")){ std::string tmp = FixRelativePath(gmsh_yyname, (yyvsp[(2) - (3)].c)); // 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'...", tmp.c_str()); ParseFile(tmp, false, true); SetBoundingBox(); Msg::StatusBar(2, true, "Done reading '%s'", tmp.c_str()); } else if(!strcmp((yyvsp[(1) - (3)].c), "Print")){ // 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(); std::string tmp = FixRelativePath(gmsh_yyname, (yyvsp[(2) - (3)].c)); CreateOutputFile(tmp, CTX::instance()->print.fileFormat); } else if(!strcmp((yyvsp[(1) - (3)].c), "Save")){ GModel::current()->importGEOInternals(); std::string tmp = FixRelativePath(gmsh_yyname, (yyvsp[(2) - (3)].c)); CreateOutputFile(tmp, CTX::instance()->mesh.fileFormat); } else if(!strcmp((yyvsp[(1) - (3)].c), "Merge") || !strcmp((yyvsp[(1) - (3)].c), "MergeWithBoundingBox")){ // MergeWithBoundingBox is deprecated std::string tmp = FixRelativePath(gmsh_yyname, (yyvsp[(2) - (3)].c)); MergeFile(tmp, true); } else if(!strcmp((yyvsp[(1) - (3)].c), "System")) SystemCall((yyvsp[(2) - (3)].c)); else if(!strcmp((yyvsp[(1) - (3)].c), "SetName")) GModel::current()->setName((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 175: /* Line 1806 of yacc.c */ #line 2495 "Gmsh.y" { #if defined(HAVE_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()){ std::string tmp = FixRelativePath(gmsh_yyname, (yyvsp[(6) - (7)].c)); PView::list[index]->write(tmp, 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 176: /* Line 1806 of yacc.c */ #line 2512 "Gmsh.y" { #if defined(HAVE_POST) && defined(HAVE_MESH) 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 177: /* Line 1806 of yacc.c */ #line 2527 "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 178: /* Line 1806 of yacc.c */ #line 2546 "Gmsh.y" { #if defined(HAVE_PLUGINS) 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 179: /* Line 1806 of yacc.c */ #line 2558 "Gmsh.y" { #if defined(HAVE_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 180: /* Line 1806 of yacc.c */ #line 2582 "Gmsh.y" { exit(0); } break; case 181: /* Line 1806 of yacc.c */ #line 2586 "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 182: /* Line 1806 of yacc.c */ #line 2593 "Gmsh.y" { CTX::instance()->forcedBBox = 0; GModel::current()->importGEOInternals(); SetBoundingBox(); } break; case 183: /* Line 1806 of yacc.c */ #line 2599 "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 184: /* Line 1806 of yacc.c */ #line 2604 "Gmsh.y" { #if defined(HAVE_OPENGL) drawContext::global()->draw(); #endif } break; case 185: /* Line 1806 of yacc.c */ #line 2610 "Gmsh.y" { GModel::current()->createTopologyFromMesh(); } break; case 186: /* Line 1806 of yacc.c */ #line 2614 "Gmsh.y" { GModel::current()->createTopologyFromMesh(1); } break; case 187: /* Line 1806 of yacc.c */ #line 2618 "Gmsh.y" { GModel::current()->importGEOInternals(); GModel::current()->refineMesh(CTX::instance()->mesh.secondOrderLinear); } break; case 188: /* Line 1806 of yacc.c */ #line 2628 "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 189: /* Line 1806 of yacc.c */ #line 2645 "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 190: /* Line 1806 of yacc.c */ #line 2662 "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_yysymbol &s(gmsh_yysymbols[(yyvsp[(2) - (8)].c)]); s.list = false; s.value.resize(1); s.value[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 191: /* Line 1806 of yacc.c */ #line 2683 "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_yysymbol &s(gmsh_yysymbols[(yyvsp[(2) - (10)].c)]); s.list = false; s.value.resize(1); s.value[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 192: /* Line 1806 of yacc.c */ #line 2704 "Gmsh.y" { if(ImbricatedLoop <= 0){ yymsg(0, "Invalid For/EndFor loop"); ImbricatedLoop = 0; } else{ double step = LoopControlVariablesTab[ImbricatedLoop - 1][2]; const char *name = LoopControlVariablesNameTab[ImbricatedLoop - 1]; if(name){ if(!gmsh_yysymbols.count(name)) yymsg(0, "Unknown loop variable '%s'", name); else{ gmsh_yysymbol &s(gmsh_yysymbols[name]); if(!s.list && s.value.size()){ s.value[0] += step; LoopControlVariablesTab[ImbricatedLoop - 1][0] = s.value[0]; } else yymsg(0, "Bad loop variable %s", name); } } else{ LoopControlVariablesTab[ImbricatedLoop - 1][0] += step; } double x0 = LoopControlVariablesTab[ImbricatedLoop - 1][0]; double x1 = LoopControlVariablesTab[ImbricatedLoop - 1][1]; if((step > 0. && x0 <= x1) || (step < 0. && x0 >= x1)){ fsetpos(gmsh_yyin, &yyposImbricatedLoopsTab[ImbricatedLoop - 1]); gmsh_yylineno = yylinenoImbricatedLoopsTab[ImbricatedLoop - 1]; } else ImbricatedLoop--; } } break; case 193: /* Line 1806 of yacc.c */ #line 2739 "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 194: /* Line 1806 of yacc.c */ #line 2747 "Gmsh.y" { if(!FunctionManager::Instance()->leaveFunction (&gmsh_yyin, gmsh_yyname, gmsh_yylineno)) yymsg(0, "Error while exiting function"); } break; case 195: /* Line 1806 of yacc.c */ #line 2753 "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 196: /* Line 1806 of yacc.c */ #line 2760 "Gmsh.y" { if(!(yyvsp[(3) - (4)].d)) skip_until("If", "EndIf"); } break; case 197: /* Line 1806 of yacc.c */ #line 2764 "Gmsh.y" { } break; case 198: /* Line 1806 of yacc.c */ #line 2773 "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 199: /* Line 1806 of yacc.c */ #line 2781 "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 200: /* Line 1806 of yacc.c */ #line 2789 "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 201: /* Line 1806 of yacc.c */ #line 2797 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; extr.mesh.QuadToTri = NO_QUADTRI; } break; case 202: /* Line 1806 of yacc.c */ #line 2802 "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 203: /* Line 1806 of yacc.c */ #line 2810 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; extr.mesh.QuadToTri = NO_QUADTRI; } break; case 204: /* Line 1806 of yacc.c */ #line 2815 "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 205: /* Line 1806 of yacc.c */ #line 2823 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; extr.mesh.QuadToTri = NO_QUADTRI; } break; case 206: /* Line 1806 of yacc.c */ #line 2828 "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 207: /* Line 1806 of yacc.c */ #line 2836 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; extr.mesh.QuadToTri = NO_QUADTRI; } break; case 208: /* Line 1806 of yacc.c */ #line 2841 "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 209: /* Line 1806 of yacc.c */ #line 2849 "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 210: /* Line 1806 of yacc.c */ #line 2856 "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 211: /* Line 1806 of yacc.c */ #line 2863 "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 212: /* Line 1806 of yacc.c */ #line 2870 "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 213: /* Line 1806 of yacc.c */ #line 2877 "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 214: /* Line 1806 of yacc.c */ #line 2884 "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 215: /* Line 1806 of yacc.c */ #line 2891 "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 216: /* Line 1806 of yacc.c */ #line 2898 "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 217: /* Line 1806 of yacc.c */ #line 2905 "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 218: /* Line 1806 of yacc.c */ #line 2912 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; extr.mesh.QuadToTri = NO_QUADTRI; } break; case 219: /* Line 1806 of yacc.c */ #line 2917 "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 220: /* Line 1806 of yacc.c */ #line 2924 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; extr.mesh.QuadToTri = NO_QUADTRI; } break; case 221: /* Line 1806 of yacc.c */ #line 2929 "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 222: /* Line 1806 of yacc.c */ #line 2936 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; extr.mesh.QuadToTri = NO_QUADTRI; } break; case 223: /* Line 1806 of yacc.c */ #line 2941 "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 224: /* Line 1806 of yacc.c */ #line 2948 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; extr.mesh.QuadToTri = NO_QUADTRI; } break; case 225: /* Line 1806 of yacc.c */ #line 2953 "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 226: /* Line 1806 of yacc.c */ #line 2960 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; extr.mesh.QuadToTri = NO_QUADTRI; } break; case 227: /* Line 1806 of yacc.c */ #line 2965 "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 228: /* Line 1806 of yacc.c */ #line 2972 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; extr.mesh.QuadToTri = NO_QUADTRI; } break; case 229: /* Line 1806 of yacc.c */ #line 2977 "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 230: /* Line 1806 of yacc.c */ #line 2984 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; extr.mesh.QuadToTri = NO_QUADTRI; } break; case 231: /* Line 1806 of yacc.c */ #line 2989 "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 232: /* Line 1806 of yacc.c */ #line 2996 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; extr.mesh.QuadToTri = NO_QUADTRI; } break; case 233: /* Line 1806 of yacc.c */ #line 3001 "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 234: /* Line 1806 of yacc.c */ #line 3008 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; extr.mesh.QuadToTri = NO_QUADTRI; } break; case 235: /* Line 1806 of yacc.c */ #line 3013 "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 236: /* Line 1806 of yacc.c */ #line 3024 "Gmsh.y" { } break; case 237: /* Line 1806 of yacc.c */ #line 3027 "Gmsh.y" { } break; case 238: /* Line 1806 of yacc.c */ #line 3033 "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 239: /* Line 1806 of yacc.c */ #line 3042 "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 240: /* Line 1806 of yacc.c */ #line 3062 "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 241: /* Line 1806 of yacc.c */ #line 3085 "Gmsh.y" { extr.mesh.Recombine = true; } break; case 242: /* Line 1806 of yacc.c */ #line 3089 "Gmsh.y" { extr.mesh.QuadToTri = QUADTRI_DBL_1; } break; case 243: /* Line 1806 of yacc.c */ #line 3093 "Gmsh.y" { extr.mesh.QuadToTri = QUADTRI_DBL_1_RECOMB; } break; case 244: /* Line 1806 of yacc.c */ #line 3097 "Gmsh.y" { extr.mesh.QuadToTri = QUADTRI_SNGL_1; } break; case 245: /* Line 1806 of yacc.c */ #line 3101 "Gmsh.y" { extr.mesh.QuadToTri = QUADTRI_SNGL_1_RECOMB; } break; case 246: /* Line 1806 of yacc.c */ #line 3105 "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 247: /* Line 1806 of yacc.c */ #line 3124 "Gmsh.y" { if(!strcmp((yyvsp[(2) - (6)].c), "Index")) extr.mesh.BoundaryLayerIndex = (yyvsp[(4) - (6)].d); else if(!strcmp((yyvsp[(2) - (6)].c), "View")) extr.mesh.ViewIndex = (yyvsp[(4) - (6)].d); Free((yyvsp[(2) - (6)].c)); } break; case 248: /* Line 1806 of yacc.c */ #line 3136 "Gmsh.y" { (yyval.v)[0] = (yyval.v)[1] = 1.; } break; case 249: /* Line 1806 of yacc.c */ #line 3140 "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 250: /* Line 1806 of yacc.c */ #line 3155 "Gmsh.y" { (yyval.i) = -1; // left } break; case 251: /* Line 1806 of yacc.c */ #line 3159 "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 252: /* Line 1806 of yacc.c */ #line 3171 "Gmsh.y" { (yyval.l) = List_Create(1, 1, sizeof(double)); } break; case 253: /* Line 1806 of yacc.c */ #line 3175 "Gmsh.y" { (yyval.l) = (yyvsp[(2) - (2)].l); } break; case 254: /* Line 1806 of yacc.c */ #line 3180 "Gmsh.y" { (yyval.i) = 45; } break; case 255: /* Line 1806 of yacc.c */ #line 3184 "Gmsh.y" { (yyval.i) = (int)(yyvsp[(2) - (2)].d); } break; case 256: /* Line 1806 of yacc.c */ #line 3191 "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 257: /* Line 1806 of yacc.c */ #line 3247 "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 258: /* Line 1806 of yacc.c */ #line 3317 "Gmsh.y" { yymsg(1, "Elliptic Surface is deprecated: use Transfinite instead (with smoothing)"); List_Delete((yyvsp[(7) - (8)].l)); } break; case 259: /* Line 1806 of yacc.c */ #line 3322 "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 260: /* Line 1806 of yacc.c */ #line 3389 "Gmsh.y" { if(!(yyvsp[(2) - (3)].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->QuadTri = TRANSFINITE_QUADTRI_1; } } else{ for(GModel::riter it = GModel::current()->firstRegion(); it != GModel::current()->lastRegion(); it++) (*it)->meshAttributes.QuadTri = TRANSFINITE_QUADTRI_1; } List_Delete(tmp); } else{ for(int i = 0; i < List_Nbr((yyvsp[(2) - (3)].l)); i++){ double d; List_Read((yyvsp[(2) - (3)].l), i, &d); Volume *v = FindVolume((int)d); if(v) v->QuadTri = TRANSFINITE_QUADTRI_1; else{ GRegion *gr = GModel::current()->getRegionByTag((int)d); if(gr) gr->meshAttributes.QuadTri = TRANSFINITE_QUADTRI_1; else yymsg(1, "Unknown region %d", (int)d); } } List_Delete((yyvsp[(2) - (3)].l)); } } break; case 261: /* Line 1806 of yacc.c */ #line 3425 "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 262: /* Line 1806 of yacc.c */ #line 3468 "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 263: /* Line 1806 of yacc.c */ #line 3493 "Gmsh.y" { if(List_Nbr((yyvsp[(5) - (6)].l)) != List_Nbr((yyvsp[(3) - (6)].l))){ yymsg(0, "Number of master (%d) different from number of slave (%d) lines", List_Nbr((yyvsp[(5) - (6)].l)), List_Nbr((yyvsp[(3) - (6)].l))); } else{ for(int i = 0; i < List_Nbr((yyvsp[(3) - (6)].l)); i++){ double d_master, d_slave; List_Read((yyvsp[(5) - (6)].l), i, &d_master); List_Read((yyvsp[(3) - (6)].l), i, &d_slave); int j_master = (int)d_master; int j_slave = (int)d_slave; Curve *c_slave = FindCurve(abs(j_slave)); if(c_slave){ c_slave->meshMaster = j_master; } else{ GEdge *ge = GModel::current()->getEdgeByTag(abs(j_slave)); if(ge) ge->setMeshMaster(j_master); else yymsg(0, "Unknown line %d", j_slave); } } } List_Delete((yyvsp[(3) - (6)].l)); List_Delete((yyvsp[(5) - (6)].l)); } break; case 264: /* Line 1806 of yacc.c */ #line 3521 "Gmsh.y" { if (List_Nbr((yyvsp[(5) - (12)].l)) != List_Nbr((yyvsp[(10) - (12)].l))){ yymsg(0, "Number of master surface edges (%d) different from number of " "slave (%d) edges", List_Nbr((yyvsp[(10) - (12)].l)), List_Nbr((yyvsp[(5) - (12)].l))); } else{ int j_master = (int)(yyvsp[(8) - (12)].d); int j_slave = (int)(yyvsp[(3) - (12)].d); Surface *s_slave = FindSurface(abs(j_slave)); if(s_slave){ s_slave->meshMaster = j_master; for (int i = 0; i < List_Nbr((yyvsp[(5) - (12)].l)); i++){ double dm, ds; List_Read((yyvsp[(5) - (12)].l), i, &ds); List_Read((yyvsp[(10) - (12)].l), i, &dm); s_slave->edgeCounterparts[(int)ds] = (int)dm; } } else{ GFace *gf = GModel::current()->getFaceByTag(abs(j_slave)); if(gf){ gf->setMeshMaster(j_master); for (int i = 0; i < List_Nbr((yyvsp[(5) - (12)].l)); i++){ double dm, ds; List_Read((yyvsp[(5) - (12)].l), i, &ds); List_Read((yyvsp[(10) - (12)].l), i, &dm); gf->edgeCounterparts[(int)ds] = (int)dm; } } else yymsg(0, "Unknown surface %d", j_slave); } } List_Delete((yyvsp[(5) - (12)].l)); List_Delete((yyvsp[(10) - (12)].l)); } break; case 265: /* Line 1806 of yacc.c */ #line 3564 "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 266: /* Line 1806 of yacc.c */ #line 3587 "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 267: /* Line 1806 of yacc.c */ #line 3610 "Gmsh.y" { } break; case 268: /* Line 1806 of yacc.c */ #line 3613 "Gmsh.y" { } break; case 269: /* Line 1806 of yacc.c */ #line 3622 "Gmsh.y" { ReplaceAllDuplicates(); } break; case 270: /* Line 1806 of yacc.c */ #line 3626 "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 271: /* Line 1806 of yacc.c */ #line 3636 "Gmsh.y" { if(List_Nbr((yyvsp[(4) - (6)].l)) >= 2){ double d; List_Read((yyvsp[(4) - (6)].l), 0, &d); Vertex *target = FindPoint((int)d); if(!target) yymsg(0, "Could not find Point %d", (int)d); else{ double x = target->Pos.X, y = target->Pos.Y, z = target->Pos.Z; for(int i = 1; i < List_Nbr((yyvsp[(4) - (6)].l)); i++){ List_Read((yyvsp[(4) - (6)].l), i, &d); Vertex *source = FindPoint((int)d); if(!source) yymsg(0, "Could not find Point %d", (int)d); if(target && source){ source->Typ = target->Typ; source->Pos.X = x; source->Pos.Y = y; source->Pos.Z = z; source->boundaryLayerIndex = target->boundaryLayerIndex; } } ExtrudeParams::normalsCoherence.push_back(SPoint3(x, y, z)); } } else yymsg(0, "Need at least two points to merge"); ReplaceAllDuplicates(); List_Delete((yyvsp[(4) - (6)].l)); } break; case 272: /* Line 1806 of yacc.c */ #line 3670 "Gmsh.y" { (yyval.c) = (char*)"Generators"; } break; case 273: /* Line 1806 of yacc.c */ #line 3671 "Gmsh.y" { (yyval.c) = (char*)"DualGenerators"; } break; case 274: /* Line 1806 of yacc.c */ #line 3676 "Gmsh.y" { std::vector<int> domain, subdomain; GModel::current()->addHomologyRequest((yyvsp[(1) - (2)].c), domain, subdomain); } break; case 275: /* Line 1806 of yacc.c */ #line 3681 "Gmsh.y" { std::vector<int> domain, subdomain; for(int i = 0; i < List_Nbr((yyvsp[(3) - (5)].l)); i++){ double d; List_Read((yyvsp[(3) - (5)].l), i, &d); domain.push_back((int)d); } GModel::current()->addHomologyRequest((yyvsp[(1) - (5)].c), domain, subdomain); List_Delete((yyvsp[(3) - (5)].l)); } break; case 276: /* Line 1806 of yacc.c */ #line 3692 "Gmsh.y" { std::vector<int> domain, subdomain; for(int i = 0; i < List_Nbr((yyvsp[(3) - (7)].l)); i++){ double d; List_Read((yyvsp[(3) - (7)].l), i, &d); domain.push_back((int)d); } for(int i = 0; i < List_Nbr((yyvsp[(5) - (7)].l)); i++){ double d; List_Read((yyvsp[(5) - (7)].l), i, &d); subdomain.push_back((int)d); } GModel::current()->addHomologyRequest((yyvsp[(1) - (7)].c), domain, subdomain); List_Delete((yyvsp[(3) - (7)].l)); List_Delete((yyvsp[(5) - (7)].l)); } break; case 277: /* Line 1806 of yacc.c */ #line 3713 "Gmsh.y" { (yyval.d) = (yyvsp[(1) - (1)].d); } break; case 278: /* Line 1806 of yacc.c */ #line 3714 "Gmsh.y" { (yyval.d) = (yyvsp[(2) - (3)].d); } break; case 279: /* Line 1806 of yacc.c */ #line 3715 "Gmsh.y" { (yyval.d) = -(yyvsp[(2) - (2)].d); } break; case 280: /* Line 1806 of yacc.c */ #line 3716 "Gmsh.y" { (yyval.d) = (yyvsp[(2) - (2)].d); } break; case 281: /* Line 1806 of yacc.c */ #line 3717 "Gmsh.y" { (yyval.d) = !(yyvsp[(2) - (2)].d); } break; case 282: /* Line 1806 of yacc.c */ #line 3718 "Gmsh.y" { (yyval.d) = (yyvsp[(1) - (3)].d) - (yyvsp[(3) - (3)].d); } break; case 283: /* Line 1806 of yacc.c */ #line 3719 "Gmsh.y" { (yyval.d) = (yyvsp[(1) - (3)].d) + (yyvsp[(3) - (3)].d); } break; case 284: /* Line 1806 of yacc.c */ #line 3720 "Gmsh.y" { (yyval.d) = (yyvsp[(1) - (3)].d) * (yyvsp[(3) - (3)].d); } break; case 285: /* Line 1806 of yacc.c */ #line 3722 "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 286: /* Line 1806 of yacc.c */ #line 3728 "Gmsh.y" { (yyval.d) = (int)(yyvsp[(1) - (3)].d) % (int)(yyvsp[(3) - (3)].d); } break; case 287: /* Line 1806 of yacc.c */ #line 3729 "Gmsh.y" { (yyval.d) = pow((yyvsp[(1) - (3)].d), (yyvsp[(3) - (3)].d)); } break; case 288: /* Line 1806 of yacc.c */ #line 3730 "Gmsh.y" { (yyval.d) = (yyvsp[(1) - (3)].d) < (yyvsp[(3) - (3)].d); } break; case 289: /* Line 1806 of yacc.c */ #line 3731 "Gmsh.y" { (yyval.d) = (yyvsp[(1) - (3)].d) > (yyvsp[(3) - (3)].d); } break; case 290: /* Line 1806 of yacc.c */ #line 3732 "Gmsh.y" { (yyval.d) = (yyvsp[(1) - (3)].d) <= (yyvsp[(3) - (3)].d); } break; case 291: /* Line 1806 of yacc.c */ #line 3733 "Gmsh.y" { (yyval.d) = (yyvsp[(1) - (3)].d) >= (yyvsp[(3) - (3)].d); } break; case 292: /* Line 1806 of yacc.c */ #line 3734 "Gmsh.y" { (yyval.d) = (yyvsp[(1) - (3)].d) == (yyvsp[(3) - (3)].d); } break; case 293: /* Line 1806 of yacc.c */ #line 3735 "Gmsh.y" { (yyval.d) = (yyvsp[(1) - (3)].d) != (yyvsp[(3) - (3)].d); } break; case 294: /* Line 1806 of yacc.c */ #line 3736 "Gmsh.y" { (yyval.d) = (yyvsp[(1) - (3)].d) && (yyvsp[(3) - (3)].d); } break; case 295: /* Line 1806 of yacc.c */ #line 3737 "Gmsh.y" { (yyval.d) = (yyvsp[(1) - (3)].d) || (yyvsp[(3) - (3)].d); } break; case 296: /* Line 1806 of yacc.c */ #line 3738 "Gmsh.y" { (yyval.d) = (yyvsp[(1) - (5)].d) ? (yyvsp[(3) - (5)].d) : (yyvsp[(5) - (5)].d); } break; case 297: /* Line 1806 of yacc.c */ #line 3739 "Gmsh.y" { (yyval.d) = exp((yyvsp[(3) - (4)].d)); } break; case 298: /* Line 1806 of yacc.c */ #line 3740 "Gmsh.y" { (yyval.d) = log((yyvsp[(3) - (4)].d)); } break; case 299: /* Line 1806 of yacc.c */ #line 3741 "Gmsh.y" { (yyval.d) = log10((yyvsp[(3) - (4)].d)); } break; case 300: /* Line 1806 of yacc.c */ #line 3742 "Gmsh.y" { (yyval.d) = sqrt((yyvsp[(3) - (4)].d)); } break; case 301: /* Line 1806 of yacc.c */ #line 3743 "Gmsh.y" { (yyval.d) = sin((yyvsp[(3) - (4)].d)); } break; case 302: /* Line 1806 of yacc.c */ #line 3744 "Gmsh.y" { (yyval.d) = asin((yyvsp[(3) - (4)].d)); } break; case 303: /* Line 1806 of yacc.c */ #line 3745 "Gmsh.y" { (yyval.d) = cos((yyvsp[(3) - (4)].d)); } break; case 304: /* Line 1806 of yacc.c */ #line 3746 "Gmsh.y" { (yyval.d) = acos((yyvsp[(3) - (4)].d)); } break; case 305: /* Line 1806 of yacc.c */ #line 3747 "Gmsh.y" { (yyval.d) = tan((yyvsp[(3) - (4)].d)); } break; case 306: /* Line 1806 of yacc.c */ #line 3748 "Gmsh.y" { (yyval.d) = atan((yyvsp[(3) - (4)].d)); } break; case 307: /* Line 1806 of yacc.c */ #line 3749 "Gmsh.y" { (yyval.d) = atan2((yyvsp[(3) - (6)].d), (yyvsp[(5) - (6)].d));} break; case 308: /* Line 1806 of yacc.c */ #line 3750 "Gmsh.y" { (yyval.d) = sinh((yyvsp[(3) - (4)].d)); } break; case 309: /* Line 1806 of yacc.c */ #line 3751 "Gmsh.y" { (yyval.d) = cosh((yyvsp[(3) - (4)].d)); } break; case 310: /* Line 1806 of yacc.c */ #line 3752 "Gmsh.y" { (yyval.d) = tanh((yyvsp[(3) - (4)].d)); } break; case 311: /* Line 1806 of yacc.c */ #line 3753 "Gmsh.y" { (yyval.d) = fabs((yyvsp[(3) - (4)].d)); } break; case 312: /* Line 1806 of yacc.c */ #line 3754 "Gmsh.y" { (yyval.d) = floor((yyvsp[(3) - (4)].d)); } break; case 313: /* Line 1806 of yacc.c */ #line 3755 "Gmsh.y" { (yyval.d) = ceil((yyvsp[(3) - (4)].d)); } break; case 314: /* Line 1806 of yacc.c */ #line 3756 "Gmsh.y" { (yyval.d) = fmod((yyvsp[(3) - (6)].d), (yyvsp[(5) - (6)].d)); } break; case 315: /* Line 1806 of yacc.c */ #line 3757 "Gmsh.y" { (yyval.d) = fmod((yyvsp[(3) - (6)].d), (yyvsp[(5) - (6)].d)); } break; case 316: /* Line 1806 of yacc.c */ #line 3758 "Gmsh.y" { (yyval.d) = sqrt((yyvsp[(3) - (6)].d) * (yyvsp[(3) - (6)].d) + (yyvsp[(5) - (6)].d) * (yyvsp[(5) - (6)].d)); } break; case 317: /* Line 1806 of yacc.c */ #line 3759 "Gmsh.y" { (yyval.d) = (yyvsp[(3) - (4)].d) * (double)rand() / (double)RAND_MAX; } break; case 318: /* Line 1806 of yacc.c */ #line 3761 "Gmsh.y" { (yyval.d) = exp((yyvsp[(3) - (4)].d)); } break; case 319: /* Line 1806 of yacc.c */ #line 3762 "Gmsh.y" { (yyval.d) = log((yyvsp[(3) - (4)].d)); } break; case 320: /* Line 1806 of yacc.c */ #line 3763 "Gmsh.y" { (yyval.d) = log10((yyvsp[(3) - (4)].d)); } break; case 321: /* Line 1806 of yacc.c */ #line 3764 "Gmsh.y" { (yyval.d) = sqrt((yyvsp[(3) - (4)].d)); } break; case 322: /* Line 1806 of yacc.c */ #line 3765 "Gmsh.y" { (yyval.d) = sin((yyvsp[(3) - (4)].d)); } break; case 323: /* Line 1806 of yacc.c */ #line 3766 "Gmsh.y" { (yyval.d) = asin((yyvsp[(3) - (4)].d)); } break; case 324: /* Line 1806 of yacc.c */ #line 3767 "Gmsh.y" { (yyval.d) = cos((yyvsp[(3) - (4)].d)); } break; case 325: /* Line 1806 of yacc.c */ #line 3768 "Gmsh.y" { (yyval.d) = acos((yyvsp[(3) - (4)].d)); } break; case 326: /* Line 1806 of yacc.c */ #line 3769 "Gmsh.y" { (yyval.d) = tan((yyvsp[(3) - (4)].d)); } break; case 327: /* Line 1806 of yacc.c */ #line 3770 "Gmsh.y" { (yyval.d) = atan((yyvsp[(3) - (4)].d)); } break; case 328: /* Line 1806 of yacc.c */ #line 3771 "Gmsh.y" { (yyval.d) = atan2((yyvsp[(3) - (6)].d), (yyvsp[(5) - (6)].d));} break; case 329: /* Line 1806 of yacc.c */ #line 3772 "Gmsh.y" { (yyval.d) = sinh((yyvsp[(3) - (4)].d)); } break; case 330: /* Line 1806 of yacc.c */ #line 3773 "Gmsh.y" { (yyval.d) = cosh((yyvsp[(3) - (4)].d)); } break; case 331: /* Line 1806 of yacc.c */ #line 3774 "Gmsh.y" { (yyval.d) = tanh((yyvsp[(3) - (4)].d)); } break; case 332: /* Line 1806 of yacc.c */ #line 3775 "Gmsh.y" { (yyval.d) = fabs((yyvsp[(3) - (4)].d)); } break; case 333: /* Line 1806 of yacc.c */ #line 3776 "Gmsh.y" { (yyval.d) = floor((yyvsp[(3) - (4)].d)); } break; case 334: /* Line 1806 of yacc.c */ #line 3777 "Gmsh.y" { (yyval.d) = ceil((yyvsp[(3) - (4)].d)); } break; case 335: /* Line 1806 of yacc.c */ #line 3778 "Gmsh.y" { (yyval.d) = fmod((yyvsp[(3) - (6)].d), (yyvsp[(5) - (6)].d)); } break; case 336: /* Line 1806 of yacc.c */ #line 3779 "Gmsh.y" { (yyval.d) = fmod((yyvsp[(3) - (6)].d), (yyvsp[(5) - (6)].d)); } break; case 337: /* Line 1806 of yacc.c */ #line 3780 "Gmsh.y" { (yyval.d) = sqrt((yyvsp[(3) - (6)].d) * (yyvsp[(3) - (6)].d) + (yyvsp[(5) - (6)].d) * (yyvsp[(5) - (6)].d)); } break; case 338: /* Line 1806 of yacc.c */ #line 3781 "Gmsh.y" { (yyval.d) = (yyvsp[(3) - (4)].d) * (double)rand() / (double)RAND_MAX; } break; case 339: /* Line 1806 of yacc.c */ #line 3790 "Gmsh.y" { (yyval.d) = (yyvsp[(1) - (1)].d); } break; case 340: /* Line 1806 of yacc.c */ #line 3791 "Gmsh.y" { (yyval.d) = 3.141592653589793; } break; case 341: /* Line 1806 of yacc.c */ #line 3792 "Gmsh.y" { (yyval.d) = Msg::GetCommRank(); } break; case 342: /* Line 1806 of yacc.c */ #line 3793 "Gmsh.y" { (yyval.d) = Msg::GetCommSize(); } break; case 343: /* Line 1806 of yacc.c */ #line 3794 "Gmsh.y" { (yyval.d) = GetGmshMajorVersion(); } break; case 344: /* Line 1806 of yacc.c */ #line 3795 "Gmsh.y" { (yyval.d) = GetGmshMinorVersion(); } break; case 345: /* Line 1806 of yacc.c */ #line 3796 "Gmsh.y" { (yyval.d) = GetGmshPatchVersion(); } break; case 346: /* Line 1806 of yacc.c */ #line 3801 "Gmsh.y" { if(!gmsh_yysymbols.count((yyvsp[(1) - (1)].c))){ yymsg(0, "Unknown variable '%s'", (yyvsp[(1) - (1)].c)); (yyval.d) = 0.; } else{ gmsh_yysymbol &s(gmsh_yysymbols[(yyvsp[(1) - (1)].c)]); if(s.value.empty()){ yymsg(0, "Uninitialized variable '%s'", (yyvsp[(1) - (1)].c)); (yyval.d) = 0.; } else (yyval.d) = s.value[0]; } Free((yyvsp[(1) - (1)].c)); } break; case 347: /* Line 1806 of yacc.c */ #line 3821 "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{ gmsh_yysymbol &s(gmsh_yysymbols[tmpstring]); if(s.value.empty()){ yymsg(0, "Uninitialized variable '%s'", tmpstring); (yyval.d) = 0.; } else (yyval.d) = s.value[0]; } Free((yyvsp[(1) - (5)].c)); } break; case 348: /* Line 1806 of yacc.c */ #line 3840 "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{ gmsh_yysymbol &s(gmsh_yysymbols[(yyvsp[(1) - (4)].c)]); if((int)s.value.size() < index + 1){ yymsg(0, "Uninitialized variable '%s[%d]'", (yyvsp[(1) - (4)].c), index); (yyval.d) = 0.; } else (yyval.d) = s.value[index]; } Free((yyvsp[(1) - (4)].c)); } break; case 349: /* Line 1806 of yacc.c */ #line 3858 "Gmsh.y" { if(!gmsh_yysymbols.count((yyvsp[(2) - (4)].c))){ yymsg(0, "Unknown variable '%s'", (yyvsp[(2) - (4)].c)); (yyval.d) = 0.; } else{ gmsh_yysymbol &s(gmsh_yysymbols[(yyvsp[(2) - (4)].c)]); (yyval.d) = s.value.size(); } Free((yyvsp[(2) - (4)].c)); } break; case 350: /* Line 1806 of yacc.c */ #line 3870 "Gmsh.y" { if(!gmsh_yysymbols.count((yyvsp[(1) - (2)].c))){ yymsg(0, "Unknown variable '%s'", (yyvsp[(1) - (2)].c)); (yyval.d) = 0.; } else{ gmsh_yysymbol &s(gmsh_yysymbols[(yyvsp[(1) - (2)].c)]); if(s.value.empty()){ yymsg(0, "Uninitialized variable '%s'", (yyvsp[(1) - (2)].c)); (yyval.d) = 0.; } else (yyval.d) = (s.value[0] += (yyvsp[(2) - (2)].i)); } Free((yyvsp[(1) - (2)].c)); } break; case 351: /* Line 1806 of yacc.c */ #line 3887 "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{ gmsh_yysymbol &s(gmsh_yysymbols[(yyvsp[(1) - (5)].c)]); if((int)s.value.size() < index + 1){ yymsg(0, "Uninitialized variable '%s[%d]'", (yyvsp[(1) - (5)].c), index); (yyval.d) = 0.; } else (yyval.d) = (s.value[index] += (yyvsp[(5) - (5)].i)); } Free((yyvsp[(1) - (5)].c)); } break; case 352: /* Line 1806 of yacc.c */ #line 3908 "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 353: /* Line 1806 of yacc.c */ #line 3913 "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 354: /* Line 1806 of yacc.c */ #line 3918 "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 355: /* Line 1806 of yacc.c */ #line 3928 "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 356: /* Line 1806 of yacc.c */ #line 3938 "Gmsh.y" { (yyval.d) = Msg::GetValue((yyvsp[(3) - (6)].c), (yyvsp[(5) - (6)].d)); Free((yyvsp[(3) - (6)].c)); } break; case 357: /* Line 1806 of yacc.c */ #line 3946 "Gmsh.y" { memcpy((yyval.v), (yyvsp[(1) - (1)].v), 5*sizeof(double)); } break; case 358: /* Line 1806 of yacc.c */ #line 3950 "Gmsh.y" { for(int i = 0; i < 5; i++) (yyval.v)[i] = -(yyvsp[(2) - (2)].v)[i]; } break; case 359: /* Line 1806 of yacc.c */ #line 3954 "Gmsh.y" { for(int i = 0; i < 5; i++) (yyval.v)[i] = (yyvsp[(2) - (2)].v)[i]; } break; case 360: /* Line 1806 of yacc.c */ #line 3958 "Gmsh.y" { for(int i = 0; i < 5; i++) (yyval.v)[i] = (yyvsp[(1) - (3)].v)[i] - (yyvsp[(3) - (3)].v)[i]; } break; case 361: /* Line 1806 of yacc.c */ #line 3962 "Gmsh.y" { for(int i = 0; i < 5; i++) (yyval.v)[i] = (yyvsp[(1) - (3)].v)[i] + (yyvsp[(3) - (3)].v)[i]; } break; case 362: /* Line 1806 of yacc.c */ #line 3969 "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 363: /* Line 1806 of yacc.c */ #line 3973 "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 364: /* Line 1806 of yacc.c */ #line 3977 "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 365: /* Line 1806 of yacc.c */ #line 3981 "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 366: /* Line 1806 of yacc.c */ #line 3988 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(List_T*)); List_Add((yyval.l), &((yyvsp[(1) - (1)].l))); } break; case 367: /* Line 1806 of yacc.c */ #line 3993 "Gmsh.y" { List_Add((yyval.l), &((yyvsp[(3) - (3)].l))); } break; case 368: /* Line 1806 of yacc.c */ #line 4000 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(double)); List_Add((yyval.l), &((yyvsp[(1) - (1)].d))); } break; case 369: /* Line 1806 of yacc.c */ #line 4005 "Gmsh.y" { (yyval.l) = (yyvsp[(1) - (1)].l); } break; case 370: /* Line 1806 of yacc.c */ #line 4009 "Gmsh.y" { // creates an empty list (yyval.l) = List_Create(2, 1, sizeof(double)); } break; case 371: /* Line 1806 of yacc.c */ #line 4014 "Gmsh.y" { (yyval.l) = (yyvsp[(2) - (3)].l); } break; case 372: /* Line 1806 of yacc.c */ #line 4018 "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 373: /* Line 1806 of yacc.c */ #line 4026 "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 374: /* Line 1806 of yacc.c */ #line 4037 "Gmsh.y" { (yyval.l) = (yyvsp[(1) - (1)].l); } break; case 375: /* Line 1806 of yacc.c */ #line 4041 "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 376: /* Line 1806 of yacc.c */ #line 4053 "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 377: /* Line 1806 of yacc.c */ #line 4061 "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 378: /* Line 1806 of yacc.c */ #line 4069 "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 379: /* Line 1806 of yacc.c */ #line 4076 "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 380: /* Line 1806 of yacc.c */ #line 4087 "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 381: /* Line 1806 of yacc.c */ #line 4107 "Gmsh.y" { (yyval.l) = GetAllEntityNumbers(0); } break; case 382: /* Line 1806 of yacc.c */ #line 4111 "Gmsh.y" { (yyval.l) = GetAllEntityNumbers(1); } break; case 383: /* Line 1806 of yacc.c */ #line 4115 "Gmsh.y" { (yyval.l) = GetAllEntityNumbers(2); } break; case 384: /* Line 1806 of yacc.c */ #line 4119 "Gmsh.y" { (yyval.l) = GetAllEntityNumbers(3); } break; case 385: /* Line 1806 of yacc.c */ #line 4123 "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 386: /* Line 1806 of yacc.c */ #line 4133 "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 387: /* Line 1806 of yacc.c */ #line 4143 "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{ gmsh_yysymbol &s(gmsh_yysymbols[(yyvsp[(1) - (3)].c)]); for(unsigned int i = 0; i < s.value.size(); i++) List_Add((yyval.l), &s.value[i]); } Free((yyvsp[(1) - (3)].c)); } break; case 388: /* Line 1806 of yacc.c */ #line 4155 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(double)); if(!gmsh_yysymbols.count((yyvsp[(3) - (4)].c))) yymsg(0, "Unknown variable '%s'", (yyvsp[(3) - (4)].c)); else{ gmsh_yysymbol &s(gmsh_yysymbols[(yyvsp[(3) - (4)].c)]); for(unsigned int i = 0; i < s.value.size(); i++) List_Add((yyval.l), &s.value[i]); } Free((yyvsp[(3) - (4)].c)); } break; case 389: /* Line 1806 of yacc.c */ #line 4167 "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{ gmsh_yysymbol &s(gmsh_yysymbols[(yyvsp[(1) - (6)].c)]); 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)s.value.size() < index + 1) yymsg(0, "Uninitialized variable '%s[%d]'", (yyvsp[(1) - (6)].c), index); else List_Add((yyval.l), &s.value[index]); } } Free((yyvsp[(1) - (6)].c)); List_Delete((yyvsp[(4) - (6)].l)); } break; case 390: /* Line 1806 of yacc.c */ #line 4188 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(double)); List_Add((yyval.l), &((yyvsp[(1) - (1)].d))); } break; case 391: /* Line 1806 of yacc.c */ #line 4193 "Gmsh.y" { (yyval.l) = (yyvsp[(1) - (1)].l); } break; case 392: /* Line 1806 of yacc.c */ #line 4197 "Gmsh.y" { List_Add((yyval.l), &((yyvsp[(3) - (3)].d))); } break; case 393: /* Line 1806 of yacc.c */ #line 4201 "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 394: /* Line 1806 of yacc.c */ #line 4213 "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 395: /* Line 1806 of yacc.c */ #line 4217 "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 396: /* Line 1806 of yacc.c */ #line 4229 "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 397: /* Line 1806 of yacc.c */ #line 4236 "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 398: /* Line 1806 of yacc.c */ #line 4246 "Gmsh.y" { (yyval.l) = (yyvsp[(2) - (3)].l); } break; case 399: /* Line 1806 of yacc.c */ #line 4250 "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 400: /* Line 1806 of yacc.c */ #line 4265 "Gmsh.y" { (yyval.l) = List_Create(256, 10, sizeof(unsigned int)); List_Add((yyval.l), &((yyvsp[(1) - (1)].u))); } break; case 401: /* Line 1806 of yacc.c */ #line 4270 "Gmsh.y" { List_Add((yyval.l), &((yyvsp[(3) - (3)].u))); } break; case 402: /* Line 1806 of yacc.c */ #line 4277 "Gmsh.y" { (yyval.c) = (yyvsp[(1) - (1)].c); } break; case 403: /* Line 1806 of yacc.c */ #line 4281 "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 404: /* Line 1806 of yacc.c */ #line 4294 "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 405: /* Line 1806 of yacc.c */ #line 4302 "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 406: /* Line 1806 of yacc.c */ #line 4313 "Gmsh.y" { (yyval.c) = (yyvsp[(1) - (1)].c); } break; case 407: /* Line 1806 of yacc.c */ #line 4317 "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 408: /* Line 1806 of yacc.c */ #line 4325 "Gmsh.y" { const char *env = GetEnvironmentVar((yyvsp[(3) - (4)].c)); if(!env) env = ""; (yyval.c) = (char *)Malloc((sizeof(env) + 1) * sizeof(char)); strcpy((yyval.c), env); Free((yyvsp[(3) - (4)].c)); } break; case 409: /* Line 1806 of yacc.c */ #line 4333 "Gmsh.y" { std::string s = Msg::GetString((yyvsp[(3) - (6)].c), (yyvsp[(5) - (6)].c)); (yyval.c) = (char *)Malloc((s.size() + 1) * sizeof(char)); strcpy((yyval.c), s.c_str()); Free((yyvsp[(3) - (6)].c)); Free((yyvsp[(5) - (6)].c)); } break; case 410: /* Line 1806 of yacc.c */ #line 4341 "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 411: /* Line 1806 of yacc.c */ #line 4349 "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 412: /* Line 1806 of yacc.c */ #line 4363 "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 413: /* Line 1806 of yacc.c */ #line 4377 "Gmsh.y" { (yyval.c) = (yyvsp[(3) - (4)].c); } break; case 414: /* Line 1806 of yacc.c */ #line 4381 "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 1806 of yacc.c */ #line 10030 "Gmsh.tab.cpp" default: break; } /* User semantic actions sometimes alter yychar, and that requires that yytoken be updated with the new translation. We take the approach of translating immediately before every use of yytoken. One alternative is translating here after every semantic action, but that translation would be missed if the semantic action invokes YYABORT, YYACCEPT, or YYERROR immediately after altering yychar or if it invokes YYBACKUP. In the case of YYABORT or YYACCEPT, an incorrect destructor might then be invoked immediately. In the case of YYERROR or YYBACKUP, subsequent parser actions might lead to an incorrect destructor call or verbose syntax error message before the lookahead is translated. */ YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc); YYPOPSTACK (yylen); yylen = 0; YY_STACK_PRINT (yyss, yyssp); *++yyvsp = yyval; /* Now `shift' the result of the reduction. Determine what state that goes to, based on the state we popped back to and the rule number reduced by. */ 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: /* Make sure we have latest lookahead translation. See comments at user semantic actions for why this is necessary. */ yytoken = yychar == YYEMPTY ? YYEMPTY : YYTRANSLATE (yychar); /* If not already recovering from an error, report this error. */ if (!yyerrstatus) { ++yynerrs; #if ! YYERROR_VERBOSE yyerror (YY_("syntax error")); #else # define YYSYNTAX_ERROR yysyntax_error (&yymsg_alloc, &yymsg, \ yyssp, yytoken) { char const *yymsgp = YY_("syntax error"); int yysyntax_error_status; yysyntax_error_status = YYSYNTAX_ERROR; if (yysyntax_error_status == 0) yymsgp = yymsg; else if (yysyntax_error_status == 1) { if (yymsg != yymsgbuf) YYSTACK_FREE (yymsg); yymsg = (char *) YYSTACK_ALLOC (yymsg_alloc); if (!yymsg) { yymsg = yymsgbuf; yymsg_alloc = sizeof yymsgbuf; yysyntax_error_status = 2; } else { yysyntax_error_status = YYSYNTAX_ERROR; yymsgp = yymsg; } } yyerror (yymsgp); if (yysyntax_error_status == 2) goto yyexhaustedlab; } # undef YYSYNTAX_ERROR #endif } if (yyerrstatus == 3) { /* If just tried and failed to reuse lookahead token after an error, discard it. */ if (yychar <= YYEOF) { /* Return failure if at end of input. */ if (yychar == YYEOF) YYABORT; } else { yydestruct ("Error: discarding", yytoken, &yylval); yychar = YYEMPTY; } } /* Else will try to reuse lookahead token after shifting the error token. */ goto yyerrlab1; /*---------------------------------------------------. | yyerrorlab -- error raised explicitly by YYERROR. | `---------------------------------------------------*/ yyerrorlab: /* Pacify compilers 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 (!yypact_value_is_default (yyn)) { yyn += YYTERROR; if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR) { yyn = yytable[yyn]; if (0 < yyn) break; } } /* Pop the current state because it cannot handle the error token. */ if (yyssp == yyss) YYABORT; yydestruct ("Error: popping", yystos[yystate], yyvsp); YYPOPSTACK (1); yystate = *yyssp; YY_STACK_PRINT (yyss, yyssp); } *++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; #if !defined(yyoverflow) || YYERROR_VERBOSE /*-------------------------------------------------. | yyexhaustedlab -- memory exhaustion comes here. | `-------------------------------------------------*/ yyexhaustedlab: yyerror (YY_("memory exhausted")); yyresult = 2; /* Fall through. */ #endif yyreturn: if (yychar != YYEMPTY) { /* Make sure we have latest lookahead translation. See comments at user semantic actions for why this is necessary. */ yytoken = YYTRANSLATE (yychar); yydestruct ("Cleanup: discarding lookahead", yytoken, &yylval); } /* Do not reclaim the symbols of the rule 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 2067 of yacc.c */ #line 4401 "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; } fullMatrix<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)); } fullMatrix<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 yyerror(const 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); }