#ifndef lint
char yysccsid[] = "@(#)yaccpar	1.4 (Berkeley) 02/25/90 \n\
 Modified 5/2/90 by J. Roskind to support graphic debugging modes";
#endif
 
/*****************************************************************/
/**                                                             **/
/**             (C) Copyright 1992 the Regents of the           **/
/**        University of California.  All Rights Reserved.      **/
/**                                                             **/
/**        This work was produced under the sponsorship of      **/
/**         the U.S. Department of Energy.  The Government      **/
/**                retains certain rights therein.              **/
/**                                                             **/
/**                         Written by                          **/
/**         Distributed Programming Environments Project        **/
/**           Computer Software and Networking Division,        **/
/**                   Livermore Computer Center,                **/
/**            Lawrence Livermore National Laboratory           **/
/**                                                             **/
/*****************************************************************/

#define _NO_EXTERN    /* see decls.h */ 
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include "abs.h"
#include "decls.h"
#include "keytab.h"
#include "pnode.h"
#include "misc.h"
#include "gen_code.h"
#include "symtab.h"
#include "argument.h"

#define IS_PRIMITIVE(teptr) \
      (teptr->abstr_type_ptr->get_kind() != AKIND_RECORD && \
      teptr->abstr_type_ptr->get_kind() != AKIND_UNION &&  \
      teptr->abstr_type_ptr->get_kind() != AKIND_ARRAY)

#define STMTNOEXCEPT(stmt)\
	      active_instance_element *active_inst;						\
	      active_inst = active_instances_ptr->get_active_instance();			\
	      gen_exception_header(out,								\
				   active_inst->get_exception_label(),				\
				   active_inst->get_ok_label());				\
	      gen_default_handlers(out,MASK_ZERO,						\
				   active_inst->get_ok_label());				\
	      if (global.gen_log)								\
		 gen_log_statement(out,stmt,active_inst->get_inst_element_ptr()->get_name(),	\
				   active_inst->get_exception_label());				\
	      GEN_LINEDIR									\
	      fprintf(out,"}   /* End of stmt statement */");

