/* 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-2011 C. Geuzaine, J.-F. Remacle // // See the LICENSE.txt file for license information. Please report all // bugs and problems to <gmsh@geuz.org>. #include <string.h> #include <stdarg.h> #include <time.h> #include "GmshConfig.h" #include "GmshMessage.h" #include "fullMatrix.h" #include "MallocUtils.h" #include "ListUtils.h" #include "TreeUtils.h" #include "StringUtils.h" #include "Numeric.h" #include "Context.h" #include "GModel.h" #include "Geo.h" #include "GeoInterpolation.h" #include "Options.h" #include "Colors.h" #include "Parser.h" #include "OpenFile.h" #include "CommandLine.h" #include "FunctionManager.h" #include "ColorTable.h" #include "OS.h" #include "CreateFile.h" #include "gmshSurface.h" #include "gmshLevelset.h" #include "fullMatrix.h" #if defined(HAVE_MESH) #include "Generator.h" #include "Field.h" #include "BackgroundMesh.h" #endif #if defined(HAVE_POST) #include "PView.h" #include "PViewDataList.h" #endif #if defined(HAVE_PLUGINS) #include "PluginManager.h" #endif #if defined(HAVE_OPENGL) #include "drawContext.h" #endif #if defined(HAVE_KBIPACK) #include "Homology.h" #endif // Global parser variables std::string gmsh_yyname; int gmsh_yyerrorstate = 0; int gmsh_yyviewindex = 0; std::map<std::string, std::vector<double> > gmsh_yysymbols; // Static parser variables (accessible only in this file) static std::map<std::string, std::string> gmsh_yystringsymbols; #if defined(HAVE_POST) static PViewDataList *ViewData; #endif static std::vector<double> ViewCoord; static std::vector<double> *ViewValueList = 0; static int *ViewNumList = 0; static ExtrudeParams extr; static int curPhysDim = 0; static gmshSurface *myGmshSurface = 0; #define MAX_RECUR_LOOPS 100 static int ImbricatedLoop = 0; static fpos_t yyposImbricatedLoopsTab[MAX_RECUR_LOOPS]; static int yylinenoImbricatedLoopsTab[MAX_RECUR_LOOPS]; static double LoopControlVariablesTab[MAX_RECUR_LOOPS][3]; static const char *LoopControlVariablesNameTab[MAX_RECUR_LOOPS]; static std::map<std::string, std::vector<double> > floatOptions; static std::map<std::string, std::vector<std::string> > charOptions; void yyerror(const char *s); void yymsg(int level, const char *fmt, ...); void skip_until(const char *skip, const char *until); int PrintListOfDouble(char *format, List_T *list, char *buffer); fullMatrix<double> ListOfListOfDouble2Matrix(List_T *list); /* Line 189 of yacc.c */ #line 171 "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, tPrintf = 290, tSprintf = 291, tStrCat = 292, tStrPrefix = 293, tStrRelative = 294, tBoundingBox = 295, tDraw = 296, tToday = 297, tSyncModel = 298, tCreateTopology = 299, tCreateTopologyNoHoles = 300, tDistanceFunction = 301, tDefineConstant = 302, tPoint = 303, tCircle = 304, tEllipse = 305, tLine = 306, tSphere = 307, tPolarSphere = 308, tSurface = 309, tSpline = 310, tVolume = 311, tCharacteristic = 312, tLength = 313, tParametric = 314, tElliptic = 315, tRefineMesh = 316, tPlane = 317, tRuled = 318, tTransfinite = 319, tComplex = 320, tPhysical = 321, tCompound = 322, tPeriodic = 323, tUsing = 324, tPlugin = 325, tDegenerated = 326, tRotate = 327, tTranslate = 328, tSymmetry = 329, tDilate = 330, tExtrude = 331, tLevelset = 332, tRecombine = 333, tSmoother = 334, tSplit = 335, tDelete = 336, tCoherence = 337, tIntersect = 338, tLayers = 339, tHole = 340, tAlias = 341, tAliasWithOptions = 342, tQuadTriDbl = 343, tQuadTriSngl = 344, tRecombLaterals = 345, tTransfQuadTri = 346, tText2D = 347, tText3D = 348, tInterpolationScheme = 349, tTime = 350, tCombine = 351, tBSpline = 352, tBezier = 353, tNurbs = 354, tNurbsOrder = 355, tNurbsKnots = 356, tColor = 357, tColorTable = 358, tFor = 359, tIn = 360, tEndFor = 361, tIf = 362, tEndIf = 363, tExit = 364, tField = 365, tReturn = 366, tCall = 367, tFunction = 368, tShow = 369, tHide = 370, tGetValue = 371, tGetEnv = 372, tGetString = 373, tGMSH_MAJOR_VERSION = 374, tGMSH_MINOR_VERSION = 375, tGMSH_PATCH_VERSION = 376, tHomRank = 377, tHomGen = 378, tHomCut = 379, tHomSeq = 380, tAFFECTDIVIDE = 381, tAFFECTTIMES = 382, tAFFECTMINUS = 383, tAFFECTPLUS = 384, tOR = 385, tAND = 386, tNOTEQUAL = 387, tEQUAL = 388, tGREATEROREQUAL = 389, tLESSOREQUAL = 390, UNARYPREC = 391, tMINUSMINUS = 392, tPLUSPLUS = 393 }; #endif #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED typedef union YYSTYPE { /* Line 214 of yacc.c */ #line 91 "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 357 "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 369 "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 7313 /* YYNTOKENS -- Number of terminals. */ #define YYNTOKENS 159 /* YYNNTS -- Number of nonterminals. */ #define YYNNTS 86 /* YYNRULES -- Number of rules. */ #define YYNRULES 413 /* YYNRULES -- Number of states. */ #define YYNSTATES 1454 /* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */ #define YYUNDEFTOK 2 #define YYMAXUTOK 393 #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, 144, 2, 154, 2, 143, 2, 2, 149, 150, 141, 139, 155, 140, 153, 142, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 135, 2, 136, 130, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 151, 2, 152, 148, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 156, 2, 157, 158, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 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, 131, 132, 133, 134, 137, 138, 145, 146, 147 }; #if YYDEBUG /* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in YYRHS. */ static const yytype_uint16 yyprhs[] = { 0, 0, 3, 5, 8, 9, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 51, 57, 65, 73, 83, 90, 97, 104, 105, 108, 111, 114, 117, 120, 122, 126, 128, 132, 133, 134, 145, 147, 151, 152, 166, 168, 172, 173, 189, 198, 213, 214, 221, 223, 225, 227, 229, 231, 233, 235, 241, 246, 254, 264, 271, 278, 285, 289, 296, 301, 308, 318, 325, 335, 341, 350, 359, 371, 378, 388, 394, 402, 412, 422, 434, 444, 454, 455, 457, 458, 462, 468, 469, 479, 480, 483, 487, 491, 493, 495, 496, 502, 503, 506, 514, 515, 525, 532, 540, 545, 553, 562, 571, 579, 587, 599, 608, 617, 618, 628, 637, 647, 651, 656, 667, 675, 683, 692, 701, 714, 715, 725, 734, 742, 751, 752, 762, 768, 780, 786, 796, 801, 811, 821, 823, 825, 826, 829, 836, 843, 850, 857, 866, 877, 892, 909, 922, 931, 940, 947, 962, 967, 974, 981, 985, 990, 996, 1000, 1004, 1009, 1014, 1018, 1026, 1034, 1038, 1046, 1050, 1053, 1056, 1059, 1075, 1078, 1081, 1084, 1087, 1094, 1103, 1112, 1123, 1125, 1128, 1130, 1134, 1139, 1141, 1147, 1159, 1173, 1174, 1182, 1183, 1197, 1198, 1214, 1215, 1222, 1231, 1240, 1249, 1262, 1275, 1288, 1303, 1318, 1333, 1334, 1347, 1348, 1361, 1362, 1375, 1376, 1393, 1394, 1411, 1412, 1429, 1430, 1449, 1450, 1469, 1470, 1489, 1491, 1494, 1500, 1508, 1518, 1521, 1524, 1528, 1531, 1535, 1545, 1552, 1553, 1557, 1558, 1560, 1561, 1564, 1565, 1568, 1576, 1583, 1592, 1598, 1602, 1608, 1615, 1622, 1635, 1646, 1657, 1668, 1679, 1682, 1686, 1693, 1705, 1717, 1729, 1741, 1743, 1747, 1750, 1753, 1756, 1760, 1764, 1768, 1772, 1776, 1780, 1784, 1788, 1792, 1796, 1800, 1804, 1808, 1812, 1818, 1823, 1828, 1833, 1838, 1843, 1848, 1853, 1858, 1863, 1868, 1875, 1880, 1885, 1890, 1895, 1900, 1905, 1912, 1919, 1926, 1931, 1936, 1941, 1946, 1951, 1956, 1961, 1966, 1971, 1976, 1981, 1988, 1993, 1998, 2003, 2008, 2013, 2018, 2025, 2032, 2039, 2044, 2046, 2048, 2050, 2052, 2054, 2056, 2058, 2060, 2066, 2071, 2076, 2079, 2085, 2089, 2096, 2101, 2109, 2116, 2118, 2121, 2124, 2128, 2132, 2144, 2154, 2162, 2170, 2172, 2176, 2178, 2180, 2183, 2187, 2192, 2198, 2200, 2202, 2205, 2209, 2213, 2219, 2224, 2227, 2230, 2233, 2236, 2238, 2240, 2244, 2251, 2253, 2255, 2259, 2263, 2273, 2281, 2283, 2289, 2293, 2300, 2302, 2306, 2308, 2310, 2314, 2321, 2323, 2325, 2330, 2337, 2344, 2349, 2354, 2359 }; /* YYRHS -- A `-1'-separated list of the rules' RHS. */ static const yytype_int16 yyrhs[] = { 160, 0, -1, 161, -1, 1, 6, -1, -1, 161, 162, -1, 165, -1, 164, -1, 183, -1, 192, -1, 197, -1, 201, -1, 202, -1, 203, -1, 206, -1, 226, -1, 227, -1, 228, -1, 229, -1, 205, -1, 204, -1, 200, -1, 230, -1, 136, -1, 136, 136, -1, 35, 149, 5, 150, 6, -1, 35, 149, 5, 150, 163, 243, 6, -1, 35, 149, 5, 155, 239, 150, 6, -1, 35, 149, 5, 155, 239, 150, 163, 243, 6, -1, 4, 5, 156, 166, 157, 6, -1, 86, 4, 151, 231, 152, 6, -1, 87, 4, 151, 231, 152, 6, -1, -1, 166, 169, -1, 166, 173, -1, 166, 176, -1, 166, 178, -1, 166, 179, -1, 231, -1, 167, 155, 231, -1, 231, -1, 168, 155, 231, -1, -1, -1, 4, 170, 149, 167, 150, 171, 156, 168, 157, 6, -1, 243, -1, 172, 155, 243, -1, -1, 92, 149, 231, 155, 231, 155, 231, 150, 174, 156, 172, 157, 6, -1, 243, -1, 175, 155, 243, -1, -1, 93, 149, 231, 155, 231, 155, 231, 155, 231, 150, 177, 156, 175, 157, 6, -1, 94, 156, 235, 157, 156, 235, 157, 6, -1, 94, 156, 235, 157, 156, 235, 157, 156, 235, 157, 156, 235, 157, 6, -1, -1, 95, 180, 156, 168, 157, 6, -1, 7, -1, 129, -1, 128, -1, 127, -1, 126, -1, 147, -1, 146, -1, 47, 151, 185, 152, 6, -1, 4, 181, 231, 6, -1, 4, 151, 231, 152, 181, 231, 6, -1, 4, 151, 156, 239, 157, 152, 181, 236, 6, -1, 4, 151, 152, 7, 236, 6, -1, 4, 151, 152, 129, 236, 6, -1, 4, 151, 152, 128, 236, 6, -1, 4, 182, 6, -1, 4, 151, 231, 152, 182, 6, -1, 4, 7, 244, 6, -1, 4, 153, 4, 7, 244, 6, -1, 4, 151, 231, 152, 153, 4, 7, 244, 6, -1, 4, 153, 4, 181, 231, 6, -1, 4, 151, 231, 152, 153, 4, 181, 231, 6, -1, 4, 153, 4, 182, 6, -1, 4, 151, 231, 152, 153, 4, 182, 6, -1, 4, 153, 102, 153, 4, 7, 240, 6, -1, 4, 151, 231, 152, 153, 102, 153, 4, 7, 240, 6, -1, 4, 153, 103, 7, 241, 6, -1, 4, 151, 231, 152, 153, 103, 7, 241, 6, -1, 4, 110, 7, 231, 6, -1, 110, 151, 231, 152, 7, 4, 6, -1, 110, 151, 231, 152, 153, 4, 7, 231, 6, -1, 110, 151, 231, 152, 153, 4, 7, 244, 6, -1, 110, 151, 231, 152, 153, 4, 7, 156, 239, 157, 6, -1, 70, 149, 4, 150, 153, 4, 7, 231, 6, -1, 70, 149, 4, 150, 153, 4, 7, 244, 6, -1, -1, 155, -1, -1, 185, 184, 4, -1, 185, 184, 4, 7, 231, -1, -1, 185, 184, 4, 7, 156, 231, 186, 187, 157, -1, -1, 187, 188, -1, 155, 4, 236, -1, 155, 4, 5, -1, 231, -1, 244, -1, -1, 105, 52, 156, 231, 157, -1, -1, 62, 233, -1, 48, 149, 231, 150, 7, 233, 6, -1, -1, 66, 48, 193, 149, 189, 150, 7, 236, 6, -1, 57, 58, 236, 7, 231, 6, -1, 51, 149, 231, 150, 7, 236, 6, -1, 71, 51, 236, 6, -1, 55, 149, 231, 150, 7, 236, 6, -1, 49, 149, 231, 150, 7, 236, 191, 6, -1, 50, 149, 231, 150, 7, 236, 191, 6, -1, 97, 149, 231, 150, 7, 236, 6, -1, 98, 149, 231, 150, 7, 236, 6, -1, 99, 149, 231, 150, 7, 236, 101, 236, 100, 231, 6, -1, 51, 4, 149, 231, 150, 7, 236, 6, -1, 67, 51, 149, 231, 150, 7, 236, 6, -1, -1, 66, 51, 194, 149, 189, 150, 7, 236, 6, -1, 62, 54, 149, 231, 150, 7, 236, 6, -1, 63, 54, 149, 231, 150, 7, 236, 190, 6, -1, 12, 13, 6, -1, 13, 54, 231, 6, -1, 59, 54, 149, 231, 150, 7, 5, 5, 5, 6, -1, 52, 149, 231, 150, 7, 236, 6, -1, 53, 149, 231, 150, 7, 236, 6, -1, 54, 4, 149, 231, 150, 7, 236, 6, -1, 67, 54, 149, 231, 150, 7, 236, 6, -1, 67, 54, 149, 231, 150, 7, 236, 4, 156, 235, 157, 6, -1, -1, 66, 54, 195, 149, 189, 150, 7, 236, 6, -1, 65, 56, 149, 231, 150, 7, 236, 6, -1, 56, 149, 231, 150, 7, 236, 6, -1, 67, 56, 149, 231, 150, 7, 236, 6, -1, -1, 66, 56, 196, 149, 189, 150, 7, 236, 6, -1, 73, 233, 156, 198, 157, -1, 72, 156, 233, 155, 233, 155, 231, 157, 156, 198, 157, -1, 74, 233, 156, 198, 157, -1, 75, 156, 233, 155, 231, 157, 156, 198, 157, -1, 4, 156, 198, 157, -1, 83, 51, 156, 239, 157, 54, 156, 231, 157, -1, 80, 51, 149, 231, 150, 156, 239, 157, 6, -1, 199, -1, 197, -1, -1, 199, 192, -1, 199, 48, 156, 239, 157, 6, -1, 199, 51, 156, 239, 157, 6, -1, 199, 54, 156, 239, 157, 6, -1, 199, 56, 156, 239, 157, 6, -1, 77, 62, 149, 231, 150, 7, 236, 6, -1, 77, 48, 149, 231, 150, 7, 156, 235, 157, 6, -1, 77, 62, 149, 231, 150, 7, 156, 233, 155, 233, 155, 239, 157, 6, -1, 77, 62, 149, 231, 150, 7, 156, 233, 155, 233, 155, 233, 155, 239, 157, 6, -1, 77, 52, 149, 231, 150, 7, 156, 233, 155, 239, 157, 6, -1, 77, 4, 149, 231, 150, 7, 236, 6, -1, 77, 4, 149, 231, 150, 7, 5, 6, -1, 77, 4, 156, 231, 157, 6, -1, 77, 4, 149, 231, 150, 7, 156, 233, 155, 233, 155, 239, 157, 6, -1, 81, 156, 199, 157, -1, 81, 110, 151, 231, 152, 6, -1, 81, 4, 151, 231, 152, 6, -1, 81, 4, 6, -1, 81, 4, 4, 6, -1, 102, 240, 156, 199, 157, -1, 114, 5, 6, -1, 115, 5, 6, -1, 114, 156, 199, 157, -1, 115, 156, 199, 157, -1, 4, 244, 6, -1, 4, 4, 151, 231, 152, 243, 6, -1, 4, 4, 4, 151, 231, 152, 6, -1, 4, 231, 6, -1, 70, 149, 4, 150, 153, 4, 6, -1, 96, 4, 6, -1, 109, 6, -1, 43, 6, -1, 40, 6, -1, 40, 156, 231, 155, 231, 155, 231, 155, 231, 155, 231, 155, 231, 157, 6, -1, 41, 6, -1, 44, 6, -1, 45, 6, -1, 61, 6, -1, 104, 149, 231, 8, 231, 150, -1, 104, 149, 231, 8, 231, 8, 231, 150, -1, 104, 4, 105, 156, 231, 8, 231, 157, -1, 104, 4, 105, 156, 231, 8, 231, 8, 231, 157, -1, 106, -1, 113, 4, -1, 111, -1, 112, 4, 6, -1, 107, 149, 231, 150, -1, 108, -1, 76, 233, 156, 199, 157, -1, 76, 156, 233, 155, 233, 155, 231, 157, 156, 199, 157, -1, 76, 156, 233, 155, 233, 155, 233, 155, 231, 157, 156, 199, 157, -1, -1, 76, 233, 156, 199, 207, 220, 157, -1, -1, 76, 156, 233, 155, 233, 155, 231, 157, 156, 199, 208, 220, 157, -1, -1, 76, 156, 233, 155, 233, 155, 233, 155, 231, 157, 156, 199, 209, 220, 157, -1, -1, 76, 156, 199, 210, 220, 157, -1, 76, 48, 156, 231, 155, 233, 157, 6, -1, 76, 51, 156, 231, 155, 233, 157, 6, -1, 76, 54, 156, 231, 155, 233, 157, 6, -1, 76, 48, 156, 231, 155, 233, 155, 233, 155, 231, 157, 6, -1, 76, 51, 156, 231, 155, 233, 155, 233, 155, 231, 157, 6, -1, 76, 54, 156, 231, 155, 233, 155, 233, 155, 231, 157, 6, -1, 76, 48, 156, 231, 155, 233, 155, 233, 155, 233, 155, 231, 157, 6, -1, 76, 51, 156, 231, 155, 233, 155, 233, 155, 233, 155, 231, 157, 6, -1, 76, 54, 156, 231, 155, 233, 155, 233, 155, 233, 155, 231, 157, 6, -1, -1, 76, 48, 156, 231, 155, 233, 157, 211, 156, 220, 157, 6, -1, -1, 76, 51, 156, 231, 155, 233, 157, 212, 156, 220, 157, 6, -1, -1, 76, 54, 156, 231, 155, 233, 157, 213, 156, 220, 157, 6, -1, -1, 76, 48, 156, 231, 155, 233, 155, 233, 155, 231, 157, 214, 156, 220, 157, 6, -1, -1, 76, 51, 156, 231, 155, 233, 155, 233, 155, 231, 157, 215, 156, 220, 157, 6, -1, -1, 76, 54, 156, 231, 155, 233, 155, 233, 155, 231, 157, 216, 156, 220, 157, 6, -1, -1, 76, 48, 156, 231, 155, 233, 155, 233, 155, 233, 155, 231, 157, 217, 156, 220, 157, 6, -1, -1, 76, 51, 156, 231, 155, 233, 155, 233, 155, 233, 155, 231, 157, 218, 156, 220, 157, 6, -1, -1, 76, 54, 156, 231, 155, 233, 155, 233, 155, 233, 155, 231, 157, 219, 156, 220, 157, 6, -1, 221, -1, 220, 221, -1, 84, 156, 231, 157, 6, -1, 84, 156, 236, 155, 236, 157, 6, -1, 84, 156, 236, 155, 236, 155, 236, 157, 6, -1, 78, 6, -1, 88, 6, -1, 88, 90, 6, -1, 89, 6, -1, 89, 90, 6, -1, 85, 149, 231, 150, 7, 236, 69, 231, 6, -1, 69, 4, 151, 231, 152, 6, -1, -1, 69, 4, 231, -1, -1, 4, -1, -1, 7, 236, -1, -1, 7, 231, -1, 64, 51, 237, 7, 231, 222, 6, -1, 64, 54, 237, 224, 223, 6, -1, 60, 54, 156, 231, 157, 7, 236, 6, -1, 64, 56, 237, 224, 6, -1, 91, 237, 6, -1, 78, 54, 237, 225, 6, -1, 79, 54, 236, 7, 231, 6, -1, 68, 51, 236, 7, 236, 6, -1, 68, 54, 231, 156, 239, 157, 7, 231, 156, 239, 157, 6, -1, 48, 156, 239, 157, 105, 54, 156, 231, 157, 6, -1, 51, 156, 239, 157, 105, 54, 156, 231, 157, 6, -1, 51, 156, 239, 157, 105, 56, 156, 231, 157, 6, -1, 54, 156, 239, 157, 105, 56, 156, 231, 157, 6, -1, 82, 6, -1, 82, 4, 6, -1, 82, 48, 156, 239, 157, 6, -1, 122, 149, 243, 150, 7, 156, 236, 155, 236, 157, 6, -1, 123, 149, 243, 150, 7, 156, 236, 155, 236, 157, 6, -1, 124, 149, 243, 150, 7, 156, 236, 155, 236, 157, 6, -1, 125, 149, 243, 150, 7, 156, 236, 155, 236, 157, 6, -1, 232, -1, 149, 231, 150, -1, 140, 231, -1, 139, 231, -1, 144, 231, -1, 231, 140, 231, -1, 231, 139, 231, -1, 231, 141, 231, -1, 231, 142, 231, -1, 231, 143, 231, -1, 231, 148, 231, -1, 231, 135, 231, -1, 231, 136, 231, -1, 231, 138, 231, -1, 231, 137, 231, -1, 231, 134, 231, -1, 231, 133, 231, -1, 231, 132, 231, -1, 231, 131, 231, -1, 231, 130, 231, 8, 231, -1, 14, 149, 231, 150, -1, 15, 149, 231, 150, -1, 16, 149, 231, 150, -1, 17, 149, 231, 150, -1, 18, 149, 231, 150, -1, 19, 149, 231, 150, -1, 20, 149, 231, 150, -1, 21, 149, 231, 150, -1, 22, 149, 231, 150, -1, 24, 149, 231, 150, -1, 25, 149, 231, 155, 231, 150, -1, 26, 149, 231, 150, -1, 27, 149, 231, 150, -1, 28, 149, 231, 150, -1, 29, 149, 231, 150, -1, 30, 149, 231, 150, -1, 31, 149, 231, 150, -1, 32, 149, 231, 155, 231, 150, -1, 33, 149, 231, 155, 231, 150, -1, 34, 149, 231, 155, 231, 150, -1, 23, 149, 231, 150, -1, 14, 151, 231, 152, -1, 15, 151, 231, 152, -1, 16, 151, 231, 152, -1, 17, 151, 231, 152, -1, 18, 151, 231, 152, -1, 19, 151, 231, 152, -1, 20, 151, 231, 152, -1, 21, 151, 231, 152, -1, 22, 151, 231, 152, -1, 24, 151, 231, 152, -1, 25, 151, 231, 155, 231, 152, -1, 26, 151, 231, 152, -1, 27, 151, 231, 152, -1, 28, 151, 231, 152, -1, 29, 151, 231, 152, -1, 30, 151, 231, 152, -1, 31, 151, 231, 152, -1, 32, 151, 231, 155, 231, 152, -1, 33, 151, 231, 155, 231, 152, -1, 34, 151, 231, 155, 231, 152, -1, 23, 151, 231, 152, -1, 3, -1, 9, -1, 10, -1, 11, -1, 119, -1, 120, -1, 121, -1, 4, -1, 4, 158, 156, 231, 157, -1, 4, 151, 231, 152, -1, 154, 4, 151, 152, -1, 4, 182, -1, 4, 151, 231, 152, 182, -1, 4, 153, 4, -1, 4, 151, 231, 152, 153, 4, -1, 4, 153, 4, 182, -1, 4, 151, 231, 152, 153, 4, 182, -1, 116, 149, 243, 155, 231, 150, -1, 234, -1, 140, 233, -1, 139, 233, -1, 233, 140, 233, -1, 233, 139, 233, -1, 156, 231, 155, 231, 155, 231, 155, 231, 155, 231, 157, -1, 156, 231, 155, 231, 155, 231, 155, 231, 157, -1, 156, 231, 155, 231, 155, 231, 157, -1, 149, 231, 155, 231, 155, 231, 150, -1, 236, -1, 235, 155, 236, -1, 231, -1, 238, -1, 156, 157, -1, 156, 239, 157, -1, 140, 156, 239, 157, -1, 231, 141, 156, 239, 157, -1, 236, -1, 5, -1, 140, 238, -1, 231, 141, 238, -1, 231, 8, 231, -1, 231, 8, 231, 8, 231, -1, 48, 156, 231, 157, -1, 48, 5, -1, 51, 5, -1, 54, 5, -1, 56, 5, -1, 197, -1, 206, -1, 4, 151, 152, -1, 4, 151, 156, 239, 157, 152, -1, 231, -1, 238, -1, 239, 155, 231, -1, 239, 155, 238, -1, 156, 231, 155, 231, 155, 231, 155, 231, 157, -1, 156, 231, 155, 231, 155, 231, 157, -1, 4, -1, 4, 153, 102, 153, 4, -1, 156, 242, 157, -1, 4, 151, 231, 152, 153, 103, -1, 240, -1, 242, 155, 240, -1, 244, -1, 4, -1, 4, 153, 4, -1, 4, 151, 231, 152, 153, 4, -1, 5, -1, 42, -1, 117, 149, 243, 150, -1, 118, 149, 243, 155, 243, 150, -1, 37, 149, 243, 155, 243, 150, -1, 38, 149, 243, 150, -1, 39, 149, 243, 150, -1, 36, 149, 243, 150, -1, 36, 149, 243, 155, 239, 150, -1 }; /* YYRLINE[YYN] -- source line where rule number YYN was defined. */ static const yytype_uint16 yyrline[] = { 0, 162, 162, 163, 168, 170, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 194, 198, 205, 210, 224, 237, 265, 279, 290, 305, 310, 311, 312, 313, 314, 318, 320, 325, 327, 333, 437, 332, 455, 462, 473, 472, 490, 497, 508, 507, 524, 541, 564, 563, 577, 578, 579, 580, 581, 585, 586, 592, 594, 620, 647, 687, 697, 705, 718, 730, 742, 751, 757, 766, 784, 802, 811, 823, 828, 836, 856, 879, 890, 898, 920, 943, 971, 983, 997, 997, 999, 1001, 1012, 1024, 1023, 1036, 1037, 1041, 1052, 1065, 1069, 1080, 1083, 1096, 1099, 1109, 1133, 1132, 1152, 1174, 1192, 1213, 1231, 1261, 1291, 1309, 1327, 1353, 1371, 1390, 1389, 1412, 1430, 1469, 1475, 1481, 1488, 1513, 1538, 1555, 1572, 1604, 1603, 1627, 1645, 1662, 1679, 1678, 1704, 1709, 1714, 1719, 1724, 1747, 1753, 1764, 1765, 1770, 1773, 1777, 1800, 1823, 1846, 1874, 1895, 1918, 1939, 1961, 1981, 2093, 2112, 2150, 2259, 2268, 2274, 2289, 2317, 2334, 2348, 2354, 2360, 2369, 2383, 2425, 2442, 2457, 2476, 2488, 2512, 2516, 2523, 2529, 2534, 2540, 2544, 2548, 2558, 2575, 2592, 2611, 2630, 2660, 2668, 2674, 2681, 2685, 2694, 2702, 2710, 2719, 2718, 2732, 2731, 2745, 2744, 2758, 2757, 2770, 2777, 2784, 2791, 2798, 2805, 2812, 2819, 2826, 2834, 2833, 2846, 2845, 2858, 2857, 2870, 2869, 2882, 2881, 2894, 2893, 2906, 2905, 2918, 2917, 2930, 2929, 2945, 2948, 2954, 2963, 2983, 3006, 3010, 3014, 3018, 3022, 3026, 3045, 3058, 3061, 3077, 3080, 3093, 3096, 3102, 3105, 3112, 3168, 3238, 3243, 3310, 3346, 3389, 3414, 3441, 3485, 3508, 3531, 3534, 3543, 3547, 3557, 3594, 3631, 3667, 3702, 3742, 3743, 3744, 3745, 3746, 3747, 3748, 3749, 3750, 3757, 3758, 3759, 3760, 3761, 3762, 3763, 3764, 3765, 3766, 3767, 3768, 3769, 3770, 3771, 3772, 3773, 3774, 3775, 3776, 3777, 3778, 3779, 3780, 3781, 3782, 3783, 3784, 3785, 3786, 3787, 3788, 3790, 3791, 3792, 3793, 3794, 3795, 3796, 3797, 3798, 3799, 3800, 3801, 3802, 3803, 3804, 3805, 3806, 3807, 3808, 3809, 3810, 3819, 3820, 3821, 3822, 3823, 3824, 3825, 3829, 3848, 3866, 3881, 3891, 3907, 3925, 3930, 3935, 3945, 3955, 3963, 3967, 3971, 3975, 3979, 3986, 3990, 3994, 3998, 4005, 4010, 4017, 4022, 4026, 4031, 4035, 4043, 4054, 4058, 4070, 4078, 4086, 4093, 4104, 4124, 4128, 4132, 4136, 4140, 4150, 4160, 4170, 4190, 4195, 4199, 4203, 4215, 4219, 4231, 4238, 4248, 4252, 4267, 4272, 4279, 4283, 4296, 4304, 4315, 4319, 4327, 4335, 4343, 4351, 4365, 4379, 4383 }; #endif #if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE /* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM. First, the terminals, then, starting at YYNTOKENS, nonterminals. */ static const char *const yytname[] = { "$end", "error", "$undefined", "tDOUBLE", "tSTRING", "tBIGSTR", "tEND", "tAFFECT", "tDOTS", "tPi", "tMPI_Rank", "tMPI_Size", "tEuclidian", "tCoordinates", "tExp", "tLog", "tLog10", "tSqrt", "tSin", "tAsin", "tCos", "tAcos", "tTan", "tRand", "tAtan", "tAtan2", "tSinh", "tCosh", "tTanh", "tFabs", "tFloor", "tCeil", "tFmod", "tModulo", "tHypot", "tPrintf", "tSprintf", "tStrCat", "tStrPrefix", "tStrRelative", "tBoundingBox", "tDraw", "tToday", "tSyncModel", "tCreateTopology", "tCreateTopologyNoHoles", "tDistanceFunction", "tDefineConstant", "tPoint", "tCircle", "tEllipse", "tLine", "tSphere", "tPolarSphere", "tSurface", "tSpline", "tVolume", "tCharacteristic", "tLength", "tParametric", "tElliptic", "tRefineMesh", "tPlane", "tRuled", "tTransfinite", "tComplex", "tPhysical", "tCompound", "tPeriodic", "tUsing", "tPlugin", "tDegenerated", "tRotate", "tTranslate", "tSymmetry", "tDilate", "tExtrude", "tLevelset", "tRecombine", "tSmoother", "tSplit", "tDelete", "tCoherence", "tIntersect", "tLayers", "tHole", "tAlias", "tAliasWithOptions", "tQuadTriDbl", "tQuadTriSngl", "tRecombLaterals", "tTransfQuadTri", "tText2D", "tText3D", "tInterpolationScheme", "tTime", "tCombine", "tBSpline", "tBezier", "tNurbs", "tNurbsOrder", "tNurbsKnots", "tColor", "tColorTable", "tFor", "tIn", "tEndFor", "tIf", "tEndIf", "tExit", "tField", "tReturn", "tCall", "tFunction", "tShow", "tHide", "tGetValue", "tGetEnv", "tGetString", "tGMSH_MAJOR_VERSION", "tGMSH_MINOR_VERSION", "tGMSH_PATCH_VERSION", "tHomRank", "tHomGen", "tHomCut", "tHomSeq", "tAFFECTDIVIDE", "tAFFECTTIMES", "tAFFECTMINUS", "tAFFECTPLUS", "'?'", "tOR", "tAND", "tNOTEQUAL", "tEQUAL", "'<'", "'>'", "tGREATEROREQUAL", "tLESSOREQUAL", "'+'", "'-'", "'*'", "'/'", "'%'", "'!'", "UNARYPREC", "tMINUSMINUS", "tPLUSPLUS", "'^'", "'('", "')'", "'['", "']'", "'.'", "'#'", "','", "'{'", "'}'", "'~'", "$accept", "All", "GeoFormatItems", "GeoFormatItem", "SendToFile", "Printf", "View", "Views", "ElementCoords", "ElementValues", "Element", "$@1", "$@2", "Text2DValues", "Text2D", "$@3", "Text3DValues", "Text3D", "$@4", "InterpolationMatrix", "Time", "$@5", "NumericAffectation", "NumericIncrement", "Affectation", "Comma", "DefineConstants", "$@6", "FloatParameterOptions", "FloatParameterOption", "PhysicalId", "InSphereCenter", "CircleOptions", "Shape", "$@7", "$@8", "$@9", "$@10", "Transform", "MultipleShape", "ListOfShapes", "LevelSet", "Delete", "Colorify", "Visibility", "Command", "Loop", "Extrude", "$@11", "$@12", "$@13", "$@14", "$@15", "$@16", "$@17", "$@18", "$@19", "$@20", "$@21", "$@22", "$@23", "ExtrudeParameters", "ExtrudeParameter", "TransfiniteType", "TransfiniteArrangement", "TransfiniteCorners", "RecombineAngle", "Transfinite", "Periodic", "Embedding", "Coherence", "Homology", "FExpr", "FExpr_Single", "VExpr", "VExpr_Single", "RecursiveListOfListOfDouble", "ListOfDouble", "ListOfDoubleOrAll", "FExpr_Multi", "RecursiveListOfDouble", "ColorExpr", "ListOfColor", "RecursiveListOfColor", "StringExprVar", "StringExpr", 0 }; #endif # ifdef YYPRINT /* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to token YYLEX-NUM. */ static const yytype_uint16 yytoknum[] = { 0, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 63, 385, 386, 387, 388, 60, 62, 389, 390, 43, 45, 42, 47, 37, 33, 391, 392, 393, 94, 40, 41, 91, 93, 46, 35, 44, 123, 125, 126 }; # endif /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */ static const yytype_uint8 yyr1[] = { 0, 159, 160, 160, 161, 161, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 163, 163, 164, 164, 164, 164, 165, 165, 165, 166, 166, 166, 166, 166, 166, 167, 167, 168, 168, 170, 171, 169, 172, 172, 174, 173, 175, 175, 177, 176, 178, 178, 180, 179, 181, 181, 181, 181, 181, 182, 182, 183, 183, 183, 183, 183, 183, 183, 183, 183, 183, 183, 183, 183, 183, 183, 183, 183, 183, 183, 183, 183, 183, 183, 183, 183, 183, 183, 184, 184, 185, 185, 185, 186, 185, 187, 187, 188, 188, 189, 189, 190, 190, 191, 191, 192, 193, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 194, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 195, 192, 192, 192, 192, 196, 192, 197, 197, 197, 197, 197, 197, 197, 198, 198, 199, 199, 199, 199, 199, 199, 200, 200, 200, 200, 200, 200, 200, 200, 200, 201, 201, 201, 201, 201, 202, 203, 203, 203, 203, 204, 204, 204, 204, 204, 204, 204, 204, 204, 204, 204, 204, 204, 204, 205, 205, 205, 205, 205, 205, 205, 205, 205, 205, 206, 206, 206, 207, 206, 208, 206, 209, 206, 210, 206, 206, 206, 206, 206, 206, 206, 206, 206, 206, 211, 206, 212, 206, 213, 206, 214, 206, 215, 206, 216, 206, 217, 206, 218, 206, 219, 206, 220, 220, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 222, 222, 223, 223, 224, 224, 225, 225, 226, 226, 226, 226, 226, 226, 226, 227, 227, 228, 228, 228, 228, 229, 229, 229, 230, 230, 230, 230, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 232, 232, 232, 232, 232, 232, 232, 232, 232, 232, 232, 232, 232, 232, 232, 232, 232, 232, 233, 233, 233, 233, 233, 234, 234, 234, 234, 235, 235, 236, 236, 236, 236, 236, 236, 237, 237, 238, 238, 238, 238, 238, 238, 238, 238, 238, 238, 238, 238, 238, 239, 239, 239, 239, 240, 240, 240, 240, 241, 241, 242, 242, 243, 243, 243, 243, 244, 244, 244, 244, 244, 244, 244, 244, 244 }; /* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */ static const yytype_uint8 yyr2[] = { 0, 2, 1, 2, 0, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 5, 7, 7, 9, 6, 6, 6, 0, 2, 2, 2, 2, 2, 1, 3, 1, 3, 0, 0, 10, 1, 3, 0, 13, 1, 3, 0, 15, 8, 14, 0, 6, 1, 1, 1, 1, 1, 1, 1, 5, 4, 7, 9, 6, 6, 6, 3, 6, 4, 6, 9, 6, 9, 5, 8, 8, 11, 6, 9, 5, 7, 9, 9, 11, 9, 9, 0, 1, 0, 3, 5, 0, 9, 0, 2, 3, 3, 1, 1, 0, 5, 0, 2, 7, 0, 9, 6, 7, 4, 7, 8, 8, 7, 7, 11, 8, 8, 0, 9, 8, 9, 3, 4, 10, 7, 7, 8, 8, 12, 0, 9, 8, 7, 8, 0, 9, 5, 11, 5, 9, 4, 9, 9, 1, 1, 0, 2, 6, 6, 6, 6, 8, 10, 14, 16, 12, 8, 8, 6, 14, 4, 6, 6, 3, 4, 5, 3, 3, 4, 4, 3, 7, 7, 3, 7, 3, 2, 2, 2, 15, 2, 2, 2, 2, 6, 8, 8, 10, 1, 2, 1, 3, 4, 1, 5, 11, 13, 0, 7, 0, 13, 0, 15, 0, 6, 8, 8, 8, 12, 12, 12, 14, 14, 14, 0, 12, 0, 12, 0, 12, 0, 16, 0, 16, 0, 16, 0, 18, 0, 18, 0, 18, 1, 2, 5, 7, 9, 2, 2, 3, 2, 3, 9, 6, 0, 3, 0, 1, 0, 2, 0, 2, 7, 6, 8, 5, 3, 5, 6, 6, 12, 10, 10, 10, 10, 2, 3, 6, 11, 11, 11, 11, 1, 3, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 5, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 6, 4, 4, 4, 4, 4, 4, 6, 6, 6, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 6, 4, 4, 4, 4, 4, 4, 6, 6, 6, 4, 1, 1, 1, 1, 1, 1, 1, 1, 5, 4, 4, 2, 5, 3, 6, 4, 7, 6, 1, 2, 2, 3, 3, 11, 9, 7, 7, 1, 3, 1, 1, 2, 3, 4, 5, 1, 1, 2, 3, 3, 5, 4, 2, 2, 2, 2, 1, 1, 3, 6, 1, 1, 3, 3, 9, 7, 1, 5, 3, 6, 1, 3, 1, 1, 3, 6, 1, 1, 4, 6, 6, 4, 4, 4, 6 }; /* YYDEFACT[STATE-NAME] -- Default 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, 193, 0, 198, 0, 0, 195, 0, 0, 0, 0, 0, 0, 0, 0, 5, 7, 6, 8, 9, 10, 21, 11, 12, 13, 20, 19, 14, 15, 16, 17, 18, 22, 339, 346, 405, 57, 340, 341, 342, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 406, 0, 0, 0, 0, 343, 344, 345, 61, 60, 59, 58, 0, 0, 0, 63, 62, 0, 0, 0, 0, 150, 0, 0, 0, 277, 0, 0, 0, 0, 183, 0, 185, 182, 186, 187, 93, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 188, 0, 0, 0, 0, 0, 0, 109, 122, 134, 139, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 357, 0, 0, 0, 0, 0, 150, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 150, 0, 270, 0, 0, 0, 0, 346, 375, 0, 0, 0, 0, 0, 0, 385, 386, 368, 374, 0, 369, 0, 0, 0, 0, 395, 0, 0, 0, 0, 0, 181, 0, 0, 194, 0, 150, 0, 150, 0, 0, 0, 0, 0, 0, 0, 0, 350, 32, 405, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 346, 280, 279, 281, 0, 0, 0, 0, 0, 0, 0, 0, 0, 149, 0, 148, 0, 71, 178, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 126, 0, 0, 0, 91, 0, 0, 389, 390, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 253, 253, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 359, 358, 0, 0, 0, 0, 150, 150, 0, 0, 0, 0, 0, 0, 0, 208, 0, 150, 0, 0, 0, 0, 0, 255, 0, 0, 0, 168, 0, 0, 0, 271, 0, 0, 0, 0, 0, 381, 0, 382, 383, 384, 0, 279, 376, 370, 0, 0, 0, 261, 180, 0, 0, 0, 0, 0, 150, 0, 0, 0, 0, 196, 171, 0, 172, 0, 402, 0, 401, 0, 0, 0, 0, 0, 352, 0, 0, 73, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 278, 0, 0, 0, 0, 0, 57, 0, 0, 0, 0, 0, 145, 0, 0, 0, 0, 151, 65, 0, 295, 294, 293, 292, 288, 289, 291, 290, 283, 282, 284, 285, 286, 287, 127, 0, 0, 0, 0, 92, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 251, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 113, 0, 0, 0, 361, 360, 0, 0, 0, 0, 0, 0, 0, 0, 0, 202, 0, 0, 0, 0, 0, 0, 0, 0, 0, 169, 0, 0, 165, 0, 0, 0, 0, 387, 0, 0, 0, 0, 371, 378, 0, 284, 377, 0, 0, 0, 0, 0, 0, 0, 0, 197, 0, 173, 174, 0, 0, 0, 0, 0, 0, 0, 348, 354, 0, 42, 0, 0, 0, 55, 0, 33, 34, 35, 36, 37, 297, 318, 298, 319, 299, 320, 300, 321, 301, 322, 302, 323, 303, 324, 304, 325, 305, 326, 317, 338, 306, 327, 0, 0, 308, 329, 309, 330, 310, 331, 311, 332, 312, 333, 313, 334, 0, 0, 0, 0, 0, 0, 412, 0, 0, 410, 411, 84, 0, 407, 0, 0, 0, 0, 0, 57, 0, 0, 0, 0, 0, 78, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 25, 23, 0, 0, 0, 64, 94, 0, 391, 392, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 249, 254, 252, 0, 260, 0, 0, 102, 103, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 141, 143, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 237, 0, 199, 0, 0, 0, 0, 0, 0, 256, 262, 0, 0, 0, 0, 0, 0, 0, 0, 0, 348, 380, 372, 0, 0, 0, 0, 0, 0, 0, 170, 0, 0, 0, 0, 0, 403, 0, 0, 0, 0, 0, 0, 351, 0, 347, 0, 0, 0, 0, 0, 29, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 68, 70, 69, 0, 0, 0, 0, 0, 72, 74, 76, 0, 0, 399, 0, 82, 0, 0, 0, 0, 296, 24, 0, 0, 0, 0, 0, 0, 106, 106, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 111, 0, 0, 0, 0, 0, 0, 258, 0, 0, 0, 0, 0, 0, 0, 0, 264, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 242, 0, 0, 243, 0, 245, 0, 209, 238, 0, 0, 0, 163, 0, 0, 0, 263, 0, 167, 166, 272, 0, 30, 31, 0, 379, 373, 0, 0, 0, 396, 0, 0, 0, 189, 0, 0, 0, 0, 0, 0, 0, 177, 353, 176, 0, 0, 0, 0, 366, 0, 307, 328, 314, 335, 315, 336, 316, 337, 413, 409, 356, 408, 0, 57, 0, 0, 0, 0, 66, 0, 0, 0, 397, 0, 0, 0, 0, 26, 27, 0, 0, 0, 95, 108, 0, 0, 0, 0, 0, 112, 0, 0, 129, 130, 0, 0, 114, 137, 0, 0, 0, 104, 0, 257, 0, 0, 0, 0, 0, 0, 0, 0, 0, 179, 0, 0, 0, 0, 150, 0, 219, 0, 221, 0, 223, 0, 368, 0, 0, 244, 246, 0, 0, 203, 0, 0, 0, 0, 0, 0, 0, 0, 0, 388, 117, 118, 0, 0, 0, 0, 85, 0, 0, 0, 0, 0, 0, 355, 0, 38, 0, 0, 0, 0, 0, 40, 0, 0, 0, 79, 0, 0, 80, 0, 400, 152, 153, 154, 155, 0, 0, 96, 0, 107, 115, 116, 120, 0, 0, 131, 0, 0, 259, 124, 0, 0, 250, 136, 0, 0, 0, 0, 121, 0, 132, 138, 0, 0, 0, 0, 365, 0, 364, 0, 0, 210, 0, 0, 211, 0, 0, 212, 0, 0, 0, 0, 0, 0, 0, 162, 0, 0, 161, 0, 0, 0, 156, 0, 0, 0, 0, 394, 0, 191, 190, 0, 0, 0, 404, 0, 0, 0, 0, 43, 0, 0, 0, 367, 0, 0, 0, 67, 75, 77, 0, 83, 0, 28, 0, 98, 0, 0, 0, 0, 0, 0, 125, 110, 123, 135, 140, 0, 0, 89, 90, 150, 0, 144, 0, 0, 0, 0, 0, 0, 0, 239, 0, 0, 150, 0, 0, 0, 0, 0, 147, 146, 0, 0, 0, 0, 86, 87, 0, 0, 0, 0, 0, 39, 0, 0, 0, 41, 56, 0, 398, 0, 0, 266, 267, 268, 269, 128, 0, 0, 0, 0, 0, 363, 0, 0, 0, 0, 0, 0, 0, 0, 0, 248, 0, 0, 0, 204, 0, 0, 157, 0, 0, 0, 393, 192, 0, 0, 0, 0, 0, 0, 0, 0, 0, 81, 0, 0, 97, 99, 0, 0, 0, 142, 0, 225, 0, 0, 227, 0, 0, 229, 0, 0, 0, 240, 0, 200, 0, 150, 0, 0, 0, 119, 88, 273, 274, 275, 276, 0, 47, 0, 53, 0, 0, 0, 105, 133, 265, 362, 213, 0, 0, 220, 214, 0, 0, 222, 215, 0, 0, 224, 0, 0, 0, 206, 0, 160, 0, 0, 0, 0, 0, 0, 0, 101, 100, 0, 231, 0, 233, 0, 235, 241, 247, 205, 201, 0, 0, 0, 0, 44, 0, 51, 0, 0, 0, 216, 0, 0, 217, 0, 0, 218, 0, 0, 164, 0, 158, 0, 45, 0, 0, 184, 0, 0, 0, 0, 0, 0, 207, 0, 0, 0, 0, 0, 226, 0, 228, 0, 230, 0, 159, 46, 48, 0, 49, 0, 0, 0, 0, 0, 0, 54, 232, 234, 236, 50, 52 }; /* YYDEFGOTO[NTERM-NUM]. */ static const yytype_int16 yydefgoto[] = { -1, 2, 3, 73, 750, 74, 75, 471, 1099, 1105, 671, 855, 1257, 1414, 672, 1376, 1440, 673, 1416, 674, 675, 859, 145, 264, 76, 564, 357, 1210, 1267, 1314, 781, 1136, 1027, 541, 383, 384, 385, 386, 232, 332, 333, 79, 80, 81, 82, 83, 84, 233, 812, 1333, 1392, 613, 1157, 1160, 1163, 1356, 1360, 1364, 1403, 1406, 1409, 808, 809, 919, 778, 587, 622, 86, 87, 88, 89, 90, 234, 148, 396, 200, 988, 989, 236, 237, 441, 244, 741, 887, 462, 463 }; /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing STATE-NUM. */ #define YYPACT_NINF -1033 static const yytype_int16 yypact[] = { 3762, 18, 42, 3876, -1033, -1033, 1891, -4, -24, -88, 33, 80, 91, 100, 104, -9, -104, -21, 52, 23, 65, 77, 12, 93, 112, 94, 119, 253, 305, 269, 297, 51, 319, 95, 167, 185, 214, 317, 228, 217, 217, 260, 486, 6, 339, 375, 382, 7, 34, 389, 466, 472, 1949, 479, 313, 366, 367, 13, 4, -1033, 377, -1033, 482, 348, -1033, 526, 537, 28, 31, 407, 410, 414, 420, -1033, -1033, -1033, -1033, -1033, -1033, -1033, -1033, -1033, -1033, -1033, -1033, -1033, -1033, -1033, -1033, -1033, -1033, -1033, 24, 416, 528, -1033, -1033, -1033, -11, 209, 264, 279, 283, 307, 308, 314, 347, 373, 424, 457, 458, 469, 478, 488, 514, 523, 527, 571, 609, 427, 431, 434, 446, -1033, 538, 451, 463, 491, -1033, -1033, -1033, -1033, -1033, -1033, -1033, 3640, 3640, 3640, -1033, -1033, 3640, 3060, 9, 627, 758, 3640, 607, 774, -1033, 653, 662, 3640, 647, -1033, 3640, -1033, -1033, -1033, -1033, -1033, 3640, 3461, 3640, 3640, 502, 3640, 3461, 3640, 3640, 520, 3461, 3640, 3640, 2393, 531, 532, -1033, 542, 554, 1949, 1949, 1949, 563, -1033, -1033, -1033, -1033, 575, 579, 583, 2393, 3640, 721, 2393, 217, 217, 217, 3640, 3640, -41, -1033, -36, 217, 586, 601, 608, 3281, 59, -65, 614, 618, 633, 1949, 2393, 641, 43, 649, -1033, 777, -1033, 654, 659, 667, 668, 859, -1033, 32, 834, 843, 857, 2541, 1735, -1033, -1033, 1918, -1033, 816, -1033, 862, 3640, 3640, 3640, 670, 3640, 716, 772, 3640, 3640, -1033, 3640, 867, -1033, 872, -1033, 877, -1033, 350, 350, 350, 350, 731, 3640, 895, 778, -1033, -1033, -1033, 918, 3640, 3640, 3640, 3640, 3640, 3640, 3640, 3640, 3640, 3640, 3640, 3640, 3640, 3640, 3640, 3640, 3640, 3640, 3640, 3640, 3640, 3640, 3640, 3640, 3640, 3640, 3640, 3640, 3640, 3640, 3640, 3640, 3640, 3640, 3640, 3640, 3640, 3640, 3640, 3640, 3640, 3640, 350, 350, 350, 350, 3640, 350, 350, 350, 166, 789, 789, 789, 6031, 76, 3461, 5272, 201, 788, 937, 808, 791, -1033, 803, 3325, 1269, -1033, -1033, 3640, 3640, 3640, 3640, 3640, 3640, 3640, 3640, 3640, 3640, 3640, 3640, 3640, 3640, 3640, -1033, -1033, 1297, -77, 3456, 54, 6052, 3461, 1943, -1033, 364, 6073, 6094, 3640, 6115, 391, 6136, 6157, 3640, 541, 6178, 6199, 956, 3640, 3640, 3640, 3640, 957, 969, 969, 3640, 831, 848, 849, 855, 3640, 3640, 3640, 976, 4516, 858, 1008, 105, -1033, -1033, 4596, 4622, 217, 217, 758, 758, 222, 3640, 3640, 3640, 3281, 3281, 3640, 3325, 240, -1033, 3640, 3640, 3640, 3640, 3640, 1017, 1020, 3640, 1022, -1033, 3640, 3640, 804, -1033, 3461, 3461, 3640, 3640, 3214, -1033, 3640, -1033, -1033, -1033, 3461, 789, -1033, -1033, 634, 3640, 2689, -1033, -1033, 6220, 6241, 6262, 930, 4648, -1033, 879, 2831, 6283, 5295, -1033, -1033, 1069, -1033, 1257, 658, 913, -1033, 923, 926, 928, 3640, 5318, 106, 3640, 1, -1033, 6304, 5341, 6325, 5364, 6346, 5387, 6367, 5410, 6388, 5433, 6409, 5456, 6430, 5479, 6451, 5502, 6472, 5525, 6493, 5548, 6514, 5571, 4674, 4700, 6535, 5594, 6556, 5617, 6577, 5640, 6598, 5663, 6619, 5686, 6640, 5709, 4726, 4752, 4778, 4804, 4830, 4856, -14, 896, 929, 933, 1366, 920, 934, 932, 3640, -1033, 2393, 2393, 2393, 679, 101, 528, 3640, 1062, 1076, 27, 936, -1033, -23, 25, 30, 63, -1033, -1033, 2979, 853, 1147, 1238, 1238, 747, 747, 747, 747, -76, -76, 789, 789, 789, 789, -1033, 8, 3461, 3640, 1079, -1033, 1085, 1084, 3461, 3461, 987, 1086, 1087, 6661, 1090, 993, 1092, 1093, 6682, 996, 1095, 1097, 3640, 6703, 3422, 6724, 6745, 3640, 2393, 1101, 1100, 6766, 3603, 3603, 3603, 3603, 6787, 6808, 6829, 2393, 3461, 954, -1033, 217, 3640, 3640, -1033, -1033, 951, 952, 3640, 4882, 4908, 4934, 4570, 397, 217, 2134, 6850, 3761, 6871, 6892, 6913, 3640, 1104, 3640, 6934, -1033, 5732, 5755, -1033, 680, 685, 5778, 5801, -1033, 3461, 5824, 3900, 688, -1033, 3054, 3461, 789, -1033, 1105, 1106, 1107, 958, 3640, 2282, 3640, 3640, -1033, 44, -1033, -1033, 3640, 1112, 1120, 1123, 1126, 1130, 5847, 85, -1033, 3928, -1033, 989, 992, 986, -1033, 1137, -1033, -1033, -1033, -1033, -1033, -1033, -1033, -1033, -1033, -1033, -1033, -1033, -1033, -1033, -1033, -1033, -1033, -1033, -1033, -1033, -1033, -1033, -1033, -1033, -1033, -1033, -1033, 3640, 3640, -1033, -1033, -1033, -1033, -1033, -1033, -1033, -1033, -1033, -1033, -1033, -1033, 3640, 3640, 3640, 3640, 3640, 3640, -1033, 3461, 350, -1033, -1033, -1033, 3640, -1033, 350, 1138, 1141, 1142, 997, -1033, 11, 3640, 1144, 1145, 1385, -1033, 1146, 1001, 13, 1149, -1033, 3461, 3461, 3461, 3461, 3640, -1033, 1021, 350, 67, 4960, -1033, 1151, 217, 1943, -1033, 1102, 2393, 2393, 1152, 2393, 124, 2393, 2393, 1153, 1108, 2393, 2393, 1531, 1155, 1162, 1163, 1164, 3209, -1033, -1033, 1166, -1033, 1167, 1023, 7165, -1033, 1026, 1028, 1029, 1174, 1175, 1176, 1178, 689, 1181, 251, 4986, 5012, -1033, -1033, 3956, 217, 217, 217, 1182, 1184, 1031, 1039, 29, 35, -25, -1033, 257, -1033, 397, 1185, 1189, 1190, 1194, 1197, 7165, -1033, 1567, 1040, 1200, 1203, 1207, 1160, 1209, 1210, 739, -128, -1033, -1033, 3640, 743, 2393, 2393, 2393, 1214, 5038, -1033, 3127, 370, 1215, 1216, 5870, -1033, 1065, 1066, 1072, 1074, 1225, 1228, -1033, 1227, -1033, 1089, 3640, 3640, 2393, 1078, -1033, 6955, 5893, 6976, 5916, 6997, 5939, 7018, 5962, 155, 1094, 7039, 1096, -1033, -1033, -1033, 130, 345, 1082, 1232, 1690, -1033, -1033, -1033, 13, 3640, -1033, 763, -1033, 764, 768, 783, 797, 7165, -1033, 1234, 14, 3640, 3429, 56, 1091, 1180, 1180, 2393, 1237, 1099, 1103, 1239, 1246, 2393, 1109, 1250, 1251, -1033, 1253, 2393, 2393, 2393, 1258, 1255, -1033, 2393, 1256, 1259, 1261, 1265, 2393, 2393, 2393, -1033, 1267, 473, 3640, 3640, 3640, 1135, -70, -39, 210, 1113, -1033, 2393, 3640, -1033, 1270, -1033, 1286, -1033, -1033, 3281, 237, 2097, -1033, 1140, 1143, 2837, -1033, 3461, -1033, -1033, -1033, 1148, -1033, -1033, 1150, 7165, -1033, 1288, 1291, 1226, -1033, 3640, 3640, 3640, -1033, 1292, 1294, 1173, 2393, 2393, 2393, 2393, -1033, 106, -1033, 3640, 5064, 5090, 800, -1033, 3640, -1033, -1033, -1033, -1033, -1033, -1033, -1033, -1033, -1033, -1033, -1033, -1033, 2393, 528, 3640, 1311, 1326, 27, -1033, 1327, 5985, 13, -1033, 1328, 1329, 1330, 1331, -1033, -1033, 350, 5116, 3640, 7165, -1033, 3640, 217, 1332, 1333, 1335, -1033, 3640, 3640, -1033, -1033, 1336, 3640, -1033, -1033, 1339, 1341, 1343, 1240, 3640, -1033, 1344, 2393, 2393, 2393, 2393, 1345, 925, 1347, 3640, -1033, 3603, 3984, 7060, 3545, 758, 217, 1351, 217, 1355, 217, 1356, 3640, 312, 1177, 7081, -1033, -1033, 4012, 280, -1033, 1357, 1538, 1359, 2393, 217, 1538, 1360, 801, 3640, -1033, -1033, -1033, 2393, 3596, 613, 7102, -1033, 3133, 1363, 1213, 1235, 1241, 1242, -1033, 159, 7165, 3640, 3640, 2393, 1233, 817, 7165, 1376, 1377, 1728, -1033, 1386, 1389, -1033, 1260, -1033, -1033, -1033, -1033, -1033, 1409, 3640, 7165, 4040, 354, -1033, -1033, -1033, 4068, 4096, -1033, 4124, 1387, -1033, -1033, 1364, 1412, 7165, -1033, 1413, 1414, 1420, 1435, -1033, 1287, -1033, -1033, 4543, 1807, 1436, 1293, -1033, 3640, -1033, 1290, 396, -1033, 1295, 413, -1033, 1296, 459, -1033, 1298, 6008, 1442, 2393, 1443, 1299, 3640, -1033, 2985, 464, -1033, 818, 522, 547, -1033, 1447, 4152, 1358, 3640, -1033, 3640, -1033, -1033, 3461, 2644, 1450, -1033, 2393, 2393, 2393, 2393, -1033, 3640, 5142, 5168, -1033, 2393, 3640, 1451, -1033, -1033, -1033, 13, -1033, 1361, -1033, 5194, -1033, 1454, 1459, 1460, 1461, 1462, 1313, -1033, -1033, -1033, -1033, -1033, 2393, 3461, -1033, -1033, 758, 3872, -1033, 3281, 397, 3281, 397, 3281, 397, 1464, -1033, 854, 2393, -1033, 4180, 217, 1465, 3461, 217, -1033, -1033, 3640, 4208, 4236, 865, -1033, -1033, 1315, 1316, 1317, 1319, 1321, 7165, 3640, 3640, 866, 7165, -1033, 1474, -1033, 3640, 876, -1033, -1033, -1033, -1033, -1033, 3640, 881, 884, 1324, 3640, -1033, 4264, 576, 454, 4292, 626, 493, 4320, 632, 569, -1033, 2393, 1476, 1415, 2430, 1337, 637, -1033, 887, 646, 2682, -1033, -1033, 1477, 1479, 1480, 1481, 1482, 3640, 7123, 5220, 37, -1033, 5246, 1490, -1033, -1033, 4348, 1489, 1504, -1033, 4376, 1505, 3640, 1506, 1507, 3640, 1523, 1525, 3640, 1526, 1378, -1033, 3640, -1033, 397, -1033, 3461, 1528, 2985, -1033, -1033, -1033, -1033, -1033, -1033, 888, -1033, 3640, -1033, 2393, 3640, 2245, -1033, -1033, -1033, -1033, -1033, 1380, 4404, -1033, -1033, 1382, 4432, -1033, -1033, 1383, 4460, -1033, 1534, 2791, 616, 2578, 891, -1033, 673, 897, 1537, 1388, 7144, 900, 4488, -1033, -1033, 397, 1539, 397, 1544, 397, 1545, -1033, -1033, -1033, -1033, 397, 1568, 3461, 1569, -1033, 350, -1033, 1421, 1570, 645, -1033, 1422, 690, -1033, 1423, 719, -1033, 1424, 736, -1033, 901, -1033, 904, -1033, 1426, 2393, -1033, 1577, 397, 1578, 397, 1581, 397, -1033, 1582, 350, 1584, 350, 909, -1033, 796, -1033, 861, -1033, 893, -1033, -1033, -1033, 912, -1033, 1585, 1587, 1589, 1590, 350, 1591, -1033, -1033, -1033, -1033, -1033, -1033 }; /* YYPGOTO[NTERM-NUM]. */ static const yytype_int16 yypgoto[] = { -1033, -1033, -1033, -1033, 702, -1033, -1033, -1033, -1033, 293, -1033, -1033, -1033, -1033, -1033, -1033, -1033, -1033, -1033, -1033, -1033, -1033, -319, 20, -1033, -1033, -1033, -1033, -1033, -1033, -342, -1033, 698, 1598, -1033, -1033, -1033, -1033, 3, -399, -205, -1033, -1033, -1033, -1033, -1033, -1033, 1599, -1033, -1033, -1033, -1033, -1033, -1033, -1033, -1033, -1033, -1033, -1033, -1033, -1033, -703, -737, -1033, -1033, 1222, -1033, -1033, -1033, -1033, -1033, -1033, -6, -1033, 399, -1033, -1032, 443, -124, 505, 50, -708, 596, -1033, -236, -2 }; /* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If positive, shift that token. If negative, reduce the rule which number is the opposite. If zero, do what YYDEFACT says. If YYTABLE_NINF, syntax error. */ #define YYTABLE_NINF -5 static const yytype_int16 yytable[] = { 147, 410, 606, 607, 149, 665, 78, 531, 245, 150, 208, 215, 425, 326, 748, 877, 169, 242, 138, 139, 1019, 464, 465, 466, 4, 851, 146, 164, 260, 164, 151, 739, 886, 252, 169, 943, 254, 432, 218, 153, 219, 945, 5, 1347, 802, 160, 1174, 421, 458, 422, 460, 842, 161, 803, 209, 379, 380, 381, 210, 804, 805, 152, 1024, 806, 807, 348, 349, 350, 211, 399, 400, 948, 351, 559, 515, 516, 517, 518, 560, 520, 521, 522, 220, 525, 413, 1060, 155, 1061, 418, 461, 266, 414, 267, 666, 667, 668, 669, 156, 399, 400, 399, 400, 179, 399, 400, 180, 157, 181, 731, 950, 158, 327, 328, 878, 879, 401, 1062, 216, 1063, 944, 402, 119, 120, 121, 122, 946, 160, 123, 162, 319, 320, 321, 947, 743, 322, 325, 718, 731, 268, 334, 269, 719, 159, 183, 749, 354, 184, 331, 356, 185, 749, 186, 173, 246, 358, 360, 363, 364, 670, 366, 360, 368, 369, 217, 360, 372, 373, 1261, 170, 243, 138, 139, 165, 174, 165, 261, 1010, 262, 905, 166, 906, 744, 263, 740, 253, 391, 745, 255, 433, 154, 1274, 397, 398, 1348, 423, 399, 400, 843, 399, 400, 398, 163, 126, 127, 526, 527, 562, 615, 530, 563, 733, 362, 172, 948, 167, 412, 367, 896, 187, 746, 371, 188, 567, 189, 438, 360, 168, 131, 132, 133, 134, 138, 139, 446, 447, 448, 190, 450, 851, 191, 453, 454, 171, 455, 399, 400, 648, 138, 139, 784, 785, 786, 138, 139, 732, 468, 131, 132, 133, 134, 601, 172, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 1115, 999, 802, 175, 519, 1194, 567, 176, 138, 139, 1195, 803, 1378, 523, 360, 262, 442, 804, 805, 177, 263, 806, 807, 131, 132, 133, 134, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 532, 138, 139, 399, 400, 178, 1004, 438, 461, 266, 195, 196, 270, 571, 271, 399, 400, 192, 576, 1064, 197, 1065, 193, 581, 582, 583, 584, 198, 528, 182, 589, 608, 973, 399, 400, 594, 595, 596, 194, 1430, 119, 120, 121, 122, 399, 400, 123, 212, 1074, 614, 399, 400, 609, 610, 611, 319, 320, 612, 331, 331, 932, 616, 617, 618, 619, 620, 949, 272, 624, 273, 202, 626, 627, 399, 400, 360, 360, 631, 632, 635, 853, 636, 274, 213, 275, 360, 276, 214, 277, 1169, 639, 641, 199, 201, 221, 207, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 443, 349, 350, 278, 280, 279, 281, 351, 661, 239, 282, 664, 283, 802, 126, 127, 1165, 222, 131, 132, 133, 134, 803, 223, 629, 630, 1054, 1055, 804, 805, 238, 870, 806, 807, 637, 248, 663, 872, 138, 139, 399, 400, 235, 284, 1264, 285, 249, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 895, 240, 241, 635, 351, 567, 974, 568, 286, 802, 287, 736, 247, 1281, 735, 1284, 250, 1287, 803, 266, 203, 399, 400, 204, 804, 805, 205, 251, 806, 807, 948, 314, 567, 948, 573, 734, 948, 1229, 399, 400, 360, 752, 256, 1003, 1005, 257, 641, 756, 802, 258, 119, 120, 121, 122, 1231, 259, 123, 803, 265, 288, 770, 289, 310, 804, 805, 775, 311, 806, 807, 312, 782, 782, 782, 782, 783, 783, 783, 783, 360, 394, 395, 313, 794, 795, 399, 400, 315, 403, 798, 399, 400, 411, 290, 292, 291, 293, 751, 1322, 316, 335, 1233, 818, 374, 820, 294, 1241, 295, 1183, 235, 235, 235, 195, 196, 296, 360, 297, 1369, 329, 948, 390, 360, 197, 393, 298, 802, 299, 317, 838, 206, 840, 841, 126, 127, 803, 791, 844, 1325, 365, 355, 804, 805, 235, 419, 806, 807, 352, 1154, 399, 400, 300, 948, 301, 361, 948, 353, 370, 948, 361, 302, 948, 303, 361, 304, 1243, 305, 1401, 375, 1404, 852, 1407, 828, 802, 399, 400, 376, 1410, 833, 377, 861, 862, 803, 948, 567, 948, 577, 948, 804, 805, 1244, 378, 806, 807, 863, 864, 865, 866, 867, 868, 382, 360, 802, 399, 400, 1432, 871, 1434, 306, 1436, 307, 803, 387, 392, 1328, 880, 388, 804, 805, 1321, 389, 806, 807, 439, 361, 360, 360, 360, 360, 893, 404, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 405, 308, 802, 309, 351, 330, 415, 406, 399, 400, 416, 803, 869, 1184, 399, 400, 1390, 804, 805, 399, 400, 806, 807, 336, 1324, 417, 426, 1120, 399, 400, 1327, 802, 567, 420, 638, 1335, 889, 890, 891, 892, 803, 604, 605, 424, 1337, 1419, 804, 805, 802, 395, 806, 807, 655, 427, 656, 399, 400, 803, 428, 7, 8, 429, 430, 804, 805, 444, 449, 806, 807, 965, 1276, 1394, 361, 38, 39, 40, 41, 567, 567, 730, 824, 46, 434, 567, 49, 825, 567, 567, 831, 930, 1421, 435, 852, 986, 987, 537, 17, 18, 538, 20, 21, 539, 23, 540, 25, 436, 26, 439, 802, 29, 30, 445, 32, 33, 34, 451, 456, 803, 37, 1423, 452, 457, 1011, 804, 805, 467, 459, 806, 807, 346, 347, 348, 349, 350, 1021, 1023, 1425, 567, 351, 964, 1006, 567, 469, 966, 54, 55, 56, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 1012, 567, 1013, 1014, 351, 567, 472, 1015, 1056, 1057, 1058, 1144, 802, 1145, 361, 361, 470, 1067, 1069, 351, 567, 803, 1016, 533, 361, 1072, 534, 804, 805, 144, 642, 806, 807, 360, 567, 1443, 1017, 1103, 567, 1104, 1178, 535, 536, 628, 802, 580, 585, 1088, 1089, 1090, 727, 728, 729, 803, 1200, 1103, 1201, 1242, 586, 804, 805, 1100, 590, 806, 807, 597, 1106, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 591, 592, 1109, 793, 351, 1108, 1098, 593, 138, 139, 1082, 599, 1289, 431, 1290, 262, 810, 600, 144, 1122, 263, 1444, 1123, 567, 1103, 1301, 1309, 621, 1128, 1129, 623, 625, 776, 1131, 1312, 646, 1313, 1292, 649, 1103, 1137, 1316, 567, 790, 1317, 567, 1200, 1336, 1375, 567, 1147, 1393, 1148, 1445, 720, 567, 1149, 1395, 1103, 567, 1399, 1426, 1427, 1164, 1428, 331, 657, 1103, 361, 1442, 1446, 737, 1447, 360, 642, 757, 658, 360, 724, 659, 1179, 660, 721, 738, 7, 8, 722, 725, 753, 1187, 726, 742, 754, 1188, 755, 758, 759, 760, 1196, 1197, 762, 763, 764, 765, 767, 768, 361, 769, 777, 779, 792, 796, 797, 819, 837, 834, 835, 836, 1209, 845, 537, 17, 18, 538, 20, 21, 539, 23, 540, 25, 846, 26, 1370, 847, 29, 30, 848, 32, 33, 34, 849, 856, 361, 37, 857, 858, 860, 873, 361, 1227, 874, 875, 876, 881, 882, 885, 884, 899, 888, 900, 894, 898, 903, 909, 1415, 914, 1240, 910, 438, 54, 55, 56, 915, 916, 917, 920, 922, 921, 1248, 923, 1249, 924, 925, 360, 926, 927, 928, 929, 931, 939, 941, 942, 1258, 940, 1438, 951, 1441, 1262, 952, 957, 953, 936, 937, 938, 954, 901, 902, 955, 904, 958, 907, 908, 959, 1452, 911, 912, 960, 961, 962, 963, 360, 970, 975, 976, 978, 979, 1279, 361, 1282, 653, 1285, 980, 331, 981, 982, 983, 984, 990, 1007, 1250, 360, 985, 1008, 1018, 1298, 1026, 1030, 1000, 1033, 1002, 1025, 361, 361, 361, 361, 1034, 1307, 1308, 1031, 1037, 1038, 1039, 1032, 1311, 1044, 1043, 1046, 1066, 1036, 1047, 1315, 1048, 7, 8, 1319, 1049, 1275, 1053, 542, 1070, 967, 968, 969, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 1059, 1071, 1296, 1085, 351, 1078, 1086, 1091, 1079, 1106, 1092, 1084, 558, 1083, 537, 17, 18, 538, 20, 21, 539, 23, 540, 25, 1357, 26, 1110, 1361, 29, 30, 1365, 32, 33, 34, 1368, 1093, 1087, 37, 360, 1111, 360, 1166, 1113, 1116, 1117, 1118, 1119, 1125, 1126, 1377, 1127, 1130, 1379, 1132, 1135, 1029, 1133, 1073, 1134, 1138, 1143, 1035, 1146, 54, 55, 56, 1156, 1040, 1041, 1042, 1159, 1162, 1170, 1045, 1173, 1177, 1189, 1190, 1050, 1051, 1052, 723, 342, 343, 344, 345, 346, 347, 348, 349, 350, 1202, 1203, 1068, 1371, 351, 1374, 360, 1199, 1191, 883, 1215, 1205, 1077, 1206, 1192, 1193, 1081, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 1207, 654, 1208, 1216, 351, 1217, 1218, 1219, 1094, 1095, 1096, 1097, 1124, 1220, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 1221, 1225, 1222, 1412, 351, 1107, 1228, 1236, 1226, 1238, 1230, 1232, 1245, 1234, 1239, 1252, 1263, 1247, 1155, 1268, 1158, 361, 1161, 1265, 1269, 1270, 1271, 1272, 1273, 1288, 1295, 1302, 1303, 1304, 1172, 1305, 1306, 1175, 1176, 1310, 1318, 1330, 1339, 1331, 1340, 1341, 1342, 1343, 1139, 1140, 1141, 1142, 1334, 1350, 1352, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 1353, 1355, 1358, 1359, 351, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 1362, 1180, 1363, 1366, 351, 1372, 1367, 1382, 913, 1384, 1386, 1388, 91, 224, 1396, 1397, 1402, 1198, 95, 96, 97, 1405, 1408, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 956, 1411, 1413, 1418, 1417, 1420, 1422, 1424, 361, 1429, 1431, 1433, 361, 226, 1435, 1437, 227, 1439, 1448, 228, 1449, 229, 1450, 1451, 1453, 1020, 1344, 1028, 77, 85, 588, 1112, 0, 0, 0, 0, 1237, 38, 39, 40, 41, 42, 0, 0, 0, 46, 0, 0, 49, 0, 0, 0, 0, 0, 0, 1280, 0, 1283, 0, 1286, 1253, 1254, 1255, 1256, 0, 0, 0, 1294, 0, 0, 1297, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 125, 0, 0, 128, 129, 130, 0, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 439, 407, 1171, 351, 0, 1291, 137, 0, 0, 0, 0, 409, 0, 0, 0, 361, 143, 0, 198, 440, 1009, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 361, 0, 0, 0, 1329, 0, 1204, 0, 1373, 0, 91, 224, 0, 0, 0, 0, 95, 96, 97, 0, 361, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 226, 0, 0, 227, 0, 0, 228, 0, 229, 0, 1381, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 38, 39, 40, 41, 42, 0, 1224, 0, 46, 0, 0, 49, 0, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 361, 0, 361, 0, 0, 0, 0, 0, 0, 0, 0, 125, 0, 0, 128, 129, 130, 0, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 135, 359, 351, 0, 0, 137, 0, 0, 0, 0, 140, 0, 0, 0, 0, 143, 0, 0, 440, 0, 91, 92, 93, 0, 94, 361, 95, 96, 97, 0, 0, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 442, 119, 120, 121, 122, 0, 0, 123, 0, 0, 0, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 442, 91, 224, 225, 351, 0, 0, 95, 96, 97, 0, 0, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 226, 0, 0, 227, 124, 0, 228, 0, 229, 0, 125, 126, 127, 128, 129, 130, 0, 0, 0, 0, 131, 132, 133, 134, 38, 39, 40, 41, 42, 0, 0, 0, 46, 135, 136, 49, 0, 0, 137, 0, 138, 139, 0, 140, 0, 141, 0, 142, 143, 0, 144, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 443, 349, 350, 0, 0, 0, 125, 351, 0, 128, 129, 130, 0, 0, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 566, 349, 350, 0, 135, 230, 0, 351, 0, 137, 0, 0, 0, 0, 140, 0, 91, 224, 1075, 143, 0, 231, 95, 96, 97, 0, 0, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 226, 7, 8, 227, 0, 0, 228, 0, 229, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 38, 39, 40, 41, 42, 0, 0, 0, 46, 0, 0, 49, 0, 537, 17, 18, 538, 20, 21, 539, 23, 540, 25, 0, 26, 0, 0, 29, 30, 0, 32, 33, 34, 0, 0, 0, 37, 0, 0, 0, 0, 0, 0, 0, 125, 0, 0, 128, 129, 130, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 54, 55, 56, 0, 0, 135, 230, 0, 0, 0, 137, 0, 0, 0, 0, 140, 0, 91, 224, 1380, 143, 0, 1076, 95, 96, 97, 0, 0, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 811, 0, 226, 7, 8, 227, 0, 0, 228, 0, 229, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 38, 39, 40, 41, 42, 0, 0, 0, 46, 0, 0, 49, 0, 537, 17, 18, 538, 20, 21, 539, 23, 540, 25, 0, 26, 0, 0, 29, 30, 0, 32, 33, 34, 0, 0, 0, 37, 0, 0, 0, 0, 0, 0, 0, 125, 0, 0, 128, 129, 130, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 54, 55, 56, 0, 0, 135, 230, 0, 0, 0, 137, 0, 0, 0, 0, 140, 0, 91, 224, 0, 143, 0, 231, 95, 96, 97, 0, 0, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 839, 0, 226, 7, 8, 227, 0, 0, 228, 0, 229, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 38, 39, 40, 41, 42, 0, 0, 0, 46, 0, 0, 49, 0, 537, 17, 18, 538, 20, 21, 539, 23, 540, 25, 0, 26, 0, 0, 29, 30, 0, 32, 33, 34, 0, 0, 0, 37, 0, 0, 0, 0, 0, 0, 0, 125, 0, 0, 128, 129, 130, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 54, 55, 56, 0, 0, 135, 230, 0, 0, 0, 137, 0, 0, 0, 0, 140, 0, 91, 224, 0, 143, 0, 231, 95, 96, 97, 0, 0, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1332, 0, 226, 7, 8, 227, 0, 0, 228, 0, 229, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 38, 39, 40, 41, 42, 0, 0, 0, 46, 0, 0, 49, 0, 537, 17, 18, 538, 20, 21, 539, 23, 540, 25, 0, 26, 0, 0, 29, 30, 0, 32, 33, 34, 0, 0, 0, 37, 1251, 0, 0, 0, 0, 0, 0, 125, 0, 0, 128, 129, 130, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 54, 55, 56, 0, 0, 135, 359, 0, 0, 0, 137, 0, 0, 1338, 0, 140, 0, 91, 224, 0, 143, 0, 437, 95, 96, 97, 0, 0, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1391, 0, 226, 0, 0, 227, 0, 0, 228, 0, 229, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 38, 39, 40, 41, 42, 0, 0, 0, 46, 0, 0, 49, 0, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 0, 0, 0, 1389, 0, 0, 0, 0, 0, 0, 0, 125, 0, 0, 128, 129, 130, 0, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 135, 359, 351, 0, 0, 137, 0, 0, 0, 0, 140, 650, 91, 224, 0, 143, 0, 640, 95, 96, 97, 0, 0, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 226, 0, 0, 227, 0, 0, 228, 0, 229, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 38, 39, 40, 41, 42, 0, 0, 0, 46, 0, 0, 49, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 125, 0, 0, 128, 129, 130, 0, 0, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 135, 230, 0, 351, 0, 137, 0, 0, 0, 0, 140, 747, 91, 224, 0, 143, 0, 1080, 95, 96, 97, 0, 0, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 226, 0, 0, 227, 0, 0, 228, 0, 229, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 38, 39, 40, 41, 42, 832, 91, 318, 46, 0, 0, 49, 95, 96, 97, 0, 0, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 0, 0, 0, 0, 0, 0, 125, 0, 0, 128, 129, 130, 0, 0, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 407, 1171, 0, 351, 0, 137, 0, 0, 0, 0, 409, 972, 91, 318, 266, 143, 0, 198, 95, 96, 97, 0, 0, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 0, 119, 120, 121, 122, 0, 0, 123, 125, 0, 0, 128, 129, 130, 0, 0, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 135, 136, 0, 351, 0, 137, 0, 0, 0, 0, 140, 0, 0, 323, 0, 143, 0, 324, 91, 318, 0, 0, 0, 0, 95, 96, 97, 0, 0, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 125, 126, 127, 128, 129, 130, 0, 0, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 135, 136, 0, 351, 0, 137, 918, 0, 0, 0, 140, 0, 91, 318, 0, 143, 0, 1186, 95, 96, 97, 0, 0, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 125, 0, 0, 128, 129, 130, 0, 7, 8, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 135, 136, 0, 0, 351, 137, 0, 0, 0, 0, 140, 0, 0, 633, 0, 143, 0, 634, 0, 0, 537, 17, 18, 538, 20, 21, 539, 23, 540, 25, 0, 26, 0, 0, 29, 30, 0, 32, 33, 34, 0, 0, 0, 37, 125, 0, 0, 128, 129, 130, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 407, 408, 54, 55, 56, 137, 0, 0, 0, 0, 409, 0, 91, 318, 0, 143, 0, 198, 95, 96, 97, 0, 0, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 91, 224, 0, 0, 0, 0, 95, 96, 97, 0, 0, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 226, 0, 0, 227, 0, 0, 228, 0, 229, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 38, 39, 40, 41, 42, 0, 0, 0, 46, 0, 0, 49, 125, 0, 0, 128, 129, 130, 0, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 135, 136, 351, 0, 0, 137, 0, 0, 0, 125, 140, 772, 128, 129, 130, 143, 0, 1022, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 135, 359, 0, 0, 351, 137, 91, 318, 266, 0, 140, 561, 95, 96, 97, 143, 0, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 0, 119, 120, 121, 122, 91, 318, 123, 0, 0, 0, 95, 96, 97, 0, 0, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 0, 0, 0, 0, 0, 1152, 0, 1153, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 125, 126, 127, 128, 129, 130, 0, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 135, 136, 351, 0, 0, 137, 0, 0, 0, 1181, 140, 1182, 0, 0, 125, 143, 0, 128, 129, 130, -4, 1, 0, 0, -4, 0, 0, 0, 0, 0, 0, 0, -4, -4, 0, 0, 0, 135, 136, 0, 0, 0, 137, 0, 0, 0, 0, 140, 0, 0, 0, 0, 143, 0, 0, -4, 0, 0, 0, 0, -4, -4, 0, -4, -4, -4, 0, -4, -4, -4, -4, -4, -4, -4, -4, -4, -4, -4, 0, -4, -4, -4, -4, -4, -4, -4, -4, -4, -4, 0, -4, -4, -4, -4, -4, -4, -4, -4, -4, -4, -4, -4, -4, -4, 0, 0, -4, -4, 0, 0, 0, -4, 0, 0, 0, 0, -4, -4, -4, -4, 0, 0, -4, 0, -4, 0, -4, -4, -4, -4, -4, -4, -4, -4, -4, -4, 0, 0, 6, 0, 0, 0, -4, -4, -4, -4, 7, 8, 0, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 9, 0, 0, 0, 0, 10, 11, 814, 12, 13, 14, 0, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 0, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 0, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 0, 0, 50, 51, 0, 0, 0, 52, 0, 0, 0, 0, 53, 54, 55, 56, 0, 0, 57, 0, 58, 0, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 0, 0, 0, 0, 0, 0, 69, 70, 71, 72, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 0, 0, 0, 0, 0, 1277, 0, 1278, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 0, 0, 0, 0, 0, 0, 0, 830, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 0, 0, 0, 0, 0, 0, 0, 854, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 0, 0, 0, 0, 0, 0, 0, 935, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 0, 0, 0, 0, 0, 0, 0, 1150, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 0, 0, 0, 0, 0, 0, 0, 1168, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 0, 0, 0, 0, 0, 0, 0, 1211, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 0, 0, 0, 0, 0, 0, 0, 1212, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 0, 0, 0, 0, 0, 0, 0, 1213, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 0, 0, 0, 0, 0, 0, 0, 1214, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 0, 0, 0, 0, 0, 0, 0, 1246, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 0, 0, 0, 0, 0, 0, 0, 1293, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 0, 0, 0, 0, 0, 0, 0, 1299, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 0, 0, 0, 0, 0, 0, 0, 1300, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 0, 0, 0, 0, 0, 0, 0, 1320, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 0, 0, 0, 0, 0, 0, 0, 1323, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 0, 0, 0, 0, 0, 0, 0, 1326, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 0, 0, 0, 0, 0, 0, 0, 1351, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 0, 0, 0, 0, 0, 0, 0, 1354, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 0, 0, 0, 0, 0, 0, 0, 1383, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 0, 0, 0, 0, 0, 0, 0, 1385, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 0, 0, 0, 0, 0, 0, 0, 1387, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 0, 0, 0, 0, 0, 0, 0, 1400, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 0, 0, 0, 0, 0, 0, 598, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 0, 0, 0, 0, 0, 0, 1223, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 524, 0, 0, 0, 0, 602, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 0, 0, 0, 0, 0, 602, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 0, 0, 0, 0, 0, 603, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 0, 0, 0, 0, 0, 647, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 0, 0, 0, 0, 0, 698, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 0, 0, 0, 0, 0, 699, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 0, 0, 0, 0, 0, 712, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 0, 0, 0, 0, 0, 713, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 0, 0, 0, 0, 0, 714, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 0, 0, 0, 0, 0, 715, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 0, 0, 0, 0, 0, 716, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 0, 0, 0, 0, 0, 717, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 0, 0, 0, 0, 0, 799, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 0, 0, 0, 0, 0, 800, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 0, 0, 0, 0, 0, 801, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 0, 0, 0, 0, 0, 897, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 0, 0, 0, 0, 0, 933, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 0, 0, 0, 0, 0, 934, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 0, 0, 0, 0, 0, 971, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 0, 0, 0, 0, 0, 1101, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 0, 0, 0, 0, 0, 1102, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 0, 0, 0, 0, 0, 1121, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 0, 0, 0, 0, 0, 1259, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 0, 0, 0, 0, 0, 1260, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 0, 0, 0, 0, 0, 1266, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 0, 0, 0, 0, 0, 1346, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 0, 0, 0, 0, 0, 1349, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 0, 0, 529, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 0, 0, 652, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 0, 0, 662, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 0, 0, 677, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 0, 0, 679, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 0, 0, 681, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 0, 0, 683, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 0, 0, 685, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 0, 0, 687, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 0, 0, 689, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 0, 0, 691, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 0, 0, 693, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 0, 0, 695, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 0, 0, 697, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 0, 0, 701, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 0, 0, 703, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 0, 0, 705, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 0, 0, 707, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 0, 0, 709, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 0, 0, 711, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 0, 0, 822, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 0, 0, 823, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 0, 0, 826, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 0, 0, 827, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 0, 0, 829, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 0, 0, 850, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 0, 0, 977, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 0, 0, 992, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 0, 0, 994, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 0, 0, 996, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 0, 0, 998, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 0, 0, 1114, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 0, 0, 1235, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 524, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 565, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 569, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 570, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 572, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 574, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 575, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 578, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 579, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 643, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 644, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 645, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 651, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 676, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 678, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 680, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 682, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 684, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 686, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 688, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 690, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 692, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 694, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 696, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 700, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 702, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 704, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 706, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 708, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 710, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 761, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 766, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 771, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 773, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 774, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 780, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 787, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 788, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 789, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 813, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 815, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 816, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 817, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 821, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 991, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 993, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 995, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 997, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 1001, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 1151, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 1167, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 1185, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 1345, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351, 0, 1398, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 0, 0, 0, 0, 351 }; static const yytype_int16 yycheck[] = { 6, 206, 401, 402, 6, 4, 3, 326, 4, 13, 4, 4, 217, 4, 6, 4, 4, 4, 146, 147, 6, 257, 258, 259, 6, 153, 6, 4, 4, 4, 54, 4, 740, 5, 4, 6, 5, 5, 4, 6, 6, 6, 0, 6, 69, 149, 1078, 4, 253, 6, 255, 7, 156, 78, 48, 179, 180, 181, 52, 84, 85, 149, 6, 88, 89, 141, 142, 143, 62, 139, 140, 808, 148, 150, 310, 311, 312, 313, 155, 315, 316, 317, 48, 7, 149, 155, 6, 157, 212, 4, 5, 156, 94, 92, 93, 94, 95, 6, 139, 140, 139, 140, 51, 139, 140, 54, 6, 56, 7, 812, 6, 102, 103, 102, 103, 156, 155, 110, 157, 90, 156, 36, 37, 38, 39, 90, 149, 42, 149, 135, 136, 137, 157, 156, 140, 141, 150, 7, 149, 145, 151, 155, 151, 48, 136, 151, 51, 144, 154, 54, 136, 56, 58, 149, 160, 161, 162, 163, 157, 165, 166, 167, 168, 156, 170, 171, 172, 1199, 156, 156, 146, 147, 149, 54, 149, 151, 884, 153, 54, 156, 56, 156, 158, 156, 156, 191, 156, 156, 156, 156, 1222, 197, 198, 156, 151, 139, 140, 153, 139, 140, 206, 149, 117, 118, 128, 129, 152, 412, 7, 155, 529, 161, 149, 950, 149, 156, 166, 150, 51, 156, 170, 54, 155, 56, 230, 231, 149, 126, 127, 128, 129, 146, 147, 239, 240, 241, 51, 243, 153, 54, 246, 247, 149, 249, 139, 140, 451, 146, 147, 591, 592, 593, 146, 147, 153, 261, 126, 127, 128, 129, 155, 149, 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, 1012, 150, 69, 54, 314, 150, 155, 6, 146, 147, 155, 78, 1348, 151, 324, 153, 8, 84, 85, 54, 158, 88, 89, 126, 127, 128, 129, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 326, 146, 147, 139, 140, 54, 7, 359, 4, 5, 139, 140, 149, 365, 151, 139, 140, 149, 370, 155, 149, 157, 51, 375, 376, 377, 378, 156, 324, 56, 382, 155, 8, 139, 140, 387, 388, 389, 156, 1417, 36, 37, 38, 39, 139, 140, 42, 54, 157, 155, 139, 140, 404, 405, 406, 407, 408, 409, 401, 402, 155, 413, 414, 415, 416, 417, 155, 149, 420, 151, 156, 423, 424, 139, 140, 427, 428, 429, 430, 431, 662, 433, 149, 54, 151, 437, 149, 51, 151, 155, 442, 443, 39, 40, 51, 42, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 149, 149, 151, 151, 148, 467, 149, 149, 470, 151, 69, 117, 118, 157, 4, 126, 127, 128, 129, 78, 4, 427, 428, 6, 7, 84, 85, 4, 720, 88, 89, 437, 6, 469, 726, 146, 147, 139, 140, 52, 149, 1205, 151, 151, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 750, 149, 149, 523, 148, 155, 150, 157, 149, 69, 151, 531, 149, 1230, 530, 1232, 4, 1234, 78, 5, 48, 139, 140, 51, 84, 85, 54, 4, 88, 89, 1281, 7, 155, 1284, 157, 529, 1287, 155, 139, 140, 560, 561, 149, 876, 877, 149, 566, 567, 69, 149, 36, 37, 38, 39, 155, 149, 42, 78, 156, 149, 580, 151, 149, 84, 85, 585, 149, 88, 89, 149, 590, 591, 592, 593, 590, 591, 592, 593, 598, 194, 195, 149, 602, 603, 139, 140, 149, 202, 608, 139, 140, 206, 149, 149, 151, 151, 560, 157, 149, 6, 155, 621, 173, 623, 149, 155, 151, 8, 179, 180, 181, 139, 140, 149, 634, 151, 1333, 4, 1369, 190, 640, 149, 193, 149, 69, 151, 149, 647, 156, 649, 650, 117, 118, 78, 598, 655, 157, 149, 5, 84, 85, 212, 213, 88, 89, 6, 1059, 139, 140, 149, 1401, 151, 161, 1404, 6, 149, 1407, 166, 149, 1410, 151, 170, 149, 155, 151, 1382, 149, 1384, 662, 1386, 634, 69, 139, 140, 156, 1392, 640, 149, 698, 699, 78, 1432, 155, 1434, 157, 1436, 84, 85, 155, 149, 88, 89, 712, 713, 714, 715, 716, 717, 149, 719, 69, 139, 140, 1420, 724, 1422, 149, 1424, 151, 78, 149, 4, 157, 733, 149, 84, 85, 155, 149, 88, 89, 230, 231, 743, 744, 745, 746, 747, 156, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 156, 149, 69, 151, 148, 4, 149, 156, 139, 140, 149, 78, 719, 157, 139, 140, 157, 84, 85, 139, 140, 88, 89, 6, 155, 149, 6, 1020, 139, 140, 155, 69, 155, 149, 157, 155, 743, 744, 745, 746, 78, 399, 400, 151, 155, 157, 84, 85, 69, 407, 88, 89, 151, 156, 153, 139, 140, 78, 156, 12, 13, 151, 151, 84, 85, 6, 153, 88, 89, 832, 1226, 155, 324, 72, 73, 74, 75, 155, 155, 157, 157, 80, 5, 155, 83, 157, 155, 155, 157, 157, 157, 5, 829, 856, 857, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 5, 59, 359, 69, 62, 63, 6, 65, 66, 67, 156, 6, 78, 71, 157, 105, 6, 885, 84, 85, 151, 6, 88, 89, 139, 140, 141, 142, 143, 897, 898, 157, 155, 148, 157, 877, 155, 4, 157, 97, 98, 99, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 155, 155, 157, 157, 148, 155, 6, 157, 932, 933, 934, 4, 69, 6, 427, 428, 156, 941, 942, 148, 155, 78, 157, 153, 437, 949, 7, 84, 85, 156, 443, 88, 89, 957, 155, 157, 157, 155, 155, 157, 157, 151, 157, 157, 69, 7, 7, 971, 972, 973, 525, 526, 527, 78, 155, 155, 157, 157, 7, 84, 85, 985, 149, 88, 89, 7, 990, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 149, 149, 1005, 601, 148, 1004, 983, 149, 146, 147, 957, 150, 155, 151, 157, 153, 614, 6, 156, 1022, 158, 157, 1025, 155, 155, 157, 157, 7, 1031, 1032, 7, 6, 586, 1036, 155, 102, 157, 1239, 156, 155, 1043, 157, 155, 597, 157, 155, 155, 157, 157, 155, 1053, 157, 1055, 157, 155, 155, 1055, 157, 155, 155, 157, 157, 155, 1066, 157, 1059, 150, 155, 560, 157, 155, 6, 157, 1076, 566, 567, 150, 1080, 155, 150, 1083, 150, 150, 4, 12, 13, 150, 150, 6, 1092, 155, 152, 4, 1092, 7, 105, 7, 7, 1101, 1102, 7, 105, 7, 7, 105, 7, 598, 7, 4, 6, 153, 157, 157, 6, 153, 7, 7, 7, 1121, 4, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 7, 59, 1334, 7, 62, 63, 7, 65, 66, 67, 7, 149, 634, 71, 149, 156, 6, 6, 640, 1152, 6, 6, 152, 6, 6, 151, 7, 755, 6, 54, 136, 7, 7, 7, 1397, 7, 1169, 56, 1171, 97, 98, 99, 7, 7, 7, 6, 150, 7, 1181, 150, 1183, 150, 150, 1186, 7, 7, 7, 6, 4, 4, 156, 149, 1195, 6, 1427, 7, 1429, 1200, 6, 156, 7, 799, 800, 801, 7, 759, 760, 7, 762, 6, 764, 765, 6, 1446, 768, 769, 6, 54, 6, 6, 1223, 4, 4, 4, 156, 156, 1229, 719, 1231, 157, 1233, 156, 1226, 156, 6, 4, 6, 156, 153, 1186, 1243, 149, 7, 6, 1247, 62, 6, 150, 6, 150, 156, 743, 744, 745, 746, 6, 1259, 1260, 156, 6, 6, 5, 156, 1266, 6, 4, 7, 151, 156, 7, 1273, 7, 12, 13, 1277, 7, 1223, 7, 6, 6, 834, 835, 836, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 156, 6, 1243, 6, 148, 156, 6, 6, 156, 1306, 7, 152, 6, 156, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 1321, 59, 6, 1324, 62, 63, 1327, 65, 66, 67, 1331, 153, 101, 71, 1335, 4, 1337, 155, 6, 6, 6, 6, 6, 6, 6, 1346, 6, 6, 1349, 5, 105, 903, 6, 949, 6, 6, 6, 909, 6, 97, 98, 99, 6, 915, 916, 917, 6, 6, 6, 921, 6, 6, 4, 155, 926, 927, 928, 6, 135, 136, 137, 138, 139, 140, 141, 142, 143, 6, 6, 941, 1335, 148, 1337, 1394, 156, 155, 6, 5, 7, 951, 6, 155, 155, 955, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 153, 157, 6, 52, 148, 6, 6, 6, 978, 979, 980, 981, 1026, 6, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 6, 6, 156, 1394, 148, 1003, 157, 6, 156, 7, 156, 156, 6, 156, 156, 6, 6, 100, 1060, 6, 1062, 957, 1064, 103, 6, 6, 6, 6, 156, 6, 6, 157, 157, 157, 1076, 157, 156, 1079, 1080, 6, 157, 6, 6, 69, 6, 6, 6, 6, 1046, 1047, 1048, 1049, 156, 4, 6, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 6, 6, 6, 6, 148, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 6, 1087, 6, 6, 148, 6, 157, 156, 6, 156, 156, 6, 3, 4, 6, 156, 6, 1103, 9, 10, 11, 6, 6, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 6, 6, 6, 6, 156, 156, 156, 156, 1076, 156, 6, 6, 1080, 48, 6, 6, 51, 6, 6, 54, 6, 56, 6, 6, 6, 896, 1306, 902, 3, 3, 381, 1008, -1, -1, -1, -1, 1166, 72, 73, 74, 75, 76, -1, -1, -1, 80, -1, -1, 83, -1, -1, -1, -1, -1, -1, 1229, -1, 1231, -1, 1233, 1190, 1191, 1192, 1193, -1, -1, -1, 1241, -1, -1, 1244, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 116, -1, -1, 119, 120, 121, -1, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, 1171, 139, 140, 148, -1, 1238, 144, -1, -1, -1, -1, 149, -1, -1, -1, 1186, 154, -1, 156, 157, 6, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 1223, -1, -1, -1, 1289, -1, 6, -1, 1337, -1, 3, 4, -1, -1, -1, -1, 9, 10, 11, -1, 1243, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 48, -1, -1, 51, -1, -1, 54, -1, 56, -1, 1350, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 72, 73, 74, 75, 76, -1, 6, -1, 80, -1, -1, 83, -1, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, 1335, -1, 1337, -1, -1, -1, -1, -1, -1, -1, -1, 116, -1, -1, 119, 120, 121, -1, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, 139, 140, 148, -1, -1, 144, -1, -1, -1, -1, 149, -1, -1, -1, -1, 154, -1, -1, 157, -1, 3, 4, 5, -1, 7, 1394, 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, 8, 36, 37, 38, 39, -1, -1, 42, -1, -1, -1, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 8, 3, 4, 5, 148, -1, -1, 9, 10, 11, -1, -1, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 48, -1, -1, 51, 110, -1, 54, -1, 56, -1, 116, 117, 118, 119, 120, 121, -1, -1, -1, -1, 126, 127, 128, 129, 72, 73, 74, 75, 76, -1, -1, -1, 80, 139, 140, 83, -1, -1, 144, -1, 146, 147, -1, 149, -1, 151, -1, 153, 154, -1, 156, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, 116, 148, -1, 119, 120, 121, -1, -1, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, 139, 140, -1, 148, -1, 144, -1, -1, -1, -1, 149, -1, 3, 4, 5, 154, -1, 156, 9, 10, 11, -1, -1, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 48, 12, 13, 51, -1, -1, 54, -1, 56, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 72, 73, 74, 75, 76, -1, -1, -1, 80, -1, -1, 83, -1, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, -1, 59, -1, -1, 62, 63, -1, 65, 66, 67, -1, -1, -1, 71, -1, -1, -1, -1, -1, -1, -1, 116, -1, -1, 119, 120, 121, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 97, 98, 99, -1, -1, 139, 140, -1, -1, -1, 144, -1, -1, -1, -1, 149, -1, 3, 4, 5, 154, -1, 156, 9, 10, 11, -1, -1, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 157, -1, 48, 12, 13, 51, -1, -1, 54, -1, 56, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 72, 73, 74, 75, 76, -1, -1, -1, 80, -1, -1, 83, -1, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, -1, 59, -1, -1, 62, 63, -1, 65, 66, 67, -1, -1, -1, 71, -1, -1, -1, -1, -1, -1, -1, 116, -1, -1, 119, 120, 121, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 97, 98, 99, -1, -1, 139, 140, -1, -1, -1, 144, -1, -1, -1, -1, 149, -1, 3, 4, -1, 154, -1, 156, 9, 10, 11, -1, -1, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 157, -1, 48, 12, 13, 51, -1, -1, 54, -1, 56, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 72, 73, 74, 75, 76, -1, -1, -1, 80, -1, -1, 83, -1, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, -1, 59, -1, -1, 62, 63, -1, 65, 66, 67, -1, -1, -1, 71, -1, -1, -1, -1, -1, -1, -1, 116, -1, -1, 119, 120, 121, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 97, 98, 99, -1, -1, 139, 140, -1, -1, -1, 144, -1, -1, -1, -1, 149, -1, 3, 4, -1, 154, -1, 156, 9, 10, 11, -1, -1, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 157, -1, 48, 12, 13, 51, -1, -1, 54, -1, 56, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 72, 73, 74, 75, 76, -1, -1, -1, 80, -1, -1, 83, -1, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, -1, 59, -1, -1, 62, 63, -1, 65, 66, 67, -1, -1, -1, 71, 6, -1, -1, -1, -1, -1, -1, 116, -1, -1, 119, 120, 121, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 97, 98, 99, -1, -1, 139, 140, -1, -1, -1, 144, -1, -1, 6, -1, 149, -1, 3, 4, -1, 154, -1, 156, 9, 10, 11, -1, -1, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 157, -1, 48, -1, -1, 51, -1, -1, 54, -1, 56, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 72, 73, 74, 75, 76, -1, -1, -1, 80, -1, -1, 83, -1, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, -1, -1, -1, 6, -1, -1, -1, -1, -1, -1, -1, 116, -1, -1, 119, 120, 121, -1, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, 139, 140, 148, -1, -1, 144, -1, -1, -1, -1, 149, 8, 3, 4, -1, 154, -1, 156, 9, 10, 11, -1, -1, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 48, -1, -1, 51, -1, -1, 54, -1, 56, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 72, 73, 74, 75, 76, -1, -1, -1, 80, -1, -1, 83, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 116, -1, -1, 119, 120, 121, -1, -1, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, 139, 140, -1, 148, -1, 144, -1, -1, -1, -1, 149, 8, 3, 4, -1, 154, -1, 156, 9, 10, 11, -1, -1, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 48, -1, -1, 51, -1, -1, 54, -1, 56, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 72, 73, 74, 75, 76, 8, 3, 4, 80, -1, -1, 83, 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, 116, -1, -1, 119, 120, 121, -1, -1, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, 139, 140, -1, 148, -1, 144, -1, -1, -1, -1, 149, 8, 3, 4, 5, 154, -1, 156, 9, 10, 11, -1, -1, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, -1, 36, 37, 38, 39, -1, -1, 42, 116, -1, -1, 119, 120, 121, -1, -1, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, 139, 140, -1, 148, -1, 144, -1, -1, -1, -1, 149, -1, -1, 152, -1, 154, -1, 156, 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, 116, 117, 118, 119, 120, 121, -1, -1, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, 139, 140, -1, 148, -1, 144, 69, -1, -1, -1, 149, -1, 3, 4, -1, 154, -1, 156, 9, 10, 11, -1, -1, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 116, -1, -1, 119, 120, 121, -1, 12, 13, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 139, 140, -1, -1, 148, 144, -1, -1, -1, -1, 149, -1, -1, 152, -1, 154, -1, 156, -1, -1, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, -1, 59, -1, -1, 62, 63, -1, 65, 66, 67, -1, -1, -1, 71, 116, -1, -1, 119, 120, 121, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 139, 140, 97, 98, 99, 144, -1, -1, -1, -1, 149, -1, 3, 4, -1, 154, -1, 156, 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, 3, 4, -1, -1, -1, -1, 9, 10, 11, -1, -1, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 48, -1, -1, 51, -1, -1, 54, -1, 56, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 72, 73, 74, 75, 76, -1, -1, -1, 80, -1, -1, 83, 116, -1, -1, 119, 120, 121, -1, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, 139, 140, 148, -1, -1, 144, -1, -1, -1, 116, 149, 157, 119, 120, 121, 154, -1, 156, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 139, 140, -1, -1, 148, 144, 3, 4, 5, -1, 149, 155, 9, 10, 11, 154, -1, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, -1, 36, 37, 38, 39, 3, 4, 42, -1, -1, -1, 9, 10, 11, -1, -1, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, -1, -1, -1, -1, -1, 155, -1, 157, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 116, 117, 118, 119, 120, 121, -1, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, 139, 140, 148, -1, -1, 144, -1, -1, -1, 155, 149, 157, -1, -1, 116, 154, -1, 119, 120, 121, 0, 1, -1, -1, 4, -1, -1, -1, -1, -1, -1, -1, 12, 13, -1, -1, -1, 139, 140, -1, -1, -1, 144, -1, -1, -1, -1, 149, -1, -1, -1, -1, 154, -1, -1, 35, -1, -1, -1, -1, 40, 41, -1, 43, 44, 45, -1, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, -1, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, -1, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, -1, -1, 86, 87, -1, -1, -1, 91, -1, -1, -1, -1, 96, 97, 98, 99, -1, -1, 102, -1, 104, -1, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, -1, -1, 4, -1, -1, -1, 122, 123, 124, 125, 12, 13, -1, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, 35, -1, -1, -1, -1, 40, 41, 157, 43, 44, 45, -1, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, -1, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, -1, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, -1, -1, 86, 87, -1, -1, -1, 91, -1, -1, -1, -1, 96, 97, 98, 99, -1, -1, 102, -1, 104, -1, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, -1, -1, -1, -1, -1, -1, 122, 123, 124, 125, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, -1, -1, -1, -1, -1, 155, -1, 157, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, -1, -1, -1, -1, -1, -1, -1, 157, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, -1, -1, -1, -1, -1, -1, -1, 157, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, -1, -1, -1, -1, -1, -1, -1, 157, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, -1, -1, -1, -1, -1, -1, -1, 157, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, -1, -1, -1, -1, -1, -1, -1, 157, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, -1, -1, -1, -1, -1, -1, -1, 157, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, -1, -1, -1, -1, -1, -1, -1, 157, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, -1, -1, -1, -1, -1, -1, -1, 157, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, -1, -1, -1, -1, -1, -1, -1, 157, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, -1, -1, -1, -1, -1, -1, -1, 157, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, -1, -1, -1, -1, -1, -1, -1, 157, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, -1, -1, -1, -1, -1, -1, -1, 157, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, -1, -1, -1, -1, -1, -1, -1, 157, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, -1, -1, -1, -1, -1, -1, -1, 157, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, -1, -1, -1, -1, -1, -1, -1, 157, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, -1, -1, -1, -1, -1, -1, -1, 157, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, -1, -1, -1, -1, -1, -1, -1, 157, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, -1, -1, -1, -1, -1, -1, -1, 157, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, -1, -1, -1, -1, -1, -1, -1, 157, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, -1, -1, -1, -1, -1, -1, -1, 157, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, -1, -1, -1, -1, -1, -1, -1, 157, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, -1, -1, -1, -1, -1, -1, -1, 157, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, -1, -1, -1, -1, -1, -1, 156, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, -1, -1, -1, -1, -1, -1, 156, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, 150, -1, -1, -1, -1, 155, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, -1, -1, -1, -1, -1, 155, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, -1, -1, -1, -1, -1, 155, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, -1, -1, -1, -1, -1, 155, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, -1, -1, -1, -1, -1, 155, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, -1, -1, -1, -1, -1, 155, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, -1, -1, -1, -1, -1, 155, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, -1, -1, -1, -1, -1, 155, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, -1, -1, -1, -1, -1, 155, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, -1, -1, -1, -1, -1, 155, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, -1, -1, -1, -1, -1, 155, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, -1, -1, -1, -1, -1, 155, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, -1, -1, -1, -1, -1, 155, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, -1, -1, -1, -1, -1, 155, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, -1, -1, -1, -1, -1, 155, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, -1, -1, -1, -1, -1, 155, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, -1, -1, -1, -1, -1, 155, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, -1, -1, -1, -1, -1, 155, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, -1, -1, -1, -1, -1, 155, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, -1, -1, -1, -1, -1, 155, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, -1, -1, -1, -1, -1, 155, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, -1, -1, -1, -1, -1, 155, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, -1, -1, -1, -1, -1, 155, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, -1, -1, -1, -1, -1, 155, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, -1, -1, -1, -1, -1, 155, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, -1, -1, -1, -1, -1, 155, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, -1, -1, -1, -1, -1, 155, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, -1, -1, 152, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, -1, -1, 152, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, -1, -1, 152, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, -1, -1, 152, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, -1, -1, 152, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, -1, -1, 152, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, -1, -1, 152, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, -1, -1, 152, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, -1, -1, 152, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, -1, -1, 152, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, -1, -1, 152, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, -1, -1, 152, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, -1, -1, 152, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, -1, -1, 152, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, -1, -1, 152, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, -1, -1, 152, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, -1, -1, 152, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, -1, -1, 152, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, -1, -1, 152, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, -1, -1, 152, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, -1, -1, 152, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, -1, -1, 152, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, -1, -1, 152, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, -1, -1, 152, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, -1, -1, 152, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, -1, -1, 152, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, -1, -1, 152, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, -1, -1, 152, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, -1, -1, 152, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, -1, -1, 152, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, -1, -1, 152, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, -1, -1, 152, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, -1, -1, 152, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, 150, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, 150, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, 150, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, 150, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, 150, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, 150, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, 150, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, 150, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, 150, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, 150, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, 150, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, 150, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, 150, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, 150, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, 150, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, 150, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, 150, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, 150, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, 150, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, 150, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, 150, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, 150, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, 150, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, 150, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, 150, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, 150, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, 150, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, 150, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, 150, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, 150, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, 150, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, 150, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, 150, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, 150, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, 150, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, 150, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, 150, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, 150, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, 150, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, 150, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, 150, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, 150, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, 150, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, 150, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, 150, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, 150, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, 150, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, 150, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, 150, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, 150, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, 150, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, 150, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, 150, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148, -1, 150, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, -1, -1, -1, -1, 148 }; /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing symbol of state STATE-NUM. */ static const yytype_uint8 yystos[] = { 0, 1, 160, 161, 6, 0, 4, 12, 13, 35, 40, 41, 43, 44, 45, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 86, 87, 91, 96, 97, 98, 99, 102, 104, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 122, 123, 124, 125, 162, 164, 165, 183, 192, 197, 200, 201, 202, 203, 204, 205, 206, 226, 227, 228, 229, 230, 3, 4, 5, 7, 9, 10, 11, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 36, 37, 38, 39, 42, 110, 116, 117, 118, 119, 120, 121, 126, 127, 128, 129, 139, 140, 144, 146, 147, 149, 151, 153, 154, 156, 181, 182, 231, 232, 244, 13, 54, 149, 6, 156, 6, 6, 6, 6, 151, 149, 156, 149, 149, 4, 149, 156, 149, 149, 4, 156, 149, 149, 58, 54, 54, 6, 54, 54, 51, 54, 56, 56, 48, 51, 54, 56, 51, 54, 56, 51, 54, 149, 51, 156, 139, 140, 149, 156, 233, 234, 233, 156, 48, 51, 54, 156, 233, 4, 48, 52, 62, 54, 54, 51, 4, 110, 156, 4, 6, 48, 51, 4, 4, 4, 5, 48, 51, 54, 56, 140, 156, 197, 206, 231, 236, 237, 238, 4, 149, 149, 149, 4, 156, 240, 4, 149, 149, 6, 151, 4, 4, 5, 156, 5, 156, 149, 149, 149, 149, 4, 151, 153, 158, 182, 156, 5, 244, 149, 151, 149, 151, 149, 151, 149, 151, 149, 151, 149, 151, 149, 151, 149, 151, 149, 151, 149, 151, 149, 151, 149, 151, 149, 151, 149, 151, 149, 151, 149, 151, 149, 151, 149, 151, 149, 151, 149, 151, 149, 151, 149, 149, 149, 149, 7, 149, 149, 149, 4, 231, 231, 231, 231, 152, 156, 231, 4, 102, 103, 4, 4, 197, 198, 199, 231, 6, 6, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 148, 6, 6, 231, 5, 231, 185, 231, 140, 231, 238, 239, 231, 231, 149, 231, 239, 231, 231, 149, 239, 231, 231, 236, 149, 156, 149, 149, 237, 237, 237, 149, 193, 194, 195, 196, 149, 149, 149, 236, 231, 4, 236, 233, 233, 233, 231, 231, 139, 140, 156, 156, 233, 156, 156, 156, 139, 140, 149, 199, 233, 156, 149, 156, 149, 149, 149, 237, 236, 149, 4, 6, 151, 151, 199, 6, 156, 156, 151, 151, 151, 5, 156, 5, 5, 5, 156, 231, 238, 157, 239, 8, 141, 6, 6, 231, 231, 231, 153, 231, 156, 105, 231, 231, 231, 6, 6, 199, 6, 199, 4, 243, 244, 243, 243, 243, 151, 231, 4, 156, 166, 6, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 243, 243, 243, 243, 231, 243, 243, 243, 151, 150, 7, 128, 129, 239, 152, 7, 181, 182, 153, 7, 151, 157, 48, 51, 54, 56, 192, 6, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 6, 150, 155, 155, 152, 155, 184, 150, 141, 155, 157, 150, 150, 231, 150, 157, 150, 150, 231, 157, 150, 150, 7, 231, 231, 231, 231, 7, 7, 224, 224, 231, 149, 149, 149, 149, 231, 231, 231, 7, 156, 150, 6, 155, 155, 155, 233, 233, 198, 198, 155, 231, 231, 231, 231, 210, 155, 199, 231, 231, 231, 231, 231, 7, 225, 7, 231, 6, 231, 231, 157, 239, 239, 231, 231, 152, 156, 231, 231, 239, 157, 231, 156, 231, 238, 150, 150, 150, 102, 155, 199, 156, 8, 150, 152, 157, 157, 151, 153, 150, 150, 150, 150, 231, 152, 182, 231, 4, 92, 93, 94, 95, 157, 169, 173, 176, 178, 179, 150, 152, 150, 152, 150, 152, 150, 152, 150, 152, 150, 152, 150, 152, 150, 152, 150, 152, 150, 152, 150, 152, 155, 155, 150, 152, 150, 152, 150, 152, 150, 152, 150, 152, 150, 152, 155, 155, 155, 155, 155, 155, 150, 155, 155, 150, 150, 6, 155, 150, 155, 236, 236, 236, 157, 7, 153, 181, 182, 244, 231, 6, 4, 4, 156, 241, 152, 156, 156, 156, 156, 8, 6, 136, 163, 239, 231, 6, 4, 7, 231, 238, 105, 7, 7, 150, 7, 105, 7, 7, 150, 105, 7, 7, 231, 150, 157, 150, 150, 231, 236, 4, 223, 6, 150, 189, 231, 244, 189, 189, 189, 150, 150, 150, 236, 239, 153, 233, 231, 231, 157, 157, 231, 155, 155, 155, 69, 78, 84, 85, 88, 89, 220, 221, 233, 157, 207, 150, 157, 150, 150, 150, 231, 6, 231, 150, 152, 152, 157, 157, 152, 152, 239, 152, 157, 157, 8, 239, 7, 7, 7, 153, 231, 157, 231, 231, 7, 153, 231, 4, 7, 7, 7, 7, 152, 153, 182, 243, 157, 170, 149, 149, 156, 180, 6, 231, 231, 231, 231, 231, 231, 231, 231, 239, 243, 231, 243, 6, 6, 6, 152, 4, 102, 103, 231, 6, 6, 6, 7, 151, 240, 242, 6, 239, 239, 239, 239, 231, 136, 243, 150, 155, 7, 233, 54, 236, 236, 7, 236, 54, 56, 236, 236, 7, 56, 236, 236, 6, 7, 7, 7, 7, 69, 222, 6, 7, 150, 150, 150, 150, 7, 7, 7, 6, 157, 4, 155, 155, 155, 157, 233, 233, 233, 4, 6, 156, 149, 6, 90, 6, 90, 157, 221, 155, 220, 7, 6, 7, 7, 7, 6, 156, 6, 6, 6, 54, 6, 6, 157, 231, 157, 236, 236, 236, 4, 155, 8, 8, 150, 4, 4, 152, 156, 156, 156, 156, 6, 4, 6, 149, 231, 231, 235, 236, 156, 150, 152, 150, 152, 150, 152, 150, 152, 150, 150, 150, 150, 181, 7, 181, 182, 153, 7, 6, 240, 231, 155, 157, 157, 157, 157, 157, 6, 6, 163, 231, 156, 231, 6, 156, 62, 191, 191, 236, 6, 156, 156, 6, 6, 236, 156, 6, 6, 5, 236, 236, 236, 4, 6, 236, 7, 7, 7, 7, 236, 236, 236, 7, 6, 7, 231, 231, 231, 156, 155, 157, 155, 157, 155, 157, 151, 231, 236, 231, 6, 6, 231, 233, 157, 5, 156, 236, 156, 156, 156, 236, 239, 156, 152, 6, 6, 101, 231, 231, 231, 6, 7, 153, 236, 236, 236, 236, 182, 167, 231, 155, 155, 155, 157, 168, 231, 236, 244, 231, 6, 4, 241, 6, 152, 240, 6, 6, 6, 6, 243, 155, 231, 231, 233, 6, 6, 6, 231, 231, 6, 231, 5, 6, 6, 105, 190, 231, 6, 236, 236, 236, 236, 6, 4, 6, 6, 231, 231, 244, 157, 150, 155, 157, 198, 233, 6, 211, 233, 6, 212, 233, 6, 213, 231, 157, 155, 150, 157, 155, 6, 140, 233, 6, 235, 233, 233, 6, 157, 231, 236, 155, 157, 8, 157, 150, 156, 231, 244, 4, 155, 155, 155, 155, 150, 155, 231, 231, 236, 156, 155, 157, 6, 6, 6, 7, 6, 153, 6, 231, 186, 157, 157, 157, 157, 5, 52, 6, 6, 6, 6, 6, 156, 156, 6, 6, 156, 231, 157, 155, 156, 155, 156, 155, 156, 152, 6, 236, 7, 156, 231, 155, 157, 155, 155, 6, 157, 100, 231, 231, 239, 6, 6, 236, 236, 236, 236, 171, 231, 155, 155, 235, 231, 6, 240, 103, 155, 187, 6, 6, 6, 6, 6, 156, 235, 239, 198, 155, 157, 231, 233, 220, 231, 233, 220, 231, 233, 220, 6, 155, 157, 236, 199, 157, 233, 6, 239, 233, 231, 157, 157, 157, 157, 157, 157, 157, 156, 231, 231, 157, 6, 231, 155, 157, 188, 231, 157, 157, 157, 231, 157, 155, 157, 157, 155, 157, 157, 155, 157, 236, 6, 69, 157, 208, 156, 155, 157, 155, 6, 6, 6, 6, 6, 6, 168, 150, 155, 6, 156, 155, 4, 157, 6, 6, 157, 6, 214, 231, 6, 6, 215, 231, 6, 6, 216, 231, 6, 157, 231, 220, 199, 239, 6, 233, 239, 157, 174, 231, 235, 231, 5, 236, 156, 157, 156, 157, 156, 157, 6, 6, 157, 157, 209, 157, 155, 157, 6, 156, 150, 157, 157, 220, 6, 217, 220, 6, 218, 220, 6, 219, 220, 6, 239, 6, 172, 243, 177, 156, 6, 157, 156, 157, 156, 157, 156, 157, 157, 155, 157, 156, 235, 6, 220, 6, 220, 6, 220, 6, 243, 6, 175, 243, 157, 157, 157, 157, 155, 157, 6, 6, 6, 6, 243, 6 }; #define yyerrok (yyerrstatus = 0) #define yyclearin (yychar = YYEMPTY) #define YYEMPTY (-2) #define YYEOF 0 #define YYACCEPT goto yyacceptlab #define YYABORT goto yyabortlab #define YYERROR goto yyerrorlab /* Like YYERROR except do call yyerror. This remains here temporarily to ease the transition to the new meaning of YYERROR, for GCC. Once GCC version 2 has supplanted version 1, this can go. However, YYFAIL appears to be in use. Nevertheless, it is formally deprecated in Bison 2.4.2's NEWS entry, where a plan to phase it out is discussed. */ #define YYFAIL goto yyerrlab #if defined YYFAIL /* This is here to suppress warnings from the GCC cpp's -Wunused-macros. Normally we don't worry about that warning, but some users do, and we want to make it easy for users to remove YYFAIL uses, which will produce warnings from Bison 2.5. */ #endif #define YYRECOVERING() (!!yyerrstatus) #define YYBACKUP(Token, Value) \ do \ if (yychar == YYEMPTY && yylen == 1) \ { \ yychar = (Token); \ yylval = (Value); \ 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 163 "Gmsh.y" { yyerrok; return 1; ;} break; case 6: /* Line 1464 of yacc.c */ #line 174 "Gmsh.y" { return 1; ;} break; case 7: /* Line 1464 of yacc.c */ #line 175 "Gmsh.y" { return 1; ;} break; case 8: /* Line 1464 of yacc.c */ #line 176 "Gmsh.y" { return 1; ;} break; case 9: /* Line 1464 of yacc.c */ #line 177 "Gmsh.y" { return 1; ;} break; case 10: /* Line 1464 of yacc.c */ #line 178 "Gmsh.y" { List_Delete((yyvsp[(1) - (1)].l)); return 1; ;} break; case 11: /* Line 1464 of yacc.c */ #line 179 "Gmsh.y" { return 1; ;} break; case 12: /* Line 1464 of yacc.c */ #line 180 "Gmsh.y" { return 1; ;} break; case 13: /* Line 1464 of yacc.c */ #line 181 "Gmsh.y" { return 1; ;} break; case 14: /* Line 1464 of yacc.c */ #line 182 "Gmsh.y" { List_Delete((yyvsp[(1) - (1)].l)); return 1; ;} break; case 15: /* Line 1464 of yacc.c */ #line 183 "Gmsh.y" { return 1; ;} break; case 16: /* Line 1464 of yacc.c */ #line 184 "Gmsh.y" { return 1; ;} break; case 17: /* Line 1464 of yacc.c */ #line 185 "Gmsh.y" { return 1; ;} break; case 18: /* Line 1464 of yacc.c */ #line 186 "Gmsh.y" { return 1; ;} break; case 19: /* Line 1464 of yacc.c */ #line 187 "Gmsh.y" { return 1; ;} break; case 20: /* Line 1464 of yacc.c */ #line 188 "Gmsh.y" { return 1; ;} break; case 21: /* Line 1464 of yacc.c */ #line 189 "Gmsh.y" { return 1; ;} break; case 22: /* Line 1464 of yacc.c */ #line 190 "Gmsh.y" { return 1; ;} break; case 23: /* Line 1464 of yacc.c */ #line 195 "Gmsh.y" { (yyval.c) = (char*)"w"; ;} break; case 24: /* Line 1464 of yacc.c */ #line 199 "Gmsh.y" { (yyval.c) = (char*)"a"; ;} break; case 25: /* Line 1464 of yacc.c */ #line 206 "Gmsh.y" { Msg::Direct((yyvsp[(3) - (5)].c)); Free((yyvsp[(3) - (5)].c)); ;} break; case 26: /* Line 1464 of yacc.c */ #line 211 "Gmsh.y" { std::string tmp = FixRelativePath(gmsh_yyname, (yyvsp[(6) - (7)].c)); FILE *fp = fopen(tmp.c_str(), (yyvsp[(5) - (7)].c)); if(!fp){ yymsg(0, "Unable to open file '%s'", tmp.c_str()); } else{ fprintf(fp, "%s\n", (yyvsp[(3) - (7)].c)); fclose(fp); } Free((yyvsp[(3) - (7)].c)); Free((yyvsp[(6) - (7)].c)); ;} break; case 27: /* Line 1464 of yacc.c */ #line 225 "Gmsh.y" { char tmpstring[1024]; int i = PrintListOfDouble((yyvsp[(3) - (7)].c), (yyvsp[(5) - (7)].l), tmpstring); if(i < 0) yymsg(0, "Too few arguments in Printf"); else if(i > 0) yymsg(0, "%d extra argument%s in Printf", i, (i > 1) ? "s" : ""); else Msg::Direct(tmpstring); Free((yyvsp[(3) - (7)].c)); List_Delete((yyvsp[(5) - (7)].l)); ;} break; case 28: /* Line 1464 of yacc.c */ #line 238 "Gmsh.y" { char tmpstring[1024]; int i = PrintListOfDouble((yyvsp[(3) - (9)].c), (yyvsp[(5) - (9)].l), tmpstring); if(i < 0) yymsg(0, "Too few arguments in Printf"); else if(i > 0) yymsg(0, "%d extra argument%s in Printf", i, (i > 1) ? "s" : ""); else{ std::string tmp = FixRelativePath(gmsh_yyname, (yyvsp[(8) - (9)].c)); FILE *fp = fopen(tmp.c_str(), (yyvsp[(7) - (9)].c)); if(!fp){ yymsg(0, "Unable to open file '%s'", tmp.c_str()); } else{ fprintf(fp, "%s\n", tmpstring); fclose(fp); } } Free((yyvsp[(3) - (9)].c)); Free((yyvsp[(8) - (9)].c)); List_Delete((yyvsp[(5) - (9)].l)); ;} break; case 29: /* Line 1464 of yacc.c */ #line 266 "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 280 "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 291 "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 305 "Gmsh.y" { #if defined(HAVE_POST) ViewData = new PViewDataList(); #endif ;} break; case 38: /* Line 1464 of yacc.c */ #line 319 "Gmsh.y" { ViewCoord.push_back((yyvsp[(1) - (1)].d)); ;} break; case 39: /* Line 1464 of yacc.c */ #line 321 "Gmsh.y" { ViewCoord.push_back((yyvsp[(3) - (3)].d)); ;} break; case 40: /* Line 1464 of yacc.c */ #line 326 "Gmsh.y" { if(ViewValueList) ViewValueList->push_back((yyvsp[(1) - (1)].d)); ;} break; case 41: /* Line 1464 of yacc.c */ #line 328 "Gmsh.y" { if(ViewValueList) ViewValueList->push_back((yyvsp[(3) - (3)].d)); ;} break; case 42: /* Line 1464 of yacc.c */ #line 333 "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 437 "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 447 "Gmsh.y" { #if defined(HAVE_POST) if(ViewValueList) (*ViewNumList)++; #endif ;} break; case 45: /* Line 1464 of yacc.c */ #line 456 "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 463 "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 473 "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 482 "Gmsh.y" { #if defined(HAVE_POST) ViewData->NbT2++; #endif ;} break; case 49: /* Line 1464 of yacc.c */ #line 491 "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 498 "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 508 "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 516 "Gmsh.y" { #if defined(HAVE_POST) ViewData->NbT3++; #endif ;} break; case 53: /* Line 1464 of yacc.c */ #line 526 "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 545 "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 564 "Gmsh.y" { #if defined(HAVE_POST) ViewValueList = &ViewData->Time; #endif ;} break; case 56: /* Line 1464 of yacc.c */ #line 570 "Gmsh.y" { ;} break; case 57: /* Line 1464 of yacc.c */ #line 577 "Gmsh.y" { (yyval.i) = 0; ;} break; case 58: /* Line 1464 of yacc.c */ #line 578 "Gmsh.y" { (yyval.i) = 1; ;} break; case 59: /* Line 1464 of yacc.c */ #line 579 "Gmsh.y" { (yyval.i) = 2; ;} break; case 60: /* Line 1464 of yacc.c */ #line 580 "Gmsh.y" { (yyval.i) = 3; ;} break; case 61: /* Line 1464 of yacc.c */ #line 581 "Gmsh.y" { (yyval.i) = 4; ;} break; case 62: /* Line 1464 of yacc.c */ #line 585 "Gmsh.y" { (yyval.i) = 1; ;} break; case 63: /* Line 1464 of yacc.c */ #line 586 "Gmsh.y" { (yyval.i) = -1; ;} break; case 65: /* Line 1464 of yacc.c */ #line 595 "Gmsh.y" { if(!gmsh_yysymbols.count((yyvsp[(1) - (4)].c))){ if(!(yyvsp[(2) - (4)].i)) gmsh_yysymbols[(yyvsp[(1) - (4)].c)].push_back((yyvsp[(3) - (4)].d)); else yymsg(0, "Unknown variable '%s'", (yyvsp[(1) - (4)].c)); } else{ if(gmsh_yysymbols[(yyvsp[(1) - (4)].c)].empty()){ if((yyvsp[(2) - (4)].i)) yymsg(0, "Uninitialized variable '%s'", (yyvsp[(1) - (4)].c)); gmsh_yysymbols[(yyvsp[(1) - (4)].c)].resize(1, 0.); } switch((yyvsp[(2) - (4)].i)){ case 0 : gmsh_yysymbols[(yyvsp[(1) - (4)].c)][0] = (yyvsp[(3) - (4)].d); break; case 1 : gmsh_yysymbols[(yyvsp[(1) - (4)].c)][0] += (yyvsp[(3) - (4)].d); break; case 2 : gmsh_yysymbols[(yyvsp[(1) - (4)].c)][0] -= (yyvsp[(3) - (4)].d); break; case 3 : gmsh_yysymbols[(yyvsp[(1) - (4)].c)][0] *= (yyvsp[(3) - (4)].d); break; case 4 : if((yyvsp[(3) - (4)].d)) gmsh_yysymbols[(yyvsp[(1) - (4)].c)][0] /= (yyvsp[(3) - (4)].d); else yymsg(0, "Division by zero in '%s /= %g'", (yyvsp[(1) - (4)].c), (yyvsp[(3) - (4)].d)); break; } } Free((yyvsp[(1) - (4)].c)); ;} break; case 66: /* Line 1464 of yacc.c */ #line 621 "Gmsh.y" { int index = (int)(yyvsp[(3) - (7)].d); if(!gmsh_yysymbols.count((yyvsp[(1) - (7)].c))){ if(!(yyvsp[(5) - (7)].i)){ gmsh_yysymbols[(yyvsp[(1) - (7)].c)].resize(index + 1, 0.); gmsh_yysymbols[(yyvsp[(1) - (7)].c)][index] = (yyvsp[(6) - (7)].d); } else yymsg(0, "Unknown variable '%s'", (yyvsp[(1) - (7)].c)); } else{ if((int)gmsh_yysymbols[(yyvsp[(1) - (7)].c)].size() < index + 1) gmsh_yysymbols[(yyvsp[(1) - (7)].c)].resize(index + 1, 0.); switch((yyvsp[(5) - (7)].i)){ case 0 : gmsh_yysymbols[(yyvsp[(1) - (7)].c)][index] = (yyvsp[(6) - (7)].d); break; case 1 : gmsh_yysymbols[(yyvsp[(1) - (7)].c)][index] += (yyvsp[(6) - (7)].d); break; case 2 : gmsh_yysymbols[(yyvsp[(1) - (7)].c)][index] -= (yyvsp[(6) - (7)].d); break; case 3 : gmsh_yysymbols[(yyvsp[(1) - (7)].c)][index] *= (yyvsp[(6) - (7)].d); break; case 4 : if((yyvsp[(6) - (7)].d)) gmsh_yysymbols[(yyvsp[(1) - (7)].c)][index] /= (yyvsp[(6) - (7)].d); else yymsg(0, "Division by zero in '%s[%d] /= %g'", (yyvsp[(1) - (7)].c), index, (yyvsp[(6) - (7)].d)); break; } } Free((yyvsp[(1) - (7)].c)); ;} break; case 67: /* Line 1464 of yacc.c */ #line 648 "Gmsh.y" { if(List_Nbr((yyvsp[(4) - (9)].l)) != List_Nbr((yyvsp[(8) - (9)].l))){ yymsg(0, "Incompatible array dimensions in affectation"); } else{ if(!gmsh_yysymbols.count((yyvsp[(1) - (9)].c))){ if(!(yyvsp[(7) - (9)].i)){ for(int i = 0; i < List_Nbr((yyvsp[(4) - (9)].l)); i++){ int index = (int)(*(double*)List_Pointer((yyvsp[(4) - (9)].l), i)); gmsh_yysymbols[(yyvsp[(1) - (9)].c)].resize(index + 1, 0.); gmsh_yysymbols[(yyvsp[(1) - (9)].c)][index] = *(double*)List_Pointer((yyvsp[(8) - (9)].l), i); } } else yymsg(0, "Unknown variable '%s'", (yyvsp[(1) - (9)].c)); } else{ for(int i = 0; i < List_Nbr((yyvsp[(4) - (9)].l)); i++){ int index = (int)(*(double*)List_Pointer((yyvsp[(4) - (9)].l), i)); double d = *(double*)List_Pointer((yyvsp[(8) - (9)].l), i); if((int)gmsh_yysymbols[(yyvsp[(1) - (9)].c)].size() < index + 1) gmsh_yysymbols[(yyvsp[(1) - (9)].c)].resize(index + 1, 0.); switch((yyvsp[(7) - (9)].i)){ case 0 : gmsh_yysymbols[(yyvsp[(1) - (9)].c)][index] = d; break; case 1 : gmsh_yysymbols[(yyvsp[(1) - (9)].c)][index] += d; break; case 2 : gmsh_yysymbols[(yyvsp[(1) - (9)].c)][index] -= d; break; case 3 : gmsh_yysymbols[(yyvsp[(1) - (9)].c)][index] *= d; break; case 4 : if((yyvsp[(8) - (9)].l)) gmsh_yysymbols[(yyvsp[(1) - (9)].c)][index] /= d; else yymsg(0, "Division by zero in '%s[%d] /= %g'", (yyvsp[(1) - (9)].c), index, d); break; } } } } Free((yyvsp[(1) - (9)].c)); List_Delete((yyvsp[(4) - (9)].l)); List_Delete((yyvsp[(8) - (9)].l)); ;} break; case 68: /* Line 1464 of yacc.c */ #line 688 "Gmsh.y" { if(gmsh_yysymbols.count((yyvsp[(1) - (6)].c))) gmsh_yysymbols[(yyvsp[(1) - (6)].c)].clear(); gmsh_yysymbols[(yyvsp[(1) - (6)].c)] = std::vector<double>(); for(int i = 0; i < List_Nbr((yyvsp[(5) - (6)].l)); i++) gmsh_yysymbols[(yyvsp[(1) - (6)].c)].push_back(*(double*)List_Pointer((yyvsp[(5) - (6)].l), i)); Free((yyvsp[(1) - (6)].c)); List_Delete((yyvsp[(5) - (6)].l)); ;} break; case 69: /* Line 1464 of yacc.c */ #line 698 "Gmsh.y" { // appends to the list for(int i = 0; i < List_Nbr((yyvsp[(5) - (6)].l)); i++) gmsh_yysymbols[(yyvsp[(1) - (6)].c)].push_back(*(double*)List_Pointer((yyvsp[(5) - (6)].l), i)); Free((yyvsp[(1) - (6)].c)); List_Delete((yyvsp[(5) - (6)].l)); ;} break; case 70: /* Line 1464 of yacc.c */ #line 706 "Gmsh.y" { // remove from the list for(int i = 0; i < List_Nbr((yyvsp[(5) - (6)].l)); i++){ double d = *(double*)List_Pointer((yyvsp[(5) - (6)].l), i); std::vector<double>::iterator it = std::find (gmsh_yysymbols[(yyvsp[(1) - (6)].c)].begin(), gmsh_yysymbols[(yyvsp[(1) - (6)].c)].end(), d); if(it != gmsh_yysymbols[(yyvsp[(1) - (6)].c)].end()) gmsh_yysymbols[(yyvsp[(1) - (6)].c)].erase(it); } Free((yyvsp[(1) - (6)].c)); List_Delete((yyvsp[(5) - (6)].l)); ;} break; case 71: /* Line 1464 of yacc.c */ #line 719 "Gmsh.y" { if(!gmsh_yysymbols.count((yyvsp[(1) - (3)].c))) yymsg(0, "Unknown variable '%s'", (yyvsp[(1) - (3)].c)); else{ if(gmsh_yysymbols[(yyvsp[(1) - (3)].c)].empty()) yymsg(0, "Uninitialized variable '%s'", (yyvsp[(1) - (3)].c)); else gmsh_yysymbols[(yyvsp[(1) - (3)].c)][0] += (yyvsp[(2) - (3)].i); } Free((yyvsp[(1) - (3)].c)); ;} break; case 72: /* Line 1464 of yacc.c */ #line 731 "Gmsh.y" { if(!gmsh_yysymbols.count((yyvsp[(1) - (6)].c))) yymsg(0, "Unknown variable '%s'", (yyvsp[(1) - (6)].c)); else{ int index = (int)(yyvsp[(3) - (6)].d); if((int)gmsh_yysymbols[(yyvsp[(1) - (6)].c)].size() < index + 1) gmsh_yysymbols[(yyvsp[(1) - (6)].c)].resize(index + 1, 0.); gmsh_yysymbols[(yyvsp[(1) - (6)].c)][index] += (yyvsp[(5) - (6)].i); } Free((yyvsp[(1) - (6)].c)); ;} break; case 73: /* Line 1464 of yacc.c */ #line 743 "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 74: /* Line 1464 of yacc.c */ #line 752 "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 75: /* Line 1464 of yacc.c */ #line 758 "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 76: /* Line 1464 of yacc.c */ #line 767 "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 77: /* Line 1464 of yacc.c */ #line 785 "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 78: /* Line 1464 of yacc.c */ #line 803 "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 79: /* Line 1464 of yacc.c */ #line 812 "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 80: /* Line 1464 of yacc.c */ #line 824 "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 81: /* Line 1464 of yacc.c */ #line 829 "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 82: /* Line 1464 of yacc.c */ #line 837 "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 83: /* Line 1464 of yacc.c */ #line 857 "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 84: /* Line 1464 of yacc.c */ #line 880 "Gmsh.y" { #if defined(HAVE_MESH) if(!strcmp((yyvsp[(1) - (5)].c),"Background")) GModel::current()->getFields()->background_field = (int)(yyvsp[(4) - (5)].d); else if(!strcmp((yyvsp[(1) - (5)].c),"BoundaryLayer")) GModel::current()->getFields()->boundaryLayer_field = (int)(yyvsp[(4) - (5)].d); else yymsg(0, "Unknown command %s Field", (yyvsp[(1) - (5)].c)); #endif ;} break; case 85: /* Line 1464 of yacc.c */ #line 891 "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 86: /* Line 1464 of yacc.c */ #line 899 "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 87: /* Line 1464 of yacc.c */ #line 921 "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 88: /* Line 1464 of yacc.c */ #line 944 "Gmsh.y" { #if defined(HAVE_MESH) Field *field = GModel::current()->getFields()->get((int)(yyvsp[(3) - (11)].d)); if(field){ FieldOption *option = field->options[(yyvsp[(6) - (11)].c)]; if(option){ std::list<int> &vl = option->list(); vl.clear(); for(int i = 0; i < List_Nbr((yyvsp[(9) - (11)].l)); i++){ double id; List_Read((yyvsp[(9) - (11)].l), i, &id); vl.push_back((int)id); } } else yymsg(0, "Unknown option '%s' in field %i of type '%s'", (yyvsp[(6) - (11)].c), (int)(yyvsp[(3) - (11)].d), field->getName()); } else yymsg(0, "No field with id %i", (int)(yyvsp[(3) - (11)].d)); #endif Free((yyvsp[(6) - (11)].c)); List_Delete((yyvsp[(9) - (11)].l)); ;} break; case 89: /* Line 1464 of yacc.c */ #line 972 "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 90: /* Line 1464 of yacc.c */ #line 984 "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 94: /* Line 1464 of yacc.c */ #line 1002 "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] = val; } Free((yyvsp[(3) - (3)].c)); ;} break; case 95: /* Line 1464 of yacc.c */ #line 1013 "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] = val; } Free((yyvsp[(3) - (5)].c)); ;} break; case 96: /* Line 1464 of yacc.c */ #line 1024 "Gmsh.y" { floatOptions.clear(); charOptions.clear(); ;} break; case 97: /* Line 1464 of yacc.c */ #line 1026 "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] = val; } ;} break; case 100: /* Line 1464 of yacc.c */ #line 1042 "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 101: /* Line 1464 of yacc.c */ #line 1053 "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 102: /* Line 1464 of yacc.c */ #line 1066 "Gmsh.y" { (yyval.i) = (int)(yyvsp[(1) - (1)].d); ;} break; case 103: /* Line 1464 of yacc.c */ #line 1070 "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 104: /* Line 1464 of yacc.c */ #line 1080 "Gmsh.y" { (yyval.l) = 0; ;} break; case 105: /* Line 1464 of yacc.c */ #line 1084 "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 106: /* Line 1464 of yacc.c */ #line 1096 "Gmsh.y" { for(int i = 0; i < 4; i++) (yyval.v)[i] = 0.; ;} break; case 107: /* Line 1464 of yacc.c */ #line 1100 "Gmsh.y" { for(int i = 0; i < 4; i++) (yyval.v)[i] = (yyvsp[(2) - (2)].v)[i]; ;} break; case 108: /* Line 1464 of yacc.c */ #line 1110 "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 109: /* Line 1464 of yacc.c */ #line 1133 "Gmsh.y" { curPhysDim = 0; ;} break; case 110: /* Line 1464 of yacc.c */ #line 1137 "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 111: /* Line 1464 of yacc.c */ #line 1153 "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 112: /* Line 1464 of yacc.c */ #line 1175 "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 113: /* Line 1464 of yacc.c */ #line 1193 "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 114: /* Line 1464 of yacc.c */ #line 1214 "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 115: /* Line 1464 of yacc.c */ #line 1232 "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 116: /* Line 1464 of yacc.c */ #line 1262 "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 117: /* Line 1464 of yacc.c */ #line 1292 "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 118: /* Line 1464 of yacc.c */ #line 1310 "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 119: /* Line 1464 of yacc.c */ #line 1328 "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 120: /* Line 1464 of yacc.c */ #line 1354 "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 121: /* Line 1464 of yacc.c */ #line 1372 "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 122: /* Line 1464 of yacc.c */ #line 1390 "Gmsh.y" { curPhysDim = 1; ;} break; case 123: /* Line 1464 of yacc.c */ #line 1394 "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 124: /* Line 1464 of yacc.c */ #line 1413 "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 125: /* Line 1464 of yacc.c */ #line 1431 "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 126: /* Line 1464 of yacc.c */ #line 1470 "Gmsh.y" { myGmshSurface = 0; (yyval.s).Type = 0; (yyval.s).Num = 0; ;} break; case 127: /* Line 1464 of yacc.c */ #line 1476 "Gmsh.y" { myGmshSurface = gmshSurface::getSurface((int)(yyvsp[(3) - (4)].d)); (yyval.s).Type = 0; (yyval.s).Num = 0; ;} break; case 128: /* Line 1464 of yacc.c */ #line 1482 "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 129: /* Line 1464 of yacc.c */ #line 1489 "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 130: /* Line 1464 of yacc.c */ #line 1514 "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 131: /* Line 1464 of yacc.c */ #line 1539 "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 132: /* Line 1464 of yacc.c */ #line 1556 "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 133: /* Line 1464 of yacc.c */ #line 1574 "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 134: /* Line 1464 of yacc.c */ #line 1604 "Gmsh.y" { curPhysDim = 2; ;} break; case 135: /* Line 1464 of yacc.c */ #line 1608 "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 136: /* Line 1464 of yacc.c */ #line 1628 "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 137: /* Line 1464 of yacc.c */ #line 1646 "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 138: /* Line 1464 of yacc.c */ #line 1663 "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 139: /* Line 1464 of yacc.c */ #line 1679 "Gmsh.y" { curPhysDim = 3; ;} break; case 140: /* Line 1464 of yacc.c */ #line 1683 "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 141: /* Line 1464 of yacc.c */ #line 1705 "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 142: /* Line 1464 of yacc.c */ #line 1710 "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 143: /* Line 1464 of yacc.c */ #line 1715 "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 144: /* Line 1464 of yacc.c */ #line 1720 "Gmsh.y" { DilatShapes((yyvsp[(3) - (9)].v)[0], (yyvsp[(3) - (9)].v)[1], (yyvsp[(3) - (9)].v)[2], (yyvsp[(5) - (9)].d), (yyvsp[(8) - (9)].l)); (yyval.l) = (yyvsp[(8) - (9)].l); ;} break; case 145: /* Line 1464 of yacc.c */ #line 1725 "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 146: /* Line 1464 of yacc.c */ #line 1748 "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 147: /* Line 1464 of yacc.c */ #line 1754 "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 148: /* Line 1464 of yacc.c */ #line 1764 "Gmsh.y" { (yyval.l) = (yyvsp[(1) - (1)].l); ;} break; case 149: /* Line 1464 of yacc.c */ #line 1765 "Gmsh.y" { (yyval.l) = (yyvsp[(1) - (1)].l); ;} break; case 150: /* Line 1464 of yacc.c */ #line 1770 "Gmsh.y" { (yyval.l) = List_Create(3, 3, sizeof(Shape)); ;} break; case 151: /* Line 1464 of yacc.c */ #line 1774 "Gmsh.y" { List_Add((yyval.l), &(yyvsp[(2) - (2)].s)); ;} break; case 152: /* Line 1464 of yacc.c */ #line 1778 "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 153: /* Line 1464 of yacc.c */ #line 1801 "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 154: /* Line 1464 of yacc.c */ #line 1824 "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 155: /* Line 1464 of yacc.c */ #line 1847 "Gmsh.y" { for(int i = 0; i < List_Nbr((yyvsp[(4) - (6)].l)); i++){ double d; List_Read((yyvsp[(4) - (6)].l), i, &d); Shape TheShape; TheShape.Num = (int)d; 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 156: /* Line 1464 of yacc.c */ #line 1875 "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 157: /* Line 1464 of yacc.c */ #line 1896 "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 158: /* Line 1464 of yacc.c */ #line 1920 "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 159: /* Line 1464 of yacc.c */ #line 1941 "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 160: /* Line 1464 of yacc.c */ #line 1962 "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 161: /* Line 1464 of yacc.c */ #line 1982 "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 162: /* Line 1464 of yacc.c */ #line 2094 "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 163: /* Line 1464 of yacc.c */ #line 2113 "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 164: /* Line 1464 of yacc.c */ #line 2152 "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 165: /* Line 1464 of yacc.c */ #line 2260 "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 166: /* Line 1464 of yacc.c */ #line 2269 "Gmsh.y" { #if defined(HAVE_MESH) GModel::current()->getFields()->deleteField((int)(yyvsp[(4) - (6)].d)); #endif ;} break; case 167: /* Line 1464 of yacc.c */ #line 2275 "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 168: /* Line 1464 of yacc.c */ #line 2290 "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 169: /* Line 1464 of yacc.c */ #line 2318 "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 170: /* Line 1464 of yacc.c */ #line 2335 "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 171: /* Line 1464 of yacc.c */ #line 2349 "Gmsh.y" { for(int i = 0; i < 4; i++) VisibilityShape((yyvsp[(2) - (3)].c), i, 1); Free((yyvsp[(2) - (3)].c)); ;} break; case 172: /* Line 1464 of yacc.c */ #line 2355 "Gmsh.y" { for(int i = 0; i < 4; i++) VisibilityShape((yyvsp[(2) - (3)].c), i, 0); Free((yyvsp[(2) - (3)].c)); ;} break; case 173: /* Line 1464 of yacc.c */ #line 2361 "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 174: /* Line 1464 of yacc.c */ #line 2370 "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 175: /* Line 1464 of yacc.c */ #line 2384 "Gmsh.y" { if(!strcmp((yyvsp[(1) - (3)].c), "Include")){ std::string tmp = FixRelativePath(gmsh_yyname, (yyvsp[(2) - (3)].c)); // Warning: we *don't* close included files (to allow user // functions in these files). If you need to include many many // files and don't have functions in the files, use "Merge" // instead: some OSes limit the number of files a process can // open simultaneously. The right solution would be of course // to modify FunctionManager to reopen the files instead of // using the FILE pointer, but hey, I'm lazy... Msg::StatusBar(2, true, "Reading '%s'...", tmp.c_str()); ParseFile(tmp, false, true); SetBoundingBox(); Msg::StatusBar(2, true, "Done reading '%s'", tmp.c_str()); } else if(!strcmp((yyvsp[(1) - (3)].c), "Print")){ // make sure we have the latest data from GEO_Internals in GModel // (fixes bug where we would have no geometry in the picture if // the print command is in the same file as the geometry) GModel::current()->importGEOInternals(); std::string tmp = FixRelativePath(gmsh_yyname, (yyvsp[(2) - (3)].c)); CreateOutputFile(tmp, CTX::instance()->print.fileFormat); } else if(!strcmp((yyvsp[(1) - (3)].c), "Save")){ GModel::current()->importGEOInternals(); std::string tmp = FixRelativePath(gmsh_yyname, (yyvsp[(2) - (3)].c)); CreateOutputFile(tmp, CTX::instance()->mesh.fileFormat); } else if(!strcmp((yyvsp[(1) - (3)].c), "Merge") || !strcmp((yyvsp[(1) - (3)].c), "MergeWithBoundingBox")){ // MergeWithBoundingBox is deprecated std::string tmp = FixRelativePath(gmsh_yyname, (yyvsp[(2) - (3)].c)); MergeFile(tmp, true); } else if(!strcmp((yyvsp[(1) - (3)].c), "System")) SystemCall((yyvsp[(2) - (3)].c)); else if(!strcmp((yyvsp[(1) - (3)].c), "SetName")) GModel::current()->setName((yyvsp[(2) - (3)].c)); else yymsg(0, "Unknown command '%s'", (yyvsp[(1) - (3)].c)); Free((yyvsp[(1) - (3)].c)); Free((yyvsp[(2) - (3)].c)); ;} break; case 176: /* Line 1464 of yacc.c */ #line 2426 "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 177: /* Line 1464 of yacc.c */ #line 2443 "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 178: /* Line 1464 of yacc.c */ #line 2458 "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 179: /* Line 1464 of yacc.c */ #line 2477 "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 180: /* Line 1464 of yacc.c */ #line 2489 "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 181: /* Line 1464 of yacc.c */ #line 2513 "Gmsh.y" { exit(0); ;} break; case 182: /* Line 1464 of yacc.c */ #line 2517 "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 183: /* Line 1464 of yacc.c */ #line 2524 "Gmsh.y" { CTX::instance()->forcedBBox = 0; GModel::current()->importGEOInternals(); SetBoundingBox(); ;} break; case 184: /* Line 1464 of yacc.c */ #line 2530 "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 185: /* Line 1464 of yacc.c */ #line 2535 "Gmsh.y" { #if defined(HAVE_OPENGL) drawContext::global()->draw(); #endif ;} break; case 186: /* Line 1464 of yacc.c */ #line 2541 "Gmsh.y" { GModel::current()->createTopologyFromMesh(); ;} break; case 187: /* Line 1464 of yacc.c */ #line 2545 "Gmsh.y" { GModel::current()->createTopologyFromMesh(1); ;} break; case 188: /* Line 1464 of yacc.c */ #line 2549 "Gmsh.y" { GModel::current()->importGEOInternals(); GModel::current()->refineMesh(CTX::instance()->mesh.secondOrderLinear); ;} break; case 189: /* Line 1464 of yacc.c */ #line 2559 "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 190: /* Line 1464 of yacc.c */ #line 2576 "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 191: /* Line 1464 of yacc.c */ #line 2593 "Gmsh.y" { LoopControlVariablesTab[ImbricatedLoop][0] = (yyvsp[(5) - (8)].d); LoopControlVariablesTab[ImbricatedLoop][1] = (yyvsp[(7) - (8)].d); LoopControlVariablesTab[ImbricatedLoop][2] = 1.0; LoopControlVariablesNameTab[ImbricatedLoop] = (yyvsp[(2) - (8)].c); gmsh_yysymbols[(yyvsp[(2) - (8)].c)].resize(1); gmsh_yysymbols[(yyvsp[(2) - (8)].c)][0] = (yyvsp[(5) - (8)].d); fgetpos(gmsh_yyin, &yyposImbricatedLoopsTab[ImbricatedLoop]); yylinenoImbricatedLoopsTab[ImbricatedLoop] = gmsh_yylineno; if((yyvsp[(5) - (8)].d) > (yyvsp[(7) - (8)].d)) skip_until("For", "EndFor"); else ImbricatedLoop++; if(ImbricatedLoop > MAX_RECUR_LOOPS - 1){ yymsg(0, "Reached maximum number of imbricated loops"); ImbricatedLoop = MAX_RECUR_LOOPS - 1; } ;} break; case 192: /* Line 1464 of yacc.c */ #line 2612 "Gmsh.y" { LoopControlVariablesTab[ImbricatedLoop][0] = (yyvsp[(5) - (10)].d); LoopControlVariablesTab[ImbricatedLoop][1] = (yyvsp[(7) - (10)].d); LoopControlVariablesTab[ImbricatedLoop][2] = (yyvsp[(9) - (10)].d); LoopControlVariablesNameTab[ImbricatedLoop] = (yyvsp[(2) - (10)].c); gmsh_yysymbols[(yyvsp[(2) - (10)].c)].resize(1); gmsh_yysymbols[(yyvsp[(2) - (10)].c)][0] = (yyvsp[(5) - (10)].d); fgetpos(gmsh_yyin, &yyposImbricatedLoopsTab[ImbricatedLoop]); yylinenoImbricatedLoopsTab[ImbricatedLoop] = gmsh_yylineno; if(((yyvsp[(9) - (10)].d) > 0. && (yyvsp[(5) - (10)].d) > (yyvsp[(7) - (10)].d)) || ((yyvsp[(9) - (10)].d) < 0. && (yyvsp[(5) - (10)].d) < (yyvsp[(7) - (10)].d))) skip_until("For", "EndFor"); else ImbricatedLoop++; if(ImbricatedLoop > MAX_RECUR_LOOPS - 1){ yymsg(0, "Reached maximum number of imbricated loops"); ImbricatedLoop = MAX_RECUR_LOOPS - 1; } ;} break; case 193: /* Line 1464 of yacc.c */ #line 2631 "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"); else{ gmsh_yysymbols[name][0] += step; LoopControlVariablesTab[ImbricatedLoop - 1][0] = gmsh_yysymbols[name][0]; } } 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 194: /* Line 1464 of yacc.c */ #line 2661 "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 195: /* Line 1464 of yacc.c */ #line 2669 "Gmsh.y" { if(!FunctionManager::Instance()->leaveFunction (&gmsh_yyin, gmsh_yyname, gmsh_yylineno)) yymsg(0, "Error while exiting function"); ;} break; case 196: /* Line 1464 of yacc.c */ #line 2675 "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 197: /* Line 1464 of yacc.c */ #line 2682 "Gmsh.y" { if(!(yyvsp[(3) - (4)].d)) skip_until("If", "EndIf"); ;} break; case 198: /* Line 1464 of yacc.c */ #line 2686 "Gmsh.y" { ;} break; case 199: /* Line 1464 of yacc.c */ #line 2695 "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 200: /* Line 1464 of yacc.c */ #line 2703 "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 201: /* Line 1464 of yacc.c */ #line 2711 "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 202: /* Line 1464 of yacc.c */ #line 2719 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; extr.mesh.QuadToTri = NO_QUADTRI; ;} break; case 203: /* Line 1464 of yacc.c */ #line 2724 "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 204: /* Line 1464 of yacc.c */ #line 2732 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; extr.mesh.QuadToTri = NO_QUADTRI; ;} break; case 205: /* Line 1464 of yacc.c */ #line 2737 "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 206: /* Line 1464 of yacc.c */ #line 2745 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; extr.mesh.QuadToTri = NO_QUADTRI; ;} break; case 207: /* Line 1464 of yacc.c */ #line 2750 "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 208: /* Line 1464 of yacc.c */ #line 2758 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; extr.mesh.QuadToTri = NO_QUADTRI; ;} break; case 209: /* Line 1464 of yacc.c */ #line 2763 "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 210: /* Line 1464 of yacc.c */ #line 2771 "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 211: /* Line 1464 of yacc.c */ #line 2778 "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 212: /* Line 1464 of yacc.c */ #line 2785 "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 213: /* Line 1464 of yacc.c */ #line 2792 "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 214: /* Line 1464 of yacc.c */ #line 2799 "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 215: /* Line 1464 of yacc.c */ #line 2806 "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 216: /* Line 1464 of yacc.c */ #line 2813 "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 217: /* Line 1464 of yacc.c */ #line 2820 "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 218: /* Line 1464 of yacc.c */ #line 2827 "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 219: /* Line 1464 of yacc.c */ #line 2834 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; extr.mesh.QuadToTri = NO_QUADTRI; ;} break; case 220: /* Line 1464 of yacc.c */ #line 2839 "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 221: /* Line 1464 of yacc.c */ #line 2846 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; extr.mesh.QuadToTri = NO_QUADTRI; ;} break; case 222: /* Line 1464 of yacc.c */ #line 2851 "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 223: /* Line 1464 of yacc.c */ #line 2858 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; extr.mesh.QuadToTri = NO_QUADTRI; ;} break; case 224: /* Line 1464 of yacc.c */ #line 2863 "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 225: /* Line 1464 of yacc.c */ #line 2870 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; extr.mesh.QuadToTri = NO_QUADTRI; ;} break; case 226: /* Line 1464 of yacc.c */ #line 2875 "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 227: /* Line 1464 of yacc.c */ #line 2882 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; extr.mesh.QuadToTri = NO_QUADTRI; ;} break; case 228: /* Line 1464 of yacc.c */ #line 2887 "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 229: /* Line 1464 of yacc.c */ #line 2894 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; extr.mesh.QuadToTri = NO_QUADTRI; ;} break; case 230: /* Line 1464 of yacc.c */ #line 2899 "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 231: /* Line 1464 of yacc.c */ #line 2906 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; extr.mesh.QuadToTri = NO_QUADTRI; ;} break; case 232: /* Line 1464 of yacc.c */ #line 2911 "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 233: /* Line 1464 of yacc.c */ #line 2918 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; extr.mesh.QuadToTri = NO_QUADTRI; ;} break; case 234: /* Line 1464 of yacc.c */ #line 2923 "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 235: /* Line 1464 of yacc.c */ #line 2930 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; extr.mesh.QuadToTri = NO_QUADTRI; ;} break; case 236: /* Line 1464 of yacc.c */ #line 2935 "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 237: /* Line 1464 of yacc.c */ #line 2946 "Gmsh.y" { ;} break; case 238: /* Line 1464 of yacc.c */ #line 2949 "Gmsh.y" { ;} break; case 239: /* Line 1464 of yacc.c */ #line 2955 "Gmsh.y" { extr.mesh.ExtrudeMesh = true; extr.mesh.NbLayer = 1; extr.mesh.NbElmLayer.clear(); extr.mesh.hLayer.clear(); extr.mesh.NbElmLayer.push_back((int)fabs((yyvsp[(3) - (5)].d))); extr.mesh.hLayer.push_back(1.); ;} break; case 240: /* Line 1464 of yacc.c */ #line 2964 "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 241: /* Line 1464 of yacc.c */ #line 2984 "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 242: /* Line 1464 of yacc.c */ #line 3007 "Gmsh.y" { extr.mesh.Recombine = true; ;} break; case 243: /* Line 1464 of yacc.c */ #line 3011 "Gmsh.y" { extr.mesh.QuadToTri = QUADTRI_DBL_1; ;} break; case 244: /* Line 1464 of yacc.c */ #line 3015 "Gmsh.y" { extr.mesh.QuadToTri = QUADTRI_DBL_1_RECOMB; ;} break; case 245: /* Line 1464 of yacc.c */ #line 3019 "Gmsh.y" { extr.mesh.QuadToTri = QUADTRI_SNGL_1; ;} break; case 246: /* Line 1464 of yacc.c */ #line 3023 "Gmsh.y" { extr.mesh.QuadToTri = QUADTRI_SNGL_1_RECOMB; ;} break; case 247: /* Line 1464 of yacc.c */ #line 3027 "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 248: /* Line 1464 of yacc.c */ #line 3046 "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 249: /* Line 1464 of yacc.c */ #line 3058 "Gmsh.y" { (yyval.v)[0] = (yyval.v)[1] = 1.; ;} break; case 250: /* Line 1464 of yacc.c */ #line 3062 "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 251: /* Line 1464 of yacc.c */ #line 3077 "Gmsh.y" { (yyval.i) = -1; // left ;} break; case 252: /* Line 1464 of yacc.c */ #line 3081 "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 253: /* Line 1464 of yacc.c */ #line 3093 "Gmsh.y" { (yyval.l) = List_Create(1, 1, sizeof(double)); ;} break; case 254: /* Line 1464 of yacc.c */ #line 3097 "Gmsh.y" { (yyval.l) = (yyvsp[(2) - (2)].l); ;} break; case 255: /* Line 1464 of yacc.c */ #line 3102 "Gmsh.y" { (yyval.i) = 45; ;} break; case 256: /* Line 1464 of yacc.c */ #line 3106 "Gmsh.y" { (yyval.i) = (int)(yyvsp[(2) - (2)].d); ;} break; case 257: /* Line 1464 of yacc.c */ #line 3113 "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 258: /* Line 1464 of yacc.c */ #line 3169 "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 259: /* Line 1464 of yacc.c */ #line 3239 "Gmsh.y" { yymsg(1, "Elliptic Surface is deprecated: use Transfinite instead (with smoothing)"); List_Delete((yyvsp[(7) - (8)].l)); ;} break; case 260: /* Line 1464 of yacc.c */ #line 3244 "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 261: /* Line 1464 of yacc.c */ #line 3311 "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 262: /* Line 1464 of yacc.c */ #line 3347 "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 263: /* Line 1464 of yacc.c */ #line 3390 "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 264: /* Line 1464 of yacc.c */ #line 3415 "Gmsh.y" { if(List_Nbr((yyvsp[(5) - (6)].l)) != List_Nbr((yyvsp[(3) - (6)].l))){ yymsg(0, "Number of master (%d) different from number of slave (%d) lines", List_Nbr((yyvsp[(5) - (6)].l)), List_Nbr((yyvsp[(3) - (6)].l))); } else{ for(int i = 0; i < List_Nbr((yyvsp[(3) - (6)].l)); i++){ double d_master, d_slave; List_Read((yyvsp[(5) - (6)].l), i, &d_master); List_Read((yyvsp[(3) - (6)].l), i, &d_slave); int j_master = (int)d_master; int j_slave = (int)d_slave; Curve *c_slave = FindCurve(abs(j_slave)); if(c_slave){ c_slave->meshMaster = j_master; } else{ GEdge *ge = GModel::current()->getEdgeByTag(abs(j_slave)); if(ge) ge->setMeshMaster(j_master); else yymsg(0, "Unknown line %d", j_slave); } } } List_Delete((yyvsp[(3) - (6)].l)); List_Delete((yyvsp[(5) - (6)].l)); ;} break; case 265: /* Line 1464 of yacc.c */ #line 3443 "Gmsh.y" { if (List_Nbr((yyvsp[(5) - (12)].l)) != List_Nbr((yyvsp[(10) - (12)].l))){ yymsg(0, "Number of master surface edges (%d) different from number of " "slave (%d) edges", List_Nbr((yyvsp[(10) - (12)].l)), List_Nbr((yyvsp[(5) - (12)].l))); } else{ int j_master = (int)(yyvsp[(8) - (12)].d); int j_slave = (int)(yyvsp[(3) - (12)].d); Surface *s_slave = FindSurface(abs(j_slave)); if(s_slave){ s_slave->meshMaster = j_master; for (int i = 0; i < List_Nbr((yyvsp[(5) - (12)].l)); i++){ double dm, ds; List_Read((yyvsp[(5) - (12)].l), i, &ds); List_Read((yyvsp[(10) - (12)].l), i, &dm); s_slave->edgeCounterparts[(int)ds] = (int)dm; } } else{ GFace *gf = GModel::current()->getFaceByTag(abs(j_slave)); if(gf){ gf->setMeshMaster(j_master); for (int i = 0; i < List_Nbr((yyvsp[(5) - (12)].l)); i++){ double dm, ds; List_Read((yyvsp[(5) - (12)].l), i, &ds); List_Read((yyvsp[(10) - (12)].l), i, &dm); gf->edgeCounterparts[(int)ds] = (int)dm; } } else yymsg(0, "Unknown surface %d", j_slave); } } List_Delete((yyvsp[(5) - (12)].l)); List_Delete((yyvsp[(10) - (12)].l)); ;} break; case 266: /* Line 1464 of yacc.c */ #line 3486 "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 267: /* Line 1464 of yacc.c */ #line 3509 "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 268: /* Line 1464 of yacc.c */ #line 3532 "Gmsh.y" { ;} break; case 269: /* Line 1464 of yacc.c */ #line 3535 "Gmsh.y" { ;} break; case 270: /* Line 1464 of yacc.c */ #line 3544 "Gmsh.y" { ReplaceAllDuplicates(); ;} break; case 271: /* Line 1464 of yacc.c */ #line 3548 "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 272: /* Line 1464 of yacc.c */ #line 3558 "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 273: /* Line 1464 of yacc.c */ #line 3595 "Gmsh.y" { List_T *temp = ListOfDouble2ListOfInt((yyvsp[(7) - (11)].l)); std::vector<int> domain; for (int i = 0; i < List_Nbr(temp); i++){ int item = 0; List_Read(temp, i, &item); domain.push_back(item); } List_Delete((yyvsp[(7) - (11)].l)); List_Delete(temp); List_T *temp2 = ListOfDouble2ListOfInt((yyvsp[(9) - (11)].l)); std::vector<int> subdomain; for (int i = 0; i < List_Nbr(temp2); i++){ int item = 0; List_Read(temp2, i, &item); subdomain.push_back(item); } List_Delete((yyvsp[(9) - (11)].l)); List_Delete(temp2); std::string fileName = ""; fileName = (yyvsp[(3) - (11)].c); #if defined(HAVE_KBIPACK) Homology* homology = new Homology(GModel::current(), domain, subdomain); homology->setFileName(fileName); homology->computeRanks(); delete homology; #else yymsg(0, "Gmsh needs to be configured with option Kbipack to use homology computation"); #endif ;} break; case 274: /* Line 1464 of yacc.c */ #line 3632 "Gmsh.y" { List_T *temp = ListOfDouble2ListOfInt((yyvsp[(7) - (11)].l)); std::vector<int> domain; for (int i = 0; i < List_Nbr(temp); i++){ int item = 0; List_Read(temp, i, &item); domain.push_back(item); } List_Delete((yyvsp[(7) - (11)].l)); List_Delete(temp); List_T *temp2 = ListOfDouble2ListOfInt((yyvsp[(9) - (11)].l)); std::vector<int> subdomain; for (int i = 0; i < List_Nbr(temp2); i++){ int item = 0; List_Read(temp2, i, &item); subdomain.push_back(item); } List_Delete((yyvsp[(9) - (11)].l)); List_Delete(temp2); std::string fileName = ""; fileName = (yyvsp[(3) - (11)].c); #if defined(HAVE_KBIPACK) Homology* homology = new Homology(GModel::current(), domain, subdomain); homology->setFileName(fileName); homology->findGenerators(); delete homology; #else yymsg(0, "Gmsh needs to be configured with option Kbipack to use homology computation"); #endif ;} break; case 275: /* Line 1464 of yacc.c */ #line 3668 "Gmsh.y" { List_T *temp = ListOfDouble2ListOfInt((yyvsp[(7) - (11)].l)); std::vector<int> domain; for (int i = 0; i < List_Nbr(temp); i++){ int item = 0; List_Read(temp, i, &item); domain.push_back(item); } List_Delete((yyvsp[(7) - (11)].l)); List_Delete(temp); List_T *temp2 = ListOfDouble2ListOfInt((yyvsp[(9) - (11)].l)); std::vector<int> subdomain; for (int i = 0; i < List_Nbr(temp2); i++){ int item = 0; List_Read(temp2, i, &item); subdomain.push_back(item); } List_Delete((yyvsp[(9) - (11)].l)); List_Delete(temp2); std::string fileName = ""; fileName = (yyvsp[(3) - (11)].c); #if defined(HAVE_KBIPACK) Homology* homology = new Homology(GModel::current(), domain, subdomain); homology->setFileName(fileName); homology->findDualGenerators(); delete homology; #else yymsg(0, "Gmsh needs to be configured with option Kbipack to use homology computation"); #endif ;} break; case 276: /* Line 1464 of yacc.c */ #line 3703 "Gmsh.y" { List_T *temp = ListOfDouble2ListOfInt((yyvsp[(7) - (11)].l)); std::vector<int> domain; for (int i = 0; i < List_Nbr(temp); i++){ int item = 0; List_Read(temp, i, &item); domain.push_back(item); } List_Delete((yyvsp[(7) - (11)].l)); List_Delete(temp); List_T *temp2 = ListOfDouble2ListOfInt((yyvsp[(9) - (11)].l)); std::vector<int> subdomain; for (int i = 0; i < List_Nbr(temp2); i++){ int item = 0; List_Read(temp2, i, &item); subdomain.push_back(item); } List_Delete((yyvsp[(9) - (11)].l)); List_Delete(temp2); std::string fileName = ""; fileName = (yyvsp[(3) - (11)].c); #if defined(HAVE_KBIPACK) Homology* homology = new Homology(GModel::current(), domain, subdomain); homology->setFileName(fileName); homology->findHomSequence(); delete homology; #else yymsg(0, "Gmsh needs to be configured with option Kbipack to use homology computation"); #endif ;} break; case 277: /* Line 1464 of yacc.c */ #line 3742 "Gmsh.y" { (yyval.d) = (yyvsp[(1) - (1)].d); ;} break; case 278: /* Line 1464 of yacc.c */ #line 3743 "Gmsh.y" { (yyval.d) = (yyvsp[(2) - (3)].d); ;} break; case 279: /* Line 1464 of yacc.c */ #line 3744 "Gmsh.y" { (yyval.d) = -(yyvsp[(2) - (2)].d); ;} break; case 280: /* Line 1464 of yacc.c */ #line 3745 "Gmsh.y" { (yyval.d) = (yyvsp[(2) - (2)].d); ;} break; case 281: /* Line 1464 of yacc.c */ #line 3746 "Gmsh.y" { (yyval.d) = !(yyvsp[(2) - (2)].d); ;} break; case 282: /* Line 1464 of yacc.c */ #line 3747 "Gmsh.y" { (yyval.d) = (yyvsp[(1) - (3)].d) - (yyvsp[(3) - (3)].d); ;} break; case 283: /* Line 1464 of yacc.c */ #line 3748 "Gmsh.y" { (yyval.d) = (yyvsp[(1) - (3)].d) + (yyvsp[(3) - (3)].d); ;} break; case 284: /* Line 1464 of yacc.c */ #line 3749 "Gmsh.y" { (yyval.d) = (yyvsp[(1) - (3)].d) * (yyvsp[(3) - (3)].d); ;} break; case 285: /* Line 1464 of yacc.c */ #line 3751 "Gmsh.y" { if(!(yyvsp[(3) - (3)].d)) yymsg(0, "Division by zero in '%g / %g'", (yyvsp[(1) - (3)].d), (yyvsp[(3) - (3)].d)); else (yyval.d) = (yyvsp[(1) - (3)].d) / (yyvsp[(3) - (3)].d); ;} break; case 286: /* Line 1464 of yacc.c */ #line 3757 "Gmsh.y" { (yyval.d) = (int)(yyvsp[(1) - (3)].d) % (int)(yyvsp[(3) - (3)].d); ;} break; case 287: /* Line 1464 of yacc.c */ #line 3758 "Gmsh.y" { (yyval.d) = pow((yyvsp[(1) - (3)].d), (yyvsp[(3) - (3)].d)); ;} break; case 288: /* Line 1464 of yacc.c */ #line 3759 "Gmsh.y" { (yyval.d) = (yyvsp[(1) - (3)].d) < (yyvsp[(3) - (3)].d); ;} break; case 289: /* Line 1464 of yacc.c */ #line 3760 "Gmsh.y" { (yyval.d) = (yyvsp[(1) - (3)].d) > (yyvsp[(3) - (3)].d); ;} break; case 290: /* Line 1464 of yacc.c */ #line 3761 "Gmsh.y" { (yyval.d) = (yyvsp[(1) - (3)].d) <= (yyvsp[(3) - (3)].d); ;} break; case 291: /* Line 1464 of yacc.c */ #line 3762 "Gmsh.y" { (yyval.d) = (yyvsp[(1) - (3)].d) >= (yyvsp[(3) - (3)].d); ;} break; case 292: /* Line 1464 of yacc.c */ #line 3763 "Gmsh.y" { (yyval.d) = (yyvsp[(1) - (3)].d) == (yyvsp[(3) - (3)].d); ;} break; case 293: /* Line 1464 of yacc.c */ #line 3764 "Gmsh.y" { (yyval.d) = (yyvsp[(1) - (3)].d) != (yyvsp[(3) - (3)].d); ;} break; case 294: /* Line 1464 of yacc.c */ #line 3765 "Gmsh.y" { (yyval.d) = (yyvsp[(1) - (3)].d) && (yyvsp[(3) - (3)].d); ;} break; case 295: /* Line 1464 of yacc.c */ #line 3766 "Gmsh.y" { (yyval.d) = (yyvsp[(1) - (3)].d) || (yyvsp[(3) - (3)].d); ;} break; case 296: /* Line 1464 of yacc.c */ #line 3767 "Gmsh.y" { (yyval.d) = (yyvsp[(1) - (5)].d) ? (yyvsp[(3) - (5)].d) : (yyvsp[(5) - (5)].d); ;} break; case 297: /* Line 1464 of yacc.c */ #line 3768 "Gmsh.y" { (yyval.d) = exp((yyvsp[(3) - (4)].d)); ;} break; case 298: /* Line 1464 of yacc.c */ #line 3769 "Gmsh.y" { (yyval.d) = log((yyvsp[(3) - (4)].d)); ;} break; case 299: /* Line 1464 of yacc.c */ #line 3770 "Gmsh.y" { (yyval.d) = log10((yyvsp[(3) - (4)].d)); ;} break; case 300: /* Line 1464 of yacc.c */ #line 3771 "Gmsh.y" { (yyval.d) = sqrt((yyvsp[(3) - (4)].d)); ;} break; case 301: /* Line 1464 of yacc.c */ #line 3772 "Gmsh.y" { (yyval.d) = sin((yyvsp[(3) - (4)].d)); ;} break; case 302: /* Line 1464 of yacc.c */ #line 3773 "Gmsh.y" { (yyval.d) = asin((yyvsp[(3) - (4)].d)); ;} break; case 303: /* Line 1464 of yacc.c */ #line 3774 "Gmsh.y" { (yyval.d) = cos((yyvsp[(3) - (4)].d)); ;} break; case 304: /* Line 1464 of yacc.c */ #line 3775 "Gmsh.y" { (yyval.d) = acos((yyvsp[(3) - (4)].d)); ;} break; case 305: /* Line 1464 of yacc.c */ #line 3776 "Gmsh.y" { (yyval.d) = tan((yyvsp[(3) - (4)].d)); ;} break; case 306: /* Line 1464 of yacc.c */ #line 3777 "Gmsh.y" { (yyval.d) = atan((yyvsp[(3) - (4)].d)); ;} break; case 307: /* Line 1464 of yacc.c */ #line 3778 "Gmsh.y" { (yyval.d) = atan2((yyvsp[(3) - (6)].d), (yyvsp[(5) - (6)].d));;} break; case 308: /* Line 1464 of yacc.c */ #line 3779 "Gmsh.y" { (yyval.d) = sinh((yyvsp[(3) - (4)].d)); ;} break; case 309: /* Line 1464 of yacc.c */ #line 3780 "Gmsh.y" { (yyval.d) = cosh((yyvsp[(3) - (4)].d)); ;} break; case 310: /* Line 1464 of yacc.c */ #line 3781 "Gmsh.y" { (yyval.d) = tanh((yyvsp[(3) - (4)].d)); ;} break; case 311: /* Line 1464 of yacc.c */ #line 3782 "Gmsh.y" { (yyval.d) = fabs((yyvsp[(3) - (4)].d)); ;} break; case 312: /* Line 1464 of yacc.c */ #line 3783 "Gmsh.y" { (yyval.d) = floor((yyvsp[(3) - (4)].d)); ;} break; case 313: /* Line 1464 of yacc.c */ #line 3784 "Gmsh.y" { (yyval.d) = ceil((yyvsp[(3) - (4)].d)); ;} break; case 314: /* Line 1464 of yacc.c */ #line 3785 "Gmsh.y" { (yyval.d) = fmod((yyvsp[(3) - (6)].d), (yyvsp[(5) - (6)].d)); ;} break; case 315: /* Line 1464 of yacc.c */ #line 3786 "Gmsh.y" { (yyval.d) = fmod((yyvsp[(3) - (6)].d), (yyvsp[(5) - (6)].d)); ;} break; case 316: /* Line 1464 of yacc.c */ #line 3787 "Gmsh.y" { (yyval.d) = sqrt((yyvsp[(3) - (6)].d) * (yyvsp[(3) - (6)].d) + (yyvsp[(5) - (6)].d) * (yyvsp[(5) - (6)].d)); ;} break; case 317: /* Line 1464 of yacc.c */ #line 3788 "Gmsh.y" { (yyval.d) = (yyvsp[(3) - (4)].d) * (double)rand() / (double)RAND_MAX; ;} break; case 318: /* Line 1464 of yacc.c */ #line 3790 "Gmsh.y" { (yyval.d) = exp((yyvsp[(3) - (4)].d)); ;} break; case 319: /* Line 1464 of yacc.c */ #line 3791 "Gmsh.y" { (yyval.d) = log((yyvsp[(3) - (4)].d)); ;} break; case 320: /* Line 1464 of yacc.c */ #line 3792 "Gmsh.y" { (yyval.d) = log10((yyvsp[(3) - (4)].d)); ;} break; case 321: /* Line 1464 of yacc.c */ #line 3793 "Gmsh.y" { (yyval.d) = sqrt((yyvsp[(3) - (4)].d)); ;} break; case 322: /* Line 1464 of yacc.c */ #line 3794 "Gmsh.y" { (yyval.d) = sin((yyvsp[(3) - (4)].d)); ;} break; case 323: /* Line 1464 of yacc.c */ #line 3795 "Gmsh.y" { (yyval.d) = asin((yyvsp[(3) - (4)].d)); ;} break; case 324: /* Line 1464 of yacc.c */ #line 3796 "Gmsh.y" { (yyval.d) = cos((yyvsp[(3) - (4)].d)); ;} break; case 325: /* Line 1464 of yacc.c */ #line 3797 "Gmsh.y" { (yyval.d) = acos((yyvsp[(3) - (4)].d)); ;} break; case 326: /* Line 1464 of yacc.c */ #line 3798 "Gmsh.y" { (yyval.d) = tan((yyvsp[(3) - (4)].d)); ;} break; case 327: /* Line 1464 of yacc.c */ #line 3799 "Gmsh.y" { (yyval.d) = atan((yyvsp[(3) - (4)].d)); ;} break; case 328: /* Line 1464 of yacc.c */ #line 3800 "Gmsh.y" { (yyval.d) = atan2((yyvsp[(3) - (6)].d), (yyvsp[(5) - (6)].d));;} break; case 329: /* Line 1464 of yacc.c */ #line 3801 "Gmsh.y" { (yyval.d) = sinh((yyvsp[(3) - (4)].d)); ;} break; case 330: /* Line 1464 of yacc.c */ #line 3802 "Gmsh.y" { (yyval.d) = cosh((yyvsp[(3) - (4)].d)); ;} break; case 331: /* Line 1464 of yacc.c */ #line 3803 "Gmsh.y" { (yyval.d) = tanh((yyvsp[(3) - (4)].d)); ;} break; case 332: /* Line 1464 of yacc.c */ #line 3804 "Gmsh.y" { (yyval.d) = fabs((yyvsp[(3) - (4)].d)); ;} break; case 333: /* Line 1464 of yacc.c */ #line 3805 "Gmsh.y" { (yyval.d) = floor((yyvsp[(3) - (4)].d)); ;} break; case 334: /* Line 1464 of yacc.c */ #line 3806 "Gmsh.y" { (yyval.d) = ceil((yyvsp[(3) - (4)].d)); ;} break; case 335: /* Line 1464 of yacc.c */ #line 3807 "Gmsh.y" { (yyval.d) = fmod((yyvsp[(3) - (6)].d), (yyvsp[(5) - (6)].d)); ;} break; case 336: /* Line 1464 of yacc.c */ #line 3808 "Gmsh.y" { (yyval.d) = fmod((yyvsp[(3) - (6)].d), (yyvsp[(5) - (6)].d)); ;} break; case 337: /* Line 1464 of yacc.c */ #line 3809 "Gmsh.y" { (yyval.d) = sqrt((yyvsp[(3) - (6)].d) * (yyvsp[(3) - (6)].d) + (yyvsp[(5) - (6)].d) * (yyvsp[(5) - (6)].d)); ;} break; case 338: /* Line 1464 of yacc.c */ #line 3810 "Gmsh.y" { (yyval.d) = (yyvsp[(3) - (4)].d) * (double)rand() / (double)RAND_MAX; ;} break; case 339: /* Line 1464 of yacc.c */ #line 3819 "Gmsh.y" { (yyval.d) = (yyvsp[(1) - (1)].d); ;} break; case 340: /* Line 1464 of yacc.c */ #line 3820 "Gmsh.y" { (yyval.d) = 3.141592653589793; ;} break; case 341: /* Line 1464 of yacc.c */ #line 3821 "Gmsh.y" { (yyval.d) = Msg::GetCommRank(); ;} break; case 342: /* Line 1464 of yacc.c */ #line 3822 "Gmsh.y" { (yyval.d) = Msg::GetCommSize(); ;} break; case 343: /* Line 1464 of yacc.c */ #line 3823 "Gmsh.y" { (yyval.d) = GetGmshMajorVersion(); ;} break; case 344: /* Line 1464 of yacc.c */ #line 3824 "Gmsh.y" { (yyval.d) = GetGmshMinorVersion(); ;} break; case 345: /* Line 1464 of yacc.c */ #line 3825 "Gmsh.y" { (yyval.d) = GetGmshPatchVersion(); ;} break; case 346: /* Line 1464 of yacc.c */ #line 3830 "Gmsh.y" { if(!gmsh_yysymbols.count((yyvsp[(1) - (1)].c))){ yymsg(0, "Unknown variable '%s'", (yyvsp[(1) - (1)].c)); (yyval.d) = 0.; } else{ if(gmsh_yysymbols[(yyvsp[(1) - (1)].c)].empty()){ yymsg(0, "Uninitialized variable '%s'", (yyvsp[(1) - (1)].c)); (yyval.d) = 0.; } else (yyval.d) = gmsh_yysymbols[(yyvsp[(1) - (1)].c)][0]; } Free((yyvsp[(1) - (1)].c)); ;} break; case 347: /* Line 1464 of yacc.c */ #line 3849 "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{ if(gmsh_yysymbols[tmpstring].empty()){ yymsg(0, "Uninitialized variable '%s'", tmpstring); (yyval.d) = 0.; } else (yyval.d) = gmsh_yysymbols[tmpstring][0]; } Free((yyvsp[(1) - (5)].c)); ;} break; case 348: /* Line 1464 of yacc.c */ #line 3867 "Gmsh.y" { int index = (int)(yyvsp[(3) - (4)].d); if(!gmsh_yysymbols.count((yyvsp[(1) - (4)].c))){ yymsg(0, "Unknown variable '%s'", (yyvsp[(1) - (4)].c)); (yyval.d) = 0.; } else if((int)gmsh_yysymbols[(yyvsp[(1) - (4)].c)].size() < index + 1){ yymsg(0, "Uninitialized variable '%s[%d]'", (yyvsp[(1) - (4)].c), index); (yyval.d) = 0.; } else (yyval.d) = gmsh_yysymbols[(yyvsp[(1) - (4)].c)][index]; Free((yyvsp[(1) - (4)].c)); ;} break; case 349: /* Line 1464 of yacc.c */ #line 3882 "Gmsh.y" { if(!gmsh_yysymbols.count((yyvsp[(2) - (4)].c))){ yymsg(0, "Unknown variable '%s'", (yyvsp[(2) - (4)].c)); (yyval.d) = 0.; } else (yyval.d) = gmsh_yysymbols[(yyvsp[(2) - (4)].c)].size(); Free((yyvsp[(2) - (4)].c)); ;} break; case 350: /* Line 1464 of yacc.c */ #line 3892 "Gmsh.y" { if(!gmsh_yysymbols.count((yyvsp[(1) - (2)].c))){ yymsg(0, "Unknown variable '%s'", (yyvsp[(1) - (2)].c)); (yyval.d) = 0.; } else{ if(gmsh_yysymbols[(yyvsp[(1) - (2)].c)].empty()){ yymsg(0, "Uninitialized variable '%s'", (yyvsp[(1) - (2)].c)); (yyval.d) = 0.; } else (yyval.d) = (gmsh_yysymbols[(yyvsp[(1) - (2)].c)][0] += (yyvsp[(2) - (2)].i)); } Free((yyvsp[(1) - (2)].c)); ;} break; case 351: /* Line 1464 of yacc.c */ #line 3908 "Gmsh.y" { int index = (int)(yyvsp[(3) - (5)].d); if(!gmsh_yysymbols.count((yyvsp[(1) - (5)].c))){ yymsg(0, "Unknown variable '%s'", (yyvsp[(1) - (5)].c)); (yyval.d) = 0.; } else if((int)gmsh_yysymbols[(yyvsp[(1) - (5)].c)].size() < index + 1){ yymsg(0, "Uninitialized variable '%s[%d]'", (yyvsp[(1) - (5)].c), index); (yyval.d) = 0.; } else (yyval.d) = (gmsh_yysymbols[(yyvsp[(1) - (5)].c)][index] += (yyvsp[(5) - (5)].i)); Free((yyvsp[(1) - (5)].c)); ;} break; case 352: /* Line 1464 of yacc.c */ #line 3926 "Gmsh.y" { NumberOption(GMSH_GET, (yyvsp[(1) - (3)].c), 0, (yyvsp[(3) - (3)].c), (yyval.d)); Free((yyvsp[(1) - (3)].c)); Free((yyvsp[(3) - (3)].c)); ;} break; case 353: /* Line 1464 of yacc.c */ #line 3931 "Gmsh.y" { NumberOption(GMSH_GET, (yyvsp[(1) - (6)].c), (int)(yyvsp[(3) - (6)].d), (yyvsp[(6) - (6)].c), (yyval.d)); Free((yyvsp[(1) - (6)].c)); Free((yyvsp[(6) - (6)].c)); ;} break; case 354: /* Line 1464 of yacc.c */ #line 3936 "Gmsh.y" { double d = 0.; if(NumberOption(GMSH_GET, (yyvsp[(1) - (4)].c), 0, (yyvsp[(3) - (4)].c), d)){ d += (yyvsp[(4) - (4)].i); NumberOption(GMSH_SET|GMSH_GUI, (yyvsp[(1) - (4)].c), 0, (yyvsp[(3) - (4)].c), d); (yyval.d) = d; } Free((yyvsp[(1) - (4)].c)); Free((yyvsp[(3) - (4)].c)); ;} break; case 355: /* Line 1464 of yacc.c */ #line 3946 "Gmsh.y" { double d = 0.; if(NumberOption(GMSH_GET, (yyvsp[(1) - (7)].c), (int)(yyvsp[(3) - (7)].d), (yyvsp[(6) - (7)].c), d)){ d += (yyvsp[(7) - (7)].i); NumberOption(GMSH_SET|GMSH_GUI, (yyvsp[(1) - (7)].c), (int)(yyvsp[(3) - (7)].d), (yyvsp[(6) - (7)].c), d); (yyval.d) = d; } Free((yyvsp[(1) - (7)].c)); Free((yyvsp[(6) - (7)].c)); ;} break; case 356: /* Line 1464 of yacc.c */ #line 3956 "Gmsh.y" { (yyval.d) = Msg::GetValue((yyvsp[(3) - (6)].c), (yyvsp[(5) - (6)].d)); Free((yyvsp[(3) - (6)].c)); ;} break; case 357: /* Line 1464 of yacc.c */ #line 3964 "Gmsh.y" { memcpy((yyval.v), (yyvsp[(1) - (1)].v), 5*sizeof(double)); ;} break; case 358: /* Line 1464 of yacc.c */ #line 3968 "Gmsh.y" { for(int i = 0; i < 5; i++) (yyval.v)[i] = -(yyvsp[(2) - (2)].v)[i]; ;} break; case 359: /* Line 1464 of yacc.c */ #line 3972 "Gmsh.y" { for(int i = 0; i < 5; i++) (yyval.v)[i] = (yyvsp[(2) - (2)].v)[i]; ;} break; case 360: /* Line 1464 of yacc.c */ #line 3976 "Gmsh.y" { for(int i = 0; i < 5; i++) (yyval.v)[i] = (yyvsp[(1) - (3)].v)[i] - (yyvsp[(3) - (3)].v)[i]; ;} break; case 361: /* Line 1464 of yacc.c */ #line 3980 "Gmsh.y" { for(int i = 0; i < 5; i++) (yyval.v)[i] = (yyvsp[(1) - (3)].v)[i] + (yyvsp[(3) - (3)].v)[i]; ;} break; case 362: /* Line 1464 of yacc.c */ #line 3987 "Gmsh.y" { (yyval.v)[0] = (yyvsp[(2) - (11)].d); (yyval.v)[1] = (yyvsp[(4) - (11)].d); (yyval.v)[2] = (yyvsp[(6) - (11)].d); (yyval.v)[3] = (yyvsp[(8) - (11)].d); (yyval.v)[4] = (yyvsp[(10) - (11)].d); ;} break; case 363: /* Line 1464 of yacc.c */ #line 3991 "Gmsh.y" { (yyval.v)[0] = (yyvsp[(2) - (9)].d); (yyval.v)[1] = (yyvsp[(4) - (9)].d); (yyval.v)[2] = (yyvsp[(6) - (9)].d); (yyval.v)[3] = (yyvsp[(8) - (9)].d); (yyval.v)[4] = 1.0; ;} break; case 364: /* Line 1464 of yacc.c */ #line 3995 "Gmsh.y" { (yyval.v)[0] = (yyvsp[(2) - (7)].d); (yyval.v)[1] = (yyvsp[(4) - (7)].d); (yyval.v)[2] = (yyvsp[(6) - (7)].d); (yyval.v)[3] = 0.0; (yyval.v)[4] = 1.0; ;} break; case 365: /* Line 1464 of yacc.c */ #line 3999 "Gmsh.y" { (yyval.v)[0] = (yyvsp[(2) - (7)].d); (yyval.v)[1] = (yyvsp[(4) - (7)].d); (yyval.v)[2] = (yyvsp[(6) - (7)].d); (yyval.v)[3] = 0.0; (yyval.v)[4] = 1.0; ;} break; case 366: /* Line 1464 of yacc.c */ #line 4006 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(List_T*)); List_Add((yyval.l), &((yyvsp[(1) - (1)].l))); ;} break; case 367: /* Line 1464 of yacc.c */ #line 4011 "Gmsh.y" { List_Add((yyval.l), &((yyvsp[(3) - (3)].l))); ;} break; case 368: /* Line 1464 of yacc.c */ #line 4018 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(double)); List_Add((yyval.l), &((yyvsp[(1) - (1)].d))); ;} break; case 369: /* Line 1464 of yacc.c */ #line 4023 "Gmsh.y" { (yyval.l) = (yyvsp[(1) - (1)].l); ;} break; case 370: /* Line 1464 of yacc.c */ #line 4027 "Gmsh.y" { // creates an empty list (yyval.l) = List_Create(2, 1, sizeof(double)); ;} break; case 371: /* Line 1464 of yacc.c */ #line 4032 "Gmsh.y" { (yyval.l) = (yyvsp[(2) - (3)].l); ;} break; case 372: /* Line 1464 of yacc.c */ #line 4036 "Gmsh.y" { (yyval.l) = (yyvsp[(3) - (4)].l); for(int i = 0; i < List_Nbr((yyval.l)); i++){ double *pd = (double*)List_Pointer((yyval.l), i); (*pd) = - (*pd); } ;} break; case 373: /* Line 1464 of yacc.c */ #line 4044 "Gmsh.y" { (yyval.l) = (yyvsp[(4) - (5)].l); for(int i = 0; i < List_Nbr((yyval.l)); i++){ double *pd = (double*)List_Pointer((yyval.l), i); (*pd) *= (yyvsp[(1) - (5)].d); } ;} break; case 374: /* Line 1464 of yacc.c */ #line 4055 "Gmsh.y" { (yyval.l) = (yyvsp[(1) - (1)].l); ;} break; case 375: /* Line 1464 of yacc.c */ #line 4059 "Gmsh.y" { if(!strcmp((yyvsp[(1) - (1)].c), "*") || !strcmp((yyvsp[(1) - (1)].c), "all")) (yyval.l) = 0; else{ yyerror("Unknown special string for list replacement"); (yyval.l) = List_Create(2, 1, sizeof(double)); } ;} break; case 376: /* Line 1464 of yacc.c */ #line 4071 "Gmsh.y" { (yyval.l) = (yyvsp[(2) - (2)].l); for(int i = 0; i < List_Nbr((yyval.l)); i++){ double *pd = (double*)List_Pointer((yyval.l), i); (*pd) = - (*pd); } ;} break; case 377: /* Line 1464 of yacc.c */ #line 4079 "Gmsh.y" { (yyval.l) = (yyvsp[(3) - (3)].l); for(int i = 0; i < List_Nbr((yyval.l)); i++){ double *pd = (double*)List_Pointer((yyval.l), i); (*pd) *= (yyvsp[(1) - (3)].d); } ;} break; case 378: /* Line 1464 of yacc.c */ #line 4087 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(double)); for(double d = (yyvsp[(1) - (3)].d); ((yyvsp[(1) - (3)].d) < (yyvsp[(3) - (3)].d)) ? (d <= (yyvsp[(3) - (3)].d)) : (d >= (yyvsp[(3) - (3)].d)); ((yyvsp[(1) - (3)].d) < (yyvsp[(3) - (3)].d)) ? (d += 1.) : (d -= 1.)) List_Add((yyval.l), &d); ;} break; case 379: /* Line 1464 of yacc.c */ #line 4094 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(double)); if(!(yyvsp[(5) - (5)].d) || ((yyvsp[(1) - (5)].d) < (yyvsp[(3) - (5)].d) && (yyvsp[(5) - (5)].d) < 0) || ((yyvsp[(1) - (5)].d) > (yyvsp[(3) - (5)].d) && (yyvsp[(5) - (5)].d) > 0)){ yymsg(0, "Wrong increment in '%g:%g:%g'", (yyvsp[(1) - (5)].d), (yyvsp[(3) - (5)].d), (yyvsp[(5) - (5)].d)); List_Add((yyval.l), &((yyvsp[(1) - (5)].d))); } else for(double d = (yyvsp[(1) - (5)].d); ((yyvsp[(5) - (5)].d) > 0) ? (d <= (yyvsp[(3) - (5)].d)) : (d >= (yyvsp[(3) - (5)].d)); d += (yyvsp[(5) - (5)].d)) List_Add((yyval.l), &d); ;} break; case 380: /* Line 1464 of yacc.c */ #line 4105 "Gmsh.y" { // Returns the coordinates of a point and fills a list with it. // This allows to ensure e.g. that relative point positions are // always conserved Vertex *v = FindPoint((int)(yyvsp[(3) - (4)].d)); (yyval.l) = List_Create(3, 1, sizeof(double)); if(!v) { yymsg(0, "Unknown point '%d'", (int)(yyvsp[(3) - (4)].d)); double d = 0.0; List_Add((yyval.l), &d); List_Add((yyval.l), &d); List_Add((yyval.l), &d); } else{ List_Add((yyval.l), &v->Pos.X); List_Add((yyval.l), &v->Pos.Y); List_Add((yyval.l), &v->Pos.Z); } ;} break; case 381: /* Line 1464 of yacc.c */ #line 4125 "Gmsh.y" { (yyval.l) = GetAllEntityNumbers(0); ;} break; case 382: /* Line 1464 of yacc.c */ #line 4129 "Gmsh.y" { (yyval.l) = GetAllEntityNumbers(1); ;} break; case 383: /* Line 1464 of yacc.c */ #line 4133 "Gmsh.y" { (yyval.l) = GetAllEntityNumbers(2); ;} break; case 384: /* Line 1464 of yacc.c */ #line 4137 "Gmsh.y" { (yyval.l) = GetAllEntityNumbers(3); ;} break; case 385: /* Line 1464 of yacc.c */ #line 4141 "Gmsh.y" { (yyval.l) = List_Create(List_Nbr((yyvsp[(1) - (1)].l)), 1, sizeof(double)); for(int i = 0; i < List_Nbr((yyvsp[(1) - (1)].l)); i++){ Shape *s = (Shape*) List_Pointer((yyvsp[(1) - (1)].l), i); double d = s->Num; List_Add((yyval.l), &d); } List_Delete((yyvsp[(1) - (1)].l)); ;} break; case 386: /* Line 1464 of yacc.c */ #line 4151 "Gmsh.y" { (yyval.l) = List_Create(List_Nbr((yyvsp[(1) - (1)].l)), 1, sizeof(double)); for(int i = 0; i < List_Nbr((yyvsp[(1) - (1)].l)); i++){ Shape *s = (Shape*) List_Pointer((yyvsp[(1) - (1)].l), i); double d = s->Num; List_Add((yyval.l), &d); } List_Delete((yyvsp[(1) - (1)].l)); ;} break; case 387: /* Line 1464 of yacc.c */ #line 4161 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(double)); if(!gmsh_yysymbols.count((yyvsp[(1) - (3)].c))) yymsg(0, "Unknown variable '%s'", (yyvsp[(1) - (3)].c)); else for(unsigned int i = 0; i < gmsh_yysymbols[(yyvsp[(1) - (3)].c)].size(); i++) List_Add((yyval.l), &gmsh_yysymbols[(yyvsp[(1) - (3)].c)][i]); Free((yyvsp[(1) - (3)].c)); ;} break; case 388: /* Line 1464 of yacc.c */ #line 4171 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(double)); if(!gmsh_yysymbols.count((yyvsp[(1) - (6)].c))) yymsg(0, "Unknown variable '%s'", (yyvsp[(1) - (6)].c)); else{ for(int i = 0; i < List_Nbr((yyvsp[(4) - (6)].l)); i++){ int index = (int)(*(double*)List_Pointer_Fast((yyvsp[(4) - (6)].l), i)); if((int)gmsh_yysymbols[(yyvsp[(1) - (6)].c)].size() < index + 1) yymsg(0, "Uninitialized variable '%s[%d]'", (yyvsp[(1) - (6)].c), index); else List_Add((yyval.l), &gmsh_yysymbols[(yyvsp[(1) - (6)].c)][index]); } } Free((yyvsp[(1) - (6)].c)); List_Delete((yyvsp[(4) - (6)].l)); ;} break; case 389: /* Line 1464 of yacc.c */ #line 4191 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(double)); List_Add((yyval.l), &((yyvsp[(1) - (1)].d))); ;} break; case 390: /* Line 1464 of yacc.c */ #line 4196 "Gmsh.y" { (yyval.l) = (yyvsp[(1) - (1)].l); ;} break; case 391: /* Line 1464 of yacc.c */ #line 4200 "Gmsh.y" { List_Add((yyval.l), &((yyvsp[(3) - (3)].d))); ;} break; case 392: /* Line 1464 of yacc.c */ #line 4204 "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 393: /* Line 1464 of yacc.c */ #line 4216 "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 394: /* Line 1464 of yacc.c */ #line 4220 "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 395: /* Line 1464 of yacc.c */ #line 4232 "Gmsh.y" { int flag; (yyval.u) = GetColorForString(ColorString, -1, (yyvsp[(1) - (1)].c), &flag); if(flag) yymsg(0, "Unknown color '%s'", (yyvsp[(1) - (1)].c)); Free((yyvsp[(1) - (1)].c)); ;} break; case 396: /* Line 1464 of yacc.c */ #line 4239 "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 397: /* Line 1464 of yacc.c */ #line 4249 "Gmsh.y" { (yyval.l) = (yyvsp[(2) - (3)].l); ;} break; case 398: /* Line 1464 of yacc.c */ #line 4253 "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 399: /* Line 1464 of yacc.c */ #line 4268 "Gmsh.y" { (yyval.l) = List_Create(256, 10, sizeof(unsigned int)); List_Add((yyval.l), &((yyvsp[(1) - (1)].u))); ;} break; case 400: /* Line 1464 of yacc.c */ #line 4273 "Gmsh.y" { List_Add((yyval.l), &((yyvsp[(3) - (3)].u))); ;} break; case 401: /* Line 1464 of yacc.c */ #line 4280 "Gmsh.y" { (yyval.c) = (yyvsp[(1) - (1)].c); ;} break; case 402: /* Line 1464 of yacc.c */ #line 4284 "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 403: /* Line 1464 of yacc.c */ #line 4297 "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 404: /* Line 1464 of yacc.c */ #line 4305 "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 405: /* Line 1464 of yacc.c */ #line 4316 "Gmsh.y" { (yyval.c) = (yyvsp[(1) - (1)].c); ;} break; case 406: /* Line 1464 of yacc.c */ #line 4320 "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 407: /* Line 1464 of yacc.c */ #line 4328 "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 408: /* Line 1464 of yacc.c */ #line 4336 "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 409: /* Line 1464 of yacc.c */ #line 4344 "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 410: /* Line 1464 of yacc.c */ #line 4352 "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 411: /* Line 1464 of yacc.c */ #line 4366 "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 412: /* Line 1464 of yacc.c */ #line 4380 "Gmsh.y" { (yyval.c) = (yyvsp[(3) - (4)].c); ;} break; case 413: /* Line 1464 of yacc.c */ #line 4384 "Gmsh.y" { char tmpstring[1024]; int i = PrintListOfDouble((yyvsp[(3) - (6)].c), (yyvsp[(5) - (6)].l), tmpstring); if(i < 0){ yymsg(0, "Too few arguments in Sprintf"); (yyval.c) = (yyvsp[(3) - (6)].c); } else if(i > 0){ yymsg(0, "%d extra argument%s in Sprintf", i, (i > 1) ? "s" : ""); (yyval.c) = (yyvsp[(3) - (6)].c); } else{ (yyval.c) = (char*)Malloc((strlen(tmpstring) + 1) * sizeof(char)); strcpy((yyval.c), tmpstring); Free((yyvsp[(3) - (6)].c)); } List_Delete((yyvsp[(5) - (6)].l)); ;} break; /* Line 1464 of yacc.c */ #line 9965 "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 4404 "Gmsh.y" int PrintListOfDouble(char *format, List_T *list, char *buffer) { int j, k; char tmp1[256], tmp2[256]; j = 0; buffer[j] = '\0'; while(j < (int)strlen(format) && format[j] != '%') j++; strncpy(buffer, format, j); buffer[j]='\0'; for(int i = 0; i < List_Nbr(list); i++){ k = j; j++; if(j < (int)strlen(format)){ if(format[j] == '%'){ strcat(buffer, "%"); j++; } while(j < (int)strlen(format) && format[j] != '%') j++; if(k != j){ strncpy(tmp1, &(format[k]), j-k); tmp1[j-k] = '\0'; sprintf(tmp2, tmp1, *(double*)List_Pointer(list, i)); strcat(buffer, tmp2); } } else return List_Nbr(list)-i; } if(j != (int)strlen(format)) return -1; return 0; } fullMatrix<double> ListOfListOfDouble2Matrix(List_T *list) { int M = List_Nbr(list); int N = 0; for(int i = 0; i < M; i++){ List_T *line = *(List_T**)List_Pointer_Fast(list, i); N = std::max(N, List_Nbr(line)); } fullMatrix<double> mat(M, N); for(int i = 0; i < M; i++){ List_T *line = *(List_T**)List_Pointer_Fast(list, i); for(int j = 0; j < List_Nbr(line); j++){ double val; List_Read(line, j, &val); mat(i, j) = val; } } for(int i = 0; i < List_Nbr(list); i++) List_Delete(*(List_T**)List_Pointer(list, i)); List_Delete(list); return mat; } void yyerror(const char *s) { Msg::Error("'%s', line %d : %s (%s)", gmsh_yyname.c_str(), gmsh_yylineno - 1, s, gmsh_yytext); gmsh_yyerrorstate++; } void yymsg(int level, const char *fmt, ...) { va_list args; char tmp[1024]; va_start(args, fmt); vsprintf(tmp, fmt, args); va_end(args); if(level == 0){ Msg::Error("'%s', line %d : %s", gmsh_yyname.c_str(), gmsh_yylineno - 1, tmp); gmsh_yyerrorstate++; } else Msg::Warning("'%s', line %d : %s", gmsh_yyname.c_str(), gmsh_yylineno - 1, tmp); }