[openib-general] [PATCH 3.2/10] osm: QoS in OpenSM

Yevgeny Kliteynik kliteyn at dev.mellanox.co.il
Tue Jan 30 07:57:02 PST 2007


QoS policy file parser Yacc & Lex generated files

Signed-off-by: Yevgeny Kliteynik <kliteyn at dev.mellanox.co.il>
---
 osm/opensm/osm_qos_parser_y.c         | 3070 +++++++++++++++++++++++++++++++++
 1 file changed, 3070 insertions(+), 0 deletions(-)

diff --git a/osm/opensm/osm_qos_parser_y.c b/osm/opensm/osm_qos_parser_y.c
new file mode 100644
index 0000000..88198a2
--- /dev/null
+++ b/osm/opensm/osm_qos_parser_y.c
@@ -0,0 +1,3070 @@
+/* A Bison parser, made by GNU Bison 1.875.  */
+
+/* Skeleton parser for Yacc-like parsing with Bison,
+   Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002 Free Software Foundation, Inc.
+
+   This program is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 2, or (at your option)
+   any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program; if not, write to the Free Software
+   Foundation, Inc., 59 Temple Place - Suite 330,
+   Boston, MA 02111-1307, USA.  */
+
+/* As a special exception, when this file is copied by Bison into a
+   Bison output file, you may use that output file without restriction.
+   This special exception was added by the Free Software Foundation
+   in version 1.24 of Bison.  */
+
+/* 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
+
+/* Skeleton name.  */
+#define YYSKELETON_NAME "yacc.c"
+
+/* Pure parsers.  */
+#define YYPURE 0
+
+/* Using locations.  */
+#define YYLSP_NEEDED 0
+
+
+
+/* Tokens.  */
+#ifndef YYTOKENTYPE
+# define YYTOKENTYPE
+   /* Put the tokens into the symbol table, so that GDB and other debuggers
+      know about them.  */
+   enum yytokentype {
+     TK_HEX_NUMBER = 258,
+     TK_DEC_NUMBER = 259,
+     TK_WHITE = 260,
+     TK_DASH = 261,
+     TK_DOTDOT = 262,
+     TK_COMMA = 263,
+     TK_TEXT = 264,
+     TK_XML_VERSION_START = 265,
+     TK_XML_VERSION_END = 266,
+     TK_QOS_POLICY_START = 267,
+     TK_QOS_POLICY_END = 268,
+     TK_PORT_GROUPS_START = 269,
+     TK_PORT_GROUPS_END = 270,
+     TK_PORT_GROUP_START = 271,
+     TK_PORT_GROUP_END = 272,
+     TK_NAME_START = 273,
+     TK_NAME_END = 274,
+     TK_USE_START = 275,
+     TK_USE_END = 276,
+     TK_PORT_GUID_START = 277,
+     TK_PORT_GUID_END = 278,
+     TK_PORT_NAME_START = 279,
+     TK_PORT_NAME_END = 280,
+     TK_PARTITION_START = 281,
+     TK_PARTITION_END = 282,
+     TK_NODE_TYPE_START = 283,
+     TK_NODE_TYPE_END = 284,
+     TK_QOS_SETUP_START = 285,
+     TK_QOS_SETUP_END = 286,
+     TK_SL2VL_TABLES_START = 287,
+     TK_SL2VL_TABLES_END = 288,
+     TK_SL2VL_SCOPE_START = 289,
+     TK_SL2VL_SCOPE_END = 290,
+     TK_GROUP_START = 291,
+     TK_GROUP_END = 292,
+     TK_FROM_START = 293,
+     TK_FROM_END = 294,
+     TK_TO_START = 295,
+     TK_TO_END = 296,
+     TK_SL2VL_TABLE_START = 297,
+     TK_SL2VL_TABLE_END = 298,
+     TK_ACROSS_START = 299,
+     TK_ACROSS_END = 300,
+     TK_ACROSS_FROM_START = 301,
+     TK_ACROSS_FROM_END = 302,
+     TK_ACROSS_TO_START = 303,
+     TK_ACROSS_TO_END = 304,
+     TK_VLARB_TABLES_START = 305,
+     TK_VLARB_TABLES_END = 306,
+     TK_VLARB_SCOPE_START = 307,
+     TK_VLARB_SCOPE_END = 308,
+     TK_VLARB_HIGH_START = 309,
+     TK_VLARB_HIGH_END = 310,
+     TK_VLARB_LOW_START = 311,
+     TK_VLARB_LOW_END = 312,
+     TK_VLARB_HIGH_LIMIT_START = 313,
+     TK_VLARB_HIGH_LIMIT_END = 314,
+     TK_QOS_LEVELS_START = 315,
+     TK_QOS_LEVELS_END = 316,
+     TK_QOS_LEVEL_START = 317,
+     TK_QOS_LEVEL_END = 318,
+     TK_SN_START = 319,
+     TK_SN_END = 320,
+     TK_SL_START = 321,
+     TK_SL_END = 322,
+     TK_CLASS_START = 323,
+     TK_CLASS_END = 324,
+     TK_MTU_LIMIT_START = 325,
+     TK_MTU_LIMIT_END = 326,
+     TK_RATE_LIMIT_START = 327,
+     TK_RATE_LIMIT_END = 328,
+     TK_PACKET_LIFE_START = 329,
+     TK_PACKET_LIFE_END = 330,
+     TK_PKEY_START = 331,
+     TK_PKEY_END = 332,
+     TK_QOS_MATCH_RULES_START = 333,
+     TK_QOS_MATCH_RULES_END = 334,
+     TK_QOS_MATCH_RULE_START = 335,
+     TK_QOS_MATCH_RULE_END = 336,
+     TK_QOS_LEVEL_SN_START = 337,
+     TK_QOS_LEVEL_SN_END = 338,
+     TK_SOURCE_START = 339,
+     TK_SOURCE_END = 340,
+     TK_DESTINATION_START = 341,
+     TK_DESTINATION_END = 342,
+     TK_SERVICE_START = 343,
+     TK_SERVICE_END = 344
+   };
+#endif
+#define TK_HEX_NUMBER 258
+#define TK_DEC_NUMBER 259
+#define TK_WHITE 260
+#define TK_DASH 261
+#define TK_DOTDOT 262
+#define TK_COMMA 263
+#define TK_TEXT 264
+#define TK_XML_VERSION_START 265
+#define TK_XML_VERSION_END 266
+#define TK_QOS_POLICY_START 267
+#define TK_QOS_POLICY_END 268
+#define TK_PORT_GROUPS_START 269
+#define TK_PORT_GROUPS_END 270
+#define TK_PORT_GROUP_START 271
+#define TK_PORT_GROUP_END 272
+#define TK_NAME_START 273
+#define TK_NAME_END 274
+#define TK_USE_START 275
+#define TK_USE_END 276
+#define TK_PORT_GUID_START 277
+#define TK_PORT_GUID_END 278
+#define TK_PORT_NAME_START 279
+#define TK_PORT_NAME_END 280
+#define TK_PARTITION_START 281
+#define TK_PARTITION_END 282
+#define TK_NODE_TYPE_START 283
+#define TK_NODE_TYPE_END 284
+#define TK_QOS_SETUP_START 285
+#define TK_QOS_SETUP_END 286
+#define TK_SL2VL_TABLES_START 287
+#define TK_SL2VL_TABLES_END 288
+#define TK_SL2VL_SCOPE_START 289
+#define TK_SL2VL_SCOPE_END 290
+#define TK_GROUP_START 291
+#define TK_GROUP_END 292
+#define TK_FROM_START 293
+#define TK_FROM_END 294
+#define TK_TO_START 295
+#define TK_TO_END 296
+#define TK_SL2VL_TABLE_START 297
+#define TK_SL2VL_TABLE_END 298
+#define TK_ACROSS_START 299
+#define TK_ACROSS_END 300
+#define TK_ACROSS_FROM_START 301
+#define TK_ACROSS_FROM_END 302
+#define TK_ACROSS_TO_START 303
+#define TK_ACROSS_TO_END 304
+#define TK_VLARB_TABLES_START 305
+#define TK_VLARB_TABLES_END 306
+#define TK_VLARB_SCOPE_START 307
+#define TK_VLARB_SCOPE_END 308
+#define TK_VLARB_HIGH_START 309
+#define TK_VLARB_HIGH_END 310
+#define TK_VLARB_LOW_START 311
+#define TK_VLARB_LOW_END 312
+#define TK_VLARB_HIGH_LIMIT_START 313
+#define TK_VLARB_HIGH_LIMIT_END 314
+#define TK_QOS_LEVELS_START 315
+#define TK_QOS_LEVELS_END 316
+#define TK_QOS_LEVEL_START 317
+#define TK_QOS_LEVEL_END 318
+#define TK_SN_START 319
+#define TK_SN_END 320
+#define TK_SL_START 321
+#define TK_SL_END 322
+#define TK_CLASS_START 323
+#define TK_CLASS_END 324
+#define TK_MTU_LIMIT_START 325
+#define TK_MTU_LIMIT_END 326
+#define TK_RATE_LIMIT_START 327
+#define TK_RATE_LIMIT_END 328
+#define TK_PACKET_LIFE_START 329
+#define TK_PACKET_LIFE_END 330
+#define TK_PKEY_START 331
+#define TK_PKEY_END 332
+#define TK_QOS_MATCH_RULES_START 333
+#define TK_QOS_MATCH_RULES_END 334
+#define TK_QOS_MATCH_RULE_START 335
+#define TK_QOS_MATCH_RULE_END 336
+#define TK_QOS_LEVEL_SN_START 337
+#define TK_QOS_LEVEL_SN_END 338
+#define TK_SOURCE_START 339
+#define TK_SOURCE_END 340
+#define TK_DESTINATION_START 341
+#define TK_DESTINATION_END 342
+#define TK_SERVICE_START 343
+#define TK_SERVICE_END 344
+
+
+
+
+/* Copy the first part of user declarations.  */
+#line 1 "/mswg/work/kliteyn/git/management/osm/opensm/osm_qos_parser.y"
+
+/*
+ * Copyright (c) 2004-2006 Voltaire, Inc. All rights reserved.
+ * Copyright (c) 2002-2005 Mellanox Technologies LTD. All rights reserved.
+ * Copyright (c) 1996-2003 Intel Corporation. All rights reserved.
+ *
+ * This software is available to you under a choice of one of two
+ * licenses.  You may choose to be licensed under the terms of the GNU
+ * General Public License (GPL) Version 2, available from the file
+ * COPYING in the main directory of this source tree, or the
+ * OpenIB.org BSD license below:
+ *
+ *     Redistribution and use in source and binary forms, with or
+ *     without modification, are permitted provided that the following
+ *     conditions are met:
+ *
+ *      - Redistributions of source code must retain the above
+ *        copyright notice, this list of conditions and the following
+ *        disclaimer.
+ *
+ *      - Redistributions in binary form must reproduce the above
+ *        copyright notice, this list of conditions and the following
+ *        disclaimer in the documentation and/or other materials
+ *        provided with the distribution.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+ * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ */
+
+/*
+ * Abstract:
+ *    Grammar of OSM QoS parser.
+ *
+ * Environment:
+ *    Linux User Mode
+ *
+ * Author:
+ *    Yevgeny Kliteynik, Mellanox
+ */
+
+#include <opensm/osm_qos_parser.h>
+#include <opensm/osm_qos_parser_y.h>
+
+static void __osm_qos_parse_tree_init();
+
+static char * __osm_qos_parser_strip_white(char * str);
+
+static void __osm_qos_parser_str2uint64(uint64_t * p_val, char * str);
+
+static void __osm_qos_parser_port_group_start();
+static void __osm_qos_parser_port_group_end();
+
+static void __osm_qos_parser_sl2vl_scope_start();
+static void __osm_qos_parser_sl2vl_scope_end();
+
+static void __osm_qos_parser_vlarb_scope_start();
+static void __osm_qos_parser_vlarb_scope_end();
+
+static void __osm_qos_parser_qos_level_start();
+static void __osm_qos_parser_qos_level_end();
+
+static void __osm_qos_parser_match_rule_start();
+static void __osm_qos_parser_match_rule_end();
+
+extern char * yytext;
+extern void yyerror (char *s);
+extern int yylex (void);
+extern FILE * yyin;
+
+#define OSM_QOS_MAX_LINE_LEN 10000
+char str_buffer[OSM_QOS_MAX_LINE_LEN];
+#define RESET_BUFFER  str_buffer[0] = '\0'
+
+int column_num;
+int line_num;
+
+osm_qos_parse_tree_t   * p_qos_parse_tree = NULL;
+osm_qos_port_group_t   * p_current_port_group = NULL;
+osm_qos_sl2vl_scope_t  * p_current_sl2vl_scope = NULL;
+osm_qos_vlarb_scope_t  * p_current_vlarb_scope = NULL;
+osm_qos_level_t        * p_current_qos_level = NULL;
+osm_qos_match_rule_t   * p_current_qos_match_rule = NULL;
+
+osm_log_t * p_osm_log = NULL;
+
+/***************************************************/
+
+
+
+/* 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
+
+#if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
+typedef int YYSTYPE;
+# define yystype YYSTYPE /* obsolescent; will be withdrawn */
+# define YYSTYPE_IS_DECLARED 1
+# define YYSTYPE_IS_TRIVIAL 1
+#endif
+
+
+
+/* Copy the second part of user declarations.  */
+
+
+/* Line 214 of yacc.c.  */
+#line 360 "y.tab.c"
+
+#if ! defined (yyoverflow) || YYERROR_VERBOSE
+
+/* The parser invokes alloca or malloc; define the necessary symbols.  */
+
+# if YYSTACK_USE_ALLOCA
+#  define YYSTACK_ALLOC alloca
+# else
+#  ifndef YYSTACK_USE_ALLOCA
+#   if defined (alloca) || defined (_ALLOCA_H)
+#    define YYSTACK_ALLOC alloca
+#   else
+#    ifdef __GNUC__
+#     define YYSTACK_ALLOC __builtin_alloca
+#    endif
+#   endif
+#  endif
+# endif
+
+# ifdef YYSTACK_ALLOC
+   /* Pacify GCC's `empty if-body' warning. */
+#  define YYSTACK_FREE(Ptr) do { /* empty */; } while (0)
+# else
+#  if defined (__STDC__) || defined (__cplusplus)
+#   include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
+#   define YYSIZE_T size_t
+#  endif
+#  define YYSTACK_ALLOC malloc
+#  define YYSTACK_FREE free
+# endif
+#endif /* ! defined (yyoverflow) || YYERROR_VERBOSE */
+
+
+#if (! defined (yyoverflow) \
+     && (! defined (__cplusplus) \
+	 || (YYSTYPE_IS_TRIVIAL)))
+
+/* A type that is properly aligned for any stack member.  */
+union yyalloc
+{
+  short yyss;
+  YYSTYPE yyvs;
+  };
+
+/* The size of the maximum gap between one aligned stack and the next.  */
+# define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1)
+
+/* The size of an array large to enough to hold all stacks, each with
+   N elements.  */
+# define YYSTACK_BYTES(N) \
+     ((N) * (sizeof (short) + sizeof (YYSTYPE))				\
+      + YYSTACK_GAP_MAXIMUM)
+
+/* Copy COUNT objects from FROM to TO.  The source and destination do
+   not overlap.  */
+# ifndef YYCOPY
+#  if 1 < __GNUC__
+#   define YYCOPY(To, From, Count) \
+      __builtin_memcpy (To, From, (Count) * sizeof (*(From)))
+#  else
+#   define YYCOPY(To, From, Count)		\
+      do					\
+	{					\
+	  register YYSIZE_T yyi;		\
+	  for (yyi = 0; yyi < (Count); yyi++)	\
+	    (To)[yyi] = (From)[yyi];		\
+	}					\
+      while (0)
+#  endif
+# endif
+
+/* Relocate STACK from its old location to the new one.  The
+   local variables YYSIZE and YYSTACKSIZE give the old and new number of
+   elements in the stack, and YYPTR gives the new location of the
+   stack.  Advance YYPTR to a properly aligned location for the next
+   stack.  */
+# define YYSTACK_RELOCATE(Stack)					\
+    do									\
+      {									\
+	YYSIZE_T yynewbytes;						\
+	YYCOPY (&yyptr->Stack, Stack, yysize);				\
+	Stack = &yyptr->Stack;						\
+	yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
+	yyptr += yynewbytes / sizeof (*yyptr);				\
+      }									\
+    while (0)
+
+#endif
+
+#if defined (__STDC__) || defined (__cplusplus)
+   typedef signed char yysigned_char;
+#else
+   typedef short yysigned_char;
+#endif
+
+/* YYFINAL -- State number of the termination state. */
+#define YYFINAL  5
+/* YYLAST -- Last index in YYTABLE.  */
+#define YYLAST   310
+
+/* YYNTOKENS -- Number of terminals. */
+#define YYNTOKENS  90
+/* YYNNTS -- Number of nonterminals. */
+#define YYNNTS  124
+/* YYNRULES -- Number of rules. */
+#define YYNRULES  191
+/* YYNRULES -- Number of states. */
+#define YYNSTATES  281
+
+/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX.  */
+#define YYUNDEFTOK  2
+#define YYMAXUTOK   344
+
+#define YYTRANSLATE(YYX) 						\
+  ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
+
+/* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX.  */
+static const unsigned char 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,     2,     2,     2,     2,     2,     2,     2,
+       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
+       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
+       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
+       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
+       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
+       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
+       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
+       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
+       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
+       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
+       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
+       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
+       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
+       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
+       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
+       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
+       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
+       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
+       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
+       2,     2,     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
+};
+
+#if YYDEBUG
+/* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
+   YYRHS.  */
+static const unsigned short yyprhs[] =
+{
+       0,     0,     3,     6,     7,    11,    12,    17,    19,    21,
+      22,    25,    27,    29,    31,    33,    37,    39,    41,    43,
+      46,    50,    52,    54,    55,    58,    60,    62,    64,    66,
+      68,    70,    74,    76,    78,    79,    82,    85,    89,    91,
+      93,    94,    97,   101,   103,   105,   106,   109,   111,   113,
+     115,   117,   119,   121,   123,   127,   129,   131,   132,   135,
+     139,   141,   143,   144,   147,   149,   151,   153,   155,   157,
+     161,   163,   165,   166,   171,   173,   175,   176,   179,   181,
+     183,   185,   187,   189,   191,   193,   195,   199,   201,   203,
+     204,   209,   211,   213,   214,   217,   219,   221,   223,   225,
+     227,   229,   233,   235,   239,   241,   245,   247,   251,   253,
+     257,   259,   263,   265,   269,   271,   275,   277,   281,   283,
+     287,   289,   293,   295,   299,   301,   309,   311,   315,   317,
+     321,   323,   327,   329,   333,   335,   339,   341,   345,   347,
+     351,   353,   357,   359,   367,   369,   377,   379,   383,   385,
+     389,   391,   399,   401,   409,   411,   415,   417,   418,   421,
+     423,   425,   427,   429,   431,   433,   435,   437,   440,   443,
+     446,   449,   451,   454,   457,   460,   463,   466,   468,   471,
+     474,   477,   480,   483,   485,   487,   489,   491,   493,   495,
+     497,   498
+};
+
+/* YYRHS -- A `-1'-separated list of the rules' RHS. */
+static const short yyrhs[] =
+{
+      91,     0,    -1,    92,    93,    -1,    -1,    10,   201,    11,
+      -1,    -1,    93,    94,    96,    95,    -1,    12,    -1,    13,
+      -1,    -1,    96,    97,    -1,    98,    -1,   107,    -1,   129,
+      -1,   137,    -1,    99,   101,   100,    -1,    14,    -1,    15,
+      -1,   102,    -1,   101,   102,    -1,   103,   105,   104,    -1,
+      16,    -1,    17,    -1,    -1,   105,   106,    -1,   145,    -1,
+     147,    -1,   151,    -1,   149,    -1,   153,    -1,   155,    -1,
+     108,   110,   109,    -1,    30,    -1,    31,    -1,    -1,   110,
+     111,    -1,   110,   120,    -1,   112,   114,   113,    -1,    32,
+      -1,    33,    -1,    -1,   114,   115,    -1,   116,   118,   117,
+      -1,    34,    -1,    35,    -1,    -1,   118,   119,    -1,   157,
+      -1,   159,    -1,   161,    -1,   163,    -1,   165,    -1,   167,
+      -1,   169,    -1,   121,   123,   122,    -1,    50,    -1,    51,
+      -1,    -1,   123,   124,    -1,   125,   127,   126,    -1,    52,
+      -1,    53,    -1,    -1,   127,   128,    -1,   157,    -1,   159,
+      -1,   187,    -1,   189,    -1,   185,    -1,   130,   132,   131,
+      -1,    60,    -1,    61,    -1,    -1,   132,   133,   135,   134,
+      -1,    62,    -1,    63,    -1,    -1,   135,   136,    -1,   171,
+      -1,   147,    -1,   173,    -1,   175,    -1,   177,    -1,   179,
+      -1,   181,    -1,   183,    -1,   138,   140,   139,    -1,    78,
+      -1,    79,    -1,    -1,   140,   141,   143,   142,    -1,    80,
+      -1,    81,    -1,    -1,   143,   144,    -1,   147,    -1,   195,
+      -1,   191,    -1,   193,    -1,   197,    -1,   199,    -1,   146,
+     201,    19,    -1,    18,    -1,   148,   201,    21,    -1,    20,
+      -1,   150,   201,    25,    -1,    24,    -1,   152,   212,    23,
+      -1,    22,    -1,   154,   201,    27,    -1,    26,    -1,   156,
+     201,    29,    -1,    28,    -1,   158,   201,    37,    -1,    36,
+      -1,   160,   201,    45,    -1,    44,    -1,   162,   201,    47,
+      -1,    46,    -1,   164,   201,    49,    -1,    48,    -1,   166,
+     201,    39,    -1,    38,    -1,   168,   201,    41,    -1,    40,
+      -1,   170,   213,   210,   204,   210,   213,    43,    -1,    42,
+      -1,   172,   210,    65,    -1,    64,    -1,   174,   210,    67,
+      -1,    66,    -1,   176,   210,    71,    -1,    70,    -1,   178,
+     210,    73,    -1,    72,    -1,   180,   210,    75,    -1,    74,
+      -1,   182,   210,    77,    -1,    76,    -1,   184,   210,    69,
+      -1,    68,    -1,   186,   210,    59,    -1,    58,    -1,   188,
+     213,   210,   205,   210,   213,    55,    -1,    54,    -1,   190,
+     213,   210,   205,   210,   213,    57,    -1,    56,    -1,   192,
+     201,    85,    -1,    84,    -1,   194,   201,    87,    -1,    86,
+      -1,   196,   213,   210,   206,   210,   213,    69,    -1,    68,
+      -1,   198,   213,   210,   204,   210,   213,    89,    -1,    88,
+      -1,   200,   210,    83,    -1,    82,    -1,    -1,   201,   202,
+      -1,   203,    -1,   210,    -1,     9,    -1,     5,    -1,     6,
+      -1,     7,    -1,     8,    -1,   213,    -1,   204,   213,    -1,
+     204,   211,    -1,   204,   212,    -1,   204,   207,    -1,   213,
+      -1,   205,   213,    -1,   205,   211,    -1,   205,   212,    -1,
+     205,   207,    -1,   205,   208,    -1,   213,    -1,   206,   213,
+      -1,   206,   211,    -1,   206,   212,    -1,   206,   207,    -1,
+     206,   209,    -1,     8,    -1,     7,    -1,     6,    -1,   211,
+      -1,   212,    -1,     4,    -1,     3,    -1,    -1,     5,    -1
+};
+
+/* YYRLINE[YYN] -- source line where rule number YYN was defined.  */
+static const unsigned short yyrline[] =
+{
+       0,   190,   190,   193,   194,   197,   198,   201,   204,   207,
+     208,   211,   212,   213,   214,   247,   250,   253,   256,   257,
+     260,   263,   268,   273,   274,   277,   278,   279,   280,   281,
+     282,   318,   321,   324,   327,   328,   329,   341,   344,   347,
+     350,   351,   354,   357,   362,   367,   368,   371,   372,   373,
+     374,   375,   376,   377,   389,   392,   395,   398,   399,   402,
+     405,   410,   415,   416,   419,   420,   421,   422,   423,   453,
+     456,   459,   462,   463,   466,   471,   476,   477,   480,   481,
+     482,   483,   484,   485,   486,   487,   509,   512,   515,   518,
+     519,   522,   527,   532,   533,   536,   537,   538,   539,   540,
+     541,   548,   554,   565,   578,   612,   624,   631,   643,   650,
+     662,   669,   696,   703,   723,   730,   755,   762,   775,   783,
+     796,   804,   817,   825,   838,   846,   887,   893,   900,   912,
+     919,   931,   938,   950,   957,   969,   976,   988,   994,  1001,
+    1007,  1014,  1020,  1027,  1063,  1070,  1106,  1113,  1119,  1126,
+    1132,  1139,  1207,  1213,  1245,  1252,  1258,  1270,  1271,  1274,
+    1275,  1278,  1282,  1286,  1290,  1294,  1300,  1301,  1302,  1303,
+    1304,  1307,  1308,  1309,  1310,  1311,  1312,  1315,  1316,  1317,
+    1318,  1319,  1320,  1323,  1329,  1335,  1341,  1342,  1345,  1351,
+    1357,  1358
+};
+#endif
+
+#if YYDEBUG || YYERROR_VERBOSE
+/* YYTNME[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", "TK_HEX_NUMBER", "TK_DEC_NUMBER", 
+  "TK_WHITE", "TK_DASH", "TK_DOTDOT", "TK_COMMA", "TK_TEXT", 
+  "TK_XML_VERSION_START", "TK_XML_VERSION_END", "TK_QOS_POLICY_START", 
+  "TK_QOS_POLICY_END", "TK_PORT_GROUPS_START", "TK_PORT_GROUPS_END", 
+  "TK_PORT_GROUP_START", "TK_PORT_GROUP_END", "TK_NAME_START", 
+  "TK_NAME_END", "TK_USE_START", "TK_USE_END", "TK_PORT_GUID_START", 
+  "TK_PORT_GUID_END", "TK_PORT_NAME_START", "TK_PORT_NAME_END", 
+  "TK_PARTITION_START", "TK_PARTITION_END", "TK_NODE_TYPE_START", 
+  "TK_NODE_TYPE_END", "TK_QOS_SETUP_START", "TK_QOS_SETUP_END", 
+  "TK_SL2VL_TABLES_START", "TK_SL2VL_TABLES_END", "TK_SL2VL_SCOPE_START", 
+  "TK_SL2VL_SCOPE_END", "TK_GROUP_START", "TK_GROUP_END", "TK_FROM_START", 
+  "TK_FROM_END", "TK_TO_START", "TK_TO_END", "TK_SL2VL_TABLE_START", 
+  "TK_SL2VL_TABLE_END", "TK_ACROSS_START", "TK_ACROSS_END", 
+  "TK_ACROSS_FROM_START", "TK_ACROSS_FROM_END", "TK_ACROSS_TO_START", 
+  "TK_ACROSS_TO_END", "TK_VLARB_TABLES_START", "TK_VLARB_TABLES_END", 
+  "TK_VLARB_SCOPE_START", "TK_VLARB_SCOPE_END", "TK_VLARB_HIGH_START", 
+  "TK_VLARB_HIGH_END", "TK_VLARB_LOW_START", "TK_VLARB_LOW_END", 
+  "TK_VLARB_HIGH_LIMIT_START", "TK_VLARB_HIGH_LIMIT_END", 
+  "TK_QOS_LEVELS_START", "TK_QOS_LEVELS_END", "TK_QOS_LEVEL_START", 
+  "TK_QOS_LEVEL_END", "TK_SN_START", "TK_SN_END", "TK_SL_START", 
+  "TK_SL_END", "TK_CLASS_START", "TK_CLASS_END", "TK_MTU_LIMIT_START", 
+  "TK_MTU_LIMIT_END", "TK_RATE_LIMIT_START", "TK_RATE_LIMIT_END", 
+  "TK_PACKET_LIFE_START", "TK_PACKET_LIFE_END", "TK_PKEY_START", 
+  "TK_PKEY_END", "TK_QOS_MATCH_RULES_START", "TK_QOS_MATCH_RULES_END", 
+  "TK_QOS_MATCH_RULE_START", "TK_QOS_MATCH_RULE_END", 
+  "TK_QOS_LEVEL_SN_START", "TK_QOS_LEVEL_SN_END", "TK_SOURCE_START", 
+  "TK_SOURCE_END", "TK_DESTINATION_START", "TK_DESTINATION_END", 
+  "TK_SERVICE_START", "TK_SERVICE_END", "$accept", "head", "xml_version", 
+  "qos_policy", "qos_policy_start", "qos_policy_end", 
+  "qos_policy_entries", "qos_policy_entry", "port_groups", 
+  "port_groups_start", "port_groups_end", "port_group", 
+  "single_port_group", "port_group_start", "port_group_end", 
+  "port_group_entries", "port_group_entry", "qos_setup", 
+  "qos_setup_start", "qos_setup_end", "qos_setup_items", "sl2vl_tables", 
+  "sl2vl_tables_start", "sl2vl_tables_end", "sl2vl_scope_items", 
+  "sl2vl_scope", "sl2vl_scope_start", "sl2vl_scope_end", 
+  "sl2vl_scope_entries", "sl2vl_scope_entry", "vlarb_tables", 
+  "vlarb_tables_start", "vlarb_tables_end", "vlarb_scope_items", 
+  "vlarb_scope", "vlarb_scope_start", "vlarb_scope_end", 
+  "vlarb_scope_entries", "vlarb_scope_entry", "qos_levels", 
+  "qos_levels_start", "qos_levels_end", "qos_level_items", 
+  "qos_level_start", "qos_level_end", "qos_level_entries", 
+  "qos_level_entry", "qos_match_rules", "qos_match_rules_start", 
+  "qos_match_rules_end", "qos_match_rule_items", "qos_match_rule_start", 
+  "qos_match_rule_end", "qos_match_rule_entries", "qos_match_rule_entry", 
+  "name", "name_start", "use", "use_start", "port_name", 
+  "port_name_start", "port_guid", "port_guid_start", "partition", 
+  "partition_start", "node_type", "node_type_start", "group", 
+  "group_start", "across", "across_start", "across_from", 
+  "across_from_start", "across_to", "across_to_start", "from", 
+  "from_start", "to", "to_start", "sl2vl_table", "sl2vl_table_start", 
+  "sn", "sn_start", "sl", "sl_start", "mtu_limit", "mtu_limit_start", 
+  "rate_limit", "rate_limit_start", "packet_life", "packet_life_start", 
+  "pkey", "pkey_start", "qos_level_class", "qos_level_class_start", 
+  "vlarb_high_limit", "vlarb_high_limit_start", "vlarb_high", 
+  "vlarb_high_start", "vlarb_low", "vlarb_low_start", "source", 
+  "source_start", "destination", "destination_start", "match_rule_class", 
+  "match_rule_class_start", "service", "service_start", "qos_level_sn", 
+  "qos_level_sn_start", "any_text", "text", "pure_text", 
+  "num_list_wo_whites", "num_list_with_dotdot_wo_whites", 
+  "num_list_with_dash_wo_whites", "comma", "dotdot", "dash", "any_number", 
+  "dec_number", "hex_number", "whitespace", 0
+};
+#endif
+
+# ifdef YYPRINT
+/* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to
+   token YYLEX-NUM.  */
+static const unsigned short 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
+};
+# endif
+
+/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives.  */
+static const unsigned char yyr1[] =
+{
+       0,    90,    91,    92,    92,    93,    93,    94,    95,    96,
+      96,    97,    97,    97,    97,    98,    99,   100,   101,   101,
+     102,   103,   104,   105,   105,   106,   106,   106,   106,   106,
+     106,   107,   108,   109,   110,   110,   110,   111,   112,   113,
+     114,   114,   115,   116,   117,   118,   118,   119,   119,   119,
+     119,   119,   119,   119,   120,   121,   122,   123,   123,   124,
+     125,   126,   127,   127,   128,   128,   128,   128,   128,   129,
+     130,   131,   132,   132,   133,   134,   135,   135,   136,   136,
+     136,   136,   136,   136,   136,   136,   137,   138,   139,   140,
+     140,   141,   142,   143,   143,   144,   144,   144,   144,   144,
+     144,   145,   146,   147,   148,   149,   150,   151,   152,   153,
+     154,   155,   156,   157,   158,   159,   160,   161,   162,   163,
+     164,   165,   166,   167,   168,   169,   170,   171,   172,   173,
+     174,   175,   176,   177,   178,   179,   180,   181,   182,   183,
+     184,   185,   186,   187,   188,   189,   190,   191,   192,   193,
+     194,   195,   196,   197,   198,   199,   200,   201,   201,   202,
+     202,   203,   203,   203,   203,   203,   204,   204,   204,   204,
+     204,   205,   205,   205,   205,   205,   205,   206,   206,   206,
+     206,   206,   206,   207,   208,   209,   210,   210,   211,   212,
+     213,   213
+};
+
+/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN.  */
+static const unsigned char yyr2[] =
+{
+       0,     2,     2,     0,     3,     0,     4,     1,     1,     0,
+       2,     1,     1,     1,     1,     3,     1,     1,     1,     2,
+       3,     1,     1,     0,     2,     1,     1,     1,     1,     1,
+       1,     3,     1,     1,     0,     2,     2,     3,     1,     1,
+       0,     2,     3,     1,     1,     0,     2,     1,     1,     1,
+       1,     1,     1,     1,     3,     1,     1,     0,     2,     3,
+       1,     1,     0,     2,     1,     1,     1,     1,     1,     3,
+       1,     1,     0,     4,     1,     1,     0,     2,     1,     1,
+       1,     1,     1,     1,     1,     1,     3,     1,     1,     0,
+       4,     1,     1,     0,     2,     1,     1,     1,     1,     1,
+       1,     3,     1,     3,     1,     3,     1,     3,     1,     3,
+       1,     3,     1,     3,     1,     3,     1,     3,     1,     3,
+       1,     3,     1,     3,     1,     7,     1,     3,     1,     3,
+       1,     3,     1,     3,     1,     3,     1,     3,     1,     3,
+       1,     3,     1,     7,     1,     7,     1,     3,     1,     3,
+       1,     7,     1,     7,     1,     3,     1,     0,     2,     1,
+       1,     1,     1,     1,     1,     1,     1,     2,     2,     2,
+       2,     1,     2,     2,     2,     2,     2,     1,     2,     2,
+       2,     2,     2,     1,     1,     1,     1,     1,     1,     1,
+       0,     1
+};
+
+/* 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 unsigned char yydefact[] =
+{
+       3,   157,     0,     5,     0,     1,     2,   189,   188,   162,
+     163,   164,   165,   161,     4,   158,   159,   160,   186,   187,
+       7,     9,     0,     8,    16,    32,    70,    87,     6,    10,
+      11,     0,    12,    34,    13,    72,    14,    89,    21,     0,
+      18,    23,     0,     0,     0,    17,    15,    19,     0,    33,
+      38,    55,    31,    35,    40,    36,    57,    71,    74,    69,
+      76,    88,    91,    86,    93,    22,   102,   104,   108,   106,
+     110,   112,    20,    24,    25,   157,    26,   157,    28,   157,
+      27,     0,    29,   157,    30,   157,     0,     0,     0,     0,
+       0,     0,     0,     0,     0,     0,    39,    43,    37,    41,
+      45,    56,    60,    54,    58,    62,    75,   128,   130,   140,
+     132,   134,   136,   138,    73,    77,    79,    78,     0,    80,
+       0,    81,     0,    82,     0,    83,     0,    84,     0,    85,
+       0,   152,    92,   156,   148,   150,   154,    90,    94,    95,
+      97,   157,    98,   157,    96,   190,    99,   190,   100,     0,
+     101,   103,   105,   107,   109,   111,     0,     0,     0,     0,
+       0,     0,     0,     0,     0,     0,     0,   191,     0,     0,
+       0,    44,   114,   122,   124,   126,   116,   118,   120,    42,
+      46,    47,   157,    48,   157,    49,   157,    50,   157,    51,
+     157,    52,   157,    53,   190,    61,   144,   146,   142,    59,
+      63,    64,    65,    68,     0,    66,   190,    67,   190,   127,
+     129,   131,   133,   135,   137,   139,   147,   149,   190,   190,
+     155,     0,     0,     0,     0,     0,     0,     0,     0,     0,
+       0,     0,   177,     0,   166,   113,   115,   117,   119,   121,
+     123,   190,   141,   190,   190,   185,   183,   181,   182,   190,
+     179,   180,   178,   170,   190,   168,   169,   167,     0,     0,
+     171,     0,     0,     0,   190,   184,   175,   176,   190,   173,
+     174,   172,   190,   151,   153,     0,     0,     0,   125,   143,
+     145
+};
+
+/* YYDEFGOTO[NTERM-NUM]. */
+static const short yydefgoto[] =
+{
+      -1,     2,     3,     6,    21,    28,    22,    29,    30,    31,
+      46,    39,    40,    41,    72,    48,    73,    32,    33,    52,
+      42,    53,    54,    98,    86,    99,   100,   179,   156,   180,
+      55,    56,   103,    87,   104,   105,   199,   157,   200,    34,
+      35,    59,    43,    60,   114,    88,   115,    36,    37,    63,
+      44,    64,   137,    89,   138,    74,    75,    76,    77,    78,
+      79,    80,    81,    82,    83,    84,    85,   181,   182,   183,
+     184,   185,   186,   187,   188,   189,   190,   191,   192,   193,
+     194,   117,   118,   119,   120,   121,   122,   123,   124,   125,
+     126,   127,   128,   129,   130,   203,   204,   205,   206,   207,
+     208,   140,   141,   142,   143,   144,   145,   146,   147,   148,
+     149,     4,    15,    16,   233,   259,   231,   253,   267,   248,
+      17,    18,    19,   234
+};
+
+/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
+   STATE-NUM.  */
+#define YYPACT_NINF -192
+static const short yypact[] =
+{
+       0,  -192,     2,  -192,   293,  -192,     4,  -192,  -192,  -192,
+    -192,  -192,  -192,  -192,  -192,  -192,  -192,  -192,  -192,  -192,
+    -192,  -192,     1,  -192,  -192,  -192,  -192,  -192,  -192,  -192,
+    -192,    14,  -192,  -192,  -192,  -192,  -192,  -192,  -192,    56,
+    -192,  -192,    34,    70,    66,  -192,  -192,  -192,   267,  -192,
+    -192,  -192,  -192,  -192,  -192,  -192,  -192,  -192,  -192,  -192,
+    -192,  -192,  -192,  -192,  -192,  -192,  -192,  -192,  -192,  -192,
+    -192,  -192,  -192,  -192,  -192,  -192,  -192,  -192,  -192,  -192,
+    -192,    15,  -192,  -192,  -192,  -192,   139,   144,    22,    -8,
+     257,   247,   234,    18,   209,   202,  -192,  -192,  -192,  -192,
+    -192,  -192,  -192,  -192,  -192,  -192,  -192,  -192,  -192,  -192,
+    -192,  -192,  -192,  -192,  -192,  -192,  -192,  -192,   216,  -192,
+     216,  -192,   216,  -192,   216,  -192,   216,  -192,   216,  -192,
+     216,  -192,  -192,  -192,  -192,  -192,  -192,  -192,  -192,  -192,
+    -192,  -192,  -192,  -192,  -192,    48,  -192,    48,  -192,   216,
+    -192,  -192,  -192,  -192,  -192,  -192,   235,   191,   -10,     8,
+     -14,    -6,   -16,     5,    26,    30,    20,  -192,   216,   216,
+      28,  -192,  -192,  -192,  -192,  -192,  -192,  -192,  -192,  -192,
+    -192,  -192,  -192,  -192,  -192,  -192,  -192,  -192,  -192,  -192,
+    -192,  -192,  -192,  -192,    48,  -192,  -192,  -192,  -192,  -192,
+    -192,  -192,  -192,  -192,   216,  -192,    48,  -192,    48,  -192,
+    -192,  -192,  -192,  -192,  -192,  -192,  -192,  -192,    48,    48,
+    -192,   195,   178,   150,    40,   185,    96,   216,    32,   216,
+     216,   122,  -192,   171,  -192,  -192,  -192,  -192,  -192,  -192,
+    -192,    48,  -192,    48,    48,  -192,  -192,  -192,  -192,    48,
+      69,    71,  -192,  -192,    48,   -39,   -26,  -192,   171,   302,
+    -192,   302,    91,   -12,    48,  -192,  -192,  -192,    48,   -49,
+     -36,  -192,    48,  -192,  -192,    54,    62,    52,  -192,  -192,
+    -192
+};
+
+/* YYPGOTO[NTERM-NUM].  */
+static const short yypgoto[] =
+{
+    -192,  -192,  -192,  -192,  -192,  -192,  -192,  -192,  -192,  -192,
+    -192,  -192,   123,  -192,  -192,  -192,  -192,  -192,  -192,  -192,
+    -192,  -192,  -192,  -192,  -192,  -192,  -192,  -192,  -192,  -192,
+    -192,  -192,  -192,  -192,  -192,  -192,  -192,  -192,  -192,  -192,
+    -192,  -192,  -192,  -192,  -192,  -192,  -192,  -192,  -192,  -192,
+    -192,  -192,  -192,  -192,  -192,  -192,  -192,   133,  -192,  -192,
+    -192,  -192,  -192,  -192,  -192,  -192,  -192,   -22,  -192,     7,
+    -192,  -192,  -192,  -192,  -192,  -192,  -192,  -192,  -192,  -192,
+    -192,  -192,  -192,  -192,  -192,  -192,  -192,  -192,  -192,  -192,
+    -192,  -192,  -192,  -192,  -192,  -192,  -192,  -192,  -192,  -192,
+    -192,  -192,  -192,  -192,  -192,  -192,  -192,  -192,  -192,  -192,
+    -192,   -21,  -192,  -192,   -75,   -76,  -192,  -191,  -192,  -192,
+    -117,  -110,   -81,  -125
+};
+
+/* 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 -188
+static const short yytable[] =
+{
+      93,   158,     5,   159,  -186,   160,  -186,   161,  -186,   162,
+       1,   163,    67,   164,    23,    24,    20,  -187,     7,  -187,
+     168,  -187,   169,     7,     8,     9,    10,    11,    12,    13,
+      38,    25,   170,     7,     8,     9,    10,    11,    12,    13,
+     247,   153,    67,     7,     8,     9,    10,    11,    12,    13,
+    -186,   218,   219,   167,    90,   209,    91,   211,    92,   213,
+     131,    26,    94,  -187,    95,    49,    50,   212,   266,   227,
+     266,    45,    38,   132,   133,   210,   134,   274,   135,    27,
+     136,   229,   214,   230,    51,   106,   107,   228,   108,   238,
+     109,   242,   110,   232,   111,   215,   112,   278,   113,     7,
+       8,     9,    10,    11,    12,    13,   252,   217,   257,   280,
+     241,   220,   243,   244,   249,   216,   254,   279,   260,   260,
+     165,   250,   166,   255,   262,     7,     8,   167,   245,   263,
+     246,    57,    58,   257,   271,   201,   271,   240,  -186,   275,
+    -187,   264,   268,   276,   272,    61,    62,   277,   255,   269,
+     251,   269,   256,     7,     8,     9,    10,    11,    12,    13,
+     273,   221,    47,   222,   202,   223,   258,   224,   261,   225,
+       0,   226,    96,    97,     7,     8,   167,   256,   270,   246,
+     270,     7,     8,     9,    10,    11,    12,    13,     7,     8,
+       9,    10,    11,    12,    13,   101,   102,   237,     7,     8,
+       9,    10,    11,    12,    13,     7,     8,     9,    10,    11,
+      12,    13,     7,     8,     9,    10,    11,    12,    13,     7,
+       8,   116,   139,   236,   239,     0,     0,   172,     0,     0,
+       0,   155,   235,     0,     0,   176,   154,     7,     8,     9,
+      10,    11,    12,    13,   195,   196,     0,   197,     0,   198,
+       7,     8,     9,    10,    11,    12,    13,     0,     0,   152,
+       7,     8,     9,    10,    11,    12,    13,     0,   151,     0,
+     171,   172,     0,   173,     0,   174,   150,   175,     0,   176,
+       0,   177,     0,   178,    65,    66,     0,    67,     0,    68,
+       0,    69,     0,    70,     0,    71,     7,     8,     9,    10,
+      11,    12,    13,     0,    14,     7,     8,   167,     0,   265,
+     246
+};
+
+static const short yycheck[] =
+{
+      81,   118,     0,   120,    43,   122,    55,   124,    57,   126,
+      10,   128,    20,   130,    13,    14,    12,    43,     3,    55,
+     145,    57,   147,     3,     4,     5,     6,     7,     8,     9,
+      16,    30,   149,     3,     4,     5,     6,     7,     8,     9,
+     231,    23,    20,     3,     4,     5,     6,     7,     8,     9,
+      89,   168,   169,     5,    75,    65,    77,    71,    79,    75,
+      68,    60,    83,    89,    85,    31,    32,    73,   259,   194,
+     261,    15,    16,    81,    82,    67,    84,    89,    86,    78,
+      88,   206,    77,   208,    50,    63,    64,   204,    66,    49,
+      68,    59,    70,   218,    72,    69,    74,    43,    76,     3,
+       4,     5,     6,     7,     8,     9,   231,    87,   233,    57,
+     227,    83,   229,   230,   231,    85,   233,    55,   243,   244,
+     141,   231,   143,   233,   249,     3,     4,     5,     6,   254,
+       8,    61,    62,   258,   259,   157,   261,    41,    69,   264,
+      69,   258,   259,   268,   261,    79,    80,   272,   258,   259,
+     231,   261,   233,     3,     4,     5,     6,     7,     8,     9,
+      69,   182,    39,   184,   157,   186,   241,   188,   244,   190,
+      -1,   192,    33,    34,     3,     4,     5,   258,   259,     8,
+     261,     3,     4,     5,     6,     7,     8,     9,     3,     4,
+       5,     6,     7,     8,     9,    51,    52,    47,     3,     4,
+       5,     6,     7,     8,     9,     3,     4,     5,     6,     7,
+       8,     9,     3,     4,     5,     6,     7,     8,     9,     3,
+       4,    88,    89,    45,    39,    -1,    -1,    36,    -1,    -1,
+      -1,    29,    37,    -1,    -1,    44,    27,     3,     4,     5,
+       6,     7,     8,     9,    53,    54,    -1,    56,    -1,    58,
+       3,     4,     5,     6,     7,     8,     9,    -1,    -1,    25,
+       3,     4,     5,     6,     7,     8,     9,    -1,    21,    -1,
+      35,    36,    -1,    38,    -1,    40,    19,    42,    -1,    44,
+      -1,    46,    -1,    48,    17,    18,    -1,    20,    -1,    22,
+      -1,    24,    -1,    26,    -1,    28,     3,     4,     5,     6,
+       7,     8,     9,    -1,    11,     3,     4,     5,    -1,     7,
+       8
+};
+
+/* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
+   symbol of state STATE-NUM.  */
+static const unsigned char yystos[] =
+{
+       0,    10,    91,    92,   201,     0,    93,     3,     4,     5,
+       6,     7,     8,     9,    11,   202,   203,   210,   211,   212,
+      12,    94,    96,    13,    14,    30,    60,    78,    95,    97,
+      98,    99,   107,   108,   129,   130,   137,   138,    16,   101,
+     102,   103,   110,   132,   140,    15,   100,   102,   105,    31,
+      32,    50,   109,   111,   112,   120,   121,    61,    62,   131,
+     133,    79,    80,   139,   141,    17,    18,    20,    22,    24,
+      26,    28,   104,   106,   145,   146,   147,   148,   149,   150,
+     151,   152,   153,   154,   155,   156,   114,   123,   135,   143,
+     201,   201,   201,   212,   201,   201,    33,    34,   113,   115,
+     116,    51,    52,   122,   124,   125,    63,    64,    66,    68,
+      70,    72,    74,    76,   134,   136,   147,   171,   172,   173,
+     174,   175,   176,   177,   178,   179,   180,   181,   182,   183,
+     184,    68,    81,    82,    84,    86,    88,   142,   144,   147,
+     191,   192,   193,   194,   195,   196,   197,   198,   199,   200,
+      19,    21,    25,    23,    27,    29,   118,   127,   210,   210,
+     210,   210,   210,   210,   210,   201,   201,     5,   213,   213,
+     210,    35,    36,    38,    40,    42,    44,    46,    48,   117,
+     119,   157,   158,   159,   160,   161,   162,   163,   164,   165,
+     166,   167,   168,   169,   170,    53,    54,    56,    58,   126,
+     128,   157,   159,   185,   186,   187,   188,   189,   190,    65,
+      67,    71,    73,    75,    77,    69,    85,    87,   210,   210,
+      83,   201,   201,   201,   201,   201,   201,   213,   210,   213,
+     213,   206,   213,   204,   213,    37,    45,    47,    49,    39,
+      41,   210,    59,   210,   210,     6,     8,   207,   209,   210,
+     211,   212,   213,   207,   210,   211,   212,   213,   204,   205,
+     213,   205,   213,   213,   210,     7,   207,   208,   210,   211,
+     212,   213,   210,    69,    89,   213,   213,   213,    43,    55,
+      57
+};
+
+#if ! defined (YYSIZE_T) && defined (__SIZE_TYPE__)
+# define YYSIZE_T __SIZE_TYPE__
+#endif
+#if ! defined (YYSIZE_T) && defined (size_t)
+# define YYSIZE_T size_t
+#endif
+#if ! defined (YYSIZE_T)
+# if defined (__STDC__) || defined (__cplusplus)
+#  include <stddef.h> /* INFRINGES ON USER NAME SPACE */
+#  define YYSIZE_T size_t
+# endif
+#endif
+#if ! defined (YYSIZE_T)
+# define YYSIZE_T unsigned int
+#endif
+
+#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 yyerrlab1
+
+/* 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;						\
+      goto yybackup;						\
+    }								\
+  else								\
+    { 								\
+      yyerror ("syntax error: cannot back up");\
+      YYERROR;							\
+    }								\
+while (0)
+
+#define YYTERROR	1
+#define YYERRCODE	256
+
+/* YYLLOC_DEFAULT -- Compute the default location (before the actions
+   are run).  */
+
+#ifndef YYLLOC_DEFAULT
+# define YYLLOC_DEFAULT(Current, Rhs, N)         \
+  Current.first_line   = Rhs[1].first_line;      \
+  Current.first_column = Rhs[1].first_column;    \
+  Current.last_line    = Rhs[N].last_line;       \
+  Current.last_column  = Rhs[N].last_column;
+#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 (0)
+
+# define YYDSYMPRINT(Args)			\
+do {						\
+  if (yydebug)					\
+    yysymprint Args;				\
+} while (0)
+
+# define YYDSYMPRINTF(Title, Token, Value, Location)		\
+do {								\
+  if (yydebug)							\
+    {								\
+      YYFPRINTF (stderr, "%s ", Title);				\
+      yysymprint (stderr, 					\
+                  Token, Value);	\
+      YYFPRINTF (stderr, "\n");					\
+    }								\
+} while (0)
+
+/*------------------------------------------------------------------.
+| yy_stack_print -- Print the state stack from its BOTTOM up to its |
+| TOP (cinluded).                                                   |
+`------------------------------------------------------------------*/
+
+#if defined (__STDC__) || defined (__cplusplus)
+static void
+yy_stack_print (short *bottom, short *top)
+#else
+static void
+yy_stack_print (bottom, top)
+    short *bottom;
+    short *top;
+#endif
+{
+  YYFPRINTF (stderr, "Stack now");
+  for (/* Nothing. */; bottom <= top; ++bottom)
+    YYFPRINTF (stderr, " %d", *bottom);
+  YYFPRINTF (stderr, "\n");
+}
+
+# define YY_STACK_PRINT(Bottom, Top)				\
+do {								\
+  if (yydebug)							\
+    yy_stack_print ((Bottom), (Top));				\
+} while (0)
+
+
+/*------------------------------------------------.
+| Report that the YYRULE is going to be reduced.  |
+`------------------------------------------------*/
+
+#if defined (__STDC__) || defined (__cplusplus)
+static void
+yy_reduce_print (int yyrule)
+#else
+static void
+yy_reduce_print (yyrule)
+    int yyrule;
+#endif
+{
+  int yyi;
+  unsigned int yylineno = yyrline[yyrule];
+  YYFPRINTF (stderr, "Reducing stack by rule %d (line %u), ",
+             yyrule - 1, yylineno);
+  /* Print the symbols being reduced, and their result.  */
+  for (yyi = yyprhs[yyrule]; 0 <= yyrhs[yyi]; yyi++)
+    YYFPRINTF (stderr, "%s ", yytname [yyrhs[yyi]]);
+  YYFPRINTF (stderr, "-> %s\n", yytname [yyr1[yyrule]]);
+}
+
+# define YY_REDUCE_PRINT(Rule)		\
+do {					\
+  if (yydebug)				\
+    yy_reduce_print (Rule);		\
+} while (0)
+
+/* Nonzero means print parse trace.  It is left uninitialized so that
+   multiple parsers can coexist.  */
+int yydebug;
+#else /* !YYDEBUG */
+# define YYDPRINTF(Args)
+# define YYDSYMPRINT(Args)
+# define YYDSYMPRINTF(Title, Token, 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
+   SIZE_MAX < YYSTACK_BYTES (YYMAXDEPTH)
+   evaluated with infinite-precision integer arithmetic.  */
+
+#if YYMAXDEPTH == 0
+# undef YYMAXDEPTH
+#endif
+
+#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.  */
+static YYSIZE_T
+#   if defined (__STDC__) || defined (__cplusplus)
+yystrlen (const char *yystr)
+#   else
+yystrlen (yystr)
+     const char *yystr;
+#   endif
+{
+  register const char *yys = yystr;
+
+  while (*yys++ != '\0')
+    continue;
+
+  return yys - yystr - 1;
+}
+#  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.  */
+static char *
+#   if defined (__STDC__) || defined (__cplusplus)
+yystpcpy (char *yydest, const char *yysrc)
+#   else
+yystpcpy (yydest, yysrc)
+     char *yydest;
+     const char *yysrc;
+#   endif
+{
+  register char *yyd = yydest;
+  register const char *yys = yysrc;
+
+  while ((*yyd++ = *yys++) != '\0')
+    continue;
+
+  return yyd - 1;
+}
+#  endif
+# endif
+
+#endif /* !YYERROR_VERBOSE */
+
+