typedef union 
{

#ifndef HASHTEST

  /* Non-structure types, first */

  argument_list      *arg_list_ptr;
  enum arg_mode       arg_mode;
  argument	     *argument;
  int		      bufoffset;
  decl_element       *decl_eptr;
  list               *decl_list;
  enum arraykind      dynorstat;
  encoding_rules     *e_rules;
  boolean             explicit_tagged;
  boolean             has_func;
  enum implicitness   i_or_e_or_empty;
  int                 integer;
  instance_element   *instance_eptr;
  interface_element  *interface_eptr;
  list               *list_ptr;
  enum Handler_Masks  mask;
  name_element       *name_eptr;
  boolean             optional_seen;
  enum op_kind        op_kind;
  operation_element  *operation_eptr;
  parameter_list     *param_list_ptr;
  rules_element      *rules_eptr;
  boolean            *seen;
  enum paradigm       setorseq;
  char               *string;
  symbol_list        *symbol_list_ptr;
  type_element       *type_eptr;
  boolean             iswrapped;
  int		      free_seen;
  boolean             indirect_seen;

  /* structures */


  struct {
    list *list_ptr;
    int free_flag;
  } listptr_free;

  struct {
    enum abstr_kind 	abstr_kind;
    char		*len1;
    char		*len2;
    int			bufoffset;
  } 
  ak_len1_len2_bufoffset;

  struct {
    abstr_type_element  *ateptr;
    list		*lptr;
    boolean		optional_present;
    int                 free_flag;
  } 
  pres_ateptr_lptr_optional;

  struct {
    boolean 	 has_func;
    decl_element *decl_eptr;
  } 
  has_func_decl_eptr;

  struct {
    interface_element   *ieptr;
    int			bufoffset;
  } 
  ieptr_bufoffset;

  struct {
    interface_element   *ieptr;
    int                 is_control;
    int                 is_data;
    int                 is_typedef;
    int			bufoffset;
  } 
  ieptr_cdt_bufoffset;

  struct {
    boolean		is_typeid;
    type_element        *teptr;
    int			bufoffset;
  } 
  istypeid_teptr_bufoffset;

  struct {
    modal_list     *modals;
    parameter_list *ins;
    parameter_list *outs;
  } 
  modals_ins_outs;

  struct {
    operation_element   *oeptr;
    instance_element	*insteptr;
  } 
  oeptr_insteptr;

  struct {
    boolean auto_present;
    boolean autotagged;
  } 
  pres_auto;

  struct {
    boolean          mods_present;
    boolean          auto_present;
    boolean          autotagged;
    encoding_rules  *e_rules;
    paradigm         setorseq;
    boolean          optional_present;
    int              free_flag;
  } 
  pres_auto_erules_setorseq_optional;

  struct {
    boolean auto_present;
    boolean autotagged;
    boolean optional_present;
    int     free_flag;
  } 
  pres_auto_optional;

  struct {
    symbol_element      *septr;
    int			bufoffset;
    link		*lptr;
  } 
  septr_bufoffset_lptr;
  
  struct {
    int size;
    int index;
  } 
  size_index;

  struct {
    char *string1;
    char *string2;
  } 
  string1_2;

  struct {
    char *string1;
    char *string2;
    int bufoffset;
  } 
  string1_2_bufoffset;

  struct {
    char               *string;
    int			bufoffset;
  } 
  string_bufoffset;

  struct {
    char		*string;
    int			bufoffset;
    SymKind		sym;
    void		*ont;
  } 
  string_bufoffset_sym_ont;


  struct {
    boolean   optional_flag;
    boolean   default_flag;
    list     *lptr;
    char     *optionalv;
    char     *defaultv;
    int      free_flag;
  } 
  tag_attrib;

  struct {
    type_element        *teptr;
    int			bufoffset;
  } 
  teptr_bufoffset;

  struct {
    char		*val;
    char		*len;
  } 
  val_len;

  struct {
    char		*val;
    char		*len1;
    char		*len2;
  } 
  val_len1_len2;

#else

  int dummy;

#endif
} YYSTYPE;
#define BOOLEAN 257
#define INTEGER 258
#define REAL 259
#define SENDBUFFERSIZE 260
#define RECEIVEBUFFERSIZE 261
#define BIG_ENDIAN 262
#define LITTLE_ENDIAN 263
#define BIND 264
#define CONFIG_COMMENT 265
#define CONTROL_DECL 266
#define DATA_DECL 267
#define BIND_TYPE 268
#define INSTANCE_ID 269
#define UNBIND 270
#define ABORTINST 271
#define FLUSHINST 272
#define ENCODE 273
#define DECODE 274
#define OPERATION_AT_INSTANCE 275
#define PARAMETER_NAME 276
#define GIVE 277
#define OPERATION_NAME 278
#define ACCEPT 279
#define ON 280
#define EXCEPTION 281
#define ONCOM_ERROR 282
#define ONINTERNAL_ERROR 283
#define ONPROTOCOL_ERROR 284
#define ONMISSING_OP 285
#define ONMISSING_ARG 286
#define ONNAME_ERROR 287
#define ONDONE 288
#define ONBAD_OP_ID 289
#define INVOKE 290
#define RESULT 291
#define ERROR_KEYWORD 292
#define REJECT_KEYWORD 293
#define CALL 294
#define NAMES 295
#define ELROS_BASE_TYPE 296
#define BITSTRING 297
#define ENUMERATED 298
#define GENERALSTRING 299
#define GRAPHICSTRING 300
#define IA5STRING 301
#define NULLTYPE 302
#define NUMERICSTRING 303
#define OBJECTIDENTIFIER 304
#define OCTETSTRING 305
#define PRINTABLESTRING 306
#define TELETEXSTRING 307
#define VIDEOTEXSTRING 308
#define VISIBLESTRING 309
#define ANY 310
#define TYPE_ID 311
#define INTERFACE 312
#define OPTIONAL 313
#define DEFAULT_KEYWORD 314
#define UNIVERSAL 315
#define APPLICATION 316
#define CONTEXT 317
#define PRIVATE 318
#define IMPLICIT 319
#define IMPLICIT_TAGS 320
#define EXPLICIT 321
#define EXPLICIT_TAGS 322
#define IDAT 323
#define IN 324
#define OUT 325
#define INOUT 326
#define RECORD 327
#define ARRAY 328
#define DYNAMICARRAY 329
#define UNION_KEYWORD 330
#define SET 331
#define SEQUENCE 332
#define AUTOTAG 333
#define NOAUTOTAG 334
#define FREEABLE 335
#define UNFREEABLE 336
#define END 337
#define END_CONFIG 338
#define ELLIPSIS 339
#define IDENTIFIER 340
#define STRING_CONST 341
#define CHAR_CONST 342
#define BOOLEAN_CONST 343
#define INTEGER_CONST 344
#define REAL_CONST 345
#define OBJ_ID_CONST 346
#define HEX_CONST 347
#define NATNUM_CONST 348
#define TYPEDEF_NAME 349
#define LPAR 350
#define RPAR 351
#define LBRACE 352
#define RBRACE 353
#define LANGLE 354
#define RANGLE 355
#define LBRACK 356
#define RBRACK 357
#define COMMA 358
#define SEMI 359
#define EQUALS 360
#define DOT 361
#define AMPER 362
#define BANG 363
#define TILDE 364
#define MINUS 365
#define PLUS 366
#define STAR 367
#define SLASH 368
#define PERCENT 369
#define COMP 370
#define BITOR 371
#define QUES 372
#define COLON 373
#define SIZEOF 374
#define PTR_OP 375
#define INC_OP 376
#define DEC_OP 377
#define LEFT_OP 378
#define RIGHT_OP 379
#define LE_OP 380
#define GE_OP 381
#define EQ_OP 382
#define NE_OP 383
#define AND_OP 384
#define OR_OP 385
#define MUL_ASSIGN 386
#define DIV_ASSIGN 387
#define MOD_ASSIGN 388
#define ADD_ASSIGN 389
#define SUB_ASSIGN 390
#define LEFT_ASSIGN 391
#define RIGHT_ASSIGN 392
#define AND_ASSIGN 393
#define XOR_ASSIGN 394
#define OR_ASSIGN 395
#define ARROW 396
#define TYPE_NAME 397
#define TYPEDEF 398
#define EXTERN 399
#define STATIC 400
#define AUTO 401
#define REGISTER 402
#define CHAR 403
#define SHORT 404
#define INT 405
#define LONG 406
#define SIGNED 407
#define UNSIGNED 408
#define FLOAT 409
#define DOUBLE 410
#define CONST 411
#define VOLATILE 412
#define VOID 413
#define STRUCT 414
#define UNION 415
#define ENUM 416
#define STMT_LABEL 417
#define CASE 418
#define DEFAULT 419
#define IF 420
#define ELSE 421
#define SWITCH 422
#define WHILE 423
#define DO 424
#define FOR 425
#define GOTO 426
#define CONTINUE 427
#define BREAK 428
#define RETURN 429
#define YYERRCODE 256
short yylhs[] = {                                        -1,
  127,  127,  128,  128,  128,  128,  128,  128,  128,  129,
  129,  129,    2,    2,    2,    2,    3,    3,    3,    3,
    3,    1,    1,    4,    4,    4,  130,  131,  135,  137,
   22,  136,  136,  132,  132,  132,  132,  138,  138,  140,
  140,  140,  140,  140,  141,  143,  143,   44,   40,   31,
   51,   51,   37,   37,   55,   55,   38,   38,   38,   38,
   38,   38,   38,   25,   25,   25,   53,   53,   54,   54,
   24,   24,   24,   27,   27,   27,   28,   28,   29,   21,
   21,   21,   21,   21,   21,   21,   21,   21,   21,    9,
   11,   11,   11,   49,   49,    6,    6,    6,    8,    8,
    7,    7,    7,   36,   48,   48,   48,   79,   79,   47,
   47,   46,   46,   45,   19,   19,   19,   30,   30,   30,
   41,   42,   42,   42,   32,   32,   32,   32,   32,   33,
   34,   34,   10,   10,   43,   35,   12,   12,   52,   52,
   39,   39,   26,   26,   26,  139,  139,  139,  139,    5,
    5,    5,    5,    5,    5,   20,   20,   20,   50,   15,
   15,   15,   13,   13,   14,   14,   18,   18,   18,   16,
   16,   16,   17,   17,   17,   17,   17,   17,   23,   23,
   23,   23,  142,  144,  147,  146,  145,  109,  109,  109,
  109,  109,  109,  109,  109,  109,  109,  109,  110,  110,
  110,  110,  110,  110,  110,  110,  111,  111,  112,  112,
  112,  112,  112,  112,  113,  113,  113,  113,  113,  113,
  114,  114,  115,  115,  115,  115,  116,  116,  116,  117,
  117,  117,  118,  118,  118,  118,  118,  119,  119,  119,
  120,  120,  121,  121,  122,  122,  123,  123,  124,  124,
  125,  125,  126,  126,  152,  152,  152,  152,  152,  152,
  152,  152,  152,  152,  152,  148,  148,  153,  154,  154,
   80,   80,   80,   80,   80,   80,   80,   80,   80,   80,
   80,   80,   83,   83,   83,   83,   82,   82,   82,   82,
   82,   85,   85,   85,   85,   85,   87,   87,   87,   87,
   86,   86,   86,   86,   84,   84,   81,   81,   81,   81,
   81,   96,   96,   96,   98,   99,  155,  157,   97,   97,
  156,  156,  158,   90,   90,   91,   91,   91,  100,  100,
  100,  160,  160,  161,  161,   95,   95,   94,   94,   92,
   92,   93,   93,   93,   93,   93,   93,   93,  102,  102,
  102,  102,  159,  159,  159,  159,  159,  159,  159,  159,
  159,  159,  159,  159,  166,  166,  167,  167,  167,  167,
  165,  165,  168,  168,  164,  164,  169,  169,  170,  170,
  170,  149,  149,  171,  171,  171,  101,  101,  101,  101,
  101,  101,  101,  101,  101,  162,  162,  162,  172,  172,
  173,  173,  173,  173,  173,  173,  173,  177,  103,  178,
  103,  179,  103,  104,  104,  104,  104,  105,  182,  182,
  182,  182,  181,  181,  174,  174,  107,  107,  184,  107,
  108,  185,  175,  186,  175,  187,  175,  188,  175,  189,
  175,  190,  175,  191,  175,  192,  175,  193,  175,  194,
  175,  106,  106,  106,  106,  106,    0,  196,  196,  197,
  197,  197,  198,  199,  199,  200,  200,   89,  134,  133,
  163,  183,  180,  195,  150,  151,   88,   88,   88,  176,
  176,  176,  176,  176,  176,  176,  176,  176,  176,  176,
  176,   57,   57,  212,   56,  201,  201,  216,  202,  217,
  203,  203,  218,  204,  204,  219,  210,   58,  205,  205,
  223,  224,  225,   71,   71,  226,   70,  206,  206,  228,
  229,  227,  207,  207,  230,  231,  209,   67,   67,   67,
   67,   67,  233,  234,  211,   64,   64,   65,   65,   65,
   65,   65,   65,   65,   65,  235,  236,  237,   66,   66,
  238,  239,  240,  241,  242,  208,  208,  245,  243,  244,
   68,   68,  246,  247,   69,   72,   72,   72,   72,   73,
   73,   74,   74,   74,   74,   75,   75,   75,   75,   75,
   75,   76,   76,   76,   76,   76,   76,   78,   77,   60,
   60,   59,   62,   62,   63,   61,  214,  248,  248,  248,
  248,  213,  215,  222,  221,  220,  232,
};
short yylen[] = {                                         2,
    1,    2,    1,    1,    2,    2,    1,    1,    1,    3,
    3,    4,    2,    2,    2,    2,    1,    1,    1,    1,
    2,    2,    1,    1,    1,    2,    2,    5,    0,    0,
   10,    0,    5,    0,    2,    1,    1,    2,    3,    1,
    1,    1,    1,    1,    4,    1,    3,    3,    2,    6,
    2,    3,    4,    1,    0,    3,    2,    5,    2,    6,
    3,    2,    4,    0,    4,    3,    0,    1,    1,    1,
    1,    1,    2,    1,    2,    2,    1,    2,    2,    1,
    1,    1,    2,    1,    2,    1,    1,    1,    2,    5,
    0,    1,    1,    0,    1,    0,    1,    1,    0,    1,
    0,    1,    1,    2,    0,    4,    3,    2,    2,    3,
    1,    1,    2,    3,    1,    1,    1,    0,    1,    1,
    2,    5,    2,    3,    2,    2,    2,    5,    2,    2,
    1,    1,    0,    3,    2,    6,    0,    5,    2,    3,
    4,    1,    0,    4,    3,    2,    3,    2,    5,    6,
    6,    6,    4,    6,    6,    1,    1,    1,    1,    0,
    1,    1,    1,    3,    1,    3,    0,    1,    1,    2,
    4,    3,    2,    4,    3,    1,    5,    4,    1,    1,
    1,    1,    0,    0,    0,    0,    0,    1,    1,    1,
    1,    1,    1,    1,    1,    1,    3,    1,    1,    4,
    3,    4,    5,    5,    2,    2,    1,    3,    1,    2,
    2,    2,    2,    4,    1,    1,    1,    1,    1,    1,
    1,    4,    1,    3,    3,    3,    1,    3,    3,    1,
    3,    3,    1,    3,    3,    3,    3,    1,    3,    3,
    1,    3,    1,    3,    1,    3,    1,    3,    1,    3,
    1,    7,    1,    3,    1,    1,    1,    1,    1,    1,
    1,    1,    1,    1,    1,    1,    3,    1,    3,    3,
    1,    2,    2,    3,    1,    2,    2,    3,    2,    2,
    3,    1,    1,    1,    2,    2,    1,    2,    2,    2,
    2,    2,    2,    2,    2,    1,    2,    2,    2,    2,
    2,    2,    2,    2,    1,    1,    1,    1,    1,    1,
    1,    2,    3,    2,    2,    5,    2,    2,    1,    1,
    1,    2,    4,    1,    4,    1,    2,    3,    6,    7,
    3,    1,    4,    1,    4,    1,    4,    1,    3,    1,
    2,    2,    3,    3,    4,    4,    5,    5,    1,    2,
    2,    3,    1,    2,    2,    3,    1,    2,    2,    3,
    2,    2,    3,    1,    1,    2,    1,    2,    2,    2,
    1,    3,    1,    3,    1,    4,    1,    4,    3,    3,
    2,    2,    3,    1,    1,    2,    4,    3,    4,    3,
    4,    3,    4,    3,    4,    1,    3,    4,    1,    3,
    1,    1,    1,    1,    1,    1,    1,    0,    3,    0,
    7,    0,    6,    3,    4,    4,    5,    2,    1,    2,
    1,    2,    1,    2,    1,    2,    2,    4,    0,    6,
    4,    0,    6,    0,    8,    0,    7,    0,    8,    0,
    8,    0,    9,    0,    8,    0,    9,    0,    9,    0,
   10,    5,    2,    2,    2,    3,    6,    1,    2,    1,
    2,    1,    2,    1,    2,    3,    4,    1,    0,    0,
    0,    0,    0,    0,    0,    0,    1,    1,    1,    1,
    1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
    1,    2,    2,    0,    9,    2,    2,    4,    2,    4,
    2,    2,    4,    2,    3,    2,    5,    4,    1,    2,
    4,    3,    2,    1,    2,    0,   12,    2,    2,    0,
    0,    9,    3,    4,    2,    0,   10,    0,    5,    6,
    7,    6,    0,    0,    8,    1,    2,    2,    2,    2,
    2,    2,    2,    2,    2,    5,    5,    5,    0,    2,
    4,    4,    6,    6,    1,    2,    3,    0,    5,    5,
    1,    2,    0,    0,   11,    1,    1,    1,    1,    0,
    2,    1,    3,    3,    2,    1,    3,    3,    2,    3,
    3,    1,    3,    3,    2,    3,    3,    3,    1,    2,
    2,    2,    0,    3,    5,    1,    1,    1,    1,    2,
    3,    0,    0,    0,    0,    0,    0,
};
short yydefred[] = {                                      0,
    0,    0,    0,    0,    0,    7,    8,    0,    9,    0,
    0,    1,    3,    4,    0,    0,    0,    5,    6,   27,
    2,  474,    0,   10,   17,   18,   19,   23,    0,    0,
   11,    0,    0,   13,   14,   15,    0,   21,   22,    0,
   24,   25,   12,    0,   26,  478,  479,  468,    0,    0,
  307,  308,  309,  310,  311,  305,  306,    0,  477,    0,
  284,    0,    0,  283,    0,  287,    0,  296,  470,  464,
    0,    0,  460,    0,  462,    0,  458,  473,    0,    0,
  365,  350,    0,  186,    0,  159,    0,    0,    0,    0,
  131,  132,    0,  186,    0,    0,    0,    0,    0,    0,
   41,   42,   43,   44,    0,    0,    0,    0,    0,    0,
    0,   40,    0,    0,  336,    0,    0,  290,  289,  291,
    0,    0,  286,  285,    0,  288,    0,    0,    0,    0,
    0,    0,  342,    0,    0,    0,  108,  109,   29,  295,
  297,  301,  298,  302,  304,  303,  299,  300,  292,  293,
    0,  294,    0,  457,  459,  461,  421,    0,  472,  419,
    0,  463,  343,  366,  352,  148,  185,  185,  185,  185,
    0,    0,    0,    0,  146,   49,    0,    0,  126,    0,
    0,  127,  125,  130,  135,  121,  185,    0,  104,  470,
    0,    0,  186,  186,   38,  469,    0,  270,    0,  269,
    0,    0,    0,    0,  198,  195,  196,  189,  191,  192,
  193,  194,  190,    0,  344,  215,  220,  219,  218,  217,
  216,    0,    0,    0,  188,  199,    0,  221,    0,  223,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
  268,    0,    0,    0,    0,  312,  475,    0,  319,  320,
    0,  315,    0,  475,    0,    0,  422,  472,  420,    0,
    0,    0,    0,   92,   93,    0,    0,  187,    0,  187,
    0,  124,    0,    0,    0,  115,  116,  117,   69,   70,
    0,  112,  111,    0,    0,    0,   39,    0,  147,    0,
   46,    0,    0,    0,  253,  396,  339,    0,    0,  367,
    0,  266,    0,    0,  470,    0,    0,    0,  213,    0,
  210,  211,    0,    0,  205,  206,    0,  212,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,  345,  346,  470,
  373,    0,    0,    0,    0,  377,   30,  313,  317,    0,
    0,    0,  466,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,  425,  408,    0,    0,    0,  434,    0,
    0,    0,    0,    0,  480,  606,  490,  401,  402,  406,
  404,    0,    0,    0,    0,    0,  423,  403,  405,  407,
    0,    0,    0,  481,  482,  483,  484,  485,  486,  487,
  488,  489,  491,    0,    0,    0,    0,  605,    0,  606,
  472,    0,    0,  473,    0,  418,  475,  156,  157,  158,
    0,    0,    0,    0,  134,    0,    0,    0,  100,    0,
    0,    0,    0,  153,    0,    0,    0,  113,    0,   68,
  107,   28,  186,    0,  469,   45,  399,    0,  255,  256,
  257,  258,  259,  260,  261,  262,  263,  264,  265,    0,
  337,    0,    0,    0,  197,    0,    0,    0,    0,  368,
    0,  369,  370,    0,    0,  201,    0,  207,    0,  470,
  470,  224,  225,  226,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,  347,  348,    0,    0,    0,    0,  321,  469,    0,
  469,  332,    0,    0,    0,    0,    0,  506,  513,  520,
    0,  525,  526,    0,    0,    0,    0,    0,    0,    0,
  453,  454,  455,    0,  533,  492,  493,  605,    0,    0,
    0,  592,    0,  426,    0,  476,  414,  424,    0,    0,
    0,  496,  497,  499,  501,  502,    0,    0,  510,  514,
    0,    0,  518,  519,  473,    0,    0,    0,  561,  467,
  163,    0,    0,    0,  165,    0,    0,    0,  179,  180,
  181,    0,    0,    0,    0,   97,   98,    0,    0,    0,
    0,    0,    0,    0,   54,    0,    0,    0,  142,    0,
    0,    0,  122,  128,    0,  119,  120,  110,  114,  106,
  149,   48,   47,  397,    0,  254,  267,  222,    0,    0,
    0,    0,  383,    0,    0,    0,    0,  214,  202,    0,
  200,    0,    0,    0,    0,  379,    0,  380,  372,  374,
    0,    0,    0,    0,    0,  322,    0,    0,    0,  469,
  494,    0,    0,    0,  602,    0,  602,  472,  409,    0,
    0,    0,    0,    0,    0,  456,  472,  470,    0,    0,
    0,  596,  470,  476,    0,  415,  416,    0,  505,  469,
  515,    0,  512,    0,  557,  563,  562,  558,    0,  469,
  150,  151,  152,    0,    0,    0,  155,  170,  173,    0,
    0,    0,   57,    0,    0,   62,   51,   50,    0,    0,
  138,  139,  136,    0,    0,    0,  154,  398,  400,    0,
  470,  470,    0,    0,    0,    0,  208,  203,  204,    0,
  376,  378,    0,    0,  318,  316,    0,    0,  324,    0,
    0,  329,    0,    0,    0,  498,  500,  503,    0,    0,
    0,    0,    0,  431,  429,  432,    0,    0,    0,    0,
    0,    0,  469,  428,  594,    0,    0,  412,  417,  604,
  511,  524,  602,    0,  164,  166,  182,  172,    0,    0,
  469,  175,   90,    0,    0,    0,   72,    0,    0,    0,
    0,    0,    0,    0,    0,   52,    0,  140,    0,    0,
    0,  388,    0,    0,  394,    0,  392,    0,  390,    0,
    0,    0,  103,  102,    0,  327,  323,    0,    0,  335,
  333,  330,  602,    0,  607,    0,    0,    0,  560,    0,
    0,    0,  436,    0,    0,    0,    0,  534,  507,  604,
  452,  410,    0,  470,    0,  559,  171,  469,  178,  174,
   80,   81,   82,   84,   86,   87,   88,    0,   78,   79,
    0,   75,   76,   73,   66,    0,   63,    0,    0,   53,
    0,  145,  141,  389,  387,  395,  393,  391,  252,    0,
    0,    0,  328,    0,    0,  572,  589,  603,    0,    0,
    0,    0,  576,  582,    0,    0,  607,    0,  529,  603,
  430,  433,    0,    0,  438,  440,    0,  444,    0,    0,
    0,  508,    0,  413,    0,    0,  177,   83,   85,   89,
   65,   56,   58,    0,  144,   33,   31,  325,  599,  598,
  603,    0,    0,  521,    0,    0,    0,    0,    0,  591,
  590,  532,    0,  530,  473,    0,  437,    0,    0,  442,
    0,  446,  448,    0,    0,    0,    0,    0,    0,    0,
  555,    0,    0,  536,    0,    0,    0,    0,    0,    0,
    0,    0,  411,    0,  603,   60,    0,    0,  588,    0,
  573,  577,  583,  574,  578,  584,  580,  581,  586,  587,
    0,  531,    0,  435,  439,  441,    0,  445,    0,    0,
  450,    0,    0,    0,    0,    0,    0,    0,  537,    0,
  538,  539,  540,  541,  542,  543,  544,  545,    0,  473,
  495,  601,  522,    0,    0,  443,  447,  449,    0,    0,
    0,    0,    0,    0,    0,    0,  535,    0,    0,    0,
    0,  527,  451,    0,    0,    0,    0,  551,    0,    0,
  552,  516,  564,  595,  550,  546,  547,  548,    0,    0,
    0,    0,  553,  554,  517,  565,
};
short yydgoto[] = {                                      10,
   30,   24,   31,   43,   94,  588,  815,  430,  266,  172,
  267,  174,  572,  573,  574,  582,  583,  584,  281,  421,
  859,   58,  585,  786,  702,  716,  787,  788,  789,  608,
  590,  591,  592,   98,  593,  183,  594,  595,  600,  101,
  102,  103,  104,  291,  282,  283,  284,  189,  427,  105,
  596,  601,  439,  440,  793,  374,  375,  668,  376,  887,
  671,  542,  941,  963,  964, 1045,  520,  568,  569,  377,
  561,  888,  889,  890,  891,  892,  893,  894,   59,  340,
   61,   62,   63,   64,   65,   66,   67,   68,  225,  738,
  739,   70,   71,  115,  116,  150,  252,  151,  246,  152,
  620,   72,  378,  379,  255,  380,  381,  382,  226,  227,
  477,  294,  229,  230,  231,  232,  233,  234,  235,  236,
  237,  238,  239,  240,  295,  302,   11,   12,   13,   14,
   73,  107,  622,  539,  244,  643,  506,  109,  110,  111,
  112,  113,  292,  446,  428,  166,  260,  385,  304,  386,
  159,  460,  242,   75,  248,  507,  645,  508,  305,  511,
  512,  297,  135,  721,  343,  306,  307,  344,  345,  346,
  722,  448,  387,  388,  389,  390,  525,  913,  843,  154,
  392,  161,  256,  830,  831,  529,  904,  948,  949,  997,
  951,  999, 1000, 1029,   33,   76,   77,   78,   79,  162,
  394,  395,  396,  397,  398,  399,  400,  401,  402,  403,
  537,  745,  749,  931,  934,  404,  405,  406,  407,  408,
  558,  844,  409,  410,  411, 1061,  412,  655,  980,  413,
  657,  827,  667,  911,  965,  966,  967,  968,  969,  970,
  971,  972,  414,  415,  774,  773, 1062,  932,
};
short yysindex[] = {                                   1300,
 -262, -259, -241, -199, -170,    0,    0,  -86,    0,    0,
 1300,    0,    0,    0, -121, 1070,  -40,    0,    0,    0,
    0,    0,  876,    0,    0,    0,    0,    0, 1070, -111,
    0,  508,   -4,    0,    0,    0, -111,    0,    0,  -94,
    0,    0,    0,  525,    0,    0,    0,    0,   89, -315,
    0,    0,    0,    0,    0,    0,    0,  119,    0,   89,
    0,  987,  774,    0,  987,    0,  987,    0,    0,    0,
  -19, -182,    0,  449,    0,  525,    0,    0,  -22,   31,
    0,    0, -315,    0,   94,    0,   97,  100,  127,  131,
    0,    0,  137,    0,  141,  183,  626,  131,  202,  213,
    0,    0,    0,    0,  223,  173,  228, -212,  119,  615,
  218,    0,  286,  227,    0,  232,  248,    0,    0,    0,
  987, 1053,    0,    0,  987,    0,  987,  795,  987,  987,
  987,  -53,    0, 2229,  251,  -19,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
  269,    0,  547,    0,    0,    0,    0,   89,    0,    0,
   43,    0,    0,    0,    0,    0,    0,    0,    0,    0,
  340,  264,  340,  266,    0,    0,  271,  291,    0,  277,
  975,    0,    0,    0,    0,    0,    0,  716,    0,    0,
  615,  296,    0,    0,    0,    0, 2268,    0,  300,    0,
  987,  987,  987,  987,    0,    0,    0,    0,    0,    0,
    0,    0,    0,  951,    0,    0,    0,    0,    0,    0,
    0, 2869, 2908, 2908,    0,    0,   41,    0, 2949,    0,
  623,  367,  482,    5,  490,  325,  344,  337,  339,  363,
    0,  405,  338,  412,    0,    0,    0,  415,    0,    0,
 -153,    0,  227,    0,  993,  427,    0,    0,    0,  451,
  451,  424,  451,    0,    0,  464, 1014,    0,  520,    0,
  502,    0,  534,  113,  551,    0,    0,    0,    0,    0,
  554,    0,    0,  513,  541,  556,    0, 1276,    0,  589,
    0,  575, 2268, 1037,    0,    0,    0,   89,  546,    0,
  546,    0,   30,  584,    0, -179,  546,  951,    0, 2949,
    0,    0, 2309, 2949,    0,    0, -195,    0, 2949, 2949,
 2949, 2949, 2949, 2949, 2949, 2949, 2949, 2949, 2949, 2949,
 2949, 2949, 2949, 2949, 2949, 2949,  580,    0,    0,    0,
    0,  617,  627,  629,    0,    0,    0,    0,    0, -179,
  269,  632,    0,  644,  658,  662,  664,  752,  766,    0,
  770,    0,    0,    0,    0,  679,  699,  703,    0,  713,
  731,  739, 2348, -207,    0,    0,    0,    0,    0,    0,
    0, 1629,  762, 1085,  668,  637,    0,    0,    0,    0,
  759, 1629, 1105,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0, -204,  758, -202, 1629,    0,  842,    0,
    0, -198, 1629,    0,  848,    0,    0,    0,    0,    0,
  861,  861,  798,  -54,    0,  528,  729,  916,    0,  738,
  916,  806,  808,    0,  861,  103,  103,    0,  788,    0,
    0,    0,    0,  819,    0,    0,    0,  -13,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0, 2949,
    0,  546,  546,  546,    0, 2949, 2949, -269,  546,    0,
  546,    0,    0,  546,  829,    0,   70,    0,  747,    0,
    0,    0,    0,    0,  623,  623,  367,  367,  482,  482,
  482,  482,    5,    5,  490,  325,  344,  337,  339, 2949,
  129,    0,    0,  786,  824,  834, -179,    0,    0,    0,
    0,    0,  269,  928,  947,  950,  953,    0,    0,    0,
  831,    0,    0,  968, 1629, 2949, 2949, 2949, 1629, 2389,
    0,    0,    0,  820,    0,    0,    0,    0,  816,  854,
 2949,    0,  269,    0, 2949,    0,    0,    0,  899,  931,
 1629,    0,    0,    0,    0,    0,  842,  989,    0,    0,
    0,  934,    0,    0,    0,  842, 1022,  848,    0,    0,
    0,  984, 1006,  967,    0,  988, 1007,    0,    0,    0,
    0, 1044, -213, 1048, 1089,    0,    0,  520, 1049, 1069,
 1071,  982, 1072, 1055,    0,  284, 1049, 1064,    0, 1074,
  611, 1081,    0,    0, 1077,    0,    0,    0,    0,    0,
    0,    0,    0,    0, 2069,    0,    0,    0,  646, -147,
 1087, 1086,    0,  546,  546,  546,  546,    0,    0, 2949,
    0,  269,  269, 1096,  757,    0, -142,    0,    0,    0,
  548, 1097,  340,  795, 1091,    0,   52, 1106,   13,    0,
    0, 1114, 1127, 1129,    0, 2428,    0,    0,    0,  112,
  217,  239, 1060, 2469,  832,    0,    0,    0, 1088, 1629,
 1132,    0,    0,    0, 1126,    0,    0, 1134,    0,    0,
    0, 1147,    0,  842,    0,    0,    0,    0, 1225,    0,
    0,    0,    0, -150, 1150,    7,    0,    0,    0,  738,
  918, 1159,    0, 1154, 1172,    0,    0,    0, 1155, 1159,
    0,    0,    0, 1156,  716, 1159,    0,    0,    0,  -44,
    0,    0,  149, 2508, -147, 2549,    0,    0,    0, 1145,
    0,    0, 1162, -191,    0,    0, 2949, 1164,    0, 1148,
 2949,    0,  269,   46, 1166,    0,    0,    0, 1176, 2949,
 1173, 1193, 1196,    0,    0,    0, 1221, 2588,  836, 2629,
 1220, 1222,    0,    0,    0, 1257, 1245,    0,    0,    0,
    0,    0,    0, 1268,    0,    0,    0,    0, 1346,    7,
    0,    0,    0, 1003, 1003,  738,    0, 1309, 1311,  897,
 1270, 1260, 1288, 1287, 1280,    0, 1297,    0,  513, 1283,
 1299,    0, 1289, 1291,    0, 1303,    0, 1302,    0, 1304,
 2949, 1310,    0,    0,  738,    0,    0, 1307, 2949,    0,
    0,    0,    0, 2108,    0, 2949, 1306, 2108,    0, 1629,
 1629, 2949,    0,  285, 2668, 2709,  882,    0,    0,    0,
    0,    0, 1629,    0, 1312,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,  477,    0,    0,
 1318,    0,    0,    0,    0, 1315,    0, 1317, 1327,    0,
 1321,    0,    0,    0,    0,    0,    0,    0,    0, 1326,
 1301,   52,    0, 2748, 1332,    0,    0,    0, 1320, 1322,
 1325, 1352,    0,    0, 1367, 1363,    0, 1364,    0,    0,
    0,    0,  298, 1629,    0,    0,  360,    0,  384, 2789,
 1313,    0, 1629,    0, 1330, 2108,    0,    0,    0,    0,
    0,    0,    0, 1386,    0,    0,    0,    0,    0,    0,
    0, 1390, 2949,    0, 2149, 2188, 2828, -201, 2949,    0,
    0,    0, 1400,    0,    0, 1399,    0, 1629, 1629,    0,
 1629,    0,    0,  420, 1409, 1410, 1411, 1412, 1413, 1414,
    0, 1415, 1313,    0, 1629, 1629, 1629, 1629, 1629, 1629,
 1629, 1629,    0, 1416,    0,    0, 1417, 2949,    0, 1427,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
  124,    0, 1432,    0,    0,    0, 1629,    0, 1629, 1629,
    0, 1440, 1444, 1445, 1446, 1447, 1449, 1450,    0, 1448,
    0,    0,    0,    0,    0,    0,    0,    0, 2949,    0,
    0,    0,    0, 2949, 1408,    0,    0,    0, 1629, 1439,
 1439, 1439, 1451, 1441, 1442, 1453,    0, 1465,  762, 1470,
 1469,    0,    0, 1458, 1472, 1473, 1474,    0, 1478, 1487,
    0,    0,    0,    0,    0,    0,    0,    0, 1477, 1484,
 1629, 1629,    0,    0,    0,    0,
};
short yyrindex[] = {                                      0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
 1498,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,  740,
    0,    0,    0,    0,    0,    0,  807,    0,    0,    0,
    0,    0,    0, 1877,    0,    0,    0,    0,    0,  366,
    0,    0,    0,    0,    0,    0,    0, -168,    0, 1479,
    0, 3034, 1992,    0,  760,    0, 1892,    0,    0,    0,
 1731,    0,    0,  667,    0,  726,    0,    0, 1945,    0,
    0,    0, 1050,    0,    0,    0,    0,    0,    0, 1485,
    0,    0, 1488,    0,    0,    0,  -18,  182,    0,    0,
    0,    0,    0,    0,    0, -186,    0,    0,  -58, 1502,
    0,    0,    0, 1920,    0, 1509,    0,    0,    0,    0,
 1907,    0,    0,    0, 1681,    0, 1719,  667, 1812, 3066,
 3125,    0,    0,    0,    0, 1799,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
 1490,    0,    0,    0,    0,    0,    0, 1479,    0,    0,
 1945,    0,    0,    0,    0,    0,    0,    0,    0,    0,
  267,    0,  -32,    0,    0,    0, 1486,    0,    0, 1532,
  -18,    0,    0,    0,    0,    0,    0,    0,    0,    0,
 1544,    0,    0,    0,    0,    0,    0,    0,    0,    0,
 3137,  745, 1824, 1878,    0,    0,    0,    0,    0,    0,
    0,    0,    0, 1992,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0, 3288,    0,    0,    0,
 3369, 3474, 3579, 3236, 3824, 3882, 3095,  311,  294,  417,
    0,    0, 1992,    0, 2977,    0,    0,    0,    0,    0,
    0,    0,  889,    0,  567,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,  675,    0,  221,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0, 1527,    0,    0,    0,    0,    0,    0,
    0, 1524,    0, 3334,    0,    0,    0,    0,  157,    0,
 3149,    0,    0,    0,    0, 1992, 3054, 1992,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0, 1554,  426,    0,    0,    0,    0, 1992,
    0, 2997,    0,    0,    0,    0,    0,    0,    0, -110,
    0, -110, -214,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0, -236, -154,  667,    0,    0,    0,    0,    0,    0,
    0, -190,  567,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0, -236,    0, 1267,    0,
    0,    0, -236,    0,    0,    0,    0,    0,    0,    0,
 -104, -104,    0, 1550,    0,  857,   71,  -18,    0, 1527,
  -18,    0,    0,    0, -104,   12,   12,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,  669, 3157, 3169,    0,    0,    0,  187,  736,    0,
  810,    0,    0, 3218,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0, 3404, 3439, 3509, 3544, 3614, 3649,
 3684, 3719, 3754, 3789, 3853, 3911, 3940, 3957, 3975,    0,
  208,    0,    0,    0,    0,  421, 1959,    0,    0,  345,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0, -236,    0,    0,    0, -236,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0, 1305,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
 -190,    0,    0,    0,    0,    0, 1429,    0,    0,    0,
 -189,    0,    0,    0,    0, 1467,    0, 1557,    0,    0,
    0, 1552, 1553,    0,    0,    0,    0, -211,    0,    0,
    0, 1555, 1556,    0,  -18,    0,    0,  221,  -73,    0,
    0,  -18,    0,    0,    0,  -18,  -73,    0,    0,    0,
  -18,  -49,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0, 1711,  430,
  335,    0,    0, 1146, 1573,  745, 3230,    0,    0,    0,
    0,    0,    0, 1543, 1711,    0,  395,    0,    0,    0,
 1992,    0,  -70, -220,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0, -236,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0, 1591,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,  -18,    0,    0,    0, 1527,
    0, 1577,    0, 1559,    0,    0,    0,    0,    0, 1577,
    0,    0,    0,    0,    0, 1577,    0,    0,    0,    0,
    0,    0, 1992,    0,  442,    0,    0,    0,    0,    0,
    0,    0,    0,  140,    0,    0,    0, 1509,    0,  892,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
 1562,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,  -18,
    0,    0,    0,  -17,    0, 1527,    0,  237,    0,  306,
    0,    0,    0,    0, 1561,    0,    0,    0, 1527,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0, 1563,    0,    0,    0,    0,    0,
    0,    0,    0,  443,    0, 1562,    0,  443,    0, -236,
 -236,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0, -236,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0, 1570, 1574,
 1575, 1576,    0,    0,  452,    0,    0,    0,    0,    0,
    0,    0,    0, -236,    0,    0,    0,    0,    0,    0,
    0,    0, -236,    0,    0,  443,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0, 1579,    0,    0,  465,  523,  532,  543,    0,    0,
    0,    0,    0,    0,    0,    0,    0, -236, -236,    0,
 -236,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0, 1557,    0, -236, -236, -236, -236, -236, -236,
 -236, -236,    0,    0,    0,    0,    0,  553,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0, -236,    0, -236, -236,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0, -236, 1594,
 1594, 1594,    0,    0,    0,    0,    0,    0, 1596,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
 -236, -236,    0,    0,    0,    0,
};
short yygindex[] = {                                      0,
 1905,    0, 1913,    0,  -88,    0,    0, 1360,    0, 1851,
 -157,    0,    0,    0, -340,    0,    0,    0,    0,   39,
 1167,    0, -627,    0, 1354,    0, 1169, 1171, 1174, 1526,
  -56,  -51,  -47,    0,  -46,  -52, 1365, -404, 1377,    0,
    0,    0,    0, 1519, -255,    0, -250,    0,    0,    0,
    0,    0, -412, -175, -405,    0,    0,    0,  961, 1033,
 -868, 1090,    0,    0, 1018,  242,  927,    0, 1418, -372,
    0, -779,    0,    0,    0,    0,  159, -421,  299,  -20,
  302,   11,  225,  814,  -33,   55,  -23,    0,  -12,    0,
 1100,  -39,  -68, 1685,    0,    0,    0,    0, 1739,    0,
 -545,  -41,    0,  -98,    0,    0,    0,    0,    0,    0,
    0, -109,    0, -209,  985,  999, 1277, 1023, 1657, 1666,
 1656, 1665, 1668,    0, -131, -192,    0, 1990,    0,    0,
    0,    0,   90,  458,    0,    0,    0,    0, 1893, 1914,
    0,    0,    0,    0, 1754,  -71,  507, -206, 1717, -174,
 -146,    0, -477,  -25,    0,    0,    0, 1521, -314, 1513,
 1286, -274,    0, -229,    0,   -3, -268,    0,    0, 1389,
 -396,    0,  258,    0,    0,    0,    0,    0,    0,  -78,
 1640, 1779,  -10,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0, 1960,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
 -378,    0, -622,    0, -791,    0,    0,    0,    0, 1659,
 1500, 1201,    0,    0,    0,    0,    0,    0,    0,    0,
    0, -732,    0,    0,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,
};
#define YYTABLESIZE 4371
short yytable[] = {                                     156,
   22,   95,  241,  136,  296,  100,   96,  303,   82,   80,
   97,   99,  285,  342,  258,  269,  426,  598,  447,  318,
  114,  194,  175,   60,  228,  553,  599,  556,  438,  125,
  559,   69,  464,  564,  752,  509,   69,  560,  121,  127,
  179,  165,  695,  606,  176,  180,   83,   69,  900,  181,
  182,   50,   95,  160,  528,   60,  100,   96,  158,   69,
  254,   97,   99,   69,  182,  337,  779,  674,  781,  105,
  991,  623,  349,  535,  885,  725,  535,  130,  535,  353,
  619,  576,  535,  137,  182,   15,   46,   47,   16,  606,
  606,  725,  896,  898,  605,   56,   57,   50,  138,  182,
  296,  303,  194,  303,  638,  777,   17,  479,  945,  482,
  483,  484,  309,  311,  312,  472,  120,  126,  253,  228,
  478,  288,  289,  383,  179,  778,  183,  469,  813,  180,
  814,  201,  476,  181,  182,  259,  975,  989,  245,  977,
  158,  470,  469,  290,  696,   69,  176,  176,   18,  117,
  845,  536,  848,  105,  552, 1041,  555,   48,  133,  417,
  563,  472,  473,  473,  943,  480,  534,   49,   34,  105,
  438,  105,  105,  579,  580,  581,  391,   19,  679,  481,
  299,  475,  475, 1020,  120,  126,   48,  685,  681,  469,
  301,  469,  509,  469,  469,  469,  599,   48,  351,  443,
  884,  578,  723,  253,  253,  627,  469,  635,  724,  228,
  228,  228,  228,  228,  228,  228,  228,  228,  228,  228,
  228,  228,  228,  228,  228,  228,  228,  475,  475,  160,
  341,   56,   57,  157,  158,  469,  183,  469,  352,  528,
  247,  593,  570,   46,   47,  470,  808,  117,  810,   91,
  383,   91,  469,   20,  160,  120,  126,  618,  253,  816,
  383,  383,  777,  820,   91,   91,   64,  616,  300,  579,
  580,  581,  469,  617,  299,  383,   64,  469,   36,  286,
   91,  383,  471,  474,  301,   69,   23,  783,   91,  129,
  143,  131,  469,  634,   39,  462,   77,  463,  257,  422,
  143,  424,   91,   91,  797,  772,  802,   32,   46,   47,
  801,  726,  435,  549,  550,   45,  299,   77,   77,  660,
  661,  662,   91,  665,  118,  118,  301,  118,  118,  118,
  579,  580,  581,   44,  247,  566,  134,   77,  510,  614,
  719,  883,  118,  118,  615,  202,  118,  118,  672,  203,
  142,  204,  144,  145,  146,  300,  106,  228,  326,  327,
  470,  473,  300,  118,  123,  742,  118,  259,  575,  575,
  743,  611,  158,  861,   84,   51,   52,   53,   54,   55,
  465,  163,  575,   96,  328,  329,  871,  466,   56,   57,
  313,   48,  290,  383,  468,  106,  314,  383,  822,  675,
  562,   49,  881,  743,  300,   96,   96,  106,   85,   86,
   87,   88,   89,  241,   46,   47,  315,  316,   50,  383,
  629,  606,  296,  607,  737,   96,  621,  630,   48,  501,
  123,  118,  123,  167,  505,  228,  168,  727,   49,  169,
   51,   52,   53,   54,   55,   90,   91,   92,   93,  521,
  790,  521,  521,   56,   57,   50,  418,  759,  419,  637,
  420,  636,  754,  751,  799,  624,  170,  625,   48,  466,
  626,  434,  678,  299,  101,  101,  765,  133,  635,  106,
  176, 1024,  682,  301,  171,  734,  684,  730,   69,  688,
  173,  640,  133,  806,  106,   50,  353,  735,  101,  805,
  510,   74,  118,  123,  123,  123,  353,  353,  133,  133,
  133,  133,  353,  983,  986,  108,  990,  470,  473,  122,
  128,  133,  177,  353,  132,  791,  188,  767,  300,  353,
  673,  153,  699,   74,  438,  179,  128,  382,  383,  800,
  180,  185,  470,  438,  181,  182,   51,   52,   53,   54,
   55,  834,  186,  837,  108,   99,   99,  825,  381,   56,
   57,  300,  187,  470,  190,  381,  108,  755,  136,  632,
  633,   74,   74,  199,  466,   99,  195,  621,  132,   91,
  196,   91,   91,   91,   91,  153,  197,  132,  132,  756,
  198,   74,  241,  637,  241,   80,  466,   91,   91,  648,
  243,   91,   91,   46,   47,  241,  200,  740,   48,  241,
   90,   91,   92,   93,  228,  268,  228,  270,  128,  728,
  729,   91,   69,  589,   69,  903,  271,  228,  907,  909,
  272,  228,  273,  897,   69,  905,  708,  776,  108,  540,
   71,   71,  466,  782,  249,  249,  249,  753,  946,  548,
  249,  249,  249,  108,  287,  466,  761,  298,  132,  132,
   71,  247,  247,  247,  557,  249,  249,  247,  247,  247,
  565,  128,  264,  265,  261,  262,  263,   48,  249,  879,
  470,  473,  247,  247,  317,  384,  332,  241,  339,  249,
  470,  930,  895,  274,  247,  247,  895,  334,  383,  383,
  128,  228,  334,  954,  470,  349,  247,  334,  720,  228,
  950,  383,  384,  333,  228,  349,  349,  466,  228,  106,
  106,  349,  335,  349,  720,  473,  597,  849,  850,  602,
  510,  322,  323,  106,  952,   51,   52,   53,   54,   55,
   32,  466,   32,  106,  137,  384,  672,  336,   56,   57,
  470,  347,  384,   32,   32,   32,   32,  762,  132,  138,
  139,  338,  766,  128,  122,  128,  350,  251,  251,  251,
 1001,  423,  383,  251,  251,  251,  375,  466,  416,   32,
  385,  383,  659,  470,  895, 1022,  663,  385,  475,  251,
   46,   47,  386,  570,  418,  917,  419,  140,  420,  386,
  570,  895,  593,  895,  895,  895,  228,  128,  548,  593,
  803,  804,  251,   46,   47,  571,  383,  383,  425,  383,
  918,  919,  571,  228,  920,  228,  228,  228,  276,  277,
  278,  672,  429,  383,  383,  383,  383,  383,  383,  383,
  383,  153,  740,  276,  277,  278,  606,  279,  280,  432,
  384,  141,  142,  143,  144,  145,  146,  147,  148,  324,
  325,  149,  469,   81,   48,  383,  993,  383,  383,   69,
  193,  330,  331,  575,   49,  119,  124,  469,  108,  108,
  575,  433,  579,  106, 1010,  108,  731, 1039,  108,  579,
  106,   50,  108,  585,  597,  441,  164,  383,  436,  602,
  585,  437,  108,  600,   85,   86,   87,   88,   89,  228,
  600,   46,   47,   40,  442,  469,   41,   42,  472,  473,
  132,  132,   51,   52,   53,   54,   55,  764,  444,  383,
  383,  132,  445,  915,  467,   56,   57,   90,   91,   92,
   93, 1040,  124,  119,  124,   51,   52,   53,   54,   55,
  589,  500,   90,   91,   92,   93,   56,   57,   56,   57,
  249,  250,  251,  713,  644,  178,  647,  502,  649,  469,
  469,  469,  469,  469,  469,  469,  469,  503,  770,  469,
  469,  469,  469,  513,  475,  475,  504,   94,  106,  319,
  320,  321,  469,  514,  106,  619,   20,   20,   20,   20,
   20,   20,   20,   20,   20,   94,   94,  515,  354,   94,
   94,  516,   50,  517,  119,  124,  124,  124,  354,  354,
  518,  469,   46,   47,  354,  466,  544,   81,  526,   94,
  275,  276,  277,  278,  519,  354,  469,  469,  522,   46,
   47,  354,  108,   51,   52,   53,   54,   55,  527,  108,
  279,  280,  528,  108,  545,  546,   56,   57,  108,  586,
  587,  840,  530,   16,   16,   16,   16,   16,   16,   16,
   16,   16,  279,  280,  469,  355,  128,   20,  106,  106,
  469,  469,  469,  132,  132,  355,  355,  901,  902,  531,
  137,  355,  128,  982,  985,  988,   48,  532,  128,  271,
  914,  153,  355,  631,  466,  138,  635,  744,  355,  271,
  271,  547,   81,  541,   81,  271,  554,  271,  271,  164,
  472,   81,  535,   50,  639,   48,  271,  567,  469,  469,
  469,  469,  469,  469,  469,  469,  571,  108,  469,  469,
  469,  469,  610,  140,   16,  577,  106,  108,  469,  359,
  469,  469,  469,  108,   51,   52,   53,   54,   55,  359,
  359,  947,  603,   81,  604,  359,  612,   56,   57,   95,
  973,   51,   52,   53,   54,   55,  359,  466,  666,  628,
  128,  641,  359,  642,   56,   57,  656,   95,   95,  466,
  760,   95,   95,  466,  835,  818,  651,  141,  142,  143,
  144,  145,  146,  147,  148,  995,  996,  149,  998,  784,
  785,   95,  276,  277,  278,  652,   46,   47,  653,  205,
  108,  654, 1011, 1012, 1013, 1014, 1015, 1016, 1017, 1018,
  784,  785,  275,  276,  277,  278,  658,  108,  108,  466,
  910,  543,   90,   91,   92,   93,  338,  338,  157,  326,
  326,  676,  279,  280, 1026,  589, 1027, 1028,   46,   47,
  354,  205,  355,  356,  357,  358,  359,  360,  680,  361,
  362,  363, 1046, 1047,  670,  164,  164,  472,   34,   35,
   36,   28,   81,  677,   81,  683, 1043,   81,  523,  524,
   48,  206,  207,  208,  209,  210,  211,  212,  213,  686,
  214,   90,   91,   92,   93,  108,  485,  486,   90,   91,
   92,   93,  216,  217,  218,  219,  220,  221, 1065, 1066,
   81,  705,  487,  488,  222,  691,  223,  224,  275,  276,
  277,  278,   48,  206,  207,  208,  209,  210,  211,  212,
  213,  689,  214,  851,  852,  853,  692,  854,  855,  856,
  857,  364,  493,  494,  216,  217,  218,  219,  220,  221,
  257,   56,   57,  690,  698,  693,  222,  858,  223,  224,
   46,   47,  354,  205,  355,  356,  357,  358,  359,  360,
  137,  361,  362,  363,   51,   52,   53,   54,   55,  351,
   51,   52,   53,   54,   55,  138,  449,   56,   57,  351,
  351,  694,  701,   56,   57,  351,  697,  351,  703,  365,
  704,  706,  366,  707,  367,  368,  369,  370,  711,  371,
  372,  373,  450,  451,  452,  453,  454,  455,  456,  457,
  458,  459,  712,  140,  715,  717,  619,  164,  164,  164,
  472,  726,  733,  736,   48,  206,  207,  208,  209,  210,
  211,  212,  213,  466,  214,  141,  142,  143,  144,  145,
  146,  147,  148,  364,  746,  741,  216,  217,  218,  219,
  220,  221,   25,   26,   27,   28,   29,  747,  222,  748,
  223,  224,  757,  763,  765,  356,  769,  141,  142,  143,
  144,  145,  146,  147,  148,  356,  356,  149,  768,  771,
  775,  356,   51,   52,   53,   54,   55,  780,  792,  794,
  543,  795,  356,  796,  798,   56,   57,  811,  356,  812,
  819,  365,  817,  823,  366,  824,  367,  368,  369,  370,
  826,  371,  372,  373,  509,  509,  509,  509,  509,  509,
  509,  509,  828,  509,  509,  509,  509,  829,  509,  509,
  509,  509,  509,  509,  509,  509,    1,    2,    3,    4,
    5,    6,    7,    8,    9,   85,   86,   87,   88,   89,
  832,  838,  427,  427,  427,  427,  427,  427,  427,  427,
  839,  427,  427,  427,  427,  427,  427,  427,  427,  427,
  427,  427,  427,  427,  955,  956,  957,  958,  959,  960,
  961,  962,  489,  490,  491,  492,  509,  509,  509,  509,
  509,  509,  509,  509,  509,  841,  509,  842,  509,  509,
  846,  847,  785,  784,  865,  509,  866,  867,  509,  509,
  509,  509,  509,  509,  868,  869,  870,  872,  873,  874,
  509,  875,  509,  509,  427,  427,  427,  427,  427,  427,
  427,  427,  427,  876,  427,  880,  427,  427,  877,  927,
  878,  916,  899,  427,  882,  922,  427,  427,  427,  427,
  427,  427,  921,  923,  924,  925,  926,  935,  427,  936,
  427,  427,  937,  509,  509,  509,  509,  509,  509,  509,
  509,  509,  509,  509,  509,  509,  504,  504,  504,  504,
  504,  504,  504,  504,  933,  504,  504,  504,  504,  938,
  504,  504,  504,  504,  504,  504,  504,  504,  939,  942,
  944,  427,  427,  427,  427,  974,  427,  427,  427,  427,
  427,  427,  427,  427,  556,  556,  556,  556,  556,  556,
  556,  556,  976,  556,  556,  556,  556,  978,  556,  556,
  556,  556,  556,  556,  556,  556,  992,  994, 1002, 1003,
 1004, 1005, 1006, 1007, 1008, 1019, 1042, 1021,  504,  504,
  504,  504,  504,  504,  504,  504,  504, 1023,  504, 1030,
  504,  504, 1025, 1031, 1032, 1033, 1034,  504, 1035, 1036,
  504,  504,  504,  504,  504,  504, 1044, 1055, 1049, 1050,
 1037, 1048,  504, 1051,  504,  504,  556,  556,  556,  556,
  556,  556,  556,  556,  556, 1052,  556, 1059,  556,  556,
 1053, 1054, 1056, 1057, 1058,  556, 1060, 1063,  556,  556,
  556,  556,  556,  556, 1064,  472,  133,  470,   37,  137,
  556,  470,  556,  556,  123,  504,  504,  504,  504,  504,
  504,  504,  504,  504,  504,  504,  504,  504,  523,  523,
  523,  523,  523,  523,  523,  523,  469,  523,  523,  523,
  523,  129,  523,  523,  523,  523,  523,  523,  523,  523,
   35,   67,  184,  556,  556,  556,  556,  556,  556,  556,
  556,  556,  556,  556,  556,  556,  354,  205,  355,  356,
  357,  358,  359,  360,  371,  361,  362,  363,  167,  473,
  161,  162,  360,  168,  169,  476,   55,   59,  607,   61,
  569,   67,  360,  360,  568,  566,  567,   37,  360,  597,
  523,  523,  523,  523,  523,  523,  523,  523,  523,  360,
  523,   38,  523,  523,  549,  360,  593,  700,  184,  523,
  710,  860,  523,  523,  523,  523,  523,  523,  864,  863,
  709,  862,  609,  613,  523,  979,  523,  523,   48,  206,
  207,  208,  209,  210,  211,  212,  213,  714,  214, 1038,
 1009,  928,  461,  348,  940,  687,  340,  364,  495,  497,
  216,  217,  218,  219,  220,  221,  340,  340,  496,  498,
   21,  191,  222,  499,  223,  224,  469,  523,  523,  523,
  523,  523,  523,  523,  523,  523,  523,  523,  523,  523,
  273,  469,  192,  431,  475,  650,  340,  646,  821,  732,
  273,  273,  551,  393,  538,  155,  273,  669,  273,  273,
  912,  340,    0,    0,    0,  365,    0,  273,  366,    0,
  367,  368,  369,  370,  341,  371,  372,  373,  277,  469,
    0,  470,    0,    0,  341,  341,  470,    0,  277,  277,
    0,    0,    0,    0,  277,    0,  277,  277,    0,  340,
  471,  340,  340,    0,    0,  277,    0,    0,  340,  340,
  340,    0,    0,    0,  341,    0,    0,    0,    0,    0,
    0,    0,    0,  340,    0,    0,    0,    0,    0,  341,
    0,    0,    0,  469,  469,  469,  469,  469,  469,  469,
  469,    0,    0,  469,  469,  469,  469,    0,  340,  340,
  340,  340,  340,  340,  340,  340,  340,  340,  340,  340,
  340,  340,  340,  340,  340,  340,  340,  341,  471,  341,
  341,  272,    0,    0,    0,    0,  341,  341,  341,    0,
    0,  272,  272,  274,    0,    0,    0,  272,    0,  272,
  272,  341,  469,  274,  274,  465,    0,    0,  272,  274,
    0,  274,  274,    0,    0,  465,  465,  469,  469,    0,
  274,    0,    0,    0,    0,    0,  341,  341,  341,  341,
  341,  341,  341,  341,  341,  341,  341,  341,  341,  341,
  341,  341,  341,  341,  341,  465,    0,  278,    0,    0,
    0,    0,    0,    0,    0,  469,    0,  278,  278,    0,
  465,  275,    0,  278,    0,  278,  278,    0,    0,    0,
  469,  275,  275,    0,  278,    0,  280,  275,    0,  275,
  275,    0,    0,    0,  469,  469,  280,  280,  275,    0,
    0,    0,  280,    0,  280,  280,    0,    0,  465,  469,
    0,  465,    0,  280,    0,    0,    0,  338,  338,  469,
  469,  469,  469,  469,  469,  469,  469,  469,    0,  469,
  469,  469,  469,  469,    0,  469,  476,  469,  469,  469,
    0,    0,  469,    0,    0,    0,    0,  469,    0,    0,
  469,  469,  469,  469,  469,    0,    0,  465,  465,  465,
  465,  465,  465,  465,  465,  465,  465,  465,  465,  465,
  465,  465,  465,  465,  465,  465,    0,  205,    0,    0,
  469,    0,    0,    0,    0,    0,    0,  469,  469,  469,
  469,  469,  469,  469,  469,    0,    0,  469,  469,  469,
  469,  469,  469,  469,  469,  469,  469,  469,  469,    0,
    0,  469,  469,  469,  469,    0,  205,    0,    0,    0,
    0,    0,    0,  885,    0,    0,    0,    0,    0,    0,
    0,    0,    0,    0,  469,  469,  469,  469,  469,  469,
  469,  469,    0,    0,  469,  469,  469,  469,   48,  206,
  207,  208,  209,  210,  211,  212,  213,  205,  214,    0,
  293,  718,    0,    0,  885,    0,    0,    0,    0,    0,
  216,  217,  218,  219,  220,  221,    0,    0,    0,    0,
    0,    0,  222,    0,  223,  224,  886,   48,  206,  207,
  208,  209,  210,  211,  212,  213,  205,  214,    0,    0,
    0,    0,    0,  885,    0,    0,    0,    0,    0,  216,
  217,  218,  219,  220,  221,    0,    0,    0,    0,    0,
    0,  222,    0,  223,  224,    0,    0,  981,   48,  206,
  207,  208,  209,  210,  211,  212,  213,  205,  214,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
  216,  217,  218,  219,  220,  221,    0,    0,    0,    0,
    0,    0,  222,    0,  223,  224,  984,   48,  206,  207,
  208,  209,  210,  211,  212,  213,  205,  214,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,  216,
  217,  218,  219,  220,  221,    0,    0,    0,    0,    0,
    0,  222,    0,  223,  224,    0,    0,    0,   48,  206,
  207,  208,  209,  210,  211,  212,  213,  205,  214,    0,
    0,    0,    0,    0,    0,  215,    0,    0,    0,    0,
  216,  217,  218,  219,  220,  221,    0,    0,    0,    0,
    0,    0,  222,    0,  223,  224,    0,   48,  206,  207,
  208,  209,  210,  211,  212,  213,  205,  214,    0,  293,
    0,    0,    0,    0,    0,    0,    0,    0,    0,  216,
  217,  218,  219,  220,  221,    0,    0,    0,    0,    0,
    0,  222,    0,  223,  224,    0,    0,    0,   48,  206,
  207,  208,  209,  210,  211,  212,  213,  205,  214,  476,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
  216,  217,  218,  219,  220,  221,    0,    0,    0,    0,
    0,    0,  222,    0,  223,  224,    0,   48,  206,  207,
  208,  209,  210,  211,  212,  213,  205,  214,    0,    0,
    0,    0,    0,    0,    0,    0,  533,    0,    0,  216,
  217,  218,  219,  220,  221,    0,    0,    0,    0,    0,
    0,  222,    0,  223,  224,    0,    0,    0,   48,  206,
  207,  208,  209,  210,  211,  212,  213,  205,  214,    0,
    0,    0,    0,    0,    0,    0,    0,  664,    0,    0,
  216,  217,  218,  219,  220,  221,    0,    0,    0,    0,
    0,    0,  222,    0,  223,  224,    0,   48,  206,  207,
  208,  209,  210,  211,  212,  213,  205,  214,    0,    0,
    0,    0,    0,    0,    0,  750,    0,    0,    0,  216,
  217,  218,  219,  220,  221,    0,    0,    0,    0,    0,
    0,  222,    0,  223,  224,    0,    0,    0,   48,  206,
  207,  208,  209,  210,  211,  212,  213,  205,  214,    0,
    0,    0,    0,    0,    0,    0,    0,  758,    0,    0,
  216,  217,  218,  219,  220,  221,    0,    0,    0,    0,
    0,    0,  222,    0,  223,  224,    0,   48,  206,  207,
  208,  209,  210,  211,  212,  213,  205,  214,    0,    0,
    0,    0,    0,    0,  807,    0,    0,    0,    0,  216,
  217,  218,  219,  220,  221,    0,    0,    0,    0,    0,
    0,  222,    0,  223,  224,    0,    0,    0,   48,  206,
  207,  208,  209,  210,  211,  212,  213,  205,  214,    0,
    0,    0,    0,    0,    0,  809,    0,    0,    0,    0,
  216,  217,  218,  219,  220,  221,    0,    0,    0,    0,
    0,    0,  222,    0,  223,  224,    0,   48,  206,  207,
  208,  209,  210,  211,  212,  213,  205,  214,  833,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,  216,
  217,  218,  219,  220,  221,    0,    0,    0,    0,    0,
    0,  222,    0,  223,  224,    0,    0,    0,   48,  206,
  207,  208,  209,  210,  211,  212,  213,  205,  214,    0,
    0,    0,    0,    0,    0,    0,    0,  836,    0,    0,
  216,  217,  218,  219,  220,  221,    0,    0,    0,    0,
    0,    0,  222,    0,  223,  224,    0,   48,  206,  207,
  208,  209,  210,  211,  212,  213,  205,  214,  906,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,  216,
  217,  218,  219,  220,  221,    0,    0,    0,    0,    0,
    0,  222,    0,  223,  224,    0,    0,    0,   48,  206,
  207,  208,  209,  210,  211,  212,  213,  205,  214,  908,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
  216,  217,  218,  219,  220,  221,    0,    0,    0,    0,
    0,    0,  222,    0,  223,  224,    0,   48,  206,  207,
  208,  209,  210,  211,  212,  213,  205,  214,    0,    0,
    0,    0,    0,    0,    0,  929,    0,    0,    0,  216,
  217,  218,  219,  220,  221,    0,    0,    0,    0,    0,
    0,  222,    0,  223,  224,    0,    0,    0,   48,  206,
  207,  208,  209,  210,  211,  212,  213,  205,  214,  953,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
  216,  217,  218,  219,  220,  221,    0,    0,    0,    0,
    0,    0,  222,    0,  223,  224,  987,   48,  206,  207,
  208,  209,  210,  211,  212,  213,  205,  214,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,  216,
  217,  218,  219,  220,  221,    0,    0,    0,    0,    0,
    0,  222,    0,  223,  224,    0,    0,    0,   48,  206,
  207,  208,  209,  210,  211,  212,  213,  205,  308,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
  216,  217,  218,  219,  220,  221,    0,    0,    0,    0,
    0,    0,  222,    0,  223,  224,    0,   48,  206,  207,
  208,  209,  210,  211,  212,  213,    0,  310,    0,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,  216,
  217,  218,  219,  220,  221,    0,    0,    0,    0,    0,
    0,  222,    0,  223,  224,    0,    0,    0,   48,  206,
  207,  208,  209,  210,  211,  212,  213,    0,  214,    0,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
  216,  217,  218,  219,  220,  221,  314,    0,    0,    0,
    0,    0,  222,    0,  223,  224,  314,  314,  470,    0,
    0,    0,  314,    0,  314,  314,  331,    0,    0,    0,
    0,    0,    0,  314,    0,    0,  331,  331,    0,  314,
    0,    0,  331,    0,  331,  331,    0,    0,    0,    0,
    0,    0,    0,  331,    0,    0,    0,    0,    0,  331,
    0,    0,    0,  282,  314,  314,  314,  314,  314,    0,
    0,    0,    0,  282,  282,    0,    0,  314,  314,  282,
    0,  282,  282,  364,  331,  331,  331,  331,  331,    0,
  282,    0,    0,  364,  364,  279,    0,  331,  331,  364,
    0,    0,    0,    0,    0,  279,  279,    0,    0,    0,
  364,  279,    0,  279,  279,    0,  364,    0,    0,    0,
    0,    0,  279,    0,    0,    0,  469,  469,  469,  469,
  469,  469,  469,  469,    0,  245,  245,  245,    0,    0,
    0,  245,  245,  245,    0,    0,  469,  469,  469,  469,
  469,  469,  469,  469,  276,  245,  245,  245,    0,  469,
    0,  469,  469,  469,  276,  276,  281,    0,  245,  245,
  276,    0,  276,  276,    0,    0,  281,  281,  357,    0,
  245,  276,  281,    0,  281,  281,  358,    0,  357,  357,
    0,    0,    0,  281,  357,    0,  358,  358,  361,    0,
    0,    0,  358,    0,    0,  357,    0,    0,  361,  361,
    0,  357,    0,  358,  361,    0,    0,    0,  469,  358,
  469,  469,  469,    0,    0,  361,    0,    0,    0,    0,
  469,  361,  469,  469,  469,    0,    0,    0,    0,    0,
    0,    0,  469,    0,  469,  469,  469,  362,    0,    0,
  469,    0,  469,  469,  469,    0,    0,  362,  362,  363,
    0,    0,  469,  362,  469,  469,  469,    0,    0,  363,
  363,    0,    0,    0,  362,  363,  238,  238,  238,    0,
  362,    0,  238,  238,  238,    0,  363,  238,    0,    0,
    0,    0,  363,    0,    0,  238,  238,  238,  238,    0,
    0,    0,    0,    0,    0,    0,    0,  238,  238,  238,
  238,  469,    0,  469,  469,  469,    0,    0,    0,    0,
    0,  238,    0,  469,    0,  469,  469,  469,  209,  209,
  209,  209,  209,    0,  209,  209,  209,  209,  469,  209,
    0,    0,  209,  209,  209,  209,  209,  209,  209,  209,
  209,    0,  469,    0,    0,  209,  209,  209,  209,  209,
  209,  209,  209,  209,  209,  209,  209,  209,  209,  209,
  209,  209,  209,  209,  221,  221,  221,  221,  221,    0,
  221,  221,  221,    0,    0,  221,    0,    0,  221,  221,
  221,  221,  221,  221,  221,  221,  221,    0,    0,    0,
    0,  221,  221,  221,  221,  221,  221,  221,  221,  227,
  227,  227,  227,  227,    0,  227,  227,  227,    0,  221,
  227,    0,    0,  227,  227,    0,    0,    0,  227,  227,
  227,  227,    0,    0,    0,    0,  227,  227,  227,  227,
  227,  227,  227,  227,  229,  229,  229,  229,  229,    0,
  229,  229,  229,    0,  227,  229,    0,    0,  229,  229,
    0,    0,    0,  229,  229,  229,  229,    0,    0,    0,
    0,  229,  229,  229,  229,  229,  229,  229,  229,  228,
  228,  228,  228,  228,    0,  228,  228,  228,    0,  229,
  228,    0,    0,  228,  228,    0,    0,    0,  228,  228,
  228,  228,    0,    0,    0,    0,  228,  228,  228,  228,
  228,  228,  228,  228,  230,  230,  230,  230,  230,    0,
  230,  230,  230,    0,  228,  230,    0,    0,    0,    0,
    0,    0,    0,  230,  230,  230,  230,    0,    0,    0,
    0,  230,  230,  230,  230,  230,  230,  230,  230,  231,
  231,  231,  231,  231,    0,  231,  231,  231,    0,  230,
  231,    0,    0,    0,    0,    0,    0,    0,  231,  231,
  231,  231,    0,    0,    0,    0,  231,  231,  231,  231,
  231,  231,  231,  231,  232,  232,  232,  232,  232,    0,
  232,  232,  232,    0,  231,  232,    0,    0,    0,    0,
    0,    0,    0,  232,  232,  232,  232,    0,    0,    0,
    0,  232,  232,  232,  232,  232,  232,  232,  232,  233,
  233,  233,  233,  233,    0,  233,  233,  233,    0,  232,
  233,    0,    0,    0,    0,    0,    0,    0,  233,  233,
  233,  233,    0,    0,    0,    0,    0,    0,  233,  233,
  233,  233,  233,  233,  234,  234,  234,  234,  234,    0,
  234,  234,  234,    0,  233,  234,    0,    0,    0,    0,
    0,    0,    0,  234,  234,  234,  234,    0,    0,    0,
    0,    0,    0,  234,  234,  234,  234,  234,  234,  235,
  235,  235,  235,  235,    0,  235,  235,  235,    0,  234,
  235,    0,    0,    0,    0,    0,    0,    0,  235,  235,
  235,  235,    0,    0,    0,    0,    0,    0,  235,  235,
  235,  235,  235,  235,  236,  236,  236,  236,  236,    0,
  236,  236,  236,    0,  235,  236,    0,    0,    0,    0,
    0,    0,    0,  236,  236,  236,  236,    0,    0,    0,
    0,    0,    0,  236,  236,  236,  236,  236,  236,  237,
  237,  237,  237,  237,    0,  237,  237,  237,    0,  236,
  237,    0,    0,    0,    0,    0,    0,    0,  237,  237,
  237,  237,    0,    0,    0,    0,    0,    0,  237,  237,
  237,  237,  237,  237,  239,  239,  239,    0,    0,    0,
  239,  239,  239,    0,  237,  239,    0,    0,    0,    0,
    0,    0,    0,  239,  239,  239,  239,    0,    0,    0,
    0,    0,    0,    0,    0,  239,  239,  239,  239,  240,
  240,  240,    0,    0,    0,  240,  240,  240,    0,  239,
  240,    0,    0,    0,    0,    0,    0,    0,  240,  240,
  240,  240,    0,    0,    0,    0,    0,    0,    0,    0,
  240,  240,  240,  240,  241,  241,  241,    0,    0,    0,
  241,  241,  241,    0,  240,  241,    0,    0,    0,    0,
    0,    0,    0,  241,  241,  241,  241,    0,    0,    0,
    0,    0,    0,  242,  242,  242,    0,  241,  241,  242,
  242,  242,    0,    0,  242,    0,    0,    0,    0,  241,
    0,    0,  242,  242,  242,  242,    0,    0,    0,    0,
    0,    0,  243,  243,  243,    0,  242,  242,  243,  243,
  243,    0,    0,    0,    0,    0,    0,    0,  242,    0,
    0,  243,  243,  243,  243,    0,    0,    0,    0,    0,
    0,  244,  244,  244,    0,  243,  243,  244,  244,  244,
    0,    0,    0,    0,    0,    0,    0,  243,    0,    0,
  244,  244,  244,  244,    0,    0,    0,    0,    0,    0,
  246,  246,  246,    0,  244,  244,  246,  246,  246,    0,
    0,    0,    0,    0,    0,    0,  244,  248,  248,  248,
  246,  246,  246,  248,  248,  248,    0,    0,    0,    0,
    0,    0,    0,  246,  246,  250,  250,  250,  248,  248,
    0,  250,  250,  250,    0,  246,    0,    0,    0,    0,
  248,  248,    0,    0,    0,    0,  250,  250,    0,    0,
    0,    0,  248,    0,    0,    0,    0,    0,    0,  250,
    0,    0,    0,    0,    0,    0,    0,    0,    0,    0,
  250,
};
short yycheck[] = {                                      78,
   11,   58,  134,   72,  197,   58,   58,  214,   50,   49,
   58,   58,  188,  243,  161,  173,  267,  430,  293,  229,
   60,  110,   94,   44,  134,  404,  431,  406,  284,   63,
  409,   44,  301,  412,  657,  350,   49,  410,   62,   63,
   97,   83,  256,  280,  256,   97,   50,   60,  828,   97,
   97,  367,  109,   79,  269,   76,  109,  109,   79,   72,
  159,  109,  109,   76,  276,  240,  694,  545,  696,  256,
  939,  468,  247,  281,  276,  621,  281,   67,  281,  254,
  350,  422,  281,  296,  296,  348,  266,  267,  348,  280,
  280,  637,  825,  826,  435,  411,  412,  367,  311,  311,
  293,  308,  191,  310,  501,  256,  348,  314,  900,  319,
  320,  321,  222,  223,  224,  352,   62,   63,  158,  229,
  313,  193,  194,  255,  181,  276,  295,  296,  320,  181,
  322,  121,  353,  181,  181,  161,  916,  339,  151,  931,
  161,  356,  311,  196,  358,  158,  358,  359,  348,   60,
  773,  359,  780,  340,  359, 1024,  359,  340,   69,  258,
  359,  352,  353,  353,  897,  361,  373,  350,  337,  356,
  426,  358,  359,  324,  325,  326,  255,  348,  557,  375,
  214,  418,  419,  975,  130,  131,  340,  566,  561,  426,
  214,  296,  507,  414,  415,  416,  601,  340,  352,  288,
  823,  256,  350,  358,  359,  474,  311,  350,  356,  319,
  320,  321,  322,  323,  324,  325,  326,  327,  328,  329,
  330,  331,  332,  333,  334,  335,  336,  418,  419,  255,
  243,  411,  412,  256,  255,  426,  295,  296,  251,  350,
  151,  396,  417,  266,  267,  356,  724,  158,  726,  320,
  382,  322,  311,  340,  359,  201,  202,  467,  298,  737,
  392,  393,  256,  741,  335,  336,  340,  460,  214,  324,
  325,  326,  306,  466,  308,  407,  350,  296,  337,  190,
  313,  413,  306,  307,  308,  298,  408,  700,  359,   65,
  340,   67,  311,  500,  406,  299,  314,  301,  256,  261,
  350,  263,  335,  336,  710,  684,  351,  348,  266,  267,
  716,  356,  274,  392,  393,  410,  350,  335,  336,  526,
  527,  528,  355,  530,  313,  314,  350,  316,  317,  318,
  324,  325,  326,  338,  245,  414,  356,  355,  351,  353,
  615,  819,  331,  332,  358,  121,  335,  336,  541,  125,
  404,  127,  406,  407,  408,  301,   58,  467,  354,  355,
  306,  307,  308,   62,   63,  353,  355,  393,  421,  422,
  358,  443,  393,  786,  256,  398,  399,  400,  401,  402,
  351,  351,  435,  313,  380,  381,  799,  358,  411,  412,
  350,  340,  445,  525,  305,   97,  356,  529,  353,  546,
  411,  350,  815,  358,  350,  335,  336,  109,  290,  291,
  292,  293,  294,  545,  266,  267,  376,  377,  367,  551,
  351,  319,  615,  321,  373,  355,  468,  358,  340,  340,
  129,  130,  131,  340,  345,  545,  340,  630,  350,  340,
  398,  399,  400,  401,  402,  327,  328,  329,  330,  360,
  701,  362,  363,  411,  412,  367,  344,  664,  346,  501,
  348,  501,  351,  656,  715,  469,  340,  471,  340,  358,
  474,  359,  551,  507,  335,  336,  353,  296,  350,  181,
  340,  358,  561,  507,  354,  643,  565,  634,  501,  568,
  354,  504,  311,  723,  196,  367,  340,  644,  359,  351,
  513,   44,  201,  202,  203,  204,  350,  351,  327,  328,
  329,  330,  356,  935,  936,   58,  938,  463,  464,   62,
   63,  340,  340,  367,   67,  701,  354,  674,  474,  373,
  543,   74,  585,   76,  790,  592,   79,  351,  670,  715,
  592,  340,  356,  799,  592,  592,  398,  399,  400,  401,
  402,  758,  340,  760,   97,  335,  336,  750,  351,  411,
  412,  507,  340,  356,  337,  358,  109,  351,  637,  480,
  481,  335,  336,  116,  358,  355,  359,  619,  121,  313,
  295,  315,  316,  317,  318,  128,  360,  130,  131,  351,
  359,  355,  724,  635,  726,  635,  358,  331,  332,  510,
  350,  335,  336,  266,  267,  737,  359,  647,  340,  741,
  327,  328,  329,  330,  724,  352,  726,  352,  161,  632,
  633,  355,  635,  340,  637,  832,  356,  737,  835,  836,
  340,  741,  356,  826,  647,  351,  353,  690,  181,  382,
  335,  336,  358,  696,  351,  352,  353,  658,  351,  392,
  357,  358,  359,  196,  359,  358,  667,  358,  201,  202,
  355,  351,  352,  353,  407,  372,  373,  357,  358,  359,
  413,  214,  333,  334,  168,  169,  170,  340,  385,  811,
  626,  627,  372,  373,  227,  351,  362,  819,  351,  396,
  356,  884,  824,  187,  384,  385,  828,  353,  830,  831,
  243,  811,  358,  910,  360,  340,  396,  371,  619,  819,
  351,  843,  255,  370,  824,  350,  351,  358,  828,  421,
  422,  356,  384,  358,  635,    0,  428,  780,  781,  431,
  743,  365,  366,  435,  351,  398,  399,  400,  401,  402,
  320,  358,  322,  445,  296,  351,  939,  385,  411,  412,
  356,  340,  358,  333,  334,  335,  336,  668,  301,  311,
  312,  357,  673,  306,  307,  308,  352,  351,  352,  353,
  351,  348,  904,  357,  358,  359,  351,  358,  352,  359,
  351,  913,  525,  358,  916,  978,  529,  358,  372,  373,
  266,  267,  351,  351,  344,  848,  346,  349,  348,  358,
  358,  933,  351,  935,  936,  937,  916,  350,  551,  358,
  721,  722,  396,  266,  267,  351,  948,  949,  355,  951,
  344,  345,  358,  933,  348,  935,  936,  937,  316,  317,
  318, 1024,  313,  965,  966,  967,  968,  969,  970,  971,
  972,  384,  882,  316,  317,  318,  280,  335,  336,  348,
  393,  403,  404,  405,  406,  407,  408,  409,  410,  378,
  379,  413,  296,   50,  340,  997,  945,  999, 1000,  882,
  256,  382,  383,  351,  350,   62,   63,  311,  421,  422,
  358,  348,  351,  585,  963,  428,  339, 1019,  431,  358,
  592,  367,  435,  351,  596,  355,   83, 1029,  348,  601,
  358,  348,  445,  351,  290,  291,  292,  293,  294, 1019,
  358,  266,  267,  406,  359,  349,  409,  410,  352,  353,
  463,  464,  398,  399,  400,  401,  402,  670,  340, 1061,
 1062,  474,  358,  844,  351,  411,  412,  327,  328,  329,
  330, 1020,  129,  130,  131,  398,  399,  400,  401,  402,
  340,  372,  327,  328,  329,  330,  411,  412,  411,  412,
  414,  415,  416,  353,  507,  340,  509,  351,  511,  403,
  404,  405,  406,  407,  408,  409,  410,  351,  680,  413,
  414,  415,  416,  352,  418,  419,  358,  313,  690,  367,
  368,  369,  426,  350,  696,  350,  257,  258,  259,  260,
  261,  262,  263,  264,  265,  331,  332,  350,  340,  335,
  336,  350,  367,  350,  201,  202,  203,  204,  350,  351,
  269,  296,  266,  267,  356,  358,  359,  214,  350,  355,
  315,  316,  317,  318,  269,  367,  311,  312,  269,  266,
  267,  373,  585,  398,  399,  400,  401,  402,  350,  592,
  335,  336,  350,  596,  418,  419,  411,  412,  601,  331,
  332,  763,  350,  257,  258,  259,  260,  261,  262,  263,
  264,  265,  335,  336,  349,  340,  619,  338,  780,  781,
  414,  415,  416,  626,  627,  350,  351,  830,  831,  359,
  296,  356,  635,  935,  936,  937,  340,  359,  641,  340,
  843,  644,  367,  357,  358,  311,  350,  650,  373,  350,
  351,  353,  299,  352,  301,  356,  359,  358,  359,  306,
  307,  308,  281,  367,  339,  340,  367,  280,  403,  404,
  405,  406,  407,  408,  409,  410,  276,  680,  413,  414,
  415,  416,  355,  349,  338,  348,  848,  690,  404,  340,
  406,  407,  408,  696,  398,  399,  400,  401,  402,  350,
  351,  904,  357,  350,  357,  356,  348,  411,  412,  313,
  913,  398,  399,  400,  401,  402,  367,  358,  359,  351,
  723,  358,  373,  350,  411,  412,  356,  331,  332,  358,
  359,  335,  336,  358,  359,  738,  269,  403,  404,  405,
  406,  407,  408,  409,  410,  948,  949,  413,  951,  313,
  314,  355,  316,  317,  318,  269,  266,  267,  269,  269,
  763,  269,  965,  966,  967,  968,  969,  970,  971,  972,
  313,  314,  315,  316,  317,  318,  269,  780,  781,  358,
  359,  426,  327,  328,  329,  330,  358,  359,  256,  358,
  359,  353,  335,  336,  997,  340,  999, 1000,  266,  267,
  268,  269,  270,  271,  272,  273,  274,  275,  280,  277,
  278,  279, 1031, 1032,  421,  462,  463,  464,  403,  404,
  405,  406,  469,  353,  471,  352, 1029,  474,  362,  363,
  340,  341,  342,  343,  344,  345,  346,  347,  348,  278,
  350,  327,  328,  329,  330,  848,  322,  323,  327,  328,
  329,  330,  362,  363,  364,  365,  366,  367, 1061, 1062,
  507,  340,  324,  325,  374,  359,  376,  377,  315,  316,
  317,  318,  340,  341,  342,  343,  344,  345,  346,  347,
  348,  358,  350,  341,  342,  343,  359,  345,  346,  347,
  348,  359,  330,  331,  362,  363,  364,  365,  366,  367,
  256,  411,  412,  358,  276,  359,  374,  365,  376,  377,
  266,  267,  268,  269,  270,  271,  272,  273,  274,  275,
  296,  277,  278,  279,  398,  399,  400,  401,  402,  340,
  398,  399,  400,  401,  402,  311,  360,  411,  412,  350,
  351,  358,  354,  411,  412,  356,  359,  358,  340,  417,
  340,  340,  420,  359,  422,  423,  424,  425,  355,  427,
  428,  429,  386,  387,  388,  389,  390,  391,  392,  393,
  394,  395,  359,  349,  354,  359,  350,  624,  625,  626,
  627,  356,  346,  353,  340,  341,  342,  343,  344,  345,
  346,  347,  348,  358,  350,  403,  404,  405,  406,  407,
  408,  409,  410,  359,  351,  360,  362,  363,  364,  365,
  366,  367,  403,  404,  405,  406,  407,  351,  374,  351,
  376,  377,  423,  396,  353,  340,  353,  403,  404,  405,
  406,  407,  408,  409,  410,  350,  351,  413,  373,  353,
  276,  356,  398,  399,  400,  401,  402,  358,  350,  356,
  426,  340,  367,  359,  359,  411,  412,  373,  373,  358,
  373,  417,  359,  358,  420,  350,  422,  423,  424,  425,
  358,  427,  428,  429,  268,  269,  270,  271,  272,  273,
  274,  275,  350,  277,  278,  279,  280,  352,  282,  283,
  284,  285,  286,  287,  288,  289,  257,  258,  259,  260,
  261,  262,  263,  264,  265,  290,  291,  292,  293,  294,
  350,  352,  268,  269,  270,  271,  272,  273,  274,  275,
  359,  277,  278,  279,  280,  281,  282,  283,  284,  285,
  286,  287,  288,  289,  282,  283,  284,  285,  286,  287,
  288,  289,  326,  327,  328,  329,  340,  341,  342,  343,
  344,  345,  346,  347,  348,  359,  350,  373,  352,  353,
  353,  276,  314,  313,  355,  359,  367,  340,  362,  363,
  364,  365,  366,  367,  348,  356,  340,  355,  340,  351,
  374,  351,  376,  377,  340,  341,  342,  343,  344,  345,
  346,  347,  348,  351,  350,  346,  352,  353,  357,  359,
  357,  350,  357,  359,  358,  351,  362,  363,  364,  365,
  366,  367,  355,  357,  348,  355,  351,  358,  374,  358,
  376,  377,  358,  417,  418,  419,  420,  421,  422,  423,
  424,  425,  426,  427,  428,  429,  268,  269,  270,  271,
  272,  273,  274,  275,  373,  277,  278,  279,  280,  358,
  282,  283,  284,  285,  286,  287,  288,  289,  352,  357,
  357,  417,  418,  419,  420,  396,  422,  423,  424,  425,
  426,  427,  428,  429,  268,  269,  270,  271,  272,  273,
  274,  275,  357,  277,  278,  279,  280,  358,  282,  283,
  284,  285,  286,  287,  288,  289,  357,  359,  350,  350,
  350,  350,  350,  350,  350,  350,  359,  351,  340,  341,
  342,  343,  344,  345,  346,  347,  348,  351,  350,  340,
  352,  353,  351,  340,  340,  340,  340,  359,  340,  340,
  362,  363,  364,  365,  366,  367,  358,  340,  358,  358,
  353,  351,  374,  351,  376,  377,  340,  341,  342,  343,
  344,  345,  346,  347,  348,  351,  350,  340,  352,  353,
  351,  353,  351,  351,  351,  359,  340,  351,  362,  363,
  364,  365,  366,  367,  351,  338,  352,  359,  337,  352,
  374,  352,  376,  377,  359,  417,  418,  419,  420,  421,
  422,  423,  424,  425,  426,  427,  428,  429,  268,  269,
  270,  271,  272,  273,  274,  275,  358,  277,  278,  279,
  280,  340,  282,  283,  284,  285,  286,  287,  288,  289,
  337,  355,  359,  417,  418,  419,  420,  421,  422,  423,
  424,  425,  426,  427,  428,  429,  268,  269,  270,  271,
  272,  273,  274,  275,  351,  277,  278,  279,  359,  353,
  359,  359,  340,  359,  359,  373,  340,  359,  357,  359,
  351,  359,  350,  351,  351,  351,  351,   23,  356,  351,
  340,  341,  342,  343,  344,  345,  346,  347,  348,  367,
  350,   29,  352,  353,  351,  373,  351,  588,   98,  359,
  597,  785,  362,  363,  364,  365,  366,  367,  790,  789,
  596,  788,  437,  445,  374,  933,  376,  377,  340,  341,
  342,  343,  344,  345,  346,  347,  348,  601,  350, 1019,
  963,  882,  298,  245,  895,  568,  256,  359,  332,  334,
  362,  363,  364,  365,  366,  367,  266,  267,  333,  335,
   11,  109,  374,  336,  376,  377,  296,  417,  418,  419,
  420,  421,  422,  423,  424,  425,  426,  427,  428,  429,
  340,  311,  109,  270,  308,  513,  296,  507,  743,  641,
  350,  351,  393,  255,  376,   76,  356,  538,  358,  359,
  840,  311,   -1,   -1,   -1,  417,   -1,  367,  420,   -1,
  422,  423,  424,  425,  256,  427,  428,  429,  340,  349,
   -1,  351,   -1,   -1,  266,  267,  356,   -1,  350,  351,
   -1,   -1,   -1,   -1,  356,   -1,  358,  359,   -1,  349,
  350,  351,  352,   -1,   -1,  367,   -1,   -1,  358,  359,
  360,   -1,   -1,   -1,  296,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,  373,   -1,   -1,   -1,   -1,   -1,  311,
   -1,   -1,   -1,  403,  404,  405,  406,  407,  408,  409,
  410,   -1,   -1,  413,  414,  415,  416,   -1,  398,  399,
  400,  401,  402,  403,  404,  405,  406,  407,  408,  409,
  410,  411,  412,  413,  414,  415,  416,  349,  350,  351,
  352,  340,   -1,   -1,   -1,   -1,  358,  359,  360,   -1,
   -1,  350,  351,  340,   -1,   -1,   -1,  356,   -1,  358,
  359,  373,  296,  350,  351,  256,   -1,   -1,  367,  356,
   -1,  358,  359,   -1,   -1,  266,  267,  311,  312,   -1,
  367,   -1,   -1,   -1,   -1,   -1,  398,  399,  400,  401,
  402,  403,  404,  405,  406,  407,  408,  409,  410,  411,
  412,  413,  414,  415,  416,  296,   -1,  340,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,  349,   -1,  350,  351,   -1,
  311,  340,   -1,  356,   -1,  358,  359,   -1,   -1,   -1,
  296,  350,  351,   -1,  367,   -1,  340,  356,   -1,  358,
  359,   -1,   -1,   -1,  296,  311,  350,  351,  367,   -1,
   -1,   -1,  356,   -1,  358,  359,   -1,   -1,  349,  311,
   -1,  352,   -1,  367,   -1,   -1,   -1,  358,  359,  403,
  404,  405,  406,  407,  408,  409,  410,  296,   -1,  413,
  414,  415,  416,  349,   -1,  404,  352,  406,  407,  408,
   -1,   -1,  311,   -1,   -1,   -1,   -1,  349,   -1,   -1,
  404,  353,  406,  407,  408,   -1,   -1,  398,  399,  400,
  401,  402,  403,  404,  405,  406,  407,  408,  409,  410,
  411,  412,  413,  414,  415,  416,   -1,  269,   -1,   -1,
  349,   -1,   -1,   -1,   -1,   -1,   -1,  403,  404,  405,
  406,  407,  408,  409,  410,   -1,   -1,  413,  414,  415,
  416,  403,  404,  405,  406,  407,  408,  409,  410,   -1,
   -1,  413,  414,  415,  416,   -1,  269,   -1,   -1,   -1,
   -1,   -1,   -1,  276,   -1,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,  403,  404,  405,  406,  407,  408,
  409,  410,   -1,   -1,  413,  414,  415,  416,  340,  341,
  342,  343,  344,  345,  346,  347,  348,  269,  350,   -1,
  352,  353,   -1,   -1,  276,   -1,   -1,   -1,   -1,   -1,
  362,  363,  364,  365,  366,  367,   -1,   -1,   -1,   -1,
   -1,   -1,  374,   -1,  376,  377,  339,  340,  341,  342,
  343,  344,  345,  346,  347,  348,  269,  350,   -1,   -1,
   -1,   -1,   -1,  276,   -1,   -1,   -1,   -1,   -1,  362,
  363,  364,  365,  366,  367,   -1,   -1,   -1,   -1,   -1,
   -1,  374,   -1,  376,  377,   -1,   -1,  339,  340,  341,
  342,  343,  344,  345,  346,  347,  348,  269,  350,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
  362,  363,  364,  365,  366,  367,   -1,   -1,   -1,   -1,
   -1,   -1,  374,   -1,  376,  377,  339,  340,  341,  342,
  343,  344,  345,  346,  347,  348,  269,  350,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,  362,
  363,  364,  365,  366,  367,   -1,   -1,   -1,   -1,   -1,
   -1,  374,   -1,  376,  377,   -1,   -1,   -1,  340,  341,
  342,  343,  344,  345,  346,  347,  348,  269,  350,   -1,
   -1,   -1,   -1,   -1,   -1,  357,   -1,   -1,   -1,   -1,
  362,  363,  364,  365,  366,  367,   -1,   -1,   -1,   -1,
   -1,   -1,  374,   -1,  376,  377,   -1,  340,  341,  342,
  343,  344,  345,  346,  347,  348,  269,  350,   -1,  352,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,  362,
  363,  364,  365,  366,  367,   -1,   -1,   -1,   -1,   -1,
   -1,  374,   -1,  376,  377,   -1,   -1,   -1,  340,  341,
  342,  343,  344,  345,  346,  347,  348,  269,  350,  351,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
  362,  363,  364,  365,  366,  367,   -1,   -1,   -1,   -1,
   -1,   -1,  374,   -1,  376,  377,   -1,  340,  341,  342,
  343,  344,  345,  346,  347,  348,  269,  350,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,  359,   -1,   -1,  362,
  363,  364,  365,  366,  367,   -1,   -1,   -1,   -1,   -1,
   -1,  374,   -1,  376,  377,   -1,   -1,   -1,  340,  341,
  342,  343,  344,  345,  346,  347,  348,  269,  350,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,  359,   -1,   -1,
  362,  363,  364,  365,  366,  367,   -1,   -1,   -1,   -1,
   -1,   -1,  374,   -1,  376,  377,   -1,  340,  341,  342,
  343,  344,  345,  346,  347,  348,  269,  350,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,  358,   -1,   -1,   -1,  362,
  363,  364,  365,  366,  367,   -1,   -1,   -1,   -1,   -1,
   -1,  374,   -1,  376,  377,   -1,   -1,   -1,  340,  341,
  342,  343,  344,  345,  346,  347,  348,  269,  350,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,  359,   -1,   -1,
  362,  363,  364,  365,  366,  367,   -1,   -1,   -1,   -1,
   -1,   -1,  374,   -1,  376,  377,   -1,  340,  341,  342,
  343,  344,  345,  346,  347,  348,  269,  350,   -1,   -1,
   -1,   -1,   -1,   -1,  357,   -1,   -1,   -1,   -1,  362,
  363,  364,  365,  366,  367,   -1,   -1,   -1,   -1,   -1,
   -1,  374,   -1,  376,  377,   -1,   -1,   -1,  340,  341,
  342,  343,  344,  345,  346,  347,  348,  269,  350,   -1,
   -1,   -1,   -1,   -1,   -1,  357,   -1,   -1,   -1,   -1,
  362,  363,  364,  365,  366,  367,   -1,   -1,   -1,   -1,
   -1,   -1,  374,   -1,  376,  377,   -1,  340,  341,  342,
  343,  344,  345,  346,  347,  348,  269,  350,  351,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,  362,
  363,  364,  365,  366,  367,   -1,   -1,   -1,   -1,   -1,
   -1,  374,   -1,  376,  377,   -1,   -1,   -1,  340,  341,
  342,  343,  344,  345,  346,  347,  348,  269,  350,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,  359,   -1,   -1,
  362,  363,  364,  365,  366,  367,   -1,   -1,   -1,   -1,
   -1,   -1,  374,   -1,  376,  377,   -1,  340,  341,  342,
  343,  344,  345,  346,  347,  348,  269,  350,  351,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,  362,
  363,  364,  365,  366,  367,   -1,   -1,   -1,   -1,   -1,
   -1,  374,   -1,  376,  377,   -1,   -1,   -1,  340,  341,
  342,  343,  344,  345,  346,  347,  348,  269,  350,  351,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
  362,  363,  364,  365,  366,  367,   -1,   -1,   -1,   -1,
   -1,   -1,  374,   -1,  376,  377,   -1,  340,  341,  342,
  343,  344,  345,  346,  347,  348,  269,  350,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,  358,   -1,   -1,   -1,  362,
  363,  364,  365,  366,  367,   -1,   -1,   -1,   -1,   -1,
   -1,  374,   -1,  376,  377,   -1,   -1,   -1,  340,  341,
  342,  343,  344,  345,  346,  347,  348,  269,  350,  351,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
  362,  363,  364,  365,  366,  367,   -1,   -1,   -1,   -1,
   -1,   -1,  374,   -1,  376,  377,  339,  340,  341,  342,
  343,  344,  345,  346,  347,  348,  269,  350,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,  362,
  363,  364,  365,  366,  367,   -1,   -1,   -1,   -1,   -1,
   -1,  374,   -1,  376,  377,   -1,   -1,   -1,  340,  341,
  342,  343,  344,  345,  346,  347,  348,  269,  350,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
  362,  363,  364,  365,  366,  367,   -1,   -1,   -1,   -1,
   -1,   -1,  374,   -1,  376,  377,   -1,  340,  341,  342,
  343,  344,  345,  346,  347,  348,   -1,  350,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,  362,
  363,  364,  365,  366,  367,   -1,   -1,   -1,   -1,   -1,
   -1,  374,   -1,  376,  377,   -1,   -1,   -1,  340,  341,
  342,  343,  344,  345,  346,  347,  348,   -1,  350,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
  362,  363,  364,  365,  366,  367,  340,   -1,   -1,   -1,
   -1,   -1,  374,   -1,  376,  377,  350,  351,  352,   -1,
   -1,   -1,  356,   -1,  358,  359,  340,   -1,   -1,   -1,
   -1,   -1,   -1,  367,   -1,   -1,  350,  351,   -1,  373,
   -1,   -1,  356,   -1,  358,  359,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,  367,   -1,   -1,   -1,   -1,   -1,  373,
   -1,   -1,   -1,  340,  398,  399,  400,  401,  402,   -1,
   -1,   -1,   -1,  350,  351,   -1,   -1,  411,  412,  356,
   -1,  358,  359,  340,  398,  399,  400,  401,  402,   -1,
  367,   -1,   -1,  350,  351,  340,   -1,  411,  412,  356,
   -1,   -1,   -1,   -1,   -1,  350,  351,   -1,   -1,   -1,
  367,  356,   -1,  358,  359,   -1,  373,   -1,   -1,   -1,
   -1,   -1,  367,   -1,   -1,   -1,  403,  404,  405,  406,
  407,  408,  409,  410,   -1,  351,  352,  353,   -1,   -1,
   -1,  357,  358,  359,   -1,   -1,  403,  404,  405,  406,
  407,  408,  409,  410,  340,  371,  372,  373,   -1,  404,
   -1,  406,  407,  408,  350,  351,  340,   -1,  384,  385,
  356,   -1,  358,  359,   -1,   -1,  350,  351,  340,   -1,
  396,  367,  356,   -1,  358,  359,  340,   -1,  350,  351,
   -1,   -1,   -1,  367,  356,   -1,  350,  351,  340,   -1,
   -1,   -1,  356,   -1,   -1,  367,   -1,   -1,  350,  351,
   -1,  373,   -1,  367,  356,   -1,   -1,   -1,  404,  373,
  406,  407,  408,   -1,   -1,  367,   -1,   -1,   -1,   -1,
  404,  373,  406,  407,  408,   -1,   -1,   -1,   -1,   -1,
   -1,   -1,  404,   -1,  406,  407,  408,  340,   -1,   -1,
  404,   -1,  406,  407,  408,   -1,   -1,  350,  351,  340,
   -1,   -1,  404,  356,  406,  407,  408,   -1,   -1,  350,
  351,   -1,   -1,   -1,  367,  356,  351,  352,  353,   -1,
  373,   -1,  357,  358,  359,   -1,  367,  362,   -1,   -1,
   -1,   -1,  373,   -1,   -1,  370,  371,  372,  373,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,  382,  383,  384,
  385,  404,   -1,  406,  407,  408,   -1,   -1,   -1,   -1,
   -1,  396,   -1,  404,   -1,  406,  407,  408,  351,  352,
  353,  354,  355,   -1,  357,  358,  359,  360,  361,  362,
   -1,   -1,  365,  366,  367,  368,  369,  370,  371,  372,
  373,   -1,  375,   -1,   -1,  378,  379,  380,  381,  382,
  383,  384,  385,  386,  387,  388,  389,  390,  391,  392,
  393,  394,  395,  396,  351,  352,  353,  354,  355,   -1,
  357,  358,  359,   -1,   -1,  362,   -1,   -1,  365,  366,
  367,  368,  369,  370,  371,  372,  373,   -1,   -1,   -1,
   -1,  378,  379,  380,  381,  382,  383,  384,  385,  351,
  352,  353,  354,  355,   -1,  357,  358,  359,   -1,  396,
  362,   -1,   -1,  365,  366,   -1,   -1,   -1,  370,  371,
  372,  373,   -1,   -1,   -1,   -1,  378,  379,  380,  381,
  382,  383,  384,  385,  351,  352,  353,  354,  355,   -1,
  357,  358,  359,   -1,  396,  362,   -1,   -1,  365,  366,
   -1,   -1,   -1,  370,  371,  372,  373,   -1,   -1,   -1,
   -1,  378,  379,  380,  381,  382,  383,  384,  385,  351,
  352,  353,  354,  355,   -1,  357,  358,  359,   -1,  396,
  362,   -1,   -1,  365,  366,   -1,   -1,   -1,  370,  371,
  372,  373,   -1,   -1,   -1,   -1,  378,  379,  380,  381,
  382,  383,  384,  385,  351,  352,  353,  354,  355,   -1,
  357,  358,  359,   -1,  396,  362,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,  370,  371,  372,  373,   -1,   -1,   -1,
   -1,  378,  379,  380,  381,  382,  383,  384,  385,  351,
  352,  353,  354,  355,   -1,  357,  358,  359,   -1,  396,
  362,   -1,   -1,   -1,   -1,   -1,   -1,   -1,  370,  371,
  372,  373,   -1,   -1,   -1,   -1,  378,  379,  380,  381,
  382,  383,  384,  385,  351,  352,  353,  354,  355,   -1,
  357,  358,  359,   -1,  396,  362,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,  370,  371,  372,  373,   -1,   -1,   -1,
   -1,  378,  379,  380,  381,  382,  383,  384,  385,  351,
  352,  353,  354,  355,   -1,  357,  358,  359,   -1,  396,
  362,   -1,   -1,   -1,   -1,   -1,   -1,   -1,  370,  371,
  372,  373,   -1,   -1,   -1,   -1,   -1,   -1,  380,  381,
  382,  383,  384,  385,  351,  352,  353,  354,  355,   -1,
  357,  358,  359,   -1,  396,  362,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,  370,  371,  372,  373,   -1,   -1,   -1,
   -1,   -1,   -1,  380,  381,  382,  383,  384,  385,  351,
  352,  353,  354,  355,   -1,  357,  358,  359,   -1,  396,
  362,   -1,   -1,   -1,   -1,   -1,   -1,   -1,  370,  371,
  372,  373,   -1,   -1,   -1,   -1,   -1,   -1,  380,  381,
  382,  383,  384,  385,  351,  352,  353,  354,  355,   -1,
  357,  358,  359,   -1,  396,  362,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,  370,  371,  372,  373,   -1,   -1,   -1,
   -1,   -1,   -1,  380,  381,  382,  383,  384,  385,  351,
  352,  353,  354,  355,   -1,  357,  358,  359,   -1,  396,
  362,   -1,   -1,   -1,   -1,   -1,   -1,   -1,  370,  371,
  372,  373,   -1,   -1,   -1,   -1,   -1,   -1,  380,  381,
  382,  383,  384,  385,  351,  352,  353,   -1,   -1,   -1,
  357,  358,  359,   -1,  396,  362,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,  370,  371,  372,  373,   -1,   -1,   -1,
   -1,   -1,   -1,   -1,   -1,  382,  383,  384,  385,  351,
  352,  353,   -1,   -1,   -1,  357,  358,  359,   -1,  396,
  362,   -1,   -1,   -1,   -1,   -1,   -1,   -1,  370,  371,
  372,  373,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
  382,  383,  384,  385,  351,  352,  353,   -1,   -1,   -1,
  357,  358,  359,   -1,  396,  362,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,  370,  371,  372,  373,   -1,   -1,   -1,
   -1,   -1,   -1,  351,  352,  353,   -1,  384,  385,  357,
  358,  359,   -1,   -1,  362,   -1,   -1,   -1,   -1,  396,
   -1,   -1,  370,  371,  372,  373,   -1,   -1,   -1,   -1,
   -1,   -1,  351,  352,  353,   -1,  384,  385,  357,  358,
  359,   -1,   -1,   -1,   -1,   -1,   -1,   -1,  396,   -1,
   -1,  370,  371,  372,  373,   -1,   -1,   -1,   -1,   -1,
   -1,  351,  352,  353,   -1,  384,  385,  357,  358,  359,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,  396,   -1,   -1,
  370,  371,  372,  373,   -1,   -1,   -1,   -1,   -1,   -1,
  351,  352,  353,   -1,  384,  385,  357,  358,  359,   -1,
   -1,   -1,   -1,   -1,   -1,   -1,  396,  351,  352,  353,
  371,  372,  373,  357,  358,  359,   -1,   -1,   -1,   -1,
   -1,   -1,   -1,  384,  385,  351,  352,  353,  372,  373,
   -1,  357,  358,  359,   -1,  396,   -1,   -1,   -1,   -1,
  384,  385,   -1,   -1,   -1,   -1,  372,  373,   -1,   -1,
   -1,   -1,  396,   -1,   -1,   -1,   -1,   -1,   -1,  385,
   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,   -1,
  396,
};
#define YYFINAL 10
#ifndef YYDEBUG
#define YYDEBUG 0
#endif
#define YYMAXTOKEN 429
#if YYDEBUG
char *yyname[] = {
"end-of-file",0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"BOOLEAN","INTEGER","REAL",
"SENDBUFFERSIZE","RECEIVEBUFFERSIZE","BIG_ENDIAN","LITTLE_ENDIAN","BIND",
"CONFIG_COMMENT","CONTROL_DECL","DATA_DECL","BIND_TYPE","INSTANCE_ID","UNBIND",
"ABORTINST","FLUSHINST","ENCODE","DECODE","OPERATION_AT_INSTANCE",
"PARAMETER_NAME","GIVE","OPERATION_NAME","ACCEPT","ON","EXCEPTION",
"ONCOM_ERROR","ONINTERNAL_ERROR","ONPROTOCOL_ERROR","ONMISSING_OP",
"ONMISSING_ARG","ONNAME_ERROR","ONDONE","ONBAD_OP_ID","INVOKE","RESULT",
"ERROR_KEYWORD","REJECT_KEYWORD","CALL","NAMES","ELROS_BASE_TYPE","BITSTRING",
"ENUMERATED","GENERALSTRING","GRAPHICSTRING","IA5STRING","NULLTYPE",
"NUMERICSTRING","OBJECTIDENTIFIER","OCTETSTRING","PRINTABLESTRING",
"TELETEXSTRING","VIDEOTEXSTRING","VISIBLESTRING","ANY","TYPE_ID","INTERFACE",
"OPTIONAL","DEFAULT_KEYWORD","UNIVERSAL","APPLICATION","CONTEXT","PRIVATE",
"IMPLICIT","IMPLICIT_TAGS","EXPLICIT","EXPLICIT_TAGS","IDAT","IN","OUT","INOUT",
"RECORD","ARRAY","DYNAMICARRAY","UNION_KEYWORD","SET","SEQUENCE","AUTOTAG",
"NOAUTOTAG","FREEABLE","UNFREEABLE","END","END_CONFIG","ELLIPSIS","IDENTIFIER",
"STRING_CONST","CHAR_CONST","BOOLEAN_CONST","INTEGER_CONST","REAL_CONST",
"OBJ_ID_CONST","HEX_CONST","NATNUM_CONST","TYPEDEF_NAME","LPAR","RPAR","LBRACE",
"RBRACE","LANGLE","RANGLE","LBRACK","RBRACK","COMMA","SEMI","EQUALS","DOT",
"AMPER","BANG","TILDE","MINUS","PLUS","STAR","SLASH","PERCENT","COMP","BITOR",
"QUES","COLON","SIZEOF","PTR_OP","INC_OP","DEC_OP","LEFT_OP","RIGHT_OP","LE_OP",
"GE_OP","EQ_OP","NE_OP","AND_OP","OR_OP","MUL_ASSIGN","DIV_ASSIGN","MOD_ASSIGN",
"ADD_ASSIGN","SUB_ASSIGN","LEFT_ASSIGN","RIGHT_ASSIGN","AND_ASSIGN",
"XOR_ASSIGN","OR_ASSIGN","ARROW","TYPE_NAME","TYPEDEF","EXTERN","STATIC","AUTO",
"REGISTER","CHAR","SHORT","INT","LONG","SIGNED","UNSIGNED","FLOAT","DOUBLE",
"CONST","VOLATILE","VOID","STRUCT","UNION","ENUM","STMT_LABEL","CASE","DEFAULT",
"IF","ELSE","SWITCH","WHILE","DO","FOR","GOTO","CONTINUE","BREAK","RETURN",
};
char *yyrule[] = {
"$accept : everything",
"config : config_directive",
"config : config config_directive",
"config_directive : config_type",
"config_directive : config_bind",
"config_directive : SENDBUFFERSIZE NATNUM_CONST",
"config_directive : RECEIVEBUFFERSIZE NATNUM_CONST",
"config_directive : BIG_ENDIAN",
"config_directive : LITTLE_ENDIAN",
"config_directive : CONFIG_COMMENT",
"config_type : BOOLEAN NATNUM_CONST unsigned_type",
"config_type : INTEGER NATNUM_CONST signed_type",
"config_type : REAL NATNUM_CONST NATNUM_CONST real_type",
"unsigned_type : UNSIGNED CHAR",
"unsigned_type : UNSIGNED SHORT",
"unsigned_type : UNSIGNED INT",
"unsigned_type : UNSIGNED long_specs",
"signed_type : CHAR",
"signed_type : SHORT",
"signed_type : INT",
"signed_type : long_specs",
"signed_type : SIGNED signed_type",
"long_specs : long_specs LONG",
"long_specs : LONG",
"real_type : FLOAT",
"real_type : DOUBLE",
"real_type : LONG DOUBLE",
"config_bind : BIND IDENTIFIER",
"ispec : interface_header defs END _lexer_lookup SEMI",
"$$1 :",
"$$2 :",
"interface_header : _lexer_ident INTERFACE $$1 IDENTIFIER $$2 interface_id_opt autotagging_opt e_or_i_tagging_opt free_mod_opt SEMI",
"interface_id_opt :",
"interface_id_opt : LPAR OBJ_ID_CONST COMMA OBJ_ID_CONST RPAR",
"defs :",
"defs : type_defs op_defs",
"defs : type_defs",
"defs : op_defs",
"type_defs : type_def SEMI",
"type_defs : type_defs type_def SEMI",
"type_def : name_defs",
"type_def : rec_def",
"type_def : var_def",
"type_def : array_def",
"type_def : union_def",
"name_defs : _in_names NAMES name_block _out_names",
"name_block : name_decl",
"name_block : name_block COMMA name_decl",
"name_decl : type_spec IDENTIFIER NATNUM_CONST",
"rec_def : rec_def_prefix IDENTIFIER",
"rec_def_prefix : RECORD constr_mod_opt LBRACE _nested rec_list RBRACE",
"rec_list : rec_elem SEMI",
"rec_list : rec_list rec_elem SEMI",
"rec_elem : elros_base_type rec_elem1 indirect_opt IDENTIFIER",
"rec_elem : recun_elem",
"indirect_opt :",
"indirect_opt : LPAR STAR RPAR",
"recun_elem : rec_def_prefix IDENTIFIER",
"recun_elem : array_def_prefix IDENTIFIER LBRACK NATNUM_CONST RBRACK",
"recun_elem : array_def_prefix IDENTIFIER",
"recun_elem : array_constr IDENTIFIER IDENTIFIER LBRACK NATNUM_CONST RBRACK",
"recun_elem : array_constr IDENTIFIER IDENTIFIER",
"recun_elem : union_def_prefix IDENTIFIER",
"recun_elem : IDENTIFIER rec_elem1 indirect_opt IDENTIFIER",
"rec_elem1 :",
"rec_elem1 : LANGLE rec_elem2 free_mod_opt RANGLE",
"rec_elem1 : LANGLE free_mod RANGLE",
"free_mod_opt :",
"free_mod_opt : free_mod",
"free_mod : FREEABLE",
"free_mod : UNFREEABLE",
"rec_elem2 : tag_modifier_list",
"rec_elem2 : attributes",
"rec_elem2 : tag_modifier_list attributes",
"attributes : optional_attributes",
"attributes : optional_attributes default_attributes",
"attributes : default_attributes optional_attributes",
"optional_attributes : OPTIONAL",
"optional_attributes : OPTIONAL constant",
"default_attributes : DEFAULT_KEYWORD constant",
"constant : STRING_CONST",
"constant : CHAR_CONST",
"constant : BOOLEAN_CONST",
"constant : MINUS INTEGER_CONST",
"constant : REAL_CONST",
"constant : MINUS REAL_CONST",
"constant : OBJ_ID_CONST",
"constant : HEX_CONST",
"constant : NATNUM_CONST",
"constant : MINUS NATNUM_CONST",
"constructed_mod : autotagging_opt tag_modifier_list_opt set_or_sequence optional_opt free_mod_opt",
"autotagging_opt :",
"autotagging_opt : AUTOTAG",
"autotagging_opt : NOAUTOTAG",
"tag_modifier_list_opt :",
"tag_modifier_list_opt : tag_modifier_list",
"set_or_sequence :",
"set_or_sequence : SET",
"set_or_sequence : SEQUENCE",
"optional_opt :",
"optional_opt : OPTIONAL",
"e_or_i_tagging_opt :",
"e_or_i_tagging_opt : EXPLICIT_TAGS",
"e_or_i_tagging_opt : IMPLICIT_TAGS",
"type_spec : elros_base_type type_modifier_opt",
"type_modifier_opt :",
"type_modifier_opt : LANGLE tag_modifier_list free_mod_opt RANGLE",
"type_modifier_opt : LANGLE free_mod RANGLE",
"elros_base_type : _lexer_ident ELROS_BASE_TYPE",
"elros_base_type : _lexer_ident TYPE_ID",
"tag_modifier_list : UNIVERSAL NATNUM_CONST implicit_explicit_opt",
"tag_modifier_list : nonuniv_modifier_list",
"nonuniv_modifier_list : nonuniv_modifier",
"nonuniv_modifier_list : tag_modifier_list nonuniv_modifier",
"nonuniv_modifier : nonuniv_class_name NATNUM_CONST implicit_explicit_opt",
"nonuniv_class_name : APPLICATION",
"nonuniv_class_name : CONTEXT",
"nonuniv_class_name : PRIVATE",
"implicit_explicit_opt :",
"implicit_explicit_opt : IMPLICIT",
"implicit_explicit_opt : EXPLICIT",
"var_def : type_spec IDENTIFIER",
"array_def : array_def_prefix IDENTIFIER LBRACK NATNUM_CONST RBRACK",
"array_def : array_def_prefix IDENTIFIER",
"array_def : array_constr IDENTIFIER IDENTIFIER",
"array_def_prefix : array_constr type_spec",
"array_def_prefix : array_constr rec_def_prefix",
"array_def_prefix : array_constr union_def_prefix",
"array_def_prefix : array_constr array_def_prefix LBRACK NATNUM_CONST RBRACK",
"array_def_prefix : array_constr array_def_prefix",
"array_constr : array_d_or_s constr_mod_opt",
"array_d_or_s : ARRAY",
"array_d_or_s : DYNAMICARRAY",
"constr_mod_opt :",
"constr_mod_opt : LANGLE constructed_mod RANGLE",
"union_def : union_def_prefix IDENTIFIER",
"union_def_prefix : UNION_KEYWORD union_spec_opt LBRACE _nested un_list RBRACE",
"union_spec_opt :",
"union_spec_opt : LANGLE autotagging_opt optional_opt free_mod_opt RANGLE",
"un_list : un_elem SEMI",
"un_list : un_list un_elem SEMI",
"un_elem : elros_base_type un_elem1 indirect_opt IDENTIFIER",
"un_elem : recun_elem",
"un_elem1 :",
"un_elem1 : LANGLE tag_modifier_list free_mod_opt RANGLE",
"un_elem1 : LANGLE free_mod RANGLE",
"op_defs : op_def _out_op_defs",
"op_defs : op_defs op_def _out_op_defs",
"op_defs : error _out_op_defs",
"op_defs : op_defs error _out_op_defs op_def _out_op_defs",
"op_def : INVOKE IDENTIFIER _in_op_defs op_value op_param_list SEMI",
"op_def : ERROR_KEYWORD IDENTIFIER _in_op_defs op_value op_param_list SEMI",
"op_def : REJECT_KEYWORD IDENTIFIER _in_op_defs NATNUM_CONST NATNUM_CONST SEMI",
"op_def : res1 IDENTIFIER _in_op_defs SEMI",
"op_def : res1 IDENTIFIER _in_op_defs op_value op_param_list SEMI",
"op_def : CALL IDENTIFIER _in_op_defs op_value inout_list SEMI",
"op_value : INTEGER_CONST",
"op_value : OBJ_ID_CONST",
"op_value : NATNUM_CONST",
"res1 : RESULT",
"op_param_list :",
"op_param_list : param_name_list",
"op_param_list : param_type_list",
"param_name_list : PARAMETER_NAME",
"param_name_list : param_name_list COMMA PARAMETER_NAME",
"param_type_list : type_spec",
"param_type_list : param_type_list COMMA type_spec",
"inout_list :",
"inout_list : modal_names",
"inout_list : modal_types",
"modal_names : mode PARAMETER_NAME",
"modal_names : modal_names COMMA mode PARAMETER_NAME",
"modal_names : modal_names COMMA PARAMETER_NAME",
"modal_types : mode type_spec",
"modal_types : modal_types COMMA mode type_spec",
"modal_types : modal_types COMMA type_spec",
"modal_types : error",
"modal_types : modal_types error COMMA mode type_spec",
"modal_types : modal_types error COMMA type_spec",
"mode : IN",
"mode : OUT",
"mode : INOUT",
"mode : error",
"_in_names :",
"_out_names :",
"_in_op_defs :",
"_out_op_defs :",
"_nested :",
"primary_expr : identifier",
"primary_expr : BOOLEAN_CONST",
"primary_expr : NATNUM_CONST",
"primary_expr : INTEGER_CONST",
"primary_expr : REAL_CONST",
"primary_expr : OBJ_ID_CONST",
"primary_expr : HEX_CONST",
"primary_expr : STRING_CONST",
"primary_expr : CHAR_CONST",
"primary_expr : LPAR expr RPAR",
"primary_expr : INSTANCE_ID",
"postfix_expr : primary_expr",
"postfix_expr : postfix_expr LBRACK expr RBRACK",
"postfix_expr : postfix_expr LPAR RPAR",
"postfix_expr : postfix_expr LPAR argument_expr_list RPAR",
"postfix_expr : postfix_expr _lexer_ident DOT _lexer_lookup identifier",
"postfix_expr : postfix_expr _lexer_ident PTR_OP _lexer_lookup identifier",
"postfix_expr : postfix_expr INC_OP",
"postfix_expr : postfix_expr DEC_OP",
"argument_expr_list : assignment_expr",
"argument_expr_list : argument_expr_list COMMA assignment_expr",
"unary_expr : postfix_expr",
"unary_expr : INC_OP unary_expr",
"unary_expr : DEC_OP unary_expr",
"unary_expr : unary_operator cast_expr",
"unary_expr : SIZEOF unary_expr",
"unary_expr : SIZEOF LPAR type_name RPAR",
"unary_operator : AMPER",
"unary_operator : STAR",
"unary_operator : PLUS",
"unary_operator : MINUS",
"unary_operator : TILDE",
"unary_operator : BANG",
"cast_expr : unary_expr",
"cast_expr : LPAR type_name RPAR cast_expr",
"multiplicative_expr : cast_expr",
"multiplicative_expr : multiplicative_expr STAR cast_expr",
"multiplicative_expr : multiplicative_expr SLASH cast_expr",
"multiplicative_expr : multiplicative_expr PERCENT cast_expr",
"additive_expr : multiplicative_expr",
"additive_expr : additive_expr PLUS multiplicative_expr",
"additive_expr : additive_expr MINUS multiplicative_expr",
"shift_expr : additive_expr",
"shift_expr : shift_expr LEFT_OP additive_expr",
"shift_expr : shift_expr RIGHT_OP additive_expr",
"relational_expr : shift_expr",
"relational_expr : relational_expr LANGLE shift_expr",
"relational_expr : relational_expr RANGLE shift_expr",
"relational_expr : relational_expr LE_OP shift_expr",
"relational_expr : relational_expr GE_OP shift_expr",
"equality_expr : relational_expr",
"equality_expr : equality_expr EQ_OP relational_expr",
"equality_expr : equality_expr NE_OP relational_expr",
"and_expr : equality_expr",
"and_expr : and_expr AMPER equality_expr",
"exclusive_or_expr : and_expr",
"exclusive_or_expr : exclusive_or_expr COMP and_expr",
"inclusive_or_expr : exclusive_or_expr",
"inclusive_or_expr : inclusive_or_expr BITOR exclusive_or_expr",
"log_and_expr : inclusive_or_expr",
"log_and_expr : log_and_expr AND_OP inclusive_or_expr",
"log_or_expr : log_and_expr",
"log_or_expr : log_or_expr OR_OP log_and_expr",
"cond_expr : log_or_expr",
"cond_expr : log_or_expr _labels_off QUES expr _labels_on COLON cond_expr",
"assignment_expr : cond_expr",
"assignment_expr : unary_expr assignment_operator assignment_expr",
"assignment_operator : EQUALS",
"assignment_operator : MUL_ASSIGN",
"assignment_operator : DIV_ASSIGN",
"assignment_operator : MOD_ASSIGN",
"assignment_operator : ADD_ASSIGN",
"assignment_operator : SUB_ASSIGN",
"assignment_operator : LEFT_ASSIGN",
"assignment_operator : RIGHT_ASSIGN",
"assignment_operator : AND_ASSIGN",
"assignment_operator : XOR_ASSIGN",
"assignment_operator : OR_ASSIGN",
"expr : assignment_expr",
"expr : expr COMMA assignment_expr",
"constant_expr : cond_expr",
"declaration : decl_specs _lexer_lookup SEMI",
"declaration : decl_specs init_declarator_list SEMI",
"decl_specs : lone_type_spec",
"decl_specs : lone_type_spec qs_specs",
"decl_specs : qs_specs lone_type_spec",
"decl_specs : qs_specs lone_type_spec qs_specs",
"decl_specs : base_type_spec",
"decl_specs : base_type_spec qs_specs",
"decl_specs : qs_specs base_type_spec",
"decl_specs : qs_specs base_type_spec qs_specs",
"decl_specs : base_type_spec qsm_specs",
"decl_specs : qsm_specs base_type_spec",
"decl_specs : qsm_specs base_type_spec qsm_specs",
"decl_specs : qsm_specs",
"qs_specs : type_qual",
"qs_specs : storage_spec",
"qs_specs : qs_specs type_qual",
"qs_specs : qs_specs storage_spec",
"qsm_specs : multi_type_spec",
"qsm_specs : qs_specs multi_type_spec",
"qsm_specs : qsm_specs type_qual",
"qsm_specs : qsm_specs storage_spec",
"qsm_specs : qsm_specs multi_type_spec",
"lone_type_spec : _lexer_ident VOID",
"lone_type_spec : _lexer_ident record_specifier",
"lone_type_spec : _lexer_ident enum_specifier",
"lone_type_spec : _lexer_ident TYPEDEF_NAME",
"lone_type_spec : elros_type_spec",
"base_type_spec : _lexer_ident CHAR",
"base_type_spec : _lexer_ident INT",
"base_type_spec : _lexer_ident FLOAT",
"base_type_spec : _lexer_ident DOUBLE",
"multi_type_spec : _lexer_ident SHORT",
"multi_type_spec : _lexer_ident LONG",
"multi_type_spec : _lexer_ident UNSIGNED",
"multi_type_spec : _lexer_ident SIGNED",
"type_qual : CONST",
"type_qual : VOLATILE",
"storage_spec : TYPEDEF",
"storage_spec : EXTERN",
"storage_spec : STATIC",
"storage_spec : AUTO",
"storage_spec : REGISTER",
"record_specifier : rec_spec_start rec_spec_body",
"record_specifier : rec_spec_start identifier rec_spec_body",
"record_specifier : rec_spec_start identifier",
"rec_spec_start : _lexer_ident record",
"rec_spec_body : rsb_start LBRACE struct_decls rsb_finish RBRACE",
"rsb_start : _lexer_lookup _labels_off",
"rsb_finish : _lexer_ident _labels_on",
"record : STRUCT",
"record : UNION",
"struct_decls : struct_declaration",
"struct_decls : struct_decls struct_declaration",
"struct_declaration : full_type_spec _lexer_ident struct_declarator_list SEMI",
"struct_declarator_list : struct_declarator",
"struct_declarator_list : struct_declarator_list _lexer_ident COMMA struct_declarator",
"struct_declarator : declarator",
"struct_declarator : COLON constant_expr",
"struct_declarator : declarator COLON constant_expr",
"enum_specifier : _lexer_ident ENUM LBRACE enumerator_list _lexer_ident RBRACE",
"enum_specifier : _lexer_ident ENUM identifier LBRACE enumerator_list _lexer_ident RBRACE",
"enum_specifier : _lexer_ident ENUM identifier",
"enumerator_list : enumerator",
"enumerator_list : enumerator_list _lexer_ident COMMA enumerator",
"enumerator : identifier",
"enumerator : identifier _lexer_lookup EQUALS constant_expr",
"init_declarator_list : init_declarator",
"init_declarator_list : init_declarator_list _lexer_ident COMMA init_declarator",
"init_declarator : declarator",
"init_declarator : declarator EQUALS initializer",
"declarator : declarator2",
"declarator : pointer declarator2",
"declarator2 : identifier _lexer_lookup",
"declarator2 : LPAR declarator RPAR",
"declarator2 : declarator2 LBRACK RBRACK",
"declarator2 : declarator2 LBRACK constant_expr RBRACK",
"declarator2 : declarator2 act_decl_scope_open LPAR RPAR",
"declarator2 : declarator2 act_decl_scope_open LPAR arg_type_list RPAR",
"declarator2 : declarator2 act_decl_scope_open LPAR arg_identifier_list RPAR",
"pointer : STAR",
"pointer : STAR pointer",
"pointer : STAR q_specs",
"pointer : STAR q_specs pointer",
"full_type_spec : lone_type_spec",
"full_type_spec : lone_type_spec q_specs",
"full_type_spec : q_specs lone_type_spec",
"full_type_spec : q_specs lone_type_spec q_specs",
"full_type_spec : base_type_spec",
"full_type_spec : base_type_spec q_specs",
"full_type_spec : q_specs base_type_spec",
"full_type_spec : q_specs base_type_spec q_specs",
"full_type_spec : base_type_spec qm_specs",
"full_type_spec : qm_specs base_type_spec",
"full_type_spec : qm_specs base_type_spec qm_specs",
"full_type_spec : qm_specs",
"q_specs : type_qual",
"q_specs : q_specs type_qual",
"qm_specs : multi_type_spec",
"qm_specs : q_specs multi_type_spec",
"qm_specs : qm_specs type_qual",
"qm_specs : qm_specs multi_type_spec",
"arg_identifier_list : identifier_list",
"arg_identifier_list : identifier_list COMMA ELLIPSIS",
"identifier_list : identifier",
"identifier_list : identifier_list COMMA identifier",
"arg_type_list : arg_list",
"arg_type_list : arg_list _lexer_lookup COMMA ELLIPSIS",
"arg_list : arg_declaration",
"arg_list : arg_list _lexer_lookup COMMA arg_declaration",
"arg_declaration : decl_specs _lexer_lookup declarator",
"arg_declaration : decl_specs _lexer_lookup abstract_declarator",
"arg_declaration : decl_specs _lexer_lookup",
"type_name : full_type_spec _lexer_lookup",
"type_name : full_type_spec _lexer_lookup abstract_declarator",
"abstract_declarator : pointer",
"abstract_declarator : abstract_declarator2",
"abstract_declarator : pointer abstract_declarator2",
"abstract_declarator2 : LPAR abstract_declarator _lexer_lookup RPAR",
"abstract_declarator2 : LPAR _lexer_lookup RPAR",
"abstract_declarator2 : LPAR arg_type_list _lexer_lookup RPAR",
"abstract_declarator2 : _lexer_lookup LBRACK RBRACK",
"abstract_declarator2 : _lexer_lookup LBRACK constant_expr RBRACK",
"abstract_declarator2 : abstract_declarator2 LBRACK RBRACK",
"abstract_declarator2 : abstract_declarator2 LBRACK constant_expr RBRACK",
"abstract_declarator2 : abstract_declarator2 LPAR RPAR",
"abstract_declarator2 : abstract_declarator2 LPAR arg_type_list RPAR",
"initializer : assignment_expr",
"initializer : LBRACE initializer_list RBRACE",
"initializer : LBRACE initializer_list COMMA RBRACE",
"initializer_list : initializer",
"initializer_list : initializer_list COMMA initializer",
"statement : labeled_statement",
"statement : compound_statement",
"statement : expression_statement",
"statement : selection_statement",
"statement : iteration_statement",
"statement : jump_statement",
"statement : elros_statement",
"$$3 :",
"labeled_statement : STMT_LABEL $$3 statement",
"$$4 :",
"labeled_statement : _labels_off CASE constant_expr _labels_on COLON $$4 statement",
"$$5 :",
"labeled_statement : _labels_off DEFAULT _labels_on COLON $$5 statement",
"compound_statement : compound_statement1 _scope_close RBRACE",
"compound_statement : compound_statement1 statement_list _scope_close RBRACE",
"compound_statement : compound_statement1 declaration_list _scope_close RBRACE",
"compound_statement : compound_statement1 declaration_list statement_list _scope_close RBRACE",
"compound_statement1 : _scope_open LBRACE",
"declaration_list : declaration",
"declaration_list : declaration_list declaration",
"declaration_list : error",
"declaration_list : declaration_list error",
"statement_list : statement",
"statement_list : statement_list statement",
"expression_statement : SEMI",
"expression_statement : expr SEMI",
"selection_statement : selection_statement1 statement",
"selection_statement : selection_statement1 statement ELSE statement",
"$$6 :",
"selection_statement : SWITCH LPAR expr RPAR $$6 statement",
"selection_statement1 : IF LPAR expr RPAR",
"$$7 :",
"iteration_statement : WHILE LPAR expr RPAR $$7 statement",
"$$8 :",
"iteration_statement : DO $$8 statement WHILE LPAR expr RPAR SEMI",
"$$9 :",
"iteration_statement : FOR LPAR SEMI SEMI RPAR $$9 statement",
"$$10 :",
"iteration_statement : FOR LPAR SEMI SEMI expr RPAR $$10 statement",
"$$11 :",
"iteration_statement : FOR LPAR SEMI expr SEMI RPAR $$11 statement",
"$$12 :",
"iteration_statement : FOR LPAR SEMI expr SEMI expr RPAR $$12 statement",
"$$13 :",
"iteration_statement : FOR LPAR expr SEMI SEMI RPAR $$13 statement",
"$$14 :",
"iteration_statement : FOR LPAR expr SEMI SEMI expr RPAR $$14 statement",
"$$15 :",
"iteration_statement : FOR LPAR expr SEMI expr SEMI RPAR $$15 statement",
"$$16 :",
"iteration_statement : FOR LPAR expr SEMI expr SEMI expr RPAR $$16 statement",
"jump_statement : _lexer_ident GOTO identifier _lexer_lookup SEMI",
"jump_statement : CONTINUE SEMI",
"jump_statement : BREAK SEMI",
"jump_statement : RETURN SEMI",
"jump_statement : RETURN expr SEMI",
"everything : config _scope_open _do_config END_CONFIG file _scope_close",
"file : external_definition",
"file : file external_definition",
"external_definition : ispec",
"external_definition : function_definition _scope_close",
"external_definition : declaration",
"function_definition : function_header function_body",
"function_header : declarator",
"function_header : decl_specs declarator",
"function_body : _labels_on compound_statement _labels_off",
"function_body : declaration_list _labels_on compound_statement _labels_off",
"identifier : IDENTIFIER",
"_lexer_ident :",
"_lexer_lookup :",
"act_decl_scope_open :",
"_scope_open :",
"_scope_close :",
"_do_config :",
"_labels_off :",
"_labels_on :",
"elros_type_spec : elros_base_type",
"elros_type_spec : CONTROL_DECL",
"elros_type_spec : DATA_DECL",
"elros_statement : bind_stmt",
"elros_statement : unbind_stmt",
"elros_statement : abortinst_stmt",
"elros_statement : flushinst_stmt",
"elros_statement : encode_stmt",
"elros_statement : decode_stmt",
"elros_statement : call_stmt",
"elros_statement : give_stmt",
"elros_statement : accept_stmt",
"elros_statement : give_op_stmt",
"elros_statement : ontype_stmt",
"elros_statement : type_stmt",
"bind_stmt : bind_stmt1 SEMI",
"bind_stmt : bind_stmt1 except2",
"$$17 :",
"bind_stmt1 : BIND_TYPE LPAR INSTANCE_ID $$17 COMMA _in_arg lvalues_or_commasp _out_arg RPAR",
"unbind_stmt : unbind_stmt1 SEMI",
"unbind_stmt : unbind_stmt1 except2",
"unbind_stmt1 : UNBIND LPAR INSTANCE_ID RPAR",
"abortinst_stmt : abortinst_stmt1 SEMI",
"abortinst_stmt1 : ABORTINST LPAR INSTANCE_ID RPAR",
"flushinst_stmt : flushinst_stmt1 SEMI",
"flushinst_stmt : flushinst_stmt1 except2",
"flushinst_stmt1 : FLUSHINST LPAR INSTANCE_ID RPAR",
"encode_stmt : encode_stmt2 statement",
"encode_stmt : encode_stmt2 statement except2",
"encode_stmt2 : ENCODE INSTANCE_ID",
"type_stmt : exp_with_optlen1 _lexer_elrostype arrow_phrase _lexer_lookup SEMI",
"arrow_phrase : _changeable_off ARROW elros_base_type _changeable_on",
"decode_stmt : decode_stmt4",
"decode_stmt : decode_stmt4 except2",
"decode_stmt4 : decode_stmt3 ontype_stmts _scope_close RBRACE",
"decode_stmt3 : decode_stmt2 _scope_open LBRACE",
"decode_stmt2 : DECODE INSTANCE_ID",
"ontype_stmts : ontype_stmt",
"ontype_stmts : ontype_stmts ontype_stmt",
"$$18 :",
"ontype_stmt : _lexer_elrostype _changeable_off ON elros_base_type _changeable_on _lexer_lookup ARROW LPAR exp_with_optlen1 RPAR $$18 statement",
"call_stmt : call_stmt1 SEMI",
"call_stmt : call_stmt1 except2",
"$$19 :",
"$$20 :",
"call_stmt1 : OPERATION_AT_INSTANCE bracketed_expr_opt $$19 _in_arg LPAR argument_list _out_arg $$20 RPAR",
"give_stmt : give2 statement _scope_close",
"give_stmt : give2 statement _scope_close except2",
"give2 : GIVE INSTANCE_ID",
"$$21 :",
"give_op_stmt : OPERATION_NAME bracketed_expr_opt $$21 _in_arg LPAR argument_list _out_arg _scope_close RPAR SEMI",
"bracketed_expr_opt :",
"bracketed_expr_opt : _lexer_lookup LBRACK assignment_expr _lexer_inst RBRACK",
"bracketed_expr_opt : _lexer_lookup LBRACK assignment_expr COMMA _lexer_inst RBRACK",
"bracketed_expr_opt : _lexer_lookup LBRACK assignment_expr COMMA assignment_expr _lexer_inst RBRACK",
"bracketed_expr_opt : _lexer_lookup LBRACK COMMA assignment_expr _lexer_inst RBRACK",
"$$22 :",
"$$23 :",
"except2 : EXCEPTION $$22 _scope_open LBRACE $$23 on_stmts _scope_close RBRACE",
"on_stmts : on_stmt",
"on_stmts : on_stmts on_stmt",
"on_stmt : oncom statement",
"on_stmt : onintern_err statement",
"on_stmt : onprotocol_err statement",
"on_stmt : onmis_op statement",
"on_stmt : onbad_op_id statement",
"on_stmt : onmis_arg statement",
"on_stmt : onnam1 statement",
"on_stmt : ondon1 statement",
"oncom : ONCOM_ERROR LPAR IDENTIFIER exception_stmt_arg_opt RPAR",
"onintern_err : ONINTERNAL_ERROR LPAR IDENTIFIER exception_stmt_arg_opt RPAR",
"onprotocol_err : ONPROTOCOL_ERROR LPAR IDENTIFIER exception_stmt_arg_opt RPAR",
"exception_stmt_arg_opt :",
"exception_stmt_arg_opt : COMMA IDENTIFIER",
"onmis_op : ONMISSING_OP LPAR IDENTIFIER RPAR",
"onbad_op_id : ONBAD_OP_ID LPAR IDENTIFIER RPAR",
"onmis_arg : ONMISSING_ARG LPAR IDENTIFIER COMMA IDENTIFIER RPAR",
"onnam1 : ONNAME_ERROR LPAR IDENTIFIER COMMA IDENTIFIER RPAR",
"ondon1 : ONDONE",
"accept_stmt : accept1 _scope_close",
"accept_stmt : accept1 _scope_close except2",
"$$24 :",
"accept1 : accept2 onop_stmts _scope_close $$24 RBRACE",
"accept2 : ACCEPT bracketed_expr_opt INSTANCE_ID _scope_open LBRACE",
"onop_stmts : onop_stmt",
"onop_stmts : onop_stmts onop_stmt",
"$$25 :",
"$$26 :",
"onop_stmt : ON OPERATION_NAME $$25 _in_arg LPAR argument_list _out_arg _scope_close RPAR $$26 statement",
"argument_list : positional_arg_list",
"argument_list : named_arg_list",
"argument_list : ellipsis_arg_list",
"argument_list : empty_arg_list",
"empty_arg_list :",
"empty_arg_list : empty_arg_list COMMA",
"ellipsis_arg_list : ELLIPSIS",
"ellipsis_arg_list : empty_arg_list COMMA ELLIPSIS",
"ellipsis_arg_list : ellipsis_arg_list COMMA ELLIPSIS",
"ellipsis_arg_list : ellipsis_arg_list COMMA",
"positional_arg_list : positional_arg",
"positional_arg_list : empty_arg_list COMMA positional_arg",
"positional_arg_list : ellipsis_arg_list COMMA positional_arg",
"positional_arg_list : positional_arg_list COMMA",
"positional_arg_list : positional_arg_list COMMA ELLIPSIS",
"positional_arg_list : positional_arg_list COMMA positional_arg",
"named_arg_list : named_arg",
"named_arg_list : empty_arg_list COMMA named_arg",
"named_arg_list : ellipsis_arg_list COMMA named_arg",
"named_arg_list : named_arg_list COMMA",
"named_arg_list : named_arg_list COMMA ELLIPSIS",
"named_arg_list : named_arg_list COMMA named_arg",
"named_arg : PARAMETER_NAME COLON exp_with_optlen_1_or_2",
"positional_arg : exp_with_optlen_1_or_2",
"exp_with_optlen_1_or_2 : cond_expr len_2exp_opt",
"exp_with_optlen_1_or_2 : cond_expr len_1exp_opt",
"exp_with_optlen1 : cond_expr len_1exp_opt",
"len_1exp_opt :",
"len_1exp_opt : LBRACE lvaluep RBRACE",
"len_2exp_opt : LBRACE lvaluep COMMA lvaluep RBRACE",
"lvaluep : assignment_expr",
"lvalues_or_commasp : lvalues_or_commas",
"lvalues_or_commas : assignment_expr",
"lvalues_or_commas : COMMA",
"lvalues_or_commas : lvalues_or_commas COMMA",
"lvalues_or_commas : lvalues_or_commas COMMA assignment_expr",
"_in_arg :",
"_out_arg :",
"_changeable_on :",
"_changeable_off :",
"_lexer_elrostype :",
"_lexer_inst :",
};
#endif
#include <libc.h> 
#define yyclearin (yychar=(-1))
#define yyerrok (yyerrflag=0)
#ifndef YYSTACKSIZE
#ifdef YYMAXDEPTH
#define YYSTACKSIZE YYMAXDEPTH
#else
#define YYSTACKSIZE 300
#endif
#endif
extern char yytext[];
int yydebug;
int yynerrs;
int yyerrflag;
int yychar;
short *yyssp;
YYSTYPE *yyvsp;
YYSTYPE yyval;
YYSTYPE yylval;
#define yystacksize YYSTACKSIZE
short yyss[YYSTACKSIZE];
YYSTYPE yyvs[YYSTACKSIZE];

