/* A lexical scanner generated by flex */ /* Scanner skeleton version: * $Header$ */ #define FLEX_SCANNER #define YY_FLEX_MAJOR_VERSION 2 #define YY_FLEX_MINOR_VERSION 5 #include /* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */ #ifdef c_plusplus #ifndef __cplusplus #define __cplusplus #endif #endif #ifdef __cplusplus #include #include /* Use prototypes in function declarations. */ #define YY_USE_PROTOS /* The "const" storage-class-modifier is valid. */ #define YY_USE_CONST #else /* ! __cplusplus */ #if __STDC__ #define YY_USE_PROTOS #define YY_USE_CONST #endif /* __STDC__ */ #endif /* ! __cplusplus */ #ifdef __TURBOC__ #pragma warn -rch #pragma warn -use #include #include #define YY_USE_CONST #define YY_USE_PROTOS #endif #ifdef YY_USE_CONST #define yyconst const #else #define yyconst #endif #ifdef YY_USE_PROTOS #define YY_PROTO(proto) proto #else #define YY_PROTO(proto) () #endif /* Returned upon end-of-file. */ #define YY_NULL 0 /* Promotes a possibly negative, possibly signed char to an unsigned * integer for use as an array index. If the signed char is negative, * we want to instead treat it as an 8-bit unsigned char, hence the * double cast. */ #define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c) /* Enter a start condition. This macro really ought to take a parameter, * but we do it the disgusting crufty way forced on us by the ()-less * definition of BEGIN. */ #define BEGIN yy_start = 1 + 2 * /* Translate the current start state into a value that can be later handed * to BEGIN to return to the state. The YYSTATE alias is for lex * compatibility. */ #define YY_START ((yy_start - 1) / 2) #define YYSTATE YY_START /* Action number for EOF rule of a given start state. */ #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1) /* Special action meaning "start processing a new file". */ #define YY_NEW_FILE yyrestart( yyin ) #define YY_END_OF_BUFFER_CHAR 0 /* Size of default input buffer. */ #define YY_BUF_SIZE 16384 typedef struct yy_buffer_state *YY_BUFFER_STATE; extern int yyleng; extern FILE *yyin, *yyout; #define EOB_ACT_CONTINUE_SCAN 0 #define EOB_ACT_END_OF_FILE 1 #define EOB_ACT_LAST_MATCH 2 /* The funky do-while in the following #define is used to turn the definition * int a single C statement (which needs a semi-colon terminator). This * avoids problems with code like: * * if ( condition_holds ) * yyless( 5 ); * else * do_something_else(); * * Prior to using the do-while the compiler would get upset at the * "else" because it interpreted the "if" statement as being all * done when it reached the ';' after the yyless() call. */ /* Return all but the first 'n' matched characters back to the input stream. */ #define yyless(n) \ do \ { \ /* Undo effects of setting up yytext. */ \ *yy_cp = yy_hold_char; \ YY_RESTORE_YY_MORE_OFFSET \ yy_c_buf_p = yy_cp = yy_bp + n - YY_MORE_ADJ; \ YY_DO_BEFORE_ACTION; /* set up yytext again */ \ } \ while ( 0 ) #define unput(c) yyunput( c, yytext_ptr ) /* The following is because we cannot portably get our hands on size_t * (without autoconf's help, which isn't available because we want * flex-generated scanners to compile on their own). */ typedef unsigned int yy_size_t; struct yy_buffer_state { FILE *yy_input_file; char *yy_ch_buf; /* input buffer */ char *yy_buf_pos; /* current position in input buffer */ /* Size of input buffer in bytes, not including room for EOB * characters. */ yy_size_t yy_buf_size; /* Number of characters read into yy_ch_buf, not including EOB * characters. */ int yy_n_chars; /* Whether we "own" the buffer - i.e., we know we created it, * and can realloc() it to grow it, and should free() it to * delete it. */ int yy_is_our_buffer; /* Whether this is an "interactive" input source; if so, and * if we're using stdio for input, then we want to use getc() * instead of fread(), to make sure we stop fetching input after * each newline. */ int yy_is_interactive; /* Whether we're considered to be at the beginning of a line. * If so, '^' rules will be active on the next match, otherwise * not. */ int yy_at_bol; /* Whether to try to fill the input buffer when we reach the * end of it. */ int yy_fill_buffer; int yy_buffer_status; #define YY_BUFFER_NEW 0 #define YY_BUFFER_NORMAL 1 /* When an EOF's been seen but there's still some text to process * then we mark the buffer as YY_EOF_PENDING, to indicate that we * shouldn't try reading from the input source any more. We might * still have a bunch of tokens to match, though, because of * possible backing-up. * * When we actually see the EOF, we change the status to "new" * (via yyrestart()), so that the user can continue scanning by * just pointing yyin at a new input file. */ #define YY_BUFFER_EOF_PENDING 2 }; static YY_BUFFER_STATE yy_current_buffer = 0; /* We provide macros for accessing buffer states in case in the * future we want to put the buffer states in a more general * "scanner state". */ #define YY_CURRENT_BUFFER yy_current_buffer /* yy_hold_char holds the character lost when yytext is formed. */ static char yy_hold_char; static int yy_n_chars; /* number of characters read into yy_ch_buf */ int yyleng; /* Points to current character in buffer. */ static char *yy_c_buf_p = (char *) 0; static int yy_init = 1; /* whether we need to initialize */ static int yy_start = 0; /* start state number */ /* Flag which is used to allow yywrap()'s to do buffer switches * instead of setting up a fresh yyin. A bit of a hack ... */ static int yy_did_buffer_switch_on_eof; void yyrestart YY_PROTO(( FILE *input_file )); void yy_switch_to_buffer YY_PROTO(( YY_BUFFER_STATE new_buffer )); void yy_load_buffer_state YY_PROTO(( void )); YY_BUFFER_STATE yy_create_buffer YY_PROTO(( FILE *file, int size )); void yy_delete_buffer YY_PROTO(( YY_BUFFER_STATE b )); void yy_init_buffer YY_PROTO(( YY_BUFFER_STATE b, FILE *file )); void yy_flush_buffer YY_PROTO(( YY_BUFFER_STATE b )); #define YY_FLUSH_BUFFER yy_flush_buffer( yy_current_buffer ) YY_BUFFER_STATE yy_scan_buffer YY_PROTO(( char *base, yy_size_t size )); YY_BUFFER_STATE yy_scan_string YY_PROTO(( yyconst char *yy_str )); YY_BUFFER_STATE yy_scan_bytes YY_PROTO(( yyconst char *bytes, int len )); static void *yy_flex_alloc YY_PROTO(( yy_size_t )); static void *yy_flex_realloc YY_PROTO(( void *, yy_size_t )); static void yy_flex_free YY_PROTO(( void * )); #define yy_new_buffer yy_create_buffer #define yy_set_interactive(is_interactive) \ { \ if ( ! yy_current_buffer ) \ yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \ yy_current_buffer->yy_is_interactive = is_interactive; \ } #define yy_set_bol(at_bol) \ { \ if ( ! yy_current_buffer ) \ yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \ yy_current_buffer->yy_at_bol = at_bol; \ } #define YY_AT_BOL() (yy_current_buffer->yy_at_bol) typedef unsigned char YY_CHAR; FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0; typedef int yy_state_type; extern char *yytext; #define yytext_ptr yytext static yy_state_type yy_get_previous_state YY_PROTO(( void )); static yy_state_type yy_try_NUL_trans YY_PROTO(( yy_state_type current_state )); static int yy_get_next_buffer YY_PROTO(( void )); static void yy_fatal_error YY_PROTO(( yyconst char msg[] )); /* Done after the current pattern has been matched and before the * corresponding action - sets up yytext. */ #define YY_DO_BEFORE_ACTION \ yytext_ptr = yy_bp; \ yyleng = (int) (yy_cp - yy_bp); \ yy_hold_char = *yy_cp; \ *yy_cp = '\0'; \ yy_c_buf_p = yy_cp; #define YY_NUM_RULES 40 #define YY_END_OF_BUFFER 41 static yyconst short int yy_accept[1860] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 36, 41, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 0, 0, 0, 0, 0, 0, 0, 39, 0, 0, 0, 0, 0, 15, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 3, 0, 0, 0, 0, 0, 0, 0, 0, 13, 8, 0, 0, 0, 0, 0, 0, 0, 0, 14, 9, 0, 0, 0, 0, 0, 0, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 15, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 28, 0, 0, 0, 0, 0, 0, 39, 39, 39, 0, 0, 37, 0, 0, 0, 15, 15, 15, 15, 27, 38, 23, 0, 0, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 37, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 12, 12, 12, 3, 3, 3, 3, 0, 3, 0, 0, 10, 0, 13, 13, 13, 8, 8, 8, 8, 0, 4, 0, 0, 11, 0, 14, 14, 14, 9, 9, 9, 9, 0, 5, 0, 0, 28, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 15, 15, 15, 15, 27, 36, 23, 36, 36, 16, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 28, 28, 28, 23, 0, 0, 0, 0, 0, 39, 39, 34, 0, 37, 37, 37, 37, 0, 0, 18, 15, 15, 15, 15, 15, 27, 27, 27, 27, 38, 38, 38, 23, 23, 23, 0, 0, 16, 16, 16, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 37, 0, 0, 0, 0, 0, 0, 0, 3, 3, 3, 3, 0, 12, 12, 3, 3, 3, 3, 3, 0, 3, 3, 3, 3, 0, 0, 10, 10, 10, 10, 0, 13, 13, 8, 8, 8, 8, 8, 0, 4, 4, 4, 4, 0, 0, 11, 11, 11, 11, 0, 14, 14, 9, 9, 9, 9, 9, 0, 5, 5, 5, 5, 0, 0, 28, 28, 28, 23, 36, 36, 36, 36, 36, 36, 36, 34, 36, 36, 36, 36, 36, 36, 36, 18, 15, 15, 15, 15, 27, 27, 27, 27, 36, 36, 36, 23, 23, 23, 36, 36, 16, 16, 16, 16, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 28, 28, 23, 23, 23, 0, 0, 26, 0, 17, 39, 34, 34, 34, 33, 37, 37, 37, 0, 0, 18, 18, 18, 18, 15, 15, 15, 15, 15, 15, 27, 27, 27, 27, 27, 38, 38, 23, 23, 24, 0, 16, 16, 16, 16, 16, 22, 0, 0, 0, 0, 0, 37, 0, 0, 0, 0, 0, 3, 3, 3, 3, 3, 3, 12, 3, 3, 3, 3, 3, 3, 0, 3, 3, 3, 3, 3, 0, 10, 10, 10, 10, 10, 6, 13, 8, 8, 8, 8, 8, 8, 0, 4, 4, 4, 4, 4, 0, 11, 11, 11, 11, 11, 7, 14, 9, 9, 9, 9, 9, 9, 0, 5, 5, 5, 5, 5, 0, 28, 28, 23, 23, 23, 36, 36, 26, 36, 17, 36, 34, 34, 34, 33, 36, 36, 36, 36, 36, 18, 18, 18, 18, 15, 15, 15, 15, 27, 27, 27, 27, 36, 36, 23, 23, 24, 36, 16, 16, 16, 16, 22, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 28, 28, 23, 23, 25, 0, 26, 26, 26, 26, 0, 17, 17, 17, 17, 34, 34, 33, 33, 33, 35, 37, 37, 30, 31, 18, 18, 18, 18, 18, 15, 15, 15, 15, 27, 27, 27, 27, 27, 27, 27, 38, 38, 23, 23, 24, 24, 24, 29, 16, 16, 16, 16, 16, 16, 16, 22, 22, 22, 0, 0, 0, 0, 0, 0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 3, 3, 3, 3, 3, 3, 3, 0, 10, 10, 10, 10, 10, 10, 10, 6, 6, 6, 6, 8, 8, 8, 8, 0, 4, 4, 4, 4, 4, 4, 4, 0, 11, 11, 11, 11, 11, 11, 11, 7, 7, 7, 7, 9, 9, 9, 9, 0, 5, 5, 5, 5, 5, 5, 5, 0, 28, 28, 23, 23, 25, 36, 26, 26, 26, 26, 36, 17, 17, 17, 17, 34, 34, 33, 33, 33, 35, 36, 36, 30, 31, 18, 18, 18, 18, 15, 27, 27, 27, 27, 27, 36, 36, 23, 23, 24, 24, 24, 29, 16, 16, 16, 16, 16, 22, 22, 22, 36, 36, 36, 36, 36, 36, 28, 23, 23, 25, 25, 25, 32, 26, 26, 26, 26, 26, 0, 17, 17, 17, 17, 17, 34, 34, 33, 33, 35, 35, 35, 37, 30, 30, 30, 31, 31, 31, 18, 18, 18, 18, 18, 18, 18, 15, 15, 15, 27, 27, 27, 27, 27, 38, 23, 24, 24, 29, 29, 29, 16, 16, 16, 16, 16, 22, 22, 0, 21, 0, 0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 10, 10, 10, 10, 10, 6, 6, 6, 6, 6, 8, 8, 8, 10, 4, 4, 4, 4, 4, 11, 11, 11, 11, 11, 7, 7, 7, 7, 7, 9, 9, 9, 11, 5, 5, 5, 5, 5, 28, 23, 23, 25, 25, 25, 32, 26, 26, 26, 26, 36, 17, 17, 17, 17, 34, 34, 33, 33, 35, 35, 35, 36, 30, 30, 30, 31, 31, 31, 18, 18, 18, 18, 18, 27, 27, 36, 23, 24, 24, 29, 29, 29, 16, 16, 22, 22, 36, 21, 36, 36, 23, 23, 25, 25, 32, 32, 32, 26, 26, 26, 26, 26, 26, 26, 19, 17, 17, 17, 17, 17, 17, 17, 34, 34, 33, 33, 35, 35, 30, 30, 31, 31, 18, 18, 18, 18, 18, 18, 15, 27, 27, 27, 24, 24, 29, 29, 16, 16, 16, 22, 22, 20, 21, 21, 21, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 10, 10, 10, 6, 6, 6, 6, 6, 6, 6, 8, 10, 10, 10, 10, 4, 4, 4, 11, 11, 11, 7, 7, 7, 7, 7, 7, 7, 9, 11, 11, 11, 11, 5, 5, 5, 23, 23, 25, 25, 32, 32, 32, 26, 26, 26, 26, 26, 19, 17, 17, 17, 17, 17, 34, 34, 33, 33, 35, 35, 30, 30, 31, 31, 18, 18, 18, 24, 24, 29, 29, 22, 22, 20, 21, 21, 21, 23, 25, 25, 32, 32, 26, 26, 26, 26, 26, 26, 19, 19, 19, 19, 17, 17, 17, 17, 17, 17, 34, 33, 33, 35, 35, 30, 30, 31, 31, 18, 18, 18, 18, 27, 24, 24, 29, 29, 16, 22, 22, 20, 20, 20, 21, 21, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 10, 6, 6, 6, 6, 6, 6, 10, 10, 10, 10, 10, 4, 11, 7, 7, 7, 7, 7, 7, 11, 11, 11, 11, 11, 5, 23, 25, 25, 32, 32, 26, 26, 26, 19, 19, 19, 19, 17, 17, 17, 34, 33, 33, 35, 35, 30, 30, 31, 31, 18, 24, 24, 29, 29, 22, 22, 20, 20, 20, 21, 21, 25, 25, 32, 32, 26, 26, 26, 26, 26, 19, 19, 19, 19, 19, 17, 17, 17, 17, 17, 33, 33, 35, 35, 30, 30, 31, 31, 18, 24, 24, 29, 29, 22, 22, 20, 20, 21, 21, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 6, 6, 6, 6, 6, 10, 10, 10, 10, 10, 10, 10, 7, 7, 7, 7, 7, 11, 11, 11, 11, 11, 11, 11, 25, 25, 32, 32, 26, 26, 19, 19, 19, 19, 17, 17, 33, 33, 35, 35, 30, 30, 31, 31, 24, 24, 29, 29, 22, 22, 20, 20, 21, 21, 25, 25, 32, 32, 26, 26, 19, 19, 19, 19, 19, 19, 19, 17, 17, 33, 35, 35, 30, 30, 31, 31, 24, 29, 29, 22, 20, 20, 21, 21, 3, 3, 3, 3, 3, 3, 3, 3, 6, 6, 10, 10, 10, 10, 10, 10, 7, 7, 11, 11, 11, 11, 11, 11, 25, 25, 32, 32, 26, 19, 19, 19, 19, 19, 17, 33, 35, 35, 30, 30, 31, 31, 24, 29, 29, 22, 20, 20, 21, 21, 25, 25, 32, 32, 19, 19, 19, 19, 19, 19, 35, 35, 30, 30, 31, 31, 29, 29, 20, 20, 21, 21, 3, 3, 3, 3, 3, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 25, 25, 32, 32, 19, 19, 19, 35, 35, 30, 30, 31, 31, 29, 29, 20, 20, 21, 21, 25, 32, 32, 19, 19, 19, 19, 19, 35, 30, 31, 29, 20, 20, 21, 21, 3, 3, 3, 10, 10, 10, 11, 11, 11, 25, 32, 32, 19, 19, 35, 30, 31, 29, 20, 20, 21, 21, 32, 32, 19, 19, 19, 20, 20, 21, 21, 3, 3, 10, 10, 11, 11, 32, 32, 19, 19, 20, 20, 21, 21, 32, 19, 19, 20, 20, 21, 3, 10, 11, 32, 19, 19, 20, 20, 21, 19, 19, 20, 20, 19, 19, 20, 20, 19, 20, 19, 20, 0 } ; static yyconst int yy_ec[256] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 4, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 6, 7, 8, 9, 10, 11, 1, 12, 13, 1, 14, 15, 16, 17, 18, 19, 1, 20, 21, 22, 23, 24, 1, 25, 1, 1, 1, 1, 1, 1, 1, 1, 26, 27, 28, 29, 30, 31, 1, 32, 33, 1, 34, 35, 36, 37, 38, 39, 1, 40, 41, 42, 43, 44, 1, 45, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 } ; static yyconst int yy_meta[46] = { 0, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 } ; static yyconst short int yy_base[2411] = { 0, 4098, 0, 4097, 44, 4096, 83, 4095, 122, 4094, 162, 4096, 4102, 4102, 206, 43, 52, 4078, 37, 4077, 41, 4083, 61, 4082, 4069, 4080, 37, 56, 4052, 35, 4051, 45, 4057, 50, 4056, 4043, 4054, 247, 89, 92, 4066, 4065, 82, 4071, 82, 95, 4043, 4042, 71, 4048, 288, 128, 131, 4060, 4059, 100, 4065, 121, 305, 4037, 4036, 89, 4042, 342, 142, 327, 4054, 4053, 111, 4059, 186, 316, 4031, 4030, 119, 4036, 0, 384, 226, 424, 4048, 198, 4047, 215, 4053, 116, 4052, 4039, 4050, 227, 405, 4022, 198, 4021, 214, 4027, 245, 4026, 4013, 4024, 0, 288, 426, 4036, 259, 4035, 244, 4041, 273, 4040, 4027, 4038, 288, 415, 4010, 280, 4009, 235, 4015, 255, 4014, 4001, 4012, 4026, 4027, 4023, 4016, 4026, 4020, 4012, 4025, 200, 4018, 314, 4018, 4022, 4009, 4009, 4010, 326, 4007, 4010, 3990, 3991, 3987, 3980, 3990, 3984, 3976, 3989, 211, 3982, 338, 3982, 3986, 3973, 3973, 3974, 313, 3971, 3974, 0, 434, 441, 3992, 3991, 285, 3997, 423, 430, 3969, 3968, 322, 3974, 363, 3980, 3993, 449, 65, 456, 439, 3958, 3971, 438, 240, 447, 0, 464, 468, 3982, 3981, 350, 3987, 451, 458, 3959, 3958, 339, 3964, 479, 3970, 3983, 485, 465, 489, 472, 3948, 3961, 471, 467, 476, 0, 500, 504, 3972, 3971, 497, 3977, 493, 490, 3949, 3948, 495, 3954, 521, 3960, 3973, 521, 510, 529, 512, 3938, 3951, 511, 502, 520, 0, 0, 543, 541, 3962, 539, 3961, 550, 3967, 551, 3966, 3953, 3964, 532, 536, 3936, 532, 3935, 534, 3941, 541, 3940, 3927, 3938, 3952, 3953, 3949, 3942, 3952, 3946, 3938, 3951, 282, 3944, 567, 3944, 3948, 3935, 3935, 3936, 571, 3933, 3936, 3916, 3917, 3913, 3906, 3916, 3910, 3902, 3915, 317, 3908, 554, 3908, 3912, 3899, 3899, 3900, 552, 3897, 3900, 3920, 3919, 3917, 3926, 3918, 3920, 3922, 563, 3911, 3917, 3916, 569, 3915, 582, 3914, 3913, 3900, 3911, 3896, 3904, 3900, 3894, 3897, 3880, 3879, 3877, 3886, 3878, 3880, 3882, 3871, 3877, 3876, 553, 3875, 3874, 3873, 3860, 3871, 3856, 3864, 3860, 3854, 3857, 3875, 3887, 575, 586, 3883, 3877, 3851, 3863, 3859, 3853, 3867, 3879, 582, 589, 3875, 3869, 3843, 3855, 3851, 3845, 3859, 3871, 587, 593, 3867, 3861, 3835, 3847, 3843, 3837, 3856, 3855, 3853, 3862, 3854, 3856, 3858, 590, 3847, 3853, 3852, 586, 3851, 603, 3850, 3849, 3836, 3847, 3832, 3840, 3836, 3830, 3833, 3816, 3815, 3813, 3822, 3814, 3816, 3818, 3807, 3813, 3812, 572, 3811, 3810, 3809, 3796, 3807, 3792, 3800, 3796, 3790, 3793, 596, 3822, 3824, 3822, 3811, 3810, 3811, 0, 3808, 3787, 3814, 3816, 600, 3798, 3814, 3794, 3813, 625, 608, 609, 616, 602, 606, 3800, 3803, 628, 3795, 3806, 3798, 3783, 3785, 3783, 3772, 3771, 3772, 3777, 3779, 623, 3761, 3777, 3757, 3764, 3767, 3759, 3770, 3762, 632, 3781, 0, 3778, 3757, 3788, 653, 630, 634, 3772, 639, 3756, 3750, 637, 3774, 0, 3771, 3750, 3781, 659, 661, 636, 3765, 662, 3749, 3743, 664, 3767, 0, 3764, 3743, 3774, 672, 676, 646, 3758, 665, 3742, 3736, 672, 3766, 3768, 3766, 3755, 3754, 3755, 0, 3752, 3731, 3758, 3760, 676, 3742, 3758, 3738, 3757, 686, 679, 689, 692, 679, 681, 3744, 3747, 694, 3739, 3750, 3742, 3727, 3729, 3727, 3716, 3715, 3716, 3721, 3723, 690, 3705, 3721, 3701, 3708, 3711, 3703, 3714, 3706, 0, 3734, 3713, 695, 3721, 3731, 3726, 3714, 3724, 3724, 3703, 693, 3722, 0, 3713, 3716, 3695, 3718, 3710, 704, 708, 3720, 537, 121, 701, 3719, 727, 644, 464, 0, 3705, 3684, 0, 3711, 3690, 3697, 3709, 3712, 736, 46, 706, 3707, 3693, 3708, 3676, 3686, 3681, 3669, 3679, 3679, 3670, 3677, 3669, 3662, 3674, 3673, 3659, 3674, 3694, 742, 730, 717, 3688, 3688, 3667, 746, 3690, 748, 134, 714, 3681, 3688, 755, 756, 749, 3662, 3658, 3685, 760, 762, 750, 3679, 3679, 3658, 766, 3681, 768, 208, 764, 3672, 3679, 773, 775, 778, 3653, 3649, 3676, 784, 779, 785, 3670, 3670, 3649, 790, 3672, 792, 428, 776, 3663, 3670, 796, 797, 798, 3644, 3640, 0, 3666, 3645, 785, 3653, 3663, 3658, 3646, 3656, 3656, 3635, 793, 3654, 0, 3645, 3648, 3627, 3650, 3642, 806, 810, 805, 711, 800, 3652, 818, 820, 811, 0, 3638, 3617, 0, 3644, 3623, 3630, 3642, 3645, 827, 828, 822, 3640, 3626, 3641, 3609, 3619, 3614, 3602, 3612, 3612, 3603, 3610, 3602, 3595, 3607, 3606, 3592, 3607, 3617, 3596, 0, 3618, 3597, 3619, 3606, 831, 3613, 836, 824, 0, 3614, 3593, 824, 3614, 3607, 3586, 3610, 3609, 3613, 844, 839, 838, 3612, 859, 722, 854, 864, 865, 869, 3611, 846, 867, 848, 3606, 3585, 3592, 3571, 857, 3601, 875, 3605, 879, 880, 882, 869, 3586, 3586, 3578, 3565, 3572, 3575, 3573, 48, 74, 118, 212, 886, 307, 888, 889, 892, 894, 890, 310, 902, 907, 910, 922, 906, 368, 926, 382, 897, 911, 916, 482, 930, 506, 932, 935, 917, 924, 928, 521, 942, 945, 951, 957, 944, 945, 961, 947, 963, 964, 959, 945, 970, 968, 974, 975, 971, 977, 973, 979, 985, 988, 991, 996, 997, 986, 1003, 999, 1007, 1008, 1010, 983, 1001, 982, 0, 1006, 987, 1011, 1000, 1017, 1010, 1019, 1015, 0, 1016, 998, 1020, 1023, 1018, 999, 1025, 1027, 1033, 1037, 1038, 1039, 1044, 1049, 1054, 1055, 1059, 1061, 1057, 1045, 1058, 1040, 1049, 1031, 1054, 1064, 1073, 1076, 1077, 1079, 1066, 1062, 1065, 1060, 1049, 1058, 1063, 1064, 1065, 1066, 1054, 1056, 1084, 1065, 1088, 1069, 1095, 1094, 1102, 1106, 1107, 1108, 1096, 1110, 1116, 1111, 1117, 1114, 1095, 0, 1115, 1096, 1117, 1120, 1101, 1119, 1120, 1132, 1130, 1135, 1136, 1137, 1142, 1145, 1154, 1138, 1146, 1158, 1162, 1165, 1169, 1170, 1149, 1154, 1146, 1155, 1136, 0, 1175, 1156, 1164, 1179, 1183, 1186, 1189, 1193, 1185, 1194, 0, 1191, 1172, 1184, 1195, 1176, 1169, 1168, 1179, 1205, 1209, 1212, 1215, 1219, 1211, 1220, 1221, 1230, 1222, 1223, 1234, 1237, 1241, 1225, 1222, 1242, 1246, 1249, 1252, 1260, 1253, 1248, 1224, 1261, 1267, 1270, 1273, 1277, 1269, 1262, 1279, 1283, 1285, 1286, 1290, 1292, 1296, 1288, 1289, 1300, 1304, 1307, 1310, 1314, 1306, 1315, 1287, 1318, 1323, 1326, 1329, 1333, 1325, 1334, 1335, 1339, 1341, 1342, 1347, 1349, 1353, 1343, 1345, 1356, 1360, 1363, 1366, 1373, 1367, 1362, 1338, 1364, 1346, 1370, 1351, 1377, 1376, 1382, 1386, 1388, 1387, 1376, 1390, 1397, 1391, 1398, 1394, 1376, 0, 1396, 1377, 1399, 1401, 1382, 1400, 1401, 1414, 1416, 1417, 1410, 1438, 1420, 1424, 1442, 1427, 1419, 1421, 1405, 1416, 1406, 0, 1444, 1425, 1433, 1450, 1453, 1457, 1449, 1458, 0, 1455, 1436, 1447, 1458, 1439, 1432, 1431, 1443, 1466, 1460, 1441, 0, 1459, 1440, 1470, 1478, 1476, 1480, 1481, 1482, 1471, 1493, 1484, 1486, 1491, 1495, 1484, 1465, 1483, 1464, 0, 1492, 1473, 1496, 0, 1491, 1472, 0, 1493, 1474, 1507, 1513, 1516, 1519, 1526, 1515, 1521, 1529, 1532, 1537, 1541, 1543, 1550, 1528, 1544, 1528, 1533, 1536, 1517, 0, 1538, 1519, 1561, 1557, 1569, 1562, 1563, 1561, 1547, 1566, 1555, 1541, 1549, 1580, 1582, 1586, 1576, 1587, 1594, 1588, 1596, 1589, 1597, 1601, 1604, 1614, 1605, 1609, 1618, 1622, 1600, 1615, 1626, 1628, 1634, 1624, 1637, 1642, 1629, 1644, 1638, 1645, 1648, 1653, 1664, 1647, 1668, 1655, 1672, 1649, 1659, 1676, 1680, 1687, 1657, 1688, 1693, 1666, 1682, 1677, 1689, 1698, 1701, 1705, 1697, 1710, 1713, 1717, 1706, 1718, 1716, 1710, 1691, 0, 1709, 1690, 1720, 1732, 1726, 1730, 1734, 1723, 1741, 1743, 1737, 1745, 1734, 1715, 1733, 1714, 0, 1742, 1723, 1746, 0, 1742, 1724, 0, 1745, 1726, 1761, 1764, 1768, 1769, 1770, 1778, 1771, 1762, 1767, 1765, 1746, 0, 1769, 1750, 1789, 1790, 1788, 1769, 1789, 1779, 1765, 1773, 1796, 1777, 1792, 1773, 0, 1805, 1786, 1808, 1812, 1815, 1819, 1823, 1824, 1814, 1826, 1827, 1836, 1831, 1839, 1846, 1847, 1840, 1824, 1817, 1843, 1826, 1842, 1823, 1851, 1832, 1853, 1834, 1861, 1864, 1868, 1859, 1869, 1870, 1874, 1877, 1880, 1884, 1871, 1860, 1873, 1854, 1890, 1893, 1897, 1885, 1866, 1884, 0, 1896, 1877, 1905, 1908, 1914, 1904, 1918, 1921, 1924, 1928, 1929, 1930, 1935, 1909, 1939, 1940, 1942, 1945, 1948, 1956, 1951, 1959, 1967, 1944, 1971, 1962, 1974, 1978, 1979, 1961, 1987, 1950, 1991, 1992, 1980, 1996, 1999, 2005, 2008, 2011, 2015, 1982, 2019, 2022, 2025, 2029, 2030, 2021, 2036, 1995, 2040, 2041, 2031, 2046, 2049, 2056, 1996, 1983, 2034, 2019, 0, 2050, 2036, 2060, 2063, 2067, 2068, 2059, 2069, 2072, 2079, 2083, 2084, 2074, 2067, 2051, 2080, 2063, 2079, 2060, 2088, 2069, 2091, 2072, 2100, 2101, 2102, 2098, 2079, 2092, 2073, 2094, 2075, 2093, 0, 2105, 2086, 2109, 2102, 2083, 2098, 2079, 2120, 2123, 2127, 2118, 2128, 2130, 2131, 2136, 2137, 2138, 2144, 2147, 2151, 2139, 2153, 2152, 2148, 2154, 2135, 2152, 2133, 2149, 2130, 2149, 2132, 2167, 2170, 2178, 2171, 2186, 2160, 2141, 2161, 2142, 2190, 2176, 2157, 0, 2176, 2157, 2184, 2165, 2203, 2207, 2198, 2211, 2205, 2212, 2213, 2217, 2215, 2219, 2220, 2221, 2226, 2230, 2234, 2236, 2241, 2232, 2242, 2244, 2248, 2246, 2250, 2251, 2253, 2257, 2262, 2266, 2270, 2278, 2264, 2271, 2267, 2283, 2272, 2285, 2279, 2273, 2289, 2288, 2281, 2262, 2277, 2258, 2301, 2302, 2303, 2304, 2308, 2309, 2312, 2321, 2313, 2315, 2310, 2321, 2303, 2320, 2301, 2317, 2298, 2317, 2298, 2331, 2320, 2301, 2315, 2298, 2323, 2306, 0, 2325, 2306, 2333, 2315, 2346, 2327, 2348, 2329, 2353, 2356, 2363, 2352, 2358, 2367, 2365, 2369, 2370, 2371, 2374, 2377, 2387, 2373, 2379, 2376, 2358, 2383, 2364, 2372, 2353, 2391, 2372, 2397, 2381, 2362, 2392, 2373, 2399, 2381, 2391, 2372, 2394, 2375, 2412, 2415, 2419, 2420, 2411, 2421, 2429, 2424, 2432, 2440, 2441, 2423, 2435, 2444, 2452, 2453, 2434, 2445, 2457, 2462, 2465, 2469, 2470, 2447, 2473, 2478, 2482, 2483, 2461, 2474, 2492, 2487, 2495, 2499, 2500, 2484, 2500, 2481, 2502, 2483, 2506, 2507, 2513, 2515, 2508, 2516, 2517, 2518, 2516, 2497, 2518, 2499, 2507, 2488, 2526, 2507, 2512, 2493, 2523, 2505, 2530, 2511, 2521, 2502, 2524, 2505, 2528, 2509, 2540, 2522, 2551, 2552, 2545, 2560, 2555, 2563, 2567, 2568, 2546, 2580, 2570, 2563, 2542, 2540, 2571, 2557, 2571, 2552, 2570, 2581, 2562, 2572, 2570, 2552, 2581, 2562, 2598, 2599, 2609, 2601, 2613, 2593, 2602, 2605, 2621, 2622, 2628, 2615, 2632, 2616, 2624, 2633, 2637, 2638, 2644, 2648, 2652, 2645, 2654, 2653, 2643, 2624, 2655, 2636, 2659, 2666, 2672, 2676, 2660, 2661, 2677, 2661, 2666, 2647, 2676, 2658, 2673, 2654, 2675, 2686, 2667, 2677, 2675, 2656, 2685, 2666, 2693, 2674, 2698, 2679, 2705, 2707, 2716, 2703, 2708, 2710, 2707, 2693, 2713, 2694, 2716, 2697, 2718, 2699, 2722, 2703, 2726, 2707, 2731, 2734, 2738, 2739, 2730, 2743, 2746, 2751, 2752, 2740, 2755, 2763, 2767, 2769, 2754, 2752, 2733, 2758, 2749, 2774, 2775, 2776, 2774, 2755, 2775, 2756, 2778, 2759, 2780, 2761, 2785, 2766, 2789, 2770, 2789, 2777, 2758, 2797, 2800, 2804, 2805, 2796, 2800, 2799, 2801, 2796, 2794, 2776, 2797, 2778, 2819, 2822, 2820, 2836, 2824, 2828, 2840, 2842, 2831, 2841, 2829, 2810, 2847, 2848, 2844, 2843, 2845, 2840, 2838, 2819, 2840, 2821, 2854, 2835, 2868, 2861, 2862, 2854, 2837, 2871, 2852, 2878, 2879, 2881, 2880, 2882, 2883, 2880, 2861, 2887, 2889, 2875, 2856, 2891, 2872, 2894, 2899, 2900, 2886, 2867, 2886, 2904, 2905, 2908, 2902, 2907, 2911, 2899, 2886, 2905, 2925, 2924, 2922, 2903, 2929, 2930, 2926, 2907, 2934, 2924, 2943, 2929, 4102, 2972, 2950, 2952, 2953, 2954, 2955, 2956, 2957, 2958, 2959, 2961, 2963, 2965, 2967, 2968, 2970, 2974, 2975, 2976, 2977, 2978, 2979, 2980, 2981, 2982, 2983, 2984, 2985, 2986, 2987, 2988, 2989, 2990, 2991, 2992, 2993, 2994, 2995, 2996, 2997, 2998, 2999, 3000, 3001, 3002, 3003, 3004, 3005, 3006, 3007, 3008, 3009, 3010, 3012, 3013, 3014, 3015, 3016, 3017, 3018, 3019, 3020, 3021, 3022, 3023, 3024, 3025, 3026, 3027, 3028, 3029, 3031, 3032, 3033, 3034, 3035, 3036, 3037, 3038, 3039, 3040, 3041, 3043, 3044, 3045, 3046, 3047, 3048, 3049, 3050, 3051, 3052, 3053, 3055, 3056, 3057, 3058, 3059, 3060, 3061, 3062, 3063, 3064, 3065, 3066, 3067, 3068, 3069, 3071, 3072, 3073, 3074, 3075, 3076, 3077, 3078, 3079, 3080, 3081, 3082, 3083, 3084, 3085, 3086, 3087, 3088, 3089, 3090, 3091, 3092, 3093, 3094, 3095, 3096, 3098, 3099, 3101, 3102, 3103, 3104, 3105, 3106, 3107, 3109, 3110, 3111, 3112, 3114, 3115, 3116, 3117, 3118, 3120, 3121, 3123, 3124, 3125, 3127, 3128, 3129, 3130, 3131, 3133, 3134, 3136, 3137, 3138, 3140, 3141, 3142, 3143, 3144, 3146, 3147, 3149, 3150, 3151, 3152, 3153, 3154, 3155, 3156, 3157, 3158, 3159, 3160, 3161, 3162, 3163, 3164, 3166, 3168, 3169, 3170, 3171, 3172, 3173, 3175, 3176, 3177, 3178, 3179, 3180, 3181, 3182, 3183, 3184, 3185, 3186, 3187, 3188, 3189, 3190, 3191, 3192, 3193, 3194, 3196, 3197, 3199, 3200, 3201, 3203, 3204, 3205, 3206, 3207, 3208, 3209, 3210, 3212, 3213, 3214, 3215, 3216, 3217, 3219, 3220, 3221, 3222, 3223, 3225, 3226, 3227, 3228, 3230, 3231, 3232, 3233, 3235, 3236, 3237, 3238, 3239, 3241, 3242, 3243, 3244, 3246, 3247, 3248, 3249, 3251, 3252, 3253, 3254, 3255, 3257, 3258, 3259, 3260, 3262, 3263, 3264, 3265, 3266, 3267, 3268, 3269, 3270, 3271, 3272, 3273, 3274, 3275, 3276, 3277, 3278, 3280, 3281, 3283, 3284, 3285, 3286, 3287, 3288, 3290, 3291, 3292, 3293, 3294, 3295, 3296, 3297, 3299, 3300, 3301, 3302, 3304, 3305, 3306, 3307, 3308, 3309, 3310, 3311, 3312, 3314, 3315, 3317, 3319, 3320, 3321, 3323, 3324, 3325, 3326, 3328, 3329, 3331, 3332, 3334, 3335, 3337, 3339, 3340, 3342, 3343, 3345, 3346, 3348, 3350, 3351, 3353, 3354, 3356, 3357, 3359, 3360, 3361, 3362, 3364, 3365, 3366, 3368, 3369, 3370, 3371, 3372, 3373, 3374, 3376, 3377, 3378, 3379, 3380, 3381, 3382, 3383, 3384, 3385, 3386, 3387, 3389, 3390, 3391, 3392, 3393, 3395, 3396, 3397, 3398, 3399, 3400, 3401, 3403, 3404, 3406, 3407, 3408, 3410, 3411, 3412, 3413, 3415, 3416, 3417, 3419, 3420, 3421, 3422, 3423, 3425, 3427, 3428, 3429, 3431, 3432, 3433, 3434, 3435, 3437, 3439, 3440, 3441, 3443, 3444, 3445, 3446, 3447, 3449, 3450, 3451, 3452, 3454, 3455, 3456, 3458, 3459, 3460, 3461, 3462, 3463, 3464, 3465, 3466, 3467, 3468, 3469, 3470, 3471, 3472, 3474, 3475, 3476, 3477, 3478, 3480, 3481, 3482, 3483, 3484, 3485, 3487, 3488, 3489, 3490, 3491, 3492, 3494, 3495, 3496, 3498, 3499, 3501, 3502, 3503, 3505, 3506, 3508, 3509, 3510, 3512, 3513, 3514, 3515, 3516, 3517, 3518, 3519, 3520, 3521, 3522, 3523, 3524, 3525, 3526, 3527, 3528, 3529, 3530, 3532, 3533, 3534, 3536, 3537, 3539, 3540, 3541, 3542, 3543, 3544, 3545, 3546, 3547, 3548, 3549, 3551, 3552, 3553, 3554, 3556, 3557, 3559, 3560, 3561, 3562, 3564, 3565, 3567, 3568, 3569, 3570, 3572, 3573, 3574, 3575, 3576, 3578, 3579, 3580, 3581, 3582, 3583, 3584, 3585, 3586, 3587, 3588, 3589, 3590, 3591, 3592, 3593, 3595, 3596, 3597, 3598, 3599, 3600, 3601 } ; static yyconst short int yy_def[2411] = { 0, 1860, 1859, 1860, 2, 1860, 2, 1860, 2, 1860, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1861, 1859, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 14, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 37, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 50, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 63, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1861, 77, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1862, 1859, 1859, 1859, 1859, 1859, 1863, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1864, 1865, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1866, 1867, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1868, 1869, 1859, 1859, 1859, 1859, 1859, 1859, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1870, 1861, 1861, 1861, 1861, 1861, 1871, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1872, 1859, 1859, 1859, 1859, 1859, 1859, 1862, 1862, 1862, 1859, 1859, 1873, 1859, 1859, 1859, 1863, 1863, 1863, 1863, 1874, 1875, 1876, 1859, 1859, 1877, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1873, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1878, 1859, 1864, 1864, 1864, 1865, 1865, 1865, 1865, 1859, 1879, 1859, 1859, 1880, 1859, 1866, 1866, 1866, 1867, 1867, 1867, 1867, 1859, 1881, 1859, 1859, 1882, 1859, 1868, 1868, 1868, 1869, 1869, 1869, 1869, 1859, 1883, 1859, 1859, 1884, 1861, 1861, 1861, 1861, 1861, 1861, 1870, 1870, 1870, 1861, 1861, 1885, 1861, 1861, 1861, 1871, 1871, 1871, 1871, 1886, 1887, 1888, 1861, 1861, 1889, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1885, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1872, 1872, 1872, 1890, 1859, 1859, 1859, 1859, 1859, 1862, 1862, 1891, 1859, 1873, 1873, 1873, 1873, 1859, 1859, 1892, 1863, 1893, 1894, 1863, 1863, 1874, 1874, 1874, 1874, 1875, 1875, 1875, 1876, 1876, 1876, 1859, 1859, 1877, 1877, 1877, 1877, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1873, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1878, 1878, 1878, 1878, 1859, 1864, 1864, 1865, 1895, 1896, 1865, 1865, 1859, 1879, 1879, 1879, 1879, 1859, 1859, 1880, 1880, 1880, 1880, 1859, 1866, 1866, 1867, 1897, 1898, 1867, 1867, 1859, 1881, 1881, 1881, 1881, 1859, 1859, 1882, 1882, 1882, 1882, 1859, 1868, 1868, 1869, 1899, 1900, 1869, 1869, 1859, 1883, 1883, 1883, 1883, 1859, 1859, 1884, 1884, 1884, 1901, 1861, 1861, 1861, 1861, 1861, 1870, 1870, 1902, 1861, 1885, 1885, 1885, 1885, 1861, 1861, 1903, 1871, 1904, 1871, 1871, 1886, 1886, 1886, 1886, 1887, 1887, 1887, 1888, 1888, 1888, 1861, 1861, 1889, 1889, 1889, 1889, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1885, 1861, 1861, 1861, 1861, 1861, 1861, 1861, 1872, 1872, 1890, 1890, 1890, 1859, 1859, 1905, 1859, 1906, 1907, 1908, 1908, 1908, 1909, 1873, 1873, 1873, 1859, 1859, 1910, 1910, 1910, 1910, 1911, 1911, 1912, 1912, 1912, 1913, 1914, 1915, 1916, 1914, 1914, 1917, 1917, 1918, 1918, 1919, 1859, 1920, 1921, 1922, 1920, 1920, 1923, 1859, 1859, 1859, 1859, 1859, 1873, 1859, 1859, 1859, 1859, 1859, 1924, 1925, 1926, 1924, 1924, 1927, 1928, 1929, 1929, 1930, 1930, 1930, 1931, 1859, 1932, 1933, 1934, 1932, 1932, 1859, 1935, 1936, 1937, 1935, 1935, 1938, 1939, 1940, 1940, 1941, 1941, 1941, 1942, 1859, 1943, 1944, 1945, 1943, 1943, 1859, 1946, 1947, 1948, 1946, 1946, 1949, 1950, 1951, 1951, 1952, 1952, 1952, 1953, 1859, 1954, 1955, 1956, 1954, 1954, 1859, 1957, 1957, 1958, 1958, 1958, 1959, 1959, 1960, 1959, 1961, 1962, 1963, 1963, 1963, 1964, 1965, 1965, 1965, 1959, 1959, 1966, 1966, 1966, 1966, 1967, 1967, 1967, 1968, 1969, 1970, 1969, 1969, 1971, 1971, 1972, 1972, 1973, 1959, 1974, 1975, 1974, 1974, 1976, 1959, 1959, 1959, 1959, 1959, 1965, 1959, 1959, 1959, 1959, 1959, 1977, 1977, 1978, 1978, 1979, 1859, 1980, 1980, 1980, 1980, 1859, 1981, 1981, 1981, 1981, 1982, 1982, 1983, 1983, 1983, 1984, 1985, 1985, 1986, 1987, 1988, 1989, 1990, 1988, 1988, 1991, 1992, 1993, 1991, 1994, 1994, 1995, 1995, 1995, 1996, 1996, 1997, 1997, 1998, 1998, 1999, 1999, 1999, 2000, 2001, 2001, 2002, 2002, 2002, 2003, 2003, 2004, 2004, 2004, 1859, 1859, 1859, 1859, 1859, 1859, 2005, 2005, 2006, 2006, 2006, 2007, 2007, 2008, 2008, 2008, 2008, 2009, 2010, 2011, 2009, 1859, 2012, 2012, 2013, 2013, 2013, 2014, 2014, 1859, 2015, 2015, 2016, 2016, 2016, 2017, 2017, 2018, 2018, 2018, 2018, 2019, 2020, 2021, 2019, 1859, 2022, 2022, 2023, 2023, 2023, 2024, 2024, 1859, 2025, 2025, 2026, 2026, 2026, 2027, 2027, 2028, 2028, 2028, 2028, 2029, 2030, 2031, 2029, 1859, 2032, 2032, 2033, 2033, 2033, 2034, 2034, 1859, 2035, 2035, 2036, 2036, 2037, 2038, 2039, 2039, 2039, 2039, 2038, 2040, 2040, 2040, 2040, 2041, 2041, 2042, 2042, 2042, 2043, 2044, 2044, 2045, 2046, 2047, 2048, 2047, 2047, 2049, 2050, 2050, 2050, 2051, 2051, 2052, 2052, 2053, 2053, 2054, 2054, 2054, 2055, 2056, 2056, 2056, 2057, 2057, 2058, 2058, 2058, 2038, 2038, 2038, 2038, 2038, 2038, 2059, 2060, 2060, 2061, 2061, 2061, 2062, 2063, 2064, 2065, 2063, 2063, 1859, 2066, 2067, 2068, 2066, 2066, 2069, 2069, 2070, 2070, 2071, 2071, 2071, 2072, 2073, 2073, 2073, 2074, 2074, 2074, 2075, 2075, 2076, 2076, 2076, 2077, 2077, 2078, 2078, 2078, 2079, 2080, 2081, 2079, 2082, 2083, 2084, 2085, 2085, 2086, 2086, 2086, 2087, 2088, 2089, 2087, 2090, 2091, 2091, 1859, 2092, 1859, 1859, 2093, 2094, 2095, 2093, 2096, 2097, 2098, 2099, 2097, 2097, 2100, 2100, 2100, 2101, 2102, 2103, 2104, 2102, 2105, 2106, 2107, 2108, 2106, 2109, 2110, 2111, 2112, 2110, 2110, 2113, 2113, 2113, 2114, 2115, 2116, 2117, 2115, 2118, 2119, 2120, 2121, 2119, 2122, 2123, 2124, 2125, 2123, 2123, 2126, 2126, 2126, 2127, 2128, 2129, 2130, 2128, 2131, 2132, 2133, 2133, 2134, 2134, 2134, 2135, 2136, 2137, 2136, 2136, 2138, 2139, 2140, 2139, 2139, 2141, 2141, 2142, 2142, 2143, 2143, 2143, 2144, 2145, 2145, 2145, 2146, 2146, 2146, 2147, 2147, 2147, 2148, 2148, 2149, 2150, 2151, 2152, 2153, 2153, 2154, 2154, 2154, 2155, 2156, 2157, 2157, 2138, 2158, 2138, 2138, 2159, 2159, 2160, 2160, 2161, 2161, 2161, 2162, 2162, 2163, 2163, 2163, 2164, 2164, 2165, 2166, 2166, 2167, 2167, 2167, 2168, 2168, 2169, 2169, 2170, 2170, 2171, 2171, 2172, 2172, 2173, 2173, 2174, 2175, 2176, 2174, 2177, 2177, 2178, 2179, 2179, 2179, 2180, 2180, 2181, 2181, 2182, 2182, 2182, 2183, 2183, 2184, 2185, 2185, 2185, 2186, 2186, 2186, 2187, 2187, 2188, 2188, 2188, 2189, 2189, 2190, 2191, 2191, 2191, 2191, 2192, 2192, 2192, 2193, 2193, 2193, 2194, 2194, 2195, 2195, 2195, 2196, 2196, 2197, 2198, 2198, 2198, 2198, 2199, 2199, 2199, 2200, 2200, 2200, 2201, 2201, 2202, 2202, 2202, 2203, 2203, 2204, 2205, 2205, 2205, 2205, 2206, 2206, 2206, 2207, 2207, 2208, 2208, 2209, 2209, 2209, 2210, 2210, 2210, 2211, 2211, 2212, 2213, 2213, 2213, 2214, 2214, 2215, 2215, 2216, 2216, 2217, 2217, 2218, 2218, 2219, 2219, 2220, 2221, 2221, 2222, 2222, 2223, 2223, 2224, 2224, 2225, 2226, 2226, 2226, 2227, 2228, 2228, 2229, 2229, 2230, 2231, 2232, 2230, 2233, 2233, 2234, 2234, 2234, 2234, 2235, 2236, 2237, 2235, 2238, 2238, 2239, 2240, 2240, 2241, 2241, 2242, 2242, 2243, 2243, 2244, 2244, 2244, 2245, 2246, 2247, 2247, 2248, 2248, 2249, 2250, 2250, 2251, 2251, 2251, 2252, 2252, 2253, 2254, 2255, 2256, 2254, 2257, 2257, 2258, 2259, 2260, 2258, 2258, 2261, 2262, 2263, 2264, 2265, 2263, 2266, 2266, 2267, 2268, 2269, 2267, 2267, 2270, 2271, 2272, 2273, 2274, 2272, 2275, 2275, 2276, 2277, 2278, 2276, 2276, 2279, 2280, 2281, 2281, 2282, 2282, 2283, 2284, 2284, 2285, 2285, 2285, 2285, 2286, 2287, 2287, 2288, 2289, 2289, 2290, 2290, 2291, 2291, 2292, 2292, 2293, 2294, 2294, 2295, 2295, 2296, 2296, 2297, 2297, 2297, 2298, 2298, 2299, 2299, 2300, 2300, 2301, 2301, 2301, 2302, 2302, 2303, 2304, 2305, 2303, 2303, 2306, 2306, 2306, 2307, 2307, 2308, 2308, 2309, 2309, 2310, 2310, 2311, 2311, 2312, 2313, 2313, 2314, 2314, 2315, 2315, 2316, 2316, 2317, 2317, 2318, 2318, 2318, 2319, 2319, 2320, 2320, 2321, 2321, 2321, 2322, 2322, 2323, 2323, 2323, 2324, 2324, 2325, 2325, 2326, 2326, 2326, 2327, 2327, 2328, 2328, 2328, 2329, 2329, 2330, 2330, 2331, 2331, 2331, 2332, 2332, 2333, 2333, 2334, 2334, 2335, 2335, 2336, 2337, 2336, 2336, 2338, 2338, 2339, 2339, 2340, 2340, 2341, 2341, 2342, 2342, 2343, 2343, 2344, 2344, 2345, 2345, 2346, 2346, 2347, 2347, 2348, 2348, 2349, 2349, 2350, 2351, 2352, 2352, 2353, 2353, 2353, 2354, 2354, 2355, 2356, 2357, 2358, 2358, 2359, 2359, 2360, 2360, 2361, 2362, 2362, 2363, 2364, 2364, 2365, 2365, 2366, 2367, 2368, 2369, 2370, 2368, 2371, 2371, 2372, 2373, 2374, 2375, 2376, 2374, 2377, 2377, 2378, 2379, 2380, 2381, 2382, 2380, 2383, 2383, 2384, 2384, 2385, 2385, 2386, 2387, 2387, 2387, 2388, 2388, 2389, 2390, 2391, 2391, 2392, 2392, 2393, 2393, 2394, 2395, 2395, 2396, 2397, 2397, 2398, 2398, 2399, 2399, 2400, 2400, 2401, 2402, 2403, 2401, 2404, 2404, 2405, 2405, 2406, 2406, 2407, 2407, 2408, 2408, 2409, 2409, 2410, 2410, 2369, 2369, 2369, 2371, 2371, 2375, 2375, 2375, 2377, 2377, 2381, 2381, 2381, 2383, 2383, 2384, 2384, 2385, 2385, 2387, 2388, 2388, 2391, 2391, 2392, 2392, 2393, 2393, 2395, 2395, 2397, 2397, 2398, 2398, 2399, 2400, 2400, 2402, 2402, 2402, 2404, 2404, 2405, 2406, 2407, 2408, 2409, 2409, 2410, 2410, 2369, 2371, 2371, 2375, 2377, 2377, 2381, 2383, 2383, 2384, 2385, 2385, 2388, 2388, 2391, 2392, 2393, 2395, 2397, 2397, 2398, 2398, 2400, 2400, 2402, 2404, 2404, 2409, 2409, 2410, 2410, 2371, 2371, 2377, 2377, 2383, 2383, 2385, 2385, 2388, 2388, 2397, 2397, 2398, 2398, 2400, 2404, 2404, 2409, 2409, 2410, 2371, 2377, 2383, 2385, 2388, 2388, 2397, 2397, 2398, 2404, 2404, 2409, 2409, 2388, 2388, 2397, 2397, 2404, 2409, 2388, 2397, 0, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859 } ; static yyconst short int yy_nxt[4148] = { 0, 12, 14, 13, 12, 12, 12, 12, 15, 16, 17, 18, 12, 19, 12, 12, 20, 21, 12, 22, 23, 24, 25, 12, 12, 12, 12, 12, 26, 27, 28, 29, 12, 30, 12, 12, 31, 32, 12, 33, 34, 35, 36, 12, 12, 12, 37, 134, 131, 123, 132, 585, 38, 39, 40, 124, 763, 41, 126, 135, 42, 125, 127, 142, 43, 128, 150, 137, 151, 143, 129, 153, 44, 45, 46, 144, 156, 47, 915, 312, 48, 138, 145, 154, 49, 50, 146, 346, 178, 147, 157, 51, 52, 53, 148, 123, 54, 184, 126, 55, 135, 174, 127, 56, 939, 128, 203, 125, 142, 154, 175, 57, 58, 59, 180, 209, 60, 228, 135, 61, 144, 145, 274, 62, 63, 146, 433, 154, 147, 135, 64, 65, 66, 181, 123, 67, 275, 126, 68, 468, 199, 127, 69, 748, 128, 234, 125, 142, 123, 200, 70, 71, 72, 205, 224, 73, 789, 154, 74, 144, 125, 954, 75, 76, 77, 13, 76, 76, 76, 76, 78, 79, 80, 81, 76, 82, 76, 76, 83, 84, 76, 85, 86, 87, 88, 76, 76, 76, 76, 76, 89, 90, 91, 92, 76, 93, 76, 76, 94, 95, 76, 96, 97, 98, 99, 76, 76, 76, 100, 268, 306, 269, 142, 481, 101, 102, 103, 104, 230, 105, 307, 271, 106, 107, 144, 108, 109, 110, 111, 287, 809, 288, 260, 272, 112, 113, 114, 115, 261, 116, 290, 328, 117, 118, 262, 119, 120, 121, 122, 161, 134, 329, 291, 279, 955, 162, 163, 164, 104, 280, 165, 153, 135, 166, 107, 281, 108, 167, 110, 111, 131, 293, 132, 154, 333, 168, 169, 170, 115, 137, 171, 156, 350, 172, 118, 294, 119, 173, 121, 122, 186, 178, 380, 138, 123, 157, 187, 188, 189, 104, 124, 190, 381, 135, 191, 107, 125, 108, 192, 110, 111, 150, 957, 151, 142, 785, 193, 194, 195, 115, 143, 196, 309, 310, 197, 118, 144, 119, 198, 121, 122, 145, 317, 126, 318, 146, 311, 127, 147, 338, 128, 339, 145, 206, 211, 225, 146, 402, 184, 147, 212, 213, 214, 104, 231, 215, 203, 403, 216, 107, 154, 108, 217, 110, 111, 209, 331, 332, 135, 342, 218, 219, 220, 115, 971, 221, 299, 154, 222, 118, 311, 119, 223, 121, 122, 236, 237, 973, 236, 236, 236, 236, 238, 239, 240, 241, 236, 242, 236, 236, 243, 244, 236, 245, 246, 247, 248, 236, 236, 236, 236, 236, 249, 250, 251, 252, 236, 253, 236, 236, 254, 255, 236, 256, 257, 258, 259, 236, 236, 236, 263, 282, 126, 494, 264, 283, 127, 265, 284, 128, 123, 145, 266, 285, 129, 146, 174, 126, 147, 142, 829, 127, 125, 148, 128, 180, 145, 309, 310, 175, 146, 144, 347, 147, 318, 348, 331, 332, 181, 573, 123, 345, 322, 351, 126, 339, 199, 142, 127, 312, 345, 128, 125, 205, 145, 352, 200, 356, 146, 144, 753, 147, 299, 309, 310, 357, 206, 318, 358, 331, 332, 333, 361, 228, 339, 322, 123, 355, 979, 360, 126, 981, 224, 355, 127, 135, 145, 128, 125, 142, 146, 234, 225, 147, 312, 230, 805, 362, 231, 309, 310, 144, 366, 154, 299, 367, 333, 318, 368, 331, 332, 746, 747, 365, 370, 322, 371, 263, 339, 260, 268, 264, 269, 365, 265, 261, 271, 274, 279, 266, 290, 262, 282, 287, 280, 288, 283, 293, 272, 284, 281, 275, 291, 424, 285, 383, 384, 391, 412, 392, 413, 294, 405, 406, 429, 465, 430, 433, 454, 385, 455, 468, 478, 425, 481, 434, 385, 491, 494, 469, 509, 514, 482, 515, 548, 466, 495, 539, 518, 540, 561, 562, 479, 433, 433, 435, 519, 492, 577, 470, 510, 573, 483, 580, 549, 570, 496, 567, 568, 569, 433, 563, 574, 585, 562, 468, 520, 606, 578, 468, 607, 481, 625, 581, 619, 626, 571, 615, 586, 573, 752, 494, 575, 597, 563, 612, 613, 614, 468, 620, 608, 631, 632, 633, 481, 627, 481, 638, 587, 644, 657, 616, 645, 635, 650, 651, 652, 494, 634, 621, 663, 494, 639, 654, 518, 658, 676, 677, 682, 568, 683, 518, 646, 653, 518, 691, 684, 687, 694, 699, 664, 677, 640, 722, 731, 659, 433, 678, 688, 740, 567, 585, 569, 433, 700, 692, 518, 741, 695, 468, 711, 678, 606, 723, 732, 568, 685, 747, 689, 749, 750, 751, 573, 864, 701, 606, 764, 742, 760, 761, 762, 585, 780, 748, 777, 778, 779, 606, 612, 781, 614, 468, 787, 788, 619, 625, 789, 791, 792, 793, 619, 619, 797, 798, 799, 625, 794, 625, 631, 481, 633, 481, 807, 808, 800, 811, 812, 813, 638, 795, 638, 494, 801, 638, 644, 814, 817, 818, 819, 644, 644, 820, 650, 840, 652, 494, 827, 828, 831, 832, 833, 657, 657, 657, 849, 518, 809, 834, 815, 862, 863, 858, 682, 841, 683, 518, 687, 821, 829, 859, 865, 750, 866, 687, 850, 687, 867, 699, 835, 875, 761, 876, 699, 699, 424, 909, 898, 868, 877, 860, 899, 903, 864, 740, 740, 904, 916, 917, 918, 740, 928, 929, 878, 573, 425, 910, 919, 568, 746, 747, 900, 921, 568, 922, 744, 905, 923, 924, 746, 747, 433, 749, 573, 751, 573, 920, 937, 760, 434, 762, 585, 930, 931, 943, 944, 585, 945, 585, 777, 948, 779, 606, 959, 960, 606, 961, 938, 606, 435, 964, 465, 975, 976, 965, 967, 613, 968, 785, 946, 949, 613, 468, 788, 613, 787, 788, 619, 977, 962, 469, 466, 619, 625, 966, 969, 970, 787, 788, 791, 988, 793, 619, 797, 989, 799, 625, 983, 984, 478, 470, 625, 985, 978, 986, 991, 632, 992, 805, 632, 481, 808, 995, 997, 990, 632, 807, 808, 482, 479, 993, 994, 807, 808, 811, 638, 813, 638, 999, 1000, 638, 1001, 1003, 817, 1005, 819, 644, 644, 483, 1007, 1008, 644, 1009, 1012, 491, 825, 1002, 1013, 1015, 651, 1016, 825, 651, 1019, 828, 651, 827, 828, 1010, 1017, 1018, 827, 828, 494, 492, 1021, 831, 1014, 833, 657, 1027, 495, 1023, 1024, 657, 1025, 657, 1028, 1029, 1030, 1031, 1032, 1033, 1035, 1038, 1040, 509, 1036, 1043, 1041, 1044, 496, 1046, 1048, 1049, 1050, 1051, 1026, 1052, 858, 1053, 917, 1054, 858, 858, 858, 510, 1037, 568, 1042, 863, 687, 1047, 568, 862, 863, 1055, 1057, 924, 862, 863, 518, 865, 687, 866, 687, 1059, 1060, 1063, 519, 1064, 1065, 1061, 1066, 1068, 1070, 875, 1056, 876, 699, 1062, 1072, 1073, 699, 1074, 699, 1079, 1077, 1080, 520, 1032, 1081, 1082, 1048, 1069, 1051, 1052, 1070, 1083, 1084, 1085, 1085, 1086, 1087, 1089, 1091, 1075, 1078, 898, 1092, 1093, 1094, 898, 898, 898, 1097, 903, 903, 1095, 1098, 1099, 1100, 903, 903, 1090, 1103, 1104, 1105, 1106, 1108, 1101, 1110, 1110, 1112, 1115, 916, 1118, 918, 740, 1096, 1120, 1121, 740, 740, 744, 921, 1122, 922, 744, 1109, 1125, 1126, 926, 1113, 1116, 573, 1102, 923, 568, 746, 747, 1127, 750, 1128, 926, 1132, 750, 1123, 929, 750, 928, 929, 1129, 1130, 928, 929, 573, 1132, 1133, 1133, 1131, 1131, 1134, 1135, 1137, 941, 1139, 761, 1140, 941, 761, 585, 944, 761, 943, 944, 1141, 1142, 943, 944, 585, 1143, 1144, 1145, 1138, 1146, 1147, 1091, 1148, 1149, 1147, 957, 1150, 778, 1151, 957, 778, 606, 960, 778, 959, 960, 1152, 1153, 959, 960, 606, 964, 964, 964, 1143, 785, 1154, 1155, 1156, 1157, 964, 967, 1163, 968, 785, 1158, 1161, 1162, 969, 613, 787, 788, 973, 1164, 792, 1165, 973, 792, 619, 976, 792, 975, 976, 619, 1163, 1154, 1159, 1166, 1167, 975, 976, 981, 625, 1168, 1169, 798, 1170, 981, 798, 625, 984, 798, 983, 984, 1171, 1172, 983, 984, 1168, 988, 1174, 1175, 1176, 988, 1173, 988, 988, 991, 805, 992, 805, 1180, 1181, 993, 632, 807, 808, 1173, 1177, 1182, 997, 1183, 812, 1184, 997, 812, 638, 1000, 812, 999, 1000, 1185, 1186, 999, 1000, 638, 1187, 1182, 1005, 1178, 1188, 818, 1189, 1005, 818, 644, 1008, 818, 1007, 1008, 1190, 1191, 1007, 1008, 644, 1012, 1193, 1194, 1195, 1012, 1192, 1012, 1012, 825, 1015, 1187, 1016, 825, 1199, 1200, 1017, 651, 827, 828, 1196, 1201, 1021, 1202, 832, 1203, 1021, 832, 657, 1024, 832, 1023, 1024, 657, 1201, 1192, 1204, 1205, 1023, 1024, 1207, 1197, 1207, 1206, 1208, 1209, 1211, 1213, 1035, 1214, 1093, 1215, 1035, 1035, 1035, 1218, 1040, 1040, 1206, 1216, 1219, 1099, 1220, 1040, 1040, 1223, 1212, 1224, 1225, 1226, 1221, 1228, 1230, 1230, 1232, 1235, 858, 1053, 1217, 1054, 858, 1238, 1239, 858, 750, 687, 1060, 1240, 750, 1059, 1060, 1229, 1244, 687, 1233, 1236, 1244, 1222, 1243, 1245, 1241, 1057, 568, 862, 863, 1242, 1130, 1059, 1060, 1245, 1243, 1246, 1247, 1249, 761, 699, 1073, 761, 1072, 1073, 1251, 1142, 1072, 1073, 699, 1252, 1253, 1254, 1255, 1256, 1213, 1257, 1258, 1250, 1256, 548, 1259, 1260, 1261, 1262, 1264, 1092, 1267, 1094, 898, 1269, 1270, 898, 898, 1273, 1275, 1277, 1278, 1271, 1252, 549, 1098, 903, 1100, 903, 1265, 903, 1281, 1282, 1283, 1284, 1285, 1286, 562, 1287, 1288, 1289, 1290, 1118, 1272, 1279, 1291, 917, 1292, 1118, 917, 740, 1121, 917, 1120, 1121, 1295, 740, 563, 1293, 1294, 1120, 1121, 568, 926, 1126, 568, 1125, 1126, 1280, 1297, 924, 1125, 1126, 1127, 577, 1128, 926, 1299, 1300, 573, 580, 1296, 1129, 750, 928, 929, 1301, 1302, 1303, 1304, 574, 1306, 1307, 1139, 578, 1140, 941, 941, 585, 1308, 581, 1141, 761, 943, 944, 1309, 1310, 1312, 1273, 1310, 575, 957, 1150, 586, 1151, 957, 1315, 1316, 1152, 778, 959, 960, 606, 1318, 964, 607, 1155, 1313, 1157, 964, 1320, 1321, 964, 587, 613, 973, 1162, 613, 1161, 1162, 1326, 1164, 1322, 1165, 973, 608, 1324, 970, 1161, 1162, 619, 1327, 1330, 1331, 1166, 792, 975, 976, 1169, 981, 1170, 981, 1333, 1334, 1336, 620, 1171, 798, 983, 984, 1323, 1328, 625, 988, 1174, 626, 1176, 988, 1338, 1339, 988, 632, 1344, 1181, 997, 621, 632, 1180, 1181, 1348, 1349, 1340, 1005, 1345, 638, 627, 1342, 994, 1180, 1181, 1183, 1354, 1184, 997, 1185, 812, 999, 1000, 1188, 639, 1189, 1005, 1012, 1346, 1351, 1352, 1356, 1357, 1341, 1190, 818, 1007, 1008, 644, 1012, 1193, 645, 1195, 1012, 640, 1358, 651, 1362, 1200, 651, 1199, 1200, 1360, 1018, 1199, 1200, 1021, 1202, 1363, 1203, 1021, 646, 1366, 1367, 1204, 832, 1023, 1024, 657, 663, 1368, 1369, 1370, 1371, 1373, 1376, 1377, 1359, 1364, 1214, 1035, 1215, 1035, 658, 1035, 1380, 1378, 1040, 1219, 664, 1220, 1040, 1382, 1383, 1374, 1040, 1386, 1387, 1388, 1389, 1390, 1391, 677, 659, 1392, 1384, 1393, 1394, 1395, 917, 1379, 1239, 917, 1238, 1239, 1396, 1294, 1238, 1239, 858, 858, 687, 678, 691, 1397, 1242, 750, 1059, 1060, 694, 1399, 1400, 688, 1385, 1401, 1402, 1251, 761, 1072, 1073, 699, 1403, 1404, 692, 1405, 1398, 1407, 1380, 1405, 695, 1409, 1409, 689, 1410, 1411, 700, 1412, 1413, 1267, 1414, 1093, 1415, 1267, 1093, 898, 1270, 1408, 1093, 1269, 1270, 1416, 1417, 1269, 1270, 898, 701, 1421, 1275, 1430, 1099, 1422, 1278, 1418, 1424, 1099, 1425, 1275, 1099, 1277, 1278, 903, 1430, 1419, 1426, 1427, 1277, 1278, 903, 1431, 1428, 1423, 1432, 1433, 1434, 1435, 1436, 1437, 1438, 1291, 1118, 1292, 1118, 1429, 1440, 1441, 1293, 917, 1120, 1121, 740, 740, 1297, 568, 1125, 1126, 750, 1444, 1300, 750, 1299, 1300, 1443, 1130, 1299, 1300, 1445, 1446, 1447, 761, 1442, 1307, 761, 1306, 1307, 1448, 1142, 1306, 1307, 1449, 1450, 1452, 1454, 1455, 778, 1318, 1316, 778, 1315, 1316, 1326, 1442, 1456, 1153, 1315, 1316, 1457, 1156, 1458, 1318, 1156, 1453, 1321, 1156, 1320, 1321, 1459, 1460, 1320, 1321, 964, 964, 1461, 1324, 613, 1161, 1162, 1463, 1464, 1465, 1326, 1326, 1466, 1326, 792, 1336, 1331, 792, 1330, 1331, 798, 1344, 1334, 1462, 1468, 1167, 1330, 1331, 798, 1333, 1334, 1175, 988, 1339, 1467, 1469, 1172, 1333, 1334, 1470, 1175, 1471, 1336, 1175, 1338, 1339, 1472, 1473, 1338, 1339, 988, 1344, 1474, 1354, 1475, 1342, 632, 1180, 1181, 1476, 1477, 1478, 1344, 1344, 1479, 812, 1362, 1349, 812, 1348, 1349, 1495, 1480, 1481, 1186, 1348, 1349, 818, 1495, 1352, 818, 1351, 1352, 1482, 1191, 1351, 1352, 1483, 1194, 1484, 1354, 1194, 1012, 1357, 1194, 1356, 1357, 1485, 1486, 1356, 1357, 1012, 1362, 1487, 1360, 651, 1199, 1200, 1489, 1490, 1491, 1362, 1362, 1492, 1488, 832, 1496, 1367, 832, 1366, 1367, 1497, 1498, 1493, 1494, 1205, 1366, 1367, 1499, 1093, 1035, 1377, 1093, 1376, 1377, 1500, 1417, 1376, 1377, 1035, 1504, 1099, 1510, 1383, 1505, 1040, 1510, 1501, 1099, 1382, 1383, 1507, 1427, 1382, 1383, 1040, 1511, 1508, 1502, 1512, 1513, 1514, 1515, 1516, 1506, 1517, 1518, 1509, 1396, 917, 1238, 1239, 858, 858, 1520, 1521, 1522, 1523, 1524, 1525, 1527, 1529, 1530, 722, 1531, 1532, 1533, 1534, 1414, 1267, 1415, 1267, 1519, 1536, 1537, 1416, 1093, 1269, 1270, 898, 1528, 898, 1421, 723, 1540, 1541, 1542, 1421, 1421, 1421, 1275, 1538, 1424, 1519, 1425, 1275, 1543, 1546, 1547, 1426, 1099, 1277, 1278, 903, 903, 731, 1550, 1551, 1552, 1553, 1554, 1555, 1556, 1539, 1548, 1557, 917, 1544, 1441, 917, 1440, 1441, 740, 1559, 1560, 732, 1558, 1294, 1440, 1441, 741, 1561, 1562, 1549, 1443, 750, 1299, 1300, 1448, 761, 1306, 1307, 1563, 1564, 1565, 1566, 1567, 1568, 1570, 1571, 742, 1456, 778, 1315, 1316, 1457, 1318, 1458, 1318, 1459, 1156, 1320, 1321, 964, 964, 1463, 1575, 1465, 1326, 1577, 1578, 1326, 1326, 1572, 1468, 792, 1330, 1331, 1469, 798, 1333, 1334, 1470, 1336, 1471, 1336, 1582, 1583, 1579, 1472, 1175, 1338, 1339, 988, 1573, 988, 1476, 1587, 1478, 1344, 1589, 1590, 1344, 1584, 1344, 1481, 812, 1348, 1349, 1580, 1482, 818, 1351, 1352, 1483, 1354, 1484, 1354, 1012, 1591, 1594, 1595, 1012, 1599, 1362, 1585, 1485, 1194, 1356, 1357, 1362, 1489, 1596, 1491, 1362, 1601, 1602, 1494, 832, 1366, 1367, 1592, 840, 1605, 1606, 1607, 1608, 1603, 1597, 1500, 1093, 1376, 1377, 1035, 1035, 1504, 1611, 1541, 1612, 1504, 1504, 1604, 841, 1504, 1040, 1609, 1040, 849, 1613, 1507, 1099, 1382, 1383, 1617, 1615, 1618, 1619, 1620, 1621, 1622, 1623, 1624, 858, 1625, 1626, 1627, 1610, 850, 1628, 1629, 859, 1614, 1630, 1631, 1632, 1633, 1616, 1634, 1635, 1636, 1637, 1638, 1093, 898, 1537, 1093, 1536, 1537, 1640, 898, 860, 1639, 1417, 1536, 1537, 1540, 1642, 1542, 1421, 1644, 1645, 1421, 1421, 1099, 903, 1547, 1099, 1546, 1547, 1649, 903, 1650, 1646, 1650, 1640, 1648, 1427, 1546, 1547, 1651, 1652, 1653, 1654, 1655, 1656, 1558, 917, 1440, 1441, 1657, 1657, 1658, 1659, 1647, 1660, 1649, 1660, 1661, 1662, 1663, 1664, 1156, 964, 1571, 1156, 1570, 1571, 1665, 1460, 1570, 1571, 964, 1575, 1464, 1326, 1578, 1666, 1667, 1464, 1668, 1575, 1464, 1577, 1578, 1175, 988, 1583, 1666, 1669, 1670, 1577, 1578, 1326, 1175, 1582, 1583, 1587, 1671, 1344, 1672, 1673, 1473, 1582, 1583, 988, 1675, 1477, 1676, 1587, 1674, 1674, 1477, 1012, 1590, 1477, 1589, 1590, 1677, 1678, 1589, 1590, 1344, 1194, 1680, 1595, 1599, 1679, 1194, 1594, 1595, 1681, 1486, 1594, 1595, 1012, 1362, 1490, 1682, 1602, 1682, 1683, 1490, 1684, 1599, 1490, 1601, 1602, 1685, 1686, 1601, 1602, 1362, 1689, 1690, 1691, 1692, 1687, 1035, 1035, 1504, 1688, 1611, 1693, 1612, 1504, 1695, 1696, 1504, 1040, 1040, 1697, 1700, 1700, 1699, 1701, 1702, 1703, 1704, 1705, 1706, 1707, 1707, 1708, 1693, 1709, 1710, 1710, 1711, 1712, 1713, 1714, 1715, 1716, 1717, 1699, 1718, 1642, 1421, 1698, 1639, 1093, 1536, 1537, 898, 1541, 1725, 1645, 899, 1719, 1541, 1720, 1642, 1541, 1644, 1645, 1721, 1722, 1644, 1645, 1421, 909, 903, 1724, 1726, 1723, 904, 1727, 900, 1648, 1099, 1546, 1547, 1728, 1729, 1730, 937, 1731, 1732, 948, 1733, 910, 1734, 1735, 1736, 1575, 905, 1665, 1156, 1570, 1571, 964, 1738, 1739, 1326, 965, 938, 1326, 1667, 949, 1668, 1575, 1669, 1464, 1577, 1578, 1743, 1744, 1587, 1740, 1673, 1175, 1582, 1583, 988, 966, 1344, 1675, 989, 1676, 1587, 1677, 1477, 1589, 1590, 1344, 1681, 1194, 1594, 1595, 1012, 1745, 1741, 1683, 1013, 1684, 1599, 1599, 990, 1748, 1749, 1685, 1490, 1601, 1602, 1362, 1362, 1752, 1753, 1754, 1755, 1035, 1504, 1504, 1014, 1036, 1541, 1757, 1696, 1046, 1746, 1750, 1541, 1695, 1696, 1756, 1722, 1695, 1696, 1040, 1759, 1760, 1761, 1041, 1762, 1037, 1763, 1764, 1758, 1047, 1751, 1068, 1765, 1766, 1077, 1767, 1768, 1769, 1770, 1771, 1771, 1772, 1773, 1042, 1719, 1642, 1720, 1642, 1775, 1776, 1421, 1069, 1421, 1779, 1078, 1721, 1541, 1644, 1645, 1779, 1780, 1780, 1777, 1781, 1781, 1782, 1782, 1783, 1784, 1785, 1786, 1464, 1326, 1739, 1464, 1738, 1739, 1787, 1670, 1738, 1739, 1326, 1344, 1477, 1778, 1744, 1477, 1743, 1744, 1788, 1790, 1678, 1743, 1744, 1344, 1490, 1362, 1749, 1796, 1796, 1789, 1797, 1791, 1490, 1748, 1749, 1793, 1686, 1748, 1749, 1792, 1362, 1798, 1756, 1541, 1695, 1696, 1504, 1504, 1794, 1801, 1801, 1802, 1802, 1795, 1803, 1803, 1804, 1804, 1799, 1805, 1806, 1807, 1808, 1089, 1809, 1810, 1541, 1421, 1776, 1541, 1775, 1776, 1811, 1722, 1775, 1776, 1421, 1108, 1112, 1800, 1115, 1137, 1814, 1090, 1815, 1816, 1817, 1787, 1464, 1738, 1739, 1326, 1812, 1326, 1818, 1344, 1820, 1109, 1113, 1344, 1116, 1138, 1362, 1813, 1790, 1477, 1743, 1744, 1793, 1490, 1748, 1749, 1819, 1362, 1822, 1211, 1824, 1825, 1504, 1504, 1821, 1228, 1232, 1823, 1235, 1249, 1828, 1829, 1830, 1831, 1832, 1832, 1421, 1421, 1826, 1212, 1811, 1541, 1775, 1776, 1833, 1229, 1233, 1835, 1236, 1250, 1836, 1837, 1837, 1326, 1326, 1344, 1344, 1362, 1362, 1827, 1841, 1841, 1504, 1838, 1504, 1834, 1839, 1840, 1844, 1845, 1842, 1846, 1846, 1264, 1421, 1421, 1849, 1850, 1312, 1326, 1344, 1373, 1504, 1362, 1838, 1839, 1504, 1847, 1840, 1853, 1327, 1345, 1843, 1265, 1363, 1851, 1854, 1407, 1313, 1421, 1421, 1374, 1856, 1856, 1504, 1504, 1858, 1858, 1848, 1421, 1328, 1346, 1855, 1422, 1364, 1452, 1857, 1408, 1504, 1852, 1527, 236, 1505, 423, 432, 464, 467, 477, 480, 490, 493, 1855, 508, 1423, 517, 1453, 547, 1857, 560, 572, 1528, 576, 1506, 12, 12, 579, 584, 605, 618, 624, 637, 643, 656, 662, 675, 686, 690, 693, 698, 721, 730, 739, 743, 745, 784, 786, 804, 806, 824, 826, 839, 848, 857, 861, 897, 902, 423, 730, 908, 739, 743, 745, 745, 432, 572, 925, 927, 576, 579, 936, 584, 940, 942, 947, 605, 956, 958, 963, 464, 784, 786, 786, 467, 618, 972, 974, 624, 980, 982, 987, 477, 804, 806, 806, 480, 637, 996, 998, 643, 1004, 1006, 1011, 490, 824, 826, 826, 493, 656, 1020, 1022, 662, 839, 236, 1034, 1039, 508, 848, 1045, 675, 857, 861, 861, 517, 686, 1058, 690, 693, 1067, 698, 1071, 1076, 547, 721, 1088, 897, 902, 730, 908, 1107, 560, 1111, 1114, 739, 1117, 1119, 743, 1124, 745, 745, 925, 927, 927, 572, 576, 579, 936, 1136, 940, 942, 942, 584, 947, 956, 958, 958, 605, 963, 784, 1160, 786, 786, 972, 974, 974, 618, 980, 982, 982, 624, 987, 804, 1179, 806, 806, 996, 998, 998, 637, 1004, 1006, 1006, 643, 1011, 824, 1198, 826, 826, 1020, 1022, 1022, 656, 662, 839, 1210, 236, 1034, 1039, 848, 1045, 1227, 675, 1231, 1234, 857, 1237, 861, 861, 1058, 1058, 686, 690, 693, 1067, 1248, 1071, 1071, 698, 1076, 547, 721, 1088, 1263, 897, 1266, 1268, 902, 1274, 1276, 730, 908, 1107, 560, 1111, 1114, 1117, 1119, 1119, 739, 1124, 1124, 925, 1298, 927, 927, 572, 576, 579, 936, 1136, 940, 1305, 942, 942, 584, 947, 1311, 956, 1314, 958, 958, 605, 963, 1317, 1319, 1160, 1160, 1325, 972, 1329, 974, 974, 618, 980, 1332, 982, 982, 624, 987, 1335, 1337, 1179, 1179, 1343, 996, 1347, 998, 998, 637, 1004, 1350, 1006, 1006, 643, 1011, 1353, 1355, 1198, 1198, 1361, 1020, 1365, 1022, 1022, 656, 662, 839, 1210, 1372, 1034, 1375, 236, 1039, 1381, 848, 1045, 1227, 675, 1231, 1234, 1237, 1237, 857, 1058, 1058, 686, 690, 693, 1067, 1248, 1071, 1071, 698, 1076, 1406, 721, 1088, 1263, 1266, 1268, 1268, 897, 1420, 1274, 1276, 1276, 902, 730, 908, 1107, 1111, 1114, 1117, 1439, 1119, 1119, 739, 1124, 1124, 1298, 1298, 936, 1136, 1305, 1305, 947, 1451, 1311, 1314, 1314, 1317, 1319, 1319, 963, 1160, 1160, 1325, 1329, 1329, 1332, 1332, 1335, 1337, 1337, 987, 1179, 1179, 1343, 1347, 1347, 1350, 1350, 1353, 1355, 1355, 1011, 1198, 1198, 1361, 1365, 1365, 839, 1210, 1372, 1375, 1375, 1034, 1503, 1381, 1381, 1039, 848, 1045, 1227, 1231, 1234, 1237, 1237, 857, 1067, 1248, 1076, 1526, 1406, 721, 1088, 1263, 1266, 1535, 1268, 1268, 897, 1420, 1274, 1545, 1276, 1276, 902, 730, 908, 1107, 1111, 1114, 1439, 1439, 739, 1298, 1298, 936, 1136, 1305, 1305, 947, 1451, 1311, 1314, 1314, 1317, 1569, 1319, 1319, 963, 1325, 1574, 1576, 1329, 1329, 1332, 1332, 1335, 1581, 1337, 1337, 987, 1343, 1586, 1588, 1347, 1347, 1350, 1350, 1353, 1593, 1355, 1355, 1011, 1361, 1598, 1600, 1365, 1365, 839, 1210, 1372, 1375, 1375, 1034, 1503, 1381, 1381, 1039, 848, 1045, 1227, 1231, 1234, 857, 1067, 1248, 1076, 1526, 1406, 1088, 1263, 1535, 1535, 897, 1420, 1641, 1643, 1545, 1545, 902, 908, 1107, 1111, 1114, 1439, 1439, 936, 1136, 947, 1451, 1311, 1569, 1569, 963, 1574, 1576, 1576, 1325, 1581, 1581, 987, 1586, 1588, 1588, 1343, 1593, 1593, 1011, 1598, 1600, 1600, 1361, 1210, 1372, 1034, 1503, 1694, 1039, 1045, 1227, 1231, 1234, 1067, 1248, 1076, 1526, 1406, 1088, 1263, 1535, 1535, 897, 1641, 1643, 1643, 1420, 1545, 1545, 902, 908, 1107, 1111, 1114, 936, 1136, 947, 1451, 1311, 1569, 1569, 963, 1574, 1737, 1576, 1576, 1325, 1581, 1581, 987, 1586, 1742, 1588, 1588, 1343, 1593, 1593, 1011, 1598, 1747, 1600, 1600, 1361, 1210, 1372, 1034, 1694, 1694, 1503, 1039, 1045, 1227, 1231, 1234, 1067, 1248, 1076, 1526, 1406, 1088, 1263, 1641, 1774, 1643, 1643, 1420, 1107, 1111, 1114, 1136, 1451, 1311, 914, 911, 953, 952, 895, 951, 950, 941, 939, 935, 934, 933, 932, 926, 744, 740, 915, 914, 913, 912, 911, 907, 906, 901, 896, 895, 894, 893, 892, 891, 890, 889, 879, 888, 873, 887, 886, 885, 851, 846, 884, 844, 883, 882, 881, 880, 879, 699, 874, 873, 872, 871, 870, 869, 687, 856, 855, 854, 853, 852, 851, 847, 847, 846, 845, 844, 843, 842, 838, 837, 836, 822, 657, 830, 825, 823, 823, 822, 644, 816, 802, 638, 810, 805, 803, 803, 802, 625, 796, 782, 619, 790, 785, 783, 783, 782, 606, 776, 775, 765, 774, 758, 773, 772, 771, 733, 728, 770, 726, 769, 768, 767, 766, 765, 585, 759, 758, 757, 756, 755, 754, 573, 744, 738, 737, 736, 735, 734, 733, 729, 729, 728, 727, 726, 725, 724, 720, 719, 718, 717, 716, 715, 714, 681, 713, 712, 710, 673, 709, 708, 707, 706, 705, 665, 704, 703, 702, 697, 696, 518, 681, 680, 679, 674, 673, 672, 671, 670, 669, 668, 667, 666, 665, 661, 660, 655, 494, 649, 648, 647, 642, 641, 636, 481, 630, 629, 628, 623, 622, 617, 468, 611, 610, 609, 604, 603, 602, 601, 600, 566, 599, 598, 596, 558, 595, 594, 593, 592, 591, 550, 590, 589, 588, 583, 582, 433, 566, 565, 564, 559, 558, 557, 556, 555, 554, 553, 552, 551, 550, 546, 545, 544, 526, 543, 542, 523, 522, 521, 541, 538, 537, 536, 535, 534, 533, 532, 531, 530, 501, 529, 528, 527, 526, 525, 524, 523, 522, 521, 516, 513, 512, 511, 507, 506, 505, 504, 503, 502, 501, 498, 500, 499, 488, 498, 497, 489, 488, 485, 487, 486, 475, 485, 484, 476, 475, 472, 474, 473, 462, 472, 471, 463, 462, 461, 460, 459, 441, 458, 457, 438, 437, 436, 456, 453, 452, 451, 450, 449, 448, 447, 446, 445, 416, 444, 443, 442, 441, 440, 439, 438, 437, 436, 431, 428, 427, 426, 422, 421, 420, 419, 418, 417, 416, 415, 414, 411, 410, 409, 408, 407, 404, 379, 401, 400, 399, 398, 397, 396, 395, 394, 393, 390, 389, 388, 387, 386, 382, 379, 378, 377, 376, 375, 374, 373, 372, 297, 296, 295, 292, 289, 286, 278, 277, 276, 273, 270, 267, 364, 369, 364, 363, 235, 233, 232, 229, 227, 226, 354, 359, 354, 353, 210, 208, 207, 204, 202, 201, 344, 349, 344, 343, 185, 183, 182, 179, 177, 176, 341, 340, 337, 336, 335, 334, 333, 330, 305, 327, 326, 325, 324, 323, 322, 321, 320, 319, 316, 315, 314, 313, 312, 308, 305, 304, 303, 302, 301, 300, 299, 298, 160, 159, 158, 155, 152, 149, 141, 140, 139, 136, 133, 130, 297, 296, 295, 292, 289, 286, 278, 277, 276, 273, 270, 267, 235, 233, 232, 229, 227, 226, 210, 208, 207, 204, 202, 201, 185, 183, 182, 179, 177, 176, 160, 159, 158, 155, 152, 149, 141, 140, 139, 136, 133, 130, 1859, 13, 13, 13, 13, 13, 11, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859 } ; static yyconst short int yy_chk[4148] = { 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 4, 20, 18, 15, 18, 586, 4, 4, 4, 15, 586, 4, 16, 20, 4, 15, 16, 26, 4, 16, 29, 22, 29, 26, 16, 31, 4, 4, 4, 26, 33, 4, 773, 178, 4, 22, 27, 31, 4, 6, 27, 178, 42, 27, 33, 6, 6, 6, 27, 38, 6, 48, 39, 6, 42, 38, 39, 6, 774, 39, 55, 38, 44, 48, 39, 6, 6, 6, 44, 61, 6, 68, 55, 6, 44, 45, 85, 6, 8, 45, 570, 61, 45, 68, 8, 8, 8, 45, 51, 8, 85, 52, 8, 615, 51, 52, 8, 570, 52, 74, 51, 57, 64, 52, 8, 8, 8, 57, 64, 8, 615, 74, 8, 57, 64, 775, 8, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 14, 81, 131, 81, 70, 634, 14, 14, 14, 14, 70, 14, 131, 83, 14, 14, 70, 14, 14, 14, 14, 92, 634, 92, 78, 83, 14, 14, 14, 14, 78, 14, 94, 150, 14, 14, 78, 14, 14, 14, 14, 37, 106, 150, 94, 89, 776, 37, 37, 37, 37, 89, 37, 117, 106, 37, 37, 89, 37, 37, 37, 37, 104, 96, 104, 117, 184, 37, 37, 37, 37, 108, 37, 119, 184, 37, 37, 96, 37, 37, 37, 37, 50, 166, 268, 108, 101, 119, 50, 50, 50, 50, 101, 50, 268, 166, 50, 50, 101, 50, 50, 50, 50, 115, 778, 115, 112, 784, 50, 50, 50, 50, 112, 50, 133, 133, 50, 50, 112, 50, 50, 50, 50, 58, 139, 65, 139, 58, 133, 65, 58, 158, 65, 158, 71, 58, 63, 65, 71, 287, 172, 71, 63, 63, 63, 63, 71, 63, 191, 287, 63, 63, 172, 63, 63, 63, 63, 197, 152, 152, 191, 174, 63, 63, 63, 63, 790, 63, 174, 197, 63, 63, 152, 63, 63, 63, 63, 77, 77, 792, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 79, 90, 102, 653, 79, 90, 102, 79, 90, 102, 162, 113, 79, 90, 102, 113, 162, 163, 113, 168, 653, 163, 162, 113, 163, 168, 169, 177, 177, 163, 169, 168, 179, 169, 179, 180, 183, 183, 169, 575, 187, 177, 180, 185, 188, 185, 187, 193, 188, 203, 183, 188, 187, 193, 194, 199, 188, 203, 194, 193, 575, 194, 199, 202, 202, 204, 194, 204, 205, 208, 208, 209, 210, 216, 210, 205, 212, 202, 796, 209, 213, 798, 212, 208, 213, 216, 219, 213, 212, 218, 219, 222, 213, 219, 228, 218, 804, 224, 219, 227, 227, 218, 228, 222, 224, 229, 234, 229, 230, 233, 233, 569, 569, 227, 234, 230, 235, 239, 235, 238, 241, 239, 241, 233, 239, 238, 243, 245, 249, 239, 254, 238, 250, 252, 249, 252, 250, 256, 243, 250, 249, 245, 254, 305, 250, 270, 270, 276, 295, 276, 295, 256, 289, 289, 309, 344, 309, 311, 331, 270, 331, 345, 354, 305, 355, 311, 289, 364, 365, 345, 379, 383, 355, 383, 416, 344, 365, 405, 385, 405, 428, 428, 354, 434, 435, 311, 385, 364, 437, 345, 379, 436, 355, 438, 416, 434, 365, 433, 433, 433, 433, 428, 436, 441, 453, 469, 385, 462, 437, 470, 462, 483, 475, 438, 472, 475, 435, 469, 441, 574, 574, 496, 436, 453, 453, 468, 468, 468, 468, 472, 462, 481, 481, 481, 481, 475, 482, 485, 441, 488, 498, 470, 488, 483, 494, 494, 494, 494, 482, 472, 501, 495, 485, 496, 519, 498, 513, 513, 518, 518, 518, 518, 488, 495, 520, 522, 519, 521, 523, 526, 501, 538, 485, 550, 558, 498, 571, 513, 521, 566, 567, 587, 567, 567, 526, 522, 684, 566, 523, 616, 538, 538, 608, 550, 558, 745, 520, 745, 521, 573, 573, 573, 573, 684, 526, 607, 587, 566, 585, 585, 585, 585, 607, 571, 606, 606, 606, 606, 612, 608, 612, 612, 614, 614, 621, 627, 616, 619, 619, 619, 619, 620, 625, 625, 625, 625, 620, 626, 631, 635, 631, 631, 633, 633, 626, 638, 638, 638, 638, 621, 639, 654, 627, 640, 645, 639, 644, 644, 644, 644, 646, 645, 650, 665, 650, 650, 652, 652, 657, 657, 657, 657, 658, 659, 673, 685, 635, 658, 640, 683, 683, 681, 682, 665, 682, 682, 689, 646, 654, 681, 687, 687, 687, 687, 673, 688, 688, 701, 659, 699, 699, 699, 699, 700, 729, 733, 726, 689, 700, 681, 726, 728, 685, 742, 741, 728, 740, 740, 740, 740, 751, 751, 701, 753, 729, 733, 741, 746, 746, 746, 726, 744, 744, 744, 744, 728, 747, 747, 747, 747, 748, 749, 752, 749, 749, 742, 758, 760, 748, 760, 760, 752, 753, 762, 762, 763, 763, 764, 777, 765, 777, 777, 779, 779, 780, 780, 758, 781, 748, 782, 783, 793, 793, 782, 785, 785, 785, 785, 764, 765, 786, 789, 786, 787, 787, 787, 794, 794, 781, 789, 783, 795, 801, 782, 788, 788, 788, 788, 791, 802, 791, 791, 797, 802, 797, 797, 799, 799, 803, 789, 800, 800, 795, 801, 805, 805, 805, 805, 806, 809, 806, 810, 812, 802, 807, 807, 807, 809, 803, 808, 808, 808, 808, 811, 815, 811, 811, 813, 813, 814, 814, 816, 817, 818, 817, 817, 821, 809, 819, 819, 820, 820, 822, 823, 824, 815, 822, 825, 825, 825, 825, 826, 830, 826, 827, 827, 827, 821, 828, 828, 828, 828, 829, 823, 832, 831, 822, 831, 831, 836, 829, 833, 833, 834, 834, 835, 837, 838, 840, 841, 842, 843, 844, 845, 846, 847, 844, 849, 846, 850, 829, 851, 852, 853, 854, 855, 835, 856, 857, 858, 858, 858, 858, 859, 860, 847, 844, 861, 846, 861, 868, 851, 862, 862, 862, 859, 863, 863, 863, 863, 864, 865, 867, 865, 865, 866, 866, 869, 864, 870, 871, 867, 872, 873, 874, 875, 860, 875, 875, 868, 876, 876, 877, 877, 878, 880, 879, 881, 864, 882, 883, 884, 885, 873, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 878, 879, 897, 898, 898, 898, 898, 899, 900, 901, 902, 904, 899, 903, 903, 903, 903, 905, 895, 906, 907, 909, 910, 911, 904, 912, 913, 914, 915, 916, 917, 916, 916, 900, 918, 918, 919, 920, 924, 921, 919, 921, 921, 911, 922, 922, 925, 914, 915, 931, 905, 923, 923, 923, 923, 926, 926, 926, 926, 932, 927, 920, 927, 928, 928, 928, 929, 929, 929, 929, 930, 933, 934, 935, 931, 930, 937, 938, 939, 940, 941, 941, 941, 941, 942, 945, 942, 943, 943, 943, 944, 944, 944, 944, 946, 945, 948, 949, 939, 950, 951, 952, 953, 954, 955, 956, 957, 957, 957, 957, 958, 961, 958, 959, 959, 959, 960, 960, 960, 960, 962, 963, 965, 966, 946, 970, 961, 964, 964, 964, 964, 967, 971, 967, 967, 965, 968, 968, 969, 969, 969, 969, 972, 973, 973, 973, 973, 974, 978, 974, 975, 975, 975, 977, 979, 962, 966, 976, 976, 976, 976, 980, 986, 977, 981, 981, 981, 981, 982, 985, 982, 983, 983, 983, 984, 984, 984, 984, 978, 987, 988, 988, 988, 988, 985, 989, 990, 991, 994, 991, 991, 992, 992, 993, 993, 993, 993, 986, 989, 995, 996, 997, 997, 997, 997, 998, 1001, 998, 999, 999, 999, 1000, 1000, 1000, 1000, 1002, 1001, 1003, 1004, 990, 1005, 1005, 1005, 1005, 1006, 1009, 1006, 1007, 1007, 1007, 1008, 1008, 1008, 1008, 1010, 1011, 1012, 1012, 1012, 1012, 1009, 1013, 1014, 1018, 1015, 1002, 1015, 1015, 1016, 1016, 1017, 1017, 1017, 1017, 1013, 1019, 1020, 1021, 1021, 1021, 1021, 1022, 1026, 1022, 1023, 1023, 1023, 1025, 1027, 1010, 1024, 1024, 1024, 1024, 1028, 1014, 1029, 1025, 1030, 1031, 1032, 1033, 1034, 1035, 1035, 1035, 1035, 1037, 1036, 1038, 1039, 1041, 1026, 1036, 1040, 1040, 1040, 1040, 1042, 1043, 1032, 1044, 1046, 1047, 1041, 1048, 1049, 1050, 1051, 1052, 1056, 1053, 1037, 1053, 1053, 1054, 1054, 1055, 1058, 1062, 1058, 1055, 1059, 1059, 1059, 1048, 1063, 1061, 1051, 1052, 1064, 1042, 1061, 1065, 1056, 1057, 1057, 1057, 1057, 1060, 1060, 1060, 1060, 1066, 1062, 1068, 1069, 1070, 1071, 1074, 1071, 1072, 1072, 1072, 1073, 1073, 1073, 1073, 1075, 1074, 1077, 1078, 1079, 1080, 1081, 1082, 1083, 1070, 1084, 1085, 1086, 1087, 1089, 1090, 1091, 1092, 1093, 1092, 1092, 1094, 1094, 1095, 1096, 1097, 1099, 1100, 1100, 1095, 1075, 1085, 1098, 1101, 1098, 1098, 1091, 1102, 1103, 1104, 1105, 1106, 1108, 1109, 1110, 1112, 1113, 1115, 1116, 1117, 1096, 1101, 1118, 1118, 1118, 1118, 1119, 1122, 1119, 1120, 1120, 1120, 1122, 1123, 1110, 1121, 1121, 1121, 1121, 1124, 1130, 1124, 1125, 1125, 1125, 1102, 1126, 1126, 1126, 1126, 1127, 1132, 1127, 1127, 1128, 1128, 1131, 1133, 1123, 1129, 1129, 1129, 1129, 1134, 1135, 1137, 1138, 1131, 1140, 1140, 1139, 1132, 1139, 1139, 1142, 1143, 1144, 1133, 1141, 1141, 1141, 1141, 1145, 1146, 1147, 1148, 1149, 1131, 1153, 1150, 1143, 1150, 1150, 1151, 1151, 1152, 1152, 1152, 1152, 1154, 1156, 1158, 1154, 1155, 1147, 1155, 1155, 1157, 1157, 1159, 1143, 1160, 1167, 1160, 1161, 1161, 1161, 1163, 1164, 1158, 1164, 1164, 1154, 1162, 1162, 1162, 1162, 1168, 1163, 1165, 1165, 1166, 1166, 1166, 1166, 1169, 1172, 1169, 1169, 1170, 1170, 1175, 1168, 1171, 1171, 1171, 1171, 1159, 1163, 1173, 1177, 1174, 1173, 1174, 1174, 1176, 1176, 1178, 1179, 1182, 1179, 1186, 1168, 1180, 1180, 1180, 1184, 1184, 1177, 1191, 1182, 1187, 1173, 1181, 1181, 1181, 1181, 1183, 1194, 1183, 1183, 1185, 1185, 1185, 1185, 1188, 1187, 1188, 1188, 1196, 1182, 1189, 1189, 1195, 1195, 1178, 1190, 1190, 1190, 1190, 1192, 1197, 1193, 1192, 1193, 1193, 1187, 1196, 1198, 1201, 1198, 1199, 1199, 1199, 1200, 1200, 1200, 1200, 1205, 1202, 1201, 1202, 1202, 1192, 1203, 1203, 1204, 1204, 1204, 1204, 1206, 1207, 1208, 1209, 1211, 1212, 1213, 1215, 1215, 1197, 1201, 1214, 1216, 1214, 1214, 1206, 1217, 1218, 1216, 1221, 1219, 1207, 1219, 1219, 1220, 1220, 1213, 1222, 1223, 1224, 1225, 1226, 1228, 1229, 1230, 1206, 1232, 1221, 1233, 1235, 1236, 1237, 1217, 1237, 1238, 1238, 1238, 1239, 1239, 1239, 1239, 1240, 1241, 1243, 1230, 1244, 1240, 1242, 1242, 1242, 1242, 1245, 1246, 1247, 1243, 1222, 1249, 1250, 1251, 1251, 1251, 1251, 1252, 1253, 1254, 1244, 1255, 1241, 1256, 1257, 1258, 1245, 1259, 1260, 1243, 1261, 1262, 1252, 1264, 1265, 1266, 1267, 1267, 1267, 1267, 1268, 1272, 1268, 1256, 1269, 1269, 1269, 1270, 1270, 1270, 1270, 1271, 1252, 1273, 1274, 1281, 1276, 1273, 1276, 1271, 1275, 1275, 1275, 1275, 1277, 1277, 1277, 1280, 1282, 1272, 1278, 1278, 1278, 1278, 1279, 1283, 1279, 1273, 1284, 1285, 1286, 1287, 1288, 1289, 1290, 1291, 1294, 1291, 1291, 1280, 1292, 1292, 1293, 1293, 1293, 1293, 1295, 1296, 1297, 1297, 1297, 1297, 1298, 1301, 1298, 1299, 1299, 1299, 1300, 1300, 1300, 1300, 1302, 1303, 1304, 1305, 1295, 1305, 1306, 1306, 1306, 1307, 1307, 1307, 1307, 1308, 1309, 1310, 1312, 1313, 1314, 1317, 1314, 1315, 1315, 1315, 1325, 1296, 1316, 1316, 1316, 1316, 1318, 1318, 1318, 1318, 1319, 1310, 1319, 1320, 1320, 1320, 1321, 1321, 1321, 1321, 1322, 1323, 1322, 1324, 1324, 1324, 1324, 1326, 1326, 1326, 1326, 1327, 1327, 1328, 1329, 1335, 1329, 1330, 1330, 1330, 1332, 1343, 1332, 1323, 1331, 1331, 1331, 1331, 1333, 1333, 1333, 1337, 1341, 1337, 1328, 1334, 1334, 1334, 1334, 1336, 1336, 1336, 1336, 1338, 1338, 1338, 1339, 1339, 1339, 1339, 1340, 1346, 1340, 1353, 1341, 1342, 1342, 1342, 1342, 1344, 1344, 1344, 1344, 1345, 1345, 1347, 1361, 1347, 1348, 1348, 1348, 1368, 1346, 1349, 1349, 1349, 1349, 1350, 1369, 1350, 1351, 1351, 1351, 1352, 1352, 1352, 1352, 1354, 1354, 1354, 1354, 1355, 1359, 1355, 1356, 1356, 1356, 1357, 1357, 1357, 1357, 1358, 1364, 1358, 1360, 1360, 1360, 1360, 1362, 1362, 1362, 1362, 1363, 1363, 1359, 1365, 1370, 1365, 1366, 1366, 1366, 1371, 1373, 1364, 1367, 1367, 1367, 1367, 1374, 1375, 1379, 1375, 1376, 1376, 1376, 1377, 1377, 1377, 1377, 1378, 1380, 1381, 1386, 1381, 1380, 1385, 1387, 1378, 1382, 1382, 1382, 1383, 1383, 1383, 1383, 1384, 1388, 1384, 1379, 1389, 1390, 1391, 1392, 1393, 1380, 1394, 1395, 1385, 1396, 1396, 1396, 1396, 1397, 1398, 1399, 1400, 1401, 1402, 1403, 1404, 1405, 1407, 1408, 1409, 1410, 1411, 1412, 1413, 1414, 1417, 1414, 1414, 1397, 1415, 1415, 1416, 1416, 1416, 1416, 1418, 1405, 1419, 1420, 1409, 1421, 1421, 1421, 1421, 1422, 1423, 1427, 1418, 1424, 1398, 1424, 1424, 1422, 1425, 1425, 1426, 1426, 1426, 1426, 1429, 1428, 1430, 1431, 1432, 1433, 1434, 1435, 1436, 1437, 1419, 1428, 1438, 1439, 1423, 1439, 1440, 1440, 1440, 1442, 1444, 1445, 1430, 1441, 1441, 1441, 1441, 1442, 1446, 1447, 1429, 1443, 1443, 1443, 1443, 1448, 1448, 1448, 1448, 1449, 1450, 1452, 1453, 1454, 1455, 1458, 1458, 1442, 1456, 1456, 1456, 1456, 1457, 1460, 1457, 1457, 1459, 1459, 1459, 1459, 1461, 1462, 1463, 1464, 1463, 1463, 1465, 1465, 1466, 1467, 1461, 1468, 1468, 1468, 1468, 1469, 1469, 1469, 1469, 1470, 1473, 1470, 1470, 1471, 1471, 1466, 1472, 1472, 1472, 1472, 1474, 1462, 1475, 1476, 1477, 1476, 1476, 1478, 1478, 1479, 1474, 1480, 1481, 1481, 1481, 1481, 1467, 1482, 1482, 1482, 1482, 1483, 1486, 1483, 1483, 1488, 1479, 1484, 1484, 1487, 1490, 1493, 1475, 1485, 1485, 1485, 1485, 1492, 1489, 1487, 1489, 1489, 1491, 1491, 1494, 1494, 1494, 1494, 1480, 1495, 1496, 1497, 1498, 1499, 1492, 1488, 1500, 1500, 1500, 1500, 1501, 1502, 1503, 1504, 1504, 1504, 1504, 1505, 1493, 1495, 1506, 1508, 1501, 1509, 1510, 1505, 1507, 1507, 1507, 1507, 1511, 1508, 1512, 1513, 1514, 1515, 1516, 1517, 1518, 1519, 1520, 1521, 1522, 1502, 1510, 1523, 1524, 1519, 1506, 1525, 1527, 1528, 1529, 1509, 1530, 1531, 1532, 1533, 1534, 1535, 1538, 1535, 1536, 1536, 1536, 1538, 1539, 1519, 1537, 1537, 1537, 1537, 1540, 1541, 1540, 1540, 1542, 1542, 1543, 1544, 1545, 1548, 1545, 1546, 1546, 1546, 1548, 1549, 1550, 1543, 1551, 1539, 1547, 1547, 1547, 1547, 1552, 1553, 1554, 1555, 1556, 1557, 1558, 1558, 1558, 1558, 1559, 1560, 1561, 1562, 1544, 1563, 1549, 1564, 1565, 1566, 1567, 1568, 1569, 1573, 1569, 1570, 1570, 1570, 1571, 1571, 1571, 1571, 1572, 1574, 1576, 1580, 1576, 1572, 1575, 1575, 1575, 1575, 1577, 1577, 1577, 1581, 1585, 1581, 1573, 1578, 1578, 1578, 1578, 1579, 1582, 1582, 1582, 1586, 1579, 1592, 1580, 1583, 1583, 1583, 1583, 1584, 1587, 1587, 1587, 1587, 1584, 1585, 1588, 1597, 1588, 1589, 1589, 1589, 1590, 1590, 1590, 1590, 1591, 1593, 1592, 1593, 1598, 1591, 1594, 1594, 1594, 1595, 1595, 1595, 1595, 1596, 1604, 1600, 1597, 1600, 1596, 1599, 1599, 1599, 1599, 1601, 1601, 1601, 1602, 1602, 1602, 1602, 1603, 1605, 1606, 1607, 1608, 1603, 1609, 1610, 1613, 1604, 1611, 1609, 1611, 1611, 1612, 1612, 1614, 1615, 1616, 1613, 1617, 1618, 1615, 1619, 1620, 1621, 1622, 1623, 1624, 1625, 1626, 1627, 1610, 1628, 1629, 1630, 1631, 1632, 1633, 1634, 1635, 1636, 1637, 1616, 1638, 1641, 1647, 1614, 1639, 1639, 1639, 1639, 1640, 1643, 1651, 1643, 1640, 1642, 1642, 1642, 1642, 1644, 1644, 1644, 1645, 1645, 1645, 1645, 1646, 1650, 1649, 1647, 1652, 1646, 1649, 1653, 1640, 1648, 1648, 1648, 1648, 1654, 1655, 1656, 1657, 1658, 1659, 1660, 1661, 1650, 1662, 1663, 1664, 1670, 1649, 1665, 1665, 1665, 1665, 1666, 1668, 1668, 1671, 1666, 1657, 1672, 1667, 1660, 1667, 1667, 1669, 1669, 1669, 1669, 1676, 1676, 1678, 1671, 1673, 1673, 1673, 1673, 1674, 1666, 1679, 1675, 1674, 1675, 1675, 1677, 1677, 1677, 1677, 1680, 1681, 1681, 1681, 1681, 1682, 1679, 1672, 1683, 1682, 1683, 1683, 1686, 1674, 1684, 1684, 1685, 1685, 1685, 1685, 1688, 1687, 1689, 1690, 1691, 1692, 1693, 1697, 1698, 1682, 1693, 1694, 1697, 1694, 1700, 1680, 1687, 1695, 1695, 1695, 1696, 1696, 1696, 1696, 1699, 1701, 1702, 1703, 1699, 1704, 1693, 1705, 1706, 1698, 1700, 1688, 1707, 1708, 1709, 1710, 1711, 1712, 1713, 1714, 1715, 1716, 1717, 1718, 1699, 1719, 1722, 1719, 1719, 1720, 1720, 1723, 1707, 1724, 1725, 1710, 1721, 1721, 1721, 1721, 1726, 1727, 1728, 1723, 1729, 1730, 1731, 1732, 1733, 1734, 1735, 1736, 1737, 1741, 1737, 1738, 1738, 1738, 1739, 1739, 1739, 1739, 1740, 1746, 1742, 1724, 1742, 1743, 1743, 1743, 1740, 1744, 1744, 1744, 1744, 1745, 1747, 1751, 1747, 1752, 1753, 1741, 1754, 1745, 1748, 1748, 1748, 1749, 1749, 1749, 1749, 1746, 1750, 1755, 1756, 1756, 1756, 1756, 1757, 1758, 1750, 1759, 1760, 1761, 1762, 1751, 1763, 1764, 1765, 1766, 1757, 1767, 1768, 1769, 1770, 1771, 1772, 1773, 1774, 1778, 1774, 1775, 1775, 1775, 1776, 1776, 1776, 1776, 1777, 1779, 1780, 1758, 1781, 1782, 1783, 1771, 1784, 1785, 1786, 1787, 1787, 1787, 1787, 1789, 1777, 1788, 1788, 1791, 1791, 1779, 1780, 1792, 1781, 1782, 1795, 1778, 1790, 1790, 1790, 1790, 1793, 1793, 1793, 1793, 1789, 1794, 1794, 1796, 1797, 1798, 1799, 1800, 1792, 1801, 1802, 1795, 1803, 1804, 1805, 1806, 1807, 1808, 1809, 1810, 1812, 1813, 1799, 1796, 1811, 1811, 1811, 1811, 1812, 1801, 1802, 1814, 1803, 1804, 1815, 1816, 1817, 1818, 1819, 1821, 1820, 1822, 1823, 1800, 1824, 1825, 1826, 1818, 1827, 1813, 1820, 1822, 1828, 1829, 1826, 1830, 1831, 1832, 1833, 1834, 1835, 1836, 1837, 1838, 1839, 1841, 1842, 1840, 1819, 1821, 1843, 1833, 1823, 1844, 1838, 1839, 1827, 1832, 1840, 1842, 1845, 1846, 1837, 1848, 1847, 1841, 1849, 1850, 1851, 1852, 1853, 1854, 1834, 1855, 1838, 1839, 1847, 1855, 1840, 1856, 1851, 1846, 1857, 1843, 1858, 1861, 1857, 1862, 1863, 1864, 1865, 1866, 1867, 1868, 1869, 1848, 1870, 1855, 1871, 1856, 1872, 1852, 1873, 1874, 1858, 1875, 1857, 1860, 1860, 1876, 1877, 1878, 1879, 1880, 1881, 1882, 1883, 1884, 1885, 1886, 1887, 1888, 1889, 1890, 1891, 1892, 1893, 1894, 1895, 1896, 1897, 1898, 1899, 1900, 1901, 1902, 1903, 1904, 1905, 1906, 1907, 1908, 1909, 1910, 1911, 1912, 1912, 1913, 1914, 1915, 1916, 1917, 1918, 1919, 1920, 1921, 1922, 1923, 1924, 1925, 1926, 1927, 1928, 1929, 1930, 1930, 1931, 1932, 1933, 1934, 1935, 1936, 1937, 1938, 1939, 1940, 1941, 1941, 1942, 1943, 1944, 1945, 1946, 1947, 1948, 1949, 1950, 1951, 1952, 1952, 1953, 1954, 1955, 1956, 1957, 1958, 1959, 1960, 1961, 1962, 1963, 1964, 1965, 1966, 1967, 1967, 1968, 1969, 1970, 1971, 1972, 1973, 1974, 1975, 1976, 1977, 1978, 1979, 1980, 1981, 1982, 1983, 1984, 1985, 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1993, 1994, 1995, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2002, 2003, 2004, 2005, 2006, 2006, 2007, 2008, 2009, 2010, 2011, 2011, 2012, 2013, 2013, 2014, 2015, 2016, 2016, 2017, 2018, 2019, 2020, 2021, 2021, 2022, 2023, 2023, 2024, 2025, 2026, 2026, 2027, 2028, 2029, 2030, 2031, 2031, 2032, 2033, 2033, 2034, 2035, 2036, 2037, 2038, 2039, 2040, 2041, 2042, 2043, 2044, 2045, 2046, 2047, 2048, 2049, 2049, 2050, 2050, 2051, 2052, 2053, 2054, 2055, 2056, 2056, 2057, 2058, 2059, 2060, 2061, 2062, 2063, 2064, 2065, 2066, 2067, 2068, 2069, 2070, 2071, 2072, 2073, 2074, 2075, 2076, 2076, 2077, 2078, 2078, 2079, 2080, 2081, 2081, 2082, 2083, 2084, 2085, 2086, 2087, 2088, 2089, 2089, 2090, 2091, 2092, 2093, 2094, 2095, 2095, 2096, 2097, 2098, 2099, 2100, 2100, 2101, 2102, 2103, 2104, 2104, 2105, 2106, 2107, 2108, 2108, 2109, 2110, 2111, 2112, 2113, 2113, 2114, 2115, 2116, 2117, 2117, 2118, 2119, 2120, 2121, 2121, 2122, 2123, 2124, 2125, 2126, 2126, 2127, 2128, 2129, 2130, 2130, 2131, 2132, 2133, 2134, 2135, 2136, 2137, 2138, 2139, 2140, 2141, 2142, 2143, 2144, 2145, 2146, 2147, 2147, 2148, 2149, 2149, 2150, 2151, 2152, 2153, 2154, 2155, 2155, 2156, 2157, 2158, 2159, 2160, 2161, 2162, 2163, 2163, 2164, 2165, 2166, 2167, 2167, 2168, 2169, 2170, 2171, 2172, 2173, 2174, 2175, 2176, 2176, 2177, 2178, 2178, 2179, 2179, 2180, 2181, 2182, 2182, 2183, 2184, 2185, 2186, 2186, 2187, 2188, 2188, 2189, 2190, 2190, 2191, 2192, 2192, 2193, 2193, 2194, 2195, 2195, 2196, 2197, 2197, 2198, 2199, 2199, 2200, 2200, 2201, 2202, 2202, 2203, 2204, 2204, 2205, 2206, 2206, 2207, 2208, 2209, 2210, 2210, 2211, 2212, 2213, 2213, 2214, 2215, 2216, 2217, 2218, 2219, 2220, 2220, 2221, 2222, 2223, 2224, 2225, 2226, 2227, 2228, 2229, 2230, 2231, 2232, 2232, 2233, 2234, 2235, 2236, 2237, 2237, 2238, 2239, 2240, 2241, 2242, 2243, 2244, 2244, 2245, 2246, 2246, 2247, 2248, 2249, 2249, 2250, 2251, 2252, 2253, 2253, 2254, 2255, 2256, 2256, 2257, 2258, 2259, 2260, 2261, 2261, 2262, 2262, 2263, 2264, 2265, 2265, 2266, 2267, 2268, 2269, 2270, 2270, 2271, 2271, 2272, 2273, 2274, 2274, 2275, 2276, 2277, 2278, 2279, 2279, 2280, 2281, 2282, 2283, 2283, 2284, 2285, 2286, 2286, 2287, 2288, 2289, 2290, 2291, 2292, 2293, 2294, 2295, 2296, 2297, 2298, 2299, 2300, 2301, 2301, 2302, 2303, 2304, 2305, 2306, 2306, 2307, 2308, 2309, 2310, 2311, 2312, 2312, 2313, 2314, 2315, 2316, 2317, 2318, 2318, 2319, 2320, 2321, 2321, 2322, 2323, 2323, 2324, 2325, 2326, 2326, 2327, 2328, 2328, 2329, 2330, 2331, 2331, 2332, 2333, 2334, 2335, 2336, 2337, 2338, 2339, 2340, 2341, 2342, 2343, 2344, 2345, 2346, 2347, 2348, 2349, 2350, 2350, 2351, 2352, 2353, 2353, 2354, 2355, 2355, 2356, 2357, 2358, 2359, 2360, 2361, 2362, 2363, 2364, 2365, 2366, 2366, 2367, 2368, 2369, 2370, 2370, 2371, 2372, 2372, 2373, 2374, 2375, 2376, 2376, 2377, 2378, 2378, 2379, 2380, 2381, 2382, 2382, 2383, 2384, 2385, 2386, 2387, 2387, 2388, 2389, 2390, 2391, 2392, 2393, 2394, 2395, 2396, 2397, 2398, 2399, 2400, 2401, 2402, 2403, 2403, 2404, 2405, 2406, 2407, 2408, 2409, 2410, 772, 771, 770, 769, 768, 767, 766, 761, 759, 757, 756, 755, 754, 750, 743, 739, 738, 737, 736, 735, 734, 732, 731, 727, 725, 724, 723, 722, 720, 719, 718, 717, 716, 715, 714, 713, 712, 711, 710, 709, 708, 707, 706, 705, 704, 703, 702, 698, 697, 696, 695, 694, 692, 691, 686, 680, 679, 678, 677, 676, 674, 672, 671, 670, 669, 668, 667, 666, 664, 663, 661, 660, 656, 655, 651, 649, 648, 647, 643, 642, 641, 637, 636, 632, 630, 629, 628, 624, 623, 622, 618, 617, 613, 611, 610, 609, 605, 604, 603, 602, 601, 600, 599, 598, 597, 596, 595, 594, 593, 592, 591, 590, 589, 588, 584, 583, 582, 581, 580, 578, 577, 572, 568, 565, 564, 563, 562, 561, 559, 557, 556, 555, 554, 553, 552, 551, 549, 548, 546, 545, 544, 543, 542, 541, 540, 539, 537, 536, 535, 534, 533, 532, 531, 530, 529, 528, 527, 525, 524, 517, 516, 515, 514, 512, 511, 510, 509, 507, 506, 505, 504, 503, 502, 500, 499, 497, 493, 492, 491, 489, 487, 486, 484, 480, 479, 478, 476, 474, 473, 471, 467, 466, 465, 463, 461, 460, 459, 458, 457, 456, 455, 454, 452, 451, 450, 449, 448, 447, 446, 445, 444, 443, 442, 440, 439, 432, 431, 430, 429, 427, 426, 425, 424, 422, 421, 420, 419, 418, 417, 415, 414, 413, 412, 411, 410, 409, 408, 407, 406, 404, 403, 402, 401, 400, 399, 398, 397, 396, 395, 394, 393, 392, 391, 390, 389, 388, 387, 386, 384, 382, 381, 380, 378, 377, 376, 375, 374, 373, 372, 371, 370, 369, 368, 367, 366, 363, 362, 361, 360, 359, 358, 357, 356, 353, 352, 351, 350, 349, 348, 347, 346, 343, 342, 341, 340, 339, 338, 337, 336, 335, 334, 333, 332, 330, 329, 328, 327, 326, 325, 324, 323, 322, 321, 320, 319, 318, 317, 316, 315, 314, 313, 312, 310, 308, 307, 306, 304, 303, 302, 301, 300, 299, 298, 297, 296, 294, 293, 292, 291, 290, 288, 286, 285, 284, 283, 282, 281, 280, 279, 278, 277, 275, 274, 273, 272, 271, 269, 267, 266, 265, 264, 263, 262, 261, 260, 259, 258, 257, 255, 253, 251, 248, 247, 246, 244, 242, 240, 232, 231, 226, 225, 223, 221, 220, 217, 215, 214, 207, 206, 201, 200, 198, 196, 195, 192, 190, 189, 182, 181, 176, 175, 173, 171, 170, 167, 165, 164, 160, 159, 157, 156, 155, 154, 153, 151, 149, 148, 147, 146, 145, 144, 143, 142, 141, 140, 138, 137, 136, 135, 134, 132, 130, 129, 128, 127, 126, 125, 124, 123, 122, 121, 120, 118, 116, 114, 111, 110, 109, 107, 105, 103, 99, 98, 97, 95, 93, 91, 88, 87, 86, 84, 82, 80, 75, 73, 72, 69, 67, 66, 62, 60, 59, 56, 54, 53, 49, 47, 46, 43, 41, 40, 36, 35, 34, 32, 30, 28, 25, 24, 23, 21, 19, 17, 11, 9, 7, 5, 3, 1, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859, 1859 } ; static yy_state_type yy_last_accepting_state; static char *yy_last_accepting_cpos; /* The intent behind this definition is that it'll catch * any uses of REJECT which flex missed. */ #define REJECT reject_used_but_not_detected #define yymore() yymore_used_but_not_detected #define YY_MORE_ADJ 0 #define YY_RESTORE_YY_MORE_OFFSET char *yytext; #line 1 "dbin.lex" #define INITIAL 0 /* (leave the space! lex insists on it!) Version 1.1 : P. Lebrun, Fermilab, July 1996 - Add a parameter (F77) or define (C) statement to the .inc and .h files so that we can check at mcfastRead run time if when we start overflowing the arrays. - Enforce the grouping rule upon reading a DBIN data file (F77 only), if the varname changes (refering to the template name, or the name of the data structure, then the index refering to the array of D.S. better be one, to make sure we start filling at the appropriate location. Version 1.2 : Lebrun, Fermilab, June 1997 - Add a warining if the 'database' statement is missing in the beginning of the file, to avoid such an obvious crash button. Since I am not sure where that check ought to go, this fix is probably not 100% reliable. - Fix the extraneous MAXNUM, in case of nested structure (It was my mistake!) - Fix a small XDR bug in the filter for integer arrays ------------ T. Wenaus 7/95 ToDo (.=done) ---- - $$$ f90 option on Fortran side - $$$ pointers - $$$ self-describing XDR I/O . new index behaviour; no prefix if '-' leads. . update structures . dummy word following n_obj_* in common to protect against misaligned commons . VARIABLE keyword following array declaration to stipulate that the most recent integer should be interpreted as the useful dimension of the array for XDR read/write . output of nested substructures in internal mode to XDR file implemented . eliminate C++ entirely from dbin and auxiliary code (eg. //, extern "C") . unify the Fortran and C data spaces . switch from use of CLHEP Strings to char arrays. No longer any C++ dependence in dbin. Can be used with C or C++. . ,->* in XDR filter code on dimension string; will correctly handle multi-dim arrays . write only the used number of array objects to XDR. VARIABLE keyword. . ivar eliminated; was causing fp overflows. rvar now used to load integers. - $$$ 'will generate file' report in dbin startup . access to version string - $$$ alternate (faster?) xdr encoding: copy to contiguous arrays . undimensioned instantiations . mgr code needs to be produced in close_makes since one routine for each declared structure should be generated. . handle F<-> moving routines for case of multi-dimensional arrays. [issue warning.] . XDR handling: have to handle moving of data between C data structures and Fortran data structures. Do this from the MGR routine, which performs the move before/after the XDR activity depending on encode/decode state. Need new routines, includes generated for XDR: . include file defining mapping of Fortran struct for C access . 'move from C structs to Fortran' and vice versa. . new units: fcmap -> nameFstruct.h fftoc -> nameFtoC.cc fctof -> nameCtoF.cc . add comment to GUI structure. Protect GUI, XDR code with cpp flags. . reimplement DOUBLE . xdr mgr code for multiple instantiations. Avoid code for non-existent instantiations. - verbatim directive for internal-mode (& other) include files - $$$ bounds checking for fixed-size templates - single-pass scheme for include files - command mode: - $$$ make ndim available to the user routine - $$$ make command name available to the user routine (for single-routine handling of multiple commands) - 2nd arg on dbin command line: dir to put generated sources in . dynamic instantiation of templates; declared array size . tools on Fortran and C++ sides to loop through all instantiations of an object . C++ side file handling in dbinc.cc . User's Guide . defining params in terms of other params (internal mode) FORTRAN STRUCTURES Handling of structures and templates has been converted to VMS-style Fortran structures. TEMPLATE INSTANTIATION - MAKE no longer accepts an instantiation name. Uses the index. DEFINE replaces this function of MAKE, but not fully re-implemented. GUI MENU DEFINITION - GUI menu definition file now generated: xxxxGUI.h. XDR/MCFIO DATA STRUCTURE I/O INTERNAL DATA STRUCTURE DEFINITION - MODE INTERNAL declaration - RECORD statement, instantiation handling. Instance name allowed as param on RECORD stmt. Hence multiple instantiations. - separation of structure def file from instantiation file - relaxed fixed size declarations, multi-dimensional arrays - restricted file set - different master include name, _dst - no _db extension to rerouted include file names DOUBLE - re-implemented * * dbin - DataBase INput tool * --------------------------- * * Torre Wenaus 31/12/1993 * * This utility takes an ascii parameter definition file and * using lex parsing of the file constructs * - a Fortran include file containing a common block that includes * all parameters, with explicit typing and documentation * - a Fortran routine to read the parameter definition file as the * data file that specifies parameter values, with extensive * error checking * - analogous include file and input routine in C. * * Thus given an ascii database that simultaneously specifies the * structure, mnemonic names, actual values, and documentation of * a parameter set, this package automatically generates the code * needed to read and use this database in Fortran and C programs. * * Accommodating a change in the database (eg. addition of a parameter) * involves nothing more than changing the database file itself and * rerunning this tool; a valuable simplification over the several manual * coding modifications -- in two languages if C and Fortran are * supported -- traditionally required. * * Example illustrating database file structure: * * STRUCTURE MUON ! parameter group, eg. subdetector name * REAL BLEN 400. ! barrel length * INT NBPL 24 ! number of barrel planes * REAL PLTHK(2) 1.0 2.0 ! inner and outer plate thicknesses * END STRUCTURE * * * Building variable names from mnemonics * -------------------------------------- * The derivation of variable name from the given mnemonic can be * done in whatever way is desired. What is presently done is * the first two characters of the structure (subdetector) name * are appended (with a leading _) to the mnemonic to come up with * the variable name. eg. the BLEN parameter above would have a * variable name BLEN_MU. * * * * Template structures: * -------------------- * * TEMPLATE MAT 5 ! structure template for materials, with max no. of materials * REAL A * REAL Z * REAL DENS * REAL RADL * REAL ABSL * END TEMPLATE * MAKE MAT CSI 129.97 54.02 4.51 1.86 37. ! instantiate template MAT, name CSI * MAKE MAT SCINT 6.25 3.4 1.03 43. 437. * * => COMMON // MAT_A(N_MAT), MAT_Z(N_MAT), MAT_DENS(N_MAT), MAT_RADL(N_MAT)... * IF (VARNAME.EQ.'MAT_TEMPLATE') THEN * INDEX = IMATIDX ! from lookup list using object name string * MAT_A(INDEX) = RVAR(1) * MAT_Z(INDEX) = RVAR(2) ... * * New: * - PROVIDE statement to have specified include file added to generated * .inc,.h * - FFREAD handling * - To split include file into several: * INCNAME name where name doesn't include type; .h,.inc added automatically * - dbin now accepts db filename on command line (or from stdin for backwards * compatibility). Path is prefixed to INCLUDEd files so they can be found * when the db is not in the current directory. * - .inc,.h diversion to new filename: INCNAME directive * - DIMENSION statement to generate constant integer parameter for array * dimensioning. Must appear OUTSIDE structures and templates. Variable name * is the mnemonic name without modification (so be sure to make it unique) * - INDEX statement to generate mnemonic pointers into an array. Like * DIMENSION, must appear OUTSIDE structures and templates and mnemonic * names are taken directly for variable names. * - DOUBLE supported only for structures, to reduce amount of code to be * maintained, and because only need for it I foresee is for constants * like pi. * - new COMMAND/CALL type for passing template-like structures to a * user routine for processing, rather than dbin loading the information * into dbin-defined data structures. Very much like defining and then * calling a command, hence the name. * - strings need not be quoted in COMMANDS (but ONLY in COMMANDS) * */ #define STRUCTURE 1 #line 197 "dbin.lex" #include #include #include # define MAXLINE 2000 # define YYLMAX 2048 #define TEMPLATE 2 #line 206 "dbin.lex" #define COMMAND 3 #line 210 "dbin.lex" #define FFREAD 4 #line 214 "dbin.lex" /***** DBIN Version number *****/ int idbin_version = 0001; char* stlower(char* st); char* stupper(char* st); void strsub(char* str, char* sub, char* repl); void check_finc_fh(); int npgmlines = 0, ntotlines = 0, ntotchars = 0, ndim = 0, n2dim = 0; int is_template = 0, n_elements = 0, n_templates = 0, indx = 0; int nguiel = 0, declare_record; int is_command = 0, new_template = 0, fixed_size = 0, print_listing = 0; int indxtot = 0, internal_mode = 0, incfile_open = 0; int nstructbase = 0, n_templ_entries = 0, ischar = 0, cray=0; int nv, nn, n, n1, np, nq; char *chmaterial = "material", *chnest = "nest", *chinternal="internal"; char dbpath[40]; /* pathname of database file */ char vartype[20], typenamc[20], typenamf[20], parent[30]; char fname[80], incfname[80], *fpnt; char dbin_dbvsn[10], dim[30], dim1[30], cstruct[30], template_size[30]; char varlist[10000], varlistc[10000], line1[MAXLINE]; int nvars = 0, nvarsc = 0; char curtype[30], curname[30], curstruct[30], fullname[30], curcomment[1000]; char values[50000], dbname[30], curvar[30], curvarc[30], *curval, *curnum, *curnumc; char uroutine[30]; char *iprefix = "ies_", *rprefix = "res_"; char *objname, *arg1, *arg2, *valpnt, *idxlst; extern char *getenv(); FILE *finc, *fh, *frdf, *frdc, *finitc, *finitf, *fopen(); FILE *fgui, *fxdr, *fxdrall, *fxdrmgr, *fxdrinc; FILE *finc_original, *fh_original; FILE *yyinlist[10]; int inlist = 0; #line 2243 "lex.yy.c" /* Macros after this point can all be overridden by user definitions in * section 1. */ #ifndef YY_SKIP_YYWRAP #ifdef __cplusplus extern "C" int yywrap YY_PROTO(( void )); #else extern int yywrap YY_PROTO(( void )); #endif #endif #ifndef YY_NO_UNPUT static void yyunput YY_PROTO(( int c, char *buf_ptr )); #endif #ifndef yytext_ptr static void yy_flex_strncpy YY_PROTO(( char *, yyconst char *, int )); #endif #ifdef YY_NEED_STRLEN static int yy_flex_strlen YY_PROTO(( yyconst char * )); #endif #ifndef YY_NO_INPUT #ifdef __cplusplus static int yyinput YY_PROTO(( void )); #else static int input YY_PROTO(( void )); #endif #endif #if YY_STACK_USED static int yy_start_stack_ptr = 0; static int yy_start_stack_depth = 0; static int *yy_start_stack = 0; #ifndef YY_NO_PUSH_STATE static void yy_push_state YY_PROTO(( int new_state )); #endif #ifndef YY_NO_POP_STATE static void yy_pop_state YY_PROTO(( void )); #endif #ifndef YY_NO_TOP_STATE static int yy_top_state YY_PROTO(( void )); #endif #else #define YY_NO_PUSH_STATE 1 #define YY_NO_POP_STATE 1 #define YY_NO_TOP_STATE 1 #endif #ifdef YY_MALLOC_DECL YY_MALLOC_DECL #else #if __STDC__ #ifndef __cplusplus #include #endif #else /* Just try to get by without declaring the routines. This will fail * miserably on non-ANSI systems for which sizeof(size_t) != sizeof(int) * or sizeof(void*) != sizeof(int). */ #endif #endif /* Amount of stuff to slurp up with each read. */ #ifndef YY_READ_BUF_SIZE #define YY_READ_BUF_SIZE 8192 #endif /* Copy whatever the last rule matched to the standard output. */ #ifndef ECHO /* This used to be an fputs(), but since the string might contain NUL's, * we now use fwrite(). */ #define ECHO (void) fwrite( yytext, yyleng, 1, yyout ) #endif /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL, * is returned in "result". */ #ifndef YY_INPUT #define YY_INPUT(buf,result,max_size) \ if ( yy_current_buffer->yy_is_interactive ) \ { \ int c = '*', n; \ for ( n = 0; n < max_size && \ (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ buf[n] = (char) c; \ if ( c == '\n' ) \ buf[n++] = (char) c; \ if ( c == EOF && ferror( yyin ) ) \ YY_FATAL_ERROR( "input in flex scanner failed" ); \ result = n; \ } \ else if ( ((result = fread( buf, 1, max_size, yyin )) == 0) \ && ferror( yyin ) ) \ YY_FATAL_ERROR( "input in flex scanner failed" ); #endif /* No semi-colon after return; correct usage is to write "yyterminate();" - * we don't want an extra ';' after the "return" because that will cause * some compilers to complain about unreachable statements. */ #ifndef yyterminate #define yyterminate() return YY_NULL #endif /* Number of entries by which start-condition stack grows. */ #ifndef YY_START_STACK_INCR #define YY_START_STACK_INCR 25 #endif /* Report a fatal error. */ #ifndef YY_FATAL_ERROR #define YY_FATAL_ERROR(msg) yy_fatal_error( msg ) #endif /* Default declaration of generated scanner - a define so the user can * easily add parameters. */ #ifndef YY_DECL #define YY_DECL int yylex YY_PROTO(( void )) #endif /* Code executed at the beginning of each rule, after yytext and yyleng * have been set up. */ #ifndef YY_USER_ACTION #define YY_USER_ACTION #endif /* Code executed at the end of each rule. */ #ifndef YY_BREAK #define YY_BREAK break; #endif #define YY_RULE_SETUP \ if ( yyleng > 0 ) \ yy_current_buffer->yy_at_bol = \ (yytext[yyleng - 1] == '\n'); \ YY_USER_ACTION YY_DECL { register yy_state_type yy_current_state; register char *yy_cp = NULL, *yy_bp = NULL; register int yy_act; #line 277 "dbin.lex" #line 2400 "lex.yy.c" if ( yy_init ) { yy_init = 0; #ifdef YY_USER_INIT YY_USER_INIT; #endif if ( ! yy_start ) yy_start = 1; /* first start state */ if ( ! yyin ) yyin = stdin; if ( ! yyout ) yyout = stdout; if ( ! yy_current_buffer ) yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); yy_load_buffer_state(); } while ( 1 ) /* loops until end-of-file is reached */ { yy_cp = yy_c_buf_p; /* Support of yytext. */ *yy_cp = yy_hold_char; /* yy_bp points to the position in yy_ch_buf of the start of * the current run. */ yy_bp = yy_cp; yy_current_state = yy_start; yy_current_state += YY_AT_BOL(); yy_match: do { register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)]; if ( yy_accept[yy_current_state] ) { yy_last_accepting_state = yy_current_state; yy_last_accepting_cpos = yy_cp; } while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) { yy_current_state = (int) yy_def[yy_current_state]; if ( yy_current_state >= 1860 ) yy_c = yy_meta[(unsigned int) yy_c]; } yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; ++yy_cp; } while ( yy_base[yy_current_state] != 4102 ); yy_find_action: yy_act = yy_accept[yy_current_state]; if ( yy_act == 0 ) { /* have to back up */ yy_cp = yy_last_accepting_cpos; yy_current_state = yy_last_accepting_state; yy_act = yy_accept[yy_current_state]; } YY_DO_BEFORE_ACTION; do_action: /* This label is used only to access EOF actions. */ switch ( yy_act ) { /* beginning of action switch */ case 0: /* must back up */ /* undo the effects of YY_DO_BEFORE_ACTION */ *yy_cp = yy_hold_char; yy_cp = yy_last_accepting_cpos; yy_current_state = yy_last_accepting_state; goto yy_find_action; case 1: YY_RULE_SETUP #line 279 "dbin.lex" ntotchars++; YY_BREAK case 2: YY_RULE_SETUP #line 281 "dbin.lex" ntotlines++; YY_BREAK case 3: YY_RULE_SETUP #line 283 "dbin.lex" { ++npgmlines; dbinparse(yytext,curtype,curname,curvar,curcomment,dim); /* turn mnemonic into variable name */ varsave(-1); fprintf(finitf,"* %s\n",line1); fprintf(finitc,"/* %s */\n",line1); fprintf(frdf, " else if (varname.eq.'%s.%s') then\n",curstruct,curname); if (strcmp(stlower(curtype),"real") == 0) { strcpy(vartype,"rvar"); strcpy(typenamf,"real"); strcpy(typenamc,"float"); } if (strcmp(stlower(curtype),"double") == 0) { strcpy(vartype,"dvar"); strcpy(typenamf,"double precision"); strcpy(typenamc,"double"); } if (strncmp(stlower(curtype),"int",3) == 0) { strcpy(vartype,"rvar"); strcpy(typenamf,"integer"); strcpy(typenamc,"int"); } if (strncmp(stlower(curtype),"char",4) == 0 || strcmp(stlower(curtype),"material") == 0) { strcpy(vartype,"chvar"); strcpy(typenamf,"character*80"); strcpy(typenamc,"char"); } if (strlen(dim) == 0) { fprintf(frdf, " %s.%s = %s(1) ! %s\n",curstruct,curname,vartype,curcomment); fprintf(finc, " %s %s ! %s\n",typenamf,curname,curcomment); if (strcmp(typenamc,"char")==0) { fprintf(frdc,"if (varname==\"%s.%s\"){ strcpy(%s->%s,chvar[0]); iok=1;}\n", curstruct,curname,curstruct,curname); fprintf(fh," %s %s[80]; /* %s */\n",typenamc,curname,curcomment); } else { fprintf(frdc,"if (varname==\"%s.%s\"){ %s->%s = %s[0]; iok=1;}\n", curstruct,curname,curstruct,curname,vartype); fprintf(fh," %s %s; /* %s */\n",typenamc,curname,curcomment); } curval = strtok(values," /\t\n"); if (strcmp(typenamc,"char")==0) { fprintf(finitc, " strcpy(%s->%s,%s);\n",curstruct,curname,curval); n1=0; while (n1%s = %s;\n",curstruct,curname,curval); } fprintf(finitf, " %s.%s = %s\n",curstruct,curname,curval); } else { if (strcmp(typenamc,"char")==0) { fprintf(frdf, " do i=1,%s ! %s\n",dim,curcomment); fprintf(frdf, " %s.%s(i) = chvar(i)\n",curstruct,curname); fprintf(frdf, " enddo\n"); } else { if (strcmp(typenamc,"double")==0) { fprintf(frdf, " call ucopy(%s,%s.%s,%s*2) ! %s\n",vartype,curstruct,curname,dim,curcomment); } else { fprintf(frdf, " call ucopy(%s,%s.%s,%s) ! %s\n",vartype,curstruct,curname,dim,curcomment); } } fprintf(finc, " %s %s(%s) ! %s\n",typenamf,curname,dim,curcomment); if (strcmp(typenamc,"char")==0) { fprintf(frdc, "if (varname==\"%s.%s\")\n {int i=0; while (i<%s) {strcpy(%s->%s[i],chvar[i]);i++;};iok=1;}\n", curstruct,curname,dim,curstruct,curname); } else { fprintf(frdc, "if (varname==\"%s.%s\")\n {int i=0; while (i<%s) {%s->%s[i]=%s[i];i++;};iok=1;}\n", curstruct,curname,dim,curstruct,curname,vartype); } strcpy(dim1,dim); strsub(dim1,",","]["); if (strcmp(typenamc,"char")==0) { fprintf(fh," %s %s[%s][80]; /* %s */\n",typenamc,curname,dim1,curcomment); } else { fprintf(fh," %s %s[%s]; /* %s */\n",typenamc,curname,dim1,curcomment); } arg1 = values; n = 0; while (n%s[%d],%s);\n",curstruct,curname,n,curval); n1=0; while (n1%s[%d] = %s;\n",curstruct,curname,n,curval); } fprintf(finitf, " %s.%s(%d) = %s\n",curstruct,curname,n+1,curval); n++; } } } YY_BREAK case 4: YY_RULE_SETUP #line 393 "dbin.lex" { ++npgmlines; dbinparse(yytext,curtype,curname,curvar,curcomment,dim); fprintf(finitf,"* %s\n",line1); fprintf(finitc,"/* %s */\n",line1); if (strlen(dim) == 0) { varsave(-1); fprintf(frdf, " %s(index).%s = rvar(inum) ! %s\n",curstruct,curname,curcomment); fprintf(frdf, " inum = inum + 1\n"); fprintf(finc, " real %s ! %s\n",curname,curcomment); fprintf(frdc, " %s[index].%s = rvar[inum++];\n",curstruct,curname); fprintf(fh," float %s; /* %s */\n",curname,curcomment); strsub(curcomment,"\"","'"); nguiel++; fprintf(fgui," \"%s\", \"float\", \"%s\",\n",curname,curcomment); fprintf(fxdr," if (!xdr_float(xdrs,&(dbobj->%s))) return 0;\n",curname); n_elements++; } else { int i; for (i=0;i%s;\n",curname); strsub(dim,",","*"); if (strcmp(stlower(values),"variable") != 0) fprintf(fxdr," ui = %s;\n",dim); fprintf(fxdr, " if (!xdr_array(xdrs,(char **) &dat,&ui,ui,sizeof(float),(xdrproc_t) xdr_float)) return 0;\n"); n_elements = n_elements + ndim; } } YY_BREAK case 5: YY_RULE_SETUP #line 442 "dbin.lex" { ++npgmlines; dbinparse(yytext,curtype,curname,curvar,curcomment,dim); varsave(-1); if (strlen(dim) == 0) { fprintf(frdf, " %s_%s = rvar(inum) ! %s\n",curstruct,curname,curcomment); fprintf(frdf, " inum = inum + 1\n"); fprintf(finc, " real %s_%s ! %s\n",curstruct,curname,curcomment); fprintf(frdc, " %s.%s = rvar[inum++];\n",curstruct,curname); fprintf(fh," float %s; /* %s */\n",curname,curcomment); } else { fprintf(frdf, " call ucopy(rvar(inum),%s_%s,ndim) ! %s\n", curstruct,curname,curcomment); fprintf(frdf, " inum = inum + ndim\n"); fprintf(finc, " real %s_%s(%s) ! %s\n",curstruct,curname,dim,curcomment); fprintf(frdc, " { int i=0; while (i%s))) return 0;\n",curname); n_elements++; } else { int i; for (i=0;i%s;\n",curname); strsub(dim,",","*"); if (strcmp(stlower(values),"variable") != 0) fprintf(fxdr," ui = %s;\n",dim); fprintf(fxdr, " if (!xdr_array(xdrs,(char **) &ddat,&ui,ui,sizeof(double),(xdrproc_t) xdr_double)) return 0;\n"); n_elements = n_elements + ndim; } } YY_BREAK case 7: YY_RULE_SETUP #line 522 "dbin.lex" { ++npgmlines; dbinparse(yytext,curtype,curname,curvar,curcomment,dim); varsave(-1); if (strlen(dim) == 0) { fprintf(frdf, " %s_%s = dvar(inum) ! %s\n",curstruct,curname,curcomment); fprintf(frdf, " inum = inum + 1\n"); fprintf(finc, " double precision %s_%s ! %s\n",curstruct,curname,curcomment); fprintf(frdc, " %s.%s = dvar[inum++];\n",curstruct,curname); fprintf(fh," double %s; /* %s */\n",curname,curcomment); } else { fprintf(frdf, " call ucopy(rvar(inum),%s_%s,ndim*2) ! %s\n", curstruct,curname,curcomment); fprintf(frdf, " inum = inum + ndim\n"); fprintf(finc, " double precision %s_%s(%s) ! %s\n",curstruct,curname,dim,curcomment); fprintf(frdc, " { int i=0; while (i%s))) return 0;\n",curname); fprintf(fxdr," ui = dbobj->%s;\n",curname); n_elements++; } else { int i; for (i=0;i%s;\n",curname); strsub(dim,",","*"); if (strcmp(stlower(values),"variable") != 0) fprintf(fxdr," ui = %s;\n",dim); fprintf(fxdr, " if (!xdr_array(xdrs,(char **) &idat,&ui,ui,sizeof(int),(xdrproc_t) xdr_int)) return 0;\n"); n_elements = n_elements + ndim; } } YY_BREAK case 9: YY_RULE_SETUP #line 602 "dbin.lex" { ++npgmlines; dbinparse(yytext,curtype,curname,curvar,curcomment,dim); varsave(-1); if (strlen(dim) == 0) { fprintf(frdf, " %s_%s = rvar(inum) ! %s\n",curstruct,curname,curcomment); fprintf(frdf, " ndim = rvar(inum)\n"); fprintf(frdf, " inum = inum + 1\n"); fprintf(finc, " integer %s_%s ! %s\n",curstruct,curname,curcomment); fprintf(frdc, " ndim = rvar[inum];\n"); fprintf(frdc, " %s.%s = rvar[inum++];\n",curstruct,curname); fprintf(fh," int %s; /* %s */\n",curname,curcomment); } else { fprintf(frdf, " call ucopy(rvar(inum),%s_%s,ndim) ! %s\n", curstruct,curname,curcomment); fprintf(frdf, " inum = inum + ndim\n"); fprintf(finc, " integer %s_%s(%s) ! %s\n",curstruct,curname,dim,curcomment); fprintf(frdc, " { int i=0; while (ix_op == XDR_ENCODE) {\n"); fprintf(fxdr," ln = strlen(dbobj->%s); }\n",curname); fprintf(fxdr," if (!xdr_int(xdrs,&ln)) return 0;\n"); fprintf(fxdr," xdrstring = dbobj->%s;\n",curname); fprintf(fxdr," if (!xdr_string(xdrs,&xdrstring,ln)) return 0;\n", curname); n_elements++; } else { int i; for (i=0;ix_op == XDR_ENCODE) {\n"); fprintf(fxdr," ln = strlen(dbobj->%s[%d]); }\n",curname,i); fprintf(fxdr," if (!xdr_int(xdrs,&ln)) return 0;\n"); fprintf(fxdr," xdrstring = dbobj->%s[%d];\n",curname,i); fprintf(fxdr," if (!xdr_string(xdrs,&xdrstring,ln)) return 0;\n", curname,i); } n_elements = n_elements + ndim; } } YY_BREAK case 11: YY_RULE_SETUP #line 697 "dbin.lex" { ++npgmlines; dbinparse(yytext,curtype,curname,curvar,curcomment,dim); varsave(-1); if (strlen(dim) == 0) { fprintf(frdf, " %s_%s = chvar(inum) ! %s\n",curstruct,curname,curcomment); fprintf(frdf, " inum = inum + 1\n"); fprintf(finc, " character %s_%s*80 ! %s\n",curstruct,curname,curcomment); fprintf(frdc, " strcpy(%s.%s,chvar[inum++]);\n",curstruct,curname); fprintf(fh," char %s[80]; /* %s */\n",curname,curcomment); } else { fprintf(frdf, " do i=1,ndim ! %s\n",curcomment); fprintf(frdf, " %s_%s(i) = chvar(inum) ! %s\n", curstruct,curname,curcomment); fprintf(frdf, " inum = inum + 1\n"); fprintf(frdf, " enddo\n"); fprintf(finc, " character %s_%s(%s)*80 ! %s\n", curstruct,curname,dim,curcomment); fprintf(frdc, " int i=0; while (i0 && curname[0] != '-') { fprintf(finc," integer %s_%s\n",curname,curval); fprintf(finc," parameter( %s_%s = %d) ! %s\n", curname,curval,n1+1,curcomment); fprintf(fh,"static const int %s_%s = %d; /* %s */\n", curname,curval,n1,curcomment); } else { fprintf(finc," integer %s\n",curval); fprintf(finc," parameter( %s = %d) ! %s\n", curval,n1+1,curcomment); fprintf(fh,"static const int %s = %d; /* %s */\n", curval,n1,curcomment); } arg1=NULL; n1++; } } YY_BREAK case 19: YY_RULE_SETUP #line 824 "dbin.lex" { ++npgmlines; dbinparse(yytext,curtype,curname,curvar,curcomment,dim); fprintf(finc," integer %s\n",curname); fprintf(finc," parameter( %s = %s) ! %s\n", curname,values,curcomment); fprintf(fh,"#define %s %s /* %s */\n", curname,values,curcomment); } YY_BREAK case 20: YY_RULE_SETUP #line 833 "dbin.lex" { close_makes(curstruct); nvars=0; nvarsc=0; ++npgmlines; BEGIN(STRUCTURE); dbinparse(yytext,curtype,curname,curvar,curcomment,dim); strcpy(curstruct, curname); fprintf(finc,"\n***** structure %s *****\n",curstruct); fprintf(finc," structure /%s_s/\n",curstruct); fprintf(fh,"\n/***** structure %s *****/\n",curstruct); fprintf(fh,"\ntypedef struct _%s_s {\n",curstruct); fprintf(finitf,"\n***** structure %s *****\n",curstruct); fprintf(finitc,"\n/***** structure %s *****/\n",curstruct); is_template = 0; is_command = 0; strcpy(cstruct,curstruct); } YY_BREAK case 21: YY_RULE_SETUP #line 849 "dbin.lex" { close_makes(curstruct); n_templ_entries = 0; new_template = 1; fixed_size = 0; nvars=0; nvarsc=0; parent[0]='\0'; nguiel = 0; ++npgmlines; BEGIN(TEMPLATE); n_templates++; dbinparse(yytext,curtype,curname,curvar,curcomment,dim); strcpy(curstruct, curname); template_size[0]='\0'; if (ndim > 0) { strcpy(template_size,dim); fixed_size = ndim; if (fixed_size < 2) fixed_size = 2; } check_finc_fh(); fprintf(finc,"\n***** template %s *****\n",curstruct); /* Adding maximum dimension allowed, so that we can protect ourself against overwrites (P.L.) */ if (ndim > 0) { fprintf(finc," integer MAXNUM_%s\n",curstruct); fprintf(finc," parameter(MAXNUM_%s = %s)\n", curstruct, template_size); } fprintf(finc," structure /%s_s/\n",curstruct); fprintf(fh,"\n/***** template %s *****/\n",curstruct); if (ndim > 0) fprintf(fh, "#define MAXNUM_%s %s\n", curstruct, template_size); fprintf(fh,"\ntypedef struct _%s_s {\n",curstruct); fprintf(finitf,"\n***** template %s *****\n",curstruct); fprintf(finitf," template_name(%d) = '%s'\n", n_templates,curstruct); fprintf(finitc,"\n/***** template %s *****/\n",curstruct); fprintf(frdf, " else if (varname.eq.'TEMPLATE_%s') then\n",curstruct); fprintf(frdf, " inum = 1\n"); /* fprintf(frdf, " index = index_for(objname) ! objname is instance name\n"); */ fprintf(frdf," index = n_instance\n"); /* protect ourself against overwrites (P.L.), July 1996 */ fprintf(frdf," if(index .gt. %s) then \n", template_size); fprintf(frdf," print *, 'Attempting to overwrite structure %s '\n", curstruct); fprintf(frdf," print *, 'Current Index = ', index,\n"); fprintf(frdf," & ', Maximum allowed %s'\n", template_size); fprintf(frdf, " print *, ' This is a fatal error, stopping' \n"); fprintf(frdf," stop \n"); fprintf(frdf," end if \n"); fprintf(frdf," n_obj_%s = n_instance\n",curstruct); fprintf(frdc, "if ( !strcmp(varname,\"TEMPLATE_%s\") ) {\n",curstruct); fprintf(frdc, " inum = 0; iok = 1;\n"); fprintf(frdc, " getmembers(n_el_%s);\n",curstruct); fprintf(frdc," index = n_instance-1;\n"); fprintf(frdc," *n_obj_%s = n_instance;\n",curstruct); fprintf(fgui,"\"%s\", {\n",curstruct); fprintf(fxdrinc,"\nbool_t xdr_%s(XDR *xdrs, %s_s *dbobj);\n",curstruct, curstruct); fprintf(fxdr,"bool_t xdr_%s(XDR *xdrs, %s_s *dbobj)\n{\n",curstruct, curstruct); fprintf(fxdr," ui = 0;\n"); is_template = 1; is_command = 0; n_elements = 0; } YY_BREAK case 22: YY_RULE_SETUP #line 922 "dbin.lex" { ++npgmlines; dbinparse(yytext,curtype,curname,curvar,curcomment,dim); strcpy(template_size,dim); strcpy(curstruct, curname); new_template = 1; n_templ_entries = 0; declare_record = 1; if (strlen(values) == 0) { close_makes(curstruct); } else { close_makes(values); } declare_record = 0; } YY_BREAK case 23: YY_RULE_SETUP #line 937 "dbin.lex" { ++npgmlines; dbinparse(yytext,curtype,curname,curvar,curcomment,dim); if (*curtype == *chnest) { if (strlen(dim) == 0) { fprintf(finc," record /%s_s/ %s\n",curname,values); fprintf(fh," %s_s %s;\n",curname,values); fprintf(fxdr," if (!xdr_%s(xdrs,&(dbobj->%s))) return 0;\n", curname,values); } else { fprintf(finc," record /%s_s/ %s(%s)\n",curname,values,dim); fprintf(fh," %s_s %s[%s];\n",curname,values,dim); strsub(dim,",","*"); fprintf(fxdr," for (i=0;i<%s;i++)\n",dim); fprintf(fxdr," if (!xdr_%s(xdrs,&(dbobj->%s[i]))) return 0;\n", curname,values); } } strsub(curcomment,"\"","'"); nguiel++; fprintf(fgui," \"%s\", \"child\", \"%s\",\n",curname,curcomment); } YY_BREAK case 24: YY_RULE_SETUP #line 959 "dbin.lex" { ++npgmlines; dbinparse(yytext,curtype,curname,curvar,curcomment,dim); strcpy(parent,curname); } YY_BREAK case 25: YY_RULE_SETUP #line 964 "dbin.lex" { /* $$$ support user fn. being in either Fortran or C */ close_makes(curstruct); nvars=0; nvarsc=0; ++npgmlines; BEGIN(COMMAND); dbinparse(yytext,curtype,curname,curvar,curcomment,dim); strcpy(uroutine,values); /* name of user routine */ strcpy(curstruct, curname); fprintf(finc,"***** command %s *****\n",curstruct); fprintf(fh,"/***** command %s *****/\n",curstruct); fprintf(fh,"extern int %s(void);\n",uroutine); fprintf(fh,"\ntypedef struct _%s_s {\n",curstruct); fprintf(frdf, " else if (varname.eq.'COMMAND_%s') then\n",curstruct); fprintf(frdf, " inum = 1\n"); fprintf(frdf, " ndim = nvars\n"); fprintf(frdc, "if (varname==\"COMMAND_%s\") {\n",curstruct); fprintf(frdc, " ndim = nvars; iok=1;\n"); fprintf(frdc, " getmembers(n_el_%s);\n",curstruct); is_template = 0; is_command = 1; n_elements = 0; } YY_BREAK case 26: YY_RULE_SETUP #line 991 "dbin.lex" { /* $$$ like the original make; requires a name for the instantiation */ ++npgmlines; dbinparse(yytext,curtype,curname,curvar,curcomment,dim); fprintf(finitf,"* %s\n",line1); fprintf(finitc,"/* %s */\n",line1); objname = strtok(values," "); valpnt = objname + strlen(objname)+1; indx++; indxtot++; fprintf(fh,"extern %s_s %s_%s;\n",curstruct,curstruct,objname); n = 0; while (n0) { curval[strlen(curval)]=' '; curnum[strlen(curnum)]=' '; curnumc[strlen(curnumc)]=' '; } n1=0; arg1=valpnt; while(n1<=n) { curval = strtok(arg1," /\n"); /* strtok sticks in '\0'; have to remove it */ if (n1' in char values */ n1=0; while (n10) { curval[strlen(curval)]='@'; curnum[strlen(curnum)]=' '; curnumc[strlen(curnumc)]=' '; } n1=0; arg1=valpnt; while(n1<=n) { curval = strtok(arg1,"@/\n"); /* strtok sticks in '\0'; have to remove it */ if (n1' in char values */ n1=0; while (n1yy_buffer_status == YY_BUFFER_NEW ) { /* We're scanning a new file or input source. It's * possible that this happened because the user * just pointed yyin at a new source and called * yylex(). If so, then we have to assure * consistency between yy_current_buffer and our * globals. Here is the right place to do so, because * this is the first action (other than possibly a * back-up) that will match for the new input source. */ yy_n_chars = yy_current_buffer->yy_n_chars; yy_current_buffer->yy_input_file = yyin; yy_current_buffer->yy_buffer_status = YY_BUFFER_NORMAL; } /* Note that here we test for yy_c_buf_p "<=" to the position * of the first EOB in the buffer, since yy_c_buf_p will * already have been incremented past the NUL character * (since all states make transitions on EOB to the * end-of-buffer state). Contrast this with the test * in input(). */ if ( yy_c_buf_p <= &yy_current_buffer->yy_ch_buf[yy_n_chars] ) { /* This was really a NUL. */ yy_state_type yy_next_state; yy_c_buf_p = yytext_ptr + yy_amount_of_matched_text; yy_current_state = yy_get_previous_state(); /* Okay, we're now positioned to make the NUL * transition. We couldn't have * yy_get_previous_state() go ahead and do it * for us because it doesn't know how to deal * with the possibility of jamming (and we don't * want to build jamming into it because then it * will run more slowly). */ yy_next_state = yy_try_NUL_trans( yy_current_state ); yy_bp = yytext_ptr + YY_MORE_ADJ; if ( yy_next_state ) { /* Consume the NUL. */ yy_cp = ++yy_c_buf_p; yy_current_state = yy_next_state; goto yy_match; } else { yy_cp = yy_c_buf_p; goto yy_find_action; } } else switch ( yy_get_next_buffer() ) { case EOB_ACT_END_OF_FILE: { yy_did_buffer_switch_on_eof = 0; if ( yywrap() ) { /* Note: because we've taken care in * yy_get_next_buffer() to have set up * yytext, we can now set up * yy_c_buf_p so that if some total * hoser (like flex itself) wants to * call the scanner after we return the * YY_NULL, it'll still work - another * YY_NULL will get returned. */ yy_c_buf_p = yytext_ptr + YY_MORE_ADJ; yy_act = YY_STATE_EOF(YY_START); goto do_action; } else { if ( ! yy_did_buffer_switch_on_eof ) YY_NEW_FILE; } break; } case EOB_ACT_CONTINUE_SCAN: yy_c_buf_p = yytext_ptr + yy_amount_of_matched_text; yy_current_state = yy_get_previous_state(); yy_cp = yy_c_buf_p; yy_bp = yytext_ptr + YY_MORE_ADJ; goto yy_match; case EOB_ACT_LAST_MATCH: yy_c_buf_p = &yy_current_buffer->yy_ch_buf[yy_n_chars]; yy_current_state = yy_get_previous_state(); yy_cp = yy_c_buf_p; yy_bp = yytext_ptr + YY_MORE_ADJ; goto yy_find_action; } break; } default: YY_FATAL_ERROR( "fatal flex scanner internal error--no action found" ); } /* end of action switch */ } /* end of scanning one token */ } /* end of yylex */ /* yy_get_next_buffer - try to read in a new buffer * * Returns a code representing an action: * EOB_ACT_LAST_MATCH - * EOB_ACT_CONTINUE_SCAN - continue scanning from current position * EOB_ACT_END_OF_FILE - end of file */ static int yy_get_next_buffer() { register char *dest = yy_current_buffer->yy_ch_buf; register char *source = yytext_ptr; register int number_to_move, i; int ret_val; if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] ) YY_FATAL_ERROR( "fatal flex scanner internal error--end of buffer missed" ); if ( yy_current_buffer->yy_fill_buffer == 0 ) { /* Don't try to fill the buffer, so this is an EOF. */ if ( yy_c_buf_p - yytext_ptr - YY_MORE_ADJ == 1 ) { /* We matched a single character, the EOB, so * treat this as a final EOF. */ return EOB_ACT_END_OF_FILE; } else { /* We matched some text prior to the EOB, first * process it. */ return EOB_ACT_LAST_MATCH; } } /* Try to read more data. */ /* First move last chars to start of buffer. */ number_to_move = (int) (yy_c_buf_p - yytext_ptr) - 1; for ( i = 0; i < number_to_move; ++i ) *(dest++) = *(source++); if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_EOF_PENDING ) /* don't do the read, it's not guaranteed to return an EOF, * just force an EOF */ yy_current_buffer->yy_n_chars = yy_n_chars = 0; else { int num_to_read = yy_current_buffer->yy_buf_size - number_to_move - 1; while ( num_to_read <= 0 ) { /* Not enough room in the buffer - grow it. */ #ifdef YY_USES_REJECT YY_FATAL_ERROR( "input buffer overflow, can't enlarge buffer because scanner uses REJECT" ); #else /* just a shorter name for the current buffer */ YY_BUFFER_STATE b = yy_current_buffer; int yy_c_buf_p_offset = (int) (yy_c_buf_p - b->yy_ch_buf); if ( b->yy_is_our_buffer ) { int new_size = b->yy_buf_size * 2; if ( new_size <= 0 ) b->yy_buf_size += b->yy_buf_size / 8; else b->yy_buf_size *= 2; b->yy_ch_buf = (char *) /* Include room in for 2 EOB chars. */ yy_flex_realloc( (void *) b->yy_ch_buf, b->yy_buf_size + 2 ); } else /* Can't grow it, we don't own it. */ b->yy_ch_buf = 0; if ( ! b->yy_ch_buf ) YY_FATAL_ERROR( "fatal error - scanner input buffer overflow" ); yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset]; num_to_read = yy_current_buffer->yy_buf_size - number_to_move - 1; #endif } if ( num_to_read > YY_READ_BUF_SIZE ) num_to_read = YY_READ_BUF_SIZE; /* Read in more data. */ YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]), yy_n_chars, num_to_read ); yy_current_buffer->yy_n_chars = yy_n_chars; } if ( yy_n_chars == 0 ) { if ( number_to_move == YY_MORE_ADJ ) { ret_val = EOB_ACT_END_OF_FILE; yyrestart( yyin ); } else { ret_val = EOB_ACT_LAST_MATCH; yy_current_buffer->yy_buffer_status = YY_BUFFER_EOF_PENDING; } } else ret_val = EOB_ACT_CONTINUE_SCAN; yy_n_chars += number_to_move; yy_current_buffer->yy_ch_buf[yy_n_chars] = YY_END_OF_BUFFER_CHAR; yy_current_buffer->yy_ch_buf[yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR; yytext_ptr = &yy_current_buffer->yy_ch_buf[0]; return ret_val; } /* yy_get_previous_state - get the state just before the EOB char was reached */ static yy_state_type yy_get_previous_state() { register yy_state_type yy_current_state; register char *yy_cp; yy_current_state = yy_start; yy_current_state += YY_AT_BOL(); for ( yy_cp = yytext_ptr + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp ) { register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1); if ( yy_accept[yy_current_state] ) { yy_last_accepting_state = yy_current_state; yy_last_accepting_cpos = yy_cp; } while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) { yy_current_state = (int) yy_def[yy_current_state]; if ( yy_current_state >= 1860 ) yy_c = yy_meta[(unsigned int) yy_c]; } yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; } return yy_current_state; } /* yy_try_NUL_trans - try to make a transition on the NUL character * * synopsis * next_state = yy_try_NUL_trans( current_state ); */ #ifdef YY_USE_PROTOS static yy_state_type yy_try_NUL_trans( yy_state_type yy_current_state ) #else static yy_state_type yy_try_NUL_trans( yy_current_state ) yy_state_type yy_current_state; #endif { register int yy_is_jam; register char *yy_cp = yy_c_buf_p; register YY_CHAR yy_c = 1; if ( yy_accept[yy_current_state] ) { yy_last_accepting_state = yy_current_state; yy_last_accepting_cpos = yy_cp; } while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) { yy_current_state = (int) yy_def[yy_current_state]; if ( yy_current_state >= 1860 ) yy_c = yy_meta[(unsigned int) yy_c]; } yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; yy_is_jam = (yy_current_state == 1859); return yy_is_jam ? 0 : yy_current_state; } #ifndef YY_NO_UNPUT #ifdef YY_USE_PROTOS static void yyunput( int c, register char *yy_bp ) #else static void yyunput( c, yy_bp ) int c; register char *yy_bp; #endif { register char *yy_cp = yy_c_buf_p; /* undo effects of setting up yytext */ *yy_cp = yy_hold_char; if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 ) { /* need to shift things up to make room */ /* +2 for EOB chars. */ register int number_to_move = yy_n_chars + 2; register char *dest = &yy_current_buffer->yy_ch_buf[ yy_current_buffer->yy_buf_size + 2]; register char *source = &yy_current_buffer->yy_ch_buf[number_to_move]; while ( source > yy_current_buffer->yy_ch_buf ) *--dest = *--source; yy_cp += (int) (dest - source); yy_bp += (int) (dest - source); yy_current_buffer->yy_n_chars = yy_n_chars = yy_current_buffer->yy_buf_size; if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 ) YY_FATAL_ERROR( "flex scanner push-back overflow" ); } *--yy_cp = (char) c; yytext_ptr = yy_bp; yy_hold_char = *yy_cp; yy_c_buf_p = yy_cp; } #endif /* ifndef YY_NO_UNPUT */ #ifdef __cplusplus static int yyinput() #else static int input() #endif { int c; *yy_c_buf_p = yy_hold_char; if ( *yy_c_buf_p == YY_END_OF_BUFFER_CHAR ) { /* yy_c_buf_p now points to the character we want to return. * If this occurs *before* the EOB characters, then it's a * valid NUL; if not, then we've hit the end of the buffer. */ if ( yy_c_buf_p < &yy_current_buffer->yy_ch_buf[yy_n_chars] ) /* This was really a NUL. */ *yy_c_buf_p = '\0'; else { /* need more input */ int offset = yy_c_buf_p - yytext_ptr; ++yy_c_buf_p; switch ( yy_get_next_buffer() ) { case EOB_ACT_LAST_MATCH: /* This happens because yy_g_n_b() * sees that we've accumulated a * token and flags that we need to * try matching the token before * proceeding. But for input(), * there's no matching to consider. * So convert the EOB_ACT_LAST_MATCH * to EOB_ACT_END_OF_FILE. */ /* Reset buffer status. */ yyrestart( yyin ); /* fall through */ case EOB_ACT_END_OF_FILE: { if ( yywrap() ) return EOF; if ( ! yy_did_buffer_switch_on_eof ) YY_NEW_FILE; #ifdef __cplusplus return yyinput(); #else return input(); #endif } case EOB_ACT_CONTINUE_SCAN: yy_c_buf_p = yytext_ptr + offset; break; } } } c = *(unsigned char *) yy_c_buf_p; /* cast for 8-bit char's */ *yy_c_buf_p = '\0'; /* preserve yytext */ yy_hold_char = *++yy_c_buf_p; yy_current_buffer->yy_at_bol = (c == '\n'); return c; } #ifdef YY_USE_PROTOS void yyrestart( FILE *input_file ) #else void yyrestart( input_file ) FILE *input_file; #endif { if ( ! yy_current_buffer ) yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); yy_init_buffer( yy_current_buffer, input_file ); yy_load_buffer_state(); } #ifdef YY_USE_PROTOS void yy_switch_to_buffer( YY_BUFFER_STATE new_buffer ) #else void yy_switch_to_buffer( new_buffer ) YY_BUFFER_STATE new_buffer; #endif { if ( yy_current_buffer == new_buffer ) return; if ( yy_current_buffer ) { /* Flush out information for old buffer. */ *yy_c_buf_p = yy_hold_char; yy_current_buffer->yy_buf_pos = yy_c_buf_p; yy_current_buffer->yy_n_chars = yy_n_chars; } yy_current_buffer = new_buffer; yy_load_buffer_state(); /* We don't actually know whether we did this switch during * EOF (yywrap()) processing, but the only time this flag * is looked at is after yywrap() is called, so it's safe * to go ahead and always set it. */ yy_did_buffer_switch_on_eof = 1; } #ifdef YY_USE_PROTOS void yy_load_buffer_state( void ) #else void yy_load_buffer_state() #endif { yy_n_chars = yy_current_buffer->yy_n_chars; yytext_ptr = yy_c_buf_p = yy_current_buffer->yy_buf_pos; yyin = yy_current_buffer->yy_input_file; yy_hold_char = *yy_c_buf_p; } #ifdef YY_USE_PROTOS YY_BUFFER_STATE yy_create_buffer( FILE *file, int size ) #else YY_BUFFER_STATE yy_create_buffer( file, size ) FILE *file; int size; #endif { YY_BUFFER_STATE b; b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) ); if ( ! b ) YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); b->yy_buf_size = size; /* yy_ch_buf has to be 2 characters longer than the size given because * we need to put in 2 end-of-buffer characters. */ b->yy_ch_buf = (char *) yy_flex_alloc( b->yy_buf_size + 2 ); if ( ! b->yy_ch_buf ) YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); b->yy_is_our_buffer = 1; yy_init_buffer( b, file ); return b; } #ifdef YY_USE_PROTOS void yy_delete_buffer( YY_BUFFER_STATE b ) #else void yy_delete_buffer( b ) YY_BUFFER_STATE b; #endif { if ( ! b ) return; if ( b == yy_current_buffer ) yy_current_buffer = (YY_BUFFER_STATE) 0; if ( b->yy_is_our_buffer ) yy_flex_free( (void *) b->yy_ch_buf ); yy_flex_free( (void *) b ); } #ifndef YY_ALWAYS_INTERACTIVE #ifndef YY_NEVER_INTERACTIVE extern int isatty YY_PROTO(( int )); #endif #endif #ifdef YY_USE_PROTOS void yy_init_buffer( YY_BUFFER_STATE b, FILE *file ) #else void yy_init_buffer( b, file ) YY_BUFFER_STATE b; FILE *file; #endif { yy_flush_buffer( b ); b->yy_input_file = file; b->yy_fill_buffer = 1; #if YY_ALWAYS_INTERACTIVE b->yy_is_interactive = 1; #else #if YY_NEVER_INTERACTIVE b->yy_is_interactive = 0; #else b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0; #endif #endif } #ifdef YY_USE_PROTOS void yy_flush_buffer( YY_BUFFER_STATE b ) #else void yy_flush_buffer( b ) YY_BUFFER_STATE b; #endif { if ( ! b ) return; b->yy_n_chars = 0; /* We always need two end-of-buffer characters. The first causes * a transition to the end-of-buffer state. The second causes * a jam in that state. */ b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR; b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR; b->yy_buf_pos = &b->yy_ch_buf[0]; b->yy_at_bol = 1; b->yy_buffer_status = YY_BUFFER_NEW; if ( b == yy_current_buffer ) yy_load_buffer_state(); } #ifndef YY_NO_SCAN_BUFFER #ifdef YY_USE_PROTOS YY_BUFFER_STATE yy_scan_buffer( char *base, yy_size_t size ) #else YY_BUFFER_STATE yy_scan_buffer( base, size ) char *base; yy_size_t size; #endif { YY_BUFFER_STATE b; if ( size < 2 || base[size-2] != YY_END_OF_BUFFER_CHAR || base[size-1] != YY_END_OF_BUFFER_CHAR ) /* They forgot to leave room for the EOB's. */ return 0; b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) ); if ( ! b ) YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" ); b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */ b->yy_buf_pos = b->yy_ch_buf = base; b->yy_is_our_buffer = 0; b->yy_input_file = 0; b->yy_n_chars = b->yy_buf_size; b->yy_is_interactive = 0; b->yy_at_bol = 1; b->yy_fill_buffer = 0; b->yy_buffer_status = YY_BUFFER_NEW; yy_switch_to_buffer( b ); return b; } #endif #ifndef YY_NO_SCAN_STRING #ifdef YY_USE_PROTOS YY_BUFFER_STATE yy_scan_string( yyconst char *yy_str ) #else YY_BUFFER_STATE yy_scan_string( yy_str ) yyconst char *yy_str; #endif { int len; for ( len = 0; yy_str[len]; ++len ) ; return yy_scan_bytes( yy_str, len ); } #endif #ifndef YY_NO_SCAN_BYTES #ifdef YY_USE_PROTOS YY_BUFFER_STATE yy_scan_bytes( yyconst char *bytes, int len ) #else YY_BUFFER_STATE yy_scan_bytes( bytes, len ) yyconst char *bytes; int len; #endif { YY_BUFFER_STATE b; char *buf; yy_size_t n; int i; /* Get memory for full buffer, including space for trailing EOB's. */ n = len + 2; buf = (char *) yy_flex_alloc( n ); if ( ! buf ) YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" ); for ( i = 0; i < len; ++i ) buf[i] = bytes[i]; buf[len] = buf[len+1] = YY_END_OF_BUFFER_CHAR; b = yy_scan_buffer( buf, n ); if ( ! b ) YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" ); /* It's okay to grow etc. this buffer, and we should throw it * away when we're done. */ b->yy_is_our_buffer = 1; return b; } #endif #ifndef YY_NO_PUSH_STATE #ifdef YY_USE_PROTOS static void yy_push_state( int new_state ) #else static void yy_push_state( new_state ) int new_state; #endif { if ( yy_start_stack_ptr >= yy_start_stack_depth ) { yy_size_t new_size; yy_start_stack_depth += YY_START_STACK_INCR; new_size = yy_start_stack_depth * sizeof( int ); if ( ! yy_start_stack ) yy_start_stack = (int *) yy_flex_alloc( new_size ); else yy_start_stack = (int *) yy_flex_realloc( (void *) yy_start_stack, new_size ); if ( ! yy_start_stack ) YY_FATAL_ERROR( "out of memory expanding start-condition stack" ); } yy_start_stack[yy_start_stack_ptr++] = YY_START; BEGIN(new_state); } #endif #ifndef YY_NO_POP_STATE static void yy_pop_state() { if ( --yy_start_stack_ptr < 0 ) YY_FATAL_ERROR( "start-condition stack underflow" ); BEGIN(yy_start_stack[yy_start_stack_ptr]); } #endif #ifndef YY_NO_TOP_STATE static int yy_top_state() { return yy_start_stack[yy_start_stack_ptr - 1]; } #endif #ifndef YY_EXIT_FAILURE #define YY_EXIT_FAILURE 2 #endif #ifdef YY_USE_PROTOS static void yy_fatal_error( yyconst char msg[] ) #else static void yy_fatal_error( msg ) char msg[]; #endif { (void) fprintf( stderr, "%s\n", msg ); exit( YY_EXIT_FAILURE ); } /* Redefine yyless() so it works in section 3 code. */ #undef yyless #define yyless(n) \ do \ { \ /* Undo effects of setting up yytext. */ \ yytext[yyleng] = yy_hold_char; \ yy_c_buf_p = yytext + n; \ yy_hold_char = *yy_c_buf_p; \ *yy_c_buf_p = '\0'; \ yyleng = n; \ } \ while ( 0 ) /* Internal utility routines. */ #ifndef yytext_ptr #ifdef YY_USE_PROTOS static void yy_flex_strncpy( char *s1, yyconst char *s2, int n ) #else static void yy_flex_strncpy( s1, s2, n ) char *s1; yyconst char *s2; int n; #endif { register int i; for ( i = 0; i < n; ++i ) s1[i] = s2[i]; } #endif #ifdef YY_NEED_STRLEN #ifdef YY_USE_PROTOS static int yy_flex_strlen( yyconst char *s ) #else static int yy_flex_strlen( s ) yyconst char *s; #endif { register int n; for ( n = 0; s[n]; ++n ) ; return n; } #endif #ifdef YY_USE_PROTOS static void *yy_flex_alloc( yy_size_t size ) #else static void *yy_flex_alloc( size ) yy_size_t size; #endif { return (void *) malloc( size ); } #ifdef YY_USE_PROTOS static void *yy_flex_realloc( void *ptr, yy_size_t size ) #else static void *yy_flex_realloc( ptr, size ) void *ptr; yy_size_t size; #endif { /* The cast to (char *) in the following accommodates both * implementations that use char* generic pointers, and those * that use void* generic pointers. It works with the latter * because both ANSI C and C++ allow castless assignment from * any pointer type to void*, and deal with argument conversions * as though doing an assignment. */ return (void *) realloc( (char *) ptr, size ); } #ifdef YY_USE_PROTOS static void yy_flex_free( void *ptr ) #else static void yy_flex_free( ptr ) void *ptr; #endif { free( ptr ); } #if YY_MAIN int main() { yylex(); return 0; } #endif #line 1231 "dbin.lex" /****************************************************************************/ main(int argc,char* argv[]) { #include int n, i; strcpy(dbin_dbvsn,"0000"); print_listing = 0; cray = 0; inlist = 0; /* if dbin filename is on command line... */ if (argc>1) { printf("Reading database %s\n",argv[1]); /* Extract path from the db filename */ getpath(argv[1]); if (access(argv[1],F_OK)!=0) { printf("dbin error: file %s does not exist.\n",argv[1]); return 1;} yyin = fopen(argv[1],"r"); } else { dbpath[0] = '\n'; } /* check for options */ if (argc>0) { for (i=0;i 0) inlist--; yyin = yyinlist[inlist]; yylex(); /* yyrestart(); */ } docloseout(); printf("Directive lines in database file: %d\n",npgmlines); } /****************************************************************************/ dbinparse(char *str, char *typ, char *nam, char *var, char *com, char *dim) { /* Parse line for the name and comment */ int c, nc, nt, ncm, nd, npv, len1, after_cont, after_com, got_token, ii; len1 = strcspn(str,"/"); if (len1>=MAXLINE) { printf("truncated line at %d chars:\n%s\n",MAXLINE,str); len1=MAXLINE-1; } strncpy(line1,str,len1); line1[len1] = '\0'; if (print_listing == 1) printf("TheLine-->\"%s\"<--TheLine\n",str); /* zap any comments following line continuation chars */ after_cont = after_com = 0; for (nc=0;nc=0;ii--) { if ((values[ii] != ' ') && (values[ii] != '\t')) got_token++; if (got_token == 0) npv=ii; } values[npv] = '\0'; /* comment */ while (((str[nc] == '!') || (str[nc] == '\t')) && (nc < strlen(str))) { ++nc; } while (nc <= strlen(str)) { com[ncm++] = str[nc++]; } /* terminate (or, if empty, zero out) the strings */ nam[nn] = '\0'; var[nn] = '\0'; dim[nd] = '\0'; if (!internal_mode) ndim = strtol(dim,(char**)NULL,0); /* nd returns as dimension */ nv = nn; com[ncm] = '\0'; stlower(typ); stlower(nam); } /*****************************************************************************/ yywrap() { return (1); } /*****************************************************************************/ doheaders() { /* Fortran include file for declarations */ strcpy(fname,dbname); if (!internal_mode) { strcat(fname,"_db.inc"); } else { strcat(fname,"_dst.inc"); } finc = fopen(fname, "w"); finc_original = finc; fprintf(finc,"*\n*** dbin v%d Fortran include file ***\n",idbin_version); fprintf(finc,"*** Database %s \n*\n",dbname); fprintf(finc," integer idbin_version ! dbin version number\n"); fprintf(finc," parameter (idbin_version = %d)\n*\n",idbin_version); fprintf(finc," character*(*) dbin_%s_dbvsn ! database version number\n", dbname); fprintf(finc," parameter (dbin_%s_dbvsn = '%s')\n",dbname,dbin_dbvsn); /* Fortran read routine */ strcpy(fname,dbname); strcat(fname,"_read.F"); if (internal_mode) strcpy(fname,"/dev/null"); frdf = fopen(fname, "w"); fprintf(frdf," subroutine %s_read(fname)\n",dbname); fprintf(frdf,"*\n*** Database read routine ***\n*\n"); fprintf(frdf,"*\n* Generated automatically using the dbin tool.\n*\n"); fprintf(frdf,"* Not to be modified by user.\n*\n"); fprintf(frdf," implicit none\n"); fprintf(frdf," character*(*) fname\n"); fprintf(frdf,"C\n"); comheadf(frdf); fprintf(frdf," logical end_of_file\n"); fprintf(frdf," integer index_for\n"); fprintf(frdf," external index_for\n"); fprintf(frdf," integer istat, inum, index, i, ndim\n"); fprintf(frdf," character previous_varname*(db_chlen)\n"); fprintf(frdf," save previous_varname\n"); fprintf(frdf," data previous_varname/'Empty'/\n"); fprintf(frdf," integer MAXNUM_DBINERRORS\n"); fprintf(frdf," parameter (MAXNUM_DBINERRORS = 10)\n"); fprintf(frdf," integer num_dbinerrors\n"); fprintf(frdf,"*\n"); fprintf(frdf," call %s_init\n",dbname); fprintf(frdf," 100 call dbin_getrec(fname,end_of_file,istat)\n"); fprintf(frdf," if (end_of_file) goto 999\n"); /* Handling of error message from dbin_getrec */ fprintf(frdf," if (istat.ne.0) then\n"); fprintf(frdf," num_dbinerrors = num_dbinerrors + 1\n"); fprintf(frdf," if (istat .eq. 2) then \n"); fprintf(frdf," print *, ' Probably filename error, Stop '\n"); fprintf(frdf," stop\n"); fprintf(frdf," else \n"); fprintf(frdf," print *, ' Unknow error in DBIN, istat = ', istat\n"); fprintf(frdf," end if\n"); fprintf(frdf," if (num_dbinerrors .ge. MAXNUM_DBINERRORS) then\n"); fprintf(frdf," print *, ' Maximum number of error reached, stop '\n"); fprintf(frdf," stop\n"); fprintf(frdf," else \n"); fprintf(frdf," goto 100\n"); fprintf(frdf," end if\n"); fprintf(frdf," end if\n"); fprintf(frdf,"* \n"); /* Checking now the group rule: if the varname changed, the index must be */ /* set to 1 to start filling a new array of structures. */ fprintf(frdf," if((previous_varname .ne. varname) .and.\n"); fprintf(frdf," & (n_instance .ne. 1)) then\n"); fprintf(frdf," print*, ' Fatal error in DBIN read : '\n"); fprintf(frdf," print*, ' Unexpected change of Data structure name '\n"); fprintf(frdf," print*, ' Previous Data structure ', previous_varname\n"); fprintf(frdf," print*, ' Current Data structure ', varname\n"); fprintf(frdf," print*, ' Index to struct. array = ', n_instance\n"); fprintf(frdf," stop\n"); fprintf(frdf," else \n"); fprintf(frdf," previous_varname = varname\n"); fprintf(frdf," end if \n"); fprintf(frdf," if (varname.eq.'fake_name') then ! match name\n"); /* C include file */ strcpy(fname,dbname); if (!internal_mode) { strcat(fname,"_db.h"); } else { strcat(fname,"_dst.h"); } fh = fopen(fname, "w"); fh_original = fh; fprintf(fh,"/*** dbin v%d C include file ***/\n",idbin_version); fprintf(fh,"/*** Database %s ***/\n",dbname); /* fprintf(fh,"#ifndef %s_H\n",dbname); */ /* fprintf(fh,"#define %s_H\n\n",dbname); */ fprintf(fh,"#include \n"); /* fprintf(fh,"extern \"C\" {\n"); */ fprintf(fh,"static const int dbin_version=%d; /* dbin version number */\n", idbin_version); fprintf(fh,"static const char* dbin_%s_dbvsn=\"%s\"; /* db version number */\n", dbname,dbin_dbvsn); /* fprintf(fh,"}\n"); */ /* C read routine */ strcpy(fname,dbname); strcat(fname,"Read.c"); if (internal_mode) strcpy(fname,"/dev/null"); frdc = fopen(fname, "w"); fprintf(frdc,"/*** Database read routine ***/\n"); fprintf(frdc,"/*** Generated automatically using the dbin tool. */\n"); fprintf(frdc,"/*** Not to be modified by user. */\n"); fprintf(frdc,"#include \n"); comheadc(frdc); /* fprintf(frdc,"#include \"%sGlobal.h\"\n",dbname); */ fprintf(frdc,"void dbin_getrec(char* fname[],void (*)(void));\n"); fprintf(frdc,"void %s_interpret();\n",dbname); fprintf(frdc,"void %sInit();\n",dbname); fprintf(frdc,"void getmembers(long);\n\n",dbname); /* fprintf(frdc,"extern \"C\"{\n"); */ fprintf(frdc,"void %sRead(char* fname)\n{\n",dbname); fprintf(frdc," void (*pf)(); /* pointer to interpreter */\n"); fprintf(frdc," pf = &%s_interpret;\n",dbname); fprintf(frdc," %sInit();\n",dbname); fprintf(frdc," dbin_getrec(&fname,pf);\n",dbname); fprintf(frdc,"}\n"); if (cray) fprintf(frdc,"void %READ(char* fname)\n{\n",stupper(dbname)); else fprintf(frdc,"void %sread_(char* fname)\n{\n",stlower(dbname)); fprintf(frdc," *(strstr(fname,\" \"))='\\0';\n"); fprintf(frdc," %sRead(fname);\n}\n",dbname); /* fprintf(frdc,"}\n"); for extern "C" */ fprintf(frdc,"void %s_interpret()\n{\n",dbname); fprintf(frdc,"int inum, index, i, ndim, iok;\niok=0;\n"); /* Fortran init routine */ strcpy(fname,dbname); strcat(fname,"_init.F"); if (internal_mode) strcpy(fname,"/dev/null"); finitf = fopen(fname, "w"); fprintf(finitf," subroutine %s_init\n",dbname); fprintf(finitf,"*\n*** Database default init routine ***\n*\n"); fprintf(finitf,"*\n* Generated automatically using the dbin tool.\n*\n"); fprintf(finitf,"* Not to be modified by user.\n*\n"); fprintf(finitf," implicit none\n"); comheadf(finitf); /* C init routine */ strcpy(fname,dbname); strcat(fname,"Init.c"); if (internal_mode) strcpy(fname,"/dev/null"); finitc = fopen(fname, "w"); fprintf(finitc,"/*** Database default init routine ***/\n"); fprintf(finitc,"/*** Generated automatically using the dbin tool. */\n"); fprintf(finitc,"/*** Not to be modified by user. */\n"); comheadc(finitc); fprintf(finitc,"void %sInit() {\n",dbname); /* GUI menu definition routine */ strcpy(fname,dbname); strcat(fname,"GUI.h"); if (internal_mode) strcpy(fname,"/dev/null"); fgui = fopen(fname, "w"); fprintf(fgui,"/*** GUI code for dbin database interaction ***/\n"); fprintf(fgui,"/*** Generated automatically using the dbin tool. */\n"); fprintf(fgui,"/*** Not to be modified by user. */\n"); fprintf(fgui,"static struct element_keys {\n"); fprintf(fgui," char *name;\n"); fprintf(fgui," struct parameter_definition {\n"); fprintf(fgui," char *name;\n"); fprintf(fgui," char *value_type;\n"); fprintf(fgui," char *comment;\n"); fprintf(fgui," } parameters[MAX_NUM_PARAMETERS];\n"); fprintf(fgui," int num_parameters;\n"); fprintf(fgui," char *parent;\n"); fprintf(fgui,"} geo_keys[] = {\n"); /* XDR I/O definition routine for MCFIO package */ strcpy(fname,dbname); strcat(fname,"XDR.c"); fxdr = fopen(fname, "w"); fprintf(fxdr,"/*** XDR code for dbin database I/O ***/\n"); fprintf(fxdr,"/*** Generated automatically using the dbin tool. */\n"); fprintf(fxdr,"/*** Not to be modified by user. */\n"); fprintf(fxdr,"#include \"%sXDRinc.h\"\n",dbname); fprintf(fxdr,"static int *idat, ln, i;\n"); fprintf(fxdr,"static u_int ui;\n"); fprintf(fxdr,"static float *dat;\n"); fprintf(fxdr,"static double *ddat;\n"); fprintf(fxdr,"static char* xdrstring;\n"); fprintf(fxdr,"\n"); /* XDR I/O manager routine for MCFIO package */ strcpy(fname,dbname); strcat(fname,"XDRmgr.c"); fxdrmgr = fopen(fname, "w"); fprintf(fxdrmgr,"/*** XDR manager code for dbin database I/O ***/\n"); fprintf(fxdrmgr,"/*** Generated automatically using the dbin tool. */\n"); fprintf(fxdrmgr,"/*** Not to be modified by user. */\n"); fprintf(fxdrmgr,"#include \"%sXDRinc.h\"\n",dbname); fprintf(fxdrmgr,"static int i;\n\n"); /* XDR I/O routine for entire database */ strcpy(fname,dbname); strcat(fname,"XDRall.c"); fxdrall = fopen(fname, "w"); fprintf(fxdrall,"/*** XDR I/O for entire dbin database ***/\n"); fprintf(fxdrall,"/*** Generated automatically using the dbin tool. */\n"); fprintf(fxdrall,"/*** Not to be modified by user. */\n"); fprintf(fxdrall,"#include \"%sXDRinc.h\"\n\n",dbname); fprintf(fxdrall,"void %s_xdr_all(XDR* xdrs);\n\n",dbname); fprintf(fxdrall,"void %s_xdr_all(XDR* xdrs)\n{\n",dbname); /* XDR I/O include file for MCFIO package */ strcpy(fname,dbname); strcat(fname,"XDRinc.h"); fxdrinc = fopen(fname, "w"); fprintf(fxdrinc,"/*** XDR include file for dbin database I/O ***/\n"); fprintf(fxdrinc,"/*** Generated automatically using the dbin tool. */\n"); fprintf(fxdrinc,"/*** Not to be modified by user. */\n"); if (!internal_mode) { fprintf(fxdrinc,"#include \"%s_db.h\"\n",dbname); } else { fprintf(fxdrinc,"#include \"%s_dst.h\"\n",dbname); } fprintf(fxdrinc,"#include \n"); fprintf(fxdrinc,"#include \n"); fprintf(fxdrinc,"#include \n"); fprintf(fxdrinc,"#include \n"); fprintf(fxdrinc,"#include \"mcfio_Dict.h\"\n"); fprintf(fxdrinc,"#include \"mcf_xdr.h\"\n"); } /*****************************************************************************/ docloseout() { fprintf(frdf," else\n"); fprintf(frdf, " print *,'dbin error: unidentified parameter: ',varname\n"); fprintf(frdf," endif\n"); fprintf(frdf," goto 100\n"); fprintf(frdf," 999 continue\n"); fprintf(frdf," end\n"); /* fprintf(fh,"\n#endif\n"); */ fprintf(finitf," n_templates = %d\n",n_templates); fprintf(finitf," n_totobjs = %d\n",indxtot); fprintf(finitf," end\n"); fprintf(finitc,"}\n"); } varsave(int idm) { int nch=0; int nc = 0; while (curname[nc] != '\0') {varlist[nvars++] = curname[nc++];} nc = 0; while (curname[nc] != '\0') {varlistc[nvarsc++] = curname[nc++];} if (idm >= 0) { varlist[nvars++] = '('; nch=sprintf(&varlist[nvars],"%d",idm+1); varlist[nvars+nch] = ')'; nvars=nvars+nch+1; varlistc[nvarsc++] = '['; nch=sprintf(&varlistc[nvarsc],"%d",idm); varlistc[nvarsc+nch] = ']'; nvarsc=nvarsc+nch+1; } varlist[nvars++] = ' '; varlist[nvars] = '\0'; varlistc[nvarsc++] = ' '; varlistc[nvarsc] = '\0'; } close_makes(char *instname) { if (internal_mode != 0) { if (new_template>0 && strlen(template_size)>0) n_templ_entries++; } else { n_templ_entries++; } if (print_listing) printf("close_makes: n_templ_entries %d, new_template %d, mode %d\n", n_templ_entries, new_template,internal_mode); if (new_template > 0) { fprintf(finitf," n_obj_%s=%d\n",curstruct,indx); fprintf(finitc,"*n_obj_%s=%d;\n",curstruct,indx); if (indx<=0) indx=1; if (fixed_size > 0) indx = fixed_size; if (internal_mode) { if (strlen(template_size)>0 || declare_record == 1) { if (strlen(template_size)==0) { fprintf(finc," integer n_obj_%s\n",instname); fprintf(finc," parameter (n_obj_%s=1)\n",instname); fprintf(finc," record /%s_s/ %s\n", curstruct,instname); fprintf(finc, " common /%s_c/ %s\n",instname,instname); } else { fprintf(finc," integer n_obj_%s\n",instname); /* dummy word to ensure alignment */ fprintf(finc," integer idm%s\n",instname); fprintf(finc," record /%s_s/ %s(%s)\n", curstruct,instname,template_size); fprintf(finc, " common /%s_c/\n + n_obj_%s, idm%s, %s\n", instname,instname,instname,instname); } } } else { fprintf(finc," integer n_obj_%s\n",curstruct); /* dummy word to ensure alignment */ fprintf(finc," integer idm%s\n",instname); fprintf(finc," record /%s_s/ %s(%d)\n", curstruct,instname,indx); fprintf(finc," common /%s_c/\n + n_obj_%s, idm%s, %s\n", instname,instname,instname,instname); } if (strlen(template_size)>0 || declare_record ==1) { fprintf(fxdrinc,"int %s_xdr_io(XDR* xdrs);\n",instname); fprintf(fxdrall,"%s_xdr_io(xdrs);\n",instname); fprintf(fxdrmgr,"int %s_xdr_io(XDR* xdrs)\n{\n",instname); fprintf(fxdrmgr," (void) xdr_int(xdrs,n_obj_%s);\n",instname); if (strlen(template_size)>0) fprintf(fxdrmgr," for (i=0;i<*n_obj_%s;i++)\n",instname); else fprintf(fxdrmgr," i=0;\n"); fprintf(fxdrmgr," if (!xdr_%s(xdrs,&%s[i])) return 0;\n", curstruct,instname); fprintf(fxdrmgr," return 1;\n}\n\n"); } if (n_templ_entries == 1 || declare_record == 1) { /* fprintf(fh,"extern \"C\" {\n"); */ if (internal_mode) { if (strlen(template_size)>0 || declare_record == 1) { fprintf(fh,"extern struct %s_c {\n",instname); fprintf(fh," int n_obj_%s;\n",instname); fprintf(fh," int idm%s;\n",instname); fprintf(fh," %s_s %s[1];\n",curstruct,instname); if (cray) { fprintf(fh,"} %s_C;\n",stupper(instname)); fprintf(fh,"static int *n_obj_%s = &(%s_C.n_obj_%s);\n", instname,stupper(instname),instname); fprintf(fh,"static %s_s *%s = &%s_C.%s[0];\n", curstruct,stupper(instname),instname,instname); } else { fprintf(fh,"} %s_c_;\n",stlower(instname)); fprintf(fh,"static int *n_obj_%s = &(%s_c_.n_obj_%s);\n", instname,stlower(instname),instname); fprintf(fh,"static %s_s *%s = &%s_c_.%s[0];\n", curstruct,stlower(instname),instname,instname); } } } else { fprintf(fh,"extern struct %s_c {\n",instname); fprintf(fh," int n_obj_%s;\n",instname); fprintf(fh," int idm%s;\n",instname); fprintf(fh," %s_s %s[1];\n",curstruct,instname); if (cray) { fprintf(fh,"} %s_C;\n",stupper(instname)); fprintf(fh,"static int *n_obj_%s = &(%s_C.n_obj_%s);\n", instname,stupper(instname),instname); fprintf(fh,"static %s_s *%s = &%s_C.%s[0];\n", curstruct,stupper(instname),instname,instname); } else { fprintf(fh,"} %s_c_;\n",stlower(instname)); fprintf(fh,"static int *n_obj_%s = &(%s_c_.n_obj_%s);\n", instname,stlower(instname),instname); fprintf(fh,"static %s_s *%s = &%s_c_.%s[0];\n", curstruct,stlower(instname),instname,instname); } } } indx = 0; new_template = 0; } } comheadf(FILE *fl) { fprintf(fl,"#include \"%s_db.inc\"\n",dbname); fprintf(fl,"#include \"dbin.inc\"\n"); } comheadc(FILE *fl){ fprintf(fl,"#include \"%s_db.h\"\n",dbname); fprintf(fl,"extern int n_instance;\n"); fprintf(fl,"extern double dvar[100];\n"); fprintf(fl,"extern float rvar[100];\n"); fprintf(fl,"extern int nvars;\n"); fprintf(fl,"extern char chvar[20][80];\n"); fprintf(fl,"extern char varname[80], objname[80];\n"); } nam2var(){ int i, ln; strcpy(curvarc,curvar); /* C variable name */ strcpy(curvarc,curstruct); ln = strlen(curvarc); curvarc[ln] = '.'; i=0; while (i= 'A' && st[i] <= 'Z') st[i] = st[i] + 'a' - 'A'; i++; } return st; } char * stupper(char* st) { int i=0; while (st[i] != '\0') { if (st[i] >= 'a' && st[i] <= 'z') st[i] = st[i] + 'A' - 'a'; i++; } return st; } void strsub(char* str, char* sub, char* repl) { /* for each char in sub that appears in str, substitute repl */ /* do it without doing a malloc for a new string, cuz I said so */ int i, j, k, l, ioff=0; for (i=0;i<=strlen(str)+ioff;i++) for (j=0;j0) for (l=strlen(str)+ioff+k;l>=i;l--) str[l+1]=str[l]; str[i] = repl[k]; i++; ioff++; } } /* ** Added by P.L., to recover gracefully if one attempts to start a template ** without decalring a database. */ void check_finc_fh() { if ((finc == NULL) || (fh == NULL)) { printf("DBin error: Uninitialized file descriptor \n"); printf(" Probable cause: missing database declaration \n"); printf(" Ending dbin here! \n"); exit(2); } }