/* A Bison parser, made by GNU Bison 2.4.1. */ /* Skeleton implementation for Bison's Yacc-like parsers in C Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 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.1" /* 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]; 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 170 "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, tPoint = 302, tCircle = 303, tEllipse = 304, tLine = 305, tSphere = 306, tPolarSphere = 307, tSurface = 308, tSpline = 309, tVolume = 310, tCharacteristic = 311, tLength = 312, tParametric = 313, tElliptic = 314, tRefineMesh = 315, tPlane = 316, tRuled = 317, tTransfinite = 318, tComplex = 319, tPhysical = 320, tCompound = 321, tPeriodic = 322, tUsing = 323, tPlugin = 324, tDegenerated = 325, tRotate = 326, tTranslate = 327, tSymmetry = 328, tDilate = 329, tExtrude = 330, tLevelset = 331, tPoints = 332, tLoop = 333, tRecombine = 334, tSmoother = 335, tSplit = 336, tDelete = 337, tCoherence = 338, tIntersect = 339, tLayers = 340, tHole = 341, tAlias = 342, tAliasWithOptions = 343, tQuadTriDbl = 344, tQuadTriSngl = 345, tRecombLaterals = 346, tTransfQuadTri = 347, tText2D = 348, tText3D = 349, tInterpolationScheme = 350, tTime = 351, tCombine = 352, tBSpline = 353, tBezier = 354, tNurbs = 355, tNurbsOrder = 356, tNurbsKnots = 357, tColor = 358, tColorTable = 359, tFor = 360, tIn = 361, tEndFor = 362, tIf = 363, tEndIf = 364, tExit = 365, tField = 366, tReturn = 367, tCall = 368, tFunction = 369, tShow = 370, tHide = 371, tGetValue = 372, tGetEnv = 373, tGetString = 374, tGMSH_MAJOR_VERSION = 375, tGMSH_MINOR_VERSION = 376, tGMSH_PATCH_VERSION = 377, tHomRank = 378, tHomGen = 379, tHomCut = 380, tHomSeq = 381, tAFFECTDIVIDE = 382, tAFFECTTIMES = 383, tAFFECTMINUS = 384, tAFFECTPLUS = 385, tOR = 386, tAND = 387, tNOTEQUAL = 388, tEQUAL = 389, tGREATEROREQUAL = 390, tLESSOREQUAL = 391, UNARYPREC = 392, tMINUSMINUS = 393, tPLUSPLUS = 394 }; #endif #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED typedef union YYSTYPE { /* Line 214 of yacc.c */ #line 89 "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 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 7191 /* YYNTOKENS -- Number of terminals. */ #define YYNTOKENS 160 /* YYNNTS -- Number of nonterminals. */ #define YYNNTS 81 /* YYNRULES -- Number of rules. */ #define YYNRULES 400 /* YYNRULES -- Number of states. */ #define YYNSTATES 1431 /* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */ #define YYUNDEFTOK 2 #define YYMAXUTOK 394 #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, 145, 2, 155, 2, 144, 2, 2, 150, 151, 142, 140, 156, 141, 154, 143, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 136, 2, 137, 131, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 152, 2, 153, 149, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 157, 2, 158, 159, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 132, 133, 134, 135, 138, 139, 146, 147, 148 }; #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, 240, 248, 258, 265, 272, 276, 283, 288, 295, 305, 312, 322, 328, 337, 346, 358, 365, 375, 381, 389, 399, 409, 421, 431, 441, 443, 445, 446, 452, 453, 456, 464, 465, 475, 482, 490, 495, 503, 512, 521, 529, 537, 549, 558, 567, 568, 578, 587, 597, 601, 606, 617, 625, 633, 642, 651, 664, 665, 675, 684, 692, 701, 702, 712, 718, 730, 736, 746, 751, 761, 771, 773, 775, 776, 779, 786, 793, 800, 807, 816, 827, 842, 859, 872, 881, 890, 897, 912, 917, 924, 931, 935, 940, 946, 950, 954, 959, 964, 968, 976, 984, 988, 996, 1000, 1003, 1006, 1009, 1025, 1028, 1031, 1034, 1037, 1044, 1053, 1062, 1073, 1075, 1078, 1080, 1084, 1089, 1091, 1097, 1109, 1123, 1124, 1132, 1133, 1147, 1148, 1164, 1165, 1172, 1181, 1190, 1199, 1212, 1225, 1238, 1253, 1268, 1283, 1284, 1297, 1298, 1311, 1312, 1325, 1326, 1343, 1344, 1361, 1362, 1379, 1380, 1399, 1400, 1419, 1420, 1439, 1441, 1444, 1450, 1458, 1468, 1471, 1474, 1478, 1481, 1485, 1495, 1502, 1503, 1507, 1508, 1510, 1511, 1514, 1515, 1518, 1526, 1533, 1542, 1548, 1552, 1558, 1565, 1572, 1585, 1596, 1607, 1618, 1629, 1632, 1636, 1643, 1655, 1667, 1679, 1691, 1693, 1697, 1700, 1703, 1706, 1710, 1714, 1718, 1722, 1726, 1730, 1734, 1738, 1742, 1746, 1750, 1754, 1758, 1762, 1768, 1773, 1778, 1783, 1788, 1793, 1798, 1803, 1808, 1813, 1818, 1825, 1830, 1835, 1840, 1845, 1850, 1855, 1862, 1869, 1876, 1881, 1886, 1891, 1896, 1901, 1906, 1911, 1916, 1921, 1926, 1931, 1938, 1943, 1948, 1953, 1958, 1963, 1968, 1975, 1982, 1989, 1994, 1996, 1998, 2000, 2002, 2004, 2006, 2008, 2010, 2016, 2021, 2026, 2029, 2035, 2039, 2046, 2051, 2059, 2066, 2068, 2071, 2074, 2078, 2082, 2094, 2104, 2112, 2120, 2122, 2126, 2128, 2130, 2133, 2137, 2142, 2148, 2150, 2152, 2155, 2159, 2163, 2169, 2174, 2177, 2180, 2183, 2186, 2188, 2190, 2194, 2201, 2203, 2205, 2209, 2213, 2223, 2231, 2233, 2239, 2243, 2250, 2252, 2256, 2258, 2260, 2264, 2271, 2273, 2275, 2280, 2287, 2294, 2299, 2304, 2309 }; /* YYRHS -- A `-1'-separated list of the rules' RHS. */ static const yytype_int16 yyrhs[] = { 161, 0, -1, 162, -1, 1, 6, -1, -1, 162, 163, -1, 166, -1, 165, -1, 184, -1, 188, -1, 193, -1, 197, -1, 198, -1, 199, -1, 202, -1, 222, -1, 223, -1, 224, -1, 225, -1, 201, -1, 200, -1, 196, -1, 226, -1, 137, -1, 137, 137, -1, 35, 150, 5, 151, 6, -1, 35, 150, 5, 151, 164, 239, 6, -1, 35, 150, 5, 156, 235, 151, 6, -1, 35, 150, 5, 156, 235, 151, 164, 239, 6, -1, 4, 5, 157, 167, 158, 6, -1, 87, 4, 152, 227, 153, 6, -1, 88, 4, 152, 227, 153, 6, -1, -1, 167, 170, -1, 167, 174, -1, 167, 177, -1, 167, 179, -1, 167, 180, -1, 227, -1, 168, 156, 227, -1, 227, -1, 169, 156, 227, -1, -1, -1, 4, 171, 150, 168, 151, 172, 157, 169, 158, 6, -1, 239, -1, 173, 156, 239, -1, -1, 93, 150, 227, 156, 227, 156, 227, 151, 175, 157, 173, 158, 6, -1, 239, -1, 176, 156, 239, -1, -1, 94, 150, 227, 156, 227, 156, 227, 156, 227, 151, 178, 157, 176, 158, 6, -1, 95, 157, 231, 158, 157, 231, 158, 6, -1, 95, 157, 231, 158, 157, 231, 158, 157, 231, 158, 157, 231, 158, 6, -1, -1, 96, 181, 157, 169, 158, 6, -1, 7, -1, 130, -1, 129, -1, 128, -1, 127, -1, 148, -1, 147, -1, 4, 182, 227, 6, -1, 4, 152, 227, 153, 182, 227, 6, -1, 4, 152, 157, 235, 158, 153, 182, 232, 6, -1, 4, 152, 153, 7, 232, 6, -1, 4, 152, 153, 130, 232, 6, -1, 4, 183, 6, -1, 4, 152, 227, 153, 183, 6, -1, 4, 7, 240, 6, -1, 4, 154, 4, 7, 240, 6, -1, 4, 152, 227, 153, 154, 4, 7, 240, 6, -1, 4, 154, 4, 182, 227, 6, -1, 4, 152, 227, 153, 154, 4, 182, 227, 6, -1, 4, 154, 4, 183, 6, -1, 4, 152, 227, 153, 154, 4, 183, 6, -1, 4, 154, 103, 154, 4, 7, 236, 6, -1, 4, 152, 227, 153, 154, 103, 154, 4, 7, 236, 6, -1, 4, 154, 104, 7, 237, 6, -1, 4, 152, 227, 153, 154, 104, 7, 237, 6, -1, 4, 111, 7, 227, 6, -1, 111, 152, 227, 153, 7, 4, 6, -1, 111, 152, 227, 153, 154, 4, 7, 227, 6, -1, 111, 152, 227, 153, 154, 4, 7, 240, 6, -1, 111, 152, 227, 153, 154, 4, 7, 157, 235, 158, 6, -1, 69, 150, 4, 151, 154, 4, 7, 227, 6, -1, 69, 150, 4, 151, 154, 4, 7, 240, 6, -1, 227, -1, 240, -1, -1, 106, 51, 157, 227, 158, -1, -1, 61, 229, -1, 47, 150, 227, 151, 7, 229, 6, -1, -1, 65, 47, 189, 150, 185, 151, 7, 232, 6, -1, 56, 57, 232, 7, 227, 6, -1, 50, 150, 227, 151, 7, 232, 6, -1, 70, 50, 232, 6, -1, 54, 150, 227, 151, 7, 232, 6, -1, 48, 150, 227, 151, 7, 232, 187, 6, -1, 49, 150, 227, 151, 7, 232, 187, 6, -1, 98, 150, 227, 151, 7, 232, 6, -1, 99, 150, 227, 151, 7, 232, 6, -1, 100, 150, 227, 151, 7, 232, 102, 232, 101, 227, 6, -1, 50, 78, 150, 227, 151, 7, 232, 6, -1, 66, 50, 150, 227, 151, 7, 232, 6, -1, -1, 65, 50, 190, 150, 185, 151, 7, 232, 6, -1, 61, 53, 150, 227, 151, 7, 232, 6, -1, 62, 53, 150, 227, 151, 7, 232, 186, 6, -1, 12, 13, 6, -1, 13, 53, 227, 6, -1, 58, 53, 150, 227, 151, 7, 5, 5, 5, 6, -1, 51, 150, 227, 151, 7, 232, 6, -1, 52, 150, 227, 151, 7, 232, 6, -1, 53, 78, 150, 227, 151, 7, 232, 6, -1, 66, 53, 150, 227, 151, 7, 232, 6, -1, 66, 53, 150, 227, 151, 7, 232, 4, 157, 231, 158, 6, -1, -1, 65, 53, 191, 150, 185, 151, 7, 232, 6, -1, 64, 55, 150, 227, 151, 7, 232, 6, -1, 55, 150, 227, 151, 7, 232, 6, -1, 66, 55, 150, 227, 151, 7, 232, 6, -1, -1, 65, 55, 192, 150, 185, 151, 7, 232, 6, -1, 72, 229, 157, 194, 158, -1, 71, 157, 229, 156, 229, 156, 227, 158, 157, 194, 158, -1, 73, 229, 157, 194, 158, -1, 74, 157, 229, 156, 227, 158, 157, 194, 158, -1, 4, 157, 194, 158, -1, 84, 50, 157, 235, 158, 53, 157, 227, 158, -1, 81, 50, 150, 227, 151, 157, 235, 158, 6, -1, 195, -1, 193, -1, -1, 195, 188, -1, 195, 47, 157, 235, 158, 6, -1, 195, 50, 157, 235, 158, 6, -1, 195, 53, 157, 235, 158, 6, -1, 195, 55, 157, 235, 158, 6, -1, 76, 61, 150, 227, 151, 7, 232, 6, -1, 76, 77, 150, 227, 151, 7, 157, 231, 158, 6, -1, 76, 61, 150, 227, 151, 7, 157, 229, 156, 229, 156, 235, 158, 6, -1, 76, 61, 150, 227, 151, 7, 157, 229, 156, 229, 156, 229, 156, 235, 158, 6, -1, 76, 51, 150, 227, 151, 7, 157, 229, 156, 235, 158, 6, -1, 76, 4, 150, 227, 151, 7, 232, 6, -1, 76, 4, 150, 227, 151, 7, 5, 6, -1, 76, 4, 157, 227, 158, 6, -1, 76, 4, 150, 227, 151, 7, 157, 229, 156, 229, 156, 235, 158, 6, -1, 82, 157, 195, 158, -1, 82, 111, 152, 227, 153, 6, -1, 82, 4, 152, 227, 153, 6, -1, 82, 4, 6, -1, 82, 4, 4, 6, -1, 103, 236, 157, 195, 158, -1, 115, 5, 6, -1, 116, 5, 6, -1, 115, 157, 195, 158, -1, 116, 157, 195, 158, -1, 4, 240, 6, -1, 4, 4, 152, 227, 153, 239, 6, -1, 4, 4, 4, 152, 227, 153, 6, -1, 4, 227, 6, -1, 69, 150, 4, 151, 154, 4, 6, -1, 97, 4, 6, -1, 110, 6, -1, 43, 6, -1, 40, 6, -1, 40, 157, 227, 156, 227, 156, 227, 156, 227, 156, 227, 156, 227, 158, 6, -1, 41, 6, -1, 44, 6, -1, 45, 6, -1, 60, 6, -1, 105, 150, 227, 8, 227, 151, -1, 105, 150, 227, 8, 227, 8, 227, 151, -1, 105, 4, 106, 157, 227, 8, 227, 158, -1, 105, 4, 106, 157, 227, 8, 227, 8, 227, 158, -1, 107, -1, 114, 4, -1, 112, -1, 113, 4, 6, -1, 108, 150, 227, 151, -1, 109, -1, 75, 229, 157, 195, 158, -1, 75, 157, 229, 156, 229, 156, 227, 158, 157, 195, 158, -1, 75, 157, 229, 156, 229, 156, 229, 156, 227, 158, 157, 195, 158, -1, -1, 75, 229, 157, 195, 203, 216, 158, -1, -1, 75, 157, 229, 156, 229, 156, 227, 158, 157, 195, 204, 216, 158, -1, -1, 75, 157, 229, 156, 229, 156, 229, 156, 227, 158, 157, 195, 205, 216, 158, -1, -1, 75, 157, 195, 206, 216, 158, -1, 75, 47, 157, 227, 156, 229, 158, 6, -1, 75, 50, 157, 227, 156, 229, 158, 6, -1, 75, 53, 157, 227, 156, 229, 158, 6, -1, 75, 47, 157, 227, 156, 229, 156, 229, 156, 227, 158, 6, -1, 75, 50, 157, 227, 156, 229, 156, 229, 156, 227, 158, 6, -1, 75, 53, 157, 227, 156, 229, 156, 229, 156, 227, 158, 6, -1, 75, 47, 157, 227, 156, 229, 156, 229, 156, 229, 156, 227, 158, 6, -1, 75, 50, 157, 227, 156, 229, 156, 229, 156, 229, 156, 227, 158, 6, -1, 75, 53, 157, 227, 156, 229, 156, 229, 156, 229, 156, 227, 158, 6, -1, -1, 75, 47, 157, 227, 156, 229, 158, 207, 157, 216, 158, 6, -1, -1, 75, 50, 157, 227, 156, 229, 158, 208, 157, 216, 158, 6, -1, -1, 75, 53, 157, 227, 156, 229, 158, 209, 157, 216, 158, 6, -1, -1, 75, 47, 157, 227, 156, 229, 156, 229, 156, 227, 158, 210, 157, 216, 158, 6, -1, -1, 75, 50, 157, 227, 156, 229, 156, 229, 156, 227, 158, 211, 157, 216, 158, 6, -1, -1, 75, 53, 157, 227, 156, 229, 156, 229, 156, 227, 158, 212, 157, 216, 158, 6, -1, -1, 75, 47, 157, 227, 156, 229, 156, 229, 156, 229, 156, 227, 158, 213, 157, 216, 158, 6, -1, -1, 75, 50, 157, 227, 156, 229, 156, 229, 156, 229, 156, 227, 158, 214, 157, 216, 158, 6, -1, -1, 75, 53, 157, 227, 156, 229, 156, 229, 156, 229, 156, 227, 158, 215, 157, 216, 158, 6, -1, 217, -1, 216, 217, -1, 85, 157, 227, 158, 6, -1, 85, 157, 232, 156, 232, 158, 6, -1, 85, 157, 232, 156, 232, 156, 232, 158, 6, -1, 79, 6, -1, 89, 6, -1, 89, 91, 6, -1, 90, 6, -1, 90, 91, 6, -1, 86, 150, 227, 151, 7, 232, 68, 227, 6, -1, 68, 4, 152, 227, 153, 6, -1, -1, 68, 4, 227, -1, -1, 4, -1, -1, 7, 232, -1, -1, 7, 227, -1, 63, 50, 233, 7, 227, 218, 6, -1, 63, 53, 233, 220, 219, 6, -1, 59, 53, 157, 227, 158, 7, 232, 6, -1, 63, 55, 233, 220, 6, -1, 92, 233, 6, -1, 79, 53, 233, 221, 6, -1, 80, 53, 232, 7, 227, 6, -1, 67, 50, 232, 7, 232, 6, -1, 67, 53, 227, 157, 235, 158, 7, 227, 157, 235, 158, 6, -1, 47, 157, 235, 158, 106, 53, 157, 227, 158, 6, -1, 50, 157, 235, 158, 106, 53, 157, 227, 158, 6, -1, 50, 157, 235, 158, 106, 55, 157, 227, 158, 6, -1, 53, 157, 235, 158, 106, 55, 157, 227, 158, 6, -1, 83, 6, -1, 83, 4, 6, -1, 83, 47, 157, 235, 158, 6, -1, 123, 150, 239, 151, 7, 157, 232, 156, 232, 158, 6, -1, 124, 150, 239, 151, 7, 157, 232, 156, 232, 158, 6, -1, 125, 150, 239, 151, 7, 157, 232, 156, 232, 158, 6, -1, 126, 150, 239, 151, 7, 157, 232, 156, 232, 158, 6, -1, 228, -1, 150, 227, 151, -1, 141, 227, -1, 140, 227, -1, 145, 227, -1, 227, 141, 227, -1, 227, 140, 227, -1, 227, 142, 227, -1, 227, 143, 227, -1, 227, 144, 227, -1, 227, 149, 227, -1, 227, 136, 227, -1, 227, 137, 227, -1, 227, 139, 227, -1, 227, 138, 227, -1, 227, 135, 227, -1, 227, 134, 227, -1, 227, 133, 227, -1, 227, 132, 227, -1, 227, 131, 227, 8, 227, -1, 14, 150, 227, 151, -1, 15, 150, 227, 151, -1, 16, 150, 227, 151, -1, 17, 150, 227, 151, -1, 18, 150, 227, 151, -1, 19, 150, 227, 151, -1, 20, 150, 227, 151, -1, 21, 150, 227, 151, -1, 22, 150, 227, 151, -1, 24, 150, 227, 151, -1, 25, 150, 227, 156, 227, 151, -1, 26, 150, 227, 151, -1, 27, 150, 227, 151, -1, 28, 150, 227, 151, -1, 29, 150, 227, 151, -1, 30, 150, 227, 151, -1, 31, 150, 227, 151, -1, 32, 150, 227, 156, 227, 151, -1, 33, 150, 227, 156, 227, 151, -1, 34, 150, 227, 156, 227, 151, -1, 23, 150, 227, 151, -1, 14, 152, 227, 153, -1, 15, 152, 227, 153, -1, 16, 152, 227, 153, -1, 17, 152, 227, 153, -1, 18, 152, 227, 153, -1, 19, 152, 227, 153, -1, 20, 152, 227, 153, -1, 21, 152, 227, 153, -1, 22, 152, 227, 153, -1, 24, 152, 227, 153, -1, 25, 152, 227, 156, 227, 153, -1, 26, 152, 227, 153, -1, 27, 152, 227, 153, -1, 28, 152, 227, 153, -1, 29, 152, 227, 153, -1, 30, 152, 227, 153, -1, 31, 152, 227, 153, -1, 32, 152, 227, 156, 227, 153, -1, 33, 152, 227, 156, 227, 153, -1, 34, 152, 227, 156, 227, 153, -1, 23, 152, 227, 153, -1, 3, -1, 9, -1, 10, -1, 11, -1, 120, -1, 121, -1, 122, -1, 4, -1, 4, 159, 157, 227, 158, -1, 4, 152, 227, 153, -1, 155, 4, 152, 153, -1, 4, 183, -1, 4, 152, 227, 153, 183, -1, 4, 154, 4, -1, 4, 152, 227, 153, 154, 4, -1, 4, 154, 4, 183, -1, 4, 152, 227, 153, 154, 4, 183, -1, 117, 150, 239, 156, 227, 151, -1, 230, -1, 141, 229, -1, 140, 229, -1, 229, 141, 229, -1, 229, 140, 229, -1, 157, 227, 156, 227, 156, 227, 156, 227, 156, 227, 158, -1, 157, 227, 156, 227, 156, 227, 156, 227, 158, -1, 157, 227, 156, 227, 156, 227, 158, -1, 150, 227, 156, 227, 156, 227, 151, -1, 232, -1, 231, 156, 232, -1, 227, -1, 234, -1, 157, 158, -1, 157, 235, 158, -1, 141, 157, 235, 158, -1, 227, 142, 157, 235, 158, -1, 232, -1, 5, -1, 141, 234, -1, 227, 142, 234, -1, 227, 8, 227, -1, 227, 8, 227, 8, 227, -1, 47, 157, 227, 158, -1, 47, 5, -1, 50, 5, -1, 53, 5, -1, 55, 5, -1, 193, -1, 202, -1, 4, 152, 153, -1, 4, 152, 157, 235, 158, 153, -1, 227, -1, 234, -1, 235, 156, 227, -1, 235, 156, 234, -1, 157, 227, 156, 227, 156, 227, 156, 227, 158, -1, 157, 227, 156, 227, 156, 227, 158, -1, 4, -1, 4, 154, 103, 154, 4, -1, 157, 238, 158, -1, 4, 152, 227, 153, 154, 104, -1, 236, -1, 238, 156, 236, -1, 240, -1, 4, -1, 4, 154, 4, -1, 4, 152, 227, 153, 154, 4, -1, 5, -1, 42, -1, 118, 150, 239, 151, -1, 119, 150, 239, 156, 239, 151, -1, 37, 150, 239, 156, 239, 151, -1, 38, 150, 239, 151, -1, 39, 150, 239, 151, -1, 36, 150, 239, 151, -1, 36, 150, 239, 156, 235, 151, -1 }; /* YYRLINE[YYN] -- source line where rule number YYN was defined. */ static const yytype_uint16 yyrline[] = { 0, 160, 160, 161, 166, 168, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 192, 196, 203, 208, 222, 235, 263, 277, 288, 303, 308, 309, 310, 311, 312, 316, 318, 323, 325, 331, 435, 330, 453, 460, 471, 470, 488, 495, 506, 505, 522, 539, 562, 561, 575, 576, 577, 578, 579, 583, 584, 591, 617, 644, 684, 694, 702, 714, 726, 735, 741, 750, 768, 786, 795, 807, 812, 820, 840, 863, 872, 880, 902, 925, 953, 965, 982, 986, 997, 1000, 1013, 1016, 1026, 1050, 1049, 1069, 1091, 1109, 1130, 1148, 1178, 1208, 1226, 1244, 1270, 1287, 1306, 1305, 1328, 1346, 1385, 1391, 1397, 1404, 1429, 1454, 1470, 1487, 1519, 1518, 1542, 1560, 1577, 1594, 1593, 1619, 1624, 1629, 1634, 1639, 1662, 1668, 1679, 1680, 1685, 1688, 1692, 1715, 1738, 1761, 1789, 1810, 1833, 1854, 1876, 1896, 2008, 2027, 2053, 2162, 2171, 2177, 2192, 2220, 2237, 2251, 2257, 2263, 2272, 2286, 2328, 2345, 2360, 2379, 2391, 2415, 2419, 2426, 2432, 2437, 2443, 2447, 2451, 2461, 2478, 2495, 2514, 2533, 2563, 2571, 2577, 2584, 2588, 2597, 2605, 2613, 2622, 2621, 2635, 2634, 2648, 2647, 2661, 2660, 2673, 2680, 2687, 2694, 2701, 2708, 2715, 2722, 2729, 2737, 2736, 2749, 2748, 2761, 2760, 2773, 2772, 2785, 2784, 2797, 2796, 2809, 2808, 2821, 2820, 2833, 2832, 2848, 2851, 2857, 2866, 2886, 2909, 2913, 2917, 2921, 2925, 2929, 2948, 2961, 2964, 2980, 2983, 2996, 2999, 3005, 3008, 3015, 3071, 3141, 3146, 3213, 3249, 3292, 3317, 3344, 3388, 3411, 3434, 3437, 3446, 3450, 3460, 3497, 3534, 3570, 3605, 3645, 3646, 3647, 3648, 3649, 3650, 3651, 3652, 3653, 3660, 3661, 3662, 3663, 3664, 3665, 3666, 3667, 3668, 3669, 3670, 3671, 3672, 3673, 3674, 3675, 3676, 3677, 3678, 3679, 3680, 3681, 3682, 3683, 3684, 3685, 3686, 3687, 3688, 3689, 3690, 3691, 3693, 3694, 3695, 3696, 3697, 3698, 3699, 3700, 3701, 3702, 3703, 3704, 3705, 3706, 3707, 3708, 3709, 3710, 3711, 3712, 3713, 3722, 3723, 3724, 3725, 3726, 3727, 3728, 3732, 3751, 3769, 3784, 3794, 3810, 3828, 3833, 3838, 3848, 3858, 3866, 3870, 3874, 3878, 3882, 3889, 3893, 3897, 3901, 3908, 3913, 3920, 3925, 3929, 3934, 3938, 3946, 3957, 3961, 3973, 3981, 3989, 3996, 4007, 4027, 4031, 4035, 4039, 4043, 4053, 4063, 4073, 4093, 4098, 4102, 4106, 4118, 4122, 4134, 4141, 4151, 4155, 4170, 4175, 4182, 4186, 4199, 4207, 4218, 4222, 4230, 4238, 4246, 4254, 4268, 4282, 4286 }; #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", "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", "tPoints", "tLoop", "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", "PhysicalId", "InSphereCenter", "CircleOptions", "Shape", "$@6", "$@7", "$@8", "$@9", "Transform", "MultipleShape", "ListOfShapes", "LevelSet", "Delete", "Colorify", "Visibility", "Command", "Loop", "Extrude", "$@10", "$@11", "$@12", "$@13", "$@14", "$@15", "$@16", "$@17", "$@18", "$@19", "$@20", "$@21", "$@22", "ExtrudeParameters", "ExtrudeParameter", "TransfiniteType", "TransfiniteArrangement", "TransfiniteCorners", "RecombineAngle", "Transfinite", "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, 385, 63, 386, 387, 388, 389, 60, 62, 390, 391, 43, 45, 42, 47, 37, 33, 392, 393, 394, 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, 160, 161, 161, 162, 162, 163, 163, 163, 163, 163, 163, 163, 163, 163, 163, 163, 163, 163, 163, 163, 163, 163, 164, 164, 165, 165, 165, 165, 166, 166, 166, 167, 167, 167, 167, 167, 167, 168, 168, 169, 169, 171, 172, 170, 173, 173, 175, 174, 176, 176, 178, 177, 179, 179, 181, 180, 182, 182, 182, 182, 182, 183, 183, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 185, 185, 186, 186, 187, 187, 188, 189, 188, 188, 188, 188, 188, 188, 188, 188, 188, 188, 188, 188, 190, 188, 188, 188, 188, 188, 188, 188, 188, 188, 188, 188, 191, 188, 188, 188, 188, 192, 188, 193, 193, 193, 193, 193, 193, 193, 194, 194, 195, 195, 195, 195, 195, 195, 196, 196, 196, 196, 196, 196, 196, 196, 196, 197, 197, 197, 197, 197, 198, 199, 199, 199, 199, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 202, 202, 202, 203, 202, 204, 202, 205, 202, 206, 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, 207, 202, 208, 202, 209, 202, 210, 202, 211, 202, 212, 202, 213, 202, 214, 202, 215, 202, 216, 216, 217, 217, 217, 217, 217, 217, 217, 217, 217, 217, 218, 218, 219, 219, 220, 220, 221, 221, 222, 222, 222, 222, 222, 222, 222, 223, 223, 224, 224, 224, 224, 225, 225, 225, 226, 226, 226, 226, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 228, 228, 228, 228, 228, 228, 228, 228, 228, 228, 228, 228, 228, 228, 228, 228, 228, 228, 229, 229, 229, 229, 229, 230, 230, 230, 230, 231, 231, 232, 232, 232, 232, 232, 232, 233, 233, 234, 234, 234, 234, 234, 234, 234, 234, 234, 234, 234, 234, 234, 235, 235, 235, 235, 236, 236, 236, 236, 237, 237, 238, 238, 239, 239, 239, 239, 240, 240, 240, 240, 240, 240, 240, 240, 240 }; /* 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, 4, 7, 9, 6, 6, 3, 6, 4, 6, 9, 6, 9, 5, 8, 8, 11, 6, 9, 5, 7, 9, 9, 11, 9, 9, 1, 1, 0, 5, 0, 2, 7, 0, 9, 6, 7, 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, 180, 0, 185, 0, 0, 182, 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, 326, 333, 392, 57, 327, 328, 329, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 393, 0, 0, 0, 0, 330, 331, 332, 61, 60, 59, 58, 0, 0, 0, 63, 62, 0, 0, 0, 0, 137, 0, 0, 0, 264, 0, 0, 0, 0, 170, 0, 172, 169, 173, 174, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 0, 0, 0, 0, 0, 0, 96, 109, 121, 126, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 344, 0, 0, 0, 0, 0, 137, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 137, 0, 257, 0, 0, 0, 0, 333, 362, 0, 0, 0, 0, 0, 0, 372, 373, 355, 361, 0, 356, 0, 0, 0, 0, 382, 0, 0, 0, 0, 0, 168, 0, 0, 181, 0, 137, 0, 137, 0, 0, 0, 0, 0, 0, 0, 0, 337, 32, 392, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 333, 267, 266, 268, 0, 0, 0, 0, 0, 0, 0, 0, 0, 136, 0, 135, 0, 69, 165, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 162, 113, 0, 0, 0, 0, 0, 376, 377, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 240, 240, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 346, 345, 0, 0, 0, 0, 137, 137, 0, 0, 0, 0, 0, 0, 0, 195, 0, 137, 0, 0, 0, 0, 0, 242, 0, 0, 0, 155, 0, 0, 0, 258, 0, 0, 0, 0, 0, 368, 0, 369, 370, 371, 0, 266, 363, 357, 0, 0, 0, 248, 167, 0, 0, 0, 0, 0, 137, 0, 0, 0, 0, 183, 158, 0, 159, 0, 389, 0, 388, 0, 0, 0, 0, 0, 339, 0, 0, 71, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 265, 0, 0, 0, 0, 57, 0, 0, 0, 0, 0, 132, 0, 0, 0, 0, 138, 64, 0, 282, 281, 280, 279, 275, 276, 278, 277, 270, 269, 271, 272, 273, 274, 114, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 238, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0, 0, 348, 347, 0, 0, 0, 0, 0, 0, 0, 0, 0, 189, 0, 0, 0, 0, 0, 0, 0, 0, 0, 156, 0, 0, 152, 0, 0, 0, 0, 374, 0, 0, 0, 0, 358, 365, 0, 271, 364, 0, 0, 0, 0, 0, 0, 0, 0, 184, 0, 160, 161, 0, 0, 0, 0, 0, 0, 0, 335, 341, 0, 42, 0, 0, 0, 55, 0, 33, 34, 35, 36, 37, 284, 305, 285, 306, 286, 307, 287, 308, 288, 309, 289, 310, 290, 311, 291, 312, 292, 313, 304, 325, 293, 314, 0, 0, 295, 316, 296, 317, 297, 318, 298, 319, 299, 320, 300, 321, 0, 0, 0, 0, 0, 0, 399, 0, 0, 397, 398, 82, 0, 394, 0, 0, 0, 0, 57, 0, 0, 0, 0, 0, 76, 0, 0, 0, 0, 336, 0, 0, 0, 0, 0, 25, 23, 0, 0, 0, 0, 378, 379, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 236, 241, 239, 0, 247, 0, 0, 89, 90, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 128, 130, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 224, 0, 186, 0, 0, 0, 0, 0, 0, 243, 249, 0, 0, 0, 0, 0, 0, 0, 0, 0, 335, 367, 359, 0, 0, 0, 0, 0, 0, 0, 157, 0, 0, 0, 0, 0, 390, 0, 0, 0, 0, 0, 0, 338, 0, 334, 0, 0, 0, 0, 0, 29, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 67, 68, 0, 0, 0, 0, 0, 70, 72, 74, 0, 0, 386, 0, 80, 0, 0, 0, 0, 283, 24, 0, 0, 0, 0, 0, 93, 93, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 98, 0, 0, 0, 0, 0, 0, 245, 0, 0, 0, 0, 0, 0, 0, 0, 251, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 229, 0, 0, 230, 0, 232, 0, 196, 225, 0, 0, 0, 150, 0, 0, 0, 250, 0, 154, 153, 259, 0, 30, 31, 0, 366, 360, 0, 0, 0, 383, 0, 0, 0, 176, 0, 0, 0, 0, 0, 0, 0, 164, 340, 163, 0, 0, 0, 0, 353, 0, 294, 315, 301, 322, 302, 323, 303, 324, 400, 396, 343, 395, 0, 57, 0, 0, 0, 0, 65, 0, 0, 0, 384, 0, 0, 0, 0, 26, 27, 0, 0, 95, 0, 0, 0, 0, 0, 99, 0, 0, 116, 117, 0, 0, 101, 124, 0, 0, 0, 91, 0, 244, 0, 0, 0, 0, 0, 0, 0, 0, 0, 166, 0, 0, 0, 0, 137, 0, 206, 0, 208, 0, 210, 0, 355, 0, 0, 231, 233, 0, 0, 190, 0, 0, 0, 0, 0, 0, 0, 0, 0, 375, 104, 105, 0, 0, 0, 0, 83, 0, 0, 0, 0, 0, 0, 342, 0, 38, 0, 0, 0, 0, 0, 40, 0, 0, 0, 77, 0, 0, 78, 0, 387, 139, 140, 141, 142, 0, 0, 0, 94, 102, 103, 107, 0, 0, 118, 0, 0, 246, 111, 0, 0, 237, 123, 0, 0, 0, 0, 108, 0, 119, 125, 0, 0, 0, 0, 352, 0, 351, 0, 0, 197, 0, 0, 198, 0, 0, 199, 0, 0, 0, 0, 0, 0, 0, 149, 0, 0, 148, 0, 0, 143, 0, 0, 0, 0, 0, 381, 0, 178, 177, 0, 0, 0, 391, 0, 0, 0, 0, 43, 0, 0, 0, 354, 0, 0, 0, 66, 73, 75, 0, 81, 0, 28, 0, 0, 0, 0, 0, 0, 0, 112, 97, 110, 122, 127, 0, 0, 87, 88, 137, 0, 131, 0, 0, 0, 0, 0, 0, 0, 226, 0, 0, 137, 0, 0, 0, 0, 0, 134, 133, 0, 0, 0, 0, 84, 85, 0, 0, 0, 0, 0, 39, 0, 0, 0, 41, 56, 0, 385, 0, 253, 254, 255, 256, 115, 0, 0, 0, 0, 0, 350, 0, 0, 0, 0, 0, 0, 0, 0, 0, 235, 0, 0, 0, 191, 0, 0, 0, 0, 144, 0, 380, 179, 0, 0, 0, 0, 0, 0, 0, 0, 0, 79, 0, 0, 0, 0, 129, 0, 212, 0, 0, 214, 0, 0, 216, 0, 0, 0, 227, 0, 187, 0, 137, 0, 0, 0, 106, 86, 260, 261, 262, 263, 0, 47, 0, 53, 0, 0, 92, 120, 252, 349, 200, 0, 0, 207, 201, 0, 0, 209, 202, 0, 0, 211, 0, 0, 0, 193, 0, 147, 0, 0, 0, 0, 0, 0, 0, 0, 218, 0, 220, 0, 222, 228, 234, 192, 188, 0, 0, 0, 0, 44, 0, 51, 0, 0, 0, 203, 0, 0, 204, 0, 0, 205, 0, 0, 151, 0, 145, 0, 45, 0, 0, 171, 0, 0, 0, 0, 0, 0, 194, 0, 0, 0, 0, 0, 213, 0, 215, 0, 217, 0, 146, 46, 48, 0, 49, 0, 0, 0, 0, 0, 0, 54, 219, 221, 223, 50, 52 }; /* YYDEFGOTO[NTERM-NUM]. */ static const yytype_int16 yydefgoto[] = { -1, 2, 3, 72, 742, 73, 74, 468, 1085, 1091, 664, 845, 1241, 1391, 665, 1355, 1417, 666, 1393, 667, 668, 849, 144, 262, 75, 771, 1121, 1013, 537, 380, 381, 382, 383, 230, 330, 331, 78, 79, 80, 81, 82, 83, 231, 802, 1313, 1369, 606, 1142, 1145, 1148, 1335, 1339, 1343, 1380, 1383, 1386, 798, 799, 907, 768, 580, 615, 85, 86, 87, 88, 89, 232, 147, 393, 198, 976, 977, 234, 235, 438, 242, 733, 876, 459, 460 }; /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing STATE-NUM. */ #define YYPACT_NINF -1019 static const yytype_int16 yypact[] = { 3473, 41, 16, 3588, -1019, -1019, 1860, 38, 51, -37, 4, 139, 181, 187, 202, -85, 66, 70, -41, 80, 84, -42, 94, 100, 199, 258, 268, 298, 275, 302, 252, 297, 196, 603, 272, 209, 331, 235, -98, -98, 236, 61, 309, 360, 374, 376, 10, 65, 381, 455, 459, 2015, 469, 282, 332, 361, 13, 28, -1019, 365, -1019, 482, 358, -1019, 512, 515, 22, 25, 378, 384, 399, 402, -1019, -1019, -1019, -1019, -1019, -1019, -1019, -1019, -1019, -1019, -1019, -1019, -1019, -1019, -1019, -1019, -1019, -1019, -1019, 21, 398, 352, -1019, -1019, -1019, -121, -86, -25, 90, 251, 299, 300, 373, 421, 451, 473, 584, 607, 620, 630, 649, 650, 657, 675, 678, 679, 412, 415, 425, 432, -1019, 559, 433, 436, 446, -1019, -1019, -1019, -1019, -1019, -1019, -1019, 3283, 3283, 3283, -1019, -1019, 3283, 64, 19, 598, 383, 3283, 606, 717, -1019, 610, 616, 3283, 621, -1019, 3283, -1019, -1019, -1019, -1019, 3283, 3207, 3283, 3283, 497, 3283, 3207, 3283, 3283, 507, 3207, 3283, 3283, 2313, 514, 522, -1019, 534, 537, 2015, 2015, 2015, 538, -1019, -1019, -1019, -1019, 541, 542, 545, 2313, 3283, 694, 2313, -98, -98, -98, 3283, 3283, -87, -1019, -9, -98, 557, 561, 567, 2985, 56, -51, 560, 563, 585, 2015, 2313, 594, 40, 599, -1019, 742, -1019, 619, 627, 658, 667, 790, -1019, 34, 768, 819, 829, 2462, 1704, -1019, -1019, 1252, -1019, 832, -1019, 833, 3283, 3283, 3283, 681, 3283, 690, 756, 3283, 3283, -1019, 3283, 857, -1019, 875, -1019, 885, -1019, 703, 703, 703, 703, 730, 3283, 890, 738, -1019, -1019, -1019, 893, 3283, 3283, 3283, 3283, 3283, 3283, 3283, 3283, 3283, 3283, 3283, 3283, 3283, 3283, 3283, 3283, 3283, 3283, 3283, 3283, 3283, 3283, 3283, 3283, 3283, 3283, 3283, 3283, 3283, 3283, 3283, 3283, 3283, 3283, 3283, 3283, 3283, 3283, 3283, 3283, 3283, 3283, 703, 703, 703, 703, 3283, 703, 703, 703, 523, 754, 754, 754, 5908, 6, 3207, 5149, 409, 733, 899, 757, 753, -1019, 755, 3669, 858, -1019, -1019, 3283, 3283, 3283, 3283, 3283, 3283, 3283, 3283, 3283, 3283, 3283, 3283, 3283, 3283, 3283, -1019, -1019, 1136, 0, 4447, 5929, 3207, 3012, -1019, 596, 5950, 5971, 3283, 5992, 687, 6013, 6034, 3283, 718, 6055, 6076, 914, 3283, 3283, 3283, 3283, 915, 922, 922, 3283, 795, 801, 802, 823, 3283, 3283, 3283, 953, 4367, 827, 977, 59, -1019, -1019, 4473, 4499, -98, -98, 383, 383, 269, 3283, 3283, 3283, 2985, 2985, 3283, 3669, 334, -1019, 3283, 3283, 3283, 3283, 3283, 996, 997, 3283, 978, -1019, 3283, 3283, 713, -1019, 3207, 3207, 3283, 3283, 1783, -1019, 3283, -1019, -1019, -1019, 3207, 754, -1019, -1019, 721, 3283, 2611, -1019, -1019, 6097, 6118, 6139, 906, 4525, -1019, 831, 3052, 6160, 5172, -1019, -1019, 1387, -1019, 1587, 746, 862, -1019, 863, 867, 886, 3283, 5195, -71, 3283, 7, -1019, 6181, 5218, 6202, 5241, 6223, 5264, 6244, 5287, 6265, 5310, 6286, 5333, 6307, 5356, 6328, 5379, 6349, 5402, 6370, 5425, 6391, 5448, 4551, 4577, 6412, 5471, 6433, 5494, 6454, 5517, 6475, 5540, 6496, 5563, 6517, 5586, 4603, 4629, 4655, 4681, 4707, 4733, 101, 888, 901, 910, 1698, 891, 917, 913, 3283, -1019, 2313, 2313, 761, 217, 352, 3283, 1025, 1053, 15, 925, -1019, -7, -40, -33, 79, -1019, -1019, 3201, 1284, 2364, 1090, 1090, 343, 343, 343, 343, 573, 573, 754, 754, 754, 754, -1019, 9, 3207, 3283, 1079, 3207, 3207, 984, 1093, 1097, 6538, 1098, 1003, 1103, 1106, 6559, 1010, 1110, 1121, 3283, 6580, 3472, 6601, 6622, 3283, 2313, 1128, 1134, 6643, 3350, 3350, 3350, 3350, 6664, 6685, 6706, 2313, 3207, 987, -1019, -98, 3283, 3283, -1019, -1019, 989, 991, 3283, 4759, 4785, 4811, 4421, 441, -98, 1894, 6727, 3723, 6748, 6769, 6790, 3283, 1139, 3283, 6811, -1019, 5609, 5632, -1019, 762, 774, 5655, 5678, -1019, 3207, 5701, 3751, 777, -1019, 3276, 3207, 754, -1019, 1147, 1148, 1149, 1004, 3283, 2054, 3283, 3283, -1019, 17, -1019, -1019, 3283, 1153, 1152, 1154, 1156, 1157, 5724, 602, -1019, 3779, -1019, 1016, 1018, 1012, -1019, 1165, -1019, -1019, -1019, -1019, -1019, -1019, -1019, -1019, -1019, -1019, -1019, -1019, -1019, -1019, -1019, -1019, -1019, -1019, -1019, -1019, -1019, -1019, -1019, -1019, -1019, -1019, -1019, 3283, 3283, -1019, -1019, -1019, -1019, -1019, -1019, -1019, -1019, -1019, -1019, -1019, -1019, 3283, 3283, 3283, 3283, 3283, 3283, -1019, 3207, 703, -1019, -1019, -1019, 3283, -1019, 703, 1166, 1167, 1023, -1019, 36, 3283, 1171, 1172, 1777, -1019, 1173, 1030, 13, 1175, -1019, 3207, 3207, 3207, 3207, 3283, -1019, 1046, 703, 197, 4837, -98, 3012, -1019, 1131, 2313, 2313, 1178, 2313, 881, 2313, 2313, 1179, 1133, 2313, 2313, 2417, 1184, 1186, 1189, 1190, 3609, -1019, -1019, 1194, -1019, 1196, 1054, 7042, -1019, 1055, 1057, 1059, 1197, 1205, 1207, 1209, 785, 1212, 338, 4863, 4889, -1019, -1019, 3807, -98, -98, -98, 1213, 1215, 1061, 1069, 27, 35, 169, -1019, 377, -1019, 441, 1216, 1218, 1228, 1229, 1233, 7042, -1019, 2455, 1065, 1236, 1237, 1239, 1193, 1241, 1242, 792, -126, -1019, -1019, 3283, 800, 2313, 2313, 2313, 1245, 4915, -1019, 3310, 654, 1247, 1248, 5747, -1019, 1096, 1099, 1100, 1102, 1249, 1257, -1019, 1256, -1019, 1113, 3283, 3283, 2313, 1124, -1019, 6832, 5770, 6853, 5793, 6874, 5816, 6895, 5839, 226, 1135, 6916, 1138, -1019, -1019, 98, 416, 1130, 1275, 2565, -1019, -1019, -1019, 13, 3283, -1019, 803, -1019, 810, 813, 818, 821, 7042, -1019, 1281, 12, 3283, 1, 1137, 1230, 1230, 2313, 1286, 1140, 1142, 1287, 1290, 2313, 1143, 1296, 1297, -1019, 1285, 2313, 2313, 2313, 1300, 1301, -1019, 2313, 1299, 1303, 1305, 1306, 2313, 2313, 2313, -1019, 1307, 356, 3283, 3283, 3283, 1151, -21, 54, 168, 1163, -1019, 2313, 3283, -1019, 1310, -1019, 1311, -1019, -1019, 2985, 502, 2164, -1019, 1161, 2760, 1162, -1019, 3207, -1019, -1019, -1019, 1164, -1019, -1019, 1174, 7042, -1019, 1319, 1322, 1227, -1019, 3283, 3283, 3283, -1019, 1324, 1325, 1180, 2313, 2313, 2313, 2313, -1019, -71, -1019, 3283, 4941, 4967, 852, -1019, 3283, -1019, -1019, -1019, -1019, -1019, -1019, -1019, -1019, -1019, -1019, -1019, -1019, 2313, 352, 3283, 1327, 1331, 15, -1019, 1330, 5862, 13, -1019, 1333, 1336, 1340, 1341, -1019, -1019, 703, 4993, -1019, 3283, -98, 1342, 1344, 1345, -1019, 3283, 3283, -1019, -1019, 1346, 3283, -1019, -1019, 1348, 1351, 1352, 1253, 3283, -1019, 1354, 2313, 2313, 2313, 2313, 1356, 1011, 1357, 3283, -1019, 3350, 3835, 6937, 3639, 383, -98, 1358, -98, 1360, -98, 1361, 3283, 304, 1214, 6958, -1019, -1019, 3863, 418, -1019, 1362, 1548, 1365, -98, 1548, 1366, 2313, 866, 3283, -1019, -1019, -1019, 2313, 3667, 364, 6979, -1019, 3058, 1369, 1220, 1221, 1224, 1225, -1019, 261, 7042, 3283, 3283, 2313, 1217, 870, 7042, 1392, 1396, 2604, -1019, 1397, 1399, -1019, 1258, -1019, -1019, -1019, -1019, -1019, 1404, 3283, 3891, 234, -1019, -1019, -1019, 3919, 3947, -1019, 3975, 1398, -1019, -1019, 1363, 1405, 7042, -1019, 1407, 1409, 1423, 1424, -1019, 1289, -1019, -1019, 4394, 2714, 1426, 1293, -1019, 3283, -1019, 1298, 420, -1019, 1302, 428, -1019, 1304, 453, -1019, 1308, 5885, 1438, 2313, 1440, 1309, 3283, -1019, 2909, 464, -1019, 489, 492, -1019, 871, 1448, 4003, 1359, 3283, -1019, 3283, -1019, -1019, 3207, 2753, 1449, -1019, 2313, 2313, 2313, 2313, -1019, 3283, 5019, 5045, -1019, 2313, 3283, 1452, -1019, -1019, -1019, 13, -1019, 1364, -1019, 5071, 1456, 1457, 1458, 1461, 1464, 1314, -1019, -1019, -1019, -1019, -1019, 2313, 3207, -1019, -1019, 383, 3695, -1019, 2985, 441, 2985, 441, 2985, 441, 1470, -1019, 876, 2313, -1019, 4031, -98, 3207, -98, 1471, -1019, -1019, 3283, 4059, 4087, 880, -1019, -1019, 1320, 1321, 1323, 1332, 1326, 7042, 3283, 3283, 883, 7042, -1019, 1474, -1019, 3283, -1019, -1019, -1019, -1019, -1019, 3283, 884, 887, 1334, 3283, -1019, 4115, 525, 747, 4143, 527, 799, 4171, 549, 807, -1019, 2313, 1476, 1420, 2203, 1337, 553, 902, 556, -1019, 2902, -1019, -1019, 1489, 1490, 1491, 1492, 1493, 3283, 7000, 5097, 20, -1019, 5123, 4199, 1494, 1496, -1019, 4227, 1498, 3283, 1500, 1502, 3283, 1503, 1504, 3283, 1505, 1367, -1019, 3283, -1019, 441, -1019, 3207, 1506, 2909, -1019, -1019, -1019, -1019, -1019, -1019, 931, -1019, 3283, -1019, 2313, 3283, -1019, -1019, -1019, -1019, -1019, 1370, 4255, -1019, -1019, 1371, 4283, -1019, -1019, 1373, 4311, -1019, 1508, 2979, 822, 2352, 935, -1019, 587, 964, 1509, 1374, 7021, 968, 4339, 441, 1510, 441, 1511, 441, 1512, -1019, -1019, -1019, -1019, 441, 1513, 3207, 1515, -1019, 703, -1019, 1375, 1516, 896, -1019, 1376, 985, -1019, 1377, 994, -1019, 1378, 1009, -1019, 969, -1019, 980, -1019, 1379, 2313, -1019, 1517, 441, 1518, 441, 1520, 441, -1019, 1531, 703, 1532, 703, 981, -1019, 1017, -1019, 1029, -1019, 1044, -1019, -1019, -1019, 988, -1019, 1534, 1535, 1536, 1537, 703, 1538, -1019, -1019, -1019, -1019, -1019, -1019 }; /* YYPGOTO[NTERM-NUM]. */ static const yytype_int16 yypgoto[] = { -1019, -1019, -1019, -1019, 661, -1019, -1019, -1019, -1019, 259, -1019, -1019, -1019, -1019, -1019, -1019, -1019, -1019, -1019, -1019, -1019, -1019, -318, -1, -1019, -201, -1019, 659, 1544, -1019, -1019, -1019, -1019, 31, -390, -203, -1019, -1019, -1019, -1019, -1019, -1019, 1547, -1019, -1019, -1019, -1019, -1019, -1019, -1019, -1019, -1019, -1019, -1019, -1019, -1019, -555, -735, -1019, -1019, 1176, -1019, -1019, -1019, -1019, -1019, -1019, -6, -1019, 276, -1019, -1018, 440, 141, 313, 190, -697, 564, -1019, -253, 14 }; /* 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[] = { 146, 407, 461, 462, 463, 145, 527, 1010, 599, 600, 152, 658, 422, 522, 213, 740, 5, 240, 1007, 731, 148, 137, 138, 324, 832, 258, 1327, 250, 841, 266, 252, 267, 243, 931, 77, 875, 167, 162, 162, 429, 866, 933, 193, 194, 418, 167, 419, 4, 455, 1162, 457, 149, 195, 396, 397, 512, 513, 514, 515, 196, 517, 518, 519, 936, 268, 158, 269, 90, 316, 216, 398, 217, 159, 94, 95, 96, 137, 138, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 410, 659, 660, 661, 662, 150, 723, 411, 265, 201, 163, 163, 202, 218, 151, 203, 168, 164, 736, 932, 396, 397, 214, 325, 326, 737, 270, 934, 271, 317, 318, 319, 396, 397, 320, 323, 1046, 523, 1047, 332, 867, 868, 396, 397, 158, 352, 154, 741, 354, 399, 741, 735, 555, 355, 357, 360, 361, 556, 363, 357, 365, 366, 153, 357, 369, 370, 663, 1245, 215, 137, 138, 241, 833, 732, 259, 329, 260, 998, 1328, 244, 251, 261, 124, 253, 388, 127, 128, 129, 155, 1257, 394, 395, 430, 420, 156, 396, 397, 396, 397, 395, 396, 397, 193, 194, 936, 134, 135, 608, 725, 157, 136, 1048, 195, 1049, 409, 139, 594, 160, 321, 204, 142, 161, 322, 435, 357, 723, 130, 131, 132, 133, 170, 165, 443, 444, 445, 166, 447, 738, 792, 450, 451, 272, 452, 273, 181, 169, 641, 182, 938, 793, 183, 170, 184, 711, 465, 794, 795, 171, 712, 796, 797, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 177, 1101, 174, 178, 516, 179, 396, 397, 1357, 172, 439, 206, 197, 199, 357, 205, 376, 377, 378, 173, 188, 528, 1050, 189, 1051, 935, 175, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 130, 131, 132, 133, 885, 359, 435, 415, 180, 560, 364, 176, 564, 264, 368, 190, 207, 569, 1040, 1041, 137, 138, 574, 575, 576, 577, 208, 724, 1168, 582, 396, 397, 1407, 987, 587, 588, 589, 191, 560, 774, 775, 776, 209, 328, 118, 119, 120, 121, 192, 200, 122, 602, 603, 604, 317, 318, 605, 274, 843, 275, 609, 610, 611, 612, 613, 396, 397, 617, 1179, 210, 619, 620, 526, 1180, 357, 357, 624, 625, 628, 992, 629, 601, 212, 211, 357, 329, 329, 219, 237, 632, 634, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 440, 347, 348, 276, 278, 277, 279, 349, 37, 38, 39, 40, 654, 220, 860, 657, 1150, 221, 45, 656, 862, 48, 391, 392, 125, 126, 358, 236, 396, 397, 400, 358, 396, 397, 408, 358, 238, 344, 345, 346, 347, 348, 246, 884, 607, 233, 349, 1248, 920, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 792, 247, 239, 524, 349, 628, 245, 248, 396, 397, 249, 793, 728, 1169, 280, 726, 281, 794, 795, 254, 936, 796, 797, 936, 937, 255, 936, 130, 131, 132, 133, 727, 436, 358, 130, 131, 132, 133, 991, 993, 256, 357, 744, 257, 634, 746, 263, 137, 138, 396, 397, 396, 397, 308, 137, 138, 309, 312, 760, 396, 397, 792, 282, 765, 283, 1154, 310, 1213, 772, 772, 772, 772, 793, 311, 313, 1215, 357, 314, 794, 795, 784, 785, 796, 797, 396, 397, 788, 315, 773, 773, 773, 773, 284, 327, 285, 396, 397, 458, 264, 808, 1217, 810, 371, 333, 936, 622, 623, 350, 233, 233, 233, 1225, 357, 351, 286, 630, 287, 353, 357, 387, 396, 397, 390, 396, 397, 828, 358, 830, 831, 118, 119, 120, 121, 834, 936, 122, 1226, 936, 362, 1227, 936, 233, 416, 936, 185, 842, 1139, 186, 367, 187, 1264, 1060, 1267, 961, 1270, 372, 396, 397, 396, 397, 436, 137, 138, 597, 598, 936, 520, 936, 260, 936, 373, 392, 1301, 261, 1304, 374, 851, 852, 375, 379, 396, 397, 384, 385, 396, 397, 386, 396, 397, 389, 853, 854, 855, 856, 857, 858, 1307, 357, 458, 264, 1315, 412, 861, 1317, 413, 401, 346, 347, 348, 402, 869, 125, 126, 349, 334, 403, 7, 8, 396, 397, 357, 357, 357, 357, 882, 288, 414, 289, 358, 358, 118, 119, 120, 121, 1371, 417, 122, 743, 358, 423, 137, 138, 421, 560, 635, 561, 1106, 841, 290, 1348, 291, 533, 16, 17, 534, 19, 20, 535, 22, 536, 24, 292, 25, 293, 431, 28, 29, 424, 31, 32, 33, 294, 781, 295, 36, 425, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 296, 298, 297, 299, 349, 1378, 962, 1381, 300, 1384, 301, 426, 53, 54, 55, 1387, 792, 953, 818, 842, 427, 1259, 125, 126, 823, 432, 302, 793, 303, 304, 306, 305, 307, 794, 795, 433, 446, 796, 797, 441, 442, 974, 975, 1409, 560, 1411, 566, 1413, 448, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 449, 453, 538, 994, 349, 792, 999, 358, 783, 621, 635, 747, 560, 792, 570, 560, 793, 631, 1009, 454, 464, 800, 794, 795, 793, 529, 796, 797, 792, 456, 794, 795, 466, 467, 796, 797, 648, 469, 649, 793, 859, 349, 358, 1302, 530, 794, 795, 531, 143, 796, 797, 532, 1042, 1043, 1044, 560, 560, 722, 814, 573, 578, 1053, 1055, 878, 879, 880, 881, 579, 560, 1058, 815, 560, 893, 821, 894, 137, 138, 357, 358, 560, 428, 918, 260, 583, 358, 143, 560, 261, 952, 584, 585, 1074, 1075, 1076, 560, 1305, 954, 1000, 590, 1001, 720, 721, 792, 1308, 560, 1086, 1002, 560, 1084, 1003, 1092, 586, 560, 793, 1004, 560, 592, 1005, 1367, 794, 795, 593, 618, 796, 797, 1095, 642, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 614, 616, 1108, 1094, 349, 1089, 639, 1090, 1113, 1114, 650, 651, 1129, 1116, 1130, 652, 766, 1275, 887, 560, 1122, 1163, 358, 1185, 1089, 1186, 1228, 780, 729, 1272, 1132, 1273, 1133, 560, 653, 1284, 1089, 1089, 1292, 1296, 560, 713, 1297, 1149, 717, 358, 358, 358, 358, 714, 792, 1396, 1134, 357, 730, 560, 357, 1316, 715, 792, 1164, 793, 924, 925, 926, 718, 719, 794, 795, 1172, 793, 796, 797, 329, 792, 734, 794, 795, 1181, 1182, 796, 797, 792, 745, 1185, 793, 1354, 748, 560, 1173, 1370, 794, 795, 793, 792, 796, 797, 749, 1194, 794, 795, 750, 752, 796, 797, 793, 753, 754, 1349, 792, 755, 794, 795, 757, 758, 796, 797, 560, 1392, 1372, 793, 1089, 560, 1376, 1403, 759, 794, 795, 1211, 767, 796, 797, 1068, 1404, 1089, 1405, 1419, 769, 782, 554, 1398, 1423, 809, 1424, 786, 1224, 787, 435, 1415, 1400, 1418, 824, 825, 826, 835, 827, 836, 1232, 837, 1233, 838, 839, 357, 846, 1402, 847, 848, 1429, 850, 863, 864, 1242, 1420, 865, 870, 871, 1246, 873, 877, 874, 883, 888, 891, 897, 1421, 898, 889, 890, 902, 892, 903, 895, 896, 904, 905, 899, 900, 908, 357, 1422, 909, 914, 910, 911, 1262, 912, 1265, 913, 1268, 915, 1059, 916, 917, 919, 927, 929, 930, 357, 928, 945, 939, 940, 1281, 340, 341, 342, 343, 344, 345, 346, 347, 348, 941, 942, 1290, 1291, 349, 943, 329, 946, 947, 1294, 948, 949, 950, 951, 958, 1295, 963, 964, 966, 1299, 970, 967, 968, 358, 969, 439, 971, 972, 973, 955, 956, 957, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 978, 996, 1092, 995, 349, 988, 1006, 1109, 990, 1025, 1012, 1016, 1019, 1011, 1336, 1020, 1017, 1340, 1018, 1022, 1344, 1023, 1024, 1029, 1347, 1032, 1030, 1045, 357, 1033, 357, 1034, 1035, 1039, 1052, 1056, 1057, 1064, 1067, 1356, 1069, 1140, 1358, 1143, 1071, 1146, 1070, 1072, 1073, 1077, 1015, 1078, 1096, 1079, 1097, 1099, 1021, 1157, 1102, 1159, 1160, 1103, 1026, 1027, 1028, 1104, 1105, 1110, 1031, 1111, 1112, 1115, 1117, 1036, 1037, 1038, 1118, 1119, 1120, 1123, 1234, 1128, 1131, 1141, 357, 1144, 1147, 1155, 1054, 1151, 1158, 1161, 1174, 1184, 358, 1175, 1176, 358, 1063, 1177, 1178, 1066, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 440, 347, 348, 1258, 1187, 7, 8, 349, 1188, 1199, 1190, 1191, 1080, 1081, 1082, 1083, 1193, 1201, 1192, 1202, 1200, 1203, 1278, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 1204, 1205, 1093, 1209, 349, 533, 16, 17, 534, 19, 20, 535, 22, 536, 24, 1220, 25, 1206, 1222, 28, 29, 1210, 31, 32, 33, 1229, 1236, 1212, 36, 1247, 1214, 1231, 1216, 1251, 1252, 1253, 1218, 1223, 1254, 1249, 436, 1255, 1256, 1124, 1125, 1126, 1127, 1271, 1280, 1285, 1286, 1293, 1287, 1310, 1289, 358, 53, 54, 55, 1311, 1263, 1288, 1266, 1298, 1269, 1314, 1319, 1320, 1321, 1322, 1323, 1331, 1277, 1332, 1279, 1334, 1350, 1337, 1353, 1338, 1341, 1342, 1345, 1351, 1165, 1365, 1373, 1379, 1382, 1385, 1388, 358, 1390, 1395, 1408, 1410, 1346, 1412, 1359, 1361, 1183, 1363, 1374, 1394, 1397, 1399, 1401, 1406, 1414, 1416, 358, 1425, 1426, 1427, 1428, 1430, 646, 1008, 76, 1324, 1014, 84, 90, 222, 0, 581, 0, 0, 94, 95, 96, 1098, 1389, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 0, 0, 0, 0, 0, 0, 0, 0, 1221, 0, 1352, 0, 224, 0, 0, 225, 7, 8, 226, 0, 227, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1237, 1238, 1239, 1240, 37, 38, 39, 40, 41, 0, 0, 0, 0, 358, 45, 358, 0, 48, 0, 533, 16, 17, 534, 19, 20, 535, 22, 536, 24, 0, 25, 0, 0, 28, 29, 0, 31, 32, 33, 0, 0, 0, 36, 0, 0, 0, 0, 1274, 0, 0, 124, 0, 0, 127, 128, 129, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 358, 53, 54, 55, 404, 1156, 0, 0, 0, 136, 0, 0, 0, 0, 406, 0, 0, 0, 0, 142, 716, 196, 437, 90, 222, 0, 0, 0, 1309, 94, 95, 96, 0, 0, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 0, 0, 0, 0, 0, 0, 647, 0, 0, 0, 0, 0, 224, 0, 0, 225, 0, 0, 226, 0, 227, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 37, 38, 39, 40, 41, 0, 0, 0, 872, 0, 45, 90, 316, 48, 0, 0, 0, 94, 95, 96, 0, 0, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 0, 0, 0, 124, 0, 0, 127, 128, 129, 0, 0, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 134, 356, 0, 349, 0, 136, 0, 0, 0, 0, 139, 0, 0, 0, 0, 142, 0, 0, 437, 90, 91, 92, 0, 93, 0, 94, 95, 96, 0, 0, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 0, 118, 119, 120, 121, 124, 0, 122, 127, 128, 129, 7, 8, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 134, 135, 0, 349, 0, 136, 0, 0, 0, 0, 139, 0, 0, 626, 0, 142, 0, 627, 533, 16, 17, 534, 19, 20, 535, 22, 536, 24, 0, 25, 0, 0, 28, 29, 0, 31, 32, 33, 0, 0, 0, 36, 0, 0, 0, 0, 0, 0, 123, 0, 0, 0, 0, 0, 124, 125, 126, 127, 128, 129, 0, 0, 0, 0, 130, 131, 132, 133, 0, 53, 54, 55, 0, 0, 0, 0, 0, 134, 135, 0, 0, 0, 136, 0, 137, 138, 0, 139, 0, 140, 0, 141, 142, 0, 143, 90, 222, 223, 0, 0, 0, 94, 95, 96, 0, 0, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 0, 0, 801, 0, 0, 0, 0, 0, 0, 0, 0, 0, 224, 0, 0, 225, 7, 8, 226, 0, 227, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 37, 38, 39, 40, 41, 0, 0, 0, 0, 0, 45, 0, 0, 48, 0, 533, 16, 17, 534, 19, 20, 535, 22, 536, 24, 0, 25, 0, 0, 28, 29, 0, 31, 32, 33, 0, 0, 0, 36, 0, 0, 0, 0, 0, 0, 0, 124, 0, 0, 127, 128, 129, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 53, 54, 55, 134, 228, 0, 0, 0, 136, 0, 0, 0, 0, 139, 0, 90, 222, 1061, 142, 0, 229, 94, 95, 96, 0, 0, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 224, 829, 0, 225, 7, 8, 226, 0, 227, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 37, 38, 39, 40, 41, 0, 0, 0, 0, 0, 45, 0, 0, 48, 0, 533, 16, 17, 534, 19, 20, 535, 22, 536, 24, 0, 25, 0, 0, 28, 29, 0, 31, 32, 33, 0, 0, 0, 36, 0, 0, 0, 0, 0, 0, 0, 124, 0, 0, 127, 128, 129, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 53, 54, 55, 134, 228, 0, 0, 0, 136, 0, 0, 0, 0, 139, 0, 90, 222, 0, 142, 0, 1062, 94, 95, 96, 0, 0, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 224, 1312, 0, 225, 7, 8, 226, 0, 227, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 37, 38, 39, 40, 41, 0, 0, 0, 0, 0, 45, 0, 0, 48, 0, 533, 16, 17, 534, 19, 20, 535, 22, 536, 24, 0, 25, 0, 0, 28, 29, 0, 31, 32, 33, 0, 0, 0, 36, 901, 0, 0, 0, 0, 0, 0, 124, 0, 0, 127, 128, 129, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 53, 54, 55, 134, 228, 0, 0, 0, 136, 0, 0, 944, 0, 139, 0, 90, 222, 0, 142, 0, 229, 94, 95, 96, 0, 0, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 0, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 224, 1368, 0, 225, 349, 0, 226, 0, 227, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 37, 38, 39, 40, 41, 0, 0, 0, 0, 0, 45, 0, 0, 48, 0, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 997, 0, 0, 0, 0, 0, 0, 0, 124, 0, 0, 127, 128, 129, 0, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 134, 356, 349, 0, 0, 136, 0, 0, 1189, 0, 139, 0, 90, 222, 0, 142, 0, 434, 94, 95, 96, 0, 0, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 224, 0, 0, 225, 0, 0, 226, 0, 227, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 37, 38, 39, 40, 41, 0, 0, 0, 0, 0, 45, 0, 0, 48, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 1208, 0, 0, 0, 0, 0, 0, 0, 124, 0, 0, 127, 128, 129, 0, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 134, 356, 349, 0, 0, 136, 0, 0, 1235, 0, 139, 0, 90, 222, 0, 142, 0, 633, 94, 95, 96, 0, 0, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 224, 0, 0, 225, 0, 0, 226, 0, 227, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 37, 38, 39, 40, 41, 0, 0, 0, 0, 0, 45, 0, 0, 48, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 124, 0, 0, 127, 128, 129, 0, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 134, 228, 349, 0, 0, 136, 0, 0, 1318, 0, 139, 0, 90, 222, 0, 142, 0, 1065, 94, 95, 96, 0, 0, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 224, 0, 0, 225, 0, 0, 226, 0, 227, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 37, 38, 39, 40, 41, 1366, 0, 0, 90, 316, 45, 0, 0, 48, 94, 95, 96, 0, 0, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 439, 0, 0, 0, 0, 0, 124, 0, 0, 127, 128, 129, 0, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 404, 1156, 349, 0, 0, 136, 0, 0, 0, 0, 406, 643, 90, 316, 264, 142, 0, 196, 94, 95, 96, 0, 0, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 0, 118, 119, 120, 121, 0, 0, 122, 0, 124, 0, 0, 127, 128, 129, 0, 0, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 404, 405, 0, 349, 0, 136, 0, 0, 0, 0, 406, 0, 0, 0, 0, 142, 0, 196, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 559, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 124, 125, 126, 127, 128, 129, 0, 0, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 134, 135, 0, 349, 0, 136, 0, 0, 0, 0, 139, 739, 90, 222, 0, 142, 0, 1171, 94, 95, 96, 0, 0, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 224, 0, 0, 225, 0, 0, 226, 0, 227, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 37, 38, 39, 40, 41, 0, 822, 0, 90, 316, 45, 0, 0, 48, 94, 95, 96, 0, 0, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 960, 0, 0, 0, 0, 0, 124, 0, 0, 127, 128, 129, 0, 0, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 134, 356, 0, 349, 0, 136, 90, 316, 264, 0, 139, 0, 94, 95, 96, 142, 0, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 0, 118, 119, 120, 121, 0, 0, 122, 0, 0, 0, 0, 0, 0, 0, 124, 0, 0, 127, 128, 129, 0, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 134, 135, 349, 0, 0, 136, 0, 0, 0, 0, 139, 0, 0, 0, 0, 142, 0, 0, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 0, 124, 125, 126, 127, 128, 129, -4, 1, 0, 0, -4, 0, 0, 0, 0, 0, 0, 0, -4, -4, 0, 0, 0, 134, 135, 0, 0, 0, 136, 0, 0, 0, 0, 139, 0, 0, 0, 0, 142, 0, 0, -4, 0, 0, 0, 0, -4, -4, 0, -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, 0, -4, -4, -4, -4, -4, -4, -4, -4, 0, 0, -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, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 9, 0, 0, 0, 0, 10, 11, 762, 12, 13, 14, 0, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 0, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 0, 35, 36, 37, 38, 39, 40, 41, 42, 0, 0, 43, 44, 45, 46, 47, 48, 0, 0, 49, 50, 906, 0, 0, 51, 7, 8, 0, 0, 52, 53, 54, 55, 0, 0, 56, 0, 57, 0, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 0, 0, 0, 0, 0, 0, 68, 69, 70, 71, 0, 533, 16, 17, 534, 19, 20, 535, 22, 536, 24, 0, 25, 0, 0, 28, 29, 0, 31, 32, 33, 0, 0, 0, 36, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 0, 0, 53, 54, 55, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 1137, 0, 1138, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 1166, 0, 1167, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 1260, 0, 1261, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 0, 0, 804, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 0, 0, 820, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 0, 0, 844, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 0, 0, 923, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 0, 0, 1135, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 0, 0, 1153, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 0, 0, 1195, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 0, 0, 1196, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 0, 0, 1197, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 0, 0, 1198, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 0, 0, 1230, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 0, 0, 1276, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 0, 0, 1282, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 0, 0, 1283, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 0, 0, 1300, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 0, 0, 1303, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 0, 0, 1306, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 0, 0, 1330, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 0, 0, 1333, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 0, 0, 1360, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 0, 0, 1362, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 0, 0, 1364, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 0, 0, 1377, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 0, 591, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 0, 1207, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 521, 0, 0, 0, 0, 595, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 557, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 595, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 596, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 640, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 691, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 692, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 705, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 706, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 707, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 708, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 709, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 710, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 789, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 790, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 791, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 886, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 921, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 922, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 959, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 1087, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 1088, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 1107, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 1243, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 1244, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 1250, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 1326, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 1329, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 525, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 645, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 655, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 670, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 672, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 674, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 676, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 678, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 680, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 682, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 684, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 686, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 688, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 690, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 694, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 696, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 698, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 700, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 702, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 704, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 812, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 813, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 816, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 817, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 819, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 840, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 965, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 980, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 982, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 984, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 986, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 1100, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 0, 0, 1219, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 521, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 558, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 562, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 563, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 565, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 567, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 568, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 571, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 572, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 636, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 637, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 638, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 644, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 669, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 671, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 673, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 675, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 677, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 679, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 681, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 683, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 685, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 687, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 689, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 693, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 695, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 697, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 699, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 701, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 703, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 751, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 756, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 761, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 763, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 764, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 770, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 777, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 778, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 779, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 803, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 805, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 806, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 807, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 811, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 979, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 981, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 983, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 985, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 989, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 1136, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 1152, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 1170, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 1325, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349, 0, 1375, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 0, 0, 0, 0, 349 }; static const yytype_int16 yycheck[] = { 6, 204, 255, 256, 257, 6, 324, 6, 398, 399, 6, 4, 215, 7, 4, 6, 0, 4, 6, 4, 6, 147, 148, 4, 7, 4, 6, 5, 154, 150, 5, 152, 4, 6, 3, 732, 78, 78, 78, 5, 4, 6, 140, 141, 4, 78, 6, 6, 251, 1067, 253, 13, 150, 140, 141, 308, 309, 310, 311, 157, 313, 314, 315, 798, 150, 150, 152, 3, 4, 4, 157, 6, 157, 9, 10, 11, 147, 148, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 150, 93, 94, 95, 96, 53, 7, 157, 93, 47, 150, 150, 50, 47, 150, 53, 157, 157, 157, 91, 140, 141, 111, 103, 104, 157, 150, 91, 152, 134, 135, 136, 140, 141, 139, 140, 156, 130, 158, 144, 103, 104, 140, 141, 150, 150, 6, 137, 153, 157, 137, 157, 151, 158, 159, 160, 161, 156, 163, 164, 165, 166, 157, 168, 169, 170, 158, 1184, 157, 147, 148, 157, 154, 157, 152, 143, 154, 873, 157, 150, 157, 159, 117, 157, 189, 120, 121, 122, 6, 1206, 195, 196, 157, 152, 6, 140, 141, 140, 141, 204, 140, 141, 140, 141, 938, 140, 141, 409, 525, 6, 145, 156, 150, 158, 157, 150, 156, 150, 153, 157, 155, 150, 157, 228, 229, 7, 127, 128, 129, 130, 150, 150, 237, 238, 239, 150, 241, 157, 68, 244, 245, 150, 247, 152, 47, 150, 448, 50, 802, 79, 53, 150, 55, 151, 259, 85, 86, 57, 156, 89, 90, 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, 50, 1000, 6, 53, 312, 55, 140, 141, 1328, 53, 8, 4, 38, 39, 322, 41, 177, 178, 179, 53, 50, 324, 156, 53, 158, 158, 53, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 127, 128, 129, 130, 151, 159, 356, 210, 55, 156, 164, 53, 362, 5, 168, 150, 51, 367, 6, 7, 147, 148, 372, 373, 374, 375, 61, 154, 8, 379, 140, 141, 1394, 151, 384, 385, 386, 50, 156, 584, 585, 586, 77, 4, 36, 37, 38, 39, 157, 157, 42, 401, 402, 403, 404, 405, 406, 150, 655, 152, 410, 411, 412, 413, 414, 140, 141, 417, 151, 53, 420, 421, 7, 156, 424, 425, 426, 427, 428, 7, 430, 156, 50, 53, 434, 398, 399, 50, 150, 439, 440, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 150, 150, 152, 152, 149, 71, 72, 73, 74, 464, 4, 713, 467, 158, 4, 81, 466, 719, 84, 192, 193, 118, 119, 159, 4, 140, 141, 200, 164, 140, 141, 204, 168, 150, 140, 141, 142, 143, 144, 6, 742, 156, 51, 149, 1190, 156, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 68, 152, 150, 322, 149, 520, 150, 4, 140, 141, 4, 79, 527, 158, 150, 525, 152, 85, 86, 150, 1264, 89, 90, 1267, 156, 150, 1270, 127, 128, 129, 130, 526, 228, 229, 127, 128, 129, 130, 865, 866, 150, 556, 557, 150, 559, 560, 157, 147, 148, 140, 141, 140, 141, 150, 147, 148, 150, 7, 573, 140, 141, 68, 150, 578, 152, 156, 150, 156, 583, 584, 585, 586, 79, 150, 150, 156, 591, 150, 85, 86, 595, 596, 89, 90, 140, 141, 601, 150, 583, 584, 585, 586, 150, 4, 152, 140, 141, 4, 5, 614, 156, 616, 171, 6, 1348, 424, 425, 6, 177, 178, 179, 156, 627, 6, 150, 434, 152, 5, 633, 188, 140, 141, 191, 140, 141, 640, 322, 642, 643, 36, 37, 38, 39, 648, 1378, 42, 156, 1381, 150, 156, 1384, 210, 211, 1387, 50, 655, 1045, 53, 150, 55, 1214, 158, 1216, 8, 1218, 150, 140, 141, 140, 141, 356, 147, 148, 396, 397, 1409, 152, 1411, 154, 1413, 157, 404, 156, 159, 156, 150, 691, 692, 150, 150, 140, 141, 150, 150, 140, 141, 150, 140, 141, 4, 705, 706, 707, 708, 709, 710, 156, 712, 4, 5, 156, 150, 717, 156, 150, 157, 142, 143, 144, 157, 725, 118, 119, 149, 6, 157, 12, 13, 140, 141, 735, 736, 737, 738, 739, 150, 150, 152, 424, 425, 36, 37, 38, 39, 156, 150, 42, 556, 434, 6, 147, 148, 152, 156, 440, 158, 1008, 154, 150, 1313, 152, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 150, 58, 152, 5, 61, 62, 157, 64, 65, 66, 150, 591, 152, 70, 157, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 150, 150, 152, 152, 149, 1359, 151, 1361, 150, 1363, 152, 152, 98, 99, 100, 1369, 68, 822, 627, 819, 152, 1210, 118, 119, 633, 5, 150, 79, 152, 150, 150, 152, 152, 85, 86, 5, 154, 89, 90, 6, 6, 846, 847, 1397, 156, 1399, 158, 1401, 157, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 106, 6, 6, 866, 149, 68, 874, 556, 594, 158, 559, 560, 156, 68, 158, 156, 79, 158, 886, 6, 152, 607, 85, 86, 79, 154, 89, 90, 68, 6, 85, 86, 4, 157, 89, 90, 152, 6, 154, 79, 712, 149, 591, 158, 7, 85, 86, 152, 157, 89, 90, 158, 920, 921, 922, 156, 156, 158, 158, 7, 7, 929, 930, 735, 736, 737, 738, 7, 156, 937, 158, 156, 53, 158, 55, 147, 148, 945, 627, 156, 152, 158, 154, 150, 633, 157, 156, 159, 158, 150, 150, 959, 960, 961, 156, 158, 158, 156, 7, 158, 522, 523, 68, 158, 156, 973, 158, 156, 971, 158, 978, 150, 156, 79, 158, 156, 151, 158, 158, 85, 86, 6, 6, 89, 90, 993, 157, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 7, 7, 1011, 992, 149, 156, 103, 158, 1017, 1018, 151, 151, 4, 1022, 6, 151, 579, 1223, 745, 156, 1029, 158, 712, 156, 156, 158, 158, 590, 6, 156, 1039, 158, 1041, 156, 151, 158, 156, 156, 158, 158, 156, 156, 158, 1052, 156, 735, 736, 737, 738, 151, 68, 158, 1041, 1062, 4, 156, 1065, 158, 151, 68, 1069, 79, 789, 790, 791, 151, 156, 85, 86, 1078, 79, 89, 90, 1045, 68, 153, 85, 86, 1087, 1088, 89, 90, 68, 7, 156, 79, 158, 106, 156, 1078, 158, 85, 86, 79, 68, 89, 90, 7, 1107, 85, 86, 7, 7, 89, 90, 79, 106, 7, 1314, 68, 7, 85, 86, 106, 7, 89, 90, 156, 1374, 158, 79, 156, 156, 158, 158, 7, 85, 86, 1137, 4, 89, 90, 945, 156, 156, 158, 158, 6, 154, 6, 158, 156, 6, 158, 158, 1154, 158, 1156, 1404, 158, 1406, 7, 7, 7, 4, 154, 7, 1166, 7, 1168, 7, 7, 1171, 150, 158, 150, 157, 1423, 6, 6, 6, 1180, 158, 153, 6, 6, 1185, 7, 6, 152, 137, 53, 7, 7, 158, 55, 749, 750, 7, 752, 7, 754, 755, 7, 7, 758, 759, 6, 1207, 158, 7, 7, 151, 151, 1213, 151, 1215, 151, 1217, 7, 937, 7, 6, 4, 4, 157, 150, 1226, 6, 157, 7, 6, 1231, 136, 137, 138, 139, 140, 141, 142, 143, 144, 7, 7, 1243, 1244, 149, 7, 1210, 6, 6, 1250, 6, 53, 6, 6, 4, 1256, 4, 4, 157, 1260, 6, 157, 157, 945, 157, 8, 4, 6, 150, 824, 825, 826, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 157, 7, 1289, 154, 149, 151, 6, 1012, 151, 5, 61, 6, 6, 157, 1301, 6, 157, 1304, 157, 157, 1307, 6, 6, 4, 1311, 7, 6, 157, 1315, 7, 1317, 7, 7, 7, 152, 6, 6, 157, 157, 1326, 157, 1046, 1329, 1048, 6, 1050, 153, 6, 102, 6, 891, 7, 6, 154, 4, 6, 897, 1062, 6, 1064, 1065, 6, 903, 904, 905, 6, 6, 6, 909, 6, 6, 6, 5, 914, 915, 916, 6, 6, 106, 6, 1171, 6, 6, 6, 1371, 6, 6, 6, 929, 156, 6, 6, 4, 157, 1062, 156, 156, 1065, 939, 156, 156, 942, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 1207, 6, 12, 13, 149, 6, 5, 7, 6, 966, 967, 968, 969, 6, 6, 154, 6, 51, 6, 1226, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 6, 6, 991, 6, 149, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 6, 58, 157, 7, 61, 62, 157, 64, 65, 66, 6, 6, 158, 70, 6, 157, 101, 157, 6, 6, 6, 157, 157, 6, 104, 1156, 6, 157, 1032, 1033, 1034, 1035, 6, 6, 158, 158, 6, 158, 6, 157, 1171, 98, 99, 100, 68, 1213, 158, 1215, 158, 1217, 157, 6, 6, 6, 6, 6, 6, 1225, 6, 1227, 6, 1315, 6, 1317, 6, 6, 6, 6, 6, 1073, 6, 6, 6, 6, 6, 6, 1207, 6, 6, 6, 6, 158, 6, 157, 157, 1089, 157, 157, 157, 157, 157, 157, 157, 6, 6, 1226, 6, 6, 6, 6, 6, 158, 885, 3, 1289, 890, 3, 3, 4, -1, 378, -1, -1, 9, 10, 11, 996, 1371, 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, 1151, -1, 1317, -1, 47, -1, -1, 50, 12, 13, 53, -1, 55, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 1175, 1176, 1177, 1178, 71, 72, 73, 74, 75, -1, -1, -1, -1, 1315, 81, 1317, -1, 84, -1, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, -1, 58, -1, -1, 61, 62, -1, 64, 65, 66, -1, -1, -1, 70, -1, -1, -1, -1, 1222, -1, -1, 117, -1, -1, 120, 121, 122, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 1371, 98, 99, 100, 140, 141, -1, -1, -1, 145, -1, -1, -1, -1, 150, -1, -1, -1, -1, 155, 6, 157, 158, 3, 4, -1, -1, -1, 1272, 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, 158, -1, -1, -1, -1, -1, 47, -1, -1, 50, -1, -1, 53, -1, 55, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 71, 72, 73, 74, 75, -1, -1, -1, 6, -1, 81, 3, 4, 84, -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, 117, -1, -1, 120, 121, 122, -1, -1, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, 140, 141, -1, 149, -1, 145, -1, -1, -1, -1, 150, -1, -1, -1, -1, 155, -1, -1, 158, 3, 4, 5, -1, 7, -1, 9, 10, 11, -1, -1, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, -1, 36, 37, 38, 39, 117, -1, 42, 120, 121, 122, 12, 13, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, 140, 141, -1, 149, -1, 145, -1, -1, -1, -1, 150, -1, -1, 153, -1, 155, -1, 157, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, -1, 58, -1, -1, 61, 62, -1, 64, 65, 66, -1, -1, -1, 70, -1, -1, -1, -1, -1, -1, 111, -1, -1, -1, -1, -1, 117, 118, 119, 120, 121, 122, -1, -1, -1, -1, 127, 128, 129, 130, -1, 98, 99, 100, -1, -1, -1, -1, -1, 140, 141, -1, -1, -1, 145, -1, 147, 148, -1, 150, -1, 152, -1, 154, 155, -1, 157, 3, 4, 5, -1, -1, -1, 9, 10, 11, -1, -1, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, -1, -1, 158, -1, -1, -1, -1, -1, -1, -1, -1, -1, 47, -1, -1, 50, 12, 13, 53, -1, 55, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 71, 72, 73, 74, 75, -1, -1, -1, -1, -1, 81, -1, -1, 84, -1, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, -1, 58, -1, -1, 61, 62, -1, 64, 65, 66, -1, -1, -1, 70, -1, -1, -1, -1, -1, -1, -1, 117, -1, -1, 120, 121, 122, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 98, 99, 100, 140, 141, -1, -1, -1, 145, -1, -1, -1, -1, 150, -1, 3, 4, 5, 155, -1, 157, 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, 47, 158, -1, 50, 12, 13, 53, -1, 55, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 71, 72, 73, 74, 75, -1, -1, -1, -1, -1, 81, -1, -1, 84, -1, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, -1, 58, -1, -1, 61, 62, -1, 64, 65, 66, -1, -1, -1, 70, -1, -1, -1, -1, -1, -1, -1, 117, -1, -1, 120, 121, 122, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 98, 99, 100, 140, 141, -1, -1, -1, 145, -1, -1, -1, -1, 150, -1, 3, 4, -1, 155, -1, 157, 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, 47, 158, -1, 50, 12, 13, 53, -1, 55, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 71, 72, 73, 74, 75, -1, -1, -1, -1, -1, 81, -1, -1, 84, -1, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, -1, 58, -1, -1, 61, 62, -1, 64, 65, 66, -1, -1, -1, 70, 6, -1, -1, -1, -1, -1, -1, 117, -1, -1, 120, 121, 122, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 98, 99, 100, 140, 141, -1, -1, -1, 145, -1, -1, 6, -1, 150, -1, 3, 4, -1, 155, -1, 157, 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, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 47, 158, -1, 50, 149, -1, 53, -1, 55, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 71, 72, 73, 74, 75, -1, -1, -1, -1, -1, 81, -1, -1, 84, -1, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, -1, 6, -1, -1, -1, -1, -1, -1, -1, 117, -1, -1, 120, 121, 122, -1, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, 140, 141, 149, -1, -1, 145, -1, -1, 6, -1, 150, -1, 3, 4, -1, 155, -1, 157, 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, 47, -1, -1, 50, -1, -1, 53, -1, 55, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 71, 72, 73, 74, 75, -1, -1, -1, -1, -1, 81, -1, -1, 84, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, -1, -1, 6, -1, -1, -1, -1, -1, -1, -1, 117, -1, -1, 120, 121, 122, -1, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, 140, 141, 149, -1, -1, 145, -1, -1, 6, -1, 150, -1, 3, 4, -1, 155, -1, 157, 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, 47, -1, -1, 50, -1, -1, 53, -1, 55, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 71, 72, 73, 74, 75, -1, -1, -1, -1, -1, 81, -1, -1, 84, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 117, -1, -1, 120, 121, 122, -1, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, 140, 141, 149, -1, -1, 145, -1, -1, 6, -1, 150, -1, 3, 4, -1, 155, -1, 157, 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, 47, -1, -1, 50, -1, -1, 53, -1, 55, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 71, 72, 73, 74, 75, 6, -1, -1, 3, 4, 81, -1, -1, 84, 9, 10, 11, -1, -1, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 8, -1, -1, -1, -1, -1, 117, -1, -1, 120, 121, 122, -1, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, 140, 141, 149, -1, -1, 145, -1, -1, -1, -1, 150, 8, 3, 4, 5, 155, -1, 157, 9, 10, 11, -1, -1, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, -1, 36, 37, 38, 39, -1, -1, 42, -1, 117, -1, -1, 120, 121, 122, -1, -1, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, 140, 141, -1, 149, -1, 145, -1, -1, -1, -1, 150, -1, -1, -1, -1, 155, -1, 157, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 117, 118, 119, 120, 121, 122, -1, -1, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, 140, 141, -1, 149, -1, 145, -1, -1, -1, -1, 150, 8, 3, 4, -1, 155, -1, 157, 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, 47, -1, -1, 50, -1, -1, 53, -1, 55, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 71, 72, 73, 74, 75, -1, 8, -1, 3, 4, 81, -1, -1, 84, 9, 10, 11, -1, -1, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 8, -1, -1, -1, -1, -1, 117, -1, -1, 120, 121, 122, -1, -1, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, 140, 141, -1, 149, -1, 145, 3, 4, 5, -1, 150, -1, 9, 10, 11, 155, -1, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, -1, 36, 37, 38, 39, -1, -1, 42, -1, -1, -1, -1, -1, -1, -1, 117, -1, -1, 120, 121, 122, -1, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, 140, 141, 149, -1, -1, 145, -1, -1, -1, -1, 150, -1, -1, -1, -1, 155, -1, -1, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, -1, -1, -1, -1, 117, 118, 119, 120, 121, 122, 0, 1, -1, -1, 4, -1, -1, -1, -1, -1, -1, -1, 12, 13, -1, -1, -1, 140, 141, -1, -1, -1, 145, -1, -1, -1, -1, 150, -1, -1, -1, -1, 155, -1, -1, 35, -1, -1, -1, -1, 40, 41, -1, 43, 44, 45, -1, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, -1, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, -1, 69, 70, 71, 72, 73, 74, 75, 76, -1, -1, 79, 80, 81, 82, 83, 84, -1, -1, 87, 88, -1, -1, -1, 92, -1, -1, -1, -1, 97, 98, 99, 100, -1, -1, 103, -1, 105, -1, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, -1, -1, 4, -1, -1, -1, 123, 124, 125, 126, 12, 13, -1, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, 35, -1, -1, -1, -1, 40, 41, 158, 43, 44, 45, -1, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, -1, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, -1, 69, 70, 71, 72, 73, 74, 75, 76, -1, -1, 79, 80, 81, 82, 83, 84, -1, -1, 87, 88, 68, -1, -1, 92, 12, 13, -1, -1, 97, 98, 99, 100, -1, -1, 103, -1, 105, -1, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, -1, -1, -1, -1, -1, -1, 123, 124, 125, 126, -1, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, -1, 58, -1, -1, 61, 62, -1, 64, 65, 66, -1, -1, -1, 70, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, -1, -1, -1, -1, -1, 98, 99, 100, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, -1, -1, -1, 156, -1, 158, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, -1, -1, -1, 156, -1, 158, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, -1, -1, -1, 156, -1, 158, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, -1, -1, -1, -1, -1, 158, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, -1, -1, -1, -1, -1, 158, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, -1, -1, -1, -1, -1, 158, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, -1, -1, -1, -1, -1, 158, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, -1, -1, -1, -1, -1, 158, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, -1, -1, -1, -1, -1, 158, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, -1, -1, -1, -1, -1, 158, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, -1, -1, -1, -1, -1, 158, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, -1, -1, -1, -1, -1, 158, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, -1, -1, -1, -1, -1, 158, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, -1, -1, -1, -1, -1, 158, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, -1, -1, -1, -1, -1, 158, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, -1, -1, -1, -1, -1, 158, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, -1, -1, -1, -1, -1, 158, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, -1, -1, -1, -1, -1, 158, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, -1, -1, -1, -1, -1, 158, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, -1, -1, -1, -1, -1, 158, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, -1, -1, -1, -1, -1, 158, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, -1, -1, -1, -1, -1, 158, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, -1, -1, -1, -1, -1, 158, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, -1, -1, -1, -1, -1, 158, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, -1, -1, -1, -1, -1, 158, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, -1, -1, -1, -1, -1, 158, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, -1, -1, -1, -1, 157, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, -1, -1, -1, -1, 157, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, 151, -1, -1, -1, -1, 156, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, -1, -1, -1, 156, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, -1, -1, -1, 156, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, -1, -1, -1, 156, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, -1, -1, -1, 156, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, -1, -1, -1, 156, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, -1, -1, -1, 156, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, -1, -1, -1, 156, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, -1, -1, -1, 156, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, -1, -1, -1, 156, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, -1, -1, -1, 156, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, -1, -1, -1, 156, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, -1, -1, -1, 156, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, -1, -1, -1, 156, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, -1, -1, -1, 156, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, -1, -1, -1, 156, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, -1, -1, -1, 156, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, -1, -1, -1, 156, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, -1, -1, -1, 156, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, -1, -1, -1, 156, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, -1, -1, -1, 156, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, -1, -1, -1, 156, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, -1, -1, -1, 156, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, -1, -1, -1, 156, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, -1, -1, -1, 156, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, -1, -1, -1, 156, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, -1, -1, -1, 156, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, -1, -1, -1, 156, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, 153, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, 153, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, 153, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, 153, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, 153, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, 153, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, 153, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, 153, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, 153, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, 153, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, 153, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, 153, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, 153, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, 153, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, 153, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, 153, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, 153, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, 153, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, 153, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, 153, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, 153, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, 153, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, 153, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, 153, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, 153, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, 153, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, 153, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, 153, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, 153, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, 153, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, 153, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, 153, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, -1, -1, 153, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, 151, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, 151, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, 151, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, 151, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, 151, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, 151, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, 151, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, 151, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, 151, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, 151, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, 151, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, 151, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, 151, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, 151, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, 151, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, 151, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, 151, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, 151, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, 151, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, 151, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, 151, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, 151, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, 151, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, 151, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, 151, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, 151, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, 151, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, 151, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, 151, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, 151, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, 151, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, 151, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, 151, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, 151, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, 151, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, 151, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, 151, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, 151, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, 151, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, 151, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, 151, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, 151, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, 151, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, 151, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, 151, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, 151, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, 151, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, 151, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, 151, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, 151, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, 151, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, 151, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, 151, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149, -1, 151, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, -1, -1, -1, -1, 149 }; /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing symbol of state STATE-NUM. */ static const yytype_uint8 yystos[] = { 0, 1, 161, 162, 6, 0, 4, 12, 13, 35, 40, 41, 43, 44, 45, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 69, 70, 71, 72, 73, 74, 75, 76, 79, 80, 81, 82, 83, 84, 87, 88, 92, 97, 98, 99, 100, 103, 105, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 123, 124, 125, 126, 163, 165, 166, 184, 188, 193, 196, 197, 198, 199, 200, 201, 202, 222, 223, 224, 225, 226, 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, 111, 117, 118, 119, 120, 121, 122, 127, 128, 129, 130, 140, 141, 145, 147, 148, 150, 152, 154, 155, 157, 182, 183, 227, 228, 240, 13, 53, 150, 6, 157, 6, 6, 6, 6, 150, 157, 150, 150, 78, 150, 157, 150, 150, 78, 157, 150, 150, 57, 53, 53, 6, 53, 53, 50, 53, 55, 55, 47, 50, 53, 55, 50, 53, 55, 50, 53, 150, 50, 157, 140, 141, 150, 157, 229, 230, 229, 157, 47, 50, 53, 157, 229, 4, 51, 61, 77, 53, 53, 50, 4, 111, 157, 4, 6, 47, 50, 4, 4, 4, 5, 47, 50, 53, 55, 141, 157, 193, 202, 227, 232, 233, 234, 4, 150, 150, 150, 4, 157, 236, 4, 150, 150, 6, 152, 4, 4, 5, 157, 5, 157, 150, 150, 150, 150, 4, 152, 154, 159, 183, 157, 5, 240, 150, 152, 150, 152, 150, 152, 150, 152, 150, 152, 150, 152, 150, 152, 150, 152, 150, 152, 150, 152, 150, 152, 150, 152, 150, 152, 150, 152, 150, 152, 150, 152, 150, 152, 150, 152, 150, 152, 150, 152, 150, 152, 150, 150, 150, 150, 7, 150, 150, 150, 4, 227, 227, 227, 227, 153, 157, 227, 4, 103, 104, 4, 4, 193, 194, 195, 227, 6, 6, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 149, 6, 6, 227, 5, 227, 227, 141, 227, 234, 235, 227, 227, 150, 227, 235, 227, 227, 150, 235, 227, 227, 232, 150, 157, 150, 150, 233, 233, 233, 150, 189, 190, 191, 192, 150, 150, 150, 232, 227, 4, 232, 229, 229, 229, 227, 227, 140, 141, 157, 157, 229, 157, 157, 157, 140, 141, 150, 195, 229, 157, 150, 157, 150, 150, 150, 233, 232, 150, 4, 6, 152, 152, 195, 6, 157, 157, 152, 152, 152, 5, 157, 5, 5, 5, 157, 227, 234, 158, 235, 8, 142, 6, 6, 227, 227, 227, 154, 227, 157, 106, 227, 227, 227, 6, 6, 195, 6, 195, 4, 239, 240, 239, 239, 239, 152, 227, 4, 157, 167, 6, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 239, 239, 239, 239, 227, 239, 239, 239, 152, 151, 7, 130, 235, 153, 7, 182, 183, 154, 7, 152, 158, 47, 50, 53, 55, 188, 6, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 6, 151, 156, 156, 151, 142, 156, 158, 151, 151, 227, 151, 158, 151, 151, 227, 158, 151, 151, 7, 227, 227, 227, 227, 7, 7, 220, 220, 227, 150, 150, 150, 150, 227, 227, 227, 7, 157, 151, 6, 156, 156, 156, 229, 229, 194, 194, 156, 227, 227, 227, 227, 206, 156, 195, 227, 227, 227, 227, 227, 7, 221, 7, 227, 6, 227, 227, 158, 235, 235, 227, 227, 153, 157, 227, 227, 235, 158, 227, 157, 227, 234, 151, 151, 151, 103, 156, 195, 157, 8, 151, 153, 158, 158, 152, 154, 151, 151, 151, 151, 227, 153, 183, 227, 4, 93, 94, 95, 96, 158, 170, 174, 177, 179, 180, 151, 153, 151, 153, 151, 153, 151, 153, 151, 153, 151, 153, 151, 153, 151, 153, 151, 153, 151, 153, 151, 153, 156, 156, 151, 153, 151, 153, 151, 153, 151, 153, 151, 153, 151, 153, 156, 156, 156, 156, 156, 156, 151, 156, 156, 151, 151, 6, 156, 151, 156, 232, 232, 158, 7, 154, 182, 183, 240, 227, 6, 4, 4, 157, 237, 153, 157, 157, 157, 157, 8, 6, 137, 164, 235, 227, 7, 227, 234, 106, 7, 7, 151, 7, 106, 7, 7, 151, 106, 7, 7, 227, 151, 158, 151, 151, 227, 232, 4, 219, 6, 151, 185, 227, 240, 185, 185, 185, 151, 151, 151, 232, 235, 154, 229, 227, 227, 158, 158, 227, 156, 156, 156, 68, 79, 85, 86, 89, 90, 216, 217, 229, 158, 203, 151, 158, 151, 151, 151, 227, 6, 227, 151, 153, 153, 158, 158, 153, 153, 235, 153, 158, 158, 8, 235, 7, 7, 7, 154, 227, 158, 227, 227, 7, 154, 227, 4, 7, 7, 7, 7, 153, 154, 183, 239, 158, 171, 150, 150, 157, 181, 6, 227, 227, 227, 227, 227, 227, 227, 227, 235, 239, 227, 239, 6, 6, 153, 4, 103, 104, 227, 6, 6, 6, 7, 152, 236, 238, 6, 235, 235, 235, 235, 227, 137, 239, 151, 156, 229, 53, 232, 232, 7, 232, 53, 55, 232, 232, 7, 55, 232, 232, 6, 7, 7, 7, 7, 68, 218, 6, 7, 151, 151, 151, 151, 7, 7, 7, 6, 158, 4, 156, 156, 156, 158, 229, 229, 229, 4, 6, 157, 150, 6, 91, 6, 91, 158, 217, 156, 216, 7, 6, 7, 7, 7, 6, 157, 6, 6, 6, 53, 6, 6, 158, 227, 158, 232, 232, 232, 4, 156, 8, 8, 151, 4, 4, 153, 157, 157, 157, 157, 6, 4, 6, 150, 227, 227, 231, 232, 157, 151, 153, 151, 153, 151, 153, 151, 153, 151, 151, 151, 151, 182, 7, 182, 183, 154, 7, 6, 236, 227, 156, 158, 158, 158, 158, 158, 6, 6, 164, 227, 6, 157, 61, 187, 187, 232, 6, 157, 157, 6, 6, 232, 157, 6, 6, 5, 232, 232, 232, 4, 6, 232, 7, 7, 7, 7, 232, 232, 232, 7, 6, 7, 227, 227, 227, 157, 156, 158, 156, 158, 156, 158, 152, 227, 232, 227, 6, 6, 227, 229, 158, 5, 157, 232, 157, 157, 232, 157, 235, 157, 153, 6, 6, 102, 227, 227, 227, 6, 7, 154, 232, 232, 232, 232, 183, 168, 227, 156, 156, 156, 158, 169, 227, 232, 240, 227, 6, 4, 237, 6, 153, 236, 6, 6, 6, 6, 239, 156, 227, 229, 6, 6, 6, 227, 227, 6, 227, 5, 6, 6, 106, 186, 227, 6, 232, 232, 232, 232, 6, 4, 6, 6, 227, 227, 240, 158, 151, 156, 158, 194, 229, 6, 207, 229, 6, 208, 229, 6, 209, 227, 158, 156, 151, 158, 156, 6, 141, 229, 6, 229, 229, 6, 231, 158, 227, 232, 156, 158, 8, 158, 151, 157, 227, 240, 4, 156, 156, 156, 156, 151, 156, 227, 227, 232, 157, 156, 158, 6, 6, 6, 7, 6, 154, 6, 227, 158, 158, 158, 158, 5, 51, 6, 6, 6, 6, 6, 157, 157, 6, 6, 157, 227, 158, 156, 157, 156, 157, 156, 157, 153, 6, 232, 7, 157, 227, 156, 156, 156, 158, 6, 158, 101, 227, 227, 235, 6, 6, 232, 232, 232, 232, 172, 227, 156, 156, 231, 227, 6, 236, 104, 156, 6, 6, 6, 6, 6, 157, 231, 235, 194, 156, 158, 227, 229, 216, 227, 229, 216, 227, 229, 216, 6, 156, 158, 232, 195, 158, 229, 235, 229, 6, 227, 158, 158, 158, 158, 158, 158, 158, 157, 227, 227, 158, 6, 227, 227, 158, 158, 158, 227, 158, 156, 158, 158, 156, 158, 158, 156, 158, 232, 6, 68, 158, 204, 157, 156, 158, 156, 6, 6, 6, 6, 6, 6, 169, 151, 156, 6, 157, 156, 158, 6, 6, 158, 6, 210, 227, 6, 6, 211, 227, 6, 6, 212, 227, 6, 158, 227, 216, 195, 235, 6, 229, 235, 158, 175, 227, 231, 227, 157, 158, 157, 158, 157, 158, 6, 6, 158, 158, 205, 158, 156, 158, 6, 157, 151, 158, 158, 216, 6, 213, 216, 6, 214, 216, 6, 215, 216, 6, 235, 6, 173, 239, 178, 157, 6, 158, 157, 158, 157, 158, 157, 158, 158, 156, 158, 157, 231, 6, 216, 6, 216, 6, 216, 6, 239, 6, 176, 239, 158, 158, 158, 158, 156, 158, 6, 6, 6, 6, 239, 6 }; #define yyerrok (yyerrstatus = 0) #define yyclearin (yychar = YYEMPTY) #define YYEMPTY (-2) #define YYEOF 0 #define YYACCEPT goto yyacceptlab #define YYABORT goto yyabortlab #define YYERROR goto yyerrorlab /* Like YYERROR except do call yyerror. This remains here temporarily to ease the transition to the new meaning of YYERROR, for GCC. Once GCC version 2 has supplanted version 1, this can go. */ #define YYFAIL goto yyerrlab #define YYRECOVERING() (!!yyerrstatus) #define YYBACKUP(Token, Value) \ do \ if (yychar == YYEMPTY && yylen == 1) \ { \ yychar = (Token); \ yylval = (Value); \ yytoken = YYTRANSLATE (yychar); \ YYPOPSTACK (1); \ goto yybackup; \ } \ else \ { \ yyerror (YY_("syntax error: cannot back up")); \ YYERROR; \ } \ while (YYID (0)) #define YYTERROR 1 #define YYERRCODE 256 /* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N]. If N is 0, then set CURRENT to the empty location which ends the previous symbol: RHS[0] (always defined). */ #define YYRHSLOC(Rhs, K) ((Rhs)[K]) #ifndef YYLLOC_DEFAULT # define YYLLOC_DEFAULT(Current, Rhs, N) \ do \ if (YYID (N)) \ { \ (Current).first_line = YYRHSLOC (Rhs, 1).first_line; \ (Current).first_column = YYRHSLOC (Rhs, 1).first_column; \ (Current).last_line = YYRHSLOC (Rhs, N).last_line; \ (Current).last_column = YYRHSLOC (Rhs, N).last_column; \ } \ else \ { \ (Current).first_line = (Current).last_line = \ YYRHSLOC (Rhs, 0).last_line; \ (Current).first_column = (Current).last_column = \ YYRHSLOC (Rhs, 0).last_column; \ } \ while (YYID (0)) #endif /* YY_LOCATION_PRINT -- Print the location on the stream. This macro was not mandated originally: define only if we know we won't break user code: when these are the locations we know. */ #ifndef YY_LOCATION_PRINT # if YYLTYPE_IS_TRIVIAL # define YY_LOCATION_PRINT(File, Loc) \ fprintf (File, "%d.%d-%d.%d", \ (Loc).first_line, (Loc).first_column, \ (Loc).last_line, (Loc).last_column) # else # define YY_LOCATION_PRINT(File, Loc) ((void) 0) # endif #endif /* YYLEX -- calling `yylex' with the right arguments. */ #ifdef YYLEX_PARAM # define YYLEX yylex (YYLEX_PARAM) #else # define YYLEX yylex () #endif /* Enable debugging if requested. */ #if YYDEBUG # ifndef YYFPRINTF # include <stdio.h> /* INFRINGES ON USER NAME SPACE */ # define YYFPRINTF fprintf # endif # define YYDPRINTF(Args) \ do { \ if (yydebug) \ YYFPRINTF Args; \ } while (YYID (0)) # define YY_SYMBOL_PRINT(Title, Type, Value, Location) \ do { \ if (yydebug) \ { \ YYFPRINTF (stderr, "%s ", Title); \ yy_symbol_print (stderr, \ Type, Value); \ YYFPRINTF (stderr, "\n"); \ } \ } while (YYID (0)) /*--------------------------------. | Print this symbol on YYOUTPUT. | `--------------------------------*/ /*ARGSUSED*/ #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) static void yy_symbol_value_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep) #else static void yy_symbol_value_print (yyoutput, yytype, yyvaluep) FILE *yyoutput; int yytype; YYSTYPE const * const yyvaluep; #endif { if (!yyvaluep) return; # ifdef YYPRINT if (yytype < YYNTOKENS) YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep); # else YYUSE (yyoutput); # endif switch (yytype) { default: break; } } /*--------------------------------. | Print this symbol on YYOUTPUT. | `--------------------------------*/ #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) static void yy_symbol_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep) #else static void yy_symbol_print (yyoutput, yytype, yyvaluep) FILE *yyoutput; int yytype; YYSTYPE const * const yyvaluep; #endif { if (yytype < YYNTOKENS) YYFPRINTF (yyoutput, "token %s (", yytname[yytype]); else YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]); yy_symbol_value_print (yyoutput, yytype, yyvaluep); YYFPRINTF (yyoutput, ")"); } /*------------------------------------------------------------------. | yy_stack_print -- Print the state stack from its BOTTOM up to its | | TOP (included). | `------------------------------------------------------------------*/ #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) static void yy_stack_print (yytype_int16 *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 1455 of yacc.c */ #line 161 "Gmsh.y" { yyerrok; return 1; ;} break; case 6: /* Line 1455 of yacc.c */ #line 172 "Gmsh.y" { return 1; ;} break; case 7: /* Line 1455 of yacc.c */ #line 173 "Gmsh.y" { return 1; ;} break; case 8: /* Line 1455 of yacc.c */ #line 174 "Gmsh.y" { return 1; ;} break; case 9: /* Line 1455 of yacc.c */ #line 175 "Gmsh.y" { return 1; ;} break; case 10: /* Line 1455 of yacc.c */ #line 176 "Gmsh.y" { List_Delete((yyvsp[(1) - (1)].l)); return 1; ;} break; case 11: /* Line 1455 of yacc.c */ #line 177 "Gmsh.y" { return 1; ;} break; case 12: /* Line 1455 of yacc.c */ #line 178 "Gmsh.y" { return 1; ;} break; case 13: /* Line 1455 of yacc.c */ #line 179 "Gmsh.y" { return 1; ;} break; case 14: /* Line 1455 of yacc.c */ #line 180 "Gmsh.y" { List_Delete((yyvsp[(1) - (1)].l)); return 1; ;} break; case 15: /* Line 1455 of yacc.c */ #line 181 "Gmsh.y" { return 1; ;} break; case 16: /* Line 1455 of yacc.c */ #line 182 "Gmsh.y" { return 1; ;} break; case 17: /* Line 1455 of yacc.c */ #line 183 "Gmsh.y" { return 1; ;} break; case 18: /* Line 1455 of yacc.c */ #line 184 "Gmsh.y" { return 1; ;} break; case 19: /* Line 1455 of yacc.c */ #line 185 "Gmsh.y" { return 1; ;} break; case 20: /* Line 1455 of yacc.c */ #line 186 "Gmsh.y" { return 1; ;} break; case 21: /* Line 1455 of yacc.c */ #line 187 "Gmsh.y" { return 1; ;} break; case 22: /* Line 1455 of yacc.c */ #line 188 "Gmsh.y" { return 1; ;} break; case 23: /* Line 1455 of yacc.c */ #line 193 "Gmsh.y" { (yyval.c) = (char*)"w"; ;} break; case 24: /* Line 1455 of yacc.c */ #line 197 "Gmsh.y" { (yyval.c) = (char*)"a"; ;} break; case 25: /* Line 1455 of yacc.c */ #line 204 "Gmsh.y" { Msg::Direct((yyvsp[(3) - (5)].c)); Free((yyvsp[(3) - (5)].c)); ;} break; case 26: /* Line 1455 of yacc.c */ #line 209 "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 1455 of yacc.c */ #line 223 "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 1455 of yacc.c */ #line 236 "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 1455 of yacc.c */ #line 264 "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 1455 of yacc.c */ #line 278 "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 1455 of yacc.c */ #line 289 "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 1455 of yacc.c */ #line 303 "Gmsh.y" { #if defined(HAVE_POST) ViewData = new PViewDataList(); #endif ;} break; case 38: /* Line 1455 of yacc.c */ #line 317 "Gmsh.y" { ViewCoord.push_back((yyvsp[(1) - (1)].d)); ;} break; case 39: /* Line 1455 of yacc.c */ #line 319 "Gmsh.y" { ViewCoord.push_back((yyvsp[(3) - (3)].d)); ;} break; case 40: /* Line 1455 of yacc.c */ #line 324 "Gmsh.y" { if(ViewValueList) ViewValueList->push_back((yyvsp[(1) - (1)].d)); ;} break; case 41: /* Line 1455 of yacc.c */ #line 326 "Gmsh.y" { if(ViewValueList) ViewValueList->push_back((yyvsp[(3) - (3)].d)); ;} break; case 42: /* Line 1455 of yacc.c */ #line 331 "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 1455 of yacc.c */ #line 435 "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 1455 of yacc.c */ #line 445 "Gmsh.y" { #if defined(HAVE_POST) if(ViewValueList) (*ViewNumList)++; #endif ;} break; case 45: /* Line 1455 of yacc.c */ #line 454 "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 1455 of yacc.c */ #line 461 "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 1455 of yacc.c */ #line 471 "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 1455 of yacc.c */ #line 480 "Gmsh.y" { #if defined(HAVE_POST) ViewData->NbT2++; #endif ;} break; case 49: /* Line 1455 of yacc.c */ #line 489 "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 1455 of yacc.c */ #line 496 "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 1455 of yacc.c */ #line 506 "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 1455 of yacc.c */ #line 514 "Gmsh.y" { #if defined(HAVE_POST) ViewData->NbT3++; #endif ;} break; case 53: /* Line 1455 of yacc.c */ #line 524 "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 1455 of yacc.c */ #line 543 "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 1455 of yacc.c */ #line 562 "Gmsh.y" { #if defined(HAVE_POST) ViewValueList = &ViewData->Time; #endif ;} break; case 56: /* Line 1455 of yacc.c */ #line 568 "Gmsh.y" { ;} break; case 57: /* Line 1455 of yacc.c */ #line 575 "Gmsh.y" { (yyval.i) = 0; ;} break; case 58: /* Line 1455 of yacc.c */ #line 576 "Gmsh.y" { (yyval.i) = 1; ;} break; case 59: /* Line 1455 of yacc.c */ #line 577 "Gmsh.y" { (yyval.i) = 2; ;} break; case 60: /* Line 1455 of yacc.c */ #line 578 "Gmsh.y" { (yyval.i) = 3; ;} break; case 61: /* Line 1455 of yacc.c */ #line 579 "Gmsh.y" { (yyval.i) = 4; ;} break; case 62: /* Line 1455 of yacc.c */ #line 583 "Gmsh.y" { (yyval.i) = 1; ;} break; case 63: /* Line 1455 of yacc.c */ #line 584 "Gmsh.y" { (yyval.i) = -1; ;} break; case 64: /* Line 1455 of yacc.c */ #line 592 "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 65: /* Line 1455 of yacc.c */ #line 618 "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 66: /* Line 1455 of yacc.c */ #line 645 "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 67: /* Line 1455 of yacc.c */ #line 685 "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 68: /* Line 1455 of yacc.c */ #line 695 "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 69: /* Line 1455 of yacc.c */ #line 703 "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 70: /* Line 1455 of yacc.c */ #line 715 "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 71: /* Line 1455 of yacc.c */ #line 727 "Gmsh.y" { gmsh_yystringsymbols[(yyvsp[(1) - (4)].c)] = std::string((yyvsp[(3) - (4)].c)); Free((yyvsp[(1) - (4)].c)); Free((yyvsp[(3) - (4)].c)); ;} break; case 72: /* Line 1455 of yacc.c */ #line 736 "Gmsh.y" { std::string tmp((yyvsp[(5) - (6)].c)); StringOption(GMSH_SET|GMSH_GUI, (yyvsp[(1) - (6)].c), 0, (yyvsp[(3) - (6)].c), tmp); Free((yyvsp[(1) - (6)].c)); Free((yyvsp[(3) - (6)].c)); Free((yyvsp[(5) - (6)].c)) ;} break; case 73: /* Line 1455 of yacc.c */ #line 742 "Gmsh.y" { std::string tmp((yyvsp[(8) - (9)].c)); StringOption(GMSH_SET|GMSH_GUI, (yyvsp[(1) - (9)].c), (int)(yyvsp[(3) - (9)].d), (yyvsp[(6) - (9)].c), tmp); Free((yyvsp[(1) - (9)].c)); Free((yyvsp[(6) - (9)].c)); Free((yyvsp[(8) - (9)].c)) ;} break; case 74: /* Line 1455 of yacc.c */ #line 751 "Gmsh.y" { double d = 0.; if(NumberOption(GMSH_GET, (yyvsp[(1) - (6)].c), 0, (yyvsp[(3) - (6)].c), d)){ switch((yyvsp[(4) - (6)].i)){ case 0 : d = (yyvsp[(5) - (6)].d); break; case 1 : d += (yyvsp[(5) - (6)].d); break; case 2 : d -= (yyvsp[(5) - (6)].d); break; case 3 : d *= (yyvsp[(5) - (6)].d); break; case 4 : if((yyvsp[(5) - (6)].d)) d /= (yyvsp[(5) - (6)].d); else yymsg(0, "Division by zero in '%s.%s /= %g'", (yyvsp[(1) - (6)].c), (yyvsp[(3) - (6)].c), (yyvsp[(5) - (6)].d)); break; } NumberOption(GMSH_SET|GMSH_GUI, (yyvsp[(1) - (6)].c), 0, (yyvsp[(3) - (6)].c), d); } Free((yyvsp[(1) - (6)].c)); Free((yyvsp[(3) - (6)].c)); ;} break; case 75: /* Line 1455 of yacc.c */ #line 769 "Gmsh.y" { double d = 0.; if(NumberOption(GMSH_GET, (yyvsp[(1) - (9)].c), (int)(yyvsp[(3) - (9)].d), (yyvsp[(6) - (9)].c), d)){ switch((yyvsp[(7) - (9)].i)){ case 0 : d = (yyvsp[(8) - (9)].d); break; case 1 : d += (yyvsp[(8) - (9)].d); break; case 2 : d -= (yyvsp[(8) - (9)].d); break; case 3 : d *= (yyvsp[(8) - (9)].d); break; case 4 : if((yyvsp[(8) - (9)].d)) d /= (yyvsp[(8) - (9)].d); else yymsg(0, "Division by zero in '%s[%d].%s /= %g'", (yyvsp[(1) - (9)].c), (int)(yyvsp[(3) - (9)].d), (yyvsp[(6) - (9)].c), (yyvsp[(8) - (9)].d)); break; } NumberOption(GMSH_SET|GMSH_GUI, (yyvsp[(1) - (9)].c), (int)(yyvsp[(3) - (9)].d), (yyvsp[(6) - (9)].c), d); } Free((yyvsp[(1) - (9)].c)); Free((yyvsp[(6) - (9)].c)); ;} break; case 76: /* Line 1455 of yacc.c */ #line 787 "Gmsh.y" { double d = 0.; if(NumberOption(GMSH_GET, (yyvsp[(1) - (5)].c), 0, (yyvsp[(3) - (5)].c), d)){ d += (yyvsp[(4) - (5)].i); NumberOption(GMSH_SET|GMSH_GUI, (yyvsp[(1) - (5)].c), 0, (yyvsp[(3) - (5)].c), d); } Free((yyvsp[(1) - (5)].c)); Free((yyvsp[(3) - (5)].c)); ;} break; case 77: /* Line 1455 of yacc.c */ #line 796 "Gmsh.y" { double d = 0.; if(NumberOption(GMSH_GET, (yyvsp[(1) - (8)].c), (int)(yyvsp[(3) - (8)].d), (yyvsp[(6) - (8)].c), d)){ d += (yyvsp[(7) - (8)].i); NumberOption(GMSH_SET|GMSH_GUI, (yyvsp[(1) - (8)].c), (int)(yyvsp[(3) - (8)].d), (yyvsp[(6) - (8)].c), d); } Free((yyvsp[(1) - (8)].c)); Free((yyvsp[(6) - (8)].c)); ;} break; case 78: /* Line 1455 of yacc.c */ #line 808 "Gmsh.y" { ColorOption(GMSH_SET|GMSH_GUI, (yyvsp[(1) - (8)].c), 0, (yyvsp[(5) - (8)].c), (yyvsp[(7) - (8)].u)); Free((yyvsp[(1) - (8)].c)); Free((yyvsp[(5) - (8)].c)); ;} break; case 79: /* Line 1455 of yacc.c */ #line 813 "Gmsh.y" { ColorOption(GMSH_SET|GMSH_GUI, (yyvsp[(1) - (11)].c), (int)(yyvsp[(3) - (11)].d), (yyvsp[(8) - (11)].c), (yyvsp[(10) - (11)].u)); Free((yyvsp[(1) - (11)].c)); Free((yyvsp[(8) - (11)].c)); ;} break; case 80: /* Line 1455 of yacc.c */ #line 821 "Gmsh.y" { GmshColorTable *ct = GetColorTable(0); if(!ct) yymsg(0, "View[%d] does not exist", 0); else{ ct->size = List_Nbr((yyvsp[(5) - (6)].l)); if(ct->size > COLORTABLE_NBMAX_COLOR) yymsg(0, "Too many (%d>%d) colors in View[%d].ColorTable", ct->size, COLORTABLE_NBMAX_COLOR, 0); else for(int i = 0; i < ct->size; i++) List_Read((yyvsp[(5) - (6)].l), i, &ct->table[i]); if(ct->size == 1){ ct->size = 2; ct->table[1] = ct->table[0]; } } Free((yyvsp[(1) - (6)].c)); List_Delete((yyvsp[(5) - (6)].l)); ;} break; case 81: /* Line 1455 of yacc.c */ #line 841 "Gmsh.y" { GmshColorTable *ct = GetColorTable((int)(yyvsp[(3) - (9)].d)); if(!ct) yymsg(0, "View[%d] does not exist", (int)(yyvsp[(3) - (9)].d)); else{ ct->size = List_Nbr((yyvsp[(8) - (9)].l)); if(ct->size > COLORTABLE_NBMAX_COLOR) yymsg(0, "Too many (%d>%d) colors in View[%d].ColorTable", ct->size, COLORTABLE_NBMAX_COLOR, (int)(yyvsp[(3) - (9)].d)); else for(int i = 0; i < ct->size; i++) List_Read((yyvsp[(8) - (9)].l), i, &ct->table[i]); if(ct->size == 1){ ct->size = 2; ct->table[1] = ct->table[0]; } } Free((yyvsp[(1) - (9)].c)); List_Delete((yyvsp[(8) - (9)].l)); ;} break; case 82: /* Line 1455 of yacc.c */ #line 864 "Gmsh.y" { #if defined(HAVE_MESH) if(!strcmp((yyvsp[(1) - (5)].c),"Background")) GModel::current()->getFields()->background_field = (int)(yyvsp[(4) - (5)].d); else yymsg(0, "Unknown command %s Field", (yyvsp[(1) - (5)].c)); #endif ;} break; case 83: /* Line 1455 of yacc.c */ #line 873 "Gmsh.y" { #if defined(HAVE_MESH) if(!GModel::current()->getFields()->newField((int)(yyvsp[(3) - (7)].d), (yyvsp[(6) - (7)].c))) yymsg(0, "Cannot create field %i of type '%s'", (int)(yyvsp[(3) - (7)].d), (yyvsp[(6) - (7)].c)); #endif Free((yyvsp[(6) - (7)].c)); ;} break; case 84: /* Line 1455 of yacc.c */ #line 881 "Gmsh.y" { #if defined(HAVE_MESH) Field *field = GModel::current()->getFields()->get((int)(yyvsp[(3) - (9)].d)); if(field){ FieldOption *option = field->options[(yyvsp[(6) - (9)].c)]; if(option){ try { option->numericalValue((yyvsp[(8) - (9)].d)); } catch(...){ yymsg(0, "Cannot assign a numerical value to option '%s' " "in field %i of type '%s'", (yyvsp[(6) - (9)].c), (int)(yyvsp[(3) - (9)].d), field->getName()); } } else yymsg(0, "Unknown option '%s' in field %i of type '%s'", (yyvsp[(6) - (9)].c), (int)(yyvsp[(3) - (9)].d), field->getName()); } else yymsg(0, "No field with id %i", (int)(yyvsp[(3) - (9)].d)); #endif Free((yyvsp[(6) - (9)].c)); ;} break; case 85: /* Line 1455 of yacc.c */ #line 903 "Gmsh.y" { #if defined(HAVE_MESH) Field *field = GModel::current()->getFields()->get((int)(yyvsp[(3) - (9)].d)); if(field){ FieldOption *option = field->options[(yyvsp[(6) - (9)].c)]; if(option){ try { option->string() = (yyvsp[(8) - (9)].c); } catch (...){ yymsg(0, "Cannot assign a string value to option '%s' " "in field %i of type '%s'", (yyvsp[(6) - (9)].c), (int)(yyvsp[(3) - (9)].d), field->getName()); } } else yymsg(0, "Unknown option '%s' in field %i of type '%s'", (yyvsp[(6) - (9)].c), (int)(yyvsp[(3) - (9)].d), field->getName()); } else yymsg(0, "No field with id %i", (int)(yyvsp[(3) - (9)].d)); #endif Free((yyvsp[(6) - (9)].c)); Free((yyvsp[(8) - (9)].c)); ;} break; case 86: /* Line 1455 of yacc.c */ #line 926 "Gmsh.y" { #if defined(HAVE_MESH) Field *field = GModel::current()->getFields()->get((int)(yyvsp[(3) - (11)].d)); if(field){ FieldOption *option = field->options[(yyvsp[(6) - (11)].c)]; if(option){ std::list<int> &vl = option->list(); vl.clear(); for(int i = 0; i < List_Nbr((yyvsp[(9) - (11)].l)); i++){ double id; List_Read((yyvsp[(9) - (11)].l), i, &id); vl.push_back((int)id); } } else yymsg(0, "Unknown option '%s' in field %i of type '%s'", (yyvsp[(6) - (11)].c), (int)(yyvsp[(3) - (11)].d), field->getName()); } else yymsg(0, "No field with id %i", (int)(yyvsp[(3) - (11)].d)); #endif Free((yyvsp[(6) - (11)].c)); List_Delete((yyvsp[(9) - (11)].l)); ;} break; case 87: /* Line 1455 of yacc.c */ #line 954 "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 88: /* Line 1455 of yacc.c */ #line 966 "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 89: /* Line 1455 of yacc.c */ #line 983 "Gmsh.y" { (yyval.i) = (int)(yyvsp[(1) - (1)].d); ;} break; case 90: /* Line 1455 of yacc.c */ #line 987 "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 91: /* Line 1455 of yacc.c */ #line 997 "Gmsh.y" { (yyval.l) = 0; ;} break; case 92: /* Line 1455 of yacc.c */ #line 1001 "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 93: /* Line 1455 of yacc.c */ #line 1013 "Gmsh.y" { for(int i = 0; i < 4; i++) (yyval.v)[i] = 0.; ;} break; case 94: /* Line 1455 of yacc.c */ #line 1017 "Gmsh.y" { for(int i = 0; i < 4; i++) (yyval.v)[i] = (yyvsp[(2) - (2)].v)[i]; ;} break; case 95: /* Line 1455 of yacc.c */ #line 1027 "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 96: /* Line 1455 of yacc.c */ #line 1050 "Gmsh.y" { curPhysDim = 0; ;} break; case 97: /* Line 1455 of yacc.c */ #line 1054 "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 98: /* Line 1455 of yacc.c */ #line 1070 "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 99: /* Line 1455 of yacc.c */ #line 1092 "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 100: /* Line 1455 of yacc.c */ #line 1110 "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 101: /* Line 1455 of yacc.c */ #line 1131 "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 102: /* Line 1455 of yacc.c */ #line 1149 "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 103: /* Line 1455 of yacc.c */ #line 1179 "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 104: /* Line 1455 of yacc.c */ #line 1209 "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 105: /* Line 1455 of yacc.c */ #line 1227 "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 106: /* Line 1455 of yacc.c */ #line 1245 "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 107: /* Line 1455 of yacc.c */ #line 1271 "Gmsh.y" { int num = (int)(yyvsp[(4) - (8)].d); if(FindEdgeLoop(num)){ yymsg(0, "Line loop %d already exists", num); } else{ List_T *temp = ListOfDouble2ListOfInt((yyvsp[(7) - (8)].l)); sortEdgesInLoop(num, temp); EdgeLoop *l = Create_EdgeLoop(num, temp); Tree_Add(GModel::current()->getGEOInternals()->EdgeLoops, &l); List_Delete(temp); } List_Delete((yyvsp[(7) - (8)].l)); (yyval.s).Type = MSH_SEGM_LOOP; (yyval.s).Num = num; ;} break; case 108: /* Line 1455 of yacc.c */ #line 1288 "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 109: /* Line 1455 of yacc.c */ #line 1306 "Gmsh.y" { curPhysDim = 1; ;} break; case 110: /* Line 1455 of yacc.c */ #line 1310 "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 111: /* Line 1455 of yacc.c */ #line 1329 "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 112: /* Line 1455 of yacc.c */ #line 1347 "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 113: /* Line 1455 of yacc.c */ #line 1386 "Gmsh.y" { myGmshSurface = 0; (yyval.s).Type = 0; (yyval.s).Num = 0; ;} break; case 114: /* Line 1455 of yacc.c */ #line 1392 "Gmsh.y" { myGmshSurface = gmshSurface::getSurface((int)(yyvsp[(3) - (4)].d)); (yyval.s).Type = 0; (yyval.s).Num = 0; ;} break; case 115: /* Line 1455 of yacc.c */ #line 1398 "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 116: /* Line 1455 of yacc.c */ #line 1405 "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 117: /* Line 1455 of yacc.c */ #line 1430 "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 118: /* Line 1455 of yacc.c */ #line 1455 "Gmsh.y" { int num = (int)(yyvsp[(4) - (8)].d); if(FindSurfaceLoop(num)){ yymsg(0, "Surface loop %d already exists", num); } else{ List_T *temp = ListOfDouble2ListOfInt((yyvsp[(7) - (8)].l)); SurfaceLoop *l = Create_SurfaceLoop(num, temp); Tree_Add(GModel::current()->getGEOInternals()->SurfaceLoops, &l); List_Delete(temp); } List_Delete((yyvsp[(7) - (8)].l)); (yyval.s).Type = MSH_SURF_LOOP; (yyval.s).Num = num; ;} break; case 119: /* Line 1455 of yacc.c */ #line 1471 "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 120: /* Line 1455 of yacc.c */ #line 1489 "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 121: /* Line 1455 of yacc.c */ #line 1519 "Gmsh.y" { curPhysDim = 2; ;} break; case 122: /* Line 1455 of yacc.c */ #line 1523 "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 123: /* Line 1455 of yacc.c */ #line 1543 "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 124: /* Line 1455 of yacc.c */ #line 1561 "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 125: /* Line 1455 of yacc.c */ #line 1578 "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 126: /* Line 1455 of yacc.c */ #line 1594 "Gmsh.y" { curPhysDim = 3; ;} break; case 127: /* Line 1455 of yacc.c */ #line 1598 "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 128: /* Line 1455 of yacc.c */ #line 1620 "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 129: /* Line 1455 of yacc.c */ #line 1625 "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 130: /* Line 1455 of yacc.c */ #line 1630 "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 131: /* Line 1455 of yacc.c */ #line 1635 "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 132: /* Line 1455 of yacc.c */ #line 1640 "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 133: /* Line 1455 of yacc.c */ #line 1663 "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 134: /* Line 1455 of yacc.c */ #line 1669 "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 135: /* Line 1455 of yacc.c */ #line 1679 "Gmsh.y" { (yyval.l) = (yyvsp[(1) - (1)].l); ;} break; case 136: /* Line 1455 of yacc.c */ #line 1680 "Gmsh.y" { (yyval.l) = (yyvsp[(1) - (1)].l); ;} break; case 137: /* Line 1455 of yacc.c */ #line 1685 "Gmsh.y" { (yyval.l) = List_Create(3, 3, sizeof(Shape)); ;} break; case 138: /* Line 1455 of yacc.c */ #line 1689 "Gmsh.y" { List_Add((yyval.l), &(yyvsp[(2) - (2)].s)); ;} break; case 139: /* Line 1455 of yacc.c */ #line 1693 "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 140: /* Line 1455 of yacc.c */ #line 1716 "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 141: /* Line 1455 of yacc.c */ #line 1739 "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 142: /* Line 1455 of yacc.c */ #line 1762 "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 143: /* Line 1455 of yacc.c */ #line 1790 "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 144: /* Line 1455 of yacc.c */ #line 1811 "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 145: /* Line 1455 of yacc.c */ #line 1835 "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 146: /* Line 1455 of yacc.c */ #line 1856 "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 147: /* Line 1455 of yacc.c */ #line 1877 "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 148: /* Line 1455 of yacc.c */ #line 1897 "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<const gLevelset *> vl; for(int i = 0; i < List_Nbr((yyvsp[(7) - (8)].l)); i++) { double d; List_Read((yyvsp[(7) - (8)].l), i, &d); LevelSet *pl = FindLevelSet((int)d); if(!pl) yymsg(0, "Levelset Union %d : unknown levelset %d", t, (int)d); else vl.push_back(pl->ls); } gLevelset *ls = new gLevelsetUnion(vl); LevelSet *l = Create_LevelSet(t, ls); Tree_Add(GModel::current()->getGEOInternals()->LevelSets, &l); } } else if(!strcmp((yyvsp[(2) - (8)].c), "Intersection")){ int t = (int)(yyvsp[(4) - (8)].d); if(FindLevelSet(t)){ yymsg(0, "Levelset %d already exists", t); } else { std::vector<const gLevelset *> vl; for(int i = 0; i < List_Nbr((yyvsp[(7) - (8)].l)); i++) { double d; List_Read((yyvsp[(7) - (8)].l), i, &d); LevelSet *pl = FindLevelSet((int)d); if(!pl) yymsg(0, "Levelset Intersection %d : unknown levelset %d", t, (int)d); else vl.push_back(pl->ls); } gLevelset *ls = new gLevelsetIntersection(vl); LevelSet *l = Create_LevelSet(t, ls); Tree_Add(GModel::current()->getGEOInternals()->LevelSets, &l); } } else if(!strcmp((yyvsp[(2) - (8)].c), "Cut")){ int t = (int)(yyvsp[(4) - (8)].d); if(FindLevelSet(t)){ yymsg(0, "Levelset %d already exists", t); } else { std::vector<const gLevelset *> vl; for(int i = 0; i < List_Nbr((yyvsp[(7) - (8)].l)); i++) { double d; List_Read((yyvsp[(7) - (8)].l), i, &d); LevelSet *pl = FindLevelSet((int)d); if(!pl) yymsg(0, "Levelset Cut %d : unknown levelset %d", t, (int)d); else vl.push_back(pl->ls); } gLevelset *ls = new gLevelsetCut(vl); LevelSet *l = Create_LevelSet(t, ls); Tree_Add(GModel::current()->getGEOInternals()->LevelSets, &l); } } else if(!strcmp((yyvsp[(2) - (8)].c), "Crack")){ int t = (int)(yyvsp[(4) - (8)].d); if(FindLevelSet(t)){ yymsg(0, "Levelset %d already exists", t); } else { std::vector<const gLevelset *> vl; for(int i = 0; i < List_Nbr((yyvsp[(7) - (8)].l)); i++) { double d; List_Read((yyvsp[(7) - (8)].l), i, &d); LevelSet *pl = FindLevelSet((int)d); if(!pl) yymsg(0, "Levelset Crack %d : unknown levelset %d", t, (int)d); else vl.push_back(pl->ls); } gLevelset *ls = new gLevelsetCrack(vl); LevelSet *l = Create_LevelSet(t, ls); Tree_Add(GModel::current()->getGEOInternals()->LevelSets, &l); } } else 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 149: /* Line 1455 of yacc.c */ #line 2009 "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 150: /* Line 1455 of yacc.c */ #line 2028 "Gmsh.y" { #if defined(HAVE_DINTEGRATION) if(!strcmp((yyvsp[(2) - (6)].c), "CutMesh")){ int t = (int)(yyvsp[(4) - (6)].d); GModel *GM = GModel::current(); GM->buildCutGModel(FindLevelSet(t)->ls, true, false); GM->setVisibility(0); } else if(!strcmp((yyvsp[(2) - (6)].c), "CutMeshTri")){ int t = (int)(yyvsp[(4) - (6)].d); GModel *GM = GModel::current(); GM->buildCutGModel(FindLevelSet(t)->ls, true, true); GM->setVisibility(0); } else if(!strcmp((yyvsp[(2) - (6)].c), "SplitMesh")){ int t = (int)(yyvsp[(4) - (6)].d); GModel *GM = GModel::current(); GM->buildCutGModel(FindLevelSet(t)->ls, false, true); GM->setVisibility(0); } else yymsg(0, "Wrong levelset definition"); Free((yyvsp[(2) - (6)].c)); #endif ;} break; case 151: /* Line 1455 of yacc.c */ #line 2055 "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 152: /* Line 1455 of yacc.c */ #line 2163 "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 153: /* Line 1455 of yacc.c */ #line 2172 "Gmsh.y" { #if defined(HAVE_MESH) GModel::current()->getFields()->deleteField((int)(yyvsp[(4) - (6)].d)); #endif ;} break; case 154: /* Line 1455 of yacc.c */ #line 2178 "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 155: /* Line 1455 of yacc.c */ #line 2193 "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 156: /* Line 1455 of yacc.c */ #line 2221 "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 157: /* Line 1455 of yacc.c */ #line 2238 "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 158: /* Line 1455 of yacc.c */ #line 2252 "Gmsh.y" { for(int i = 0; i < 4; i++) VisibilityShape((yyvsp[(2) - (3)].c), i, 1); Free((yyvsp[(2) - (3)].c)); ;} break; case 159: /* Line 1455 of yacc.c */ #line 2258 "Gmsh.y" { for(int i = 0; i < 4; i++) VisibilityShape((yyvsp[(2) - (3)].c), i, 0); Free((yyvsp[(2) - (3)].c)); ;} break; case 160: /* Line 1455 of yacc.c */ #line 2264 "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 161: /* Line 1455 of yacc.c */ #line 2273 "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 162: /* Line 1455 of yacc.c */ #line 2287 "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 163: /* Line 1455 of yacc.c */ #line 2329 "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 164: /* Line 1455 of yacc.c */ #line 2346 "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 165: /* Line 1455 of yacc.c */ #line 2361 "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 166: /* Line 1455 of yacc.c */ #line 2380 "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 167: /* Line 1455 of yacc.c */ #line 2392 "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 168: /* Line 1455 of yacc.c */ #line 2416 "Gmsh.y" { exit(0); ;} break; case 169: /* Line 1455 of yacc.c */ #line 2420 "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 170: /* Line 1455 of yacc.c */ #line 2427 "Gmsh.y" { CTX::instance()->forcedBBox = 0; GModel::current()->importGEOInternals(); SetBoundingBox(); ;} break; case 171: /* Line 1455 of yacc.c */ #line 2433 "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 172: /* Line 1455 of yacc.c */ #line 2438 "Gmsh.y" { #if defined(HAVE_OPENGL) drawContext::global()->draw(); #endif ;} break; case 173: /* Line 1455 of yacc.c */ #line 2444 "Gmsh.y" { GModel::current()->createTopologyFromMesh(); ;} break; case 174: /* Line 1455 of yacc.c */ #line 2448 "Gmsh.y" { GModel::current()->createTopologyFromMesh(1); ;} break; case 175: /* Line 1455 of yacc.c */ #line 2452 "Gmsh.y" { GModel::current()->importGEOInternals(); GModel::current()->refineMesh(CTX::instance()->mesh.secondOrderLinear); ;} break; case 176: /* Line 1455 of yacc.c */ #line 2462 "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 177: /* Line 1455 of yacc.c */ #line 2479 "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 178: /* Line 1455 of yacc.c */ #line 2496 "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 179: /* Line 1455 of yacc.c */ #line 2515 "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 180: /* Line 1455 of yacc.c */ #line 2534 "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 181: /* Line 1455 of yacc.c */ #line 2564 "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 182: /* Line 1455 of yacc.c */ #line 2572 "Gmsh.y" { if(!FunctionManager::Instance()->leaveFunction (&gmsh_yyin, gmsh_yyname, gmsh_yylineno)) yymsg(0, "Error while exiting function"); ;} break; case 183: /* Line 1455 of yacc.c */ #line 2578 "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 184: /* Line 1455 of yacc.c */ #line 2585 "Gmsh.y" { if(!(yyvsp[(3) - (4)].d)) skip_until("If", "EndIf"); ;} break; case 185: /* Line 1455 of yacc.c */ #line 2589 "Gmsh.y" { ;} break; case 186: /* Line 1455 of yacc.c */ #line 2598 "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 187: /* Line 1455 of yacc.c */ #line 2606 "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 188: /* Line 1455 of yacc.c */ #line 2614 "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 189: /* Line 1455 of yacc.c */ #line 2622 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; extr.mesh.QuadToTri = NO_QUADTRI; ;} break; case 190: /* Line 1455 of yacc.c */ #line 2627 "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 191: /* Line 1455 of yacc.c */ #line 2635 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; extr.mesh.QuadToTri = NO_QUADTRI; ;} break; case 192: /* Line 1455 of yacc.c */ #line 2640 "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 193: /* Line 1455 of yacc.c */ #line 2648 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; extr.mesh.QuadToTri = NO_QUADTRI; ;} break; case 194: /* Line 1455 of yacc.c */ #line 2653 "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 195: /* Line 1455 of yacc.c */ #line 2661 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; extr.mesh.QuadToTri = NO_QUADTRI; ;} break; case 196: /* Line 1455 of yacc.c */ #line 2666 "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 197: /* Line 1455 of yacc.c */ #line 2674 "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 198: /* Line 1455 of yacc.c */ #line 2681 "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 199: /* Line 1455 of yacc.c */ #line 2688 "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 200: /* Line 1455 of yacc.c */ #line 2695 "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 201: /* Line 1455 of yacc.c */ #line 2702 "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 202: /* Line 1455 of yacc.c */ #line 2709 "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 203: /* Line 1455 of yacc.c */ #line 2716 "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 204: /* Line 1455 of yacc.c */ #line 2723 "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 205: /* Line 1455 of yacc.c */ #line 2730 "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 206: /* Line 1455 of yacc.c */ #line 2737 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; extr.mesh.QuadToTri = NO_QUADTRI; ;} break; case 207: /* Line 1455 of yacc.c */ #line 2742 "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 208: /* Line 1455 of yacc.c */ #line 2749 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; extr.mesh.QuadToTri = NO_QUADTRI; ;} break; case 209: /* Line 1455 of yacc.c */ #line 2754 "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 210: /* Line 1455 of yacc.c */ #line 2761 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; extr.mesh.QuadToTri = NO_QUADTRI; ;} break; case 211: /* Line 1455 of yacc.c */ #line 2766 "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 212: /* Line 1455 of yacc.c */ #line 2773 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; extr.mesh.QuadToTri = NO_QUADTRI; ;} break; case 213: /* Line 1455 of yacc.c */ #line 2778 "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 214: /* Line 1455 of yacc.c */ #line 2785 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; extr.mesh.QuadToTri = NO_QUADTRI; ;} break; case 215: /* Line 1455 of yacc.c */ #line 2790 "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 216: /* Line 1455 of yacc.c */ #line 2797 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; extr.mesh.QuadToTri = NO_QUADTRI; ;} break; case 217: /* Line 1455 of yacc.c */ #line 2802 "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 218: /* Line 1455 of yacc.c */ #line 2809 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; extr.mesh.QuadToTri = NO_QUADTRI; ;} break; case 219: /* Line 1455 of yacc.c */ #line 2814 "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 220: /* Line 1455 of yacc.c */ #line 2821 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; extr.mesh.QuadToTri = NO_QUADTRI; ;} break; case 221: /* Line 1455 of yacc.c */ #line 2826 "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 222: /* Line 1455 of yacc.c */ #line 2833 "Gmsh.y" { extr.mesh.ExtrudeMesh = extr.mesh.Recombine = false; extr.mesh.QuadToTri = NO_QUADTRI; ;} break; case 223: /* Line 1455 of yacc.c */ #line 2838 "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 224: /* Line 1455 of yacc.c */ #line 2849 "Gmsh.y" { ;} break; case 225: /* Line 1455 of yacc.c */ #line 2852 "Gmsh.y" { ;} break; case 226: /* Line 1455 of yacc.c */ #line 2858 "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 227: /* Line 1455 of yacc.c */ #line 2867 "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 228: /* Line 1455 of yacc.c */ #line 2887 "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 229: /* Line 1455 of yacc.c */ #line 2910 "Gmsh.y" { extr.mesh.Recombine = true; ;} break; case 230: /* Line 1455 of yacc.c */ #line 2914 "Gmsh.y" { extr.mesh.QuadToTri = QUADTRI_DBL_1; ;} break; case 231: /* Line 1455 of yacc.c */ #line 2918 "Gmsh.y" { extr.mesh.QuadToTri = QUADTRI_DBL_1_RECOMB; ;} break; case 232: /* Line 1455 of yacc.c */ #line 2922 "Gmsh.y" { extr.mesh.QuadToTri = QUADTRI_SNGL_1; ;} break; case 233: /* Line 1455 of yacc.c */ #line 2926 "Gmsh.y" { extr.mesh.QuadToTri = QUADTRI_SNGL_1_RECOMB; ;} break; case 234: /* Line 1455 of yacc.c */ #line 2930 "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 235: /* Line 1455 of yacc.c */ #line 2949 "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 236: /* Line 1455 of yacc.c */ #line 2961 "Gmsh.y" { (yyval.v)[0] = (yyval.v)[1] = 1.; ;} break; case 237: /* Line 1455 of yacc.c */ #line 2965 "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 238: /* Line 1455 of yacc.c */ #line 2980 "Gmsh.y" { (yyval.i) = -1; // left ;} break; case 239: /* Line 1455 of yacc.c */ #line 2984 "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 240: /* Line 1455 of yacc.c */ #line 2996 "Gmsh.y" { (yyval.l) = List_Create(1, 1, sizeof(double)); ;} break; case 241: /* Line 1455 of yacc.c */ #line 3000 "Gmsh.y" { (yyval.l) = (yyvsp[(2) - (2)].l); ;} break; case 242: /* Line 1455 of yacc.c */ #line 3005 "Gmsh.y" { (yyval.i) = 45; ;} break; case 243: /* Line 1455 of yacc.c */ #line 3009 "Gmsh.y" { (yyval.i) = (int)(yyvsp[(2) - (2)].d); ;} break; case 244: /* Line 1455 of yacc.c */ #line 3016 "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 245: /* Line 1455 of yacc.c */ #line 3072 "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 246: /* Line 1455 of yacc.c */ #line 3142 "Gmsh.y" { yymsg(1, "Elliptic Surface is deprecated: use Transfinite instead (with smoothing)"); List_Delete((yyvsp[(7) - (8)].l)); ;} break; case 247: /* Line 1455 of yacc.c */ #line 3147 "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 248: /* Line 1455 of yacc.c */ #line 3214 "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 249: /* Line 1455 of yacc.c */ #line 3250 "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 250: /* Line 1455 of yacc.c */ #line 3293 "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 251: /* Line 1455 of yacc.c */ #line 3318 "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 252: /* Line 1455 of yacc.c */ #line 3346 "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 253: /* Line 1455 of yacc.c */ #line 3389 "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 254: /* Line 1455 of yacc.c */ #line 3412 "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 255: /* Line 1455 of yacc.c */ #line 3435 "Gmsh.y" { ;} break; case 256: /* Line 1455 of yacc.c */ #line 3438 "Gmsh.y" { ;} break; case 257: /* Line 1455 of yacc.c */ #line 3447 "Gmsh.y" { ReplaceAllDuplicates(); ;} break; case 258: /* Line 1455 of yacc.c */ #line 3451 "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 259: /* Line 1455 of yacc.c */ #line 3461 "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 260: /* Line 1455 of yacc.c */ #line 3498 "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 261: /* Line 1455 of yacc.c */ #line 3535 "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 262: /* Line 1455 of yacc.c */ #line 3571 "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 263: /* Line 1455 of yacc.c */ #line 3606 "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 264: /* Line 1455 of yacc.c */ #line 3645 "Gmsh.y" { (yyval.d) = (yyvsp[(1) - (1)].d); ;} break; case 265: /* Line 1455 of yacc.c */ #line 3646 "Gmsh.y" { (yyval.d) = (yyvsp[(2) - (3)].d); ;} break; case 266: /* Line 1455 of yacc.c */ #line 3647 "Gmsh.y" { (yyval.d) = -(yyvsp[(2) - (2)].d); ;} break; case 267: /* Line 1455 of yacc.c */ #line 3648 "Gmsh.y" { (yyval.d) = (yyvsp[(2) - (2)].d); ;} break; case 268: /* Line 1455 of yacc.c */ #line 3649 "Gmsh.y" { (yyval.d) = !(yyvsp[(2) - (2)].d); ;} break; case 269: /* Line 1455 of yacc.c */ #line 3650 "Gmsh.y" { (yyval.d) = (yyvsp[(1) - (3)].d) - (yyvsp[(3) - (3)].d); ;} break; case 270: /* Line 1455 of yacc.c */ #line 3651 "Gmsh.y" { (yyval.d) = (yyvsp[(1) - (3)].d) + (yyvsp[(3) - (3)].d); ;} break; case 271: /* Line 1455 of yacc.c */ #line 3652 "Gmsh.y" { (yyval.d) = (yyvsp[(1) - (3)].d) * (yyvsp[(3) - (3)].d); ;} break; case 272: /* Line 1455 of yacc.c */ #line 3654 "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 273: /* Line 1455 of yacc.c */ #line 3660 "Gmsh.y" { (yyval.d) = (int)(yyvsp[(1) - (3)].d) % (int)(yyvsp[(3) - (3)].d); ;} break; case 274: /* Line 1455 of yacc.c */ #line 3661 "Gmsh.y" { (yyval.d) = pow((yyvsp[(1) - (3)].d), (yyvsp[(3) - (3)].d)); ;} break; case 275: /* Line 1455 of yacc.c */ #line 3662 "Gmsh.y" { (yyval.d) = (yyvsp[(1) - (3)].d) < (yyvsp[(3) - (3)].d); ;} break; case 276: /* Line 1455 of yacc.c */ #line 3663 "Gmsh.y" { (yyval.d) = (yyvsp[(1) - (3)].d) > (yyvsp[(3) - (3)].d); ;} break; case 277: /* Line 1455 of yacc.c */ #line 3664 "Gmsh.y" { (yyval.d) = (yyvsp[(1) - (3)].d) <= (yyvsp[(3) - (3)].d); ;} break; case 278: /* Line 1455 of yacc.c */ #line 3665 "Gmsh.y" { (yyval.d) = (yyvsp[(1) - (3)].d) >= (yyvsp[(3) - (3)].d); ;} break; case 279: /* Line 1455 of yacc.c */ #line 3666 "Gmsh.y" { (yyval.d) = (yyvsp[(1) - (3)].d) == (yyvsp[(3) - (3)].d); ;} break; case 280: /* Line 1455 of yacc.c */ #line 3667 "Gmsh.y" { (yyval.d) = (yyvsp[(1) - (3)].d) != (yyvsp[(3) - (3)].d); ;} break; case 281: /* Line 1455 of yacc.c */ #line 3668 "Gmsh.y" { (yyval.d) = (yyvsp[(1) - (3)].d) && (yyvsp[(3) - (3)].d); ;} break; case 282: /* Line 1455 of yacc.c */ #line 3669 "Gmsh.y" { (yyval.d) = (yyvsp[(1) - (3)].d) || (yyvsp[(3) - (3)].d); ;} break; case 283: /* Line 1455 of yacc.c */ #line 3670 "Gmsh.y" { (yyval.d) = (yyvsp[(1) - (5)].d) ? (yyvsp[(3) - (5)].d) : (yyvsp[(5) - (5)].d); ;} break; case 284: /* Line 1455 of yacc.c */ #line 3671 "Gmsh.y" { (yyval.d) = exp((yyvsp[(3) - (4)].d)); ;} break; case 285: /* Line 1455 of yacc.c */ #line 3672 "Gmsh.y" { (yyval.d) = log((yyvsp[(3) - (4)].d)); ;} break; case 286: /* Line 1455 of yacc.c */ #line 3673 "Gmsh.y" { (yyval.d) = log10((yyvsp[(3) - (4)].d)); ;} break; case 287: /* Line 1455 of yacc.c */ #line 3674 "Gmsh.y" { (yyval.d) = sqrt((yyvsp[(3) - (4)].d)); ;} break; case 288: /* Line 1455 of yacc.c */ #line 3675 "Gmsh.y" { (yyval.d) = sin((yyvsp[(3) - (4)].d)); ;} break; case 289: /* Line 1455 of yacc.c */ #line 3676 "Gmsh.y" { (yyval.d) = asin((yyvsp[(3) - (4)].d)); ;} break; case 290: /* Line 1455 of yacc.c */ #line 3677 "Gmsh.y" { (yyval.d) = cos((yyvsp[(3) - (4)].d)); ;} break; case 291: /* Line 1455 of yacc.c */ #line 3678 "Gmsh.y" { (yyval.d) = acos((yyvsp[(3) - (4)].d)); ;} break; case 292: /* Line 1455 of yacc.c */ #line 3679 "Gmsh.y" { (yyval.d) = tan((yyvsp[(3) - (4)].d)); ;} break; case 293: /* Line 1455 of yacc.c */ #line 3680 "Gmsh.y" { (yyval.d) = atan((yyvsp[(3) - (4)].d)); ;} break; case 294: /* Line 1455 of yacc.c */ #line 3681 "Gmsh.y" { (yyval.d) = atan2((yyvsp[(3) - (6)].d), (yyvsp[(5) - (6)].d));;} break; case 295: /* Line 1455 of yacc.c */ #line 3682 "Gmsh.y" { (yyval.d) = sinh((yyvsp[(3) - (4)].d)); ;} break; case 296: /* Line 1455 of yacc.c */ #line 3683 "Gmsh.y" { (yyval.d) = cosh((yyvsp[(3) - (4)].d)); ;} break; case 297: /* Line 1455 of yacc.c */ #line 3684 "Gmsh.y" { (yyval.d) = tanh((yyvsp[(3) - (4)].d)); ;} break; case 298: /* Line 1455 of yacc.c */ #line 3685 "Gmsh.y" { (yyval.d) = fabs((yyvsp[(3) - (4)].d)); ;} break; case 299: /* Line 1455 of yacc.c */ #line 3686 "Gmsh.y" { (yyval.d) = floor((yyvsp[(3) - (4)].d)); ;} break; case 300: /* Line 1455 of yacc.c */ #line 3687 "Gmsh.y" { (yyval.d) = ceil((yyvsp[(3) - (4)].d)); ;} break; case 301: /* Line 1455 of yacc.c */ #line 3688 "Gmsh.y" { (yyval.d) = fmod((yyvsp[(3) - (6)].d), (yyvsp[(5) - (6)].d)); ;} break; case 302: /* Line 1455 of yacc.c */ #line 3689 "Gmsh.y" { (yyval.d) = fmod((yyvsp[(3) - (6)].d), (yyvsp[(5) - (6)].d)); ;} break; case 303: /* Line 1455 of yacc.c */ #line 3690 "Gmsh.y" { (yyval.d) = sqrt((yyvsp[(3) - (6)].d) * (yyvsp[(3) - (6)].d) + (yyvsp[(5) - (6)].d) * (yyvsp[(5) - (6)].d)); ;} break; case 304: /* Line 1455 of yacc.c */ #line 3691 "Gmsh.y" { (yyval.d) = (yyvsp[(3) - (4)].d) * (double)rand() / (double)RAND_MAX; ;} break; case 305: /* Line 1455 of yacc.c */ #line 3693 "Gmsh.y" { (yyval.d) = exp((yyvsp[(3) - (4)].d)); ;} break; case 306: /* Line 1455 of yacc.c */ #line 3694 "Gmsh.y" { (yyval.d) = log((yyvsp[(3) - (4)].d)); ;} break; case 307: /* Line 1455 of yacc.c */ #line 3695 "Gmsh.y" { (yyval.d) = log10((yyvsp[(3) - (4)].d)); ;} break; case 308: /* Line 1455 of yacc.c */ #line 3696 "Gmsh.y" { (yyval.d) = sqrt((yyvsp[(3) - (4)].d)); ;} break; case 309: /* Line 1455 of yacc.c */ #line 3697 "Gmsh.y" { (yyval.d) = sin((yyvsp[(3) - (4)].d)); ;} break; case 310: /* Line 1455 of yacc.c */ #line 3698 "Gmsh.y" { (yyval.d) = asin((yyvsp[(3) - (4)].d)); ;} break; case 311: /* Line 1455 of yacc.c */ #line 3699 "Gmsh.y" { (yyval.d) = cos((yyvsp[(3) - (4)].d)); ;} break; case 312: /* Line 1455 of yacc.c */ #line 3700 "Gmsh.y" { (yyval.d) = acos((yyvsp[(3) - (4)].d)); ;} break; case 313: /* Line 1455 of yacc.c */ #line 3701 "Gmsh.y" { (yyval.d) = tan((yyvsp[(3) - (4)].d)); ;} break; case 314: /* Line 1455 of yacc.c */ #line 3702 "Gmsh.y" { (yyval.d) = atan((yyvsp[(3) - (4)].d)); ;} break; case 315: /* Line 1455 of yacc.c */ #line 3703 "Gmsh.y" { (yyval.d) = atan2((yyvsp[(3) - (6)].d), (yyvsp[(5) - (6)].d));;} break; case 316: /* Line 1455 of yacc.c */ #line 3704 "Gmsh.y" { (yyval.d) = sinh((yyvsp[(3) - (4)].d)); ;} break; case 317: /* Line 1455 of yacc.c */ #line 3705 "Gmsh.y" { (yyval.d) = cosh((yyvsp[(3) - (4)].d)); ;} break; case 318: /* Line 1455 of yacc.c */ #line 3706 "Gmsh.y" { (yyval.d) = tanh((yyvsp[(3) - (4)].d)); ;} break; case 319: /* Line 1455 of yacc.c */ #line 3707 "Gmsh.y" { (yyval.d) = fabs((yyvsp[(3) - (4)].d)); ;} break; case 320: /* Line 1455 of yacc.c */ #line 3708 "Gmsh.y" { (yyval.d) = floor((yyvsp[(3) - (4)].d)); ;} break; case 321: /* Line 1455 of yacc.c */ #line 3709 "Gmsh.y" { (yyval.d) = ceil((yyvsp[(3) - (4)].d)); ;} break; case 322: /* Line 1455 of yacc.c */ #line 3710 "Gmsh.y" { (yyval.d) = fmod((yyvsp[(3) - (6)].d), (yyvsp[(5) - (6)].d)); ;} break; case 323: /* Line 1455 of yacc.c */ #line 3711 "Gmsh.y" { (yyval.d) = fmod((yyvsp[(3) - (6)].d), (yyvsp[(5) - (6)].d)); ;} break; case 324: /* Line 1455 of yacc.c */ #line 3712 "Gmsh.y" { (yyval.d) = sqrt((yyvsp[(3) - (6)].d) * (yyvsp[(3) - (6)].d) + (yyvsp[(5) - (6)].d) * (yyvsp[(5) - (6)].d)); ;} break; case 325: /* Line 1455 of yacc.c */ #line 3713 "Gmsh.y" { (yyval.d) = (yyvsp[(3) - (4)].d) * (double)rand() / (double)RAND_MAX; ;} break; case 326: /* Line 1455 of yacc.c */ #line 3722 "Gmsh.y" { (yyval.d) = (yyvsp[(1) - (1)].d); ;} break; case 327: /* Line 1455 of yacc.c */ #line 3723 "Gmsh.y" { (yyval.d) = 3.141592653589793; ;} break; case 328: /* Line 1455 of yacc.c */ #line 3724 "Gmsh.y" { (yyval.d) = Msg::GetCommRank(); ;} break; case 329: /* Line 1455 of yacc.c */ #line 3725 "Gmsh.y" { (yyval.d) = Msg::GetCommSize(); ;} break; case 330: /* Line 1455 of yacc.c */ #line 3726 "Gmsh.y" { (yyval.d) = GetGmshMajorVersion(); ;} break; case 331: /* Line 1455 of yacc.c */ #line 3727 "Gmsh.y" { (yyval.d) = GetGmshMinorVersion(); ;} break; case 332: /* Line 1455 of yacc.c */ #line 3728 "Gmsh.y" { (yyval.d) = GetGmshPatchVersion(); ;} break; case 333: /* Line 1455 of yacc.c */ #line 3733 "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 334: /* Line 1455 of yacc.c */ #line 3752 "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 335: /* Line 1455 of yacc.c */ #line 3770 "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 336: /* Line 1455 of yacc.c */ #line 3785 "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 337: /* Line 1455 of yacc.c */ #line 3795 "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 338: /* Line 1455 of yacc.c */ #line 3811 "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 339: /* Line 1455 of yacc.c */ #line 3829 "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 340: /* Line 1455 of yacc.c */ #line 3834 "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 341: /* Line 1455 of yacc.c */ #line 3839 "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 342: /* Line 1455 of yacc.c */ #line 3849 "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 343: /* Line 1455 of yacc.c */ #line 3859 "Gmsh.y" { (yyval.d) = Msg::GetValue((yyvsp[(3) - (6)].c), (yyvsp[(5) - (6)].d)); Free((yyvsp[(3) - (6)].c)); ;} break; case 344: /* Line 1455 of yacc.c */ #line 3867 "Gmsh.y" { memcpy((yyval.v), (yyvsp[(1) - (1)].v), 5*sizeof(double)); ;} break; case 345: /* Line 1455 of yacc.c */ #line 3871 "Gmsh.y" { for(int i = 0; i < 5; i++) (yyval.v)[i] = -(yyvsp[(2) - (2)].v)[i]; ;} break; case 346: /* Line 1455 of yacc.c */ #line 3875 "Gmsh.y" { for(int i = 0; i < 5; i++) (yyval.v)[i] = (yyvsp[(2) - (2)].v)[i]; ;} break; case 347: /* Line 1455 of yacc.c */ #line 3879 "Gmsh.y" { for(int i = 0; i < 5; i++) (yyval.v)[i] = (yyvsp[(1) - (3)].v)[i] - (yyvsp[(3) - (3)].v)[i]; ;} break; case 348: /* Line 1455 of yacc.c */ #line 3883 "Gmsh.y" { for(int i = 0; i < 5; i++) (yyval.v)[i] = (yyvsp[(1) - (3)].v)[i] + (yyvsp[(3) - (3)].v)[i]; ;} break; case 349: /* Line 1455 of yacc.c */ #line 3890 "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 350: /* Line 1455 of yacc.c */ #line 3894 "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 351: /* Line 1455 of yacc.c */ #line 3898 "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 352: /* Line 1455 of yacc.c */ #line 3902 "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 353: /* Line 1455 of yacc.c */ #line 3909 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(List_T*)); List_Add((yyval.l), &((yyvsp[(1) - (1)].l))); ;} break; case 354: /* Line 1455 of yacc.c */ #line 3914 "Gmsh.y" { List_Add((yyval.l), &((yyvsp[(3) - (3)].l))); ;} break; case 355: /* Line 1455 of yacc.c */ #line 3921 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(double)); List_Add((yyval.l), &((yyvsp[(1) - (1)].d))); ;} break; case 356: /* Line 1455 of yacc.c */ #line 3926 "Gmsh.y" { (yyval.l) = (yyvsp[(1) - (1)].l); ;} break; case 357: /* Line 1455 of yacc.c */ #line 3930 "Gmsh.y" { // creates an empty list (yyval.l) = List_Create(2, 1, sizeof(double)); ;} break; case 358: /* Line 1455 of yacc.c */ #line 3935 "Gmsh.y" { (yyval.l) = (yyvsp[(2) - (3)].l); ;} break; case 359: /* Line 1455 of yacc.c */ #line 3939 "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 360: /* Line 1455 of yacc.c */ #line 3947 "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 361: /* Line 1455 of yacc.c */ #line 3958 "Gmsh.y" { (yyval.l) = (yyvsp[(1) - (1)].l); ;} break; case 362: /* Line 1455 of yacc.c */ #line 3962 "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 363: /* Line 1455 of yacc.c */ #line 3974 "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 364: /* Line 1455 of yacc.c */ #line 3982 "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 365: /* Line 1455 of yacc.c */ #line 3990 "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 366: /* Line 1455 of yacc.c */ #line 3997 "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 367: /* Line 1455 of yacc.c */ #line 4008 "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 368: /* Line 1455 of yacc.c */ #line 4028 "Gmsh.y" { (yyval.l) = GetAllEntityNumbers(0); ;} break; case 369: /* Line 1455 of yacc.c */ #line 4032 "Gmsh.y" { (yyval.l) = GetAllEntityNumbers(1); ;} break; case 370: /* Line 1455 of yacc.c */ #line 4036 "Gmsh.y" { (yyval.l) = GetAllEntityNumbers(2); ;} break; case 371: /* Line 1455 of yacc.c */ #line 4040 "Gmsh.y" { (yyval.l) = GetAllEntityNumbers(3); ;} break; case 372: /* Line 1455 of yacc.c */ #line 4044 "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 373: /* Line 1455 of yacc.c */ #line 4054 "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 374: /* Line 1455 of yacc.c */ #line 4064 "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 375: /* Line 1455 of yacc.c */ #line 4074 "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 376: /* Line 1455 of yacc.c */ #line 4094 "Gmsh.y" { (yyval.l) = List_Create(2, 1, sizeof(double)); List_Add((yyval.l), &((yyvsp[(1) - (1)].d))); ;} break; case 377: /* Line 1455 of yacc.c */ #line 4099 "Gmsh.y" { (yyval.l) = (yyvsp[(1) - (1)].l); ;} break; case 378: /* Line 1455 of yacc.c */ #line 4103 "Gmsh.y" { List_Add((yyval.l), &((yyvsp[(3) - (3)].d))); ;} break; case 379: /* Line 1455 of yacc.c */ #line 4107 "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 380: /* Line 1455 of yacc.c */ #line 4119 "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 381: /* Line 1455 of yacc.c */ #line 4123 "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 382: /* Line 1455 of yacc.c */ #line 4135 "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 383: /* Line 1455 of yacc.c */ #line 4142 "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 384: /* Line 1455 of yacc.c */ #line 4152 "Gmsh.y" { (yyval.l) = (yyvsp[(2) - (3)].l); ;} break; case 385: /* Line 1455 of yacc.c */ #line 4156 "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 386: /* Line 1455 of yacc.c */ #line 4171 "Gmsh.y" { (yyval.l) = List_Create(256, 10, sizeof(unsigned int)); List_Add((yyval.l), &((yyvsp[(1) - (1)].u))); ;} break; case 387: /* Line 1455 of yacc.c */ #line 4176 "Gmsh.y" { List_Add((yyval.l), &((yyvsp[(3) - (3)].u))); ;} break; case 388: /* Line 1455 of yacc.c */ #line 4183 "Gmsh.y" { (yyval.c) = (yyvsp[(1) - (1)].c); ;} break; case 389: /* Line 1455 of yacc.c */ #line 4187 "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 390: /* Line 1455 of yacc.c */ #line 4200 "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 391: /* Line 1455 of yacc.c */ #line 4208 "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 392: /* Line 1455 of yacc.c */ #line 4219 "Gmsh.y" { (yyval.c) = (yyvsp[(1) - (1)].c); ;} break; case 393: /* Line 1455 of yacc.c */ #line 4223 "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 394: /* Line 1455 of yacc.c */ #line 4231 "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 395: /* Line 1455 of yacc.c */ #line 4239 "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 396: /* Line 1455 of yacc.c */ #line 4247 "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 397: /* Line 1455 of yacc.c */ #line 4255 "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 398: /* Line 1455 of yacc.c */ #line 4269 "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 399: /* Line 1455 of yacc.c */ #line 4283 "Gmsh.y" { (yyval.c) = (yyvsp[(3) - (4)].c); ;} break; case 400: /* Line 1455 of yacc.c */ #line 4287 "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 1455 of yacc.c */ #line 9799 "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 1675 of yacc.c */ #line 4307 "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); }