#ifndef ELROS_DEBUG
#undef YYDEBUG
#endif

main(int argc,char *argv[]) 
{
   init(argv); 
   yyparse();
   printf(" Parse Completed.\n");
   fclose(prim);
   argc = 0;
   if (global.error_count > 0)
      exit(1);
   return(0);
}

void yywhere()
{
   fprintf(stderr,
	   "(epp) \"%s\", line %d near \"%s\": ",
	   linedir_file,
	   linedir_line,
	   yytext);
}

void yyerror(char *s)
{
   yywhere();
   fprintf(stderr," %s\n",s);
   if (strncmp(s,"warning",7)) /* if doesn't start with "warning" */
      global.error_count++;
}

void report_error(char *label, char *fmt, ...)
{
   va_list ap; /* points to each unnamed arg in turn */
   char *p, *sval;
   int ival;
   double dval;

   yywhere();
   fprintf(stderr,"\n      (%s) ",label);
   va_start(ap, fmt); /* make ap point to 1st arg */
   for (p = fmt; *p; p++) {
      if (*p != '%') {
	 putc(*p,stderr);
	 continue;
      }
      switch (*++p) {
      case 'd':
	 ival = va_arg(ap, int);
	 fprintf(stderr,"%d", ival);
	 break;
      case 'f':
	 dval = va_arg(ap, double);
	 fprintf(stderr,"%f", dval);
	 break;
      case 's':
	 for (sval = va_arg(ap, char *); *sval; sval++)
	    putc(*sval,stderr);
	 break;
      default:
	 putc(*p,stderr);
	 break;
      }
   }
   va_end(ap); /* clean up */
   fprintf(stderr,"\n");
   if (strncmp(fmt,"warning",7)) /* if doesn't start with "warning" */
      global.error_count++;
}