+
+#if YYDEBUG
+/*--------------------------------.
+| Print this symbol on YYOUTPUT.  |
+`--------------------------------*/
+
+#if defined (__STDC__) || defined (__cplusplus)
+static void
+yysymprint (FILE *yyoutput, int yytype, YYSTYPE *yyvaluep)
+#else
+static void
+yysymprint (yyoutput, yytype, yyvaluep)
+    FILE *yyoutput;
+    int yytype;
+    YYSTYPE *yyvaluep;
+#endif
+{
+  /* Pacify ``unused variable'' warnings.  */
+  (void) yyvaluep;
+
+  if (yytype < YYNTOKENS)
+    {
+      YYFPRINTF (yyoutput, "token %s (", yytname[yytype]);
+# ifdef YYPRINT
+      YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
+# endif
+    }
+  else
+    YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]);
+
+  switch (yytype)
+    {
+      default:
+        break;
+    }
+  YYFPRINTF (yyoutput, ")");
+}
+
+#endif /* ! YYDEBUG */
+/*-----------------------------------------------.
+| Release the memory associated to this symbol.  |
+`-----------------------------------------------*/
+
+#if defined (__STDC__) || defined (__cplusplus)
+static void
+yydestruct (int yytype, YYSTYPE *yyvaluep)
+#else
+static void
+yydestruct (yytype, yyvaluep)
+    int yytype;
+    YYSTYPE *yyvaluep;
+#endif
+{
+  /* Pacify ``unused variable'' warnings.  */
+  (void) yyvaluep;
+
+  switch (yytype)
+    {
+
+      default:
+        break;
+    }
+}
+

