diff -ruN base/client/client_priv.h mysql50gpl/client/client_priv.h --- base/client/client_priv.h 2007-03-05 11:21:20.000000000 -0800 +++ mysql50gpl/client/client_priv.h 2007-04-13 17:53:55.920749000 -0700 @@ -51,5 +51,5 @@ OPT_TRIGGERS, OPT_IGNORE_TABLE,OPT_INSERT_IGNORE,OPT_SHOW_WARNINGS,OPT_DROP_DATABASE, OPT_TZ_UTC, OPT_AUTO_CLOSE, OPT_SSL_VERIFY_SERVER_CERT, - OPT_DEBUG_INFO + OPT_DEBUG_INFO, OPT_STRIP_COMMENTS }; diff -ruN base/client/mysql.cc mysql50gpl/client/mysql.cc --- base/client/mysql.cc 2007-03-05 11:21:21.000000000 -0800 +++ mysql50gpl/client/mysql.cc 2007-04-13 17:53:56.524758000 -0700 @@ -173,6 +173,7 @@ static uint prompt_counter; static char delimiter[16]= DEFAULT_DELIMITER; static uint delimiter_length= 1; +static my_bool strip_comments=0; #ifdef HAVE_SMEM static char *shared_memory_base_name=0; @@ -757,6 +758,9 @@ {"show-warnings", OPT_SHOW_WARNINGS, "Show warnings after every statement.", (gptr*) &show_warnings, (gptr*) &show_warnings, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0}, + {"strip-comments", OPT_STRIP_COMMENTS, "Strip embedded comments", + (gptr*) &strip_comments, + (gptr*) &strip_comments, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0}, { 0, 0, 0, 0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0} }; @@ -1358,19 +1362,33 @@ else if (!*in_string && inchar == '/' && *(pos+1) == '*' && *(pos+2) != '!') { - pos++; *ml_comment= 1; - if (out != line) + if (strip_comments) + { + pos++; + if (out != line) + { + buffer.append(line,(uint) (out-line)); + out=line; + } + } + else { - buffer.append(line,(uint) (out-line)); - out=line; + *out++= (char) inchar; } } else if (*ml_comment && inchar == '*' && *(pos + 1) == '/') { - pos++; *ml_comment= 0; - need_space= 1; + if (strip_comments) + { + pos++; + need_space= 1; + } + else + { + *out++= (char) inchar; + } } else { // Add found char to buffer @@ -1379,7 +1397,7 @@ else if (!*ml_comment && !*in_string && (inchar == '\'' || inchar == '"' || inchar == '`')) *in_string= (char) inchar; - if (!*ml_comment) + if (!strip_comments || !*ml_comment) { if (need_space && !my_isspace(charset_info, (char)inchar)) { diff -ruN base/client/mysqldump.c mysql50gpl/client/mysqldump.c --- base/client/mysqldump.c 2007-03-05 11:21:22.000000000 -0800 +++ mysql50gpl/client/mysqldump.c 2007-04-13 12:24:06.767453000 -0700 @@ -96,6 +96,7 @@ opt_hex_blob=0, opt_order_by_primary=0, opt_ignore=0, opt_complete_insert= 0, opt_drop_database= 0, opt_dump_triggers= 0, opt_routines=0, opt_tz_utc=1; +static my_bool opt_lossless_fp; static ulong opt_max_allowed_packet, opt_net_buffer_length; static MYSQL mysql_connection,*mysql=0; static my_bool insert_pat_inited= 0, info_flag; @@ -414,6 +415,9 @@ (gptr*) &where, (gptr*) &where, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0}, {"xml", 'X', "Dump a database as well formed XML.", 0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0}, + {"lossless-fp", 'L', + "Convert double and float to decimal with extra precision so the reinserted values will be equal to the original values.", + (gptr*) &opt_lossless_fp, (gptr*) &opt_lossless_fp, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0} }; @@ -1142,6 +1146,96 @@ return buff; } +/* + getSelectList - returns the select list in select_buf. Columns with type + double and float are wrapped with the function call IEEE754_TO_STRING. + Other columns are not wrapped with the function call. This is only needed + when --lossless-fp has been set. + RETURN + 0 on success +*/ + +static uint getSelectList(char *table, char *select_buf) +{ + char query_buf[1024]; + const char *func = "IEEE754_TO_STRING"; + // Include space for '(' and ')' + const int func_len = sizeof(func) + 2; + char quoted_table_name[NAME_LEN*2+3]; + char* quoted_table_ptr; + + quoted_table_ptr = quote_name(table, quoted_table_name, 1); + + // Use this to determine the datatypes and names of the fetched columns. + sprintf(query_buf, "SELECT * from %s limit 0", quoted_table_ptr); + + if (verbose) + fprintf(stderr, "-- Building select list from %s\n", query_buf); + + if (!mysql_query(mysql, query_buf)) { + MYSQL_RES *query_result = mysql_store_result(mysql); + MYSQL_ROW row; + int field_ix; + int num_fields; + int select_len = 0; + int select_ix = 0; + + if (!query_result) { + fprintf(stderr, + "-- Cannot get column types for table %s, mysql_store_result returns NULL: %s", + table, mysql_error(mysql)); + mysql_free_result(query_result); + return 1; + } + if (mysql_errno(mysql)) { + fprintf(stderr, + "-- Cannot get column types for table %s, error in mysql_store_result: %s", + table, mysql_error(mysql)); + mysql_free_result(query_result); + return 1; + } + num_fields = mysql_num_fields(query_result); + if (num_fields <= 0) { + fprintf(stderr, + "-- Cannot get column types for table %s, no fields fetched", + table); + mysql_free_result(query_result); + return 1; + } + + // Determine the size of the select list. + for (field_ix = 0; field_ix < num_fields; ++field_ix) { + MYSQL_FIELD *field = mysql_fetch_field_direct(query_result, field_ix); + char quoted_name[NAME_LEN*2+3]; + char *name = quote_name(field->name, quoted_name, 0); + select_len += strlen(name) + 2; + if (field->type == FIELD_TYPE_FLOAT || field->type == FIELD_TYPE_DOUBLE) + select_len += func_len; + } + + // Generate the select list. + for (field_ix = 0; field_ix < num_fields; ++field_ix) { + MYSQL_FIELD *field = mysql_fetch_field_direct(query_result, field_ix); + char quoted_name[NAME_LEN*2+3]; + char *name = quote_name(field->name, quoted_name, 0); + if (field->type == FIELD_TYPE_FLOAT || field->type == FIELD_TYPE_DOUBLE) + select_ix += sprintf(select_buf + select_ix, "%s(%s)", func, name); + else + select_ix += sprintf(select_buf + select_ix, "%s", name); + if (field_ix < (num_fields - 1)) + select_ix += sprintf(select_buf + select_ix, ", "); + } + + mysql_free_result(query_result); + + if (verbose) + fprintf(stderr, "The select list for %s is %s", table, select_buf); + return 0; + } else { + fprintf(stderr, "Metadata query for %s failed: %s", table, mysql_error(mysql)); + return 1; + } +} /* Quote and print a string. @@ -2190,6 +2284,7 @@ MYSQL_RES *res; MYSQL_FIELD *field; MYSQL_ROW row; + char select_list[QUERY_LENGTH]; DBUG_ENTER("dump_table"); /* @@ -2236,6 +2331,11 @@ result_table= quote_name(table,table_buff, 1); opt_quoted_table= quote_name(table, table_buff2, 0); + if (opt_lossless_fp) { + if (getSelectList(table, select_list)) + exit(EX_MYSQLERR); + } + verbose_msg("-- Sending SELECT query...\n"); if (path) { @@ -2246,9 +2346,15 @@ my_delete(filename, MYF(0)); /* 'INTO OUTFILE' doesn't work, if filename wasn't deleted */ to_unix_path(filename); - my_snprintf(query, QUERY_LENGTH, - "SELECT /*!40001 SQL_NO_CACHE */ * INTO OUTFILE '%s'", - filename); + if (!opt_lossless_fp) { + my_snprintf(query, QUERY_LENGTH, + "SELECT /*!40001 SQL_NO_CACHE */ * INTO OUTFILE '%s'", + filename); + } else { + my_snprintf(query, QUERY_LENGTH, + "SELECT /*!40001 SQL_NO_CACHE */ %s INTO OUTFILE '%s'", + select_list, filename); + } end= strend(query); if (fields_terminated || enclosed || opt_enclosed || escaped) @@ -2288,9 +2394,15 @@ result_table); check_io(md_result_file); } - my_snprintf(query, QUERY_LENGTH, - "SELECT /*!40001 SQL_NO_CACHE */ * FROM %s", - result_table); + if (!opt_lossless_fp) { + my_snprintf(query, QUERY_LENGTH, + "SELECT /*!40001 SQL_NO_CACHE */ * FROM %s", + result_table); + } else { + my_snprintf(query, QUERY_LENGTH, + "SELECT /*!40001 SQL_NO_CACHE */ %s FROM %s", + select_list, result_table); + } if (where || order_by) { query= alloc_query_str((ulong) (strlen(query) + 1 + diff -ruN base/configure mysql50gpl/configure --- base/configure 2007-03-05 11:23:27.000000000 -0800 +++ mysql50gpl/configure 2007-04-20 08:16:59.236113000 -0700 @@ -25751,8 +25751,8 @@ # Some system specific hacks # -MAX_C_OPTIMIZE="-O3" -MAX_CXX_OPTIMIZE="-O3" +MAX_C_OPTIMIZE="-O2" +MAX_CXX_OPTIMIZE="-O2" ndb_cxxflags_fix= case $SYSTEM_TYPE-$MACHINE_TYPE-$ac_cv_c_compiler_gnu in diff -ruN base/configure.in mysql50gpl/configure.in --- base/configure.in 2007-03-05 11:21:13.000000000 -0800 +++ mysql50gpl/configure.in 2007-04-14 15:08:39.867803000 -0700 @@ -986,8 +986,8 @@ # Some system specific hacks # -MAX_C_OPTIMIZE="-O3" -MAX_CXX_OPTIMIZE="-O3" +MAX_C_OPTIMIZE="-O2" +MAX_CXX_OPTIMIZE="-O2" ndb_cxxflags_fix= case $SYSTEM_TYPE-$MACHINE_TYPE-$ac_cv_prog_gcc in diff -ruN base/include/mysql_com.h mysql50gpl/include/mysql_com.h --- base/include/mysql_com.h 2007-03-05 11:21:05.000000000 -0800 +++ mysql50gpl/include/mysql_com.h 2007-04-13 13:53:33.470551000 -0700 @@ -106,6 +106,8 @@ thread */ #define REFRESH_MASTER 128 /* Remove all bin logs in the index and truncate the index */ +#define REFRESH_TABLE_STATS 256 /* Refresh table stats hash table */ +#define REFRESH_INDEX_STATS 512 /* Refresh index stats hash table */ /* The following can't be set with mysql_refresh() */ #define REFRESH_READ_LOCK 16384 /* Lock tables for read */ diff -ruN base/innobase/btr/btr0cur.c mysql50gpl/innobase/btr/btr0cur.c --- base/innobase/btr/btr0cur.c 2007-03-05 11:21:12.000000000 -0800 +++ mysql50gpl/innobase/btr/btr0cur.c 2007-04-13 12:24:12.610277000 -0700 @@ -54,7 +54,7 @@ /* When estimating number of different kay values in an index sample this many index pages */ -#define BTR_KEY_VAL_ESTIMATE_N_PAGES 8 +static ulong btr_key_val_estimate_n_pages = 8; /* The structure of a BLOB part header */ /*--------------------------------------*/ @@ -2839,6 +2839,7 @@ ulint i; ulint j; ulint add_on; + const ulint n_sample_pages = btr_key_val_estimate_n_pages; mtr_t mtr; mem_heap_t* heap = NULL; ulint offsets_rec_[REC_OFFS_NORMAL_SIZE]; @@ -2857,7 +2858,7 @@ /* We sample some pages in the index to get an estimate */ - for (i = 0; i < BTR_KEY_VAL_ESTIMATE_N_PAGES; i++) { + for (i = 0; i < n_sample_pages; i++) { rec_t* supremum; mtr_start(&mtr); @@ -2947,7 +2948,7 @@ } /* If we saw k borders between different key values on - BTR_KEY_VAL_ESTIMATE_N_PAGES leaf pages, we can estimate how many + n_sample_pages leaf pages, we can estimate how many there will be in index->stat_n_leaf_pages */ /* We must take into account that our sample actually represents @@ -2958,25 +2959,25 @@ index->stat_n_diff_key_vals[j] = (n_diff[j] * (ib_longlong)index->stat_n_leaf_pages - + BTR_KEY_VAL_ESTIMATE_N_PAGES - 1 + + n_sample_pages - 1 + total_external_size + not_empty_flag) - / (BTR_KEY_VAL_ESTIMATE_N_PAGES + / (n_sample_pages + total_external_size); /* If the tree is small, smaller than < - 10 * BTR_KEY_VAL_ESTIMATE_N_PAGES + total_external_size, then + 10 * n_sample_pages + total_external_size, then the above estimate is ok. For bigger trees it is common that we do not see any borders between key values in the few pages - we pick. But still there may be BTR_KEY_VAL_ESTIMATE_N_PAGES + we pick. But still there may be n_sample_pages different key values, or even more. Let us try to approximate that: */ add_on = index->stat_n_leaf_pages / - (10 * (BTR_KEY_VAL_ESTIMATE_N_PAGES + total_external_size)); + (10 * (n_sample_pages + total_external_size)); - if (add_on > BTR_KEY_VAL_ESTIMATE_N_PAGES) { - add_on = BTR_KEY_VAL_ESTIMATE_N_PAGES; + if (add_on > n_sample_pages) { + add_on = n_sample_pages; } index->stat_n_diff_key_vals[j] += add_on; diff -ruN base/innobase/buf/buf0flu.c mysql50gpl/innobase/buf/buf0flu.c --- base/innobase/buf/buf0flu.c 2007-03-05 11:21:21.000000000 -0800 +++ mysql50gpl/innobase/buf/buf0flu.c 2007-04-13 12:24:12.711288000 -0700 @@ -341,7 +341,7 @@ /* Now flush the doublewrite buffer data to disk */ - fil_flush(TRX_SYS_SPACE); + fil_flush(TRX_SYS_SPACE, FLUSH_FROM_DIRTY_BUFFER); /* We know that the writes have been flushed to disk now and in recovery we will find them in the doublewrite buffer @@ -381,7 +381,7 @@ /* Now we flush the data to disk (for example, with fsync) */ - fil_flush_file_spaces(FIL_TABLESPACE); + fil_flush_file_spaces(FIL_TABLESPACE, FLUSH_FROM_DIRTY_BUFFER); /* We can now reuse the doublewrite memory buffer: */ @@ -501,7 +501,8 @@ } #else /* Force the log to the disk before writing the modified block */ - log_write_up_to(block->newest_modification, LOG_WAIT_ALL_GROUPS, TRUE); + log_write_up_to(block->newest_modification, LOG_WAIT_ALL_GROUPS, TRUE, + LOG_WRITE_FROM_DIRTY_BUFFER); #endif buf_flush_init_for_writing(block->frame, block->newest_modification, block->space, block->offset); diff -ruN base/innobase/fil/fil0fil.c mysql50gpl/innobase/fil/fil0fil.c --- base/innobase/fil/fil0fil.c 2007-03-05 11:21:23.000000000 -0800 +++ mysql50gpl/innobase/fil/fil0fil.c 2007-04-13 12:24:13.061293000 -0700 @@ -245,6 +245,7 @@ request */ UT_LIST_BASE_NODE_T(fil_space_t) space_list; /* list of all file spaces */ + ulint flush_types[FLUSH_FROM_NUMBER];/* calls to fil_flush by caller */ }; /* The tablespace memory cache. This variable is NULL before the module is @@ -849,7 +850,7 @@ /* Flush tablespaces so that we can close modified files in the LRU list */ - fil_flush_file_spaces(FIL_TABLESPACE); + fil_flush_file_spaces(FIL_TABLESPACE, FLUSH_FROM_OTHER); count++; @@ -1309,7 +1310,10 @@ UT_LIST_INIT(system->unflushed_spaces); UT_LIST_INIT(system->space_list); - + { + int x; + for (x = 0; x < FLUSH_FROM_NUMBER; ++x) system->flush_types[x] = 0; + } return(system); } @@ -1440,6 +1444,23 @@ } /******************************************************************** +Prints internal counters */ + +void +fil_print(FILE *file) +{ + fprintf(file, + "fsync callers: %lu buffer pool, %lu other, %lu checkpoint, " + "%lu log aio, %lu log sync, %lu archive\n", + fil_system->flush_types[FLUSH_FROM_DIRTY_BUFFER], + fil_system->flush_types[FLUSH_FROM_OTHER], + fil_system->flush_types[FLUSH_FROM_CHECKPOINT], + fil_system->flush_types[FLUSH_FROM_LOG_IO_COMPLETE], + fil_system->flush_types[FLUSH_FROM_LOG_WRITE_UP_TO], + fil_system->flush_types[FLUSH_FROM_ARCHIVE]); +} + +/******************************************************************** Initializes the ibuf data structure for space 0 == the system tablespace. This can be called after the file space headers have been created and the dictionary system has been initialized. */ @@ -2256,7 +2277,7 @@ os_thread_sleep(20000); - fil_flush(id); + fil_flush(id, FLUSH_FROM_OTHER); goto retry; @@ -3574,7 +3595,7 @@ size_after_extend, *actual_size); */ mutex_exit(&(system->mutex)); - fil_flush(space_id); + fil_flush(space_id, FLUSH_FROM_OTHER); return(success); } @@ -4166,8 +4187,9 @@ void fil_flush( /*======*/ - ulint space_id) /* in: file space id (this can be a group of + ulint space_id, /* in: file space id (this can be a group of log files or a tablespace of the database) */ + flush_from_type flush_type)/* in: identifies the caller */ { fil_system_t* system = fil_system; fil_space_t* space; @@ -4176,7 +4198,7 @@ ib_longlong old_mod_counter; mutex_enter(&(system->mutex)); - + system->flush_types[flush_type]++; HASH_SEARCH(hash, system->spaces, space_id, space, space->id == space_id); if (!space || space->is_being_deleted) { @@ -4281,7 +4303,8 @@ void fil_flush_file_spaces( /*==================*/ - ulint purpose) /* in: FIL_TABLESPACE, FIL_LOG */ + ulint purpose, /* in: FIL_TABLESPACE, FIL_LOG */ + flush_from_type flush_type)/* in: identifies the caller */ { fil_system_t* system = fil_system; fil_space_t* space; @@ -4322,7 +4345,7 @@ a non-existing space id. */ for (i = 0; i < n_space_ids; i++) { - fil_flush(space_ids[i]); + fil_flush(space_ids[i], flush_type); } mem_free(space_ids); diff -ruN base/innobase/include/fil0fil.h mysql50gpl/innobase/include/fil0fil.h --- base/innobase/include/fil0fil.h 2007-03-05 11:21:21.000000000 -0800 +++ mysql50gpl/innobase/include/fil0fil.h 2007-04-13 12:24:13.729247000 -0700 @@ -197,6 +197,13 @@ fil_init( /*=====*/ ulint max_n_open); /* in: max number of open files */ +/******************************************************************** + * Prints internal counters. */ + +void +fil_print( + /*=====*/ + FILE* file); /* in: output stream */ /*********************************************************************** Opens all log files and system tablespace data files. They stay open until the database server shutdown. This should be called at a server startup after the @@ -621,14 +628,26 @@ ulint segment); /* in: the number of the segment in the aio array to wait for */ /************************************************************************** +Identifies the caller of fil_flush. */ +typedef enum { + FLUSH_FROM_DIRTY_BUFFER, + FLUSH_FROM_OTHER, + FLUSH_FROM_CHECKPOINT, + FLUSH_FROM_LOG_IO_COMPLETE, + FLUSH_FROM_LOG_WRITE_UP_TO, + FLUSH_FROM_ARCHIVE, + FLUSH_FROM_NUMBER +} flush_from_type; +/************************************************************************** Flushes to disk possible writes cached by the OS. If the space does not exist or is being dropped, does not do anything. */ void fil_flush( /*======*/ - ulint space_id); /* in: file space id (this can be a group of + ulint space_id, /* in: file space id (this can be a group of log files or a tablespace of the database) */ + flush_from_type flush_type);/* in: identifies the caller */ /************************************************************************** Flushes to disk writes in file spaces of the given type possibly cached by the OS. */ @@ -636,7 +655,8 @@ void fil_flush_file_spaces( /*==================*/ - ulint purpose); /* in: FIL_TABLESPACE, FIL_LOG */ + ulint purpose, /* in: FIL_TABLESPACE, FIL_LOG */ + flush_from_type flush_type);/* in: identifies the caller */ /********************************************************************** Checks the consistency of the tablespace cache. */ diff -ruN base/innobase/include/log0log.h mysql50gpl/innobase/include/log0log.h --- base/innobase/include/log0log.h 2007-03-05 11:21:23.000000000 -0800 +++ mysql50gpl/innobase/include/log0log.h 2007-04-13 12:24:13.922249000 -0700 @@ -146,6 +146,22 @@ log_io_complete( /*============*/ log_group_t* group); /* in: log group */ + +/********************************************************** +Describes the caller of log_write_up_to. */ + +typedef enum { + LOG_WRITE_FROM_DIRTY_BUFFER, + LOG_WRITE_FROM_BACKGROUND_SYNC, + LOG_WRITE_FROM_BACKGROUND_ASYNC, + LOG_WRITE_FROM_INTERNAL, + LOG_WRITE_FROM_CHECKPOINT_SYNC, + LOG_WRITE_FROM_CHECKPOINT_ASYNC, + LOG_WRITE_FROM_LOG_ARCHIVE, + LOG_WRITE_FROM_COMMIT_SYNC, + LOG_WRITE_FROM_COMMIT_ASYNC, + LOG_WRITE_FROM_NUMBER +} log_sync_type; /********************************************************** This function is called, e.g., when a transaction wants to commit. It checks that the log has been written to the log file up to the last log entry written @@ -159,9 +175,9 @@ be written, ut_dulint_max if not specified */ ulint wait, /* in: LOG_NO_WAIT, LOG_WAIT_ONE_GROUP, or LOG_WAIT_ALL_GROUPS */ - ibool flush_to_disk); - /* in: TRUE if we want the written log also to be - flushed to disk */ + ibool flush_to_disk, + /* in: TRUE if we want the written log also to be flushed to disk */ + log_sync_type caller);/* in: identifies the caller */ /******************************************************************** Does a syncronous flush of the log buffer to disk. */ @@ -169,6 +185,13 @@ log_buffer_flush_to_disk(void); /*==========================*/ /******************************************************************** +Flushes the log buffer. Forces it to disk depending on the value of +the configuration parameter innodb_flush_log_at_trx_commit. */ + +void +log_buffer_flush_maybe_sync(void); +/*==========================*/ +/******************************************************************** Advances the smallest lsn for which there are unflushed dirty blocks in the buffer pool and also may make a new checkpoint. NOTE: this function may only be called if the calling thread owns no synchronization objects! */ @@ -744,6 +767,12 @@ AND flushed to disk */ ulint n_pending_writes;/* number of currently pending flushes or writes */ + ulint log_sync_callers[LOG_WRITE_FROM_NUMBER]; + /* counts calls to log_write_up_to */ + ulint log_sync_syncers[LOG_WRITE_FROM_NUMBER]; + /* counts calls to log_write_up_to when log file is sync'd */ + ulint n_syncs; /* number of fsyncs done for log file */ + ulint n_checkpoints; /* number of calls to log_checkpoint */ /* NOTE on the 'flush' in names of the fields below: starting from 4.0.14, we separate the write of the log file and the actual fsync() or other method to flush it to disk. The names below shhould really diff -ruN base/innobase/include/os0file.h mysql50gpl/innobase/include/os0file.h --- base/innobase/include/os0file.h 2007-03-05 11:21:03.000000000 -0800 +++ mysql50gpl/innobase/include/os0file.h 2007-04-13 12:24:16.487203000 -0700 @@ -531,21 +531,16 @@ FALSE otherwise */ const char* path); /* in: path name */ /**************************************************************************** -Initializes the asynchronous io system. Creates separate aio array for -non-ibuf read and write, a third aio array for the ibuf i/o, with just one -segment, two aio arrays for log reads and writes with one segment, and a -synchronous aio array of the specified size. The combined number of segments -in the three first aio arrays is the parameter n_segments given to the -function. The caller must create an i/o handler thread for each segment in -the four first arrays, but not for the sync aio array. */ +Initializes the asynchronous io system. */ -void +ulint os_aio_init( /*========*/ - ulint n, /* in: maximum number of pending aio operations - allowed; n must be divisible by n_segments */ - ulint n_segments, /* in: combined number of segments in the four - first aio arrays; must be >= 4 */ + /* out: number of AIO handler threads */ + ulint ios_per_array, /* in: maximum number of pending aio operations + allowed per IO array */ + ulint n_read_threads, /* in: number of read threads */ + ulint n_write_threads, /* in: number of write threads */ ulint n_slots_sync); /* in: number of slots in the sync aio array */ /*********************************************************************** Requests an asynchronous i/o operation. */ diff -ruN base/innobase/include/srv0srv.h mysql50gpl/innobase/include/srv0srv.h --- base/innobase/include/srv0srv.h 2007-03-05 11:21:39.000000000 -0800 +++ mysql50gpl/innobase/include/srv0srv.h 2007-04-13 12:24:16.853173000 -0700 @@ -87,6 +87,8 @@ extern ulint srv_lock_table_size; extern ulint srv_n_file_io_threads; +extern ulint srv_n_read_io_threads; +extern ulint srv_n_write_io_threads; #ifdef UNIV_LOG_ARCHIVE extern ibool srv_log_archive_on; @@ -580,4 +582,3 @@ extern ulint srv_n_threads_active[]; #endif - diff -ruN base/innobase/include/trx0sys.h mysql50gpl/innobase/include/trx0sys.h --- base/innobase/include/trx0sys.h 2007-03-05 11:21:41.000000000 -0800 +++ mysql50gpl/innobase/include/trx0sys.h 2007-04-13 12:24:16.999166000 -0700 @@ -24,11 +24,14 @@ #include "fsp0fsp.h" #include "read0types.h" -/* In a MySQL replication slave, in crash recovery we store the master log -file name and position here. We have successfully got the updates to InnoDB + +/* In a MySQL replication slave, in crash recovery we have to store the relay +log file name and position here. We have successfully got the updates to InnoDB up to this position. If .._pos is -1, it means no crash recovery was needed, -or there was no master log position info inside InnoDB. */ +or there was no relay-log position info inside InnoDB. */ +extern char trx_sys_mysql_relay_log_name[]; +extern ib_longlong trx_sys_mysql_relay_log_pos; extern char trx_sys_mysql_master_log_name[]; extern ib_longlong trx_sys_mysql_master_log_pos; @@ -271,6 +274,21 @@ ulint field, /* in: offset of the MySQL log info field in the trx sys header */ mtr_t* mtr); /* in: mtr */ + +/********************************************************************* +In a MySQL replication slave updates the latest relay log and master +log position up to which replication has proceeded. */ +void +trx_sys_update_mysql_relay_offset( +/*===============================*/ + const char* relaylog_name, /* in: relay-log file name */ + ib_longlong relaylog_pos, /* in: position in relay-log file */ + const char* masterlog_name, /* in: relay-log file name */ + ib_longlong masterlog_pos, /* in: position in relay-log file */ + ulint field, /* in: offset of the MySQL log info field in + the trx sys header */ + mtr_t* mtr); /* in: mtr */ + /********************************************************************* Prints to stderr the MySQL binlog offset info in the trx system header if the magic number shows it valid. */ @@ -289,12 +307,14 @@ byte* page); /* in: buffer containing the trx system header page, i.e., page number TRX_SYS_PAGE_NO in the tablespace */ #endif /* UNIV_HOTBACKUP */ + /********************************************************************* -Prints to stderr the MySQL master log offset info in the trx system header if -the magic number shows it valid. */ +Prints to stderr the MySQL relay-log/master-log offset info in the trx system +header if the magic number shows it valid. */ void -trx_sys_print_mysql_master_log_pos(void); +trx_sys_print_mysql_relay_log_pos(ibool print_msg); + /*====================================*/ /* The automatically created system rollback segment has this id */ @@ -335,7 +355,55 @@ /* The offset of the MySQL replication info in the trx system header; this contains the same fields as TRX_SYS_MYSQL_LOG_INFO below */ -#define TRX_SYS_MYSQL_MASTER_LOG_INFO (UNIV_PAGE_SIZE - 2000) +#define TRX_SYS_MYSQL_RELAY_LOG_INFO (UNIV_PAGE_SIZE - 2000) + +#define TRX_SYS_MYSQL_RELAY_INFO (UNIV_PAGE_SIZE - 2000) + +/* We change the layout of writing relay-log information a little: + * offset 0: magic number + * offset 4: 0xfffffffe magic number indicating the format that + * contains both relay-log and master-log information + * (we need the four bytes to indicate the difference to the + * old innodb relay-log only format because we want to + * keep the first magic number unchanged). + * offset 8: relay-log position high 4 byte + * offset 12: relay-log position low 4 byte + * offset 16: master-log position high 4 byte + * offset 20: master-log position low 4 byte + * offset 24: relay-log filename + * offset 274: master-log filename + * Each filename's length is limited to 250 bytes, which should be more than + * enough for most applications. We will fail during MySQL replication if + * the filename is too long so that users can adjust. + */ +#define TRX_SYS_MYSQL_RELAYLOG_MAGIC_N_FLD 0 +#define TRX_SYS_MYSQL_RELAYMASTER_MAGIC_NUM 0xfffffffe +#define TRX_SYS_MYSQL_RELAYMASTER_MAGIC_OFF 4 /* the magic number indicating + both relay-log and master-log + information */ +#define TRX_SYS_MYSQL_RELAYLOG_POS_HIGH 8 /* high 4 bytes of the offset + within relay-log file */ +#define TRX_SYS_MYSQL_RELAYLOG_POS_LOW 12 /* low 4 bytes of the offset + within relay-log file */ +#define TRX_SYS_MYSQL_MASTERLOG_POS_HIGH 16 /* high 4 bytes of the offset + within master-log file */ +#define TRX_SYS_MYSQL_MASTERLOG_POS_LOW 20 /* low 4 bytes of the offset + within relay-log file */ +#define TRX_SYS_MYSQL_RELAYLOG_NAME_OFF 24 /* relay-log filename */ +#define TRX_SYS_MYSQL_MASTERLOG_NAME_OFF 274 /* master-log filename */ + +#define TRX_SYS_MYSQL_RELAY_NAME_LEN 250 +/* All relay-log related information should end at offset 520 */ + + +#define TRX_SYS_MYSQL_LOG_NAME_LEN 512 + +#define TRX_SYS_MYSQL_LOG_OFFSET_HIGH 4 /* high 4 bytes of the offset + within that file */ +#define TRX_SYS_MYSQL_LOG_OFFSET_LOW 8 /* low 4 bytes of the offset + within that file */ +#define TRX_SYS_MYSQL_LOG_NAME 12 /* MySQL log file name */ + /* The offset of the MySQL binlog offset info in the trx system header */ #define TRX_SYS_MYSQL_LOG_INFO (UNIV_PAGE_SIZE - 1000) diff -ruN base/innobase/include/trx0trx.h mysql50gpl/innobase/include/trx0trx.h --- base/innobase/include/trx0trx.h 2007-03-05 11:21:39.000000000 -0800 +++ mysql50gpl/innobase/include/trx0trx.h 2007-04-13 12:24:17.024167000 -0700 @@ -668,6 +668,28 @@ /*------------------------------*/ char detailed_error[256]; /* detailed error message for last error, or empty. */ + + const char* mysql_relay_log_file_name; + /* if the database server is a MySQL + replication slave, we have here the + relay-log name up to which + replication has processed; otherwise + this is a pointer to a null + character */ + ib_longlong mysql_relay_log_pos; + /* if the database server is a MySQL + replication slave, this is the + position in the relay-log up to which + replication has processed */ + + ibool always_enter_innodb; + /* thread always enter innodb without + considering ticket limit; this is only + used for replication sql thread. */ + + ibool clear_replication_status; + /* we need to clear the replication + status stored in transaction log */ }; #define TRX_MAX_N_THREADS 32 /* maximum number of concurrent diff -ruN base/innobase/log/log0log.c mysql50gpl/innobase/log/log0log.c --- base/innobase/log/log0log.c 2007-03-05 11:21:40.000000000 -0800 +++ mysql50gpl/innobase/log/log0log.c 2007-04-13 12:24:17.300178000 -0700 @@ -782,6 +782,15 @@ log_sys->written_to_all_lsn = log_sys->lsn; log_sys->n_pending_writes = 0; + { + int x; + for (x = 0; x < LOG_WRITE_FROM_NUMBER; ++x) { + log_sys->log_sync_callers[x] = 0; + log_sys->log_sync_syncers[x] = 0; + } + } + log_sys->n_syncs = 0; + log_sys->n_checkpoints = 0; log_sys->no_flush_event = os_event_create(NULL); @@ -1066,7 +1075,7 @@ if (srv_unix_file_flush_method != SRV_UNIX_O_DSYNC && srv_unix_file_flush_method != SRV_UNIX_NOSYNC) { - fil_flush(group->space_id); + fil_flush(group->space_id, FLUSH_FROM_LOG_IO_COMPLETE); } #ifdef UNIV_DEBUG @@ -1088,7 +1097,7 @@ && srv_unix_file_flush_method != SRV_UNIX_NOSYNC && srv_flush_log_at_trx_commit != 2) { - fil_flush(group->space_id); + fil_flush(group->space_id, FLUSH_FROM_LOG_IO_COMPLETE); } mutex_enter(&(log_sys->mutex)); @@ -1303,9 +1312,10 @@ be written, ut_dulint_max if not specified */ ulint wait, /* in: LOG_NO_WAIT, LOG_WAIT_ONE_GROUP, or LOG_WAIT_ALL_GROUPS */ - ibool flush_to_disk) + ibool flush_to_disk, /* in: TRUE if we want the written log also to be flushed to disk */ + log_sync_type caller) /* in: identifies caller */ { log_group_t* group; ulint start_offset; @@ -1315,6 +1325,7 @@ ulint loop_count; ulint unlock; + log_sys->log_sync_callers[caller]++; if (recv_no_ibuf_operations) { /* Recovery is running and no operations on the log files are allowed yet (the variable name .._no_ibuf_.. is misleading) */ @@ -1465,13 +1476,17 @@ so we have also flushed to disk what we have written */ log_sys->flushed_to_disk_lsn = log_sys->write_lsn; + log_sys->n_syncs++; + log_sys->log_sync_syncers[caller]++; } else if (flush_to_disk) { group = UT_LIST_GET_FIRST(log_sys->log_groups); - fil_flush(group->space_id); + fil_flush(group->space_id, FLUSH_FROM_LOG_WRITE_UP_TO); log_sys->flushed_to_disk_lsn = log_sys->write_lsn; + log_sys->n_syncs++; + log_sys->log_sync_syncers[caller]++; } mutex_enter(&(log_sys->mutex)); @@ -1520,10 +1535,34 @@ mutex_exit(&(log_sys->mutex)); - log_write_up_to(lsn, LOG_WAIT_ALL_GROUPS, TRUE); + log_write_up_to(lsn, LOG_WAIT_ALL_GROUPS, TRUE, + LOG_WRITE_FROM_BACKGROUND_SYNC); } /******************************************************************** +Flush the log buffer. Force it to disk depending on the value of +innodb_flush_log_at_trx_commit. */ + +void +log_buffer_flush_maybe_sync(void) +/*==========================*/ +{ + dulint lsn; + + mutex_enter(&(log_sys->mutex)); + + lsn = log_sys->lsn; + + mutex_exit(&(log_sys->mutex)); + + /* Force log buffer to disk when innodb_flush_log_at_trx_commit = 1. */ + log_write_up_to(lsn, LOG_WAIT_ALL_GROUPS, + srv_flush_log_at_trx_commit == 1 ? TRUE : FALSE, + srv_flush_log_at_trx_commit == 1 ? + LOG_WRITE_FROM_BACKGROUND_SYNC : + LOG_WRITE_FROM_BACKGROUND_ASYNC); +} +/******************************************************************** Tries to establish a big enough margin of free space in the log buffer, such that a new log entry can be catenated without an immediate need for a flush. */ static @@ -1551,7 +1590,7 @@ mutex_exit(&(log->mutex)); if (do_flush) { - log_write_up_to(lsn, LOG_NO_WAIT, FALSE); + log_write_up_to(lsn, LOG_NO_WAIT, FALSE, LOG_WRITE_FROM_INTERNAL); } } @@ -1921,11 +1960,11 @@ } if (srv_unix_file_flush_method != SRV_UNIX_NOSYNC) { - fil_flush_file_spaces(FIL_TABLESPACE); + fil_flush_file_spaces(FIL_TABLESPACE, FLUSH_FROM_CHECKPOINT); } mutex_enter(&(log_sys->mutex)); - + log_sys->n_checkpoints++; oldest_lsn = log_buf_pool_get_oldest_modification(); mutex_exit(&(log_sys->mutex)); @@ -1938,7 +1977,8 @@ write-ahead-logging algorithm ensures that the log has been flushed up to oldest_lsn. */ - log_write_up_to(oldest_lsn, LOG_WAIT_ALL_GROUPS, TRUE); + log_write_up_to(oldest_lsn, LOG_WAIT_ALL_GROUPS, TRUE, + LOG_WRITE_FROM_CHECKPOINT_SYNC); mutex_enter(&(log_sys->mutex)); @@ -2566,7 +2606,7 @@ mutex_exit(&(log_sys->mutex)); - fil_flush(group->archive_space_id); + fil_flush(group->archive_space_id, FLUSH_FROM_ARCHIVE); mutex_enter(&(log_sys->mutex)); @@ -2647,7 +2687,8 @@ mutex_exit(&(log_sys->mutex)); - log_write_up_to(limit_lsn, LOG_WAIT_ALL_GROUPS, TRUE); + log_write_up_to(limit_lsn, LOG_WAIT_ALL_GROUPS, TRUE, + LOG_WRITE_FROM_LOG_ARCHIVE); calc_new_limit = FALSE; @@ -3171,8 +3212,8 @@ } mutex_exit(&kernel_mutex); - fil_flush_file_spaces(FIL_TABLESPACE); - fil_flush_file_spaces(FIL_LOG); + fil_flush_file_spaces(FIL_TABLESPACE, FLUSH_FROM_OTHER); + fil_flush_file_spaces(FIL_LOG, FLUSH_FROM_OTHER); /* The call fil_write_flushed_lsn_to_data_files() will pass the buffer pool: therefore it is essential that the buffer pool has been @@ -3219,7 +3260,7 @@ fil_write_flushed_lsn_to_data_files(lsn, arch_log_no); - fil_flush_file_spaces(FIL_TABLESPACE); + fil_flush_file_spaces(FIL_TABLESPACE, FLUSH_FROM_OTHER); fil_close_all_files(); @@ -3332,16 +3373,46 @@ time_elapsed = 0.001 + difftime(current_time, log_sys->last_printout_time); fprintf(file, - "%lu pending log writes, %lu pending chkp writes\n" - "%lu log i/o's done, %.2f log i/o's/second\n", - (ulong) log_sys->n_pending_writes, - (ulong) log_sys->n_pending_checkpoint_writes, - (ulong) log_sys->n_log_ios, - ((log_sys->n_log_ios - log_sys->n_log_ios_old) / time_elapsed)); + "%lu pending log writes, %lu pending chkp writes\n" + "%lu log i/o's done, %.2f log i/o's/second, %lu syncs, %lu checkpoints\n", + (ulong) log_sys->n_pending_writes, + (ulong) log_sys->n_pending_checkpoint_writes, + (ulong) log_sys->n_log_ios, + (log_sys->n_log_ios - log_sys->n_log_ios_old) / time_elapsed, + log_sys->n_syncs, + log_sys->n_checkpoints); log_sys->n_log_ios_old = log_sys->n_log_ios; log_sys->last_printout_time = current_time; + fprintf(file, + "log sync callers: %lu buffer pool, background %lu sync and %lu async, " + "%lu internal, checkpoint %lu sync and %lu async, %lu archive, " + "commit %lu sync and %lu async\n", + log_sys->log_sync_callers[LOG_WRITE_FROM_DIRTY_BUFFER], + log_sys->log_sync_callers[LOG_WRITE_FROM_BACKGROUND_SYNC], + log_sys->log_sync_callers[LOG_WRITE_FROM_BACKGROUND_ASYNC], + log_sys->log_sync_callers[LOG_WRITE_FROM_INTERNAL], + log_sys->log_sync_callers[LOG_WRITE_FROM_CHECKPOINT_SYNC], + log_sys->log_sync_callers[LOG_WRITE_FROM_CHECKPOINT_ASYNC], + log_sys->log_sync_callers[LOG_WRITE_FROM_LOG_ARCHIVE], + log_sys->log_sync_callers[LOG_WRITE_FROM_COMMIT_SYNC], + log_sys->log_sync_callers[LOG_WRITE_FROM_COMMIT_ASYNC]); + + fprintf(file, + "log sync syncers: %lu buffer pool, background %lu sync and %lu async, " + "%lu internal, checkpoint %lu sync and %lu async, %lu archive, " + "commit %lu sync and %lu async\n", + log_sys->log_sync_syncers[LOG_WRITE_FROM_DIRTY_BUFFER], + log_sys->log_sync_syncers[LOG_WRITE_FROM_BACKGROUND_SYNC], + log_sys->log_sync_syncers[LOG_WRITE_FROM_BACKGROUND_ASYNC], + log_sys->log_sync_syncers[LOG_WRITE_FROM_INTERNAL], + log_sys->log_sync_syncers[LOG_WRITE_FROM_CHECKPOINT_SYNC], + log_sys->log_sync_syncers[LOG_WRITE_FROM_CHECKPOINT_ASYNC], + log_sys->log_sync_syncers[LOG_WRITE_FROM_LOG_ARCHIVE], + log_sys->log_sync_syncers[LOG_WRITE_FROM_COMMIT_SYNC], + log_sys->log_sync_syncers[LOG_WRITE_FROM_COMMIT_ASYNC]); + mutex_exit(&(log_sys->mutex)); } diff -ruN base/innobase/log/log0recv.c mysql50gpl/innobase/log/log0recv.c --- base/innobase/log/log0recv.c 2007-03-05 11:21:04.000000000 -0800 +++ mysql50gpl/innobase/log/log0recv.c 2007-04-13 12:24:17.321182000 -0700 @@ -2923,6 +2923,8 @@ return(DB_SUCCESS); } +extern my_bool rpl_transaction_enabled; + /************************************************************ Completes recovery from a checkpoint. */ @@ -2947,8 +2949,17 @@ } #endif /* UNIV_DEBUG */ + if (rpl_transaction_enabled || recv_needed_recovery) { + + trx_sys_print_mysql_relay_log_pos(TRUE); + if (recv_needed_recovery) { + fprintf(stderr, + " InnoDB: recv_recovery_from_checkpoint_finish()" + " - recovery is needed.\n"); + } + } + if (recv_needed_recovery) { - trx_sys_print_mysql_master_log_pos(); trx_sys_print_mysql_binlog_offset(); } diff -ruN base/innobase/os/os0file.c mysql50gpl/innobase/os/os0file.c --- base/innobase/os/os0file.c 2007-03-05 11:21:03.000000000 -0800 +++ mysql50gpl/innobase/os/os0file.c 2007-04-13 12:24:17.566162000 -0700 @@ -22,6 +22,8 @@ #include #endif /* UNIV_HOTBACKUP */ +extern long innobase_max_merged_io; + #undef HAVE_FDATASYNC #ifdef POSIX_ASYNC_IO @@ -64,6 +66,28 @@ ibool os_aio_print_debug = FALSE; +/* State for the state of an IO request in simulated AIO. + Protocol for simulated aio: + client requests IO: find slot with reserved = FALSE. Add entry with + status = OS_AIO_NOT_ISSUED. + IO thread wakes: find adjacent slots with reserved = TRUE and status = + OS_AIO_NOT_ISSUED. Change status for slots to + OS_AIO_ISSUED. + IO operation completes: set status for slots to OS_AIO_DONE. set status + for the first slot to OS_AIO_CLAIMED and return + result for that slot. + When there are multiple read and write threads, they all compete to execute + the requests in the array (os_aio_array_t). This avoids the need to load + balance requests at the time the request is made at the cost of waking all + threads when a request is available. +*/ +typedef enum { + OS_AIO_NOT_ISSUED, /* Available to be processed by an IO thread. */ + OS_AIO_ISSUED, /* Being processed by an IO thread. */ + OS_AIO_DONE, /* Request processed. */ + OS_AIO_CLAIMED /* Result being returned to client. */ +} os_aio_status; + /* The aio array slot structure */ typedef struct os_aio_slot_struct os_aio_slot_t; @@ -72,6 +96,8 @@ ulint pos; /* index of the slot in the aio array */ ibool reserved; /* TRUE if this slot is reserved */ + os_aio_status status; /* Status for current request. Valid when reserved + is TRUE. Used only in simulated aio. */ time_t reservation_time;/* time when reserved */ ulint len; /* length of the block to read or write */ @@ -82,11 +108,6 @@ ulint offset_high; /* 32 high bits of file offset */ os_file_t file; /* file where to read or write */ const char* name; /* file name or path */ - ibool io_already_done;/* used only in simulated aio: - TRUE if the physical i/o already - made and only the slot message - needs to be passed to the caller - of os_aio_simulated_handle */ fil_node_t* message1; /* message which is given by the */ void* message2; /* the requester of an aio operation and which can be used to identify @@ -116,9 +137,6 @@ in this array */ ulint n_slots; /* Total number of slots in the aio array. This must be divisible by n_threads. */ - ulint n_segments;/* Number of segments in the aio array of - pending aio requests. A thread can wait - separately for any one of the segments. */ ulint n_reserved;/* Number of reserved slots in the aio array outside the ibuf segment */ os_aio_slot_t* slots; /* Pointer to the slots in the array */ @@ -135,6 +153,17 @@ /* Array of events used in simulated aio */ os_event_t* os_aio_segment_wait_events = NULL; +/* Number of threads for reading and writing. */ +ulint os_aio_read_threads = 0; +ulint os_aio_write_threads = 0; + +/* Number for the first global segment for reading. */ +const ulint os_aio_first_read_segment = 2; + +/* Number for the first global segment for writing. Set to +2 + os_aio_read_write_threads. */ +ulint os_aio_first_write_segment = 0; + /* The aio arrays for non-ibuf i/o and ibuf i/o, as well as sync aio. These are NULL when the module has not yet been initialized. */ static os_aio_array_t* os_aio_read_array = NULL; @@ -143,10 +172,35 @@ static os_aio_array_t* os_aio_log_array = NULL; static os_aio_array_t* os_aio_sync_array = NULL; +/* Per thread buffer used for merged IO requests. Used by +os_aio_simulated_handle so that a buffer doesn't have to be allocated +for each request. */ +static char* os_aio_thread_buffer[SRV_MAX_N_IO_THREADS]; +static ulint os_aio_thread_buffer_size[SRV_MAX_N_IO_THREADS]; + +/* Count pages read and written per thread */ +static ulint os_aio_thread_io_reads[SRV_MAX_N_IO_THREADS]; +static ulint os_aio_thread_io_writes[SRV_MAX_N_IO_THREADS]; + +/* Number of IO operations done. One request can be for N pages. */ +static ulint os_aio_thread_io_requests[SRV_MAX_N_IO_THREADS]; + +/* usecs spent blocked on an IO request */ +static double os_aio_thread_io_wait[SRV_MAX_N_IO_THREADS]; +/* max usecs spent blocked on an IO request */ +static double os_aio_thread_max_io_wait[SRV_MAX_N_IO_THREADS]; + +/* Number of IO global segments. An IO handler thread is created for each +global segment, except for the segment associated with os_aio_sync_array. +Several segments can be associated with os_aio_{read,write}_array. One +segment is created for each of the other arrays. This is also the number +of valid entries in srv_io_thread_reads, srv_io_thread_writes, +srv_io_thread_op_info, srv_io_thread_function and os_aio_segment_wait_events. */ static ulint os_aio_n_segments = ULINT_UNDEFINED; -/* If the following is TRUE, read i/o handler threads try to -wait until a batch of new read requests have been posted */ +/* Set to TRUE to temporarily block reads from being scheduled while a batch +of read requests is added to allow them to be merged by the IO handler thread +if they are adjacent. */ static ibool os_aio_recommend_sleep_for_read_threads = FALSE; ulint os_n_file_reads = 0; @@ -167,6 +221,19 @@ ulint os_n_pending_writes = 0; ulint os_n_pending_reads = 0; +/* TODO -- does InnoDB provide a portable method for this? */ +static double time_usecs() { +#ifdef __WIN__ + return 0.0; +#else + struct timeval tv; + if (gettimeofday(&tv, NULL)) + return 0; + else + return tv.tv_sec * 1000000.0 + tv.tv_usec; +#endif +} + /*************************************************************************** Gets the operating system version. Currently works only on Windows. */ @@ -1299,7 +1366,7 @@ if (type != OS_LOG_FILE && srv_unix_file_flush_method == SRV_UNIX_O_DIRECT) { -/* fprintf(stderr, "Using O_DIRECT for file %s\n", name); */ + fprintf(stderr, "Using O_DIRECT for file %s\n", name); create_flag = create_flag | O_DIRECT; } @@ -2263,6 +2330,9 @@ return(TRUE); } + fprintf(stderr, +"InnoDB: error: os_file_pread wanted %lu and got %lu.\n", + (ulint) n, (ulint) ret); #endif #ifdef __WIN__ error_handling: @@ -2749,9 +2819,8 @@ os_aio_array_create( /*================*/ /* out, own: aio array */ - ulint n, /* in: maximum number of pending aio operations - allowed; n must be divisible by n_segments */ - ulint n_segments) /* in: number of segments in the aio array */ + ulint n) /* in: maximum number of pending aio operations + allowed */ { os_aio_array_t* array; ulint i; @@ -2760,7 +2829,6 @@ OVERLAPPED* over; #endif ut_a(n > 0); - ut_a(n_segments > 0); array = ut_malloc(sizeof(os_aio_array_t)); @@ -2771,7 +2839,6 @@ os_event_set(array->is_empty); array->n_slots = n; - array->n_segments = n_segments; array->n_reserved = 0; array->slots = ut_malloc(n * sizeof(os_aio_slot_t)); #ifdef __WIN__ @@ -2798,70 +2865,74 @@ /**************************************************************************** Initializes the asynchronous io system. Calls also os_io_init_simple. -Creates a separate aio array for -non-ibuf read and write, a third aio array for the ibuf i/o, with just one -segment, two aio arrays for log reads and writes with one segment, and a -synchronous aio array of the specified size. The combined number of segments -in the three first aio arrays is the parameter n_segments given to the -function. The caller must create an i/o handler thread for each segment in -the four first arrays, but not for the sync aio array. */ +Creates an aio array for each of non-ibuf read, non-ibuf write, ibuf IO, +log IO, and synchronous IO. The caller must create i/o handler thread for all +but the synchronous aio array. Multiple threads can access the same array for +the non-ibuf read (prefetch) and write (flush dirty buffer pages) arrays. +Return the number of AIO handler threads. */ -void +ulint os_aio_init( /*========*/ - ulint n, /* in: maximum number of pending aio operations - allowed; n must be divisible by n_segments */ - ulint n_segments, /* in: combined number of segments in the four - first aio arrays; must be >= 4 */ + ulint ios_per_array, /* in: maximum number of pending aio operations + allowed per array */ + ulint n_read_threads, /* in: number of read threads */ + ulint n_write_threads, /* in: number of write threads */ ulint n_slots_sync) /* in: number of slots in the sync aio array */ { - ulint n_read_segs; - ulint n_write_segs; - ulint n_per_seg; ulint i; + ulint n_segments = 2 + n_read_threads + n_write_threads; #ifdef POSIX_ASYNC_IO sigset_t sigset; #endif - ut_ad(n % n_segments == 0); - ut_ad(n_segments >= 4); + ut_a(ios_per_array >= OS_AIO_N_PENDING_IOS_PER_THREAD); + ut_a(n_read_threads >= 1 && n_read_threads <= 64); + ut_a(n_write_threads >= 1 && n_write_threads <= 64); os_io_init_simple(); for (i = 0; i < n_segments; i++) { srv_set_io_thread_op_info(i, "not started yet"); + os_aio_thread_io_reads[i] = 0; + os_aio_thread_io_writes[i] = 0; + os_aio_thread_io_requests[i] = 0; + os_aio_thread_buffer[i] = 0; + os_aio_thread_buffer_size[i] = 0; + os_aio_thread_io_wait[i] = 0; + os_aio_thread_max_io_wait[i] = 0; } - n_per_seg = n / n_segments; - n_write_segs = (n_segments - 2) / 2; - n_read_segs = n_segments - 2 - n_write_segs; - - /* fprintf(stderr, "Array n per seg %lu\n", n_per_seg); */ + os_aio_read_threads = n_read_threads; + os_aio_write_threads = n_write_threads; + os_aio_first_write_segment = os_aio_first_read_segment + os_aio_read_threads; + + fprintf(stderr, + "InnoDB: ios_per_array %lu read threads %lu write threads %lu\n", + ios_per_array, os_aio_read_threads, os_aio_write_threads); - os_aio_ibuf_array = os_aio_array_create(n_per_seg, 1); + os_aio_ibuf_array = os_aio_array_create(ios_per_array); srv_io_thread_function[0] = "insert buffer thread"; - os_aio_log_array = os_aio_array_create(n_per_seg, 1); + os_aio_log_array = os_aio_array_create(ios_per_array); srv_io_thread_function[1] = "log thread"; - os_aio_read_array = os_aio_array_create(n_read_segs * n_per_seg, - n_read_segs); - for (i = 2; i < 2 + n_read_segs; i++) { + os_aio_read_array = os_aio_array_create(ios_per_array); + for (i = os_aio_first_read_segment; i < os_aio_first_write_segment; i++) { ut_a(i < SRV_MAX_N_IO_THREADS); - srv_io_thread_function[i] = "read thread"; + srv_io_thread_function[i] = "read thread"; } - os_aio_write_array = os_aio_array_create(n_write_segs * n_per_seg, - n_write_segs); - for (i = 2 + n_read_segs; i < n_segments; i++) { + os_aio_write_array = os_aio_array_create(ios_per_array); + for (i = os_aio_first_write_segment; i < n_segments; i++) { ut_a(i < SRV_MAX_N_IO_THREADS); - srv_io_thread_function[i] = "write thread"; + srv_io_thread_function[i] = "write thread"; } - os_aio_sync_array = os_aio_array_create(n_slots_sync, 1); + os_aio_sync_array = os_aio_array_create(n_slots_sync); - os_aio_n_segments = n_segments; + os_aio_n_segments = 2 + os_aio_read_threads + os_aio_write_threads; os_aio_validate(); @@ -2889,6 +2960,7 @@ pthread_sigmask(SIG_BLOCK, &sigset, NULL); */ #endif + return os_aio_n_segments; } #ifdef WIN_ASYNC_IO @@ -2946,77 +3018,32 @@ os_event_wait(os_aio_write_array->is_empty); } -/************************************************************************** -Calculates segment number for a slot. */ -static -ulint -os_aio_get_segment_no_from_slot( -/*============================*/ - /* out: segment number (which is the number - used by, for example, i/o-handler threads) */ - os_aio_array_t* array, /* in: aio wait array */ - os_aio_slot_t* slot) /* in: slot in this array */ -{ - ulint segment; - ulint seg_len; - - if (array == os_aio_ibuf_array) { - segment = 0; - - } else if (array == os_aio_log_array) { - segment = 1; - - } else if (array == os_aio_read_array) { - seg_len = os_aio_read_array->n_slots / - os_aio_read_array->n_segments; - - segment = 2 + slot->pos / seg_len; - } else { - ut_a(array == os_aio_write_array); - seg_len = os_aio_write_array->n_slots / - os_aio_write_array->n_segments; - - segment = os_aio_read_array->n_segments + 2 - + slot->pos / seg_len; - } - - return(segment); -} /************************************************************************** -Calculates local segment number and aio array from global segment number. */ +Calculates aio array from global segment number. */ static -ulint -os_aio_get_array_and_local_segment( +os_aio_array_t* +os_aio_get_array( /*===============================*/ - /* out: local segment number within - the aio array */ - os_aio_array_t** array, /* out: aio wait array */ + /* out: aio wait array */ ulint global_segment)/* in: global segment number */ { - ulint segment; ut_a(global_segment < os_aio_n_segments); if (global_segment == 0) { - *array = os_aio_ibuf_array; - segment = 0; + return os_aio_ibuf_array; } else if (global_segment == 1) { - *array = os_aio_log_array; - segment = 0; + return os_aio_log_array; - } else if (global_segment < os_aio_read_array->n_segments + 2) { - *array = os_aio_read_array; + } else if (global_segment < os_aio_first_write_segment) { + return os_aio_read_array; - segment = global_segment - 2; } else { - *array = os_aio_write_array; + return os_aio_write_array; - segment = global_segment - (os_aio_read_array->n_segments + 2); } - - return(segment); } /*********************************************************************** @@ -3160,7 +3187,7 @@ slot->buf = buf; slot->offset = offset; slot->offset_high = offset_high; - slot->io_already_done = FALSE; + slot->status = OS_AIO_NOT_ISSUED; #ifdef WIN_ASYNC_IO control = &(slot->control); @@ -3211,8 +3238,9 @@ os_mutex_enter(array->mutex); ut_ad(slot->reserved); - + slot->reserved = FALSE; + slot->status = OS_AIO_NOT_ISSUED; array->n_reserved--; @@ -3241,24 +3269,23 @@ { os_aio_array_t* array; os_aio_slot_t* slot; - ulint segment; ulint n; ulint i; ut_ad(!os_aio_use_native_aio); - segment = os_aio_get_array_and_local_segment(&array, global_segment); + array = os_aio_get_array(global_segment); - n = array->n_slots / array->n_segments; + n = array->n_slots; - /* Look through n slots after the segment * n'th slot */ + /* Look through n slots */ os_mutex_enter(array->mutex); for (i = 0; i < n; i++) { - slot = os_aio_array_get_nth_slot(array, i + segment * n); + slot = os_aio_array_get_nth_slot(array, i ); - if (slot->reserved) { + if (slot->status == OS_AIO_NOT_ISSUED) { /* Found an i/o request */ break; @@ -3295,6 +3322,33 @@ } /************************************************************************** +Wake all handler threads for a given array. */ +static +void +os_aio_simulated_wake_handler_threads_for_array( +/*============================*/ + os_aio_array_t* array) /* in: aio wait array */ +{ + if (array == os_aio_ibuf_array) { + os_aio_simulated_wake_handler_thread(0); + + } else if (array == os_aio_log_array) { + os_aio_simulated_wake_handler_thread(1); + + } else if (array == os_aio_read_array) { + ulint x; + for (x = os_aio_first_read_segment; x < os_aio_first_write_segment; x++) + os_aio_simulated_wake_handler_thread(x); + + } else { + ut_a(array == os_aio_write_array); + ulint x; + for (x = os_aio_first_write_segment; x < os_aio_n_segments; x++) + os_aio_simulated_wake_handler_thread(x); + } +} + +/************************************************************************** This function can be called if one wants to post a batch of reads and prefers an i/o-handler thread to handle them all at once later. You must call os_aio_simulated_wake_handler_threads later to ensure the threads @@ -3304,18 +3358,13 @@ os_aio_simulated_put_read_threads_to_sleep(void) /*============================================*/ { - os_aio_array_t* array; ulint g; + /* TODO(mcallaghan): provide similar function for write? */ os_aio_recommend_sleep_for_read_threads = TRUE; - for (g = 0; g < os_aio_n_segments; g++) { - os_aio_get_array_and_local_segment(&array, g); - - if (array == os_aio_read_array) { - - os_event_reset(os_aio_segment_wait_events[g]); - } + for (g = os_aio_first_read_segment; g < os_aio_first_write_segment; g++) { + os_event_reset(os_aio_segment_wait_events[g]); } } @@ -3445,8 +3494,7 @@ #endif } else { if (!wake_later) { - os_aio_simulated_wake_handler_thread( - os_aio_get_segment_no_from_slot(array, slot)); + os_aio_simulated_wake_handler_threads_for_array(array); } } } else if (type == OS_FILE_WRITE) { @@ -3462,8 +3510,7 @@ #endif } else { if (!wake_later) { - os_aio_simulated_wake_handler_thread( - os_aio_get_segment_no_from_slot(array, slot)); + os_aio_simulated_wake_handler_threads_for_array(array); } } } else { @@ -3526,7 +3573,7 @@ os_aio_windows_handle( /*==================*/ /* out: TRUE if the aio operation succeeded */ - ulint segment, /* in: the number of the segment in the aio + ulint global_segment, /* in: the number of the segment in the aio arrays to wait for; segment 0 is the ibuf i/o thread, segment 1 the log i/o thread, then follow the non-ibuf read threads, and as @@ -3544,7 +3591,6 @@ void** message2, ulint* type) /* out: OS_FILE_WRITE or ..._READ */ { - ulint orig_seg = segment; os_aio_array_t* array; os_aio_slot_t* slot; ulint n; @@ -3553,33 +3599,30 @@ BOOL ret; DWORD len; - if (segment == ULINT_UNDEFINED) { + if (global_segment == ULINT_UNDEFINED) { array = os_aio_sync_array; - segment = 0; } else { - segment = os_aio_get_array_and_local_segment(&array, segment); + array = os_aio_get_array(global_segment); } /* NOTE! We only access constant fields in os_aio_array. Therefore we do not have to acquire the protecting mutex yet */ ut_ad(os_aio_validate()); - ut_ad(segment < array->n_segments); - n = array->n_slots / array->n_segments; + n = array->n_slots; if (array == os_aio_sync_array) { os_event_wait(os_aio_array_get_nth_slot(array, pos)->event); i = pos; } else { - srv_set_io_thread_op_info(orig_seg, "wait Windows aio"); - i = os_event_wait_multiple(n, - (array->native_events) + segment * n); + srv_set_io_thread_op_info(global_segment, "wait Windows aio"); + i = os_event_wait_multiple(n, (array->native_events)); } os_mutex_enter(array->mutex); - slot = os_aio_array_get_nth_slot(array, i + segment * n); + slot = os_aio_array_get_nth_slot(array, i); ut_a(slot->reserved); @@ -3752,7 +3795,6 @@ ulint* type) /* out: OS_FILE_WRITE or ..._READ */ { os_aio_array_t* array; - ulint segment; os_aio_slot_t* slot; os_aio_slot_t* slot2; os_aio_slot_t* consecutive_ios[OS_AIO_MERGE_N_CONSECUTIVE]; @@ -3767,8 +3809,10 @@ ibool ret; ulint n; ulint i; - - segment = os_aio_get_array_and_local_segment(&array, global_segment); + + double start_usecs, stop_usecs; + time_t now; + array = os_aio_get_array(global_segment); restart: /* NOTE! We only access constant fields in os_aio_array. Therefore @@ -3777,11 +3821,10 @@ srv_set_io_thread_op_info(global_segment, "looking for i/o requests (a)"); ut_ad(os_aio_validate()); - ut_ad(segment < array->n_segments); - n = array->n_slots / array->n_segments; + n = array->n_slots; - /* Look through n slots after the segment * n'th slot */ + /* Look through n slots */ if (array == os_aio_read_array && os_aio_recommend_sleep_for_read_threads) { @@ -3801,9 +3844,9 @@ done */ for (i = 0; i < n; i++) { - slot = os_aio_array_get_nth_slot(array, i + segment * n); + slot = os_aio_array_get_nth_slot(array, i); - if (slot->reserved && slot->io_already_done) { + if (slot->reserved && slot->status == OS_AIO_DONE) { if (os_aio_print_debug) { fprintf(stderr, @@ -3825,12 +3868,12 @@ biggest_age = 0; lowest_offset = ULINT_MAX; + now = time(NULL); for (i = 0; i < n; i++) { - slot = os_aio_array_get_nth_slot(array, i + segment * n); + slot = os_aio_array_get_nth_slot(array, i); - if (slot->reserved) { - age = (ulint)difftime(time(NULL), - slot->reservation_time); + if (slot->reserved && slot->status == OS_AIO_NOT_ISSUED) { + age = (ulint)difftime(now, slot->reservation_time); if ((age >= 2 && age > biggest_age) || (age >= 2 && age == biggest_age @@ -3855,10 +3898,11 @@ lowest_offset = ULINT_MAX; for (i = 0; i < n; i++) { - slot = os_aio_array_get_nth_slot(array, - i + segment * n); + slot = os_aio_array_get_nth_slot(array, i); - if (slot->reserved && slot->offset < lowest_offset) { + if (slot->reserved + && slot->offset < lowest_offset + && slot->status == OS_AIO_NOT_ISSUED) { /* Found an i/o request */ consecutive_ios[0] = slot; @@ -3883,7 +3927,7 @@ consecutive_loop: for (i = 0; i < n; i++) { - slot2 = os_aio_array_get_nth_slot(array, i + segment * n); + slot2 = os_aio_array_get_nth_slot(array, i); if (slot2->reserved && slot2 != slot && slot2->offset == slot->offset + slot->len @@ -3891,7 +3935,8 @@ sum does not wrap over */ && slot2->offset_high == slot->offset_high && slot2->type == slot->type - && slot2->file == slot->file) { + && slot2->file == slot->file + && slot2->status == OS_AIO_NOT_ISSUED) { /* Found a consecutive i/o request */ @@ -3900,7 +3945,8 @@ slot = slot2; - if (n_consecutive < OS_AIO_MERGE_N_CONSECUTIVE) { + if (n_consecutive < OS_AIO_MERGE_N_CONSECUTIVE + && n_consecutive < innobase_max_merged_io) { goto consecutive_loop; } else { @@ -3920,6 +3966,8 @@ for (i = 0; i < n_consecutive; i++) { total_len += consecutive_ios[i]->len; + ut_a(consecutive_ios[i]->status == OS_AIO_NOT_ISSUED); + consecutive_ios[i]->status = OS_AIO_ISSUED; } if (n_consecutive == 1) { @@ -3927,7 +3975,16 @@ combined_buf = slot->buf; combined_buf2 = NULL; } else { - combined_buf2 = ut_malloc(total_len + UNIV_PAGE_SIZE); + if ((total_len + UNIV_PAGE_SIZE) > os_aio_thread_buffer_size[global_segment]) { + + if (os_aio_thread_buffer[global_segment]) + ut_free(os_aio_thread_buffer[global_segment]); + + os_aio_thread_buffer[global_segment] = ut_malloc(total_len + UNIV_PAGE_SIZE); + + os_aio_thread_buffer_size[global_segment] = total_len + UNIV_PAGE_SIZE; + } + combined_buf2 = os_aio_thread_buffer[global_segment]; ut_a(combined_buf2); @@ -3938,6 +3995,9 @@ this assumes that there is just one i/o-handler thread serving a single segment of slots! */ + ut_a(slot->reserved); + ut_a(slot->status == OS_AIO_ISSUED); + os_mutex_exit(array->mutex); if (slot->type == OS_FILE_WRITE && n_consecutive > 1) { @@ -3963,6 +4023,7 @@ /* Do the i/o with ordinary, synchronous i/o functions: */ if (slot->type == OS_FILE_WRITE) { + os_aio_thread_io_writes[global_segment] += n_consecutive; if (array == os_aio_write_array) { if ((total_len % UNIV_PAGE_SIZE != 0) || (slot->offset % UNIV_PAGE_SIZE != 0)) { @@ -3977,16 +4038,25 @@ os_file_check_page_trailers(combined_buf, total_len); } + start_usecs = time_usecs(); ret = os_file_write(slot->name, slot->file, combined_buf, slot->offset, slot->offset_high, total_len); + stop_usecs = time_usecs(); if (array == os_aio_write_array) { os_file_check_page_trailers(combined_buf, total_len); } } else { + start_usecs = time_usecs(); + os_aio_thread_io_reads[global_segment] += n_consecutive; ret = os_file_read(slot->file, combined_buf, slot->offset, slot->offset_high, total_len); + stop_usecs = time_usecs(); } + if ((stop_usecs - start_usecs) > os_aio_thread_max_io_wait[global_segment]) + os_aio_thread_max_io_wait[global_segment] = stop_usecs - start_usecs; + os_aio_thread_io_wait[global_segment] += stop_usecs - start_usecs; + os_aio_thread_io_requests[global_segment]++; ut_a(ret); srv_set_io_thread_op_info(global_segment, "file i/o done"); @@ -4007,16 +4077,13 @@ } } - if (combined_buf2) { - ut_free(combined_buf2); - } - os_mutex_enter(array->mutex); /* Mark the i/os done in slots */ for (i = 0; i < n_consecutive; i++) { - consecutive_ios[i]->io_already_done = TRUE; + ut_a(consecutive_ios[i]->status == OS_AIO_ISSUED); + consecutive_ios[i]->status = OS_AIO_DONE; } /* We return the messages for the first slot now, and if there were @@ -4026,6 +4093,8 @@ slot_io_done: ut_a(slot->reserved); + ut_a(slot->status == OS_AIO_DONE); + slot->status = OS_AIO_CLAIMED; *message1 = slot->message1; *message2 = slot->message2; @@ -4080,7 +4149,6 @@ os_mutex_enter(array->mutex); ut_a(array->n_slots > 0); - ut_a(array->n_segments > 0); for (i = 0; i < array->n_slots; i++) { slot = os_aio_array_get_nth_slot(array, i); @@ -4131,10 +4199,17 @@ double avg_bytes_read; ulint i; - for (i = 0; i < srv_n_file_io_threads; i++) { - fprintf(file, "I/O thread %lu state: %s (%s)", (ulong) i, - srv_io_thread_op_info[i], - srv_io_thread_function[i]); + for (i = 0; i < os_aio_n_segments; i++) { + fprintf(file, + "I/O thread %lu state: %s (%s) reads %lu writes %lu " + "requests %lu io secs %lf io msecs/request %lf max_io_wait %lf", + i, srv_io_thread_op_info[i], srv_io_thread_function[i], + os_aio_thread_io_reads[i], os_aio_thread_io_writes[i], + os_aio_thread_io_requests[i], + os_aio_thread_io_wait[i] / 1000000.0, + os_aio_thread_io_requests[i] ? + os_aio_thread_io_wait[i] / os_aio_thread_io_requests[i] / 1000.0 : 0.0, + os_aio_thread_max_io_wait[i] / 1000.0); #ifndef __WIN__ if (os_aio_segment_wait_events[i]->is_set) { @@ -4154,7 +4229,6 @@ os_mutex_enter(array->mutex); ut_a(array->n_slots > 0); - ut_a(array->n_segments > 0); n_reserved = 0; diff -ruN base/innobase/srv/srv0srv.c mysql50gpl/innobase/srv/srv0srv.c --- base/innobase/srv/srv0srv.c 2007-03-05 11:21:12.000000000 -0800 +++ mysql50gpl/innobase/srv/srv0srv.c 2007-04-13 12:24:19.059105000 -0700 @@ -164,7 +164,11 @@ ulint srv_mem_pool_size = ULINT_MAX; /* size in bytes */ ulint srv_lock_table_size = ULINT_MAX; +/* Deprecated by srv_n_{read,write}_io_threads */ ulint srv_n_file_io_threads = ULINT_MAX; +/* Number of background IO threads for read and write requests */ +ulint srv_n_read_io_threads = ULINT_MAX; +ulint srv_n_write_io_threads = ULINT_MAX; #ifdef UNIV_LOG_ARCHIVE ibool srv_log_archive_on = FALSE; @@ -174,6 +178,9 @@ ulint srv_lock_wait_timeout = 1024 * 1024 * 1024; +/* Counts number of lock wait timeouts. */ +ulint inno_lock_wait_timeouts = 0; + char* srv_file_flush_method_str = NULL; ulint srv_unix_file_flush_method = SRV_UNIX_FDATASYNC; ulint srv_win_file_flush_method = SRV_WIN_IO_UNBUFFERED; @@ -301,6 +308,10 @@ SQL query after it has once got the ticket at srv_conc_enter_innodb */ #define SRV_FREE_TICKETS_TO_ENTER srv_n_free_tickets_to_enter #define SRV_THREAD_SLEEP_DELAY srv_thread_sleep_delay + +/* Replication SQL thread's entering tickets: 1 million */ +#define SRV_RPLSQL_FREE_TICKETS_TO_ENTER (2000 * srv_n_free_tickets_to_enter) + /*-----------------------*/ /* If the following is set to 1 then we do not run purge and insert buffer merge to completion before shutdown. If it is set to 2, do not even flush the @@ -414,6 +425,23 @@ ulint srv_main_thread_process_no = 0; ulint srv_main_thread_id = 0; +// The following count work done by srv_master_thread. + +// Iterations by the 'once per second' loop. +ulint srv_main_1_second_loops = 0; +// Calls to sleep by the 'once per second' loop. +ulint srv_main_sleeps = 0; +// Iterations by the 'once per 10 seconds' loop. +ulint srv_main_10_second_loops = 0; +// Iterations of the loop bounded by the 'background_loop' label. +ulint srv_main_background_loops = 0; +// Iterations of the loop bounded by the 'flush_loop' label. +ulint srv_main_flush_loops = 0; +// Calls to log_buffer_flush_to_disk. +ulint srv_sync_flush = 0; +// Calls to log_buffer_flush_maybe_sync. +ulint srv_async_flush = 0; + /* IMPLEMENTATION OF THE SERVER MAIN PROGRAM ========================================= @@ -633,6 +661,26 @@ ulint srv_n_threads_active[SRV_MASTER + 1]; ulint srv_n_threads[SRV_MASTER + 1]; +static void srv_reset_free_tickets(trx_t* trx); + +/************************************************************************* +Prints counters for work done by srv_master_thread. */ + +static +void +srv_print_extra( +/*===================*/ + FILE *file) /* in: output stream */ +{ + fprintf(file, "srv_master_thread loops: %lu 1_second, %lu sleeps, " + "%lu 10_second, %lu background, %lu flush\n", + srv_main_1_second_loops, srv_main_sleeps, + srv_main_10_second_loops, srv_main_background_loops, + srv_main_flush_loops); + fprintf(file, "srv_master_thread log flush: %lu sync, %lu async\n", + srv_sync_flush, srv_async_flush); +} + /************************************************************************* Sets the info describing an i/o thread current state. */ @@ -1024,7 +1072,7 @@ srv_conc_n_threads++; trx->declared_to_be_inside_innodb = TRUE; - trx->n_tickets_to_enter_innodb = SRV_FREE_TICKETS_TO_ENTER; + srv_reset_free_tickets(trx); os_fast_mutex_unlock(&srv_conc_mutex); @@ -1067,7 +1115,7 @@ /* Too many threads inside: put the current thread to a queue */ - for (i = 0; i < OS_THREAD_MAX_N; i++) { + for (i = 0; i < OS_THREAD_MAX_N && !trx->always_enter_innodb; i++) { slot = srv_conc_slots + i; if (!slot->reserved) { @@ -1076,13 +1124,21 @@ } } - if (i == OS_THREAD_MAX_N) { - /* Could not find a free wait slot, we must let the - thread enter */ + if (i == OS_THREAD_MAX_N || trx->always_enter_innodb) { + /* Could not find a free wait slot, OR we want the sql thread + to always enter innodb to improve replication, we must let the + thread enter */ srv_conc_n_threads++; trx->declared_to_be_inside_innodb = TRUE; - trx->n_tickets_to_enter_innodb = 0; + + /* If the transaction can always enter innodb, give it enough + * tickets so that we would not check it again soon afterwards. + */ + if (trx->always_enter_innodb) + srv_reset_free_tickets(trx); + else + trx->n_tickets_to_enter_innodb = 0; os_fast_mutex_unlock(&srv_conc_mutex); @@ -1127,7 +1183,7 @@ UT_LIST_REMOVE(srv_conc_queue, srv_conc_queue, slot); trx->declared_to_be_inside_innodb = TRUE; - trx->n_tickets_to_enter_innodb = SRV_FREE_TICKETS_TO_ENTER; + srv_reset_free_tickets(trx); os_fast_mutex_unlock(&srv_conc_mutex); } @@ -1570,6 +1626,20 @@ #endif /* UNIV_HOTBACKUP */ } +/********************************************************************** +Reset free tickets for a transaction. */ +static +void +srv_reset_free_tickets( + trx_t* trx) /* in: transaction object associated with the + thread */ +{ + trx->n_tickets_to_enter_innodb = + ((!trx->always_enter_innodb) ? + SRV_FREE_TICKETS_TO_ENTER : + SRV_RPLSQL_FREE_TICKETS_TO_ENTER); +} + #ifndef UNIV_HOTBACKUP /********************************************************************** Refreshes the values used to calculate per-second averages. */ @@ -1638,8 +1708,15 @@ (ulong)time_elapsed); fputs("----------\n" + "BACKGROUND THREAD\n" + "----------\n", file); + srv_print_extra(file); + fil_print(file); + + fputs("----------\n" "SEMAPHORES\n" "----------\n", file); + fprintf(file, "Lock wait timeouts %lu\n", inno_lock_wait_timeouts); sync_print(file); /* Conceptually, srv_innodb_monitor_mutex has a very high latching @@ -1658,24 +1735,6 @@ mutex_exit(&dict_foreign_err_mutex); - lock_print_info_summary(file); - if (trx_start) { - long t = ftell(file); - if (t < 0) { - *trx_start = ULINT_UNDEFINED; - } else { - *trx_start = (ulint) t; - } - } - lock_print_info_all_transactions(file); - if (trx_end) { - long t = ftell(file); - if (t < 0) { - *trx_end = ULINT_UNDEFINED; - } else { - *trx_end = (ulint) t; - } - } fputs("--------\n" "FILE I/O\n" "--------\n", file); @@ -1764,6 +1823,27 @@ (srv_n_rows_read - srv_n_rows_read_old) / time_elapsed); + /* Print open transaction details */ + lock_print_info_summary(file); + + if (trx_start) { + long t = ftell(file); + if (t < 0) { + *trx_start = ULINT_UNDEFINED; + } else { + *trx_start = (ulint) t; + } + } + lock_print_info_all_transactions(file); + if (trx_end) { + long t = ftell(file); + if (t < 0) { + *trx_end = ULINT_UNDEFINED; + } else { + *trx_end = (ulint) t; + } + } + srv_n_rows_inserted_old = srv_n_rows_inserted; srv_n_rows_updated_old = srv_n_rows_updated; srv_n_rows_deleted_old = srv_n_rows_deleted; @@ -1979,6 +2059,7 @@ if (thr_get_trx(slot->thr)->wait_lock) { lock_cancel_waiting_and_release( thr_get_trx(slot->thr)->wait_lock); + ++inno_lock_wait_timeouts; } } } @@ -2238,10 +2319,12 @@ n_ios_old = log_sys->n_log_ios + buf_pool->n_pages_read + buf_pool->n_pages_written; srv_main_thread_op_info = "sleeping"; - + srv_main_1_second_loops++; + if (!skip_sleep) { - os_thread_sleep(1000000); + os_thread_sleep(1000000); + srv_main_sleeps++; } skip_sleep = FALSE; @@ -2267,6 +2350,7 @@ srv_main_thread_op_info = "flushing log"; log_buffer_flush_to_disk(); + srv_sync_flush++; srv_main_thread_op_info = "making checkpoint"; log_free_check(); @@ -2286,7 +2370,9 @@ srv_main_thread_op_info = "flushing log"; - log_buffer_flush_to_disk(); + /* No fsync when srv_flush_log_at_trx_commit != 1 */ + log_buffer_flush_maybe_sync(); + srv_async_flush++; } if (buf_get_modified_ratio_pct() > @@ -2317,6 +2403,7 @@ /* ---- We perform the following code approximately once per 10 seconds when there is database activity */ + srv_main_10_second_loops++; #ifdef MEM_PERIODIC_CHECK /* Check magic numbers of every allocated mem block once in 10 @@ -2336,7 +2423,9 @@ buf_flush_batch(BUF_FLUSH_LIST, 100, ut_dulint_max); srv_main_thread_op_info = "flushing log"; - log_buffer_flush_to_disk(); + /* No fsync when srv_flush_log_at_trx_commit != 1 */ + log_buffer_flush_maybe_sync(); + srv_async_flush++; } /* We run a batch of insert buffer merge every 10 seconds, @@ -2346,7 +2435,9 @@ ibuf_contract_for_n_pages(TRUE, 5); srv_main_thread_op_info = "flushing log"; - log_buffer_flush_to_disk(); + /* No fsync when srv_flush_log_at_trx_commit != 1 */ + log_buffer_flush_maybe_sync(); + srv_async_flush++; /* We run a full purge every 10 seconds, even if the server were active */ @@ -2370,8 +2461,9 @@ if (difftime(current_time, last_flush_time) > 1) { srv_main_thread_op_info = "flushing log"; - log_buffer_flush_to_disk(); + log_buffer_flush_to_disk(); last_flush_time = current_time; + srv_sync_flush++; } } @@ -2426,7 +2518,7 @@ /* The server has been quiet for a while: start running background operations */ - + srv_main_background_loops++; srv_main_thread_op_info = "doing background drop tables"; n_tables_to_drop = row_drop_tables_for_mysql_in_background(); @@ -2464,6 +2556,7 @@ log_buffer_flush_to_disk(); last_flush_time = current_time; + srv_sync_flush++; } } @@ -2479,9 +2572,13 @@ srv_main_thread_op_info = "doing insert buffer merge"; if (srv_fast_shutdown && srv_shutdown_state > 0) { - n_bytes_merged = 0; + n_bytes_merged = 0; } else { - n_bytes_merged = ibuf_contract_for_n_pages(TRUE, 20); + /* This should do an amount of IO similar to the number of + * dirty pages that will be flushed in the call to + * buf_flush_batch below. Otherwise, the system favors + * clean pages over cleanup throughput. */ + n_bytes_merged = ibuf_contract_for_n_pages(TRUE, 100); } srv_main_thread_op_info = "reserving kernel mutex"; @@ -2495,6 +2592,7 @@ flush_loop: srv_main_thread_op_info = "flushing buffer pool pages"; + srv_main_flush_loops++; if (srv_fast_shutdown < 2) { n_pages_flushed = @@ -2520,7 +2618,17 @@ srv_main_thread_op_info = "flushing log"; - log_buffer_flush_to_disk(); + current_time = time(NULL); + if (difftime(current_time, last_flush_time) > 1) { + srv_main_thread_op_info = (char*) "flushing log"; + log_buffer_flush_to_disk(); + last_flush_time = current_time; + srv_sync_flush++; + } else { + /* No fsync when srv_flush_log_at_trx_commit != 1 */ + log_buffer_flush_maybe_sync(); + srv_async_flush++; + } srv_main_thread_op_info = "making checkpoint"; diff -ruN base/innobase/srv/srv0start.c mysql50gpl/innobase/srv/srv0start.c --- base/innobase/srv/srv0start.c 2007-03-05 11:21:05.000000000 -0800 +++ mysql50gpl/innobase/srv/srv0start.c 2007-04-13 12:24:19.077107000 -0700 @@ -973,6 +973,7 @@ ulint i; ibool srv_file_per_table_original_value = srv_file_per_table; mtr_t mtr; + ulint n_threads; #ifdef HAVE_DARWIN_THREADS # ifdef F_FULLFSYNC /* This executable has been compiled on Mac OS X 10.3 or later. @@ -1206,24 +1207,32 @@ } /* Restrict the maximum number of file i/o threads */ - if (srv_n_file_io_threads > SRV_MAX_N_IO_THREADS) { - - srv_n_file_io_threads = SRV_MAX_N_IO_THREADS; + if ((srv_n_read_io_threads + srv_n_write_io_threads) > SRV_MAX_N_IO_THREADS) { + fprintf(stderr, + "InnoDB: requested too many read(%d) or write(%d) IO threads, max is %d\n", + srv_n_read_io_threads, srv_n_write_io_threads, SRV_MAX_N_IO_THREADS); + return(DB_ERROR); } if (!os_aio_use_native_aio) { - /* In simulated aio we currently have use only for 4 threads */ - srv_n_file_io_threads = 4; - - os_aio_init(8 * SRV_N_PENDING_IOS_PER_THREAD - * srv_n_file_io_threads, - srv_n_file_io_threads, - SRV_MAX_N_PENDING_SYNC_IOS); + /* More than 4 threads are now supported. */ + n_threads = os_aio_init(8 * SRV_N_PENDING_IOS_PER_THREAD, + srv_n_read_io_threads, + srv_n_write_io_threads, + SRV_MAX_N_PENDING_SYNC_IOS); } else { - os_aio_init(SRV_N_PENDING_IOS_PER_THREAD - * srv_n_file_io_threads, - srv_n_file_io_threads, - SRV_MAX_N_PENDING_SYNC_IOS); + /* Might need more slots here. Alas, I don't do windows. */ + n_threads = os_aio_init(SRV_N_PENDING_IOS_PER_THREAD, + srv_n_read_io_threads, + srv_n_write_io_threads, + SRV_MAX_N_PENDING_SYNC_IOS); + } + + if (n_threads > SRV_MAX_N_IO_THREADS) { + fprintf(stderr, + "InnoDB: requested too many IO threads(%d), max is %d\n", + n_threads, SRV_MAX_N_IO_THREADS); + return(DB_ERROR); } fil_init(srv_max_n_open_files); @@ -1259,11 +1268,11 @@ /* Create i/o-handler threads: */ - for (i = 0; i < srv_n_file_io_threads; i++) { + for (i = 0; i < n_threads; i++) { n[i] = i; os_thread_create(io_handler_thread, n + i, thread_ids + i); - } + } #ifdef UNIV_LOG_ARCHIVE if (0 != ut_strcmp(srv_log_group_home_dirs[0], srv_arch_dir)) { diff -ruN base/innobase/trx/trx0roll.c mysql50gpl/innobase/trx/trx0roll.c --- base/innobase/trx/trx0roll.c 2007-03-05 11:21:40.000000000 -0800 +++ mysql50gpl/innobase/trx/trx0roll.c 2007-04-13 12:24:19.292103000 -0700 @@ -40,6 +40,13 @@ /* Auxiliary variable which tells the previous progress % we printed */ ulint trx_roll_progress_printed_pct; +extern char *mysql_data_home; +extern char reg_ext[]; + +/* Delete .frm schema file for the specified table. */ +static void mysql_delete_table_schema_file(const char *full_table_name); + + /*********************************************************************** Rollback a transaction used in MySQL. */ @@ -571,6 +578,8 @@ err = row_drop_table_for_mysql(table->name, trx, TRUE); ut_a(err == (int) DB_SUCCESS); + + mysql_delete_table_schema_file(table->name); } } @@ -1362,3 +1371,24 @@ return(thr); } + +/* Delete .frm schema file for the specified table. */ +static void mysql_delete_table_schema_file(const char *full_table_name) { + char frm_filename[1000]; + + fprintf(stderr, "InnoDB: mysql dropping schema file for %s\n", + full_table_name); + if (strlen(full_table_name) + strlen(mysql_data_home) + strlen(reg_ext) + >= 1000) { + fprintf(stderr, "InnoDB: illegal table name.\n"); + return; + } + + /* Create the filename based on the database/table name. */ + sprintf(frm_filename, "%s/%s%s", mysql_data_home, full_table_name, reg_ext); + + fprintf(stderr, "InnoDB: unlink file %s\n", frm_filename); + if (unlink(frm_filename) != 0) + fprintf(stderr, "InnoDB: failed dropping schema file, %d.\n", errno); +} + diff -ruN base/innobase/trx/trx0sys.c mysql50gpl/innobase/trx/trx0sys.c --- base/innobase/trx/trx0sys.c 2007-03-05 11:21:11.000000000 -0800 +++ mysql50gpl/innobase/trx/trx0sys.c 2007-04-13 12:24:19.312101000 -0700 @@ -37,12 +37,15 @@ ibool trx_sys_multiple_tablespace_format = FALSE; -/* In a MySQL replication slave, in crash recovery we store the master log -file name and position here. We have successfully got the updates to InnoDB + +/* In a MySQL replication slave, in crash recovery we have to store the relay +log file name and position here. We have successfully got the updates to InnoDB up to this position. If .._pos is -1, it means no crash recovery was needed, -or there was no master log position info inside InnoDB. */ +or there was no relay-log position info inside InnoDB. */ -char trx_sys_mysql_master_log_name[TRX_SYS_MYSQL_LOG_NAME_LEN]; +char trx_sys_mysql_relay_log_name[TRX_SYS_MYSQL_RELAY_NAME_LEN]; +char trx_sys_mysql_master_log_name[TRX_SYS_MYSQL_RELAY_NAME_LEN]; +ib_longlong trx_sys_mysql_relay_log_pos = -1; ib_longlong trx_sys_mysql_master_log_pos = -1; /* If this MySQL server uses binary logging, after InnoDB has been inited @@ -511,7 +514,7 @@ page += UNIV_PAGE_SIZE; } - fil_flush_file_spaces(FIL_TABLESPACE); + fil_flush_file_spaces(FIL_TABLESPACE, FLUSH_FROM_OTHER); leave_func: ut_free(unaligned_read_buf); @@ -630,6 +633,86 @@ } /********************************************************************* +In a MySQL replication slave updates the latest relay log and master +log position up to which replication has proceeded. */ + +void +trx_sys_update_mysql_relay_offset( +/*===============================*/ + const char* relaylog_name, /* in: relay-log file name */ + ib_longlong relaylog_pos, /* in: position in relay-log file */ + const char* masterlog_name, /* in: relay-log file name */ + ib_longlong masterlog_pos, /* in: position in relay-log file */ + ulint field, /* in: offset of the MySQL log info field in + the trx sys header */ + mtr_t* mtr) /* in: mtr */ +{ + trx_sysf_t* sys_header; + + if (ut_strlen(relaylog_name) >= TRX_SYS_MYSQL_RELAY_NAME_LEN || + ut_strlen(masterlog_name) >= TRX_SYS_MYSQL_RELAY_NAME_LEN) { + /* Each filename's length is limited to 250 bytes, which should be more + * than enough for most applications. We will fail during MySQL replication + * if the filename is too long so that users can adjust. + */ + fprintf(stderr, + " InnoDB: trx_sys_update_mysql_relay_offset() filename is too long " + "- relay(%s), master(%s)", relaylog_name, masterlog_name); + return; + } + + sys_header = trx_sysf_get(mtr); + if (mach_read_from_4(sys_header + field + TRX_SYS_MYSQL_RELAYLOG_MAGIC_N_FLD) + != TRX_SYS_MYSQL_LOG_MAGIC_N) { + mlog_write_ulint(sys_header + field + TRX_SYS_MYSQL_RELAYLOG_MAGIC_N_FLD, + TRX_SYS_MYSQL_LOG_MAGIC_N, MLOG_4BYTES, mtr); + } + + if (mach_read_from_4(sys_header + field + TRX_SYS_MYSQL_RELAYMASTER_MAGIC_OFF) + != TRX_SYS_MYSQL_RELAYMASTER_MAGIC_NUM) { + mlog_write_ulint(sys_header + field + TRX_SYS_MYSQL_RELAYMASTER_MAGIC_OFF, + TRX_SYS_MYSQL_RELAYMASTER_MAGIC_NUM, MLOG_4BYTES, mtr); + } + + /* write relay-log related information */ + if (0 != strcmp((char*) (sys_header + field + + TRX_SYS_MYSQL_RELAYLOG_NAME_OFF), relaylog_name)) { + mlog_write_string(sys_header + field + TRX_SYS_MYSQL_RELAYLOG_NAME_OFF, + (byte*) relaylog_name, 1 + ut_strlen(relaylog_name), + mtr); + } + if (mach_read_from_4(sys_header + field + + TRX_SYS_MYSQL_RELAYLOG_POS_HIGH) > 0 + || (relaylog_pos >> 32) > 0) { + mlog_write_ulint(sys_header + field + + TRX_SYS_MYSQL_RELAYLOG_POS_HIGH, + (ulint)(relaylog_pos >> 32), + MLOG_4BYTES, mtr); + } + mlog_write_ulint(sys_header + field + TRX_SYS_MYSQL_RELAYLOG_POS_LOW, + (ulint)(relaylog_pos & 0xFFFFFFFFUL), MLOG_4BYTES, mtr); + + /* write master-log related information */ + if (0 != strcmp((char*) (sys_header + field + + TRX_SYS_MYSQL_MASTERLOG_NAME_OFF), + masterlog_name)) { + mlog_write_string(sys_header + field + TRX_SYS_MYSQL_MASTERLOG_NAME_OFF, + (byte*) masterlog_name, 1 + ut_strlen(masterlog_name), + mtr); + } + if (mach_read_from_4(sys_header + field + + TRX_SYS_MYSQL_MASTERLOG_POS_HIGH) > 0 + || (masterlog_pos >> 32) > 0) { + mlog_write_ulint(sys_header + field + + TRX_SYS_MYSQL_MASTERLOG_POS_HIGH, + (ulint)(masterlog_pos >> 32), + MLOG_4BYTES, mtr); + } + mlog_write_ulint(sys_header + field + TRX_SYS_MYSQL_MASTERLOG_POS_LOW, + (ulint)(masterlog_pos & 0xFFFFFFFFUL), MLOG_4BYTES, mtr); +} + +/********************************************************************* Prints to stderr the MySQL binlog info in the system header if the magic number shows it valid. */ @@ -703,55 +786,78 @@ } /********************************************************************* -Prints to stderr the MySQL master log offset info in the trx system header if -the magic number shows it valid. */ +Prints to stderr the MySQL relay-log/master-log offset info in the trx system +header if the magic number shows it valid. */ void -trx_sys_print_mysql_master_log_pos(void) +trx_sys_print_mysql_relay_log_pos(ibool print_msg) /*====================================*/ { - trx_sysf_t* sys_header; - mtr_t mtr; - - mtr_start(&mtr); - - sys_header = trx_sysf_get(&mtr); + trx_sysf_t* sys_header; + mtr_t mtr; - if (mach_read_from_4(sys_header + TRX_SYS_MYSQL_MASTER_LOG_INFO - + TRX_SYS_MYSQL_LOG_MAGIC_N_FLD) - != TRX_SYS_MYSQL_LOG_MAGIC_N) { - - mtr_commit(&mtr); + mtr_start(&mtr); - return; - } - - fprintf(stderr, -"InnoDB: In a MySQL replication slave the last master binlog file\n" -"InnoDB: position %lu %lu, file name %s\n", - (ulong) mach_read_from_4(sys_header + TRX_SYS_MYSQL_MASTER_LOG_INFO - + TRX_SYS_MYSQL_LOG_OFFSET_HIGH), - (ulong) mach_read_from_4(sys_header + TRX_SYS_MYSQL_MASTER_LOG_INFO - + TRX_SYS_MYSQL_LOG_OFFSET_LOW), - sys_header + TRX_SYS_MYSQL_MASTER_LOG_INFO - + TRX_SYS_MYSQL_LOG_NAME); - /* Copy the master log position info to global variables we can - use in ha_innobase.cc to initialize glob_mi to right values */ - - ut_memcpy(trx_sys_mysql_master_log_name, - sys_header + TRX_SYS_MYSQL_MASTER_LOG_INFO - + TRX_SYS_MYSQL_LOG_NAME, - TRX_SYS_MYSQL_LOG_NAME_LEN); - - trx_sys_mysql_master_log_pos = - (((ib_longlong)mach_read_from_4( - sys_header + TRX_SYS_MYSQL_MASTER_LOG_INFO - + TRX_SYS_MYSQL_LOG_OFFSET_HIGH)) - << 32) - + (ib_longlong) - mach_read_from_4(sys_header + TRX_SYS_MYSQL_MASTER_LOG_INFO - + TRX_SYS_MYSQL_LOG_OFFSET_LOW); - mtr_commit(&mtr); + sys_header = trx_sysf_get(&mtr); + ulint magic_num = mach_read_from_4(sys_header + TRX_SYS_MYSQL_RELAY_INFO + + TRX_SYS_MYSQL_RELAYLOG_MAGIC_N_FLD); + if (magic_num != TRX_SYS_MYSQL_LOG_MAGIC_N) { + mtr_commit(&mtr); + fprintf(stderr, + " InnoDB: Incorrect magic number(%d) for relay-log information\n", + magic_num); + return; + } + + magic_num = mach_read_from_4(sys_header + TRX_SYS_MYSQL_RELAY_INFO + + TRX_SYS_MYSQL_RELAYMASTER_MAGIC_OFF); + if (magic_num != TRX_SYS_MYSQL_RELAYMASTER_MAGIC_NUM) { + mtr_commit(&mtr); + fprintf(stderr, + " InnoDB: Old magic number(%d) for relay-log information\n", + magic_num); + return; + } + + /* We need the relay-log related information in ha_innobase.cc to initialize + * glob_mi to right values. + */ + + /* Copy the relay-log log position info to global variables */ + ut_memcpy(trx_sys_mysql_relay_log_name, + sys_header + TRX_SYS_MYSQL_RELAY_INFO + + TRX_SYS_MYSQL_RELAYLOG_NAME_OFF, + TRX_SYS_MYSQL_RELAY_NAME_LEN); + trx_sys_mysql_relay_log_pos = + (((ib_longlong)mach_read_from_4( + sys_header + TRX_SYS_MYSQL_RELAY_INFO + + TRX_SYS_MYSQL_RELAYLOG_POS_HIGH)) << 32) + + ((ib_longlong)mach_read_from_4(sys_header + TRX_SYS_MYSQL_RELAY_INFO + + TRX_SYS_MYSQL_RELAYLOG_POS_LOW)); + + /* Copy the master-log log position info to global variables */ + ut_memcpy(trx_sys_mysql_master_log_name, + sys_header + TRX_SYS_MYSQL_RELAY_INFO + + TRX_SYS_MYSQL_MASTERLOG_NAME_OFF, + TRX_SYS_MYSQL_RELAY_NAME_LEN); + trx_sys_mysql_master_log_pos = + (((ib_longlong)mach_read_from_4( + sys_header + TRX_SYS_MYSQL_RELAY_INFO + + TRX_SYS_MYSQL_MASTERLOG_POS_HIGH)) << 32) + + ((ib_longlong)mach_read_from_4(sys_header + TRX_SYS_MYSQL_RELAY_INFO + + TRX_SYS_MYSQL_MASTERLOG_POS_LOW)); + + mtr_commit(&mtr); + + if (print_msg) { + ut_print_timestamp(stderr); + fprintf(stderr, +" InnoDB: In a MySQL replication slave the last relay-log file\n" +" InnoDB: relay-log - filename %s, position (%lld)\n" +" InnoDB: master-log - filename %s, position (%lld)\n", + trx_sys_mysql_relay_log_name, trx_sys_mysql_relay_log_pos, + trx_sys_mysql_master_log_name, trx_sys_mysql_master_log_pos); + } } /******************************************************************** diff -ruN base/innobase/trx/trx0trx.c mysql50gpl/innobase/trx/trx0trx.c --- base/innobase/trx/trx0trx.c 2007-03-05 11:21:41.000000000 -0800 +++ mysql50gpl/innobase/trx/trx0trx.c 2007-04-27 18:38:59.540727000 -0700 @@ -140,6 +140,8 @@ trx->mysql_log_offset = 0; trx->mysql_master_log_file_name = ""; trx->mysql_master_log_pos = 0; + trx->mysql_relay_log_file_name = ""; + trx->mysql_relay_log_pos = 0; trx->repl_wait_binlog_name = NULL; trx->repl_wait_binlog_pos = 0; @@ -197,6 +199,9 @@ trx_reset_new_rec_lock_info(trx); + trx->always_enter_innodb = FALSE; + trx->clear_replication_status = FALSE; + return(trx); } @@ -354,7 +359,7 @@ trx->global_read_view = NULL; ut_a(trx->read_view == NULL); - + mem_free(trx); } @@ -803,14 +808,21 @@ trx->mysql_log_file_name = NULL; } - if (trx->mysql_master_log_file_name[0] != '\0') { - /* This database server is a MySQL replication slave */ - trx_sys_update_mysql_binlog_offset( + if (trx->clear_replication_status) { + /* Clear the replication status. */ + trx_sys_update_mysql_relay_offset( + "", -1, "", -1, + TRX_SYS_MYSQL_RELAY_INFO, &mtr); + } else if (trx->mysql_relay_log_file_name[0] != '\0') { + /* This database server is a MySQL replication slave */ + trx_sys_update_mysql_relay_offset( + trx->mysql_relay_log_file_name, + trx->mysql_relay_log_pos, trx->mysql_master_log_file_name, trx->mysql_master_log_pos, - TRX_SYS_MYSQL_MASTER_LOG_INFO, &mtr); + TRX_SYS_MYSQL_RELAY_INFO, &mtr); } - + /* The following call commits the mini-transaction, making the whole transaction committed in the file-based world, at this log sequence number. The transaction becomes 'durable' when @@ -916,19 +928,21 @@ if (srv_unix_file_flush_method == SRV_UNIX_NOSYNC) { /* Write the log but do not flush it to disk */ - log_write_up_to(lsn, LOG_WAIT_ONE_GROUP, - FALSE); + log_write_up_to(lsn, LOG_WAIT_ONE_GROUP, FALSE, + LOG_WRITE_FROM_COMMIT_ASYNC); } else { /* Write the log to the log files AND flush them to disk */ - log_write_up_to(lsn, LOG_WAIT_ONE_GROUP, TRUE); + log_write_up_to(lsn, LOG_WAIT_ONE_GROUP, TRUE, + LOG_WRITE_FROM_COMMIT_SYNC); } } else if (srv_flush_log_at_trx_commit == 2) { /* Write the log but do not flush it to disk */ - log_write_up_to(lsn, LOG_WAIT_ONE_GROUP, FALSE); + log_write_up_to(lsn, LOG_WAIT_ONE_GROUP, FALSE, + LOG_WRITE_FROM_COMMIT_ASYNC); } else { ut_error; } @@ -1657,18 +1671,21 @@ if (srv_unix_file_flush_method == SRV_UNIX_NOSYNC) { /* Write the log but do not flush it to disk */ - log_write_up_to(lsn, LOG_WAIT_ONE_GROUP, FALSE); + log_write_up_to(lsn, LOG_WAIT_ONE_GROUP, FALSE, + LOG_WRITE_FROM_COMMIT_ASYNC); } else { /* Write the log to the log files AND flush them to disk */ - log_write_up_to(lsn, LOG_WAIT_ONE_GROUP, TRUE); + log_write_up_to(lsn, LOG_WAIT_ONE_GROUP, TRUE, + LOG_WRITE_FROM_COMMIT_SYNC); } } else if (srv_flush_log_at_trx_commit == 2) { /* Write the log but do not flush it to disk */ - log_write_up_to(lsn, LOG_WAIT_ONE_GROUP, FALSE); + log_write_up_to(lsn, LOG_WAIT_ONE_GROUP, FALSE, + LOG_WRITE_FROM_COMMIT_ASYNC); } else { ut_error; } @@ -1904,19 +1921,21 @@ if (srv_unix_file_flush_method == SRV_UNIX_NOSYNC) { /* Write the log but do not flush it to disk */ - log_write_up_to(lsn, LOG_WAIT_ONE_GROUP, - FALSE); + log_write_up_to(lsn, LOG_WAIT_ONE_GROUP, FALSE, + LOG_WRITE_FROM_COMMIT_ASYNC); } else { /* Write the log to the log files AND flush them to disk */ - log_write_up_to(lsn, LOG_WAIT_ONE_GROUP, TRUE); + log_write_up_to(lsn, LOG_WAIT_ONE_GROUP, TRUE, + LOG_WRITE_FROM_COMMIT_SYNC); } } else if (srv_flush_log_at_trx_commit == 2) { /* Write the log but do not flush it to disk */ - log_write_up_to(lsn, LOG_WAIT_ONE_GROUP, FALSE); + log_write_up_to(lsn, LOG_WAIT_ONE_GROUP, FALSE, + LOG_WRITE_FROM_COMMIT_ASYNC); } else { ut_error; } diff -ruN base/libmysqld/field.cc mysql50gpl/libmysqld/field.cc --- base/libmysqld/field.cc 2007-03-05 11:21:02.000000000 -0800 +++ mysql50gpl/libmysqld/field.cc 2007-04-20 14:08:20.646003000 -0700 @@ -3579,7 +3579,7 @@ { int error= 0; - if (nr < 0) // Only possible error + if (nr < 0 && !opt_compatible4) // Only possible error { /* if field is unsigned and value is signed (< 0) or @@ -3734,6 +3734,56 @@ add_zerofill_and_unsigned(res); } +/**************************************************************************** + Functions to support conversions for double and float +****************************************************************************/ + +static bool IsInf(const char *from, uint len) { + return (len == 3 && !strncasecmp(from, "inf", 3)); +} + +static bool IsNaN(const char *from, uint len) { + return (len == 3 && !strncasecmp(from, "nan", 3)); +} + +static double StrToDouble(Field *field, const char *from, uint len, + CHARSET_INFO *cs, + enum_check_fields cuted_fields, int *error) +{ + char *end; + *error = 0; + + // First try to convert the string to a double. If that fails, + // check if the string is 'inf' or 'nan'. + double nr= my_strntod(cs,(char*) from, len, &end, error); + if (*error || (!len || (uint) (end-from) != len && cuted_fields)) + { + // There was an error in the conversion. + + if (IsInf(from, len)) + { + *error = 0; + return INFINITY; + } + else if (IsNaN(from, len)) + { + *error = 0; + return NAN; + } + else + { + field->set_warning(MYSQL_ERROR::WARN_LEVEL_WARN, + (*error ? ER_WARN_DATA_OUT_OF_RANGE + : WARN_DATA_TRUNCATED), 1); + *error= *error ? 1 : 2; + return nr; + } + } + else + { + return nr; + } +} /**************************************************************************** single precision float @@ -3743,14 +3793,8 @@ { int error; char *end; - double nr= my_strntod(cs,(char*) from,len,&end,&error); - if (error || (!len || (uint) (end-from) != len && - table->in_use->count_cuted_fields)) - { - set_warning(MYSQL_ERROR::WARN_LEVEL_WARN, - (error ? ER_WARN_DATA_OUT_OF_RANGE : WARN_DATA_TRUNCATED), 1); - error= error ? 1 : 2; - } + double nr= StrToDouble(this, (char*) from, len, cs, + table->in_use->count_cuted_fields, &error); Field_float::store(nr); return error; } @@ -3758,17 +3802,10 @@ int Field_float::store(double nr) { - float j; + float j = (float) nr; int error= 0; - if (isnan(nr)) - { - j= 0; - set_null(); - set_warning(MYSQL_ERROR::WARN_LEVEL_WARN, ER_WARN_DATA_OUT_OF_RANGE, 1); - error= 1; - } - else if (unsigned_flag && nr < 0) + if (unsigned_flag && nr < 0) { j= 0; set_warning(MYSQL_ERROR::WARN_LEVEL_WARN, ER_WARN_DATA_OUT_OF_RANGE, 1); @@ -3776,38 +3813,37 @@ } else { - double max_value; - if (dec >= NOT_FIXED_DEC) - { - max_value= FLT_MAX; - } - else + // If the type is declared to use a fixed number of digits, then enforce + // max and min values. NaN, +INF and -INF are not supported. + if (dec < NOT_FIXED_DEC) { uint tmp=min(field_length,array_elements(log_10)-1); - max_value= (log_10[tmp]-1)/log_10[dec]; + double max_value= (log_10[tmp]-1)/log_10[dec]; /* The following comparison is needed to not get an overflow if nr is close to FLT_MAX */ if (fabs(nr) < FLT_MAX/10.0e+32) nr= floor(nr*log_10[dec]+0.5)/log_10[dec]; + + // This raises a warning for -INF and +INF + if (nr < -max_value) + { + j= (float)-max_value; + set_warning(MYSQL_ERROR::WARN_LEVEL_WARN, ER_WARN_DATA_OUT_OF_RANGE, 1); + error= 1; + } + else if (nr > max_value) + { + j= (float)max_value; + set_warning(MYSQL_ERROR::WARN_LEVEL_WARN, ER_WARN_DATA_OUT_OF_RANGE, 1); + error= 1; + } + else + j= (float) nr; } - if (nr < -max_value) - { - j= (float)-max_value; - set_warning(MYSQL_ERROR::WARN_LEVEL_WARN, ER_WARN_DATA_OUT_OF_RANGE, 1); - error= 1; - } - else if (nr > max_value) - { - j= (float)max_value; - set_warning(MYSQL_ERROR::WARN_LEVEL_WARN, ER_WARN_DATA_OUT_OF_RANGE, 1); - error= 1; - } - else - j= (float) nr; } - + #ifdef WORDS_BIGENDIAN if (table->s->db_low_byte_first) { @@ -3991,11 +4027,9 @@ } else { - ushort exp_part=(((ushort) tmp[0] << 8) | (ushort) tmp[1] | - (ushort) 32768); - exp_part+= (ushort) 1 << (16-1-FLT_EXP_DIG); - tmp[0]= (uchar) (exp_part >> 8); - tmp[1]= (uchar) exp_part; + // Order values as -inf, normal, +inf, nan + // see change_double_for_sort + tmp[0] |= 128; } } } @@ -4030,15 +4064,8 @@ int Field_double::store(const char *from,uint len,CHARSET_INFO *cs) { int error; - char *end; - double nr= my_strntod(cs,(char*) from, len, &end, &error); - if (error || (!len || (uint) (end-from) != len && - table->in_use->count_cuted_fields)) - { - set_warning(MYSQL_ERROR::WARN_LEVEL_WARN, - (error ? ER_WARN_DATA_OUT_OF_RANGE : WARN_DATA_TRUNCATED), 1); - error= error ? 1 : 2; - } + double nr= StrToDouble(this, (char*) from, len, cs, + table->in_use->count_cuted_fields, &error); Field_double::store(nr); return error; } @@ -4048,44 +4075,36 @@ { int error= 0; - if (isnan(nr)) + if (unsigned_flag && nr < 0) { nr= 0; - set_null(); set_warning(MYSQL_ERROR::WARN_LEVEL_WARN, ER_WARN_DATA_OUT_OF_RANGE, 1); error= 1; } - else if (unsigned_flag && nr < 0) - { - nr= 0; - set_warning(MYSQL_ERROR::WARN_LEVEL_WARN, ER_WARN_DATA_OUT_OF_RANGE, 1); - error= 1; - } - else + else { - double max_value; - if (not_fixed) - { - max_value= DBL_MAX; - } - else + // If the type is declared to use a fixed number of digits, then enforce + // max and min values. NaN, +INF and -INF are not supported. + if (dec < NOT_FIXED_DEC) { uint tmp=min(field_length,array_elements(log_10)-1); - max_value= (log_10[tmp]-1)/log_10[dec]; + double max_value= (log_10[tmp]-1)/log_10[dec]; if (fabs(nr) < DBL_MAX/10.0e+32) nr= floor(nr*log_10[dec]+0.5)/log_10[dec]; - } - if (nr < -max_value) - { - nr= -max_value; - set_warning(MYSQL_ERROR::WARN_LEVEL_WARN, ER_WARN_DATA_OUT_OF_RANGE, 1); - error= 1; - } - else if (nr > max_value) - { - nr= max_value; - set_warning(MYSQL_ERROR::WARN_LEVEL_WARN, ER_WARN_DATA_OUT_OF_RANGE, 1); - error= 1; + + // This raises a warning for -INF and +INF + if (nr < -max_value) + { + nr= -max_value; + set_warning(MYSQL_ERROR::WARN_LEVEL_WARN, ER_WARN_DATA_OUT_OF_RANGE, 1); + error= 1; + } + else if (nr > max_value) + { + nr= max_value; + set_warning(MYSQL_ERROR::WARN_LEVEL_WARN, ER_WARN_DATA_OUT_OF_RANGE, 1); + error= 1; + } } } diff -ruN base/libmysqld/filesort.cc mysql50gpl/libmysqld/filesort.cc --- base/libmysqld/filesort.cc 2007-03-05 11:21:22.000000000 -0800 +++ mysql50gpl/libmysqld/filesort.cc 2007-04-20 14:08:21.199979000 -0700 @@ -1522,19 +1522,17 @@ #endif } #endif + /* Order values as: + * -INF < negative < -0 < +0 < positive < +INF < NaN */ if (tmp[0] & 128) /* Negative */ { /* make complement */ - uint i; - for (i=0 ; i < sizeof(nr); i++) - tmp[i]=tmp[i] ^ (uchar) 255; + uint i; + for (i=0 ; i < sizeof(nr); i++) + tmp[i]=tmp[i] ^ (uchar) 255; } else - { /* Set high and move exponent one up */ - ushort exp_part=(((ushort) tmp[0] << 8) | (ushort) tmp[1] | - (ushort) 32768); - exp_part+= (ushort) 1 << (16-1-DBL_EXP_DIG); - tmp[0]= (uchar) (exp_part >> 8); - tmp[1]= (uchar) exp_part; + { /* Set high */ + tmp[0] |= 128; } } } diff -ruN base/libmysqld/ha_innodb.cc mysql50gpl/libmysqld/ha_innodb.cc --- base/libmysqld/ha_innodb.cc 2007-03-05 11:21:41.000000000 -0800 +++ mysql50gpl/libmysqld/ha_innodb.cc 2007-04-20 14:08:22.756937000 -0700 @@ -147,7 +147,7 @@ innobase_additional_mem_pool_size, innobase_file_io_threads, innobase_lock_wait_timeout, innobase_force_recovery, innobase_open_files; - +long innobase_read_io_threads, innobase_write_io_threads; longlong innobase_buffer_pool_size, innobase_log_file_size; /* The default values for the following char* start-up parameters @@ -175,6 +175,11 @@ my_bool innobase_rollback_on_timeout = FALSE; my_bool innobase_create_status_file = FALSE; +/* Max number of IO requests merged to perform large IO in background + IO threads. +*/ +long innobase_max_merged_io = 64; + static char *internal_innobase_data_file_path = NULL; /* The following counter is used to convey information to InnoDB @@ -773,10 +778,8 @@ if (trx == NULL) { DBUG_ASSERT(thd != NULL); - trx = trx_allocate_for_mysql(); + trx = ha_innobase::allocate_trx(thd, &((*thd).query)); - trx->mysql_thd = thd; - trx->mysql_query_str = &(thd->query); trx->active_trans = 0; /* Update the info whether we should skip XA steps that eat @@ -1374,6 +1377,8 @@ srv_mem_pool_size = (ulint) innobase_additional_mem_pool_size; srv_n_file_io_threads = (ulint) innobase_file_io_threads; + srv_n_read_io_threads = (ulint) innobase_read_io_threads; + srv_n_write_io_threads = (ulint) innobase_write_io_threads; srv_lock_wait_timeout = (ulint) innobase_lock_wait_timeout; srv_force_recovery = (ulint) innobase_force_recovery; @@ -1532,11 +1537,25 @@ if (thd && thd->slave_thread) { /* Update the replication position info inside InnoDB */ + /* Unfortunately, we need all information here to recover + * replication slave execution status because events in + * BEGIN/COMMIT block do not carry the correct master-log + * position. + */ + trx->mysql_relay_log_file_name + = active_mi->rli.event_relay_log_name; + trx->mysql_relay_log_pos = ((ib_longlong) + active_mi->rli.future_event_relay_log_pos); + trx->mysql_master_log_file_name = active_mi->rli.group_master_log_name; trx->mysql_master_log_pos = ((ib_longlong) active_mi->rli.future_group_master_log_pos); } + + if (current_thd->variables.innodb_clear_replication_status) { + trx->clear_replication_status = TRUE; + } #endif /* HAVE_REPLICATION */ trx_commit_for_mysql(trx); @@ -3275,6 +3294,8 @@ error = row_insert_for_mysql((byte*) record, prebuilt); + if (error == DB_SUCCESS) rows_changed++; + if (error == DB_SUCCESS && auto_inc_used) { /* Fetch the value that was set in the autoincrement field */ @@ -3526,6 +3547,8 @@ error = row_update_for_mysql((byte*) old_row, prebuilt); + if (error == DB_SUCCESS) rows_changed++; + innodb_srv_conc_exit_innodb(prebuilt->trx); error = convert_error_code_to_mysql(error, user_thd); @@ -3574,6 +3597,8 @@ error = row_update_for_mysql((byte*) record, prebuilt); + if (error == DB_SUCCESS) rows_changed++; + innodb_srv_conc_exit_innodb(prebuilt->trx); error = convert_error_code_to_mysql(error, user_thd); @@ -3835,6 +3860,9 @@ if (ret == DB_SUCCESS) { error = 0; table->status = 0; + rows_read++; + if (active_index >= 0 && active_index < MAX_KEY) + index_rows_read[active_index]++; } else if (ret == DB_RECORD_NOT_FOUND) { error = HA_ERR_KEY_NOT_FOUND; @@ -3988,6 +4016,9 @@ if (ret == DB_SUCCESS) { error = 0; table->status = 0; + rows_read++; + if (active_index >= 0 && active_index < MAX_KEY) + index_rows_read[active_index]++; } else if (ret == DB_RECORD_NOT_FOUND) { error = HA_ERR_END_OF_FILE; @@ -4594,10 +4625,7 @@ trx_search_latch_release_if_reserved(parent_trx); - trx = trx_allocate_for_mysql(); - - trx->mysql_thd = thd; - trx->mysql_query_str = &((*thd).query); + trx = allocate_trx(thd, &((*thd).query)); if (thd->options & OPTION_NO_FOREIGN_KEY_CHECKS) { trx->check_foreigns = FALSE; @@ -4859,10 +4887,7 @@ srv_lower_case_table_names = FALSE; } - trx = trx_allocate_for_mysql(); - - trx->mysql_thd = current_thd; - trx->mysql_query_str = &((*current_thd).query); + trx = allocate_trx(current_thd, &((*current_thd).query)); if (thd->options & OPTION_NO_FOREIGN_KEY_CHECKS) { trx->check_foreigns = FALSE; @@ -4951,9 +4976,7 @@ #ifdef __WIN__ innobase_casedn_str(namebuf); #endif - trx = trx_allocate_for_mysql(); - trx->mysql_thd = current_thd; - trx->mysql_query_str = &((*current_thd).query); + trx = ha_innobase::allocate_trx(current_thd, &((*current_thd).query)); if (current_thd->options & OPTION_NO_FOREIGN_KEY_CHECKS) { trx->check_foreigns = FALSE; @@ -5017,9 +5040,7 @@ srv_lower_case_table_names = FALSE; } - trx = trx_allocate_for_mysql(); - trx->mysql_thd = current_thd; - trx->mysql_query_str = &((*current_thd).query); + trx = allocate_trx(current_thd, &((*current_thd).query)); if (current_thd->options & OPTION_NO_FOREIGN_KEY_CHECKS) { trx->check_foreigns = FALSE; @@ -6268,7 +6289,7 @@ Protocol* protocol = thd->protocol; trx_t* trx; static const char truncated_msg[] = "... truncated...\n"; - const long MAX_STATUS_SIZE = 64000; + const long MAX_STATUS_SIZE = 128000; ulint trx_list_start = ULINT_UNDEFINED; ulint trx_list_end = ULINT_UNDEFINED; @@ -6595,11 +6616,13 @@ unexpected if an obsolete consistent read view would be used. */ - if (srv_locks_unsafe_for_binlog && + if ((srv_locks_unsafe_for_binlog || !opt_bin_log) && prebuilt->trx->isolation_level != TRX_ISO_SERIALIZABLE && (lock_type == TL_READ || lock_type == TL_READ_NO_INSERT) && (thd->lex->sql_command == SQLCOM_INSERT_SELECT || thd->lex->sql_command == SQLCOM_UPDATE || + thd->lex->sql_command == SQLCOM_DELETE || + thd->lex->sql_command == SQLCOM_REPLACE_SELECT || thd->lex->sql_command == SQLCOM_CREATE_TABLE)) { /* In case we have innobase_locks_unsafe_for_binlog @@ -7322,4 +7345,59 @@ (cursor_view_t*) curview); } +char* +ha_innobase::get_mysql_relay_log_name() +{ + return(trx_sys_mysql_relay_log_name); +} + +ulonglong +ha_innobase::get_mysql_relay_log_pos() +{ + return(trx_sys_mysql_relay_log_pos); +} + +char* +ha_innobase::get_mysql_master_log_name() +{ + return(trx_sys_mysql_master_log_name); +} + +ulonglong +ha_innobase::get_mysql_master_log_pos() +{ + return(trx_sys_mysql_master_log_pos); +} + +void ha_innobase::print_mysql_relay_log_pos() { + trx_sys_print_mysql_relay_log_pos(FALSE); +} + +void ha_innobase::reset_mysql_relay_info() +{ + strmake(trx_sys_mysql_relay_log_name, "", strlen("")); + trx_sys_mysql_relay_log_pos = -1; + + strmake(trx_sys_mysql_master_log_name, "", strlen("")); + trx_sys_mysql_master_log_pos = -1; + + // TODO(wei): we should start a mini-transaction to commit the + // information to disk. +} + +/* allocate an innodb transaction */ +trx_t* ha_innobase::allocate_trx(THD *thd, char **query_str) { + trx_t *trx = trx_allocate_for_mysql(); + trx->mysql_thd = thd; + trx->mysql_query_str = query_str; + + /* If we allow replication sql thread to enter innodb without + * ticket limit, set the field to indicate that. + */ + if (thd && thd->slave_thread && rpl_always_enter_innodb) + trx->always_enter_innodb = TRUE; + + return trx; +} + #endif /* HAVE_INNOBASE_DB */ diff -ruN base/libmysqld/ha_myisam.cc mysql50gpl/libmysqld/ha_myisam.cc --- base/libmysqld/ha_myisam.cc 2007-03-05 11:21:21.000000000 -0800 +++ mysql50gpl/libmysqld/ha_myisam.cc 2007-04-20 14:08:25.958844000 -0700 @@ -627,7 +627,9 @@ if ((error= update_auto_increment())) return error; } - return mi_write(file,buf); + int error=mi_write(file,buf); + if (!error) rows_changed++; + return error; } int ha_myisam::check(THD* thd, HA_CHECK_OPT* check_opt) @@ -1468,13 +1470,17 @@ statistic_increment(table->in_use->status_var.ha_update_count,&LOCK_status); if (table->timestamp_field_type & TIMESTAMP_AUTO_SET_ON_UPDATE) table->timestamp_field->set_time(); - return mi_update(file,old_data,new_data); + int error=mi_update(file,old_data,new_data); + if (!error) rows_changed++; + return error; } int ha_myisam::delete_row(const byte * buf) { statistic_increment(table->in_use->status_var.ha_delete_count,&LOCK_status); - return mi_delete(file,buf); + int error=mi_delete(file,buf); + if (!error) rows_changed++; + return error; } int ha_myisam::index_read(byte * buf, const byte * key, @@ -1485,6 +1491,13 @@ &LOCK_status); int error=mi_rkey(file,buf,active_index, key, key_len, find_flag); table->status=error ? STATUS_NOT_FOUND: 0; + if (!error) { + rows_read++; + + int inx = (active_index == -1) ? file->lastinx : active_index; + if (inx >= 0 && inx < MAX_KEY) + index_rows_read[inx]++; + } return error; } @@ -1495,6 +1508,13 @@ &LOCK_status); int error=mi_rkey(file,buf,index, key, key_len, find_flag); table->status=error ? STATUS_NOT_FOUND: 0; + if (!error) { + rows_read++; + + int inx = (active_index == -1) ? file->lastinx : active_index; + if (inx >= 0 && inx < MAX_KEY) + index_rows_read[inx]++; + } return error; } @@ -1505,6 +1525,13 @@ &LOCK_status); int error=mi_rkey(file,buf,active_index, key, key_len, HA_READ_PREFIX_LAST); table->status=error ? STATUS_NOT_FOUND: 0; + if (!error) { + rows_read++; + + int inx = (active_index == -1) ? file->lastinx : active_index; + if (inx >= 0 && inx < MAX_KEY) + index_rows_read[inx]++; + } return error; } @@ -1515,6 +1542,13 @@ &LOCK_status); int error=mi_rnext(file,buf,active_index); table->status=error ? STATUS_NOT_FOUND: 0; + if (!error) { + rows_read++; + + int inx = (active_index == -1) ? file->lastinx : active_index; + if (inx >= 0 && inx < MAX_KEY) + index_rows_read[inx]++; + } return error; } @@ -1525,6 +1559,13 @@ &LOCK_status); int error=mi_rprev(file,buf, active_index); table->status=error ? STATUS_NOT_FOUND: 0; + if (!error) { + rows_read++; + + int inx = (active_index == -1) ? file->lastinx : active_index; + if (inx >= 0 && inx < MAX_KEY) + index_rows_read[inx]++; + } return error; } @@ -1535,6 +1576,13 @@ &LOCK_status); int error=mi_rfirst(file, buf, active_index); table->status=error ? STATUS_NOT_FOUND: 0; + if (!error) { + rows_read++; + + int inx = (active_index == -1) ? file->lastinx : active_index; + if (inx >= 0 && inx < MAX_KEY) + index_rows_read[inx]++; + } return error; } @@ -1545,6 +1593,13 @@ &LOCK_status); int error=mi_rlast(file, buf, active_index); table->status=error ? STATUS_NOT_FOUND: 0; + if (!error) { + rows_read++; + + int inx = (active_index == -1) ? file->lastinx : active_index; + if (inx >= 0 && inx < MAX_KEY) + index_rows_read[inx]++; + } return error; } @@ -1557,6 +1612,13 @@ &LOCK_status); int error=mi_rnext_same(file,buf); table->status=error ? STATUS_NOT_FOUND: 0; + if (!error) { + rows_read++; + + int inx = (active_index == -1) ? file->lastinx : active_index; + if (inx >= 0 && inx < MAX_KEY) + index_rows_read[inx]++; + } return error; } @@ -1574,6 +1636,7 @@ &LOCK_status); int error=mi_scan(file, buf); table->status=error ? STATUS_NOT_FOUND: 0; + if (!error) rows_read++; return error; } @@ -1588,6 +1651,7 @@ &LOCK_status); int error=mi_rrnd(file, buf, my_get_ptr(pos,ref_length)); table->status=error ? STATUS_NOT_FOUND: 0; + if (!error) rows_read++; return error; } @@ -1868,4 +1932,3 @@ { return (uint)file->state->checksum; } - diff -ruN base/libmysqld/handler.cc mysql50gpl/libmysqld/handler.cc --- base/libmysqld/handler.cc 2007-03-05 11:21:13.000000000 -0800 +++ mysql50gpl/libmysqld/handler.cc 2007-04-20 14:08:26.742818000 -0700 @@ -20,6 +20,12 @@ #pragma implementation // gcc: Class implementation #endif +/* + * Ugh. Something is fishy with the SAFE_MUTEX stuff in include/my_pthread.h. + * This makes things compile with gcc 4.1 + */ +#include + #include "mysql_priv.h" #include "ha_heap.h" #include "ha_myisam.h" @@ -106,6 +112,7 @@ NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, HTON_NO_FLAGS }; #endif + #include #include @@ -465,6 +472,9 @@ (*ht)->savepoint_offset= savepoint_alloc_size; savepoint_alloc_size+= tmp; (*ht)->slot= total_ha++; +#if DBUG_ON + fprintf(stderr, "init handlerton(%d) for %s\n", total_ha, (*ht)->name); +#endif if ((*ht)->prepare) total_ha_2pc++; } @@ -490,6 +500,10 @@ } DBUG_ASSERT(total_ha < MAX_HA); + if (total_ha >= MAX_HA) { + sql_print_error("Too many handlers, increase MAX_HA"); + return 1; + } /* Check if there is a transaction-capable storage engine besides the binary log (which is considered a transaction-capable storage engine in @@ -757,6 +771,7 @@ error=1; } statistic_increment(thd->status_var.ha_commit_count,&LOCK_status); + thd->diff_commit_trans++; *ht= 0; } trans->nht=0; @@ -813,6 +828,7 @@ error=1; } statistic_increment(thd->status_var.ha_rollback_count,&LOCK_status); + thd->diff_rollback_trans++; *ht= 0; } trans->nht=0; @@ -1201,6 +1217,7 @@ error=1; } statistic_increment(thd->status_var.ha_rollback_count,&LOCK_status); + thd->diff_rollback_trans++; *ht=0; // keep it conveniently zero-filled } DBUG_RETURN(error); @@ -1425,6 +1442,8 @@ else dupp_ref=ref+ALIGN_SIZE(ref_length); } + rows_read = rows_changed = 0; + memset(index_rows_read, 0, sizeof(index_rows_read)); DBUG_RETURN(error); } @@ -2197,6 +2216,97 @@ return error; } +// Updates the global table stats with the TABLE this handler represents. +void handler::update_global_table_stats() { + if (!rows_read && !rows_changed) return; // Nothing to update. + // table_cache_key is db_name + '\0' + table_name + '\0'. + if (!table->s || !table->s->table_cache_key || !table->s->table_name) return; + + TABLE_STATS* table_stats; + char key[NAME_LEN * 2 + 2]; + // [db] + '.' + [table] + sprintf(key, "%s.%s", table->s->table_cache_key, table->s->table_name); + + pthread_mutex_lock(&LOCK_global_table_stats); + // Gets the global table stats, creating one if necessary. + if (!(table_stats = (TABLE_STATS*)hash_search(&global_table_stats, + (byte*)key, + strlen(key)))) { + if (!(table_stats = ((TABLE_STATS*) + my_malloc(sizeof(TABLE_STATS), MYF(MY_WME))))) { + // Out of memory. + sql_print_error("Allocating table stats failed."); + goto end; + } + strncpy(table_stats->table, key, sizeof(table_stats->table)); + table_stats->rows_read = 0; + table_stats->rows_changed = 0; + table_stats->rows_changed_x_indexes = 0; + + if (my_hash_insert(&global_table_stats, (byte*)table_stats)) { + // Out of memory. + sql_print_error("Inserting table stats failed."); + my_free((char*)table_stats, 0); + goto end; + } + } + // Updates the global table stats. + table_stats->rows_read += rows_read; + table_stats->rows_changed += rows_changed; + table_stats->rows_changed_x_indexes += + rows_changed * (table->s->keys ? table->s->keys : 1); + rows_read = rows_changed = 0; +end: + pthread_mutex_unlock(&LOCK_global_table_stats); +} + +// Updates the global index stats with this handler's accumulated index reads. +void handler::update_global_index_stats() { + // table_cache_key is db_name + '\0' + table_name + '\0'. + if (!table->s || !table->s->table_cache_key || !table->s->table_name) return; + + for (int x = 0; x < table->s->keys; x++) { + if (index_rows_read[x]) { + // Rows were read using this index. + KEY* key_info = &table->key_info[x]; + + if (!key_info->name) continue; + + INDEX_STATS* index_stats; + char key[NAME_LEN * 3 + 3]; + // [db] + '.' + [table] + '.' + [index] + sprintf(key, "%s.%s.%s", table->s->table_cache_key, + table->s->table_name, key_info->name); + + pthread_mutex_lock(&LOCK_global_index_stats); + // Gets the global index stats, creating one if necessary. + if (!(index_stats = (INDEX_STATS*)hash_search(&global_index_stats, + (byte*)key, + strlen(key)))) { + if (!(index_stats = ((INDEX_STATS*) + my_malloc(sizeof(INDEX_STATS), MYF(MY_WME))))) { + // Out of memory. + sql_print_error("Allocating index stats failed."); + goto end; + } + strncpy(index_stats->index, key, sizeof(index_stats->index)); + index_stats->rows_read = 0; + + if (my_hash_insert(&global_index_stats, (byte*)index_stats)) { + // Out of memory. + sql_print_error("Inserting index stats failed."); + my_free((char*)index_stats, 0); + goto end; + } + } + // Updates the global index stats. + index_stats->rows_read += index_rows_read[x]; + index_rows_read[x] = 0; +end: + pthread_mutex_unlock(&LOCK_global_index_stats); + } + } +} /**************************************************************************** ** Some general functions that isn't in the handler class diff -ruN base/libmysqld/item.cc mysql50gpl/libmysqld/item.cc --- base/libmysqld/item.cc 2007-03-05 11:21:03.000000000 -0800 +++ mysql50gpl/libmysqld/item.cc 2007-04-20 14:08:27.135792000 -0700 @@ -24,6 +24,7 @@ #include "sp_head.h" #include "sql_trigger.h" #include "sql_select.h" +#include "hash_64.h" static void mark_as_dependent(THD *thd, SELECT_LEX *last, SELECT_LEX *current, @@ -6575,6 +6576,62 @@ ((TABLE_LIST *)data)->hide_view_error(thd); } +ulonglong hash_args(Item **args, + uint arg_count, + const ulonglong initial_value) { + uint null_default = 0x0a0b0c0d; + ulonglong row_hash = initial_value; + for (int a = 0; a < arg_count; ++a) { + // The argument is evaluated to determine when it is null. + Item_result result_type = args[a]->result_type(); + + // Timestamp format changed from MySQL 4 to 5. This makes the result + // match that from 4 and uses val_int() for Timestamp which is faster. + if (result_type == STRING_RESULT && + args[a]->field_type() == MYSQL_TYPE_TIMESTAMP) { + result_type = INT_RESULT; + } + + switch (result_type) { + case STRING_RESULT: + case DECIMAL_RESULT: + { + String s; + String *sp = args[a]->val_str(&s); + if (!args[a]->null_value) + row_hash = hash64((const void*)sp->ptr(), sp->length(), row_hash); + else + row_hash = hash64((const void*)&null_default, sizeof(null_default), + row_hash); + } + break; + case REAL_RESULT: + { + double value = args[a]->val_real(); + if (!args[a]->null_value) + row_hash = hash64((const void*)&value, sizeof(value), row_hash); + else + row_hash = hash64((const void*)&null_default, sizeof(null_default), + row_hash); + } + break; + case INT_RESULT: + { + longlong value = args[a]->val_int(); + if (!args[a]->null_value) + row_hash = hash64((const void*)&value, sizeof(value), row_hash); + else + row_hash = hash64((const void*)&null_default, sizeof(null_default), + row_hash); + } + break; + default: + break; + } + } + return row_hash; +} + /***************************************************************************** ** Instantiate templates *****************************************************************************/ diff -ruN base/libmysqld/item_create.cc mysql50gpl/libmysqld/item_create.cc --- base/libmysqld/item_create.cc 2007-03-05 11:21:12.000000000 -0800 +++ mysql50gpl/libmysqld/item_create.cc 2007-04-20 14:08:27.547793000 -0700 @@ -720,3 +720,9 @@ { return new Item_func_last_day(a); } + +Item *create_func_ieee754_to_string(Item* a) +{ + return new Item_func_ieee754_to_string(a); +} + diff -ruN base/libmysqld/item_func.cc mysql50gpl/libmysqld/item_func.cc --- base/libmysqld/item_func.cc 2007-03-05 11:21:56.000000000 -0800 +++ mysql50gpl/libmysqld/item_func.cc 2007-04-20 14:08:27.880789000 -0700 @@ -4380,15 +4380,49 @@ return (!var_entry || current_thd->query_id != var_entry->update_query_id); } +enum_field_types Item_func_get_user_var::field_type() const +{ + // TODO(mcallaghan) -- the MySQL 4 behavior is to return the + // value in its datatype. The MySQL 5 behavior is to always use + // string. This restores the MySQL 4 behavior and longlong is + // used for 'set @v=2; select @v' + switch (result_type()) + { + case INT_RESULT: + return MYSQL_TYPE_LONGLONG; + case REAL_RESULT: + return MYSQL_TYPE_DOUBLE; + case DECIMAL_RESULT: + return MYSQL_TYPE_NEWDECIMAL; + case STRING_RESULT: + default: + return MYSQL_TYPE_VARCHAR; + } +} enum Item_result Item_func_get_user_var::result_type() const { + // Cache the value returned here, otherwise multiple calls to this + // function can return different values, for example, when @v is undefined + // select @v, (@v := 1), @v + // At typecheck time, @v is undefined and this func returns STRING_RESULT + // for the first and third terms on the select list above will. At run + // time after the second term is evaluted by + // Item_func_set_user_var::val_int(), 'v' is set in the user variables hash + // table. When this func is then called for the third item in the select + // list it will return INT_RESULT. + + if (cached_result_type_valid) + return cached_result_type; + + cached_result_type_valid = true; user_var_entry *entry; if (!(entry = (user_var_entry*) hash_search(¤t_thd->user_vars, (byte*) name.str, name.length))) - return STRING_RESULT; - return entry->type; + return (cached_result_type = STRING_RESULT); + else + return (cached_result_type = entry->type); } @@ -5336,3 +5370,30 @@ } return res; } + +void Item_func_hash::fix_length_and_dec() +{ + decimals=0; + max_length=21; + maybe_null=0; + unsigned_flag=1; +} + +String *Item_func_hash::val_str(String *str) +{ + ulonglong nr = (ulonglong) val_int(); + str->set(nr, str->charset()); + return str; +} + +double Item_func_hash::val_real() +{ + ulonglong nr = (ulonglong) val_int(); + return (double) nr; +} + +longlong Item_func_hash::val_int() +{ + null_value = 0; // This always evaluates to a non-null value. + return (longlong) hash_args(args, arg_count, HASH_64_INIT); +} diff -ruN base/libmysqld/item_strfunc.cc mysql50gpl/libmysqld/item_strfunc.cc --- base/libmysqld/item_strfunc.cc 2007-03-05 11:21:23.000000000 -0800 +++ mysql50gpl/libmysqld/item_strfunc.cc 2007-04-20 14:08:28.207778000 -0700 @@ -32,6 +32,7 @@ #include "sha1.h" #include "my_aes.h" C_MODE_START +#include #include "../mysys/my_static.h" // For soundex_map C_MODE_END @@ -3298,3 +3299,62 @@ strmov(s+18, clock_seq_and_node_str); return str; } +String* Item_func_ieee754_to_string::val_str(String *str) +{ + null_value= 0; + switch (args[0]->result_type()) + { + case REAL_RESULT: + { + // TODO(mcallaghan): distinguish double from float + double res = args[0]->val_real(); + if (args[0]->null_value) { + // Null argument, return NULL + null_value= 1; + return (String*) 0; + } else { + // Use 17 digits of precision so that the conversion from + // double -> decimal -> double is lossless. + char buf[30]; + if (isnan(res)) { + str->copy("nan", strlen("nan"), &my_charset_bin); + } else if (isinf(res)) { + if (res < 0) + str->copy("-inf", strlen("-inf"), &my_charset_bin); + else + str->copy("inf", strlen("inf"), &my_charset_bin); + } else { + int num_chars = sprintf(buf, "%-.17g", res); + DBUG_ASSERT(num_chars < 30); + if (num_chars < 1 || num_chars >= 30) { + sql_print_error("IEEE754_to_string failed"); + null_value= 1; + return (String*) 0; + } + str->copy(buf, num_chars, &my_charset_bin); + } + } + return str; + } + case INT_RESULT: + case STRING_RESULT: + default: + { + String *res = args[0]->val_str(str); + if (!res) { + // Null argument, return NULL + null_value= 1; + return (String*) 0; + } else { + // Return a string with <= 24 characters to respect max_length. + if (res->length() > 24) { + char buf[24]; + memcpy(buf, res->c_ptr(), 24); + res->copy(buf, 24, &my_charset_bin); + } + return res; + } + } + } +} + diff -ruN base/libmysqld/item_sum.cc mysql50gpl/libmysqld/item_sum.cc --- base/libmysqld/item_sum.cc 2007-03-05 11:21:41.000000000 -0800 +++ mysql50gpl/libmysqld/item_sum.cc 2007-04-20 14:08:28.544775000 -0700 @@ -2313,6 +2313,22 @@ } +bool Item_sum_unordered_checksum::add() +{ + // The hash for each row xor'd to make this row order independent. + bits ^= hash_args(args, arg_count, HASH_64_INIT); + return 0; +} + +bool Item_sum_ordered_checksum::add() +{ + // The hash for each row is the initial hash for the next row to make + // this row order dependent. + bits = hash_args(args, arg_count, bits); + return 0; +} + + /**************************************************************************** ** COUNT(DISTINCT ...) ****************************************************************************/ diff -ruN base/libmysqld/log.cc mysql50gpl/libmysqld/log.cc --- base/libmysqld/log.cc 2007-03-05 11:21:42.000000000 -0800 +++ mysql50gpl/libmysqld/log.cc 2007-04-20 14:08:42.663338000 -0700 @@ -32,6 +32,16 @@ #include "message.h" #endif +#ifdef HAVE_INNOBASE_DB +#include "ha_innodb.h" +#endif + + +/* The max InnoDB allowed replication binlog filename length: the value should + * be the same as TRX_SYS_MYSQL_RELAY_NAME_LEN. + */ +#define MAX_INNODB_BINLOG_FILENAME_LEN 250 + MYSQL_LOG mysql_log, mysql_slow_log, mysql_bin_log; ulong sync_binlog_counter= 0; @@ -47,6 +57,17 @@ static int binlog_rollback(THD *thd, bool all); static int binlog_prepare(THD *thd, bool all); +/* Queries with the correct log position in the event */ +struct QueryLogEvent { + const char *query_; + const int query_length_; +}; + +QueryLogEvent query_with_log[] = { + { "BEGIN", strlen("BEGIN") }, + { "COMMIT", strlen("COMMIT") } +}; + handlerton binlog_hton = { "binlog", SHOW_OPTION_YES, @@ -368,6 +389,7 @@ :bytes_written(0), last_time(0), query_start(0), name(0), prepared_xids(0), log_type(LOG_CLOSED), file_id(1), open_count(1), write_error(FALSE), inited(FALSE), need_start_event(TRUE), + active_mi_(NULL), mule_binlog_(0), description_event_for_exec(0), description_event_for_queue(0) { /* @@ -471,7 +493,10 @@ const char *log_name) { File index_file_nr= -1; - DBUG_ASSERT(!my_b_inited(&index_file)); + + /* If the index is already opened, do not open it again. */ + if (my_b_inited(&index_file)) + return FALSE; /* First open of this class instance @@ -502,6 +527,13 @@ return FALSE; } +int MYSQL_LOG::close_index_file() { + if (my_b_inited(&index_file)) { + end_io_cache(&index_file); + my_close(index_file.file, MYF(0)); + } + return 0; +} /* Open a (new) log file. @@ -681,6 +713,37 @@ goto err; bytes_written+= description_event_for_queue->data_written; } + + if (rpl_transaction_enabled) { + /* Check to make sure that filename is not longer than the limit inside + * InnoDB's transaction header. + */ + if (strlen(log_file_name) >= MAX_INNODB_BINLOG_FILENAME_LEN) { + sql_print_error("Too long binlog filename(%s) for InnoDB: %d bytes", + log_file_name, MAX_INNODB_BINLOG_FILENAME_LEN); + goto err; + } + + /* We need a special event in each relay-log file to make sure that each + * file always has the correct master-log information itself. + * So, we always write a Rotate_log_event with server_id as + * MASTER_INFO_SERVER_ID. at the beginning of the relay-log with the + * corresponding master-log information. + */ + MASTER_INFO *mi = get_master_info(); + if (mi != NULL && strlen(mi->master_log_name) > 0) { + Rotate_log_event + mi_event(current_thd, mi->master_log_name, + strlen(mi->master_log_name), mi->master_log_pos, 0); + mi_event.set_server_id(MASTER_INFO_SERVER_ID); + if (mi_event.write(&log_file)) { + sql_print_error("Could not write MASTER Rotate_log_event"); + goto err; + } + bytes_written += mi_event.data_written; + } + } + if (flush_io_cache(&log_file) || my_sync(log_file.file, MYF(MY_WME))) goto err; @@ -715,7 +778,7 @@ if (file >= 0) my_close(file,MYF(0)); end_io_cache(&log_file); - end_io_cache(&index_file); + close_index_file(); safeFree(name); log_type= LOG_CLOSED; DBUG_RETURN(1); @@ -733,7 +796,10 @@ int MYSQL_LOG::raw_get_current_log(LOG_INFO* linfo) { strmake(linfo->log_file_name, log_file_name, sizeof(linfo->log_file_name)-1); - linfo->pos = my_b_tell(&log_file); + if (!mule_binlog_) + linfo->pos = my_b_tell(&log_file); + else + linfo->pos = my_b_filelength(&log_file); return 0; } @@ -831,6 +897,11 @@ pthread_mutex_lock(&LOCK_index); safe_mutex_assert_owner(&LOCK_index); + if (open_index_file(index_file_name, NULL) != 0) { + error = -1; + goto l_err; + } + /* As the file is flushed, we can't get an error here */ (void) reinit_io_cache(&index_file, READ_CACHE, (my_off_t) 0, 0, 0); @@ -860,6 +931,7 @@ } } + l_err: if (need_lock) pthread_mutex_unlock(&LOCK_index); DBUG_RETURN(error); @@ -1309,18 +1381,19 @@ SYNOPSIS new_file() need_lock Set to 1 if caller has not locked LOCK_log + logfile_name the specified log filename. NOTE The new file name is stored last in the index file */ -void MYSQL_LOG::new_file(bool need_lock) +void MYSQL_LOG::new_file(bool need_lock, const char* log_filename) { char new_name[FN_REFLEN], *new_name_ptr, *old_name; enum_log_type save_log_type; DBUG_ENTER("MYSQL_LOG::new_file"); - if (!is_open()) + if (!is_log_open()) { DBUG_PRINT("info",("log is closed")); DBUG_VOID_RETURN; @@ -1359,7 +1432,9 @@ We have to do this here and not in open as we want to store the new file name in the current binary log file. */ - if (generate_new_name(new_name, name)) + if (log_filename) { + fn_format(new_name,log_filename,mysql_data_home,"",4); + } else if (generate_new_name(new_name, name)) goto end; new_name_ptr=new_name; @@ -1463,8 +1538,14 @@ bytes_written += len; } while ((buf=va_arg(args,const char*)) && (len=va_arg(args,uint))); DBUG_PRINT("info",("max_size: %lu",max_size)); - if ((uint) my_b_append_tell(&log_file) > max_size) + + /* If max_size is BINLOG_NOSWITCH_SIZE, binlog would not switch because + * of file size limit. + */ + if (max_size != BINLOG_NOSWITCH_SIZE && + (uint) my_b_append_tell(&log_file) > max_size) { new_file(0); + } err: if (!error) @@ -1481,6 +1562,28 @@ bool MYSQL_LOG::write(THD *thd,enum enum_server_command command, const char *format,...) { + bool root_log= false; + + if (opt_root_log && + thd && + (thd->security_ctx->master_access & SUPER_ACL) && + (command == COM_QUERY) && + !thd->slave_thread) + { + // If regular logging is disabled, log for root when all of the + // following are true + // * root logging is enabled + // * this user is root (has SUPER privilege) + // * this is a SQL statement + // * this is not a replication thread + root_log= true; + } + + // Do not log when this is not eligible for root logging and non-root logging + // is disabled. + if (!opt_log && !root_log) + return 0; + if (is_open() && (what_to_log & (1L << (uint) command))) { uint length; @@ -1501,7 +1604,9 @@ if ((thd->options & OPTION_LOG_OFF) #ifndef NO_EMBEDDED_ACCESS_CHECKS && (thd->security_ctx->master_access & SUPER_ACL) -#endif +#endif + // Always log when user is root and root logging enabled + && !root_log ) { VOID(pthread_mutex_unlock(&LOCK_log)); @@ -1516,7 +1621,8 @@ skr=time(NULL); id=0; } - if (skr != last_time) + // The timestamp is always needed by tools that process this (grep, awk) + if (1) { last_time=skr; struct tm tm_tmp; @@ -1534,8 +1640,19 @@ if (my_b_write(&log_file, (byte*) buff,16)) error=errno; } - else if (my_b_write(&log_file, (byte*) "\t\t",2) < 0) - error=errno; + + // Log user, host and IP for the DB connection + char sec_buff[201]; + length = snprintf(sec_buff, 200, "%s\t%s\t%s\t%s\t", + root_log ? "ROOT" : "NORMAL", + thd->security_ctx->user ? thd->security_ctx->user : "?", + thd->security_ctx->host ? thd->security_ctx->host : "?", + thd->security_ctx->ip ? thd->security_ctx->ip : "?"); + if (length < 1) + error=errno; + else if (my_b_write(&log_file, (byte*) sec_buff, length) < 0) + error=errno; + length=my_sprintf(buff, (buff, "%7ld %-11.11s", id, command_name[(uint) command])); @@ -1840,7 +1957,8 @@ Log "BEGIN" at the beginning of the transaction. which may contain more than 1 SQL statement. */ - if (thd->options & (OPTION_NOT_AUTOCOMMIT | OPTION_BEGIN)) + if (rpl_always_begin_event_enabled || + thd->options & (OPTION_NOT_AUTOCOMMIT | OPTION_BEGIN)) { Query_log_event qinfo(thd, STRING_WITH_LEN("BEGIN"), TRUE, FALSE); /* @@ -2059,9 +2177,7 @@ SYNOPSIS wait_for_update() thd Thread variable - is_slave If 0, the caller is the Binlog_dump thread from master; - if 1, the caller is the SQL thread from the slave. This - influences only thd->proc_info. + new_msg the new status of thd->proc_info NOTES One must have a lock on LOCK_log before calling this function. @@ -2069,17 +2185,12 @@ THD::enter_cond() (see NOTES in sql_class.h). */ -void MYSQL_LOG::wait_for_update(THD* thd, bool is_slave) +void MYSQL_LOG::wait_for_update(THD* thd, const char *new_msg) { const char *old_msg; DBUG_ENTER("wait_for_update"); - old_msg= thd->enter_cond(&update_cond, &LOCK_log, - is_slave ? - "Has read all relay log; waiting for the slave I/O " - "thread to update it" : - "Has sent all binlog to slave; waiting for binlog " - "to be updated"); + old_msg= thd->enter_cond(&update_cond, &LOCK_log, new_msg); pthread_cond_wait(&update_cond, &LOCK_log); thd->exit_cond(old_msg); DBUG_VOID_RETURN; @@ -3098,3 +3209,319 @@ return 1; } + +bool MYSQL_LOG::extract_master_info(Log_event* ev, + char *master_log_name, + my_off_t *master_log_pos) { + bool extracted = false; + DBUG_ENTER("MYSQL_LOG::extract_master_info"); + + /* Some events always have correct master log information, like: + * . Xid_event, Master_info_log_event, Rotate_log_event, etc + * Some Query events have correct master log information (each query + * event only has one query inside), like BEGIN/COMMIT. + */ + switch (ev->get_type_code()) { + case QUERY_EVENT: { + Query_log_event *query = (Query_log_event *)ev; + + /* Check whether the query event has the correct master log information: + * if so, accept it. + */ + for (int idx = 0; idx < sizeof(query_with_log)/sizeof(QueryLogEvent); + ++idx) + if ((query->q_len == query_with_log[idx].query_length_ && + strncmp(query_with_log[idx].query_, query->query, + query->q_len) == 0)) { + *master_log_pos = query->log_pos; + extracted = true; + } + break; + } + case ROTATE_EVENT: + /* Because I/O thread can add rotate events for slave side purpose, + * like exceed file size limit, and those events would not carry the + * correct master side information, we skip them. + * Those events only have slave side information. + */ + if (ev->server_id != ::server_id) { + Rotate_log_event *rotate = (Rotate_log_event *)ev; + + /* Rotate_log_event from the master always indicates the correct + * information. + */ + strcpy(master_log_name, rotate->new_log_ident); + master_log_name[rotate->ident_len] = '\0'; + *master_log_pos = rotate->pos; + extracted = true; + } + break; + case XID_EVENT: + /* XID_EVENT is the same as COMMIT in relay-log. So, it carries the + * correct master log information. + */ + *master_log_pos = ev->log_pos; + extracted = true; + break; + case FORMAT_DESCRIPTION_EVENT: + /* Format event would not cause re-transmit the same event from the master, + * so we assume its position in relay-log is correct. + */ + extracted = true; + break; + } + DBUG_RETURN(extracted); +} + +/* Whether we find the relay-log corresponding to the master-log + * information. + */ +bool MYSQL_LOG::find_master_pos_inlog(const char *relay_log_name, + ulonglong relay_log_pos, + const char *master_log_name, + ulonglong master_log_pos, + char *last_master_log_name, + ulonglong *last_master_log_pos, + bool *relay_file_error, + my_off_t *last_valid_offset, + my_off_t *relay_file_size, + const char **errmsg) { + IO_CACHE log_file; + DBUG_ENTER("MYSQL_LOG::find_master_pos_inlog"); + file_id = open_binlog(&log_file, relay_log_name, errmsg); + + if (file_id < 0) { + *relay_file_error = true; + DBUG_RETURN(false); + } + + Format_description_log_event *desc_event = + new Format_description_log_event(3); + + for (;;) { + Log_event* ev = Log_event::read_log_event(&log_file, NULL, desc_event); + if (!ev) { + break; + } + + /* If the relay-log event has been executed by slave sql thread, then we + * can assume that the event is safe., strlen(master_log_name) + * update_master_info() might shrink the last relay-log to make sure that + * we would not re-append events. Then, we would re-transmit all events + * from the master. If the last relay-log gets shrinked, we need to make + * sure that re-appended relay-log is the same as the one before the + * shrink. Otherwise, the sql thread will get confused. + * + * TODO(wei): we still need to handle the situation that the last relay + * log is corrupted and the shrink point is before the execution point. + */ + my_off_t offset = my_b_tell(&log_file); + if (extract_master_info(ev, last_master_log_name, last_master_log_pos)) { + *last_valid_offset = offset; + } else if (offset == relay_log_pos) { + strmake(last_master_log_name, master_log_name, strlen(master_log_name)); + *last_master_log_pos = master_log_pos; + *last_valid_offset = offset; + } + + if (ev->get_type_code() == FORMAT_DESCRIPTION_EVENT) { + delete desc_event; + desc_event = (Format_description_log_event *)ev; + + /* If we have the correct last executed relay-log information, we can + * seek to the position after getting the correct format event. + */ + if (relay_log_pos != -1 && offset < relay_log_pos) { + my_b_seek(&log_file, relay_log_pos); + strmake(last_master_log_name, master_log_name, strlen(master_log_name)); + *last_master_log_pos = master_log_pos; + *last_valid_offset = relay_log_pos; + } + } else { + delete ev; + } + } + *relay_file_error = log_file.error; + if (relay_file_size) + *relay_file_size = my_b_tell(&log_file); + + my_close(file_id, MYF(MY_WME)); + end_io_cache(&log_file); + delete desc_event; + + DBUG_RETURN(!(*relay_file_error)); +} + +int MYSQL_LOG::update_master_info(const char *relay_log_name, + ulonglong relay_log_pos, + const char *master_log_name, + ulonglong master_log_pos, + bool *need_check_master_log, + bool *found_relay_info) { + int error = 0; + LOG_INFO linfo; + char last_relay_log_name[FN_REFLEN]; + char last_master_log_name[FN_REFLEN]; + + MASTER_INFO* mi = get_master_info(); + const char *errmsg = NULL; + + my_off_t last_valid_off = 0, last_master_log_pos; + + bool found_relay_file = false; + bool relay_file_error = false; + my_off_t relay_file_size = 0; + bool relay_log_info_avail; // Whether the specified relay_log_name, + // relay_log_pos is available + + char buff1[22], buff2[22]; + + DBUG_ENTER("MYSQL_LOG::update_master_info"); + + *found_relay_info = false; + *need_check_master_log = false; + relay_log_info_avail = (strcmp(relay_log_name, "") != 0 && + relay_log_pos != -1); + strmake(last_master_log_name, "", FN_REFLEN); + + if (find_log_pos(&linfo, NullS, true)) { + /* This should be fine because we are going to retrieve all master-logs + * from scratch. + */ + ha_innobase::reset_mysql_relay_info(); + sql_print_information("update_master_info(): not found any relay-log file," + " will reset replication from scratch"); + + DBUG_RETURN(0); + } else { + /* Find the last replication relay-log filename in relay-log.info and + * find the specified is in relay-log.info. + */ + for (;;) { + // find the last log file from index_log_file + strmake(last_relay_log_name, linfo.log_file_name, FN_REFLEN); + last_relay_log_name[FN_REFLEN - 1] = '\0'; + + // check whether we found the specified relay-log file + if (relay_log_info_avail && !found_relay_file && + strcmp(last_relay_log_name, relay_log_name) == 0) { + found_relay_file = true; + } + if (find_next_log(&linfo, true)) + break; + } + } + + if (relay_log_info_avail && !found_relay_file) { + /* This might be totally wrong because we could not find the last executed + * relay-log based on InnoDB information. + * It might be normal that there is a relay-log switch which cause the old + * log purged. We need to check whether master-log information match + * relay-log.info. + */ + *need_check_master_log = true; + } + + if (relay_log_info_avail && + strcmp(relay_log_name, last_relay_log_name) == 0) { + if (!find_master_pos_inlog(relay_log_name, relay_log_pos, + master_log_name, master_log_pos, + last_master_log_name, &last_master_log_pos, + &relay_file_error, &last_valid_off, + &relay_file_size, &errmsg)) { + // We could not read the relay-log file correctly. + sql_print_information("update_master_info(): open relay-log(%s) error %s", + relay_log_name, errmsg); + DBUG_RETURN(1); + } + } else { + if (!find_master_pos_inlog(last_relay_log_name, -1, NULL, -1, + last_master_log_name, &last_master_log_pos, + &relay_file_error, &last_valid_off, + &relay_file_size, &errmsg)) { + // We could not read the relay-log file correctly. + sql_print_information("update_master_info(): open relay-log(%s) error %s", + last_relay_log_name, errmsg); + DBUG_RETURN(1); + } + } + + /* If we do not find master-log reading information from all valid events, + * we assume that the information in file master.log is correct based on + * the protocol: we always write to file master.info before writing events + * into relay-log. + */ + if (strlen(last_master_log_name) > 0) { + DBUG_PRINT("info",("found master log_file_name: '%s' position: %s", + last_master_log_name, + llstr(last_master_log_pos, buff1))); + + // truncate the log to the last valid event + if (relay_file_error || last_valid_off != relay_file_size) { + File trunc_file_id = my_open(last_relay_log_name, O_WRONLY, MYF(MY_WME)); + if (trunc_file_id < 0) { + + sql_print_error("Slave I/O thread: open file '%s' for " + "truncation failed; error: %d", + last_relay_log_name, errno); + DBUG_RETURN(1); + } + + /* We might truncate the last file less than relay-log.info indicates the + * file should be. This is fine because we going to create a new + * relay-log file after this one and the sql thread will be directed to + * the new file to read relay events. + */ + off_t new_len = (off_t)last_valid_off; + if (ftruncate(trunc_file_id, new_len)) { + + sql_print_error("Slave I/O thread: truncate file(%s) from %s to %s; " + "error: %d\n", last_relay_log_name, + llstr(relay_file_size, buff1), + llstr(new_len, buff2), errno); + my_close(trunc_file_id, MYF(MY_WME)); + + DBUG_RETURN(1); + } + my_close(trunc_file_id, MYF(MY_WME)); + + sql_print_information("Slave I/O thread: truncated file(%s) from %s to %s", + last_relay_log_name, llstr(relay_file_size, buff1), + llstr(new_len, buff2)); + } + + /* update master-log reading header */ + if (strcmp(mi->master_log_name, last_master_log_name) != 0 || + mi->master_log_pos != last_master_log_pos) { + sql_print_information("Slave I/O thread: adjust master reading header:\n" + "\tOld: file:'%s', position:%s\n" + "\tNew: file:'%s', position:%s", + mi->master_log_name, llstr(mi->master_log_pos, buff1), + last_master_log_name, + llstr(last_master_log_pos, buff2)); + strcpy(mi->master_log_name, last_master_log_name); + mi->master_log_pos = last_master_log_pos; + } + + /* We must write the file to disk here even there are no changes because the + * after MYSQL_LOG::open() might create a new relay-log file. + */ + reinit_io_cache(&mi->file, WRITE_CACHE, 0L, 0, 1); + if ((error=test(flush_master_info(mi, 0)))) { + sql_print_error("Failed to flush master info file during adjustment"); + } else { + error = my_sync(mi->file.file, MYF(MY_WME)); + } + } else if (relay_log_info_avail) { + sql_print_warning("Not find master information from the last relay-log: " + "assume that master.info is correct"); + } + + *found_relay_info = relay_log_info_avail; + DBUG_RETURN(error); +} + +int MYSQL_LOG::flush_log_file() { + return flush_io_cache(&log_file); +} + diff -ruN base/libmysqld/opt_sum.cc mysql50gpl/libmysqld/opt_sum.cc --- base/libmysqld/opt_sum.cc 2007-03-05 11:21:22.000000000 -0800 +++ mysql50gpl/libmysqld/opt_sum.cc 2007-04-20 14:08:43.023317000 -0700 @@ -224,7 +224,12 @@ if (error) { if (error == HA_ERR_KEY_NOT_FOUND || error == HA_ERR_END_OF_FILE) - return HA_ERR_KEY_NOT_FOUND; // No rows matching WHERE + return HA_ERR_KEY_NOT_FOUND; // No rows matching WHERE + else if (error == -1) + { + // Don't return -1, the caller doesn't handle it + error= HA_ERR_WRONG_COMMAND; + } /* HA_ERR_LOCK_DEADLOCK or some other error */ table->file->print_error(error, MYF(0)); return(error); @@ -289,6 +294,13 @@ const_result= 0; break; } + // If the index does not support prefix_last scan, do not continue + if (ref.key_length && + (table->file->index_flags(ref.key, 0, true) & + HA_NO_READ_PREFIX_LAST)) { + const_result=0; + break; + } error= table->file->ha_index_init((uint) ref.key); if (!ref.key_length) @@ -311,7 +323,12 @@ if (error) { if (error == HA_ERR_KEY_NOT_FOUND || error == HA_ERR_END_OF_FILE) - return HA_ERR_KEY_NOT_FOUND; // No rows matching WHERE + return HA_ERR_KEY_NOT_FOUND; // No rows matching WHERE + else if (error == -1) + { + // Don't return -1, the caller doesn't handle it + error= HA_ERR_WRONG_COMMAND; + } /* HA_ERR_LOCK_DEADLOCK or some other error */ table->file->print_error(error, MYF(0)); return(error); diff -ruN base/libmysqld/set_var.cc mysql50gpl/libmysqld/set_var.cc --- base/libmysqld/set_var.cc 2007-03-05 11:21:24.000000000 -0800 +++ mysql50gpl/libmysqld/set_var.cc 2007-04-20 14:08:43.373306000 -0700 @@ -99,6 +99,7 @@ static int check_pseudo_thread_id(THD *thd, set_var *var); static bool set_log_bin(THD *thd, set_var *var); static void fix_low_priority_updates(THD *thd, enum_var_type type); +static void fix_innodb_clear_replication_status(THD *thd, enum_var_type type); static void fix_tx_isolation(THD *thd, enum_var_type type); static int check_completion_type(THD *thd, set_var *var); static void fix_completion_type(THD *thd, enum_var_type type); @@ -214,8 +215,8 @@ sys_log_queries_not_using_indexes("log_queries_not_using_indexes", &opt_log_queries_not_using_indexes); sys_var_thd_ulong sys_log_warnings("log_warnings", &SV::log_warnings); -sys_var_thd_ulong sys_long_query_time("long_query_time", - &SV::long_query_time); +sys_var_long_ptr sys_long_query_time("long_query_time", + &long_query_time); sys_var_thd_bool sys_low_priority_updates("low_priority_updates", &SV::low_priority_updates, fix_low_priority_updates); @@ -322,14 +323,25 @@ sys_var_bool_ptr sys_relay_log_purge("relay_log_purge", &relay_log_purge); #endif +sys_var_bool_ptr sys_rpl_always_begin_event_enabled( + "rpl_always_begin_event_enabled", + &rpl_always_begin_event_enabled); +sys_var_bool_ptr sys_rpl_always_enter_innodb("rpl_always_enter_innodb", + &rpl_always_enter_innodb); sys_var_long_ptr sys_rpl_recovery_rank("rpl_recovery_rank", &rpl_recovery_rank); +sys_var_bool_ptr sys_rpl_mirror_binlog_enabled("rpl_mirror_binlog_enabled", + &rpl_mirror_binlog_enabled); +sys_var_bool_ptr sys_rpl_transaction_enabled("rpl_transaction_enabled", + &rpl_transaction_enabled); sys_var_long_ptr sys_query_cache_size("query_cache_size", &query_cache_size, fix_query_cache_size); sys_var_thd_ulong sys_range_alloc_block_size("range_alloc_block_size", &SV::range_alloc_block_size); +sys_var_long_ptr sys_reserved_super_connections("reserved_super_connections", + &reserved_super_connections); sys_var_thd_ulong sys_query_alloc_block_size("query_alloc_block_size", &SV::query_alloc_block_size, 0, fix_thd_mem_root); @@ -343,6 +355,9 @@ sys_var_thd_ulong sys_trans_prealloc_size("transaction_prealloc_size", &SV::trans_prealloc_size, 0, fix_trans_mem_root); +sys_var_long_ptr sys_sync_mirror_binlog_period( + "sync_mirror_binlog_period", + &sync_mirror_binlog_period); #ifdef HAVE_QUERY_CACHE sys_var_long_ptr sys_query_cache_limit("query_cache_limit", @@ -443,6 +458,10 @@ &SV::innodb_support_xa); sys_var_long_ptr sys_innodb_autoextend_increment("innodb_autoextend_increment", &srv_auto_extend_increment); +sys_var_thd_bool sys_innodb_clear_replication_status( + "innodb_clear_replication_status", + &SV::innodb_clear_replication_status, + fix_innodb_clear_replication_status); sys_var_long_ptr sys_innodb_sync_spin_loops("innodb_sync_spin_loops", &srv_n_spin_wait_rounds); sys_var_long_ptr sys_innodb_concurrency_tickets("innodb_concurrency_tickets", @@ -723,10 +742,15 @@ &sys_readonly, &sys_read_buff_size, &sys_read_rnd_buff_size, + &sys_reserved_super_connections, #ifdef HAVE_REPLICATION &sys_relay_log_purge, #endif + &sys_rpl_always_begin_event_enabled, + &sys_rpl_always_enter_innodb, &sys_rpl_recovery_rank, + &sys_rpl_mirror_binlog_enabled, + &sys_rpl_transaction_enabled, &sys_safe_updates, &sys_secure_auth, &sys_select_limit, @@ -755,6 +779,7 @@ &sys_sync_binlog_period, #endif &sys_sync_frm, + &sys_sync_mirror_binlog_period, &sys_system_time_zone, &sys_table_cache_size, &sys_table_lock_wait_timeout, @@ -781,6 +806,7 @@ &sys_innodb_max_dirty_pages_pct, &sys_innodb_max_purge_lag, &sys_innodb_table_locks, + &sys_innodb_clear_replication_status, &sys_innodb_support_xa, &sys_innodb_max_purge_lag, &sys_innodb_autoextend_increment, @@ -890,6 +916,8 @@ {"innodb_buffer_pool_awe_mem_mb", (char*) &innobase_buffer_pool_awe_mem_mb, SHOW_LONG }, {"innodb_buffer_pool_size", (char*) &innobase_buffer_pool_size, SHOW_LONGLONG }, {"innodb_checksums", (char*) &innobase_use_checksums, SHOW_MY_BOOL}, + {sys_innodb_clear_replication_status.name, + (char*) &sys_innodb_clear_replication_status, SHOW_SYS}, {sys_innodb_commit_concurrency.name, (char*) &sys_innodb_commit_concurrency, SHOW_SYS}, {sys_innodb_concurrency_tickets.name, (char*) &sys_innodb_concurrency_tickets, SHOW_SYS}, {"innodb_data_file_path", (char*) &innobase_data_file_path, SHOW_CHAR_PTR}, @@ -919,7 +947,12 @@ {sys_innodb_table_locks.name, (char*) &sys_innodb_table_locks, SHOW_SYS}, {sys_innodb_thread_concurrency.name, (char*) &sys_innodb_thread_concurrency, SHOW_SYS}, {sys_innodb_thread_sleep_delay.name, (char*) &sys_innodb_thread_sleep_delay, SHOW_SYS}, + {"innodb_read_io_threads", (char*) &innobase_read_io_threads, SHOW_LONG }, + {"innodb_write_io_threads", (char*) &innobase_write_io_threads, SHOW_LONG }, + {"innodb_max_merged_io", (char*) &innobase_max_merged_io, SHOW_LONG}, #endif + {"show_command_compatible_mysql4", (char*) &show_command_compatible_mysql4, SHOW_BOOL}, + {"show_default_global", (char*) &show_default_global, SHOW_BOOL}, {sys_interactive_timeout.name,(char*) &sys_interactive_timeout, SHOW_SYS}, {sys_join_buffer_size.name, (char*) &sys_join_buffer_size, SHOW_SYS}, {sys_key_buffer_size.name, (char*) &sys_key_buffer_size, SHOW_SYS}, @@ -943,6 +976,8 @@ {"log_bin", (char*) &opt_bin_log, SHOW_BOOL}, {sys_trust_function_creators.name,(char*) &sys_trust_function_creators, SHOW_SYS}, {"log_error", (char*) log_error_file, SHOW_CHAR}, + {"log_root", (char*) &opt_root_log, SHOW_BOOL}, + {"log_update", (char*) &opt_dml_log, SHOW_BOOL}, {sys_log_queries_not_using_indexes.name, (char*) &sys_log_queries_not_using_indexes, SHOW_SYS}, #ifdef HAVE_REPLICATION @@ -1035,12 +1070,22 @@ {sys_read_buff_size.name, (char*) &sys_read_buff_size, SHOW_SYS}, {sys_readonly.name, (char*) &sys_readonly, SHOW_SYS}, {sys_read_rnd_buff_size.name,(char*) &sys_read_rnd_buff_size, SHOW_SYS}, + {sys_reserved_super_connections.name,(char*) &sys_reserved_super_connections, SHOW_SYS}, #ifdef HAVE_REPLICATION {sys_relay_log_purge.name, (char*) &sys_relay_log_purge, SHOW_SYS}, {"relay_log_space_limit", (char*) &relay_log_space_limit, SHOW_LONGLONG}, #endif + {sys_rpl_always_begin_event_enabled.name, + (char *) &sys_rpl_always_begin_event_enabled, SHOW_SYS}, + {sys_rpl_always_enter_innodb.name, + (char *) &sys_rpl_always_enter_innodb, SHOW_SYS}, {sys_rpl_recovery_rank.name,(char*) &sys_rpl_recovery_rank, SHOW_SYS}, + {sys_rpl_mirror_binlog_enabled.name, + (char *) &sys_rpl_mirror_binlog_enabled, SHOW_SYS}, + {sys_rpl_transaction_enabled.name, + (char *) &sys_rpl_transaction_enabled, SHOW_SYS}, {"secure_auth", (char*) &sys_secure_auth, SHOW_SYS}, + {"server_hostname", (char*) glob_hostname, SHOW_CHAR}, #ifdef HAVE_SMEM {"shared_memory", (char*) &opt_enable_shared_memory, SHOW_MY_BOOL}, {"shared_memory_base_name", (char*) &shared_memory_base_name, SHOW_CHAR_PTR}, @@ -1076,6 +1121,8 @@ {sys_sync_binlog_period.name,(char*) &sys_sync_binlog_period, SHOW_SYS}, #endif {sys_sync_frm.name, (char*) &sys_sync_frm, SHOW_SYS}, + {sys_sync_mirror_binlog_period.name, + (char *) &sys_sync_mirror_binlog_period, SHOW_SYS}, #ifdef HAVE_TZNAME {"system_time_zone", system_time_zone, SHOW_CHAR}, #endif @@ -1227,6 +1274,12 @@ TL_WRITE_LOW_PRIORITY : TL_WRITE); } +static void fix_innodb_clear_replication_status(THD *thd, enum_var_type type) +{ + /* Only super users can set "innodb_clear_replication_status" variable. */ + if (check_global_access(thd, SUPER_ACL) != 0) + thd->variables.innodb_clear_replication_status = false; +} static void fix_myisam_max_sort_file_size(THD *thd, enum_var_type type) diff -ruN base/libmysqld/sql_acl.cc mysql50gpl/libmysqld/sql_acl.cc --- base/libmysqld/sql_acl.cc 2007-03-05 11:21:23.000000000 -0800 +++ mysql50gpl/libmysqld/sql_acl.cc 2007-04-20 14:08:43.746307000 -0700 @@ -158,8 +158,10 @@ /* To be able to run this from boot, we allocate a temporary THD */ - if (!(thd=new THD)) + if (!(thd=new THD)) { + sql_print_error("Fatal error: cannot create thread in acl_init"); DBUG_RETURN(1); /* purecov: inspected */ + } thd->thread_stack= (char*) &thd; thd->store_globals(); /* @@ -3330,8 +3332,10 @@ my_bool return_val; DBUG_ENTER("grant_init"); - if (!(thd= new THD)) + if (!(thd= new THD)) { + sql_print_error("Error: cannot create thread in grant_init"); DBUG_RETURN(1); /* purecov: deadcode */ + } thd->thread_stack= (char*) &thd; thd->store_globals(); return_val= grant_reload(thd); @@ -3567,6 +3571,18 @@ DBUG_RETURN(return_val); } +/*************************************************************************** + * Given an input table name, check whether it is already in the + * database. The check is done by checking for the corresponding .frm file. + ***************************************************************************/ +static bool table_exists(THD *thd, const char *db, const char *tname) { + char path[FN_REFLEN]; + DBUG_ENTER("table_exists"); + + sprintf(path, "%s/%s/%s.frm", mysql_data_home, db, tname); + fn_format(path, path, "", "", 4+16+32); + DBUG_RETURN(access(path, F_OK) == 0); +} /**************************************************************************** Check table level grants @@ -3602,6 +3618,7 @@ Security_context *sctx= thd->security_ctx; uint i; ulong orig_want_access= want_access; + bool not_exist_table = false; // true when the table does not exist DBUG_ENTER("check_grant"); DBUG_ASSERT(number > 0); @@ -3659,6 +3676,13 @@ table->db, sctx->priv_user, table->table_name,0))) { + /* Determine whether the table exists. We do not need the check + * for create statement because the table is new. + */ + if (!(want_access & (CREATE_ACL)) && + !table_exists(thd, table->db, table->table_name)) + not_exist_table = true; + want_access &= ~table->grant.privilege; goto err; // No grants } @@ -3687,13 +3711,20 @@ rw_unlock(&LOCK_grant); if (!no_errors) // Not a silent skip of table { - char command[128]; - get_privilege_desc(command, sizeof(command), want_access); - my_error(ER_TABLEACCESS_DENIED_ERROR, MYF(0), - command, - sctx->priv_user, - sctx->host_or_ip, - table ? table->table_name : "unknown"); + if (not_exist_table) + { + my_error(ER_NO_SUCH_TABLE, MYF(0), table->db, table->alias); + } + else + { + char command[128]; + get_privilege_desc(command, sizeof(command), want_access); + my_error(ER_TABLEACCESS_DENIED_ERROR, MYF(0), + command, + sctx->priv_user, + sctx->host_or_ip, + table ? table->table_name : "unknown"); + } } DBUG_RETURN(1); } diff -ruN base/libmysqld/sql_base.cc mysql50gpl/libmysqld/sql_base.cc --- base/libmysqld/sql_base.cc 2007-03-05 11:21:13.000000000 -0800 +++ mysql50gpl/libmysqld/sql_base.cc 2007-04-20 14:08:44.051288000 -0700 @@ -565,6 +565,9 @@ DBUG_ASSERT(table->key_read == 0); DBUG_ASSERT(table->file->inited == handler::NONE); + table->file->update_global_table_stats(); + table->file->update_global_index_stats(); + *table_ptr=table->next; if (table->s->version != refresh_version || thd->version != refresh_version || !table->db_stat) @@ -604,6 +607,9 @@ { DBUG_ENTER("close_temporary"); char path[FN_REFLEN]; + + table->file->update_global_table_stats(); + table->file->update_global_index_stats(); db_type table_type=table->s->db_type; strmov(path,table->s->path); free_io_cache(table); diff -ruN base/libmysqld/sql_class.cc mysql50gpl/libmysqld/sql_class.cc --- base/libmysqld/sql_class.cc 2007-03-05 11:21:41.000000000 -0800 +++ mysql50gpl/libmysqld/sql_class.cc 2007-04-20 14:08:44.356286000 -0700 @@ -216,6 +216,8 @@ bzero(ha_data, sizeof(ha_data)); mysys_var=0; binlog_evt_union.do_union= FALSE; + busy_time = 0; + updated_row_count = 0; #ifndef DBUG_OFF dbug_sentry=THD_SENTRY_MAGIC; #endif @@ -309,8 +311,55 @@ update_charset(); bzero((char *) &status_var, sizeof(status_var)); variables.lc_time_names = &my_locale_en_US; + reset_stats(); } +// Resets stats in a THD. +void THD::reset_stats(void) { + current_connect_time = time(NULL); + last_global_update_time = current_connect_time; + reset_diff_stats(); +} + +// Resets the 'diff' stats, which are used to update global stats. +void THD::reset_diff_stats(void) { + diff_total_busy_time = 0; + diff_total_sent_rows = 0; + diff_total_updated_rows = 0; + diff_select_commands = 0; + diff_update_commands = 0; + diff_other_commands = 0; + diff_commit_trans = 0; + diff_rollback_trans = 0; +} + +// Updates 'diff' stats of a THD. +void THD::update_stats() { + diff_total_busy_time += busy_time; + diff_total_sent_rows += sent_row_count; + diff_total_updated_rows += updated_row_count; + // The replication thread has the COM_CONNECT command. + if ((old_command == COM_QUERY || command == COM_CONNECT) && + (lex->sql_command >= 0 && lex->sql_command < SQLCOM_END)) { + // A SQL query. + if (lex->sql_command == SQLCOM_SELECT) { + if (lex->orig_sql_command == SQLCOM_END) { + diff_select_commands++; + } else { + // 'SHOW ' commands become SQLCOM_SELECT. + diff_other_commands++; + // 'SHOW ' commands shouldn't inflate total sent row count. + diff_total_sent_rows -= sent_row_count; + } + } else if (is_update_query(lex->sql_command)) { + diff_update_commands++; + } else { + diff_other_commands++; + } + } + // diff_commit_trans is updated in handler.cc. + // diff_rollback_trans is updated in handler.cc. +} /* Init THD for query processing. @@ -2189,4 +2238,3 @@ hash_delete(&xid_cache, (byte *)xid_state); pthread_mutex_unlock(&LOCK_xid_cache); } - diff -ruN base/libmysqld/sql_delete.cc mysql50gpl/libmysqld/sql_delete.cc --- base/libmysqld/sql_delete.cc 2007-03-05 11:21:57.000000000 -0800 +++ mysql50gpl/libmysqld/sql_delete.cc 2007-04-20 14:08:44.683274000 -0700 @@ -331,6 +331,7 @@ send_ok(thd,deleted); DBUG_PRINT("info",("%ld records deleted",(long) deleted)); } + thd->updated_row_count += deleted; DBUG_RETURN(error >= 0 || thd->net.report_error); } @@ -797,6 +798,7 @@ thd->row_count_func= deleted; ::send_ok(thd, deleted); } + thd->updated_row_count += deleted; return 0; } diff -ruN base/libmysqld/sql_insert.cc mysql50gpl/libmysqld/sql_insert.cc --- base/libmysqld/sql_insert.cc 2007-03-05 11:21:02.000000000 -0800 +++ mysql50gpl/libmysqld/sql_insert.cc 2007-04-20 14:08:45.009266000 -0700 @@ -764,6 +764,7 @@ thd->row_count_func= info.copied+info.deleted+info.updated; ::send_ok(thd, (ulong) thd->row_count_func, id, buff); } + thd->updated_row_count += thd->row_count_func; thd->abort_on_warning= 0; DBUG_RETURN(FALSE); @@ -2656,6 +2657,7 @@ (ulong) (info.deleted+info.updated), (ulong) thd->cuted_fields); thd->row_count_func= info.copied+info.deleted+info.updated; ::send_ok(thd, (ulong) thd->row_count_func, last_insert_id, buff); + thd->updated_row_count += thd->row_count_func; DBUG_RETURN(0); } diff -ruN base/libmysqld/sql_load.cc mysql50gpl/libmysqld/sql_load.cc --- base/libmysqld/sql_load.cc 2007-03-05 11:21:38.000000000 -0800 +++ mysql50gpl/libmysqld/sql_load.cc 2007-04-20 14:08:45.311255000 -0700 @@ -403,9 +403,6 @@ if (error) { - if (transactional_table) - ha_autocommit_or_rollback(thd,error); - if (read_file_from_client) while (!read_info.next_line()) ; @@ -447,6 +444,9 @@ mysql_bin_log.write(&d); } } + + if (transactional_table) + ha_autocommit_or_rollback(thd,error); } #endif /*!EMBEDDED_LIBRARY*/ error= -1; // Error on read diff -ruN base/libmysqld/sql_parse.cc mysql50gpl/libmysqld/sql_parse.cc --- base/libmysqld/sql_parse.cc 2007-03-05 11:21:40.000000000 -0800 +++ mysql50gpl/libmysqld/sql_parse.cc 2007-04-20 14:08:45.652260000 -0700 @@ -33,6 +33,9 @@ #include "sp.h" #include "sp_cache.h" +#include "my_sys.h" +#include + #ifdef HAVE_OPENSSL /* Without SSL the handshake consists of one packet. This packet @@ -76,6 +79,21 @@ static bool append_file_to_dir(THD *thd, const char **filename_ptr, const char *table_name); +// Set malloc stats for variables displayed by mysqld_show(). +static void set_malloc_stats(); + +// Set VM stats for variables displayed by mysqld_show(). +static void set_vm_stats(); + +// Set stats for concurrent connections displayed by mysqld_show(). +static void set_concurrent_connections_stats(); + +// Increments connection count for user. +static int increment_connection_count(THD* thd, bool use_lock); + +// Uses the THD to update the global stats. +static void update_global_user_stats(THD* thd); + const char *any_db="*any*"; // Special symbol for check_access const char *command_name[]={ @@ -92,6 +110,107 @@ "NON-EXISTING", "ACTIVE", "IDLE", "PREPARED" }; +// The following export malloc statistics. +ulonglong malloc_sbrk_bytes_alloc = 0; // Bytes allocated by sbrk +ulong malloc_chunks_free = 0; // Allocated chunks that are free +ulong malloc_mmap_chunks_alloc = 0; // Chunks allocated by mmap +ulonglong malloc_mmap_bytes_alloc = 0; // Bytes allocated by mmap +ulonglong malloc_bytes_used = 0; // Bytes in use by malloc callers +ulonglong malloc_bytes_free = 0; // Bytes allocated by malloc, but free + +// The following export VM stats from /proc/self/status +ulonglong vm_size = 0; // Size of process address space in bytes +ulonglong vm_data = 0; // Size of address space for data in bytes +ulonglong vm_rss = 0; // Size of address space resident in memory in bytes + +// Export binlog stats +ulong binlog_largest_event = 0; // Largest event written to the binlog. +ulonglong binlog_events = 0; // Number of events written to the binlog. + +HASH global_user_stats; +extern pthread_mutex_t LOCK_global_user_stats; + +HASH global_table_stats; +extern pthread_mutex_t LOCK_global_table_stats; + +HASH global_index_stats; +extern pthread_mutex_t LOCK_global_index_stats; + +/* + * Set the global variables for malloc stats. These are printed by + * mysqld_show() when 'show status' is executed. + */ +static void set_malloc_stats() +{ + struct mallinfo mi = mallinfo(); + malloc_sbrk_bytes_alloc = (ulonglong) mi.arena; + malloc_chunks_free = (ulong) mi.ordblks; + malloc_mmap_chunks_alloc = (ulong) mi.hblks; + malloc_mmap_bytes_alloc = (ulonglong) mi.hblkhd; + malloc_bytes_used = (ulonglong) mi.uordblks; + malloc_bytes_free = (ulonglong) mi.fordblks; +} + +/* + * Set the global variables vm_size, vm_data and vm_rss. These are printed by + * mysqld_show() when 'show status' is executed. + * + * This exports VM statistics read from /proc/self/status. It parses the + * integer values from the lines in /proc/self/status for the keys: + * VmSize: + * VmData: + * VmRSS: + * + * This function sacrifices performance for the sake of simplicity. Rather + * than read a line from the file at a time, each search for a key searches + * from the start of the file contents. This avoids the need to find the + * end of each line. This also assumes that the file has less than 8000 bytes. + */ +static void set_vm_stats() +{ + int fd = -1; + char* buf = 0; + char* buf_end = 0; + int read_amt; + const int kBufSize = 8000; + // Search for lines that begin with the following values. + char const* const kTokens[] = {"VmSize:", "VmData:", "VmRSS:"}; + ulonglong* const kVars[] = {&vm_size, &vm_data, &vm_rss}; + int num_tokens = 3; // Number of entries in kTokens and kVars + + if ((fd = my_open("/proc/self/status", O_RDONLY, MYF(MY_WME))) < 0) + goto done; + // Allocate 1 extra byte to reserve space for end of line character. + if (!(buf = my_malloc(kBufSize + 1, MYF(MY_WME)))) + goto done; + if ((read_amt = read(fd, buf, kBufSize)) < 1) + goto done; + buf_end = buf + read_amt; + *buf_end = '\0'; // Nul terminate the input + + // Search for each token in the input. + for (int x = 0; x < num_tokens; ++x) { + char* token; + if (token = strstr(buf, kTokens[x])) { + // If the token has been found, parse the first integer after it. + token += strlen(kTokens[x]); + if (token < buf_end) { + ulonglong var; + if (sscanf(token, "%lld", &var) == 1) { + // The values must be converted from KB to bytes. + *kVars[x] = var * 1024; + } + } + } + } + +done: + if (fd >= 0) + my_close(fd, MYF(0)); + if (buf) + my_free(buf, MYF(0)); +} + #ifdef __WIN__ static void test_signal(int sig_ptr) { @@ -392,15 +511,27 @@ thd->main_security_ctx.master_access, (thd->db ? thd->db : "*none*"))); + /* If we are in failover mode, reject all non-super user connections. */ + if (is_in_failover() && + !(thd->main_security_ctx.master_access & SUPER_ACL)) { + net_send_error(thd, ER_SPECIFIC_ACCESS_DENIED_ERROR, + "super-user only during failover"); + DBUG_RETURN(-1); + } + if (check_count) { VOID(pthread_mutex_lock(&LOCK_thread_count)); - bool count_ok= thread_count <= max_connections + delayed_insert_threads - || (thd->main_security_ctx.master_access & SUPER_ACL); + bool count_ok = (thread_count <= + (max_connections - min(max_connections, + reserved_super_connections)) + + delayed_insert_threads) || + (thd->main_security_ctx.master_access & SUPER_ACL); VOID(pthread_mutex_unlock(&LOCK_thread_count)); if (!count_ok) { // too many connections net_send_error(thd, ER_CON_COUNT_ERROR); + statistic_increment(denied_connections, &LOCK_status); DBUG_RETURN(-1); } } @@ -495,13 +626,81 @@ void init_max_user_conn(void) { #ifndef NO_EMBEDDED_ACCESS_CHECKS - (void) hash_init(&hash_user_connections,system_charset_info,max_connections, - 0,0, - (hash_get_key) get_key_conn, (hash_free_key) free_user, - 0); + if (hash_init(&hash_user_connections,system_charset_info,max_connections, + 0,0, + (hash_get_key) get_key_conn, (hash_free_key) free_user, + 0)) { + sql_print_error("Initializing hash_user_connections failed."); + exit(1); + } #endif } +extern "C" byte *get_key_user_stats(USER_STATS *user_stats, uint *length, + my_bool not_used __attribute__((unused))) +{ + *length = strlen(user_stats->user); + return (byte*)user_stats->user; +} + +extern "C" void free_user_stats(USER_STATS* user_stats) +{ + my_free((char*)user_stats, MYF(0)); +} + +void init_global_user_stats(void) +{ + if (hash_init(&global_user_stats, system_charset_info, max_connections, + 0, 0, (hash_get_key)get_key_user_stats, + (hash_free_key)free_user_stats, 0)) { + sql_print_error("Initializing global_user_stats failed."); + exit(1); + } +} + +extern "C" byte *get_key_table_stats(TABLE_STATS *table_stats, uint *length, + my_bool not_used __attribute__((unused))) +{ + *length = strlen(table_stats->table); + return (byte*)table_stats->table; +} + +extern "C" void free_table_stats(TABLE_STATS* table_stats) +{ + my_free((char*)table_stats, MYF(0)); +} + +void init_global_table_stats(void) +{ + if (hash_init(&global_table_stats, system_charset_info, max_connections, + 0, 0, (hash_get_key)get_key_table_stats, + (hash_free_key)free_table_stats, 0)) { + sql_print_error("Initializing global_table_stats failed."); + exit(1); + } +} + +extern "C" byte *get_key_index_stats(INDEX_STATS *index_stats, uint *length, + my_bool not_used __attribute__((unused))) +{ + *length = strlen(index_stats->index); + return (byte*)index_stats->index; +} + +extern "C" void free_index_stats(INDEX_STATS* index_stats) +{ + my_free((char*)index_stats, MYF(0)); +} + +void init_global_index_stats(void) +{ + if (hash_init(&global_index_stats, system_charset_info, max_connections, + 0, 0, (hash_get_key)get_key_index_stats, + (hash_free_key)free_index_stats, 0)) { + sql_print_error("Initializing global_index_stats failed."); + exit(1); + } +} /* check if user has already too many connections @@ -546,10 +745,10 @@ goto end; } if (uc->user_resources.conn_per_hour && - uc->user_resources.conn_per_hour <= uc->conn_per_hour) + uc->user_resources.conn_per_hour < uc->connections) { net_printf_error(thd, ER_USER_LIMIT_REACHED, uc->user, - "max_connections_per_hour", + "max_user_connections", (long) uc->user_resources.conn_per_hour); error=1; goto end; @@ -605,6 +804,20 @@ #endif /* NO_EMBEDDED_ACCESS_CHECKS */ } +void free_global_user_stats(void) +{ + hash_free(&global_user_stats); +} + +void free_global_table_stats(void) +{ + hash_free(&global_table_stats); +} + +void free_global_index_stats(void) +{ + hash_free(&global_index_stats); +} /* @@ -657,6 +870,129 @@ return uc_update_queries[command] != 0; } +// 'mysql_system_user' is used for when the user is not defined for a THD. +static char mysql_system_user[] = "#mysql_system#"; + +// Returns 'user' if it's not NULL. Returns 'mysql_system_user' otherwise. +static char* get_valid_user_string(char* user) { + return user ? user : mysql_system_user; +} + +// Increments the global user stats connection count. If 'use_lock' is true, +// 'LOCK_global_user_stats' will be locked/unlocked. Returns 0 on success, +// 1 on error. +static int increment_connection_count(THD* thd, bool use_lock) { + char* user_string = get_valid_user_string(thd->main_security_ctx.user); + + USER_STATS* user_stats; + int return_value = 0; + + if (use_lock) pthread_mutex_lock(&LOCK_global_user_stats); + if (!(user_stats = (USER_STATS*)hash_search(&global_user_stats, + (byte*)user_string, + strlen(user_string)))) { + // First connection for this user. + if (!(user_stats = ((USER_STATS*) + my_malloc(sizeof(USER_STATS), MYF(MY_WME))))) { + // Out of memory. + return_value = 1; + goto end; + } + strncpy(user_stats->user, user_string, sizeof(user_stats->user)); + user_stats->total_connections = 0; + user_stats->concurrent_connections = 0; + user_stats->connected_time = 0; + user_stats->busy_time = 0; + user_stats->rows_fetched = 0; + user_stats->rows_updated = 0; + user_stats->select_commands = 0; + user_stats->update_commands = 0; + user_stats->other_commands = 0; + user_stats->commit_trans = 0; + user_stats->rollback_trans = 0; + + if (my_hash_insert(&global_user_stats, (byte*)user_stats)) { + // Out of memory. + my_free((char*)user_stats, 0); + return_value = 1; + goto end; + } + } + user_stats->total_connections++; +end: + if (use_lock) pthread_mutex_unlock(&LOCK_global_user_stats); + return return_value; +} + +// Used to update the global user stats. +static void update_global_user_stats_with_user(THD* thd, + USER_STATS* user_stats) { + time_t current_time = time(NULL); + user_stats->connected_time += current_time - thd->last_global_update_time; + thd->last_global_update_time = current_time; + user_stats->busy_time += thd->diff_total_busy_time; + user_stats->rows_fetched += thd->diff_total_sent_rows; + user_stats->rows_updated += thd->diff_total_updated_rows; + user_stats->select_commands += thd->diff_select_commands; + user_stats->update_commands += thd->diff_update_commands; + user_stats->other_commands += thd->diff_other_commands; + user_stats->commit_trans += thd->diff_commit_trans; + user_stats->rollback_trans += thd->diff_rollback_trans; +} + +// Updates the global stats of a thread/user. +static void update_global_user_stats(THD* thd) { + char* user_string = get_valid_user_string(thd->main_security_ctx.user); + + USER_STATS* user_stats; + pthread_mutex_lock(&LOCK_global_user_stats); + if ((user_stats = (USER_STATS*)hash_search(&global_user_stats, + (byte*)user_string, + strlen(user_string)))) { + // Found user. + update_global_user_stats_with_user(thd, user_stats); + thd->reset_diff_stats(); + } else { + // The user name should exist. + increment_connection_count(thd, false); + } + pthread_mutex_unlock(&LOCK_global_user_stats); +} + +// Determines the concurrent number of connections of current threads. +static void set_concurrent_connections_stats() { + USER_STATS* user_stats; + + pthread_mutex_lock(&LOCK_global_user_stats); + pthread_mutex_lock(&LOCK_thread_count); + + // Resets all concurrent connections to 0. + for (int i = 0; i < global_user_stats.records; ++i) { + user_stats = (USER_STATS*)hash_element(&global_user_stats, i); + user_stats->concurrent_connections = 0; + } + + I_List_iterator it(threads); + THD* thd; + // Iterates through the current threads. + while ((thd = it++)) { + char* user_string = get_valid_user_string(thd->main_security_ctx.user); + if ((user_stats = (USER_STATS*)hash_search(&global_user_stats, + (byte*)user_string, + strlen(user_string)))) { + // Found user. + user_stats->concurrent_connections++; + update_global_user_stats_with_user(thd, user_stats); + thd->reset_diff_stats(); + } else { + // The user name should exist. + increment_connection_count(thd, false); + } + } + pthread_mutex_unlock(&LOCK_thread_count); + pthread_mutex_unlock(&LOCK_global_user_stats); +} + /* Reset per-hour user resource limits when it has been more than an hour since they were last checked @@ -1152,6 +1488,14 @@ statistic_increment(aborted_connects,&LOCK_status); goto end_thread; } + + thd->reset_stats(); + // Updates global user connection stats. + if (increment_connection_count(thd, true)) { + net_send_error(thd, ER_OUTOFMEMORY); // Out of memory + goto end_thread; + } + #ifdef __NETWARE__ netware_reg_user(sctx->ip, sctx->user, "MySQL"); #endif @@ -1215,6 +1559,8 @@ end_thread: close_connection(thd, 0, 1); + thd->update_stats(); + update_global_user_stats(thd); end_thread(thd,1); /* If end_thread returns, we are either running with --one-thread @@ -1598,6 +1944,9 @@ thd->killed= THD::NOT_KILLED; thd->command=command; + // To increment the corrent command counter for user stats, 'command' must + // be saved because it is set to COM_SLEEP at the end of this function. + thd->old_command = command; /* Commands which always take a long time are logged into the slow log only if opt_log_slow_admin_statements is set. @@ -2177,17 +2526,22 @@ { thd_proc_info(thd, "logging slow query"); - if ((ulong) (thd->start_time - thd->time_after_lock) > - thd->variables.long_query_time || - (thd->server_status & - (SERVER_QUERY_NO_INDEX_USED | SERVER_QUERY_NO_GOOD_INDEX_USED)) && - (specialflag & SPECIAL_LOG_QUERIES_NOT_USING_INDEXES) && - /* == SQLCOM_END unless this is a SHOW command */ - thd->lex->orig_sql_command == SQLCOM_END) - { - thd_proc_info(thd, "logging slow query"); - thd->status_var.long_query_count++; - mysql_slow_log.write(thd, thd->query, thd->query_length, start_of_query); + if (thd->start_time >= thd->time_after_lock) { + ulong elapsed = (ulong) (thd->start_time - thd->time_after_lock); + bool bad_index_used = + (thd->server_status & + (SERVER_QUERY_NO_INDEX_USED | SERVER_QUERY_NO_GOOD_INDEX_USED)) != 0; + bool should_log_bad_indexes = + (specialflag & SPECIAL_LOG_QUERIES_NOT_USING_INDEXES) != 0; + bool is_normal_query = + (thd->lex->orig_sql_command == SQLCOM_END) != 0; + + if (elapsed >= long_query_time || + (bad_index_used && should_log_bad_indexes && is_normal_query)) { + thd_proc_info(thd, "logging slow query"); + thd->status_var.long_query_count++; + mysql_slow_log.write(thd, thd->query, thd->query_length, start_of_query); + } } } } @@ -2575,6 +2929,11 @@ new Item_int((ulonglong)thd->variables.select_limit); } + if (lex->orig_sql_command == SQLCOM_SHOW_STATUS) { + set_vm_stats(); // Get values for exported VM stats + set_malloc_stats(); // Get values for exported malloc stats + } + select_result *result=lex->result; if (all_tables) { @@ -2773,6 +3132,22 @@ } #endif + case SQLCOM_SHOW_USER_STATS: + { + set_concurrent_connections_stats(); + res= mysqld_show_user_stats(thd, (lex->wild ? lex->wild->ptr() : NullS)); + break; + } + case SQLCOM_SHOW_TABLE_STATS: + { + res= mysqld_show_table_stats(thd, (lex->wild ? lex->wild->ptr() : NullS)); + break; + } + case SQLCOM_SHOW_INDEX_STATS: + { + res= mysqld_show_index_stats(thd, (lex->wild ? lex->wild->ptr() : NullS)); + break; + } case SQLCOM_BACKUP_TABLE: { DBUG_ASSERT(first_table == all_tables && first_table != 0); @@ -2833,8 +3208,8 @@ } case SQLCOM_SHOW_SLAVE_STAT: { - /* Accept one of two privileges */ - if (check_global_access(thd, SUPER_ACL | REPL_CLIENT_ACL)) + /* Accept one of three privileges */ + if (check_global_access(thd, SUPER_ACL | REPL_CLIENT_ACL | PROCESS)) goto error; pthread_mutex_lock(&LOCK_active_mi); res = show_master_info(thd,active_mi); @@ -2843,8 +3218,8 @@ } case SQLCOM_SHOW_MASTER_STAT: { - /* Accept one of two privileges */ - if (check_global_access(thd, SUPER_ACL | REPL_CLIENT_ACL)) + /* Accept one of three privileges */ + if (check_global_access(thd, SUPER_ACL | REPL_CLIENT_ACL | PROCESS)) goto error; res = show_binlog_info(thd); break; @@ -2858,6 +3233,22 @@ else res = load_master_data(thd); break; + + case SQLCOM_MAKE_MASTER: + { + thd_proc_info(thd, "Making master"); + + if (check_global_access(thd, SUPER_ACL)) + goto error; + res = make_master(thd, NULL, NULL, &lex->mi); + if (res == 0) { + // TODO -- wei is this OK, setting it to NULL? + thd_proc_info(thd, 0); + send_ok(thd); + } + break; + } + #endif /* HAVE_REPLICATION */ #ifdef HAVE_NDBCLUSTER_DB case SQLCOM_SHOW_NDBCLUSTER_STATUS: @@ -2869,14 +3260,14 @@ #ifdef HAVE_INNOBASE_DB case SQLCOM_SHOW_INNODB_STATUS: { - if (check_global_access(thd, SUPER_ACL)) + if (check_global_access(thd, SUPER_ACL | PROCESS)) goto error; res = innodb_show_status(thd); break; } case SQLCOM_SHOW_MUTEX_STATUS: { - if (check_global_access(thd, SUPER_ACL)) + if (check_global_access(thd, SUPER_ACL | PROCESS)) goto error; res = innodb_mutex_show_status(thd); break; @@ -3291,7 +3682,7 @@ goto error; #else { - if (check_global_access(thd, SUPER_ACL)) + if (check_global_access(thd, SUPER_ACL | PROCESS)) goto error; res = show_binlogs(thd); break; @@ -5747,6 +6138,8 @@ #ifdef ENABLED_PROFILING thd->profiling.reset(); #endif + thd->updated_row_count=0; + thd->busy_time=0; } DBUG_VOID_RETURN; } @@ -5902,6 +6295,16 @@ DBUG_EXECUTE_IF("parser_debug", turn_parser_debug_on();); + int start_time_error = 0; + int end_time_error = 0; + struct timeval start_time, end_time; + double start_usecs = 0; + double end_usecs = 0; + // Gets the start time, in order to measure how long this command takes. + if (!(start_time_error = gettimeofday(&start_time, NULL))) { + start_usecs = start_time.tv_sec * 1000000.0 + start_time.tv_usec; + } + mysql_init_query(thd, (uchar*) inBuf, length); if (query_cache_send_result_to_client(thd, inBuf, length) <= 0) { @@ -5975,6 +6378,30 @@ thd->cleanup_after_query(); DBUG_ASSERT(thd->change_list.is_empty()); } + + // Gets the end time. + if (!(end_time_error = gettimeofday(&end_time, NULL))) { + end_usecs = end_time.tv_sec * 1000000.0 + end_time.tv_usec; + } + + // Calculates the difference between the end and start times. + if (end_usecs >= start_usecs && !start_time_error && !end_time_error) { + thd->busy_time = (end_usecs - start_usecs) / 1000000; + // In case there are bad values, 2629743 is the #seconds in a month. + if (thd->busy_time > 2629743) { + statistic_increment(gettimeofday_errors, &LOCK_status); + thd->busy_time = 0; + } + } else { + // end time went back in time, or gettimeofday() failed. + statistic_increment(gettimeofday_errors, &LOCK_status); + thd->busy_time = 0; + } + + // Updates THD stats and the global user stats. + thd->update_stats(); + update_global_user_stats(thd); + DBUG_VOID_RETURN; } @@ -6821,8 +7248,9 @@ } if (thd) { - (void)acl_reload(thd); - (void)grant_reload(thd); + bool acl_failed = acl_reload(thd); + bool grant_failed = grant_reload(thd); + result = acl_failed || grant_failed; } if (tmp_thd) { @@ -6957,8 +7385,22 @@ pthread_mutex_unlock(&LOCK_active_mi); } #endif - if (options & REFRESH_USER_RESOURCES) - reset_mqh((LEX_USER *) NULL); + if (options & REFRESH_USER_RESOURCES) + reset_mqh((LEX_USER *) NULL); + if (options & REFRESH_TABLE_STATS) + { + pthread_mutex_lock(&LOCK_global_table_stats); + free_global_table_stats(); + init_global_table_stats(); + pthread_mutex_unlock(&LOCK_global_table_stats); + } + if (options & REFRESH_INDEX_STATS) + { + pthread_mutex_lock(&LOCK_global_index_stats); + free_global_index_stats(); + init_global_index_stats(); + pthread_mutex_unlock(&LOCK_global_index_stats); + } *write_to_binlog= tmp_write_to_binlog; return result; } @@ -7292,8 +7734,11 @@ TABLE_LIST *walk; for (walk= tables; walk; walk= walk->next_local) { - if (!my_strcasecmp(table_alias_charset, - target_tbl->alias, walk->alias) && + if ((!my_strcasecmp(table_alias_charset, + target_tbl->alias, walk->alias) || + (opt_compatible4 && + !my_strcasecmp(table_alias_charset, + target_tbl->alias, walk->table_name))) && !strcmp(walk->db, target_tbl->db)) break; } diff -ruN base/libmysqld/sql_show.cc mysql50gpl/libmysqld/sql_show.cc --- base/libmysqld/sql_show.cc 2007-03-05 11:21:21.000000000 -0800 +++ mysql50gpl/libmysqld/sql_show.cc 2007-04-20 14:08:45.987227000 -0700 @@ -268,13 +268,6 @@ FIND_FILES_DIR no such directory, or directory can't be read */ -enum find_files_result { - FIND_FILES_OK, - FIND_FILES_OOM, - FIND_FILES_DIR -}; - -static find_files_result find_files(THD *thd, List *files, const char *db, const char *path, const char *wild, bool dir) @@ -1782,6 +1775,136 @@ DBUG_RETURN(FALSE); } +// Sends the global user stats back to the client. +int mysqld_show_user_stats(THD *thd, const char *wild) { + Protocol *protocol= thd->protocol; + List field_list; + + DBUG_ENTER("mysqld_show_user_stats"); + field_list.push_back(new Item_empty_string("User", USERNAME_LENGTH + 1)); + field_list.push_back(new Item_int("Total_connections", 0)); + field_list.push_back(new Item_int("Concurrent_connections", 0)); + field_list.push_back(new Item_int("Connected_time", 0)); + field_list.push_back(new Item_int("Busy_time", 0)); + field_list.push_back(new Item_int("Rows_fetched", 0)); + field_list.push_back(new Item_int("Rows_updated", 0)); + field_list.push_back(new Item_int("Select_commands", 0)); + field_list.push_back(new Item_int("Update_commands", 0)); + field_list.push_back(new Item_int("Other_commands", 0)); + field_list.push_back(new Item_int("Commit_transactions", 0)); + field_list.push_back(new Item_int("Rollback_transactions", 0)); + if (protocol->send_fields(&field_list, + Protocol::SEND_NUM_ROWS | Protocol::SEND_EOF)) + DBUG_RETURN(TRUE); /* purecov: inspected */ + + // Iterates through all the global stats and sends them to the client. + // Pattern matching on the username is supported. + pthread_mutex_lock(&LOCK_global_user_stats); + for (int i = 0; i < global_user_stats.records; ++i) { + USER_STATS *user_stats = (USER_STATS*)hash_element(&global_user_stats, i); + if (!(wild && wild[0] && + wild_case_compare(system_charset_info, user_stats->user, wild))) { + protocol->prepare_for_resend(); + protocol->store(user_stats->user, system_charset_info); + protocol->store((longlong)user_stats->total_connections); + protocol->store((longlong)user_stats->concurrent_connections); + protocol->store((longlong)user_stats->connected_time); + protocol->store((longlong)user_stats->busy_time); + protocol->store((longlong)user_stats->rows_fetched); + protocol->store((longlong)user_stats->rows_updated); + protocol->store((longlong)user_stats->select_commands); + protocol->store((longlong)user_stats->update_commands); + protocol->store((longlong)user_stats->other_commands); + protocol->store((longlong)user_stats->commit_trans); + protocol->store((longlong)user_stats->rollback_trans); + if (protocol->write()) + goto err; /* purecov: inspected */ + } + } + pthread_mutex_unlock(&LOCK_global_user_stats); + send_eof(thd); + DBUG_RETURN(FALSE); + + err: + pthread_mutex_unlock(&LOCK_global_user_stats); + DBUG_RETURN(TRUE); +} + +// Sends the global table stats back to the client. +int mysqld_show_table_stats(THD *thd, const char *wild) { + Protocol *protocol= thd->protocol; + List field_list; + + DBUG_ENTER("mysqld_show_table_stats"); + field_list.push_back(new Item_empty_string("Table", NAME_LEN * 2 + 2)); + field_list.push_back(new Item_int("Rows_read", 0)); + field_list.push_back(new Item_int("Rows_changed", 0)); + field_list.push_back(new Item_int("Rows_changed_x_#indexes", 0)); + if (protocol->send_fields(&field_list, + Protocol::SEND_NUM_ROWS | Protocol::SEND_EOF)) + DBUG_RETURN(TRUE); /* purecov: inspected */ + + // Iterates through all the global table stats and sends them to the client. + // Pattern matching on the table name is supported. + pthread_mutex_lock(&LOCK_global_table_stats); + for (int i = 0; i < global_table_stats.records; ++i) { + TABLE_STATS *table_stats = + (TABLE_STATS*)hash_element(&global_table_stats, i); + if (!(wild && wild[0] && + wild_case_compare(system_charset_info, table_stats->table, wild))) { + protocol->prepare_for_resend(); + protocol->store(table_stats->table, system_charset_info); + protocol->store((longlong)table_stats->rows_read); + protocol->store((longlong)table_stats->rows_changed); + protocol->store((longlong)table_stats->rows_changed_x_indexes); + if (protocol->write()) + goto err; /* purecov: inspected */ + } + } + pthread_mutex_unlock(&LOCK_global_table_stats); + send_eof(thd); + DBUG_RETURN(FALSE); + + err: + pthread_mutex_unlock(&LOCK_global_table_stats); + DBUG_RETURN(TRUE); +} + +// Sends the global index stats back to the client. +int mysqld_show_index_stats(THD *thd, const char *wild) { + Protocol *protocol= thd->protocol; + List field_list; + + DBUG_ENTER("mysqld_show_index_stats"); + field_list.push_back(new Item_empty_string("Index", NAME_LEN * 3 + 3)); + field_list.push_back(new Item_int("Rows_read", 0)); + if (protocol->send_fields(&field_list, + Protocol::SEND_NUM_ROWS | Protocol::SEND_EOF)) + DBUG_RETURN(TRUE); /* purecov: inspected */ + + // Iterates through all the global index stats and sends them to the client. + // Pattern matching on the index name is supported. + pthread_mutex_lock(&LOCK_global_index_stats); + for (int i = 0; i < global_index_stats.records; ++i) { + INDEX_STATS *index_stats = + (INDEX_STATS*)hash_element(&global_index_stats, i); + if (!(wild && wild[0] && + wild_case_compare(system_charset_info, index_stats->index, wild))) { + protocol->prepare_for_resend(); + protocol->store(index_stats->index, system_charset_info); + protocol->store((longlong)index_stats->rows_read); + if (protocol->write()) + goto err; /* purecov: inspected */ + } + } + pthread_mutex_unlock(&LOCK_global_index_stats); + send_eof(thd); + DBUG_RETURN(FALSE); + + err: + pthread_mutex_unlock(&LOCK_global_index_stats); + DBUG_RETURN(TRUE); +} /* collect status for all running threads */ diff -ruN base/libmysqld/sql_update.cc mysql50gpl/libmysqld/sql_update.cc --- base/libmysqld/sql_update.cc 2007-03-05 11:21:13.000000000 -0800 +++ mysql50gpl/libmysqld/sql_update.cc 2007-04-20 14:08:46.366232000 -0700 @@ -566,7 +566,8 @@ (thd->client_capabilities & CLIENT_FOUND_ROWS) ? found : updated; send_ok(thd, (ulong) thd->row_count_func, thd->insert_id_used ? thd->last_insert_id : 0L,buff); - DBUG_PRINT("info",("%ld records updated", (long) updated)); + thd->updated_row_count += thd->row_count_func; + DBUG_PRINT("info",("%d records updated",updated)); } thd->count_cuted_fields= CHECK_FIELD_IGNORE; /* calc cuted fields */ thd->abort_on_warning= 0; @@ -1564,5 +1565,6 @@ (thd->client_capabilities & CLIENT_FOUND_ROWS) ? found : updated; ::send_ok(thd, (ulong) thd->row_count_func, thd->insert_id_used ? thd->last_insert_id : 0L,buff); + thd->updated_row_count += thd->row_count_func; return FALSE; } diff -ruN base/libmysqld/sql_yacc.cc mysql50gpl/libmysqld/sql_yacc.cc --- base/libmysqld/sql_yacc.cc 2007-03-05 11:31:10.000000000 -0800 +++ mysql50gpl/libmysqld/sql_yacc.cc 2007-04-20 14:08:46.850214000 -0700 @@ -1,7 +1,7 @@ -/* A Bison parser, made by GNU Bison 2.0. */ +/* A Bison parser, made by GNU Bison 2.1. */ /* Skeleton parser for Yacc-like parsing with Bison, - Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc. + Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -15,8 +15,8 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place - Suite 330, - Boston, MA 02111-1307, USA. */ + Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. */ /* As a special exception, when this file is copied by Bison into a Bison output file, you may use that output file without restriction. @@ -36,6 +36,9 @@ /* Identify Bison output. */ #define YYBISON 1 +/* Bison version. */ +#define YYBISON_VERSION "2.1" + /* Skeleton name. */ #define YYSKELETON_NAME "yacc.c" @@ -271,359 +274,367 @@ IDENT = 465, IDENTIFIED_SYM = 466, IDENT_QUOTED = 467, - IF = 468, - IGNORE_SYM = 469, - IMPORT = 470, - INDEXES = 471, - INDEX_SYM = 472, - INFILE = 473, - INNER_SYM = 474, - INNOBASE_SYM = 475, - INOUT_SYM = 476, - INSENSITIVE_SYM = 477, - INSERT = 478, - INSERT_METHOD = 479, - INTERVAL_SYM = 480, - INTO = 481, - INT_SYM = 482, - INVOKER_SYM = 483, - IN_SYM = 484, - IO_SYM = 485, - IPC_SYM = 486, - IS = 487, - ISOLATION = 488, - ISSUER_SYM = 489, - ITERATE_SYM = 490, - JOIN_SYM = 491, - KEYS = 492, - KEY_SYM = 493, - KILL_SYM = 494, - LABEL_SYM = 495, - LANGUAGE_SYM = 496, - LAST_INSERT_ID = 497, - LAST_SYM = 498, - LE = 499, - LEADING = 500, - LEAST_SYM = 501, - LEAVES = 502, - LEAVE_SYM = 503, - LEFT = 504, - LEVEL_SYM = 505, - LEX_HOSTNAME = 506, - LIKE = 507, - LIMIT = 508, - LINEFROMTEXT = 509, - LINES = 510, - LINESTRING = 511, - LOAD = 512, - LOCAL_SYM = 513, - LOCATE = 514, - LOCATOR_SYM = 515, - LOCKS_SYM = 516, - LOCK_SYM = 517, - LOGS_SYM = 518, - LOG_SYM = 519, - LONGBLOB = 520, - LONGTEXT = 521, - LONG_NUM = 522, - LONG_SYM = 523, - LOOP_SYM = 524, - LOW_PRIORITY = 525, - LT = 526, - MAKE_SET_SYM = 527, - MASTER_CONNECT_RETRY_SYM = 528, - MASTER_HOST_SYM = 529, - MASTER_LOG_FILE_SYM = 530, - MASTER_LOG_POS_SYM = 531, - MASTER_PASSWORD_SYM = 532, - MASTER_PORT_SYM = 533, - MASTER_POS_WAIT = 534, - MASTER_SERVER_ID_SYM = 535, - MASTER_SSL_CAPATH_SYM = 536, - MASTER_SSL_CA_SYM = 537, - MASTER_SSL_CERT_SYM = 538, - MASTER_SSL_CIPHER_SYM = 539, - MASTER_SSL_KEY_SYM = 540, - MASTER_SSL_SYM = 541, - MASTER_SYM = 542, - MASTER_USER_SYM = 543, - MATCH = 544, - MAX_CONNECTIONS_PER_HOUR = 545, - MAX_QUERIES_PER_HOUR = 546, - MAX_ROWS = 547, - MAX_SYM = 548, - MAX_UPDATES_PER_HOUR = 549, - MAX_USER_CONNECTIONS_SYM = 550, - MEDIUMBLOB = 551, - MEDIUMINT = 552, - MEDIUMTEXT = 553, - MEDIUM_SYM = 554, - MEMORY_SYM = 555, - MERGE_SYM = 556, - MICROSECOND_SYM = 557, - MIGRATE_SYM = 558, - MINUTE_MICROSECOND_SYM = 559, - MINUTE_SECOND_SYM = 560, - MINUTE_SYM = 561, - MIN_ROWS = 562, - MIN_SYM = 563, - MLINEFROMTEXT = 564, - MODE_SYM = 565, - MODIFIES_SYM = 566, - MODIFY_SYM = 567, - MOD_SYM = 568, - MONTH_SYM = 569, - MPOINTFROMTEXT = 570, - MPOLYFROMTEXT = 571, - MULTILINESTRING = 572, - MULTIPOINT = 573, - MULTIPOLYGON = 574, - MUTEX_SYM = 575, - NAMES_SYM = 576, - NAME_SYM = 577, - NATIONAL_SYM = 578, - NATURAL = 579, - NCHAR_STRING = 580, - NCHAR_SYM = 581, - NDBCLUSTER_SYM = 582, - NE = 583, - NEW_SYM = 584, - NEXT_SYM = 585, - NONE_SYM = 586, - NOT2_SYM = 587, - NOT_SYM = 588, - NOW_SYM = 589, - NO_SYM = 590, - NO_WRITE_TO_BINLOG = 591, - NULL_SYM = 592, - NUM = 593, - NUMERIC_SYM = 594, - NVARCHAR_SYM = 595, - OFFSET_SYM = 596, - OJ_SYM = 597, - OLD_PASSWORD = 598, - ON = 599, - ONE_SHOT_SYM = 600, - ONE_SYM = 601, - OPEN_SYM = 602, - OPTIMIZE = 603, - OPTION = 604, - OPTIONALLY = 605, - OR2_SYM = 606, - ORDER_SYM = 607, - OR_OR_SYM = 608, - OR_SYM = 609, - OUTER = 610, - OUTFILE = 611, - OUT_SYM = 612, - PACK_KEYS_SYM = 613, - PAGE_SYM = 614, - PARTIAL = 615, - PASSWORD = 616, - PARAM_MARKER = 617, - PHASE_SYM = 618, - POINTFROMTEXT = 619, - POINT_SYM = 620, - POLYFROMTEXT = 621, - POLYGON = 622, - POSITION_SYM = 623, - PRECISION = 624, - PREPARE_SYM = 625, - PREV_SYM = 626, - PRIMARY_SYM = 627, - PRIVILEGES = 628, - PROCEDURE = 629, - PROCESS = 630, - PROCESSLIST_SYM = 631, - PROFILE_SYM = 632, - PROFILES_SYM = 633, - PURGE = 634, - QUARTER_SYM = 635, - QUERY_SYM = 636, - QUICK = 637, - RAID_0_SYM = 638, - RAID_CHUNKS = 639, - RAID_CHUNKSIZE = 640, - RAID_STRIPED_SYM = 641, - RAID_TYPE = 642, - RAND = 643, - READS_SYM = 644, - READ_SYM = 645, - REAL = 646, - RECOVER_SYM = 647, - REDUNDANT_SYM = 648, - REFERENCES = 649, - REGEXP = 650, - RELAY_LOG_FILE_SYM = 651, - RELAY_LOG_POS_SYM = 652, - RELAY_THREAD = 653, - RELEASE_SYM = 654, - RELOAD = 655, - RENAME = 656, - REPAIR = 657, - REPEATABLE_SYM = 658, - REPEAT_SYM = 659, - REPLACE = 660, - REPLICATION = 661, - REQUIRE_SYM = 662, - RESET_SYM = 663, - RESOURCES = 664, - RESTORE_SYM = 665, - RESTRICT = 666, - RESUME_SYM = 667, - RETURNS_SYM = 668, - RETURN_SYM = 669, - REVOKE = 670, - RIGHT = 671, - ROLLBACK_SYM = 672, - ROLLUP_SYM = 673, - ROUND = 674, - ROUTINE_SYM = 675, - ROWS_SYM = 676, - ROW_COUNT_SYM = 677, - ROW_FORMAT_SYM = 678, - ROW_SYM = 679, - RTREE_SYM = 680, - SAVEPOINT_SYM = 681, - SECOND_MICROSECOND_SYM = 682, - SECOND_SYM = 683, - SECURITY_SYM = 684, - SELECT_SYM = 685, - SENSITIVE_SYM = 686, - SEPARATOR_SYM = 687, - SERIALIZABLE_SYM = 688, - SERIAL_SYM = 689, - SESSION_SYM = 690, - SET = 691, - SET_VAR = 692, - SHARE_SYM = 693, - SHIFT_LEFT = 694, - SHIFT_RIGHT = 695, - SHOW = 696, - SHUTDOWN = 697, - SIGNED_SYM = 698, - SIMPLE_SYM = 699, - SLAVE = 700, - SMALLINT = 701, - SNAPSHOT_SYM = 702, - SOUNDS_SYM = 703, - SOURCE_SYM = 704, - SPATIAL_SYM = 705, - SPECIFIC_SYM = 706, - SQLEXCEPTION_SYM = 707, - SQLSTATE_SYM = 708, - SQLWARNING_SYM = 709, - SQL_BIG_RESULT = 710, - SQL_BUFFER_RESULT = 711, - SQL_CACHE_SYM = 712, - SQL_CALC_FOUND_ROWS = 713, - SQL_NO_CACHE_SYM = 714, - SQL_SMALL_RESULT = 715, - SQL_SYM = 716, - SQL_THREAD = 717, - SSL_SYM = 718, - STARTING = 719, - START_SYM = 720, - STATUS_SYM = 721, - STD_SYM = 722, - STDDEV_SAMP_SYM = 723, - STOP_SYM = 724, - STORAGE_SYM = 725, - STRAIGHT_JOIN = 726, - STRING_SYM = 727, - SUBDATE_SYM = 728, - SUBJECT_SYM = 729, - SUBSTRING = 730, - SUBSTRING_INDEX = 731, - SUM_SYM = 732, - SUPER_SYM = 733, - SUSPEND_SYM = 734, - SWAPS_SYM = 735, - SWITCHES_SYM = 736, - SYSDATE = 737, - TABLES = 738, - TABLESPACE = 739, - TABLE_SYM = 740, - TEMPORARY = 741, - TEMPTABLE_SYM = 742, - TERMINATED = 743, - TEXT_STRING = 744, - TEXT_SYM = 745, - TIMESTAMP = 746, - TIMESTAMP_ADD = 747, - TIMESTAMP_DIFF = 748, - TIME_SYM = 749, - TINYBLOB = 750, - TINYINT = 751, - TINYTEXT = 752, - TO_SYM = 753, - TRAILING = 754, - TRANSACTION_SYM = 755, - TRIGGER_SYM = 756, - TRIGGERS_SYM = 757, - TRIM = 758, - TRUE_SYM = 759, - TRUNCATE_SYM = 760, - TYPES_SYM = 761, - TYPE_SYM = 762, - UDF_RETURNS_SYM = 763, - UDF_SONAME_SYM = 764, - ULONGLONG_NUM = 765, - UNCOMMITTED_SYM = 766, - UNDEFINED_SYM = 767, - UNDERSCORE_CHARSET = 768, - UNDO_SYM = 769, - UNICODE_SYM = 770, - UNION_SYM = 771, - UNIQUE_SYM = 772, - UNIQUE_USERS = 773, - UNIX_TIMESTAMP = 774, - UNKNOWN_SYM = 775, - UNLOCK_SYM = 776, - UNSIGNED = 777, - UNTIL_SYM = 778, - UPDATE_SYM = 779, - UPGRADE_SYM = 780, - USAGE = 781, - USER = 782, - USE_FRM = 783, - USE_SYM = 784, - USING = 785, - UTC_DATE_SYM = 786, - UTC_TIMESTAMP_SYM = 787, - UTC_TIME_SYM = 788, - VAR_SAMP_SYM = 789, - VALUES = 790, - VALUE_SYM = 791, - VARBINARY = 792, - VARCHAR = 793, - VARIABLES = 794, - VARIANCE_SYM = 795, - VARYING = 796, - VIEW_SYM = 797, - WARNINGS = 798, - WEEK_SYM = 799, - WHEN_SYM = 800, - WHERE = 801, - WHILE_SYM = 802, - WITH = 803, - WORK_SYM = 804, - WRITE_SYM = 805, - X509_SYM = 806, - XA_SYM = 807, - XOR = 808, - YEARWEEK = 809, - YEAR_MONTH_SYM = 810, - YEAR_SYM = 811, - ZEROFILL = 812, - TABLE_REF_PRIORITY = 813, - ELSE = 814, - THEN_SYM = 815, - CASE_SYM = 816, - BETWEEN_SYM = 817, - NEG = 818 + IEEE754_TO_STRING_SYM = 468, + IF = 469, + IGNORE_SYM = 470, + IMPORT = 471, + INDEXES = 472, + INDEX_SYM = 473, + INDEX_STATS_SYM = 474, + INFILE = 475, + INNER_SYM = 476, + INNOBASE_SYM = 477, + INOUT_SYM = 478, + INSENSITIVE_SYM = 479, + INSERT = 480, + INSERT_METHOD = 481, + INTERVAL_SYM = 482, + INTO = 483, + INT_SYM = 484, + INVOKER_SYM = 485, + IN_SYM = 486, + IO_SYM = 487, + IPC_SYM = 488, + IS = 489, + ISOLATION = 490, + ISSUER_SYM = 491, + ITERATE_SYM = 492, + JOIN_SYM = 493, + KEYS = 494, + KEY_SYM = 495, + KILL_SYM = 496, + LABEL_SYM = 497, + LANGUAGE_SYM = 498, + LAST_INSERT_ID = 499, + LAST_SYM = 500, + LE = 501, + LEADING = 502, + LEAST_SYM = 503, + LEAVES = 504, + LEAVE_SYM = 505, + LEFT = 506, + LEVEL_SYM = 507, + LEX_HOSTNAME = 508, + LIKE = 509, + LIMIT = 510, + LINEFROMTEXT = 511, + LINES = 512, + LINESTRING = 513, + LOAD = 514, + LOCAL_SYM = 515, + LOCATE = 516, + LOCATOR_SYM = 517, + LOCKS_SYM = 518, + LOCK_SYM = 519, + MAKE = 520, + LOGS_SYM = 521, + LOG_SYM = 522, + LONGBLOB = 523, + LONGTEXT = 524, + LONG_NUM = 525, + LONG_SYM = 526, + LOOP_SYM = 527, + LOW_PRIORITY = 528, + LT = 529, + MAKE_SET_SYM = 530, + MASTER_CONNECT_RETRY_SYM = 531, + MASTER_HOST_SYM = 532, + MASTER_LOG_FILE_SYM = 533, + MASTER_LOG_POS_SYM = 534, + MASTER_PASSWORD_SYM = 535, + MASTER_PORT_SYM = 536, + MASTER_POS_WAIT = 537, + MASTER_SERVER_ID_SYM = 538, + MASTER_SSL_CAPATH_SYM = 539, + MASTER_SSL_CA_SYM = 540, + MASTER_SSL_CERT_SYM = 541, + MASTER_SSL_CIPHER_SYM = 542, + MASTER_SSL_KEY_SYM = 543, + MASTER_SSL_SYM = 544, + MASTER_SYM = 545, + MASTER_USER_SYM = 546, + MATCH = 547, + MAX_CONNECTIONS_PER_HOUR = 548, + MAX_QUERIES_PER_HOUR = 549, + MAX_ROWS = 550, + MAX_SYM = 551, + MAX_UPDATES_PER_HOUR = 552, + MAX_USER_CONNECTIONS_SYM = 553, + MEDIUMBLOB = 554, + MEDIUMINT = 555, + MEDIUMTEXT = 556, + MEDIUM_SYM = 557, + MEMORY_SYM = 558, + MERGE_SYM = 559, + MICROSECOND_SYM = 560, + MIGRATE_SYM = 561, + MINUTE_MICROSECOND_SYM = 562, + MINUTE_SECOND_SYM = 563, + MINUTE_SYM = 564, + MIN_ROWS = 565, + MIN_SYM = 566, + MLINEFROMTEXT = 567, + MODE_SYM = 568, + MODIFIES_SYM = 569, + MODIFY_SYM = 570, + MOD_SYM = 571, + MONTH_SYM = 572, + MPOINTFROMTEXT = 573, + MPOLYFROMTEXT = 574, + MULTILINESTRING = 575, + MULTIPOINT = 576, + MULTIPOLYGON = 577, + MUTEX_SYM = 578, + NAMES_SYM = 579, + NAME_SYM = 580, + NATIONAL_SYM = 581, + NATURAL = 582, + NCHAR_STRING = 583, + NCHAR_SYM = 584, + NDBCLUSTER_SYM = 585, + NE = 586, + NEW_SYM = 587, + NEXT_SYM = 588, + NONE_SYM = 589, + NOT2_SYM = 590, + NOT_SYM = 591, + NOW_SYM = 592, + NO_SYM = 593, + NO_WRITE_TO_BINLOG = 594, + NULL_SYM = 595, + NUM = 596, + NUMERIC_SYM = 597, + NVARCHAR_SYM = 598, + OFFSET_SYM = 599, + OJ_SYM = 600, + OLD_PASSWORD = 601, + ON = 602, + ONE_SHOT_SYM = 603, + ONE_SYM = 604, + OPEN_SYM = 605, + OPTIMIZE = 606, + OPTION = 607, + OPTIONALLY = 608, + OR2_SYM = 609, + ORDER_SYM = 610, + ORDERED_CHECKSUM_SYM = 611, + OR_OR_SYM = 612, + OR_SYM = 613, + OUTER = 614, + OUTFILE = 615, + OUT_SYM = 616, + PACK_KEYS_SYM = 617, + PAGE_SYM = 618, + PARTIAL = 619, + PASSWORD = 620, + PARAM_MARKER = 621, + PHASE_SYM = 622, + POINTFROMTEXT = 623, + POINT_SYM = 624, + POLYFROMTEXT = 625, + POLYGON = 626, + POSITION_SYM = 627, + PRECISION = 628, + PREPARE_SYM = 629, + PREV_SYM = 630, + PRIMARY_SYM = 631, + PRIVILEGES = 632, + PROCEDURE = 633, + PROCESS = 634, + PROCESSLIST_SYM = 635, + PROFILE_SYM = 636, + PROFILES_SYM = 637, + PURGE = 638, + QUARTER_SYM = 639, + QUERY_SYM = 640, + QUICK = 641, + RAID_0_SYM = 642, + RAID_CHUNKS = 643, + RAID_CHUNKSIZE = 644, + RAID_STRIPED_SYM = 645, + RAID_TYPE = 646, + RAND = 647, + READS_SYM = 648, + READ_SYM = 649, + REAL = 650, + RECOVER_SYM = 651, + REDUNDANT_SYM = 652, + REFERENCES = 653, + REGEXP = 654, + RELAY_LOG_FILE_SYM = 655, + RELAY_LOG_POS_SYM = 656, + RELAY_THREAD = 657, + RELEASE_SYM = 658, + RELOAD = 659, + RENAME = 660, + REPAIR = 661, + REPEATABLE_SYM = 662, + REPEAT_SYM = 663, + REPLACE = 664, + REPLICATION = 665, + REQUIRE_SYM = 666, + RESET_SYM = 667, + RESOURCES = 668, + RESTORE_SYM = 669, + RESTRICT = 670, + RESUME_SYM = 671, + RETURNS_SYM = 672, + RETURN_SYM = 673, + REVOKE = 674, + RIGHT = 675, + ROLLBACK_SYM = 676, + ROLLUP_SYM = 677, + ROUND = 678, + ROUTINE_SYM = 679, + ROWS_SYM = 680, + ROW_COUNT_SYM = 681, + ROW_FORMAT_SYM = 682, + ROW_SYM = 683, + RTREE_SYM = 684, + SAVEPOINT_SYM = 685, + SECOND_MICROSECOND_SYM = 686, + SECOND_SYM = 687, + SECURITY_SYM = 688, + SELECT_SYM = 689, + SENSITIVE_SYM = 690, + SEPARATOR_SYM = 691, + SERIALIZABLE_SYM = 692, + SERIAL_SYM = 693, + SESSION_SYM = 694, + SET = 695, + SET_VAR = 696, + SHARE_SYM = 697, + SHIFT_LEFT = 698, + SHIFT_RIGHT = 699, + SHOW = 700, + SHUTDOWN = 701, + SIGNED_SYM = 702, + SIMPLE_SYM = 703, + SLAVE = 704, + SMALLINT = 705, + SNAPSHOT_SYM = 706, + SOUNDS_SYM = 707, + SOURCE_SYM = 708, + SPATIAL_SYM = 709, + SPECIFIC_SYM = 710, + SQLEXCEPTION_SYM = 711, + SQLSTATE_SYM = 712, + SQLWARNING_SYM = 713, + SQL_BIG_RESULT = 714, + SQL_BUFFER_RESULT = 715, + SQL_CACHE_SYM = 716, + SQL_CALC_FOUND_ROWS = 717, + SQL_NO_CACHE_SYM = 718, + SQL_SMALL_RESULT = 719, + SQL_SYM = 720, + SQL_THREAD = 721, + SSL_SYM = 722, + STARTING = 723, + START_SYM = 724, + STATUS_SYM = 725, + STD_SYM = 726, + STDDEV_SAMP_SYM = 727, + STOP_SYM = 728, + STORAGE_SYM = 729, + STRAIGHT_JOIN = 730, + STRING_SYM = 731, + SUBDATE_SYM = 732, + SUBJECT_SYM = 733, + SUBSTRING = 734, + SUBSTRING_INDEX = 735, + SUM_SYM = 736, + SUPER_SYM = 737, + SUSPEND_SYM = 738, + SWAPS_SYM = 739, + SWITCHES_SYM = 740, + SYSDATE = 741, + TABLES = 742, + TABLESPACE = 743, + TABLE_SYM = 744, + TABLE_STATS_SYM = 745, + TEMPORARY = 746, + TEMPTABLE_SYM = 747, + TERMINATED = 748, + TEXT_STRING = 749, + TEXT_SYM = 750, + TIMESTAMP = 751, + TIMESTAMP_ADD = 752, + TIMESTAMP_DIFF = 753, + TIME_SYM = 754, + TINYBLOB = 755, + TINYINT = 756, + TINYTEXT = 757, + TO_SYM = 758, + TRAILING = 759, + TRANSACTION_SYM = 760, + TRIGGER_SYM = 761, + TRIGGERS_SYM = 762, + TRIM = 763, + TRUE_SYM = 764, + TRUNCATE_SYM = 765, + TYPES_SYM = 766, + TYPE_SYM = 767, + UDF_RETURNS_SYM = 768, + UDF_SONAME_SYM = 769, + ULONGLONG_NUM = 770, + UNCOMMITTED_SYM = 771, + UNDEFINED_SYM = 772, + UNDERSCORE_CHARSET = 773, + UNDO_SYM = 774, + UNICODE_SYM = 775, + UNION_SYM = 776, + UNIQUE_SYM = 777, + UNIQUE_USERS = 778, + UNIX_TIMESTAMP = 779, + UNKNOWN_SYM = 780, + UNLOCK_SYM = 781, + UNORDERED_CHECKSUM_SYM = 782, + UNSIGNED = 783, + UNTIL_SYM = 784, + UPDATE_SYM = 785, + UPGRADE_SYM = 786, + USAGE = 787, + USER = 788, + USER_STATS_SYM = 789, + USE_FRM = 790, + USE_SYM = 791, + USING = 792, + UTC_DATE_SYM = 793, + UTC_TIMESTAMP_SYM = 794, + UTC_TIME_SYM = 795, + VAR_SAMP_SYM = 796, + VALUES = 797, + VALUE_SYM = 798, + VARBINARY = 799, + VARCHAR = 800, + VARIABLES = 801, + VARIANCE_SYM = 802, + VARYING = 803, + VIEW_SYM = 804, + WARNINGS = 805, + WEEK_SYM = 806, + WHEN_SYM = 807, + WHERE = 808, + WHILE_SYM = 809, + WITH = 810, + WORK_SYM = 811, + WRITE_SYM = 812, + X509_SYM = 813, + XA_SYM = 814, + XOR = 815, + YEARWEEK = 816, + YEAR_MONTH_SYM = 817, + YEAR_SYM = 818, + ZEROFILL = 819, + TABLE_REF_PRIORITY = 820, + ELSE = 821, + THEN_SYM = 822, + CASE_SYM = 823, + BETWEEN_SYM = 824, + NEG = 825 }; #endif +/* Tokens. */ #define END_OF_INPUT 258 #define ABORT_SYM 259 #define ACTION 260 @@ -834,357 +845,364 @@ #define IDENT 465 #define IDENTIFIED_SYM 466 #define IDENT_QUOTED 467 -#define IF 468 -#define IGNORE_SYM 469 -#define IMPORT 470 -#define INDEXES 471 -#define INDEX_SYM 472 -#define INFILE 473 -#define INNER_SYM 474 -#define INNOBASE_SYM 475 -#define INOUT_SYM 476 -#define INSENSITIVE_SYM 477 -#define INSERT 478 -#define INSERT_METHOD 479 -#define INTERVAL_SYM 480 -#define INTO 481 -#define INT_SYM 482 -#define INVOKER_SYM 483 -#define IN_SYM 484 -#define IO_SYM 485 -#define IPC_SYM 486 -#define IS 487 -#define ISOLATION 488 -#define ISSUER_SYM 489 -#define ITERATE_SYM 490 -#define JOIN_SYM 491 -#define KEYS 492 -#define KEY_SYM 493 -#define KILL_SYM 494 -#define LABEL_SYM 495 -#define LANGUAGE_SYM 496 -#define LAST_INSERT_ID 497 -#define LAST_SYM 498 -#define LE 499 -#define LEADING 500 -#define LEAST_SYM 501 -#define LEAVES 502 -#define LEAVE_SYM 503 -#define LEFT 504 -#define LEVEL_SYM 505 -#define LEX_HOSTNAME 506 -#define LIKE 507 -#define LIMIT 508 -#define LINEFROMTEXT 509 -#define LINES 510 -#define LINESTRING 511 -#define LOAD 512 -#define LOCAL_SYM 513 -#define LOCATE 514 -#define LOCATOR_SYM 515 -#define LOCKS_SYM 516 -#define LOCK_SYM 517 -#define LOGS_SYM 518 -#define LOG_SYM 519 -#define LONGBLOB 520 -#define LONGTEXT 521 -#define LONG_NUM 522 -#define LONG_SYM 523 -#define LOOP_SYM 524 -#define LOW_PRIORITY 525 -#define LT 526 -#define MAKE_SET_SYM 527 -#define MASTER_CONNECT_RETRY_SYM 528 -#define MASTER_HOST_SYM 529 -#define MASTER_LOG_FILE_SYM 530 -#define MASTER_LOG_POS_SYM 531 -#define MASTER_PASSWORD_SYM 532 -#define MASTER_PORT_SYM 533 -#define MASTER_POS_WAIT 534 -#define MASTER_SERVER_ID_SYM 535 -#define MASTER_SSL_CAPATH_SYM 536 -#define MASTER_SSL_CA_SYM 537 -#define MASTER_SSL_CERT_SYM 538 -#define MASTER_SSL_CIPHER_SYM 539 -#define MASTER_SSL_KEY_SYM 540 -#define MASTER_SSL_SYM 541 -#define MASTER_SYM 542 -#define MASTER_USER_SYM 543 -#define MATCH 544 -#define MAX_CONNECTIONS_PER_HOUR 545 -#define MAX_QUERIES_PER_HOUR 546 -#define MAX_ROWS 547 -#define MAX_SYM 548 -#define MAX_UPDATES_PER_HOUR 549 -#define MAX_USER_CONNECTIONS_SYM 550 -#define MEDIUMBLOB 551 -#define MEDIUMINT 552 -#define MEDIUMTEXT 553 -#define MEDIUM_SYM 554 -#define MEMORY_SYM 555 -#define MERGE_SYM 556 -#define MICROSECOND_SYM 557 -#define MIGRATE_SYM 558 -#define MINUTE_MICROSECOND_SYM 559 -#define MINUTE_SECOND_SYM 560 -#define MINUTE_SYM 561 -#define MIN_ROWS 562 -#define MIN_SYM 563 -#define MLINEFROMTEXT 564 -#define MODE_SYM 565 -#define MODIFIES_SYM 566 -#define MODIFY_SYM 567 -#define MOD_SYM 568 -#define MONTH_SYM 569 -#define MPOINTFROMTEXT 570 -#define MPOLYFROMTEXT 571 -#define MULTILINESTRING 572 -#define MULTIPOINT 573 -#define MULTIPOLYGON 574 -#define MUTEX_SYM 575 -#define NAMES_SYM 576 -#define NAME_SYM 577 -#define NATIONAL_SYM 578 -#define NATURAL 579 -#define NCHAR_STRING 580 -#define NCHAR_SYM 581 -#define NDBCLUSTER_SYM 582 -#define NE 583 -#define NEW_SYM 584 -#define NEXT_SYM 585 -#define NONE_SYM 586 -#define NOT2_SYM 587 -#define NOT_SYM 588 -#define NOW_SYM 589 -#define NO_SYM 590 -#define NO_WRITE_TO_BINLOG 591 -#define NULL_SYM 592 -#define NUM 593 -#define NUMERIC_SYM 594 -#define NVARCHAR_SYM 595 -#define OFFSET_SYM 596 -#define OJ_SYM 597 -#define OLD_PASSWORD 598 -#define ON 599 -#define ONE_SHOT_SYM 600 -#define ONE_SYM 601 -#define OPEN_SYM 602 -#define OPTIMIZE 603 -#define OPTION 604 -#define OPTIONALLY 605 -#define OR2_SYM 606 -#define ORDER_SYM 607 -#define OR_OR_SYM 608 -#define OR_SYM 609 -#define OUTER 610 -#define OUTFILE 611 -#define OUT_SYM 612 -#define PACK_KEYS_SYM 613 -#define PAGE_SYM 614 -#define PARTIAL 615 -#define PASSWORD 616 -#define PARAM_MARKER 617 -#define PHASE_SYM 618 -#define POINTFROMTEXT 619 -#define POINT_SYM 620 -#define POLYFROMTEXT 621 -#define POLYGON 622 -#define POSITION_SYM 623 -#define PRECISION 624 -#define PREPARE_SYM 625 -#define PREV_SYM 626 -#define PRIMARY_SYM 627 -#define PRIVILEGES 628 -#define PROCEDURE 629 -#define PROCESS 630 -#define PROCESSLIST_SYM 631 -#define PROFILE_SYM 632 -#define PROFILES_SYM 633 -#define PURGE 634 -#define QUARTER_SYM 635 -#define QUERY_SYM 636 -#define QUICK 637 -#define RAID_0_SYM 638 -#define RAID_CHUNKS 639 -#define RAID_CHUNKSIZE 640 -#define RAID_STRIPED_SYM 641 -#define RAID_TYPE 642 -#define RAND 643 -#define READS_SYM 644 -#define READ_SYM 645 -#define REAL 646 -#define RECOVER_SYM 647 -#define REDUNDANT_SYM 648 -#define REFERENCES 649 -#define REGEXP 650 -#define RELAY_LOG_FILE_SYM 651 -#define RELAY_LOG_POS_SYM 652 -#define RELAY_THREAD 653 -#define RELEASE_SYM 654 -#define RELOAD 655 -#define RENAME 656 -#define REPAIR 657 -#define REPEATABLE_SYM 658 -#define REPEAT_SYM 659 -#define REPLACE 660 -#define REPLICATION 661 -#define REQUIRE_SYM 662 -#define RESET_SYM 663 -#define RESOURCES 664 -#define RESTORE_SYM 665 -#define RESTRICT 666 -#define RESUME_SYM 667 -#define RETURNS_SYM 668 -#define RETURN_SYM 669 -#define REVOKE 670 -#define RIGHT 671 -#define ROLLBACK_SYM 672 -#define ROLLUP_SYM 673 -#define ROUND 674 -#define ROUTINE_SYM 675 -#define ROWS_SYM 676 -#define ROW_COUNT_SYM 677 -#define ROW_FORMAT_SYM 678 -#define ROW_SYM 679 -#define RTREE_SYM 680 -#define SAVEPOINT_SYM 681 -#define SECOND_MICROSECOND_SYM 682 -#define SECOND_SYM 683 -#define SECURITY_SYM 684 -#define SELECT_SYM 685 -#define SENSITIVE_SYM 686 -#define SEPARATOR_SYM 687 -#define SERIALIZABLE_SYM 688 -#define SERIAL_SYM 689 -#define SESSION_SYM 690 -#define SET 691 -#define SET_VAR 692 -#define SHARE_SYM 693 -#define SHIFT_LEFT 694 -#define SHIFT_RIGHT 695 -#define SHOW 696 -#define SHUTDOWN 697 -#define SIGNED_SYM 698 -#define SIMPLE_SYM 699 -#define SLAVE 700 -#define SMALLINT 701 -#define SNAPSHOT_SYM 702 -#define SOUNDS_SYM 703 -#define SOURCE_SYM 704 -#define SPATIAL_SYM 705 -#define SPECIFIC_SYM 706 -#define SQLEXCEPTION_SYM 707 -#define SQLSTATE_SYM 708 -#define SQLWARNING_SYM 709 -#define SQL_BIG_RESULT 710 -#define SQL_BUFFER_RESULT 711 -#define SQL_CACHE_SYM 712 -#define SQL_CALC_FOUND_ROWS 713 -#define SQL_NO_CACHE_SYM 714 -#define SQL_SMALL_RESULT 715 -#define SQL_SYM 716 -#define SQL_THREAD 717 -#define SSL_SYM 718 -#define STARTING 719 -#define START_SYM 720 -#define STATUS_SYM 721 -#define STD_SYM 722 -#define STDDEV_SAMP_SYM 723 -#define STOP_SYM 724 -#define STORAGE_SYM 725 -#define STRAIGHT_JOIN 726 -#define STRING_SYM 727 -#define SUBDATE_SYM 728 -#define SUBJECT_SYM 729 -#define SUBSTRING 730 -#define SUBSTRING_INDEX 731 -#define SUM_SYM 732 -#define SUPER_SYM 733 -#define SUSPEND_SYM 734 -#define SWAPS_SYM 735 -#define SWITCHES_SYM 736 -#define SYSDATE 737 -#define TABLES 738 -#define TABLESPACE 739 -#define TABLE_SYM 740 -#define TEMPORARY 741 -#define TEMPTABLE_SYM 742 -#define TERMINATED 743 -#define TEXT_STRING 744 -#define TEXT_SYM 745 -#define TIMESTAMP 746 -#define TIMESTAMP_ADD 747 -#define TIMESTAMP_DIFF 748 -#define TIME_SYM 749 -#define TINYBLOB 750 -#define TINYINT 751 -#define TINYTEXT 752 -#define TO_SYM 753 -#define TRAILING 754 -#define TRANSACTION_SYM 755 -#define TRIGGER_SYM 756 -#define TRIGGERS_SYM 757 -#define TRIM 758 -#define TRUE_SYM 759 -#define TRUNCATE_SYM 760 -#define TYPES_SYM 761 -#define TYPE_SYM 762 -#define UDF_RETURNS_SYM 763 -#define UDF_SONAME_SYM 764 -#define ULONGLONG_NUM 765 -#define UNCOMMITTED_SYM 766 -#define UNDEFINED_SYM 767 -#define UNDERSCORE_CHARSET 768 -#define UNDO_SYM 769 -#define UNICODE_SYM 770 -#define UNION_SYM 771 -#define UNIQUE_SYM 772 -#define UNIQUE_USERS 773 -#define UNIX_TIMESTAMP 774 -#define UNKNOWN_SYM 775 -#define UNLOCK_SYM 776 -#define UNSIGNED 777 -#define UNTIL_SYM 778 -#define UPDATE_SYM 779 -#define UPGRADE_SYM 780 -#define USAGE 781 -#define USER 782 -#define USE_FRM 783 -#define USE_SYM 784 -#define USING 785 -#define UTC_DATE_SYM 786 -#define UTC_TIMESTAMP_SYM 787 -#define UTC_TIME_SYM 788 -#define VAR_SAMP_SYM 789 -#define VALUES 790 -#define VALUE_SYM 791 -#define VARBINARY 792 -#define VARCHAR 793 -#define VARIABLES 794 -#define VARIANCE_SYM 795 -#define VARYING 796 -#define VIEW_SYM 797 -#define WARNINGS 798 -#define WEEK_SYM 799 -#define WHEN_SYM 800 -#define WHERE 801 -#define WHILE_SYM 802 -#define WITH 803 -#define WORK_SYM 804 -#define WRITE_SYM 805 -#define X509_SYM 806 -#define XA_SYM 807 -#define XOR 808 -#define YEARWEEK 809 -#define YEAR_MONTH_SYM 810 -#define YEAR_SYM 811 -#define ZEROFILL 812 -#define TABLE_REF_PRIORITY 813 -#define ELSE 814 -#define THEN_SYM 815 -#define CASE_SYM 816 -#define BETWEEN_SYM 817 -#define NEG 818 +#define IEEE754_TO_STRING_SYM 468 +#define IF 469 +#define IGNORE_SYM 470 +#define IMPORT 471 +#define INDEXES 472 +#define INDEX_SYM 473 +#define INDEX_STATS_SYM 474 +#define INFILE 475 +#define INNER_SYM 476 +#define INNOBASE_SYM 477 +#define INOUT_SYM 478 +#define INSENSITIVE_SYM 479 +#define INSERT 480 +#define INSERT_METHOD 481 +#define INTERVAL_SYM 482 +#define INTO 483 +#define INT_SYM 484 +#define INVOKER_SYM 485 +#define IN_SYM 486 +#define IO_SYM 487 +#define IPC_SYM 488 +#define IS 489 +#define ISOLATION 490 +#define ISSUER_SYM 491 +#define ITERATE_SYM 492 +#define JOIN_SYM 493 +#define KEYS 494 +#define KEY_SYM 495 +#define KILL_SYM 496 +#define LABEL_SYM 497 +#define LANGUAGE_SYM 498 +#define LAST_INSERT_ID 499 +#define LAST_SYM 500 +#define LE 501 +#define LEADING 502 +#define LEAST_SYM 503 +#define LEAVES 504 +#define LEAVE_SYM 505 +#define LEFT 506 +#define LEVEL_SYM 507 +#define LEX_HOSTNAME 508 +#define LIKE 509 +#define LIMIT 510 +#define LINEFROMTEXT 511 +#define LINES 512 +#define LINESTRING 513 +#define LOAD 514 +#define LOCAL_SYM 515 +#define LOCATE 516 +#define LOCATOR_SYM 517 +#define LOCKS_SYM 518 +#define LOCK_SYM 519 +#define MAKE 520 +#define LOGS_SYM 521 +#define LOG_SYM 522 +#define LONGBLOB 523 +#define LONGTEXT 524 +#define LONG_NUM 525 +#define LONG_SYM 526 +#define LOOP_SYM 527 +#define LOW_PRIORITY 528 +#define LT 529 +#define MAKE_SET_SYM 530 +#define MASTER_CONNECT_RETRY_SYM 531 +#define MASTER_HOST_SYM 532 +#define MASTER_LOG_FILE_SYM 533 +#define MASTER_LOG_POS_SYM 534 +#define MASTER_PASSWORD_SYM 535 +#define MASTER_PORT_SYM 536 +#define MASTER_POS_WAIT 537 +#define MASTER_SERVER_ID_SYM 538 +#define MASTER_SSL_CAPATH_SYM 539 +#define MASTER_SSL_CA_SYM 540 +#define MASTER_SSL_CERT_SYM 541 +#define MASTER_SSL_CIPHER_SYM 542 +#define MASTER_SSL_KEY_SYM 543 +#define MASTER_SSL_SYM 544 +#define MASTER_SYM 545 +#define MASTER_USER_SYM 546 +#define MATCH 547 +#define MAX_CONNECTIONS_PER_HOUR 548 +#define MAX_QUERIES_PER_HOUR 549 +#define MAX_ROWS 550 +#define MAX_SYM 551 +#define MAX_UPDATES_PER_HOUR 552 +#define MAX_USER_CONNECTIONS_SYM 553 +#define MEDIUMBLOB 554 +#define MEDIUMINT 555 +#define MEDIUMTEXT 556 +#define MEDIUM_SYM 557 +#define MEMORY_SYM 558 +#define MERGE_SYM 559 +#define MICROSECOND_SYM 560 +#define MIGRATE_SYM 561 +#define MINUTE_MICROSECOND_SYM 562 +#define MINUTE_SECOND_SYM 563 +#define MINUTE_SYM 564 +#define MIN_ROWS 565 +#define MIN_SYM 566 +#define MLINEFROMTEXT 567 +#define MODE_SYM 568 +#define MODIFIES_SYM 569 +#define MODIFY_SYM 570 +#define MOD_SYM 571 +#define MONTH_SYM 572 +#define MPOINTFROMTEXT 573 +#define MPOLYFROMTEXT 574 +#define MULTILINESTRING 575 +#define MULTIPOINT 576 +#define MULTIPOLYGON 577 +#define MUTEX_SYM 578 +#define NAMES_SYM 579 +#define NAME_SYM 580 +#define NATIONAL_SYM 581 +#define NATURAL 582 +#define NCHAR_STRING 583 +#define NCHAR_SYM 584 +#define NDBCLUSTER_SYM 585 +#define NE 586 +#define NEW_SYM 587 +#define NEXT_SYM 588 +#define NONE_SYM 589 +#define NOT2_SYM 590 +#define NOT_SYM 591 +#define NOW_SYM 592 +#define NO_SYM 593 +#define NO_WRITE_TO_BINLOG 594 +#define NULL_SYM 595 +#define NUM 596 +#define NUMERIC_SYM 597 +#define NVARCHAR_SYM 598 +#define OFFSET_SYM 599 +#define OJ_SYM 600 +#define OLD_PASSWORD 601 +#define ON 602 +#define ONE_SHOT_SYM 603 +#define ONE_SYM 604 +#define OPEN_SYM 605 +#define OPTIMIZE 606 +#define OPTION 607 +#define OPTIONALLY 608 +#define OR2_SYM 609 +#define ORDER_SYM 610 +#define ORDERED_CHECKSUM_SYM 611 +#define OR_OR_SYM 612 +#define OR_SYM 613 +#define OUTER 614 +#define OUTFILE 615 +#define OUT_SYM 616 +#define PACK_KEYS_SYM 617 +#define PAGE_SYM 618 +#define PARTIAL 619 +#define PASSWORD 620 +#define PARAM_MARKER 621 +#define PHASE_SYM 622 +#define POINTFROMTEXT 623 +#define POINT_SYM 624 +#define POLYFROMTEXT 625 +#define POLYGON 626 +#define POSITION_SYM 627 +#define PRECISION 628 +#define PREPARE_SYM 629 +#define PREV_SYM 630 +#define PRIMARY_SYM 631 +#define PRIVILEGES 632 +#define PROCEDURE 633 +#define PROCESS 634 +#define PROCESSLIST_SYM 635 +#define PROFILE_SYM 636 +#define PROFILES_SYM 637 +#define PURGE 638 +#define QUARTER_SYM 639 +#define QUERY_SYM 640 +#define QUICK 641 +#define RAID_0_SYM 642 +#define RAID_CHUNKS 643 +#define RAID_CHUNKSIZE 644 +#define RAID_STRIPED_SYM 645 +#define RAID_TYPE 646 +#define RAND 647 +#define READS_SYM 648 +#define READ_SYM 649 +#define REAL 650 +#define RECOVER_SYM 651 +#define REDUNDANT_SYM 652 +#define REFERENCES 653 +#define REGEXP 654 +#define RELAY_LOG_FILE_SYM 655 +#define RELAY_LOG_POS_SYM 656 +#define RELAY_THREAD 657 +#define RELEASE_SYM 658 +#define RELOAD 659 +#define RENAME 660 +#define REPAIR 661 +#define REPEATABLE_SYM 662 +#define REPEAT_SYM 663 +#define REPLACE 664 +#define REPLICATION 665 +#define REQUIRE_SYM 666 +#define RESET_SYM 667 +#define RESOURCES 668 +#define RESTORE_SYM 669 +#define RESTRICT 670 +#define RESUME_SYM 671 +#define RETURNS_SYM 672 +#define RETURN_SYM 673 +#define REVOKE 674 +#define RIGHT 675 +#define ROLLBACK_SYM 676 +#define ROLLUP_SYM 677 +#define ROUND 678 +#define ROUTINE_SYM 679 +#define ROWS_SYM 680 +#define ROW_COUNT_SYM 681 +#define ROW_FORMAT_SYM 682 +#define ROW_SYM 683 +#define RTREE_SYM 684 +#define SAVEPOINT_SYM 685 +#define SECOND_MICROSECOND_SYM 686 +#define SECOND_SYM 687 +#define SECURITY_SYM 688 +#define SELECT_SYM 689 +#define SENSITIVE_SYM 690 +#define SEPARATOR_SYM 691 +#define SERIALIZABLE_SYM 692 +#define SERIAL_SYM 693 +#define SESSION_SYM 694 +#define SET 695 +#define SET_VAR 696 +#define SHARE_SYM 697 +#define SHIFT_LEFT 698 +#define SHIFT_RIGHT 699 +#define SHOW 700 +#define SHUTDOWN 701 +#define SIGNED_SYM 702 +#define SIMPLE_SYM 703 +#define SLAVE 704 +#define SMALLINT 705 +#define SNAPSHOT_SYM 706 +#define SOUNDS_SYM 707 +#define SOURCE_SYM 708 +#define SPATIAL_SYM 709 +#define SPECIFIC_SYM 710 +#define SQLEXCEPTION_SYM 711 +#define SQLSTATE_SYM 712 +#define SQLWARNING_SYM 713 +#define SQL_BIG_RESULT 714 +#define SQL_BUFFER_RESULT 715 +#define SQL_CACHE_SYM 716 +#define SQL_CALC_FOUND_ROWS 717 +#define SQL_NO_CACHE_SYM 718 +#define SQL_SMALL_RESULT 719 +#define SQL_SYM 720 +#define SQL_THREAD 721 +#define SSL_SYM 722 +#define STARTING 723 +#define START_SYM 724 +#define STATUS_SYM 725 +#define STD_SYM 726 +#define STDDEV_SAMP_SYM 727 +#define STOP_SYM 728 +#define STORAGE_SYM 729 +#define STRAIGHT_JOIN 730 +#define STRING_SYM 731 +#define SUBDATE_SYM 732 +#define SUBJECT_SYM 733 +#define SUBSTRING 734 +#define SUBSTRING_INDEX 735 +#define SUM_SYM 736 +#define SUPER_SYM 737 +#define SUSPEND_SYM 738 +#define SWAPS_SYM 739 +#define SWITCHES_SYM 740 +#define SYSDATE 741 +#define TABLES 742 +#define TABLESPACE 743 +#define TABLE_SYM 744 +#define TABLE_STATS_SYM 745 +#define TEMPORARY 746 +#define TEMPTABLE_SYM 747 +#define TERMINATED 748 +#define TEXT_STRING 749 +#define TEXT_SYM 750 +#define TIMESTAMP 751 +#define TIMESTAMP_ADD 752 +#define TIMESTAMP_DIFF 753 +#define TIME_SYM 754 +#define TINYBLOB 755 +#define TINYINT 756 +#define TINYTEXT 757 +#define TO_SYM 758 +#define TRAILING 759 +#define TRANSACTION_SYM 760 +#define TRIGGER_SYM 761 +#define TRIGGERS_SYM 762 +#define TRIM 763 +#define TRUE_SYM 764 +#define TRUNCATE_SYM 765 +#define TYPES_SYM 766 +#define TYPE_SYM 767 +#define UDF_RETURNS_SYM 768 +#define UDF_SONAME_SYM 769 +#define ULONGLONG_NUM 770 +#define UNCOMMITTED_SYM 771 +#define UNDEFINED_SYM 772 +#define UNDERSCORE_CHARSET 773 +#define UNDO_SYM 774 +#define UNICODE_SYM 775 +#define UNION_SYM 776 +#define UNIQUE_SYM 777 +#define UNIQUE_USERS 778 +#define UNIX_TIMESTAMP 779 +#define UNKNOWN_SYM 780 +#define UNLOCK_SYM 781 +#define UNORDERED_CHECKSUM_SYM 782 +#define UNSIGNED 783 +#define UNTIL_SYM 784 +#define UPDATE_SYM 785 +#define UPGRADE_SYM 786 +#define USAGE 787 +#define USER 788 +#define USER_STATS_SYM 789 +#define USE_FRM 790 +#define USE_SYM 791 +#define USING 792 +#define UTC_DATE_SYM 793 +#define UTC_TIMESTAMP_SYM 794 +#define UTC_TIME_SYM 795 +#define VAR_SAMP_SYM 796 +#define VALUES 797 +#define VALUE_SYM 798 +#define VARBINARY 799 +#define VARCHAR 800 +#define VARIABLES 801 +#define VARIANCE_SYM 802 +#define VARYING 803 +#define VIEW_SYM 804 +#define WARNINGS 805 +#define WEEK_SYM 806 +#define WHEN_SYM 807 +#define WHERE 808 +#define WHILE_SYM 809 +#define WITH 810 +#define WORK_SYM 811 +#define WRITE_SYM 812 +#define X509_SYM 813 +#define XA_SYM 814 +#define XOR 815 +#define YEARWEEK 816 +#define YEAR_MONTH_SYM 817 +#define YEAR_SYM 818 +#define ZEROFILL 819 +#define TABLE_REF_PRIORITY 820 +#define ELSE 821 +#define THEN_SYM 822 +#define CASE_SYM 823 +#define BETWEEN_SYM 824 +#define NEG 825 @@ -1467,6 +1485,11 @@ # define YYERROR_VERBOSE 0 #endif +/* Enabling the token table. */ +#ifndef YYTOKEN_TABLE +# define YYTOKEN_TABLE 0 +#endif + #if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED) #line 280 "sql_yacc.yy" typedef union YYSTYPE { @@ -1508,8 +1531,8 @@ sp_name *spname; struct st_lex *lex; } YYSTYPE; -/* Line 190 of yacc.c. */ -#line 1513 "sql_yacc.cc" +/* Line 196 of yacc.c. */ +#line 1536 "sql_yacc.cc" # define yystype YYSTYPE /* obsolescent; will be withdrawn */ # define YYSTYPE_IS_DECLARED 1 # define YYSTYPE_IS_TRIVIAL 1 @@ -1523,17 +1546,36 @@ bool my_yyoverflow(short **a, YYSTYPE **b, ulong *yystacksize); -/* Line 213 of yacc.c. */ -#line 1528 "sql_yacc.cc" +/* Line 219 of yacc.c. */ +#line 1551 "sql_yacc.cc" -#if ! defined (yyoverflow) || YYERROR_VERBOSE +#if ! defined (YYSIZE_T) && defined (__SIZE_TYPE__) +# define YYSIZE_T __SIZE_TYPE__ +#endif +#if ! defined (YYSIZE_T) && defined (size_t) +# define YYSIZE_T size_t +#endif +#if ! defined (YYSIZE_T) && (defined (__STDC__) || defined (__cplusplus)) +# include /* INFRINGES ON USER NAME SPACE */ +# define YYSIZE_T size_t +#endif +#if ! defined (YYSIZE_T) +# define YYSIZE_T unsigned int +#endif -# ifndef YYFREE -# define YYFREE free +#ifndef YY_ +# if YYENABLE_NLS +# if ENABLE_NLS +# include /* INFRINGES ON USER NAME SPACE */ +# define YY_(msgid) dgettext ("bison-runtime", msgid) +# endif # endif -# ifndef YYMALLOC -# define YYMALLOC malloc +# ifndef YY_ +# define YY_(msgid) msgid # endif +#endif + +#if ! defined (yyoverflow) || YYERROR_VERBOSE /* The parser invokes alloca or malloc; define the necessary symbols. */ @@ -1543,6 +1585,10 @@ # define YYSTACK_ALLOC __builtin_alloca # else # define YYSTACK_ALLOC alloca +# if defined (__STDC__) || defined (__cplusplus) +# include /* INFRINGES ON USER NAME SPACE */ +# define YYINCLUDED_STDLIB_H +# endif # endif # endif # endif @@ -1550,13 +1596,39 @@ # ifdef YYSTACK_ALLOC /* Pacify GCC's `empty if-body' warning. */ # define YYSTACK_FREE(Ptr) do { /* empty */; } while (0) -# else -# if defined (__STDC__) || defined (__cplusplus) -# include /* INFRINGES ON USER NAME SPACE */ -# define YYSIZE_T size_t +# ifndef YYSTACK_ALLOC_MAXIMUM + /* The OS might guarantee only one guard page at the bottom of the stack, + and a page size can be as small as 4096 bytes. So we cannot safely + invoke alloca (N) if N exceeds 4096. Use a slightly smaller number + to allow for a few compiler-allocated temporary stack slots. */ +# define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2005 */ # endif +# else # define YYSTACK_ALLOC YYMALLOC # define YYSTACK_FREE YYFREE +# ifndef YYSTACK_ALLOC_MAXIMUM +# define YYSTACK_ALLOC_MAXIMUM ((YYSIZE_T) -1) +# endif +# ifdef __cplusplus +extern "C" { +# endif +# ifndef YYMALLOC +# define YYMALLOC malloc +# if (! defined (malloc) && ! defined (YYINCLUDED_STDLIB_H) \ + && (defined (__STDC__) || defined (__cplusplus))) +void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */ +# endif +# endif +# ifndef YYFREE +# define YYFREE free +# if (! defined (free) && ! defined (YYINCLUDED_STDLIB_H) \ + && (defined (__STDC__) || defined (__cplusplus))) +void free (void *); /* INFRINGES ON USER NAME SPACE */ +# endif +# endif +# ifdef __cplusplus +} +# endif # endif #endif /* ! defined (yyoverflow) || YYERROR_VERBOSE */ @@ -1591,7 +1663,7 @@ # define YYCOPY(To, From, Count) \ do \ { \ - register YYSIZE_T yyi; \ + YYSIZE_T yyi; \ for (yyi = 0; yyi < (Count); yyi++) \ (To)[yyi] = (From)[yyi]; \ } \ @@ -1624,24 +1696,24 @@ #endif /* YYFINAL -- State number of the termination state. */ -#define YYFINAL 471 +#define YYFINAL 476 /* YYLAST -- Last index in YYTABLE. */ -#define YYLAST 43641 +#define YYLAST 44892 /* YYNTOKENS -- Number of terminals. */ -#define YYNTOKENS 583 +#define YYNTOKENS 590 /* YYNNTS -- Number of nonterminals. */ -#define YYNNTS 674 +#define YYNNTS 686 /* YYNRULES -- Number of rules. */ -#define YYNRULES 2049 +#define YYNRULES 2077 /* YYNRULES -- Number of states. */ -#define YYNSTATES 3700 +#define YYNSTATES 3756 /* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */ #define YYUNDEFTOK 2 -#define YYMAXUTOK 818 +#define YYMAXUTOK 825 -#define YYTRANSLATE(YYX) \ +#define YYTRANSLATE(YYX) \ ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) /* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */ @@ -1650,16 +1722,16 @@ 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, 576, 2, 2, 2, 569, 564, 2, - 573, 574, 567, 566, 575, 565, 580, 568, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 582, 581, - 2, 2, 2, 2, 579, 2, 2, 2, 2, 2, + 2, 2, 2, 583, 2, 2, 2, 576, 571, 2, + 580, 581, 574, 573, 582, 572, 587, 575, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 589, 588, + 2, 2, 2, 2, 586, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 570, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 577, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 577, 563, 578, 571, 2, 2, 2, + 2, 2, 2, 584, 570, 585, 578, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, @@ -1728,7 +1800,8 @@ 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, - 555, 556, 557, 558, 559, 560, 561, 562, 572 + 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, + 565, 566, 567, 568, 569, 579 }; #if YYDEBUG @@ -1741,1049 +1814,1065 @@ 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62, 64, 66, 68, 70, 72, 74, 76, 78, 80, 82, 84, 86, 88, 90, 92, 94, 96, 98, - 100, 102, 104, 106, 110, 112, 114, 119, 121, 124, - 125, 130, 131, 134, 138, 140, 143, 144, 148, 149, - 155, 157, 161, 165, 169, 173, 177, 181, 185, 189, - 193, 197, 201, 205, 207, 211, 215, 219, 223, 224, - 232, 233, 245, 246, 253, 254, 258, 263, 264, 268, - 270, 275, 276, 277, 278, 279, 280, 293, 294, 297, - 298, 301, 304, 307, 310, 313, 317, 321, 323, 325, - 327, 330, 334, 338, 339, 344, 345, 349, 350, 352, - 356, 358, 359, 361, 365, 367, 368, 372, 373, 375, - 379, 381, 386, 387, 389, 391, 393, 394, 398, 401, - 405, 406, 410, 411, 417, 423, 424, 432, 438, 439, - 442, 444, 446, 448, 452, 454, 458, 459, 461, 463, - 465, 467, 470, 472, 474, 478, 479, 482, 483, 486, - 487, 491, 492, 498, 500, 502, 503, 506, 509, 512, - 515, 516, 523, 526, 527, 530, 532, 534, 538, 539, - 540, 541, 549, 550, 553, 556, 558, 560, 561, 562, - 571, 572, 579, 581, 584, 586, 589, 590, 591, 598, - 599, 600, 607, 608, 611, 612, 618, 619, 621, 622, - 628, 633, 634, 635, 644, 645, 653, 655, 657, 659, - 661, 663, 666, 669, 672, 677, 682, 683, 688, 689, - 690, 696, 697, 705, 706, 707, 714, 715, 717, 718, - 720, 722, 725, 727, 729, 730, 732, 734, 737, 739, - 740, 744, 745, 747, 749, 752, 754, 757, 761, 765, - 769, 773, 777, 781, 785, 789, 793, 797, 801, 805, - 809, 813, 817, 821, 825, 831, 833, 835, 839, 844, - 849, 853, 858, 863, 865, 867, 869, 871, 873, 875, - 877, 879, 881, 883, 885, 887, 889, 891, 894, 895, - 897, 899, 901, 903, 905, 907, 911, 913, 915, 918, - 921, 928, 936, 945, 948, 951, 952, 954, 957, 958, - 960, 963, 964, 969, 973, 977, 981, 983, 988, 990, - 992, 998, 1001, 1007, 1010, 1015, 1017, 1023, 1029, 1034, - 1038, 1040, 1042, 1045, 1047, 1049, 1052, 1054, 1056, 1058, - 1061, 1065, 1068, 1072, 1075, 1078, 1082, 1086, 1090, 1091, - 1098, 1099, 1106, 1109, 1111, 1113, 1115, 1117, 1119, 1121, - 1123, 1125, 1127, 1129, 1131, 1134, 1137, 1139, 1142, 1144, - 1147, 1151, 1154, 1156, 1158, 1160, 1162, 1164, 1166, 1168, - 1171, 1172, 1176, 1178, 1184, 1185, 1187, 1190, 1192, 1194, - 1196, 1198, 1199, 1203, 1204, 1206, 1207, 1209, 1212, 1214, - 1216, 1219, 1222, 1227, 1229, 1233, 1236, 1238, 1241, 1244, - 1247, 1250, 1252, 1255, 1257, 1259, 1261, 1263, 1265, 1267, - 1269, 1271, 1273, 1275, 1276, 1279, 1281, 1283, 1284, 1286, - 1287, 1290, 1292, 1295, 1299, 1302, 1303, 1305, 1306, 1308, - 1310, 1313, 1314, 1316, 1317, 1322, 1324, 1329, 1333, 1335, - 1336, 1338, 1341, 1343, 1347, 1351, 1354, 1357, 1360, 1362, - 1364, 1367, 1370, 1373, 1375, 1378, 1381, 1384, 1387, 1389, - 1391, 1392, 1394, 1396, 1398, 1400, 1401, 1403, 1405, 1407, - 1408, 1411, 1414, 1416, 1418, 1420, 1425, 1428, 1430, 1435, - 1436, 1438, 1439, 1442, 1444, 1448, 1449, 1456, 1457, 1463, - 1464, 1470, 1471, 1477, 1478, 1490, 1491, 1493, 1494, 1497, - 1500, 1502, 1506, 1509, 1513, 1516, 1521, 1522, 1529, 1530, - 1531, 1540, 1545, 1550, 1554, 1558, 1561, 1564, 1571, 1577, - 1581, 1587, 1589, 1591, 1593, 1594, 1596, 1597, 1599, 1600, - 1602, 1604, 1605, 1608, 1610, 1611, 1613, 1615, 1617, 1618, - 1624, 1628, 1629, 1635, 1639, 1643, 1644, 1648, 1649, 1652, - 1654, 1658, 1659, 1661, 1663, 1664, 1667, 1669, 1673, 1674, - 1681, 1682, 1689, 1690, 1696, 1697, 1699, 1701, 1702, 1709, - 1710, 1712, 1714, 1717, 1719, 1721, 1723, 1724, 1731, 1732, - 1738, 1739, 1741, 1743, 1746, 1748, 1750, 1752, 1754, 1756, - 1759, 1760, 1767, 1768, 1770, 1772, 1773, 1778, 1783, 1787, - 1793, 1795, 1799, 1803, 1809, 1811, 1815, 1818, 1820, 1822, - 1823, 1830, 1832, 1836, 1840, 1841, 1844, 1845, 1850, 1851, - 1854, 1856, 1859, 1864, 1867, 1871, 1872, 1876, 1877, 1878, - 1885, 1888, 1890, 1892, 1895, 1898, 1907, 1912, 1913, 1915, - 1918, 1920, 1922, 1924, 1926, 1928, 1930, 1932, 1934, 1936, - 1938, 1940, 1941, 1944, 1949, 1953, 1955, 1957, 1962, 1963, - 1964, 1966, 1968, 1969, 1972, 1975, 1977, 1979, 1980, 1983, - 1984, 1988, 1989, 1993, 1997, 1998, 2002, 2003, 2007, 2010, - 2012, 2016, 2021, 2025, 2030, 2034, 2039, 2041, 2045, 2050, - 2054, 2058, 2065, 2067, 2073, 2080, 2086, 2094, 2101, 2110, - 2116, 2123, 2128, 2133, 2139, 2143, 2148, 2150, 2154, 2156, - 2160, 2162, 2166, 2170, 2172, 2176, 2180, 2185, 2190, 2192, - 2196, 2200, 2204, 2208, 2212, 2214, 2218, 2220, 2222, 2224, + 100, 102, 104, 106, 108, 112, 114, 116, 121, 123, + 126, 127, 132, 133, 136, 140, 142, 145, 146, 150, + 151, 157, 159, 163, 167, 171, 175, 179, 183, 187, + 191, 195, 199, 203, 207, 209, 213, 217, 221, 225, + 226, 234, 235, 247, 248, 255, 256, 260, 265, 266, + 270, 272, 277, 278, 279, 280, 281, 282, 295, 296, + 299, 300, 303, 306, 309, 312, 315, 319, 323, 325, + 327, 329, 332, 336, 340, 341, 346, 347, 351, 352, + 354, 358, 360, 361, 363, 367, 369, 370, 374, 375, + 377, 381, 383, 388, 389, 391, 393, 395, 396, 400, + 403, 407, 408, 412, 413, 419, 425, 426, 434, 440, + 441, 444, 446, 448, 450, 454, 456, 460, 461, 463, + 465, 467, 469, 472, 474, 476, 480, 481, 484, 485, + 488, 489, 493, 494, 500, 502, 504, 505, 508, 511, + 514, 517, 518, 525, 528, 529, 532, 534, 536, 540, + 541, 542, 543, 551, 552, 555, 558, 560, 562, 563, + 564, 573, 574, 581, 583, 586, 588, 591, 592, 593, + 600, 601, 602, 609, 610, 613, 614, 620, 621, 623, + 624, 630, 635, 636, 637, 646, 647, 655, 657, 659, + 661, 663, 665, 668, 671, 674, 679, 684, 685, 690, + 691, 692, 698, 699, 707, 708, 709, 716, 717, 719, + 720, 722, 724, 727, 729, 731, 732, 734, 736, 739, + 741, 742, 746, 747, 749, 751, 754, 756, 759, 763, + 767, 771, 775, 779, 783, 787, 791, 795, 799, 803, + 807, 811, 815, 819, 823, 827, 833, 835, 837, 841, + 846, 851, 855, 860, 865, 867, 869, 871, 873, 875, + 877, 879, 881, 883, 885, 887, 889, 891, 893, 896, + 897, 899, 901, 903, 905, 907, 909, 913, 915, 917, + 920, 923, 930, 938, 947, 950, 953, 954, 956, 959, + 960, 962, 965, 966, 971, 975, 979, 983, 985, 990, + 992, 994, 1000, 1003, 1009, 1012, 1017, 1019, 1025, 1031, + 1036, 1040, 1042, 1044, 1047, 1049, 1051, 1054, 1056, 1058, + 1060, 1063, 1067, 1070, 1074, 1077, 1080, 1084, 1088, 1092, + 1093, 1100, 1101, 1108, 1111, 1113, 1115, 1117, 1119, 1121, + 1123, 1125, 1127, 1129, 1131, 1133, 1136, 1139, 1141, 1144, + 1146, 1149, 1153, 1156, 1158, 1160, 1162, 1164, 1166, 1168, + 1170, 1173, 1174, 1178, 1180, 1186, 1187, 1189, 1192, 1194, + 1196, 1198, 1200, 1201, 1205, 1206, 1208, 1209, 1211, 1214, + 1216, 1218, 1221, 1224, 1229, 1231, 1235, 1238, 1240, 1243, + 1246, 1249, 1252, 1254, 1257, 1259, 1261, 1263, 1265, 1267, + 1269, 1271, 1273, 1275, 1277, 1278, 1281, 1283, 1285, 1286, + 1288, 1289, 1292, 1294, 1297, 1301, 1304, 1305, 1307, 1308, + 1310, 1312, 1315, 1316, 1318, 1319, 1324, 1326, 1331, 1335, + 1337, 1338, 1340, 1343, 1345, 1349, 1353, 1356, 1359, 1362, + 1364, 1366, 1369, 1372, 1375, 1377, 1380, 1383, 1386, 1389, + 1391, 1393, 1394, 1396, 1398, 1400, 1402, 1403, 1405, 1407, + 1409, 1410, 1413, 1416, 1418, 1420, 1422, 1427, 1430, 1432, + 1437, 1438, 1440, 1441, 1444, 1446, 1450, 1451, 1458, 1459, + 1465, 1466, 1472, 1473, 1479, 1480, 1492, 1493, 1495, 1496, + 1499, 1502, 1504, 1508, 1511, 1515, 1518, 1523, 1524, 1531, + 1532, 1533, 1542, 1547, 1552, 1556, 1560, 1563, 1566, 1573, + 1579, 1583, 1589, 1591, 1593, 1595, 1596, 1598, 1599, 1601, + 1602, 1604, 1606, 1607, 1610, 1612, 1613, 1615, 1617, 1619, + 1620, 1626, 1630, 1631, 1637, 1641, 1645, 1646, 1650, 1651, + 1654, 1656, 1660, 1661, 1663, 1665, 1666, 1669, 1671, 1675, + 1676, 1683, 1684, 1691, 1692, 1698, 1699, 1701, 1703, 1704, + 1711, 1712, 1714, 1716, 1719, 1721, 1723, 1725, 1726, 1733, + 1734, 1740, 1741, 1743, 1745, 1748, 1750, 1752, 1754, 1756, + 1758, 1761, 1762, 1769, 1770, 1772, 1774, 1775, 1780, 1785, + 1789, 1795, 1797, 1801, 1805, 1811, 1813, 1817, 1820, 1822, + 1824, 1825, 1832, 1834, 1838, 1842, 1843, 1846, 1847, 1852, + 1853, 1856, 1858, 1861, 1866, 1869, 1873, 1874, 1878, 1879, + 1880, 1887, 1890, 1892, 1894, 1897, 1900, 1909, 1914, 1915, + 1917, 1920, 1922, 1924, 1926, 1928, 1930, 1932, 1934, 1936, + 1938, 1940, 1942, 1943, 1946, 1951, 1955, 1957, 1959, 1964, + 1965, 1966, 1968, 1970, 1971, 1974, 1977, 1979, 1981, 1982, + 1985, 1986, 1990, 1991, 1995, 1999, 2000, 2004, 2005, 2009, + 2012, 2014, 2018, 2023, 2027, 2032, 2036, 2041, 2043, 2047, + 2052, 2056, 2060, 2067, 2069, 2075, 2082, 2088, 2096, 2103, + 2112, 2118, 2125, 2130, 2135, 2141, 2145, 2150, 2152, 2156, + 2158, 2162, 2164, 2168, 2172, 2174, 2178, 2182, 2187, 2192, + 2194, 2198, 2202, 2206, 2210, 2214, 2216, 2220, 2222, 2224, 2226, 2228, 2230, 2232, 2234, 2236, 2238, 2240, 2242, 2244, - 2246, 2248, 2250, 2252, 2255, 2257, 2261, 2263, 2265, 2267, - 2269, 2273, 2276, 2279, 2282, 2285, 2289, 2293, 2299, 2306, - 2311, 2316, 2324, 2329, 2332, 2339, 2345, 2352, 2359, 2364, - 2369, 2373, 2378, 2385, 2394, 2401, 2410, 2417, 2422, 2429, - 2434, 2441, 2446, 2451, 2456, 2461, 2468, 2477, 2480, 2483, - 2488, 2491, 2499, 2507, 2511, 2516, 2521, 2528, 2535, 2540, - 2547, 2554, 2561, 2566, 2573, 2578, 2585, 2594, 2605, 2618, - 2625, 2630, 2637, 2644, 2646, 2653, 2658, 2667, 2678, 2683, - 2685, 2689, 2694, 2701, 2708, 2717, 2724, 2731, 2736, 2743, - 2750, 2759, 2764, 2769, 2776, 2781, 2784, 2789, 2794, 2799, - 2806, 2811, 2816, 2820, 2829, 2836, 2841, 2848, 2852, 2859, - 2868, 2873, 2882, 2889, 2898, 2905, 2914, 2917, 2922, 2927, - 2932, 2939, 2948, 2957, 2962, 2970, 2978, 2986, 2993, 3000, - 3007, 3014, 3021, 3028, 3029, 3035, 3046, 3050, 3055, 3059, - 3062, 3065, 3068, 3073, 3080, 3085, 3090, 3097, 3104, 3111, - 3118, 3123, 3130, 3135, 3142, 3147, 3152, 3157, 3162, 3169, - 3174, 3181, 3186, 3193, 3198, 3203, 3210, 3215, 3222, 3227, - 3234, 3239, 3244, 3251, 3256, 3263, 3264, 3268, 3272, 3273, - 3275, 3276, 3279, 3281, 3285, 3290, 3295, 3301, 3306, 3311, - 3316, 3322, 3327, 3328, 3329, 3337, 3348, 3353, 3359, 3364, - 3370, 3375, 3380, 3385, 3390, 3395, 3401, 3402, 3411, 3412, - 3416, 3420, 3422, 3427, 3428, 3430, 3431, 3434, 3435, 3437, - 3438, 3442, 3445, 3449, 3452, 3454, 3457, 3459, 3462, 3464, - 3466, 3468, 3471, 3472, 3474, 3475, 3478, 3480, 3484, 3486, - 3490, 3491, 3494, 3496, 3500, 3501, 3503, 3504, 3507, 3512, - 3518, 3520, 3522, 3524, 3526, 3530, 3534, 3538, 3539, 3546, - 3547, 3554, 3555, 3564, 3569, 3570, 3579, 3580, 3591, 3598, - 3599, 3608, 3609, 3620, 3627, 3629, 3632, 3635, 3636, 3641, - 3642, 3654, 3658, 3665, 3666, 3670, 3671, 3672, 3678, 3679, - 3681, 3682, 3684, 3685, 3688, 3691, 3694, 3695, 3701, 3702, - 3704, 3708, 3710, 3712, 3714, 3718, 3720, 3722, 3724, 3726, - 3728, 3730, 3732, 3734, 3736, 3738, 3740, 3742, 3744, 3746, - 3748, 3750, 3752, 3754, 3756, 3758, 3760, 3762, 3764, 3766, - 3768, 3770, 3771, 3773, 3775, 3776, 3779, 3780, 3782, 3783, - 3784, 3788, 3789, 3790, 3794, 3797, 3798, 3799, 3804, 3809, - 3812, 3813, 3816, 3819, 3823, 3827, 3829, 3832, 3833, 3835, - 3836, 3841, 3846, 3849, 3850, 3852, 3854, 3855, 3857, 3858, - 3860, 3863, 3865, 3869, 3873, 3875, 3877, 3879, 3881, 3882, - 3885, 3887, 3889, 3891, 3893, 3895, 3897, 3899, 3901, 3903, - 3905, 3907, 3908, 3909, 3916, 3917, 3919, 3923, 3925, 3928, - 3929, 3932, 3936, 3938, 3941, 3943, 3944, 3948, 3949, 3955, - 3958, 3960, 3961, 3965, 3972, 3973, 3980, 3985, 3990, 3995, - 4000, 4006, 4011, 4013, 4017, 4019, 4020, 4023, 4024, 4026, - 4027, 4028, 4037, 4038, 4039, 4046, 4047, 4049, 4051, 4053, - 4055, 4057, 4060, 4062, 4064, 4066, 4070, 4075, 4076, 4080, - 4084, 4086, 4089, 4092, 4093, 4097, 4098, 4104, 4108, 4110, - 4114, 4116, 4120, 4122, 4124, 4125, 4127, 4128, 4133, 4134, - 4136, 4140, 4142, 4144, 4146, 4147, 4148, 4155, 4156, 4157, - 4169, 4173, 4175, 4179, 4183, 4185, 4189, 4190, 4192, 4193, - 4198, 4199, 4206, 4207, 4213, 4214, 4221, 4223, 4227, 4231, - 4237, 4238, 4241, 4242, 4245, 4247, 4249, 4251, 4255, 4256, - 4258, 4259, 4261, 4263, 4267, 4269, 4271, 4274, 4277, 4280, - 4282, 4284, 4286, 4288, 4289, 4293, 4294, 4298, 4301, 4306, - 4311, 4316, 4321, 4322, 4327, 4334, 4351, 4354, 4357, 4358, - 4365, 4371, 4374, 4377, 4380, 4382, 4388, 4394, 4397, 4400, - 4402, 4407, 4411, 4414, 4417, 4420, 4424, 4427, 4430, 4433, - 4435, 4437, 4441, 4446, 4450, 4454, 4457, 4460, 4464, 4468, - 4472, 4476, 4480, 4484, 4486, 4488, 4490, 4492, 4493, 4495, - 4496, 4499, 4500, 4502, 4504, 4506, 4507, 4510, 4511, 4514, - 4515, 4518, 4521, 4522, 4527, 4528, 4533, 4535, 4537, 4538, - 4540, 4541, 4543, 4545, 4546, 4551, 4555, 4557, 4558, 4562, - 4567, 4570, 4572, 4574, 4576, 4578, 4580, 4582, 4584, 4586, - 4587, 4589, 4590, 4594, 4598, 4600, 4602, 4604, 4607, 4608, - 4612, 4616, 4619, 4622, 4623, 4628, 4629, 4631, 4633, 4636, - 4637, 4642, 4648, 4649, 4650, 4651, 4668, 4671, 4672, 4674, - 4675, 4677, 4679, 4680, 4682, 4684, 4685, 4688, 4691, 4693, - 4697, 4702, 4706, 4710, 4711, 4714, 4717, 4719, 4723, 4727, - 4728, 4732, 4733, 4737, 4740, 4744, 4746, 4748, 4751, 4752, - 4755, 4757, 4759, 4762, 4765, 4767, 4769, 4771, 4773, 4775, - 4778, 4781, 4783, 4785, 4787, 4789, 4791, 4793, 4795, 4798, - 4801, 4804, 4807, 4810, 4812, 4814, 4816, 4818, 4820, 4822, - 4824, 4828, 4834, 4836, 4838, 4840, 4842, 4844, 4848, 4853, - 4859, 4861, 4867, 4871, 4874, 4876, 4880, 4883, 4885, 4887, - 4889, 4891, 4893, 4895, 4897, 4899, 4901, 4903, 4905, 4907, - 4909, 4911, 4915, 4918, 4920, 4922, 4924, 4926, 4928, 4930, - 4932, 4934, 4936, 4938, 4940, 4942, 4944, 4946, 4948, 4950, - 4952, 4954, 4956, 4958, 4960, 4962, 4964, 4966, 4968, 4970, - 4972, 4974, 4976, 4978, 4980, 4982, 4984, 4986, 4988, 4990, - 4992, 4994, 4996, 4998, 5000, 5002, 5004, 5006, 5008, 5010, - 5012, 5014, 5016, 5018, 5020, 5022, 5024, 5026, 5028, 5030, - 5032, 5034, 5036, 5038, 5040, 5042, 5044, 5046, 5048, 5050, - 5052, 5054, 5056, 5058, 5060, 5062, 5064, 5066, 5068, 5070, - 5072, 5074, 5076, 5078, 5080, 5082, 5084, 5086, 5088, 5090, - 5092, 5094, 5096, 5098, 5100, 5102, 5104, 5106, 5108, 5110, - 5112, 5114, 5116, 5118, 5120, 5122, 5124, 5126, 5128, 5130, - 5132, 5134, 5136, 5138, 5140, 5142, 5144, 5146, 5148, 5150, - 5152, 5154, 5156, 5158, 5160, 5162, 5164, 5166, 5168, 5170, - 5172, 5174, 5176, 5178, 5180, 5182, 5184, 5186, 5188, 5190, - 5192, 5194, 5196, 5198, 5200, 5202, 5204, 5206, 5208, 5210, - 5212, 5214, 5216, 5218, 5220, 5222, 5224, 5226, 5228, 5230, - 5232, 5234, 5236, 5238, 5240, 5242, 5244, 5246, 5248, 5250, - 5252, 5254, 5256, 5258, 5260, 5262, 5264, 5266, 5268, 5270, - 5272, 5274, 5276, 5278, 5280, 5282, 5284, 5286, 5288, 5290, - 5292, 5294, 5296, 5298, 5300, 5302, 5304, 5306, 5308, 5310, - 5312, 5314, 5316, 5318, 5320, 5322, 5324, 5326, 5328, 5330, - 5332, 5334, 5336, 5338, 5340, 5342, 5344, 5346, 5348, 5350, - 5352, 5354, 5356, 5358, 5360, 5362, 5364, 5366, 5368, 5370, - 5372, 5374, 5376, 5378, 5380, 5382, 5384, 5386, 5388, 5390, - 5392, 5394, 5396, 5398, 5400, 5402, 5404, 5406, 5408, 5410, - 5412, 5414, 5416, 5418, 5420, 5422, 5424, 5426, 5428, 5430, - 5432, 5434, 5436, 5438, 5440, 5442, 5443, 5448, 5449, 5451, - 5453, 5457, 5458, 5461, 5463, 5465, 5467, 5469, 5470, 5472, - 5473, 5475, 5477, 5479, 5480, 5483, 5486, 5489, 5491, 5494, - 5499, 5505, 5510, 5517, 5520, 5524, 5528, 5532, 5538, 5540, - 5544, 5548, 5551, 5554, 5557, 5559, 5561, 5566, 5571, 5573, - 5575, 5577, 5579, 5581, 5582, 5587, 5589, 5591, 5593, 5597, - 5601, 5603, 5605, 5608, 5611, 5612, 5616, 5621, 5625, 5626, - 5634, 5636, 5639, 5641, 5643, 5645, 5647, 5649, 5651, 5652, - 5658, 5660, 5662, 5664, 5666, 5668, 5672, 5679, 5686, 5693, - 5701, 5705, 5714, 5723, 5732, 5733, 5735, 5737, 5740, 5741, - 5743, 5745, 5749, 5750, 5754, 5755, 5759, 5760, 5764, 5765, - 5769, 5771, 5773, 5775, 5777, 5779, 5781, 5783, 5785, 5787, - 5789, 5791, 5794, 5797, 5799, 5803, 5806, 5809, 5812, 5815, - 5818, 5821, 5824, 5827, 5828, 5830, 5834, 5836, 5839, 5842, - 5845, 5847, 5851, 5855, 5857, 5859, 5863, 5865, 5869, 5874, - 5880, 5882, 5883, 5887, 5891, 5893, 5895, 5896, 5899, 5902, - 5905, 5908, 5909, 5912, 5915, 5917, 5920, 5923, 5926, 5929, - 5932, 5933, 5937, 5938, 5940, 5941, 5945, 5948, 5949, 5951, - 5954, 5955, 5957, 5962, 5967, 5973, 5976, 5980, 5981, 5983, - 5984, 5989, 5990, 5992, 5994, 5995, 5998, 6001, 6003, 6004, - 6006, 6008, 6013, 6014, 6022, 6024, 6025, 6026, 6029, 6033, - 6035, 6037, 6039, 6040, 6044, 6046, 6049, 6051, 6054, 6058, - 6062, 6066, 6067, 6069, 6070, 6074, 6078, 6079, 6088, 6089, - 6093, 6095, 6099, 6100, 6103, 6107, 6113, 6114, 6118, 6123, - 6128, 6129, 6144, 6145, 6152, 6153, 6154, 6155, 6156, 6169, - 6174, 6179, 6183, 6188, 6192, 6195, 6197, 6201, 6207, 6209, - 6211, 6212, 6214, 6216, 6217, 6220, 6221, 6222, 6226, 6227 + 2246, 2248, 2250, 2252, 2254, 2257, 2259, 2263, 2265, 2267, + 2269, 2271, 2275, 2278, 2281, 2284, 2287, 2291, 2295, 2301, + 2308, 2313, 2318, 2326, 2331, 2334, 2341, 2347, 2354, 2361, + 2366, 2371, 2375, 2380, 2387, 2396, 2403, 2412, 2419, 2424, + 2431, 2436, 2443, 2448, 2453, 2458, 2463, 2470, 2479, 2482, + 2485, 2490, 2493, 2501, 2509, 2513, 2518, 2523, 2530, 2537, + 2542, 2549, 2556, 2563, 2568, 2575, 2580, 2587, 2596, 2607, + 2620, 2627, 2632, 2639, 2646, 2648, 2655, 2660, 2669, 2680, + 2685, 2687, 2691, 2696, 2703, 2710, 2719, 2726, 2733, 2738, + 2745, 2752, 2761, 2766, 2771, 2778, 2783, 2786, 2791, 2796, + 2801, 2808, 2813, 2818, 2822, 2831, 2838, 2843, 2850, 2854, + 2861, 2870, 2875, 2884, 2891, 2900, 2907, 2916, 2919, 2924, + 2929, 2934, 2941, 2950, 2959, 2964, 2972, 2980, 2988, 2995, + 3002, 3009, 3016, 3023, 3030, 3031, 3037, 3048, 3052, 3057, + 3061, 3064, 3067, 3070, 3075, 3082, 3087, 3092, 3099, 3106, + 3113, 3120, 3125, 3132, 3137, 3144, 3149, 3154, 3159, 3164, + 3171, 3176, 3183, 3188, 3195, 3200, 3205, 3212, 3217, 3224, + 3229, 3236, 3241, 3246, 3253, 3258, 3265, 3266, 3270, 3274, + 3275, 3277, 3278, 3281, 3283, 3287, 3292, 3297, 3303, 3308, + 3313, 3318, 3324, 3329, 3330, 3331, 3339, 3350, 3351, 3352, + 3359, 3360, 3361, 3368, 3369, 3370, 3377, 3382, 3388, 3393, + 3399, 3404, 3409, 3414, 3419, 3424, 3430, 3431, 3440, 3441, + 3445, 3449, 3451, 3456, 3457, 3459, 3460, 3463, 3464, 3466, + 3467, 3471, 3474, 3478, 3481, 3483, 3486, 3488, 3491, 3493, + 3495, 3497, 3500, 3501, 3503, 3504, 3507, 3509, 3513, 3515, + 3519, 3520, 3523, 3525, 3529, 3530, 3532, 3533, 3536, 3541, + 3547, 3549, 3551, 3553, 3555, 3559, 3563, 3567, 3568, 3575, + 3576, 3583, 3584, 3593, 3598, 3599, 3608, 3609, 3620, 3627, + 3628, 3637, 3638, 3649, 3656, 3658, 3661, 3664, 3665, 3670, + 3671, 3683, 3687, 3694, 3695, 3699, 3700, 3701, 3707, 3708, + 3710, 3711, 3713, 3714, 3717, 3720, 3723, 3724, 3730, 3731, + 3733, 3737, 3739, 3741, 3743, 3747, 3749, 3751, 3753, 3755, + 3757, 3759, 3761, 3763, 3765, 3767, 3769, 3771, 3773, 3775, + 3777, 3779, 3781, 3783, 3785, 3787, 3789, 3791, 3793, 3795, + 3797, 3799, 3800, 3802, 3804, 3805, 3808, 3809, 3811, 3812, + 3813, 3817, 3818, 3819, 3823, 3826, 3827, 3828, 3833, 3838, + 3841, 3842, 3845, 3848, 3852, 3856, 3858, 3861, 3862, 3864, + 3865, 3870, 3875, 3878, 3879, 3881, 3883, 3884, 3886, 3887, + 3889, 3892, 3894, 3898, 3902, 3904, 3906, 3908, 3910, 3911, + 3914, 3916, 3918, 3920, 3922, 3924, 3926, 3928, 3930, 3932, + 3934, 3936, 3937, 3938, 3945, 3946, 3948, 3952, 3954, 3957, + 3958, 3961, 3965, 3967, 3970, 3972, 3973, 3977, 3978, 3984, + 3987, 3989, 3990, 3994, 4001, 4002, 4009, 4014, 4019, 4024, + 4029, 4035, 4040, 4042, 4046, 4048, 4049, 4052, 4053, 4055, + 4056, 4057, 4066, 4067, 4068, 4075, 4076, 4078, 4080, 4082, + 4084, 4086, 4089, 4091, 4093, 4095, 4099, 4104, 4105, 4109, + 4113, 4115, 4118, 4121, 4122, 4126, 4127, 4133, 4137, 4139, + 4143, 4145, 4149, 4151, 4153, 4154, 4156, 4157, 4162, 4163, + 4165, 4169, 4171, 4173, 4175, 4176, 4177, 4184, 4185, 4186, + 4198, 4202, 4204, 4208, 4212, 4214, 4218, 4219, 4221, 4222, + 4227, 4228, 4235, 4236, 4242, 4243, 4250, 4252, 4256, 4260, + 4266, 4267, 4270, 4271, 4274, 4276, 4278, 4280, 4284, 4285, + 4287, 4288, 4290, 4292, 4296, 4298, 4300, 4303, 4306, 4309, + 4311, 4313, 4315, 4317, 4318, 4322, 4323, 4327, 4330, 4335, + 4340, 4345, 4350, 4351, 4356, 4363, 4380, 4383, 4386, 4387, + 4394, 4400, 4403, 4406, 4409, 4411, 4417, 4423, 4426, 4429, + 4431, 4436, 4440, 4443, 4446, 4449, 4453, 4456, 4459, 4462, + 4464, 4466, 4470, 4475, 4479, 4483, 4486, 4489, 4492, 4495, + 4498, 4502, 4506, 4510, 4514, 4518, 4522, 4524, 4526, 4528, + 4530, 4531, 4533, 4534, 4537, 4538, 4540, 4542, 4544, 4545, + 4548, 4549, 4552, 4553, 4556, 4559, 4560, 4565, 4566, 4571, + 4573, 4575, 4576, 4578, 4579, 4581, 4583, 4584, 4589, 4593, + 4595, 4596, 4600, 4605, 4608, 4610, 4612, 4614, 4616, 4618, + 4620, 4622, 4624, 4626, 4628, 4629, 4631, 4632, 4636, 4640, + 4642, 4644, 4646, 4649, 4650, 4654, 4658, 4661, 4664, 4665, + 4670, 4671, 4673, 4675, 4678, 4679, 4684, 4690, 4691, 4692, + 4693, 4710, 4713, 4714, 4716, 4717, 4719, 4721, 4722, 4724, + 4726, 4727, 4730, 4733, 4735, 4739, 4744, 4748, 4752, 4753, + 4756, 4759, 4761, 4765, 4769, 4770, 4774, 4775, 4779, 4782, + 4786, 4788, 4790, 4793, 4794, 4797, 4799, 4801, 4804, 4807, + 4809, 4811, 4813, 4815, 4817, 4820, 4823, 4825, 4827, 4829, + 4831, 4833, 4835, 4837, 4840, 4843, 4846, 4849, 4852, 4854, + 4856, 4858, 4860, 4862, 4864, 4866, 4870, 4876, 4878, 4880, + 4882, 4884, 4886, 4890, 4895, 4901, 4903, 4909, 4913, 4916, + 4918, 4922, 4925, 4927, 4929, 4931, 4933, 4935, 4937, 4939, + 4941, 4943, 4945, 4947, 4949, 4951, 4953, 4957, 4960, 4962, + 4964, 4966, 4968, 4970, 4972, 4974, 4976, 4978, 4980, 4982, + 4984, 4986, 4988, 4990, 4992, 4994, 4996, 4998, 5000, 5002, + 5004, 5006, 5008, 5010, 5012, 5014, 5016, 5018, 5020, 5022, + 5024, 5026, 5028, 5030, 5032, 5034, 5036, 5038, 5040, 5042, + 5044, 5046, 5048, 5050, 5052, 5054, 5056, 5058, 5060, 5062, + 5064, 5066, 5068, 5070, 5072, 5074, 5076, 5078, 5080, 5082, + 5084, 5086, 5088, 5090, 5092, 5094, 5096, 5098, 5100, 5102, + 5104, 5106, 5108, 5110, 5112, 5114, 5116, 5118, 5120, 5122, + 5124, 5126, 5128, 5130, 5132, 5134, 5136, 5138, 5140, 5142, + 5144, 5146, 5148, 5150, 5152, 5154, 5156, 5158, 5160, 5162, + 5164, 5166, 5168, 5170, 5172, 5174, 5176, 5178, 5180, 5182, + 5184, 5186, 5188, 5190, 5192, 5194, 5196, 5198, 5200, 5202, + 5204, 5206, 5208, 5210, 5212, 5214, 5216, 5218, 5220, 5222, + 5224, 5226, 5228, 5230, 5232, 5234, 5236, 5238, 5240, 5242, + 5244, 5246, 5248, 5250, 5252, 5254, 5256, 5258, 5260, 5262, + 5264, 5266, 5268, 5270, 5272, 5274, 5276, 5278, 5280, 5282, + 5284, 5286, 5288, 5290, 5292, 5294, 5296, 5298, 5300, 5302, + 5304, 5306, 5308, 5310, 5312, 5314, 5316, 5318, 5320, 5322, + 5324, 5326, 5328, 5330, 5332, 5334, 5336, 5338, 5340, 5342, + 5344, 5346, 5348, 5350, 5352, 5354, 5356, 5358, 5360, 5362, + 5364, 5366, 5368, 5370, 5372, 5374, 5376, 5378, 5380, 5382, + 5384, 5386, 5388, 5390, 5392, 5394, 5396, 5398, 5400, 5402, + 5404, 5406, 5408, 5410, 5412, 5414, 5416, 5418, 5420, 5422, + 5424, 5426, 5428, 5430, 5432, 5434, 5436, 5438, 5440, 5442, + 5444, 5446, 5448, 5450, 5452, 5454, 5456, 5458, 5460, 5462, + 5464, 5466, 5468, 5470, 5472, 5474, 5476, 5478, 5480, 5482, + 5484, 5486, 5488, 5489, 5494, 5495, 5497, 5499, 5503, 5504, + 5507, 5509, 5511, 5513, 5515, 5516, 5518, 5519, 5521, 5523, + 5525, 5526, 5529, 5532, 5535, 5537, 5540, 5545, 5551, 5556, + 5563, 5566, 5570, 5574, 5578, 5584, 5586, 5590, 5594, 5597, + 5600, 5603, 5605, 5607, 5612, 5617, 5619, 5621, 5623, 5625, + 5627, 5628, 5633, 5635, 5637, 5639, 5643, 5647, 5649, 5651, + 5654, 5657, 5658, 5662, 5667, 5671, 5672, 5680, 5682, 5685, + 5687, 5689, 5691, 5693, 5695, 5697, 5698, 5704, 5706, 5708, + 5710, 5712, 5714, 5718, 5725, 5732, 5739, 5747, 5751, 5760, + 5769, 5778, 5779, 5781, 5783, 5786, 5787, 5789, 5791, 5795, + 5796, 5800, 5801, 5805, 5806, 5810, 5811, 5815, 5817, 5819, + 5821, 5823, 5825, 5827, 5829, 5831, 5833, 5835, 5837, 5840, + 5843, 5845, 5849, 5852, 5855, 5858, 5861, 5864, 5867, 5870, + 5873, 5874, 5876, 5880, 5882, 5885, 5888, 5891, 5893, 5897, + 5901, 5903, 5905, 5909, 5911, 5915, 5920, 5926, 5928, 5929, + 5933, 5937, 5939, 5941, 5942, 5945, 5948, 5951, 5954, 5955, + 5958, 5961, 5963, 5966, 5969, 5972, 5975, 5978, 5979, 5983, + 5984, 5986, 5987, 5991, 5994, 5995, 5997, 6000, 6001, 6003, + 6008, 6013, 6019, 6022, 6026, 6027, 6029, 6030, 6035, 6036, + 6038, 6040, 6041, 6044, 6047, 6049, 6050, 6052, 6054, 6059, + 6060, 6068, 6070, 6071, 6072, 6075, 6079, 6081, 6083, 6085, + 6086, 6090, 6092, 6095, 6097, 6100, 6104, 6108, 6112, 6113, + 6115, 6116, 6120, 6124, 6125, 6134, 6135, 6139, 6141, 6145, + 6146, 6149, 6153, 6159, 6160, 6164, 6169, 6174, 6175, 6190, + 6191, 6198, 6199, 6200, 6201, 6202, 6215, 6220, 6225, 6229, + 6234, 6238, 6241, 6243, 6247, 6253, 6255, 6257, 6258, 6260, + 6262, 6263, 6266, 6267, 6268, 6272, 6273, 6276, 6277, 6282, + 6283, 6293, 6294, 6308, 6311, 6314, 6319, 6320 }; /* YYRHS -- A `-1'-separated list of the rules' RHS. */ static const short int yyrhs[] = { - 584, 0, -1, 3, -1, 585, 3, -1, 586, -1, - 1202, -1, 782, -1, 823, -1, 813, -1, 621, -1, - 598, -1, 825, -1, 815, -1, 1208, -1, 603, -1, - 587, -1, 1043, -1, 1074, -1, 999, -1, 1001, -1, - 591, -1, 1080, -1, 1177, -1, 1168, -1, 596, -1, - 1007, -1, 1094, -1, 1098, -1, 1160, -1, 830, -1, - 838, -1, 842, -1, 589, -1, 1090, -1, 1211, -1, - 833, -1, 818, -1, 1010, -1, 1086, -1, 811, -1, - 1175, -1, 1209, -1, 1210, -1, 850, -1, 1143, -1, - 1060, -1, 800, -1, 803, -1, 1054, -1, 1166, -1, - 1035, -1, 1097, -1, 1249, -1, 588, 370, 1137, -1, - 106, -1, 129, -1, 370, 1137, 175, 590, -1, 1134, - -1, 579, 1139, -1, -1, 151, 1137, 592, 593, -1, - -1, 530, 594, -1, 594, 575, 595, -1, 595, -1, - 579, 1139, -1, -1, 202, 597, 1139, -1, -1, 53, - 287, 498, 599, 600, -1, 601, -1, 600, 575, 601, - -1, 274, 145, 1134, -1, 288, 145, 1134, -1, 277, - 145, 1134, -1, 278, 145, 984, -1, 273, 145, 984, - -1, 286, 145, 984, -1, 282, 145, 1134, -1, 281, - 145, 1134, -1, 283, 145, 1134, -1, 284, 145, 1134, - -1, 285, 145, 1134, -1, 602, -1, 275, 145, 1134, - -1, 276, 145, 985, -1, 396, 145, 1134, -1, 397, - 145, 984, -1, -1, 87, 700, 485, 703, 1131, 604, - 687, -1, -1, 87, 774, 217, 1137, 775, 344, 1131, - 605, 573, 777, 574, -1, -1, 87, 94, 703, 1137, - 606, 697, -1, -1, 87, 607, 1225, -1, 87, 527, - 608, 1193, -1, -1, 1137, 580, 1137, -1, 1137, -1, - 413, 716, 509, 1134, -1, -1, -1, -1, -1, -1, - 573, 611, 626, 574, 612, 413, 613, 727, 614, 617, - 615, 649, -1, -1, 616, 618, -1, -1, 617, 619, - -1, 68, 1134, -1, 241, 461, -1, 335, 461, -1, - 80, 461, -1, 389, 461, 96, -1, 311, 461, 96, - -1, 620, -1, 618, -1, 121, -1, 889, 121, -1, - 461, 429, 112, -1, 461, 429, 228, -1, -1, 48, - 609, 622, 623, -1, -1, 573, 624, 574, -1, -1, - 625, -1, 625, 575, 871, -1, 871, -1, -1, 627, - -1, 627, 575, 629, -1, 629, -1, -1, 1137, 628, - 727, -1, -1, 631, -1, 631, 575, 632, -1, 632, - -1, 633, 628, 1137, 727, -1, -1, 229, -1, 357, - -1, 221, -1, -1, 634, 649, 581, -1, 649, 581, - -1, 635, 649, 581, -1, -1, 636, 637, 581, -1, - -1, 109, 647, 638, 727, 648, -1, 109, 1137, 76, - 172, 644, -1, -1, 109, 642, 199, 172, 639, 643, - 649, -1, 109, 1137, 92, 172, 640, -1, -1, 641, - 586, -1, 153, -1, 82, -1, 646, -1, 643, 575, - 646, -1, 984, -1, 453, 645, 1135, -1, -1, 536, - -1, 644, -1, 1137, -1, 454, -1, 889, 173, -1, - 452, -1, 1137, -1, 647, 575, 1137, -1, -1, 111, - 871, -1, -1, 650, 586, -1, -1, 414, 651, 871, - -1, -1, 213, 652, 657, 141, 213, -1, 662, -1, - 677, -1, -1, 653, 680, -1, 248, 1138, -1, 235, - 1138, -1, 347, 1137, -1, -1, 161, 655, 1137, 226, - 654, 656, -1, 61, 1137, -1, -1, 330, 175, -1, - 175, -1, 1137, -1, 656, 575, 1137, -1, -1, -1, - -1, 658, 871, 560, 659, 635, 660, 661, -1, -1, - 135, 657, -1, 559, 635, -1, 663, -1, 666, -1, - -1, -1, 561, 664, 871, 665, 668, 676, 141, 561, - -1, -1, 561, 667, 669, 676, 141, 561, -1, 670, - -1, 668, 670, -1, 673, -1, 669, 673, -1, -1, - -1, 545, 671, 871, 672, 560, 635, -1, -1, -1, - 545, 674, 871, 675, 560, 635, -1, -1, 559, 635, - -1, -1, 1138, 582, 678, 680, 679, -1, -1, 1138, - -1, -1, 28, 681, 636, 634, 141, -1, 269, 635, - 141, 269, -1, -1, -1, 547, 682, 871, 128, 683, - 635, 141, 547, -1, -1, 404, 635, 523, 684, 871, - 141, 404, -1, 27, -1, 8, -1, 223, -1, 524, - -1, 115, -1, 573, 688, -1, 704, 690, -1, 252, - 1131, -1, 573, 252, 1131, 574, -1, 717, 574, 704, - 690, -1, -1, 693, 574, 689, 1215, -1, -1, -1, - 1106, 696, 693, 691, 1212, -1, -1, 1106, 696, 573, - 693, 574, 692, 1215, -1, -1, -1, 430, 694, 860, - 864, 695, 714, -1, -1, 18, -1, -1, 698, -1, - 699, -1, 698, 699, -1, 709, -1, 708, -1, -1, - 701, -1, 702, -1, 702, 701, -1, 486, -1, -1, - 213, 889, 152, -1, -1, 706, -1, 707, -1, 707, - 705, -1, 707, -1, 707, 706, -1, 707, 575, 706, - -1, 143, 1027, 710, -1, 507, 1027, 710, -1, 292, - 1027, 985, -1, 307, 1027, 985, -1, 24, 1027, 984, - -1, 361, 1027, 1134, -1, 68, 1027, 1134, -1, 23, - 1027, 985, -1, 358, 1027, 984, -1, 358, 1027, 111, - -1, 57, 1027, 984, -1, 114, 1027, 984, -1, 423, - 1027, 711, -1, 387, 1027, 712, -1, 384, 1027, 984, - -1, 385, 1027, 984, -1, 516, 1027, 573, 1003, 574, - -1, 708, -1, 709, -1, 224, 1027, 713, -1, 96, - 122, 1027, 1134, -1, 217, 122, 1027, 1134, -1, 77, - 1027, 1134, -1, 756, 748, 1027, 750, -1, 756, 64, - 1027, 755, -1, 1139, -1, 111, -1, 165, -1, 133, - -1, 72, -1, 393, -1, 71, -1, 386, -1, 383, - -1, 984, -1, 335, -1, 164, -1, 243, -1, 979, - -1, 859, 863, -1, -1, 10, -1, 472, -1, 391, - -1, 108, -1, 227, -1, 718, -1, 717, 575, 718, - -1, 719, -1, 720, -1, 725, 721, -1, 725, 761, - -1, 769, 779, 775, 573, 777, 574, -1, 723, 770, - 779, 775, 573, 777, 574, -1, 723, 170, 238, 779, - 573, 777, 574, 761, -1, 724, 721, -1, 723, 722, - -1, -1, 722, -1, 58, 871, -1, -1, 724, -1, - 79, 779, -1, -1, 1130, 726, 727, 744, -1, 735, - 742, 739, -1, 736, 743, 739, -1, 167, 737, 739, - -1, 37, -1, 37, 573, 338, 574, -1, 42, -1, - 41, -1, 731, 573, 338, 574, 757, -1, 731, 757, - -1, 732, 573, 338, 574, 758, -1, 732, 758, -1, - 32, 573, 338, 574, -1, 32, -1, 733, 573, 338, - 574, 757, -1, 734, 573, 338, 574, 758, -1, 537, - 573, 338, 574, -1, 556, 742, 739, -1, 100, -1, - 494, -1, 491, 742, -1, 97, -1, 495, -1, 39, - 742, -1, 730, -1, 296, -1, 265, -1, 268, 537, - -1, 268, 733, 757, -1, 497, 757, -1, 490, 742, - 757, -1, 298, 757, -1, 266, 757, -1, 108, 737, - 739, -1, 339, 737, 739, -1, 165, 737, 739, -1, - -1, 144, 728, 573, 781, 574, 757, -1, -1, 436, - 729, 573, 781, 574, 757, -1, 268, 757, -1, 434, - -1, 187, -1, 186, -1, 365, -1, 318, -1, 256, - -1, 317, -1, 367, -1, 319, -1, 56, -1, 326, - -1, 323, 56, -1, 731, 541, -1, 538, -1, 323, - 538, -1, 340, -1, 326, 538, -1, 323, 56, 541, - -1, 326, 541, -1, 227, -1, 496, -1, 446, -1, - 297, -1, 31, -1, 391, -1, 127, -1, 127, 369, - -1, -1, 573, 338, 574, -1, 738, -1, 573, 338, - 575, 338, 574, -1, -1, 740, -1, 740, 741, -1, - 741, -1, 443, -1, 522, -1, 557, -1, -1, 573, - 338, 574, -1, -1, 738, -1, -1, 745, -1, 745, - 746, -1, 746, -1, 337, -1, 889, 337, -1, 111, - 747, -1, 344, 524, 334, 870, -1, 23, -1, 434, - 111, 536, -1, 760, 238, -1, 517, -1, 517, 238, - -1, 68, 1134, -1, 64, 753, -1, 334, 870, -1, - 1121, -1, 56, 436, -1, 55, -1, 1139, -1, 32, - -1, 749, -1, 111, -1, 1139, -1, 32, -1, 751, - -1, 111, -1, 1139, -1, -1, 64, 755, -1, 753, - -1, 111, -1, -1, 111, -1, -1, 20, 758, -1, - 46, -1, 515, 758, -1, 748, 749, 758, -1, 32, - 759, -1, -1, 32, -1, -1, 20, -1, 515, -1, - 748, 749, -1, -1, 372, -1, -1, 394, 1131, 762, - 763, -1, 765, -1, 573, 764, 574, 765, -1, 764, - 575, 1137, -1, 1137, -1, -1, 766, -1, 766, 767, - -1, 767, -1, 344, 115, 768, -1, 344, 524, 768, - -1, 289, 177, -1, 289, 360, -1, 289, 444, -1, - 411, -1, 49, -1, 436, 337, -1, 335, 5, -1, - 436, 111, -1, 771, -1, 178, 772, -1, 450, 772, - -1, 372, 238, -1, 517, 772, -1, 238, -1, 217, - -1, -1, 771, -1, 237, -1, 217, -1, 216, -1, - -1, 517, -1, 178, -1, 450, -1, -1, 530, 776, - -1, 507, 776, -1, 44, -1, 425, -1, 200, -1, - 777, 575, 778, 977, -1, 778, 977, -1, 1137, -1, - 1137, 573, 338, 574, -1, -1, 1130, -1, -1, 580, - 1137, -1, 1119, -1, 781, 575, 1119, -1, -1, 13, - 796, 485, 1131, 783, 789, -1, -1, 13, 94, 788, - 784, 697, -1, -1, 13, 374, 609, 785, 616, -1, - -1, 13, 179, 609, 786, 616, -1, -1, 13, 1231, - 1227, 1232, 542, 1131, 787, 1235, 18, 1237, 1240, -1, - -1, 1137, -1, -1, 124, 484, -1, 215, 484, -1, - 791, -1, 789, 575, 791, -1, 6, 795, -1, 790, - 719, 798, -1, 6, 720, -1, 790, 573, 717, 574, - -1, -1, 53, 795, 1130, 792, 725, 798, -1, -1, - -1, 312, 795, 1130, 793, 727, 744, 794, 798, -1, - 129, 795, 1130, 797, -1, 129, 170, 238, 779, -1, - 129, 372, 238, -1, 129, 771, 1130, -1, 123, 237, - -1, 137, 237, -1, 13, 795, 1130, 436, 111, 1121, - -1, 13, 795, 1130, 129, 111, -1, 401, 799, 1131, - -1, 83, 498, 748, 750, 754, -1, 705, -1, 169, - -1, 970, -1, -1, 67, -1, -1, 214, -1, -1, - 411, -1, 49, -1, -1, 8, 1137, -1, 164, -1, - -1, 498, -1, 145, -1, 18, -1, -1, 465, 445, - 805, 801, 809, -1, 469, 445, 805, -1, -1, 445, - 465, 805, 802, 809, -1, 445, 469, 805, -1, 465, - 500, 804, -1, -1, 548, 78, 447, -1, -1, 806, - 807, -1, 808, -1, 807, 575, 808, -1, -1, 462, - -1, 398, -1, -1, 523, 810, -1, 602, -1, 810, - 575, 602, -1, -1, 410, 1162, 812, 1003, 175, 1134, - -1, -1, 26, 1162, 814, 1003, 498, 1134, -1, -1, - 57, 1162, 816, 1003, 817, -1, -1, 382, -1, 156, - -1, -1, 402, 832, 1162, 819, 1003, 820, -1, -1, - 821, -1, 822, -1, 822, 821, -1, 382, -1, 156, - -1, 528, -1, -1, 14, 832, 1162, 824, 1003, 827, - -1, -1, 58, 1162, 826, 1003, 827, -1, -1, 828, - -1, 829, -1, 829, 828, -1, 382, -1, 159, -1, - 299, -1, 156, -1, 54, -1, 172, 525, -1, -1, - 348, 832, 1162, 831, 1003, 827, -1, -1, 336, -1, - 258, -1, -1, 401, 1162, 834, 836, -1, 401, 527, - 608, 835, -1, 1140, 498, 1140, -1, 835, 575, 1140, - 498, 1140, -1, 837, -1, 836, 575, 837, -1, 1131, - 498, 1131, -1, 47, 217, 839, 229, 841, -1, 840, - -1, 839, 575, 840, -1, 1131, 846, -1, 1137, -1, - 111, -1, -1, 257, 217, 226, 47, 843, 844, -1, - 845, -1, 844, 575, 845, -1, 1131, 846, 849, -1, - -1, 847, 848, -1, -1, 772, 573, 954, 574, -1, - -1, 214, 247, -1, 851, -1, 430, 853, -1, 573, - 852, 574, 1215, -1, 430, 855, -1, 573, 852, 574, - -1, -1, 855, 854, 1212, -1, -1, -1, 856, 860, - 864, 857, 858, 863, -1, 973, 979, -1, 995, -1, - 859, -1, 995, 859, -1, 859, 995, -1, 175, 928, - 962, 967, 964, 973, 979, 986, -1, 175, 130, 962, - 979, -1, -1, 861, -1, 861, 862, -1, 862, -1, - 471, -1, 204, -1, 125, -1, 460, -1, 455, -1, - 456, -1, 458, -1, 459, -1, 457, -1, 12, -1, - -1, 172, 524, -1, 262, 229, 438, 310, -1, 864, - 575, 865, -1, 865, -1, 567, -1, 866, 868, 867, - 869, -1, -1, -1, 1125, -1, 871, -1, -1, 18, - 1137, -1, 18, 1134, -1, 1137, -1, 1134, -1, -1, - 573, 574, -1, -1, 874, 872, 873, -1, -1, 873, - 887, 874, -1, 874, 553, 874, -1, -1, 877, 875, - 876, -1, -1, 876, 888, 877, -1, 333, 877, -1, - 878, -1, 879, 232, 504, -1, 879, 232, 889, 504, - -1, 879, 232, 158, -1, 879, 232, 889, 158, -1, - 879, 232, 520, -1, 879, 232, 889, 520, -1, 879, - -1, 879, 232, 337, -1, 879, 232, 889, 337, -1, - 879, 146, 880, -1, 879, 891, 880, -1, 879, 891, - 892, 573, 1220, 574, -1, 880, -1, 881, 229, 573, - 1220, 574, -1, 881, 889, 229, 573, 1220, 574, -1, - 881, 229, 573, 871, 574, -1, 881, 229, 573, 871, - 575, 917, 574, -1, 881, 889, 229, 573, 871, 574, - -1, 881, 889, 229, 573, 871, 575, 917, 574, -1, - 881, 562, 881, 16, 880, -1, 881, 889, 562, 881, - 16, 880, -1, 881, 448, 252, 881, -1, 881, 252, - 894, 966, -1, 881, 889, 252, 894, 966, -1, 881, - 395, 881, -1, 881, 889, 395, 881, -1, 881, -1, - 881, 563, 882, -1, 882, -1, 882, 564, 883, -1, - 883, -1, 883, 439, 884, -1, 883, 440, 884, -1, - 884, -1, 884, 566, 885, -1, 884, 565, 885, -1, - 884, 566, 893, 956, -1, 884, 565, 893, 956, -1, - 885, -1, 885, 567, 886, -1, 885, 568, 886, -1, - 885, 569, 886, -1, 885, 126, 886, -1, 885, 313, - 886, -1, 886, -1, 886, 570, 894, -1, 894, -1, - 354, -1, 351, -1, 16, -1, 15, -1, 333, -1, - 332, -1, 576, -1, 332, -1, 145, -1, 184, -1, - 198, -1, 244, -1, 271, -1, 328, -1, 12, -1, - 17, -1, 225, 871, -1, 1127, -1, 894, 64, 1139, - -1, 1122, -1, 1120, -1, 907, -1, 903, -1, 894, - 353, 894, -1, 566, 894, -1, 565, 894, -1, 571, - 894, -1, 890, 894, -1, 573, 1220, 574, -1, 573, - 871, 574, -1, 573, 871, 575, 917, 574, -1, 424, - 573, 871, 575, 917, 574, -1, 152, 573, 1220, 574, - -1, 577, 1137, 871, 578, -1, 289, 920, 9, 573, - 881, 897, 574, -1, 20, 573, 871, 574, -1, 32, - 894, -1, 51, 573, 871, 18, 915, 574, -1, 561, - 924, 926, 925, 141, -1, 83, 573, 871, 575, 915, - 574, -1, 83, 573, 871, 530, 749, 574, -1, 111, - 573, 1127, 574, -1, 535, 573, 1128, 574, -1, 180, - 573, 574, -1, 181, 573, 871, 574, -1, 182, 573, - 871, 575, 871, 574, -1, 183, 573, 871, 575, 871, - 575, 871, 574, -1, 7, 573, 871, 575, 871, 574, - -1, 7, 573, 871, 575, 225, 871, 956, 574, -1, - 404, 573, 871, 575, 871, 574, -1, 22, 573, 871, - 574, -1, 22, 573, 871, 575, 871, 574, -1, 56, - 573, 917, 574, -1, 56, 573, 917, 530, 749, 574, - -1, 55, 573, 871, 574, -1, 62, 573, 917, 574, - -1, 65, 573, 871, 574, -1, 73, 573, 917, 574, - -1, 74, 573, 871, 575, 917, 574, -1, 84, 573, - 871, 575, 871, 575, 871, 574, -1, 90, 870, -1, - 93, 870, -1, 93, 573, 871, 574, -1, 91, 870, - -1, 98, 573, 871, 575, 893, 956, 574, -1, 99, - 573, 871, 575, 893, 956, 574, -1, 94, 573, 574, - -1, 100, 573, 871, 574, -1, 105, 573, 871, 574, - -1, 136, 573, 871, 575, 917, 574, -1, 272, 573, - 871, 575, 917, 574, -1, 140, 573, 871, 574, -1, - 140, 573, 871, 575, 871, 574, -1, 110, 573, 871, - 575, 1135, 574, -1, 139, 573, 871, 575, 1135, 574, - -1, 118, 573, 871, 574, -1, 118, 573, 871, 575, - 871, 574, -1, 119, 573, 871, 574, -1, 119, 573, - 871, 575, 871, 574, -1, 155, 573, 871, 575, 871, - 575, 871, 574, -1, 155, 573, 871, 575, 871, 575, - 871, 575, 871, 574, -1, 155, 573, 871, 575, 871, - 575, 871, 575, 871, 575, 871, 574, -1, 171, 573, - 871, 575, 338, 574, -1, 176, 573, 871, 574, -1, - 176, 573, 871, 575, 871, 574, -1, 162, 573, 871, - 575, 917, 574, -1, 896, -1, 190, 573, 958, 575, - 871, 574, -1, 209, 573, 871, 574, -1, 213, 573, - 871, 575, 871, 575, 871, 574, -1, 223, 573, 871, - 575, 871, 575, 871, 575, 871, 574, -1, 893, 956, - 566, 871, -1, 893, -1, 242, 573, 574, -1, 242, - 573, 871, 574, -1, 249, 573, 871, 575, 871, 574, - -1, 259, 573, 871, 575, 871, 574, -1, 259, 573, - 871, 575, 871, 575, 871, 574, -1, 194, 573, 871, - 575, 917, 574, -1, 246, 573, 871, 575, 917, 574, - -1, 264, 573, 871, 574, -1, 264, 573, 871, 575, - 871, 574, -1, 279, 573, 871, 575, 871, 574, -1, - 279, 573, 871, 575, 871, 575, 871, 574, -1, 302, - 573, 871, 574, -1, 306, 573, 871, 574, -1, 313, - 573, 871, 575, 871, 574, -1, 314, 573, 871, 574, - -1, 334, 870, -1, 334, 573, 871, 574, -1, 361, - 573, 871, 574, -1, 343, 573, 871, 574, -1, 368, - 573, 881, 229, 871, 574, -1, 380, 573, 871, 574, - -1, 388, 573, 871, 574, -1, 388, 573, 574, -1, - 405, 573, 871, 575, 871, 575, 871, 574, -1, 416, - 573, 871, 575, 871, 574, -1, 419, 573, 871, 574, - -1, 419, 573, 871, 575, 871, 574, -1, 422, 573, - 574, -1, 473, 573, 871, 575, 871, 574, -1, 473, - 573, 871, 575, 225, 871, 956, 574, -1, 428, 573, - 871, 574, -1, 475, 573, 871, 575, 871, 575, 871, - 574, -1, 475, 573, 871, 575, 871, 574, -1, 475, - 573, 871, 175, 871, 172, 871, 574, -1, 475, 573, - 871, 175, 871, 574, -1, 476, 573, 871, 575, 871, - 575, 871, 574, -1, 482, 870, -1, 482, 573, 871, - 574, -1, 494, 573, 871, 574, -1, 491, 573, 871, - 574, -1, 491, 573, 871, 575, 871, 574, -1, 492, - 573, 957, 575, 871, 575, 871, 574, -1, 493, 573, - 957, 575, 871, 575, 871, 574, -1, 503, 573, 871, - 574, -1, 503, 573, 245, 871, 175, 871, 574, -1, - 503, 573, 499, 871, 175, 871, 574, -1, 503, 573, - 43, 871, 175, 871, 574, -1, 503, 573, 245, 175, - 871, 574, -1, 503, 573, 499, 175, 871, 574, -1, - 503, 573, 43, 175, 871, 574, -1, 503, 573, 871, - 175, 871, 574, -1, 505, 573, 871, 575, 871, 574, - -1, 1137, 580, 1137, 573, 916, 574, -1, -1, 1133, - 573, 895, 898, 574, -1, 518, 573, 1118, 575, 338, - 575, 338, 575, 917, 574, -1, 519, 573, 574, -1, - 519, 573, 871, 574, -1, 527, 573, 574, -1, 531, - 870, -1, 533, 870, -1, 532, 870, -1, 544, 573, - 871, 574, -1, 544, 573, 871, 575, 871, 574, -1, - 556, 573, 871, 574, -1, 554, 573, 871, 574, -1, - 554, 573, 871, 575, 871, 574, -1, 29, 573, 984, - 575, 871, 574, -1, 157, 573, 956, 175, 871, 574, - -1, 80, 573, 871, 575, 871, 574, -1, 188, 573, - 871, 574, -1, 188, 573, 871, 575, 871, 574, -1, - 189, 573, 871, 574, -1, 189, 573, 871, 575, 871, - 574, -1, 186, 573, 917, 574, -1, 256, 573, 917, - 574, -1, 317, 573, 917, 574, -1, 309, 573, 871, - 574, -1, 309, 573, 871, 575, 871, 574, -1, 315, - 573, 871, 574, -1, 315, 573, 871, 575, 871, 574, - -1, 316, 573, 871, 574, -1, 316, 573, 871, 575, - 871, 574, -1, 318, 573, 917, 574, -1, 319, 573, - 917, 574, -1, 365, 573, 871, 575, 871, 574, -1, - 364, 573, 871, 574, -1, 364, 573, 871, 575, 871, - 574, -1, 366, 573, 871, 574, -1, 366, 573, 871, - 575, 871, 574, -1, 367, 573, 917, 574, -1, 185, - 573, 871, 574, -1, 185, 573, 871, 575, 871, 574, - -1, 254, 573, 871, 574, -1, 254, 573, 871, 575, - 871, 574, -1, -1, 548, 381, 154, -1, 229, 41, - 310, -1, -1, 899, -1, -1, 900, 901, -1, 902, - -1, 901, 575, 902, -1, 866, 871, 867, 869, -1, - 25, 573, 913, 574, -1, 25, 573, 125, 913, 574, - -1, 35, 573, 913, 574, -1, 36, 573, 913, 574, - -1, 38, 573, 913, 574, -1, 85, 573, 961, 567, - 574, -1, 85, 573, 913, 574, -1, -1, -1, 85, - 573, 125, 904, 917, 905, 574, -1, 197, 573, 1118, - 575, 338, 575, 338, 575, 913, 574, -1, 308, 573, - 913, 574, -1, 308, 573, 125, 913, 574, -1, 293, - 573, 913, 574, -1, 293, 573, 125, 913, 574, -1, - 467, 573, 913, 574, -1, 540, 573, 913, 574, -1, - 468, 573, 913, 574, -1, 534, 573, 913, 574, -1, - 477, 573, 913, 574, -1, 477, 573, 125, 913, 574, - -1, -1, 196, 573, 910, 906, 917, 912, 911, 574, - -1, -1, 579, 908, 909, -1, 1139, 437, 871, -1, - 1139, -1, 579, 1152, 1139, 780, -1, -1, 125, -1, - -1, 432, 1119, -1, -1, 974, -1, -1, 961, 914, - 871, -1, 32, 742, -1, 56, 742, 757, -1, 326, - 742, -1, 443, -1, 443, 227, -1, 522, -1, 522, - 227, -1, 100, -1, 494, -1, 97, -1, 108, 737, - -1, -1, 917, -1, -1, 918, 919, -1, 871, -1, - 919, 575, 871, -1, 921, -1, 573, 921, 574, -1, - -1, 922, 923, -1, 1127, -1, 923, 575, 1127, -1, - -1, 871, -1, -1, 559, 871, -1, 545, 871, 560, - 871, -1, 926, 545, 871, 560, 871, -1, 939, -1, - 930, -1, 929, -1, 927, -1, 929, 575, 927, -1, - 927, 938, 927, -1, 927, 471, 939, -1, -1, 927, - 938, 927, 344, 931, 871, -1, -1, 927, 471, 939, - 344, 932, 871, -1, -1, 927, 938, 927, 530, 933, - 573, 955, 574, -1, 927, 324, 236, 939, -1, -1, - 927, 249, 949, 236, 927, 344, 934, 871, -1, -1, - 927, 249, 949, 236, 939, 935, 530, 573, 955, 574, - -1, 927, 324, 249, 949, 236, 939, -1, -1, 927, - 416, 949, 236, 927, 344, 936, 871, -1, -1, 927, - 416, 949, 236, 939, 937, 530, 573, 955, 574, -1, - 927, 324, 416, 949, 236, 939, -1, 236, -1, 219, - 236, -1, 88, 236, -1, -1, 940, 1131, 960, 950, - -1, -1, 577, 1137, 927, 249, 355, 236, 927, 344, - 941, 871, 578, -1, 948, 947, 944, -1, 573, 947, - 942, 1215, 574, 960, -1, -1, 947, 943, 929, -1, - -1, -1, 945, 860, 864, 946, 714, -1, -1, 430, - -1, -1, 355, -1, -1, 529, 951, -1, 169, 951, - -1, 214, 951, -1, -1, 771, 952, 573, 953, 574, - -1, -1, 954, -1, 954, 575, 1137, -1, 1137, -1, - 372, -1, 1137, -1, 955, 575, 1137, -1, 957, -1, - 101, -1, 102, -1, 103, -1, 104, -1, 206, -1, - 207, -1, 208, -1, 302, -1, 304, -1, 305, -1, - 427, -1, 555, -1, 105, -1, 544, -1, 209, -1, - 174, -1, 306, -1, 314, -1, 380, -1, 428, -1, - 556, -1, 100, -1, 494, -1, 97, -1, 491, -1, - -1, 18, -1, 145, -1, -1, 959, 1137, -1, -1, - 12, -1, -1, -1, 546, 963, 871, -1, -1, -1, - 201, 965, 871, -1, 149, 894, -1, -1, -1, 195, - 45, 968, 969, -1, 968, 575, 1126, 977, -1, 1126, - 977, -1, -1, 548, 89, -1, 548, 418, -1, 352, - 45, 971, -1, 971, 575, 972, -1, 972, -1, 1128, - 977, -1, -1, 974, -1, -1, 352, 45, 975, 976, - -1, 976, 575, 1126, 977, -1, 1126, 977, -1, -1, - 19, -1, 116, -1, -1, 980, -1, -1, 980, -1, - 253, 981, -1, 982, -1, 982, 575, 982, -1, 982, - 341, 982, -1, 1120, -1, 510, -1, 267, -1, 338, - -1, -1, 253, 982, -1, 338, -1, 203, -1, 267, - -1, 510, -1, 107, -1, 166, -1, 338, -1, 510, - -1, 267, -1, 107, -1, 166, -1, -1, -1, 374, - 1137, 987, 573, 988, 574, -1, -1, 989, -1, 989, - 575, 990, -1, 990, -1, 866, 871, -1, -1, 992, - 993, -1, 993, 575, 994, -1, 994, -1, 579, 1139, - -1, 1139, -1, -1, 226, 996, 997, -1, -1, 356, - 1136, 998, 1107, 1110, -1, 131, 1136, -1, 991, -1, - -1, 128, 1000, 917, -1, 129, 1006, 1162, 1005, 1003, - 797, -1, -1, 129, 217, 1137, 344, 1131, 1002, -1, - 129, 94, 1005, 1137, -1, 129, 179, 1005, 609, -1, - 129, 374, 1005, 609, -1, 129, 527, 608, 1192, -1, - 129, 542, 1005, 1003, 797, -1, 129, 501, 1005, 609, - -1, 1004, -1, 1003, 575, 1004, -1, 1131, -1, -1, - 213, 152, -1, -1, 486, -1, -1, -1, 223, 1008, - 1013, 796, 1015, 1009, 1017, 1033, -1, -1, -1, 405, - 1011, 1014, 1015, 1012, 1017, -1, -1, 270, -1, 113, - -1, 204, -1, 1042, -1, 113, -1, 226, 1016, -1, - 1016, -1, 1004, -1, 1020, -1, 573, 574, 1020, -1, - 573, 1019, 574, 1020, -1, -1, 436, 1018, 1024, -1, - 1019, 575, 1124, -1, 1124, -1, 535, 1023, -1, 536, - 1023, -1, -1, 693, 1021, 1212, -1, -1, 573, 693, - 574, 1022, 1215, -1, 1023, 575, 1028, -1, 1028, -1, - 1024, 575, 1025, -1, 1025, -1, 1128, 1026, 1032, -1, - 145, -1, 437, -1, -1, 1026, -1, -1, 573, 1029, - 1030, 574, -1, -1, 1031, -1, 1031, 575, 1032, -1, - 1032, -1, 871, -1, 111, -1, -1, -1, 344, 132, - 1034, 238, 524, 1040, -1, -1, -1, 524, 1036, 1042, - 796, 928, 436, 1038, 1037, 962, 973, 983, -1, 1038, - 575, 1039, -1, 1039, -1, 1128, 1026, 1032, -1, 1040, - 575, 1041, -1, 1041, -1, 1128, 1026, 1032, -1, -1, - 270, -1, -1, 115, 1044, 1052, 1045, -1, -1, 175, - 1131, 1046, 962, 973, 983, -1, -1, 1049, 1047, 175, - 928, 962, -1, -1, 175, 1049, 1048, 530, 928, 962, - -1, 1050, -1, 1049, 575, 1050, -1, 1137, 1051, 960, - -1, 1137, 580, 1137, 1051, 960, -1, -1, 580, 567, - -1, -1, 1053, 1052, -1, 382, -1, 270, -1, 214, - -1, 505, 1055, 1004, -1, -1, 485, -1, -1, 1057, - -1, 1058, -1, 1057, 575, 1058, -1, 86, -1, 300, - -1, 40, 230, -1, 81, 481, -1, 359, 160, -1, - 231, -1, 480, -1, 449, -1, 12, -1, -1, 172, - 381, 338, -1, -1, 441, 1061, 1062, -1, 95, 1073, - -1, 1069, 483, 1068, 1073, -1, 1069, 502, 1068, 1073, - -1, 485, 466, 1068, 1073, -1, 347, 483, 1068, 1073, - -1, -1, 143, 710, 1063, 1065, -1, 1069, 66, 1070, - 1131, 1068, 1073, -1, 329, 287, 172, 445, 548, 275, - 145, 1134, 16, 276, 145, 985, 16, 280, 145, 984, - -1, 1066, 263, -1, 445, 205, -1, -1, 33, 150, - 1071, 1072, 1064, 978, -1, 773, 1070, 1131, 1068, 962, - -1, 67, 506, -1, 485, 506, -1, 1067, 142, -1, - 373, -1, 85, 573, 567, 574, 543, -1, 85, 573, - 567, 574, 147, -1, 543, 978, -1, 147, 978, -1, - 378, -1, 377, 1056, 1059, 978, -1, 1151, 466, 1073, - -1, 220, 466, -1, 320, 466, -1, 1069, 376, -1, - 1151, 539, 1073, -1, 748, 1073, -1, 65, 1073, -1, - 30, 263, -1, 263, -1, 193, -1, 193, 172, 1140, - -1, 87, 94, 703, 1137, -1, 87, 485, 1131, -1, - 87, 542, 1131, -1, 287, 466, -1, 445, 466, -1, - 87, 374, 609, -1, 87, 179, 609, -1, 374, 466, - 1073, -1, 179, 466, 1073, -1, 374, 63, 609, -1, - 179, 63, 609, -1, 466, -1, 263, -1, 287, -1, - 32, -1, -1, 470, -1, -1, 1070, 1137, -1, -1, - 177, -1, 175, -1, 229, -1, -1, 229, 1134, -1, - -1, 175, 985, -1, -1, 252, 1134, -1, 546, 871, - -1, -1, 1077, 1131, 1075, 1079, -1, -1, 1077, 1078, - 1076, 850, -1, 116, -1, 117, -1, -1, 156, -1, - -1, 1119, -1, 1137, -1, -1, 168, 832, 1081, 1082, - -1, 1082, 575, 1083, -1, 1083, -1, -1, 1162, 1084, - 1085, -1, 483, 548, 390, 262, -1, 381, 47, -1, - 205, -1, 373, -1, 263, -1, 466, -1, 445, -1, - 287, -1, 120, -1, 409, -1, -1, 1003, -1, -1, - 408, 1087, 1088, -1, 1088, 575, 1089, -1, 1089, -1, - 445, -1, 287, -1, 381, 47, -1, -1, 379, 1091, - 1092, -1, 1066, 263, 1093, -1, 498, 1134, -1, 27, - 871, -1, -1, 239, 1095, 1096, 871, -1, -1, 77, - -1, 381, -1, 529, 1137, -1, -1, 257, 96, 1099, - 1100, -1, 257, 485, 1131, 175, 287, -1, -1, -1, - -1, 1105, 1104, 218, 1136, 1101, 1106, 226, 1102, 485, - 1131, 1103, 1107, 1110, 1113, 1114, 1117, -1, 175, 287, - -1, -1, 258, -1, -1, 75, -1, 270, -1, -1, - 405, -1, 214, -1, -1, 66, 1108, -1, 1108, 1109, - -1, 1109, -1, 488, 45, 1119, -1, 350, 138, 45, - 1119, -1, 138, 45, 1119, -1, 148, 45, 1119, -1, - -1, 255, 1111, -1, 1111, 1112, -1, 1112, -1, 488, - 45, 1119, -1, 464, 45, 1119, -1, -1, 214, 338, - 255, -1, -1, 573, 1115, 574, -1, 573, 574, -1, - 1115, 575, 1116, -1, 1116, -1, 1128, -1, 579, 1139, - -1, -1, 436, 1040, -1, 1135, -1, 325, -1, 513, - 489, -1, 1118, 1135, -1, 1135, -1, 203, -1, 34, - -1, 362, -1, 1122, -1, 566, 1123, -1, 565, 1123, - -1, 1118, -1, 1123, -1, 337, -1, 158, -1, 504, - -1, 203, -1, 34, -1, 513, 203, -1, 513, 34, - -1, 100, 1118, -1, 494, 1118, -1, 491, 1118, -1, - 338, -1, 267, -1, 510, -1, 107, -1, 166, -1, - 1128, -1, 1125, -1, 1137, 580, 567, -1, 1137, 580, - 1137, 580, 567, -1, 871, -1, 1137, -1, 1129, -1, - 1137, -1, 1129, -1, 1137, 580, 1137, -1, 580, 1137, - 580, 1137, -1, 1137, 580, 1137, 580, 1137, -1, 1137, - -1, 1137, 580, 1137, 580, 1137, -1, 1137, 580, 1137, - -1, 580, 1137, -1, 1137, -1, 1137, 580, 1137, -1, - 580, 1137, -1, 1137, -1, 210, -1, 212, -1, 489, - -1, 489, -1, 489, -1, 1133, -1, 1141, -1, 1133, - -1, 1142, -1, 1137, -1, 1134, -1, 251, -1, 1139, - -1, 1139, 579, 1139, -1, 91, 870, -1, 1142, -1, - 20, -1, 26, -1, 28, -1, 46, -1, 47, -1, - 55, -1, 57, -1, 61, -1, 68, -1, 70, -1, - 80, -1, 106, -1, 128, -1, 141, -1, 151, -1, - 168, -1, 199, -1, 202, -1, 241, -1, 335, -1, - 347, -1, 370, -1, 402, -1, 408, -1, 410, -1, - 417, -1, 426, -1, 429, -1, 443, -1, 445, -1, - 465, -1, 469, -1, 505, -1, 515, -1, 552, -1, - 525, -1, 5, -1, 7, -1, 8, -1, 9, -1, - 10, -1, 11, -1, 17, -1, 23, -1, 24, -1, - 25, -1, 30, -1, 33, -1, 37, -1, 40, -1, - 42, -1, 41, -1, 44, -1, 50, -1, 52, -1, - 54, -1, 59, -1, 60, -1, 63, -1, 65, -1, - 66, -1, 69, -1, 71, -1, 72, -1, 75, -1, - 78, -1, 81, -1, 86, -1, 89, -1, 96, -1, - 97, -1, 100, -1, 105, -1, 112, -1, 114, -1, - 120, -1, 122, -1, 124, -1, 131, -1, 132, -1, - 133, -1, 144, -1, 143, -1, 142, -1, 147, -1, - 149, -1, 150, -1, 154, -1, 156, -1, 159, -1, - 160, -1, 173, -1, 123, -1, 137, -1, 177, -1, - 163, -1, 164, -1, 165, -1, 174, -1, 187, -1, - 186, -1, 190, -1, 193, -1, 191, -1, 200, -1, - 205, -1, 209, -1, 211, -1, 228, -1, 215, -1, - 216, -1, 233, -1, 234, -1, 220, -1, 224, -1, - 230, -1, 231, -1, 398, -1, 243, -1, 247, -1, - 250, -1, 256, -1, 258, -1, 261, -1, 263, -1, - 292, -1, 287, -1, 274, -1, 278, -1, 275, -1, - 276, -1, 288, -1, 277, -1, 280, -1, 273, -1, - 286, -1, 282, -1, 281, -1, 283, -1, 284, -1, - 285, -1, 290, -1, 291, -1, 294, -1, 295, -1, - 299, -1, 300, -1, 301, -1, 302, -1, 303, -1, - 306, -1, 307, -1, 312, -1, 310, -1, 314, -1, - 317, -1, 318, -1, 319, -1, 320, -1, 322, -1, - 321, -1, 323, -1, 326, -1, 327, -1, 330, -1, - 329, -1, 331, -1, 340, -1, 341, -1, 343, -1, - 345, -1, 346, -1, 358, -1, 359, -1, 360, -1, - 361, -1, 363, -1, 365, -1, 367, -1, 371, -1, - 373, -1, 375, -1, 376, -1, 377, -1, 378, -1, - 380, -1, 381, -1, 382, -1, 383, -1, 384, -1, - 385, -1, 386, -1, 387, -1, 392, -1, 393, -1, - 396, -1, 397, -1, 400, -1, 403, -1, 406, -1, - 409, -1, 412, -1, 413, -1, 418, -1, 420, -1, - 421, -1, 423, -1, 424, -1, 425, -1, 428, -1, - 434, -1, 433, -1, 435, -1, 444, -1, 438, -1, - 442, -1, 447, -1, 448, -1, 449, -1, 457, -1, - 456, -1, 459, -1, 462, -1, 466, -1, 470, -1, - 472, -1, 473, -1, 474, -1, 478, -1, 479, -1, - 480, -1, 481, -1, 483, -1, 484, -1, 486, -1, - 487, -1, 490, -1, 500, -1, 502, -1, 491, -1, - 492, -1, 493, -1, 494, -1, 506, -1, 507, -1, - 508, -1, 179, -1, 511, -1, 512, -1, 520, -1, - 523, -1, 527, -1, 528, -1, 539, -1, 542, -1, - 536, -1, 543, -1, 544, -1, 549, -1, 551, -1, - 556, -1, -1, 436, 1145, 1144, 1146, -1, -1, 349, - -1, 1147, -1, 1146, 575, 1147, -1, -1, 1148, 1153, - -1, 1150, -1, 191, -1, 258, -1, 435, -1, -1, - 345, -1, -1, 191, -1, 258, -1, 435, -1, -1, - 191, 580, -1, 258, 580, -1, 435, 580, -1, 1154, - -1, 1150, 1155, -1, 1149, 1156, 1026, 1159, -1, 1149, - 500, 233, 250, 1157, -1, 579, 1139, 1026, 871, -1, - 579, 579, 1152, 1156, 1026, 1159, -1, 748, 752, -1, - 321, 1026, 871, -1, 321, 750, 754, -1, 361, 1026, - 1158, -1, 361, 172, 1140, 1026, 1158, -1, 1137, -1, - 1137, 580, 1137, -1, 111, 580, 1137, -1, 390, 511, - -1, 390, 69, -1, 403, 390, -1, 433, -1, 489, - -1, 361, 573, 489, 574, -1, 343, 573, 489, 574, - -1, 871, -1, 111, -1, 344, -1, 12, -1, 32, - -1, -1, 262, 1162, 1161, 1163, -1, 485, -1, 483, - -1, 1164, -1, 1163, 575, 1164, -1, 1131, 960, 1165, - -1, 390, -1, 550, -1, 270, 550, -1, 390, 258, - -1, -1, 521, 1167, 1162, -1, 199, 1131, 347, 960, - -1, 199, 1132, 61, -1, -1, 199, 1132, 390, 1169, - 1170, 962, 979, -1, 1171, -1, 1137, 1172, -1, 164, - -1, 330, -1, 164, -1, 330, -1, 371, -1, 243, - -1, -1, 1174, 1173, 573, 1031, 574, -1, 145, -1, - 184, -1, 244, -1, 198, -1, 271, -1, 415, 608, - 1176, -1, 1180, 344, 1179, 1191, 175, 1193, -1, 1180, - 344, 179, 1191, 175, 1193, -1, 1180, 344, 374, 1191, - 175, 1193, -1, 12, 1181, 575, 192, 349, 175, 1193, - -1, 192, 608, 1178, -1, 1180, 344, 1179, 1191, 498, - 1193, 1198, 1199, -1, 1180, 344, 179, 1191, 498, 1193, - 1198, 1199, -1, 1180, 344, 374, 1191, 498, 1193, 1198, - 1199, -1, -1, 485, -1, 1182, -1, 12, 1181, -1, - -1, 373, -1, 1183, -1, 1182, 575, 1183, -1, -1, - 430, 1184, 1195, -1, -1, 223, 1185, 1195, -1, -1, - 524, 1186, 1195, -1, -1, 394, 1187, 1195, -1, 115, - -1, 526, -1, 217, -1, 13, -1, 87, -1, 129, - -1, 151, -1, 400, -1, 442, -1, 375, -1, 163, - -1, 192, 349, -1, 441, 95, -1, 478, -1, 87, - 486, 483, -1, 262, 483, -1, 406, 445, -1, 406, - 60, -1, 87, 542, -1, 441, 542, -1, 87, 420, - -1, 13, 420, -1, 87, 527, -1, -1, 16, -1, - 1190, 1188, 1189, -1, 1190, -1, 474, 489, -1, 234, - 489, -1, 59, 489, -1, 567, -1, 1137, 580, 567, - -1, 567, 580, 567, -1, 1131, -1, 1140, -1, 1192, - 575, 1140, -1, 1194, -1, 1193, 575, 1194, -1, 1140, - 211, 45, 489, -1, 1140, 211, 45, 361, 489, -1, - 1140, -1, -1, 573, 1196, 574, -1, 1196, 575, 1197, - -1, 1197, -1, 1137, -1, -1, 407, 1189, -1, 407, - 463, -1, 407, 551, -1, 407, 331, -1, -1, 548, - 1200, -1, 1200, 1201, -1, 1201, -1, 192, 349, -1, - 291, 984, -1, 294, 984, -1, 290, 984, -1, 295, - 984, -1, -1, 28, 1203, 1204, -1, -1, 549, -1, - -1, 16, 335, 52, -1, 16, 52, -1, -1, 399, - -1, 335, 399, -1, -1, 426, -1, 70, 1204, 1205, - 1206, -1, 417, 1204, 1205, 1206, -1, 417, 1204, 498, - 1207, 1137, -1, 426, 1137, -1, 399, 426, 1137, -1, - -1, 1213, -1, -1, 516, 1219, 1214, 851, -1, -1, - 1213, -1, 1216, -1, -1, 1217, 1218, -1, 974, 978, - -1, 980, -1, -1, 125, -1, 12, -1, 430, 1223, - 1222, 1224, -1, -1, 573, 1223, 1220, 574, 1221, 1212, - 1224, -1, 853, -1, -1, -1, 1227, 1226, -1, 1228, - 1227, 1233, -1, 1233, -1, 1241, -1, 1243, -1, -1, - 112, 145, 1140, -1, 1229, -1, 1229, 1230, -1, 1230, - -1, 354, 405, -1, 11, 145, 512, -1, 11, 145, - 301, -1, 11, 145, 487, -1, -1, 1230, -1, -1, - 461, 429, 112, -1, 461, 429, 228, -1, -1, 1232, - 542, 1131, 1234, 1235, 18, 1237, 1240, -1, -1, 573, - 1236, 574, -1, 1137, -1, 1236, 575, 1137, -1, -1, - 1238, 1239, -1, 430, 866, 853, -1, 573, 866, 852, - 574, 1215, -1, -1, 548, 58, 349, -1, 548, 50, - 58, 349, -1, 548, 258, 58, 349, -1, -1, 501, - 866, 609, 685, 686, 344, 866, 1131, 172, 866, 134, - 424, 1242, 649, -1, -1, 715, 866, 179, 609, 1244, - 610, -1, -1, -1, -1, -1, 374, 866, 609, 1245, - 573, 1246, 630, 574, 1247, 617, 1248, 649, -1, 552, - 1251, 1250, 1252, -1, 552, 141, 1250, 1254, -1, 552, - 370, 1250, -1, 552, 70, 1250, 1253, -1, 552, 417, - 1250, -1, 552, 392, -1, 1119, -1, 1119, 575, 1119, - -1, 1119, 575, 1119, 575, 984, -1, 28, -1, 465, - -1, -1, 236, -1, 412, -1, -1, 346, 363, -1, - -1, -1, 479, 1255, 1256, -1, -1, 172, 303, -1 + 591, 0, -1, 3, -1, 592, 3, -1, 593, -1, + 1215, -1, 789, -1, 830, -1, 820, -1, 628, -1, + 605, -1, 832, -1, 822, -1, 1221, -1, 610, -1, + 594, -1, 1056, -1, 1087, -1, 1012, -1, 1014, -1, + 598, -1, 1093, -1, 1190, -1, 1181, -1, 603, -1, + 1020, -1, 1107, -1, 1111, -1, 1173, -1, 1270, -1, + 837, -1, 845, -1, 849, -1, 596, -1, 1103, -1, + 1224, -1, 840, -1, 825, -1, 1023, -1, 1099, -1, + 818, -1, 1188, -1, 1222, -1, 1223, -1, 857, -1, + 1156, -1, 1073, -1, 807, -1, 810, -1, 1067, -1, + 1179, -1, 1048, -1, 1110, -1, 1262, -1, 595, 374, + 1150, -1, 106, -1, 129, -1, 374, 1150, 175, 597, + -1, 1147, -1, 586, 1152, -1, -1, 151, 1150, 599, + 600, -1, -1, 537, 601, -1, 601, 582, 602, -1, + 602, -1, 586, 1152, -1, -1, 202, 604, 1152, -1, + -1, 53, 290, 503, 606, 607, -1, 608, -1, 607, + 582, 608, -1, 277, 145, 1147, -1, 291, 145, 1147, + -1, 280, 145, 1147, -1, 281, 145, 997, -1, 276, + 145, 997, -1, 289, 145, 997, -1, 285, 145, 1147, + -1, 284, 145, 1147, -1, 286, 145, 1147, -1, 287, + 145, 1147, -1, 288, 145, 1147, -1, 609, -1, 278, + 145, 1147, -1, 279, 145, 998, -1, 400, 145, 1147, + -1, 401, 145, 997, -1, -1, 87, 707, 489, 710, + 1144, 611, 694, -1, -1, 87, 781, 218, 1150, 782, + 347, 1144, 612, 580, 784, 581, -1, -1, 87, 94, + 710, 1150, 613, 704, -1, -1, 87, 614, 1238, -1, + 87, 533, 615, 1206, -1, -1, 1150, 587, 1150, -1, + 1150, -1, 417, 723, 514, 1147, -1, -1, -1, -1, + -1, -1, 580, 618, 633, 581, 619, 417, 620, 734, + 621, 624, 622, 656, -1, -1, 623, 625, -1, -1, + 624, 626, -1, 68, 1147, -1, 243, 465, -1, 338, + 465, -1, 80, 465, -1, 393, 465, 96, -1, 314, + 465, 96, -1, 627, -1, 625, -1, 121, -1, 896, + 121, -1, 465, 433, 112, -1, 465, 433, 230, -1, + -1, 48, 616, 629, 630, -1, -1, 580, 631, 581, + -1, -1, 632, -1, 632, 582, 878, -1, 878, -1, + -1, 634, -1, 634, 582, 636, -1, 636, -1, -1, + 1150, 635, 734, -1, -1, 638, -1, 638, 582, 639, + -1, 639, -1, 640, 635, 1150, 734, -1, -1, 231, + -1, 361, -1, 223, -1, -1, 641, 656, 588, -1, + 656, 588, -1, 642, 656, 588, -1, -1, 643, 644, + 588, -1, -1, 109, 654, 645, 734, 655, -1, 109, + 1150, 76, 172, 651, -1, -1, 109, 649, 199, 172, + 646, 650, 656, -1, 109, 1150, 92, 172, 647, -1, + -1, 648, 593, -1, 153, -1, 82, -1, 653, -1, + 650, 582, 653, -1, 997, -1, 457, 652, 1148, -1, + -1, 543, -1, 651, -1, 1150, -1, 458, -1, 896, + 173, -1, 456, -1, 1150, -1, 654, 582, 1150, -1, + -1, 111, 878, -1, -1, 657, 593, -1, -1, 418, + 658, 878, -1, -1, 214, 659, 664, 141, 214, -1, + 669, -1, 684, -1, -1, 660, 687, -1, 250, 1151, + -1, 237, 1151, -1, 350, 1150, -1, -1, 161, 662, + 1150, 228, 661, 663, -1, 61, 1150, -1, -1, 333, + 175, -1, 175, -1, 1150, -1, 663, 582, 1150, -1, + -1, -1, -1, 665, 878, 567, 666, 642, 667, 668, + -1, -1, 135, 664, -1, 566, 642, -1, 670, -1, + 673, -1, -1, -1, 568, 671, 878, 672, 675, 683, + 141, 568, -1, -1, 568, 674, 676, 683, 141, 568, + -1, 677, -1, 675, 677, -1, 680, -1, 676, 680, + -1, -1, -1, 552, 678, 878, 679, 567, 642, -1, + -1, -1, 552, 681, 878, 682, 567, 642, -1, -1, + 566, 642, -1, -1, 1151, 589, 685, 687, 686, -1, + -1, 1151, -1, -1, 28, 688, 643, 641, 141, -1, + 272, 642, 141, 272, -1, -1, -1, 554, 689, 878, + 128, 690, 642, 141, 554, -1, -1, 408, 642, 529, + 691, 878, 141, 408, -1, 27, -1, 8, -1, 225, + -1, 530, -1, 115, -1, 580, 695, -1, 711, 697, + -1, 254, 1144, -1, 580, 254, 1144, 581, -1, 724, + 581, 711, 697, -1, -1, 700, 581, 696, 1228, -1, + -1, -1, 1119, 703, 700, 698, 1225, -1, -1, 1119, + 703, 580, 700, 581, 699, 1228, -1, -1, -1, 434, + 701, 867, 871, 702, 721, -1, -1, 18, -1, -1, + 705, -1, 706, -1, 705, 706, -1, 716, -1, 715, + -1, -1, 708, -1, 709, -1, 709, 708, -1, 491, + -1, -1, 214, 896, 152, -1, -1, 713, -1, 714, + -1, 714, 712, -1, 714, -1, 714, 713, -1, 714, + 582, 713, -1, 143, 1040, 717, -1, 512, 1040, 717, + -1, 295, 1040, 998, -1, 310, 1040, 998, -1, 24, + 1040, 997, -1, 365, 1040, 1147, -1, 68, 1040, 1147, + -1, 23, 1040, 998, -1, 362, 1040, 997, -1, 362, + 1040, 111, -1, 57, 1040, 997, -1, 114, 1040, 997, + -1, 427, 1040, 718, -1, 391, 1040, 719, -1, 388, + 1040, 997, -1, 389, 1040, 997, -1, 521, 1040, 580, + 1016, 581, -1, 715, -1, 716, -1, 226, 1040, 720, + -1, 96, 122, 1040, 1147, -1, 218, 122, 1040, 1147, + -1, 77, 1040, 1147, -1, 763, 755, 1040, 757, -1, + 763, 64, 1040, 762, -1, 1152, -1, 111, -1, 165, + -1, 133, -1, 72, -1, 397, -1, 71, -1, 390, + -1, 387, -1, 997, -1, 338, -1, 164, -1, 245, + -1, 992, -1, 866, 870, -1, -1, 10, -1, 476, + -1, 395, -1, 108, -1, 229, -1, 725, -1, 724, + 582, 725, -1, 726, -1, 727, -1, 732, 728, -1, + 732, 768, -1, 776, 786, 782, 580, 784, 581, -1, + 730, 777, 786, 782, 580, 784, 581, -1, 730, 170, + 240, 786, 580, 784, 581, 768, -1, 731, 728, -1, + 730, 729, -1, -1, 729, -1, 58, 878, -1, -1, + 731, -1, 79, 786, -1, -1, 1143, 733, 734, 751, + -1, 742, 749, 746, -1, 743, 750, 746, -1, 167, + 744, 746, -1, 37, -1, 37, 580, 341, 581, -1, + 42, -1, 41, -1, 738, 580, 341, 581, 764, -1, + 738, 764, -1, 739, 580, 341, 581, 765, -1, 739, + 765, -1, 32, 580, 341, 581, -1, 32, -1, 740, + 580, 341, 581, 764, -1, 741, 580, 341, 581, 765, + -1, 544, 580, 341, 581, -1, 563, 749, 746, -1, + 100, -1, 499, -1, 496, 749, -1, 97, -1, 500, + -1, 39, 749, -1, 737, -1, 299, -1, 268, -1, + 271, 544, -1, 271, 740, 764, -1, 502, 764, -1, + 495, 749, 764, -1, 301, 764, -1, 269, 764, -1, + 108, 744, 746, -1, 342, 744, 746, -1, 165, 744, + 746, -1, -1, 144, 735, 580, 788, 581, 764, -1, + -1, 440, 736, 580, 788, 581, 764, -1, 271, 764, + -1, 438, -1, 187, -1, 186, -1, 369, -1, 321, + -1, 258, -1, 320, -1, 371, -1, 322, -1, 56, + -1, 329, -1, 326, 56, -1, 738, 548, -1, 545, + -1, 326, 545, -1, 343, -1, 329, 545, -1, 326, + 56, 548, -1, 329, 548, -1, 229, -1, 501, -1, + 450, -1, 300, -1, 31, -1, 395, -1, 127, -1, + 127, 373, -1, -1, 580, 341, 581, -1, 745, -1, + 580, 341, 582, 341, 581, -1, -1, 747, -1, 747, + 748, -1, 748, -1, 447, -1, 528, -1, 564, -1, + -1, 580, 341, 581, -1, -1, 745, -1, -1, 752, + -1, 752, 753, -1, 753, -1, 340, -1, 896, 340, + -1, 111, 754, -1, 347, 530, 337, 877, -1, 23, + -1, 438, 111, 543, -1, 767, 240, -1, 522, -1, + 522, 240, -1, 68, 1147, -1, 64, 760, -1, 337, + 877, -1, 1134, -1, 56, 440, -1, 55, -1, 1152, + -1, 32, -1, 756, -1, 111, -1, 1152, -1, 32, + -1, 758, -1, 111, -1, 1152, -1, -1, 64, 762, + -1, 760, -1, 111, -1, -1, 111, -1, -1, 20, + 765, -1, 46, -1, 520, 765, -1, 755, 756, 765, + -1, 32, 766, -1, -1, 32, -1, -1, 20, -1, + 520, -1, 755, 756, -1, -1, 376, -1, -1, 398, + 1144, 769, 770, -1, 772, -1, 580, 771, 581, 772, + -1, 771, 582, 1150, -1, 1150, -1, -1, 773, -1, + 773, 774, -1, 774, -1, 347, 115, 775, -1, 347, + 530, 775, -1, 292, 177, -1, 292, 364, -1, 292, + 448, -1, 415, -1, 49, -1, 440, 340, -1, 338, + 5, -1, 440, 111, -1, 778, -1, 178, 779, -1, + 454, 779, -1, 376, 240, -1, 522, 779, -1, 240, + -1, 218, -1, -1, 778, -1, 239, -1, 218, -1, + 217, -1, -1, 522, -1, 178, -1, 454, -1, -1, + 537, 783, -1, 512, 783, -1, 44, -1, 429, -1, + 200, -1, 784, 582, 785, 990, -1, 785, 990, -1, + 1150, -1, 1150, 580, 341, 581, -1, -1, 1143, -1, + -1, 587, 1150, -1, 1132, -1, 788, 582, 1132, -1, + -1, 13, 803, 489, 1144, 790, 796, -1, -1, 13, + 94, 795, 791, 704, -1, -1, 13, 378, 616, 792, + 623, -1, -1, 13, 179, 616, 793, 623, -1, -1, + 13, 1244, 1240, 1245, 549, 1144, 794, 1248, 18, 1250, + 1253, -1, -1, 1150, -1, -1, 124, 488, -1, 216, + 488, -1, 798, -1, 796, 582, 798, -1, 6, 802, + -1, 797, 726, 805, -1, 6, 727, -1, 797, 580, + 724, 581, -1, -1, 53, 802, 1143, 799, 732, 805, + -1, -1, -1, 315, 802, 1143, 800, 734, 751, 801, + 805, -1, 129, 802, 1143, 804, -1, 129, 170, 240, + 786, -1, 129, 376, 240, -1, 129, 778, 1143, -1, + 123, 239, -1, 137, 239, -1, 13, 802, 1143, 440, + 111, 1134, -1, 13, 802, 1143, 129, 111, -1, 405, + 806, 1144, -1, 83, 503, 755, 757, 761, -1, 712, + -1, 169, -1, 983, -1, -1, 67, -1, -1, 215, + -1, -1, 415, -1, 49, -1, -1, 8, 1150, -1, + 164, -1, -1, 503, -1, 145, -1, 18, -1, -1, + 469, 449, 812, 808, 816, -1, 473, 449, 812, -1, + -1, 449, 469, 812, 809, 816, -1, 449, 473, 812, + -1, 469, 505, 811, -1, -1, 555, 78, 451, -1, + -1, 813, 814, -1, 815, -1, 814, 582, 815, -1, + -1, 466, -1, 402, -1, -1, 529, 817, -1, 609, + -1, 817, 582, 609, -1, -1, 414, 1175, 819, 1016, + 175, 1147, -1, -1, 26, 1175, 821, 1016, 503, 1147, + -1, -1, 57, 1175, 823, 1016, 824, -1, -1, 386, + -1, 156, -1, -1, 406, 839, 1175, 826, 1016, 827, + -1, -1, 828, -1, 829, -1, 829, 828, -1, 386, + -1, 156, -1, 535, -1, -1, 14, 839, 1175, 831, + 1016, 834, -1, -1, 58, 1175, 833, 1016, 834, -1, + -1, 835, -1, 836, -1, 836, 835, -1, 386, -1, + 159, -1, 302, -1, 156, -1, 54, -1, 172, 531, + -1, -1, 351, 839, 1175, 838, 1016, 834, -1, -1, + 339, -1, 260, -1, -1, 405, 1175, 841, 843, -1, + 405, 533, 615, 842, -1, 1153, 503, 1153, -1, 842, + 582, 1153, 503, 1153, -1, 844, -1, 843, 582, 844, + -1, 1144, 503, 1144, -1, 47, 218, 846, 231, 848, + -1, 847, -1, 846, 582, 847, -1, 1144, 853, -1, + 1150, -1, 111, -1, -1, 259, 218, 228, 47, 850, + 851, -1, 852, -1, 851, 582, 852, -1, 1144, 853, + 856, -1, -1, 854, 855, -1, -1, 779, 580, 967, + 581, -1, -1, 215, 249, -1, 858, -1, 434, 860, + -1, 580, 859, 581, 1228, -1, 434, 862, -1, 580, + 859, 581, -1, -1, 862, 861, 1225, -1, -1, -1, + 863, 867, 871, 864, 865, 870, -1, 986, 992, -1, + 1008, -1, 866, -1, 1008, 866, -1, 866, 1008, -1, + 175, 941, 975, 980, 977, 986, 992, 999, -1, 175, + 130, 975, 992, -1, -1, 868, -1, 868, 869, -1, + 869, -1, 475, -1, 204, -1, 125, -1, 464, -1, + 459, -1, 460, -1, 462, -1, 463, -1, 461, -1, + 12, -1, -1, 172, 530, -1, 264, 231, 442, 313, + -1, 871, 582, 872, -1, 872, -1, 574, -1, 873, + 875, 874, 876, -1, -1, -1, 1138, -1, 878, -1, + -1, 18, 1150, -1, 18, 1147, -1, 1150, -1, 1147, + -1, -1, 580, 581, -1, -1, 881, 879, 880, -1, + -1, 880, 894, 881, -1, 881, 560, 881, -1, -1, + 884, 882, 883, -1, -1, 883, 895, 884, -1, 336, + 884, -1, 885, -1, 886, 234, 509, -1, 886, 234, + 896, 509, -1, 886, 234, 158, -1, 886, 234, 896, + 158, -1, 886, 234, 525, -1, 886, 234, 896, 525, + -1, 886, -1, 886, 234, 340, -1, 886, 234, 896, + 340, -1, 886, 146, 887, -1, 886, 898, 887, -1, + 886, 898, 899, 580, 1233, 581, -1, 887, -1, 888, + 231, 580, 1233, 581, -1, 888, 896, 231, 580, 1233, + 581, -1, 888, 231, 580, 878, 581, -1, 888, 231, + 580, 878, 582, 930, 581, -1, 888, 896, 231, 580, + 878, 581, -1, 888, 896, 231, 580, 878, 582, 930, + 581, -1, 888, 569, 888, 16, 887, -1, 888, 896, + 569, 888, 16, 887, -1, 888, 452, 254, 888, -1, + 888, 254, 901, 979, -1, 888, 896, 254, 901, 979, + -1, 888, 399, 888, -1, 888, 896, 399, 888, -1, + 888, -1, 888, 570, 889, -1, 889, -1, 889, 571, + 890, -1, 890, -1, 890, 443, 891, -1, 890, 444, + 891, -1, 891, -1, 891, 573, 892, -1, 891, 572, + 892, -1, 891, 573, 900, 969, -1, 891, 572, 900, + 969, -1, 892, -1, 892, 574, 893, -1, 892, 575, + 893, -1, 892, 576, 893, -1, 892, 126, 893, -1, + 892, 316, 893, -1, 893, -1, 893, 577, 901, -1, + 901, -1, 358, -1, 354, -1, 16, -1, 15, -1, + 336, -1, 335, -1, 583, -1, 335, -1, 145, -1, + 184, -1, 198, -1, 246, -1, 274, -1, 331, -1, + 12, -1, 17, -1, 227, 878, -1, 1140, -1, 901, + 64, 1152, -1, 1135, -1, 1133, -1, 920, -1, 910, + -1, 901, 357, 901, -1, 573, 901, -1, 572, 901, + -1, 578, 901, -1, 897, 901, -1, 580, 1233, 581, + -1, 580, 878, 581, -1, 580, 878, 582, 930, 581, + -1, 428, 580, 878, 582, 930, 581, -1, 152, 580, + 1233, 581, -1, 584, 1150, 878, 585, -1, 292, 933, + 9, 580, 888, 904, 581, -1, 20, 580, 878, 581, + -1, 32, 901, -1, 51, 580, 878, 18, 928, 581, + -1, 568, 937, 939, 938, 141, -1, 83, 580, 878, + 582, 928, 581, -1, 83, 580, 878, 537, 756, 581, + -1, 111, 580, 1140, 581, -1, 542, 580, 1141, 581, + -1, 180, 580, 581, -1, 181, 580, 878, 581, -1, + 182, 580, 878, 582, 878, 581, -1, 183, 580, 878, + 582, 878, 582, 878, 581, -1, 7, 580, 878, 582, + 878, 581, -1, 7, 580, 878, 582, 227, 878, 969, + 581, -1, 408, 580, 878, 582, 878, 581, -1, 22, + 580, 878, 581, -1, 22, 580, 878, 582, 878, 581, + -1, 56, 580, 930, 581, -1, 56, 580, 930, 537, + 756, 581, -1, 55, 580, 878, 581, -1, 62, 580, + 930, 581, -1, 65, 580, 878, 581, -1, 73, 580, + 930, 581, -1, 74, 580, 878, 582, 930, 581, -1, + 84, 580, 878, 582, 878, 582, 878, 581, -1, 90, + 877, -1, 93, 877, -1, 93, 580, 878, 581, -1, + 91, 877, -1, 98, 580, 878, 582, 900, 969, 581, + -1, 99, 580, 878, 582, 900, 969, 581, -1, 94, + 580, 581, -1, 100, 580, 878, 581, -1, 105, 580, + 878, 581, -1, 136, 580, 878, 582, 930, 581, -1, + 275, 580, 878, 582, 930, 581, -1, 140, 580, 878, + 581, -1, 140, 580, 878, 582, 878, 581, -1, 110, + 580, 878, 582, 1148, 581, -1, 139, 580, 878, 582, + 1148, 581, -1, 118, 580, 878, 581, -1, 118, 580, + 878, 582, 878, 581, -1, 119, 580, 878, 581, -1, + 119, 580, 878, 582, 878, 581, -1, 155, 580, 878, + 582, 878, 582, 878, 581, -1, 155, 580, 878, 582, + 878, 582, 878, 582, 878, 581, -1, 155, 580, 878, + 582, 878, 582, 878, 582, 878, 582, 878, 581, -1, + 171, 580, 878, 582, 341, 581, -1, 176, 580, 878, + 581, -1, 176, 580, 878, 582, 878, 581, -1, 162, + 580, 878, 582, 930, 581, -1, 903, -1, 190, 580, + 971, 582, 878, 581, -1, 209, 580, 878, 581, -1, + 214, 580, 878, 582, 878, 582, 878, 581, -1, 225, + 580, 878, 582, 878, 582, 878, 582, 878, 581, -1, + 900, 969, 573, 878, -1, 900, -1, 244, 580, 581, + -1, 244, 580, 878, 581, -1, 251, 580, 878, 582, + 878, 581, -1, 261, 580, 878, 582, 878, 581, -1, + 261, 580, 878, 582, 878, 582, 878, 581, -1, 194, + 580, 878, 582, 930, 581, -1, 248, 580, 878, 582, + 930, 581, -1, 267, 580, 878, 581, -1, 267, 580, + 878, 582, 878, 581, -1, 282, 580, 878, 582, 878, + 581, -1, 282, 580, 878, 582, 878, 582, 878, 581, + -1, 305, 580, 878, 581, -1, 309, 580, 878, 581, + -1, 316, 580, 878, 582, 878, 581, -1, 317, 580, + 878, 581, -1, 337, 877, -1, 337, 580, 878, 581, + -1, 365, 580, 878, 581, -1, 346, 580, 878, 581, + -1, 372, 580, 888, 231, 878, 581, -1, 384, 580, + 878, 581, -1, 392, 580, 878, 581, -1, 392, 580, + 581, -1, 409, 580, 878, 582, 878, 582, 878, 581, + -1, 420, 580, 878, 582, 878, 581, -1, 423, 580, + 878, 581, -1, 423, 580, 878, 582, 878, 581, -1, + 426, 580, 581, -1, 477, 580, 878, 582, 878, 581, + -1, 477, 580, 878, 582, 227, 878, 969, 581, -1, + 432, 580, 878, 581, -1, 479, 580, 878, 582, 878, + 582, 878, 581, -1, 479, 580, 878, 582, 878, 581, + -1, 479, 580, 878, 175, 878, 172, 878, 581, -1, + 479, 580, 878, 175, 878, 581, -1, 480, 580, 878, + 582, 878, 582, 878, 581, -1, 486, 877, -1, 486, + 580, 878, 581, -1, 499, 580, 878, 581, -1, 496, + 580, 878, 581, -1, 496, 580, 878, 582, 878, 581, + -1, 497, 580, 970, 582, 878, 582, 878, 581, -1, + 498, 580, 970, 582, 878, 582, 878, 581, -1, 508, + 580, 878, 581, -1, 508, 580, 247, 878, 175, 878, + 581, -1, 508, 580, 504, 878, 175, 878, 581, -1, + 508, 580, 43, 878, 175, 878, 581, -1, 508, 580, + 247, 175, 878, 581, -1, 508, 580, 504, 175, 878, + 581, -1, 508, 580, 43, 175, 878, 581, -1, 508, + 580, 878, 175, 878, 581, -1, 510, 580, 878, 582, + 878, 581, -1, 1150, 587, 1150, 580, 929, 581, -1, + -1, 1146, 580, 902, 905, 581, -1, 523, 580, 1131, + 582, 341, 582, 341, 582, 930, 581, -1, 524, 580, + 581, -1, 524, 580, 878, 581, -1, 533, 580, 581, + -1, 538, 877, -1, 540, 877, -1, 539, 877, -1, + 551, 580, 878, 581, -1, 551, 580, 878, 582, 878, + 581, -1, 563, 580, 878, 581, -1, 561, 580, 878, + 581, -1, 561, 580, 878, 582, 878, 581, -1, 29, + 580, 997, 582, 878, 581, -1, 157, 580, 969, 175, + 878, 581, -1, 80, 580, 878, 582, 878, 581, -1, + 188, 580, 878, 581, -1, 188, 580, 878, 582, 878, + 581, -1, 189, 580, 878, 581, -1, 189, 580, 878, + 582, 878, 581, -1, 186, 580, 930, 581, -1, 258, + 580, 930, 581, -1, 320, 580, 930, 581, -1, 312, + 580, 878, 581, -1, 312, 580, 878, 582, 878, 581, + -1, 318, 580, 878, 581, -1, 318, 580, 878, 582, + 878, 581, -1, 319, 580, 878, 581, -1, 319, 580, + 878, 582, 878, 581, -1, 321, 580, 930, 581, -1, + 322, 580, 930, 581, -1, 369, 580, 878, 582, 878, + 581, -1, 368, 580, 878, 581, -1, 368, 580, 878, + 582, 878, 581, -1, 370, 580, 878, 581, -1, 370, + 580, 878, 582, 878, 581, -1, 371, 580, 930, 581, + -1, 185, 580, 878, 581, -1, 185, 580, 878, 582, + 878, 581, -1, 256, 580, 878, 581, -1, 256, 580, + 878, 582, 878, 581, -1, -1, 555, 385, 154, -1, + 231, 41, 313, -1, -1, 906, -1, -1, 907, 908, + -1, 909, -1, 908, 582, 909, -1, 873, 878, 874, + 876, -1, 25, 580, 926, 581, -1, 25, 580, 125, + 926, 581, -1, 35, 580, 926, 581, -1, 36, 580, + 926, 581, -1, 38, 580, 926, 581, -1, 85, 580, + 974, 574, 581, -1, 85, 580, 926, 581, -1, -1, + -1, 85, 580, 125, 911, 930, 912, 581, -1, 197, + 580, 1131, 582, 341, 582, 341, 582, 926, 581, -1, + -1, -1, 356, 580, 913, 930, 914, 581, -1, -1, + -1, 527, 580, 915, 930, 916, 581, -1, -1, -1, + 200, 580, 917, 930, 918, 581, -1, 311, 580, 926, + 581, -1, 311, 580, 125, 926, 581, -1, 296, 580, + 926, 581, -1, 296, 580, 125, 926, 581, -1, 471, + 580, 926, 581, -1, 547, 580, 926, 581, -1, 472, + 580, 926, 581, -1, 541, 580, 926, 581, -1, 481, + 580, 926, 581, -1, 481, 580, 125, 926, 581, -1, + -1, 196, 580, 923, 919, 930, 925, 924, 581, -1, + -1, 586, 921, 922, -1, 1152, 441, 878, -1, 1152, + -1, 586, 1165, 1152, 787, -1, -1, 125, -1, -1, + 436, 1132, -1, -1, 987, -1, -1, 974, 927, 878, + -1, 32, 749, -1, 56, 749, 764, -1, 329, 749, + -1, 447, -1, 447, 229, -1, 528, -1, 528, 229, + -1, 100, -1, 499, -1, 97, -1, 108, 744, -1, + -1, 930, -1, -1, 931, 932, -1, 878, -1, 932, + 582, 878, -1, 934, -1, 580, 934, 581, -1, -1, + 935, 936, -1, 1140, -1, 936, 582, 1140, -1, -1, + 878, -1, -1, 566, 878, -1, 552, 878, 567, 878, + -1, 939, 552, 878, 567, 878, -1, 952, -1, 943, + -1, 942, -1, 940, -1, 942, 582, 940, -1, 940, + 951, 940, -1, 940, 475, 952, -1, -1, 940, 951, + 940, 347, 944, 878, -1, -1, 940, 475, 952, 347, + 945, 878, -1, -1, 940, 951, 940, 537, 946, 580, + 968, 581, -1, 940, 327, 238, 952, -1, -1, 940, + 251, 962, 238, 940, 347, 947, 878, -1, -1, 940, + 251, 962, 238, 952, 948, 537, 580, 968, 581, -1, + 940, 327, 251, 962, 238, 952, -1, -1, 940, 420, + 962, 238, 940, 347, 949, 878, -1, -1, 940, 420, + 962, 238, 952, 950, 537, 580, 968, 581, -1, 940, + 327, 420, 962, 238, 952, -1, 238, -1, 221, 238, + -1, 88, 238, -1, -1, 953, 1144, 973, 963, -1, + -1, 584, 1150, 940, 251, 359, 238, 940, 347, 954, + 878, 585, -1, 961, 960, 957, -1, 580, 960, 955, + 1228, 581, 973, -1, -1, 960, 956, 942, -1, -1, + -1, 958, 867, 871, 959, 721, -1, -1, 434, -1, + -1, 359, -1, -1, 536, 964, -1, 169, 964, -1, + 215, 964, -1, -1, 778, 965, 580, 966, 581, -1, + -1, 967, -1, 967, 582, 1150, -1, 1150, -1, 376, + -1, 1150, -1, 968, 582, 1150, -1, 970, -1, 101, + -1, 102, -1, 103, -1, 104, -1, 206, -1, 207, + -1, 208, -1, 305, -1, 307, -1, 308, -1, 431, + -1, 562, -1, 105, -1, 551, -1, 209, -1, 174, + -1, 309, -1, 317, -1, 384, -1, 432, -1, 563, + -1, 100, -1, 499, -1, 97, -1, 496, -1, -1, + 18, -1, 145, -1, -1, 972, 1150, -1, -1, 12, + -1, -1, -1, 553, 976, 878, -1, -1, -1, 201, + 978, 878, -1, 149, 901, -1, -1, -1, 195, 45, + 981, 982, -1, 981, 582, 1139, 990, -1, 1139, 990, + -1, -1, 555, 89, -1, 555, 422, -1, 355, 45, + 984, -1, 984, 582, 985, -1, 985, -1, 1141, 990, + -1, -1, 987, -1, -1, 355, 45, 988, 989, -1, + 989, 582, 1139, 990, -1, 1139, 990, -1, -1, 19, + -1, 116, -1, -1, 993, -1, -1, 993, -1, 255, + 994, -1, 995, -1, 995, 582, 995, -1, 995, 344, + 995, -1, 1133, -1, 515, -1, 270, -1, 341, -1, + -1, 255, 995, -1, 341, -1, 203, -1, 270, -1, + 515, -1, 107, -1, 166, -1, 341, -1, 515, -1, + 270, -1, 107, -1, 166, -1, -1, -1, 378, 1150, + 1000, 580, 1001, 581, -1, -1, 1002, -1, 1002, 582, + 1003, -1, 1003, -1, 873, 878, -1, -1, 1005, 1006, + -1, 1006, 582, 1007, -1, 1007, -1, 586, 1152, -1, + 1152, -1, -1, 228, 1009, 1010, -1, -1, 360, 1149, + 1011, 1120, 1123, -1, 131, 1149, -1, 1004, -1, -1, + 128, 1013, 930, -1, 129, 1019, 1175, 1018, 1016, 804, + -1, -1, 129, 218, 1150, 347, 1144, 1015, -1, 129, + 94, 1018, 1150, -1, 129, 179, 1018, 616, -1, 129, + 378, 1018, 616, -1, 129, 533, 615, 1205, -1, 129, + 549, 1018, 1016, 804, -1, 129, 506, 1018, 616, -1, + 1017, -1, 1016, 582, 1017, -1, 1144, -1, -1, 214, + 152, -1, -1, 491, -1, -1, -1, 225, 1021, 1026, + 803, 1028, 1022, 1030, 1046, -1, -1, -1, 409, 1024, + 1027, 1028, 1025, 1030, -1, -1, 273, -1, 113, -1, + 204, -1, 1055, -1, 113, -1, 228, 1029, -1, 1029, + -1, 1017, -1, 1033, -1, 580, 581, 1033, -1, 580, + 1032, 581, 1033, -1, -1, 440, 1031, 1037, -1, 1032, + 582, 1137, -1, 1137, -1, 542, 1036, -1, 543, 1036, + -1, -1, 700, 1034, 1225, -1, -1, 580, 700, 581, + 1035, 1228, -1, 1036, 582, 1041, -1, 1041, -1, 1037, + 582, 1038, -1, 1038, -1, 1141, 1039, 1045, -1, 145, + -1, 441, -1, -1, 1039, -1, -1, 580, 1042, 1043, + 581, -1, -1, 1044, -1, 1044, 582, 1045, -1, 1045, + -1, 878, -1, 111, -1, -1, -1, 347, 132, 1047, + 240, 530, 1053, -1, -1, -1, 530, 1049, 1055, 803, + 941, 440, 1051, 1050, 975, 986, 996, -1, 1051, 582, + 1052, -1, 1052, -1, 1141, 1039, 1045, -1, 1053, 582, + 1054, -1, 1054, -1, 1141, 1039, 1045, -1, -1, 273, + -1, -1, 115, 1057, 1065, 1058, -1, -1, 175, 1144, + 1059, 975, 986, 996, -1, -1, 1062, 1060, 175, 941, + 975, -1, -1, 175, 1062, 1061, 537, 941, 975, -1, + 1063, -1, 1062, 582, 1063, -1, 1150, 1064, 973, -1, + 1150, 587, 1150, 1064, 973, -1, -1, 587, 574, -1, + -1, 1066, 1065, -1, 386, -1, 273, -1, 215, -1, + 510, 1068, 1017, -1, -1, 489, -1, -1, 1070, -1, + 1071, -1, 1070, 582, 1071, -1, 86, -1, 303, -1, + 40, 232, -1, 81, 485, -1, 363, 160, -1, 233, + -1, 484, -1, 453, -1, 12, -1, -1, 172, 385, + 341, -1, -1, 445, 1074, 1075, -1, 95, 1086, -1, + 1082, 487, 1081, 1086, -1, 1082, 507, 1081, 1086, -1, + 489, 470, 1081, 1086, -1, 350, 487, 1081, 1086, -1, + -1, 143, 717, 1076, 1078, -1, 1082, 66, 1083, 1144, + 1081, 1086, -1, 332, 290, 172, 449, 555, 278, 145, + 1147, 16, 279, 145, 998, 16, 283, 145, 997, -1, + 1079, 266, -1, 449, 205, -1, -1, 33, 150, 1084, + 1085, 1077, 991, -1, 780, 1083, 1144, 1081, 975, -1, + 67, 511, -1, 489, 511, -1, 1080, 142, -1, 377, + -1, 85, 580, 574, 581, 550, -1, 85, 580, 574, + 581, 147, -1, 550, 991, -1, 147, 991, -1, 382, + -1, 381, 1069, 1072, 991, -1, 1164, 470, 1086, -1, + 222, 470, -1, 323, 470, -1, 1082, 380, -1, 1164, + 546, 1086, -1, 755, 1086, -1, 65, 1086, -1, 30, + 266, -1, 266, -1, 193, -1, 193, 172, 1153, -1, + 87, 94, 710, 1150, -1, 87, 489, 1144, -1, 87, + 549, 1144, -1, 290, 470, -1, 449, 470, -1, 534, + 1086, -1, 490, 1086, -1, 219, 1086, -1, 87, 378, + 616, -1, 87, 179, 616, -1, 378, 470, 1086, -1, + 179, 470, 1086, -1, 378, 63, 616, -1, 179, 63, + 616, -1, 470, -1, 266, -1, 290, -1, 32, -1, + -1, 474, -1, -1, 1083, 1150, -1, -1, 177, -1, + 175, -1, 231, -1, -1, 231, 1147, -1, -1, 175, + 998, -1, -1, 254, 1147, -1, 553, 878, -1, -1, + 1090, 1144, 1088, 1092, -1, -1, 1090, 1091, 1089, 857, + -1, 116, -1, 117, -1, -1, 156, -1, -1, 1132, + -1, 1150, -1, -1, 168, 839, 1094, 1095, -1, 1095, + 582, 1096, -1, 1096, -1, -1, 1175, 1097, 1098, -1, + 487, 555, 394, 264, -1, 385, 47, -1, 205, -1, + 377, -1, 266, -1, 470, -1, 449, -1, 290, -1, + 120, -1, 413, -1, 490, -1, 219, -1, -1, 1016, + -1, -1, 412, 1100, 1101, -1, 1101, 582, 1102, -1, + 1102, -1, 449, -1, 290, -1, 385, 47, -1, -1, + 383, 1104, 1105, -1, 1079, 266, 1106, -1, 503, 1147, + -1, 27, 878, -1, -1, 241, 1108, 1109, 878, -1, + -1, 77, -1, 385, -1, 536, 1150, -1, -1, 259, + 96, 1112, 1113, -1, 259, 489, 1144, 175, 290, -1, + -1, -1, -1, 1118, 1117, 220, 1149, 1114, 1119, 228, + 1115, 489, 1144, 1116, 1120, 1123, 1126, 1127, 1130, -1, + 175, 290, -1, -1, 260, -1, -1, 75, -1, 273, + -1, -1, 409, -1, 215, -1, -1, 66, 1121, -1, + 1121, 1122, -1, 1122, -1, 493, 45, 1132, -1, 353, + 138, 45, 1132, -1, 138, 45, 1132, -1, 148, 45, + 1132, -1, -1, 257, 1124, -1, 1124, 1125, -1, 1125, + -1, 493, 45, 1132, -1, 468, 45, 1132, -1, -1, + 215, 341, 257, -1, -1, 580, 1128, 581, -1, 580, + 581, -1, 1128, 582, 1129, -1, 1129, -1, 1141, -1, + 586, 1152, -1, -1, 440, 1053, -1, 1148, -1, 328, + -1, 518, 494, -1, 1131, 1148, -1, 1148, -1, 203, + -1, 34, -1, 366, -1, 1135, -1, 573, 1136, -1, + 572, 1136, -1, 1131, -1, 1136, -1, 340, -1, 158, + -1, 509, -1, 203, -1, 34, -1, 518, 203, -1, + 518, 34, -1, 100, 1131, -1, 499, 1131, -1, 496, + 1131, -1, 341, -1, 270, -1, 515, -1, 107, -1, + 166, -1, 1141, -1, 1138, -1, 1150, 587, 574, -1, + 1150, 587, 1150, 587, 574, -1, 878, -1, 1150, -1, + 1142, -1, 1150, -1, 1142, -1, 1150, 587, 1150, -1, + 587, 1150, 587, 1150, -1, 1150, 587, 1150, 587, 1150, + -1, 1150, -1, 1150, 587, 1150, 587, 1150, -1, 1150, + 587, 1150, -1, 587, 1150, -1, 1150, -1, 1150, 587, + 1150, -1, 587, 1150, -1, 1150, -1, 210, -1, 212, + -1, 494, -1, 494, -1, 494, -1, 1146, -1, 1154, + -1, 1146, -1, 1155, -1, 1150, -1, 1147, -1, 253, + -1, 1152, -1, 1152, 586, 1152, -1, 91, 877, -1, + 1155, -1, 20, -1, 26, -1, 28, -1, 46, -1, + 47, -1, 55, -1, 57, -1, 61, -1, 68, -1, + 70, -1, 80, -1, 106, -1, 128, -1, 141, -1, + 151, -1, 168, -1, 199, -1, 202, -1, 243, -1, + 338, -1, 350, -1, 356, -1, 374, -1, 406, -1, + 412, -1, 414, -1, 421, -1, 430, -1, 433, -1, + 447, -1, 449, -1, 469, -1, 473, -1, 510, -1, + 520, -1, 527, -1, 559, -1, 531, -1, 5, -1, + 7, -1, 8, -1, 9, -1, 10, -1, 11, -1, + 17, -1, 23, -1, 24, -1, 25, -1, 30, -1, + 33, -1, 37, -1, 40, -1, 42, -1, 41, -1, + 44, -1, 50, -1, 52, -1, 54, -1, 59, -1, + 60, -1, 63, -1, 65, -1, 66, -1, 69, -1, + 71, -1, 72, -1, 75, -1, 78, -1, 81, -1, + 86, -1, 89, -1, 96, -1, 97, -1, 100, -1, + 105, -1, 112, -1, 114, -1, 120, -1, 122, -1, + 124, -1, 131, -1, 132, -1, 133, -1, 144, -1, + 143, -1, 142, -1, 147, -1, 149, -1, 150, -1, + 154, -1, 156, -1, 159, -1, 160, -1, 173, -1, + 123, -1, 137, -1, 177, -1, 163, -1, 164, -1, + 165, -1, 174, -1, 187, -1, 186, -1, 190, -1, + 193, -1, 191, -1, 200, -1, 205, -1, 209, -1, + 211, -1, 230, -1, 216, -1, 217, -1, 235, -1, + 236, -1, 222, -1, 226, -1, 232, -1, 233, -1, + 402, -1, 245, -1, 249, -1, 252, -1, 258, -1, + 260, -1, 263, -1, 266, -1, 295, -1, 290, -1, + 277, -1, 281, -1, 278, -1, 279, -1, 291, -1, + 280, -1, 283, -1, 276, -1, 289, -1, 285, -1, + 284, -1, 286, -1, 287, -1, 288, -1, 293, -1, + 294, -1, 297, -1, 298, -1, 302, -1, 303, -1, + 304, -1, 305, -1, 306, -1, 309, -1, 310, -1, + 315, -1, 313, -1, 317, -1, 320, -1, 321, -1, + 322, -1, 323, -1, 325, -1, 324, -1, 326, -1, + 329, -1, 330, -1, 333, -1, 332, -1, 334, -1, + 343, -1, 344, -1, 346, -1, 348, -1, 349, -1, + 362, -1, 363, -1, 364, -1, 365, -1, 367, -1, + 369, -1, 371, -1, 375, -1, 377, -1, 379, -1, + 380, -1, 381, -1, 382, -1, 384, -1, 385, -1, + 386, -1, 387, -1, 388, -1, 389, -1, 390, -1, + 391, -1, 396, -1, 397, -1, 400, -1, 401, -1, + 404, -1, 407, -1, 410, -1, 413, -1, 416, -1, + 417, -1, 422, -1, 424, -1, 425, -1, 427, -1, + 428, -1, 429, -1, 432, -1, 438, -1, 437, -1, + 439, -1, 448, -1, 442, -1, 446, -1, 451, -1, + 452, -1, 453, -1, 461, -1, 460, -1, 463, -1, + 466, -1, 470, -1, 474, -1, 476, -1, 477, -1, + 478, -1, 482, -1, 483, -1, 484, -1, 485, -1, + 487, -1, 488, -1, 491, -1, 492, -1, 495, -1, + 505, -1, 507, -1, 496, -1, 497, -1, 498, -1, + 499, -1, 511, -1, 512, -1, 513, -1, 179, -1, + 516, -1, 517, -1, 525, -1, 529, -1, 533, -1, + 535, -1, 546, -1, 549, -1, 543, -1, 550, -1, + 551, -1, 556, -1, 558, -1, 563, -1, -1, 440, + 1158, 1157, 1159, -1, -1, 352, -1, 1160, -1, 1159, + 582, 1160, -1, -1, 1161, 1166, -1, 1163, -1, 191, + -1, 260, -1, 439, -1, -1, 348, -1, -1, 191, + -1, 260, -1, 439, -1, -1, 191, 587, -1, 260, + 587, -1, 439, 587, -1, 1167, -1, 1163, 1168, -1, + 1162, 1169, 1039, 1172, -1, 1162, 505, 235, 252, 1170, + -1, 586, 1152, 1039, 878, -1, 586, 586, 1165, 1169, + 1039, 1172, -1, 755, 759, -1, 324, 1039, 878, -1, + 324, 757, 761, -1, 365, 1039, 1171, -1, 365, 172, + 1153, 1039, 1171, -1, 1150, -1, 1150, 587, 1150, -1, + 111, 587, 1150, -1, 394, 516, -1, 394, 69, -1, + 407, 394, -1, 437, -1, 494, -1, 365, 580, 494, + 581, -1, 346, 580, 494, 581, -1, 878, -1, 111, + -1, 347, -1, 12, -1, 32, -1, -1, 264, 1175, + 1174, 1176, -1, 489, -1, 487, -1, 1177, -1, 1176, + 582, 1177, -1, 1144, 973, 1178, -1, 394, -1, 557, + -1, 273, 557, -1, 394, 260, -1, -1, 526, 1180, + 1175, -1, 199, 1144, 350, 973, -1, 199, 1145, 61, + -1, -1, 199, 1145, 394, 1182, 1183, 975, 992, -1, + 1184, -1, 1150, 1185, -1, 164, -1, 333, -1, 164, + -1, 333, -1, 375, -1, 245, -1, -1, 1187, 1186, + 580, 1044, 581, -1, 145, -1, 184, -1, 246, -1, + 198, -1, 274, -1, 419, 615, 1189, -1, 1193, 347, + 1192, 1204, 175, 1206, -1, 1193, 347, 179, 1204, 175, + 1206, -1, 1193, 347, 378, 1204, 175, 1206, -1, 12, + 1194, 582, 192, 352, 175, 1206, -1, 192, 615, 1191, + -1, 1193, 347, 1192, 1204, 503, 1206, 1211, 1212, -1, + 1193, 347, 179, 1204, 503, 1206, 1211, 1212, -1, 1193, + 347, 378, 1204, 503, 1206, 1211, 1212, -1, -1, 489, + -1, 1195, -1, 12, 1194, -1, -1, 377, -1, 1196, + -1, 1195, 582, 1196, -1, -1, 434, 1197, 1208, -1, + -1, 225, 1198, 1208, -1, -1, 530, 1199, 1208, -1, + -1, 398, 1200, 1208, -1, 115, -1, 532, -1, 218, + -1, 13, -1, 87, -1, 129, -1, 151, -1, 404, + -1, 446, -1, 379, -1, 163, -1, 192, 352, -1, + 445, 95, -1, 482, -1, 87, 491, 487, -1, 264, + 487, -1, 410, 449, -1, 410, 60, -1, 87, 549, + -1, 445, 549, -1, 87, 424, -1, 13, 424, -1, + 87, 533, -1, -1, 16, -1, 1203, 1201, 1202, -1, + 1203, -1, 478, 494, -1, 236, 494, -1, 59, 494, + -1, 574, -1, 1150, 587, 574, -1, 574, 587, 574, + -1, 1144, -1, 1153, -1, 1205, 582, 1153, -1, 1207, + -1, 1206, 582, 1207, -1, 1153, 211, 45, 494, -1, + 1153, 211, 45, 365, 494, -1, 1153, -1, -1, 580, + 1209, 581, -1, 1209, 582, 1210, -1, 1210, -1, 1150, + -1, -1, 411, 1202, -1, 411, 467, -1, 411, 558, + -1, 411, 334, -1, -1, 555, 1213, -1, 1213, 1214, + -1, 1214, -1, 192, 352, -1, 294, 997, -1, 297, + 997, -1, 293, 997, -1, 298, 997, -1, -1, 28, + 1216, 1217, -1, -1, 556, -1, -1, 16, 338, 52, + -1, 16, 52, -1, -1, 403, -1, 338, 403, -1, + -1, 430, -1, 70, 1217, 1218, 1219, -1, 421, 1217, + 1218, 1219, -1, 421, 1217, 503, 1220, 1150, -1, 430, + 1150, -1, 403, 430, 1150, -1, -1, 1226, -1, -1, + 521, 1232, 1227, 858, -1, -1, 1226, -1, 1229, -1, + -1, 1230, 1231, -1, 987, 991, -1, 993, -1, -1, + 125, -1, 12, -1, 434, 1236, 1235, 1237, -1, -1, + 580, 1236, 1233, 581, 1234, 1225, 1237, -1, 860, -1, + -1, -1, 1240, 1239, -1, 1241, 1240, 1246, -1, 1246, + -1, 1254, -1, 1256, -1, -1, 112, 145, 1153, -1, + 1242, -1, 1242, 1243, -1, 1243, -1, 358, 409, -1, + 11, 145, 517, -1, 11, 145, 304, -1, 11, 145, + 492, -1, -1, 1243, -1, -1, 465, 433, 112, -1, + 465, 433, 230, -1, -1, 1245, 549, 1144, 1247, 1248, + 18, 1250, 1253, -1, -1, 580, 1249, 581, -1, 1150, + -1, 1249, 582, 1150, -1, -1, 1251, 1252, -1, 434, + 873, 860, -1, 580, 873, 859, 581, 1228, -1, -1, + 555, 58, 352, -1, 555, 50, 58, 352, -1, 555, + 260, 58, 352, -1, -1, 506, 873, 616, 692, 693, + 347, 873, 1144, 172, 873, 134, 428, 1255, 656, -1, + -1, 722, 873, 179, 616, 1257, 617, -1, -1, -1, + -1, -1, 378, 873, 616, 1258, 580, 1259, 637, 581, + 1260, 624, 1261, 656, -1, 559, 1264, 1263, 1265, -1, + 559, 141, 1263, 1267, -1, 559, 374, 1263, -1, 559, + 70, 1263, 1266, -1, 559, 421, 1263, -1, 559, 396, + -1, 1132, -1, 1132, 582, 1132, -1, 1132, 582, 1132, + 582, 997, -1, 28, -1, 469, -1, -1, 238, -1, + 416, -1, -1, 349, 367, -1, -1, -1, 483, 1268, + 1269, -1, -1, 172, 306, -1, -1, 265, 290, 1271, + 1272, -1, -1, 278, 145, 494, 582, 283, 145, 997, + 1273, 1275, -1, -1, 278, 145, 494, 582, 283, 145, + 997, 582, 218, 145, 494, 1274, 1275, -1, 192, 439, + -1, 419, 439, -1, 419, 439, 555, 241, -1, -1, + 555, 33, -1 }; /* YYRLINE[YYN] -- source line where rule number YYN was defined. */ static const unsigned short int yyrline[] = { - 0, 1074, 1074, 1088, 1091, 1092, 1097, 1098, 1099, 1100, - 1101, 1102, 1103, 1104, 1105, 1106, 1107, 1108, 1109, 1110, - 1111, 1112, 1113, 1114, 1115, 1116, 1117, 1118, 1119, 1120, - 1121, 1122, 1123, 1124, 1125, 1126, 1127, 1128, 1129, 1130, - 1131, 1132, 1133, 1134, 1135, 1136, 1137, 1138, 1139, 1140, - 1141, 1142, 1143, 1147, 1161, 1162, 1167, 1181, 1188, 1198, - 1197, 1213, 1215, 1219, 1220, 1223, 1236, 1235, 1254, 1253, - 1264, 1265, 1268, 1273, 1278, 1283, 1288, 1292, 1297, 1301, - 1305, 1309, 1313, 1318, 1322, 1326, 1342, 1346, 1358, 1357, - 1380, 1379, 1400, 1399, 1412, 1411, 1419, 1427, 1441, 1456, - 1474, 1494, 1531, 1537, 1545, 1557, 1493, 1586, 1587, 1591, - 1592, 1597, 1599, 1601, 1603, 1605, 1607, 1609, 1615, 1616, - 1617, 1621, 1625, 1633, 1632, 1645, 1647, 1650, 1652, 1656, - 1660, 1667, 1669, 1673, 1674, 1679, 1698, 1724, 1726, 1730, - 1731, 1735, 1761, 1762, 1763, 1764, 1768, 1769, 1773, 1774, - 1779, 1782, 1809, 1808, 1864, 1879, 1878, 1918, 1942, 1942, - 1973, 1974, 1979, 2000, 2024, 2030, 2045, 2046, 2050, 2054, - 2063, 2068, 2073, 2081, 2096, 2114, 2115, 2119, 2119, 2165, - 2164, 2188, 2187, 2191, 2192, 2194, 2194, 2205, 2234, 2262, - 2278, 2277, 2294, 2311, 2313, 2314, 2318, 2339, 2362, 2364, - 2378, 2362, 2396, 2398, 2399, 2403, 2404, 2409, 2415, 2408, - 2434, 2433, 2449, 2450, 2454, 2455, 2460, 2464, 2459, 2481, - 2485, 2480, 2500, 2508, 2513, 2512, 2550, 2551, 2556, 2555, - 2582, 2593, 2595, 2592, 2619, 2618, 2636, 2638, 2643, 2645, - 2647, 2652, 2653, 2654, 2666, 2681, 2682, 2682, 2686, 2688, - 2687, 2690, 2689, 2695, 2711, 2694, 2725, 2726, 2729, 2730, - 2733, 2734, 2737, 2738, 2741, 2742, 2745, 2746, 2749, 2752, - 2753, 2755, 2757, 2760, 2761, 2764, 2765, 2766, 2769, 2770, - 2771, 2772, 2773, 2774, 2775, 2776, 2777, 2792, 2798, 2799, - 2800, 2801, 2806, 2811, 2816, 2831, 2832, 2833, 2834, 2835, - 2836, 2840, 2857, 2873, 2883, 2884, 2885, 2886, 2887, 2888, - 2891, 2892, 2893, 2896, 2897, 2898, 2901, 2902, 2905, 2906, - 2909, 2910, 2911, 2912, 2915, 2916, 2920, 2921, 2925, 2926, - 2933, 2941, 2949, 2966, 2970, 2976, 2978, 2982, 2986, 2987, - 2991, 2996, 2995, 3017, 3018, 3019, 3020, 3022, 3024, 3026, - 3028, 3030, 3032, 3035, 3038, 3041, 3044, 3046, 3049, 3052, - 3053, 3054, 3055, 3068, 3069, 3071, 3073, 3085, 3087, 3089, - 3091, 3092, 3093, 3094, 3095, 3096, 3098, 3100, 3102, 3102, - 3104, 3104, 3106, 3107, 3116, 3117, 3118, 3121, 3122, 3123, - 3124, 3125, 3129, 3133, 3134, 3138, 3139, 3143, 3144, 3145, - 3146, 3147, 3151, 3152, 3153, 3154, 3155, 3158, 3160, 3161, - 3165, 3166, 3167, 3170, 3177, 3178, 3181, 3182, 3185, 3186, - 3187, 3190, 3191, 3194, 3195, 3198, 3199, 3202, 3203, 3206, - 3207, 3208, 3209, 3211, 3212, 3218, 3224, 3230, 3236, 3237, - 3253, 3254, 3258, 3259, 3263, 3271, 3275, 3276, 3280, 3289, - 3293, 3294, 3297, 3307, 3308, 3312, 3313, 3316, 3317, 3320, - 3321, 3322, 3323, 3332, 3333, 3336, 3337, 3340, 3341, 3342, - 3351, 3353, 3355, 3360, 3359, 3371, 3372, 3375, 3376, 3380, - 3381, 3384, 3385, 3388, 3389, 3390, 3391, 3392, 3395, 3396, - 3397, 3398, 3399, 3402, 3403, 3404, 3416, 3417, 3420, 3421, - 3424, 3425, 3429, 3430, 3431, 3434, 3435, 3436, 3437, 3450, - 3451, 3452, 3455, 3456, 3460, 3463, 3464, 3467, 3468, 3479, - 3480, 3483, 3484, 3487, 3488, 3496, 3495, 3519, 3518, 3533, - 3532, 3551, 3550, 3570, 3568, 3583, 3584, 3586, 3587, 3588, - 3589, 3590, 3593, 3601, 3602, 3606, 3611, 3610, 3618, 3627, - 3617, 3639, 3646, 3650, 3657, 3664, 3670, 3676, 3682, 3689, - 3708, 3729, 3734, 3738, 3745, 3746, 3749, 3750, 3754, 3755, - 3756, 3760, 3761, 3762, 3765, 3766, 3767, 3768, 3776, 3775, - 3786, 3794, 3793, 3803, 3813, 3822, 3823, 3830, 3830, 3836, - 3837, 3841, 3842, 3843, 3847, 3848, 3865, 3866, 3871, 3870, - 3881, 3880, 3891, 3890, 3900, 3901, 3902, 3907, 3906, 3918, - 3919, 3922, 3923, 3926, 3927, 3928, 3932, 3931, 3944, 3943, - 3960, 3961, 3964, 3965, 3968, 3969, 3970, 3971, 3972, 3973, - 3977, 3976, 3988, 3989, 3990, 3995, 3994, 4000, 4007, 4012, - 4020, 4021, 4024, 4036, 4045, 4046, 4049, 4062, 4063, 4068, - 4067, 4077, 4078, 4081, 4094, 4094, 4104, 4105, 4114, 4115, - 4124, 4133, 4135, 4138, 4160, 4164, 4163, 4183, 4191, 4183, - 4197, 4198, 4199, 4200, 4201, 4204, 4206, 4213, 4215, 4226, - 4227, 4230, 4231, 4237, 4238, 4239, 4240, 4246, 4252, 4258, - 4268, 4271, 4273, 4279, 4289, 4290, 4291, 4304, 4322, 4325, - 4328, 4329, 4332, 4333, 4334, 4335, 4336, 4340, 4341, 4345, - 4345, 4362, 4364, 4369, 4370, 4370, 4387, 4389, 4394, 4395, - 4398, 4399, 4400, 4401, 4402, 4403, 4404, 4407, 4408, 4409, - 4410, 4412, 4414, 4417, 4419, 4421, 4425, 4431, 4435, 4443, - 4445, 4451, 4454, 4456, 4458, 4459, 4461, 4464, 4465, 4468, - 4469, 4472, 4474, 4476, 4479, 4480, 4481, 4483, 4485, 4488, - 4489, 4490, 4491, 4492, 4493, 4496, 4497, 4499, 4499, 4500, - 4500, 4501, 4501, 4502, 4502, 4504, 4505, 4506, 4507, 4508, - 4509, 4512, 4513, 4517, 4521, 4522, 4529, 4530, 4531, 4532, - 4533, 4535, 4536, 4537, 4538, 4539, 4543, 4544, 4549, 4554, - 4558, 4559, 4563, 4564, 4568, 4578, 4580, 4589, 4591, 4602, - 4604, 4615, 4626, 4637, 4648, 4650, 4652, 4654, 4656, 4658, - 4660, 4662, 4664, 4666, 4668, 4670, 4672, 4678, 4680, 4682, - 4687, 4692, 4694, 4696, 4701, 4703, 4705, 4707, 4709, 4714, - 4715, 4717, 4719, 4721, 4723, 4725, 4727, 4729, 4731, 4733, - 4735, 4737, 4741, 4743, 4753, 4755, 4757, 4759, 4761, 4764, - 4773, 4778, 4783, 4785, 4787, 4789, 4791, 4793, 4795, 4797, - 4802, 4807, 4809, 4811, 4813, 4815, 4817, 4819, 4825, 4827, - 4829, 4831, 4833, 4835, 4837, 4839, 4841, 4842, 4847, 4849, - 4851, 4853, 4855, 4857, 4859, 4861, 4863, 4870, 4877, 4879, - 4881, 4883, 4885, 4887, 4889, 4891, 4893, 4895, 4897, 4899, - 4901, 4903, 4905, 4919, 4918, 5036, 5040, 5045, 5047, 5049, - 5051, 5053, 5055, 5060, 5062, 5064, 5066, 5068, 5073, 5077, - 5079, 5081, 5083, 5085, 5087, 5091, 5094, 5097, 5099, 5101, - 5103, 5105, 5107, 5109, 5112, 5115, 5117, 5119, 5121, 5123, - 5125, 5128, 5130, 5132, 5134, 5139, 5140, 5141, 5145, 5146, - 5150, 5150, 5156, 5160, 5167, 5198, 5200, 5202, 5204, 5206, - 5208, 5210, 5213, 5215, 5212, 5218, 5220, 5227, 5229, 5231, - 5233, 5235, 5237, 5239, 5241, 5243, 5246, 5245, 5260, 5259, - 5274, 5280, 5286, 5299, 5300, 5303, 5304, 5309, 5312, 5324, - 5323, 5339, 5340, 5341, 5342, 5343, 5344, 5345, 5346, 5347, - 5348, 5349, 5353, 5354, 5358, 5358, 5363, 5364, 5367, 5368, - 5371, 5371, 5376, 5377, 5380, 5381, 5384, 5385, 5388, 5394, - 5404, 5405, 5414, 5419, 5420, 5440, 5442, 5446, 5444, 5461, - 5459, 5477, 5475, 5483, 5492, 5490, 5508, 5507, 5518, 5529, - 5527, 5546, 5545, 5557, 5567, 5568, 5569, 5574, 5574, 5593, - 5591, 5610, 5632, 5680, 5679, 5702, 5719, 5702, 5726, 5730, - 5756, 5757, 5760, 5761, 5767, 5774, 5782, 5782, 5788, 5789, - 5793, 5797, 5801, 5807, 5815, 5824, 5825, 5826, 5827, 5828, - 5829, 5830, 5831, 5832, 5833, 5834, 5835, 5836, 5839, 5840, - 5841, 5842, 5843, 5844, 5845, 5846, 5847, 5851, 5852, 5853, - 5854, 5857, 5859, 5860, 5863, 5864, 5867, 5869, 5873, 5875, - 5874, 5888, 5891, 5890, 5905, 5911, 5924, 5926, 5929, 5931, - 5935, 5936, 5949, 5967, 5971, 5972, 5976, 5989, 5991, 5995, - 5994, 6026, 6028, 6032, 6033, 6034, 6039, 6045, 6049, 6050, - 6054, 6058, 6065, 6072, 6081, 6082, 6083, 6084, 6089, 6093, - 6101, 6102, 6103, 6104, 6105, 6106, 6110, 6111, 6112, 6113, - 6114, 6117, 6120, 6119, 6148, 6149, 6152, 6153, 6156, 6169, - 6169, 6179, 6180, 6184, 6196, 6229, 6228, 6241, 6240, 6249, - 6261, 6272, 6271, 6288, 6295, 6295, 6307, 6314, 6326, 6338, - 6342, 6348, 6358, 6359, 6362, 6370, 6371, 6375, 6376, 6384, - 6393, 6383, 6403, 6410, 6402, 6420, 6432, 6433, 6434, 6438, - 6439, 6442, 6443, 6446, 6455, 6456, 6457, 6459, 6458, 6468, - 6469, 6472, 6473, 6474, 6474, 6475, 6475, 6479, 6480, 6483, - 6485, 6488, 6496, 6497, 6501, 6502, 6507, 6506, 6519, 6520, - 6523, 6528, 6536, 6537, 6540, 6542, 6542, 6550, 6559, 6549, - 6581, 6582, 6585, 6592, 6593, 6596, 6605, 6606, 6612, 6611, - 6625, 6624, 6633, 6632, 6640, 6639, 6649, 6650, 6653, 6660, - 6673, 6674, 6678, 6679, 6682, 6683, 6684, 6687, 6697, 6699, - 6701, 6703, 6706, 6707, 6710, 6714, 6718, 6722, 6726, 6730, - 6734, 6738, 6742, 6750, 6753, 6762, 6761, 6775, 6783, 6792, - 6801, 6810, 6820, 6819, 6822, 6832, 6842, 6846, 6851, 6850, - 6855, 6865, 6870, 6876, 6881, 6886, 6888, 6890, 6892, 6894, - 6896, 6898, 6907, 6909, 6911, 6913, 6922, 6930, 6938, 6940, - 6942, 6952, 6959, 6965, 6973, 6981, 6985, 6989, 6996, 7003, - 7013, 7023, 7033, 7046, 7060, 7073, 7074, 7076, 7078, 7081, - 7082, 7085, 7086, 7089, 7090, 7093, 7094, 7097, 7098, 7100, - 7102, 7105, 7117, 7116, 7131, 7130, 7140, 7141, 7144, 7145, - 7149, 7150, 7151, 7159, 7158, 7170, 7171, 7174, 7174, 7175, - 7176, 7177, 7178, 7179, 7180, 7181, 7182, 7183, 7184, 7187, - 7188, 7192, 7191, 7200, 7201, 7204, 7205, 7206, 7210, 7209, - 7218, 7222, 7227, 7239, 7239, 7247, 7248, 7249, 7254, 7264, - 7263, 7276, 7294, 7305, 7310, 7293, 7323, 7332, 7333, 7336, - 7337, 7349, 7353, 7354, 7355, 7357, 7359, 7362, 7363, 7366, - 7371, 7378, 7383, 7389, 7391, 7394, 7395, 7398, 7403, 7409, - 7411, 7418, 7419, 7420, 7423, 7425, 7430, 7431, 7436, 7437, - 7443, 7448, 7450, 7452, 7457, 7459, 7470, 7483, 7503, 7504, - 7505, 7514, 7515, 7516, 7518, 7519, 7520, 7521, 7522, 7536, - 7550, 7551, 7552, 7555, 7556, 7557, 7558, 7566, 7581, 7582, - 7585, 7591, 7602, 7605, 7639, 7643, 7651, 7655, 7723, 7738, - 7762, 7763, 7779, 7789, 7792, 7793, 7794, 7798, 7802, 7803, - 7828, 7840, 7853, 7865, 7866, 7875, 7876, 7885, 7886, 7887, - 7890, 7903, 7916, 7930, 7931, 7932, 7933, 7934, 7935, 7936, - 7937, 7938, 7939, 7940, 7941, 7942, 7943, 7944, 7945, 7946, - 7947, 7948, 7949, 7950, 7951, 7952, 7953, 7954, 7955, 7956, - 7957, 7958, 7959, 7960, 7961, 7962, 7963, 7964, 7965, 7966, - 7976, 7977, 7978, 7979, 7980, 7981, 7982, 7983, 7984, 7985, - 7986, 7987, 7988, 7989, 7990, 7991, 7992, 7993, 7994, 7995, - 7996, 7997, 7998, 7999, 8000, 8001, 8002, 8003, 8004, 8005, - 8006, 8007, 8008, 8009, 8010, 8011, 8012, 8013, 8014, 8015, - 8016, 8017, 8018, 8019, 8020, 8021, 8022, 8023, 8024, 8025, - 8026, 8027, 8028, 8029, 8030, 8031, 8032, 8033, 8034, 8035, - 8036, 8037, 8038, 8039, 8040, 8041, 8042, 8043, 8044, 8045, - 8046, 8047, 8048, 8049, 8050, 8051, 8052, 8053, 8054, 8055, - 8056, 8057, 8058, 8059, 8060, 8061, 8062, 8063, 8064, 8065, - 8066, 8067, 8068, 8069, 8070, 8071, 8072, 8073, 8074, 8075, - 8076, 8077, 8078, 8079, 8080, 8081, 8082, 8083, 8084, 8085, - 8086, 8087, 8088, 8089, 8090, 8091, 8092, 8093, 8094, 8095, - 8096, 8097, 8098, 8099, 8100, 8101, 8102, 8103, 8104, 8105, - 8106, 8107, 8108, 8109, 8110, 8111, 8112, 8113, 8114, 8115, - 8116, 8117, 8118, 8119, 8120, 8121, 8122, 8123, 8124, 8125, - 8126, 8127, 8128, 8129, 8130, 8131, 8132, 8133, 8134, 8135, - 8136, 8137, 8138, 8139, 8140, 8141, 8142, 8143, 8144, 8145, - 8146, 8147, 8148, 8149, 8150, 8151, 8152, 8153, 8154, 8155, - 8156, 8157, 8158, 8159, 8160, 8161, 8162, 8163, 8164, 8165, - 8166, 8167, 8168, 8169, 8170, 8171, 8172, 8173, 8174, 8175, - 8176, 8177, 8178, 8179, 8180, 8181, 8182, 8183, 8184, 8185, - 8186, 8187, 8188, 8189, 8190, 8191, 8192, 8193, 8194, 8195, - 8196, 8197, 8198, 8199, 8200, 8207, 8206, 8220, 8221, 8224, - 8225, 8228, 8228, 8300, 8301, 8302, 8303, 8307, 8308, 8312, - 8313, 8314, 8315, 8319, 8320, 8321, 8322, 8326, 8327, 8330, - 8410, 8423, 8427, 8432, 8439, 8454, 8467, 8488, 8495, 8533, - 8576, 8590, 8591, 8592, 8593, 8597, 8598, 8605, 8614, 8615, - 8616, 8617, 8618, 8626, 8625, 8641, 8642, 8645, 8646, 8649, - 8657, 8658, 8659, 8660, 8665, 8664, 8685, 8697, 8710, 8709, - 8728, 8729, 8733, 8734, 8738, 8739, 8740, 8741, 8743, 8742, - 8753, 8754, 8755, 8756, 8757, 8763, 8768, 8775, 8788, 8800, - 8807, 8812, 8820, 8833, 8847, 8849, 8852, 8853, 8860, 8862, - 8866, 8867, 8870, 8870, 8871, 8871, 8872, 8872, 8873, 8873, - 8874, 8875, 8876, 8877, 8878, 8879, 8880, 8881, 8882, 8883, - 8884, 8885, 8886, 8887, 8888, 8889, 8890, 8891, 8892, 8893, - 8894, 8895, 8896, 8901, 8902, 8906, 8907, 8911, 8921, 8931, - 8944, 8959, 8972, 8985, 8997, 8998, 9007, 9008, 9017, 9042, - 9044, 9051, 9055, 9058, 9059, 9062, 9083, 9084, 9088, 9092, - 9096, 9103, 9104, 9107, 9108, 9112, 9113, 9119, 9125, 9131, - 9141, 9140, 9150, 9151, 9155, 9156, 9157, 9161, 9162, 9163, - 9167, 9168, 9172, 9182, 9189, 9199, 9208, 9222, 9223, 9228, - 9227, 9262, 9263, 9264, 9268, 9268, 9292, 9293, 9297, 9298, - 9299, 9303, 9308, 9307, 9328, 9334, 9354, 9370, 9372, 9377, - 9379, 9381, 9393, 9403, 9416, 9418, 9420, 9425, 9430, 9432, - 9434, 9440, 9441, 9447, 9448, 9450, 9456, 9455, 9470, 9471, - 9475, 9480, 9488, 9488, 9506, 9515, 9528, 9529, 9531, 9533, - 9546, 9544, 9619, 9618, 9628, 9657, 9664, 9671, 9627, 9693, - 9697, 9701, 9705, 9709, 9713, 9719, 9726, 9733, 9742, 9743, - 9747, 9748, 9749, 9753, 9754, 9758, 9759, 9759, 9764, 9765 + 0, 1081, 1081, 1095, 1098, 1099, 1104, 1105, 1106, 1107, + 1108, 1109, 1110, 1111, 1112, 1113, 1114, 1115, 1116, 1117, + 1118, 1119, 1120, 1121, 1122, 1123, 1124, 1125, 1126, 1127, + 1128, 1129, 1130, 1131, 1132, 1133, 1134, 1135, 1136, 1137, + 1138, 1139, 1140, 1141, 1142, 1143, 1144, 1145, 1146, 1147, + 1148, 1149, 1150, 1151, 1155, 1169, 1170, 1175, 1189, 1196, + 1206, 1205, 1221, 1223, 1227, 1228, 1231, 1244, 1243, 1262, + 1261, 1272, 1273, 1276, 1281, 1286, 1291, 1296, 1300, 1305, + 1309, 1313, 1317, 1321, 1326, 1330, 1334, 1350, 1354, 1366, + 1365, 1388, 1387, 1408, 1407, 1420, 1419, 1427, 1435, 1449, + 1464, 1482, 1502, 1539, 1545, 1553, 1565, 1501, 1594, 1595, + 1599, 1600, 1605, 1607, 1609, 1611, 1613, 1615, 1617, 1623, + 1624, 1625, 1629, 1633, 1641, 1640, 1653, 1655, 1658, 1660, + 1664, 1668, 1675, 1677, 1681, 1682, 1687, 1706, 1732, 1734, + 1738, 1739, 1743, 1769, 1770, 1771, 1772, 1776, 1777, 1781, + 1782, 1787, 1790, 1817, 1816, 1872, 1887, 1886, 1926, 1950, + 1950, 1981, 1982, 1987, 2008, 2032, 2038, 2053, 2054, 2058, + 2062, 2071, 2076, 2081, 2089, 2104, 2122, 2123, 2127, 2127, + 2173, 2172, 2196, 2195, 2199, 2200, 2202, 2202, 2213, 2242, + 2270, 2286, 2285, 2302, 2319, 2321, 2322, 2326, 2347, 2370, + 2372, 2386, 2370, 2404, 2406, 2407, 2411, 2412, 2417, 2423, + 2416, 2442, 2441, 2457, 2458, 2462, 2463, 2468, 2472, 2467, + 2489, 2493, 2488, 2508, 2516, 2521, 2520, 2558, 2559, 2564, + 2563, 2590, 2601, 2603, 2600, 2627, 2626, 2644, 2646, 2651, + 2653, 2655, 2660, 2661, 2662, 2674, 2689, 2690, 2690, 2694, + 2696, 2695, 2698, 2697, 2703, 2719, 2702, 2733, 2734, 2737, + 2738, 2741, 2742, 2745, 2746, 2749, 2750, 2753, 2754, 2757, + 2760, 2761, 2763, 2765, 2768, 2769, 2772, 2773, 2774, 2777, + 2778, 2779, 2780, 2781, 2782, 2783, 2784, 2785, 2800, 2806, + 2807, 2808, 2809, 2814, 2819, 2824, 2839, 2840, 2841, 2842, + 2843, 2844, 2848, 2865, 2881, 2891, 2892, 2893, 2894, 2895, + 2896, 2899, 2900, 2901, 2904, 2905, 2906, 2909, 2910, 2913, + 2914, 2917, 2918, 2919, 2920, 2923, 2924, 2928, 2929, 2933, + 2934, 2941, 2949, 2957, 2974, 2978, 2984, 2986, 2990, 2994, + 2995, 2999, 3004, 3003, 3025, 3026, 3027, 3028, 3030, 3032, + 3034, 3036, 3038, 3040, 3043, 3046, 3049, 3052, 3054, 3057, + 3060, 3061, 3062, 3063, 3076, 3077, 3079, 3081, 3093, 3095, + 3097, 3099, 3100, 3101, 3102, 3103, 3104, 3106, 3108, 3110, + 3110, 3112, 3112, 3114, 3115, 3124, 3125, 3126, 3129, 3130, + 3131, 3132, 3133, 3137, 3141, 3142, 3146, 3147, 3151, 3152, + 3153, 3154, 3155, 3159, 3160, 3161, 3162, 3163, 3166, 3168, + 3169, 3173, 3174, 3175, 3178, 3185, 3186, 3189, 3190, 3193, + 3194, 3195, 3198, 3199, 3202, 3203, 3206, 3207, 3210, 3211, + 3214, 3215, 3216, 3217, 3219, 3220, 3226, 3232, 3238, 3244, + 3245, 3261, 3262, 3266, 3267, 3271, 3279, 3283, 3284, 3288, + 3297, 3301, 3302, 3305, 3315, 3316, 3320, 3321, 3324, 3325, + 3328, 3329, 3330, 3331, 3340, 3341, 3344, 3345, 3348, 3349, + 3350, 3359, 3361, 3363, 3368, 3367, 3379, 3380, 3383, 3384, + 3388, 3389, 3392, 3393, 3396, 3397, 3398, 3399, 3400, 3403, + 3404, 3405, 3406, 3407, 3410, 3411, 3412, 3424, 3425, 3428, + 3429, 3432, 3433, 3437, 3438, 3439, 3442, 3443, 3444, 3445, + 3458, 3459, 3460, 3463, 3464, 3468, 3471, 3472, 3475, 3476, + 3487, 3488, 3491, 3492, 3495, 3496, 3504, 3503, 3527, 3526, + 3541, 3540, 3559, 3558, 3578, 3576, 3591, 3592, 3594, 3595, + 3596, 3597, 3598, 3601, 3609, 3610, 3614, 3619, 3618, 3626, + 3635, 3625, 3647, 3654, 3658, 3665, 3672, 3678, 3684, 3690, + 3697, 3716, 3737, 3742, 3746, 3753, 3754, 3757, 3758, 3762, + 3763, 3764, 3768, 3769, 3770, 3773, 3774, 3775, 3776, 3784, + 3783, 3794, 3802, 3801, 3811, 3821, 3830, 3831, 3838, 3838, + 3844, 3845, 3849, 3850, 3851, 3855, 3856, 3873, 3874, 3879, + 3878, 3889, 3888, 3899, 3898, 3908, 3909, 3910, 3915, 3914, + 3926, 3927, 3930, 3931, 3934, 3935, 3936, 3940, 3939, 3952, + 3951, 3968, 3969, 3972, 3973, 3976, 3977, 3978, 3979, 3980, + 3981, 3985, 3984, 3996, 3997, 3998, 4003, 4002, 4008, 4015, + 4020, 4028, 4029, 4032, 4044, 4053, 4054, 4057, 4070, 4071, + 4076, 4075, 4085, 4086, 4089, 4102, 4102, 4112, 4113, 4122, + 4123, 4132, 4141, 4143, 4146, 4168, 4172, 4171, 4191, 4199, + 4191, 4205, 4206, 4207, 4208, 4209, 4212, 4214, 4221, 4223, + 4234, 4235, 4238, 4239, 4245, 4246, 4247, 4248, 4254, 4260, + 4266, 4276, 4279, 4281, 4287, 4297, 4298, 4299, 4312, 4330, + 4333, 4336, 4337, 4340, 4341, 4342, 4343, 4344, 4348, 4349, + 4353, 4353, 4370, 4372, 4377, 4378, 4378, 4395, 4397, 4402, + 4403, 4406, 4407, 4408, 4409, 4410, 4411, 4412, 4415, 4416, + 4417, 4418, 4420, 4422, 4425, 4427, 4429, 4433, 4439, 4443, + 4451, 4453, 4459, 4462, 4464, 4466, 4467, 4469, 4472, 4473, + 4476, 4477, 4480, 4482, 4484, 4487, 4488, 4489, 4491, 4493, + 4496, 4497, 4498, 4499, 4500, 4501, 4504, 4505, 4507, 4507, + 4508, 4508, 4509, 4509, 4510, 4510, 4512, 4513, 4514, 4515, + 4516, 4517, 4520, 4521, 4525, 4529, 4530, 4537, 4538, 4539, + 4540, 4541, 4543, 4544, 4545, 4546, 4547, 4551, 4552, 4557, + 4562, 4566, 4567, 4571, 4572, 4576, 4586, 4588, 4597, 4599, + 4610, 4612, 4623, 4634, 4645, 4656, 4658, 4660, 4662, 4664, + 4666, 4668, 4670, 4672, 4674, 4676, 4678, 4680, 4686, 4688, + 4690, 4695, 4700, 4702, 4704, 4709, 4711, 4713, 4715, 4717, + 4722, 4723, 4725, 4727, 4729, 4731, 4733, 4735, 4737, 4739, + 4741, 4743, 4745, 4749, 4751, 4761, 4763, 4765, 4767, 4769, + 4772, 4781, 4786, 4791, 4793, 4795, 4797, 4799, 4801, 4803, + 4805, 4810, 4815, 4817, 4819, 4821, 4823, 4825, 4827, 4833, + 4835, 4837, 4839, 4841, 4843, 4845, 4847, 4849, 4850, 4855, + 4857, 4859, 4861, 4863, 4865, 4867, 4869, 4871, 4878, 4885, + 4887, 4889, 4891, 4893, 4895, 4897, 4899, 4901, 4903, 4905, + 4907, 4909, 4911, 4913, 4927, 4926, 5044, 5048, 5053, 5055, + 5057, 5059, 5061, 5063, 5068, 5070, 5072, 5074, 5076, 5081, + 5085, 5087, 5089, 5091, 5093, 5095, 5099, 5102, 5105, 5107, + 5109, 5111, 5113, 5115, 5117, 5120, 5123, 5125, 5127, 5129, + 5131, 5133, 5136, 5138, 5140, 5142, 5147, 5148, 5149, 5153, + 5154, 5158, 5158, 5164, 5168, 5175, 5206, 5208, 5210, 5212, + 5214, 5216, 5218, 5221, 5223, 5220, 5226, 5229, 5231, 5228, + 5235, 5237, 5234, 5241, 5243, 5240, 5246, 5253, 5255, 5257, + 5259, 5261, 5263, 5265, 5267, 5269, 5272, 5271, 5286, 5285, + 5300, 5306, 5312, 5325, 5326, 5329, 5330, 5335, 5338, 5350, + 5349, 5365, 5366, 5367, 5368, 5369, 5370, 5371, 5372, 5373, + 5374, 5375, 5379, 5380, 5384, 5384, 5389, 5390, 5393, 5394, + 5397, 5397, 5402, 5403, 5406, 5407, 5410, 5411, 5414, 5420, + 5430, 5431, 5440, 5445, 5446, 5466, 5468, 5472, 5470, 5487, + 5485, 5503, 5501, 5509, 5518, 5516, 5534, 5533, 5544, 5555, + 5553, 5572, 5571, 5583, 5593, 5594, 5595, 5600, 5600, 5619, + 5617, 5636, 5658, 5706, 5705, 5728, 5745, 5728, 5752, 5756, + 5782, 5783, 5786, 5787, 5793, 5800, 5808, 5808, 5814, 5815, + 5819, 5823, 5827, 5833, 5841, 5850, 5851, 5852, 5853, 5854, + 5855, 5856, 5857, 5858, 5859, 5860, 5861, 5862, 5865, 5866, + 5867, 5868, 5869, 5870, 5871, 5872, 5873, 5877, 5878, 5879, + 5880, 5883, 5885, 5886, 5889, 5890, 5893, 5895, 5899, 5901, + 5900, 5914, 5917, 5916, 5931, 5937, 5950, 5952, 5955, 5957, + 5961, 5962, 5975, 5993, 5997, 5998, 6002, 6015, 6017, 6021, + 6020, 6052, 6054, 6058, 6059, 6060, 6065, 6071, 6075, 6076, + 6080, 6084, 6091, 6098, 6107, 6108, 6109, 6110, 6115, 6119, + 6127, 6128, 6129, 6130, 6131, 6132, 6136, 6137, 6138, 6139, + 6140, 6143, 6146, 6145, 6174, 6175, 6178, 6179, 6182, 6195, + 6195, 6205, 6206, 6210, 6222, 6255, 6254, 6267, 6266, 6275, + 6287, 6298, 6297, 6314, 6321, 6321, 6333, 6340, 6352, 6364, + 6368, 6374, 6384, 6385, 6388, 6396, 6397, 6401, 6402, 6410, + 6419, 6409, 6429, 6436, 6428, 6446, 6458, 6459, 6460, 6464, + 6465, 6468, 6469, 6472, 6481, 6482, 6483, 6485, 6484, 6494, + 6495, 6498, 6499, 6500, 6500, 6501, 6501, 6505, 6506, 6509, + 6511, 6514, 6522, 6523, 6527, 6528, 6533, 6532, 6545, 6546, + 6549, 6554, 6562, 6563, 6566, 6568, 6568, 6576, 6585, 6575, + 6607, 6608, 6611, 6618, 6619, 6622, 6631, 6632, 6638, 6637, + 6651, 6650, 6659, 6658, 6666, 6665, 6675, 6676, 6679, 6686, + 6699, 6700, 6704, 6705, 6708, 6709, 6710, 6713, 6723, 6725, + 6727, 6729, 6732, 6733, 6736, 6740, 6744, 6748, 6752, 6756, + 6760, 6764, 6768, 6776, 6779, 6788, 6787, 6801, 6809, 6818, + 6827, 6836, 6846, 6845, 6848, 6858, 6868, 6872, 6877, 6876, + 6881, 6891, 6896, 6902, 6907, 6912, 6914, 6916, 6918, 6920, + 6922, 6924, 6933, 6935, 6937, 6939, 6948, 6956, 6964, 6966, + 6968, 6978, 6985, 6991, 6999, 7007, 7011, 7015, 7019, 7023, + 7027, 7034, 7041, 7051, 7061, 7071, 7084, 7098, 7111, 7112, + 7114, 7116, 7119, 7120, 7123, 7124, 7127, 7128, 7131, 7132, + 7135, 7136, 7138, 7140, 7143, 7155, 7154, 7169, 7168, 7178, + 7179, 7182, 7183, 7187, 7188, 7189, 7197, 7196, 7208, 7209, + 7212, 7212, 7213, 7214, 7215, 7216, 7217, 7218, 7219, 7220, + 7221, 7222, 7223, 7224, 7227, 7228, 7232, 7231, 7240, 7241, + 7244, 7245, 7246, 7250, 7249, 7258, 7262, 7267, 7279, 7279, + 7287, 7288, 7289, 7294, 7304, 7303, 7316, 7334, 7345, 7350, + 7333, 7363, 7372, 7373, 7376, 7377, 7389, 7393, 7394, 7395, + 7397, 7399, 7402, 7403, 7406, 7411, 7418, 7423, 7429, 7431, + 7434, 7435, 7438, 7443, 7449, 7451, 7458, 7459, 7460, 7463, + 7465, 7470, 7471, 7476, 7477, 7483, 7488, 7490, 7492, 7497, + 7499, 7510, 7523, 7543, 7544, 7545, 7554, 7555, 7556, 7558, + 7559, 7560, 7561, 7562, 7576, 7590, 7591, 7592, 7595, 7596, + 7597, 7598, 7606, 7621, 7622, 7625, 7631, 7642, 7645, 7679, + 7683, 7691, 7695, 7763, 7778, 7802, 7803, 7819, 7829, 7832, + 7833, 7834, 7838, 7842, 7843, 7868, 7880, 7893, 7905, 7906, + 7915, 7916, 7925, 7926, 7927, 7930, 7943, 7956, 7970, 7971, + 7972, 7973, 7974, 7975, 7976, 7977, 7978, 7979, 7980, 7981, + 7982, 7983, 7984, 7985, 7986, 7987, 7988, 7989, 7990, 7991, + 7992, 7993, 7994, 7995, 7996, 7997, 7998, 7999, 8000, 8001, + 8002, 8003, 8004, 8005, 8006, 8007, 8008, 8018, 8019, 8020, + 8021, 8022, 8023, 8024, 8025, 8026, 8027, 8028, 8029, 8030, + 8031, 8032, 8033, 8034, 8035, 8036, 8037, 8038, 8039, 8040, + 8041, 8042, 8043, 8044, 8045, 8046, 8047, 8048, 8049, 8050, + 8051, 8052, 8053, 8054, 8055, 8056, 8057, 8058, 8059, 8060, + 8061, 8062, 8063, 8064, 8065, 8066, 8067, 8068, 8069, 8070, + 8071, 8072, 8073, 8074, 8075, 8076, 8077, 8078, 8079, 8080, + 8081, 8082, 8083, 8084, 8085, 8086, 8087, 8088, 8089, 8090, + 8091, 8092, 8093, 8094, 8095, 8096, 8097, 8098, 8099, 8100, + 8101, 8102, 8103, 8104, 8105, 8106, 8107, 8108, 8109, 8110, + 8111, 8112, 8113, 8114, 8115, 8116, 8117, 8118, 8119, 8120, + 8121, 8122, 8123, 8124, 8125, 8126, 8127, 8128, 8129, 8130, + 8131, 8132, 8133, 8134, 8135, 8136, 8137, 8138, 8139, 8140, + 8141, 8142, 8143, 8144, 8145, 8146, 8147, 8148, 8149, 8150, + 8151, 8152, 8153, 8154, 8155, 8156, 8157, 8158, 8159, 8160, + 8161, 8162, 8163, 8164, 8165, 8166, 8167, 8168, 8169, 8170, + 8171, 8172, 8173, 8174, 8175, 8176, 8177, 8178, 8179, 8180, + 8181, 8182, 8183, 8184, 8185, 8186, 8187, 8188, 8189, 8190, + 8191, 8192, 8193, 8194, 8195, 8196, 8197, 8198, 8199, 8200, + 8201, 8202, 8203, 8204, 8205, 8206, 8207, 8208, 8209, 8210, + 8211, 8212, 8213, 8214, 8215, 8216, 8217, 8218, 8219, 8220, + 8221, 8222, 8223, 8224, 8225, 8226, 8227, 8228, 8229, 8230, + 8231, 8232, 8233, 8234, 8235, 8236, 8237, 8238, 8239, 8240, + 8241, 8242, 8249, 8248, 8262, 8263, 8266, 8267, 8270, 8270, + 8342, 8343, 8344, 8345, 8349, 8350, 8358, 8359, 8360, 8361, + 8365, 8366, 8367, 8368, 8372, 8373, 8376, 8456, 8469, 8473, + 8478, 8485, 8500, 8513, 8534, 8541, 8579, 8622, 8636, 8637, + 8638, 8639, 8643, 8644, 8651, 8660, 8661, 8662, 8663, 8664, + 8672, 8671, 8687, 8688, 8691, 8692, 8695, 8703, 8704, 8705, + 8706, 8711, 8710, 8731, 8743, 8756, 8755, 8774, 8775, 8779, + 8780, 8784, 8785, 8786, 8787, 8789, 8788, 8799, 8800, 8801, + 8802, 8803, 8809, 8814, 8821, 8834, 8846, 8853, 8858, 8866, + 8879, 8893, 8895, 8898, 8899, 8906, 8908, 8912, 8913, 8916, + 8916, 8917, 8917, 8918, 8918, 8919, 8919, 8920, 8921, 8922, + 8923, 8924, 8925, 8926, 8927, 8928, 8929, 8930, 8931, 8932, + 8933, 8934, 8935, 8936, 8937, 8938, 8939, 8940, 8941, 8942, + 8947, 8948, 8952, 8953, 8957, 8967, 8977, 8990, 9005, 9018, + 9031, 9043, 9044, 9053, 9054, 9063, 9088, 9090, 9097, 9101, + 9104, 9105, 9108, 9129, 9130, 9134, 9138, 9142, 9149, 9150, + 9153, 9154, 9158, 9159, 9165, 9171, 9177, 9187, 9186, 9196, + 9197, 9201, 9202, 9203, 9207, 9208, 9209, 9213, 9214, 9218, + 9228, 9235, 9245, 9254, 9268, 9269, 9274, 9273, 9308, 9309, + 9310, 9314, 9314, 9338, 9339, 9343, 9344, 9345, 9349, 9354, + 9353, 9374, 9380, 9400, 9416, 9418, 9423, 9425, 9427, 9439, + 9449, 9462, 9464, 9466, 9471, 9476, 9478, 9480, 9486, 9487, + 9493, 9494, 9496, 9502, 9501, 9516, 9517, 9521, 9526, 9534, + 9534, 9552, 9561, 9574, 9575, 9577, 9579, 9592, 9590, 9665, + 9664, 9674, 9703, 9710, 9717, 9673, 9739, 9743, 9747, 9751, + 9755, 9759, 9765, 9772, 9779, 9788, 9789, 9793, 9794, 9795, + 9799, 9800, 9804, 9805, 9805, 9810, 9811, 9818, 9817, 9830, + 9829, 9836, 9835, 9842, 9846, 9850, 9858, 9859 }; #endif -#if YYDEBUG || YYERROR_VERBOSE -/* YYTNME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM. +#if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE +/* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM. First, the terminals, then, starting at YYNTOKENS, nonterminals. */ static const char *const yytname[] = { @@ -2830,23 +2919,24 @@ "HASH_SYM", "HAVING", "HELP_SYM", "HEX_NUM", "HIGH_PRIORITY", "HOSTS_SYM", "HOUR_MICROSECOND_SYM", "HOUR_MINUTE_SYM", "HOUR_SECOND_SYM", "HOUR_SYM", "IDENT", "IDENTIFIED_SYM", "IDENT_QUOTED", - "IF", "IGNORE_SYM", "IMPORT", "INDEXES", "INDEX_SYM", "INFILE", - "INNER_SYM", "INNOBASE_SYM", "INOUT_SYM", "INSENSITIVE_SYM", "INSERT", - "INSERT_METHOD", "INTERVAL_SYM", "INTO", "INT_SYM", "INVOKER_SYM", - "IN_SYM", "IO_SYM", "IPC_SYM", "IS", "ISOLATION", "ISSUER_SYM", - "ITERATE_SYM", "JOIN_SYM", "KEYS", "KEY_SYM", "KILL_SYM", "LABEL_SYM", - "LANGUAGE_SYM", "LAST_INSERT_ID", "LAST_SYM", "LE", "LEADING", - "LEAST_SYM", "LEAVES", "LEAVE_SYM", "LEFT", "LEVEL_SYM", "LEX_HOSTNAME", - "LIKE", "LIMIT", "LINEFROMTEXT", "LINES", "LINESTRING", "LOAD", - "LOCAL_SYM", "LOCATE", "LOCATOR_SYM", "LOCKS_SYM", "LOCK_SYM", - "LOGS_SYM", "LOG_SYM", "LONGBLOB", "LONGTEXT", "LONG_NUM", "LONG_SYM", - "LOOP_SYM", "LOW_PRIORITY", "LT", "MAKE_SET_SYM", - "MASTER_CONNECT_RETRY_SYM", "MASTER_HOST_SYM", "MASTER_LOG_FILE_SYM", - "MASTER_LOG_POS_SYM", "MASTER_PASSWORD_SYM", "MASTER_PORT_SYM", - "MASTER_POS_WAIT", "MASTER_SERVER_ID_SYM", "MASTER_SSL_CAPATH_SYM", - "MASTER_SSL_CA_SYM", "MASTER_SSL_CERT_SYM", "MASTER_SSL_CIPHER_SYM", - "MASTER_SSL_KEY_SYM", "MASTER_SSL_SYM", "MASTER_SYM", "MASTER_USER_SYM", - "MATCH", "MAX_CONNECTIONS_PER_HOUR", "MAX_QUERIES_PER_HOUR", "MAX_ROWS", + "IEEE754_TO_STRING_SYM", "IF", "IGNORE_SYM", "IMPORT", "INDEXES", + "INDEX_SYM", "INDEX_STATS_SYM", "INFILE", "INNER_SYM", "INNOBASE_SYM", + "INOUT_SYM", "INSENSITIVE_SYM", "INSERT", "INSERT_METHOD", + "INTERVAL_SYM", "INTO", "INT_SYM", "INVOKER_SYM", "IN_SYM", "IO_SYM", + "IPC_SYM", "IS", "ISOLATION", "ISSUER_SYM", "ITERATE_SYM", "JOIN_SYM", + "KEYS", "KEY_SYM", "KILL_SYM", "LABEL_SYM", "LANGUAGE_SYM", + "LAST_INSERT_ID", "LAST_SYM", "LE", "LEADING", "LEAST_SYM", "LEAVES", + "LEAVE_SYM", "LEFT", "LEVEL_SYM", "LEX_HOSTNAME", "LIKE", "LIMIT", + "LINEFROMTEXT", "LINES", "LINESTRING", "LOAD", "LOCAL_SYM", "LOCATE", + "LOCATOR_SYM", "LOCKS_SYM", "LOCK_SYM", "MAKE", "LOGS_SYM", "LOG_SYM", + "LONGBLOB", "LONGTEXT", "LONG_NUM", "LONG_SYM", "LOOP_SYM", + "LOW_PRIORITY", "LT", "MAKE_SET_SYM", "MASTER_CONNECT_RETRY_SYM", + "MASTER_HOST_SYM", "MASTER_LOG_FILE_SYM", "MASTER_LOG_POS_SYM", + "MASTER_PASSWORD_SYM", "MASTER_PORT_SYM", "MASTER_POS_WAIT", + "MASTER_SERVER_ID_SYM", "MASTER_SSL_CAPATH_SYM", "MASTER_SSL_CA_SYM", + "MASTER_SSL_CERT_SYM", "MASTER_SSL_CIPHER_SYM", "MASTER_SSL_KEY_SYM", + "MASTER_SSL_SYM", "MASTER_SYM", "MASTER_USER_SYM", "MATCH", + "MAX_CONNECTIONS_PER_HOUR", "MAX_QUERIES_PER_HOUR", "MAX_ROWS", "MAX_SYM", "MAX_UPDATES_PER_HOUR", "MAX_USER_CONNECTIONS_SYM", "MEDIUMBLOB", "MEDIUMINT", "MEDIUMTEXT", "MEDIUM_SYM", "MEMORY_SYM", "MERGE_SYM", "MICROSECOND_SYM", "MIGRATE_SYM", "MINUTE_MICROSECOND_SYM", @@ -2859,24 +2949,25 @@ "NOW_SYM", "NO_SYM", "NO_WRITE_TO_BINLOG", "NULL_SYM", "NUM", "NUMERIC_SYM", "NVARCHAR_SYM", "OFFSET_SYM", "OJ_SYM", "OLD_PASSWORD", "ON", "ONE_SHOT_SYM", "ONE_SYM", "OPEN_SYM", "OPTIMIZE", "OPTION", - "OPTIONALLY", "OR2_SYM", "ORDER_SYM", "OR_OR_SYM", "OR_SYM", "OUTER", - "OUTFILE", "OUT_SYM", "PACK_KEYS_SYM", "PAGE_SYM", "PARTIAL", "PASSWORD", - "PARAM_MARKER", "PHASE_SYM", "POINTFROMTEXT", "POINT_SYM", - "POLYFROMTEXT", "POLYGON", "POSITION_SYM", "PRECISION", "PREPARE_SYM", - "PREV_SYM", "PRIMARY_SYM", "PRIVILEGES", "PROCEDURE", "PROCESS", - "PROCESSLIST_SYM", "PROFILE_SYM", "PROFILES_SYM", "PURGE", "QUARTER_SYM", - "QUERY_SYM", "QUICK", "RAID_0_SYM", "RAID_CHUNKS", "RAID_CHUNKSIZE", - "RAID_STRIPED_SYM", "RAID_TYPE", "RAND", "READS_SYM", "READ_SYM", "REAL", - "RECOVER_SYM", "REDUNDANT_SYM", "REFERENCES", "REGEXP", - "RELAY_LOG_FILE_SYM", "RELAY_LOG_POS_SYM", "RELAY_THREAD", "RELEASE_SYM", - "RELOAD", "RENAME", "REPAIR", "REPEATABLE_SYM", "REPEAT_SYM", "REPLACE", - "REPLICATION", "REQUIRE_SYM", "RESET_SYM", "RESOURCES", "RESTORE_SYM", - "RESTRICT", "RESUME_SYM", "RETURNS_SYM", "RETURN_SYM", "REVOKE", "RIGHT", - "ROLLBACK_SYM", "ROLLUP_SYM", "ROUND", "ROUTINE_SYM", "ROWS_SYM", - "ROW_COUNT_SYM", "ROW_FORMAT_SYM", "ROW_SYM", "RTREE_SYM", - "SAVEPOINT_SYM", "SECOND_MICROSECOND_SYM", "SECOND_SYM", "SECURITY_SYM", - "SELECT_SYM", "SENSITIVE_SYM", "SEPARATOR_SYM", "SERIALIZABLE_SYM", - "SERIAL_SYM", "SESSION_SYM", "SET", "SET_VAR", "SHARE_SYM", "SHIFT_LEFT", + "OPTIONALLY", "OR2_SYM", "ORDER_SYM", "ORDERED_CHECKSUM_SYM", + "OR_OR_SYM", "OR_SYM", "OUTER", "OUTFILE", "OUT_SYM", "PACK_KEYS_SYM", + "PAGE_SYM", "PARTIAL", "PASSWORD", "PARAM_MARKER", "PHASE_SYM", + "POINTFROMTEXT", "POINT_SYM", "POLYFROMTEXT", "POLYGON", "POSITION_SYM", + "PRECISION", "PREPARE_SYM", "PREV_SYM", "PRIMARY_SYM", "PRIVILEGES", + "PROCEDURE", "PROCESS", "PROCESSLIST_SYM", "PROFILE_SYM", "PROFILES_SYM", + "PURGE", "QUARTER_SYM", "QUERY_SYM", "QUICK", "RAID_0_SYM", + "RAID_CHUNKS", "RAID_CHUNKSIZE", "RAID_STRIPED_SYM", "RAID_TYPE", "RAND", + "READS_SYM", "READ_SYM", "REAL", "RECOVER_SYM", "REDUNDANT_SYM", + "REFERENCES", "REGEXP", "RELAY_LOG_FILE_SYM", "RELAY_LOG_POS_SYM", + "RELAY_THREAD", "RELEASE_SYM", "RELOAD", "RENAME", "REPAIR", + "REPEATABLE_SYM", "REPEAT_SYM", "REPLACE", "REPLICATION", "REQUIRE_SYM", + "RESET_SYM", "RESOURCES", "RESTORE_SYM", "RESTRICT", "RESUME_SYM", + "RETURNS_SYM", "RETURN_SYM", "REVOKE", "RIGHT", "ROLLBACK_SYM", + "ROLLUP_SYM", "ROUND", "ROUTINE_SYM", "ROWS_SYM", "ROW_COUNT_SYM", + "ROW_FORMAT_SYM", "ROW_SYM", "RTREE_SYM", "SAVEPOINT_SYM", + "SECOND_MICROSECOND_SYM", "SECOND_SYM", "SECURITY_SYM", "SELECT_SYM", + "SENSITIVE_SYM", "SEPARATOR_SYM", "SERIALIZABLE_SYM", "SERIAL_SYM", + "SESSION_SYM", "SET", "SET_VAR", "SHARE_SYM", "SHIFT_LEFT", "SHIFT_RIGHT", "SHOW", "SHUTDOWN", "SIGNED_SYM", "SIMPLE_SYM", "SLAVE", "SMALLINT", "SNAPSHOT_SYM", "SOUNDS_SYM", "SOURCE_SYM", "SPATIAL_SYM", "SPECIFIC_SYM", "SQLEXCEPTION_SYM", "SQLSTATE_SYM", "SQLWARNING_SYM", @@ -2887,16 +2978,17 @@ "STRING_SYM", "SUBDATE_SYM", "SUBJECT_SYM", "SUBSTRING", "SUBSTRING_INDEX", "SUM_SYM", "SUPER_SYM", "SUSPEND_SYM", "SWAPS_SYM", "SWITCHES_SYM", "SYSDATE", "TABLES", "TABLESPACE", "TABLE_SYM", - "TEMPORARY", "TEMPTABLE_SYM", "TERMINATED", "TEXT_STRING", "TEXT_SYM", - "TIMESTAMP", "TIMESTAMP_ADD", "TIMESTAMP_DIFF", "TIME_SYM", "TINYBLOB", - "TINYINT", "TINYTEXT", "TO_SYM", "TRAILING", "TRANSACTION_SYM", - "TRIGGER_SYM", "TRIGGERS_SYM", "TRIM", "TRUE_SYM", "TRUNCATE_SYM", - "TYPES_SYM", "TYPE_SYM", "UDF_RETURNS_SYM", "UDF_SONAME_SYM", - "ULONGLONG_NUM", "UNCOMMITTED_SYM", "UNDEFINED_SYM", - "UNDERSCORE_CHARSET", "UNDO_SYM", "UNICODE_SYM", "UNION_SYM", - "UNIQUE_SYM", "UNIQUE_USERS", "UNIX_TIMESTAMP", "UNKNOWN_SYM", - "UNLOCK_SYM", "UNSIGNED", "UNTIL_SYM", "UPDATE_SYM", "UPGRADE_SYM", - "USAGE", "USER", "USE_FRM", "USE_SYM", "USING", "UTC_DATE_SYM", + "TABLE_STATS_SYM", "TEMPORARY", "TEMPTABLE_SYM", "TERMINATED", + "TEXT_STRING", "TEXT_SYM", "TIMESTAMP", "TIMESTAMP_ADD", + "TIMESTAMP_DIFF", "TIME_SYM", "TINYBLOB", "TINYINT", "TINYTEXT", + "TO_SYM", "TRAILING", "TRANSACTION_SYM", "TRIGGER_SYM", "TRIGGERS_SYM", + "TRIM", "TRUE_SYM", "TRUNCATE_SYM", "TYPES_SYM", "TYPE_SYM", + "UDF_RETURNS_SYM", "UDF_SONAME_SYM", "ULONGLONG_NUM", "UNCOMMITTED_SYM", + "UNDEFINED_SYM", "UNDERSCORE_CHARSET", "UNDO_SYM", "UNICODE_SYM", + "UNION_SYM", "UNIQUE_SYM", "UNIQUE_USERS", "UNIX_TIMESTAMP", + "UNKNOWN_SYM", "UNLOCK_SYM", "UNORDERED_CHECKSUM_SYM", "UNSIGNED", + "UNTIL_SYM", "UPDATE_SYM", "UPGRADE_SYM", "USAGE", "USER", + "USER_STATS_SYM", "USE_FRM", "USE_SYM", "USING", "UTC_DATE_SYM", "UTC_TIMESTAMP_SYM", "UTC_TIME_SYM", "VAR_SAMP_SYM", "VALUES", "VALUE_SYM", "VARBINARY", "VARCHAR", "VARIABLES", "VARIANCE_SYM", "VARYING", "VIEW_SYM", "WARNINGS", "WEEK_SYM", "WHEN_SYM", "WHERE", @@ -2973,84 +3065,85 @@ "not", "not2", "comp_op", "all_or_any", "interval_expr", "simple_expr", "@72", "geometry_function", "fulltext_options", "udf_expr_list", "udf_expr_list2", "@73", "udf_expr_list3", "udf_expr", "sum_expr", "@74", - "@75", "@76", "variable", "@77", "variable_aux", "opt_distinct", - "opt_gconcat_separator", "opt_gorder_clause", "in_sum_expr", "@78", - "cast_type", "opt_expr_list", "expr_list", "@79", "expr_list2", - "ident_list_arg", "ident_list", "@80", "ident_list2", "opt_expr", - "opt_else", "when_list", "table_ref", "join_table_list", - "derived_table_list", "join_table", "@81", "@82", "@83", "@84", "@85", - "@86", "@87", "normal_join", "table_factor", "@88", "@89", - "select_derived", "@90", "select_derived2", "@91", "@92", + "@75", "@76", "@77", "@78", "@79", "@80", "@81", "@82", "variable", + "@83", "variable_aux", "opt_distinct", "opt_gconcat_separator", + "opt_gorder_clause", "in_sum_expr", "@84", "cast_type", "opt_expr_list", + "expr_list", "@85", "expr_list2", "ident_list_arg", "ident_list", "@86", + "ident_list2", "opt_expr", "opt_else", "when_list", "table_ref", + "join_table_list", "derived_table_list", "join_table", "@87", "@88", + "@89", "@90", "@91", "@92", "@93", "normal_join", "table_factor", "@94", + "@95", "select_derived", "@96", "select_derived2", "@97", "@98", "get_select_lex", "select_derived_init", "opt_outer", - "opt_key_definition", "key_usage_list", "@93", "key_list_or_empty", + "opt_key_definition", "key_usage_list", "@99", "key_list_or_empty", "key_usage_list2", "using_list", "interval", "interval_time_st", "date_time_type", "table_alias", "opt_table_alias", "opt_all", - "where_clause", "@94", "having_clause", "@95", "opt_escape", + "where_clause", "@100", "having_clause", "@101", "opt_escape", "group_clause", "group_list", "olap_opt", "alter_order_clause", "alter_order_list", "alter_order_item", "opt_order_clause", - "order_clause", "@96", "order_list", "order_dir", + "order_clause", "@102", "order_list", "order_dir", "opt_limit_clause_init", "opt_limit_clause", "limit_clause", "limit_options", "limit_option", "delete_limit_clause", "ulong_num", - "ulonglong_num", "procedure_clause", "@97", "procedure_list", - "procedure_list2", "procedure_item", "select_var_list_init", "@98", - "select_var_list", "select_var_ident", "into", "@99", "into_destination", - "@100", "do", "@101", "drop", "@102", "table_list", "table_name", - "if_exists", "opt_temporary", "insert", "@103", "@104", "replace", - "@105", "@106", "insert_lock_option", "replace_lock_option", "insert2", - "insert_table", "insert_field_spec", "@107", "fields", "insert_values", - "@108", "@109", "values_list", "ident_eq_list", "ident_eq_value", - "equal", "opt_equal", "no_braces", "@110", "opt_values", "values", - "expr_or_default", "opt_insert_update", "@111", "update", "@112", "@113", - "update_list", "update_elem", "insert_update_list", "insert_update_elem", - "opt_low_priority", "delete", "@114", "single_multi", "@115", "@116", - "@117", "table_wild_list", "table_wild_one", "opt_wild", - "opt_delete_options", "opt_delete_option", "truncate", "opt_table_sym", - "opt_profile_defs", "profile_defs", "profile_def", "opt_profile_args", - "show", "@118", "show_param", "@119", "@120", "show_engine_param", - "master_or_binary", "opt_storage", "opt_db", "opt_full", "from_or_in", - "binlog_in", "binlog_from", "wild_and_where", "describe", "@121", "@122", - "describe_command", "opt_extended_describe", "opt_describe_column", - "flush", "@123", "flush_options", "flush_option", "@124", - "opt_table_list", "reset", "@125", "reset_options", "reset_option", - "purge", "@126", "purge_options", "purge_option", "kill", "@127", - "kill_option", "use", "load", "@128", "load_data", "@129", "@130", - "@131", "opt_local", "load_data_lock", "opt_duplicate", "opt_field_term", - "field_term_list", "field_term", "opt_line_term", "line_term_list", - "line_term", "opt_ignore_lines", "opt_field_or_var_spec", - "fields_or_vars", "field_or_var", "opt_load_data_set_spec", - "text_literal", "text_string", "param_marker", "signed_literal", - "literal", "NUM_literal", "insert_ident", "table_wild", "order_ident", - "simple_ident", "simple_ident_nospvar", "simple_ident_q", "field_ident", - "table_ident", "table_ident_nodb", "IDENT_sys", "TEXT_STRING_sys", - "TEXT_STRING_literal", "TEXT_STRING_filesystem", "ident", "label_ident", - "ident_or_text", "user", "keyword", "keyword_sp", "set", "@132", - "opt_option", "option_value_list", "option_type_value", "@133", - "option_type", "option_type2", "opt_var_type", "opt_var_ident_type", - "ext_option_value", "sys_option_value", "option_value", - "internal_variable_name", "isolation_types", "text_or_password", - "set_expr_or_default", "lock", "@134", "table_or_tables", - "table_lock_list", "table_lock", "lock_option", "unlock", "@135", - "handler", "@136", "handler_read_or_scan", "handler_scan_function", - "handler_rkey_function", "@137", "handler_rkey_mode", "revoke", - "revoke_command", "grant", "grant_command", "opt_table", - "grant_privileges", "opt_privileges", "object_privilege_list", - "object_privilege", "@138", "@139", "@140", "@141", "opt_and", - "require_list", "require_list_element", "grant_ident", "user_list", - "grant_list", "grant_user", "opt_column_list", "column_list", - "column_list_id", "require_clause", "grant_options", "grant_option_list", - "grant_option", "begin", "@142", "opt_work", "opt_chain", "opt_release", - "opt_savepoint", "commit", "rollback", "savepoint", "release", - "union_clause", "union_list", "@143", "union_opt", - "union_order_or_limit", "@144", "order_or_limit", "union_option", - "subselect", "@145", "subselect_init", "subselect_start", + "ulonglong_num", "procedure_clause", "@103", "procedure_list", + "procedure_list2", "procedure_item", "select_var_list_init", "@104", + "select_var_list", "select_var_ident", "into", "@105", + "into_destination", "@106", "do", "@107", "drop", "@108", "table_list", + "table_name", "if_exists", "opt_temporary", "insert", "@109", "@110", + "replace", "@111", "@112", "insert_lock_option", "replace_lock_option", + "insert2", "insert_table", "insert_field_spec", "@113", "fields", + "insert_values", "@114", "@115", "values_list", "ident_eq_list", + "ident_eq_value", "equal", "opt_equal", "no_braces", "@116", + "opt_values", "values", "expr_or_default", "opt_insert_update", "@117", + "update", "@118", "@119", "update_list", "update_elem", + "insert_update_list", "insert_update_elem", "opt_low_priority", "delete", + "@120", "single_multi", "@121", "@122", "@123", "table_wild_list", + "table_wild_one", "opt_wild", "opt_delete_options", "opt_delete_option", + "truncate", "opt_table_sym", "opt_profile_defs", "profile_defs", + "profile_def", "opt_profile_args", "show", "@124", "show_param", "@125", + "@126", "show_engine_param", "master_or_binary", "opt_storage", "opt_db", + "opt_full", "from_or_in", "binlog_in", "binlog_from", "wild_and_where", + "describe", "@127", "@128", "describe_command", "opt_extended_describe", + "opt_describe_column", "flush", "@129", "flush_options", "flush_option", + "@130", "opt_table_list", "reset", "@131", "reset_options", + "reset_option", "purge", "@132", "purge_options", "purge_option", "kill", + "@133", "kill_option", "use", "load", "@134", "load_data", "@135", + "@136", "@137", "opt_local", "load_data_lock", "opt_duplicate", + "opt_field_term", "field_term_list", "field_term", "opt_line_term", + "line_term_list", "line_term", "opt_ignore_lines", + "opt_field_or_var_spec", "fields_or_vars", "field_or_var", + "opt_load_data_set_spec", "text_literal", "text_string", "param_marker", + "signed_literal", "literal", "NUM_literal", "insert_ident", "table_wild", + "order_ident", "simple_ident", "simple_ident_nospvar", "simple_ident_q", + "field_ident", "table_ident", "table_ident_nodb", "IDENT_sys", + "TEXT_STRING_sys", "TEXT_STRING_literal", "TEXT_STRING_filesystem", + "ident", "label_ident", "ident_or_text", "user", "keyword", "keyword_sp", + "set", "@138", "opt_option", "option_value_list", "option_type_value", + "@139", "option_type", "option_type2", "opt_var_type", + "opt_var_ident_type", "ext_option_value", "sys_option_value", + "option_value", "internal_variable_name", "isolation_types", + "text_or_password", "set_expr_or_default", "lock", "@140", + "table_or_tables", "table_lock_list", "table_lock", "lock_option", + "unlock", "@141", "handler", "@142", "handler_read_or_scan", + "handler_scan_function", "handler_rkey_function", "@143", + "handler_rkey_mode", "revoke", "revoke_command", "grant", + "grant_command", "opt_table", "grant_privileges", "opt_privileges", + "object_privilege_list", "object_privilege", "@144", "@145", "@146", + "@147", "opt_and", "require_list", "require_list_element", "grant_ident", + "user_list", "grant_list", "grant_user", "opt_column_list", + "column_list", "column_list_id", "require_clause", "grant_options", + "grant_option_list", "grant_option", "begin", "@148", "opt_work", + "opt_chain", "opt_release", "opt_savepoint", "commit", "rollback", + "savepoint", "release", "union_clause", "union_list", "@149", + "union_opt", "union_order_or_limit", "@150", "order_or_limit", + "union_option", "subselect", "@151", "subselect_init", "subselect_start", "subselect_end", "view_or_trigger_or_sp", "view_or_trigger_or_sp_tail", "definer", "view_replace_or_algorithm", "view_replace", "view_algorithm", - "view_algorithm_opt", "view_suid", "view_tail", "@146", "view_list_opt", - "view_list", "view_select", "@147", "view_select_aux", - "view_check_option", "trigger_tail", "@148", "sp_tail", "@149", "@150", - "@151", "@152", "@153", "xa", "xid", "begin_or_start", - "opt_join_or_resume", "opt_one_phase", "opt_suspend", "@154", - "opt_migrate", 0 + "view_algorithm_opt", "view_suid", "view_tail", "@152", "view_list_opt", + "view_list", "view_select", "@153", "view_select_aux", + "view_check_option", "trigger_tail", "@154", "sp_tail", "@155", "@156", + "@157", "@158", "@159", "xa", "xid", "begin_or_start", + "opt_join_or_resume", "opt_one_phase", "opt_suspend", "@160", + "opt_migrate", "make", "@161", "make_master_defs", "@162", "@163", + "make_master_with_defs", 0 }; #endif @@ -3115,220 +3208,223 @@ 785, 786, 787, 788, 789, 790, 791, 792, 793, 794, 795, 796, 797, 798, 799, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 811, 812, 813, 814, - 815, 816, 817, 124, 38, 45, 43, 42, 47, 37, - 94, 126, 818, 40, 41, 44, 33, 123, 125, 64, - 46, 59, 58 + 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, + 124, 38, 45, 43, 42, 47, 37, 94, 126, 825, + 40, 41, 44, 33, 123, 125, 64, 46, 59, 58 }; # endif /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */ static const unsigned short int yyr1[] = { - 0, 583, 584, 584, 585, 585, 586, 586, 586, 586, - 586, 586, 586, 586, 586, 586, 586, 586, 586, 586, - 586, 586, 586, 586, 586, 586, 586, 586, 586, 586, - 586, 586, 586, 586, 586, 586, 586, 586, 586, 586, - 586, 586, 586, 586, 586, 586, 586, 586, 586, 586, - 586, 586, 586, 587, 588, 588, 589, 590, 590, 592, - 591, 593, 593, 594, 594, 595, 597, 596, 599, 598, - 600, 600, 601, 601, 601, 601, 601, 601, 601, 601, - 601, 601, 601, 601, 602, 602, 602, 602, 604, 603, - 605, 603, 606, 603, 607, 603, 603, 608, 609, 609, - 610, 611, 612, 613, 614, 615, 610, 616, 616, 617, - 617, 618, 618, 618, 618, 618, 618, 618, 619, 619, - 619, 620, 620, 622, 621, 623, 623, 624, 624, 625, - 625, 626, 626, 627, 627, 628, 629, 630, 630, 631, - 631, 632, 633, 633, 633, 633, 634, 634, 635, 635, - 636, 636, 638, 637, 637, 639, 637, 637, 641, 640, - 642, 642, 643, 643, 644, 644, 645, 645, 646, 646, - 646, 646, 646, 647, 647, 648, 648, 650, 649, 651, - 649, 652, 649, 649, 649, 653, 649, 649, 649, 649, - 654, 649, 649, 655, 655, 655, 656, 656, 658, 659, - 660, 657, 661, 661, 661, 662, 662, 664, 665, 663, - 667, 666, 668, 668, 669, 669, 671, 672, 670, 674, - 675, 673, 676, 676, 678, 677, 679, 679, 681, 680, - 680, 682, 683, 680, 684, 680, 685, 685, 686, 686, - 686, 687, 687, 687, 687, 688, 689, 688, 690, 691, - 690, 692, 690, 694, 695, 693, 696, 696, 697, 697, - 698, 698, 699, 699, 700, 700, 701, 701, 702, 703, - 703, 704, 704, 705, 705, 706, 706, 706, 707, 707, - 707, 707, 707, 707, 707, 707, 707, 707, 707, 707, - 707, 707, 707, 707, 707, 707, 707, 707, 707, 707, - 707, 708, 709, 710, 711, 711, 711, 711, 711, 711, - 712, 712, 712, 713, 713, 713, 714, 714, 715, 715, - 716, 716, 716, 716, 717, 717, 718, 718, 719, 719, - 720, 720, 720, 720, 720, 721, 721, 722, 723, 723, - 724, 726, 725, 727, 727, 727, 727, 727, 727, 727, - 727, 727, 727, 727, 727, 727, 727, 727, 727, 727, - 727, 727, 727, 727, 727, 727, 727, 727, 727, 727, - 727, 727, 727, 727, 727, 727, 727, 727, 728, 727, - 729, 727, 727, 727, 730, 730, 730, 730, 730, 730, - 730, 730, 731, 732, 732, 733, 733, 734, 734, 734, - 734, 734, 735, 735, 735, 735, 735, 736, 736, 736, + 0, 590, 591, 591, 592, 592, 593, 593, 593, 593, + 593, 593, 593, 593, 593, 593, 593, 593, 593, 593, + 593, 593, 593, 593, 593, 593, 593, 593, 593, 593, + 593, 593, 593, 593, 593, 593, 593, 593, 593, 593, + 593, 593, 593, 593, 593, 593, 593, 593, 593, 593, + 593, 593, 593, 593, 594, 595, 595, 596, 597, 597, + 599, 598, 600, 600, 601, 601, 602, 604, 603, 606, + 605, 607, 607, 608, 608, 608, 608, 608, 608, 608, + 608, 608, 608, 608, 608, 609, 609, 609, 609, 611, + 610, 612, 610, 613, 610, 614, 610, 610, 615, 616, + 616, 617, 618, 619, 620, 621, 622, 617, 623, 623, + 624, 624, 625, 625, 625, 625, 625, 625, 625, 626, + 626, 626, 627, 627, 629, 628, 630, 630, 631, 631, + 632, 632, 633, 633, 634, 634, 635, 636, 637, 637, + 638, 638, 639, 640, 640, 640, 640, 641, 641, 642, + 642, 643, 643, 645, 644, 644, 646, 644, 644, 648, + 647, 649, 649, 650, 650, 651, 651, 652, 652, 653, + 653, 653, 653, 653, 654, 654, 655, 655, 657, 656, + 658, 656, 659, 656, 656, 656, 660, 656, 656, 656, + 656, 661, 656, 656, 662, 662, 662, 663, 663, 665, + 666, 667, 664, 668, 668, 668, 669, 669, 671, 672, + 670, 674, 673, 675, 675, 676, 676, 678, 679, 677, + 681, 682, 680, 683, 683, 685, 684, 686, 686, 688, + 687, 687, 689, 690, 687, 691, 687, 692, 692, 693, + 693, 693, 694, 694, 694, 694, 695, 696, 695, 697, + 698, 697, 699, 697, 701, 702, 700, 703, 703, 704, + 704, 705, 705, 706, 706, 707, 707, 708, 708, 709, + 710, 710, 711, 711, 712, 712, 713, 713, 713, 714, + 714, 714, 714, 714, 714, 714, 714, 714, 714, 714, + 714, 714, 714, 714, 714, 714, 714, 714, 714, 714, + 714, 714, 715, 716, 717, 718, 718, 718, 718, 718, + 718, 719, 719, 719, 720, 720, 720, 721, 721, 722, + 722, 723, 723, 723, 723, 724, 724, 725, 725, 726, + 726, 727, 727, 727, 727, 727, 728, 728, 729, 730, + 730, 731, 733, 732, 734, 734, 734, 734, 734, 734, + 734, 734, 734, 734, 734, 734, 734, 734, 734, 734, + 734, 734, 734, 734, 734, 734, 734, 734, 734, 734, + 734, 734, 734, 734, 734, 734, 734, 734, 734, 735, + 734, 736, 734, 734, 734, 737, 737, 737, 737, 737, 737, 737, 737, 738, 739, 739, 740, 740, 741, 741, - 741, 742, 742, 743, 743, 744, 744, 745, 745, 746, - 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, - 747, 747, 748, 748, 749, 749, 750, 750, 751, 751, - 752, 752, 753, 754, 754, 755, 755, 756, 756, 757, - 757, 757, 757, 757, 757, 758, 758, 759, 759, 759, - 759, 760, 760, 762, 761, 763, 763, 764, 764, 765, - 765, 766, 766, 767, 767, 767, 767, 767, 768, 768, - 768, 768, 768, 769, 769, 769, 770, 770, 771, 771, - 772, 772, 773, 773, 773, 774, 774, 774, 774, 775, - 775, 775, 776, 776, 776, 777, 777, 778, 778, 779, - 779, 780, 780, 781, 781, 783, 782, 784, 782, 785, - 782, 786, 782, 787, 782, 788, 788, 789, 789, 789, - 789, 789, 790, 791, 791, 791, 792, 791, 793, 794, - 791, 791, 791, 791, 791, 791, 791, 791, 791, 791, - 791, 791, 791, 791, 795, 795, 796, 796, 797, 797, - 797, 798, 798, 798, 799, 799, 799, 799, 801, 800, - 800, 802, 800, 800, 803, 804, 804, 806, 805, 807, - 807, 808, 808, 808, 809, 809, 810, 810, 812, 811, - 814, 813, 816, 815, 817, 817, 817, 819, 818, 820, - 820, 821, 821, 822, 822, 822, 824, 823, 826, 825, - 827, 827, 828, 828, 829, 829, 829, 829, 829, 829, - 831, 830, 832, 832, 832, 834, 833, 833, 835, 835, - 836, 836, 837, 838, 839, 839, 840, 841, 841, 843, - 842, 844, 844, 845, 847, 846, 848, 848, 849, 849, - 850, 851, 851, 852, 852, 854, 853, 856, 857, 855, - 858, 858, 858, 858, 858, 859, 859, 860, 860, 861, - 861, 862, 862, 862, 862, 862, 862, 862, 862, 862, - 862, 863, 863, 863, 864, 864, 864, 865, 866, 867, - 868, 868, 869, 869, 869, 869, 869, 870, 870, 872, - 871, 873, 873, 874, 875, 874, 876, 876, 877, 877, - 878, 878, 878, 878, 878, 878, 878, 879, 879, 879, - 879, 879, 879, 880, 880, 880, 880, 880, 880, 880, - 880, 880, 880, 880, 880, 880, 880, 881, 881, 882, - 882, 883, 883, 883, 884, 884, 884, 884, 884, 885, - 885, 885, 885, 885, 885, 886, 886, 887, 887, 888, - 888, 889, 889, 890, 890, 891, 891, 891, 891, 891, - 891, 892, 892, 893, 894, 894, 894, 894, 894, 894, - 894, 894, 894, 894, 894, 894, 894, 894, 894, 894, - 894, 894, 894, 894, 894, 894, 894, 894, 894, 894, - 894, 894, 894, 894, 894, 894, 894, 894, 894, 894, - 894, 894, 894, 894, 894, 894, 894, 894, 894, 894, - 894, 894, 894, 894, 894, 894, 894, 894, 894, 894, - 894, 894, 894, 894, 894, 894, 894, 894, 894, 894, - 894, 894, 894, 894, 894, 894, 894, 894, 894, 894, - 894, 894, 894, 894, 894, 894, 894, 894, 894, 894, - 894, 894, 894, 894, 894, 894, 894, 894, 894, 894, - 894, 894, 894, 894, 894, 894, 894, 894, 894, 894, - 894, 894, 894, 894, 894, 894, 894, 894, 894, 894, - 894, 894, 894, 894, 894, 894, 894, 894, 894, 894, - 894, 894, 894, 895, 894, 894, 894, 894, 894, 894, - 894, 894, 894, 894, 894, 894, 894, 894, 894, 896, - 896, 896, 896, 896, 896, 896, 896, 896, 896, 896, - 896, 896, 896, 896, 896, 896, 896, 896, 896, 896, - 896, 896, 896, 896, 896, 897, 897, 897, 898, 898, - 900, 899, 901, 901, 902, 903, 903, 903, 903, 903, - 903, 903, 904, 905, 903, 903, 903, 903, 903, 903, - 903, 903, 903, 903, 903, 903, 906, 903, 908, 907, - 909, 909, 909, 910, 910, 911, 911, 912, 912, 914, - 913, 915, 915, 915, 915, 915, 915, 915, 915, 915, - 915, 915, 916, 916, 918, 917, 919, 919, 920, 920, - 922, 921, 923, 923, 924, 924, 925, 925, 926, 926, - 927, 927, 928, 929, 929, 930, 930, 931, 930, 932, - 930, 933, 930, 930, 934, 930, 935, 930, 930, 936, - 930, 937, 930, 930, 938, 938, 938, 940, 939, 941, - 939, 939, 939, 943, 942, 945, 946, 944, 947, 948, - 949, 949, 950, 950, 950, 950, 952, 951, 953, 953, - 954, 954, 954, 955, 955, 956, 956, 956, 956, 956, - 956, 956, 956, 956, 956, 956, 956, 956, 957, 957, - 957, 957, 957, 957, 957, 957, 957, 958, 958, 958, - 958, 959, 959, 959, 960, 960, 961, 961, 962, 963, - 962, 964, 965, 964, 966, 966, 967, 967, 968, 968, - 969, 969, 969, 970, 971, 971, 972, 973, 973, 975, - 974, 976, 976, 977, 977, 977, 978, 978, 979, 979, - 980, 981, 981, 981, 982, 982, 982, 982, 983, 983, - 984, 984, 984, 984, 984, 984, 985, 985, 985, 985, - 985, 986, 987, 986, 988, 988, 989, 989, 990, 992, - 991, 993, 993, 994, 994, 996, 995, 998, 997, 997, - 997, 1000, 999, 1001, 1002, 1001, 1001, 1001, 1001, 1001, - 1001, 1001, 1003, 1003, 1004, 1005, 1005, 1006, 1006, 1008, - 1009, 1007, 1011, 1012, 1010, 1013, 1013, 1013, 1013, 1014, - 1014, 1015, 1015, 1016, 1017, 1017, 1017, 1018, 1017, 1019, - 1019, 1020, 1020, 1021, 1020, 1022, 1020, 1023, 1023, 1024, - 1024, 1025, 1026, 1026, 1027, 1027, 1029, 1028, 1030, 1030, - 1031, 1031, 1032, 1032, 1033, 1034, 1033, 1036, 1037, 1035, - 1038, 1038, 1039, 1040, 1040, 1041, 1042, 1042, 1044, 1043, - 1046, 1045, 1047, 1045, 1048, 1045, 1049, 1049, 1050, 1050, - 1051, 1051, 1052, 1052, 1053, 1053, 1053, 1054, 1055, 1055, - 1056, 1056, 1057, 1057, 1058, 1058, 1058, 1058, 1058, 1058, - 1058, 1058, 1058, 1059, 1059, 1061, 1060, 1062, 1062, 1062, - 1062, 1062, 1063, 1062, 1062, 1062, 1062, 1062, 1064, 1062, - 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, - 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, - 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, - 1062, 1062, 1062, 1065, 1065, 1066, 1066, 1067, 1067, 1068, - 1068, 1069, 1069, 1070, 1070, 1071, 1071, 1072, 1072, 1073, - 1073, 1073, 1075, 1074, 1076, 1074, 1077, 1077, 1078, 1078, - 1079, 1079, 1079, 1081, 1080, 1082, 1082, 1084, 1083, 1083, - 1083, 1083, 1083, 1083, 1083, 1083, 1083, 1083, 1083, 1085, - 1085, 1087, 1086, 1088, 1088, 1089, 1089, 1089, 1091, 1090, - 1092, 1093, 1093, 1095, 1094, 1096, 1096, 1096, 1097, 1099, - 1098, 1098, 1101, 1102, 1103, 1100, 1100, 1104, 1104, 1105, - 1105, 1105, 1106, 1106, 1106, 1107, 1107, 1108, 1108, 1109, - 1109, 1109, 1109, 1110, 1110, 1111, 1111, 1112, 1112, 1113, - 1113, 1114, 1114, 1114, 1115, 1115, 1116, 1116, 1117, 1117, - 1118, 1118, 1118, 1118, 1119, 1119, 1119, 1120, 1121, 1121, - 1121, 1122, 1122, 1122, 1122, 1122, 1122, 1122, 1122, 1122, - 1122, 1122, 1122, 1123, 1123, 1123, 1123, 1123, 1124, 1124, - 1125, 1125, 1126, 1127, 1127, 1128, 1128, 1129, 1129, 1129, - 1130, 1130, 1130, 1130, 1131, 1131, 1131, 1132, 1133, 1133, - 1134, 1135, 1136, 1137, 1137, 1138, 1138, 1139, 1139, 1139, - 1140, 1140, 1140, 1141, 1141, 1141, 1141, 1141, 1141, 1141, - 1141, 1141, 1141, 1141, 1141, 1141, 1141, 1141, 1141, 1141, - 1141, 1141, 1141, 1141, 1141, 1141, 1141, 1141, 1141, 1141, - 1141, 1141, 1141, 1141, 1141, 1141, 1141, 1141, 1141, 1141, - 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, - 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, - 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, - 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, - 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, - 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, - 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, - 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, - 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, - 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, - 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, - 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, - 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, - 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, - 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, - 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, - 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, - 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, - 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, - 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, - 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, - 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1142, - 1142, 1142, 1142, 1142, 1142, 1144, 1143, 1145, 1145, 1146, - 1146, 1148, 1147, 1149, 1149, 1149, 1149, 1150, 1150, 1151, - 1151, 1151, 1151, 1152, 1152, 1152, 1152, 1153, 1153, 1154, - 1154, 1155, 1155, 1155, 1155, 1155, 1155, 1155, 1156, 1156, - 1156, 1157, 1157, 1157, 1157, 1158, 1158, 1158, 1159, 1159, - 1159, 1159, 1159, 1161, 1160, 1162, 1162, 1163, 1163, 1164, - 1165, 1165, 1165, 1165, 1167, 1166, 1168, 1168, 1169, 1168, - 1170, 1170, 1171, 1171, 1172, 1172, 1172, 1172, 1173, 1172, - 1174, 1174, 1174, 1174, 1174, 1175, 1176, 1176, 1176, 1176, - 1177, 1178, 1178, 1178, 1179, 1179, 1180, 1180, 1181, 1181, - 1182, 1182, 1184, 1183, 1185, 1183, 1186, 1183, 1187, 1183, - 1183, 1183, 1183, 1183, 1183, 1183, 1183, 1183, 1183, 1183, - 1183, 1183, 1183, 1183, 1183, 1183, 1183, 1183, 1183, 1183, - 1183, 1183, 1183, 1188, 1188, 1189, 1189, 1190, 1190, 1190, - 1191, 1191, 1191, 1191, 1192, 1192, 1193, 1193, 1194, 1194, - 1194, 1195, 1195, 1196, 1196, 1197, 1198, 1198, 1198, 1198, - 1198, 1199, 1199, 1200, 1200, 1201, 1201, 1201, 1201, 1201, - 1203, 1202, 1204, 1204, 1205, 1205, 1205, 1206, 1206, 1206, - 1207, 1207, 1208, 1209, 1209, 1210, 1211, 1212, 1212, 1214, - 1213, 1215, 1215, 1215, 1217, 1216, 1218, 1218, 1219, 1219, - 1219, 1220, 1221, 1220, 1222, 1223, 1224, 1225, 1225, 1226, - 1226, 1226, 1227, 1227, 1228, 1228, 1228, 1229, 1230, 1230, - 1230, 1231, 1231, 1232, 1232, 1232, 1234, 1233, 1235, 1235, - 1236, 1236, 1238, 1237, 1239, 1239, 1240, 1240, 1240, 1240, - 1242, 1241, 1244, 1243, 1245, 1246, 1247, 1248, 1243, 1249, - 1249, 1249, 1249, 1249, 1249, 1250, 1250, 1250, 1251, 1251, - 1252, 1252, 1252, 1253, 1253, 1254, 1255, 1254, 1256, 1256 + 741, 741, 741, 742, 742, 742, 742, 742, 743, 743, + 743, 744, 744, 744, 745, 746, 746, 747, 747, 748, + 748, 748, 749, 749, 750, 750, 751, 751, 752, 752, + 753, 753, 753, 753, 753, 753, 753, 753, 753, 753, + 753, 754, 754, 755, 755, 756, 756, 757, 757, 758, + 758, 759, 759, 760, 761, 761, 762, 762, 763, 763, + 764, 764, 764, 764, 764, 764, 765, 765, 766, 766, + 766, 766, 767, 767, 769, 768, 770, 770, 771, 771, + 772, 772, 773, 773, 774, 774, 774, 774, 774, 775, + 775, 775, 775, 775, 776, 776, 776, 777, 777, 778, + 778, 779, 779, 780, 780, 780, 781, 781, 781, 781, + 782, 782, 782, 783, 783, 783, 784, 784, 785, 785, + 786, 786, 787, 787, 788, 788, 790, 789, 791, 789, + 792, 789, 793, 789, 794, 789, 795, 795, 796, 796, + 796, 796, 796, 797, 798, 798, 798, 799, 798, 800, + 801, 798, 798, 798, 798, 798, 798, 798, 798, 798, + 798, 798, 798, 798, 798, 802, 802, 803, 803, 804, + 804, 804, 805, 805, 805, 806, 806, 806, 806, 808, + 807, 807, 809, 807, 807, 810, 811, 811, 813, 812, + 814, 814, 815, 815, 815, 816, 816, 817, 817, 819, + 818, 821, 820, 823, 822, 824, 824, 824, 826, 825, + 827, 827, 828, 828, 829, 829, 829, 831, 830, 833, + 832, 834, 834, 835, 835, 836, 836, 836, 836, 836, + 836, 838, 837, 839, 839, 839, 841, 840, 840, 842, + 842, 843, 843, 844, 845, 846, 846, 847, 848, 848, + 850, 849, 851, 851, 852, 854, 853, 855, 855, 856, + 856, 857, 858, 858, 859, 859, 861, 860, 863, 864, + 862, 865, 865, 865, 865, 865, 866, 866, 867, 867, + 868, 868, 869, 869, 869, 869, 869, 869, 869, 869, + 869, 869, 870, 870, 870, 871, 871, 871, 872, 873, + 874, 875, 875, 876, 876, 876, 876, 876, 877, 877, + 879, 878, 880, 880, 881, 882, 881, 883, 883, 884, + 884, 885, 885, 885, 885, 885, 885, 885, 886, 886, + 886, 886, 886, 886, 887, 887, 887, 887, 887, 887, + 887, 887, 887, 887, 887, 887, 887, 887, 888, 888, + 889, 889, 890, 890, 890, 891, 891, 891, 891, 891, + 892, 892, 892, 892, 892, 892, 893, 893, 894, 894, + 895, 895, 896, 896, 897, 897, 898, 898, 898, 898, + 898, 898, 899, 899, 900, 901, 901, 901, 901, 901, + 901, 901, 901, 901, 901, 901, 901, 901, 901, 901, + 901, 901, 901, 901, 901, 901, 901, 901, 901, 901, + 901, 901, 901, 901, 901, 901, 901, 901, 901, 901, + 901, 901, 901, 901, 901, 901, 901, 901, 901, 901, + 901, 901, 901, 901, 901, 901, 901, 901, 901, 901, + 901, 901, 901, 901, 901, 901, 901, 901, 901, 901, + 901, 901, 901, 901, 901, 901, 901, 901, 901, 901, + 901, 901, 901, 901, 901, 901, 901, 901, 901, 901, + 901, 901, 901, 901, 901, 901, 901, 901, 901, 901, + 901, 901, 901, 901, 901, 901, 901, 901, 901, 901, + 901, 901, 901, 901, 901, 901, 901, 901, 901, 901, + 901, 901, 901, 901, 901, 901, 901, 901, 901, 901, + 901, 901, 901, 901, 902, 901, 901, 901, 901, 901, + 901, 901, 901, 901, 901, 901, 901, 901, 901, 901, + 903, 903, 903, 903, 903, 903, 903, 903, 903, 903, + 903, 903, 903, 903, 903, 903, 903, 903, 903, 903, + 903, 903, 903, 903, 903, 903, 904, 904, 904, 905, + 905, 907, 906, 908, 908, 909, 910, 910, 910, 910, + 910, 910, 910, 911, 912, 910, 910, 913, 914, 910, + 915, 916, 910, 917, 918, 910, 910, 910, 910, 910, + 910, 910, 910, 910, 910, 910, 919, 910, 921, 920, + 922, 922, 922, 923, 923, 924, 924, 925, 925, 927, + 926, 928, 928, 928, 928, 928, 928, 928, 928, 928, + 928, 928, 929, 929, 931, 930, 932, 932, 933, 933, + 935, 934, 936, 936, 937, 937, 938, 938, 939, 939, + 940, 940, 941, 942, 942, 943, 943, 944, 943, 945, + 943, 946, 943, 943, 947, 943, 948, 943, 943, 949, + 943, 950, 943, 943, 951, 951, 951, 953, 952, 954, + 952, 952, 952, 956, 955, 958, 959, 957, 960, 961, + 962, 962, 963, 963, 963, 963, 965, 964, 966, 966, + 967, 967, 967, 968, 968, 969, 969, 969, 969, 969, + 969, 969, 969, 969, 969, 969, 969, 969, 970, 970, + 970, 970, 970, 970, 970, 970, 970, 971, 971, 971, + 971, 972, 972, 972, 973, 973, 974, 974, 975, 976, + 975, 977, 978, 977, 979, 979, 980, 980, 981, 981, + 982, 982, 982, 983, 984, 984, 985, 986, 986, 988, + 987, 989, 989, 990, 990, 990, 991, 991, 992, 992, + 993, 994, 994, 994, 995, 995, 995, 995, 996, 996, + 997, 997, 997, 997, 997, 997, 998, 998, 998, 998, + 998, 999, 1000, 999, 1001, 1001, 1002, 1002, 1003, 1005, + 1004, 1006, 1006, 1007, 1007, 1009, 1008, 1011, 1010, 1010, + 1010, 1013, 1012, 1014, 1015, 1014, 1014, 1014, 1014, 1014, + 1014, 1014, 1016, 1016, 1017, 1018, 1018, 1019, 1019, 1021, + 1022, 1020, 1024, 1025, 1023, 1026, 1026, 1026, 1026, 1027, + 1027, 1028, 1028, 1029, 1030, 1030, 1030, 1031, 1030, 1032, + 1032, 1033, 1033, 1034, 1033, 1035, 1033, 1036, 1036, 1037, + 1037, 1038, 1039, 1039, 1040, 1040, 1042, 1041, 1043, 1043, + 1044, 1044, 1045, 1045, 1046, 1047, 1046, 1049, 1050, 1048, + 1051, 1051, 1052, 1053, 1053, 1054, 1055, 1055, 1057, 1056, + 1059, 1058, 1060, 1058, 1061, 1058, 1062, 1062, 1063, 1063, + 1064, 1064, 1065, 1065, 1066, 1066, 1066, 1067, 1068, 1068, + 1069, 1069, 1070, 1070, 1071, 1071, 1071, 1071, 1071, 1071, + 1071, 1071, 1071, 1072, 1072, 1074, 1073, 1075, 1075, 1075, + 1075, 1075, 1076, 1075, 1075, 1075, 1075, 1075, 1077, 1075, + 1075, 1075, 1075, 1075, 1075, 1075, 1075, 1075, 1075, 1075, + 1075, 1075, 1075, 1075, 1075, 1075, 1075, 1075, 1075, 1075, + 1075, 1075, 1075, 1075, 1075, 1075, 1075, 1075, 1075, 1075, + 1075, 1075, 1075, 1075, 1075, 1075, 1078, 1078, 1079, 1079, + 1080, 1080, 1081, 1081, 1082, 1082, 1083, 1083, 1084, 1084, + 1085, 1085, 1086, 1086, 1086, 1088, 1087, 1089, 1087, 1090, + 1090, 1091, 1091, 1092, 1092, 1092, 1094, 1093, 1095, 1095, + 1097, 1096, 1096, 1096, 1096, 1096, 1096, 1096, 1096, 1096, + 1096, 1096, 1096, 1096, 1098, 1098, 1100, 1099, 1101, 1101, + 1102, 1102, 1102, 1104, 1103, 1105, 1106, 1106, 1108, 1107, + 1109, 1109, 1109, 1110, 1112, 1111, 1111, 1114, 1115, 1116, + 1113, 1113, 1117, 1117, 1118, 1118, 1118, 1119, 1119, 1119, + 1120, 1120, 1121, 1121, 1122, 1122, 1122, 1122, 1123, 1123, + 1124, 1124, 1125, 1125, 1126, 1126, 1127, 1127, 1127, 1128, + 1128, 1129, 1129, 1130, 1130, 1131, 1131, 1131, 1131, 1132, + 1132, 1132, 1133, 1134, 1134, 1134, 1135, 1135, 1135, 1135, + 1135, 1135, 1135, 1135, 1135, 1135, 1135, 1135, 1136, 1136, + 1136, 1136, 1136, 1137, 1137, 1138, 1138, 1139, 1140, 1140, + 1141, 1141, 1142, 1142, 1142, 1143, 1143, 1143, 1143, 1144, + 1144, 1144, 1145, 1146, 1146, 1147, 1148, 1149, 1150, 1150, + 1151, 1151, 1152, 1152, 1152, 1153, 1153, 1153, 1154, 1154, + 1154, 1154, 1154, 1154, 1154, 1154, 1154, 1154, 1154, 1154, + 1154, 1154, 1154, 1154, 1154, 1154, 1154, 1154, 1154, 1154, + 1154, 1154, 1154, 1154, 1154, 1154, 1154, 1154, 1154, 1154, + 1154, 1154, 1154, 1154, 1154, 1154, 1154, 1155, 1155, 1155, + 1155, 1155, 1155, 1155, 1155, 1155, 1155, 1155, 1155, 1155, + 1155, 1155, 1155, 1155, 1155, 1155, 1155, 1155, 1155, 1155, + 1155, 1155, 1155, 1155, 1155, 1155, 1155, 1155, 1155, 1155, + 1155, 1155, 1155, 1155, 1155, 1155, 1155, 1155, 1155, 1155, + 1155, 1155, 1155, 1155, 1155, 1155, 1155, 1155, 1155, 1155, + 1155, 1155, 1155, 1155, 1155, 1155, 1155, 1155, 1155, 1155, + 1155, 1155, 1155, 1155, 1155, 1155, 1155, 1155, 1155, 1155, + 1155, 1155, 1155, 1155, 1155, 1155, 1155, 1155, 1155, 1155, + 1155, 1155, 1155, 1155, 1155, 1155, 1155, 1155, 1155, 1155, + 1155, 1155, 1155, 1155, 1155, 1155, 1155, 1155, 1155, 1155, + 1155, 1155, 1155, 1155, 1155, 1155, 1155, 1155, 1155, 1155, + 1155, 1155, 1155, 1155, 1155, 1155, 1155, 1155, 1155, 1155, + 1155, 1155, 1155, 1155, 1155, 1155, 1155, 1155, 1155, 1155, + 1155, 1155, 1155, 1155, 1155, 1155, 1155, 1155, 1155, 1155, + 1155, 1155, 1155, 1155, 1155, 1155, 1155, 1155, 1155, 1155, + 1155, 1155, 1155, 1155, 1155, 1155, 1155, 1155, 1155, 1155, + 1155, 1155, 1155, 1155, 1155, 1155, 1155, 1155, 1155, 1155, + 1155, 1155, 1155, 1155, 1155, 1155, 1155, 1155, 1155, 1155, + 1155, 1155, 1155, 1155, 1155, 1155, 1155, 1155, 1155, 1155, + 1155, 1155, 1155, 1155, 1155, 1155, 1155, 1155, 1155, 1155, + 1155, 1155, 1155, 1155, 1155, 1155, 1155, 1155, 1155, 1155, + 1155, 1155, 1155, 1155, 1155, 1155, 1155, 1155, 1155, 1155, + 1155, 1155, 1157, 1156, 1158, 1158, 1159, 1159, 1161, 1160, + 1162, 1162, 1162, 1162, 1163, 1163, 1164, 1164, 1164, 1164, + 1165, 1165, 1165, 1165, 1166, 1166, 1167, 1167, 1168, 1168, + 1168, 1168, 1168, 1168, 1168, 1169, 1169, 1169, 1170, 1170, + 1170, 1170, 1171, 1171, 1171, 1172, 1172, 1172, 1172, 1172, + 1174, 1173, 1175, 1175, 1176, 1176, 1177, 1178, 1178, 1178, + 1178, 1180, 1179, 1181, 1181, 1182, 1181, 1183, 1183, 1184, + 1184, 1185, 1185, 1185, 1185, 1186, 1185, 1187, 1187, 1187, + 1187, 1187, 1188, 1189, 1189, 1189, 1189, 1190, 1191, 1191, + 1191, 1192, 1192, 1193, 1193, 1194, 1194, 1195, 1195, 1197, + 1196, 1198, 1196, 1199, 1196, 1200, 1196, 1196, 1196, 1196, + 1196, 1196, 1196, 1196, 1196, 1196, 1196, 1196, 1196, 1196, + 1196, 1196, 1196, 1196, 1196, 1196, 1196, 1196, 1196, 1196, + 1201, 1201, 1202, 1202, 1203, 1203, 1203, 1204, 1204, 1204, + 1204, 1205, 1205, 1206, 1206, 1207, 1207, 1207, 1208, 1208, + 1209, 1209, 1210, 1211, 1211, 1211, 1211, 1211, 1212, 1212, + 1213, 1213, 1214, 1214, 1214, 1214, 1214, 1216, 1215, 1217, + 1217, 1218, 1218, 1218, 1219, 1219, 1219, 1220, 1220, 1221, + 1222, 1222, 1223, 1224, 1225, 1225, 1227, 1226, 1228, 1228, + 1228, 1230, 1229, 1231, 1231, 1232, 1232, 1232, 1233, 1234, + 1233, 1235, 1236, 1237, 1238, 1238, 1239, 1239, 1239, 1240, + 1240, 1241, 1241, 1241, 1242, 1243, 1243, 1243, 1244, 1244, + 1245, 1245, 1245, 1247, 1246, 1248, 1248, 1249, 1249, 1251, + 1250, 1252, 1252, 1253, 1253, 1253, 1253, 1255, 1254, 1257, + 1256, 1258, 1259, 1260, 1261, 1256, 1262, 1262, 1262, 1262, + 1262, 1262, 1263, 1263, 1263, 1264, 1264, 1265, 1265, 1265, + 1266, 1266, 1267, 1268, 1267, 1269, 1269, 1271, 1270, 1273, + 1272, 1274, 1272, 1272, 1272, 1272, 1275, 1275 }; /* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */ @@ -3339,99 +3435,100 @@ 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, 3, 1, 1, 4, 1, 2, 0, - 4, 0, 2, 3, 1, 2, 0, 3, 0, 5, - 1, 3, 3, 3, 3, 3, 3, 3, 3, 3, - 3, 3, 3, 1, 3, 3, 3, 3, 0, 7, - 0, 11, 0, 6, 0, 3, 4, 0, 3, 1, - 4, 0, 0, 0, 0, 0, 12, 0, 2, 0, - 2, 2, 2, 2, 2, 3, 3, 1, 1, 1, - 2, 3, 3, 0, 4, 0, 3, 0, 1, 3, - 1, 0, 1, 3, 1, 0, 3, 0, 1, 3, - 1, 4, 0, 1, 1, 1, 0, 3, 2, 3, - 0, 3, 0, 5, 5, 0, 7, 5, 0, 2, - 1, 1, 1, 3, 1, 3, 0, 1, 1, 1, - 1, 2, 1, 1, 3, 0, 2, 0, 2, 0, - 3, 0, 5, 1, 1, 0, 2, 2, 2, 2, - 0, 6, 2, 0, 2, 1, 1, 3, 0, 0, - 0, 7, 0, 2, 2, 1, 1, 0, 0, 8, - 0, 6, 1, 2, 1, 2, 0, 0, 6, 0, - 0, 6, 0, 2, 0, 5, 0, 1, 0, 5, - 4, 0, 0, 8, 0, 7, 1, 1, 1, 1, - 1, 2, 2, 2, 4, 4, 0, 4, 0, 0, - 5, 0, 7, 0, 0, 6, 0, 1, 0, 1, - 1, 2, 1, 1, 0, 1, 1, 2, 1, 0, - 3, 0, 1, 1, 2, 1, 2, 3, 3, 3, + 1, 1, 1, 1, 3, 1, 1, 4, 1, 2, + 0, 4, 0, 2, 3, 1, 2, 0, 3, 0, + 5, 1, 3, 3, 3, 3, 3, 3, 3, 3, + 3, 3, 3, 3, 1, 3, 3, 3, 3, 0, + 7, 0, 11, 0, 6, 0, 3, 4, 0, 3, + 1, 4, 0, 0, 0, 0, 0, 12, 0, 2, + 0, 2, 2, 2, 2, 2, 3, 3, 1, 1, + 1, 2, 3, 3, 0, 4, 0, 3, 0, 1, + 3, 1, 0, 1, 3, 1, 0, 3, 0, 1, + 3, 1, 4, 0, 1, 1, 1, 0, 3, 2, + 3, 0, 3, 0, 5, 5, 0, 7, 5, 0, + 2, 1, 1, 1, 3, 1, 3, 0, 1, 1, + 1, 1, 2, 1, 1, 3, 0, 2, 0, 2, + 0, 3, 0, 5, 1, 1, 0, 2, 2, 2, + 2, 0, 6, 2, 0, 2, 1, 1, 3, 0, + 0, 0, 7, 0, 2, 2, 1, 1, 0, 0, + 8, 0, 6, 1, 2, 1, 2, 0, 0, 6, + 0, 0, 6, 0, 2, 0, 5, 0, 1, 0, + 5, 4, 0, 0, 8, 0, 7, 1, 1, 1, + 1, 1, 2, 2, 2, 4, 4, 0, 4, 0, + 0, 5, 0, 7, 0, 0, 6, 0, 1, 0, + 1, 1, 2, 1, 1, 0, 1, 1, 2, 1, + 0, 3, 0, 1, 1, 2, 1, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, - 3, 3, 3, 3, 5, 1, 1, 3, 4, 4, - 3, 4, 4, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 2, 0, 1, - 1, 1, 1, 1, 1, 3, 1, 1, 2, 2, - 6, 7, 8, 2, 2, 0, 1, 2, 0, 1, - 2, 0, 4, 3, 3, 3, 1, 4, 1, 1, - 5, 2, 5, 2, 4, 1, 5, 5, 4, 3, - 1, 1, 2, 1, 1, 2, 1, 1, 1, 2, - 3, 2, 3, 2, 2, 3, 3, 3, 0, 6, - 0, 6, 2, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 2, 2, 1, 2, 1, 2, - 3, 2, 1, 1, 1, 1, 1, 1, 1, 2, - 0, 3, 1, 5, 0, 1, 2, 1, 1, 1, - 1, 0, 3, 0, 1, 0, 1, 2, 1, 1, - 2, 2, 4, 1, 3, 2, 1, 2, 2, 2, - 2, 1, 2, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 0, 2, 1, 1, 0, 1, 0, - 2, 1, 2, 3, 2, 0, 1, 0, 1, 1, - 2, 0, 1, 0, 4, 1, 4, 3, 1, 0, - 1, 2, 1, 3, 3, 2, 2, 2, 1, 1, - 2, 2, 2, 1, 2, 2, 2, 2, 1, 1, - 0, 1, 1, 1, 1, 0, 1, 1, 1, 0, - 2, 2, 1, 1, 1, 4, 2, 1, 4, 0, - 1, 0, 2, 1, 3, 0, 6, 0, 5, 0, - 5, 0, 5, 0, 11, 0, 1, 0, 2, 2, - 1, 3, 2, 3, 2, 4, 0, 6, 0, 0, - 8, 4, 4, 3, 3, 2, 2, 6, 5, 3, - 5, 1, 1, 1, 0, 1, 0, 1, 0, 1, - 1, 0, 2, 1, 0, 1, 1, 1, 0, 5, - 3, 0, 5, 3, 3, 0, 3, 0, 2, 1, - 3, 0, 1, 1, 0, 2, 1, 3, 0, 6, - 0, 6, 0, 5, 0, 1, 1, 0, 6, 0, - 1, 1, 2, 1, 1, 1, 0, 6, 0, 5, - 0, 1, 1, 2, 1, 1, 1, 1, 1, 2, - 0, 6, 0, 1, 1, 0, 4, 4, 3, 5, - 1, 3, 3, 5, 1, 3, 2, 1, 1, 0, - 6, 1, 3, 3, 0, 2, 0, 4, 0, 2, - 1, 2, 4, 2, 3, 0, 3, 0, 0, 6, - 2, 1, 1, 2, 2, 8, 4, 0, 1, 2, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 0, 2, 4, 3, 1, 1, 4, 0, 0, - 1, 1, 0, 2, 2, 1, 1, 0, 2, 0, - 3, 0, 3, 3, 0, 3, 0, 3, 2, 1, - 3, 4, 3, 4, 3, 4, 1, 3, 4, 3, - 3, 6, 1, 5, 6, 5, 7, 6, 8, 5, - 6, 4, 4, 5, 3, 4, 1, 3, 1, 3, - 1, 3, 3, 1, 3, 3, 4, 4, 1, 3, - 3, 3, 3, 3, 1, 3, 1, 1, 1, 1, + 3, 3, 3, 3, 3, 5, 1, 1, 3, 4, + 4, 3, 4, 4, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 2, 0, + 1, 1, 1, 1, 1, 1, 3, 1, 1, 2, + 2, 6, 7, 8, 2, 2, 0, 1, 2, 0, + 1, 2, 0, 4, 3, 3, 3, 1, 4, 1, + 1, 5, 2, 5, 2, 4, 1, 5, 5, 4, + 3, 1, 1, 2, 1, 1, 2, 1, 1, 1, + 2, 3, 2, 3, 2, 2, 3, 3, 3, 0, + 6, 0, 6, 2, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 2, 2, 1, 2, 1, + 2, 3, 2, 1, 1, 1, 1, 1, 1, 1, + 2, 0, 3, 1, 5, 0, 1, 2, 1, 1, + 1, 1, 0, 3, 0, 1, 0, 1, 2, 1, + 1, 2, 2, 4, 1, 3, 2, 1, 2, 2, + 2, 2, 1, 2, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 0, 2, 1, 1, 0, 1, + 0, 2, 1, 2, 3, 2, 0, 1, 0, 1, + 1, 2, 0, 1, 0, 4, 1, 4, 3, 1, + 0, 1, 2, 1, 3, 3, 2, 2, 2, 1, + 1, 2, 2, 2, 1, 2, 2, 2, 2, 1, + 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, + 0, 2, 2, 1, 1, 1, 4, 2, 1, 4, + 0, 1, 0, 2, 1, 3, 0, 6, 0, 5, + 0, 5, 0, 5, 0, 11, 0, 1, 0, 2, + 2, 1, 3, 2, 3, 2, 4, 0, 6, 0, + 0, 8, 4, 4, 3, 3, 2, 2, 6, 5, + 3, 5, 1, 1, 1, 0, 1, 0, 1, 0, + 1, 1, 0, 2, 1, 0, 1, 1, 1, 0, + 5, 3, 0, 5, 3, 3, 0, 3, 0, 2, + 1, 3, 0, 1, 1, 0, 2, 1, 3, 0, + 6, 0, 6, 0, 5, 0, 1, 1, 0, 6, + 0, 1, 1, 2, 1, 1, 1, 0, 6, 0, + 5, 0, 1, 1, 2, 1, 1, 1, 1, 1, + 2, 0, 6, 0, 1, 1, 0, 4, 4, 3, + 5, 1, 3, 3, 5, 1, 3, 2, 1, 1, + 0, 6, 1, 3, 3, 0, 2, 0, 4, 0, + 2, 1, 2, 4, 2, 3, 0, 3, 0, 0, + 6, 2, 1, 1, 2, 2, 8, 4, 0, 1, + 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 0, 2, 4, 3, 1, 1, 4, 0, + 0, 1, 1, 0, 2, 2, 1, 1, 0, 2, + 0, 3, 0, 3, 3, 0, 3, 0, 3, 2, + 1, 3, 4, 3, 4, 3, 4, 1, 3, 4, + 3, 3, 6, 1, 5, 6, 5, 7, 6, 8, + 5, 6, 4, 4, 5, 3, 4, 1, 3, 1, + 3, 1, 3, 3, 1, 3, 3, 4, 4, 1, + 3, 3, 3, 3, 3, 1, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 2, 1, 3, 1, 1, 1, 1, - 3, 2, 2, 2, 2, 3, 3, 5, 6, 4, - 4, 7, 4, 2, 6, 5, 6, 6, 4, 4, - 3, 4, 6, 8, 6, 8, 6, 4, 6, 4, - 6, 4, 4, 4, 4, 6, 8, 2, 2, 4, - 2, 7, 7, 3, 4, 4, 6, 6, 4, 6, - 6, 6, 4, 6, 4, 6, 8, 10, 12, 6, - 4, 6, 6, 1, 6, 4, 8, 10, 4, 1, - 3, 4, 6, 6, 8, 6, 6, 4, 6, 6, - 8, 4, 4, 6, 4, 2, 4, 4, 4, 6, - 4, 4, 3, 8, 6, 4, 6, 3, 6, 8, - 4, 8, 6, 8, 6, 8, 2, 4, 4, 4, - 6, 8, 8, 4, 7, 7, 7, 6, 6, 6, - 6, 6, 6, 0, 5, 10, 3, 4, 3, 2, - 2, 2, 4, 6, 4, 4, 6, 6, 6, 6, - 4, 6, 4, 6, 4, 4, 4, 4, 6, 4, - 6, 4, 6, 4, 4, 6, 4, 6, 4, 6, - 4, 4, 6, 4, 6, 0, 3, 3, 0, 1, - 0, 2, 1, 3, 4, 4, 5, 4, 4, 4, - 5, 4, 0, 0, 7, 10, 4, 5, 4, 5, + 1, 1, 1, 1, 2, 1, 3, 1, 1, 1, + 1, 3, 2, 2, 2, 2, 3, 3, 5, 6, + 4, 4, 7, 4, 2, 6, 5, 6, 6, 4, + 4, 3, 4, 6, 8, 6, 8, 6, 4, 6, + 4, 6, 4, 4, 4, 4, 6, 8, 2, 2, + 4, 2, 7, 7, 3, 4, 4, 6, 6, 4, + 6, 6, 6, 4, 6, 4, 6, 8, 10, 12, + 6, 4, 6, 6, 1, 6, 4, 8, 10, 4, + 1, 3, 4, 6, 6, 8, 6, 6, 4, 6, + 6, 8, 4, 4, 6, 4, 2, 4, 4, 4, + 6, 4, 4, 3, 8, 6, 4, 6, 3, 6, + 8, 4, 8, 6, 8, 6, 8, 2, 4, 4, + 4, 6, 8, 8, 4, 7, 7, 7, 6, 6, + 6, 6, 6, 6, 0, 5, 10, 3, 4, 3, + 2, 2, 2, 4, 6, 4, 4, 6, 6, 6, + 6, 4, 6, 4, 6, 4, 4, 4, 4, 6, + 4, 6, 4, 6, 4, 4, 6, 4, 6, 4, + 6, 4, 4, 6, 4, 6, 0, 3, 3, 0, + 1, 0, 2, 1, 3, 4, 4, 5, 4, 4, + 4, 5, 4, 0, 0, 7, 10, 0, 0, 6, + 0, 0, 6, 0, 0, 6, 4, 5, 4, 5, 4, 4, 4, 4, 4, 5, 0, 8, 0, 3, 3, 1, 4, 0, 1, 0, 2, 0, 1, 0, 3, 2, 3, 2, 1, 2, 1, 2, 1, 1, @@ -3468,25 +3565,26 @@ 4, 4, 0, 4, 6, 16, 2, 2, 0, 6, 5, 2, 2, 2, 1, 5, 5, 2, 2, 1, 4, 3, 2, 2, 2, 3, 2, 2, 2, 1, - 1, 3, 4, 3, 3, 2, 2, 3, 3, 3, - 3, 3, 3, 1, 1, 1, 1, 0, 1, 0, - 2, 0, 1, 1, 1, 0, 2, 0, 2, 0, - 2, 2, 0, 4, 0, 4, 1, 1, 0, 1, - 0, 1, 1, 0, 4, 3, 1, 0, 3, 4, - 2, 1, 1, 1, 1, 1, 1, 1, 1, 0, - 1, 0, 3, 3, 1, 1, 1, 2, 0, 3, - 3, 2, 2, 0, 4, 0, 1, 1, 2, 0, - 4, 5, 0, 0, 0, 16, 2, 0, 1, 0, - 1, 1, 0, 1, 1, 0, 2, 2, 1, 3, - 4, 3, 3, 0, 2, 2, 1, 3, 3, 0, - 3, 0, 3, 2, 3, 1, 1, 2, 0, 2, - 1, 1, 2, 2, 1, 1, 1, 1, 1, 2, - 2, 1, 1, 1, 1, 1, 1, 1, 2, 2, - 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, - 3, 5, 1, 1, 1, 1, 1, 3, 4, 5, - 1, 5, 3, 2, 1, 3, 2, 1, 1, 1, + 1, 3, 4, 3, 3, 2, 2, 2, 2, 2, + 3, 3, 3, 3, 3, 3, 1, 1, 1, 1, + 0, 1, 0, 2, 0, 1, 1, 1, 0, 2, + 0, 2, 0, 2, 2, 0, 4, 0, 4, 1, + 1, 0, 1, 0, 1, 1, 0, 4, 3, 1, + 0, 3, 4, 2, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 0, 1, 0, 3, 3, 1, + 1, 1, 2, 0, 3, 3, 2, 2, 0, 4, + 0, 1, 1, 2, 0, 4, 5, 0, 0, 0, + 16, 2, 0, 1, 0, 1, 1, 0, 1, 1, + 0, 2, 2, 1, 3, 4, 3, 3, 0, 2, + 2, 1, 3, 3, 0, 3, 0, 3, 2, 3, + 1, 1, 2, 0, 2, 1, 1, 2, 2, 1, + 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, + 1, 1, 1, 2, 2, 2, 2, 2, 1, 1, + 1, 1, 1, 1, 1, 3, 5, 1, 1, 1, + 1, 1, 3, 4, 5, 1, 5, 3, 2, 1, + 3, 2, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 3, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 3, 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, @@ -3512,33 +3610,34 @@ 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, 4, 0, 1, 1, - 3, 0, 2, 1, 1, 1, 1, 0, 1, 0, - 1, 1, 1, 0, 2, 2, 2, 1, 2, 4, - 5, 4, 6, 2, 3, 3, 3, 5, 1, 3, - 3, 2, 2, 2, 1, 1, 4, 4, 1, 1, - 1, 1, 1, 0, 4, 1, 1, 1, 3, 3, - 1, 1, 2, 2, 0, 3, 4, 3, 0, 7, - 1, 2, 1, 1, 1, 1, 1, 1, 0, 5, - 1, 1, 1, 1, 1, 3, 6, 6, 6, 7, - 3, 8, 8, 8, 0, 1, 1, 2, 0, 1, - 1, 3, 0, 3, 0, 3, 0, 3, 0, 3, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 2, 2, 1, 3, 2, 2, 2, 2, 2, - 2, 2, 2, 0, 1, 3, 1, 2, 2, 2, - 1, 3, 3, 1, 1, 3, 1, 3, 4, 5, - 1, 0, 3, 3, 1, 1, 0, 2, 2, 2, - 2, 0, 2, 2, 1, 2, 2, 2, 2, 2, - 0, 3, 0, 1, 0, 3, 2, 0, 1, 2, - 0, 1, 4, 4, 5, 2, 3, 0, 1, 0, - 4, 0, 1, 1, 0, 2, 2, 1, 0, 1, - 1, 4, 0, 7, 1, 0, 0, 2, 3, 1, - 1, 1, 0, 3, 1, 2, 1, 2, 3, 3, - 3, 0, 1, 0, 3, 3, 0, 8, 0, 3, - 1, 3, 0, 2, 3, 5, 0, 3, 4, 4, - 0, 14, 0, 6, 0, 0, 0, 0, 12, 4, - 4, 3, 4, 3, 2, 1, 3, 5, 1, 1, - 0, 1, 1, 0, 2, 0, 0, 3, 0, 2 + 1, 1, 0, 4, 0, 1, 1, 3, 0, 2, + 1, 1, 1, 1, 0, 1, 0, 1, 1, 1, + 0, 2, 2, 2, 1, 2, 4, 5, 4, 6, + 2, 3, 3, 3, 5, 1, 3, 3, 2, 2, + 2, 1, 1, 4, 4, 1, 1, 1, 1, 1, + 0, 4, 1, 1, 1, 3, 3, 1, 1, 2, + 2, 0, 3, 4, 3, 0, 7, 1, 2, 1, + 1, 1, 1, 1, 1, 0, 5, 1, 1, 1, + 1, 1, 3, 6, 6, 6, 7, 3, 8, 8, + 8, 0, 1, 1, 2, 0, 1, 1, 3, 0, + 3, 0, 3, 0, 3, 0, 3, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, + 1, 3, 2, 2, 2, 2, 2, 2, 2, 2, + 0, 1, 3, 1, 2, 2, 2, 1, 3, 3, + 1, 1, 3, 1, 3, 4, 5, 1, 0, 3, + 3, 1, 1, 0, 2, 2, 2, 2, 0, 2, + 2, 1, 2, 2, 2, 2, 2, 0, 3, 0, + 1, 0, 3, 2, 0, 1, 2, 0, 1, 4, + 4, 5, 2, 3, 0, 1, 0, 4, 0, 1, + 1, 0, 2, 2, 1, 0, 1, 1, 4, 0, + 7, 1, 0, 0, 2, 3, 1, 1, 1, 0, + 3, 1, 2, 1, 2, 3, 3, 3, 0, 1, + 0, 3, 3, 0, 8, 0, 3, 1, 3, 0, + 2, 3, 5, 0, 3, 4, 4, 0, 14, 0, + 6, 0, 0, 0, 0, 12, 4, 4, 3, 4, + 3, 2, 1, 3, 5, 1, 1, 0, 1, 1, + 0, 2, 0, 0, 3, 0, 2, 0, 4, 0, + 9, 0, 13, 2, 2, 4, 0, 2 }; /* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state @@ -3546,6142 +3645,6235 @@ means the default is an error. */ static const unsigned short int yydefact[] = { - 0, 2, 2001, 632, 0, 1950, 0, 0, 0, 0, - 0, 1952, 94, 54, 1268, 1376, 1377, 1191, 1207, 0, - 632, 97, 0, 66, 1209, 1413, 0, 0, 632, 0, - 1408, 0, 0, 632, 1212, 1401, 0, 97, 1952, 0, - 667, 1787, 1305, 0, 0, 0, 1288, 1844, 1257, 0, - 0, 0, 0, 0, 4, 15, 0, 32, 20, 24, - 10, 14, 9, 6, 46, 47, 39, 8, 12, 36, - 7, 11, 29, 35, 30, 31, 43, 660, 18, 19, - 25, 37, 50, 16, 48, 45, 17, 1378, 21, 38, - 33, 26, 51, 27, 44, 28, 49, 23, 40, 22, - 5, 13, 41, 42, 34, 52, 0, 535, 0, 567, - 0, 0, 2002, 1992, 634, 633, 0, 1836, 1835, 600, - 1952, 0, 1560, 1561, 1562, 1563, 1564, 1565, 1566, 1524, - 1567, 1568, 1569, 1525, 1526, 1570, 1571, 1572, 1573, 1575, - 1574, 1576, 1527, 1528, 1577, 1578, 1579, 1529, 1530, 1580, - 1581, 1531, 1582, 1583, 1584, 1532, 1585, 1533, 1586, 1587, - 1588, 1589, 1534, 1590, 1591, 1592, 1593, 1594, 1595, 1596, - 1535, 1597, 1598, 1599, 1600, 1616, 1601, 1536, 1602, 1603, - 1604, 1617, 1537, 1607, 1606, 1605, 1608, 1609, 1610, 1538, - 1611, 1612, 1613, 1614, 1619, 1620, 1621, 1539, 1615, 1622, - 1618, 1770, 1624, 1623, 1625, 1627, 1626, 1540, 1628, 1541, - 1629, 1630, 1508, 1631, 1509, 1633, 1634, 1637, 1638, 1632, - 1639, 1640, 1635, 1636, 1542, 1642, 1643, 1644, 1645, 1646, - 1647, 1648, 1658, 1651, 1653, 1654, 1656, 1652, 1657, 1661, - 1660, 1662, 1663, 1664, 1659, 1650, 1655, 1665, 1666, 1649, - 1667, 1668, 1669, 1670, 1671, 1672, 1673, 1674, 1675, 1677, - 1676, 1678, 1679, 1680, 1681, 1682, 1684, 1683, 1685, 1686, - 1687, 1689, 1688, 1690, 1543, 1691, 1692, 1693, 1694, 1695, - 1544, 1696, 1697, 1698, 1699, 1700, 1701, 1702, 1545, 1703, - 1704, 1705, 1706, 1707, 1708, 1709, 1710, 1711, 1712, 1713, - 1714, 1715, 1716, 1717, 1718, 1719, 1720, 1641, 1721, 1546, - 1722, 1723, 1547, 1724, 1548, 1725, 1726, 1549, 1727, 1728, - 1729, 1730, 1731, 1732, 1550, 1733, 1551, 1735, 1734, 1736, - 1738, 1739, 1552, 1737, 1553, 1740, 1741, 1742, 1744, 1743, - 1745, 1746, 1554, 1747, 1555, 1748, 1749, 1750, 1751, 1752, - 1753, 1754, 1755, 1756, 1757, 1758, 1759, 1760, 1763, 1764, - 1765, 1766, 1761, 1762, 1556, 1767, 1768, 1769, 1771, 1772, - 1557, 1773, 1774, 1559, 1775, 1776, 1779, 1777, 1778, 1780, - 1781, 1782, 1783, 1558, 1784, 123, 1513, 99, 1514, 1523, - 0, 602, 618, 1953, 1954, 269, 507, 508, 268, 506, - 97, 1992, 0, 265, 266, 0, 1282, 1014, 1205, 1205, - 0, 1205, 1208, 1205, 97, 1205, 0, 59, 1383, 0, - 0, 0, 0, 1507, 0, 1215, 1415, 1419, 0, 0, - 1833, 0, 0, 0, 0, 97, 635, 0, 1266, 0, - 598, 0, 1954, 1965, 661, 665, 677, 1788, 1785, 1361, - 587, 587, 587, 585, 587, 1289, 0, 0, 1266, 1418, - 2038, 0, 0, 0, 2034, 0, 2039, 0, 667, 0, - 0, 1, 3, 0, 1612, 1374, 1372, 1504, 0, 527, - 536, 531, 529, 0, 0, 2003, 616, 0, 1951, 0, - 644, 654, 125, 0, 68, 0, 0, 0, 1957, 0, - 0, 0, 0, 95, 318, 1992, 1994, 1996, 269, 267, - 0, 1286, 1285, 1284, 0, 1282, 1192, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 1205, 61, 0, 1878, - 1893, 1894, 1890, 1895, 1896, 1900, 0, 1892, 1884, 0, - 1899, 1888, 1897, 0, 1882, 0, 1898, 1903, 1886, 1891, - 1870, 0, 1876, 1880, 1506, 1111, 1847, 1848, 0, 1519, - 1510, 1518, 1517, 67, 1217, 1218, 1216, 566, 1416, 1417, - 0, 1429, 0, 0, 0, 630, 0, 1356, 1355, 0, - 1409, 1966, 0, 0, 607, 1220, 1267, 0, 1219, 1406, - 0, 1405, 1402, 1404, 0, 1878, 1865, 0, 1960, 1957, - 1967, 690, 683, 682, 685, 686, 689, 687, 688, 684, - 681, 698, 678, 680, 1791, 0, 0, 443, 0, 1369, - 0, 0, 0, 1369, 0, 1146, 1362, 0, 1800, 1340, - 504, 503, 0, 502, 1801, 1339, 1355, 0, 0, 0, - 1324, 0, 1290, 1329, 1802, 0, 1358, 0, 1146, 1369, - 0, 1306, 0, 0, 0, 0, 581, 591, 583, 578, - 0, 584, 580, 1287, 1204, 1845, 566, 1466, 1465, 1511, - 2035, 1464, 2043, 2045, 2031, 2033, 2040, 663, 0, 1971, - 53, 0, 1380, 1999, 2000, 1998, 457, 107, 107, 525, - 0, 0, 0, 0, 0, 1202, 0, 0, 646, 656, - 127, 124, 98, 0, 604, 620, 1956, 0, 0, 1958, - 1962, 772, 771, 0, 92, 707, 1520, 1930, 96, 1926, - 1997, 319, 698, 698, 698, 1987, 0, 1989, 1990, 1991, - 2003, 1995, 0, 509, 0, 1269, 1272, 1276, 1280, 1283, - 1561, 1524, 0, 1569, 0, 0, 1477, 0, 0, 0, - 0, 1529, 0, 0, 1583, 0, 0, 1534, 0, 0, - 0, 707, 707, 707, 0, 0, 0, 1595, 1596, 1486, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 1474, 0, 1487, 0, 0, 0, 0, 0, 0, 0, - 1624, 0, 0, 1625, 0, 0, 0, 1476, 1630, 0, - 0, 0, 0, 0, 0, 0, 1645, 0, 0, 1484, - 0, 0, 1020, 0, 1672, 1674, 0, 0, 0, 1678, - 0, 0, 1679, 1680, 1681, 1461, 774, 0, 707, 1473, - 1483, 1693, 1699, 1467, 0, 1701, 0, 1702, 0, 1709, - 0, 0, 0, 0, 0, 0, 1731, 1733, 0, 0, - 1750, 0, 0, 0, 707, 1763, 1764, 1765, 1766, 0, - 1475, 1556, 1485, 0, 0, 0, 1775, 707, 707, 707, - 0, 0, 0, 1781, 0, 1784, 1024, 0, 0, 0, - 0, 773, 0, 988, 0, 1016, 709, 714, 719, 726, - 732, 746, 748, 750, 753, 758, 764, 0, 859, 766, - 853, 789, 788, 1015, 1471, 787, 786, 1472, 784, 1494, - 1513, 1460, 1493, 1206, 1196, 1197, 0, 1198, 1201, 1924, - 1199, 568, 0, 0, 60, 1397, 1391, 1393, 1396, 1392, - 0, 1398, 1395, 1394, 1836, 1384, 1386, 1387, 1879, 1877, - 1911, 1910, 0, 1912, 1908, 1901, 1931, 1905, 1931, 1907, - 1906, 1931, 1902, 1909, 1931, 1874, 0, 1112, 1113, 0, - 1846, 0, 1505, 0, 1414, 1430, 0, 1431, 1420, 1427, - 649, 0, 1111, 1834, 1837, 0, 0, 56, 57, 0, - 637, 0, 636, 640, 0, 0, 0, 1223, 1213, 1222, - 1407, 0, 0, 1877, 1874, 1961, 0, 1963, 1978, 666, - 1968, 696, 668, 695, 0, 679, 1786, 1789, 1797, 1338, - 1365, 442, 0, 0, 1337, 1321, 0, 269, 0, 0, - 0, 0, 1307, 1312, 303, 0, 1328, 1147, 0, 1369, - 0, 1332, 1345, 1333, 0, 1359, 0, 1369, 1302, 0, - 0, 1294, 1299, 1295, 0, 1301, 1300, 1303, 1291, 1292, - 1317, 1346, 1359, 1322, 1327, 1336, 1363, 1364, 0, 1316, - 1323, 0, 1334, 1359, 1359, 1369, 1369, 594, 593, 592, - 588, 589, 594, 0, 1057, 0, 0, 2032, 2046, 2030, - 2041, 2042, 2029, 664, 1972, 662, 1973, 0, 1375, 1373, - 1381, 1382, 458, 528, 457, 260, 263, 262, 0, 532, - 530, 457, 1993, 0, 0, 620, 0, 0, 648, 643, - 647, 645, 499, 498, 501, 0, 655, 0, 128, 130, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 69, 70, 83, 606, 605, - 603, 628, 627, 625, 0, 626, 624, 619, 621, 622, - 1955, 1959, 270, 457, 0, 1522, 0, 0, 0, 0, - 0, 0, 0, 1988, 88, 0, 0, 0, 1274, 1270, - 1280, 0, 0, 0, 1111, 0, 0, 0, 1116, 0, - 803, 1116, 1116, 1116, 0, 0, 1014, 1014, 0, 1014, - 0, 0, 0, 0, 1116, 827, 830, 0, 828, 0, - 0, 0, 0, 0, 1480, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 1014, 0, 0, 0, 0, 993, - 0, 0, 0, 0, 783, 0, 0, 0, 0, 1014, - 0, 0, 0, 0, 1020, 0, 1018, 0, 1116, 0, - 0, 1116, 0, 0, 0, 0, 0, 1014, 1014, 1014, - 718, 0, 875, 0, 0, 0, 0, 0, 1014, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 1116, - 1116, 0, 0, 0, 1116, 0, 896, 0, 1482, 0, - 0, 0, 1481, 0, 0, 1479, 1478, 1462, 0, 0, - 0, 919, 921, 920, 1116, 0, 1116, 0, 0, 0, - 1025, 0, 792, 791, 793, 1985, 0, 0, 0, 0, - 0, 0, 0, 711, 716, 775, 0, 776, 777, 0, - 778, 779, 780, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 794, 1086, 1087, 1088, 1089, 1098, 1101, 1090, - 1091, 1092, 1100, 1093, 1094, 1095, 1102, 1103, 1104, 1096, - 1105, 1099, 1097, 1106, 0, 1085, 0, 0, 0, 1463, - 913, 0, 1194, 0, 570, 569, 1200, 568, 0, 62, - 64, 1390, 0, 0, 1399, 1904, 0, 1885, 1889, 1883, - 1887, 0, 0, 1875, 0, 1881, 1115, 1620, 1688, 0, - 1118, 1850, 1210, 1426, 1428, 0, 0, 1421, 0, 0, - 620, 58, 0, 0, 1410, 0, 0, 0, 0, 609, - 1221, 0, 1403, 0, 0, 0, 0, 0, 1964, 1980, - 1979, 1969, 698, 1137, 699, 701, 700, 1493, 1791, 1794, - 1795, 1798, 1796, 0, 1793, 1792, 1807, 0, 1367, 1370, - 1371, 0, 0, 1348, 1347, 1343, 1344, 0, 1156, 1157, - 1155, 1150, 1151, 1154, 1352, 1350, 1341, 0, 1369, 0, - 1351, 1349, 1296, 1297, 1298, 0, 1146, 0, 1369, 1359, - 0, 1369, 1369, 1331, 1335, 0, 582, 591, 579, 586, - 1069, 1068, 0, 1033, 0, 1032, 1031, 1030, 0, 1068, - 2036, 2044, 2048, 0, 1146, 1977, 1975, 261, 1244, 1244, - 0, 0, 0, 0, 0, 0, 0, 108, 117, 564, - 564, 1244, 1244, 564, 1244, 1244, 1244, 0, 0, 1244, - 0, 0, 564, 0, 1244, 562, 0, 0, 1244, 1244, - 1244, 564, 0, 1244, 1244, 1244, 1244, 1244, 574, 1244, - 1244, 1244, 561, 273, 295, 296, 526, 0, 540, 563, - 2004, 2005, 533, 617, 601, 1203, 0, 126, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 629, 623, 93, 708, 1521, - 0, 1927, 2024, 0, 0, 2006, 271, 512, 514, 513, - 511, 510, 0, 0, 1118, 0, 1277, 1057, 1281, 1280, - 1278, 0, 0, 0, 1117, 1116, 0, 999, 1164, 1165, - 1161, 1162, 1160, 1163, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 972, 0, - 999, 0, 833, 0, 0, 0, 0, 0, 0, 1493, - 0, 0, 0, 0, 0, 1985, 0, 0, 0, 0, - 0, 0, 810, 0, 0, 0, 0, 0, 0, 0, - 1109, 1107, 1110, 1108, 0, 0, 994, 986, 0, 0, - 0, 0, 860, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 1021, 1022, 1116, 0, 0, 0, - 1116, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 882, - 0, 0, 0, 0, 0, 887, 0, 0, 0, 0, - 0, 0, 0, 1116, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 916, 0, 918, 0, - 0, 1496, 1495, 0, 0, 0, 0, 0, 1026, 667, - 0, 796, 1014, 795, 0, 1803, 989, 991, 0, 713, - 710, 715, 729, 722, 727, 720, 724, 0, 781, 1566, - 730, 0, 0, 1125, 744, 0, 0, 747, 0, 0, - 0, 0, 749, 751, 752, 755, 859, 754, 859, 762, - 763, 759, 760, 761, 765, 0, 785, 790, 1017, 960, - 1497, 1195, 1925, 1193, 65, 0, 0, 1385, 1400, 1388, - 1935, 0, 1934, 1920, 1923, 1504, 0, 0, 0, 1860, - 1854, 1861, 1863, 1857, 1862, 1864, 1855, 1856, 1851, 1858, - 1119, 1148, 0, 0, 650, 651, 654, 0, 1840, 1841, - 1839, 1838, 631, 1412, 1411, 0, 638, 641, 642, 614, - 613, 615, 608, 610, 611, 253, 1227, 0, 0, 0, - 1233, 1214, 1224, 599, 0, 0, 0, 0, 0, 694, - 1057, 1185, 691, 672, 1148, 1138, 671, 702, 0, 1790, - 0, 1761, 1818, 0, 0, 0, 0, 0, 1808, 1366, - 0, 1318, 0, 1342, 1354, 1353, 1313, 0, 0, 0, - 1311, 1360, 0, 1330, 1293, 1310, 1118, 1359, 1308, 1309, - 596, 595, 590, 1068, 1057, 0, 0, 1054, 1070, 0, - 1070, 1057, 1057, 0, 1057, 1111, 1065, 0, 0, 2047, - 1139, 1976, 1242, 1243, 1245, 0, 0, 111, 114, 112, - 0, 113, 0, 0, 565, 519, 500, 500, 544, 0, - 335, 519, 493, 542, 0, 0, 0, 0, 0, 0, - 0, 0, 1244, 0, 555, 538, 0, 0, 0, 0, - 556, 0, 539, 1244, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 577, 576, 575, 0, 0, 0, - 0, 274, 457, 338, 0, 571, 335, 341, 1500, 2008, - 1082, 0, 1081, 129, 76, 72, 84, 1169, 1170, 1168, - 1166, 1167, 85, 74, 75, 79, 78, 80, 81, 82, - 77, 73, 86, 87, 71, 0, 1928, 0, 237, 236, - 0, 2022, 2008, 0, 338, 89, 1432, 272, 275, 90, - 1057, 1137, 1280, 1118, 0, 1111, 0, 802, 817, 0, - 0, 965, 0, 0, 967, 968, 969, 0, 821, 0, - 819, 822, 823, 824, 1014, 0, 0, 0, 0, 1014, - 971, 0, 829, 0, 0, 834, 835, 0, 808, 0, - 842, 0, 844, 0, 1014, 0, 838, 0, 799, 0, - 0, 1014, 0, 850, 0, 811, 0, 0, 951, 0, - 934, 930, 0, 932, 0, 0, 1014, 1014, 0, 855, - 0, 0, 861, 1014, 0, 953, 0, 935, 0, 867, - 0, 1014, 0, 1019, 0, 0, 0, 978, 871, 872, - 0, 976, 937, 0, 0, 874, 939, 0, 941, 0, - 936, 943, 944, 876, 878, 877, 946, 0, 0, 948, - 0, 950, 0, 880, 881, 0, 0, 0, 885, 0, - 1014, 890, 980, 982, 0, 0, 0, 0, 0, 984, - 897, 899, 0, 0, 0, 898, 0, 0, 0, 0, - 0, 0, 0, 903, 0, 0, 917, 983, 809, 981, - 922, 0, 925, 0, 924, 0, 0, 0, 0, 1984, - 1986, 0, 0, 800, 0, 0, 0, 0, 0, 1498, - 768, 767, 0, 770, 769, 0, 723, 728, 721, 725, - 0, 0, 0, 0, 742, 741, 0, 0, 1125, 745, - 0, 757, 756, 858, 0, 959, 698, 1014, 0, 63, - 1389, 1932, 0, 0, 0, 0, 0, 0, 0, 0, - 1849, 1149, 1254, 1512, 1422, 0, 658, 1842, 1843, 0, - 612, 677, 0, 1246, 1231, 1238, 1232, 0, 0, 0, - 1230, 1489, 1488, 1495, 1967, 0, 0, 0, 0, 1970, - 1118, 1118, 1179, 0, 0, 669, 674, 670, 673, 0, - 697, 706, 705, 1490, 1497, 0, 0, 0, 0, 445, - 447, 446, 453, 0, 444, 0, 0, 1803, 0, 449, - 451, 450, 1813, 448, 1368, 1146, 1326, 1325, 1153, 1152, - 0, 1304, 1320, 1369, 0, 1974, 1063, 0, 1056, 1055, - 1071, 0, 1057, 1070, 1070, 0, 1036, 1035, 1258, 1261, - 0, 1034, 1072, 1061, 677, 2037, 2049, 0, 456, 455, - 302, 452, 301, 116, 115, 121, 122, 340, 520, 494, - 495, 0, 0, 0, 500, 334, 519, 333, 336, 509, - 0, 285, 282, 546, 288, 284, 300, 0, 0, 289, - 519, 553, 554, 568, 278, 0, 314, 315, 313, 297, - 280, 281, 548, 1133, 1135, 1143, 287, 286, 283, 292, - 293, 311, 310, 291, 312, 559, 309, 307, 304, 306, - 305, 308, 290, 279, 0, 541, 0, 324, 326, 327, - 1503, 0, 573, 543, 0, 328, 329, 0, 0, 0, - 0, 657, 0, 1929, 2025, 240, 238, 239, 0, 0, - 0, 243, 0, 241, 0, 0, 1434, 1433, 242, 256, - 457, 276, 0, 1118, 1158, 1273, 1279, 0, 0, 0, - 966, 1000, 0, 421, 421, 1010, 1008, 410, 421, 1004, - 1009, 1006, 0, 0, 0, 0, 0, 0, 0, 973, - 970, 0, 0, 0, 1497, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 997, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 955, 1023, 979, 977, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 985, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 1027, 805, 1981, 1982, 797, 1804, 1805, 1806, - 521, 990, 712, 717, 0, 735, 1014, 733, 1124, 739, - 0, 0, 743, 0, 914, 0, 961, 962, 0, 1013, - 1499, 1933, 1922, 1921, 1936, 1936, 1936, 0, 1120, 0, - 1211, 1432, 652, 0, 653, 639, 698, 1228, 1240, 0, - 1248, 0, 0, 1225, 1235, 0, 0, 0, 1234, 0, - 1867, 1868, 1866, 1148, 1126, 0, 0, 1190, 0, 1186, - 692, 0, 704, 703, 0, 1820, 0, 1819, 1831, 1832, - 1829, 1830, 1828, 1809, 0, 1815, 1814, 0, 0, 0, - 1825, 1816, 0, 0, 1319, 0, 1314, 597, 0, 1057, - 1070, 1057, 1043, 0, 0, 1057, 1039, 1037, 1041, 0, - 1118, 0, 0, 0, 0, 1058, 698, 1492, 1140, 1143, - 337, 519, 496, 497, 509, 0, 0, 0, 0, 453, - 298, 552, 551, 299, 0, 0, 1144, 1145, 1136, 0, - 545, 338, 572, 473, 406, 355, 346, 421, 349, 348, - 392, 363, 360, 410, 408, 378, 410, 410, 385, 384, - 402, 388, 368, 459, 459, 367, 405, 459, 389, 387, - 391, 0, 393, 410, 398, 386, 390, 407, 383, 380, - 404, 421, 421, 361, 364, 403, 459, 0, 396, 421, - 425, 366, 459, 465, 0, 0, 421, 423, 1502, 2010, - 0, 2012, 1080, 142, 698, 0, 101, 2023, 2012, 0, - 246, 271, 257, 0, 277, 0, 1275, 0, 1271, 783, - 814, 818, 927, 0, 1001, 459, 0, 1011, 412, 1003, - 1005, 1007, 804, 820, 825, 929, 807, 806, 0, 0, - 0, 0, 840, 843, 845, 836, 841, 839, 0, 928, - 852, 849, 851, 812, 0, 952, 931, 933, 854, 865, - 995, 998, 0, 0, 0, 866, 862, 954, 863, 0, - 868, 837, 869, 0, 0, 0, 0, 938, 873, 940, - 942, 947, 945, 949, 879, 816, 0, 884, 886, 798, - 783, 888, 0, 894, 892, 0, 0, 900, 0, 0, - 909, 0, 907, 0, 908, 0, 910, 911, 0, 923, - 926, 1028, 0, 1967, 0, 992, 731, 0, 737, 1014, - 734, 740, 699, 698, 912, 0, 1941, 1941, 1941, 1253, - 1252, 0, 1251, 1255, 0, 659, 254, 0, 0, 0, - 1249, 1237, 1971, 1226, 1229, 1497, 1869, 676, 0, 1121, - 1189, 1187, 0, 1180, 1182, 1184, 0, 1491, 0, 0, - 1824, 1810, 454, 0, 0, 0, 0, 1811, 0, 1111, - 1064, 0, 0, 1030, 1057, 1057, 0, 1030, 0, 0, - 0, 1260, 1137, 1262, 1076, 1074, 1075, 1073, 1066, 0, - 1142, 0, 0, 0, 558, 0, 571, 560, 425, 1134, - 294, 325, 479, 0, 0, 365, 414, 409, 0, 414, - 414, 465, 467, 461, 465, 0, 374, 392, 369, 0, - 459, 382, 373, 394, 397, 399, 401, 414, 0, 459, - 362, 371, 0, 414, 433, 0, 0, 0, 429, 0, - 472, 0, 436, 342, 426, 428, 0, 0, 395, 0, - 351, 466, 0, 353, 0, 0, 414, 0, 424, 414, - 0, 2009, 0, 2016, 0, 145, 143, 144, 0, 138, - 140, 135, 0, 322, 323, 321, 320, 0, 131, 2016, - 244, 1971, 1432, 0, 249, 0, 1143, 517, 1159, 0, - 0, 1002, 0, 0, 974, 831, 832, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 801, 0, - 0, 0, 0, 0, 0, 0, 906, 904, 905, 0, - 1029, 1986, 522, 736, 0, 702, 963, 0, 0, 1940, - 1938, 0, 1939, 1937, 1913, 0, 1872, 1873, 1871, 1859, - 0, 0, 1423, 1148, 1239, 1241, 1247, 1236, 0, 1122, - 1137, 1435, 1183, 0, 693, 1822, 1821, 1823, 1817, 0, - 0, 0, 0, 1062, 1057, 1044, 0, 1048, 1053, 1049, - 0, 1040, 1038, 0, 1158, 0, 1148, 1143, 0, 0, - 0, 0, 0, 0, 0, 0, 557, 1468, 547, 549, - 0, 0, 0, 474, 475, 480, 482, 0, 0, 418, - 419, 420, 375, 415, 417, 0, 377, 345, 460, 468, - 469, 0, 464, 462, 465, 370, 400, 376, 0, 372, - 0, 359, 439, 438, 707, 431, 441, 0, 0, 437, - 427, 435, 430, 0, 0, 0, 0, 343, 0, 344, - 1501, 2011, 0, 534, 698, 698, 2013, 2026, 142, 0, - 0, 0, 0, 132, 134, 135, 2007, 247, 245, 0, - 1967, 91, 0, 516, 0, 815, 422, 411, 0, 826, - 846, 0, 813, 996, 987, 1116, 856, 0, 864, 870, - 957, 956, 883, 889, 893, 891, 895, 901, 902, 1014, - 1983, 738, 964, 1919, 1918, 1917, 1914, 0, 0, 0, - 0, 0, 0, 1942, 1944, 1250, 0, 0, 255, 691, - 316, 1130, 1143, 0, 1148, 0, 1443, 1181, 1827, 1826, - 1812, 0, 0, 0, 0, 0, 0, 0, 1083, 1259, - 1078, 1067, 1141, 0, 0, 330, 1470, 1469, 571, 485, - 486, 487, 0, 0, 0, 478, 481, 354, 347, 416, - 0, 523, 470, 463, 0, 358, 440, 707, 434, 459, - 465, 459, 465, 0, 0, 0, 667, 0, 109, 139, - 0, 698, 100, 102, 0, 0, 251, 250, 1143, 0, - 0, 0, 0, 0, 0, 1915, 1945, 1948, 1946, 1947, - 1949, 1943, 0, 0, 317, 0, 0, 1127, 1129, 1123, - 1171, 0, 0, 0, 0, 1436, 1438, 0, 1188, 0, - 1059, 1045, 0, 1050, 0, 1042, 0, 0, 1079, 0, - 331, 550, 489, 0, 488, 0, 483, 484, 479, 0, - 459, 0, 459, 432, 350, 352, 356, 357, 0, 2017, - 0, 2014, 0, 2027, 141, 0, 0, 133, 136, 1971, - 515, 518, 413, 847, 0, 975, 857, 915, 1256, 1264, - 0, 1424, 1131, 1132, 1143, 0, 675, 0, 0, 0, - 0, 1437, 0, 0, 1444, 1446, 0, 0, 0, 0, - 1084, 1077, 332, 491, 492, 490, 476, 477, 379, 524, - 381, 2018, 2019, 1971, 119, 118, 110, 0, 177, 0, - 103, 252, 0, 0, 0, 1435, 1128, 1172, 1441, 1442, - 0, 1439, 0, 0, 1445, 0, 0, 1047, 1052, 2015, - 120, 0, 193, 181, 0, 0, 0, 179, 207, 2028, - 0, 0, 183, 205, 206, 184, 1515, 0, 1516, 2020, - 0, 848, 1263, 1265, 1443, 0, 1440, 1448, 1447, 0, - 1060, 192, 195, 0, 0, 198, 188, 187, 189, 0, - 0, 0, 178, 228, 177, 177, 231, 186, 224, 177, - 104, 1449, 698, 0, 194, 0, 0, 0, 180, 208, - 219, 222, 214, 150, 177, 0, 177, 0, 0, 2021, - 109, 0, 1451, 0, 0, 1175, 1177, 0, 190, 0, - 0, 0, 0, 177, 215, 0, 146, 0, 0, 148, - 234, 0, 226, 105, 0, 0, 1458, 1178, 1173, 698, - 1315, 0, 182, 199, 216, 222, 212, 220, 177, 0, - 0, 177, 0, 230, 149, 0, 232, 225, 227, 177, - 1450, 1453, 0, 0, 1455, 1456, 0, 1425, 1176, 191, - 196, 177, 0, 213, 0, 0, 211, 161, 160, 0, - 152, 173, 229, 0, 151, 0, 177, 106, 1457, 1452, - 0, 1459, 0, 177, 217, 0, 177, 0, 0, 0, - 0, 0, 147, 0, 177, 1454, 197, 202, 0, 209, - 177, 155, 174, 175, 0, 158, 235, 0, 198, 177, - 201, 177, 0, 0, 153, 166, 154, 164, 157, 0, - 233, 203, 177, 177, 172, 170, 177, 168, 162, 0, - 169, 176, 167, 0, 159, 0, 156, 171, 165, 163 + 0, 2, 2018, 633, 0, 1967, 0, 0, 0, 0, + 0, 1969, 95, 55, 1278, 1389, 1390, 1201, 1217, 0, + 633, 98, 0, 67, 1219, 1428, 0, 0, 0, 633, + 0, 1423, 0, 0, 633, 1222, 1416, 0, 98, 1969, + 0, 668, 1804, 1315, 0, 0, 0, 1298, 1861, 1267, + 0, 0, 0, 0, 0, 4, 15, 0, 33, 20, + 24, 10, 14, 9, 6, 47, 48, 40, 8, 12, + 37, 7, 11, 30, 36, 31, 32, 44, 661, 18, + 19, 25, 38, 51, 16, 49, 46, 17, 1391, 21, + 39, 34, 26, 52, 27, 45, 28, 50, 23, 41, + 22, 5, 13, 42, 43, 35, 53, 29, 0, 536, + 0, 568, 0, 0, 2019, 2009, 635, 634, 0, 1853, + 1852, 601, 1969, 0, 1577, 1578, 1579, 1580, 1581, 1582, + 1583, 1539, 1584, 1585, 1586, 1540, 1541, 1587, 1588, 1589, + 1590, 1592, 1591, 1593, 1542, 1543, 1594, 1595, 1596, 1544, + 1545, 1597, 1598, 1546, 1599, 1600, 1601, 1547, 1602, 1548, + 1603, 1604, 1605, 1606, 1549, 1607, 1608, 1609, 1610, 1611, + 1612, 1613, 1550, 1614, 1615, 1616, 1617, 1633, 1618, 1551, + 1619, 1620, 1621, 1634, 1552, 1624, 1623, 1622, 1625, 1626, + 1627, 1553, 1628, 1629, 1630, 1631, 1636, 1637, 1638, 1554, + 1632, 1639, 1635, 1787, 1641, 1640, 1642, 1644, 1643, 1555, + 1645, 1556, 1646, 1647, 1523, 1648, 1524, 1650, 1651, 1654, + 1655, 1649, 1656, 1657, 1652, 1653, 1557, 1659, 1660, 1661, + 1662, 1663, 1664, 1665, 1675, 1668, 1670, 1671, 1673, 1669, + 1674, 1678, 1677, 1679, 1680, 1681, 1676, 1667, 1672, 1682, + 1683, 1666, 1684, 1685, 1686, 1687, 1688, 1689, 1690, 1691, + 1692, 1694, 1693, 1695, 1696, 1697, 1698, 1699, 1701, 1700, + 1702, 1703, 1704, 1706, 1705, 1707, 1558, 1708, 1709, 1710, + 1711, 1712, 1559, 1560, 1713, 1714, 1715, 1716, 1717, 1718, + 1719, 1561, 1720, 1721, 1722, 1723, 1724, 1725, 1726, 1727, + 1728, 1729, 1730, 1731, 1732, 1733, 1734, 1735, 1736, 1737, + 1658, 1738, 1562, 1739, 1740, 1563, 1741, 1564, 1742, 1743, + 1565, 1744, 1745, 1746, 1747, 1748, 1749, 1566, 1750, 1567, + 1752, 1751, 1753, 1755, 1756, 1568, 1754, 1569, 1757, 1758, + 1759, 1761, 1760, 1762, 1763, 1570, 1764, 1571, 1765, 1766, + 1767, 1768, 1769, 1770, 1771, 1772, 1773, 1774, 1775, 1776, + 1777, 1780, 1781, 1782, 1783, 1778, 1779, 1572, 1784, 1785, + 1786, 1788, 1789, 1573, 1790, 1574, 1791, 1576, 1792, 1793, + 1796, 1794, 1795, 1797, 1798, 1799, 1800, 1575, 1801, 124, + 1528, 100, 1529, 1538, 0, 603, 619, 1970, 1971, 270, + 508, 509, 269, 507, 98, 2009, 0, 266, 267, 0, + 1292, 1024, 1215, 1215, 0, 1215, 1218, 1215, 98, 1215, + 0, 60, 1396, 0, 0, 0, 0, 1522, 0, 1225, + 1430, 1434, 0, 0, 1850, 2067, 0, 0, 0, 0, + 98, 636, 0, 1276, 0, 599, 0, 1971, 1982, 662, + 666, 678, 1805, 1802, 1374, 588, 588, 588, 586, 588, + 1299, 0, 0, 1276, 1433, 2055, 0, 0, 0, 2051, + 0, 2056, 0, 668, 0, 0, 1, 3, 0, 1629, + 1387, 1385, 1519, 0, 528, 537, 532, 530, 0, 0, + 2020, 617, 0, 1968, 0, 645, 655, 126, 0, 69, + 0, 0, 0, 1974, 0, 0, 0, 0, 96, 319, + 2009, 2011, 2013, 270, 268, 0, 1296, 1295, 1294, 0, + 1292, 1202, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 1215, 62, 0, 1895, 1910, 1911, 1907, 1912, 1913, + 1917, 0, 1909, 1901, 0, 1916, 1905, 1914, 0, 1899, + 0, 1915, 1920, 1903, 1908, 1887, 0, 1893, 1897, 1521, + 1121, 1864, 1865, 0, 1534, 1525, 1533, 1532, 68, 1227, + 1228, 1226, 567, 1431, 1432, 0, 1444, 0, 0, 0, + 0, 631, 0, 1369, 1368, 0, 1424, 1983, 0, 0, + 608, 1230, 1277, 0, 1229, 1421, 0, 1420, 1417, 1419, + 0, 1895, 1882, 0, 1977, 1974, 1984, 691, 684, 683, + 686, 687, 690, 688, 689, 685, 682, 699, 679, 681, + 1808, 0, 0, 444, 0, 1382, 0, 0, 0, 1382, + 0, 1156, 1375, 0, 1817, 1350, 505, 504, 1382, 0, + 503, 1818, 1349, 1368, 0, 0, 0, 1334, 0, 1300, + 1339, 1819, 0, 1371, 0, 1382, 1382, 1156, 1382, 0, + 1316, 0, 0, 0, 0, 582, 592, 584, 579, 0, + 585, 581, 1297, 1214, 1862, 567, 1481, 1480, 1526, 2052, + 1479, 2060, 2062, 2048, 2050, 2057, 664, 0, 1988, 54, + 0, 1393, 2016, 2017, 2015, 458, 108, 108, 526, 0, + 0, 0, 0, 0, 1212, 0, 0, 647, 657, 128, + 125, 99, 0, 605, 621, 1973, 0, 0, 1975, 1979, + 773, 772, 0, 93, 708, 1535, 1947, 97, 1943, 2014, + 320, 699, 699, 699, 2004, 0, 2006, 2007, 2008, 2020, + 2012, 0, 510, 0, 1279, 1282, 1286, 1290, 1293, 1578, + 1539, 0, 1586, 0, 0, 1492, 0, 0, 0, 0, + 1544, 0, 0, 1600, 0, 0, 1549, 0, 0, 0, + 708, 708, 708, 0, 0, 0, 1612, 1613, 1501, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 1489, + 0, 1502, 0, 0, 0, 0, 0, 0, 0, 1641, + 0, 0, 1642, 0, 0, 0, 1645, 1491, 1647, 0, + 0, 0, 0, 0, 0, 0, 1662, 0, 0, 1499, + 0, 0, 1030, 0, 1689, 1691, 0, 0, 0, 1695, + 0, 0, 1696, 1697, 1698, 1476, 775, 0, 708, 1488, + 1498, 1710, 1560, 1716, 1482, 0, 1718, 0, 1719, 0, + 1726, 0, 0, 0, 0, 0, 0, 1748, 1750, 0, + 0, 1767, 0, 0, 0, 708, 1780, 1781, 1782, 1783, + 0, 1490, 1572, 1500, 0, 0, 0, 1574, 1792, 708, + 708, 708, 0, 0, 0, 1798, 0, 1801, 1034, 0, + 0, 0, 0, 774, 0, 998, 0, 1026, 710, 715, + 720, 727, 733, 747, 749, 751, 754, 759, 765, 0, + 860, 767, 854, 790, 789, 1025, 1486, 788, 787, 1487, + 785, 1509, 1528, 1475, 1508, 1216, 1206, 1207, 0, 1208, + 1211, 1941, 1209, 569, 0, 0, 61, 1410, 1404, 1413, + 1406, 1409, 1405, 0, 1411, 1408, 1407, 1853, 1412, 1397, + 1399, 1400, 1896, 1894, 1928, 1927, 0, 1929, 1925, 1918, + 1948, 1922, 1948, 1924, 1923, 1948, 1919, 1926, 1948, 1891, + 0, 1122, 1123, 0, 1863, 0, 1520, 0, 1429, 1445, + 0, 1446, 1435, 1442, 650, 0, 1121, 1851, 1854, 0, + 0, 0, 2068, 0, 0, 57, 58, 0, 638, 0, + 637, 641, 0, 0, 0, 1233, 1223, 1232, 1422, 0, + 0, 1894, 1891, 1978, 0, 1980, 1995, 667, 1985, 697, + 669, 696, 0, 680, 1803, 1806, 1814, 1348, 1378, 443, + 0, 0, 1347, 1331, 0, 270, 0, 0, 0, 0, + 1317, 1322, 304, 0, 1338, 1157, 0, 1382, 0, 1359, + 1342, 1355, 1343, 0, 1372, 0, 1382, 1312, 0, 0, + 1304, 1309, 1305, 0, 1311, 1310, 1313, 1301, 1302, 1327, + 1356, 1372, 1332, 1358, 1357, 1337, 1346, 1376, 1377, 0, + 1326, 1333, 0, 1344, 1372, 1372, 1382, 1382, 595, 594, + 593, 589, 590, 595, 0, 1067, 0, 0, 2049, 2063, + 2047, 2058, 2059, 2046, 665, 1989, 663, 1990, 0, 1388, + 1386, 1394, 1395, 459, 529, 458, 261, 264, 263, 0, + 533, 531, 458, 2010, 0, 0, 621, 0, 0, 649, + 644, 648, 646, 500, 499, 502, 0, 656, 0, 129, + 131, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 70, 71, 84, 607, + 606, 604, 629, 628, 626, 0, 627, 625, 620, 622, + 623, 1972, 1976, 271, 458, 0, 1537, 0, 0, 0, + 0, 0, 0, 0, 2005, 89, 0, 0, 0, 1284, + 1280, 1290, 0, 0, 0, 1121, 0, 0, 0, 1126, + 0, 804, 1126, 1126, 1126, 0, 0, 1024, 1024, 0, + 1024, 0, 0, 0, 0, 1126, 828, 831, 0, 829, + 0, 0, 0, 0, 0, 1495, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 1024, 0, 0, 0, 0, + 1003, 0, 983, 0, 0, 0, 784, 0, 0, 0, + 0, 1024, 0, 0, 0, 0, 1030, 0, 1028, 0, + 1126, 0, 0, 1126, 0, 0, 0, 0, 0, 1024, + 1024, 1024, 719, 0, 876, 0, 977, 0, 0, 0, + 0, 1024, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 1126, 1126, 0, 0, 0, 1126, 0, 897, + 0, 1497, 0, 0, 0, 1496, 0, 0, 1494, 1493, + 1477, 0, 0, 980, 0, 920, 922, 921, 1126, 0, + 1126, 0, 0, 0, 1035, 0, 793, 792, 794, 2002, + 0, 0, 0, 0, 0, 0, 0, 712, 717, 776, + 0, 777, 778, 0, 779, 780, 781, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 795, 1096, 1097, 1098, + 1099, 1108, 1111, 1100, 1101, 1102, 1110, 1103, 1104, 1105, + 1112, 1113, 1114, 1106, 1115, 1109, 1107, 1116, 0, 1095, + 0, 0, 0, 1478, 914, 0, 1204, 0, 571, 570, + 1210, 569, 0, 63, 65, 1403, 0, 0, 1414, 1921, + 0, 1902, 1906, 1900, 1904, 0, 0, 1892, 0, 1898, + 1125, 1637, 1705, 0, 1128, 1867, 1220, 1441, 1443, 0, + 0, 1436, 0, 0, 2073, 0, 2074, 621, 59, 0, + 0, 1425, 0, 0, 0, 0, 610, 1231, 0, 1418, + 0, 0, 0, 0, 0, 1981, 1997, 1996, 1986, 699, + 1147, 700, 702, 701, 1508, 1808, 1811, 1812, 1815, 1813, + 0, 1810, 1809, 1824, 0, 1380, 1383, 1384, 0, 0, + 1361, 1360, 1353, 1354, 0, 1166, 1167, 1165, 1160, 1161, + 1164, 1365, 1363, 1351, 0, 1382, 0, 1364, 1362, 1306, + 1307, 1308, 0, 1156, 0, 1382, 1372, 0, 1382, 1382, + 1341, 1345, 0, 583, 592, 580, 587, 1079, 1078, 0, + 1043, 0, 1042, 1041, 1040, 0, 1078, 2053, 2061, 2065, + 0, 1156, 1994, 1992, 262, 1254, 1254, 0, 0, 0, + 0, 0, 0, 0, 109, 118, 565, 565, 1254, 1254, + 565, 1254, 1254, 1254, 0, 0, 1254, 0, 0, 565, + 0, 1254, 563, 0, 0, 1254, 1254, 1254, 565, 0, + 1254, 1254, 1254, 1254, 1254, 575, 1254, 1254, 1254, 562, + 274, 296, 297, 527, 0, 541, 564, 2021, 2022, 534, + 618, 602, 1213, 0, 127, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 630, 624, 94, 709, 1536, 0, 1944, 2041, + 0, 0, 2023, 272, 513, 515, 514, 512, 511, 0, + 0, 1128, 0, 1287, 1067, 1291, 1290, 1288, 0, 0, + 0, 1127, 1126, 0, 1009, 1174, 1175, 1171, 1172, 1170, + 1173, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 973, 0, 1009, 0, 834, + 0, 0, 0, 0, 0, 0, 1508, 0, 0, 0, + 0, 0, 2002, 0, 0, 0, 0, 0, 0, 811, + 0, 0, 0, 0, 0, 0, 0, 1119, 1117, 1120, + 1118, 0, 0, 1004, 996, 0, 1024, 0, 0, 0, + 861, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 1031, 1032, 1126, 0, 0, 0, 1126, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 1024, 0, 0, 0, 0, 0, 0, 0, 883, 0, + 0, 0, 0, 0, 888, 0, 0, 0, 0, 0, + 0, 0, 1126, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 917, 0, 1024, 919, 0, + 0, 1511, 1510, 0, 0, 0, 0, 0, 1036, 668, + 0, 797, 1024, 796, 0, 1820, 999, 1001, 0, 714, + 711, 716, 730, 723, 728, 721, 725, 0, 782, 1583, + 731, 0, 0, 1135, 745, 0, 0, 748, 0, 0, + 0, 0, 750, 752, 753, 756, 860, 755, 860, 763, + 764, 760, 761, 762, 766, 0, 786, 791, 1027, 961, + 1512, 1205, 1942, 1203, 66, 0, 0, 1398, 1415, 1401, + 1952, 0, 1951, 1937, 1940, 1519, 0, 0, 0, 1877, + 1871, 1878, 1880, 1874, 1879, 1881, 1872, 1873, 1868, 1875, + 1129, 1158, 0, 0, 651, 652, 655, 0, 1857, 1858, + 1856, 1855, 0, 0, 632, 1427, 1426, 0, 639, 642, + 643, 615, 614, 616, 609, 611, 612, 254, 1237, 0, + 0, 0, 1243, 1224, 1234, 600, 0, 0, 0, 0, + 0, 695, 1067, 1195, 692, 673, 1158, 1148, 672, 703, + 0, 1807, 0, 1778, 1835, 0, 0, 0, 0, 0, + 1825, 1379, 0, 1328, 0, 1352, 1367, 1366, 1323, 0, + 0, 0, 1321, 1373, 0, 1340, 1303, 1320, 1128, 1372, + 1318, 1319, 597, 596, 591, 1078, 1067, 0, 0, 1064, + 1080, 0, 1080, 1067, 1067, 0, 1067, 1121, 1075, 0, + 0, 2064, 1149, 1993, 1252, 1253, 1255, 0, 0, 112, + 115, 113, 0, 114, 0, 0, 566, 520, 501, 501, + 545, 0, 336, 520, 494, 543, 0, 0, 0, 0, + 0, 0, 0, 0, 1254, 0, 556, 539, 0, 0, + 0, 0, 557, 0, 540, 1254, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 578, 577, 576, 0, + 0, 0, 0, 275, 458, 339, 0, 572, 336, 342, + 1515, 2025, 1092, 0, 1091, 130, 77, 73, 85, 1179, + 1180, 1178, 1176, 1177, 86, 75, 76, 80, 79, 81, + 82, 83, 78, 74, 87, 88, 72, 0, 1945, 0, + 238, 237, 0, 2039, 2025, 0, 339, 90, 1447, 273, + 276, 91, 1067, 1147, 1290, 1128, 0, 1121, 0, 803, + 818, 0, 0, 966, 0, 0, 968, 969, 970, 0, + 822, 0, 820, 823, 824, 825, 1024, 0, 0, 0, + 0, 1024, 972, 0, 830, 0, 0, 835, 836, 0, + 809, 0, 843, 0, 845, 0, 1024, 0, 839, 0, + 800, 0, 0, 1024, 0, 851, 0, 812, 0, 0, + 952, 0, 935, 931, 0, 933, 0, 0, 1024, 1024, + 0, 984, 856, 0, 0, 862, 1024, 0, 954, 0, + 936, 0, 868, 0, 1024, 0, 1029, 0, 0, 0, + 988, 872, 873, 0, 986, 938, 0, 0, 875, 940, + 0, 942, 0, 937, 944, 945, 877, 879, 978, 878, + 947, 0, 0, 949, 0, 951, 0, 881, 882, 0, + 0, 0, 886, 0, 1024, 891, 990, 992, 0, 0, + 0, 0, 0, 994, 898, 900, 0, 0, 0, 899, + 0, 0, 0, 0, 0, 0, 0, 904, 0, 0, + 918, 981, 993, 810, 991, 923, 0, 926, 0, 925, + 0, 0, 0, 0, 2001, 2003, 0, 0, 801, 0, + 0, 0, 0, 0, 1513, 769, 768, 0, 771, 770, + 0, 724, 729, 722, 726, 0, 0, 0, 0, 743, + 742, 0, 0, 1135, 746, 0, 758, 757, 859, 0, + 960, 699, 1024, 0, 64, 1402, 1949, 0, 0, 0, + 0, 0, 0, 0, 0, 1866, 1159, 1264, 1527, 1437, + 0, 659, 1859, 1860, 0, 2075, 0, 613, 678, 0, + 1256, 1241, 1248, 1242, 0, 0, 0, 1240, 1504, 1503, + 1510, 1984, 0, 0, 0, 0, 1987, 1128, 1128, 1189, + 0, 0, 670, 675, 671, 674, 0, 698, 707, 706, + 1505, 1512, 0, 0, 0, 0, 446, 448, 447, 454, + 0, 445, 0, 0, 1820, 0, 450, 452, 451, 1830, + 449, 1381, 1156, 1336, 1335, 1163, 1162, 0, 1314, 1330, + 1382, 0, 1991, 1073, 0, 1066, 1065, 1081, 0, 1067, + 1080, 1080, 0, 1046, 1045, 1268, 1271, 0, 1044, 1082, + 1071, 678, 2054, 2066, 0, 457, 456, 303, 453, 302, + 117, 116, 122, 123, 341, 521, 495, 496, 0, 0, + 0, 501, 335, 520, 334, 337, 510, 0, 286, 283, + 547, 289, 285, 301, 0, 0, 290, 520, 554, 555, + 569, 279, 0, 315, 316, 314, 298, 281, 282, 549, + 1143, 1145, 1153, 288, 287, 284, 293, 294, 312, 311, + 292, 313, 560, 310, 308, 305, 307, 306, 309, 291, + 280, 0, 542, 0, 325, 327, 328, 1518, 0, 574, + 544, 0, 329, 330, 0, 0, 0, 0, 658, 0, + 1946, 2042, 241, 239, 240, 0, 0, 0, 244, 0, + 242, 0, 0, 1449, 1448, 243, 257, 458, 277, 0, + 1128, 1168, 1283, 1289, 0, 0, 0, 967, 1010, 0, + 422, 422, 1020, 1018, 411, 422, 1014, 1019, 1016, 0, + 0, 0, 0, 0, 0, 0, 974, 971, 0, 0, + 0, 1512, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 1007, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 956, 1033, 989, 987, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 995, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 1037, 806, 1998, 1999, 798, 1821, 1822, 1823, + 522, 1000, 713, 718, 0, 736, 1024, 734, 1134, 740, + 0, 0, 744, 0, 915, 0, 962, 963, 0, 1023, + 1514, 1950, 1939, 1938, 1953, 1953, 1953, 0, 1130, 0, + 1221, 1447, 653, 0, 654, 0, 640, 699, 1238, 1250, + 0, 1258, 0, 0, 1235, 1245, 0, 0, 0, 1244, + 0, 1884, 1885, 1883, 1158, 1136, 0, 0, 1200, 0, + 1196, 693, 0, 705, 704, 0, 1837, 0, 1836, 1848, + 1849, 1846, 1847, 1845, 1826, 0, 1832, 1831, 0, 0, + 0, 1842, 1833, 0, 0, 1329, 0, 1324, 598, 0, + 1067, 1080, 1067, 1053, 0, 0, 1067, 1049, 1047, 1051, + 0, 1128, 0, 0, 0, 0, 1068, 699, 1507, 1150, + 1153, 338, 520, 497, 498, 510, 0, 0, 0, 0, + 454, 299, 553, 552, 300, 0, 0, 1154, 1155, 1146, + 0, 546, 339, 573, 474, 407, 356, 347, 422, 350, + 349, 393, 364, 361, 411, 409, 379, 411, 411, 386, + 385, 403, 389, 369, 460, 460, 368, 406, 460, 390, + 388, 392, 0, 394, 411, 399, 387, 391, 408, 384, + 381, 405, 422, 422, 362, 365, 404, 460, 0, 397, + 422, 426, 367, 460, 466, 0, 0, 422, 424, 1517, + 2027, 0, 2029, 1090, 143, 699, 0, 102, 2040, 2029, + 0, 247, 272, 258, 0, 278, 0, 1285, 0, 1281, + 784, 815, 819, 928, 0, 1011, 460, 0, 1021, 413, + 1013, 1015, 1017, 805, 821, 826, 930, 808, 807, 0, + 0, 0, 0, 841, 844, 846, 837, 842, 840, 0, + 929, 853, 850, 852, 813, 0, 953, 932, 934, 855, + 866, 1005, 1008, 0, 985, 0, 0, 867, 863, 955, + 864, 0, 869, 838, 870, 0, 0, 0, 0, 939, + 874, 941, 943, 979, 948, 946, 950, 880, 817, 0, + 885, 887, 799, 784, 889, 0, 895, 893, 0, 0, + 901, 0, 0, 910, 0, 908, 0, 909, 0, 911, + 912, 0, 982, 924, 927, 1038, 0, 1984, 0, 1002, + 732, 0, 738, 1024, 735, 741, 700, 699, 913, 0, + 1958, 1958, 1958, 1263, 1262, 0, 1261, 1265, 0, 660, + 0, 255, 0, 0, 0, 1259, 1247, 1988, 1236, 1239, + 1512, 1886, 677, 0, 1131, 1199, 1197, 0, 1190, 1192, + 1194, 0, 1506, 0, 0, 1841, 1827, 455, 0, 0, + 0, 0, 1828, 0, 1121, 1074, 0, 0, 1040, 1067, + 1067, 0, 1040, 0, 0, 0, 1270, 1147, 1272, 1086, + 1084, 1085, 1083, 1076, 0, 1152, 0, 0, 0, 559, + 0, 572, 561, 426, 1144, 295, 326, 480, 0, 0, + 366, 415, 410, 0, 415, 415, 466, 468, 462, 466, + 0, 375, 393, 370, 0, 460, 383, 374, 395, 398, + 400, 402, 415, 0, 460, 363, 372, 0, 415, 434, + 0, 0, 0, 430, 0, 473, 0, 437, 343, 427, + 429, 0, 0, 396, 0, 352, 467, 0, 354, 0, + 0, 415, 0, 425, 415, 0, 2026, 0, 2033, 0, + 146, 144, 145, 0, 139, 141, 136, 0, 323, 324, + 322, 321, 0, 132, 2033, 245, 1988, 1447, 0, 250, + 0, 1153, 518, 1169, 0, 0, 1012, 0, 0, 975, + 832, 833, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 802, 0, 0, 0, 0, 0, 0, + 0, 907, 905, 906, 0, 1039, 2003, 523, 737, 0, + 703, 964, 0, 0, 1957, 1955, 0, 1956, 1954, 1930, + 0, 1889, 1890, 1888, 1876, 0, 0, 1438, 2069, 1158, + 1249, 1251, 1257, 1246, 0, 1132, 1147, 1450, 1193, 0, + 694, 1839, 1838, 1840, 1834, 0, 0, 0, 0, 1072, + 1067, 1054, 0, 1058, 1063, 1059, 0, 1050, 1048, 0, + 1168, 0, 1158, 1153, 0, 0, 0, 0, 0, 0, + 0, 0, 558, 1483, 548, 550, 0, 0, 0, 475, + 476, 481, 483, 0, 0, 419, 420, 421, 376, 416, + 418, 0, 378, 346, 461, 469, 470, 0, 465, 463, + 466, 371, 401, 377, 0, 373, 0, 360, 440, 439, + 708, 432, 442, 0, 0, 438, 428, 436, 431, 0, + 0, 0, 0, 344, 0, 345, 1516, 2028, 0, 535, + 699, 699, 2030, 2043, 143, 0, 0, 0, 0, 133, + 135, 136, 2024, 248, 246, 0, 1984, 92, 0, 517, + 0, 816, 423, 412, 0, 827, 847, 0, 814, 1006, + 997, 1126, 857, 0, 865, 871, 958, 957, 884, 890, + 894, 892, 896, 902, 903, 1024, 2000, 739, 965, 1936, + 1935, 1934, 1931, 0, 0, 0, 0, 0, 0, 1959, + 1961, 1260, 0, 0, 0, 2076, 256, 692, 317, 1140, + 1153, 0, 1158, 0, 1458, 1191, 1844, 1843, 1829, 0, + 0, 0, 0,