void nomem ()
{
  fprintf(stderr,"(epp) internal error:  ** Out of memory ** \n\n");
  exit(1);
}

void init(char *argv[])
{
   int  i;

   Keyword  *tmpkey;


   /* initialize globals */

   scopedepth    = 0;
   lookup        = 0;

   oldyyin       = NULL;

   in_interface_spec = FALSE;
   no_lex_echo       = FALSE;

   no_labels_now = 1;   /* no labels until inside a function body.
			 * Note this is an int, not a boolean - it gets
			 * other values than 0 or 1, possibly (nested 
			 * structs, for example) */

   IdentMode = MODE_LOOKUP;
   changeable_mode = TRUE;
   in_config_file = TRUE;

   crack_execute_line(argv);

   /* allocate the global lists */

   interface_list_ptr    = new interface_list;
   global.anon_interfptr = new interface_element("__RO_anoninterf");
   instance_list_ptr     = new instance_list;
   active_instances_ptr  = new active_instance_list;
   primitive_list_ptr    = new primitive_list;
   printer_list_ptr      = new printer_list;
   Symbol_Table		 = new symbol_table;

   /* set up the keyword table by hashing all the 
     "source" tables into Keyword_Table */

   Keyword_Table = new fast_hash_table(KEYTABSIZE);

   for (i=0; i<ANSI_KEYTABSIZE; i++) {
     
     tmpkey        = new Keyword;
     tmpkey->kind  = KEY_ANSI;
     tmpkey->name  = ansi_keyword_table[i].name;
     tmpkey->token = ansi_keyword_table[i].token;

     if (! Keyword_Table->add(tmpkey)) {
       BUG_CHECK("Keyword_Table wrong size for perfect hash.");
       exit(1);
     }
   }
   for (i=0; i<CONFIG_KEYTABSIZE; i++) {

     tmpkey        = new Keyword;
     tmpkey->kind  = KEY_CONFIG;
     tmpkey->name  = config_keyword_table[i].name;
     tmpkey->token = config_keyword_table[i].token;

     if (! Keyword_Table->add(tmpkey)) {
       BUG_CHECK("Keyword_Table wrong size for perfect hash.");
       exit(1);
     }
   }
   for (i=0; i<PRIMITIVE_KEYTABSIZE; i++) {

     tmpkey        = new Keyword;
     tmpkey->kind  = KEY_PRIM;
     tmpkey->name  = prim_table[i].pw_name;
     tmpkey->token = prim_table[i].pw_yylex;
     tmpkey->akind = prim_table[i].pw_primitive;

     if (! Keyword_Table->add(tmpkey)) {
       BUG_CHECK("Keyword_Table wrong size for perfect hash.");
       exit(1);
     }
   }
    for (i=0; i<ELROS_KEYTABSIZE; i++) {

     tmpkey        = new Keyword;
     tmpkey->kind  = KEY_ELROS;
     tmpkey->name  = keyword_table[i].kw_name;
     tmpkey->token = keyword_table[i].kw_yylex;
     tmpkey->lflag = keyword_table[i].lang_flg;

     if (! Keyword_Table->add(tmpkey)) {
       BUG_CHECK("Keyword_Table wrong size for perfect hash.");
       exit(1);
     }
   }
}