+
+/* Prevent warnings from -Wmissing-prototypes.  */
+
+#ifdef YYPARSE_PARAM
+# if defined (__STDC__) || defined (__cplusplus)
+int yyparse (void *YYPARSE_PARAM);
+# else
+int yyparse ();
+# endif
+#else /* ! YYPARSE_PARAM */
+#if defined (__STDC__) || defined (__cplusplus)
+int yyparse (void);
+#else
+int yyparse ();
+#endif
+#endif /* ! YYPARSE_PARAM */
+
+
+
+/* The lookahead symbol.  */
+int yychar;
+
+/* The semantic value of the lookahead symbol.  */
+YYSTYPE yylval;
+
+/* Number of syntax errors so far.  */
+int yynerrs;
+
+
+
+/*----------.
+| yyparse.  |
+`----------*/
+
+#ifdef YYPARSE_PARAM
+# if defined (__STDC__) || defined (__cplusplus)
+int yyparse (void *YYPARSE_PARAM)
+# else
+int yyparse (YYPARSE_PARAM)
+  void *YYPARSE_PARAM;
+# endif
+#else /* ! YYPARSE_PARAM */
+#if defined (__STDC__) || defined (__cplusplus)
+int
+yyparse (void)
+#else
+int
+yyparse ()
+
+#endif
+#endif
+{
+  
+  register int yystate;
+  register int yyn;
+  int yyresult;
+  /* Number of tokens to shift before error messages enabled.  */
+  int yyerrstatus;
+  /* Lookahead token as an internal (translated) token number.  */
+  int yytoken = 0;
+
+  /* Three stacks and their tools:
+     `yyss': related to states,
+     `yyvs': related to semantic values,
+     `yyls': related to locations.
+
+     Refer to the stacks thru separate pointers, to allow yyoverflow
+     to reallocate them elsewhere.  */
+
+  /* The state stack.  */
+  short	yyssa[YYINITDEPTH];
+  short *yyss = yyssa;
+  register short *yyssp;
+
+  /* The semantic value stack.  */
+  YYSTYPE yyvsa[YYINITDEPTH];
+  YYSTYPE *yyvs = yyvsa;
+  register YYSTYPE *yyvsp;
+
+
+
+#define YYPOPSTACK   (yyvsp--, yyssp--)
+
+  YYSIZE_T yystacksize = YYINITDEPTH;
+
+  /* The variables used to return semantic value and location from the
+     action routines.  */
+  YYSTYPE yyval;
+
+
+  /* When reducing, the number of symbols on the RHS of the reduced
+     rule.  */
+  int yylen;
+
+  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;
+	short *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 ("parser stack overflow",
+		    &yyss1, yysize * sizeof (*yyssp),
+		    &yyvs1, yysize * sizeof (*yyvsp),
+
+		    &yystacksize);
+
+	yyss = yyss1;
+	yyvs = yyvs1;
+      }
+#else /* no yyoverflow */
+# ifndef YYSTACK_RELOCATE
+      goto yyoverflowlab;
+# else
+      /* Extend the stack our own way.  */
+      if (YYMAXDEPTH <= yystacksize)
+	goto yyoverflowlab;
+      yystacksize *= 2;
+      if (YYMAXDEPTH < yystacksize)
+	yystacksize = YYMAXDEPTH;
+
+      {
+	short *yyss1 = yyss;
+	union yyalloc *yyptr =
+	  (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize));
+	if (! yyptr)
+	  goto yyoverflowlab;
+	YYSTACK_RELOCATE (yyss);
+	YYSTACK_RELOCATE (yyvs);
+
+#  undef YYSTACK_RELOCATE
+	if (yyss1 != yyssa)
+	  YYSTACK_FREE (yyss1);
+      }
+# endif
+#endif /* no yyoverflow */
+
+      yyssp = yyss + yysize - 1;
+      yyvsp = yyvs + yysize - 1;
+
+
+      YYDPRINTF ((stderr, "Stack size increased to %lu\n",
+		  (unsigned long int) yystacksize));
+
+      if (yyss + yystacksize - 1 <= yyssp)
+	YYABORT;
+    }
+
+  YYDPRINTF ((stderr, "Entering state %d\n", yystate));
+
+  goto yybackup;
+
+/*-----------.
+| yybackup.  |
+`-----------*/
+yybackup:
+
+/* Do appropriate processing given the current state.  */
+/* Read a lookahead token if we need one and don't already have one.  */
+/* yyresume: */
+
+  /* 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);
+      YYDSYMPRINTF ("Next token is", yytoken, &yylval, &yylloc);
+    }
+
+  /* If the proper action on seeing token YYTOKEN is to reduce or to
+     detect an error, take that action.  */
+  yyn += yytoken;
+  if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken)
+    goto yydefault;
+  yyn = yytable[yyn];
+  if (yyn <= 0)
+    {
+      if (yyn == 0 || yyn == YYTABLE_NINF)
+	goto yyerrlab;
+      yyn = -yyn;
+      goto yyreduce;
+    }
+
+  if (yyn == YYFINAL)
+    YYACCEPT;
+
+  /* Shift the lookahead token.  */
+  YYDPRINTF ((stderr, "Shifting token %s, ", yytname[yytoken]));
+
+  /* Discard the token being shifted unless it is eof.  */
+  if (yychar != YYEOF)
+    yychar = YYEMPTY;
+
+  *++yyvsp = yylval;
+
+
+  /* Count tokens shifted since error; after three, turn off error
+     status.  */
+  if (yyerrstatus)
+    yyerrstatus--;
+
+  yystate = yyn;
+  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 21:
+#line 263 "/mswg/work/kliteyn/git/management/osm/opensm/osm_qos_parser.y"
+    {
+                        __osm_qos_parser_port_group_start();
+                    }
+    break;
+
+  case 22:
+#line 268 "/mswg/work/kliteyn/git/management/osm/opensm/osm_qos_parser.y"
+    {
+                        __osm_qos_parser_port_group_end();
+                    }
+    break;
+
+  case 43:
+#line 357 "/mswg/work/kliteyn/git/management/osm/opensm/osm_qos_parser.y"
+    {
+                        __osm_qos_parser_sl2vl_scope_start();
+                    }
+    break;
+
+  case 44:
+#line 362 "/mswg/work/kliteyn/git/management/osm/opensm/osm_qos_parser.y"
+    {
+                        __osm_qos_parser_sl2vl_scope_end();
+                    }
+    break;
+
+  case 60:
+#line 405 "/mswg/work/kliteyn/git/management/osm/opensm/osm_qos_parser.y"
+    {
+                        __osm_qos_parser_vlarb_scope_start();
+                    }
+    break;
+
+  case 61:
+#line 410 "/mswg/work/kliteyn/git/management/osm/opensm/osm_qos_parser.y"
+    {
+                        __osm_qos_parser_vlarb_scope_end();
+                    }
+    break;
+
+  case 74:
+#line 466 "/mswg/work/kliteyn/git/management/osm/opensm/osm_qos_parser.y"
+    {
+                        __osm_qos_parser_qos_level_start();
+                    }
+    break;
+
+  case 75:
+#line 471 "/mswg/work/kliteyn/git/management/osm/opensm/osm_qos_parser.y"
+    {
+                        __osm_qos_parser_qos_level_end();
+                    }
+    break;
+
+  case 91:
+#line 522 "/mswg/work/kliteyn/git/management/osm/opensm/osm_qos_parser.y"
+    {
+                        __osm_qos_parser_match_rule_start();
+                    }
+    break;
+
+  case 92:
+#line 527 "/mswg/work/kliteyn/git/management/osm/opensm/osm_qos_parser.y"
+    {
+                        __osm_qos_parser_match_rule_end();
+                    }
+    break;
+
+  case 101:
+#line 548 "/mswg/work/kliteyn/git/management/osm/opensm/osm_qos_parser.y"
+    {
+                        /* <name> of <port-group> - one instance */
+                        p_current_port_group->name = strdup(__osm_qos_parser_strip_white(str_buffer));
+                    }
+    break;
+
+  case 102:
+#line 554 "/mswg/work/kliteyn/git/management/osm/opensm/osm_qos_parser.y"
+    {
+                        /* <name> of <port-group> - one instance */
+                        RESET_BUFFER;
+                        if (p_current_port_group->name)
+                        {
+                           yyerror("<port-group> has multiple <name> tags");
+                           return 1;
+                        }
+                    }
+    break;
+
+  case 103:
+#line 565 "/mswg/work/kliteyn/git/management/osm/opensm/osm_qos_parser.y"
+    {
+                        /* <use> of <port-group>,<qos-level>,<qos-match-rule> - one instance */
+                        if (p_current_port_group)
+                            p_current_port_group->use = strdup(__osm_qos_parser_strip_white(str_buffer));
+                        else if (p_current_qos_level)
+                            p_current_qos_level->use = strdup(__osm_qos_parser_strip_white(str_buffer));
+                        else if (p_current_qos_match_rule)
+                            p_current_qos_match_rule->use = strdup(__osm_qos_parser_strip_white(str_buffer));
+                        else
+                            CL_ASSERT(0);
+                    }
+    break;
+
+  case 104:
+#line 578 "/mswg/work/kliteyn/git/management/osm/opensm/osm_qos_parser.y"
+    {
+                        RESET_BUFFER;
+                        if (p_current_port_group)
+                        {
+                            /* <use> of <port-group> - one instance */
+                            if (p_current_port_group->use)
+                            {
+                                yyerror("<port-group> has multiple <use> tags");
+                                return 1;
+                            }
+                        }
+                        else if (p_current_qos_level)
+                        {
+                            /* <use> of <qos-level> - one instance */
+                            if (p_current_qos_level->use)
+                            {
+                                yyerror("<qos-level> has multiple <use> tags");
+                                return 1;
+                            }
+                        }
+                        else if (p_current_qos_match_rule)
+                        {
+                            /* <use> of <qos-match-rule> - one instance */
+                            if (p_current_qos_match_rule->use)
+                            {
+                                yyerror("<qos-match-rule> has multiple <use> tags");
+                                return 1;
+                            }
+                        }
+                        else
+                           CL_ASSERT(0);
+                    }
+    break;
+
+  case 105:
+#line 612 "/mswg/work/kliteyn/git/management/osm/opensm/osm_qos_parser.y"
+    {
+                        /* <port-name> in <port-group> - any num of instances */
+                        osm_qos_string_vector_item_t * p_str_item =
+                            (osm_qos_string_vector_item_t *)malloc(sizeof(osm_qos_string_vector_item_t));
+
+                        p_str_item->str = strdup(__osm_qos_parser_strip_white(str_buffer));
+                        cl_ptr_vector_insert(&p_current_port_group->port_names,
+                                             p_str_item,
+                                             NULL);
+                    }
+    break;
+
+  case 106:
+#line 624 "/mswg/work/kliteyn/git/management/osm/opensm/osm_qos_parser.y"
+    {
+                        /* <port-name> in <port-group> - any num of instances */
+                        CL_ASSERT(p_current_port_group);
+                        RESET_BUFFER;
+                    }
+    break;
+
+  case 107:
+#line 631 "/mswg/work/kliteyn/git/management/osm/opensm/osm_qos_parser.y"
+    {
+                        osm_qos_uint64_vector_item_t * p_uint64_item =
+                            (osm_qos_uint64_vector_item_t *)malloc(sizeof(osm_qos_uint64_vector_item_t));
+
+                        __osm_qos_parser_str2uint64(&p_uint64_item->value,
+                                                  __osm_qos_parser_strip_white(str_buffer));
+                        cl_ptr_vector_insert(&p_current_port_group->port_guids,
+                                             p_uint64_item,
+                                             NULL);
+                    }
+    break;
+
+  case 108:
+#line 643 "/mswg/work/kliteyn/git/management/osm/opensm/osm_qos_parser.y"
+    {
+                        /* <port-guid> in <port-group> - any num of instances */
+                        CL_ASSERT(p_current_port_group);
+                        RESET_BUFFER;
+                    }
+    break;
+
+  case 109:
+#line 650 "/mswg/work/kliteyn/git/management/osm/opensm/osm_qos_parser.y"
+    {
+                        /* <partition> in <port-group> - any num of instances */
+                        osm_qos_string_vector_item_t * p_str_item =
+                            (osm_qos_string_vector_item_t *)malloc(sizeof(osm_qos_string_vector_item_t));
+
+                        p_str_item->str = strdup(__osm_qos_parser_strip_white(str_buffer));
+                        cl_ptr_vector_insert(&p_current_port_group->partitions,
+                                             p_str_item,
+                                             NULL);
+                    }
+    break;
+
+  case 110:
+#line 662 "/mswg/work/kliteyn/git/management/osm/opensm/osm_qos_parser.y"
+    {
+                        /* <partition> in <port-group> - any num of instances */
+                        CL_ASSERT(p_current_port_group);
+                        RESET_BUFFER;
+                    }
+    break;
+
+  case 111:
+#line 669 "/mswg/work/kliteyn/git/management/osm/opensm/osm_qos_parser.y"
+    {
+                        /* <node-type> in <port-group> - any num of instances */
+                        uint8_t tmp_node_type;
+                        char * clean_str = __osm_qos_parser_strip_white(str_buffer);
+
+                        if (strcasecmp(clean_str,OSM_QOS_NODE_TYPE_ROUTER) == 0)
+                            tmp_node_type = IB_NODE_TYPE_ROUTER;
+                        else if (strcasecmp(clean_str,OSM_QOS_NODE_TYPE_CA) == 0)
+                            tmp_node_type = IB_NODE_TYPE_CA;
+                        else if (strcasecmp(clean_str,OSM_QOS_NODE_TYPE_SWITCH) == 0)
+                            tmp_node_type = IB_NODE_TYPE_SWITCH;
+                        else
+                        {
+                            yyerror("wrong <node-type> value");
+                            return 1;
+                        }
+
+                        osm_qos_uint8_vector_item_t * p_uint8_item =
+                            (osm_qos_uint8_vector_item_t *)malloc(sizeof(osm_qos_uint8_vector_item_t));
+
+                        p_uint8_item->value = tmp_node_type;
+                        cl_ptr_vector_insert(&p_current_port_group->node_types,
+                                             p_uint8_item,
+                                             NULL);
+                    }
+    break;
+
+  case 112:
+#line 696 "/mswg/work/kliteyn/git/management/osm/opensm/osm_qos_parser.y"
+    {
+                        /* <node-type> in <port-group> - any num of instances */
+                        CL_ASSERT(p_current_port_group);
+                        RESET_BUFFER;
+                    }
+    break;
+
+  case 113:
+#line 703 "/mswg/work/kliteyn/git/management/osm/opensm/osm_qos_parser.y"
+    {
+                        /* <group> in <sl2vl-scope> and <vlarb-scope> - any num of instances.
+                           The <group> value refers to the <name> in <port-group> */
+                        osm_qos_string_vector_item_t * p_str_item =
+                            (osm_qos_string_vector_item_t *)malloc(sizeof(osm_qos_string_vector_item_t));
+
+                        p_str_item->str = strdup(__osm_qos_parser_strip_white(str_buffer));
+                        if (p_current_sl2vl_scope)
+                            cl_ptr_vector_insert(&p_current_sl2vl_scope->groups,
+                                                 p_str_item,
+                                                 NULL);
+                        else if (p_current_vlarb_scope)
+                            cl_ptr_vector_insert(&p_current_vlarb_scope->groups,
+                                                 p_str_item,
+                                                 NULL);
+                        else
+                            CL_ASSERT(0);
+                    }
+    break;
+
+  case 114:
+#line 723 "/mswg/work/kliteyn/git/management/osm/opensm/osm_qos_parser.y"
+    {
+                        /* <group> in <sl2vl-scope> and <vlarb-scope> - any num of instances.
+                           The <group> value refers to the <name> in <port-group> */
+                        RESET_BUFFER;
+                    }
+    break;
+
+  case 115:
+#line 730 "/mswg/work/kliteyn/git/management/osm/opensm/osm_qos_parser.y"
+    {
+                        /* <across> in <sl2vl-scope> and <vlarb-scope> - any num of instances.
+                           The value refers to the <name> in <port-group> */
+                        osm_qos_string_vector_item_t * p_str_item =
+                            (osm_qos_string_vector_item_t *)malloc(sizeof(osm_qos_string_vector_item_t));
+                        p_str_item->str = strdup(__osm_qos_parser_strip_white(str_buffer));
+
+                        /* inserting this both to across_to and to across_from */
+                        if (p_current_sl2vl_scope) {
+                            cl_ptr_vector_insert(&p_current_sl2vl_scope->across_from,
+                                                 p_str_item,
+                                                 NULL);
+                            cl_ptr_vector_insert(&p_current_sl2vl_scope->across_to,
+                                                 p_str_item,
+                                                 NULL);
+                        }
+                        else if (p_current_vlarb_scope)
+                            cl_ptr_vector_insert(&p_current_vlarb_scope->across,
+                                                 p_str_item,
+                                                 NULL);
+                        else
+                            CL_ASSERT(0);
+                    }
+    break;
+
+  case 116:
+#line 755 "/mswg/work/kliteyn/git/management/osm/opensm/osm_qos_parser.y"
+    {
+                        /* <across> in <sl2vl-scope> and <vlarb-scope> - any num of instances.
+                           The value refers to the <name> in <port-group> */
+                        RESET_BUFFER;
+                    }
+    break;
+
+  case 117:
+#line 762 "/mswg/work/kliteyn/git/management/osm/opensm/osm_qos_parser.y"
+    {
+                        /* <across-from> in <sl2vl-scope> - any num of instances.
+                           The value refers to the <name> in <port-group> */
+                        osm_qos_string_vector_item_t * p_str_item =
+                            (osm_qos_string_vector_item_t *)malloc(sizeof(osm_qos_string_vector_item_t));
+
+                        p_str_item->str = strdup(__osm_qos_parser_strip_white(str_buffer));
+                        cl_ptr_vector_insert(&p_current_sl2vl_scope->across_from,
+                                             p_str_item,
+                                             NULL);
+                    }
+    break;
+
+  case 118:
+#line 775 "/mswg/work/kliteyn/git/management/osm/opensm/osm_qos_parser.y"
+    {
+                        /* <across-from> in <sl2vl-scope> - any num of instances.
+                           The value refers to the <name> in <port-group> */
+                        CL_ASSERT(p_current_sl2vl_scope);
+                        RESET_BUFFER;
+                    }
+    break;
+
+  case 119:
+#line 783 "/mswg/work/kliteyn/git/management/osm/opensm/osm_qos_parser.y"
+    {
+                        /* <across-to> in <sl2vl-scope> - any num of instances.
+                           The value refers to the <name> in <port-group> */
+                        osm_qos_string_vector_item_t * p_str_item =
+                            (osm_qos_string_vector_item_t *)malloc(sizeof(osm_qos_string_vector_item_t));
+
+                        p_str_item->str = strdup(__osm_qos_parser_strip_white(str_buffer));
+                        cl_ptr_vector_insert(&p_current_sl2vl_scope->across_to,
+                                             p_str_item,
+                                             NULL);
+                    }
+    break;
+
+  case 120:
+#line 796 "/mswg/work/kliteyn/git/management/osm/opensm/osm_qos_parser.y"
+    {
+                        /* <across-to> in <sl2vl-scope> - any num of instances.
+                           The value refers to the <name> in <port-group> */
+                        CL_ASSERT(p_current_sl2vl_scope);
+                        RESET_BUFFER;
+                    }
+    break;
+
+  case 121:
+#line 804 "/mswg/work/kliteyn/git/management/osm/opensm/osm_qos_parser.y"
+    {
+                        /* <from> in <sl2vl-scope> - any num of instances.
+                           The value refers to the <name> in <port-group> */
+                        osm_qos_string_vector_item_t * p_str_item =
+                            (osm_qos_string_vector_item_t *)malloc(sizeof(osm_qos_string_vector_item_t));
+
+                        p_str_item->str = strdup(__osm_qos_parser_strip_white(str_buffer));
+                        cl_ptr_vector_insert(&p_current_sl2vl_scope->from,
+                                             p_str_item,
+                                             NULL);
+                    }
+    break;
+
+  case 122:
+#line 817 "/mswg/work/kliteyn/git/management/osm/opensm/osm_qos_parser.y"
+    {
+                        /* <from> in <sl2vl-scope> - any num of instances.
+                           The value refers to the <name> in <port-group> */
+                        CL_ASSERT(p_current_sl2vl_scope);
+                        RESET_BUFFER;
+                    }
+    break;
+
+  case 123:
+#line 825 "/mswg/work/kliteyn/git/management/osm/opensm/osm_qos_parser.y"
+    {
+                        /* <to> in <sl2vl-scope> - any num of instances.
+                           The value refers to the <name> in <port-group> */
+                        osm_qos_string_vector_item_t * p_str_item =
+                            (osm_qos_string_vector_item_t *)malloc(sizeof(osm_qos_string_vector_item_t));
+
+                        p_str_item->str = strdup(__osm_qos_parser_strip_white(str_buffer));
+                        cl_ptr_vector_insert(&p_current_sl2vl_scope->to,
+                                             p_str_item,
+                                             NULL);
+                    }
+    break;
+
+  case 124:
+#line 838 "/mswg/work/kliteyn/git/management/osm/opensm/osm_qos_parser.y"
+    {
+                        /* <to> in <sl2vl-scope> - any num of instances.
+                           The value refers to the <name> in <port-group> */
+                        CL_ASSERT(p_current_sl2vl_scope);
+                        RESET_BUFFER;
+                    }
+    break;
+
+  case 125:
+#line 848 "/mswg/work/kliteyn/git/management/osm/opensm/osm_qos_parser.y"
+    {
+                        /* <sl2vl-table> in <sl2vl-scope> - one instance of 16 numbers */
+                        uint8_t counter = 0;
+                        uint8_t i;
+                        char * tok = NULL;
+                        char * tmp_str = __osm_qos_parser_strip_white(str_buffer);
+
+                        /* checking the syntax */
+                        for (i = 0; tmp_str[i] != '\0'; i++)
+                            if (tmp_str[i] == ',')
+                                counter ++;
+                        if (counter != 15)
+                        {
+                            yyerror("wrong number of values in <sl2vl-table> (should be 16)");
+                            return 1;
+                        }
+                        for (i = 1; tmp_str[i] != '\0'; i++)
+                            if ((tmp_str[i-1] == ',') && (tmp_str[i] == ','))
+                            {
+                                yyerror("wrong syntax in <sl2vl-table>");
+                                return 1;
+                            }
+
+                        /* tokenizing the line */
+                        i = 0;
+                        tok = strtok (tmp_str," ,");
+                        while (tok != NULL && i < 16)
+                        {
+                            p_current_sl2vl_scope->sl2vl_table[i++] = atoi(tok);
+                            tok = strtok (NULL, " ,");
+                        }
+                        if (tok != NULL)
+                        {
+                            yyerror("wrong syntax in <sl2vl-table>");
+                            return 1;
+                        }
+                    }
+    break;
+
+  case 126:
+#line 887 "/mswg/work/kliteyn/git/management/osm/opensm/osm_qos_parser.y"
+    {
+                        /* <sl2vl-table> in <sl2vl-scope> - one instance of 16 numbers */
+                        RESET_BUFFER;
+                    }
+    break;
+
+  case 127:
+#line 893 "/mswg/work/kliteyn/git/management/osm/opensm/osm_qos_parser.y"
+    {
+                        /* <sn> in <qos-level> - one instance */
+                        p_current_qos_level->sn = atoi(__osm_qos_parser_strip_white(str_buffer));
+                        p_current_qos_level->sn_set = TRUE;
+                    }
+    break;
+
+  case 128:
+#line 900 "/mswg/work/kliteyn/git/management/osm/opensm/osm_qos_parser.y"
+    {
+                        /* <sn> in <qos-level> - one instance */
+                        CL_ASSERT(p_current_qos_level);
+                        if (p_current_qos_level->sn_set)
+                        {
+                            yyerror("<qos-level> has multiple <sn> tags");
+                            return 1;
+                        }
+                        RESET_BUFFER;
+                    }
+    break;
+
+  case 129:
+#line 912 "/mswg/work/kliteyn/git/management/osm/opensm/osm_qos_parser.y"
+    {
+                        /* <sl> in <qos-level> - one instance */
+                        p_current_qos_level->sl = atoi(__osm_qos_parser_strip_white(str_buffer));
+                        p_current_qos_level->sl_set = TRUE;
+                    }
+    break;
+
+  case 130:
+#line 919 "/mswg/work/kliteyn/git/management/osm/opensm/osm_qos_parser.y"
+    {
+                        /* <sl> in <qos-level> - one instance */
+                        CL_ASSERT(p_current_qos_level);
+                        if (p_current_qos_level->sl_set)
+                        {
+                            yyerror("<qos-level> has multiple <sl> tags");
+                            return 1;
+                        }
+                        RESET_BUFFER;
+                    }
+    break;
+
+  case 131:
+#line 931 "/mswg/work/kliteyn/git/management/osm/opensm/osm_qos_parser.y"
+    {
+                        /* <mtu-limit> in <qos-level> - one instance */
+                        p_current_qos_level->mtu_limit = atoi(__osm_qos_parser_strip_white(str_buffer));
+                        p_current_qos_level->mtu_limit_set = TRUE;
+                    }
+    break;
+
+  case 132:
+#line 938 "/mswg/work/kliteyn/git/management/osm/opensm/osm_qos_parser.y"
+    {
+                        /* <mtu-limit> in <qos-level> - one instance */
+                        CL_ASSERT(p_current_qos_level);
+                        if (p_current_qos_level->mtu_limit_set)
+                        {
+                            yyerror("<qos-level> has multiple <mtu-limit> tags");
+                            return 1;
+                        }
+                        RESET_BUFFER;
+                    }
+    break;
+
+  case 133:
+#line 950 "/mswg/work/kliteyn/git/management/osm/opensm/osm_qos_parser.y"
+    {
+                        /* <rate-limit> in <qos-level> - one instance */
+                        p_current_qos_level->rate_limit = atoi(__osm_qos_parser_strip_white(str_buffer));
+                        p_current_qos_level->rate_limit_set = TRUE;
+                    }
+    break;
+
+  case 134:
+#line 957 "/mswg/work/kliteyn/git/management/osm/opensm/osm_qos_parser.y"
+    {
+                        /* <rate-limit> in <qos-level> - one instance */
+                        CL_ASSERT(p_current_qos_level);
+                        if (p_current_qos_level->rate_limit_set)
+                        {
+                            yyerror("<qos-level> has multiple <rate-limit> tags");
+                            return 1;
+                        }
+                        RESET_BUFFER;
+                    }
+    break;
+
+  case 135:
+#line 969 "/mswg/work/kliteyn/git/management/osm/opensm/osm_qos_parser.y"
+    {
+                        /* <packet-life> in <qos-level> - one instance */
+                        p_current_qos_level->pkt_life = atoi(__osm_qos_parser_strip_white(str_buffer));
+                        p_current_qos_level->pkt_life_set = TRUE;
+                    }
+    break;
+
+  case 136:
+#line 976 "/mswg/work/kliteyn/git/management/osm/opensm/osm_qos_parser.y"
+    {
+                        /* <packet-life> in <qos-level> - one instance */
+                        CL_ASSERT(p_current_qos_level);
+                        if (p_current_qos_level->pkt_life_set)
+                        {
+                            yyerror("<qos-level> has multiple <packet-life> tags");
+                            return 1;
+                        }
+                        RESET_BUFFER;
+                    }
+    break;
+
+  case 137:
+#line 988 "/mswg/work/kliteyn/git/management/osm/opensm/osm_qos_parser.y"
+    {
+                        /* <pkey> in <qos-level> - one instance */
+                        p_current_qos_level->pkey = atoi(__osm_qos_parser_strip_white(str_buffer));
+                    }
+    break;
+
+  case 138:
+#line 994 "/mswg/work/kliteyn/git/management/osm/opensm/osm_qos_parser.y"
+    {
+                        /* <pkey> in <qos-level> - one instance */
+                        CL_ASSERT(p_current_qos_level);
+                        RESET_BUFFER;
+                    }
+    break;
+
+  case 139:
+#line 1001 "/mswg/work/kliteyn/git/management/osm/opensm/osm_qos_parser.y"
+    {
+                        /* <class> in <qos-level> - one instance of one number */
+                        p_current_qos_level->class = atoi(__osm_qos_parser_strip_white(str_buffer));
+                    }
+    break;
+
+  case 140:
+#line 1007 "/mswg/work/kliteyn/git/management/osm/opensm/osm_qos_parser.y"
+    {
+                        /* <class> in <qos-level> - one instance of one number */
+                        CL_ASSERT(p_current_qos_level);
+                        RESET_BUFFER;
+                    }
+    break;
+
+  case 141:
+#line 1014 "/mswg/work/kliteyn/git/management/osm/opensm/osm_qos_parser.y"
+    {
+                        /* <vl-high-limit> in <vlarb-scope> - one instance of one number */
+                        p_current_vlarb_scope->vl_high_limit = atoi(__osm_qos_parser_strip_white(str_buffer));
+                    }
+    break;
+
+  case 142:
+#line 1020 "/mswg/work/kliteyn/git/management/osm/opensm/osm_qos_parser.y"
+    {
+                        /* <vl-high-limit> in <vlarb-scope> - one instance of one number */
+                        CL_ASSERT(p_current_vlarb_scope);
+                        RESET_BUFFER;
+                    }
+    break;
+
+  case 143:
+#line 1029 "/mswg/work/kliteyn/git/management/osm/opensm/osm_qos_parser.y"
+    {
+                        /* <vl-high> in <vlarb-scope> - list of pairs of numbers with ':' and ',' */
+                        uint8_t i;
+                        char * tok = NULL;
+                        char * tmp_str = __osm_qos_parser_strip_white(str_buffer);
+                        osm_qos_vlarb_hl_vector_item_t * p_hl_item = NULL;
+
+                        /* checking the syntax */
+                        for (i = 1; tmp_str[i] != '\0'; i++)
+                            if ( (tmp_str[i-1] == ',' || tmp_str[i-1] == ':') &&
+                                 (tmp_str[i]   == ',' || tmp_str[i]   == ':') )
+                            {
+                                yyerror("wrong syntax in <vl-high>");
+                                return 1;
+                            }
+
+                        /* tokenizing the line */
+                        i = 0;
+                        tok = strtok (tmp_str,":,");
+                        while (tok != NULL)
+                        {
+                            p_hl_item = (osm_qos_vlarb_hl_vector_item_t *)malloc(sizeof(osm_qos_vlarb_hl_vector_item_t));
+                            p_hl_item->sl = atoi(tok);
+                            tok = strtok (NULL, ":,");
+                            p_hl_item->credits = atoi(tok);
+                            tok = strtok (NULL, ":,");
+                            cl_ptr_vector_insert(&p_current_vlarb_scope->vlarb_highs,
+                                                 p_hl_item,
+                                                 NULL);
+                        }
+
+                    }
+    break;
+
+  case 144:
+#line 1063 "/mswg/work/kliteyn/git/management/osm/opensm/osm_qos_parser.y"
+    {
+                        /* <vl-high> in <vlarb-scope> - list of pairs of numbers with ':' and ',' */
+                        CL_ASSERT(p_current_vlarb_scope);
+                        RESET_BUFFER;
+                    }
+    break;
+
+  case 145:
+#line 1072 "/mswg/work/kliteyn/git/management/osm/opensm/osm_qos_parser.y"
+    {
+                        /* <vl-low> in <vlarb-scope> - list of pairs of numbers with ':' and ',' */
+                        uint8_t i;
+                        char * tok = NULL;
+                        char * tmp_str = __osm_qos_parser_strip_white(str_buffer);
+                        osm_qos_vlarb_hl_vector_item_t * p_hl_item = NULL;
+
+                        /* checking the syntax */
+                        for (i = 1; tmp_str[i] != '\0'; i++)
+                            if ( (tmp_str[i-1] == ',' || tmp_str[i-1] == ':') &&
+                                 (tmp_str[i]   == ',' || tmp_str[i]   == ':') )
+                            {
+                                yyerror("wrong syntax in <vl-low>");
+                                return 1;
+                            }
+
+                        /* tokenizing the line */
+                        i = 0;
+                        tok = strtok (tmp_str,":,");
+                        while (tok != NULL)
+                        {
+                            p_hl_item = (osm_qos_vlarb_hl_vector_item_t *)malloc(sizeof(osm_qos_vlarb_hl_vector_item_t));
+                            p_hl_item->sl = atoi(tok);
+                            tok = strtok (NULL, ":,");
+                            p_hl_item->credits = atoi(tok);
+                            tok = strtok (NULL, ":,");
+                            cl_ptr_vector_insert(&p_current_vlarb_scope->vlarb_lows,
+                                                 p_hl_item,
+                                                 NULL);
+                        }
+
+                    }
+    break;
+
+  case 146:
+#line 1106 "/mswg/work/kliteyn/git/management/osm/opensm/osm_qos_parser.y"
+    {
+                        /* <vl-low> in <vlarb-scope> - list of pairs of numbers with ':' and ',' */
+                        CL_ASSERT(p_current_vlarb_scope);
+                        RESET_BUFFER;
+                    }
+    break;
+
+  case 147:
+#line 1113 "/mswg/work/kliteyn/git/management/osm/opensm/osm_qos_parser.y"
+    {
+                        /* <source> in <qos-match-rule> - text */
+                        p_current_qos_match_rule->source = strdup(__osm_qos_parser_strip_white(str_buffer));
+                    }
+    break;
+
+  case 148:
+#line 1119 "/mswg/work/kliteyn/git/management/osm/opensm/osm_qos_parser.y"
+    {
+                        /* <source> in <qos-match-rule> - text */
+                        CL_ASSERT(p_current_qos_match_rule);
+                        RESET_BUFFER;
+                    }
+    break;
+
+  case 149:
+#line 1126 "/mswg/work/kliteyn/git/management/osm/opensm/osm_qos_parser.y"
+    {
+                        /* <destination> in <qos-match-rule> - text */
+                        p_current_qos_match_rule->destination = strdup(__osm_qos_parser_strip_white(str_buffer));
+                    }
+    break;
+
+  case 150:
+#line 1132 "/mswg/work/kliteyn/git/management/osm/opensm/osm_qos_parser.y"
+    {
+                        /* <destination> in <qos-match-rule> - text */
+                        CL_ASSERT(p_current_qos_match_rule);
+                        RESET_BUFFER;
+                    }
+    break;
+
+  case 151:
+#line 1141 "/mswg/work/kliteyn/git/management/osm/opensm/osm_qos_parser.y"
+    {
+                        /* <class> in <qos-match-rule> - "7-9,11" */
+                        uint16_t i;
+                        uint16_t j;
+                        uint16_t range_low;
+                        uint16_t range_high;
+                        char * dash_ptr = NULL;
+                        char * tok = NULL;
+                        char * tokens[10000] = {NULL};
+                        char * tmp_str = __osm_qos_parser_strip_white(str_buffer);
+                        osm_qos_uint16_vector_item_t * p_uint16_item = NULL;
+
+                        /* checking the syntax */
+                        for (i = 1; tmp_str[i] != '\0'; i++)
+                            if ( (tmp_str[i]   == ',' || tmp_str[i]   == '-') &&
+                                 (tmp_str[i-1] == ',' || tmp_str[i-1] == '-') )
+                            {
+                                yyerror("wrong syntax in <class>");
+                                return 1;
+                            }
+
+                        /* tokenizing the line with ',' being a delimiter */
+                        tok = strtok (tmp_str," ,");
+                        for (i = 0; tok != NULL; tok = strtok (NULL, " ,"))
+                            tokens[i++] = tok;
+
+                        for (i = 0; tokens[i] != NULL; i++)
+                        {
+                            dash_ptr = strstr(tokens[i],"-");
+                            if (dash_ptr != NULL)
+                            {
+                                /* this is number range: i-j */
+                                *dash_ptr = '\0';
+                                range_low = atoi(tokens[i]);
+                                *dash_ptr = '-';
+                                range_high = atoi(dash_ptr + 1);
+                                if (range_low > range_high)
+                                {
+                                    uint16_t tmp_num = range_low;
+                                    range_low = range_high;
+                                    range_high = tmp_num;
+                                }
+                                for (j = range_low; j <= range_high; j++)
+                                {
+                                    p_uint16_item = (osm_qos_uint16_vector_item_t *)
+                                                        malloc(sizeof(osm_qos_uint16_vector_item_t));
+                                    p_uint16_item->value = j;
+                                    cl_ptr_vector_insert(&p_current_qos_match_rule->classes,
+                                                         p_uint16_item,
+                                                         NULL);
+                                }
+                            }
+                            else
+                            {
+                                /* this is a single number */
+                                p_uint16_item = (osm_qos_uint16_vector_item_t *)
+                                                    malloc(sizeof(osm_qos_uint16_vector_item_t));
+                                p_uint16_item->value = atoi(tokens[i]);
+                                cl_ptr_vector_insert(&p_current_qos_match_rule->classes,
+                                                     p_uint16_item,
+                                                     NULL);
+                            }
+                        }
+                    }
+    break;
+
+  case 152:
+#line 1207 "/mswg/work/kliteyn/git/management/osm/opensm/osm_qos_parser.y"
+    {
+                        CL_ASSERT(p_current_qos_match_rule);
+                        RESET_BUFFER;
+                    }
+    break;
+
+  case 153:
+#line 1215 "/mswg/work/kliteyn/git/management/osm/opensm/osm_qos_parser.y"
+    {
+                        /* <service> in <qos_match_rule> - list of ',' delimited numbers */
+                        uint32_t i;
+                        char * tok = NULL;
+                        char * tmp_str = __osm_qos_parser_strip_white(str_buffer);
+                        osm_qos_uint64_vector_item_t * p_uint64_item = NULL;
+
+                        /* checking the syntax */
+                        for (i = 1; tmp_str[i] != '\0'; i++)
+                            if ((tmp_str[i-1] == ',') && (tmp_str[i] == ','))
+                            {
+                                yyerror("wrong syntax in <service>");
+                                return 1;
+                            }
+
+                        /* tokenizing the line */
+                        tok = strtok (tmp_str," ,");
+                        while (tok != NULL)
+                        {
+                            p_uint64_item = (osm_qos_uint64_vector_item_t *)malloc(sizeof(osm_qos_uint64_vector_item_t));
+                            __osm_qos_parser_str2uint64(&p_uint64_item->value,tok);
+                            cl_ptr_vector_insert(&p_current_qos_match_rule->services,
+                                                 p_uint64_item,
+                                                 NULL);
+                            tok = strtok (NULL, " ,");
+                        }
+
+                    }
+    break;
+
+  case 154:
+#line 1245 "/mswg/work/kliteyn/git/management/osm/opensm/osm_qos_parser.y"
+    {
+                        /* <service> in <qos_match_rule> - list of ',' delimited numbers */
+                        CL_ASSERT(p_current_qos_match_rule);
+                        RESET_BUFFER;
+                    }
+    break;
+
+  case 155:
+#line 1252 "/mswg/work/kliteyn/git/management/osm/opensm/osm_qos_parser.y"
+    {
+                        /* <qos-level-sn> in <qos-match-rule> - single number */
+                        p_current_qos_match_rule->qos_level_sn = atoi(__osm_qos_parser_strip_white(str_buffer));
+                    }
+    break;
+
+  case 156:
+#line 1258 "/mswg/work/kliteyn/git/management/osm/opensm/osm_qos_parser.y"
+    {
+                        /* <qos-level-sn> in <qos-match-rule> - single number */
+                        CL_ASSERT(p_current_qos_match_rule);
+                        RESET_BUFFER;
+                    }
+    break;
+
+  case 161:
+#line 1278 "/mswg/work/kliteyn/git/management/osm/opensm/osm_qos_parser.y"
+    {
+                        strcat(str_buffer,yyvsp[0]);
+                        free(yyvsp[0]);
+                    }
+    break;
+
+  case 162:
+#line 1282 "/mswg/work/kliteyn/git/management/osm/opensm/osm_qos_parser.y"
+    {
+                        strcat(str_buffer,yyvsp[0]);
+                        free(yyvsp[0]);
+                    }
+    break;
+
+  case 163:
+#line 1286 "/mswg/work/kliteyn/git/management/osm/opensm/osm_qos_parser.y"
+    {
+                        strcat(str_buffer,yyvsp[0]);
+                        free(yyvsp[0]);
+                    }
+    break;
+
+  case 164:
+#line 1290 "/mswg/work/kliteyn/git/management/osm/opensm/osm_qos_parser.y"
+    {
+                        strcat(str_buffer,yyvsp[0]);
+                        free(yyvsp[0]);
+                    }
+    break;
+
+  case 165:
+#line 1294 "/mswg/work/kliteyn/git/management/osm/opensm/osm_qos_parser.y"
+    {
+                        strcat(str_buffer,yyvsp[0]);
+                        free(yyvsp[0]);
+                    }
+    break;
+
+  case 183:
+#line 1323 "/mswg/work/kliteyn/git/management/osm/opensm/osm_qos_parser.y"
+    {
+                        strcat(str_buffer,yyvsp[0]);
+                        free(yyvsp[0]);
+                    }
+    break;
+
+  case 184:
+#line 1329 "/mswg/work/kliteyn/git/management/osm/opensm/osm_qos_parser.y"
+    {
+                        strcat(str_buffer,yyvsp[0]);
+                        free(yyvsp[0]);
+                    }
+    break;
+
+  case 185:
+#line 1335 "/mswg/work/kliteyn/git/management/osm/opensm/osm_qos_parser.y"
+    {
+                        strcat(str_buffer,yyvsp[0]);
+                        free(yyvsp[0]);
+                    }
+    break;
+
+  case 188:
+#line 1345 "/mswg/work/kliteyn/git/management/osm/opensm/osm_qos_parser.y"
+    {
+                        strcat(str_buffer,yyvsp[0]);
+                        free(yyvsp[0]);
+                    }
+    break;
+
+  case 189:
+#line 1351 "/mswg/work/kliteyn/git/management/osm/opensm/osm_qos_parser.y"
+    {
+                        strcat(str_buffer,yyvsp[0]);
+                        free(yyvsp[0]);
+                    }
+    break;
+
+  case 191:
+#line 1358 "/mswg/work/kliteyn/git/management/osm/opensm/osm_qos_parser.y"
+    {
+                        /* swallow whitespace */
+                        free(yyvsp[0]);
+                    }
+    break;
+
+
+    }
+
+/* Line 991 of yacc.c.  */
+#line 2569 "y.tab.c"
+

