/* A Bison parser, made by GNU Bison 2.4.3. */ /* Skeleton implementation for Bison's Yacc-like parsers in C Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009, 2010 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.4.3" /* 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 189 of yacc.c */ #line 1 "Gmsh.y" // Gmsh - Copyright (C) 1997-2013 C. Geuzaine, J.-F. Remacle // // See the LICENSE.txt file for license information. Please report all // bugs and problems to the public mailing list <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 "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" #include "HighOrder.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); struct doubleXstring{ double d; char *s; }; /* Line 189 of yacc.c */ #line 173 "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, tError = 292, tSprintf = 293, tStrCat = 294, tStrPrefix = 295, tStrRelative = 296, tStrFind = 297, tTextAttributes = 298, tBoundingBox = 299, tDraw = 300, tToday = 301, tSyncModel = 302, tCreateTopology = 303, tCreateTopologyNoHoles = 304, tDistanceFunction = 305, tDefineConstant = 306, tUndefineConstant = 307, tPoint = 308, tCircle = 309, tEllipse = 310, tLine = 311, tSphere = 312, tPolarSphere = 313, tSurface = 314, tSpline = 315, tVolume = 316, tCharacteristic = 317, tLength = 318, tParametric = 319, tElliptic = 320, tRefineMesh = 321, tPlane = 322, tRuled = 323, tTransfinite = 324, tComplex = 325, tPhysical = 326, tCompound = 327, tPeriodic = 328, tUsing = 329, tPlugin = 330, tDegenerated = 331, tRotate = 332, tTranslate = 333, tSymmetry = 334, tDilate = 335, tExtrude = 336, tLevelset = 337, tRecombine = 338, tSmoother = 339, tSplit = 340, tDelete = 341, tCoherence = 342, tIntersect = 343, tMeshAlgorithm = 344, tReverse = 345, tLayers = 346, tHole = 347, tAlias = 348, tAliasWithOptions = 349, tQuadTriDbl = 350, tQuadTriSngl = 351, tRecombLaterals = 352, tTransfQuadTri = 353, tText2D = 354, tText3D = 355, tInterpolationScheme = 356, tTime = 357, tCombine = 358, tBSpline = 359, tBezier = 360, tNurbs = 361, tNurbsOrder = 362, tNurbsKnots = 363, tColor = 364, tColorTable = 365, tFor = 366, tIn = 367, tEndFor = 368, tIf = 369, tEndIf = 370, tExit = 371, tAbort = 372, tField = 373, tReturn = 374, tCall = 375, tFunction = 376, tShow = 377, tHide = 378, tGetValue = 379, tGetEnv = 380, tGetString = 381, tHomology = 382, tCohomology = 383, tBetti = 384, tSetOrder = 385, tGMSH_MAJOR_VERSION = 386, tGMSH_MINOR_VERSION = 387, tGMSH_PATCH_VERSION = 388, tAFFECTDIVIDE = 389, tAFFECTTIMES = 390, tAFFECTMINUS = 391, tAFFECTPLUS = 392, tOR = 393, tAND = 394, tNOTEQUAL = 395, tEQUAL = 396, tGREATEROREQUAL = 397, tLESSOREQUAL = 398, UNARYPREC = 399, tMINUSMINUS = 400, tPLUSPLUS = 401 }; #endif #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED typedef union YYSTYPE { /* Line 214 of yacc.c */ #line 93 "Gmsh.y" char *c; int i; unsigned int u; double d; double v[5]; Shape s; List_T *l; /* Line 214 of yacc.c */ #line 367 "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 264 of yacc.c */ #line 379 "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 _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) # include <stdlib.h> /* INFRINGES ON USER NAME SPACE */ # ifndef _STDLIB_H # define _STDLIB_H 1 # endif # endif # endif # endif # endif # ifdef YYSTACK_ALLOC /* Pacify GCC's `empty if-body' warning. */ # define YYSTACK_FREE(Ptr) do { /* empty */; } while (YYID (0)) # ifndef YYSTACK_ALLOC_MAXIMUM /* The OS might guarantee only one guard page at the bottom of the stack, and a page size can be as small as 4096 bytes. So we cannot safely invoke alloca (N) if N exceeds 4096. Use a slightly smaller number to allow for a few compiler-allocated temporary stack slots. */ # define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */ # endif # else # define YYSTACK_ALLOC YYMALLOC # define YYSTACK_FREE YYFREE # ifndef YYSTACK_ALLOC_MAXIMUM # define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM # endif # if (defined __cplusplus && ! defined _STDLIB_H \ && ! ((defined YYMALLOC || defined malloc) \ && (defined YYFREE || defined free))) # include <stdlib.h> /* INFRINGES ON USER NAME SPACE */ # ifndef _STDLIB_H # define _STDLIB_H 1 # endif # endif # ifndef YYMALLOC # define YYMALLOC malloc # if ! defined malloc && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */ # endif # endif # ifndef YYFREE # define YYFREE free # if ! defined free && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) void free (void *); /* INFRINGES ON USER NAME SPACE */ # endif # endif # endif #endif /* ! defined yyoverflow || YYERROR_VERBOSE */ #if (! defined yyoverflow \ && (! defined __cplusplus \ || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL))) /* A type that is properly aligned for any stack member. */ union yyalloc { yytype_int16 yyss_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) /* Copy COUNT objects from FROM to TO. The source and destination do not overlap. */ # ifndef YYCOPY # if defined __GNUC__ && 1 < __GNUC__ # define YYCOPY(To, From, Count) \ __builtin_memcpy (To, From, (Count) * sizeof (*(From))) # else # define YYCOPY(To, From, Count) \ do \ { \ YYSIZE_T yyi; \ for (yyi = 0; yyi < (Count); yyi++) \ (To)[yyi] = (From)[yyi]; \ } \ while (YYID (0)) # endif # endif /* Relocate STACK from its old location to the new one. The local variables YYSIZE and YYSTACKSIZE give the old and new number of elements in the stack, and YYPTR gives the new location of the stack. Advance YYPTR to a properly aligned location for the next stack. */ # define YYSTACK_RELOCATE(Stack_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 /* YYFINAL -- State number of the termination state. */ #define YYFINAL 5 /* YYLAST -- Last index in YYTABLE. */ #define YYLAST 8145 /* YYNTOKENS -- Number of terminals. */ #define YYNTOKENS 167 /* YYNNTS -- Number of nonterminals. */ #define YYNNTS 91 /* YYNRULES -- Number of rules. */ #define YYNRULES 451 /* YYNRULES -- Number of states. */ #define YYNSTATES 1550 /* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */ #define YYUNDEFTOK 2 #define YYMAXUTOK 401 #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, 152, 2, 162, 2, 151, 2, 2, 157, 158, 149, 147, 163, 148, 161, 150, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 143, 2, 144, 138, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 159, 2, 160, 156, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 164, 2, 165, 166, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 139, 140, 141, 142, 145, 146, 153, 154, 155 }; #if YYDEBUG /* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in YYRHS. */ static const yytype_uint16 yyprhs[] = { 0, 0, 3, 5, 8, 9, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 47, 53, 59, 67, 75, 83, 93, 100, 107, 114, 115, 118, 121, 124, 127, 130, 132, 136, 138, 142, 143, 144, 155, 157, 161, 162, 176, 178, 182, 183, 199, 208, 223, 224, 231, 233, 235, 237, 239, 241, 243, 245, 251, 257, 262, 269, 277, 285, 295, 305, 309, 316, 321, 328, 338, 345, 355, 361, 370, 379, 391, 398, 408, 414, 422, 432, 442, 454, 462, 472, 482, 483, 485, 486, 490, 496, 497, 507, 513, 514, 524, 525, 529, 533, 539, 540, 543, 547, 553, 557, 558, 561, 565, 569, 575, 577, 579, 580, 586, 587, 590, 598, 599, 609, 616, 624, 629, 637, 646, 655, 663, 671, 683, 692, 701, 702, 712, 721, 731, 735, 740, 751, 759, 767, 776, 785, 798, 799, 809, 818, 826, 835, 836, 846, 852, 864, 870, 880, 890, 895, 905, 915, 917, 919, 920, 923, 930, 937, 944, 951, 960, 971, 986, 1003, 1016, 1025, 1034, 1041, 1056, 1061, 1068, 1075, 1079, 1084, 1090, 1094, 1098, 1103, 1108, 1112, 1120, 1128, 1132, 1140, 1144, 1147, 1150, 1153, 1156, 1172, 1175, 1178, 1181, 1184, 1188, 1195, 1204, 1213, 1224, 1226, 1229, 1231, 1235, 1240, 1242, 1248, 1260, 1274, 1275, 1283, 1284, 1298, 1299, 1315, 1316, 1323, 1332, 1341, 1350, 1363, 1376, 1389, 1404, 1419, 1434, 1435, 1448, 1449, 1462, 1463, 1476, 1477, 1494, 1495, 1512, 1513, 1530, 1531, 1550, 1551, 1570, 1571, 1590, 1592, 1595, 1601, 1609, 1619, 1622, 1625, 1629, 1632, 1636, 1646, 1653, 1654, 1658, 1659, 1661, 1662, 1665, 1666, 1669, 1677, 1684, 1693, 1699, 1703, 1711, 1717, 1722, 1729, 1736, 1749, 1760, 1771, 1782, 1793, 1798, 1803, 1806, 1810, 1817, 1819, 1821, 1823, 1826, 1832, 1840, 1851, 1853, 1857, 1860, 1863, 1866, 1870, 1874, 1878, 1882, 1886, 1890, 1894, 1898, 1902, 1906, 1910, 1914, 1918, 1922, 1928, 1933, 1938, 1943, 1948, 1953, 1958, 1963, 1968, 1973, 1978, 1985, 1990, 1995, 2000, 2005, 2010, 2015, 2022, 2029, 2036, 2041, 2046, 2051, 2056, 2061, 2066, 2071, 2076, 2081, 2086, 2091, 2098, 2103, 2108, 2113, 2118, 2123, 2128, 2135, 2142, 2149, 2154, 2156, 2158, 2160, 2162, 2164, 2166, 2168, 2170, 2176, 2181, 2186, 2189, 2195, 2199, 2206, 2211, 2219, 2226, 2233, 2238, 2240, 2243, 2246, 2250, 2254, 2266, 2276, 2284, 2292, 2294, 2298, 2300, 2302, 2305, 2309, 2314, 2320, 2322, 2324, 2327, 2331, 2335, 2341, 2346, 2349, 2352, 2355, 2358, 2364, 2370, 2376, 2382, 2384, 2386, 2390, 2394, 2399, 2406, 2413, 2415, 2417, 2421, 2425, 2435, 2443, 2445, 2451, 2455, 2462, 2464, 2468, 2470, 2472, 2476, 2483, 2485, 2487, 2492, 2499, 2506, 2511, 2516, 2521, 2526, 2533, 2540, 2542 }; /* YYRHS -- A `-1'-separated list of the rules' RHS. */ static const yytype_int16 yyrhs[] = { 168, 0, -1, 169, -1, 1, 6, -1, -1, 169, 170, -1, 173, -1, 172, -1, 191, -1, 205, -1, 210, -1, 214, -1, 215, -1, 216, -1, 219, -1, 239, -1, 240, -1, 218, -1, 217, -1, 213, -1, 242, -1, 144, -1, 144, 144, -1, 36, 157, 5, 158, 6, -1, 37, 157, 5, 158, 6, -1, 36, 157, 5, 158, 171, 255, 6, -1, 36, 157, 5, 163, 251, 158, 6, -1, 37, 157, 5, 163, 251, 158, 6, -1, 36, 157, 5, 163, 251, 158, 171, 255, 6, -1, 4, 5, 164, 174, 165, 6, -1, 93, 4, 159, 243, 160, 6, -1, 94, 4, 159, 243, 160, 6, -1, -1, 174, 177, -1, 174, 181, -1, 174, 184, -1, 174, 186, -1, 174, 187, -1, 243, -1, 175, 163, 243, -1, 243, -1, 176, 163, 243, -1, -1, -1, 4, 178, 157, 175, 158, 179, 164, 176, 165, 6, -1, 255, -1, 180, 163, 255, -1, -1, 99, 157, 243, 163, 243, 163, 243, 158, 182, 164, 180, 165, 6, -1, 255, -1, 183, 163, 255, -1, -1, 100, 157, 243, 163, 243, 163, 243, 163, 243, 158, 185, 164, 183, 165, 6, -1, 101, 164, 247, 165, 164, 247, 165, 6, -1, 101, 164, 247, 165, 164, 247, 165, 164, 247, 165, 164, 247, 165, 6, -1, -1, 102, 188, 164, 176, 165, 6, -1, 7, -1, 137, -1, 136, -1, 135, -1, 134, -1, 155, -1, 154, -1, 51, 159, 193, 160, 6, -1, 52, 159, 196, 160, 6, -1, 4, 189, 248, 6, -1, 4, 159, 160, 189, 248, 6, -1, 4, 159, 243, 160, 189, 243, 6, -1, 4, 157, 243, 158, 189, 243, 6, -1, 4, 159, 164, 251, 165, 160, 189, 248, 6, -1, 4, 157, 164, 251, 165, 158, 189, 248, 6, -1, 4, 190, 6, -1, 4, 159, 243, 160, 190, 6, -1, 4, 7, 256, 6, -1, 4, 161, 4, 7, 256, 6, -1, 4, 159, 243, 160, 161, 4, 7, 256, 6, -1, 4, 161, 4, 189, 243, 6, -1, 4, 159, 243, 160, 161, 4, 189, 243, 6, -1, 4, 161, 4, 190, 6, -1, 4, 159, 243, 160, 161, 4, 190, 6, -1, 4, 161, 109, 161, 4, 7, 252, 6, -1, 4, 159, 243, 160, 161, 109, 161, 4, 7, 252, 6, -1, 4, 161, 110, 7, 253, 6, -1, 4, 159, 243, 160, 161, 110, 7, 253, 6, -1, 4, 118, 7, 243, 6, -1, 118, 159, 243, 160, 7, 4, 6, -1, 118, 159, 243, 160, 161, 4, 7, 243, 6, -1, 118, 159, 243, 160, 161, 4, 7, 256, 6, -1, 118, 159, 243, 160, 161, 4, 7, 164, 251, 165, 6, -1, 118, 159, 243, 160, 161, 4, 6, -1, 75, 157, 4, 158, 161, 4, 7, 243, 6, -1, 75, 157, 4, 158, 161, 4, 7, 256, 6, -1, -1, 163, -1, -1, 193, 192, 4, -1, 193, 192, 4, 7, 243, -1, -1, 193, 192, 4, 7, 164, 243, 194, 198, 165, -1, 193, 192, 4, 7, 256, -1, -1, 193, 192, 4, 7, 164, 256, 195, 200, 165, -1, -1, 196, 192, 255, -1, 243, 7, 256, -1, 197, 163, 243, 7, 256, -1, -1, 198, 199, -1, 163, 4, 248, -1, 163, 4, 164, 197, 165, -1, 163, 4, 5, -1, -1, 200, 201, -1, 163, 4, 243, -1, 163, 4, 5, -1, 163, 4, 164, 257, 165, -1, 243, -1, 256, -1, -1, 112, 57, 164, 243, 165, -1, -1, 67, 245, -1, 53, 157, 243, 158, 7, 245, 6, -1, -1, 71, 53, 206, 157, 202, 158, 7, 248, 6, -1, 62, 63, 248, 7, 243, 6, -1, 56, 157, 243, 158, 7, 248, 6, -1, 76, 56, 248, 6, -1, 60, 157, 243, 158, 7, 248, 6, -1, 54, 157, 243, 158, 7, 248, 204, 6, -1, 55, 157, 243, 158, 7, 248, 204, 6, -1, 104, 157, 243, 158, 7, 248, 6, -1, 105, 157, 243, 158, 7, 248, 6, -1, 106, 157, 243, 158, 7, 248, 108, 248, 107, 243, 6, -1, 56, 4, 157, 243, 158, 7, 248, 6, -1, 72, 56, 157, 243, 158, 7, 248, 6, -1, -1, 71, 56, 207, 157, 202, 158, 7, 248, 6, -1, 67, 59, 157, 243, 158, 7, 248, 6, -1, 68, 59, 157, 243, 158, 7, 248, 203, 6, -1, 12, 13, 6, -1, 13, 59, 243, 6, -1, 64, 59, 157, 243, 158, 7, 5, 5, 5, 6, -1, 57, 157, 243, 158, 7, 248, 6, -1, 58, 157, 243, 158, 7, 248, 6, -1, 59, 4, 157, 243, 158, 7, 248, 6, -1, 72, 59, 157, 243, 158, 7, 248, 6, -1, 72, 59, 157, 243, 158, 7, 248, 4, 164, 247, 165, 6, -1, -1, 71, 59, 208, 157, 202, 158, 7, 248, 6, -1, 70, 61, 157, 243, 158, 7, 248, 6, -1, 61, 157, 243, 158, 7, 248, 6, -1, 72, 61, 157, 243, 158, 7, 248, 6, -1, -1, 71, 61, 209, 157, 202, 158, 7, 248, 6, -1, 78, 245, 164, 211, 165, -1, 77, 164, 245, 163, 245, 163, 243, 165, 164, 211, 165, -1, 79, 245, 164, 211, 165, -1, 80, 164, 245, 163, 243, 165, 164, 211, 165, -1, 80, 164, 245, 163, 245, 165, 164, 211, 165, -1, 4, 164, 211, 165, -1, 88, 56, 164, 251, 165, 59, 164, 243, 165, -1, 85, 56, 157, 243, 158, 164, 251, 165, 6, -1, 212, -1, 210, -1, -1, 212, 205, -1, 212, 53, 164, 251, 165, 6, -1, 212, 56, 164, 251, 165, 6, -1, 212, 59, 164, 251, 165, 6, -1, 212, 61, 164, 251, 165, 6, -1, 82, 67, 157, 243, 158, 7, 248, 6, -1, 82, 53, 157, 243, 158, 7, 164, 247, 165, 6, -1, 82, 67, 157, 243, 158, 7, 164, 245, 163, 245, 163, 251, 165, 6, -1, 82, 67, 157, 243, 158, 7, 164, 245, 163, 245, 163, 245, 163, 251, 165, 6, -1, 82, 57, 157, 243, 158, 7, 164, 245, 163, 251, 165, 6, -1, 82, 4, 157, 243, 158, 7, 248, 6, -1, 82, 4, 157, 243, 158, 7, 5, 6, -1, 82, 4, 164, 243, 165, 6, -1, 82, 4, 157, 243, 158, 7, 164, 245, 163, 245, 163, 251, 165, 6, -1, 86, 164, 212, 165, -1, 86, 118, 159, 243, 160, 6, -1, 86, 4, 159, 243, 160, 6, -1, 86, 4, 6, -1, 86, 4, 4, 6, -1, 109, 252, 164, 212, 165, -1, 122, 5, 6, -1, 123, 5, 6, -1, 122, 164, 212, 165, -1, 123, 164, 212, 165, -1, 4, 256, 6, -1, 4, 4, 159, 243, 160, 255, 6, -1, 4, 4, 4, 159, 243, 160, 6, -1, 4, 243, 6, -1, 75, 157, 4, 158, 161, 4, 6, -1, 103, 4, 6, -1, 116, 6, -1, 117, 6, -1, 47, 6, -1, 44, 6, -1, 44, 164, 243, 163, 243, 163, 243, 163, 243, 163, 243, 163, 243, 165, 6, -1, 45, 6, -1, 48, 6, -1, 49, 6, -1, 66, 6, -1, 130, 243, 6, -1, 111, 157, 243, 8, 243, 158, -1, 111, 157, 243, 8, 243, 8, 243, 158, -1, 111, 4, 112, 164, 243, 8, 243, 165, -1, 111, 4, 112, 164, 243, 8, 243, 8, 243, 165, -1, 113, -1, 121, 4, -1, 119, -1, 120, 4, 6, -1, 114, 157, 243, 158, -1, 115, -1, 81, 245, 164, 212, 165, -1, 81, 164, 245, 163, 245, 163, 243, 165, 164, 212, 165, -1, 81, 164, 245, 163, 245, 163, 245, 163, 243, 165, 164, 212, 165, -1, -1, 81, 245, 164, 212, 220, 233, 165, -1, -1, 81, 164, 245, 163, 245, 163, 243, 165, 164, 212, 221, 233, 165, -1, -1, 81, 164, 245, 163, 245, 163, 245, 163, 243, 165, 164, 212, 222, 233, 165, -1, -1, 81, 164, 212, 223, 233, 165, -1, 81, 53, 164, 243, 163, 245, 165, 6, -1, 81, 56, 164, 243, 163, 245, 165, 6, -1, 81, 59, 164, 243, 163, 245, 165, 6, -1, 81, 53, 164, 243, 163, 245, 163, 245, 163, 243, 165, 6, -1, 81, 56, 164, 243, 163, 245, 163, 245, 163, 243, 165, 6, -1, 81, 59, 164, 243, 163, 245, 163, 245, 163, 243, 165, 6, -1, 81, 53, 164, 243, 163, 245, 163, 245, 163, 245, 163, 243, 165, 6, -1, 81, 56, 164, 243, 163, 245, 163, 245, 163, 245, 163, 243, 165, 6, -1, 81, 59, 164, 243, 163, 245, 163, 245, 163, 245, 163, 243, 165, 6, -1, -1, 81, 53, 164, 243, 163, 245, 165, 224, 164, 233, 165, 6, -1, -1, 81, 56, 164, 243, 163, 245, 165, 225, 164, 233, 165, 6, -1, -1, 81, 59, 164, 243, 163, 245, 165, 226, 164, 233, 165, 6, -1, -1, 81, 53, 164, 243, 163, 245, 163, 245, 163, 243, 165, 227, 164, 233, 165, 6, -1, -1, 81, 56, 164, 243, 163, 245, 163, 245, 163, 243, 165, 228, 164, 233, 165, 6, -1, -1, 81, 59, 164, 243, 163, 245, 163, 245, 163, 243, 165, 229, 164, 233, 165, 6, -1, -1, 81, 53, 164, 243, 163, 245, 163, 245, 163, 245, 163, 243, 165, 230, 164, 233, 165, 6, -1, -1, 81, 56, 164, 243, 163, 245, 163, 245, 163, 245, 163, 243, 165, 231, 164, 233, 165, 6, -1, -1, 81, 59, 164, 243, 163, 245, 163, 245, 163, 245, 163, 243, 165, 232, 164, 233, 165, 6, -1, 234, -1, 233, 234, -1, 91, 164, 243, 165, 6, -1, 91, 164, 248, 163, 248, 165, 6, -1, 91, 164, 248, 163, 248, 163, 248, 165, 6, -1, 83, 6, -1, 95, 6, -1, 95, 97, 6, -1, 96, 6, -1, 96, 97, 6, -1, 92, 157, 243, 158, 7, 248, 74, 243, 6, -1, 74, 4, 159, 243, 160, 6, -1, -1, 74, 4, 243, -1, -1, 4, -1, -1, 7, 248, -1, -1, 7, 243, -1, 69, 56, 249, 7, 243, 235, 6, -1, 69, 59, 249, 237, 236, 6, -1, 65, 59, 164, 243, 165, 7, 248, 6, -1, 69, 61, 249, 237, 6, -1, 98, 249, 6, -1, 89, 59, 164, 251, 165, 243, 6, -1, 83, 59, 249, 238, 6, -1, 83, 61, 249, 6, -1, 84, 59, 248, 7, 243, 6, -1, 73, 56, 248, 7, 248, 6, -1, 73, 59, 243, 164, 251, 165, 7, 243, 164, 251, 165, 6, -1, 53, 164, 251, 165, 112, 59, 164, 243, 165, 6, -1, 56, 164, 251, 165, 112, 59, 164, 243, 165, 6, -1, 56, 164, 251, 165, 112, 61, 164, 243, 165, 6, -1, 59, 164, 251, 165, 112, 61, 164, 243, 165, 6, -1, 90, 59, 249, 6, -1, 90, 56, 249, 6, -1, 87, 6, -1, 87, 4, 6, -1, 87, 53, 164, 251, 165, 6, -1, 127, -1, 128, -1, 129, -1, 241, 6, -1, 241, 164, 248, 165, 6, -1, 241, 164, 248, 163, 248, 165, 6, -1, 241, 157, 248, 158, 164, 248, 163, 248, 165, 6, -1, 244, -1, 157, 243, 158, -1, 148, 243, -1, 147, 243, -1, 152, 243, -1, 243, 148, 243, -1, 243, 147, 243, -1, 243, 149, 243, -1, 243, 150, 243, -1, 243, 151, 243, -1, 243, 156, 243, -1, 243, 143, 243, -1, 243, 144, 243, -1, 243, 146, 243, -1, 243, 145, 243, -1, 243, 142, 243, -1, 243, 141, 243, -1, 243, 140, 243, -1, 243, 139, 243, -1, 243, 138, 243, 8, 243, -1, 14, 157, 243, 158, -1, 15, 157, 243, 158, -1, 16, 157, 243, 158, -1, 17, 157, 243, 158, -1, 18, 157, 243, 158, -1, 19, 157, 243, 158, -1, 20, 157, 243, 158, -1, 21, 157, 243, 158, -1, 22, 157, 243, 158, -1, 24, 157, 243, 158, -1, 25, 157, 243, 163, 243, 158, -1, 26, 157, 243, 158, -1, 27, 157, 243, 158, -1, 28, 157, 243, 158, -1, 29, 157, 243, 158, -1, 30, 157, 243, 158, -1, 31, 157, 243, 158, -1, 32, 157, 243, 163, 243, 158, -1, 33, 157, 243, 163, 243, 158, -1, 34, 157, 243, 163, 243, 158, -1, 23, 157, 243, 158, -1, 14, 159, 243, 160, -1, 15, 159, 243, 160, -1, 16, 159, 243, 160, -1, 17, 159, 243, 160, -1, 18, 159, 243, 160, -1, 19, 159, 243, 160, -1, 20, 159, 243, 160, -1, 21, 159, 243, 160, -1, 22, 159, 243, 160, -1, 24, 159, 243, 160, -1, 25, 159, 243, 163, 243, 160, -1, 26, 159, 243, 160, -1, 27, 159, 243, 160, -1, 28, 159, 243, 160, -1, 29, 159, 243, 160, -1, 30, 159, 243, 160, -1, 31, 159, 243, 160, -1, 32, 159, 243, 163, 243, 160, -1, 33, 159, 243, 163, 243, 160, -1, 34, 159, 243, 163, 243, 160, -1, 23, 159, 243, 160, -1, 3, -1, 9, -1, 10, -1, 11, -1, 131, -1, 132, -1, 133, -1, 4, -1, 4, 166, 164, 243, 165, -1, 4, 159, 243, 160, -1, 162, 4, 159, 160, -1, 4, 190, -1, 4, 159, 243, 160, 190, -1, 4, 161, 4, -1, 4, 159, 243, 160, 161, 4, -1, 4, 161, 4, 190, -1, 4, 159, 243, 160, 161, 4, 190, -1, 124, 157, 255, 163, 243, 158, -1, 42, 157, 255, 163, 255, 158, -1, 43, 157, 257, 158, -1, 246, -1, 148, 245, -1, 147, 245, -1, 245, 148, 245, -1, 245, 147, 245, -1, 164, 243, 163, 243, 163, 243, 163, 243, 163, 243, 165, -1, 164, 243, 163, 243, 163, 243, 163, 243, 165, -1, 164, 243, 163, 243, 163, 243, 165, -1, 157, 243, 163, 243, 163, 243, 158, -1, 248, -1, 247, 163, 248, -1, 243, -1, 250, -1, 164, 165, -1, 164, 251, 165, -1, 148, 164, 251, 165, -1, 243, 149, 164, 251, 165, -1, 248, -1, 5, -1, 148, 250, -1, 243, 149, 250, -1, 243, 8, 243, -1, 243, 8, 243, 8, 243, -1, 53, 164, 243, 165, -1, 53, 5, -1, 56, 5, -1, 59, 5, -1, 61, 5, -1, 71, 53, 164, 251, 165, -1, 71, 56, 164, 251, 165, -1, 71, 59, 164, 251, 165, -1, 71, 61, 164, 251, 165, -1, 210, -1, 219, -1, 4, 159, 160, -1, 4, 157, 158, -1, 35, 159, 4, 160, -1, 4, 159, 164, 251, 165, 160, -1, 4, 157, 164, 251, 165, 158, -1, 243, -1, 250, -1, 251, 163, 243, -1, 251, 163, 250, -1, 164, 243, 163, 243, 163, 243, 163, 243, 165, -1, 164, 243, 163, 243, 163, 243, 165, -1, 4, -1, 4, 161, 109, 161, 4, -1, 164, 254, 165, -1, 4, 159, 243, 160, 161, 110, -1, 252, -1, 254, 163, 252, -1, 256, -1, 4, -1, 4, 161, 4, -1, 4, 159, 243, 160, 161, 4, -1, 5, -1, 46, -1, 125, 157, 255, 158, -1, 126, 157, 255, 163, 255, 158, -1, 39, 157, 255, 163, 255, 158, -1, 40, 157, 255, 158, -1, 41, 157, 255, 158, -1, 38, 157, 255, 158, -1, 38, 159, 255, 160, -1, 38, 157, 255, 163, 251, 158, -1, 38, 159, 255, 163, 251, 160, -1, 255, -1, 257, 163, 255, -1 }; /* YYRLINE[YYN] -- source line where rule number YYN was defined. */ static const yytype_uint16 yyrline[] = { 0, 167, 167, 168, 173, 175, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 197, 201, 208, 213, 218, 232, 245, 258, 286, 300, 311, 326, 331, 332, 333, 334, 335, 339, 341, 346, 348, 354, 458, 353, 476, 483, 494, 493, 511, 518, 529, 528, 545, 562, 585, 584, 598, 599, 600, 601, 602, 606, 607, 613, 615, 617, 679, 709, 744, 778, 826, 873, 888, 904, 913, 919, 928, 946, 964, 973, 985, 990, 998, 1018, 1041, 1052, 1060, 1082, 1105, 1131, 1152, 1164, 1178, 1178, 1180, 1182, 1193, 1205, 1204, 1216, 1228, 1227, 1241, 1243, 1251, 1257, 1264, 1265, 1269, 1280, 1295, 1305, 1306, 1311, 1319, 1328, 1346, 1350, 1361, 1364, 1377, 1380, 1390, 1414, 1413, 1433, 1455, 1473, 1494, 1512, 1542, 1572, 1590, 1608, 1634, 1652, 1671, 1670, 1693, 1711, 1750, 1756, 1762, 1769, 1794, 1819, 1836, 1853, 1885, 1884, 1908, 1926, 1943, 1960, 1959, 1985, 1990, 1995, 2000, 2005, 2010, 2033, 2039, 2050, 2051, 2056, 2059, 2063, 2086, 2109, 2132, 2160, 2181, 2204, 2225, 2247, 2267, 2379, 2398, 2436, 2545, 2554, 2560, 2575, 2603, 2620, 2634, 2640, 2646, 2655, 2669, 2714, 2731, 2746, 2765, 2777, 2801, 2805, 2810, 2817, 2823, 2828, 2834, 2838, 2842, 2847, 2860, 2877, 2894, 2915, 2936, 2971, 2979, 2985, 2992, 2996, 3005, 3013, 3021, 3030, 3029, 3043, 3042, 3056, 3055, 3069, 3068, 3081, 3088, 3095, 3102, 3109, 3116, 3123, 3130, 3137, 3145, 3144, 3157, 3156, 3169, 3168, 3181, 3180, 3193, 3192, 3205, 3204, 3217, 3216, 3229, 3228, 3241, 3240, 3256, 3259, 3265, 3277, 3297, 3320, 3324, 3328, 3332, 3336, 3340, 3359, 3372, 3375, 3391, 3394, 3407, 3410, 3416, 3419, 3426, 3482, 3552, 3557, 3624, 3660, 3668, 3711, 3750, 3770, 3797, 3837, 3860, 3883, 3887, 3891, 3930, 3975, 3979, 3989, 4024, 4025, 4026, 4030, 4036, 4048, 4066, 4094, 4095, 4096, 4097, 4098, 4099, 4100, 4101, 4102, 4109, 4110, 4111, 4112, 4113, 4114, 4115, 4116, 4117, 4118, 4119, 4120, 4121, 4122, 4123, 4124, 4125, 4126, 4127, 4128, 4129, 4130, 4131, 4132, 4133, 4134, 4135, 4136, 4137, 4138, 4139, 4140, 4143, 4144, 4145, 4146, 4147, 4148, 4149, 4150, 4151, 4152, 4153, 4154, 4155, 4156, 4157, 4158, 4159, 4160, 4161, 4162, 4163, 4172, 4173, 4174, 4175, 4176, 4177, 4178, 4182, 4203, 4222, 4240, 4252, 4269, 4290, 4295, 4300, 4310, 4320, 4325, 4334, 4361, 4365, 4369, 4373, 4377, 4384, 4388, 4392, 4396, 4403, 4408, 4415, 4420, 4424, 4429, 4433, 4441, 4452, 4456, 4468, 4476, 4484, 4491, 4501, 4521, 4525, 4529, 4533, 4537, 4566, 4595, 4624, 4653, 4663, 4673, 4686, 4698, 4710, 4729, 4750, 4755, 4759, 4763, 4775, 4779, 4791, 4798, 4808, 4812, 4827, 4832, 4839, 4843, 4856, 4864, 4875, 4879, 4887, 4895, 4903, 4911, 4925, 4939, 4944, 4948, 4968, 4990, 4995 }; #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", "tError", "tSprintf", "tStrCat", "tStrPrefix", "tStrRelative", "tStrFind", "tTextAttributes", "tBoundingBox", "tDraw", "tToday", "tSyncModel", "tCreateTopology", "tCreateTopologyNoHoles", "tDistanceFunction", "tDefineConstant", "tUndefineConstant", "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", "tMeshAlgorithm", "tReverse", "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", "tAbort", "tField", "tReturn", "tCall", "tFunction", "tShow", "tHide", "tGetValue", "tGetEnv", "tGetString", "tHomology", "tCohomology", "tBetti", "tSetOrder", "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", "$@7", "UndefineConstants", "Enumeration", "FloatParameterOptions", "FloatParameterOption", "CharParameterOptions", "CharParameterOption", "PhysicalId", "InSphereCenter", "CircleOptions", "Shape", "$@8", "$@9", "$@10", "$@11", "Transform", "MultipleShape", "ListOfShapes", "LevelSet", "Delete", "Colorify", "Visibility", "Command", "Loop", "Extrude", "$@12", "$@13", "$@14", "$@15", "$@16", "$@17", "$@18", "$@19", "$@20", "$@21", "$@22", "$@23", "$@24", "ExtrudeParameters", "ExtrudeParameter", "TransfiniteType", "TransfiniteArrangement", "TransfiniteCorners", "RecombineAngle", "Constraints", "Coherence", "HomologyCommand", "Homology", "FExpr", "FExpr_Single", "VExpr", "VExpr_Single", "RecursiveListOfListOfDouble", "ListOfDouble", "ListOfDoubleOrAll", "FExpr_Multi", "RecursiveListOfDouble", "ColorExpr", "ListOfColor", "RecursiveListOfColor", "StringExprVar", "StringExpr", "RecursiveListOfStringExprVar", 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, 384, 385, 386, 387, 388, 389, 390, 391, 392, 63, 393, 394, 395, 396, 60, 62, 397, 398, 43, 45, 42, 47, 37, 33, 399, 400, 401, 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_uint16 yyr1[] = { 0, 167, 168, 168, 169, 169, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 171, 171, 172, 172, 172, 172, 172, 172, 173, 173, 173, 174, 174, 174, 174, 174, 174, 175, 175, 176, 176, 178, 179, 177, 180, 180, 182, 181, 183, 183, 185, 184, 186, 186, 188, 187, 189, 189, 189, 189, 189, 190, 190, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 192, 192, 193, 193, 193, 194, 193, 193, 195, 193, 196, 196, 197, 197, 198, 198, 199, 199, 199, 200, 200, 201, 201, 201, 202, 202, 203, 203, 204, 204, 205, 206, 205, 205, 205, 205, 205, 205, 205, 205, 205, 205, 205, 205, 207, 205, 205, 205, 205, 205, 205, 205, 205, 205, 205, 205, 208, 205, 205, 205, 205, 209, 205, 210, 210, 210, 210, 210, 210, 210, 210, 211, 211, 212, 212, 212, 212, 212, 212, 213, 213, 213, 213, 213, 213, 213, 213, 213, 214, 214, 214, 214, 214, 215, 216, 216, 216, 216, 217, 217, 217, 217, 217, 217, 217, 217, 217, 217, 217, 217, 217, 217, 217, 217, 218, 218, 218, 218, 218, 218, 218, 218, 218, 218, 219, 219, 219, 220, 219, 221, 219, 222, 219, 223, 219, 219, 219, 219, 219, 219, 219, 219, 219, 219, 224, 219, 225, 219, 226, 219, 227, 219, 228, 219, 229, 219, 230, 219, 231, 219, 232, 219, 233, 233, 234, 234, 234, 234, 234, 234, 234, 234, 234, 234, 235, 235, 236, 236, 237, 237, 238, 238, 239, 239, 239, 239, 239, 239, 239, 239, 239, 239, 239, 239, 239, 239, 239, 239, 239, 240, 240, 240, 241, 241, 241, 242, 242, 242, 242, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 244, 244, 244, 244, 244, 244, 244, 244, 244, 244, 244, 244, 244, 244, 244, 244, 244, 244, 244, 244, 245, 245, 245, 245, 245, 246, 246, 246, 246, 247, 247, 248, 248, 248, 248, 248, 248, 249, 249, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 250, 251, 251, 251, 251, 252, 252, 252, 252, 253, 253, 254, 254, 255, 255, 255, 255, 256, 256, 256, 256, 256, 256, 256, 256, 256, 256, 256, 257, 257 }; /* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */ static const yytype_uint8 yyr2[] = { 0, 2, 1, 2, 0, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 5, 5, 7, 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, 5, 4, 6, 7, 7, 9, 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, 5, 0, 9, 0, 3, 3, 5, 0, 2, 3, 5, 3, 0, 2, 3, 3, 5, 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, 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, 2, 15, 2, 2, 2, 2, 3, 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, 7, 5, 4, 6, 6, 12, 10, 10, 10, 10, 4, 4, 2, 3, 6, 1, 1, 1, 2, 5, 7, 10, 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, 6, 4, 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, 5, 5, 5, 5, 1, 1, 3, 3, 4, 6, 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, 4, 6, 6, 1, 3 }; /* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state STATE-NUM when YYTABLE doesn't specify something else to do. Zero means the default is an error. */ static const yytype_uint16 yydefact[] = { 0, 0, 0, 2, 3, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 211, 0, 216, 0, 0, 0, 213, 0, 0, 0, 0, 295, 296, 297, 0, 5, 7, 6, 8, 9, 10, 19, 11, 12, 13, 18, 17, 14, 15, 16, 0, 20, 364, 371, 439, 57, 365, 366, 367, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 440, 0, 0, 0, 0, 368, 369, 370, 61, 60, 59, 58, 0, 0, 0, 63, 62, 0, 0, 0, 0, 166, 0, 0, 0, 302, 0, 0, 0, 0, 0, 200, 0, 202, 199, 203, 204, 95, 103, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 205, 0, 0, 0, 0, 0, 0, 124, 137, 149, 154, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 384, 0, 0, 0, 0, 0, 166, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 166, 0, 292, 0, 0, 0, 0, 0, 0, 0, 371, 402, 0, 0, 0, 0, 0, 0, 0, 0, 0, 416, 417, 395, 401, 0, 396, 0, 0, 0, 0, 429, 0, 0, 0, 0, 0, 197, 198, 0, 0, 212, 0, 166, 0, 166, 371, 0, 298, 0, 0, 0, 0, 0, 0, 375, 32, 439, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 305, 304, 306, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 165, 0, 164, 0, 72, 194, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 191, 141, 0, 0, 0, 0, 93, 93, 0, 0, 423, 424, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 271, 271, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 386, 385, 0, 0, 0, 0, 166, 166, 0, 0, 0, 0, 0, 0, 0, 226, 0, 166, 0, 0, 0, 0, 0, 273, 0, 0, 0, 0, 184, 0, 0, 0, 293, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 408, 0, 409, 410, 411, 0, 0, 0, 0, 0, 304, 403, 0, 397, 0, 0, 0, 279, 196, 0, 0, 0, 0, 0, 166, 0, 0, 0, 0, 214, 187, 0, 188, 0, 0, 206, 0, 0, 0, 0, 377, 0, 0, 74, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 436, 0, 435, 0, 0, 0, 0, 0, 450, 0, 0, 0, 0, 0, 0, 303, 57, 0, 0, 0, 57, 0, 0, 0, 0, 0, 161, 0, 0, 0, 0, 167, 66, 0, 320, 319, 318, 317, 313, 314, 316, 315, 308, 307, 309, 310, 311, 312, 142, 0, 0, 0, 0, 0, 0, 94, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 269, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 128, 0, 0, 0, 388, 387, 0, 0, 0, 0, 0, 0, 0, 0, 0, 220, 0, 0, 0, 0, 0, 0, 0, 282, 0, 0, 185, 0, 0, 181, 0, 0, 0, 291, 290, 0, 0, 419, 0, 418, 0, 0, 0, 0, 0, 0, 0, 0, 0, 303, 398, 405, 0, 309, 404, 0, 0, 0, 0, 0, 0, 0, 0, 215, 0, 189, 190, 0, 0, 0, 0, 373, 379, 0, 42, 0, 0, 0, 55, 0, 33, 34, 35, 36, 37, 322, 343, 323, 344, 324, 345, 325, 346, 326, 347, 327, 348, 328, 349, 329, 350, 330, 351, 342, 363, 331, 352, 0, 0, 333, 354, 334, 355, 335, 356, 336, 357, 337, 358, 338, 359, 0, 0, 0, 0, 0, 0, 0, 0, 446, 0, 447, 0, 0, 444, 445, 0, 383, 0, 85, 0, 441, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 79, 0, 0, 0, 0, 374, 0, 0, 0, 0, 0, 23, 21, 0, 0, 24, 0, 0, 64, 96, 65, 104, 0, 425, 426, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 267, 272, 270, 0, 278, 0, 0, 117, 118, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 156, 158, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 0, 217, 0, 0, 0, 0, 0, 0, 274, 281, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 373, 420, 407, 0, 0, 0, 0, 399, 0, 0, 0, 0, 0, 0, 0, 186, 0, 0, 0, 0, 0, 0, 299, 0, 0, 376, 0, 372, 0, 0, 0, 0, 0, 29, 0, 0, 0, 0, 0, 0, 0, 0, 0, 437, 0, 0, 0, 0, 451, 0, 0, 0, 0, 67, 0, 0, 0, 0, 0, 73, 75, 77, 0, 0, 433, 0, 83, 0, 0, 0, 0, 321, 22, 0, 0, 0, 0, 0, 0, 0, 121, 121, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 126, 0, 0, 0, 0, 0, 0, 276, 0, 0, 0, 0, 0, 0, 0, 0, 284, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 260, 0, 0, 261, 0, 263, 0, 227, 256, 0, 0, 0, 179, 0, 0, 0, 283, 0, 183, 182, 294, 0, 0, 30, 31, 0, 0, 412, 413, 414, 415, 406, 400, 0, 0, 0, 430, 0, 0, 0, 207, 0, 0, 0, 0, 193, 378, 192, 0, 0, 0, 0, 393, 0, 332, 353, 339, 360, 340, 361, 341, 362, 0, 448, 449, 443, 382, 381, 442, 0, 69, 0, 57, 0, 0, 0, 0, 68, 0, 0, 0, 431, 0, 0, 0, 0, 25, 26, 0, 27, 0, 0, 97, 100, 123, 0, 0, 0, 0, 0, 127, 0, 0, 144, 145, 0, 0, 129, 152, 0, 0, 0, 119, 0, 275, 0, 0, 0, 0, 0, 0, 0, 0, 0, 195, 0, 0, 0, 0, 166, 166, 0, 237, 0, 239, 0, 241, 0, 395, 0, 0, 262, 264, 0, 0, 221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 280, 422, 421, 132, 133, 0, 0, 0, 0, 86, 90, 0, 0, 300, 380, 0, 38, 0, 0, 0, 0, 0, 40, 0, 0, 0, 0, 0, 80, 0, 0, 81, 0, 434, 168, 169, 170, 171, 0, 0, 98, 101, 0, 122, 130, 131, 135, 0, 0, 146, 0, 0, 277, 139, 0, 0, 268, 151, 0, 0, 0, 0, 136, 0, 147, 153, 0, 0, 0, 0, 392, 0, 391, 0, 0, 0, 228, 0, 0, 229, 0, 0, 230, 0, 0, 0, 0, 0, 0, 0, 178, 0, 0, 177, 0, 0, 0, 172, 0, 0, 0, 0, 428, 0, 209, 208, 0, 0, 0, 0, 43, 0, 0, 0, 394, 0, 0, 0, 438, 71, 70, 76, 78, 0, 84, 0, 28, 0, 107, 112, 0, 0, 0, 0, 0, 0, 140, 125, 138, 150, 155, 0, 0, 91, 92, 166, 0, 159, 160, 0, 0, 0, 0, 0, 0, 0, 257, 0, 0, 166, 0, 0, 0, 0, 0, 163, 162, 0, 0, 0, 0, 87, 88, 0, 0, 39, 0, 0, 0, 41, 56, 0, 432, 0, 0, 0, 286, 287, 288, 289, 143, 0, 0, 0, 0, 0, 390, 0, 0, 0, 0, 0, 0, 0, 0, 0, 266, 0, 0, 0, 222, 0, 0, 173, 0, 0, 0, 427, 210, 0, 301, 0, 0, 0, 0, 82, 0, 0, 99, 108, 0, 102, 113, 0, 0, 0, 157, 0, 243, 0, 0, 245, 0, 0, 247, 0, 0, 0, 258, 0, 218, 0, 166, 0, 0, 0, 134, 89, 0, 47, 0, 53, 0, 0, 0, 0, 120, 148, 285, 389, 231, 0, 0, 238, 232, 0, 0, 240, 233, 0, 0, 242, 0, 0, 0, 224, 0, 176, 0, 0, 0, 0, 0, 0, 0, 111, 0, 109, 115, 0, 114, 0, 249, 0, 251, 0, 253, 259, 265, 223, 219, 0, 0, 0, 0, 44, 0, 51, 0, 0, 0, 423, 0, 0, 234, 0, 0, 235, 0, 0, 236, 0, 0, 180, 0, 174, 0, 45, 0, 0, 201, 0, 110, 0, 116, 0, 0, 0, 0, 0, 0, 225, 0, 0, 0, 0, 0, 0, 105, 244, 0, 246, 0, 248, 0, 175, 46, 48, 0, 49, 0, 0, 0, 0, 0, 0, 0, 54, 106, 250, 252, 254, 50, 52 }; /* YYDEFGOTO[NTERM-NUM]. */ static const yytype_int16 yydefgoto[] = { -1, 2, 3, 78, 805, 79, 80, 502, 1181, 1187, 720, 919, 1340, 1502, 721, 1457, 1534, 722, 1504, 723, 724, 923, 151, 281, 81, 602, 378, 1294, 1295, 379, 1486, 1350, 1395, 1351, 1398, 840, 1221, 1108, 577, 405, 406, 407, 408, 247, 352, 353, 84, 85, 86, 87, 88, 89, 248, 872, 1417, 1477, 653, 1243, 1246, 1249, 1437, 1441, 1445, 1491, 1494, 1497, 868, 869, 989, 837, 627, 662, 91, 92, 93, 94, 249, 154, 418, 208, 1062, 250, 251, 252, 474, 259, 796, 956, 554, 548, 555 }; /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing STATE-NUM. */ #define YYPACT_NINF -1160 static const yytype_int16 yypact[] = { 4425, 57, 81, 4513, -1160, -1160, 1948, 88, -31, -19, -3, 37, 216, 245, 252, 265, -65, 122, -71, 79, 187, 6, 217, 253, 16, 264, 281, 318, 341, 383, 478, 392, 432, 416, 434, 502, 595, 71, 345, 452, 366, 77, 77, 395, 333, 30, -23, 505, 498, 15, 42, 517, 523, 173, 599, 606, 2110, 617, 476, 482, 492, 17, 58, -1160, 493, -1160, 657, 658, 508, -1160, 664, 675, 0, 32, -1160, -1160, -1160, 4057, -1160, -1160, -1160, -1160, -1160, -1160, -1160, -1160, -1160, -1160, -1160, -1160, -1160, -1160, -1160, 35, -1160, -1160, 28, 522, 425, -1160, -1160, -1160, -117, -44, 54, 105, 172, 303, 390, 488, 514, 518, 537, 558, 570, 579, 584, 590, 591, 624, 633, 650, 668, 671, 515, 530, 541, 546, 549, -1160, 685, 550, 554, 561, -1160, -1160, -1160, -1160, -1160, -1160, -1160, 4057, 4057, 4057, -1160, -1160, 3675, 3443, 19, 733, 765, 2578, 713, 1100, -1160, 736, 745, 4057, 750, 753, -1160, 4057, -1160, -1160, -1160, -1160, -1160, -1160, 4057, 3866, 4057, 4057, 609, 4057, 3866, 4057, 4057, 615, 3866, 4057, 4057, 2578, 616, 623, -1160, 636, 637, 2110, 2110, 2110, 674, -1160, -1160, -1160, -1160, 690, 694, 699, 2578, 4057, 776, 2578, 77, 77, 77, 4057, 4057, -97, -1160, -43, 77, 682, 695, 719, 3831, -41, -61, 714, 734, 737, 2110, 2110, 2578, 738, 41, 754, -1160, 898, -1160, 735, 748, 752, 2110, 2110, 758, 761, 113, -1160, 791, 34, 904, 940, 955, 649, 2734, 4057, 1761, -1160, -1160, 4166, -1160, 958, -1160, 975, 4057, 4057, 4057, 823, 4057, 835, 912, 4057, 4057, -1160, -1160, 4057, 1010, -1160, 1023, -1160, 1039, -1160, -100, 1378, -1160, 2578, 2578, 901, 4057, 1070, 914, -1160, -1160, -1160, 1073, 4057, 4057, 4057, 4057, 4057, 4057, 4057, 4057, 4057, 4057, 4057, 4057, 4057, 4057, 4057, 4057, 4057, 4057, 4057, 4057, 4057, 4057, 4057, 4057, 4057, 4057, 4057, 4057, 4057, 4057, 4057, 4057, 4057, 4057, 4057, 4057, 4057, 4057, 4057, 4057, 4057, 4057, 332, 332, 332, 332, 332, 332, 332, 4057, 332, 332, 332, 920, 920, 920, 3866, 6834, 214, 3866, 6075, 83, 919, 1074, 936, 933, -1160, 937, 4592, 1092, -1160, -1160, 4057, 4057, 4057, 4057, 4057, 4057, 4057, 4057, 4057, 4057, 4057, 4057, 4057, 4057, 4057, -1160, -1160, 1567, -136, -5, 5373, 115, 178, 6855, 3866, 4185, -1160, 65, 6876, 6897, 4057, 6918, 568, 6939, 6960, 4057, 676, 6981, 7002, 1094, 4057, 4057, 4057, 4057, 1096, 1098, 1098, 4057, 950, 951, 952, 956, 4057, 4057, 4057, 1105, 5293, 959, 1110, -11, -1160, -1160, 5399, 5425, 77, 77, 765, 765, 92, 4057, 4057, 4057, 3831, 3831, 4057, 4592, 180, -1160, 4057, 4057, 4057, 4057, 4057, 1111, 1113, 1114, 4057, 1117, -1160, 4057, 4057, 1377, -1160, 3866, 3866, 3866, 1118, 1119, 4057, 4057, -152, 3605, 1116, -1160, 4057, -1160, -1160, -1160, 962, 963, 964, 965, 3866, 920, -1160, 7023, -1160, 689, 4057, 2890, -1160, -1160, 7044, 7065, 7086, 1026, 5451, -1160, 973, 4204, 7107, 6098, -1160, -1160, 1983, -1160, 2146, 4057, -1160, 980, 692, 4057, 6121, -102, 4057, 10, -1160, 7128, 6144, 7149, 6167, 7170, 6190, 7191, 6213, 7212, 6236, 7233, 6259, 7254, 6282, 7275, 6305, 7296, 6328, 7317, 6351, 7338, 6374, 5477, 5503, 7359, 6397, 7380, 6420, 7401, 6443, 7422, 6466, 7443, 6489, 7464, 6512, 5529, 5555, 5581, 5607, 5633, 5659, 701, 167, -1160, 283, 978, 984, 985, 981, -1160, 224, 1728, 982, 989, 986, 700, 214, -1160, 2578, 707, 72, 425, 4057, 1142, 1146, 21, 991, -1160, -40, 29, 31, -38, -1160, -1160, 4230, 943, 1153, 824, 824, 654, 654, 654, 654, 184, 184, 920, 920, 920, 920, -1160, 12, 3866, 1147, 3866, 4057, 1149, -1160, 1148, 1151, 332, 1152, 3866, 3866, 1046, 1154, 1155, 7485, 1157, 1053, 1159, 1160, 7506, 1056, 1162, 1163, 4057, 7527, 4621, 7548, 7569, 4057, 2578, 1168, 1170, 7590, 4016, 4016, 4016, 4016, 7611, 7632, 7653, 2578, 3866, 1013, -1160, 77, 4057, 4057, -1160, -1160, 1012, 1014, 3831, 5685, 5711, 5737, 5347, 819, 77, 2302, 7674, 4649, 7695, 7716, 7737, 4057, 1172, -1160, 4057, 7758, -1160, 6535, 6558, -1160, 712, 715, 724, -1160, -1160, 6581, 6604, -1160, 3866, -1160, 3866, 6627, 1020, 4677, 3866, 3866, 3866, 3866, 725, -1160, -1160, 4253, 3866, 920, -1160, 1176, 1177, 1178, 1025, 4057, 2458, 4057, 4057, -1160, 4, -1160, -1160, 1024, 2578, 1181, 6650, 828, -1160, 4705, -1160, 1033, 1035, 1031, -1160, 1190, -1160, -1160, -1160, -1160, -1160, -1160, -1160, -1160, -1160, -1160, -1160, -1160, -1160, -1160, -1160, -1160, -1160, -1160, -1160, -1160, -1160, -1160, -1160, -1160, -1160, -1160, -1160, 4057, 4057, -1160, -1160, -1160, -1160, -1160, -1160, -1160, -1160, -1160, -1160, -1160, -1160, 4057, 4057, 4057, 4057, 4057, 4057, 4057, 1193, -1160, 3866, -1160, 3866, 332, -1160, -1160, 332, -1160, 332, -1160, 4057, -1160, 332, 1042, 4057, 1195, 1044, 22, 4057, 1196, 1200, 1791, -1160, 1204, 1055, 17, 1206, -1160, 3866, 3866, 3866, 3866, 4057, -1160, 1072, 332, 230, -1160, 243, 5763, -1160, 1210, -1160, -1160, 77, 4185, -1160, 1165, 2578, 2578, 1211, 2578, 839, 2578, 2578, 1218, 1167, 2578, 2578, 1877, 1219, 1222, 1223, 1224, 4308, -1160, -1160, 1226, -1160, 1227, 1075, 7989, -1160, 1078, 1079, 1099, 1245, 1247, 1251, 1253, 740, 1257, 228, 5789, 5815, -1160, -1160, 4733, -91, 77, 77, 77, 1259, 1258, 1102, 1112, 11, 23, 51, -1160, 236, -1160, 819, 1261, 1265, 1266, 1267, 1269, 7989, -1160, 2841, 1108, 1271, 1272, 1273, 1225, 4057, 1277, 1279, 772, 773, -4, -1160, -1160, 777, 778, 781, 786, -1160, 4057, 793, 2578, 2578, 2578, 1282, 5841, -1160, 4272, 893, 1283, 1284, 2578, 1124, -1160, 1285, 1286, -1160, 1305, -1160, 1135, 4057, 4057, 2578, 1150, -1160, 7779, 6673, 7800, 6696, 7821, 6719, 7842, 6742, 6765, -1160, 255, 340, 1158, 1161, -1160, 7863, 1164, 214, 2862, -1160, 214, 111, 1169, 1311, 3009, -1160, -1160, -1160, 17, 4057, -1160, 794, -1160, 798, 813, 814, 825, 7989, -1160, 1306, 18, 1314, 4057, 3358, 43, 1173, 1254, 1254, 2578, 1317, 1174, 1175, 1318, 1319, 2578, 1179, 1320, 1322, -1160, 1324, 2578, 2578, 2578, 1328, 1336, -1160, 2578, 1338, 1339, 1341, 1342, 2578, 2578, 2578, -1160, 1343, 154, 4057, 4057, 4057, 1187, 1188, -83, -63, -49, 1194, -1160, 2578, 4057, -1160, 1348, -1160, 1350, -1160, -1160, 3831, 320, 2266, -1160, 1197, 1199, 3046, -1160, 3866, -1160, -1160, -1160, 1203, 3155, -1160, -1160, 1202, 1198, -1160, -1160, -1160, -1160, 7989, -1160, 1351, 1362, 1262, -1160, 4057, 4057, 4057, -1160, 1363, 509, 1208, 1366, -1160, -102, -1160, 4057, 5867, 5893, 829, -1160, 4057, -1160, -1160, -1160, -1160, -1160, -1160, -1160, -1160, 1212, -1160, -1160, -1160, -1160, -1160, -1160, 2578, -1160, 2578, 425, 4057, 1369, 1372, 21, -1160, 1373, 6788, 17, -1160, 1374, 1375, 1376, 1380, -1160, -1160, 332, -1160, 5919, 4016, 7989, -1160, -1160, 4057, 77, 1381, 1382, 1387, -1160, 4057, 4057, -1160, -1160, 1389, 4057, -1160, -1160, 1393, 1396, 1398, 1287, 4057, -1160, 1399, 2578, 2578, 2578, 2578, 1401, 987, 1402, 4057, -1160, 4016, 4761, 7884, 4536, 765, 765, 77, 1404, 77, 1405, 77, 1406, 4057, 673, 1215, 7905, -1160, -1160, 4789, 257, -1160, 1408, 1598, 1409, 2578, 77, 1598, 1410, 832, 4057, -1160, -1160, -1160, -1160, -1160, 2578, 4564, 783, 7926, -1160, -1160, 3402, 2578, -1160, -1160, 256, 7989, 4057, 4057, 2578, 1256, 833, 7989, 1379, 1412, 1415, 1416, 3174, -1160, 1418, 1417, -1160, 1281, -1160, -1160, -1160, -1160, -1160, 1420, 4057, 7989, -1160, 4817, 420, -1160, -1160, -1160, 4845, 4873, -1160, 4901, 1423, -1160, -1160, 1383, 1437, 7989, -1160, 1440, 1444, 1445, 1446, -1160, 1290, -1160, -1160, 5320, 3963, 1450, 1294, -1160, 4057, -1160, 1296, 1297, 284, -1160, 1295, 292, -1160, 1299, 346, -1160, 1300, 6811, 1459, 2578, 1460, 1302, 4057, -1160, 3202, 385, -1160, 840, 409, 437, -1160, 1463, 4929, 1364, 4057, -1160, 4057, -1160, -1160, 3866, 3983, 1464, 1307, -1160, 4057, 5945, 5971, -1160, 2578, 4057, 1467, -1160, -1160, -1160, -1160, -1160, 17, -1160, 1368, -1160, 5997, -1160, -1160, 1473, 1474, 1479, 1480, 1481, 1325, -1160, -1160, -1160, -1160, -1160, 2578, 3866, -1160, -1160, 765, 4593, -1160, -1160, 3831, 819, 3831, 819, 3831, 819, 1482, -1160, 843, 2578, -1160, 4957, 77, 1484, 3866, 77, -1160, -1160, 4057, 4985, 5013, 844, -1160, -1160, 1485, 1329, 7989, 4057, 4057, 849, 7989, -1160, 1486, -1160, 4057, 850, 854, -1160, -1160, -1160, -1160, -1160, 4057, 857, 858, 1331, 4057, -1160, 5041, 445, 387, 5069, 451, 415, 5097, 454, 430, -1160, 2578, 1488, 1425, 2614, 1333, 459, -1160, 862, 472, 4086, -1160, -1160, 1494, -1160, 4057, 7947, 6023, 38, -1160, 6049, 1497, -1160, -1160, 1498, -1160, -1160, 5125, 1500, 1501, -1160, 5153, 1502, 4057, 1503, 1504, 4057, 1505, 1506, 4057, 1507, 1349, -1160, 4057, -1160, 819, -1160, 3866, 1524, 3202, -1160, -1160, 865, -1160, 4057, -1160, 2578, 4057, 2422, 3640, -1160, -1160, -1160, -1160, -1160, 1340, 5181, -1160, -1160, 1371, 5209, -1160, -1160, 1384, 5237, -1160, 1526, 4109, 444, 2770, 887, -1160, 490, 890, 1527, 1385, 7968, 891, 5265, -1160, 1761, -1160, -1160, 332, 7989, 819, 1530, 819, 1531, 819, 1532, -1160, -1160, -1160, -1160, 819, 1533, 3866, 1534, -1160, 332, -1160, 1386, 1535, 896, 4128, 900, 446, -1160, 1390, 479, -1160, 1391, 495, -1160, 1392, 574, -1160, 903, -1160, 906, -1160, 1397, 2578, -1160, 4057, -1160, 425, -1160, 1537, 819, 1538, 819, 1539, 819, -1160, 1541, 332, 1545, 332, 907, 4147, -1160, -1160, 661, -1160, 693, -1160, 790, -1160, -1160, -1160, 910, -1160, 1547, 425, 1551, 1556, 1559, 332, 1560, -1160, -1160, -1160, -1160, -1160, -1160, -1160 }; /* YYPGOTO[NTERM-NUM]. */ static const yytype_int16 yypgoto[] = { -1160, -1160, -1160, -1160, 602, -1160, -1160, -1160, -1160, 181, -1160, -1160, -1160, -1160, -1160, -1160, -1160, -1160, -1160, -1160, -1160, -1160, -330, 1, -1160, 1201, -1160, -1160, -1160, -1160, -1160, -1160, -1160, -1160, -1160, -279, -1160, 600, 1571, -1160, -1160, -1160, -1160, -1, -415, -211, -1160, -1160, -1160, -1160, -1160, -1160, 1572, -1160, -1160, -1160, -1160, -1160, -1160, -1160, -1160, -1160, -1160, -1160, -1160, -1160, -737, -837, -1160, -1160, 1180, -1160, -1160, -1160, -1160, -1160, -2, -1160, 47, -1160, -1159, 573, 356, 36, 535, -765, 489, -1160, -259, -6, 112 }; /* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If positive, shift that token. If negative, reduce the rule which number is the opposite. If zero, do what YYDEFACT says. If YYTABLE_NINF, syntax error. */ #define YYTABLE_NINF -5 static const yytype_int16 yytable[] = { 155, 1260, 83, 432, 153, 268, 677, 152, 646, 647, 172, 909, 678, 563, 714, 448, 567, 1014, 803, 224, 177, 257, 595, 346, 1098, 794, 946, 596, 157, 1016, 955, 1019, 277, 172, 216, 177, 220, 270, 221, 460, 285, 274, 286, 160, 1427, 444, 227, 445, 228, 1105, 421, 422, 144, 145, 144, 145, 421, 422, 491, 494, 493, 279, 260, 4, 421, 422, 280, 423, 547, 549, 550, 551, 552, 553, 1006, 273, 557, 558, 559, 562, 1142, 5, 1143, 217, 421, 422, 168, 218, 207, 209, 566, 215, 284, 169, 166, 229, 435, 219, 421, 422, 1144, 156, 1145, 436, 421, 422, 421, 422, 1015, 715, 716, 717, 718, 287, 1146, 288, 1147, 168, 1083, 180, 1017, 424, 1344, 434, 798, 862, 801, 198, 347, 348, 199, 947, 948, 225, 863, 1021, 421, 422, 158, 338, 339, 340, 864, 865, 342, 345, 866, 867, 1358, 351, 144, 145, 641, 597, 159, 374, 804, 915, 598, 377, 1135, 1136, 804, 173, 269, 910, 380, 382, 385, 386, 174, 388, 382, 390, 391, 719, 382, 394, 395, 226, 178, 258, 144, 145, 1019, 795, 173, 278, 1089, 279, 421, 422, 275, 799, 280, 800, 271, 413, 461, 276, 446, 161, 1428, 419, 420, 383, 137, 138, 139, 140, 383, 289, 420, 290, 383, 261, 1018, 137, 138, 139, 140, 562, 162, 655, 203, 204, 144, 145, 607, 232, 608, 784, 233, 787, 205, 788, 170, 144, 145, 421, 422, 206, 470, 472, 382, 137, 138, 139, 140, 416, 417, 163, 479, 480, 481, 648, 483, 425, 164, 486, 487, 433, 291, 488, 292, 144, 145, 144, 145, 1459, 457, 165, 458, 700, 279, 600, 499, 150, 601, 280, 471, 167, 383, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 769, 1199, 421, 422, 293, 770, 294, 556, 368, 369, 370, 546, 283, 603, 382, 371, 601, 382, 654, 171, 813, 1522, 568, 137, 138, 139, 140, 843, 844, 845, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 123, 124, 125, 126, 175, 421, 422, 383, 129, 470, 383, 181, 777, 421, 422, 611, 211, 778, 965, 212, 616, 1002, 213, 607, 862, 621, 622, 623, 624, 1020, 182, 966, 629, 863, 421, 422, 607, 634, 635, 636, 176, 864, 865, 1074, 1276, 866, 867, 471, 607, 1277, 1255, 179, 351, 351, 649, 650, 651, 338, 339, 652, 283, 421, 422, 656, 657, 658, 659, 660, 180, 421, 422, 665, 183, 771, 667, 668, 772, 1315, 382, 382, 382, 185, 917, 675, 676, 1317, 681, 132, 133, 683, 295, 862, 296, 123, 124, 125, 126, 382, 644, 645, 863, 129, 187, 691, 693, 188, 417, 189, 864, 865, 203, 204, 866, 867, 184, 1156, 383, 383, 383, 862, 205, 186, 681, 421, 422, 190, 710, 214, 863, 713, 1075, 712, 200, 607, 862, 383, 864, 865, 201, 1319, 866, 867, 694, 863, 937, 1176, 1177, 938, 862, 939, 862, 864, 865, 941, 1347, 866, 867, 863, 1019, 863, 202, 1019, 421, 422, 1019, 864, 865, 864, 865, 866, 867, 866, 867, 401, 402, 403, 964, 297, 1327, 298, 132, 133, 1406, 862, 223, 191, 421, 422, 192, 210, 790, 193, 863, 194, 222, 791, 789, 421, 422, 862, 864, 865, 1329, 230, 866, 867, 440, 441, 863, 1365, 1409, 1368, 231, 1371, 421, 422, 864, 865, 453, 454, 866, 867, 421, 422, 382, 1412, 382, 809, 421, 422, 1330, 421, 422, 234, 693, 815, 421, 422, 1405, 1475, 235, 1511, 1080, 1019, 1408, 1082, 1084, 1411, 829, 421, 422, 253, 1419, 834, 842, 842, 842, 842, 841, 841, 841, 841, 383, 254, 383, 1421, 382, 421, 422, 255, 853, 854, 694, 816, 1513, 299, 857, 300, 862, 256, 262, 195, 1019, 1479, 196, 1019, 197, 863, 1019, 878, 1515, 1019, 880, 263, 264, 864, 865, 265, 266, 866, 867, 301, 329, 302, 383, 303, 382, 304, 382, 267, 1450, 475, 382, 382, 382, 382, 282, 330, 852, 1019, 382, 1019, 334, 1019, 305, 858, 306, 905, 331, 907, 908, 870, 465, 332, 384, 466, 333, 335, 467, 389, 468, 336, 916, 393, 383, 307, 383, 308, 337, 355, 383, 383, 383, 383, 354, 1239, 1240, 309, 383, 310, 1489, 607, 1492, 613, 1495, 862, 311, 349, 312, 1517, 1498, 313, 372, 314, 863, 925, 926, 315, 317, 316, 318, 373, 864, 865, 396, 375, 866, 867, 376, 927, 928, 929, 930, 931, 932, 933, 387, 862, 382, 350, 382, 412, 392, 397, 415, 1526, 863, 1528, 940, 1530, 414, 319, 943, 320, 864, 865, 949, 398, 866, 867, 321, 1269, 322, 399, 400, 442, 382, 382, 382, 382, 962, 366, 367, 368, 369, 370, 383, 323, 383, 324, 371, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 476, 369, 370, 325, 1538, 326, 327, 371, 328, 404, 546, 283, 383, 383, 383, 383, 1251, 607, 1204, 617, 40, 41, 42, 43, 426, 409, 496, 497, 48, 410, 607, 51, 690, 708, 411, 709, 1539, 427, 767, 969, 768, 607, 862, 783, 123, 124, 125, 126, 607, 437, 786, 863, 129, 607, 560, 884, 607, 564, 885, 864, 865, 428, 1033, 866, 867, 607, 607, 886, 898, 438, 916, 862, 439, 443, 1360, 1042, 975, 450, 976, 1050, 863, 607, 449, 1000, 1007, 1008, 1009, 462, 864, 865, 451, 447, 866, 867, 452, 455, 1060, 1061, 456, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 607, 607, 1036, 1037, 371, 607, 607, 1038, 1039, 607, 463, 1040, 1085, 1270, 607, 459, 1041, 1090, 132, 133, 1540, 607, 1091, 1043, 1092, 464, 607, 1104, 1093, 477, 1101, 1103, 362, 363, 364, 365, 366, 367, 368, 369, 370, 607, 607, 1094, 1095, 371, 478, 144, 145, 482, 670, 671, 672, 607, 915, 1096, 1229, 1185, 1230, 1186, 607, 1282, 1264, 1283, 484, 1137, 1138, 1139, 1185, 688, 1328, 1373, 607, 1374, 1385, 1149, 1151, 1185, 1393, 1390, 1394, 489, 1396, 1154, 1397, 1185, 607, 1400, 1401, 485, 607, 382, 1420, 1282, 490, 1456, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 492, 1172, 1173, 1174, 371, 607, 1051, 1478, 607, 1185, 1480, 1484, 1182, 1180, 1507, 498, 1508, 1188, 778, 383, 1510, 607, 1155, 1518, 1519, 1185, 1520, 1536, 1541, 500, 1542, 371, 1192, 501, 503, 569, 570, 1193, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 571, 1207, 150, 578, 371, 1206, 620, 572, 625, 1208, 626, 356, 630, 631, 632, 1213, 1214, 637, 633, 1376, 1216, 640, 639, 661, 663, 682, 664, 1222, 666, 673, 674, 684, 685, 686, 687, 1234, 806, 1232, 808, 1233, 698, 785, 701, 707, 351, 351, 773, 774, 775, 776, 780, 1250, 781, 792, 782, 793, 797, 811, 807, 1209, 810, 382, 812, 817, 814, 382, 818, 819, 1265, 821, 822, 823, 824, 826, 827, 828, 1274, 836, 850, 851, 1273, 838, 855, 879, 856, 892, 1278, 1279, 901, 902, 903, 904, 913, 911, 1241, 920, 1244, 921, 1247, 383, 922, 924, 934, 383, 835, 942, 944, 950, 1293, 945, 1258, 951, 1451, 1261, 1262, 849, 953, 957, 889, 954, 890, 963, 968, 973, 894, 895, 896, 897, 1503, 970, 979, 984, 900, 980, 985, 986, 987, 990, 992, 991, 1312, 993, 994, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 996, 1326, 997, 470, 371, 995, 998, 999, 1532, 1001, 1535, 1010, 1011, 1334, 1012, 1335, 1022, 1013, 382, 1023, 1028, 1024, 1025, 1341, 1026, 1029, 1030, 1031, 1345, 912, 1548, 1034, 1032, 1035, 1047, 1052, 1053, 1055, 1057, 1056, 1059, 471, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 935, 382, 936, 383, 371, 351, 1058, 1097, 1363, 1064, 1366, 1076, 1369, 1087, 1077, 1100, 1107, 1079, 1111, 1114, 1115, 1118, 382, 1119, 1120, 1086, 1382, 1124, 958, 959, 960, 961, 1106, 1112, 1113, 1388, 1389, 1125, 1117, 383, 1127, 1128, 1392, 1129, 1130, 1134, 1140, 1141, 1148, 1152, 1399, 1153, 1169, 1168, 1403, 1167, 1160, 1364, 1161, 1367, 383, 1370, 1165, 1170, 1175, 1171, 1178, 1179, 1189, 1378, 1194, 1195, 1381, 1252, 1197, 1200, 1201, 1202, 1284, 495, 1188, 1203, 1210, 1211, 7, 8, 971, 972, 1212, 974, 1215, 977, 978, 1217, 1220, 981, 982, 1218, 1438, 1219, 1223, 1442, 1228, 1231, 1446, 1242, 1245, 1248, 1449, 1256, 1259, 1263, 382, 1285, 382, 1281, 1286, 1287, 1290, 1458, 1289, 1292, 1460, 1300, 1466, 573, 19, 20, 574, 22, 23, 575, 25, 576, 27, 1301, 28, 1291, 1302, 31, 32, 1303, 34, 35, 36, 1304, 1305, 1306, 39, 1307, 383, 1310, 383, 1311, 1316, 1487, 1313, 1314, 1318, 1320, 1322, 1325, 1324, 1454, 1331, 1338, 1333, 1339, 1346, 1044, 1045, 1046, 382, 1348, 1352, 1353, 58, 59, 60, 1054, 1354, 1355, 1356, 1372, 1357, 1379, 1386, 1391, 1387, 1414, 1063, 1402, 1418, 383, 1415, 1423, 1430, 1431, 1524, 1467, 1523, 1433, 1434, 1436, 1439, 1440, 1443, 1444, 1447, 1448, 383, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 1453, 1544, 1473, 1481, 371, 1469, 1490, 1493, 1496, 1499, 1501, 1506, 669, 1525, 1527, 1529, 1110, 1531, 1471, 1482, 1505, 1533, 1116, 1543, 1512, 1514, 1516, 1545, 1121, 1122, 1123, 1521, 1546, 1164, 1126, 1547, 1549, 1099, 1424, 1131, 1132, 1133, 1109, 594, 82, 90, 1196, 1488, 0, 0, 604, 0, 0, 628, 0, 1150, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1159, 0, 0, 0, 1163, 0, 95, 236, 0, 0, 0, 0, 99, 100, 101, 0, 0, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 238, 0, 0, 0, 0, 0, 0, 127, 128, 0, 0, 0, 0, 0, 0, 0, 0, 0, 239, 0, 1190, 240, 1191, 0, 241, 0, 242, 0, 0, 0, 0, 0, 0, 0, 0, 0, 243, 0, 0, 0, 0, 0, 40, 41, 42, 43, 44, 0, 0, 0, 48, 0, 0, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1224, 1225, 1226, 1227, 0, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 131, 371, 0, 0, 0, 0, 0, 134, 135, 136, 0, 1063, 779, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1266, 429, 1257, 0, 0, 0, 143, 1275, 0, 0, 0, 431, 0, 0, 1280, 0, 149, 0, 206, 473, 95, 236, 0, 0, 0, 0, 99, 100, 101, 0, 0, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 238, 952, 0, 0, 0, 0, 0, 127, 128, 0, 0, 1336, 0, 0, 0, 0, 0, 0, 239, 0, 0, 240, 0, 0, 241, 0, 242, 0, 0, 1323, 0, 0, 0, 0, 0, 0, 243, 0, 0, 0, 0, 0, 40, 41, 42, 43, 44, 1359, 0, 0, 48, 0, 0, 51, 0, 0, 0, 0, 1063, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1380, 0, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 1063, 0, 0, 983, 371, 131, 0, 0, 0, 0, 0, 0, 134, 135, 136, 0, 0, 1375, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 141, 381, 0, 0, 0, 143, 0, 0, 0, 0, 245, 0, 0, 0, 0, 149, 0, 0, 473, 0, 0, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 1413, 371, 0, 0, 0, 95, 96, 97, 1452, 98, 1455, 99, 100, 101, 0, 0, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 0, 0, 0, 123, 124, 125, 126, 127, 128, 0, 0, 129, 7, 8, 0, 0, 0, 0, 1063, 0, 1463, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1500, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 573, 19, 20, 574, 22, 23, 575, 25, 576, 27, 0, 28, 0, 0, 31, 32, 0, 34, 35, 36, 0, 0, 0, 39, 0, 0, 0, 0, 0, 0, 130, 0, 0, 0, 0, 0, 131, 132, 133, 0, 0, 0, 1063, 134, 135, 136, 137, 138, 139, 140, 0, 58, 59, 60, 0, 0, 0, 0, 0, 141, 142, 0, 0, 0, 143, 0, 144, 145, 0, 146, 0, 147, 0, 148, 149, 0, 150, 95, 236, 237, 0, 0, 0, 99, 100, 101, 0, 0, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 238, 0, 0, 705, 0, 0, 0, 127, 128, 0, 0, 0, 0, 7, 8, 0, 0, 0, 239, 0, 0, 240, 0, 0, 241, 0, 242, 0, 0, 0, 0, 0, 0, 0, 0, 0, 243, 0, 0, 0, 0, 0, 40, 41, 42, 43, 44, 0, 0, 0, 48, 0, 0, 51, 573, 19, 20, 574, 22, 23, 575, 25, 576, 27, 0, 28, 0, 0, 31, 32, 0, 34, 35, 36, 0, 0, 0, 39, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 131, 0, 0, 0, 0, 0, 0, 134, 135, 136, 0, 0, 0, 0, 0, 0, 58, 59, 60, 0, 0, 0, 0, 141, 244, 0, 0, 0, 143, 0, 0, 0, 0, 245, 0, 95, 236, 1157, 149, 0, 246, 99, 100, 101, 0, 0, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 238, 0, 0, 0, 0, 0, 0, 127, 128, 0, 706, 0, 0, 7, 8, 0, 0, 0, 239, 0, 0, 240, 0, 0, 241, 0, 242, 0, 0, 0, 0, 0, 0, 0, 0, 0, 243, 0, 0, 0, 0, 0, 40, 41, 42, 43, 44, 0, 0, 0, 48, 0, 0, 51, 573, 19, 20, 574, 22, 23, 575, 25, 576, 27, 0, 28, 0, 0, 31, 32, 0, 34, 35, 36, 0, 0, 0, 39, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 131, 0, 0, 0, 0, 0, 0, 134, 135, 136, 0, 0, 0, 0, 0, 0, 58, 59, 60, 0, 0, 0, 0, 141, 244, 0, 0, 0, 143, 0, 0, 0, 0, 245, 0, 95, 236, 1461, 149, 0, 1158, 99, 100, 101, 0, 0, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 238, 0, 0, 0, 0, 0, 0, 127, 128, 0, 871, 0, 0, 7, 8, 0, 0, 0, 239, 0, 0, 240, 0, 0, 241, 0, 242, 0, 0, 0, 0, 0, 0, 0, 0, 0, 243, 0, 0, 0, 0, 0, 40, 41, 42, 43, 44, 0, 0, 0, 48, 0, 0, 51, 573, 19, 20, 574, 22, 23, 575, 25, 576, 27, 0, 28, 0, 0, 31, 32, 0, 34, 35, 36, 0, 0, 0, 39, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 131, 0, 0, 0, 0, 0, 0, 134, 135, 136, 0, 0, 0, 0, 0, 0, 58, 59, 60, 0, 0, 0, 0, 141, 244, 0, 0, 0, 143, 0, 0, 0, 0, 245, 0, 95, 236, 0, 149, 0, 1462, 99, 100, 101, 0, 0, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 238, 0, 0, 0, 0, 0, 0, 127, 128, 0, 906, 0, 0, 7, 8, 0, 0, 0, 239, 0, 0, 240, 0, 0, 241, 0, 242, 0, 0, 0, 0, 0, 0, 0, 0, 0, 243, 0, 0, 0, 0, 0, 40, 41, 42, 43, 44, 0, 0, 0, 48, 0, 0, 51, 573, 19, 20, 574, 22, 23, 575, 25, 576, 27, 0, 28, 0, 0, 31, 32, 0, 34, 35, 36, 0, 0, 0, 39, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 131, 0, 0, 0, 0, 0, 0, 134, 135, 136, 0, 0, 0, 0, 0, 0, 58, 59, 60, 0, 0, 0, 0, 141, 244, 0, 0, 0, 143, 0, 0, 0, 0, 245, 0, 95, 236, 0, 149, 0, 246, 99, 100, 101, 0, 0, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 238, 0, 0, 0, 0, 0, 0, 127, 128, 0, 1416, 0, 0, 7, 8, 0, 0, 0, 239, 0, 0, 240, 0, 0, 241, 0, 242, 0, 0, 0, 0, 0, 0, 0, 0, 0, 243, 0, 0, 0, 0, 0, 40, 41, 42, 43, 44, 0, 0, 0, 48, 0, 0, 51, 573, 19, 20, 574, 22, 23, 575, 25, 576, 27, 0, 28, 0, 0, 31, 32, 0, 34, 35, 36, 0, 0, 0, 39, 1027, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 131, 0, 0, 0, 0, 0, 0, 134, 135, 136, 1081, 0, 0, 0, 0, 0, 58, 59, 60, 0, 0, 0, 0, 141, 381, 0, 0, 0, 143, 0, 0, 0, 0, 245, 0, 95, 236, 0, 149, 0, 469, 99, 100, 101, 0, 0, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 238, 0, 0, 0, 0, 0, 0, 127, 128, 0, 1476, 0, 0, 0, 0, 0, 0, 0, 239, 0, 0, 240, 0, 0, 241, 0, 242, 0, 0, 0, 0, 0, 0, 0, 0, 0, 243, 0, 0, 0, 0, 0, 40, 41, 42, 43, 44, 0, 0, 0, 48, 0, 0, 51, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 131, 1088, 0, 0, 371, 0, 0, 134, 135, 136, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 141, 381, 0, 0, 0, 143, 0, 0, 0, 0, 245, 0, 95, 236, 0, 149, 0, 692, 99, 100, 101, 0, 0, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 238, 0, 0, 0, 0, 0, 0, 127, 128, 0, 0, 0, 0, 0, 0, 0, 0, 0, 239, 0, 0, 240, 0, 0, 241, 0, 242, 0, 0, 0, 0, 0, 0, 0, 0, 0, 243, 0, 0, 0, 0, 0, 40, 41, 42, 43, 44, 0, 0, 0, 48, 0, 0, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 1166, 0, 0, 0, 371, 0, 0, 0, 0, 131, 0, 0, 0, 0, 0, 0, 134, 135, 136, 1288, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 141, 244, 0, 0, 0, 143, 0, 0, 0, 0, 245, 0, 95, 236, 0, 149, 0, 1162, 99, 100, 101, 0, 0, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 238, 0, 0, 0, 0, 0, 0, 127, 128, 0, 0, 0, 0, 0, 0, 0, 0, 0, 239, 0, 0, 240, 0, 0, 241, 0, 242, 0, 0, 0, 0, 0, 0, 0, 0, 0, 243, 0, 0, 0, 0, 0, 40, 41, 42, 43, 44, 0, 0, 0, 48, 0, 0, 51, 0, 0, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 131, 0, 0, 0, 371, 0, 0, 134, 135, 136, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 429, 1257, 0, 0, 0, 143, 0, 0, 0, 0, 431, 0, 95, 272, 283, 149, 0, 206, 99, 100, 101, 0, 0, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 0, 0, 0, 123, 124, 125, 126, 127, 128, 0, 0, 129, 95, 272, 283, 0, 0, 0, 99, 100, 101, 0, 0, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 0, 0, 0, 123, 124, 125, 126, 127, 128, 95, 272, 129, 0, 0, 0, 99, 100, 101, 0, 0, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 0, 0, 0, 0, 131, 132, 133, 127, 128, 0, 0, 134, 135, 136, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 141, 142, 0, 0, 0, 143, 0, 0, 0, 0, 245, 0, 0, 0, 0, 149, 0, 1102, 0, 0, 0, 131, 132, 133, 0, 0, 0, 0, 134, 135, 136, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 141, 142, 0, 0, 0, 143, 0, 0, 0, 0, 245, 0, 0, 0, 0, 149, 0, 1272, 131, 0, 0, 0, 0, 0, 0, 134, 135, 136, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 141, 142, 0, 0, 0, 143, 0, 0, 0, 0, 245, 0, 0, 343, 0, 149, 0, 344, 95, 272, 0, 0, 0, 0, 99, 100, 101, 0, 0, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 0, 0, 0, 95, 272, 1464, 0, 127, 128, 99, 100, 101, 0, 0, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 0, 0, 0, 95, 272, 0, 0, 127, 128, 99, 100, 101, 0, 0, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 0, 0, 0, 0, 0, 0, 0, 127, 128, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 131, 0, 0, 0, 0, 0, 0, 134, 135, 136, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 141, 142, 0, 0, 0, 143, 0, 0, 0, 0, 245, 0, 131, 679, 0, 149, 0, 680, 0, 134, 135, 136, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 141, 142, 0, 0, 0, 143, 0, 0, 0, 0, 245, 0, 131, 0, 0, 149, 0, 1465, 0, 134, 135, 136, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 141, 142, 0, 0, 0, 143, 0, 0, 0, 0, 245, 0, 95, 272, 0, 149, 0, 341, 99, 100, 101, 0, 0, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 0, 0, 0, 95, 236, 0, 0, 127, 128, 99, 100, 101, 0, 0, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 238, 0, 0, 0, 0, 0, 0, 127, 128, 0, 0, 0, 0, 0, 0, 0, 0, 0, 239, 0, 0, 240, 0, 0, 241, 0, 242, 0, 0, 0, 0, 0, 0, 0, 0, 0, 243, 0, 0, 0, 0, 0, 40, 41, 42, 43, 44, 0, 0, 0, 48, 0, 0, 51, 131, 0, 0, 0, 0, 0, 0, 134, 135, 136, 0, 0, 0, 0, 1309, 0, 0, 0, 0, 0, 0, 0, 0, 429, 430, 0, 0, 0, 143, 0, 0, 0, 0, 431, 1337, 131, 0, 0, 149, 0, 206, 0, 134, 135, 136, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 141, 381, 0, 0, 0, 143, 95, 272, 283, 0, 245, 0, 99, 100, 101, 149, 0, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 0, 0, 0, 123, 124, 125, 126, 127, 128, 95, 272, 129, 0, 0, 0, 99, 100, 101, 0, 0, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 1422, 0, 0, 0, 0, 0, 0, 127, 128, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 1474, 0, 0, 0, 371, 0, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 1509, 475, 0, 0, 371, 131, 132, 133, 0, 0, 0, 0, 134, 135, 136, 0, 0, 0, 0, 1537, 0, 0, 0, 0, 0, 0, 0, 0, 141, 142, 0, 0, 0, 143, 0, 0, 0, 0, 245, 475, 0, 0, 0, 149, 0, 0, 131, 0, 0, 0, 0, 0, 0, 134, 135, 136, 0, 0, 475, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 141, 142, 0, 0, 0, 143, 0, 0, 702, 0, 245, 0, 0, 0, 0, 149, 0, 0, 0, 0, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 802, 0, 0, 0, 371, 0, 0, 0, 0, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 899, 0, 0, 0, 371, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 606, 369, 370, 1049, 0, 0, 0, 371, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 476, 369, 370, 0, 0, 0, 0, 371, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 606, 369, 370, 0, 0, 0, 0, 371, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 0, 0, 0, 0, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 988, 0, 0, 0, 371, 0, 0, 0, 0, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, -4, 1, 0, 371, -4, 0, 0, 0, 0, 0, 0, 0, -4, -4, 0, 0, 0, 0, 0, 0, 0, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, -4, -4, 0, 371, 0, 0, 0, 0, -4, -4, 0, -4, -4, -4, 0, -4, -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, -4, -4, 0, 6, -4, -4, 0, 0, 0, -4, 0, 7, 8, 0, -4, -4, -4, -4, 0, 0, -4, 0, -4, 0, -4, -4, -4, -4, -4, -4, -4, -4, -4, -4, -4, 9, 10, 0, -4, -4, -4, -4, 0, 11, 12, 0, 13, 14, 15, 0, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 0, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 0, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 7, 8, 54, 55, 0, 0, 0, 56, 0, 0, 0, 0, 57, 58, 59, 60, 0, 0, 61, 0, 62, 0, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 0, 0, 0, 74, 75, 76, 77, 0, 573, 19, 20, 574, 22, 23, 575, 25, 576, 27, 0, 28, 0, 0, 31, 32, 0, 34, 35, 36, 0, 0, 0, 39, 0, 0, 0, 0, 0, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 58, 59, 60, 1237, 0, 1238, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 0, 0, 0, 1267, 0, 1268, 0, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 0, 0, 0, 1361, 0, 1362, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 0, 0, 0, 0, 0, 831, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 0, 0, 0, 0, 0, 874, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 0, 0, 0, 0, 0, 893, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 0, 0, 0, 0, 0, 918, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 0, 0, 0, 0, 0, 1005, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 0, 0, 0, 0, 0, 1235, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 0, 0, 0, 0, 0, 1254, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 0, 0, 0, 0, 0, 1296, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 0, 0, 0, 0, 0, 1297, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 0, 0, 0, 0, 0, 1298, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 0, 0, 0, 0, 0, 1299, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 0, 0, 0, 0, 0, 1332, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 0, 0, 0, 0, 0, 1377, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 0, 0, 0, 0, 0, 1383, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 0, 0, 0, 0, 0, 1384, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 0, 0, 0, 0, 0, 1404, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 0, 0, 0, 0, 0, 1407, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 0, 0, 0, 0, 0, 1410, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 0, 0, 0, 0, 0, 1432, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 0, 0, 0, 0, 0, 1435, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 0, 0, 0, 0, 0, 1468, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 0, 0, 0, 0, 0, 1470, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 0, 0, 0, 0, 0, 1472, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 0, 0, 0, 0, 0, 1485, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 0, 0, 0, 0, 638, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 0, 0, 0, 0, 1308, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 689, 0, 0, 0, 0, 642, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 0, 0, 0, 599, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 0, 0, 0, 642, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 0, 0, 0, 643, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 0, 0, 0, 699, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 0, 0, 0, 747, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 0, 0, 0, 748, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 0, 0, 0, 761, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 0, 0, 0, 762, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 0, 0, 0, 763, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 0, 0, 0, 764, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 0, 0, 0, 765, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 0, 0, 0, 766, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 0, 0, 0, 859, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 0, 0, 0, 860, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 0, 0, 0, 861, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 0, 0, 0, 967, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 0, 0, 0, 1003, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 0, 0, 0, 1004, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 0, 0, 0, 1048, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 0, 0, 0, 1183, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 0, 0, 0, 1184, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 0, 0, 0, 1205, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 0, 0, 0, 1342, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 0, 0, 0, 1343, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 0, 0, 0, 1349, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 0, 0, 0, 1426, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 0, 0, 0, 1429, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 565, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 704, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 711, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 726, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 728, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 730, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 732, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 734, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 736, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 738, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 740, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 742, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 744, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 746, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 750, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 752, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 754, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 756, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 758, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 760, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 882, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 883, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 887, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 888, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 891, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 914, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 1066, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 1068, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 1070, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 1072, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 1073, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 1198, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 0, 0, 1321, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 561, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 605, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 609, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 610, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 612, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 614, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 615, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 618, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 619, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 689, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 695, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 696, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 697, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 703, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 725, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 727, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 729, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 731, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 733, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 735, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 737, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 739, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 741, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 743, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 745, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 749, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 751, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 753, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 755, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 757, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 759, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 820, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 825, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 830, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 832, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 833, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 839, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 846, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 847, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 848, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 873, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 875, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 876, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 877, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 881, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 1065, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 1067, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 1069, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 1071, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 1078, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 1236, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 1253, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 1271, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 1425, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371, 0, 1483, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 0, 0, 0, 0, 371 }; static const yytype_int16 yycheck[] = { 6, 1160, 3, 214, 6, 5, 158, 6, 423, 424, 4, 7, 164, 343, 4, 226, 346, 6, 6, 4, 4, 4, 158, 4, 6, 4, 4, 163, 59, 6, 795, 868, 4, 4, 4, 4, 59, 5, 61, 5, 157, 6, 159, 6, 6, 4, 4, 6, 6, 6, 147, 148, 154, 155, 154, 155, 147, 148, 269, 159, 271, 161, 4, 6, 147, 148, 166, 164, 327, 328, 329, 330, 331, 332, 165, 77, 335, 336, 337, 7, 163, 0, 165, 53, 147, 148, 157, 57, 41, 42, 7, 44, 98, 164, 159, 53, 157, 67, 147, 148, 163, 13, 165, 164, 147, 148, 147, 148, 97, 99, 100, 101, 102, 157, 163, 159, 165, 157, 7, 157, 97, 164, 1281, 164, 164, 74, 164, 56, 109, 110, 59, 109, 110, 118, 83, 872, 147, 148, 157, 141, 142, 143, 91, 92, 146, 147, 95, 96, 1307, 150, 154, 155, 163, 158, 157, 157, 144, 161, 163, 161, 6, 7, 144, 157, 164, 161, 168, 169, 170, 171, 164, 173, 174, 175, 176, 165, 178, 179, 180, 164, 164, 164, 154, 155, 1021, 164, 157, 159, 953, 161, 147, 148, 157, 164, 166, 164, 164, 199, 164, 164, 159, 164, 164, 205, 206, 169, 134, 135, 136, 137, 174, 157, 214, 159, 178, 157, 165, 134, 135, 136, 137, 7, 6, 434, 147, 148, 154, 155, 163, 56, 165, 561, 59, 161, 157, 565, 157, 154, 155, 147, 148, 164, 244, 245, 246, 134, 135, 136, 137, 202, 203, 6, 254, 255, 256, 163, 258, 210, 6, 261, 262, 214, 157, 265, 159, 154, 155, 154, 155, 1428, 157, 6, 159, 484, 161, 160, 278, 164, 163, 166, 244, 159, 246, 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, 158, 1091, 147, 148, 157, 163, 159, 334, 149, 150, 151, 4, 5, 160, 341, 156, 163, 344, 163, 157, 604, 1505, 346, 134, 135, 136, 137, 631, 632, 633, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 38, 39, 40, 41, 157, 147, 148, 341, 46, 381, 344, 63, 158, 147, 148, 387, 53, 163, 158, 56, 392, 163, 59, 163, 74, 397, 398, 399, 400, 163, 59, 158, 404, 83, 147, 148, 163, 409, 410, 411, 157, 91, 92, 158, 158, 95, 96, 381, 163, 163, 163, 157, 423, 424, 426, 427, 428, 429, 430, 431, 5, 147, 148, 435, 436, 437, 438, 439, 157, 147, 148, 443, 59, 160, 446, 447, 163, 163, 450, 451, 452, 59, 711, 455, 456, 163, 458, 125, 126, 461, 157, 74, 159, 38, 39, 40, 41, 469, 421, 422, 83, 46, 56, 475, 476, 59, 429, 61, 91, 92, 147, 148, 95, 96, 6, 165, 450, 451, 452, 74, 157, 59, 494, 147, 148, 61, 498, 164, 83, 501, 160, 500, 157, 163, 74, 469, 91, 92, 56, 163, 95, 96, 476, 83, 773, 6, 7, 776, 74, 778, 74, 91, 92, 782, 1289, 95, 96, 83, 1365, 83, 164, 1368, 147, 148, 1371, 91, 92, 91, 92, 95, 96, 95, 96, 187, 188, 189, 805, 157, 163, 159, 125, 126, 165, 74, 56, 53, 147, 148, 56, 164, 566, 59, 83, 61, 59, 567, 565, 147, 148, 74, 91, 92, 163, 56, 95, 96, 220, 221, 83, 1316, 165, 1318, 59, 1320, 147, 148, 91, 92, 232, 233, 95, 96, 147, 148, 596, 165, 598, 599, 147, 148, 163, 147, 148, 4, 606, 607, 147, 148, 163, 165, 4, 165, 942, 1450, 163, 945, 946, 163, 620, 147, 148, 4, 163, 625, 630, 631, 632, 633, 630, 631, 632, 633, 596, 157, 598, 163, 638, 147, 148, 157, 642, 643, 606, 607, 165, 157, 648, 159, 74, 157, 157, 56, 1489, 163, 59, 1492, 61, 83, 1495, 661, 165, 1498, 664, 6, 6, 91, 92, 159, 4, 95, 96, 157, 157, 159, 638, 157, 678, 159, 680, 4, 1417, 8, 684, 685, 686, 687, 164, 157, 641, 1526, 692, 1528, 7, 1530, 157, 648, 159, 699, 157, 701, 702, 654, 53, 157, 169, 56, 157, 157, 59, 174, 61, 157, 711, 178, 678, 157, 680, 159, 157, 6, 684, 685, 686, 687, 151, 1140, 1141, 157, 692, 159, 1467, 163, 1469, 165, 1471, 74, 157, 4, 159, 165, 1477, 157, 6, 159, 83, 747, 748, 157, 157, 159, 159, 6, 91, 92, 181, 5, 95, 96, 5, 761, 762, 763, 764, 765, 766, 767, 157, 74, 770, 4, 772, 198, 157, 157, 201, 1512, 83, 1514, 780, 1516, 4, 157, 784, 159, 91, 92, 788, 164, 95, 96, 157, 8, 159, 157, 157, 222, 798, 799, 800, 801, 802, 147, 148, 149, 150, 151, 770, 157, 772, 159, 156, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 157, 165, 159, 157, 156, 159, 157, 4, 5, 798, 799, 800, 801, 165, 163, 1099, 165, 77, 78, 79, 80, 164, 157, 275, 276, 85, 157, 163, 88, 165, 163, 157, 165, 165, 164, 159, 814, 161, 163, 74, 165, 38, 39, 40, 41, 163, 157, 165, 83, 46, 163, 341, 165, 163, 344, 165, 91, 92, 164, 886, 95, 96, 163, 163, 165, 165, 157, 891, 74, 157, 157, 1311, 899, 59, 164, 61, 8, 83, 163, 6, 165, 859, 860, 861, 5, 91, 92, 164, 159, 95, 96, 164, 159, 920, 921, 159, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 163, 163, 165, 165, 156, 163, 163, 165, 165, 163, 5, 165, 946, 165, 163, 159, 165, 954, 125, 126, 165, 163, 163, 165, 165, 5, 163, 968, 165, 6, 967, 968, 143, 144, 145, 146, 147, 148, 149, 150, 151, 163, 163, 165, 165, 156, 6, 154, 155, 161, 450, 451, 452, 163, 161, 165, 4, 163, 6, 165, 163, 163, 165, 165, 164, 1002, 1003, 1004, 163, 469, 165, 163, 163, 165, 165, 1012, 1013, 163, 163, 165, 165, 6, 163, 1020, 165, 163, 163, 165, 165, 112, 163, 1028, 165, 163, 6, 165, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 6, 1048, 1049, 1050, 156, 163, 158, 165, 163, 163, 165, 165, 1059, 1057, 163, 159, 165, 1064, 163, 1028, 165, 163, 1020, 165, 163, 163, 165, 165, 163, 4, 165, 156, 1083, 164, 6, 161, 7, 1084, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 159, 1102, 164, 6, 156, 1102, 7, 165, 7, 1106, 7, 6, 157, 157, 157, 1112, 1113, 7, 157, 1325, 1117, 6, 158, 7, 6, 4, 7, 1124, 6, 6, 6, 164, 164, 164, 164, 1136, 596, 1134, 598, 1136, 109, 563, 164, 158, 1140, 1141, 163, 158, 158, 163, 163, 1148, 158, 6, 163, 4, 160, 4, 6, 1107, 6, 1158, 6, 112, 7, 1162, 7, 7, 1165, 7, 112, 7, 7, 112, 7, 7, 1177, 4, 638, 161, 1177, 6, 165, 6, 165, 160, 1183, 1184, 7, 7, 7, 161, 6, 164, 1142, 157, 1144, 157, 1146, 1158, 164, 6, 4, 1162, 626, 158, 6, 6, 1205, 160, 1158, 6, 1418, 1161, 1162, 637, 7, 6, 678, 159, 680, 144, 7, 7, 684, 685, 686, 687, 1482, 59, 7, 7, 692, 61, 7, 7, 7, 6, 158, 7, 1237, 158, 158, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 7, 1255, 7, 1257, 156, 158, 7, 6, 1519, 4, 1521, 4, 6, 1267, 164, 1269, 7, 157, 1272, 6, 164, 7, 7, 1277, 7, 6, 6, 6, 1282, 708, 1541, 6, 59, 6, 4, 4, 4, 165, 4, 6, 157, 1257, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 770, 1308, 772, 1272, 156, 1311, 6, 6, 1315, 164, 1317, 158, 1319, 7, 158, 6, 67, 158, 6, 6, 6, 6, 1329, 6, 5, 161, 1333, 4, 798, 799, 800, 801, 164, 164, 164, 1342, 1343, 6, 164, 1308, 7, 7, 1349, 7, 7, 7, 164, 164, 159, 6, 1357, 6, 6, 160, 1361, 158, 164, 1315, 164, 1317, 1329, 1319, 164, 6, 6, 108, 163, 6, 161, 1327, 6, 4, 1330, 163, 6, 6, 6, 6, 4, 6, 1387, 6, 6, 6, 12, 13, 818, 819, 6, 821, 6, 823, 824, 5, 112, 827, 828, 6, 1405, 6, 6, 1408, 6, 6, 1411, 6, 6, 6, 1415, 6, 6, 6, 1419, 6, 1421, 164, 6, 6, 6, 1426, 7, 6, 1429, 5, 1431, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 57, 64, 161, 6, 67, 68, 6, 70, 71, 72, 6, 6, 6, 76, 164, 1419, 6, 1421, 164, 164, 1462, 165, 165, 164, 164, 6, 164, 7, 1421, 6, 6, 107, 165, 6, 901, 902, 903, 1479, 110, 6, 6, 104, 105, 106, 911, 6, 6, 6, 6, 164, 6, 6, 6, 164, 6, 922, 165, 164, 1462, 74, 6, 4, 4, 1509, 164, 1507, 6, 6, 6, 6, 6, 6, 6, 6, 165, 1479, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 6, 1537, 6, 6, 156, 164, 6, 6, 6, 6, 6, 6, 165, 6, 6, 6, 973, 6, 164, 164, 164, 6, 979, 6, 164, 164, 164, 6, 985, 986, 987, 164, 6, 1028, 991, 6, 6, 965, 1387, 996, 997, 998, 972, 6, 3, 3, 1087, 1465, -1, -1, 379, -1, -1, 403, -1, 1012, -1, -1, -1, -1, -1, -1, -1, -1, -1, 1022, -1, -1, -1, 1026, -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, 42, 43, -1, -1, -1, -1, -1, -1, -1, -1, -1, 53, -1, 1080, 56, 1082, -1, 59, -1, 61, -1, -1, -1, -1, -1, -1, -1, -1, -1, 71, -1, -1, -1, -1, -1, 77, 78, 79, 80, 81, -1, -1, -1, 85, -1, -1, 88, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 1127, 1128, 1129, 1130, -1, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, 124, 156, -1, -1, -1, -1, -1, 131, 132, 133, -1, 1160, 6, -1, -1, -1, -1, -1, -1, -1, -1, -1, 1171, 147, 148, -1, -1, -1, 152, 1178, -1, -1, -1, 157, -1, -1, 1185, -1, 162, -1, 164, 165, 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, 6, -1, -1, -1, -1, -1, 42, 43, -1, -1, 1272, -1, -1, -1, -1, -1, -1, 53, -1, -1, 56, -1, -1, 59, -1, 61, -1, -1, 1252, -1, -1, -1, -1, -1, -1, 71, -1, -1, -1, -1, -1, 77, 78, 79, 80, 81, 1308, -1, -1, 85, -1, -1, 88, -1, -1, -1, -1, 1281, -1, -1, -1, -1, -1, -1, -1, -1, -1, 1329, -1, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 1307, -1, -1, 6, 156, 124, -1, -1, -1, -1, -1, -1, 131, 132, 133, -1, -1, 1324, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 147, 148, -1, -1, -1, 152, -1, -1, -1, -1, 157, -1, -1, -1, -1, 162, -1, -1, 165, -1, -1, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, 1373, 156, -1, -1, -1, 3, 4, 5, 1419, 7, 1421, 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, 38, 39, 40, 41, 42, 43, -1, -1, 46, 12, 13, -1, -1, -1, -1, 1428, -1, 1430, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 1479, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, -1, 64, -1, -1, 67, 68, -1, 70, 71, 72, -1, -1, -1, 76, -1, -1, -1, -1, -1, -1, 118, -1, -1, -1, -1, -1, 124, 125, 126, -1, -1, -1, 1505, 131, 132, 133, 134, 135, 136, 137, -1, 104, 105, 106, -1, -1, -1, -1, -1, 147, 148, -1, -1, -1, 152, -1, 154, 155, -1, 157, -1, 159, -1, 161, 162, -1, 164, 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, 165, -1, -1, -1, 42, 43, -1, -1, -1, -1, 12, 13, -1, -1, -1, 53, -1, -1, 56, -1, -1, 59, -1, 61, -1, -1, -1, -1, -1, -1, -1, -1, -1, 71, -1, -1, -1, -1, -1, 77, 78, 79, 80, 81, -1, -1, -1, 85, -1, -1, 88, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, -1, 64, -1, -1, 67, 68, -1, 70, 71, 72, -1, -1, -1, 76, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, -1, -1, -1, -1, -1, -1, 131, 132, 133, -1, -1, -1, -1, -1, -1, 104, 105, 106, -1, -1, -1, -1, 147, 148, -1, -1, -1, 152, -1, -1, -1, -1, 157, -1, 3, 4, 5, 162, -1, 164, 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, 42, 43, -1, 165, -1, -1, 12, 13, -1, -1, -1, 53, -1, -1, 56, -1, -1, 59, -1, 61, -1, -1, -1, -1, -1, -1, -1, -1, -1, 71, -1, -1, -1, -1, -1, 77, 78, 79, 80, 81, -1, -1, -1, 85, -1, -1, 88, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, -1, 64, -1, -1, 67, 68, -1, 70, 71, 72, -1, -1, -1, 76, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, -1, -1, -1, -1, -1, -1, 131, 132, 133, -1, -1, -1, -1, -1, -1, 104, 105, 106, -1, -1, -1, -1, 147, 148, -1, -1, -1, 152, -1, -1, -1, -1, 157, -1, 3, 4, 5, 162, -1, 164, 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, 42, 43, -1, 165, -1, -1, 12, 13, -1, -1, -1, 53, -1, -1, 56, -1, -1, 59, -1, 61, -1, -1, -1, -1, -1, -1, -1, -1, -1, 71, -1, -1, -1, -1, -1, 77, 78, 79, 80, 81, -1, -1, -1, 85, -1, -1, 88, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, -1, 64, -1, -1, 67, 68, -1, 70, 71, 72, -1, -1, -1, 76, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, -1, -1, -1, -1, -1, -1, 131, 132, 133, -1, -1, -1, -1, -1, -1, 104, 105, 106, -1, -1, -1, -1, 147, 148, -1, -1, -1, 152, -1, -1, -1, -1, 157, -1, 3, 4, -1, 162, -1, 164, 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, 42, 43, -1, 165, -1, -1, 12, 13, -1, -1, -1, 53, -1, -1, 56, -1, -1, 59, -1, 61, -1, -1, -1, -1, -1, -1, -1, -1, -1, 71, -1, -1, -1, -1, -1, 77, 78, 79, 80, 81, -1, -1, -1, 85, -1, -1, 88, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, -1, 64, -1, -1, 67, 68, -1, 70, 71, 72, -1, -1, -1, 76, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, -1, -1, -1, -1, -1, -1, 131, 132, 133, -1, -1, -1, -1, -1, -1, 104, 105, 106, -1, -1, -1, -1, 147, 148, -1, -1, -1, 152, -1, -1, -1, -1, 157, -1, 3, 4, -1, 162, -1, 164, 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, 42, 43, -1, 165, -1, -1, 12, 13, -1, -1, -1, 53, -1, -1, 56, -1, -1, 59, -1, 61, -1, -1, -1, -1, -1, -1, -1, -1, -1, 71, -1, -1, -1, -1, -1, 77, 78, 79, 80, 81, -1, -1, -1, 85, -1, -1, 88, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, -1, 64, -1, -1, 67, 68, -1, 70, 71, 72, -1, -1, -1, 76, 6, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, -1, -1, -1, -1, -1, -1, 131, 132, 133, 6, -1, -1, -1, -1, -1, 104, 105, 106, -1, -1, -1, -1, 147, 148, -1, -1, -1, 152, -1, -1, -1, -1, 157, -1, 3, 4, -1, 162, -1, 164, 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, 42, 43, -1, 165, -1, -1, -1, -1, -1, -1, -1, 53, -1, -1, 56, -1, -1, 59, -1, 61, -1, -1, -1, -1, -1, -1, -1, -1, -1, 71, -1, -1, -1, -1, -1, 77, 78, 79, 80, 81, -1, -1, -1, 85, -1, -1, 88, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 124, 6, -1, -1, 156, -1, -1, 131, 132, 133, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 147, 148, -1, -1, -1, 152, -1, -1, -1, -1, 157, -1, 3, 4, -1, 162, -1, 164, 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, 42, 43, -1, -1, -1, -1, -1, -1, -1, -1, -1, 53, -1, -1, 56, -1, -1, 59, -1, 61, -1, -1, -1, -1, -1, -1, -1, -1, -1, 71, -1, -1, -1, -1, -1, 77, 78, 79, 80, 81, -1, -1, -1, 85, -1, -1, 88, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 6, -1, -1, -1, 156, -1, -1, -1, -1, 124, -1, -1, -1, -1, -1, -1, 131, 132, 133, 6, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 147, 148, -1, -1, -1, 152, -1, -1, -1, -1, 157, -1, 3, 4, -1, 162, -1, 164, 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, 42, 43, -1, -1, -1, -1, -1, -1, -1, -1, -1, 53, -1, -1, 56, -1, -1, 59, -1, 61, -1, -1, -1, -1, -1, -1, -1, -1, -1, 71, -1, -1, -1, -1, -1, 77, 78, 79, 80, 81, -1, -1, -1, 85, -1, -1, 88, -1, -1, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 124, -1, -1, -1, 156, -1, -1, 131, 132, 133, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 147, 148, -1, -1, -1, 152, -1, -1, -1, -1, 157, -1, 3, 4, 5, 162, -1, 164, 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, 38, 39, 40, 41, 42, 43, -1, -1, 46, 3, 4, 5, -1, -1, -1, 9, 10, 11, -1, -1, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, -1, -1, -1, 38, 39, 40, 41, 42, 43, 3, 4, 46, -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, 124, 125, 126, 42, 43, -1, -1, 131, 132, 133, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 147, 148, -1, -1, -1, 152, -1, -1, -1, -1, 157, -1, -1, -1, -1, 162, -1, 164, -1, -1, -1, 124, 125, 126, -1, -1, -1, -1, 131, 132, 133, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 147, 148, -1, -1, -1, 152, -1, -1, -1, -1, 157, -1, -1, -1, -1, 162, -1, 164, 124, -1, -1, -1, -1, -1, -1, 131, 132, 133, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 147, 148, -1, -1, -1, 152, -1, -1, -1, -1, 157, -1, -1, 160, -1, 162, -1, 164, 3, 4, -1, -1, -1, -1, 9, 10, 11, -1, -1, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, -1, -1, -1, 3, 4, 5, -1, 42, 43, 9, 10, 11, -1, -1, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, -1, -1, -1, 3, 4, -1, -1, 42, 43, 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, 42, 43, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, -1, -1, -1, -1, -1, -1, 131, 132, 133, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 147, 148, -1, -1, -1, 152, -1, -1, -1, -1, 157, -1, 124, 160, -1, 162, -1, 164, -1, 131, 132, 133, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 147, 148, -1, -1, -1, 152, -1, -1, -1, -1, 157, -1, 124, -1, -1, 162, -1, 164, -1, 131, 132, 133, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 147, 148, -1, -1, -1, 152, -1, -1, -1, -1, 157, -1, 3, 4, -1, 162, -1, 164, 9, 10, 11, -1, -1, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, -1, -1, -1, 3, 4, -1, -1, 42, 43, 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, 42, 43, -1, -1, -1, -1, -1, -1, -1, -1, -1, 53, -1, -1, 56, -1, -1, 59, -1, 61, -1, -1, -1, -1, -1, -1, -1, -1, -1, 71, -1, -1, -1, -1, -1, 77, 78, 79, 80, 81, -1, -1, -1, 85, -1, -1, 88, 124, -1, -1, -1, -1, -1, -1, 131, 132, 133, -1, -1, -1, -1, 6, -1, -1, -1, -1, -1, -1, -1, -1, 147, 148, -1, -1, -1, 152, -1, -1, -1, -1, 157, 6, 124, -1, -1, 162, -1, 164, -1, 131, 132, 133, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 147, 148, -1, -1, -1, 152, 3, 4, 5, -1, 157, -1, 9, 10, 11, 162, -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, 38, 39, 40, 41, 42, 43, 3, 4, 46, -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, 6, -1, -1, -1, -1, -1, -1, 42, 43, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 6, -1, -1, -1, 156, -1, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 7, 8, -1, -1, 156, 124, 125, 126, -1, -1, -1, -1, 131, 132, 133, -1, -1, -1, -1, 7, -1, -1, -1, -1, -1, -1, -1, -1, 147, 148, -1, -1, -1, 152, -1, -1, -1, -1, 157, 8, -1, -1, -1, 162, -1, -1, 124, -1, -1, -1, -1, -1, -1, 131, 132, 133, -1, -1, 8, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 147, 148, -1, -1, -1, 152, -1, -1, 8, -1, 157, -1, -1, -1, -1, 162, -1, -1, -1, -1, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 8, -1, -1, -1, 156, -1, -1, -1, -1, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 8, -1, -1, -1, 156, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 8, -1, -1, -1, 156, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, -1, -1, -1, -1, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 74, -1, -1, -1, 156, -1, -1, -1, -1, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, 0, 1, -1, 156, 4, -1, -1, -1, -1, -1, -1, -1, 12, 13, -1, -1, -1, -1, -1, -1, -1, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, 36, 37, -1, 156, -1, -1, -1, -1, 44, 45, -1, 47, 48, 49, -1, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, -1, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, -1, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, -1, 4, 93, 94, -1, -1, -1, 98, -1, 12, 13, -1, 103, 104, 105, 106, -1, -1, 109, -1, 111, -1, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 36, 37, -1, 127, 128, 129, 130, -1, 44, 45, -1, 47, 48, 49, -1, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, -1, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, -1, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 12, 13, 93, 94, -1, -1, -1, 98, -1, -1, -1, -1, 103, 104, 105, 106, -1, -1, 109, -1, 111, -1, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, -1, -1, -1, 127, 128, 129, 130, -1, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, -1, 64, -1, -1, 67, 68, -1, 70, 71, 72, -1, -1, -1, 76, -1, -1, -1, -1, -1, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, 104, 105, 106, 163, -1, 165, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, -1, -1, -1, 163, -1, 165, -1, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, -1, -1, -1, 163, -1, 165, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, -1, -1, -1, -1, -1, 165, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, -1, -1, -1, -1, -1, 165, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, -1, -1, -1, -1, -1, 165, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, -1, -1, -1, -1, -1, 165, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, -1, -1, -1, -1, -1, 165, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, -1, -1, -1, -1, -1, 165, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, -1, -1, -1, -1, -1, 165, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, -1, -1, -1, -1, -1, 165, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, -1, -1, -1, -1, -1, 165, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, -1, -1, -1, -1, -1, 165, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, -1, -1, -1, -1, -1, 165, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, -1, -1, -1, -1, -1, 165, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, -1, -1, -1, -1, -1, 165, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, -1, -1, -1, -1, -1, 165, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, -1, -1, -1, -1, -1, 165, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, -1, -1, -1, -1, -1, 165, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, -1, -1, -1, -1, -1, 165, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, -1, -1, -1, -1, -1, 165, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, -1, -1, -1, -1, -1, 165, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, -1, -1, -1, -1, -1, 165, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, -1, -1, -1, -1, -1, 165, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, -1, -1, -1, -1, -1, 165, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, -1, -1, -1, -1, -1, 165, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, -1, -1, -1, -1, -1, 165, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, -1, -1, -1, -1, 164, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, -1, -1, -1, -1, 164, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, 158, -1, -1, -1, -1, 163, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, -1, -1, -1, 163, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, -1, -1, -1, 163, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, -1, -1, -1, 163, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, -1, -1, -1, 163, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, -1, -1, -1, 163, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, -1, -1, -1, 163, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, -1, -1, -1, 163, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, -1, -1, -1, 163, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, -1, -1, -1, 163, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, -1, -1, -1, 163, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, -1, -1, -1, 163, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, -1, -1, -1, 163, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, -1, -1, -1, 163, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, -1, -1, -1, 163, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, -1, -1, -1, 163, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, -1, -1, -1, 163, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, -1, -1, -1, 163, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, -1, -1, -1, 163, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, -1, -1, -1, 163, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, -1, -1, -1, 163, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, -1, -1, -1, 163, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, -1, -1, -1, 163, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, -1, -1, -1, 163, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, -1, -1, -1, 163, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, -1, -1, -1, 163, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, -1, -1, -1, 163, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, -1, -1, -1, 163, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, 160, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, 160, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, 160, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, 160, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, 160, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, 160, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, 160, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, 160, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, 160, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, 160, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, 160, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, 160, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, 160, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, 160, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, 160, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, 160, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, 160, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, 160, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, 160, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, 160, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, 160, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, 160, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, 160, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, 160, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, 160, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, 160, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, 160, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, 160, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, 160, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, 160, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, 160, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, 160, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, -1, -1, 160, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, 158, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, 158, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, 158, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, 158, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, 158, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, 158, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, 158, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, 158, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, 158, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, 158, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, 158, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, 158, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, 158, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, 158, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, 158, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, 158, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, 158, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, 158, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, 158, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, 158, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, 158, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, 158, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, 158, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, 158, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, 158, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, 158, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, 158, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, 158, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, 158, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, 158, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, 158, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, 158, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, 158, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, 158, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, 158, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, 158, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, 158, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, 158, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, 158, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, 158, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, 158, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, 158, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, 158, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, 158, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, 158, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, 158, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, 158, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, 158, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, 158, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, 158, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, 158, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, 158, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, 158, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, 158, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156, -1, 158, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, -1, -1, -1, -1, 156 }; /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing symbol of state STATE-NUM. */ static const yytype_uint16 yystos[] = { 0, 1, 168, 169, 6, 0, 4, 12, 13, 36, 37, 44, 45, 47, 48, 49, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 93, 94, 98, 103, 104, 105, 106, 109, 111, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 127, 128, 129, 130, 170, 172, 173, 191, 205, 210, 213, 214, 215, 216, 217, 218, 219, 239, 240, 241, 242, 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, 38, 39, 40, 41, 42, 43, 46, 118, 124, 125, 126, 131, 132, 133, 134, 135, 136, 137, 147, 148, 152, 154, 155, 157, 159, 161, 162, 164, 189, 190, 243, 244, 256, 13, 59, 157, 157, 6, 164, 6, 6, 6, 6, 159, 159, 157, 164, 157, 157, 4, 157, 164, 157, 157, 4, 164, 157, 157, 63, 59, 59, 6, 59, 59, 56, 59, 61, 61, 53, 56, 59, 61, 56, 59, 61, 56, 59, 157, 56, 164, 147, 148, 157, 164, 245, 246, 245, 164, 53, 56, 59, 164, 245, 4, 53, 57, 67, 59, 61, 59, 56, 4, 118, 164, 4, 6, 53, 56, 59, 56, 59, 4, 4, 4, 5, 35, 53, 56, 59, 61, 71, 148, 157, 164, 210, 219, 243, 248, 249, 250, 4, 157, 157, 157, 4, 164, 252, 4, 157, 157, 6, 6, 159, 4, 4, 5, 164, 5, 164, 4, 243, 6, 157, 164, 4, 159, 161, 166, 190, 164, 5, 256, 157, 159, 157, 159, 157, 159, 157, 159, 157, 159, 157, 159, 157, 159, 157, 159, 157, 159, 157, 159, 157, 159, 157, 159, 157, 159, 157, 159, 157, 159, 157, 159, 157, 159, 157, 159, 157, 159, 157, 159, 157, 159, 157, 159, 157, 157, 157, 157, 157, 7, 157, 157, 157, 243, 243, 243, 164, 243, 160, 164, 243, 4, 109, 110, 4, 4, 210, 211, 212, 248, 6, 6, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 156, 6, 6, 243, 5, 5, 243, 193, 196, 243, 148, 243, 250, 251, 243, 243, 157, 243, 251, 243, 243, 157, 251, 243, 243, 248, 157, 164, 157, 157, 249, 249, 249, 157, 206, 207, 208, 209, 157, 157, 157, 248, 243, 4, 248, 245, 245, 245, 243, 243, 147, 148, 164, 164, 245, 164, 164, 164, 147, 148, 157, 212, 245, 164, 157, 164, 157, 157, 157, 249, 249, 248, 157, 4, 6, 159, 159, 212, 6, 164, 164, 164, 249, 249, 159, 159, 157, 159, 159, 5, 164, 5, 5, 5, 53, 56, 59, 61, 164, 243, 250, 243, 165, 251, 8, 149, 6, 6, 243, 243, 243, 161, 243, 164, 112, 243, 243, 243, 6, 6, 212, 6, 212, 159, 6, 248, 248, 159, 243, 4, 164, 174, 6, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 4, 255, 256, 255, 255, 255, 255, 255, 255, 257, 243, 255, 255, 255, 251, 158, 7, 189, 251, 160, 7, 189, 190, 161, 7, 159, 165, 53, 56, 59, 61, 205, 6, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 6, 158, 163, 158, 163, 163, 160, 163, 192, 160, 192, 158, 149, 163, 165, 158, 158, 243, 158, 165, 158, 158, 243, 165, 158, 158, 7, 243, 243, 243, 243, 7, 7, 237, 237, 243, 157, 157, 157, 157, 243, 243, 243, 7, 164, 158, 6, 163, 163, 163, 245, 245, 211, 211, 163, 243, 243, 243, 243, 223, 163, 212, 243, 243, 243, 243, 243, 7, 238, 6, 7, 243, 6, 243, 243, 165, 251, 251, 251, 6, 6, 243, 243, 158, 164, 160, 164, 243, 4, 243, 164, 164, 164, 164, 251, 158, 165, 243, 164, 243, 250, 158, 158, 158, 109, 163, 212, 164, 8, 158, 160, 165, 165, 158, 163, 165, 243, 160, 190, 243, 4, 99, 100, 101, 102, 165, 177, 181, 184, 186, 187, 158, 160, 158, 160, 158, 160, 158, 160, 158, 160, 158, 160, 158, 160, 158, 160, 158, 160, 158, 160, 158, 160, 163, 163, 158, 160, 158, 160, 158, 160, 158, 160, 158, 160, 158, 160, 163, 163, 163, 163, 163, 163, 159, 161, 158, 163, 160, 163, 163, 158, 158, 163, 158, 163, 6, 163, 158, 163, 165, 189, 248, 165, 161, 189, 190, 256, 243, 6, 4, 4, 164, 253, 160, 164, 164, 164, 164, 8, 6, 144, 171, 251, 6, 251, 243, 6, 4, 6, 255, 7, 243, 250, 112, 7, 7, 158, 7, 112, 7, 7, 158, 112, 7, 7, 243, 158, 165, 158, 158, 243, 248, 4, 236, 6, 158, 202, 243, 256, 202, 202, 202, 158, 158, 158, 248, 251, 161, 245, 243, 243, 165, 165, 243, 245, 163, 163, 163, 74, 83, 91, 92, 95, 96, 233, 234, 245, 165, 220, 158, 165, 158, 158, 158, 243, 6, 243, 158, 160, 160, 165, 165, 165, 160, 160, 251, 251, 160, 160, 165, 251, 251, 251, 251, 165, 8, 251, 7, 7, 7, 161, 243, 165, 243, 243, 7, 161, 164, 248, 6, 160, 161, 190, 255, 165, 178, 157, 157, 164, 188, 6, 243, 243, 243, 243, 243, 243, 243, 243, 243, 4, 251, 251, 255, 255, 255, 243, 255, 158, 243, 6, 160, 4, 109, 110, 243, 6, 6, 6, 7, 159, 252, 254, 6, 251, 251, 251, 251, 243, 144, 255, 158, 158, 163, 7, 245, 59, 248, 248, 7, 248, 59, 61, 248, 248, 7, 61, 248, 248, 6, 7, 7, 7, 7, 74, 235, 6, 7, 158, 158, 158, 158, 7, 7, 7, 6, 165, 4, 163, 163, 163, 165, 165, 245, 245, 245, 4, 6, 164, 157, 6, 97, 6, 97, 165, 234, 163, 233, 7, 6, 7, 7, 7, 6, 164, 6, 6, 6, 59, 243, 6, 6, 165, 165, 165, 165, 165, 165, 243, 165, 248, 248, 248, 4, 163, 8, 8, 158, 4, 4, 248, 165, 6, 4, 6, 157, 243, 243, 247, 248, 164, 158, 160, 158, 160, 158, 160, 158, 160, 160, 158, 160, 158, 158, 158, 158, 189, 6, 189, 7, 189, 190, 161, 7, 6, 252, 243, 163, 165, 165, 165, 165, 165, 6, 6, 171, 6, 243, 164, 243, 256, 6, 164, 67, 204, 204, 248, 6, 164, 164, 6, 6, 248, 164, 6, 6, 5, 248, 248, 248, 4, 6, 248, 7, 7, 7, 7, 248, 248, 248, 7, 6, 7, 243, 243, 243, 164, 164, 163, 165, 163, 165, 163, 165, 159, 243, 248, 243, 6, 6, 243, 245, 165, 5, 164, 248, 164, 164, 164, 248, 251, 164, 6, 158, 160, 6, 6, 108, 243, 243, 243, 6, 6, 7, 163, 6, 190, 175, 243, 163, 163, 163, 165, 176, 243, 161, 248, 248, 256, 243, 6, 4, 253, 6, 160, 252, 6, 6, 6, 6, 255, 163, 243, 256, 243, 245, 6, 6, 6, 243, 243, 6, 243, 5, 6, 6, 112, 203, 243, 6, 248, 248, 248, 248, 6, 4, 6, 6, 243, 243, 256, 165, 158, 163, 165, 211, 211, 245, 6, 224, 245, 6, 225, 245, 6, 226, 243, 165, 163, 158, 165, 163, 6, 148, 245, 6, 247, 245, 245, 6, 165, 243, 248, 163, 165, 8, 165, 158, 164, 243, 256, 248, 158, 163, 243, 243, 248, 164, 163, 165, 4, 6, 6, 6, 6, 7, 6, 161, 6, 243, 194, 195, 165, 165, 165, 165, 5, 57, 6, 6, 6, 6, 6, 164, 164, 6, 6, 164, 243, 165, 165, 163, 164, 163, 164, 163, 164, 160, 6, 248, 7, 164, 243, 163, 165, 163, 163, 6, 165, 107, 243, 243, 251, 6, 6, 165, 179, 243, 163, 163, 247, 243, 6, 252, 110, 163, 198, 200, 6, 6, 6, 6, 6, 164, 247, 251, 211, 163, 165, 243, 245, 233, 243, 245, 233, 243, 245, 233, 6, 163, 165, 248, 212, 165, 245, 6, 251, 245, 243, 165, 165, 165, 6, 164, 243, 243, 165, 6, 243, 163, 165, 199, 163, 165, 201, 243, 165, 165, 165, 243, 165, 163, 165, 165, 163, 165, 165, 163, 165, 248, 6, 74, 165, 221, 164, 163, 165, 163, 6, 6, 176, 158, 163, 6, 164, 163, 4, 4, 165, 6, 6, 165, 6, 227, 243, 6, 6, 228, 243, 6, 6, 229, 243, 6, 165, 243, 233, 212, 251, 6, 245, 251, 165, 182, 243, 247, 243, 5, 164, 248, 5, 164, 243, 164, 165, 164, 165, 164, 165, 6, 6, 165, 165, 222, 165, 163, 165, 6, 164, 158, 165, 165, 197, 243, 257, 233, 6, 230, 233, 6, 231, 233, 6, 232, 233, 6, 251, 6, 180, 255, 185, 164, 6, 163, 165, 7, 165, 165, 164, 165, 164, 165, 164, 165, 165, 163, 165, 164, 247, 243, 256, 6, 233, 6, 233, 6, 233, 6, 255, 6, 183, 255, 165, 7, 165, 165, 165, 163, 165, 6, 256, 6, 6, 6, 255, 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); \ yytoken = YYTRANSLATE (yychar); \ YYPOPSTACK (1); \ goto yybackup; \ } \ else \ { \ yyerror (YY_("syntax error: cannot back up")); \ YYERROR; \ } \ while (YYID (0)) #define YYTERROR 1 #define YYERRCODE 256 /* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N]. If N is 0, then set CURRENT to the empty location which ends the previous symbol: RHS[0] (always defined). */ #define YYRHSLOC(Rhs, K) ((Rhs)[K]) #ifndef YYLLOC_DEFAULT # define YYLLOC_DEFAULT(Current, Rhs, N) \ do \ if (YYID (N)) \ { \ (Current).first_line = YYRHSLOC (Rhs, 1).first_line; \ (Current).first_column = YYRHSLOC (Rhs, 1).first_column; \ (Current).last_line = YYRHSLOC (Rhs, N).last_line; \ (Current).last_column = YYRHSLOC (Rhs, N).last_column; \ } \ else \ { \ (Current).first_line = (Current).last_line = \ YYRHSLOC (Rhs, 0).last_line; \ (Current).first_column = (Current).last_column = \ YYRHSLOC (Rhs, 0).last_column; \ } \ while (YYID (0)) #endif /* YY_LOCATION_PRINT -- Print the location on the stream. This macro was not mandated originally: define only if we know we won't break user code: when these are the locations we know. */ #ifndef YY_LOCATION_PRINT # if defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL # define YY_LOCATION_PRINT(File, Loc) \ fprintf (File, "%d.%d-%d.%d", \ (Loc).first_line, (Loc).first_column, \ (Loc).last_line, (Loc).last_column) # else # define YY_LOCATION_PRINT(File, Loc) ((void) 0) # endif #endif /* YYLEX -- calling `yylex' with the right arguments. */ #ifdef YYLEX_PARAM # define YYLEX yylex (YYLEX_PARAM) #else # define YYLEX yylex () #endif /* Enable debugging if requested. */ #if YYDEBUG # ifndef YYFPRINTF # include <stdio.h> /* INFRINGES ON USER NAME SPACE */ # define YYFPRINTF fprintf # endif # define YYDPRINTF(Args) \ do { \ if (yydebug) \ YYFPRINTF Args; \ } while (YYID (0)) # define YY_SYMBOL_PRINT(Title, Type, Value, Location) \ do { \ if (yydebug) \ { \ YYFPRINTF (stderr, "%s ", Title); \ yy_symbol_print (stderr, \ Type, Value); \ YYFPRINTF (stderr, "\n"); \ } \ } while (YYID (0)) /*--------------------------------. | Print this symbol on YYOUTPUT. | `--------------------------------*/ /*ARGSUSED*/ #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) static void yy_symbol_value_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep) #else static void yy_symbol_value_print (yyoutput, yytype, yyvaluep) FILE *yyoutput; int yytype; YYSTYPE const * const yyvaluep; #endif { if (!yyvaluep) return; # ifdef YYPRINT if (yytype < YYNTOKENS) YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep); # else YYUSE (yyoutput); # endif switch (yytype) { default: break; } } /*--------------------------------. | Print this symbol on YYOUTPUT. | `--------------------------------*/ #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) static void yy_symbol_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep) #else static void yy_symbol_print (yyoutput, yytype, yyvaluep) FILE *yyoutput; int yytype; YYSTYPE const * const yyvaluep; #endif { if (yytype < YYNTOKENS) YYFPRINTF (yyoutput, "token %s (", yytname[yytype]); else YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]); yy_symbol_value_print (yyoutput, yytype, yyvaluep); YYFPRINTF (yyoutput, ")"); } /*------------------------------------------------------------------. | yy_stack_print -- Print the state stack from its BOTTOM up to its | | TOP (included). | `------------------------------------------------------------------*/ #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) static void yy_stack_print (yytype_int16 *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 YYRESULT an error message about the unexpected token YYCHAR while in state YYSTATE. Return the number of bytes copied, including the terminating null byte. If YYRESULT is null, do not copy anything; just return the number of bytes that would be copied. As a special case, return 0 if an ordinary "syntax error" message will do. Return YYSIZE_MAXIMUM if overflow occurs during size calculation. */ static YYSIZE_T yysyntax_error (char *yyresult, int yystate, int yychar) { int yyn = yypact[yystate]; if (! (YYPACT_NINF < yyn && yyn <= YYLAST)) return 0; else { int yytype = YYTRANSLATE (yychar); YYSIZE_T yysize0 = yytnamerr (0, yytname[yytype]); YYSIZE_T yysize = yysize0; YYSIZE_T yysize1; int yysize_overflow = 0; enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 }; char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM]; int yyx; # if 0 /* This is so xgettext sees the translatable formats that are constructed on the fly. */ YY_("syntax error, unexpected %s"); YY_("syntax error, unexpected %s, expecting %s"); YY_("syntax error, unexpected %s, expecting %s or %s"); YY_("syntax error, unexpected %s, expecting %s or %s or %s"); YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s"); # endif char *yyfmt; char const *yyf; static char const yyunexpected[] = "syntax error, unexpected %s"; static char const yyexpecting[] = ", expecting %s"; static char const yyor[] = " or %s"; char yyformat[sizeof yyunexpected + sizeof yyexpecting - 1 + ((YYERROR_VERBOSE_ARGS_MAXIMUM - 2) * (sizeof yyor - 1))]; char const *yyprefix = yyexpecting; /* Start YYX at -YYN if negative to avoid negative indexes in YYCHECK. */ int yyxbegin = yyn < 0 ? -yyn : 0; /* Stay within bounds of both yycheck and yytname. */ int yychecklim = YYLAST - yyn + 1; int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS; int yycount = 1; yyarg[0] = yytname[yytype]; yyfmt = yystpcpy (yyformat, yyunexpected); for (yyx = yyxbegin; yyx < yyxend; ++yyx) if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR) { if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM) { yycount = 1; yysize = yysize0; yyformat[sizeof yyunexpected - 1] = '\0'; break; } yyarg[yycount++] = yytname[yyx]; yysize1 = yysize + yytnamerr (0, yytname[yyx]); yysize_overflow |= (yysize1 < yysize); yysize = yysize1; yyfmt = yystpcpy (yyfmt, yyprefix); yyprefix = yyor; } yyf = YY_(yyformat); yysize1 = yysize + yystrlen (yyf); yysize_overflow |= (yysize1 < yysize); yysize = yysize1; if (yysize_overflow) return YYSIZE_MAXIMUM; if (yyresult) { /* Avoid sprintf, as that infringes on the user's name space. Don't have undefined behavior even if the translation produced a string with the wrong number of "%s"s. */ char *yyp = yyresult; int yyi = 0; while ((*yyp = *yyf) != '\0') { if (*yyp == '%' && yyf[1] == 's' && yyi < yycount) { yyp += yytnamerr (yyp, yyarg[yyi++]); yyf += 2; } else { yyp++; yyf++; } } } return yysize; } } #endif /* YYERROR_VERBOSE */ /*-----------------------------------------------. | Release the memory associated to this symbol. | `-----------------------------------------------*/ /*ARGSUSED*/ #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) static void yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep) #else static void yydestruct (yymsg, yytype, yyvaluep) const char *yymsg; int yytype; YYSTYPE *yyvaluep; #endif { YYUSE (yyvaluep); if (!yymsg) yymsg = "Deleting"; YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp); switch (yytype) { default: break; } } /* Prevent warnings from -Wmissing-prototypes. */ #ifdef YYPARSE_PARAM #if defined __STDC__ || defined __cplusplus int yyparse (void *YYPARSE_PARAM); #else int yyparse (); #endif #else /* ! YYPARSE_PARAM */ #if defined __STDC__ || defined __cplusplus int yyparse (void); #else int yyparse (); #endif #endif /* ! YYPARSE_PARAM */ /* The lookahead symbol. */ int yychar; /* The semantic value of the lookahead symbol. */ YYSTYPE yylval; /* Number of syntax errors so far. */ int yynerrs; /*-------------------------. | yyparse or yypush_parse. | `-------------------------*/ #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 (yyn == YYPACT_NINF) 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 (yyn == 0 || yyn == YYTABLE_NINF) 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 1464 of yacc.c */ #line 168 "Gmsh.y" { yyerrok; return 1; ;} break; case 6: /* Line 1464 of yacc.c */ #line 179 "Gmsh.y" { return 1; ;} break; case 7: /* Line 1464 of yacc.c */ #line 180 "Gmsh.y" { return 1; ;} break; case 8: /* Line 1464 of yacc.c */ #line 181 "Gmsh.y" { return 1; ;} break; case 9: /* Line 1464 of yacc.c */ #line 182 "Gmsh.y" { return 1; ;} break; case 10: /* Line 1464 of yacc.c */ #line 183 "Gmsh.y" { List_Delete((yyvsp[(1) - (1)].l)); return 1; ;} break; case 11: /* Line 1464 of yacc.c */ #line 184 "Gmsh.y" { return 1; ;} break; case 12: /* Line 1464 of yacc.c */ #line 185 "Gmsh.y" { return 1; ;} break; case 13: /* Line 1464 of yacc.c */ #line 186 "Gmsh.y" { return 1; ;} break; case 14: /* Line 1464 of yacc.c */ #line 187 "Gmsh.y" { List_Delete((yyvsp[(1) - (1)].l)); return 1; ;} break; case 15: /* Line 1464 of yacc.c */ #line 188 "Gmsh.y" { return 1; ;} break; case 16: /* Line 1464 of yacc.c */ #line 189 "Gmsh.y" { return 1; ;} break; case 17: /* Line 1464 of yacc.c */ #line 190 "Gmsh.y" { return 1; ;} break; case 18: /* Line 1464 of yacc.c */ #line 191 "Gmsh.y" { return 1; ;} break; case 19: /* Line 1464 of yacc.c */ #line 192 "Gmsh.y" { return 1; ;} break; case 20: /* Line 1464 of yacc.c */ #line 193 "Gmsh.y" { return 1; ;} break; case 21: /* Line 1464 of yacc.c */ #line 198 "Gmsh.y" { (yyval.c) = (char*)"w"; ;} break; case 22: /* Line 1464 of yacc.c */ #line 202 "Gmsh.y" { (yyval.c) = (char*)"a"; ;} break; case 23: /* Line 1464 of yacc.c */ #line 209 "Gmsh.y" { Msg::Direct((yyvsp[(3) - (5)].c)); Free((yyvsp[(3) - (5)].c)); ;} break; case 24: /* Line 1464 of yacc.c */ #line 214 "Gmsh.y" { Msg::Error((yyvsp[(3) - (5)].c)); Free((yyvsp[(3) - (5)].c)); ;} break; case 25: /* Line 1464 of yacc.c */ #line 219 "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 26: /* Line 1464 of yacc.c */ #line 233 "Gmsh.y" { char tmpstring[5000]; 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 27: /* Line 1464 of yacc.c */ #line 246 "Gmsh.y" { char tmpstring[5000]; int i = PrintListOfDouble((yyvsp[(3) - (7)].c), (yyvsp[(5) - (7)].l), tmpstring); if(i < 0) yymsg(0, "Too few arguments in Error"); else if(i > 0) yymsg(0, "%d extra argument%s in Error", i, (i > 1) ? "s" : ""); else Msg::Error(tmpstring); Free((yyvsp[(3) - (7)].c)); List_Delete((yyvsp[(5) - (7)].l)); ;} break; case 28: /* Line 1464 of yacc.c */ #line 259 "Gmsh.y" { char tmpstring[5000]; 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 1464 of yacc.c */ #line 287 "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 1464 of yacc.c */ #line 301 "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 1464 of yacc.c */ #line 312 "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 1464 of yacc.c */ #line 326 "Gmsh.y" { #if defined(HAVE_POST) ViewData = new PViewDataList(); #endif ;} break; case 38: /* Line 1464 of yacc.c */ #line 340 "Gmsh.y" { ViewCoord.push_back((yyvsp[(1) - (1)].d)); ;} break; case 39: /* Line 1464 of yacc.c */ #line 342 "Gmsh.y" { ViewCoord.push_back((yyvsp[(3) - (3)].d)); ;} break; case 40: /* Line 1464 of yacc.c */ #line 347 "Gmsh.y" { if(ViewValueList) ViewValueList->push_back((yyvsp[(1) - (1)].d)); ;} break; case 41: /* Line 1464 of yacc.c */ #line 349 "Gmsh.y" { if(ViewValueList) ViewValueList->push_back((yyvsp[(3) - (3)].d)); ;} break; case 42: /* Line 1464 of yacc.c */ #line 354 "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 1464 of yacc.c */ #line 458 "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 1464 of yacc.c */ #line 468 "Gmsh.y" { #if defined(HAVE_POST) if(ViewValueList) (*ViewNumList)++; #endif ;} break; case 45: /* Line 1464 of yacc.c */ #line 477 "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 1464 of yacc.c */ #line 484 "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 1464 of yacc.c */ #line 494 "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 1464 of yacc.c */ #line 503 "Gmsh.y" { #if defined(HAVE_POST) ViewData->NbT2++; #endif ;} break; case 49: /* Line 1464 of yacc.c */ #line 512 "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 1464 of yacc.c */ #line 519 "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 1464 of yacc.c */ #line 529 "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 1464 of yacc.c */ #line 537 "Gmsh.y" { #if defined(HAVE_POST) ViewData->NbT3++; #endif ;} break; case 53: /* Line 1464 of yacc.c */ #line 547 "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 1464 of yacc.c */ #line 566 "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 1464 of yacc.c */ #line 585 "Gmsh.y" { #if defined(HAVE_POST) ViewValueList = &ViewData->Time; #endif ;} break; case 56: /* Line 1464 of yacc.c */ #line 591 "Gmsh.y" { ;} break; case 57: /* Line 1464 of yacc.c */ #line 598 "Gmsh.y" { (yyval.i) = 0; ;} break; case 58: /* Line 1464 of yacc.c */ #line 599 "Gmsh.y" { (yyval.i) = 1; ;} break; case 59: /* Line 1464 of yacc.c */ #line 600 "Gmsh.y" { (yyval.i) = 2; ;} break; case 60: /* Line 1464 of yacc.c */ #line 601 "Gmsh.y" { (yyval.i) = 3; ;} break; case 61: /* Line 1464 of yacc.c */ #line 602 "Gmsh.y" { (yyval.i) = 4; ;} break; case 62: /* Line 1464 of yacc.c */ #line 606 "Gmsh.y" { (yyval.i) = 1; ;} break; case 63: /* Line 1464 of yacc.c */ #line 607 "Gmsh.y" { (yyval.i) = -1; ;} break; case 66: /* Line 1464 of yacc.c */ #line 618 "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 67: /* Line 1464 of yacc.c */ #line 680 "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 68: /* Line 1464 of yacc.c */ #line 710 "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 69: /* Line 1464 of yacc.c */ #line 745 "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 70: /* Line 1464 of yacc.c */ #line 779 "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 71: /* Line 1464 of yacc.c */ #line 827 "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 72: /* Line 1464 of yacc.c */ #line 874 "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 73: /* Line 1464 of yacc.c */ #line 889 "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 74: /* Line 1464 of yacc.c */ #line 905 "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 75: /* Line 1464 of yacc.c */ #line 914 "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 76: /* Line 1464 of yacc.c */ #line 920 "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 77: /* Line 1464 of yacc.c */ #line 929 "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 78: /* Line 1464 of yacc.c */ #line 947 "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 79: /* Line 1464 of yacc.c */ #line 965 "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 80: /* Line 1464 of yacc.c */ #line 974 "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 81: /* Line 1464 of yacc.c */ #line 986 "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 82: /* Line 1464 of yacc.c */ #line 991 "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 83: /* Line 1464 of yacc.c */ #line 999 "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 84: /* Line 1464 of yacc.c */ #line 1019 "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 85: /* Line 1464 of yacc.c */ #line 1042 "Gmsh.y" { #if defined(HAVE_MESH) if(!strcmp((yyvsp[(1) - (5)].c),"Background")) GModel::current()->getFields()->setBackgroundFieldId((int)(yyvsp[(4) - (5)].d)); else if(!strcmp((yyvsp[(1) - (5)].c),"BoundaryLayer")) GModel::current()->getFields()->setBoundaryLayerFieldId((int)(yyvsp[(4) - (5)].d)); else yymsg(0, "Unknown command %s Field", (yyvsp[(1) - (5)].c)); #endif ;} break; case 86: /* Line 1464 of yacc.c */ #line 1053 "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 87: /* Line 1464 of yacc.c */ #line 1061 "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 88: /* Line 1464 of yacc.c */ #line 1083 "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 89: /* Line 1464 of yacc.c */ #line 1106 "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); } option->list(vl); } 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 90: /* Line 1464 of yacc.c */ #line 1132 "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 91: /* Line 1464 of yacc.c */ #line 1153 "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 92: /* Line 1464 of yacc.c */ #line 1165 "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 96: /* Line 1464 of yacc.c */ #line 1183 "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 97: /* Line 1464 of yacc.c */ #line 1194 "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 98: /* Line 1464 of yacc.c */ #line 1205 "Gmsh.y" { floatOptions.clear(); charOptions.clear(); ;} break; case 99: /* Line 1464 of yacc.c */ #line 1207 "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; } Free((yyvsp[(3) - (9)].c)); ;} break; case 100: /* Line 1464 of yacc.c */ #line 1217 "Gmsh.y" { std::string key((yyvsp[(3) - (5)].c)), val((yyvsp[(5) - (5)].c)); floatOptions.clear(); charOptions.clear(); if(!gmsh_yystringsymbols.count(key)){ Msg::ExchangeOnelabParameter(key, val, floatOptions, charOptions); gmsh_yystringsymbols[key] = val; } Free((yyvsp[(3) - (5)].c)); Free((yyvsp[(5) - (5)].c)); ;} break; case 101: /* Line 1464 of yacc.c */ #line 1228 "Gmsh.y" { floatOptions.clear(); charOptions.clear(); ;} break; case 102: /* Line 1464 of yacc.c */ #line 1230 "Gmsh.y" { std::string key((yyvsp[(3) - (9)].c)), val((yyvsp[(6) - (9)].c)); if(!gmsh_yysymbols.count(key)){ Msg::ExchangeOnelabParameter(key, val, floatOptions, charOptions); gmsh_yystringsymbols[key] = val; } Free((yyvsp[(3) - (9)].c)); Free((yyvsp[(6) - (9)].c)); ;} break; case 104: /* Line 1464 of yacc.c */ #line 1244 "Gmsh.y" { std::string name((yyvsp[(3) - (3)].c)); Msg::UndefineOnelabParameter(name); Free((yyvsp[(3) - (3)].c)); ;} break; case 105: /* Line 1464 of yacc.c */ #line 1252 "Gmsh.y" { (yyval.l) = List_Create(20,20,sizeof(doubleXstring)); doubleXstring v = {(yyvsp[(1) - (3)].d), (yyvsp[(3) - (3)].c)}; List_Add((yyval.l), &v); ;} break; case 106: /* Line 1464 of yacc.c */ #line 1258 "Gmsh.y" { doubleXstring v = {(yyvsp[(3) - (5)].d), (yyvsp[(5) - (5)].c)}; List_Add((yyval.l), &v); ;} break; case 109: /* Line 1464 of yacc.c */ #line 1270 "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 110: /* Line 1464 of yacc.c */ #line 1281 "Gmsh.y" { std::string key((yyvsp[(2) - (5)].c)); for(int i = 0; i < List_Nbr((yyvsp[(4) - (5)].l)); i++){ doubleXstring v; List_Read((yyvsp[(4) - (5)].l), i, &v); floatOptions[key].push_back(v.d); charOptions[key].push_back(v.s); } Free((yyvsp[(2) - (5)].c)); for(int i = 0; i < List_Nbr((yyvsp[(4) - (5)].l)); i++) Free(((doubleXstring*)List_Pointer((yyvsp[(4) - (5)].l), i))->s); List_Delete((yyvsp[(4) - (5)].l)); ;} break; case 111: /* Line 1464 of yacc.c */ #line 1296 "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 114: /* Line 1464 of yacc.c */ #line 1312 "Gmsh.y" { std::string key((yyvsp[(2) - (3)].c)); double val = (yyvsp[(3) - (3)].d); floatOptions[key].push_back(val); Free((yyvsp[(2) - (3)].c)); ;} break; case 115: /* Line 1464 of yacc.c */ #line 1320 "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 116: /* Line 1464 of yacc.c */ #line 1329 "Gmsh.y" { std::string key((yyvsp[(2) - (5)].c)); for(int i = 0; i < List_Nbr((yyvsp[(4) - (5)].l)); i++){ char *s; List_Read((yyvsp[(4) - (5)].l), i, &s); std::string val(s); Free(s); charOptions[key].push_back(val); } Free((yyvsp[(2) - (5)].c)); List_Delete((yyvsp[(4) - (5)].l)); ;} break; case 117: /* Line 1464 of yacc.c */ #line 1347 "Gmsh.y" { (yyval.i) = (int)(yyvsp[(1) - (1)].d); ;} break; case 118: /* Line 1464 of yacc.c */ #line 1351 "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 119: /* Line 1464 of yacc.c */ #line 1361 "Gmsh.y" { (yyval.l) = 0; ;} break; case 120: /* Line 1464 of yacc.c */ #line 1365 "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 121: /* Line 1464 of yacc.c */ #line 1377 "Gmsh.y" { for(int i = 0; i < 4; i++) (yyval.v)[i] = 0.; ;} break; case 122: /* Line 1464 of yacc.c */ #line 1381 "Gmsh.y" { for(int i = 0; i < 4; i++) (yyval.v)[i] = (yyvsp[(2) - (2)].v)[i]; ;} break; case 123: /* Line 1464 of yacc.c */ #line 1391 "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 124: /* Line 1464 of yacc.c */ #line 1414 "Gmsh.y" { curPhysDim = 0; ;} break; case 125: /* Line 1464 of yacc.c */ #line 1418 "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 126: /* Line 1464 of yacc.c */ #line 1434 "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 127: /* Line 1464 of yacc.c */ #line 1456 "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 128: /* Line 1464 of yacc.c */ #line 1474 "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 129: /* Line 1464 of yacc.c */ #line 1495 "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 130: /* Line 1464 of yacc.c */ #line 1513 "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 131: /* Line 1464 of yacc.c */ #line 1543 "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 132: /* Line 1464 of yacc.c */ #line 1573 "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 133: /* Line 1464 of yacc.c */ #line 1591 "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 134: /* Line 1464 of yacc.c */ #line 1609 "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 135: /* Line 1464 of yacc.c */ #line 1635 "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 136: /* Line 1464 of yacc.c */ #line 1653 "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 137: /* Line 1464 of yacc.c */ #line 1671 "Gmsh.y" { curPhysDim = 1; ;} break; case 138: /* Line 1464 of yacc.c */ #line 1675 "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 139: /* Line 1464 of yacc.c */ #line 1694 "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 140: /* Line 1464 of yacc.c */ #line 1712 "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 141: /* Line 1464 of yacc.c */ #line 1751 "Gmsh.y" { myGmshSurface = 0; (yyval.s).Type = 0; (yyval.s).Num = 0; ;} break; case 142: /* Line 1464 of yacc.c */ #line 1757 "Gmsh.y" { myGmshSurface = gmshSurface::getSurface((int)(yyvsp[(3) - (4)].d)); (yyval.s).Type = 0; (yyval.s).Num = 0; ;} break; case 143: /* Line 1464 of yacc.c */ #line 1763 "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 144: /* Line 1464 of yacc.c */ #line 1770 "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 145: /* Line 1464 of yacc.c */ #line 1795 "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 146: /* Line 1464 of yacc.c */ #line 1820 "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 147: /* Line 1464 of yacc.c */ #line 1837 "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 148: /* Line 1464 of yacc.c */ #line 1855 "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 149: /* Line 1464 of yacc.c */ #line 1885 "Gmsh.y" { curPhysDim = 2; ;} break; case 150: /* Line 1464 of yacc.c */ #line 1889 "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 151: /* Line 1464 of yacc.c */ #line 1909 "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 152: /* Line 1464 of yacc.c */ #line 1927 "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 153: /* Line 1464 of yacc.c */ #line 1944 "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 154: /* Line 1464 of yacc.c */ #line 1960 "Gmsh.y" { curPhysDim = 3; ;} break; case 155: /* Line 1464 of yacc.c */ #line 1964 "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 156: /* Line 1464 of yacc.c */ #line 1986 "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 157: /* Line 1464 of yacc.c */ #line 1991 "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 158: /* Line 1464 of yacc.c */ #line 1996 "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 159: /* Line 1464 of yacc.c */ #line 2001 "Gmsh.y" { DilatShapes((yyvsp[(3) - (9)].v)[0], (yyvsp[(3) - (9)].v)[1], (yyvsp[(3) - (9)].v)[2], (yyvsp[(5) - (9)].d), (yyvsp[(5) - (9)].d), (yyvsp[(5) - (9)].d), (yyvsp[(8) - (9)].l)); (yyval.l) = (yyvsp[(8) - (9)].l); ;} break; case 160: /* Line 1464 of yacc.c */ #line 2006 "Gmsh.y" { DilatShapes((yyvsp[(3) - (9)].v)[0], (yyvsp[(3) - (9)].v)[1], (yyvsp[(3) - (9)].v)[2], (yyvsp[(5) - (9)].v)[0], (yyvsp[(5) - (9)].v)[1], (yyvsp[(5) - (9)].v)[2], (yyvsp[(8) - (9)].l)); (yyval.l) = (yyvsp[(8) - (9)].l); ;} break; case 161: /* Line 1464 of yacc.c */ #line 2011 "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 162: /* Line 1464 of yacc.c */ #line 2034 "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 163: /* Line 1464 of yacc.c */ #line 2040 "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 164: /* Line 1464 of yacc.c */ #line 2050 "Gmsh.y" { (yyval.l) = (yyvsp[(1) - (1)].l); ;} break; case 165: /* Line 1464 of yacc.c */ #line 2051 "Gmsh.y" { (yyval.l) = (yyvsp[(1) - (1)].l); ;} break; case 166: /* Line 1464 of yacc.c */ #line 2056 "Gmsh.y" { (yyval.l) = List_Create(3, 3, sizeof(Shape)); ;} break; case 167: /* Line 1464 of yacc.c */ #line 2060 "Gmsh.y" { List_Add((yyval.l), &(yyvsp[(2) - (2)].s)); ;} break; case 168: /* Line 1464 of yacc.c */ #line 2064 "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 169: /* Line 1464 of yacc.c */ #line 2087 "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 170: /* Line 1464 of yacc.c */ #line 2110 "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 171: /* Line 1464 of yacc.c */ #line 2133 "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 172: /* Line 1464 of yacc.c */ #line 2161 "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 173: /* Line 1464 of yacc.c */ #line 2182 "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 174: /* Line 1464 of yacc.c */ #line 2206 "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 175: /* Line 1464 of yacc.c */ #line 2227 "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 176: /* Line 1464 of yacc.c */ #line 2248 "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 177: /* Line 1464 of yacc.c */ #line 2268 "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 178: /* Line 1464 of yacc.c */ #line 2380 "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 179: /* Line 1464 of yacc.c */ #line 2399 "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 180: /* Line 1464 of yacc.c */ #line 2438 "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 181: /* Line 1464 of yacc.c */ #line 2546 "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 182: /* Line 1464 of yacc.c */ #line 2555 "Gmsh.y" { #if defined(HAVE_MESH) GModel::current()->getFields()->deleteField((int)(yyvsp[(4) - (6)].d)); #endif ;} break; case 183: /* Line 1464 of yacc.c */ #line 2561 "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 184: /* Line 1464 of yacc.c */ #line 2576 "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 185: /* Line 1464 of yacc.c */ #line 2604 "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 186: /* Line 1464 of yacc.c */ #line 2621 "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 187: /* Line 1464 of yacc.c */ #line 2635 "Gmsh.y" { for(int i = 0; i < 4; i++) VisibilityShape((yyvsp[(2) - (3)].c), i, 1); Free((yyvsp[(2) - (3)].c)); ;} break; case 188: /* Line 1464 of yacc.c */ #line 2641 "Gmsh.y" { for(int i = 0; i < 4; i++) VisibilityShape((yyvsp[(2) - (3)].c), i, 0); Free((yyvsp[(2) - (3)].c)); ;} break; case 189: /* Line 1464 of yacc.c */ #line 2647 "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 190: /* Line 1464 of yacc.c */ #line 2656 "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 191: /* Line 1464 of yacc.c */ #line 2670 "Gmsh.y" { if(!strcmp((yyvsp[(1) - (3)].c), "Include")){ std::string tmp = FixRelativePath(gmsh_yyname, (yyvsp[(2) - (3)].c)); Msg::StatusBar(true, "Reading '%s'...", tmp.c_str()); // Warning: we explicitly ask ParseFile not to fclose() the included // file, in order to allow user functions definitions in these files. // The files will be closed in the next time OpenFile terminates. If // you need to include many many files and don't have functions in // the files, use "Merge" instead of "Include", as some OSes limit // the number of files a process can open simultaneously. (A better // solution would be to modify FunctionManager to reopen the files // instead of using the FILE pointer...) ParseFile(tmp, false, true); SetBoundingBox(); Msg::StatusBar(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), "NonBlockingSystemCall")) SystemCall((yyvsp[(2) - (3)].c)); else if(!strcmp((yyvsp[(1) - (3)].c), "System") || !strcmp((yyvsp[(1) - (3)].c), "SystemCall")) SystemCall((yyvsp[(2) - (3)].c), true); 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 192: /* Line 1464 of yacc.c */ #line 2715 "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 193: /* Line 1464 of yacc.c */ #line 2732 "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 194: /* Line 1464 of yacc.c */ #line 2747 "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 195: /* Line 1464 of yacc.c */ #line 2766 "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 196: /* Line 1464 of yacc.c */ #line 2778 "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 197: /* Line 1464 of yacc.c */ #line 2802 "Gmsh.y" { Msg::Exit(0); ;} break; case 198: /* Line 1464 of yacc.c */ #line 2806 "Gmsh.y" { gmsh_yyerrorstate = 999; // this will be checked when yyparse returns YYABORT; ;} break; case 199: /* Line 1464 of yacc.c */ #line 2811 "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 200: /* Line 1464 of yacc.c */ #line 2818 "Gmsh.y" { CTX::instance()->forcedBBox = 0; GModel::current()->importGEOInternals(); SetBoundingBox(); ;} break; case 201: /* Line 1464 of yacc.c */ #line 2824 "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 202: /* Line 1464 of yacc.c */ #line 2829 "Gmsh.y" { #if defined(HAVE_OPENGL) drawContext::global()->draw(); #endif ;} break; case 203: /* Line 1464 of yacc.c */ #line 2835 "Gmsh.y" { GModel::current()->createTopologyFromMesh(); ;} break; case 204: /* Line 1464 of yacc.c */ #line 2839 "Gmsh.y" { GModel::current()->createTopologyFromMesh(1); ;} break; case 205: /* Line 1464 of yacc.c */ #line 2843 "Gmsh.y" { GModel::current()->importGEOInternals(); GModel::current()->refineMesh(CTX::instance()->mesh.secondOrderLinear); ;} break; case 206: /* Line 1464 of yacc.c */ #line 2848 "Gmsh.y" { #if defined(HAVE_MESH) SetOrderN(GModel::current(), (yyvsp[(2) - (3)].d), CTX::instance()->mesh.secondOrderLinear, CTX::instance()->mesh.secondOrderIncomplete, CTX::instance()->mesh.meshOnlyVisible); #endif ;} break; case 207: /* Line 1464 of yacc.c */ #line 2861 "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 208: /* Line 1464 of yacc.c */ #line 2878 "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 209: /* Line 1464 of yacc.c */ #line 2895 "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 210: /* Line 1464 of yacc.c */ #line 2916 "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 211: /* Line 1464 of yacc.c */ #line 2937 "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 212: /* Line 1464 of yacc.c */ #line 2972 "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 213: /* Line 1464 of yacc.c */ #line 2980 "Gmsh.y" { if(!FunctionManager::Instance()->leaveFunction (&gmsh_yyin, gmsh_yyname, gmsh_yylineno)) yymsg(0, "Error while exiting function"); ;} break; case 214: /* Line 1464 of yacc.c */ #line 2986 "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 215: /* Line 1464 of yacc.c */ #line 2993 "Gmsh.y" { if(!(yyvsp[(3) - (4)].d)) skip_until("If", "EndIf"); ;} break; case 216: /* Line 1464 of yacc.c */ #line 2997 "Gmsh.y" { ;} break; case 217: /* Line 1464 of yacc.c */ #line 3006 "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 218: /* Line 1464 of yacc.c */ #line 3014 "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 219: /* Line 1464 of yacc.c */ #line 3022 "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 220: /* Line 1464 of yacc.c */ #line 3030 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; extr.mesh.QuadToTri = NO_QUADTRI; ;} break; case 221: /* Line 1464 of yacc.c */ #line 3035 "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 222: /* Line 1464 of yacc.c */ #line 3043 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; extr.mesh.QuadToTri = NO_QUADTRI; ;} break; case 223: /* Line 1464 of yacc.c */ #line 3048 "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 224: /* Line 1464 of yacc.c */ #line 3056 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; extr.mesh.QuadToTri = NO_QUADTRI; ;} break; case 225: /* Line 1464 of yacc.c */ #line 3061 "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 226: /* Line 1464 of yacc.c */ #line 3069 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; extr.mesh.QuadToTri = NO_QUADTRI; ;} break; case 227: /* Line 1464 of yacc.c */ #line 3074 "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 228: /* Line 1464 of yacc.c */ #line 3082 "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 229: /* Line 1464 of yacc.c */ #line 3089 "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 230: /* Line 1464 of yacc.c */ #line 3096 "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 231: /* Line 1464 of yacc.c */ #line 3103 "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 232: /* Line 1464 of yacc.c */ #line 3110 "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 233: /* Line 1464 of yacc.c */ #line 3117 "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 234: /* Line 1464 of yacc.c */ #line 3124 "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 235: /* Line 1464 of yacc.c */ #line 3131 "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 236: /* Line 1464 of yacc.c */ #line 3138 "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 237: /* Line 1464 of yacc.c */ #line 3145 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; extr.mesh.QuadToTri = NO_QUADTRI; ;} break; case 238: /* Line 1464 of yacc.c */ #line 3150 "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 239: /* Line 1464 of yacc.c */ #line 3157 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; extr.mesh.QuadToTri = NO_QUADTRI; ;} break; case 240: /* Line 1464 of yacc.c */ #line 3162 "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 241: /* Line 1464 of yacc.c */ #line 3169 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; extr.mesh.QuadToTri = NO_QUADTRI; ;} break; case 242: /* Line 1464 of yacc.c */ #line 3174 "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 243: /* Line 1464 of yacc.c */ #line 3181 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; extr.mesh.QuadToTri = NO_QUADTRI; ;} break; case 244: /* Line 1464 of yacc.c */ #line 3186 "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 245: /* Line 1464 of yacc.c */ #line 3193 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; extr.mesh.QuadToTri = NO_QUADTRI; ;} break; case 246: /* Line 1464 of yacc.c */ #line 3198 "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 247: /* Line 1464 of yacc.c */ #line 3205 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; extr.mesh.QuadToTri = NO_QUADTRI; ;} break; case 248: /* Line 1464 of yacc.c */ #line 3210 "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 249: /* Line 1464 of yacc.c */ #line 3217 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; extr.mesh.QuadToTri = NO_QUADTRI; ;} break; case 250: /* Line 1464 of yacc.c */ #line 3222 "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 251: /* Line 1464 of yacc.c */ #line 3229 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; extr.mesh.QuadToTri = NO_QUADTRI; ;} break; case 252: /* Line 1464 of yacc.c */ #line 3234 "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 253: /* Line 1464 of yacc.c */ #line 3241 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; extr.mesh.QuadToTri = NO_QUADTRI; ;} break; case 254: /* Line 1464 of yacc.c */ #line 3246 "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 255: /* Line 1464 of yacc.c */ #line 3257 "Gmsh.y" { ;} break; case 256: /* Line 1464 of yacc.c */ #line 3260 "Gmsh.y" { ;} break; case 257: /* Line 1464 of yacc.c */ #line 3266 "Gmsh.y" { int n = (int)fabs((yyvsp[(3) - (5)].d)); if(n){ // we accept n==0 to easily disable layers 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 258: /* Line 1464 of yacc.c */ #line 3278 "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 259: /* Line 1464 of yacc.c */ #line 3298 "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 260: /* Line 1464 of yacc.c */ #line 3321 "Gmsh.y" { extr.mesh.Recombine = true; ;} break; case 261: /* Line 1464 of yacc.c */ #line 3325 "Gmsh.y" { extr.mesh.QuadToTri = QUADTRI_DBL_1; ;} break; case 262: /* Line 1464 of yacc.c */ #line 3329 "Gmsh.y" { extr.mesh.QuadToTri = QUADTRI_DBL_1_RECOMB; ;} break; case 263: /* Line 1464 of yacc.c */ #line 3333 "Gmsh.y" { extr.mesh.QuadToTri = QUADTRI_SNGL_1; ;} break; case 264: /* Line 1464 of yacc.c */ #line 3337 "Gmsh.y" { extr.mesh.QuadToTri = QUADTRI_SNGL_1_RECOMB; ;} break; case 265: /* Line 1464 of yacc.c */ #line 3341 "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 266: /* Line 1464 of yacc.c */ #line 3360 "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 267: /* Line 1464 of yacc.c */ #line 3372 "Gmsh.y" { (yyval.v)[0] = (yyval.v)[1] = 1.; ;} break; case 268: /* Line 1464 of yacc.c */ #line 3376 "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 269: /* Line 1464 of yacc.c */ #line 3391 "Gmsh.y" { (yyval.i) = -1; // left ;} break; case 270: /* Line 1464 of yacc.c */ #line 3395 "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 271: /* Line 1464 of yacc.c */ #line 3407 "Gmsh.y" { (yyval.l) = List_Create(1, 1, sizeof(double)); ;} break; case 272: /* Line 1464 of yacc.c */ #line 3411 "Gmsh.y" { (yyval.l) = (yyvsp[(2) - (2)].l); ;} break; case 273: /* Line 1464 of yacc.c */ #line 3416 "Gmsh.y" { (yyval.i) = 45; ;} break; case 274: /* Line 1464 of yacc.c */ #line 3420 "Gmsh.y" { (yyval.i) = (int)(yyvsp[(2) - (2)].d); ;} break; case 275: /* Line 1464 of yacc.c */ #line 3427 "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 276: /* Line 1464 of yacc.c */ #line 3483 "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 277: /* Line 1464 of yacc.c */ #line 3553 "Gmsh.y" { yymsg(1, "Elliptic Surface is deprecated: use Transfinite instead (with smoothing)"); List_Delete((yyvsp[(7) - (8)].l)); ;} break; case 278: /* Line 1464 of yacc.c */ #line 3558 "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 279: /* Line 1464 of yacc.c */ #line 3625 "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 280: /* Line 1464 of yacc.c */ #line 3661 "Gmsh.y" { for(int i = 0; i < List_Nbr((yyvsp[(4) - (7)].l)); i++){ double d; List_Read((yyvsp[(4) - (7)].l), i, &d); CTX::instance()->mesh.algo2d_per_face[(int)d] = (int)(yyvsp[(6) - (7)].d); } ;} break; case 281: /* Line 1464 of yacc.c */ #line 3669 "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 282: /* Line 1464 of yacc.c */ #line 3712 "Gmsh.y" { if(!(yyvsp[(3) - (4)].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->Recombine3D = 1; } } else{ for(GModel::riter it = GModel::current()->firstRegion(); it != GModel::current()->lastRegion(); it++){ (*it)->meshAttributes.recombine3D = 1; } } List_Delete(tmp); } else{ for(int i = 0; i < List_Nbr((yyvsp[(3) - (4)].l)); i++){ double d; List_Read((yyvsp[(3) - (4)].l), i, &d); Volume *v = FindVolume((int)d); if(v){ v->Recombine3D = 1; } else{ GRegion *gr = GModel::current()->getRegionByTag((int)d); if(gr){ gr->meshAttributes.recombine3D = 1; } else yymsg(1, "Unknown volume %d", (int)d); } } List_Delete((yyvsp[(3) - (4)].l)); } ;} break; case 283: /* Line 1464 of yacc.c */ #line 3751 "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 284: /* Line 1464 of yacc.c */ #line 3771 "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){ GModel::current()->getGEOInternals()->periodicEdges[j_slave] = 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 285: /* Line 1464 of yacc.c */ #line 3799 "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){ GModel::current()->getGEOInternals()->periodicFaces[j_slave] = 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); GModel::current()->getGEOInternals()->periodicEdges[(int)ds] = (int)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; GEdge *ges = GModel::current()->getEdgeByTag(abs((int)ds)); ges->setMeshMaster((int)dm); } } else yymsg(0, "Unknown surface %d", j_slave); } } List_Delete((yyvsp[(5) - (12)].l)); List_Delete((yyvsp[(10) - (12)].l)); ;} break; case 286: /* Line 1464 of yacc.c */ #line 3838 "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 287: /* Line 1464 of yacc.c */ #line 3861 "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 288: /* Line 1464 of yacc.c */ #line 3884 "Gmsh.y" { Msg::Error("Line in Volume not implemented yet"); ;} break; case 289: /* Line 1464 of yacc.c */ #line 3888 "Gmsh.y" { Msg::Error("Surface in Volume not implemented yet"); ;} break; case 290: /* Line 1464 of yacc.c */ #line 3892 "Gmsh.y" { if(!(yyvsp[(3) - (4)].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->ReverseMesh = 1; } } else{ for(GModel::fiter it = GModel::current()->firstFace(); it != GModel::current()->lastFace(); it++){ (*it)->meshAttributes.reverseMesh = 1; } } List_Delete(tmp); } else{ for(int i = 0; i < List_Nbr((yyvsp[(3) - (4)].l)); i++){ double d; List_Read((yyvsp[(3) - (4)].l), i, &d); Surface *s = FindSurface((int)d); if(s){ s->ReverseMesh = 1; } else{ GFace *gf = GModel::current()->getFaceByTag((int)d); if(gf){ gf->meshAttributes.reverseMesh = 1; } else yymsg(1, "Unknown surface %d", (int)d); } } List_Delete((yyvsp[(3) - (4)].l)); } ;} break; case 291: /* Line 1464 of yacc.c */ #line 3931 "Gmsh.y" { if(!(yyvsp[(3) - (4)].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->ReverseMesh = 1; } } else{ for(GModel::eiter it = GModel::current()->firstEdge(); it != GModel::current()->lastEdge(); it++){ (*it)->meshAttributes.reverseMesh = 1; } } List_Delete(tmp); } else{ for(int i = 0; i < List_Nbr((yyvsp[(3) - (4)].l)); i++){ double d; List_Read((yyvsp[(3) - (4)].l), i, &d); Curve *c = FindCurve((int)d); if(c){ c->ReverseMesh = 1; } else{ GEdge *ge = GModel::current()->getEdgeByTag((int)d); if(ge){ ge->meshAttributes.reverseMesh = 1; } else yymsg(1, "Unknown surface %d", (int)d); } } List_Delete((yyvsp[(3) - (4)].l)); } ;} break; case 292: /* Line 1464 of yacc.c */ #line 3976 "Gmsh.y" { ReplaceAllDuplicates(); ;} break; case 293: /* Line 1464 of yacc.c */ #line 3980 "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 294: /* Line 1464 of yacc.c */ #line 3990 "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 295: /* Line 1464 of yacc.c */ #line 4024 "Gmsh.y" { (yyval.c) = (char*)"Homology"; ;} break; case 296: /* Line 1464 of yacc.c */ #line 4025 "Gmsh.y" { (yyval.c) = (char*)"Cohomology"; ;} break; case 297: /* Line 1464 of yacc.c */ #line 4026 "Gmsh.y" { (yyval.c) = (char*)"Betti"; ;} break; case 298: /* Line 1464 of yacc.c */ #line 4031 "Gmsh.y" { std::vector<int> domain, subdomain, dim; for(int i = 0; i < 4; i++) dim.push_back(i); GModel::current()->addHomologyRequest((yyvsp[(1) - (2)].c), domain, subdomain, dim); ;} break; case 299: /* Line 1464 of yacc.c */ #line 4037 "Gmsh.y" { std::vector<int> domain, subdomain, dim; 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); } for(int i = 0; i < 4; i++) dim.push_back(i); GModel::current()->addHomologyRequest((yyvsp[(1) - (5)].c), domain, subdomain, dim); List_Delete((yyvsp[(3) - (5)].l)); ;} break; case 300: /* Line 1464 of yacc.c */ #line 4049 "Gmsh.y" { std::vector<int> domain, subdomain, dim; 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); } for(int i = 0; i < 4; i++) dim.push_back(i); GModel::current()->addHomologyRequest((yyvsp[(1) - (7)].c), domain, subdomain, dim); List_Delete((yyvsp[(3) - (7)].l)); List_Delete((yyvsp[(5) - (7)].l)); ;} break; case 301: /* Line 1464 of yacc.c */ #line 4067 "Gmsh.y" { std::vector<int> domain, subdomain, dim; for(int i = 0; i < List_Nbr((yyvsp[(6) - (10)].l)); i++){ double d; List_Read((yyvsp[(6) - (10)].l), i, &d); domain.push_back((int)d); } for(int i = 0; i < List_Nbr((yyvsp[(8) - (10)].l)); i++){ double d; List_Read((yyvsp[(8) - (10)].l), i, &d); subdomain.push_back((int)d); } for(int i = 0; i < List_Nbr((yyvsp[(3) - (10)].l)); i++){ double d; List_Read((yyvsp[(3) - (10)].l), i, &d); dim.push_back((int)d); } GModel::current()->addHomologyRequest((yyvsp[(1) - (10)].c), domain, subdomain, dim); List_Delete((yyvsp[(6) - (10)].l)); List_Delete((yyvsp[(8) - (10)].l)); List_Delete((yyvsp[(3) - (10)].l)); ;} break; case 302: /* Line 1464 of yacc.c */ #line 4094 "Gmsh.y" { (yyval.d) = (yyvsp[(1) - (1)].d); ;} break; case 303: /* Line 1464 of yacc.c */ #line 4095 "Gmsh.y" { (yyval.d) = (yyvsp[(2) - (3)].d); ;} break; case 304: /* Line 1464 of yacc.c */ #line 4096 "Gmsh.y" { (yyval.d) = -(yyvsp[(2) - (2)].d); ;} break; case 305: /* Line 1464 of yacc.c */ #line 4097 "Gmsh.y" { (yyval.d) = (yyvsp[(2) - (2)].d); ;} break; case 306: /* Line 1464 of yacc.c */ #line 4098 "Gmsh.y" { (yyval.d) = !(yyvsp[(2) - (2)].d); ;} break; case 307: /* Line 1464 of yacc.c */ #line 4099 "Gmsh.y" { (yyval.d) = (yyvsp[(1) - (3)].d) - (yyvsp[(3) - (3)].d); ;} break; case 308: /* Line 1464 of yacc.c */ #line 4100 "Gmsh.y" { (yyval.d) = (yyvsp[(1) - (3)].d) + (yyvsp[(3) - (3)].d); ;} break; case 309: /* Line 1464 of yacc.c */ #line 4101 "Gmsh.y" { (yyval.d) = (yyvsp[(1) - (3)].d) * (yyvsp[(3) - (3)].d); ;} break; case 310: /* Line 1464 of yacc.c */ #line 4103 "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 311: /* Line 1464 of yacc.c */ #line 4109 "Gmsh.y" { (yyval.d) = (int)(yyvsp[(1) - (3)].d) % (int)(yyvsp[(3) - (3)].d); ;} break; case 312: /* Line 1464 of yacc.c */ #line 4110 "Gmsh.y" { (yyval.d) = pow((yyvsp[(1) - (3)].d), (yyvsp[(3) - (3)].d)); ;} break; case 313: /* Line 1464 of yacc.c */ #line 4111 "Gmsh.y" { (yyval.d) = (yyvsp[(1) - (3)].d) < (yyvsp[(3) - (3)].d); ;} break; case 314: /* Line 1464 of yacc.c */ #line 4112 "Gmsh.y" { (yyval.d) = (yyvsp[(1) - (3)].d) > (yyvsp[(3) - (3)].d); ;} break; case 315: /* Line 1464 of yacc.c */ #line 4113 "Gmsh.y" { (yyval.d) = (yyvsp[(1) - (3)].d) <= (yyvsp[(3) - (3)].d); ;} break; case 316: /* Line 1464 of yacc.c */ #line 4114 "Gmsh.y" { (yyval.d) = (yyvsp[(1) - (3)].d) >= (yyvsp[(3) - (3)].d); ;} break; case 317: /* Line 1464 of yacc.c */ #line 4115 "Gmsh.y" { (yyval.d) = (yyvsp[(1) - (3)].d) == (yyvsp[(3) - (3)].d); ;} break; case 318: /* Line 1464 of yacc.c */ #line 4116 "Gmsh.y" { (yyval.d) = (yyvsp[(1) - (3)].d) != (yyvsp[(3) - (3)].d); ;} break; case 319: /* Line 1464 of yacc.c */ #line 4117 "Gmsh.y" { (yyval.d) = (yyvsp[(1) - (3)].d) && (yyvsp[(3) - (3)].d); ;} break; case 320: /* Line 1464 of yacc.c */ #line 4118 "Gmsh.y" { (yyval.d) = (yyvsp[(1) - (3)].d) || (yyvsp[(3) - (3)].d); ;} break; case 321: /* Line 1464 of yacc.c */ #line 4119 "Gmsh.y" { (yyval.d) = (yyvsp[(1) - (5)].d) ? (yyvsp[(3) - (5)].d) : (yyvsp[(5) - (5)].d); ;} break; case 322: /* Line 1464 of yacc.c */ #line 4120 "Gmsh.y" { (yyval.d) = exp((yyvsp[(3) - (4)].d)); ;} break; case 323: /* Line 1464 of yacc.c */ #line 4121 "Gmsh.y" { (yyval.d) = log((yyvsp[(3) - (4)].d)); ;} break; case 324: /* Line 1464 of yacc.c */ #line 4122 "Gmsh.y" { (yyval.d) = log10((yyvsp[(3) - (4)].d)); ;} break; case 325: /* Line 1464 of yacc.c */ #line 4123 "Gmsh.y" { (yyval.d) = sqrt((yyvsp[(3) - (4)].d)); ;} break; case 326: /* Line 1464 of yacc.c */ #line 4124 "Gmsh.y" { (yyval.d) = sin((yyvsp[(3) - (4)].d)); ;} break; case 327: /* Line 1464 of yacc.c */ #line 4125 "Gmsh.y" { (yyval.d) = asin((yyvsp[(3) - (4)].d)); ;} break; case 328: /* Line 1464 of yacc.c */ #line 4126 "Gmsh.y" { (yyval.d) = cos((yyvsp[(3) - (4)].d)); ;} break; case 329: /* Line 1464 of yacc.c */ #line 4127 "Gmsh.y" { (yyval.d) = acos((yyvsp[(3) - (4)].d)); ;} break; case 330: /* Line 1464 of yacc.c */ #line 4128 "Gmsh.y" { (yyval.d) = tan((yyvsp[(3) - (4)].d)); ;} break; case 331: /* Line 1464 of yacc.c */ #line 4129 "Gmsh.y" { (yyval.d) = atan((yyvsp[(3) - (4)].d)); ;} break; case 332: /* Line 1464 of yacc.c */ #line 4130 "Gmsh.y" { (yyval.d) = atan2((yyvsp[(3) - (6)].d), (yyvsp[(5) - (6)].d));;} break; case 333: /* Line 1464 of yacc.c */ #line 4131 "Gmsh.y" { (yyval.d) = sinh((yyvsp[(3) - (4)].d)); ;} break; case 334: /* Line 1464 of yacc.c */ #line 4132 "Gmsh.y" { (yyval.d) = cosh((yyvsp[(3) - (4)].d)); ;} break; case 335: /* Line 1464 of yacc.c */ #line 4133 "Gmsh.y" { (yyval.d) = tanh((yyvsp[(3) - (4)].d)); ;} break; case 336: /* Line 1464 of yacc.c */ #line 4134 "Gmsh.y" { (yyval.d) = fabs((yyvsp[(3) - (4)].d)); ;} break; case 337: /* Line 1464 of yacc.c */ #line 4135 "Gmsh.y" { (yyval.d) = floor((yyvsp[(3) - (4)].d)); ;} break; case 338: /* Line 1464 of yacc.c */ #line 4136 "Gmsh.y" { (yyval.d) = ceil((yyvsp[(3) - (4)].d)); ;} break; case 339: /* Line 1464 of yacc.c */ #line 4137 "Gmsh.y" { (yyval.d) = fmod((yyvsp[(3) - (6)].d), (yyvsp[(5) - (6)].d)); ;} break; case 340: /* Line 1464 of yacc.c */ #line 4138 "Gmsh.y" { (yyval.d) = fmod((yyvsp[(3) - (6)].d), (yyvsp[(5) - (6)].d)); ;} break; case 341: /* Line 1464 of yacc.c */ #line 4139 "Gmsh.y" { (yyval.d) = sqrt((yyvsp[(3) - (6)].d) * (yyvsp[(3) - (6)].d) + (yyvsp[(5) - (6)].d) * (yyvsp[(5) - (6)].d)); ;} break; case 342: /* Line 1464 of yacc.c */ #line 4140 "Gmsh.y" { (yyval.d) = (yyvsp[(3) - (4)].d) * (double)rand() / (double)RAND_MAX; ;} break; case 343: /* Line 1464 of yacc.c */ #line 4143 "Gmsh.y" { (yyval.d) = exp((yyvsp[(3) - (4)].d)); ;} break; case 344: /* Line 1464 of yacc.c */ #line 4144 "Gmsh.y" { (yyval.d) = log((yyvsp[(3) - (4)].d)); ;} break; case 345: /* Line 1464 of yacc.c */ #line 4145 "Gmsh.y" { (yyval.d) = log10((yyvsp[(3) - (4)].d)); ;} break; case 346: /* Line 1464 of yacc.c */ #line 4146 "Gmsh.y" { (yyval.d) = sqrt((yyvsp[(3) - (4)].d)); ;} break; case 347: /* Line 1464 of yacc.c */ #line 4147 "Gmsh.y" { (yyval.d) = sin((yyvsp[(3) - (4)].d)); ;} break; case 348: /* Line 1464 of yacc.c */ #line 4148 "Gmsh.y" { (yyval.d) = asin((yyvsp[(3) - (4)].d)); ;} break; case 349: /* Line 1464 of yacc.c */ #line 4149 "Gmsh.y" { (yyval.d) = cos((yyvsp[(3) - (4)].d)); ;} break; case 350: /* Line 1464 of yacc.c */ #line 4150 "Gmsh.y" { (yyval.d) = acos((yyvsp[(3) - (4)].d)); ;} break; case 351: /* Line 1464 of yacc.c */ #line 4151 "Gmsh.y" { (yyval.d) = tan((yyvsp[(3) - (4)].d)); ;} break; case 352: /* Line 1464 of yacc.c */ #line 4152 "Gmsh.y" { (yyval.d) = atan((yyvsp[(3) - (4)].d)); ;} break; case 353: /* Line 1464 of yacc.c */ #line 4153 "Gmsh.y" { (yyval.d) = atan2((yyvsp[(3) - (6)].d), (yyvsp[(5) - (6)].d));;} break; case 354: /* Line 1464 of yacc.c */ #line 4154 "Gmsh.y" { (yyval.d) = sinh((yyvsp[(3) - (4)].d)); ;} break; case 355: /* Line 1464 of yacc.c */ #line 4155 "Gmsh.y" { (yyval.d) = cosh((yyvsp[(3) - (4)].d)); ;} break; case 356: /* Line 1464 of yacc.c */ #line 4156 "Gmsh.y" { (yyval.d) = tanh((yyvsp[(3) - (4)].d)); ;} break; case 357: /* Line 1464 of yacc.c */ #line 4157 "Gmsh.y" { (yyval.d) = fabs((yyvsp[(3) - (4)].d)); ;} break; case 358: /* Line 1464 of yacc.c */ #line 4158 "Gmsh.y" { (yyval.d) = floor((yyvsp[(3) - (4)].d)); ;} break; case 359: /* Line 1464 of yacc.c */ #line 4159 "Gmsh.y" { (yyval.d) = ceil((yyvsp[(3) - (4)].d)); ;} break; case 360: /* Line 1464 of yacc.c */ #line 4160 "Gmsh.y" { (yyval.d) = fmod((yyvsp[(3) - (6)].d), (yyvsp[(5) - (6)].d)); ;} break; case 361: /* Line 1464 of yacc.c */ #line 4161 "Gmsh.y" { (yyval.d) = fmod((yyvsp[(3) - (6)].d), (yyvsp[(5) - (6)].d)); ;} break; case 362: /* Line 1464 of yacc.c */ #line 4162 "Gmsh.y" { (yyval.d) = sqrt((yyvsp[(3) - (6)].d) * (yyvsp[(3) - (6)].d) + (yyvsp[(5) - (6)].d) * (yyvsp[(5) - (6)].d)); ;} break; case 363: /* Line 1464 of yacc.c */ #line 4163 "Gmsh.y" { (yyval.d) = (yyvsp[(3) - (4)].d) * (double)rand() / (double)RAND_MAX; ;} break; case 364: /* Line 1464 of yacc.c */ #line 4172 "Gmsh.y" { (yyval.d) = (yyvsp[(1) - (1)].d); ;} break; case 365: /* Line 1464 of yacc.c */ #line 4173 "Gmsh.y" { (yyval.d) = 3.141592653589793; ;} break; case 366: /* Line 1464 of yacc.c */ #line 4174 "Gmsh.y" { (yyval.d) = Msg::GetCommRank(); ;} break; case 367: /* Line 1464 of yacc.c */ #line 4175 "Gmsh.y" { (yyval.d) = Msg::GetCommSize(); ;} break; case 368: /* Line 1464 of yacc.c */ #line 4176 "Gmsh.y" { (yyval.d) = GetGmshMajorVersion(); ;} break; case 369: /* Line 1464 of yacc.c */ #line 4177 "Gmsh.y" { (yyval.d) = GetGmshMinorVersion(); ;} break; case 370: /* Line 1464 of yacc.c */ #line 4178 "Gmsh.y" { (yyval.d) = GetGmshPatchVersion(); ;} break; case 371: /* Line 1464 of yacc.c */ #line 4183 "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 372: /* Line 1464 of yacc.c */ #line 4204 "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 373: /* Line 1464 of yacc.c */ #line 4223 "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 374: /* Line 1464 of yacc.c */ #line 4241 "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 375: /* Line 1464 of yacc.c */ #line 4253 "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 376: /* Line 1464 of yacc.c */ #line 4270 "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 377: /* Line 1464 of yacc.c */ #line 4291 "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 378: /* Line 1464 of yacc.c */ #line 4296 "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 379: /* Line 1464 of yacc.c */ #line 4301 "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 380: /* Line 1464 of yacc.c */ #line 4311 "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 381: /* Line 1464 of yacc.c */ #line 4321 "Gmsh.y" { (yyval.d) = Msg::GetValue((yyvsp[(3) - (6)].c), (yyvsp[(5) - (6)].d)); Free((yyvsp[(3) - (6)].c)); ;} break; case 382: /* Line 1464 of yacc.c */ #line 4326 "Gmsh.y" { std::string s((yyvsp[(3) - (6)].c)), substr((yyvsp[(5) - (6)].c)); if(s.find(substr) != std::string::npos) (yyval.d) = 1.; else (yyval.d) = 0.; Free((yyvsp[(3) - (6)].c)); Free((yyvsp[(5) - (6)].c)); ;} break; case 383: /* Line 1464 of yacc.c */ #line 4335 "Gmsh.y" { int align = 0, font = 0, fontsize = CTX::instance()->glFontSize; if(List_Nbr((yyvsp[(3) - (4)].l)) % 2){ yyerror("Number of text attributes should be even"); } else{ for(int i = 0 ; i < List_Nbr((yyvsp[(3) - (4)].l)); i += 2){ char *s1, *s2; List_Read((yyvsp[(3) - (4)].l), i, &s1); List_Read((yyvsp[(3) - (4)].l), i + 1, &s2); std::string key(s1), val(s2); Free(s1); Free(s2); #if defined(HAVE_OPENGL) if(key == "Font") font = drawContext::global()->getFontIndex(val.c_str()); else if(key == "FontSize") fontsize = atoi(val.c_str()); else if(key == "Align") align = drawContext::global()->getFontAlign(val.c_str()); #endif } } List_Delete((yyvsp[(3) - (4)].l)); (yyval.d) = (double)((align<<16)|(font<<8)|(fontsize)); ;} break; case 384: /* Line 1464 of yacc.c */ #line 4362 "Gmsh.y" { memcpy((yyval.v), (yyvsp[(1) - (1)].v), 5*sizeof(double)); ;} break; case 385: /* Line 1464 of yacc.c */ #line 4366 "Gmsh.y" { for(int i = 0; i < 5; i++) (yyval.v)[i] = -(yyvsp[(2) - (2)].v)[i]; ;} break; case 386: /* Line 1464 of yacc.c */ #line 4370 "Gmsh.y" { for(int i = 0; i < 5; i++) (yyval.v)[i] = (yyvsp[(2) - (2)].v)[i]; ;} break; case 387: /* Line 1464 of yacc.c */ #line 4374 "Gmsh.y" { for(int i = 0; i < 5; i++) (yyval.v)[i] = (yyvsp[(1) - (3)].v)[i] - (yyvsp[(3) - (3)].v)[i]; ;} break; case 388: /* Line 1464 of yacc.c */ #line 4378 "Gmsh.y" { for(int i = 0; i < 5; i++) (yyval.v)[i] = (yyvsp[(1) - (3)].v)[i] + (yyvsp[(3) - (3)].v)[i]; ;} break; case 389: /* Line 1464 of yacc.c */ #line 4385 "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 390: /* Line 1464 of yacc.c */ #line 4389 "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 391: /* Line 1464 of yacc.c */ #line 4393 "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 392: /* Line 1464 of yacc.c */ #line 4397 "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 393: /* Line 1464 of yacc.c */ #line 4404 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(List_T*)); List_Add((yyval.l), &((yyvsp[(1) - (1)].l))); ;} break; case 394: /* Line 1464 of yacc.c */ #line 4409 "Gmsh.y" { List_Add((yyval.l), &((yyvsp[(3) - (3)].l))); ;} break; case 395: /* Line 1464 of yacc.c */ #line 4416 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(double)); List_Add((yyval.l), &((yyvsp[(1) - (1)].d))); ;} break; case 396: /* Line 1464 of yacc.c */ #line 4421 "Gmsh.y" { (yyval.l) = (yyvsp[(1) - (1)].l); ;} break; case 397: /* Line 1464 of yacc.c */ #line 4425 "Gmsh.y" { // creates an empty list (yyval.l) = List_Create(2, 1, sizeof(double)); ;} break; case 398: /* Line 1464 of yacc.c */ #line 4430 "Gmsh.y" { (yyval.l) = (yyvsp[(2) - (3)].l); ;} break; case 399: /* Line 1464 of yacc.c */ #line 4434 "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 400: /* Line 1464 of yacc.c */ #line 4442 "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 401: /* Line 1464 of yacc.c */ #line 4453 "Gmsh.y" { (yyval.l) = (yyvsp[(1) - (1)].l); ;} break; case 402: /* Line 1464 of yacc.c */ #line 4457 "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 403: /* Line 1464 of yacc.c */ #line 4469 "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 404: /* Line 1464 of yacc.c */ #line 4477 "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 405: /* Line 1464 of yacc.c */ #line 4485 "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 406: /* Line 1464 of yacc.c */ #line 4492 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(double)); if(!(yyvsp[(5) - (5)].d)){ //|| ($1 < $3 && $5 < 0) || ($1 > $3 && $5 > 0) yymsg(0, "Wrong increment in '%g:%g:%g'", (yyvsp[(1) - (5)].d), (yyvsp[(3) - (5)].d), (yyvsp[(5) - (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 407: /* Line 1464 of yacc.c */ #line 4502 "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 408: /* Line 1464 of yacc.c */ #line 4522 "Gmsh.y" { (yyval.l) = GetAllEntityNumbers(0); ;} break; case 409: /* Line 1464 of yacc.c */ #line 4526 "Gmsh.y" { (yyval.l) = GetAllEntityNumbers(1); ;} break; case 410: /* Line 1464 of yacc.c */ #line 4530 "Gmsh.y" { (yyval.l) = GetAllEntityNumbers(2); ;} break; case 411: /* Line 1464 of yacc.c */ #line 4534 "Gmsh.y" { (yyval.l) = GetAllEntityNumbers(3); ;} break; case 412: /* Line 1464 of yacc.c */ #line 4538 "Gmsh.y" { (yyval.l) = List_Create(10, 1, sizeof(double)); for(int i = 0; i < List_Nbr((yyvsp[(4) - (5)].l)); i++){ double num; List_Read((yyvsp[(4) - (5)].l), i, &num); PhysicalGroup *p = FindPhysicalGroup((int)num, MSH_PHYSICAL_POINT); if(p){ for(int j = 0; j < List_Nbr(p->Entities); j++){ int nume; List_Read(p->Entities, j, &nume); double d = nume; List_Add((yyval.l), &d); } } else{ std::map<int, std::vector<GEntity*> > groups[4]; GModel::current()->getPhysicalGroups(groups); std::map<int, std::vector<GEntity*> >::iterator it = groups[0].find((int)num); if(it != groups[0].end()){ for(unsigned j = 0; j < it->second.size(); j++){ double d = it->second[j]->tag(); List_Add((yyval.l), &d); } } } } List_Delete((yyvsp[(4) - (5)].l)); ;} break; case 413: /* Line 1464 of yacc.c */ #line 4567 "Gmsh.y" { (yyval.l) = List_Create(10, 1, sizeof(double)); for(int i = 0; i < List_Nbr((yyvsp[(4) - (5)].l)); i++){ double num; List_Read((yyvsp[(4) - (5)].l), i, &num); PhysicalGroup *p = FindPhysicalGroup((int)num, MSH_PHYSICAL_LINE); if(p){ for(int j = 0; j < List_Nbr(p->Entities); j++){ int nume; List_Read(p->Entities, j, &nume); double d = nume; List_Add((yyval.l), &d); } } else{ std::map<int, std::vector<GEntity*> > groups[4]; GModel::current()->getPhysicalGroups(groups); std::map<int, std::vector<GEntity*> >::iterator it = groups[1].find((int)num); if(it != groups[1].end()){ for(unsigned j = 0; j < it->second.size(); j++){ double d = it->second[j]->tag(); List_Add((yyval.l), &d); } } } } List_Delete((yyvsp[(4) - (5)].l)); ;} break; case 414: /* Line 1464 of yacc.c */ #line 4596 "Gmsh.y" { (yyval.l) = List_Create(10, 1, sizeof(double)); for(int i = 0; i < List_Nbr((yyvsp[(4) - (5)].l)); i++){ double num; List_Read((yyvsp[(4) - (5)].l), i, &num); PhysicalGroup *p = FindPhysicalGroup((int)num, MSH_PHYSICAL_SURFACE); if(p){ for(int j = 0; j < List_Nbr(p->Entities); j++){ int nume; List_Read(p->Entities, j, &nume); double d = nume; List_Add((yyval.l), &d); } } else{ std::map<int, std::vector<GEntity*> > groups[4]; GModel::current()->getPhysicalGroups(groups); std::map<int, std::vector<GEntity*> >::iterator it = groups[2].find((int)num); if(it != groups[2].end()){ for(unsigned j = 0; j < it->second.size(); j++){ double d = it->second[j]->tag(); List_Add((yyval.l), &d); } } } } List_Delete((yyvsp[(4) - (5)].l)); ;} break; case 415: /* Line 1464 of yacc.c */ #line 4625 "Gmsh.y" { (yyval.l) = List_Create(10, 1, sizeof(double)); for(int i = 0; i < List_Nbr((yyvsp[(4) - (5)].l)); i++){ double num; List_Read((yyvsp[(4) - (5)].l), i, &num); PhysicalGroup *p = FindPhysicalGroup((int)num, MSH_PHYSICAL_VOLUME); if(p){ for(int j = 0; j < List_Nbr(p->Entities); j++){ int nume; List_Read(p->Entities, j, &nume); double d = nume; List_Add((yyval.l), &d); } } else{ std::map<int, std::vector<GEntity*> > groups[4]; GModel::current()->getPhysicalGroups(groups); std::map<int, std::vector<GEntity*> >::iterator it = groups[3].find((int)num); if(it != groups[3].end()){ for(unsigned j = 0; j < it->second.size(); j++){ double d = it->second[j]->tag(); List_Add((yyval.l), &d); } } } } List_Delete((yyvsp[(4) - (5)].l)); ;} break; case 416: /* Line 1464 of yacc.c */ #line 4654 "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 417: /* Line 1464 of yacc.c */ #line 4664 "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 418: /* Line 1464 of yacc.c */ #line 4674 "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 419: /* Line 1464 of yacc.c */ #line 4687 "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 420: /* Line 1464 of yacc.c */ #line 4699 "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 421: /* Line 1464 of yacc.c */ #line 4711 "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 422: /* Line 1464 of yacc.c */ #line 4730 "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 423: /* Line 1464 of yacc.c */ #line 4751 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(double)); List_Add((yyval.l), &((yyvsp[(1) - (1)].d))); ;} break; case 424: /* Line 1464 of yacc.c */ #line 4756 "Gmsh.y" { (yyval.l) = (yyvsp[(1) - (1)].l); ;} break; case 425: /* Line 1464 of yacc.c */ #line 4760 "Gmsh.y" { List_Add((yyval.l), &((yyvsp[(3) - (3)].d))); ;} break; case 426: /* Line 1464 of yacc.c */ #line 4764 "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 427: /* Line 1464 of yacc.c */ #line 4776 "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 428: /* Line 1464 of yacc.c */ #line 4780 "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 429: /* Line 1464 of yacc.c */ #line 4792 "Gmsh.y" { int flag; (yyval.u) = GetColorForString(-1, (yyvsp[(1) - (1)].c), &flag); if(flag) yymsg(0, "Unknown color '%s'", (yyvsp[(1) - (1)].c)); Free((yyvsp[(1) - (1)].c)); ;} break; case 430: /* Line 1464 of yacc.c */ #line 4799 "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 431: /* Line 1464 of yacc.c */ #line 4809 "Gmsh.y" { (yyval.l) = (yyvsp[(2) - (3)].l); ;} break; case 432: /* Line 1464 of yacc.c */ #line 4813 "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 433: /* Line 1464 of yacc.c */ #line 4828 "Gmsh.y" { (yyval.l) = List_Create(256, 10, sizeof(unsigned int)); List_Add((yyval.l), &((yyvsp[(1) - (1)].u))); ;} break; case 434: /* Line 1464 of yacc.c */ #line 4833 "Gmsh.y" { List_Add((yyval.l), &((yyvsp[(3) - (3)].u))); ;} break; case 435: /* Line 1464 of yacc.c */ #line 4840 "Gmsh.y" { (yyval.c) = (yyvsp[(1) - (1)].c); ;} break; case 436: /* Line 1464 of yacc.c */ #line 4844 "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 437: /* Line 1464 of yacc.c */ #line 4857 "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 438: /* Line 1464 of yacc.c */ #line 4865 "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 439: /* Line 1464 of yacc.c */ #line 4876 "Gmsh.y" { (yyval.c) = (yyvsp[(1) - (1)].c); ;} break; case 440: /* Line 1464 of yacc.c */ #line 4880 "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 441: /* Line 1464 of yacc.c */ #line 4888 "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 442: /* Line 1464 of yacc.c */ #line 4896 "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 443: /* Line 1464 of yacc.c */ #line 4904 "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 444: /* Line 1464 of yacc.c */ #line 4912 "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 445: /* Line 1464 of yacc.c */ #line 4926 "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 446: /* Line 1464 of yacc.c */ #line 4940 "Gmsh.y" { (yyval.c) = (yyvsp[(3) - (4)].c); ;} break; case 447: /* Line 1464 of yacc.c */ #line 4945 "Gmsh.y" { (yyval.c) = (yyvsp[(3) - (4)].c); ;} break; case 448: /* Line 1464 of yacc.c */ #line 4949 "Gmsh.y" { char tmpstring[5000]; 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; case 449: /* Line 1464 of yacc.c */ #line 4969 "Gmsh.y" { char tmpstring[5000]; 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; case 450: /* Line 1464 of yacc.c */ #line 4991 "Gmsh.y" { (yyval.l) = List_Create(20,20,sizeof(char*)); List_Add((yyval.l), &((yyvsp[(1) - (1)].c))); ;} break; case 451: /* Line 1464 of yacc.c */ #line 4996 "Gmsh.y" { List_Add((yyval.l), &((yyvsp[(3) - (3)].c))); ;} break; /* Line 1464 of yacc.c */ #line 10946 "Gmsh.tab.cpp" default: break; } YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc); YYPOPSTACK (yylen); yylen = 0; YY_STACK_PRINT (yyss, yyssp); *++yyvsp = yyval; /* Now `shift' the result of the reduction. Determine what state that goes to, based on the state we popped back to and the rule number reduced by. */ yyn = yyr1[yyn]; yystate = yypgoto[yyn - YYNTOKENS] + *yyssp; if (0 <= yystate && yystate <= YYLAST && yycheck[yystate] == *yyssp) yystate = yytable[yystate]; else yystate = yydefgoto[yyn - YYNTOKENS]; goto yynewstate; /*------------------------------------. | yyerrlab -- here on detecting error | `------------------------------------*/ yyerrlab: /* If not already recovering from an error, report this error. */ if (!yyerrstatus) { ++yynerrs; #if ! YYERROR_VERBOSE yyerror (YY_("syntax error")); #else { YYSIZE_T yysize = yysyntax_error (0, yystate, yychar); if (yymsg_alloc < yysize && yymsg_alloc < YYSTACK_ALLOC_MAXIMUM) { YYSIZE_T yyalloc = 2 * yysize; if (! (yysize <= yyalloc && yyalloc <= YYSTACK_ALLOC_MAXIMUM)) yyalloc = YYSTACK_ALLOC_MAXIMUM; if (yymsg != yymsgbuf) YYSTACK_FREE (yymsg); yymsg = (char *) YYSTACK_ALLOC (yyalloc); if (yymsg) yymsg_alloc = yyalloc; else { yymsg = yymsgbuf; yymsg_alloc = sizeof yymsgbuf; } } if (0 < yysize && yysize <= yymsg_alloc) { (void) yysyntax_error (yymsg, yystate, yychar); yyerror (yymsg); } else { yyerror (YY_("syntax error")); if (yysize != 0) goto yyexhaustedlab; } } #endif } if (yyerrstatus == 3) { /* If just tried and failed to reuse 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 (yyn != YYPACT_NINF) { yyn += YYTERROR; if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR) { yyn = yytable[yyn]; if (0 < yyn) break; } } /* Pop the current state because it cannot handle the error token. */ if (yyssp == yyss) YYABORT; yydestruct ("Error: popping", yystos[yystate], yyvsp); YYPOPSTACK (1); yystate = *yyssp; YY_STACK_PRINT (yyss, yyssp); } *++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) 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 1684 of yacc.c */ #line 4999 "Gmsh.y" int PrintListOfDouble(char *format, List_T *list, char *buffer) { // if format does not contain formatting characters, dump the list (useful for // quick debugging of lists) int numFormats = 0; for(unsigned int i = 0; i < strlen(format); i++) if(format[i] == '%') numFormats++; if(!numFormats){ strcpy(buffer, format); for(int i = 0; i < List_Nbr(list); i++){ double d; List_Read(list, i, &d); char tmp[256]; sprintf(tmp, " [%d]%g", i, d); strcat(buffer, tmp); } return 0; } char tmp1[256], tmp2[256]; int j = 0, k = 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); }