void crack_execute_line(char *argv[])
{
   int inlen = strlen(argv[1]);

   /* open argv[1], the input file:  ..e file */

   CREATE_SP(input_file,char,inlen+1)
   strcpy(input_file,argv[1]);
   if ((yyin = fopen(input_file,"r")) == NULL) {
      fprintf(stderr,"*** couldn't open file: %s\n",input_file);
      exit(1);
   }

   /* open the generated code file produced by the preprocessor:  ..c */

   CREATE_SP(output_file,char,inlen+1)
   strcpy(output_file,argv[1]);
   output_file[inlen-1] = 'h';
   if ((prim = fopen(output_file,"w")) == NULL) {
      fprintf(stderr,
		   "*** couldn't open output file:%s\n",output_file);
      exit(1);
   }

   /* open the primary types output file produced by the preprocessor: ..h */

   CREATE_SP(output_file2,char,inlen+1)
   strcpy(output_file2,argv[1]);
   output_file2[inlen-1] = 'c';
   if ((out = fopen(output_file2,"w")) == NULL) {
      fprintf(stderr,"*** couldn't open temporary output file: %s\n",output_file2);
      exit(1);
   }

   /* open the typedef file produced by the preprocessor:  ..t */

   CREATE_SP(types_file,char,inlen+1)
   strcpy(types_file,argv[1]);
   types_file[inlen-1] = 't';
   if ((types = fopen(types_file,"w")) == NULL) {
      fprintf(stderr,"*** couldn't open temporary output file: %s\n",types_file);
      exit(1);
   }


   /* prepare to process parameters.dat file */

   /* open argv[2], the parameters.dat file */

   CREATE_SP(parameters_dat_file,char,strlen(argv[2])+1)
   strcpy(parameters_dat_file,argv[2]);
   oldyyin = yyin;
   oldinput_file = input_file;
   input_file = (char*)malloc(strlen(parameters_dat_file)+1);
   strcpy(input_file,parameters_dat_file);
   if ((yyin = fopen(parameters_dat_file,"r")) == NULL) {
      fprintf(stderr,"*** couldn't open file: %s\n",
		      parameters_dat_file);
      exit(1);
   }

}

static int start_expbuf = 0;   /* shared by dump_expbuf() and clear_expbuf() */

void dump_expbuf(int end)
{
   char temp;
   if (last_bufoffset == end) {
      fprintf(out,"%s", expbuf+start_expbuf);
      last_bufoffset = 0;
      start_expbuf = 0;
      *(expbuf) = '\0';
   }
   else {   				/* don't print the lookahead */
      temp = *(expbuf+last_bufoffset);
      *(expbuf+last_bufoffset) = '\0';
      fprintf(out,"%s", expbuf+start_expbuf);
      *(expbuf+last_bufoffset) = temp;
      start_expbuf = last_bufoffset;
   }
}

void clear_expbuf(int end)
{
   if (last_bufoffset == end) {
      last_bufoffset = 0;
      start_expbuf = 0;
      *(expbuf) = '\0';
   }
   else {   				/* don't print the lookahead */
      start_expbuf = last_bufoffset;
   }
}

void gen_startsend(FILE *out, char *stmt, instance_element* inst_ele)
{
  gen_activateinst_log(out,stmt,inst_ele);
  INDENT(out,1);
  FPRINTF(out,"if (%s->sendPPDU_start(%s))\n",
	       GETINSTNAME,
	       GETINSTNAME);
  gen_exception_goto(out,2,GETINSTNAME,
		     GETEXCEPTIONLAB);
}

void gen_activateinst_log(FILE *out, char *stmt, instance_element* inst_ele)
{

  active_instance_element *active_inst;
  char *oklab, *errlab;

  oklab = gen_exception_label();
  errlab = gen_exception_label();
  active_inst = new active_instance_element(
		   inst_ele, 
		   errlab,
		   oklab);
  active_instances_ptr->insert(active_inst);
  FPRINTF(out,"\n{   /* %s statement */\n",stmt);
  INDENT(out,1);
  FPRINTF(out,"P(%s->exclusion);\n",GETINSTNAME);
}

void gen_startrec(FILE *out, 
		  char *stmt, 
		  char *message, 
		  instance_element *inst_ele)
{

  active_instance_element *active_inst;
  char *oklab, *errlab;

  oklab = gen_exception_label();
  errlab = gen_exception_label();

  FPRINTF(out,"\n{   /* %s statement */\n",stmt);
  active_inst = new active_instance_element(
		   inst_ele, 
		   errlab,
		   oklab);
  active_instances_ptr->insert(active_inst);
  INDENT(out,1);
  FPRINTF(out,"__RO_int32 __RO_type;\n");
  INDENT(out,1);
  FPRINTF(out,"unsigned long __RO_length;\n\n");
  INDENT(out,1);
  FPRINTF(out,"P(%s->exclusion);\n",GETINSTNAME);
  if (global.gen_log) 
     gen_log_statement(out,1,message,GETINSTNAME,GETEXCEPTIONLAB);
  INDENT(out,1);
  FPRINTF(out,"if (%s->getP_start(%s))\n",
	       GETINSTNAME,
	       GETINSTNAME);
  gen_exception_goto(out,2,GETINSTNAME,
		     GETEXCEPTIONLAB);
  gen_getheader(out,1,GETEXCEPTIONLAB,GETINSTNAME);
  INDENT(out,1);
  FPRINTF(out,"switch (__RO_type) {\n");
}

void do_ontype_stmt(boolean is_typeid,
                    type_element *teptr,
                    char *val,
		    char *len)
{
   if (!is_typeid) { /* is ELROS_BASE_TYPE */
      teptr->set_interf(global.anon_interfptr);
      global.anon_interfptr->constant_gen->add_encoding(teptr);
   }
   teptr->gen_leadingTAG_cases(out,1);
   FPRINTF(out,"{   /* ontype_clause */\n");
   if (global.gen_log)
      gen_log_statement(out,1,"DECODING ",GETINSTNAME,GETEXCEPTIONLAB);
   teptr->gen_getP(out,
		   1,
		   val,
		   len,
		   GETEXCEPTIONLAB,
		   GETINSTNAME);
   INDENT(out,1);
   FPRINTF(out,"if (%s->getP_end(%s))\n",
		     GETINSTNAME,
		     GETINSTNAME);
   gen_exception_goto(out,2,GETINSTNAME,
		     GETEXCEPTIONLAB);
   INDENT(out,1);
   FPRINTF(out,"V(%s->exclusion);\n",GETINSTNAME);
}

void do_decode_stmt4(boolean iswrapped)
{
   if (iswrapped) {
      /* OK to generate a default case--none already generated */
      INDENT(out,1);
      FPRINTF(out,"default:\n");
      INDENT(out,2);
      FPRINTF(out,"{__RO_RAISE_RUNTIME((%s),0xffffffff,%s);}\n",
      GETINSTNAME,GETEXCEPTIONLAB); /* need new message like __ROx_ASN_EXPECTKNOWNTYPE */
    }
    INDENT(out,1);
    FPRINTF(out,"} /* End of switch(__RO_type) for ON CLAUSES*/\n");
    if (global.gen_log)
      gen_log_statement(out,1,"EXITING decode statement",GETINSTNAME,GETEXCEPTIONLAB);
}

void do_call_stmt1_a(operation_element* oeptr)
{
   parameter_list *pp;

   act_operation(oeptr);
   if((pp=oeptr->get_params_ptr()) && pp->get_pos_or_named())
       global.kind_of_args = pp->get_pos_or_named();
   else
       global.kind_of_args = TYPE_PARAM_LIST;
}

void do_call_stmt1_b(operation_element* oeptr,
		     instance_element* insteptr,
		     argument_list *callarglist,
		     char *string1,
		     char *string2)
{
  argument_list *ins = NULL, *outs = NULL;

  if (oeptr->get_kind_op() != KIND_CALL)
     report_error("error 24",
		  "\"%s\" is not a Call operation so that \"@\"\n\tnotation may not be used.",
		  oeptr->get_name());
  else {
     gen_startsend(out, 
		   "call",
		   insteptr);

     oeptr->process_call_arguments(callarglist, ins,outs);
     oeptr->get_inv_part()->gen_give(out,
				  string1,
				  string2,
				  ins,
				  GETEXCEPTIONLAB,
				  TRUE);
     fprintf(out,"\n/* middle of call stmt */\n");
     gen_accept_start(out,
		      insteptr,
		      string1,
		      string2,
		      TRUE);
     oeptr->get_res_part()->gen_accept_on(out,
				       outs,
				       callarglist->get_ellipsed(),
				       GETEXCEPTIONLAB,
				       TRUE);
     INDENT(out,3);
     FPRINTF(out,"break;\n");
     INDENT(out,2);
     FPRINTF(out,"} /* End of on_operation */\n");
     gen_accept_end(out,
		    oeptr->get_res_part()->
			      get_internal_number(),
		    GETEXCEPTIONLAB);
     FPRINTF(out,"\n}   /* End of accept part of call statement */\n\n");
  }
}

void do_give_stmt()
{
  fprintf(out,"\n");
  INDENT(out,1);
  FPRINTF(out,"P(%s->exclusion);\n",GETINSTNAME);
  INDENT(out,1);
  FPRINTF(out,"if (%s->sendPPDU_end(%s))\n",
	       GETINSTNAME,GETINSTNAME);
  gen_exception_goto(out,2,GETINSTNAME,GETEXCEPTIONLAB);
  if (global.gen_log)
     gen_log_statement(out,1,"EXITING give statement",
		       GETINSTNAME,GETEXCEPTIONLAB);
  INDENT(out,1);
  FPRINTF(out,"V(%s->exclusion);\n",GETINSTNAME);
  gen_exception_header(out,
		       GETEXCEPTIONLAB,
		       GETOKLAB);
  gen_default_handlers(out,MASK_ZERO,GETOKLAB);
}

void do_give2(symbol_element *septr, instance_element *iptr)
{
  act_give_accept(septr);
  gen_startsend(out, "give", iptr);
  if (global.gen_log)
       gen_log_statement(out, 
                         1,
                         "ENTERING give statement",
			 GETINSTNAME,
			 GETEXCEPTIONLAB);
  INDENT(out,1);
  FPRINTF(out,"V(%s->exclusion);\n",GETINSTNAME);
}

void do_ispec(char *iname) 
{
   extern void END_Interf();

   END_Interf();
   in_interface_spec = FALSE;
   freeable_types_ptr->gen_free_routines(out);
   ieptr->optable_gen->generate(out);
   ieptr->constant_gen->generate(out);
   if (!incomplete_types_ptr->isempty()) {
      link *l;
      type_element *teptr;
      incomplete_types_ptr->reset();
      while (incomplete_types_ptr->next(l)) {
        teptr = (type_element *)l;
        fprintf(stderr,"Forward referenced type not defined: %s",teptr->get_name());
      }
   }
   forward_types_ptr->gen_encode_decode_routines(out);

/* Should these type_element lists be freed?  We get new lists for next
   interface... */

   fprintf(out,"\n\n/* end of Interface %s */\n\n",iname); 
   *expbuf = '\0';
   last_bufoffset = 0;
}

char * do_interface_header(char* string, 
			   boolean auto_present, 
			   boolean autotagged, 
			   boolean explicit_tagging,
			   boolean free_flag)
{
   link *link_ptr;

   if (interface_list_ptr->search(string,link_ptr))
      fprintf(out,"*** Interface '%s' was previously specified\n",
	     ((symbol_element*)link_ptr)->get_name());
   else {
      ieptr = new interface_element(string);
      interface_list_ptr->append(ieptr);
      fprintf(out,"\n\n/* Interface %s */\n\n",string); 
   }
   global.tagging = TRUE; /* autotag by default */
   if ((auto_present == TRUE) && (autotagged == FALSE))
      global.tagging = FALSE;
   global.explicit_tagging  = explicit_tagging;
   global.freeable = (free_flag == -1) ? 1 /* default */ : free_flag;
   incomplete_types_ptr = new type_element_list;
   forward_types_ptr = new type_element_list;
   freeable_types_ptr = new type_element_list;
   return (string);
}

char *negative_string(char *s)
{ char *temp;
  temp = (char *)malloc(strlen(s) + 2);
  temp[0] = '-';
  strcpy(&temp[1],s);
  free(s);
  return temp;
}

operation_element *do_op_def1(enum op_kind kind, 
                              char *nam, 
                              char *num, 
                              parameter_list *pl)
{
  operation_element *temp;
  temp = new operation_element(kind,nam,num,pl);
  temp->set_kind(SYM_OP);
  temp->set_interf(ieptr);
  ieptr->append_op(temp);
  ieptr->optable_gen->add_operation(temp);
  return (temp);
}

operation_element *do_op_def2(enum op_kind kind, 
                              char *nam, 
                              char *num)
{
  operation_element *temp;
  temp = new operation_element(kind,nam,num);
  temp->set_kind(SYM_OP);
  temp->set_interf(ieptr);
  ieptr->append_op(temp);
  ieptr->optable_gen->add_operation(temp);
  return (temp);
}

void do_encode_stmt()
{
      fprintf(out,"\n");
      INDENT(out,1);
      FPRINTF(out,"P(%s->exclusion);\n",GETINSTNAME);
      INDENT(out,1);
      FPRINTF(out,"if (%s->sendPPDU_end(%s))\n",
		   GETINSTNAME,GETINSTNAME);
      gen_exception_goto(out,2,GETINSTNAME,GETEXCEPTIONLAB);
      if (global.gen_log)
	 gen_log_statement(out,1,"EXITING encode statement",
			   GETINSTNAME,GETEXCEPTIONLAB);
      INDENT(out,1);
      FPRINTF(out,"V(%s->exclusion);\n",GETINSTNAME);
      gen_exception_header(out,
			   GETEXCEPTIONLAB,
			   GETOKLAB);
      gen_default_handlers(out,MASK_ZERO,GETOKLAB);
}

void do_encode_stmt2(instance_element *inst)
{
      gen_startsend(out, 
		    "encode", 
		    inst);
      if (global.gen_log)
	   gen_log_statement(out,1,"ENTERING encode statement",GETINSTNAME,GETEXCEPTIONLAB);
      INDENT(out,1);
      FPRINTF(out,"V(%s->exclusion);\n",GETINSTNAME);
}