+  yyvsp -= yylen;
+  yyssp -= yylen;
+
+
+  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
+      yyn = yypact[yystate];
+
+      if (YYPACT_NINF < yyn && yyn < YYLAST)
+	{
+	  YYSIZE_T yysize = 0;
+	  int yytype = YYTRANSLATE (yychar);
+	  char *yymsg;
+	  int yyx, yycount;
+
+	  yycount = 0;
+	  /* Start YYX at -YYN if negative to avoid negative indexes in
+	     YYCHECK.  */
+	  for (yyx = yyn < 0 ? -yyn : 0;
+	       yyx < (int) (sizeof (yytname) / sizeof (char *)); yyx++)
+	    if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR)
+	      yysize += yystrlen (yytname[yyx]) + 15, yycount++;
+	  yysize += yystrlen ("syntax error, unexpected ") + 1;
+	  yysize += yystrlen (yytname[yytype]);
+	  yymsg = (char *) YYSTACK_ALLOC (yysize);
+	  if (yymsg != 0)
+	    {
+	      char *yyp = yystpcpy (yymsg, "syntax error, unexpected ");
+	      yyp = yystpcpy (yyp, yytname[yytype]);
+
+	      if (yycount < 5)
+		{
+		  yycount = 0;
+		  for (yyx = yyn < 0 ? -yyn : 0;
+		       yyx < (int) (sizeof (yytname) / sizeof (char *));
+		       yyx++)
+		    if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR)
+		      {
+			const char *yyq = ! yycount ? ", expecting " : " or ";
+			yyp = yystpcpy (yyp, yyq);
+			yyp = yystpcpy (yyp, yytname[yyx]);
+			yycount++;
+		      }
+		}
+	      yyerror (yymsg);
+	      YYSTACK_FREE (yymsg);
+	    }
+	  else
+	    yyerror ("syntax error; also virtual memory exhausted");
+	}
+      else
+#endif /* YYERROR_VERBOSE */
+	yyerror ("syntax error");
+    }
+
+
+
+  if (yyerrstatus == 3)
+    {
+      /* If just tried and failed to reuse lookahead token after an
+	 error, discard it.  */
+
+      /* Return failure if at end of input.  */
+      if (yychar == YYEOF)
+        {
+	  /* Pop the error token.  */
+          YYPOPSTACK;
+	  /* Pop the rest of the stack.  */
+	  while (yyss < yyssp)
+	    {
+	      YYDSYMPRINTF ("Error: popping", yystos[*yyssp], yyvsp, yylsp);
+	      yydestruct (yystos[*yyssp], yyvsp);
+	      YYPOPSTACK;
+	    }
+	  YYABORT;
+        }
+
+      YYDSYMPRINTF ("Error: discarding", yytoken, &yylval, &yylloc);
+      yydestruct (yytoken, &yylval);
+      yychar = YYEMPTY;
+
+    }
+
+  /* Else will try to reuse lookahead token after shifting the error
+     token.  */
+  goto yyerrlab2;
+
+
+/*----------------------------------------------------.
+| yyerrlab1 -- error raised explicitly by an action.  |
+`----------------------------------------------------*/
+yyerrlab1:
+
+  /* Suppress GCC warning that yyerrlab1 is unused when no action
+     invokes YYERROR.  */
+#if defined (__GNUC_MINOR__) && 2093 <= (__GNUC__ * 1000 + __GNUC_MINOR__) \
+    && !defined __cplusplus
+  __attribute__ ((__unused__))
+#endif
+
+
+  goto yyerrlab2;
+
+
+/*---------------------------------------------------------------.
+| yyerrlab2 -- pop states until the error token can be shifted.  |
+`---------------------------------------------------------------*/
+yyerrlab2:
+  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;
+
+      YYDSYMPRINTF ("Error: popping", yystos[*yyssp], yyvsp, yylsp);
+      yydestruct (yystos[yystate], yyvsp);
+      yyvsp--;
+      yystate = *--yyssp;
+
+      YY_STACK_PRINT (yyss, yyssp);
+    }
+
+  if (yyn == YYFINAL)
+    YYACCEPT;
+
+  YYDPRINTF ((stderr, "Shifting error token, "));
+
+  *++yyvsp = yylval;
+
+
+  yystate = yyn;
+  goto yynewstate;
+
+
+/*-------------------------------------.
+| yyacceptlab -- YYACCEPT comes here.  |
+`-------------------------------------*/
+yyacceptlab:
+  yyresult = 0;
+  goto yyreturn;
+
+/*-----------------------------------.
+| yyabortlab -- YYABORT comes here.  |
+`-----------------------------------*/
+yyabortlab:
+  yyresult = 1;
+  goto yyreturn;
+
+#ifndef yyoverflow
+/*----------------------------------------------.
+| yyoverflowlab -- parser overflow comes here.  |
+`----------------------------------------------*/
+yyoverflowlab:
+  yyerror ("parser stack overflow");
+  yyresult = 2;
+  /* Fall through.  */
+#endif
+
+yyreturn:
+#ifndef yyoverflow
+  if (yyss != yyssa)
+    YYSTACK_FREE (yyss);
+#endif
+  return yyresult;
+}
+
+
+#line 1364 "/mswg/work/kliteyn/git/management/osm/opensm/osm_qos_parser.y"
+
+
+/***************************************************
+ ***************************************************/
+
+int osm_qos_parse_policy_file(
+    IN  osm_log_t             * p_log,
+    IN  const char            * policy_file)
+{
+    int res = 0;
+    p_osm_log = p_log;
+
+    OSM_LOG_ENTER(p_osm_log, osm_qos_parse);
+
+    p_qos_parse_tree = NULL;
+    yyin = fopen (policy_file, "r");
+    if (!yyin)
+    {
+        osm_log(p_osm_log, OSM_LOG_ERROR,
+                "osm_qos_parse: ERR AC01: "
+                "Failed opening QoS policy file (%s)\n",
+                policy_file);
+        res = 1;
+        goto Exit;
+    }
+    column_num = 1;
+    line_num = 1;
+    __osm_qos_parse_tree_init();
+    str_buffer[0] = '\0';
+    
+    res = yyparse();
+    
+    if (res != 0)
+    {
+        osm_log(p_osm_log, OSM_LOG_ERROR,
+                "osm_qos_parse: ERR AC02: "
+                "Failed parsing QoS policy file (%s)\n",
+                policy_file);
+        p_qos_parse_tree = NULL;
+        res = 1;
+        goto Exit;
+    }
+
+  Exit:
+    if (yyin)
+        fclose(yyin);
+    OSM_LOG_EXIT(p_osm_log);
+    return res;
+}
+
+/***************************************************
+ ***************************************************/
+
+int yywrap()
+{
+    return(1);
+}
+
+/***************************************************
+ ***************************************************/
+
+void yyerror (char *s)
+{
+    OSM_LOG_ENTER(p_osm_log, yyerror);
+    osm_log(p_osm_log, OSM_LOG_ERROR,
+            "yyerror: ERR AC03: "
+            "Syntax error (line %d:%d): %s. "
+            "Last text read: \"%s\"\n",
+            line_num, column_num, s, __osm_qos_parser_strip_white(yytext));
+    OSM_LOG_EXIT(p_osm_log);
+}
+
+/***************************************************
+ ***************************************************/
+
+static char * __osm_qos_parser_strip_white(char * str)
+{
+   int i;
+   for (i = (strlen(str)-1); i >= 0; i--)
+   {
+      if (isspace(str[i]))
+          str[i] = '\0';
+      else
+         break;
+   }
+   for (i = 0; i < strlen(str); i++)
+   {
+      if (!isspace(str[i]))
+         break;
+   }
+   return &(str[i]);
+}
+
+/***************************************************
+ ***************************************************/
+
+static void __osm_qos_parser_str2uint64(uint64_t * p_val, char * str)
+{
+#if __WORDSIZE == 64
+   *p_val = strtoul(str, NULL, 0);
+#else
+   *p_val = strtoull(str, NULL, 0);
+#endif
+}
+
+/***************************************************
+ ***************************************************/
+
+static void __osm_qos_parse_tree_init()
+{
+   p_qos_parse_tree = (osm_qos_parse_tree_t *)
+                        malloc(sizeof(osm_qos_parse_tree_t));
+
+   memset(p_qos_parse_tree, 0, sizeof(osm_qos_parse_tree_t));
+
+   cl_ptr_vector_init(&p_qos_parse_tree->port_groups,
+                      0,  /* min size */
+                      4); /* grow size */
+   cl_ptr_vector_init(&p_qos_parse_tree->sl2vl_tables,
+                      0,  /* min size */
+                      4); /* grow size */
+   cl_ptr_vector_init(&p_qos_parse_tree->vlarb_tables,
+                      0,  /* min size */
+                      4); /* grow size */
+   cl_ptr_vector_init(&p_qos_parse_tree->qos_levels,
+                      0,  /* min size */
+                      4); /* grow size */
+   cl_ptr_vector_init(&p_qos_parse_tree->qos_match_rules,
+                      0,  /* min size */
+                      4); /* grow size */
+}
+
+/***************************************************
+ ***************************************************/
+
+static void __osm_qos_parser_port_group_start()
+{
+   p_current_port_group = (osm_qos_port_group_t *)
+                                malloc(sizeof(osm_qos_port_group_t));
+   memset(p_current_port_group, 0, sizeof(osm_qos_port_group_t));
+
+   cl_ptr_vector_init(&p_current_port_group->port_guids,
+                      0,  /* min size */
+                      4); /* grow size */
+   cl_ptr_vector_init(&p_current_port_group->port_names,
+                      0,  /* min size */
+                      4); /* grow size */
+   cl_ptr_vector_init(&p_current_port_group->partitions,
+                      0,  /* min size */
+                      4); /* grow size */
+   cl_ptr_vector_init(&p_current_port_group->node_types,
+                      0,  /* min size */
+                      4); /* grow size */
+}
+
+/***************************************************
+ ***************************************************/
+
+static void __osm_qos_parser_port_group_end()
+{
+   cl_ptr_vector_insert(&p_qos_parse_tree->port_groups,
+                        p_current_port_group,
+                        NULL);
+   p_current_port_group = NULL;
+}
+
+/***************************************************
+ ***************************************************/
+
+static void __osm_qos_parser_sl2vl_scope_start()
+{
+    p_current_sl2vl_scope = (osm_qos_sl2vl_scope_t *)
+                                malloc(sizeof(osm_qos_sl2vl_scope_t));
+    memset(p_current_sl2vl_scope, 0, sizeof(osm_qos_sl2vl_scope_t));
+
+    cl_ptr_vector_init(&p_current_sl2vl_scope->groups,
+                       0,  /* min size */
+                       4); /* grow size */
+    cl_ptr_vector_init(&p_current_sl2vl_scope->from,
+                       0,  /* min size */
+                       4); /* grow size */
+    cl_ptr_vector_init(&p_current_sl2vl_scope->to,
+                       0,  /* min size */
+                       4); /* grow size */
+    cl_ptr_vector_init(&p_current_sl2vl_scope->across_from,
+                       0,  /* min size */
+                       4); /* grow size */
+    cl_ptr_vector_init(&p_current_sl2vl_scope->across_to,
+                       0,  /* min size */
+                       4); /* grow size */
+}
+
+/***************************************************
+ ***************************************************/
+
+static void __osm_qos_parser_sl2vl_scope_end()
+{
+    cl_ptr_vector_insert(&p_qos_parse_tree->sl2vl_tables,
+                         p_current_sl2vl_scope,
+                         NULL);
+    p_current_sl2vl_scope = NULL;
+}
+
+/***************************************************
+ ***************************************************/
+
+static void __osm_qos_parser_vlarb_scope_start()
+{
+    p_current_vlarb_scope = (osm_qos_vlarb_scope_t *)
+                                malloc(sizeof(osm_qos_vlarb_scope_t));
+    memset(p_current_vlarb_scope, 0, sizeof(osm_qos_vlarb_scope_t));
+
+    cl_ptr_vector_init(&p_current_vlarb_scope->groups,
+                       0,  /* min size */
+                       4); /* grow size */
+    cl_ptr_vector_init(&p_current_vlarb_scope->across,
+                       0,  /* min size */
+                       4); /* grow size */
+    cl_ptr_vector_init(&p_current_vlarb_scope->vlarb_highs,
+                       0,  /* min size */
+                       4); /* grow size */
+    cl_ptr_vector_init(&p_current_vlarb_scope->vlarb_lows,
+                       0,  /* min size */
+                       4); /* grow size */
+}
+
+/***************************************************
+ ***************************************************/
+
+static void __osm_qos_parser_vlarb_scope_end()
+{
+    cl_ptr_vector_insert(&p_qos_parse_tree->vlarb_tables,
+                         p_current_vlarb_scope,
+                         NULL);
+    p_current_vlarb_scope = NULL;
+}
+
+
+/***************************************************
+ ***************************************************/
+
+static void __osm_qos_parser_qos_level_start()
+{
+   p_current_qos_level = (osm_qos_level_t *)
+                            malloc(sizeof(osm_qos_level_t));
+   memset(p_current_qos_level, 0, sizeof(osm_qos_level_t));
+}
+
+/***************************************************
+ ***************************************************/
+
+static void __osm_qos_parser_qos_level_end()
+{
+   cl_ptr_vector_insert(&p_qos_parse_tree->qos_levels,
+                        p_current_qos_level,
+                        NULL);
+   p_current_qos_level = NULL;
+}
+
+/***************************************************
+ ***************************************************/
+
+static void __osm_qos_parser_match_rule_start()
+{
+   p_current_qos_match_rule = (osm_qos_match_rule_t *)
+                                    malloc(sizeof(osm_qos_match_rule_t));
+   memset(p_current_qos_match_rule, 0, sizeof(osm_qos_match_rule_t));
+
+   cl_ptr_vector_init(&p_current_qos_match_rule->services,
+                      0,  /* min size */
+                      4); /* grow size */
+   cl_ptr_vector_init(&p_current_qos_match_rule->classes,
+                      0,  /* min size */
+                      4); /* grow size */
+}
+
+/***************************************************
+ ***************************************************/
+
+static void __osm_qos_parser_match_rule_end()
+{
+   cl_ptr_vector_insert(&p_qos_parse_tree->qos_match_rules,
+                        p_current_qos_match_rule,
+                        NULL);
+   p_current_qos_match_rule = NULL;
+}
+
+/***************************************************
+ ***************************************************/
+
+
-- 
1.4.4.1.GIT




More information about the general mailing list