void do_type_stmt(type_element *teptr, char *val, char *len)
{
       FPRINTF(out,"\n{   /* type_statement */\n");
       INDENT(out,1);
       FPRINTF(out,"if (%s->sendPDV_start(%s))\n",
			 GETINSTNAME,
			 GETINSTNAME);
       gen_exception_goto(out,2,GETINSTNAME, GETEXCEPTIONLAB);
       teptr->gen_sendP(out,1,val,len,
		     GETINSTNAME,
		     GETCONSTNAME,
		     GETEXCEPTIONLAB);
       INDENT(out,1);
       FPRINTF(out,"if (%s->sendPDV_end(%s))\n",
			 GETINSTNAME,
			 GETINSTNAME);
       gen_exception_goto(out,2,GETINSTNAME, GETEXCEPTIONLAB);
       FPRINTF(out,"}   /* End of type_statement */\n\n");
}
#define YYABORT goto yyabort
#define YYACCEPT goto yyaccept
#define YYERROR goto yyerrlab
#ifdef YYDEBUG
#ifndef YYDEBUG_LEXER_TEXT /* pointer to the text isolated by the lexer*/
#define YYDEBUG_LEXER_TEXT "YYDEBUG_LEXER_TEXT not defined"
#endif
#ifndef YYDEBUG_INDENT_STRING
#define YYDEBUG_INDENT_STRING  "|   "
#endif
#ifndef YYDEBUG_REDUCE_STRING
#define YYDEBUG_REDUCE_STRING  "+---"
#endif
#ifndef YYHUSHINT
void YYHUSHINT(int i) { i=0; }
#endif
#ifndef YYDEBUG_INDENT
void YYDEBUG_INDENT(int yyindent)
{
    while(yyindent-- > 0)
        printf("%s", YYDEBUG_INDENT_STRING);
}
#endif /* YYDEBUG_INDENT */
#ifndef YYDEBUG_REDUCE
void YYDEBUG_REDUCE(int yynew_state, int yyrule_num, char *yyrule_string,
int yynew_indent, int yyrhs_count)
{
    YYHUSHINT(yynew_state);
    YYHUSHINT(yyrule_num);
    if (1 < yyrhs_count)
    {  /* draw the graphics for the reduction */
        YYDEBUG_INDENT(yynew_indent);
        while(1 < yyrhs_count--)
            printf("%s", YYDEBUG_REDUCE_STRING);
        putchar('+'); /* left rotated L would look nice */
        putchar('\n');
        YYDEBUG_INDENT(yynew_indent);
        putchar('|'); /* down arrow would look nice */
        putchar('\n');
    }
    YYDEBUG_INDENT(yynew_indent);
    /* Only print the resulting token name */
    while (*yyrule_string && ' ' != *yyrule_string)
        putchar(*yyrule_string++);
    putchar('\n');
}
#endif /* YYDEBUG_REDUCE */
#ifndef YYDEBUG_SHIFT_LEXEME
void YYDEBUG_SHIFT_LEXEME(int yyold_state, int yynew_state, char *yytoken_string, int yynew_indent)
{
    YYHUSHINT(yyold_state);
    YYHUSHINT(yynew_state);
    YYDEBUG_INDENT(yynew_indent);
    printf("%s <-- `%s'\n", yytoken_string, YYDEBUG_LEXER_TEXT);
}
#endif /*  YYDEBUG_SHIFT_LEXEME */
#ifndef YYDEBUG_LOOK_AHEAD
void YYDEBUG_LOOK_AHEAD(int yynew_state, int yytoken_num, char *yytoken_string, int yyindent)
{
    YYHUSHINT(yynew_state);
    YYDEBUG_INDENT(yyindent);
    printf("          .... look ahead at %s   `%s'\n",
           yytoken_string,
           (0 == yytoken_num)? "\0": YYDEBUG_LEXER_TEXT);
}
#endif /* YYDEBUG_LOOK_AHEAD */
#ifndef YYDEBUG_DISCARD_STATE
void YYDEBUG_DISCARD_STATE(int yynew_state, int yyindent)
{
    YYHUSHINT(yynew_state);
    if (0 < yyindent)
    {  /* draw the graphics for the reduction */
        YYDEBUG_INDENT(yyindent-1);
        printf("%s", YYDEBUG_REDUCE_STRING);
        putchar('+'); /* left rotated L would look nice */
        printf("  discarding state\n");
        YYDEBUG_INDENT(yyindent-1);
        putchar('|'); /* down arrow would look nice */
        putchar('\n');
    }
    else
    {
        if (0 == yyindent)
            printf("discarding state\n");
        else
            printf("no more states to discard: parser will abort\n");
    }
}
#endif /* YYDEBUG_DISCARD_STATE */
#ifndef YYDEBUG_DISCARD_TOKEN
void YYDEBUG_DISCARD_TOKEN(int yynew_state, int yytoken_num, char *yytoken_string, int yyindent)
{
    YYHUSHINT(yynew_state);
    YYHUSHINT(yytoken_num);
    YYDEBUG_INDENT(yyindent);
    printf("discarding token %s\n", yytoken_string);
}
#endif /* YYDEBUG_DISCARD_TOKEN */
#ifndef YYDEBUG_SHIFT_ERROR_LEXEME
void YYDEBUG_SHIFT_ERROR_LEXEME(int yyold_state, int yynew_state, int yyindent)
{
    YYHUSHINT(yyold_state);
    YYHUSHINT(yynew_state);
    YYDEBUG_INDENT(yyindent);
    printf("error\n");
}
#endif /* YYDEBUG_SHIFT_ERROR_LEXEME */
#endif /* YYDEBUG */
int
yyparse()
{
    register int yym, yyn, yystate;
#if YYDEBUG
    register char *yys;

    if (yys = getenv("YYDEBUG"))
    {
        yyn = *yys;
        if (yyn >= '0' && yyn <= '9')
            yydebug = yyn - '0';
    }
#endif

    yynerrs = 0;
    yyerrflag = 0;
    yychar = (-1);

    yyssp = yyss;
    yyvsp = yyvs;
    *yyssp = yystate = 0;

yyloop:
    if (yyn = yydefred[yystate]) goto yyreduce;
    if (yychar < 0)
    {
        if ((yychar = yylex()) < 0) yychar = 0;
#if YYDEBUG
        if (yydebug)
        {
            yys = 0;
            if (yychar <= YYMAXTOKEN) yys = yyname[yychar];
            if (!yys) yys = "illegal-symbol";
            if (5 > yydebug)
                printf("yydebug: state %d, reading %d (%s)\n", yystate,
                        yychar, yys);
            else
                YYDEBUG_LOOK_AHEAD(yystate, yychar, yys, yyssp-yyss);
        }
#endif
    }
    if ((yyn = yysindex[yystate]) && (yyn += yychar) >= 0 &&
            yyn <= YYTABLESIZE && yycheck[yyn] == yychar)
    {
#if YYDEBUG
        if (yydebug)
            if (5 > yydebug)
                printf("yydebug: state %d, shifting to state %d\n",
                        yystate, yytable[yyn]);
            else
                YYDEBUG_SHIFT_LEXEME(yystate, yytable[yyn], yys, yyssp-yyss);
#endif
        if (yyssp >= yyss + yystacksize - 1)
        {
            goto yyoverflow;
        }
        *++yyssp = yystate = yytable[yyn];
        *++yyvsp = yylval;
        yychar = (-1);
        if (yyerrflag > 0)  --yyerrflag;
        goto yyloop;
    }
    if ((yyn = yyrindex[yystate]) && (yyn += yychar) >= 0 &&
            yyn <= YYTABLESIZE && yycheck[yyn] == yychar)
    {
        yyn = yytable[yyn];
        goto yyreduce;
    }
    if (yyerrflag) goto yyinrecovery;
#ifdef lint
    goto yynewerror;
yynewerror:
#endif
    yyerror("syntax error");
#ifdef lint
    goto yyerrlab;
yyerrlab:
#endif
    ++yynerrs;
yyinrecovery:
    if (yyerrflag < 3)
    {
        yyerrflag = 3;
        for (;;)
        {
            if ((yyn = yysindex[*yyssp]) && (yyn += YYERRCODE) >= 0 &&
                    yyn <= YYTABLESIZE && yycheck[yyn] == YYERRCODE)
            {
#if YYDEBUG
                if (yydebug)
                    if (5 > yydebug)
                        printf("yydebug: state %d, error recovery shifting\
 to state %d\n", *yyssp, yytable[yyn]);
                    else
                        YYDEBUG_SHIFT_ERROR_LEXEME(*yyssp, yytable[yyn], yyssp-yyss);
#endif
                if (yyssp >= yyss + yystacksize - 1)
                {
                    goto yyoverflow;
                }
                *++yyssp = yystate = yytable[yyn];
                *++yyvsp = yylval;
                goto yyloop;
            }
            else
            {
#if YYDEBUG
                if (yydebug)
                    if (5 > yydebug)
                        printf("yydebug: error recovery discarding state %d\n",
                            *yyssp);
                    else
                        YYDEBUG_DISCARD_STATE(*yyssp, yyssp-yyss-1);
#endif
                if (yyssp <= yyss) goto yyabort;
                --yyssp;
                --yyvsp;
            }
        }
    }
    else
    {
        if (yychar == 0) goto yyabort;
#if YYDEBUG
        if (yydebug)
        {
            yys = 0;
            if (yychar <= YYMAXTOKEN) yys = yyname[yychar];
            if (!yys) yys = "illegal-symbol";
            if (5 > yydebug)
                printf("yydebug: state %d, error recovery discards token %d (%s)\n",
                    yystate, yychar, yys);
            else 
                YYDEBUG_DISCARD_TOKEN(yystate, yychar, yys, yyssp-yyss);
        }
#endif
        yychar = (-1);
        goto yyloop;
    }
yyreduce:
    yym = yylen[yyn];
    yyval = yyvsp[1-yym];
#if YYDEBUG
    if (yydebug)
        if (5 > yydebug)
            printf("yydebug: state %d, reducing by rule %d (%s)\n",
                    yystate, yyn, yyrule[yyn]);
        else
            YYDEBUG_REDUCE(yystate, yyn, yyrule[yyn], yyssp-yyss-yym, yym);
#endif
    switch (yyn)
    {
case 5:
{ global_SEND_BUFFER_SIZE = atoi(yyvsp[0].string_bufoffset.string); }
break;
case 6:
{ global_RECEIVE_BUFFER_SIZE = atoi(yyvsp[0].string_bufoffset.string); }
break;
case 7:
{ global_ENDIANESS = __ROm_BIG_ENDIAN; }
break;
case 8:
{ global_ENDIANESS = __ROm_LITTLE_ENDIAN; }
break;
case 10:
{
	    __ROc_Boolean_lengths[yyvsp[0].size_index.index].size = yyvsp[0].size_index.size;
	    __ROc_Boolean_lengths[yyvsp[0].size_index.index].maxlength = atoi(yyvsp[-1].string_bufoffset.string);
	  }
break;
case 11:
{
	    __ROc_Integer_lengths[yyvsp[0].size_index.index].size = yyvsp[0].size_index.size;
	    __ROc_Integer_lengths[yyvsp[0].size_index.index].maxlength = atoi(yyvsp[-1].string_bufoffset.string);
	  }
break;
case 12:
{
	    __ROc_Real_lengths[yyvsp[0].size_index.index].size = yyvsp[0].size_index.size;
	    __ROc_Real_lengths[yyvsp[0].size_index.index].maxlength = atoi(yyvsp[-2].string_bufoffset.string);
	    __ROc_Real_lengths[yyvsp[0].size_index.index].maxlength2 = atoi(yyvsp[-1].string_bufoffset.string);
	  }
break;
case 13:
{
	    yyval.size_index.size = sizeof(unsigned char);
	    yyval.size_index.index = 0;
	  }
break;
case 14:
{
	    yyval.size_index.size = sizeof(unsigned short);
	    yyval.size_index.index = 1;
	  }
break;
case 15:
{
	    yyval.size_index.size = sizeof(unsigned int);
	    yyval.size_index.index = 2;
	  }
break;
case 16:
{
	    switch (yyvsp[0].integer) {

	      /* case 0 never happens, as they say... */

	    case 0:
	      BUG_CHECK("found empty long_specs.");
	      exit(1);
	    case 1:
	      yyval.size_index.size = sizeof(unsigned long);
	      yyval.size_index.index = 3;
	      break;
	    case 2:
	      over2:
	      yyval.size_index.size = 10000;  /*very large for now until jg fixes type macros*/
	      yyval.size_index.index = 4;
	      break;
	    default:
	      report_error("warning", 
			   "Found more than 2 long's, ignoring extras.\n",
			   NULL);
	      goto over2;
	    }
	  }
break;
case 17:
{
	    yyval.size_index.size = sizeof(char);
	    yyval.size_index.index = 0;
	  }
break;
case 18:
{
	    yyval.size_index.size = sizeof(short);
	    yyval.size_index.index = 1;
	  }
break;
case 19:
{
	    yyval.size_index.size = sizeof(int);
	    yyval.size_index.index = 2;
	  }
break;
case 20:
{
	    switch (yyvsp[0].integer) {

	      /* case 0 never happens, as they say... */

	    case 0:
	      BUG_CHECK("found empty long_specs.");
	      exit(1);
	    case 1:
	      yyval.size_index.size = sizeof(long);
	      yyval.size_index.index = 3;
	      break;
	    case 2:
	      over2_label2:
	      yyval.size_index.size = 10000;  /*very large for now until jg fixes type macros*/
	      yyval.size_index.index = 4;
	      break;
	    default:
	      report_error("warning", 
			   "Found more than 2 long's, ignoring extras.\n",
			   NULL);
	      goto over2_label2;
	    }
	  }
break;
case 21:
{
	  yyval.size_index = yyvsp[0].size_index;
	}
break;
case 22:
{
	      yyval.integer = (yyvsp[-1].integer) + 1;
	    }
break;
case 23:
{
	      yyval.integer = 1;
	    }
break;
case 24:
{
	    yyval.size_index.size = sizeof(float);
	    yyval.size_index.index = 0;
	  }
break;
case 25:
{
	    yyval.size_index.size = sizeof(double);
	    yyval.size_index.index = 1;
	  }
break;
case 26:
{
	    yyval.size_index.size = sizeof(long double);
	    yyval.size_index.index = 2;
	  }
break;
case 27:
{
	    if (bind_type_count < MAX_BIND_ID) {
	      bind_type[bind_type_count] = (char*)malloc(strlen(yyvsp[0].string_bufoffset_sym_ont.string)+1);
	      strcpy(bind_type[bind_type_count],yyvsp[0].string_bufoffset_sym_ont.string);
	      bind_type_count += 1;
	    }
	    else {
	      report_error("warning",
			   "Over %d bind_id's, ignoring \"%s\"...\n",
			   MAX_BIND_ID, (yyvsp[0].string_bufoffset_sym_ont.string));
	    }
	  }
break;
case 28:
{
	       do_ispec(yyvsp[-4].string);
	    }
break;
case 29:
{ 
	       extern void BEGIN_Interf();

	       BEGIN_Interf();
	    }
break;
case 30:
{ 
	       global.interface_name = yyvsp[0].string_bufoffset_sym_ont.string; 
	       in_interface_spec = TRUE;
	    }
break;
case 31:
{
	       yyval.string = do_interface_header(yyvsp[-6].string_bufoffset_sym_ont.string,
					yyvsp[-3].pres_auto.auto_present,
				        yyvsp[-3].pres_auto.autotagged,
				        yyvsp[-2].explicit_tagged,
					yyvsp[-1].free_seen);
	    }
break;
case 32:
{ gen_context_names(NULL,NULL); }
break;
case 33:
{ gen_context_names(yyvsp[-3].string_bufoffset.string,yyvsp[-1].string_bufoffset.string); }
break;
case 41:
{ Symbol_Table->add_type( yyvsp[0].type_eptr->get_name(), ieptr ); }
break;
case 42:
{ Symbol_Table->add_type( yyvsp[0].type_eptr->get_name(), ieptr ); }
break;
case 43:
{ Symbol_Table->add_type( yyvsp[0].type_eptr->get_name(), ieptr ); }
break;
case 44:
{ Symbol_Table->add_type( yyvsp[0].type_eptr->get_name(), ieptr ); }
break;
case 48:
{
	     /* create name element and hang it using name in $2 */
	      rules_element *reptr;
	      yyval.name_eptr = new name_element;
	      yyval.name_eptr->set_type_element_ptr(yyvsp[-2].type_eptr);
	      yyval.name_eptr->set_name(yyvsp[-1].string_bufoffset_sym_ont.string);
	      yyval.name_eptr->set_usage(atoi(yyvsp[0].string_bufoffset.string));
	      yyval.name_eptr->set_kind(SYM_NAME);
	      reptr = new rules_element(CLASS_CONTEXT,
					FORM_CONSTRUCTED,
					atoi(yyvsp[0].string_bufoffset.string),
					NOTHING_SEEN);
	      yyvsp[-2].type_eptr->get_rules_ptr()->insert(reptr);
	      ieptr->append_name(yyval.name_eptr);
	      ieptr->constant_gen->add_encoding(yyval.name_eptr);
	  }
break;
case 49:
{ 
	      yyvsp[-1].type_eptr->set_name(yyvsp[0].string_bufoffset_sym_ont.string);
	      ieptr->append_type(yyvsp[-1].type_eptr);
              yyvsp[-1].type_eptr->abstr_type_ptr->gen_typedef(out,yyvsp[0].string_bufoffset_sym_ont.string);
	      yyvsp[-1].type_eptr->type_name = yyvsp[-1].type_eptr->abstr_type_ptr->get_typedef_name();
	      incomplete_types_ptr->update_incomplete_types(yyvsp[-1].type_eptr);
	      ieptr->constant_gen->add_encoding(yyvsp[-1].type_eptr);
	      yyval.type_eptr = yyvsp[-1].type_eptr;
	    }
break;
case 50:
{
	      rules_element *reptr;
	      list *lptr;

	      nested_constr_lev--;
	      abstr_type_element *ateptr;
	      paradigm par;

	      if (yyvsp[-4].pres_auto_erules_setorseq_optional.mods_present) {
		 par = yyvsp[-4].pres_auto_erules_setorseq_optional.setorseq;
		 if (par == PARADIGM_UNKNOWN)
		    par = PARADIGM_SET;
		 lptr = yyvsp[-4].pres_auto_erules_setorseq_optional.e_rules->get_rules_ptr();
		 if (!lptr)
		    lptr = new list;
		 reptr = new rules_element(AKIND_RECORD,par);
	         lptr->append(reptr);
		 yyvsp[-4].pres_auto_erules_setorseq_optional.e_rules->reconcile();
	      }
	      else {
		 par = PARADIGM_SET;
		 lptr = new list;
		 reptr = new rules_element(AKIND_RECORD,PARADIGM_SET);
		 lptr->append(reptr);
	      }
	      ateptr = new abstr_type_element
				    (
				       AKIND_RECORD,
				       yyvsp[-1].symbol_list_ptr,
				       (yyvsp[-4].pres_auto_erules_setorseq_optional.mods_present && yyvsp[-4].pres_auto_erules_setorseq_optional.auto_present)
					  ? yyvsp[-4].pres_auto_erules_setorseq_optional.autotagged
					  : global.tagging,
					par 
				    );
	      yyval.type_eptr = new type_element(
		       ateptr,
		       lptr,
		       yyvsp[-4].pres_auto_erules_setorseq_optional.mods_present && yyvsp[-4].pres_auto_erules_setorseq_optional.optional_present,
		       yyvsp[-4].pres_auto_erules_setorseq_optional.free_flag);
	      ateptr->tag_elements(yyval.type_eptr->abstr_type_ptr->get_autotagged());
	    }
break;
case 51:
{
	       yyval.symbol_list_ptr = new symbol_list;
	       yyval.symbol_list_ptr->append(yyvsp[-1].type_eptr);
	       yyvsp[-1].type_eptr->gen_consts(out);
	    }
break;
case 52:
{
	       yyvsp[-2].symbol_list_ptr->append(yyvsp[-1].type_eptr);
	       yyval.symbol_list_ptr = yyvsp[-2].symbol_list_ptr;
	       yyvsp[-1].type_eptr->gen_consts(out);
	    }
break;
case 53:
{
	       yyval.type_eptr = new type_element(yyvsp[-3].istypeid_teptr_bufoffset.teptr,yyvsp[-2].tag_attrib.lptr,yyvsp[-2].tag_attrib.free_flag,yyvsp[-1].indirect_seen);
	       yyval.type_eptr->set_name(yyvsp[0].string_bufoffset_sym_ont.string);
	       yyval.type_eptr->set_optional_flag(yyvsp[-2].tag_attrib.optional_flag);
	       yyval.type_eptr->set_optional_value(yyvsp[-2].tag_attrib.optionalv);
	       yyval.type_eptr->set_default_flag(yyvsp[-2].tag_attrib.default_flag);
	       yyval.type_eptr->set_default_value(yyvsp[-2].tag_attrib.defaultv);
	    }
break;
case 54:
{ yyval.type_eptr = yyvsp[0].type_eptr; }
break;
case 55:
{ yyval.indirect_seen = FALSE; }
break;
case 56:
{ yyval.indirect_seen = TRUE; }
break;
case 57:
{
	      yyvsp[-1].type_eptr->set_name(yyvsp[0].string_bufoffset_sym_ont.string);
              yyvsp[-1].type_eptr->abstr_type_ptr->gen_typedef(out,0); 
	      yyval.type_eptr = yyvsp[-1].type_eptr;
	    }
break;
case 58:
{
	      if (yyvsp[-4].type_eptr->abstr_type_ptr->get_dynorstat() == ARRAYKIND_DYNAMIC)
		 report_error("warning",
			      "Array size ignored",NULL);
	      yyvsp[-4].type_eptr->set_name(yyvsp[-3].string_bufoffset_sym_ont.string);
	      yyvsp[-4].type_eptr->abstr_type_ptr->set_count(atoi(yyvsp[-1].string_bufoffset.string));
	      yyvsp[-4].type_eptr->abstr_type_ptr->gen_typedef(out,0);
	      yyval.type_eptr = yyvsp[-4].type_eptr;
	    }
break;
case 59:
{
	      if (yyvsp[-1].type_eptr->abstr_type_ptr->get_dynorstat() == ARRAYKIND_STATIC)
		 report_error("error ?","Array size must be specified",NULL);
	      yyvsp[-1].type_eptr->set_name(yyvsp[0].string_bufoffset_sym_ont.string);
	      yyvsp[-1].type_eptr->abstr_type_ptr->gen_typedef(out,0);
	      yyval.type_eptr = yyvsp[-1].type_eptr;
	    }
break;
case 60:
{
                report_error("error ?",
                             "illegal forward reference in static Array",
                             NULL);
		if ((yyvsp[-5].pres_ateptr_lptr_optional.ateptr)->get_dynorstat() == ARRAYKIND_DYNAMIC)
		   report_error("warning",
				"Array size ignored",
				NULL);
		yyval.type_eptr = new type_element(yyvsp[-3].string_bufoffset_sym_ont.string, yyvsp[-4].string_bufoffset_sym_ont.string);
		yyvsp[-5].pres_ateptr_lptr_optional.ateptr->set_count(atoi(yyvsp[-1].string_bufoffset.string));
	    }
break;
case 61:
{
		type_element *teptr;
	        symbol_list *slptr;

		if ((yyvsp[-2].pres_ateptr_lptr_optional.ateptr)->get_dynorstat() == ARRAYKIND_STATIC)
		   report_error("error ?",
				"Array size must be specified",
				NULL);
		teptr = new type_element(yyvsp[0].string_bufoffset_sym_ont.string, yyvsp[-1].string_bufoffset_sym_ont.string);
		incomplete_types_ptr->append(new type_element_ptr(teptr));

	        slptr = new symbol_list;
	        slptr->append(teptr);
	        yyvsp[-2].pres_ateptr_lptr_optional.ateptr->set_components(slptr);
	        yyval.type_eptr = new type_element(yyvsp[-2].pres_ateptr_lptr_optional.ateptr, 
				      yyvsp[-2].pres_ateptr_lptr_optional.lptr, 
				      yyvsp[-2].pres_ateptr_lptr_optional.optional_present,
				      yyvsp[-2].pres_ateptr_lptr_optional.free_flag);
	        yyval.type_eptr->set_name(yyvsp[0].string_bufoffset_sym_ont.string);
                yyval.type_eptr->abstr_type_ptr->gen_typedef(out,0);
	    }
break;
case 62:
{ 
	      yyvsp[-1].type_eptr->set_name(yyvsp[0].string_bufoffset_sym_ont.string);
              yyvsp[-1].type_eptr->abstr_type_ptr->gen_typedef(out,0);
	      yyval.type_eptr = yyvsp[-1].type_eptr;
	    }
break;
case 63:
{ 
		yyval.type_eptr = new type_element(yyvsp[0].string_bufoffset_sym_ont.string,yyvsp[-3].string_bufoffset_sym_ont.string,yyvsp[-2].tag_attrib.lptr,
				      yyvsp[-2].tag_attrib.free_flag,yyvsp[-1].indirect_seen); 
	        yyval.type_eptr->set_optional_flag(yyvsp[-2].tag_attrib.optional_flag);
	        yyval.type_eptr->set_optional_value(yyvsp[-2].tag_attrib.optionalv);
	        yyval.type_eptr->set_default_flag(yyvsp[-2].tag_attrib.default_flag);
	        yyval.type_eptr->set_default_value(yyvsp[-2].tag_attrib.defaultv);
		incomplete_types_ptr->append(new type_element_ptr(yyval.type_eptr));
	    }
break;
case 64:
{
	     yyval.tag_attrib.lptr = NULL;
	     yyval.tag_attrib.optional_flag = NULL;
	     yyval.tag_attrib.default_flag = NULL;
             yyval.tag_attrib.free_flag = -1;
	    }
break;
case 65:
{ 
             yyval.tag_attrib = yyvsp[-2].tag_attrib; 
             yyval.tag_attrib.free_flag = yyvsp[-1].free_seen; 
            }
break;
case 66:
{
	     yyval.tag_attrib.lptr = NULL;
	     yyval.tag_attrib.optional_flag = NULL;
	     yyval.tag_attrib.default_flag = NULL;
             yyval.tag_attrib.free_flag = yyvsp[-1].free_seen;
	    }
break;
case 67:
{ yyval.free_seen = -1; }
break;
case 68:
{ yyval.free_seen = yyvsp[0].free_seen; }
break;
case 69:
{ yyval.free_seen = 1; }
break;
case 70:
{ yyval.free_seen = 0; }
break;
case 71:
{
	     yyval.tag_attrib.lptr = yyvsp[0].list_ptr;
	     yyval.tag_attrib.optional_flag = NULL;
	     yyval.tag_attrib.default_flag = NULL;
	     yyval.tag_attrib.free_flag = -1;
	    }
break;
case 72:
{
	     yyval.tag_attrib.lptr = NULL;
	     yyval.tag_attrib.optional_flag = yyvsp[0].tag_attrib.optional_flag;
	     yyval.tag_attrib.optionalv = yyvsp[0].tag_attrib.optionalv;
	     yyval.tag_attrib.default_flag = yyvsp[0].tag_attrib.default_flag;
	     yyval.tag_attrib.defaultv = yyvsp[0].tag_attrib.defaultv;
             yyval.tag_attrib.free_flag = -1;
	    }
break;
case 73:
{
	     yyval.tag_attrib.lptr = yyvsp[-1].list_ptr;
	     yyval.tag_attrib.optional_flag = yyvsp[0].tag_attrib.optional_flag;
	     yyval.tag_attrib.optionalv = yyvsp[0].tag_attrib.optionalv;
	     yyval.tag_attrib.default_flag = yyvsp[0].tag_attrib.default_flag;
	     yyval.tag_attrib.defaultv = yyvsp[0].tag_attrib.defaultv;
             yyval.tag_attrib.free_flag = -1;
	    }
break;
case 74:
{
	     yyval.tag_attrib.optional_flag = yyvsp[0].tag_attrib.optional_flag;
	     yyval.tag_attrib.optionalv = yyvsp[0].tag_attrib.optionalv;
	     yyval.tag_attrib.default_flag = NULL;
	    }
break;
case 75:
{
	     yyval.tag_attrib.optional_flag = yyvsp[-1].tag_attrib.optional_flag;
	     yyval.tag_attrib.optionalv = yyvsp[-1].tag_attrib.optionalv;
	     yyval.tag_attrib.default_flag = yyvsp[0].tag_attrib.default_flag;
	     yyval.tag_attrib.defaultv = yyvsp[0].tag_attrib.defaultv;
	    }
break;
case 76:
{
	     yyval.tag_attrib.optional_flag = yyvsp[0].tag_attrib.optional_flag;
	     yyval.tag_attrib.optionalv = yyvsp[0].tag_attrib.optionalv;
	     yyval.tag_attrib.default_flag = yyvsp[-1].tag_attrib.default_flag;
	     yyval.tag_attrib.defaultv = yyvsp[-1].tag_attrib.defaultv;
	    }
break;
case 77:
{ 
	     yyval.tag_attrib.optional_flag = TRUE; 
	     yyval.tag_attrib.optionalv = NULL; 
	    }
break;
case 78:
{
	     yyval.tag_attrib.optional_flag = TRUE; 
	     yyval.tag_attrib.optionalv = yyvsp[0].string_bufoffset.string;
	    }
break;
case 79:
{
	     yyval.tag_attrib.default_flag = TRUE; 
	     yyval.tag_attrib.defaultv = yyvsp[0].string_bufoffset.string;
	    }
break;
case 80:
{ yyval.string_bufoffset = yyvsp[0].string_bufoffset; }
break;
case 81:
{ yyval.string_bufoffset = yyvsp[0].string_bufoffset; }
break;
case 82:
{ yyval.string_bufoffset = yyvsp[0].string_bufoffset; }
break;
case 83:
{
               yyval.string_bufoffset.bufoffset = yyvsp[-1].bufoffset;
               yyval.string_bufoffset.string = negative_string(yyvsp[0].string_bufoffset.string);
            }
break;
case 84:
{ yyval.string_bufoffset = yyvsp[0].string_bufoffset; }
break;
case 85:
{
               yyval.string_bufoffset.bufoffset = yyvsp[-1].bufoffset;
               yyval.string_bufoffset.string = negative_string(yyvsp[0].string_bufoffset.string);
            }
break;
case 86:
{ yyval.string_bufoffset = yyvsp[0].string_bufoffset; }
break;
case 87:
{ yyval.string_bufoffset = yyvsp[0].string_bufoffset; }
break;
case 88:
{ yyval.string_bufoffset = yyvsp[0].string_bufoffset; }
break;
case 89:
{
               yyval.string_bufoffset.bufoffset = yyvsp[-1].bufoffset;
               yyval.string_bufoffset.string = negative_string(yyvsp[0].string_bufoffset.string);
            }
break;
case 90:
{
	     yyval.pres_auto_erules_setorseq_optional.auto_present = yyvsp[-4].pres_auto.auto_present;
	     yyval.pres_auto_erules_setorseq_optional.autotagged = yyvsp[-4].pres_auto.autotagged;
	     yyval.pres_auto_erules_setorseq_optional.e_rules = yyvsp[-3].e_rules;
	     yyval.pres_auto_erules_setorseq_optional.setorseq = yyvsp[-2].setorseq;
	     yyval.pres_auto_erules_setorseq_optional.optional_present = yyvsp[-1].optional_seen;
             yyval.pres_auto_erules_setorseq_optional.free_flag = yyvsp[0].free_seen;
	    }
break;
case 91:
{ yyval.pres_auto.auto_present = FALSE; }
break;
case 92:
{
	     yyval.pres_auto.auto_present = TRUE;
	     yyval.pres_auto.autotagged = TRUE;
	    }
break;
case 93:
{
	     yyval.pres_auto.auto_present = TRUE;
	     yyval.pres_auto.autotagged = FALSE;
	    }
break;
case 94:
{ yyval.e_rules = new encoding_rules(NULL); }
break;
case 95:
{ yyval.e_rules = new encoding_rules(yyvsp[0].list_ptr); }
break;
case 96:
{ yyval.setorseq = PARADIGM_UNKNOWN; }
break;
case 97:
{ yyval.setorseq = PARADIGM_SET; }
break;
case 98:
{ yyval.setorseq = PARADIGM_SEQUENCE; }
break;
case 99:
{ yyval.optional_seen = FALSE; }
break;
case 100:
{ yyval.optional_seen = TRUE; }
break;
case 101:
{ yyval.explicit_tagged = TRUE; }
break;
case 102:
{ yyval.explicit_tagged = TRUE; }
break;
case 103:
{ yyval.explicit_tagged = FALSE; }
break;
case 104:
{ yyval.type_eptr = new type_element(yyvsp[-1].istypeid_teptr_bufoffset.teptr,yyvsp[0].listptr_free.list_ptr,yyvsp[0].listptr_free.free_flag,FALSE); }
break;
case 105:
{ yyval.listptr_free.list_ptr = NULL; 
              yyval.listptr_free.free_flag = -1; }
break;
case 106:
{ yyval.listptr_free.list_ptr = yyvsp[-2].list_ptr; 
              yyval.listptr_free.free_flag = yyvsp[-1].free_seen; 
            }
break;
case 107:
{ yyval.listptr_free.list_ptr = NULL;
              yyval.listptr_free.free_flag = yyvsp[-1].free_seen;
            }
break;
case 108:
{  
	       abstr_type_element *ateptr;
	       ateptr = new abstr_type_element(yyvsp[0].ak_len1_len2_bufoffset.abstr_kind,
					       atoi(yyvsp[0].ak_len1_len2_bufoffset.len1),atoi(yyvsp[0].ak_len1_len2_bufoffset.len2));
	       yyval.istypeid_teptr_bufoffset.teptr = new type_element(primitive_name[yyvsp[0].ak_len1_len2_bufoffset.abstr_kind],
				  primitive_list_ptr->append_primitive(ateptr),
				  new rules_element(yyvsp[0].ak_len1_len2_bufoffset.abstr_kind));
               ((yyval.istypeid_teptr_bufoffset.teptr)->abstr_type_ptr)->gen_typedef(prim,
						 primitive_name[yyvsp[0].ak_len1_len2_bufoffset.abstr_kind]);
	       yyval.istypeid_teptr_bufoffset.bufoffset = yyvsp[0].ak_len1_len2_bufoffset.bufoffset;
	       yyval.istypeid_teptr_bufoffset.is_typeid = FALSE;
	    }
break;
case 109:
{
	     yyval.istypeid_teptr_bufoffset.teptr = new type_element((yyvsp[0].teptr_bufoffset.teptr)->get_name(),
				   (yyvsp[0].teptr_bufoffset.teptr)->abstr_type_ptr,
				   (yyvsp[0].teptr_bufoffset.teptr)->get_rules_ptr(),
				   (yyvsp[0].teptr_bufoffset.teptr)->get_encoded_offset(),
				   (yyvsp[0].teptr_bufoffset.teptr)->get_encoded_length(),
				   (yyvsp[0].teptr_bufoffset.teptr)->freeable);
	     yyval.istypeid_teptr_bufoffset.bufoffset = yyvsp[0].teptr_bufoffset.bufoffset;
	     yyval.istypeid_teptr_bufoffset.is_typeid = TRUE;
	  }
break;
case 110:
{
	     rules_element *reptr;

	     if (!atoi(yyvsp[-1].string_bufoffset.string))
		report_error ("error 27",
			      "\"Universal 0\" not allowed.",
			      NULL);
	     if (yyvsp[0].i_or_e_or_empty != IMPLICIT_SEEN)
		report_error ("error 28",
			      "\"Implicit\" required when \"Universal\" is used.",
			      NULL);
	     reptr = new rules_element(CLASS_UNIVERSAL,
				    FORM_CONSTRUCTED,
				    atoi(yyvsp[-1].string_bufoffset.string),
				    yyvsp[0].i_or_e_or_empty); 
	     yyval.list_ptr = new list;
	     yyval.list_ptr->append(reptr);
	    }
break;
case 111:
{
	       yyval.list_ptr = yyvsp[0].list_ptr;
	    }
break;
case 112:
{
	      yyval.list_ptr = new list;
	      yyval.list_ptr->append(yyvsp[0].rules_eptr);
	    }
break;
case 113:
{ 
	      yyvsp[-1].list_ptr->append(yyvsp[0].rules_eptr); 
	    }
break;
case 114:
{ 
	     yyval.rules_eptr = new rules_element(yyvsp[-2].integer,
				    FORM_CONSTRUCTED,
				    atoi(yyvsp[-1].string_bufoffset.string),
				    yyvsp[0].i_or_e_or_empty); 
	    }
break;
case 115:
{ yyval.integer = CLASS_APPLICATION; }
break;
case 116:
{ yyval.integer = CLASS_CONTEXT; }
break;
case 117:
{ yyval.integer = CLASS_PRIVATE; }
break;
case 118:
{ yyval.i_or_e_or_empty = NOTHING_SEEN; }
break;
case 119:
{ yyval.i_or_e_or_empty = IMPLICIT_SEEN; }
break;
case 120:
{ yyval.i_or_e_or_empty = EXPLICIT_SEEN; }
break;
case 121:
{
	       yyvsp[-1].type_eptr->set_name(yyvsp[0].string_bufoffset_sym_ont.string);
	       yyval.type_eptr = yyvsp[-1].type_eptr;
	       ieptr->append_type(yyval.type_eptr);
	       (yyvsp[-1].type_eptr->abstr_type_ptr)->gen_typedef(out,yyvsp[0].string_bufoffset_sym_ont.string);
	       ieptr->constant_gen->add_encoding(yyvsp[-1].type_eptr);
	    }
break;
case 122:
{
	      if (yyvsp[-4].type_eptr->abstr_type_ptr->get_dynorstat() == ARRAYKIND_DYNAMIC)
		 report_error("warning",
			      "Array size ignored",NULL);
	      yyvsp[-4].type_eptr->set_name(yyvsp[-3].string_bufoffset_sym_ont.string);
	      yyvsp[-4].type_eptr->abstr_type_ptr->set_count(atoi(yyvsp[-1].string_bufoffset.string));
	      ieptr->append_type(yyvsp[-4].type_eptr);
	      yyvsp[-4].type_eptr->abstr_type_ptr->gen_typedef(out,yyvsp[-3].string_bufoffset_sym_ont.string);
	      yyvsp[-4].type_eptr->type_name = yyvsp[-4].type_eptr->abstr_type_ptr->get_typedef_name();
	      ieptr->constant_gen->add_encoding(yyvsp[-4].type_eptr);
	      yyval.type_eptr = yyvsp[-4].type_eptr;
	    }
break;
case 123:
{
	      if (yyvsp[-1].type_eptr->abstr_type_ptr->get_dynorstat() == ARRAYKIND_STATIC)
		 report_error("error ?","Array size must be specified",NULL);
	      yyvsp[-1].type_eptr->set_name(yyvsp[0].string_bufoffset_sym_ont.string);
	      ieptr->append_type(yyvsp[-1].type_eptr);
	      yyvsp[-1].type_eptr->abstr_type_ptr->gen_typedef(out,yyvsp[0].string_bufoffset_sym_ont.string);
	      ieptr->constant_gen->add_encoding(yyvsp[-1].type_eptr);
	      yyval.type_eptr = yyvsp[-1].type_eptr;
	    }
break;
case 124:
{ 
/* New syntax to allow forward references in dynamic arrays.
   This is incomplete, since only allowing at top level.   
   There will be parsing conflicts otherwise??? */
              type_element *teptr;
              symbol_list *slptr;

              teptr = new type_element(yyvsp[0].string_bufoffset_sym_ont.string,yyvsp[-1].string_bufoffset_sym_ont.string);
              incomplete_types_ptr->append(new type_element_ptr(teptr));
              if (yyvsp[-2].pres_ateptr_lptr_optional.ateptr->get_dynorstat() == ARRAYKIND_STATIC)
                 report_error("error ?",
                              "Forward reference in static Array not allowed",
                              NULL);
              slptr = new symbol_list;
	      slptr->append(teptr);
              yyvsp[-2].pres_ateptr_lptr_optional.ateptr->set_components(slptr);
	      yyval.type_eptr = new type_element(yyvsp[-2].pres_ateptr_lptr_optional.ateptr, 
				    yyvsp[-2].pres_ateptr_lptr_optional.lptr, 
				    yyvsp[-2].pres_ateptr_lptr_optional.optional_present,
                                    yyvsp[-2].pres_ateptr_lptr_optional.free_flag);
	      yyval.type_eptr->set_name(yyvsp[0].string_bufoffset_sym_ont.string);
              ieptr->append_type(yyval.type_eptr);
/* Are these typedef's and encoding right? */
              yyvsp[-2].pres_ateptr_lptr_optional.ateptr->gen_typedef(out,yyvsp[0].string_bufoffset_sym_ont.string);
              ieptr->constant_gen->add_encoding(yyval.type_eptr);
            }
break;
case 125:
{
	      symbol_list *slptr;

	      slptr = new symbol_list;
	      slptr->append(yyvsp[0].type_eptr);
	      yyvsp[-1].pres_ateptr_lptr_optional.ateptr->set_components(slptr);
	      yyval.type_eptr = new type_element(yyvsp[-1].pres_ateptr_lptr_optional.ateptr, 
				    yyvsp[-1].pres_ateptr_lptr_optional.lptr, 
				    yyvsp[-1].pres_ateptr_lptr_optional.optional_present,
                                    yyvsp[-1].pres_ateptr_lptr_optional.free_flag);
	      yyvsp[0].type_eptr->abstr_type_ptr->gen_typedef(out,0);
	      ieptr->constant_gen->add_encoding(yyvsp[0].type_eptr);
	    }
break;
case 126:
{
	      symbol_list *slptr;

	      slptr = new symbol_list;
	      slptr->append(yyvsp[0].type_eptr);
	      yyvsp[-1].pres_ateptr_lptr_optional.ateptr->set_components(slptr);
	      yyval.type_eptr = new type_element(yyvsp[-1].pres_ateptr_lptr_optional.ateptr, 
				    yyvsp[-1].pres_ateptr_lptr_optional.lptr, 
				    yyvsp[-1].pres_ateptr_lptr_optional.optional_present,
                                    yyvsp[-1].pres_ateptr_lptr_optional.free_flag);
	      yyvsp[0].type_eptr->abstr_type_ptr->gen_typedef(out,0);
	      ieptr->constant_gen->add_encoding(yyvsp[0].type_eptr);
	    }
break;
case 127:
{
	      symbol_list *slptr;

	      slptr = new symbol_list;
	      slptr->append(yyvsp[0].type_eptr);
	      yyvsp[-1].pres_ateptr_lptr_optional.ateptr->set_components(slptr);
	      yyval.type_eptr = new type_element(yyvsp[-1].pres_ateptr_lptr_optional.ateptr, 
				    yyvsp[-1].pres_ateptr_lptr_optional.lptr, 
				    yyvsp[-1].pres_ateptr_lptr_optional.optional_present,
                                    yyvsp[-1].pres_ateptr_lptr_optional.free_flag);
	      yyvsp[0].type_eptr->abstr_type_ptr->gen_typedef(out,0);
	      ieptr->constant_gen->add_encoding(yyvsp[0].type_eptr);
	    }
break;
case 128:
{
	      symbol_list *slptr;

	      slptr = new symbol_list;
	      slptr->append(yyvsp[-3].type_eptr);
	      yyvsp[-4].pres_ateptr_lptr_optional.ateptr->set_components(slptr);
	      yyval.type_eptr = new type_element(yyvsp[-4].pres_ateptr_lptr_optional.ateptr, 
				    yyvsp[-4].pres_ateptr_lptr_optional.lptr, 
				    yyvsp[-4].pres_ateptr_lptr_optional.optional_present,
                                    yyvsp[-4].pres_ateptr_lptr_optional.free_flag);
	      if (yyvsp[-3].type_eptr->abstr_type_ptr->get_dynorstat() == ARRAYKIND_DYNAMIC)
		 report_error("warning",
			      "Array size ignored",NULL);
	      yyvsp[-3].type_eptr->abstr_type_ptr->set_count(atoi(yyvsp[-1].string_bufoffset.string));
	      yyvsp[-3].type_eptr->abstr_type_ptr->gen_typedef(out,0);
	      ieptr->constant_gen->add_encoding(yyvsp[-3].type_eptr);
	    }
break;
case 129:
{
	      symbol_list *slptr;

	      slptr = new symbol_list;
	      slptr->append(yyvsp[0].type_eptr);
	      yyvsp[-1].pres_ateptr_lptr_optional.ateptr->set_components(slptr);
	      yyval.type_eptr = new type_element(yyvsp[-1].pres_ateptr_lptr_optional.ateptr, 
				    yyvsp[-1].pres_ateptr_lptr_optional.lptr, 
				    yyvsp[-1].pres_ateptr_lptr_optional.optional_present,
                                    yyvsp[-1].pres_ateptr_lptr_optional.free_flag);
	      if (yyvsp[0].type_eptr->abstr_type_ptr->get_dynorstat() == ARRAYKIND_STATIC)
		 report_error("error ?","Array size must be specified",NULL);
	      yyvsp[0].type_eptr->abstr_type_ptr->gen_typedef(out,0);
	      ieptr->constant_gen->add_encoding(yyvsp[0].type_eptr);
	    }
break;
case 130:
{
	      list *lptr;
	      rules_element *reptr;
	      paradigm par;

	      if (yyvsp[0].pres_auto_erules_setorseq_optional.mods_present) {
		 par = yyvsp[0].pres_auto_erules_setorseq_optional.setorseq;
		 if (par == PARADIGM_UNKNOWN)
		    par = PARADIGM_SEQUENCE;
		 lptr = yyvsp[0].pres_auto_erules_setorseq_optional.e_rules->get_rules_ptr();
		 if (!lptr)
		    lptr = new list;
		 reptr = new rules_element(AKIND_ARRAY,par);
	         lptr->append(reptr);
		 yyvsp[0].pres_auto_erules_setorseq_optional.e_rules->reconcile();
	      }
	      else {
		 par = PARADIGM_SEQUENCE;
		 lptr = new list;
		 reptr = new rules_element(AKIND_ARRAY,PARADIGM_SEQUENCE);
		 lptr->append(reptr);
	      }
	      yyval.pres_ateptr_lptr_optional.optional_present = yyvsp[0].pres_auto_erules_setorseq_optional.mods_present && yyvsp[0].pres_auto_erules_setorseq_optional.optional_present;
	      yyval.pres_ateptr_lptr_optional.lptr = lptr;
	      yyval.pres_ateptr_lptr_optional.ateptr = new abstr_type_element
				    (
				       AKIND_ARRAY,
				       (yyvsp[0].pres_auto_erules_setorseq_optional.mods_present && yyvsp[0].pres_auto_erules_setorseq_optional.auto_present)
					  ? yyvsp[0].pres_auto_erules_setorseq_optional.autotagged
					  : global.tagging,
					par,
					yyvsp[-1].dynorstat
				    );
              yyval.pres_ateptr_lptr_optional.free_flag = yyvsp[0].pres_auto_erules_setorseq_optional.free_flag;
	    }
break;
case 131:
{ yyval.dynorstat = ARRAYKIND_STATIC; }
break;
case 132:
{ yyval.dynorstat = ARRAYKIND_DYNAMIC; }
break;
case 133:
{ yyval.pres_auto_erules_setorseq_optional.mods_present = FALSE; 
              yyval.pres_auto_erules_setorseq_optional.free_flag = -1; }
break;
case 134:
{
	     yyval.pres_auto_erules_setorseq_optional.mods_present = TRUE;
	     yyval.pres_auto_erules_setorseq_optional.auto_present = yyvsp[-1].pres_auto_erules_setorseq_optional.auto_present;
	     yyval.pres_auto_erules_setorseq_optional.autotagged = yyvsp[-1].pres_auto_erules_setorseq_optional.autotagged;
	     yyval.pres_auto_erules_setorseq_optional.e_rules = yyvsp[-1].pres_auto_erules_setorseq_optional.e_rules;
	     yyval.pres_auto_erules_setorseq_optional.setorseq = yyvsp[-1].pres_auto_erules_setorseq_optional.setorseq;
	     yyval.pres_auto_erules_setorseq_optional.optional_present = yyvsp[-1].pres_auto_erules_setorseq_optional.optional_present;
             yyval.pres_auto_erules_setorseq_optional.free_flag = yyvsp[-1].pres_auto_erules_setorseq_optional.free_flag;
	    }
break;
case 135:
{ 
	      yyvsp[-1].type_eptr->set_name(yyvsp[0].string_bufoffset_sym_ont.string);
	      ieptr->append_type(yyvsp[-1].type_eptr);
              yyvsp[-1].type_eptr->abstr_type_ptr->gen_typedef(out,yyvsp[0].string_bufoffset_sym_ont.string);
	      yyvsp[-1].type_eptr->type_name = yyvsp[-1].type_eptr->abstr_type_ptr->get_typedef_name();
	      incomplete_types_ptr->update_incomplete_types(yyvsp[-1].type_eptr);
	      ieptr->constant_gen->add_encoding(yyvsp[-1].type_eptr);
	      yyval.type_eptr = yyvsp[-1].type_eptr;
	    }
break;
case 136:
{
	      nested_constr_lev--;
	      abstr_type_element *ateptr;
	      if (yyvsp[-4].pres_auto_optional.auto_present)
		 ateptr = new abstr_type_element(AKIND_UNION,yyvsp[-1].symbol_list_ptr,yyvsp[-4].pres_auto_optional.autotagged);
	      else
		 ateptr = new abstr_type_element(AKIND_UNION,yyvsp[-1].symbol_list_ptr);
	      yyval.type_eptr = new type_element(ateptr,new list,yyvsp[-4].pres_auto_optional.optional_present,
                                    yyvsp[-4].pres_auto_optional.free_flag);
	      ateptr->tag_elements(yyval.type_eptr->abstr_type_ptr->get_autotagged());
	    }
break;
case 137:
{
	     yyval.pres_auto_optional.auto_present = FALSE;
	     yyval.pres_auto_optional.autotagged = FALSE;
	     yyval.pres_auto_optional.optional_present = FALSE;
             yyval.pres_auto_optional.free_flag = -1;
	    }
break;
case 138:
{
             yyval.pres_auto_optional.auto_present = yyvsp[-3].pres_auto.auto_present;
             yyval.pres_auto_optional.autotagged = yyvsp[-3].pres_auto.autotagged;
             yyval.pres_auto_optional.optional_present = yyvsp[-2].optional_seen;
             yyval.pres_auto_optional.free_flag = yyvsp[-1].free_seen;
            }
break;
case 139:
{
	       yyval.symbol_list_ptr = new symbol_list;
	       yyval.symbol_list_ptr->append(yyvsp[-1].type_eptr);
	       yyvsp[-1].type_eptr->gen_consts(out);
	    }
break;
case 140:
{
	       yyvsp[-2].symbol_list_ptr->append(yyvsp[-1].type_eptr);
	       yyval.symbol_list_ptr = yyvsp[-2].symbol_list_ptr;
	       yyvsp[-1].type_eptr->gen_consts(out);
	    }
break;
case 141:
{
	       yyval.type_eptr = new type_element(yyvsp[-3].istypeid_teptr_bufoffset.teptr,yyvsp[-2].listptr_free.list_ptr,yyvsp[-2].listptr_free.free_flag,yyvsp[-1].indirect_seen);
	       yyval.type_eptr->set_name(yyvsp[0].string_bufoffset_sym_ont.string);
	    }
break;
case 142:
{ yyval.type_eptr = yyvsp[0].type_eptr; }
break;
case 143:
{ yyval.listptr_free.list_ptr = NULL; 
              yyval.listptr_free.free_flag = -1; }
break;
case 144:
{ yyval.listptr_free.list_ptr = yyvsp[-2].list_ptr; 
              yyval.listptr_free.free_flag = yyvsp[-1].free_seen; }
break;
case 145:
{ yyval.listptr_free.list_ptr = NULL;
              yyval.listptr_free.free_flag = yyvsp[-1].free_seen;
            }
break;
case 150:
{
               do_op_def1(KIND_INVOKE,yyvsp[-4].string_bufoffset_sym_ont.string,yyvsp[-2].string_bufoffset.string,yyvsp[-1].param_list_ptr);
	    }
break;
case 151:
{
               do_op_def1(KIND_ERROR,yyvsp[-4].string_bufoffset_sym_ont.string,yyvsp[-2].string_bufoffset.string,yyvsp[-1].param_list_ptr);
	    }
break;
case 152:
{
	       char tmpcharbuf[50];
	       sprintf(tmpcharbuf,"%s %s",yyvsp[-2].string_bufoffset.string,yyvsp[-1].string_bufoffset.string);
               do_op_def2(KIND_REJECT,yyvsp[-4].string_bufoffset_sym_ont.string,tmpcharbuf);
	    }
break;
case 153:
{
	       /*default result*/
               do_op_def2(yyvsp[-3].op_kind,yyvsp[-2].string_bufoffset_sym_ont.string,NULL);
	    }
break;
case 154:
{
	       /*default result*/
               do_op_def1(yyvsp[-5].op_kind,yyvsp[-4].string_bufoffset_sym_ont.string,yyvsp[-2].string_bufoffset.string,yyvsp[-1].param_list_ptr);
	    }
break;
case 155:
{
	       operation_element *oe1, *oe2;
	       oe1 = new operation_element(KIND_INVOKE,
					  yyvsp[-4].string_bufoffset_sym_ont.string,
					  yyvsp[-2].string_bufoffset.string,yyvsp[-1].modals_ins_outs.ins);
	       ieptr->optable_gen->add_operation(oe1);
	       oe2 = new operation_element(KIND_RESULT,
					  yyvsp[-4].string_bufoffset_sym_ont.string,
					  yyvsp[-2].string_bufoffset.string,yyvsp[-1].modals_ins_outs.outs);
	       ieptr->optable_gen->add_operation(oe2);
	       yyval.operation_eptr = new operation_element(KIND_CALL,
					  yyvsp[-4].string_bufoffset_sym_ont.string,
					  yyvsp[-2].string_bufoffset.string,
					  yyvsp[-1].modals_ins_outs.modals,
					  oe1,
					  oe2);
	       yyval.operation_eptr->set_kind(SYM_OP);
	       yyval.operation_eptr->set_interf(ieptr);
	       ieptr->append_op(yyval.operation_eptr);
	    }
break;
case 159:
{ yyval.op_kind = KIND_RESULT; }
break;
case 160:
{ yyval.param_list_ptr = new parameter_list(); }
break;
case 161:
{
	     yyval.param_list_ptr = yyvsp[0].param_list_ptr;
	     yyval.param_list_ptr->set_wrapping(TRUE);
	  }
break;
case 162:
{
	     yyval.param_list_ptr = yyvsp[0].param_list_ptr;
	     yyval.param_list_ptr->set_wrapping((yyvsp[0].param_list_ptr->length())>1);
	     yyval.param_list_ptr->auto_tag();
	  }
break;
case 163:
{
	       /* create param_name_list and append $1 to it */
	       param_element *naeptr;
	       naeptr = new param_element(yyvsp[0].name_eptr, 
					  MODE_INOUT, 
					  0);
	       yyval.param_list_ptr = new parameter_list(NAMED_PARAM_LIST);
	       yyval.param_list_ptr->append(naeptr);
	    }
break;
case 164:
{
	       param_element *naeptr;
	       naeptr = new param_element(yyvsp[0].name_eptr,
					  MODE_INOUT, 
					  yyvsp[-2].param_list_ptr->length());
	       yyvsp[-2].param_list_ptr->append(naeptr);
	       yyval.param_list_ptr = yyvsp[-2].param_list_ptr;
	    }
break;
case 165:
{
	       param_element *paeptr;
	       paeptr = new param_element(yyvsp[0].type_eptr, 
					  MODE_INOUT, 
					  0);
	       yyval.param_list_ptr = new parameter_list(TYPE_PARAM_LIST);
	       yyval.param_list_ptr->append(paeptr);
	       if ((yyvsp[0].type_eptr->abstr_type_ptr->get_kind() == AKIND_ANY) &&
                   (yyvsp[0].type_eptr->get_rules_ptr()->length() == 0))
		  yyval.param_list_ptr->set_unwrapped_Any_present(TRUE);
	    }
break;
case 166:
{
	       param_element *paeptr;
	       paeptr = new param_element(yyvsp[0].type_eptr, 
					  MODE_INOUT,
					  yyvsp[-2].param_list_ptr->length());
	       yyvsp[-2].param_list_ptr->append(paeptr);
	       yyval.param_list_ptr = yyvsp[-2].param_list_ptr;
	       if ((yyvsp[0].type_eptr->abstr_type_ptr->get_kind() == AKIND_ANY) &&
                   (yyvsp[0].type_eptr->get_rules_ptr()->length() == 0))
		  yyval.param_list_ptr->set_unwrapped_Any_present(TRUE);
	    }
break;
case 167:
{
	       yyval.modals_ins_outs.modals = new modal_list(NO_PARAM_LIST);
	       yyval.modals_ins_outs.ins = new parameter_list(NO_PARAM_LIST);
	       yyval.modals_ins_outs.ins->set_wrapping(TRUE);
	       yyval.modals_ins_outs.outs = new parameter_list(NO_PARAM_LIST);
	       yyval.modals_ins_outs.outs->set_wrapping(TRUE);
	    }
break;
case 168:
{
	       yyval.modals_ins_outs = yyvsp[0].modals_ins_outs;
	       if (yyval.modals_ins_outs.ins) {
		  yyval.modals_ins_outs.ins->set_pos_or_named(NAMED_PARAM_LIST);
		  yyval.modals_ins_outs.ins->set_wrapping(TRUE);
	       }
	       if (yyval.modals_ins_outs.outs) {
		  yyval.modals_ins_outs.outs->set_pos_or_named(NAMED_PARAM_LIST);
		  yyval.modals_ins_outs.outs->set_wrapping(TRUE);
	       }
	    }
break;
case 169:
{
	       yyval.modals_ins_outs = yyvsp[0].modals_ins_outs;
	       if (yyval.modals_ins_outs.ins) {
		  yyval.modals_ins_outs.ins->set_pos_or_named(TYPE_PARAM_LIST);
		  yyval.modals_ins_outs.ins->set_wrapping(TRUE);
		  if (yyval.modals_ins_outs.ins->length())
		     yyval.modals_ins_outs.ins->auto_tag();
	       }
	       if (yyval.modals_ins_outs.outs) {
		  yyval.modals_ins_outs.outs->set_pos_or_named(TYPE_PARAM_LIST);
		  yyval.modals_ins_outs.outs->set_wrapping(TRUE);
		  if (yyval.modals_ins_outs.outs->length())
		     yyval.modals_ins_outs.outs->auto_tag();
	       }
	    }
break;
case 170:
{

	       param_element *in = NULL, *out = NULL;

	       yyval.modals_ins_outs.modals = new modal_list(NAMED_PARAM_LIST);
	       yyval.modals_ins_outs.ins = new parameter_list(NAMED_PARAM_LIST);
	       yyval.modals_ins_outs.outs = new parameter_list(NAMED_PARAM_LIST);
	       if ((yyvsp[-1].arg_mode == MODE_IN) || (yyvsp[-1].arg_mode == MODE_INOUT)) {
		  in = new param_element(yyvsp[0].name_eptr, yyvsp[-1].arg_mode, 0);
		  yyval.modals_ins_outs.ins->append(in);
	       }
	       if ((yyvsp[-1].arg_mode == MODE_OUT) || (yyvsp[-1].arg_mode == MODE_INOUT)) {
		  out = new param_element(yyvsp[0].name_eptr, yyvsp[-1].arg_mode, 0);
		  yyval.modals_ins_outs.outs->append(out);
	       }
	       yyval.modals_ins_outs.modals->append(new modal_param(in,out));
	    }
break;
case 171:
{
	       param_element *in = NULL, *out = NULL;
	       if ((yyvsp[-1].arg_mode == MODE_IN) || (yyvsp[-1].arg_mode == MODE_INOUT)) {
		  in = new param_element
			       (yyvsp[0].name_eptr, yyvsp[-1].arg_mode, yyvsp[-3].modals_ins_outs.modals->length());
		  if (!yyvsp[-3].modals_ins_outs.ins)
		     yyvsp[-3].modals_ins_outs.ins = new parameter_list(NAMED_PARAM_LIST);
		  yyvsp[-3].modals_ins_outs.ins->append(in);
	       }
	       if ((yyvsp[-1].arg_mode == MODE_OUT) || (yyvsp[-1].arg_mode == MODE_INOUT)) {
		  out = new param_element
			       (yyvsp[0].name_eptr, yyvsp[-1].arg_mode, yyvsp[-3].modals_ins_outs.modals->length());
		  if (!yyvsp[-3].modals_ins_outs.outs)
		     yyvsp[-3].modals_ins_outs.outs = new parameter_list(NAMED_PARAM_LIST);
		  yyvsp[-3].modals_ins_outs.outs->append(out);
	       }
	       yyvsp[-3].modals_ins_outs.modals->append(new modal_param(in,out));
	       yyval.modals_ins_outs = yyvsp[-3].modals_ins_outs;
	    }
break;
case 172:
{
	       param_element *in = NULL, *out = NULL;
	       if ((current_mode == MODE_IN) || 
		   (current_mode == MODE_INOUT)) {
		  in = new param_element(yyvsp[0].name_eptr, 
					 current_mode,
					 yyvsp[-2].modals_ins_outs.modals->length());
		  yyvsp[-2].modals_ins_outs.ins->append(in);
	       }
	       if ((current_mode == MODE_OUT) || 
		   (current_mode == MODE_INOUT)) {
		  out = new param_element(yyvsp[0].name_eptr, 
					  current_mode,
					  yyvsp[-2].modals_ins_outs.modals->length());
		  yyvsp[-2].modals_ins_outs.outs->append(out);
	       }
	       yyvsp[-2].modals_ins_outs.modals->append(new modal_param(in,out));
	       yyval.modals_ins_outs = yyvsp[-2].modals_ins_outs;
	    }
break;
case 173:
{
	       param_element *in = NULL, *out = NULL;

	       yyval.modals_ins_outs.modals = new modal_list(TYPE_PARAM_LIST);
	       yyval.modals_ins_outs.ins = new parameter_list(TYPE_PARAM_LIST);
	       yyval.modals_ins_outs.outs = new parameter_list(TYPE_PARAM_LIST);
	       if ((yyvsp[-1].arg_mode == MODE_IN) || (yyvsp[-1].arg_mode == MODE_INOUT)) {
		  in = new param_element(yyvsp[0].type_eptr, yyvsp[-1].arg_mode, 0);
		  yyval.modals_ins_outs.ins->append(in);
	       }
	       if ((yyvsp[-1].arg_mode == MODE_OUT) || (yyvsp[-1].arg_mode == MODE_INOUT)) {
		  out = new param_element(yyvsp[0].type_eptr, yyvsp[-1].arg_mode, 0);
		  yyval.modals_ins_outs.outs->append(out);
	       }
	       yyval.modals_ins_outs.modals->append(new modal_param(in,out));
	    }
break;
case 174:
{
	       param_element *in = NULL, *out = NULL;
	       if ((current_mode == MODE_IN) || 
		   (current_mode == MODE_INOUT)) {
		  in = new param_element (yyvsp[0].type_eptr, 
					  yyvsp[-1].arg_mode, 
					  yyvsp[-3].modals_ins_outs.modals->length());
		  if (!yyvsp[-3].modals_ins_outs.ins)
		     yyvsp[-3].modals_ins_outs.ins = new parameter_list(TYPE_PARAM_LIST);
		  yyvsp[-3].modals_ins_outs.ins->append(in);
	       }
	       if ((current_mode == MODE_OUT) || 
		   (current_mode == MODE_INOUT)) {
		  out = new param_element (yyvsp[0].type_eptr, 
					  yyvsp[-1].arg_mode, 
					  yyvsp[-3].modals_ins_outs.modals->length());
		  if (!yyvsp[-3].modals_ins_outs.outs)
		     yyvsp[-3].modals_ins_outs.outs = new parameter_list(TYPE_PARAM_LIST);
		  yyvsp[-3].modals_ins_outs.outs->append(out);
	       }
	       yyvsp[-3].modals_ins_outs.modals->append(new modal_param(in,out));
	       yyval.modals_ins_outs = yyvsp[-3].modals_ins_outs;
	    }
break;
case 175:
{
	       param_element *in = NULL, *out = NULL;
	       if ((current_mode == MODE_IN) || 
		   (current_mode == MODE_INOUT)) {
		  in = new param_element(yyvsp[0].type_eptr, 
					 current_mode, 
					 yyvsp[-2].modals_ins_outs.modals->length());
		  yyvsp[-2].modals_ins_outs.ins->append(in);
	       }
	       if ((current_mode == MODE_OUT) || 
		   (current_mode == MODE_INOUT)) {
		  out = new param_element(yyvsp[0].type_eptr, 
					  current_mode, 
					  yyvsp[-2].modals_ins_outs.modals->length());
		  yyvsp[-2].modals_ins_outs.outs->append(out);
	       }
	       yyvsp[-2].modals_ins_outs.modals->append(new modal_param(in,out));
	       yyval.modals_ins_outs = yyvsp[-2].modals_ins_outs;
	    }
break;
case 176:
{ 
	       yyval.modals_ins_outs.ins = NULL; 
	       yyval.modals_ins_outs.outs = NULL; 
	       yyval.modals_ins_outs.modals = NULL; 
	    }
break;
case 177:
{ yyval.modals_ins_outs = yyvsp[-4].modals_ins_outs; }
break;
case 178:
{ yyval.modals_ins_outs = yyvsp[-3].modals_ins_outs; }
break;
case 179:
{ yyval.arg_mode = current_mode = MODE_IN; }
break;
case 180:
{ yyval.arg_mode = current_mode = MODE_OUT; }
break;
case 181:
{ yyval.arg_mode = current_mode = MODE_INOUT; }
break;
case 182:
{ 
	       yyval.arg_mode = current_mode = MODE_UNKNOWN; 
	       report_error("error 3",
			    "expected In/Out/InOut for Call parameter",
			    NULL);
	    }
break;
case 183:
{ in_names_sect = TRUE; }
break;
case 184:
{ in_names_sect = FALSE; }
break;
case 185:
{ in_op_def_sect = TRUE; }
break;
case 186:
{ in_op_def_sect = FALSE; }
break;
case 187:
{ nested_constr_lev++; }
break;
case 188:
{ yyval.bufoffset = yyvsp[0].string_bufoffset_sym_ont.bufoffset; }
break;
case 189:
{ yyval.bufoffset = yyvsp[0].string_bufoffset.bufoffset; }
break;
case 190:
{ yyval.bufoffset = yyvsp[0].string_bufoffset.bufoffset; }
break;
case 191:
{ yyval.bufoffset = yyvsp[0].string_bufoffset.bufoffset; }
break;
case 192:
{ yyval.bufoffset = yyvsp[0].string_bufoffset.bufoffset; }
break;
case 193:
{ yyval.bufoffset = yyvsp[0].string_bufoffset.bufoffset; }
break;
case 194:
{ yyval.bufoffset = yyvsp[0].string_bufoffset.bufoffset; }
break;
case 195:
{ yyval.bufoffset = yyvsp[0].string_bufoffset.bufoffset; }
break;
case 196:
{ yyval.bufoffset = yyvsp[0].string_bufoffset.bufoffset; }
break;
case 198:
{ yyval.bufoffset = yyvsp[0].septr_bufoffset_lptr.bufoffset; }
break;
case 269:
{
	       typedef_seen = FALSE;
	       control_seen = FALSE;
	       data_seen = FALSE;
	       dump_expbuf(yyvsp[0].bufoffset);
	   }
break;
case 270:
{
	       link * tmplinkptr;

	       yyvsp[-1].decl_list->reset();
	       while (yyvsp[-1].decl_list->next(tmplinkptr)) {
		 act_decl
		 (
			 yyvsp[-2].ieptr_cdt_bufoffset.is_control, 
			 yyvsp[-2].ieptr_cdt_bufoffset.is_data,
			 yyvsp[-2].ieptr_cdt_bufoffset.is_typedef,
			 yyvsp[-2].ieptr_cdt_bufoffset.ieptr,
			 (decl_element*)tmplinkptr
		  );
	       }
	       typedef_seen = FALSE;
	       control_seen = FALSE;
	       data_seen = FALSE;
	       dump_expbuf(yyvsp[0].bufoffset);
	   }
break;
case 292:
{
	      yyval.ieptr_cdt_bufoffset.bufoffset =  yyvsp[0].bufoffset;
	      yyval.ieptr_cdt_bufoffset.is_typedef = FALSE;
	      yyval.ieptr_cdt_bufoffset.is_control = FALSE;
	      yyval.ieptr_cdt_bufoffset.is_data =    FALSE;
	      yyval.ieptr_cdt_bufoffset.ieptr =      NULL;
	    }
break;
case 293:
{
	      yyval.ieptr_cdt_bufoffset.bufoffset =  yyvsp[0].bufoffset;
	      yyval.ieptr_cdt_bufoffset.is_typedef = FALSE;
	      yyval.ieptr_cdt_bufoffset.is_control = FALSE;
	      yyval.ieptr_cdt_bufoffset.is_data =    FALSE;
	      yyval.ieptr_cdt_bufoffset.ieptr =      NULL;
	    }
break;
case 294:
{
	      yyval.ieptr_cdt_bufoffset.bufoffset =  yyvsp[0].bufoffset;
	      yyval.ieptr_cdt_bufoffset.is_typedef = FALSE;
	      yyval.ieptr_cdt_bufoffset.is_control = FALSE;
	      yyval.ieptr_cdt_bufoffset.is_data =    FALSE;
	      yyval.ieptr_cdt_bufoffset.ieptr =      NULL;
	    }
break;
case 295:
{
	      yyval.ieptr_cdt_bufoffset.bufoffset =  yyvsp[0].bufoffset;
	      yyval.ieptr_cdt_bufoffset.is_typedef = FALSE;
	      yyval.ieptr_cdt_bufoffset.is_control = FALSE;
	      yyval.ieptr_cdt_bufoffset.is_data =    FALSE;
	      yyval.ieptr_cdt_bufoffset.ieptr =      NULL;
	    }
break;
case 296:
{
	      yyval.ieptr_cdt_bufoffset = yyvsp[0].ieptr_cdt_bufoffset;
	    }
break;
case 297:
{
	      yyval.ieptr_cdt_bufoffset.bufoffset =  yyvsp[0].bufoffset;
	      yyval.ieptr_cdt_bufoffset.is_typedef = FALSE;
	      yyval.ieptr_cdt_bufoffset.is_control = FALSE;
	      yyval.ieptr_cdt_bufoffset.is_data =    FALSE;
	      yyval.ieptr_cdt_bufoffset.ieptr =      NULL;
	    }
break;
case 298:
{
	      yyval.ieptr_cdt_bufoffset.bufoffset =  yyvsp[0].bufoffset;
	      yyval.ieptr_cdt_bufoffset.is_typedef = FALSE;
	      yyval.ieptr_cdt_bufoffset.is_control = FALSE;
	      yyval.ieptr_cdt_bufoffset.is_data =    FALSE;
	      yyval.ieptr_cdt_bufoffset.ieptr =      NULL;
	    }
break;
case 299:
{
	      yyval.ieptr_cdt_bufoffset.bufoffset =  yyvsp[0].bufoffset;
	      yyval.ieptr_cdt_bufoffset.is_typedef = FALSE;
	      yyval.ieptr_cdt_bufoffset.is_control = FALSE;
	      yyval.ieptr_cdt_bufoffset.is_data =    FALSE;
	      yyval.ieptr_cdt_bufoffset.ieptr =      NULL;
	    }
break;
case 300:
{
	      yyval.ieptr_cdt_bufoffset.bufoffset =  yyvsp[0].bufoffset;
	      yyval.ieptr_cdt_bufoffset.is_typedef = FALSE;
	      yyval.ieptr_cdt_bufoffset.is_control = FALSE;
	      yyval.ieptr_cdt_bufoffset.is_data =    FALSE;
	      yyval.ieptr_cdt_bufoffset.ieptr =      NULL;
	    }
break;
case 301:
{
	      yyval.ieptr_cdt_bufoffset.bufoffset =  yyvsp[0].bufoffset;
	      yyval.ieptr_cdt_bufoffset.is_typedef = FALSE;
	      yyval.ieptr_cdt_bufoffset.is_control = FALSE;
	      yyval.ieptr_cdt_bufoffset.is_data =    FALSE;
	      yyval.ieptr_cdt_bufoffset.ieptr =      NULL;
	    }
break;
case 302:
{
	      yyval.ieptr_cdt_bufoffset.bufoffset =  yyvsp[0].bufoffset;
	      yyval.ieptr_cdt_bufoffset.is_typedef = FALSE;
	      yyval.ieptr_cdt_bufoffset.is_control = FALSE;
	      yyval.ieptr_cdt_bufoffset.is_data =    FALSE;
	      yyval.ieptr_cdt_bufoffset.ieptr =      NULL;
	    }
break;
case 303:
{
	      yyval.ieptr_cdt_bufoffset.bufoffset =  yyvsp[0].bufoffset;
	      yyval.ieptr_cdt_bufoffset.is_typedef = FALSE;
	      yyval.ieptr_cdt_bufoffset.is_control = FALSE;
	      yyval.ieptr_cdt_bufoffset.is_data =    FALSE;
	      yyval.ieptr_cdt_bufoffset.ieptr =      NULL;
	    }
break;
case 304:
{
	      yyval.ieptr_cdt_bufoffset.bufoffset =  yyvsp[0].bufoffset;
	      yyval.ieptr_cdt_bufoffset.is_typedef = FALSE;
	      yyval.ieptr_cdt_bufoffset.is_control = FALSE;
	      yyval.ieptr_cdt_bufoffset.is_data =    FALSE;
	      yyval.ieptr_cdt_bufoffset.ieptr =      NULL;
	    }
break;
case 305:
{
	   yyval.ieptr_cdt_bufoffset.bufoffset =  yyvsp[0].bufoffset;
	   yyval.ieptr_cdt_bufoffset.is_typedef = FALSE;
	   yyval.ieptr_cdt_bufoffset.is_control = FALSE;
	   yyval.ieptr_cdt_bufoffset.is_data =    FALSE;
	   yyval.ieptr_cdt_bufoffset.ieptr =      NULL;
	 }
break;
case 306:
{
	   yyval.ieptr_cdt_bufoffset.bufoffset =  yyvsp[0].bufoffset;
	   yyval.ieptr_cdt_bufoffset.is_typedef = FALSE;
	   yyval.ieptr_cdt_bufoffset.is_control = FALSE;
	   yyval.ieptr_cdt_bufoffset.is_data =    FALSE;
	   yyval.ieptr_cdt_bufoffset.ieptr =      NULL;
	 }
break;
case 307:
{
        yyval.ieptr_cdt_bufoffset.bufoffset =  yyvsp[0].bufoffset;
        yyval.ieptr_cdt_bufoffset.is_typedef = TRUE;
        yyval.ieptr_cdt_bufoffset.is_control = FALSE;
        yyval.ieptr_cdt_bufoffset.is_data =    FALSE;
        yyval.ieptr_cdt_bufoffset.ieptr =      NULL;
	typedef_seen = TRUE;
      }
break;
case 308:
{
        yyval.ieptr_cdt_bufoffset.bufoffset =  yyvsp[0].bufoffset;
        yyval.ieptr_cdt_bufoffset.is_typedef = FALSE;
        yyval.ieptr_cdt_bufoffset.is_control = FALSE;
        yyval.ieptr_cdt_bufoffset.is_data =    FALSE;
        yyval.ieptr_cdt_bufoffset.ieptr =      NULL;
      }
break;
case 309:
{
        yyval.ieptr_cdt_bufoffset.bufoffset =  yyvsp[0].bufoffset;
        yyval.ieptr_cdt_bufoffset.is_typedef = FALSE;
        yyval.ieptr_cdt_bufoffset.is_control = FALSE;
        yyval.ieptr_cdt_bufoffset.is_data =    FALSE;
        yyval.ieptr_cdt_bufoffset.ieptr =      NULL;
      }
break;
case 310:
{
        yyval.ieptr_cdt_bufoffset.bufoffset =  yyvsp[0].bufoffset;
        yyval.ieptr_cdt_bufoffset.is_typedef = FALSE;
        yyval.ieptr_cdt_bufoffset.is_control = FALSE;
        yyval.ieptr_cdt_bufoffset.is_data =    FALSE;
        yyval.ieptr_cdt_bufoffset.ieptr =      NULL;
      }
break;
case 311:
{
        yyval.ieptr_cdt_bufoffset.bufoffset =  yyvsp[0].bufoffset;
        yyval.ieptr_cdt_bufoffset.is_typedef = FALSE;
        yyval.ieptr_cdt_bufoffset.is_control = FALSE;
        yyval.ieptr_cdt_bufoffset.is_data =    FALSE;
        yyval.ieptr_cdt_bufoffset.ieptr =      NULL;
      }
break;
case 315:
{ yyval.bufoffset = yyvsp[0].bufoffset;
             typedef_seen = FALSE;
           }
break;
case 316:
{ yyval.bufoffset = yyvsp[-3].bufoffset;}
break;
case 323:
{
	    /* here is where we close the scope that was opened if
	     * this declaration contained an arg list. c.f. declarator2 */

	    if (yyvsp[-1].has_func) act_scope_close();
	  }
break;
case 326:
{ yyval.has_func = yyvsp[0].has_func_decl_eptr.has_func; }
break;
case 327:
{ yyval.has_func = FALSE; }
break;
case 328:
{ yyval.has_func = yyvsp[-2].has_func_decl_eptr.has_func; }
break;
case 329:
{ yyval.bufoffset = yyvsp[-4].bufoffset;}
break;
case 330:
{ yyval.bufoffset = yyvsp[-5].bufoffset;}
break;
case 331:
{ yyval.bufoffset = yyvsp[-1].bufoffset;}
break;
case 336:
{
	      yyval.decl_list = new list;
	      if (yyvsp[0].decl_eptr)
		 yyval.decl_list->append(yyvsp[0].decl_eptr);
	   }
break;
case 337:
{
	      if (yyvsp[0].decl_eptr)
		 yyvsp[-3].decl_list->append(yyvsp[0].decl_eptr);
	   }
break;
case 338:
{ yyval.decl_eptr = yyvsp[0].has_func_decl_eptr.decl_eptr; }
break;
case 339:
{ yyval.decl_eptr = yyvsp[-2].has_func_decl_eptr.decl_eptr; }
break;
case 340:
{
	      yyval.has_func_decl_eptr = yyvsp[0].has_func_decl_eptr;
	   }
break;
case 341:
{
	      yyval.has_func_decl_eptr = yyvsp[0].has_func_decl_eptr;
	   }
break;
case 342:
{
	      yyval.has_func_decl_eptr.has_func = FALSE;
	      yyval.has_func_decl_eptr.decl_eptr = new decl_element(yyvsp[-1].string_bufoffset_sym_ont.string);
	      last_deptr = yyval.has_func_decl_eptr.decl_eptr;
	   }
break;
case 343:
{
	      yyval.has_func_decl_eptr = yyvsp[-1].has_func_decl_eptr;
	   }
break;
case 344:
{
	      yyval.has_func_decl_eptr = yyvsp[-2].has_func_decl_eptr;
	   }
break;
case 345:
{
	      yyval.has_func_decl_eptr = yyvsp[-3].has_func_decl_eptr;
	   }
break;
case 346:
{ 
	     yyval.has_func_decl_eptr.decl_eptr = NULL; 
	     yyval.has_func_decl_eptr.has_func = TRUE;
	     act_fundecl(); 
	   }
break;
case 347:
{ 
	     yyval.has_func_decl_eptr.decl_eptr = NULL; 
	     yyval.has_func_decl_eptr.has_func = TRUE;
	     act_fundecl(); 
	   }
break;
case 348:
{ 
	     yyval.has_func_decl_eptr.decl_eptr = NULL; 
	     yyval.has_func_decl_eptr.has_func = TRUE;
	     act_fundecl(); 
	   }
break;
case 379:
{
	      act_decl
	      (
		      yyvsp[-2].ieptr_cdt_bufoffset.is_control, 
		      yyvsp[-2].ieptr_cdt_bufoffset.is_data,
		      yyvsp[-2].ieptr_cdt_bufoffset.is_typedef,
		      yyvsp[-2].ieptr_cdt_bufoffset.ieptr,
		      yyvsp[0].has_func_decl_eptr.decl_eptr 
	       );
	   }
break;
case 390:
{ yyval.bufoffset = yyvsp[-1].bufoffset;}
break;
case 391:
{ yyval.bufoffset = yyvsp[-2].bufoffset;}
break;
case 408:
{ dump_expbuf(yyvsp[0].bufoffset); }
break;
case 410:
{ dump_expbuf(yyvsp[0].bufoffset); }
break;
case 411:
{ yyval.bufoffset = yyvsp[-5].bufoffset;}
break;
case 412:
{ dump_expbuf(yyvsp[0].bufoffset); }
break;
case 413:
{ yyval.bufoffset = yyvsp[-4].bufoffset;}
break;
case 414:
{ dump_expbuf(yyvsp[0].bufoffset);}
break;
case 415:
{ dump_expbuf(yyvsp[0].bufoffset); }
break;
case 416:
{ dump_expbuf(yyvsp[0].bufoffset); }
break;
case 417:
{ dump_expbuf(yyvsp[0].bufoffset); }
break;
case 418:
{ dump_expbuf(yyvsp[0].bufoffset); yyval.bufoffset = yyvsp[0].bufoffset;}
break;
case 425:
{ dump_expbuf(yyvsp[0].bufoffset); }
break;
case 426:
{ dump_expbuf(yyvsp[0].bufoffset); }
break;
case 429:
{ dump_expbuf(yyvsp[0].bufoffset); }
break;
case 431:
{ dump_expbuf(yyvsp[0].bufoffset); }
break;
case 432:
{ dump_expbuf(yyvsp[0].bufoffset); }
break;
case 434:
{ dump_expbuf(yyvsp[0].bufoffset); }
break;
case 435:
{ dump_expbuf(yyvsp[0].bufoffset); }
break;
case 436:
{ dump_expbuf(yyvsp[0].bufoffset); }
break;
case 438:
{ dump_expbuf(yyvsp[0].bufoffset);}
break;
case 440:
{ dump_expbuf(yyvsp[0].bufoffset);}
break;
case 442:
{ dump_expbuf(yyvsp[0].bufoffset);}
break;
case 444:
{ dump_expbuf(yyvsp[0].bufoffset);}
break;
case 446:
{ dump_expbuf(yyvsp[0].bufoffset);}
break;
case 448:
{ dump_expbuf(yyvsp[0].bufoffset);}
break;
case 450:
{ dump_expbuf(yyvsp[0].bufoffset);}
break;
case 452:
{ dump_expbuf(yyvsp[0].bufoffset); yyval.bufoffset = yyvsp[-3].bufoffset;}
break;
case 453:
{ dump_expbuf(yyvsp[0].bufoffset);}
break;
case 454:
{ dump_expbuf(yyvsp[0].bufoffset);}
break;
case 455:
{ dump_expbuf(yyvsp[0].bufoffset);}
break;
case 456:
{ dump_expbuf(yyvsp[0].bufoffset); }
break;
case 457:
{
	    fprintf(out,"\n");
	    fclose(out);
	    ieptr = global.anon_interfptr; /* generate only    */
				 	   /*knows about ieptr */
	    global.anon_interfptr->constant_gen->generate(prim);
	    fprintf(prim,"\n");
	    fclose(prim);
          }
break;
case 462:
{
	    /* here is where we close the scope that was opened if
	     * this declaration contained an arg list. c.f. declarator2 */

	    if (scopedepth > 1) act_scope_close();
	  }
break;
case 464:
{
	      act_decl
	      (
		      FALSE, 
		      FALSE,
		      FALSE,
		      NULL,
		      yyvsp[0].has_func_decl_eptr.decl_eptr 
			? yyvsp[0].has_func_decl_eptr.decl_eptr 
			: last_deptr
	       );
	   }
break;
case 465:
{
	      act_decl
	      (
		      yyvsp[-1].ieptr_cdt_bufoffset.is_control, 
		      yyvsp[-1].ieptr_cdt_bufoffset.is_data,
		      yyvsp[-1].ieptr_cdt_bufoffset.is_typedef,
		      yyvsp[-1].ieptr_cdt_bufoffset.ieptr,
		      yyvsp[0].has_func_decl_eptr.decl_eptr 
			? yyvsp[0].has_func_decl_eptr.decl_eptr 
			: last_deptr
	       );
	   }
break;
case 469:
{ if (changeable_mode) IdentMode = MODE_IDENT; }
break;
case 470:
{ IdentMode = MODE_LOOKUP; }
break;
case 471:
{ 
	      act_decl(control_seen,
		       data_seen,
		       typedef_seen,
		       ieptr,
		       last_deptr); 
	      act_scope_open(); 
	   }
break;
case 472:
{ act_scope_open(); }
break;
case 473:
{ act_scope_close(); }
break;
case 474:
{ act_config(); }
break;
case 475:
{ no_labels_now++; }
break;
case 476:
{ no_labels_now--; }
break;
case 477:
{
	    yyval.ieptr_cdt_bufoffset.bufoffset = yyvsp[0].istypeid_teptr_bufoffset.bufoffset;
	    yyval.ieptr_cdt_bufoffset.is_typedef = FALSE;
	    yyval.ieptr_cdt_bufoffset.is_control = FALSE;
	    yyval.ieptr_cdt_bufoffset.is_data = FALSE;
	    yyval.ieptr_cdt_bufoffset.ieptr = NULL;
	 }
break;
case 478:
{
	    yyval.ieptr_cdt_bufoffset.bufoffset = yyvsp[0].ieptr_bufoffset.bufoffset;
	    yyval.ieptr_cdt_bufoffset.is_typedef = FALSE;
	    yyval.ieptr_cdt_bufoffset.is_control = TRUE;
	    yyval.ieptr_cdt_bufoffset.is_data = FALSE;
	    yyval.ieptr_cdt_bufoffset.ieptr = yyvsp[0].ieptr_bufoffset.ieptr;
	    ieptr = yyvsp[0].ieptr_bufoffset.ieptr;
	    control_seen = TRUE;
	 }
break;
case 479:
{
	    yyval.ieptr_cdt_bufoffset.bufoffset = yyvsp[0].ieptr_bufoffset.bufoffset;
	    yyval.ieptr_cdt_bufoffset.is_typedef = FALSE;
	    yyval.ieptr_cdt_bufoffset.is_control = FALSE;
	    yyval.ieptr_cdt_bufoffset.is_data = TRUE;
	    yyval.ieptr_cdt_bufoffset.ieptr = yyvsp[0].ieptr_bufoffset.ieptr;
	    ieptr = yyvsp[0].ieptr_bufoffset.ieptr;
	    data_seen = TRUE;
	 }
break;
case 480:
{ 
	    char tmpcharbuf[50];

	    if (global.gen_log) {
		 sprintf(tmpcharbuf,"BINDING %s",yyvsp[0].string);
		 gen_log_statement(out, 
                                   1,
				   tmpcharbuf,
				   GETINSTNAME,
				   GETEXCEPTIONLAB);
            }
	    FPRINTF(out,"}   /* End of bind statement */\n\n"); 
	    active_instances_ptr->delete_active_instance();
	 }
break;
case 481:
{ 
	    FPRINTF(out,"}   /* End of unbind statement */\n\n");
	    active_instances_ptr->delete_active_instance();
	 }
break;
case 482:
{ 
	    FPRINTF(out,"}   /* End of abortinst statement */\n\n");
	    active_instances_ptr->delete_active_instance();
	 }
break;
case 483:
{ 
	    FPRINTF(out,"}   /* End of flushinst statement */\n\n");
	    active_instances_ptr->delete_active_instance();
	 }
break;
case 484:
{ 
	    FPRINTF(out,"}   /* End of encode statement */\n\n");
	    active_instances_ptr->delete_active_instance();
	 }
break;
case 485:
{ 
	    FPRINTF(out,"}   /* End of decode statement */\n\n");
	    active_instances_ptr->delete_active_instance();
	 }
break;
case 486:
{ 
	    FPRINTF(out,"}   /* End of call statement */\n\n");
	    active_instances_ptr->delete_active_instance();
	 }
break;
case 487:
{ 
	    FPRINTF(out,"}   /* End of give statement */\n\n");
	    active_instances_ptr->delete_active_instance();
	 }
break;
case 488:
{ 
	    FPRINTF(out,"\n}   /* End of accept statement */\n\n");
	    active_instances_ptr->delete_active_instance();
	 }
break;
case 492:
{ 
	      gen_exception_header(out,
				   GETEXCEPTIONLAB,
				   GETOKLAB);
	      gen_default_handlers(out,MASK_ZERO,GETOKLAB);
	      clear_expbuf(yyvsp[0].bufoffset);
	    }
break;
case 494:
{ 
	      active_instance_element *active_inst;
	      char *oklab, *errlab;

	      oklab = gen_exception_label();
	      errlab = gen_exception_label();
	      active_inst = new active_instance_element(
				   (instance_element*)yyvsp[0].septr_bufoffset_lptr.lptr, 
				   errlab,
				   oklab);
	      active_instances_ptr->insert(active_inst);
	      FPRINTF(out,"\n\n{   /* bind statement */\n");
	    }
break;
case 495:
{ 
	      inst_type t;
	      t = ((instance_element*)yyvsp[-6].septr_bufoffset_lptr.lptr)->get_type();
	      INDENT(out,1);
	      FPRINTF(out,
		      "if ( __ROr_STDinit_instance(&%s,&%s,%s) ||\n",
		       yyvsp[-6].septr_bufoffset_lptr.septr->get_name(),
		       global.information_name,
		       (t==TYPE_CONTROL)
			  ?"__ROm_class_GIVEACCEPT"
			  :((t==TYPE_DATA)
			     ?"__ROm_class_ENCODEDECODE"
			     :"__ROm_class_NOCLASS"));
	      INDENT(out,3);
	      FPRINTF(out, 
			"__ROr_STD%s(%s",
			yyvsp[-8].string,yyvsp[-6].septr_bufoffset_lptr.septr->get_name());
	      if (!strcmp(yyvsp[-8].string,"Bind_addr")) {
		 *(expbuf+yyvsp[0].bufoffset) = ',';
		 fprintf(out,"%s 0) )\n\n",expbuf+yyvsp[-4].bufoffset);
	      }
	      else
		 fprintf(out,"%s )\n\n",expbuf+yyvsp[-4].bufoffset);
	      gen_exception_goto(out,2,GETINSTNAME,
				 GETEXCEPTIONLAB);
	      clear_expbuf(yyvsp[0].bufoffset);
	    }
break;
case 496:
{
	      gen_exception_header(out,
				   GETEXCEPTIONLAB,
				   GETOKLAB);
	      gen_default_handlers(out,MASK_ZERO,GETOKLAB);
	      clear_expbuf(yyvsp[0].bufoffset);
	    }
break;
case 498:
{
	      gen_activateinst_log(out, 
				   "unbind", 
				   (instance_element*)yyvsp[-1].septr_bufoffset_lptr.lptr);
	      if (global.gen_log)
		   gen_log_statement(out,1,"UNBINDING",GETINSTNAME,GETEXCEPTIONLAB);
              INDENT(out,1);
	      fprintf(out, "if ( __ROr_STDunbind(%s))\n",yyvsp[-1].septr_bufoffset_lptr.septr->get_name()); 
	      gen_exception_goto(out,2,GETINSTNAME,
				 GETEXCEPTIONLAB);
	      clear_expbuf(yyvsp[0].bufoffset);
	    }
break;
case 499:
{
	      gen_exception_header(out,
				   GETEXCEPTIONLAB,
				   GETOKLAB);
	      gen_default_handlers(out,MASK_ZERO,GETOKLAB);
	      clear_expbuf(yyvsp[0].bufoffset);
	    }
break;
case 500:
{
	      gen_activateinst_log(out, 
				   "abort", 
				   (instance_element*)yyvsp[-1].septr_bufoffset_lptr.lptr);
	      if (global.gen_log)
		   gen_log_statement(out,1,"ABORTING",GETINSTNAME,GETEXCEPTIONLAB);
	      clear_expbuf(yyvsp[0].bufoffset);
	    }
break;
case 501:
{
	      gen_exception_header(out,
				   GETEXCEPTIONLAB,
				   GETOKLAB);
	      gen_default_handlers(out,MASK_ZERO,GETOKLAB);
	      clear_expbuf(yyvsp[0].bufoffset);
	    }
break;
case 503:
{
	      gen_activateinst_log(out, 
				   "flush", 
				   (instance_element*)yyvsp[-1].septr_bufoffset_lptr.lptr);
	      if (global.gen_log)
		   gen_log_statement(out,1,"FLUSHING",GETINSTNAME,GETEXCEPTIONLAB);
	      INDENT(out,1);
	      FPRINTF(out, "if ( __ROr_STDflush_instance(%s))\n",
			       yyvsp[-1].septr_bufoffset_lptr.septr->get_name());
	      gen_exception_goto(out,3,GETINSTNAME,
				 GETEXCEPTIONLAB);
	      INDENT(out,1);
	      FPRINTF(out,"V(%s->exclusion);\n",GETINSTNAME);
	      clear_expbuf(yyvsp[0].bufoffset);
	    }
break;
case 504:
{
              do_encode_stmt();
	    }
break;
case 506:
{
              do_encode_stmt2((instance_element *)yyvsp[0].septr_bufoffset_lptr.lptr);
	      clear_expbuf(yyvsp[0].septr_bufoffset_lptr.bufoffset);
	    }
break;
case 507:
{
               do_type_stmt(yyvsp[-2].type_eptr,yyvsp[-4].val_len.val,yyvsp[-4].val_len.len);
	       clear_expbuf(yyvsp[0].bufoffset);
	    }
break;
case 508:
{
	      yyval.type_eptr = yyvsp[-1].istypeid_teptr_bufoffset.teptr;
	      if ((yyvsp[-1].istypeid_teptr_bufoffset.is_typeid)) {
		 int found = FALSE;
	         link *lptr;
	         link *lptr2;
		 active_instance_element *aieptr;
		 instance_element *instptr;
		 interface_element *interfptr;
		 symbol_list *tptr;

	         active_instances_ptr->reset();
		 while (!found && active_instances_ptr->next(lptr)) {
		    aieptr = (active_instance_element*)lptr;
		    instptr = aieptr->get_inst_element_ptr();
		    if (instptr) {
		       interfptr = instptr->get_interf();
		       if (interfptr) {
			  tptr = interfptr->types_ptr;
			  if (tptr) {
			     tptr->reset();
			     if (tptr->search(yyvsp[-1].istypeid_teptr_bufoffset.teptr->get_name(),lptr2))
				found = TRUE;
			  }
		       }
		    }
		 }
		 if (!found)
		    report_error("error 17",
				 "\"%s\" is not a type for any active instance",
				 yyvsp[-1].istypeid_teptr_bufoffset.teptr->get_name());
	      }
	      else {   /* is ELROS_BASE_TYPE */
		 yyvsp[-1].istypeid_teptr_bufoffset.teptr->set_interf(global.anon_interfptr);
		 global.anon_interfptr->constant_gen->add_encoding(yyvsp[-1].istypeid_teptr_bufoffset.teptr);
	      }
	    }
break;
case 509:
{
	      gen_exception_header(out,
				   GETEXCEPTIONLAB,
				   GETOKLAB);
	      gen_default_handlers(out,MASK_ZERO,GETOKLAB);
	    }
break;
case 511:
{ 
	       do_decode_stmt4(yyvsp[-2].iswrapped);
	       clear_expbuf(yyvsp[0].bufoffset); 
	    }
break;
case 512:
{ clear_expbuf(yyvsp[0].bufoffset); }
break;
case 513:
{

	      gen_startrec(out, 
			    "decode", 
			    "ENTERING decode statement",
			    (instance_element*)yyvsp[0].septr_bufoffset_lptr.lptr);
	      clear_expbuf(yyvsp[0].septr_bufoffset_lptr.bufoffset);
	    }
break;
case 514:
{ yyval.iswrapped = yyvsp[0].iswrapped; }
break;
case 515:
{ yyval.iswrapped = yyvsp[-1].iswrapped && yyvsp[0].iswrapped; }
break;
case 516:
{
	       do_ontype_stmt(yyvsp[-6].istypeid_teptr_bufoffset.is_typeid,
			      yyvsp[-6].istypeid_teptr_bufoffset.teptr,
			      yyvsp[-1].val_len.val,
			      yyvsp[-1].val_len.len);
	       clear_expbuf(yyvsp[0].bufoffset);
	    }
break;
case 517:
{
	       INDENT(out,1);
	       FPRINTF(out,"break;\n");
	       FPRINTF(out,"}   /* End of ontype_clause */\n");
               yyval.iswrapped = (yyvsp[-8].istypeid_teptr_bufoffset.teptr->get_leading_tags()->length() > 0);
	    }
break;
case 518:
{
	      gen_exception_header(out,
				   GETEXCEPTIONLAB,
				   GETOKLAB);
	      gen_default_handlers(out,MASK_ZERO,GETOKLAB);
	      clear_expbuf(yyvsp[0].bufoffset);
	    }
break;
case 520:
{ 
		  if (yyvsp[-1].oeptr_insteptr.oeptr)
		     do_call_stmt1_a(yyvsp[-1].oeptr_insteptr.oeptr);
	       }
break;
case 521:
{ if (yyvsp[-6].oeptr_insteptr.oeptr) act_scope_close(); }
break;
case 522:
{
		 if (yyvsp[-8].oeptr_insteptr.oeptr)
		    do_call_stmt1_b(yyvsp[-8].oeptr_insteptr.oeptr,
				    yyvsp[-8].oeptr_insteptr.insteptr,
				    yyvsp[-3].arg_list_ptr,
				    yyvsp[-7].string1_2.string1,
				    yyvsp[-7].string1_2.string2);
		 clear_expbuf(yyvsp[0].bufoffset);
	       }
break;
case 523:
{
	      do_give_stmt();
	    }
break;
case 525:
{
	      do_give2(yyvsp[0].septr_bufoffset_lptr.septr,(instance_element*)yyvsp[0].septr_bufoffset_lptr.lptr);
	      clear_expbuf(yyvsp[0].septr_bufoffset_lptr.bufoffset);
	    }
break;
case 526:
{ 
	      parameter_list *pp;

	      if (yyvsp[-1].operation_eptr) {
		 act_operation(yyvsp[-1].operation_eptr); 
		 if ((pp = yyvsp[-1].operation_eptr->get_params_ptr()) && 
					  pp->get_pos_or_named())
		     global.kind_of_args = pp->get_pos_or_named();
		 else
		     global.kind_of_args = TYPE_PARAM_LIST;
	      }
	    }
break;
case 527:
{
	      if (yyvsp[-9].operation_eptr) {
		 if (yyvsp[-9].operation_eptr->get_kind_op() == KIND_CALL) {
		    yyvsp[-9].operation_eptr->get_res_part()->process_arguments(yyvsp[-4].arg_list_ptr);
		    yyvsp[-9].operation_eptr->get_res_part()->gen_give(out,
						 yyvsp[-8].string1_2.string1,
						 yyvsp[-8].string1_2.string2,
						 yyvsp[-4].arg_list_ptr,
						 GETEXCEPTIONLAB,
						 FALSE);

		 }
		 else {
		    yyvsp[-9].operation_eptr->process_arguments(yyvsp[-4].arg_list_ptr);
		    yyvsp[-9].operation_eptr->gen_give(out,
				 yyvsp[-8].string1_2.string1,
				 yyvsp[-8].string1_2.string2,
				 yyvsp[-4].arg_list_ptr,
				 GETEXCEPTIONLAB,
				 FALSE);
		 }
	      }
	      clear_expbuf(yyvsp[0].bufoffset);
	    }
break;
case 528:
{
	    yyval.string1_2.string1 = NULL;
	    yyval.string1_2.string2 = NULL;
	 }
break;
case 529:
{
	    char temp;
	    temp = *(expbuf+yyvsp[0].bufoffset);
	    *(expbuf+yyvsp[0].bufoffset) = '\0';
	    yyval.string1_2.string1 = (char*)malloc(strlen(expbuf+yyvsp[-2].bufoffset)+1);
	    strcpy(yyval.string1_2.string1,yyvsp[-2].bufoffset+expbuf);
	    *(expbuf+yyvsp[0].bufoffset) = temp;

	    yyval.string1_2.string2 = NULL;
	    clear_expbuf(yyvsp[0].bufoffset);
	 }
break;
case 530:
{
	    char temp;
	    temp = *(expbuf+yyvsp[-2].bufoffset);
	    *(expbuf+yyvsp[-2].bufoffset) = '\0';
	    yyval.string1_2.string1 = (char*)malloc(strlen(expbuf+yyvsp[-3].bufoffset)+1);
	    strcpy(yyval.string1_2.string1,yyvsp[-3].bufoffset+expbuf);
	    *(expbuf+yyvsp[-2].bufoffset) = temp;

	    yyval.string1_2.string2 = NULL;
	    clear_expbuf(yyvsp[0].bufoffset);
	 }
break;
case 531:
{
	    char temp;
	    temp = *(expbuf+yyvsp[-3].bufoffset);
	    *(expbuf+yyvsp[-3].bufoffset) = '\0';
	    yyval.string1_2.string1 = (char*)malloc(strlen(expbuf+yyvsp[-4].bufoffset)+1);
	    strcpy(yyval.string1_2.string1,yyvsp[-4].bufoffset+expbuf);
	    *(expbuf+yyvsp[-3].bufoffset) = temp;

	    temp = *(expbuf+yyvsp[0].bufoffset);
	    *(expbuf+yyvsp[0].bufoffset) = '\0';
	    yyval.string1_2.string2 = (char*)malloc(strlen(expbuf+yyvsp[-2].bufoffset)+1);
	    strcpy(yyval.string1_2.string2,yyvsp[-2].bufoffset+expbuf);
	    *(expbuf+yyvsp[0].bufoffset) = temp;
	    clear_expbuf(yyvsp[0].bufoffset);
	 }
break;
case 532:
{
	    char temp;

	    yyval.string1_2.string1 = NULL;

	    temp = *(expbuf+yyvsp[0].bufoffset);
	    *(expbuf+yyvsp[0].bufoffset) = '\0';
	    yyval.string1_2.string2 = (char*)malloc(strlen(expbuf+yyvsp[-2].bufoffset)+1);
	    strcpy(yyval.string1_2.string2,yyvsp[-2].bufoffset+expbuf);
	    *(expbuf+yyvsp[0].bufoffset) = temp;
	    clear_expbuf(yyvsp[0].bufoffset);
	 }
break;
case 533:
{ 
	      FPRINTF(out,"\n\n   /* exception clause */\n");
	      gen_exception_header(out, GETEXCEPTIONLAB, GETOKLAB);
	      clear_expbuf(yyvsp[0].bufoffset);
	    }
break;
case 534:
{ 
	       dump_expbuf(yyvsp[0].bufoffset);
	    }
break;
case 535:
{ 
	      gen_default_handlers(out, yyvsp[-2].mask, GETOKLAB);
	      FPRINTF(out,"   /* End of exception clause */\n");
	      dump_expbuf(yyvsp[0].bufoffset);
	    }
break;
case 536:
{ yyval.mask = yyvsp[0].mask; }
break;
case 537:
{ yyval.mask = (enum Handler_Masks)(yyvsp[-1].mask | yyvsp[0].mask); }
break;
case 538:
{ 
	      yyval.mask = MASK_COM_ERROR;
	      FPRINTF(out,"\n      break;");
              FPRINTF(out,"\n   /* End of com_error exception */\n\n");
	    }
break;
case 539:
{ 
	      yyval.mask = MASK_INTERNAL_ERROR;
	      FPRINTF(out,"\n      break;");
              FPRINTF(out,"\n   /* End of internal_error exception */\n\n");
	    }
break;
case 540:
{ 
	      yyval.mask = MASK_PROTOCOL_ERROR;
	      FPRINTF(out,"\n      break;");
              FPRINTF(out,"\n   /* End of protocol_error exception */\n\n");
	    }
break;
case 541:
{ 
	      yyval.mask = MASK_MISSING_OP;
	      FPRINTF(out,"\n      break;");
              FPRINTF(out,"\n   /* End of missing_op exception */\n\n");
	    }
break;
case 542:
{ 
	      yyval.mask = MASK_BAD_OP_ID;
	      FPRINTF(out,"\n      break;");
              FPRINTF(out,"\n   /* End of bad_op_id exception */\n\n");
	    }
break;
case 543:
{ 
	      yyval.mask = MASK_MISSING_ARG;
	      FPRINTF(out,"\n      break;");
              FPRINTF(out,"\n   /* End of missing_arg exception */\n\n");
	    }
break;
case 544:
{ 
	      yyval.mask = MASK_NAME_ERROR;
	      FPRINTF(out,"\n      break;");
              FPRINTF(out,"\n   /* End of name_error exception */\n\n");
	    }
break;
case 545:
{ 
	      yyval.mask = MASK_DONE;
	      FPRINTF(out,"\n      break;");
              FPRINTF(out,"\n   /* End of done exception */\n\n");
	    }
break;
case 546:
{ 
	      gen_exception_com_error(out,yyvsp[-2].string_bufoffset_sym_ont.string,yyvsp[-1].string);
	      clear_expbuf(yyvsp[0].bufoffset);
	    }
break;
case 547:
{ 
	      gen_exception_internal_error(out,yyvsp[-2].string_bufoffset_sym_ont.string,yyvsp[-1].string);
	      clear_expbuf(yyvsp[0].bufoffset);
	    }
break;
case 548:
{ 
	      gen_exception_protocol_error(out,yyvsp[-2].string_bufoffset_sym_ont.string,yyvsp[-1].string);
	      clear_expbuf(yyvsp[0].bufoffset);
	    }
break;
case 549:
{ yyval.string = NULL; }
break;
case 550:
{ yyval.string = yyvsp[0].string_bufoffset_sym_ont.string; }
break;
case 551:
{ 
	      gen_exception_missing_op(out,yyvsp[-1].string_bufoffset_sym_ont.string);
	      clear_expbuf(yyvsp[0].bufoffset);
	    }
break;
case 552:
{ 
	      FPRINTF(out,"   /* bad_op_id exception */");
	      gen_exception_bad_op_id(out,yyvsp[-1].string_bufoffset_sym_ont.string);
	      clear_expbuf(yyvsp[0].bufoffset);
	    }
break;
case 553:
{ 
	      gen_exception_missing_arg(out,yyvsp[-3].string_bufoffset_sym_ont.string,yyvsp[-1].string_bufoffset_sym_ont.string);
	      clear_expbuf(yyvsp[0].bufoffset);
	    }
break;
case 554:
{ 
	      gen_exception_name_error(out,yyvsp[-3].string_bufoffset_sym_ont.string,yyvsp[-1].string_bufoffset_sym_ont.string);
	      clear_expbuf(yyvsp[0].bufoffset);
	    }
break;
case 555:
{ 
              FPRINTF(out,"\n");
	      INDENT(out,1);
	      FPRINTF(out,"case __ROm_EXCEPTION_DONE:\n");
	      INDENT(out,2);
	      FPRINTF(out,"V(%s->exclusion);\n",GETINSTNAME);
	    }
break;
case 556:
{ 
	      gen_exception_header(out,
				   GETEXCEPTIONLAB,
				   GETOKLAB);
	      gen_default_handlers(out,MASK_ZERO,GETOKLAB);
	    }
break;
case 558:
{ 
	      gen_accept_end(out, yyvsp[-1].seen, GETEXCEPTIONLAB);
	      free((char*)yyvsp[-1].seen);
	    }
break;
case 559:
{ 
	      dump_expbuf(yyvsp[0].bufoffset); /* output RBRACE */
	    }
break;
case 560:
{ 
	      act_give_accept(yyvsp[-2].septr_bufoffset_lptr.septr);
	      fprintf(out,"{\n"); /* output LBRACE */
	      gen_accept_start(out,
			       (instance_element*)yyvsp[-2].septr_bufoffset_lptr.lptr,
			       yyvsp[-3].string1_2.string1,
			       yyvsp[-3].string1_2.string2,
			       FALSE);
	      clear_expbuf(yyvsp[0].bufoffset);
	    }
break;
case 561:
{
	    int ops;

	    ops = GETINTERF->optable_gen->operation_count();
	    yyval.seen = (boolean*)malloc(ops*sizeof(boolean));
	    for (int i=0; i< ops; i++)
	       yyval.seen[i] = FALSE;
	    yyval.seen[yyvsp[0].integer] = TRUE;

	 }
break;
case 562:
{
	    yyval.seen = yyvsp[-1].seen;
	    yyval.seen[yyvsp[0].integer] = TRUE;
	 }
break;
case 563:
{
	       parameter_list *pp;

	       if (yyvsp[0].operation_eptr) {
		  act_operation(yyvsp[0].operation_eptr); 
		  if ((pp = yyvsp[0].operation_eptr->get_params_ptr()) && 
					  pp->get_pos_or_named())
		      global.kind_of_args = pp->get_pos_or_named();
		  else
		      global.kind_of_args = TYPE_PARAM_LIST;
	       }
	    }
break;
case 564:
{
	       if (yyvsp[-7].operation_eptr) {
		  if (yyvsp[-7].operation_eptr->get_kind_op() == KIND_CALL) {
		     yyvsp[-7].operation_eptr->get_inv_part()->process_arguments(yyvsp[-3].arg_list_ptr);
		     yyvsp[-7].operation_eptr->get_inv_part()->gen_accept_on(out, 
					    yyvsp[-3].arg_list_ptr,
					    yyvsp[-3].arg_list_ptr->get_ellipsed(),
					    GETEXCEPTIONLAB,
					    TRUE);
		     yyval.integer = yyvsp[-7].operation_eptr->get_inv_part()->get_internal_number();

		  }
		  else {
		     yyvsp[-7].operation_eptr->process_arguments(yyvsp[-3].arg_list_ptr);
		     yyvsp[-7].operation_eptr->gen_accept_on(out, 
				   yyvsp[-3].arg_list_ptr,
				   yyvsp[-3].arg_list_ptr->get_ellipsed(),
				   GETEXCEPTIONLAB,
				   FALSE);
		     yyval.integer = yyvsp[-7].operation_eptr->get_internal_number();
		  }
	       }
	       clear_expbuf(yyvsp[0].bufoffset);
	    }
break;
case 565:
{
	       yyval.integer = yyvsp[-1].integer;
               fprintf(out,"\n");
	       INDENT(out,3);
	       FPRINTF(out,"break;\n");
               INDENT(out,2);
	       FPRINTF(out,"}   /* End of on_operation */\n");
	    }
break;
case 569:
{
	    if (yyval.arg_list_ptr->length())
	       yyval.arg_list_ptr->append(new argument((char*)NULL,
				       (char*)NULL,
				       (char*)NULL));
	 }
break;
case 570:
{
	    yyval.arg_list_ptr = new argument_list(global.kind_of_args);
	 }
break;
case 571:
{
	    yyvsp[-1].arg_list_ptr->append(new argument((char*)NULL,
				    (char*)NULL,
				    (char*)NULL));
	    yyval.arg_list_ptr = yyvsp[-1].arg_list_ptr;
	 }
break;
case 572:
{
	    yyval.arg_list_ptr = new argument_list(global.kind_of_args);
	    yyval.arg_list_ptr->set_ellipsed(TRUE);
	 }
break;
case 573:
{
	    yyvsp[-2].arg_list_ptr->set_ellipsed(TRUE);
	    yyval.arg_list_ptr = yyvsp[-2].arg_list_ptr;
	 }
break;
case 574:
{
	    yyval.arg_list_ptr = yyvsp[-2].arg_list_ptr;
	 }
break;
case 575:
{
	    yyval.arg_list_ptr = yyvsp[-1].arg_list_ptr;
	 }
break;
case 576:
{
	    yyval.arg_list_ptr = new argument_list(TYPE_PARAM_LIST);
	    yyval.arg_list_ptr->append(yyvsp[0].argument);
	 }
break;
case 577:
{
	    yyvsp[-2].arg_list_ptr->append(new argument((char*)NULL,
				    (char*)NULL,
				    (char*)NULL));
	    yyvsp[-2].arg_list_ptr->append(yyvsp[0].argument);
	    yyval.arg_list_ptr = yyvsp[-2].arg_list_ptr;
	 }
break;
case 578:
{
	    yyvsp[-2].arg_list_ptr->append(yyvsp[0].argument);
	    yyval.arg_list_ptr = yyvsp[-2].arg_list_ptr;
	 }
break;
case 579:
{
	    yyvsp[-1].arg_list_ptr->append(new argument((char*)NULL,
				    (char*)NULL,
				    (char*)NULL));
	    yyval.arg_list_ptr = yyvsp[-1].arg_list_ptr;
	 }
break;
case 580:
{
	    yyvsp[-2].arg_list_ptr->set_ellipsed(TRUE);
	    yyval.arg_list_ptr = yyvsp[-2].arg_list_ptr;
	 }
break;
case 581:
{
	    yyvsp[-2].arg_list_ptr->append(yyvsp[0].argument);
	    yyval.arg_list_ptr = yyvsp[-2].arg_list_ptr;
	 }
break;
case 582:
{
	    yyval.arg_list_ptr = new argument_list(NAMED_PARAM_LIST);
	    yyval.arg_list_ptr->append(yyvsp[0].argument);
	 }
break;
case 583:
{
	    yyvsp[-2].arg_list_ptr->append(new argument((char*)NULL,
				    (char*)NULL,
				    (char*)NULL));
	    yyvsp[-2].arg_list_ptr->append(yyvsp[0].argument);
	    yyval.arg_list_ptr = yyvsp[-2].arg_list_ptr;
	 }
break;
case 584:
{
	    yyvsp[-2].arg_list_ptr->append(yyvsp[0].argument);
	    yyval.arg_list_ptr = yyvsp[-2].arg_list_ptr;
	 }
break;
case 585:
{
	    yyvsp[-1].arg_list_ptr->append(new argument((char*)NULL,
				    (char*)NULL,
				    (char*)NULL));
	    yyval.arg_list_ptr = yyvsp[-1].arg_list_ptr;
	 }
break;
case 586:
{
	    yyvsp[-2].arg_list_ptr->set_ellipsed(TRUE);
	    yyval.arg_list_ptr = yyvsp[-2].arg_list_ptr;
	 }
break;
case 587:
{
	    yyvsp[-2].arg_list_ptr->append(yyvsp[0].argument);
	    yyval.arg_list_ptr = yyvsp[-2].arg_list_ptr;
	 }
break;
case 588:
{
	    yyval.argument = new argument(yyvsp[0].val_len1_len2.val, yyvsp[0].val_len1_len2.len1, yyvsp[0].val_len1_len2.len2, yyvsp[-2].name_eptr);
	 }
break;
case 589:
{
	    yyval.argument = new argument(yyvsp[0].val_len1_len2.val, yyvsp[0].val_len1_len2.len1, yyvsp[0].val_len1_len2.len2);
	 }
break;
case 590:
{
	    char temp;
	    temp = *(expbuf+yyvsp[0].string1_2_bufoffset.bufoffset);
	    *(expbuf+yyvsp[0].string1_2_bufoffset.bufoffset) = '\0';
	    yyval.val_len1_len2.val = (char*)malloc(strlen(expbuf+yyvsp[-1].bufoffset)+1);
	    strcpy(yyval.val_len1_len2.val,yyvsp[-1].bufoffset+expbuf);
	    *(expbuf+yyvsp[0].string1_2_bufoffset.bufoffset) = temp;
	    yyval.val_len1_len2.len1 = yyvsp[0].string1_2_bufoffset.string1;
	    yyval.val_len1_len2.len2 = yyvsp[0].string1_2_bufoffset.string2;
	 }
break;
case 591:
{
	    char temp;
	    temp = *(expbuf+yyvsp[0].string_bufoffset.bufoffset);
	    *(expbuf+yyvsp[0].string_bufoffset.bufoffset) = '\0';
	    yyval.val_len1_len2.val = (char*)malloc(strlen(expbuf+yyvsp[-1].bufoffset)+1);
	    strcpy(yyval.val_len1_len2.val,yyvsp[-1].bufoffset+expbuf);
	    *(expbuf+yyvsp[0].string_bufoffset.bufoffset) = temp;
	    yyval.val_len1_len2.len1 = yyvsp[0].string_bufoffset.string;
	    yyval.val_len1_len2.len2 = NULL;
	 }
break;
case 592:
{
	    char temp;
	    temp = *(expbuf+yyvsp[0].string_bufoffset.bufoffset);
	    *(expbuf+yyvsp[0].string_bufoffset.bufoffset) = '\0';
	    yyval.val_len.val = (char*)malloc(strlen(expbuf+yyvsp[-1].bufoffset)+1);
	    strcpy(yyval.val_len.val,yyvsp[-1].bufoffset+expbuf);
	    *(expbuf+yyvsp[0].string_bufoffset.bufoffset) = temp;
	    yyval.val_len.len = yyvsp[0].string_bufoffset.string;
	 }
break;
case 593:
{
	    yyval.string_bufoffset.string = NULL;
	    yyval.string_bufoffset.bufoffset = last_bufoffset;
	 }
break;
case 594:
{
	    char temp;
	    temp = *(expbuf+yyvsp[0].bufoffset);
	    *(expbuf+yyvsp[0].bufoffset) = '\0';
	    yyval.string_bufoffset.string = (char*)malloc(strlen(expbuf+yyvsp[-1].bufoffset)+1);
	    strcpy(yyval.string_bufoffset.string,yyvsp[-1].bufoffset+expbuf);
	    yyval.string_bufoffset.bufoffset = yyvsp[-2].bufoffset;
	    *(expbuf+yyvsp[0].bufoffset) = temp;
	 }
break;
case 595:
{
	    char temp;
	    temp = *(expbuf+yyvsp[-2].bufoffset);
	    *(expbuf+yyvsp[-2].bufoffset) = '\0';
	    yyval.string1_2_bufoffset.string1 = (char*)malloc(strlen(expbuf+yyvsp[-3].bufoffset)+1);
	    strcpy(yyval.string1_2_bufoffset.string1,yyvsp[-3].bufoffset+expbuf);
	    *(expbuf+yyvsp[-2].bufoffset) = temp;

	    temp = *(expbuf+yyvsp[0].bufoffset);
	    *(expbuf+yyvsp[0].bufoffset) = '\0';
	    yyval.string1_2_bufoffset.string2 = (char*)malloc(strlen(expbuf+yyvsp[-1].bufoffset)+1);
	    strcpy(yyval.string1_2_bufoffset.string2,yyvsp[-1].bufoffset+expbuf);
	    *(expbuf+yyvsp[0].bufoffset) = temp;

	    yyval.string1_2_bufoffset.bufoffset = yyvsp[-4].bufoffset;
	 }
break;
case 602:
{  no_labels_now++; 
			IdentMode = MODE_LOOKUP;}
break;
case 603:
{  no_labels_now--; }
break;
case 604:
{ changeable_mode = TRUE; }
break;
case 605:
{ changeable_mode = FALSE; }
break;
case 606:
{ IdentMode = MODE_ELROS_TYPE; }
break;
case 607:
{ IdentMode = MODE_INSTANCE; }
break;
    }
    yyssp -= yym;
    yystate = *yyssp;
    yyvsp -= yym;
    yym = yylhs[yyn];
    if (yystate == 0 && yym == 0)
    {
#ifdef YYDEBUG
        if (5 > yydebug)
            printf("yydebug: after reduction, shifting from state 0 to\
 state %d\n", YYFINAL);
#endif
        yystate = YYFINAL;
        *++yyssp = YYFINAL;
        *++yyvsp = yyval;
        if (yychar < 0)
        {
            if ((yychar = yylex()) < 0) yychar = 0;
#if YYDEBUG
            if (yydebug)
            {
                yys = 0;
                if (yychar <= YYMAXTOKEN) yys = yyname[yychar];
                if (!yys) yys = "illegal-symbol";
                if (5 > yydebug)
                    printf("yydebug: state %d, reading %d (%s)\n",
                        YYFINAL, yychar, yys);
                else
                    YYDEBUG_LOOK_AHEAD(YYFINAL, yychar, yys, yyssp-yyss);
            }
#endif
        }
        if (yychar == 0) goto yyaccept;
        goto yyloop;
    }
    if ((yyn = yygindex[yym]) && (yyn += yystate) >= 0 &&
            yyn <= YYTABLESIZE && yycheck[yyn] == yystate)
        yystate = yytable[yyn];
    else
        yystate = yydgoto[yym];
#ifdef YYDEBUG
    if (5 > yydebug)
        printf("yydebug: after reduction, shifting from state %d \
to state %d\n", *yyssp, yystate);
#endif
    if (yyssp >= yyss + yystacksize - 1)
    {
        goto yyoverflow;
    }
    *++yyssp = yystate;
    *++yyvsp = yyval;
    goto yyloop;
yyoverflow:
    yyerror("yacc stack overflow");
yyabort:
    return (1);
yyaccept:
    return (0);
}
