/* This file is automatically generated by Lemon from input grammar
** source file "src/trace_processor/perfetto_sql/grammar/perfettosql_grammar.y".
*/
/*
** 2000-05-29
**
** The author disclaims copyright to this source code.  In place of
** a legal notice, here is a blessing:
**
**    May you do good and not evil.
**    May you find forgiveness for yourself and forgive others.
**    May you share freely, never taking more than you give.
**
*************************************************************************
** Driver template for the LEMON parser generator.
**
** The "lemon" program processes an LALR(1) input grammar file, then uses
** this template to construct a parser.  The "lemon" program inserts text
** at each "%%" line.  Also, any "P-a-r-s-e" identifier prefix (without the
** interstitial "-" characters) contained in this template is changed into
** the value of the %name directive from the grammar.  Otherwise, the content
** of this template is copied straight through into the generate parser
** source file.
**
** The following is the concatenation of all %include directives from the
** input grammar file:
*/
/************ Begin %include sections from the grammar ************************/
#include <stdio.h>
#include <stddef.h>
#include "src/trace_processor/perfetto_sql/grammar/perfettosql_grammar_interface.h"

#define YYNOERRORRECOVERY 1
#define YYPARSEFREENEVERNULL 1
/**************** End of %include directives **********************************/
/* These constants specify the various numeric values for terminal symbols.
***************** Begin token definitions *************************************/
#ifndef TK_CREATE
#define TK_CREATE                          1
#define TK_REPLACE                         2
#define TK_PERFETTO                        3
#define TK_MACRO                           4
#define TK_INCLUDE                         5
#define TK_MODULE                          6
#define TK_RETURNS                         7
#define TK_FUNCTION                        8
#define TK_DELEGATES                       9
#define TK_OR                             10
#define TK_AND                            11
#define TK_NOT                            12
#define TK_IS                             13
#define TK_MATCH                          14
#define TK_LIKE_KW                        15
#define TK_BETWEEN                        16
#define TK_IN                             17
#define TK_ISNULL                         18
#define TK_NOTNULL                        19
#define TK_NE                             20
#define TK_EQ                             21
#define TK_GT                             22
#define TK_LE                             23
#define TK_LT                             24
#define TK_GE                             25
#define TK_ESCAPE                         26
#define TK_BITAND                         27
#define TK_BITOR                          28
#define TK_LSHIFT                         29
#define TK_RSHIFT                         30
#define TK_PLUS                           31
#define TK_MINUS                          32
#define TK_STAR                           33
#define TK_SLASH                          34
#define TK_REM                            35
#define TK_CONCAT                         36
#define TK_PTR                            37
#define TK_COLLATE                        38
#define TK_BITNOT                         39
#define TK_ON                             40
#define TK_ID                             41
#define TK_ABORT                          42
#define TK_ACTION                         43
#define TK_AFTER                          44
#define TK_ANALYZE                        45
#define TK_ASC                            46
#define TK_ATTACH                         47
#define TK_BEFORE                         48
#define TK_BEGIN                          49
#define TK_BY                             50
#define TK_CASCADE                        51
#define TK_CAST                           52
#define TK_COLUMNKW                       53
#define TK_CONFLICT                       54
#define TK_DATABASE                       55
#define TK_DEFERRED                       56
#define TK_DESC                           57
#define TK_DETACH                         58
#define TK_DO                             59
#define TK_EACH                           60
#define TK_END                            61
#define TK_EXCLUSIVE                      62
#define TK_EXPLAIN                        63
#define TK_FAIL                           64
#define TK_FOR                            65
#define TK_IGNORE                         66
#define TK_IMMEDIATE                      67
#define TK_INITIALLY                      68
#define TK_INSTEAD                        69
#define TK_NO                             70
#define TK_PLAN                           71
#define TK_QUERY                          72
#define TK_KEY                            73
#define TK_OF                             74
#define TK_OFFSET                         75
#define TK_PRAGMA                         76
#define TK_RAISE                          77
#define TK_RECURSIVE                      78
#define TK_RELEASE                        79
#define TK_RESTRICT                       80
#define TK_ROW                            81
#define TK_ROWS                           82
#define TK_ROLLBACK                       83
#define TK_SAVEPOINT                      84
#define TK_TEMP                           85
#define TK_TRIGGER                        86
#define TK_VACUUM                         87
#define TK_VIEW                           88
#define TK_VIRTUAL                        89
#define TK_WITH                           90
#define TK_WITHOUT                        91
#define TK_NULLS                          92
#define TK_FIRST                          93
#define TK_LAST                           94
#define TK_CURRENT                        95
#define TK_FOLLOWING                      96
#define TK_PARTITION                      97
#define TK_PRECEDING                      98
#define TK_RANGE                          99
#define TK_UNBOUNDED                      100
#define TK_EXCLUDE                        101
#define TK_GROUPS                         102
#define TK_OTHERS                         103
#define TK_TIES                           104
#define TK_GENERATED                      105
#define TK_ALWAYS                         106
#define TK_MATERIALIZED                   107
#define TK_REINDEX                        108
#define TK_RENAME                         109
#define TK_CTIME_KW                       110
#define TK_IF                             111
#define TK_ANY                            112
#define TK_LP                             113
#define TK_DOT                            114
#define TK_RP                             115
#define TK_COMMA                          116
#define TK_AS                             117
#define TK_TO                             118
#define TK_TABLE                          119
#define TK_USING                          120
#define TK_INDEX                          121
#define TK_INTERSECT                      122
#define TK_DROP                           123
#define TK_COMMIT                         124
#define TK_EXISTS                         125
#define TK_STRING                         126
#define TK_CONSTRAINT                     127
#define TK_DEFAULT                        128
#define TK_INDEXED                        129
#define TK_NULL                           130
#define TK_PRIMARY                        131
#define TK_UNIQUE                         132
#define TK_CHECK                          133
#define TK_REFERENCES                     134
#define TK_AUTOINCR                       135
#define TK_INSERT                         136
#define TK_DELETE                         137
#define TK_UPDATE                         138
#define TK_SET                            139
#define TK_DEFERRABLE                     140
#define TK_FOREIGN                        141
#define TK_UNION                          142
#define TK_ALL                            143
#define TK_EXCEPT                         144
#define TK_SELECT                         145
#define TK_VALUES                         146
#define TK_DISTINCT                       147
#define TK_FROM                           148
#define TK_JOIN                           149
#define TK_JOIN_KW                        150
#define TK_ORDER                          151
#define TK_GROUP                          152
#define TK_HAVING                         153
#define TK_LIMIT                          154
#define TK_WHERE                          155
#define TK_RETURNING                      156
#define TK_INTO                           157
#define TK_NOTHING                        158
#define TK_FLOAT                          159
#define TK_BLOB                           160
#define TK_INTEGER                        161
#define TK_VARIABLE                       162
#define TK_CASE                           163
#define TK_WHEN                           164
#define TK_THEN                           165
#define TK_ELSE                           166
#define TK_SEMI                           167
#define TK_ALTER                          168
#define TK_ADD                            169
#define TK_WINDOW                         170
#define TK_OVER                           171
#define TK_FILTER                         172
#define TK_QNUMBER                        173
#define TK_TRANSACTION                    174
#define TK_SPACE                          175
#define TK_COMMENT                        176
#define TK_ILLEGAL                        177
#endif
/**************** End token definitions ***************************************/

/* The next sections is a series of control #defines.
** various aspects of the generated parser.
**    YYCODETYPE         is the data type used to store the integer codes
**                       that represent terminal and non-terminal symbols.
**                       "unsigned char" is used if there are fewer than
**                       256 symbols.  Larger types otherwise.
**    YYNOCODE           is a number of type YYCODETYPE that is not used for
**                       any terminal or nonterminal symbol.
**    YYFALLBACK         If defined, this indicates that one or more tokens
**                       (also known as: "terminal symbols") have fall-back
**                       values which should be used if the original symbol
**                       would not parse.  This permits keywords to sometimes
**                       be used as identifiers, for example.
**    YYACTIONTYPE       is the data type used for "action codes" - numbers
**                       that indicate what to do in response to the next
**                       token.
**    PerfettoSqlParseTOKENTYPE     is the data type used for minor type for terminal
**                       symbols.  Background: A "minor type" is a semantic
**                       value associated with a terminal or non-terminal
**                       symbols.  For example, for an "ID" terminal symbol,
**                       the minor type might be the name of the identifier.
**                       Each non-terminal can have a different minor type.
**                       Terminal symbols all have the same minor type, though.
**                       This macros defines the minor type for terminal 
**                       symbols.
**    YYMINORTYPE        is the data type used for all minor types.
**                       This is typically a union of many types, one of
**                       which is PerfettoSqlParseTOKENTYPE.  The entry in the union
**                       for terminal symbols is called "yy0".
**    YYSTACKDEPTH       is the maximum depth of the parser's stack.  If
**                       zero the stack is dynamically sized using realloc()
**    PerfettoSqlParseARG_SDECL     A static variable declaration for the %extra_argument
**    PerfettoSqlParseARG_PDECL     A parameter declaration for the %extra_argument
**    PerfettoSqlParseARG_PARAM     Code to pass %extra_argument as a subroutine parameter
**    PerfettoSqlParseARG_STORE     Code to store %extra_argument into yypParser
**    PerfettoSqlParseARG_FETCH     Code to extract %extra_argument from yypParser
**    PerfettoSqlParseCTX_*         As PerfettoSqlParseARG_ except for %extra_context
**    YYREALLOC          Name of the realloc() function to use
**    YYFREE             Name of the free() function to use
**    YYDYNSTACK         True if stack space should be extended on heap
**    YYERRORSYMBOL      is the code number of the error symbol.  If not
**                       defined, then do no error processing.
**    YYNSTATE           the combined number of states.
**    YYNRULE            the number of rules in the grammar
**    YYNTOKEN           Number of terminal symbols
**    YY_MAX_SHIFT       Maximum value for shift actions
**    YY_MIN_SHIFTREDUCE Minimum value for shift-reduce actions
**    YY_MAX_SHIFTREDUCE Maximum value for shift-reduce actions
**    YY_ERROR_ACTION    The yy_action[] code for syntax error
**    YY_ACCEPT_ACTION   The yy_action[] code for accept
**    YY_NO_ACTION       The yy_action[] code for no-op
**    YY_MIN_REDUCE      Minimum value for reduce actions
**    YY_MAX_REDUCE      Maximum value for reduce actions
**    YY_MIN_DSTRCTR     Minimum symbol value that has a destructor
**    YY_MAX_DSTRCTR     Maximum symbol value that has a destructor
*/
#ifndef INTERFACE
# define INTERFACE 1
#endif
/************* Begin control #defines *****************************************/
#define YYCODETYPE unsigned short int
#define YYNOCODE 327
#define YYACTIONTYPE unsigned short int
#define YYWILDCARD 112
#define PerfettoSqlParseTOKENTYPE struct PerfettoSqlToken
typedef union {
  int yyinit;
  PerfettoSqlParseTOKENTYPE yy0;
  int yy52;
  struct PerfettoSqlFnReturnType* yy171;
  struct PerfettoSqlIndexedColumnList* yy392;
  struct PerfettoSqlMacroArgumentList* yy480;
  struct PerfettoSqlArgumentList* yy640;
} YYMINORTYPE;
#ifndef YYSTACKDEPTH
#define YYSTACKDEPTH 100
#endif
#define PerfettoSqlParseARG_SDECL
#define PerfettoSqlParseARG_PDECL
#define PerfettoSqlParseARG_PARAM
#define PerfettoSqlParseARG_FETCH
#define PerfettoSqlParseARG_STORE
#define YYREALLOC realloc
#define YYFREE free
#define YYDYNSTACK 0
#define PerfettoSqlParseCTX_SDECL struct PerfettoSqlParserState* state;
#define PerfettoSqlParseCTX_PDECL ,struct PerfettoSqlParserState* state
#define PerfettoSqlParseCTX_PARAM ,state
#define PerfettoSqlParseCTX_FETCH struct PerfettoSqlParserState* state=yypParser->state;
#define PerfettoSqlParseCTX_STORE yypParser->state=state;
#define YYFALLBACK 1
#define YYNSTATE             656
#define YYNRULE              445
#define YYNRULE_WITH_ACTION  34
#define YYNTOKEN             178
#define YY_MAX_SHIFT         655
#define YY_MIN_SHIFTREDUCE   943
#define YY_MAX_SHIFTREDUCE   1387
#define YY_ERROR_ACTION      1388
#define YY_ACCEPT_ACTION     1389
#define YY_NO_ACTION         1390
#define YY_MIN_REDUCE        1391
#define YY_MAX_REDUCE        1835
#define YY_MIN_DSTRCTR       179
#define YY_MAX_DSTRCTR       192
/************* End control #defines *******************************************/
#define YY_NLOOKAHEAD ((int)(sizeof(yy_lookahead)/sizeof(yy_lookahead[0])))

/* Define the yytestcase() macro to be a no-op if is not already defined
** otherwise.
**
** Applications can choose to define yytestcase() in the %include section
** to a macro that can assist in verifying code coverage.  For production
** code the yytestcase() macro should be turned off.  But it is useful
** for testing.
*/
#ifndef yytestcase
# define yytestcase(X)
#endif

/* Macro to determine if stack space has the ability to grow using
** heap memory.
*/
#if YYSTACKDEPTH<=0 || YYDYNSTACK
# define YYGROWABLESTACK 1
#else
# define YYGROWABLESTACK 0
#endif

/* Guarantee a minimum number of initial stack slots.
*/
#if YYSTACKDEPTH<=0
# undef YYSTACKDEPTH
# define YYSTACKDEPTH 2  /* Need a minimum stack size */
#endif


/* Next are the tables used to determine what action to take based on the
** current state and lookahead token.  These tables are used to implement
** functions that take a state number and lookahead value and return an
** action integer.  
**
** Suppose the action integer is N.  Then the action is determined as
** follows
**
**   0 <= N <= YY_MAX_SHIFT             Shift N.  That is, push the lookahead
**                                      token onto the stack and goto state N.
**
**   N between YY_MIN_SHIFTREDUCE       Shift to an arbitrary state then
**     and YY_MAX_SHIFTREDUCE           reduce by rule N-YY_MIN_SHIFTREDUCE.
**
**   N == YY_ERROR_ACTION               A syntax error has occurred.
**
**   N == YY_ACCEPT_ACTION              The parser accepts its input.
**
**   N == YY_NO_ACTION                  No such action.  Denotes unused
**                                      slots in the yy_action[] table.
**
**   N between YY_MIN_REDUCE            Reduce by rule N-YY_MIN_REDUCE
**     and YY_MAX_REDUCE
**
** The action table is constructed as a single large table named yy_action[].
** Given state S and lookahead X, the action is computed as either:
**
**    (A)   N = yy_action[ yy_shift_ofst[S] + X ]
**    (B)   N = yy_default[S]
**
** The (A) formula is preferred.  The B formula is used instead if
** yy_lookahead[yy_shift_ofst[S]+X] is not equal to X.
**
** The formulas above are for computing the action when the lookahead is
** a terminal symbol.  If the lookahead is a non-terminal (as occurs after
** a reduce action) then the yy_reduce_ofst[] array is used in place of
** the yy_shift_ofst[] array.
**
** The following are the tables generated in this section:
**
**  yy_action[]        A single table containing all actions.
**  yy_lookahead[]     A table containing the lookahead for each entry in
**                     yy_action.  Used to detect hash collisions.
**  yy_shift_ofst[]    For each state, the offset into yy_action for
**                     shifting terminals.
**  yy_reduce_ofst[]   For each state, the offset into yy_action for
**                     shifting non-terminals after a reduce.
**  yy_default[]       Default action for each state.
**
*********** Begin parsing tables **********************************************/
#define YY_ACTTAB_COUNT (2296)
static const YYACTIONTYPE yy_action[] = {
 /*     0 */   453, 1792,  133,  130,  241,  293,  133,  130,  241, 1792,
 /*    10 */   140,  142,  436,   94, 1362, 1362, 1197, 1200, 1187, 1187,
 /*    20 */   138,  138,  139,  139,  139,  139, 1712,  137,  137,  137,
 /*    30 */   137,  136,  136,  135,  135,  135,  134,  131,  479,  134,
 /*    40 */   131,  479, 1184, 1184, 1198, 1201, 1117,  136,  136,  135,
 /*    50 */   135,  135,  134,  131,  479, 1747,    7, 1118,  135,  135,
 /*    60 */   135,  134,  131,  479,  357,  133,  130,  241,  140,  142,
 /*    70 */   436,   94, 1362, 1362, 1197, 1200, 1187, 1187,  138,  138,
 /*    80 */   139,  139,  139,  139,  479,  137,  137,  137,  137,  136,
 /*    90 */   136,  135,  135,  135,  134,  131,  479,  140,  142,  436,
 /*   100 */    94, 1362, 1362, 1197, 1200, 1187, 1187,  138,  138,  139,
 /*   110 */   139,  139,  139, 1338,  137,  137,  137,  137,  136,  136,
 /*   120 */   135,  135,  135,  134,  131,  479,  142,  436,   94, 1362,
 /*   130 */  1362, 1197, 1200, 1187, 1187,  138,  138,  139,  139,  139,
 /*   140 */   139,  639,  137,  137,  137,  137,  136,  136,  135,  135,
 /*   150 */   135,  134,  131,  479, 1308, 1498, 1308, 1477, 1188,    6,
 /*   160 */    87,   87,  143,  244, 1498,  140,  142,  436,   94, 1362,
 /*   170 */  1362, 1197, 1200, 1187, 1187,  138,  138,  139,  139,  139,
 /*   180 */   139,  406,  137,  137,  137,  137,  136,  136,  135,  135,
 /*   190 */   135,  134,  131,  479,  560,  621, 1281, 1283, 1339, 1827,
 /*   200 */  1827, 1338,  161,  113,  588,  139,  139,  139,  139,  132,
 /*   210 */   137,  137,  137,  137,  136,  136,  135,  135,  135,  134,
 /*   220 */   131,  479, 1338, 1281, 1283,  510, 1828, 1828,  100,  510,
 /*   230 */  1241,  330,  640,  212, 1241,  133,  130,  241,  517,  140,
 /*   240 */   142,  436,   94, 1362, 1362, 1197, 1200, 1187, 1187,  138,
 /*   250 */   138,  139,  139,  139,  139,  539,  137,  137,  137,  137,
 /*   260 */   136,  136,  135,  135,  135,  134,  131,  479,  140,  142,
 /*   270 */   436,   94, 1362, 1362, 1197, 1200, 1187, 1187,  138,  138,
 /*   280 */   139,  139,  139,  139,  481,  137,  137,  137,  137,  136,
 /*   290 */   136,  135,  135,  135,  134,  131,  479,  140,  142,  436,
 /*   300 */    94, 1362, 1362, 1197, 1200, 1187, 1187,  138,  138,  139,
 /*   310 */   139,  139,  139,  221,  137,  137,  137,  137,  136,  136,
 /*   320 */   135,  135,  135,  134,  131,  479,  518,  368,  140,  142,
 /*   330 */   436,   94, 1362, 1362, 1197, 1200, 1187, 1187,  138,  138,
 /*   340 */   139,  139,  139,  139,  334,  137,  137,  137,  137,  136,
 /*   350 */   136,  135,  135,  135,  134,  131,  479,  140,  142,  436,
 /*   360 */    94, 1362, 1362, 1197, 1200, 1187, 1187,  138,  138,  139,
 /*   370 */   139,  139,  139,  496,  137,  137,  137,  137,  136,  136,
 /*   380 */   135,  135,  135,  134,  131,  479,  140,  142,  436,   94,
 /*   390 */  1362, 1362, 1197, 1200, 1187, 1187,  138,  138,  139,  139,
 /*   400 */   139,  139, 1020,  137,  137,  137,  137,  136,  136,  135,
 /*   410 */   135,  135,  134,  131,  479,  400, 1460,  140,  142,  436,
 /*   420 */    94, 1362, 1362, 1197, 1200, 1187, 1187,  138,  138,  139,
 /*   430 */   139,  139,  139, 1013,  137,  137,  137,  137,  136,  136,
 /*   440 */   135,  135,  135,  134,  131,  479,  240,  604,  140,  142,
 /*   450 */   436,   94, 1362, 1362, 1197, 1200, 1187, 1187,  138,  138,
 /*   460 */   139,  139,  139,  139,  101,  137,  137,  137,  137,  136,
 /*   470 */   136,  135,  135,  135,  134,  131,  479,  140,  142,  436,
 /*   480 */    94, 1362, 1362, 1197, 1200, 1187, 1187,  138,  138,  139,
 /*   490 */   139,  139,  139,  587,  137,  137,  137,  137,  136,  136,
 /*   500 */   135,  135,  135,  134,  131,  479,  137,  137,  137,  137,
 /*   510 */   136,  136,  135,  135,  135,  134,  131,  479, 1463,  307,
 /*   520 */  1447, 1621, 1175,  316, 1509,  407, 1740,  400,  139,  139,
 /*   530 */   139,  139,  226,  137,  137,  137,  137,  136,  136,  135,
 /*   540 */   135,  135,  134,  131,  479,  299,  243,  299,  330,  640,
 /*   550 */   490,  487,  486, 1158,  292, 1462,  292,  630, 1103,  636,
 /*   560 */   485, 1798,  277,  237, 1384,  419,  630, 1383,  636,  408,
 /*   570 */  1621,  299,  299,  299,  299,  299,  299,  299,  299,  133,
 /*   580 */   130,  241, 1321,  630,  630,  636,  636,  630,  630,  636,
 /*   590 */   636, 1103,  239,  140,  142,  436,   94, 1362, 1362, 1197,
 /*   600 */  1200, 1187, 1187,  138,  138,  139,  139,  139,  139, 1153,
 /*   610 */   137,  137,  137,  137,  136,  136,  135,  135,  135,  134,
 /*   620 */   131,  479,  140,  142,  436,   94, 1362, 1362, 1197, 1200,
 /*   630 */  1187, 1187,  138,  138,  139,  139,  139,  139,  529,  137,
 /*   640 */   137,  137,  137,  136,  136,  135,  135,  135,  134,  131,
 /*   650 */   479,  140,  142,  436,   94, 1362, 1362, 1197, 1200, 1187,
 /*   660 */  1187,  138,  138,  139,  139,  139,  139,  523,  137,  137,
 /*   670 */   137,  137,  136,  136,  135,  135,  135,  134,  131,  479,
 /*   680 */   140,  142,  436,   94, 1362, 1362, 1197, 1200, 1187, 1187,
 /*   690 */   138,  138,  139,  139,  139,  139,  306,  137,  137,  137,
 /*   700 */   137,  136,  136,  135,  135,  135,  134,  131,  479,  527,
 /*   710 */   349,  140,  142,  436,   94, 1362, 1362, 1197, 1200, 1187,
 /*   720 */  1187,  138,  138,  139,  139,  139,  139, 1259,  137,  137,
 /*   730 */   137,  137,  136,  136,  135,  135,  135,  134,  131,  479,
 /*   740 */   597,  430,  996,  366,  514,  358,  516, 1501,  119,  140,
 /*   750 */   129,  436,   94, 1362, 1362, 1197, 1200, 1187, 1187,  138,
 /*   760 */   138,  139,  139,  139,  139, 1303,  137,  137,  137,  137,
 /*   770 */   136,  136,  135,  135,  135,  134,  131,  479, 1668,  309,
 /*   780 */   491, 1303, 1303,  228,  450, 1303,  441,  218,  638, 1219,
 /*   790 */   491,  491,  507,  299,  639,  299,  608,  589, 1303,  116,
 /*   800 */  1338, 1303,  494,  401,  494,  630,  123,  636, 1338, 1501,
 /*   810 */   447,    2,  494,   87,   87, 1829,  420,  303,  160,  436,
 /*   820 */    94, 1362, 1362, 1197, 1200, 1187, 1187,  138,  138,  139,
 /*   830 */   139,  139,  139,  127,  137,  137,  137,  137,  136,  136,
 /*   840 */   135,  135,  135,  134,  131,  479,  141,  556,  621, 1303,
 /*   850 */   607,  355,  125,  125, 1741,  127,  299,  620,  299,    9,
 /*   860 */   126,  622,  477,  398,  617,  538, 1303,  639,  630, 1303,
 /*   870 */   636,  535,  639,  634,  125,  125,    6,  498,  507,  506,
 /*   880 */   507,  616,  126,  261,  477, 1339,   54,   54, 1338,  338,
 /*   890 */  1449,   87,   87, 1339,  552,  634, 1338,  444,  627,  250,
 /*   900 */   287, 1449,  340,  501,  343,  500,  249, 1384,  419, 1338,
 /*   910 */  1282,   47,  341,  299,  590,  299,  103, 1338,  606,  495,
 /*   920 */   627,   47,  527,  295, 1103,  630,  621,  636,  633,  639,
 /*   930 */   386, 1174,  388,  451,    4,  623, 1676, 1239,  610,  592,
 /*   940 */  1389,    1,    1,  609,  427,  431,  631,  637,   22,   22,
 /*   950 */   477, 1162,  215, 1174, 1338,  534,    4, 1103,  239,  508,
 /*   960 */   337,  248,  445,  389,  416,  387,  330,  640,  631,  637,
 /*   970 */   616,  477,  477, 1162, 1771,  332,  330,  640, 1153,  559,
 /*   980 */  1162, 1162, 1164, 1165,   37,  405,  569,  440,  405,  162,
 /*   990 */   653,  186,  312,  477, 1322,  503,  299,  299,  299,  299,
 /*  1000 */   633,  633, 1162, 1162, 1164, 1165,   37, 1070,  630,  630,
 /*  1010 */   636,  636,  238,  518,  368,  494, 1322,  494,  493,  255,
 /*  1020 */   493,  353,  458,  290,    2,  494,  525,  641,  493, 1070,
 /*  1030 */   303,  160,  352,  303,  160,  384,  639,  550,  533, 1339,
 /*  1040 */   243,  567, 1338,  563,  490,  487,  486,  375,  127,  378,
 /*  1050 */   257,  424,  423,  381,  485,   54,   54,  383,  272,  639,
 /*  1060 */  1768,  180,  599, 1338,   46,  410,   47,  125,  125,  299,
 /*  1070 */   576,  299,  299,  639,  299,  126,  186,  477,   54,   54,
 /*  1080 */   380,  630,  256,  636,  630,  639,  636,  458,  634, 1057,
 /*  1090 */  1515,  639,   63,   63,  474,  473,  261,  435,  384,  261,
 /*  1100 */   630,  579,  636,  574,   87,   87,  595,  595,    7,  333,
 /*  1110 */    22,   22,  366,  627,  299, 1016,  299, 1338,  453,  330,
 /*  1120 */   640,  330,  640, 1338,  302,  639,  630,  600,  636, 1261,
 /*  1130 */  1338,  610,  495,   98,  311,  495,  611,  453,  300,  621,
 /*  1140 */   300, 1326,  505,  527,   22,   22, 1174, 1261,  471,    4,
 /*  1150 */   630, 1262,  636, 1056,  127, 1772,  404,  404,  456, 1303,
 /*  1160 */    48,  631,  637,  215, 1358,  477, 1162,   49,  332, 1262,
 /*  1170 */  1260,  626,  559,  125,  125,  425, 1303,  612,  215, 1303,
 /*  1180 */   612,  126,  216,  477, 1174,  533,  477,  639, 1260,  197,
 /*  1190 */   417,  605,  605,    7,  634, 1162, 1162, 1164, 1165,   37,
 /*  1200 */  1163,  217, 1339, 1016, 1162, 1338,   22,   22, 1339, 1322,
 /*  1210 */   301, 1338,  255,  315,  353, 1339,  290,  527, 1338,  627,
 /*  1220 */   461,  412, 1370,  403, 1370,  352, 1338,   47,  384, 1494,
 /*  1230 */   550, 1503, 1338, 1162, 1162, 1164,   10,  610, 1450, 1338,
 /*  1240 */   280, 1036,  609,  257,  583,  639,  381, 1322, 1083, 1358,
 /*  1250 */   383,  272, 1174,  454,  180,    4, 1338,   46,  552,  127,
 /*  1260 */   499, 1338,  624,  984,   85,   85, 1481,  631,  637,  986,
 /*  1270 */  1037,  477, 1162,  332,  985,  256,  116,  559,  125,  125,
 /*  1280 */  1082,  365,  330,  640, 1538,  325,  126,  317,  477, 1480,
 /*  1290 */   435,  384,  477, 1503, 1338, 1027,  299,  373,  299,  634,
 /*  1300 */   434, 1162, 1162, 1164, 1165,   37,  301,   28,  630,  531,
 /*  1310 */   636,  511,  330,  640,  299, 1322,  299,  255,  127,  353,
 /*  1320 */   639,  290,  433,  586,  627,  411,  630,  475,  636,  448,
 /*  1330 */   352,  400,  310,  384, 1326,  505,  310,  125,  125,   87,
 /*  1340 */    87, 1339,   25,   25, 1338,  126, 1339,  477,  257, 1338,
 /*  1350 */   400,  381,  299, 1479,  299,  383,  272, 1174,  634,  180,
 /*  1360 */     4, 1338,   46, 1341,  630, 1338,  636, 1338, 1478, 1105,
 /*  1370 */  1338,   51,  631,  637,  593, 1620,  477, 1162, 1174, 1339,
 /*  1380 */   256,  235, 1338,  627, 1078,   93,  459, 1338, 1077, 1619,
 /*  1390 */    53, 1244, 1244,  541, 1163,  435,  384,  477, 1162,  475,
 /*  1400 */   475, 1681, 1104, 1338,  125,  125, 1162, 1162, 1164, 1165,
 /*  1410 */    37,  398,  126,  229,  477,  597, 1174,  330,  640,    4,
 /*  1420 */  1322,  342, 1338,  408, 1620,  634,  532, 1162, 1162, 1164,
 /*  1430 */   601,  631,  637,  198,  519,  477, 1162,  408, 1619, 1338,
 /*  1440 */   505, 1322,   51,  400,  127,  467, 1339, 1459, 1341, 1338,
 /*  1450 */   627,  459, 1339,  619,  363, 1338,  477,  110,  639,    5,
 /*  1460 */   400,   53,  400,  125,  125, 1162, 1162, 1164, 1165,   37,
 /*  1470 */  1338,  126, 1339,  477, 1722, 1338, 1338,   22,   22, 1322,
 /*  1480 */   482,  512,  248, 1174,  634,  400,    4, 1681, 1683, 1681,
 /*  1490 */   589,  469,  433,  639,   45,  509, 1338,  639,  631,  637,
 /*  1500 */    50,  521,  477, 1162, 1008,  474,  473, 1339,  440,  627,
 /*  1510 */  1338,    3,   22,   22, 1367, 1338,   22,   22,  110,  639,
 /*  1520 */   618,  313,  460,  477, 1339,   52,  210, 1338,  598,  598,
 /*  1530 */   211, 1338, 1162, 1162, 1164, 1165,   37,  591,   87,   87,
 /*  1540 */  1078,  540, 1174,  614, 1077,    4, 1322,  639, 1338, 1724,
 /*  1550 */   639,  552,  974, 1452,  443,  639, 1403,  631,  637,  639,
 /*  1560 */   974,  477, 1162,  655,  639,  468,   22,   22,  613,   87,
 /*  1570 */    87,   50,  400,  326,   87,   87,  164, 1314,   87,   87,
 /*  1580 */   615,  504,  477,   87,   87, 1745,    7,  460, 1358, 1008,
 /*  1590 */  1711, 1162, 1162, 1164, 1165,   37,   52,  400,  591,  520,
 /*  1600 */  1339,  639, 1369, 1338,  327, 1322,  540,  590,  341,  472,
 /*  1610 */   433, 1368, 1720,  476,  533, 1746,    7,  639,  478,  639,
 /*  1620 */   148,  148,  632,  443, 1338, 1314,  639,  959,  639,  350,
 /*  1630 */   468,  639,  351, 1370,  639, 1370,  150,  150,   56,   56,
 /*  1640 */   639,  974,  639, 1744,    7,   57,   57,   58,   58,  639,
 /*  1650 */    59,   59,  639,   69,   69,  639,   42,  639,  975,   70,
 /*  1660 */    70,   24,   24,  639,  280,  639,  975,  639,   60,   60,
 /*  1670 */   639,   71,   71, 1358,   61,   61,   72,   72,  639, 1743,
 /*  1680 */     7,  639,   73,   73,   74,   74,   75,   75,  639,   76,
 /*  1690 */    76,  169,  639, 1398, 1400,  639,  354,   77,   77,  639,
 /*  1700 */    78,   78,  639,  552,  639,  580,  639,   79,   79,  639,
 /*  1710 */   318,   80,   80,  639,   62,   62,  639,  978,   64,   64,
 /*  1720 */  1023,   23,   23,  146,  146,  147,  147,  602,   82,   82,
 /*  1730 */   639,  552,   65,   65,  639,   83,   83,  639,  247,  246,
 /*  1740 */   245,  639, 1675,  552,  639, 1536,  639,  975,   41,   66,
 /*  1750 */    66, 1397, 1399,   84,   84,  158,   67,   67,  639,   14,
 /*  1760 */   173,  173, 1550,  174,  174,   91,   91,  639,  235,  639,
 /*  1770 */  1510,  639, 1391,  639,  643,  651,  639,   68,   68,  639,
 /*  1780 */  1378,  639, 1506,  639,  446,  188,  149,  149,   86,   86,
 /*  1790 */   171,  171,  151,  151,  639,  145,  145,  639,  172,  172,
 /*  1800 */   165,  165,  155,  155,  639, 1023,  639,  111,  639,  524,
 /*  1810 */   639,  585,  639,  154,  154, 1226,  152,  152,  639, 1357,
 /*  1820 */   433,  297,  237,  153,  153,   89,   89,   81,   81,   90,
 /*  1830 */    90,   88,   88,  329, 1797, 1045, 1117,   55,   55,  104,
 /*  1840 */   225,  124, 1166,  121,  433,  254,  347, 1118,  483,  276,
 /*  1850 */  1042,  229,  335,  116, 1278,  421,  346, 1035, 1238, 1034,
 /*  1860 */  1238, 1043,  260,  298, 1786,  258,  364,  116, 1155,  279,
 /*  1870 */   526,  279,  528,  279,  369,  116,  965,  570,  582,  954,
 /*  1880 */   650,  960,  650, 1222,  276, 1108,  279,  168,  116, 1120,
 /*  1890 */  1121, 1075,  141, 1237, 1549, 1237, 1006,  163, 1076,  141,
 /*  1900 */  1226, 1073,  141,  513,  649,  645, 1287, 1727,  359, 1700,
 /*  1910 */  1699,  536,  370,  374,  208,  377,  379, 1759, 1438, 1437,
 /*  1920 */  1439, 1779, 1546,  399, 1559,  625, 1604, 1166, 1532, 1544,
 /*  1930 */  1609,  544,  288,  557,  385,  170, 1529,  322,  323,   12,
 /*  1940 */   324, 1591, 1586, 1579,  253,  308,  361, 1782,  530,  362,
 /*  1950 */   231, 1596,  314, 1416,  213,  480,  214, 1595,  428, 1541,
 /*  1960 */   206, 1542,  488,  654,  345,  234, 1672, 1671,  628, 1477,
 /*  1970 */   502,   43,  492,   96,  449, 1027, 1378,  283,  418, 1497,
 /*  1980 */  1375, 1496, 1495,  103, 1719,  227,   21,  195,  185,  367,
 /*  1990 */   190,  251, 1796, 1717,  547,   99, 1795, 1794,  415,  422,
 /*  2000 */   230, 1488,  452, 1467,  111,  263, 1466,  344, 1540,  515,
 /*  2010 */  1487, 1539, 1465,  543,  109, 1332,  274,  537,  267,  551,
 /*  2020 */   271,  289,  268,  273,  376,  269,  977, 1440,  270,  548,
 /*  2030 */  1435, 1430,  192,  967,  319,  462,  575,  393,  463,  577,
 /*  2040 */   545,  578,  394, 1600,  464,  465,  199,  466,  426,  281,
 /*  2050 */   144,  616,  522,  282,  470,  429,  240, 1666,   11,  120,
 /*  2060 */   397,  242,  112,  202,  203,  409,  204, 1592,  594, 1412,
 /*  2070 */    13,  205, 1411,  346,  187, 1677, 1598, 1406, 1597,   15,
 /*  2080 */  1405,  484,   95,   26,  102,   27,  336,  489, 1520,  402,
 /*  2090 */   178,  156,  224,  232,  157,  233, 1704, 1025, 1705, 1328,
 /*  2100 */   304, 1703, 1702,   92, 1327,  339, 1688,  372,  497, 1038,
 /*  2110 */    97,  305,  414,  219, 1519,  179, 1564, 1563,  320,  321,
 /*  2120 */   348,  413,  252,  356,  159, 1236, 1234,  262,  181, 1357,
 /*  2130 */   191,  193,  259, 1250,  194,  360, 1653,  182,  183,  584,
 /*  2140 */   455,  328,  457,  105,  196,  106,  107,  108, 1253,  264,
 /*  2150 */   265,  184, 1249,  166,   29,  266,  371, 1242,  279,  200,
 /*  2160 */  1372, 1750,  542,  201,   16, 1749,  546,  382,  995,  175,
 /*  2170 */   549,  176,  980, 1059,  275,  976,  189,  553,  555, 1764,
 /*  2180 */   438,  554,  177,  439,  442,  291,  558,  970,  969,  561,
 /*  2190 */   562,  564,  390,  565,  568,  566,  966,  220,  571,  391,
 /*  2200 */   572, 1288,  573,  392,   17,  962,   18,  395,  396,  432,
 /*  2210 */   581, 1289,  294,   19, 1106,  278, 1309,  236,  115, 1112,
 /*  2220 */   296,  207,  141,   30, 1294,   44, 1203,  596,   31,  209,
 /*  2230 */   114,  167,  603, 1319,   32,   33, 1305,   34, 1307,    8,
 /*  2240 */  1313,   35, 1312,  116,   36, 1217, 1204, 1202, 1206, 1207,
 /*  2250 */   331,  646,  122,  648,  222,  117, 1258,  284,   38,  629,
 /*  2260 */   652,  437,   20, 1069,  956,  118, 1167, 1007, 1390,  128,
 /*  2270 */  1390,   39, 1390, 1390, 1390, 1390, 1390, 1390, 1390,  635,
 /*  2280 */  1390, 1787, 1390,  285,  286,   40,  642, 1390,  948,  644,
 /*  2290 */  1390,  947, 1390,  650,  647,  223,
};
static const YYCODETYPE yy_lookahead[] = {
 /*     0 */   198,  216,  274,  275,  276,  214,  274,  275,  276,  224,
 /*    10 */    10,   11,   12,   13,   14,   15,   16,   17,   18,   19,
 /*    20 */    20,   21,   22,   23,   24,   25,  298,   27,   28,   29,
 /*    30 */    30,   31,   32,   33,   34,   35,   36,   37,   38,   36,
 /*    40 */    37,   38,   14,   15,   16,   17,   46,   31,   32,   33,
 /*    50 */    34,   35,   36,   37,   38,  314,  315,   57,   33,   34,
 /*    60 */    35,   36,   37,   38,  262,  274,  275,  276,   10,   11,
 /*    70 */    12,   13,   14,   15,   16,   17,   18,   19,   20,   21,
 /*    80 */    22,   23,   24,   25,   38,   27,   28,   29,   30,   31,
 /*    90 */    32,   33,   34,   35,   36,   37,   38,   10,   11,   12,
 /*   100 */    13,   14,   15,   16,   17,   18,   19,   20,   21,   22,
 /*   110 */    23,   24,   25,   41,   27,   28,   29,   30,   31,   32,
 /*   120 */    33,   34,   35,   36,   37,   38,   11,   12,   13,   14,
 /*   130 */    15,   16,   17,   18,   19,   20,   21,   22,   23,   24,
 /*   140 */    25,  198,   27,   28,   29,   30,   31,   32,   33,   34,
 /*   150 */    35,   36,   37,   38,   96,  224,   98,  226,  130,  214,
 /*   160 */   217,  218,   75,   91,  233,   10,   11,   12,   13,   14,
 /*   170 */    15,   16,   17,   18,   19,   20,   21,   22,   23,   24,
 /*   180 */    25,  220,   27,   28,   29,   30,   31,   32,   33,   34,
 /*   190 */    35,   36,   37,   38,   41,  252,  112,  113,  126,  115,
 /*   200 */   116,  129,  116,  116,  261,   22,   23,   24,   25,   26,
 /*   210 */    27,   28,   29,   30,   31,   32,   33,   34,   35,   36,
 /*   220 */    37,   38,  150,  112,  113,  260,  115,  116,   73,  264,
 /*   230 */    44,  145,  146,  288,   48,  274,  275,  276,  293,   10,
 /*   240 */    11,   12,   13,   14,   15,   16,   17,   18,   19,   20,
 /*   250 */    21,   22,   23,   24,   25,   69,   27,   28,   29,   30,
 /*   260 */    31,   32,   33,   34,   35,   36,   37,   38,   10,   11,
 /*   270 */    12,   13,   14,   15,   16,   17,   18,   19,   20,   21,
 /*   280 */    22,   23,   24,   25,   41,   27,   28,   29,   30,   31,
 /*   290 */    32,   33,   34,   35,   36,   37,   38,   10,   11,   12,
 /*   300 */    13,   14,   15,   16,   17,   18,   19,   20,   21,   22,
 /*   310 */    23,   24,   25,   41,   27,   28,   29,   30,   31,   32,
 /*   320 */    33,   34,   35,   36,   37,   38,  137,  138,   10,   11,
 /*   330 */    12,   13,   14,   15,   16,   17,   18,   19,   20,   21,
 /*   340 */    22,   23,   24,   25,  115,   27,   28,   29,   30,   31,
 /*   350 */    32,   33,   34,   35,   36,   37,   38,   10,   11,   12,
 /*   360 */    13,   14,   15,   16,   17,   18,   19,   20,   21,   22,
 /*   370 */    23,   24,   25,  115,   27,   28,   29,   30,   31,   32,
 /*   380 */    33,   34,   35,   36,   37,   38,   10,   11,   12,   13,
 /*   390 */    14,   15,   16,   17,   18,   19,   20,   21,   22,   23,
 /*   400 */    24,   25,  115,   27,   28,   29,   30,   31,   32,   33,
 /*   410 */    34,   35,   36,   37,   38,  198,  217,   10,   11,   12,
 /*   420 */    13,   14,   15,   16,   17,   18,   19,   20,   21,   22,
 /*   430 */    23,   24,   25,  115,   27,   28,   29,   30,   31,   32,
 /*   440 */    33,   34,   35,   36,   37,   38,  171,  172,   10,   11,
 /*   450 */    12,   13,   14,   15,   16,   17,   18,   19,   20,   21,
 /*   460 */    22,   23,   24,   25,  117,   27,   28,   29,   30,   31,
 /*   470 */    32,   33,   34,   35,   36,   37,   38,   10,   11,   12,
 /*   480 */    13,   14,   15,   16,   17,   18,   19,   20,   21,   22,
 /*   490 */    23,   24,   25,  187,   27,   28,   29,   30,   31,   32,
 /*   500 */    33,   34,   35,   36,   37,   38,   27,   28,   29,   30,
 /*   510 */    31,   32,   33,   34,   35,   36,   37,   38,  217,  187,
 /*   520 */   187,  273,  115,  187,  187,  220,  309,  310,   22,   23,
 /*   530 */    24,   25,  156,   27,   28,   29,   30,   31,   32,   33,
 /*   540 */    34,   35,   36,   37,   38,  239,  127,  241,  145,  146,
 /*   550 */   131,  132,  133,  115,  239,  217,  241,  251,  116,  253,
 /*   560 */   141,  230,  256,  257,  112,  113,  251,  115,  253,  321,
 /*   570 */   322,  239,  239,  241,  241,  239,  239,  241,  241,  274,
 /*   580 */   275,  276,  115,  251,  251,  253,  253,  251,  251,  253,
 /*   590 */   253,  149,  150,   10,   11,   12,   13,   14,   15,   16,
 /*   600 */    17,   18,   19,   20,   21,   22,   23,   24,   25,    2,
 /*   610 */    27,   28,   29,   30,   31,   32,   33,   34,   35,   36,
 /*   620 */    37,   38,   10,   11,   12,   13,   14,   15,   16,   17,
 /*   630 */    18,   19,   20,   21,   22,   23,   24,   25,  198,   27,
 /*   640 */    28,   29,   30,   31,   32,   33,   34,   35,   36,   37,
 /*   650 */    38,   10,   11,   12,   13,   14,   15,   16,   17,   18,
 /*   660 */    19,   20,   21,   22,   23,   24,   25,   40,   27,   28,
 /*   670 */    29,   30,   31,   32,   33,   34,   35,   36,   37,   38,
 /*   680 */    10,   11,   12,   13,   14,   15,   16,   17,   18,   19,
 /*   690 */    20,   21,   22,   23,   24,   25,  109,   27,   28,   29,
 /*   700 */    30,   31,   32,   33,   34,   35,   36,   37,   38,  198,
 /*   710 */   123,   10,   11,   12,   13,   14,   15,   16,   17,   18,
 /*   720 */    19,   20,   21,   22,   23,   24,   25,  115,   27,   28,
 /*   730 */    29,   30,   31,   32,   33,   34,   35,   36,   37,   38,
 /*   740 */   198,  187,   85,  136,  137,  138,   89,  234,  165,   10,
 /*   750 */    11,   12,   13,   14,   15,   16,   17,   18,   19,   20,
 /*   760 */    21,   22,   23,   24,   25,   82,   27,   28,   29,   30,
 /*   770 */    31,   32,   33,   34,   35,   36,   37,   38,  121,  268,
 /*   780 */   198,   82,   99,  156,   12,  102,  202,  117,  198,  132,
 /*   790 */   208,  209,  198,  239,  198,  241,   97,   12,   99,  116,
 /*   800 */    41,  102,  185,  198,  187,  251,  165,  253,   41,  296,
 /*   810 */    38,  194,  195,  217,  218,  305,  306,  200,  201,   12,
 /*   820 */    13,   14,   15,   16,   17,   18,   19,   20,   21,   22,
 /*   830 */    23,   24,   25,   12,   27,   28,   29,   30,   31,   32,
 /*   840 */    33,   34,   35,   36,   37,   38,  116,    3,  252,   82,
 /*   850 */   151,  198,   31,   32,  312,   12,  239,  261,  241,   16,
 /*   860 */    39,  187,   41,  198,   97,  281,   99,  198,  251,  102,
 /*   870 */   253,  287,  198,   52,   31,   32,  214,  105,  284,  285,
 /*   880 */   286,  151,   39,  266,   41,  126,  217,  218,  129,  117,
 /*   890 */   198,  217,  218,  126,  198,   52,  129,  232,   77,  127,
 /*   900 */   128,  209,  130,  131,  132,  133,  134,  112,  113,  150,
 /*   910 */   115,   90,  140,  239,  129,  241,  157,  150,  151,  302,
 /*   920 */    77,   90,  198,  115,  116,  251,  252,  253,  213,  198,
 /*   930 */    86,  110,   88,  237,  113,  261,  283,   61,   95,  198,
 /*   940 */   323,  324,  325,  100,  187,  187,  125,  126,  217,  218,
 /*   950 */   129,  130,  198,  110,   41,  293,  113,  149,  150,  128,
 /*   960 */   206,   14,  231,  119,  210,  121,  145,  146,  125,  126,
 /*   970 */   151,  150,  129,  130,    0,    1,  145,  146,    2,    5,
 /*   980 */   159,  160,  161,  162,  163,  316,    4,   40,  319,  170,
 /*   990 */     8,  198,  268,  150,  173,  299,  239,  239,  241,  241,
 /*  1000 */   285,  286,  159,  160,  161,  162,  163,  122,  251,  251,
 /*  1010 */   253,  253,  198,  137,  138,  185,  173,  187,  185,   45,
 /*  1020 */   187,   47,  198,   49,  194,  195,  269,  142,  195,  144,
 /*  1030 */   200,  201,   58,  200,  201,   61,  198,   63,  198,  126,
 /*  1040 */   127,  190,  129,  192,  131,  132,  133,   86,   12,   88,
 /*  1050 */    76,   31,   32,   79,  141,  217,  218,   83,   84,  198,
 /*  1060 */   198,   87,  187,  150,   90,  198,   90,   31,   32,  239,
 /*  1070 */    88,  241,  239,  198,  241,   39,  198,   41,  217,  218,
 /*  1080 */   119,  251,  108,  253,  251,  198,  253,  263,   52,    2,
 /*  1090 */   241,  198,  217,  218,   31,   32,  266,  123,  124,  266,
 /*  1100 */   251,  119,  253,  121,  217,  218,  313,  314,  315,  198,
 /*  1110 */   217,  218,  136,   77,  239,   41,  241,   41,  198,  145,
 /*  1120 */   146,  145,  146,   41,  231,  198,  251,  252,  253,   42,
 /*  1130 */    41,   95,  302,  113,  294,  302,  100,  198,  239,  252,
 /*  1140 */   241,  167,  168,  198,  217,  218,  110,   42,  261,  113,
 /*  1150 */   251,   64,  253,   66,   12,  325,  318,  319,  231,   82,
 /*  1160 */    78,  125,  126,  198,   41,  129,  130,   78,    1,   64,
 /*  1170 */    83,   66,    5,   31,   32,  210,   99,  316,  198,  102,
 /*  1180 */   319,   39,  262,   41,  110,  198,  150,  198,   83,  113,
 /*  1190 */   210,  313,  314,  315,   52,  159,  160,  161,  162,  163,
 /*  1200 */   126,  262,  126,  129,  130,  129,  217,  218,  126,  173,
 /*  1210 */   230,  129,   45,  268,   47,  126,   49,  198,  129,   77,
 /*  1220 */   231,  248,  159,  250,  161,   58,  150,   90,   61,  198,
 /*  1230 */    63,  234,  150,  159,  160,  161,  113,   95,  198,  150,
 /*  1240 */   117,   51,  100,   76,  187,  198,   79,  173,   33,  126,
 /*  1250 */    83,   84,  110,   59,   87,  113,   41,   90,  198,   12,
 /*  1260 */    70,   41,  187,   56,  217,  218,  227,  125,  126,   62,
 /*  1270 */    80,  129,  130,    1,   67,  108,  116,    5,   31,   32,
 /*  1280 */    33,  294,  145,  146,  259,  260,   39,  268,   41,  227,
 /*  1290 */   123,  124,  150,  296,   41,  135,  239,  237,  241,   52,
 /*  1300 */   187,  159,  160,  161,  162,  163,  326,  113,  251,   12,
 /*  1310 */   253,  243,  145,  146,  239,  173,  241,   45,   12,   47,
 /*  1320 */   198,   49,  254,  198,   77,  278,  251,  213,  253,  139,
 /*  1330 */    58,  198,  260,   61,  167,  168,  264,   31,   32,  217,
 /*  1340 */   218,  126,  217,  218,  129,   39,  126,   41,   76,  129,
 /*  1350 */   198,   79,  239,  227,  241,   83,   84,  110,   52,   87,
 /*  1360 */   113,   41,   90,   41,  251,  150,  253,   41,  198,  149,
 /*  1370 */   150,  238,  125,  126,  252,  273,  129,  130,  110,  126,
 /*  1380 */   108,  116,  129,   77,  143,   12,  198,   41,  147,  273,
 /*  1390 */   238,  136,  137,  138,  126,  123,  124,  150,  130,  285,
 /*  1400 */   286,  198,  149,  150,   31,   32,  159,  160,  161,  162,
 /*  1410 */   163,  198,   39,  148,   41,  198,  110,  145,  146,  113,
 /*  1420 */   173,  198,   41,  321,  322,   52,  129,  159,  160,  161,
 /*  1430 */    33,  125,  126,  113,  138,  129,  130,  321,  322,   41,
 /*  1440 */   168,  173,  309,  310,   12,  232,  126,  198,  126,  129,
 /*  1450 */    77,  263,  126,  147,  158,  129,  150,   40,  198,  113,
 /*  1460 */   198,  309,  310,   31,   32,  159,  160,  161,  162,  163,
 /*  1470 */   150,   39,  126,   41,  198,  129,  150,  217,  218,  173,
 /*  1480 */    12,  243,   14,  110,   52,  198,  113,  284,  285,  286,
 /*  1490 */    12,  231,  254,  198,  113,  269,  150,  198,  125,  126,
 /*  1500 */   238,  138,  129,  130,   41,   31,   32,  126,   40,   77,
 /*  1510 */   129,  113,  217,  218,   40,   41,  217,  218,   40,  198,
 /*  1520 */   147,  158,  198,  150,  126,  238,  231,  129,  311,  312,
 /*  1530 */   231,  150,  159,  160,  161,  162,  163,  120,  217,  218,
 /*  1540 */   143,  198,  110,   70,  147,  113,  173,  198,  150,  198,
 /*  1550 */   198,  198,   33,  211,  212,  198,    3,  125,  126,  198,
 /*  1560 */    41,  129,  130,   10,  198,  198,  217,  218,   95,  217,
 /*  1570 */   218,  309,  310,  252,  217,  218,  113,  104,  217,  218,
 /*  1580 */   231,  198,  150,  217,  218,  314,  315,  263,   41,  126,
 /*  1590 */   237,  159,  160,  161,  162,  163,  309,  310,  120,  243,
 /*  1600 */   126,  198,  128,  129,  252,  173,  263,  129,  140,  252,
 /*  1610 */   254,  137,  198,  252,  198,  314,  315,  198,  252,  198,
 /*  1620 */   217,  218,  211,  212,  150,  152,  198,   41,  198,  198,
 /*  1630 */   263,  198,  198,  159,  198,  161,  217,  218,  217,  218,
 /*  1640 */   198,  122,  198,  314,  315,  217,  218,  217,  218,  198,
 /*  1650 */   217,  218,  198,  217,  218,  198,   21,  198,   33,  217,
 /*  1660 */   218,  217,  218,  198,  117,  198,   41,  198,  217,  218,
 /*  1670 */   198,  217,  218,  126,  217,  218,  217,  218,  198,  314,
 /*  1680 */   315,  198,  217,  218,  217,  218,  217,  218,  198,  217,
 /*  1690 */   218,  115,  198,  181,  182,  198,  198,  217,  218,  198,
 /*  1700 */   217,  218,  198,  198,  198,  119,  198,  217,  218,  198,
 /*  1710 */   294,  217,  218,  198,  217,  218,  198,  112,  217,  218,
 /*  1720 */    41,  217,  218,  217,  218,  217,  218,  151,  217,  218,
 /*  1730 */   198,  198,  217,  218,  198,  217,  218,  198,  136,  137,
 /*  1740 */   138,  198,  237,  198,  198,  258,  198,  122,  113,  217,
 /*  1750 */   218,  181,  182,  217,  218,  113,  217,  218,  198,  117,
 /*  1760 */   217,  218,  198,  217,  218,  217,  218,  198,  116,  198,
 /*  1770 */   237,  198,  167,  198,  179,  180,  198,  217,  218,  198,
 /*  1780 */    53,  198,  237,  198,  303,  304,  217,  218,  217,  218,
 /*  1790 */   217,  218,  217,  218,  198,  217,  218,  198,  217,  218,
 /*  1800 */   217,  218,  217,  218,  198,  126,  198,  155,  198,  243,
 /*  1810 */   198,   12,  198,  217,  218,   41,  217,  218,  198,  116,
 /*  1820 */   254,  256,  257,  217,  218,  217,  218,  217,  218,  217,
 /*  1830 */   218,  217,  218,  243,  115,  116,   46,  217,  218,  155,
 /*  1840 */   156,  164,   41,  166,  254,  118,  130,   57,  115,  116,
 /*  1850 */    56,  148,  115,  116,  115,  116,  140,  128,  159,  130,
 /*  1860 */   161,   67,  114,  113,  114,  117,  115,  116,  115,  116,
 /*  1870 */   115,  116,  115,  116,  115,  116,  115,  116,    9,  115,
 /*  1880 */   116,  115,  116,  115,  116,  115,  116,  115,  116,   93,
 /*  1890 */    94,  115,  116,  159,  198,  161,  115,  116,  115,  116,
 /*  1900 */   126,  115,  116,  198,  113,  114,  107,  198,  198,  198,
 /*  1910 */   198,  198,  198,  198,  255,  198,  198,  320,  198,  198,
 /*  1920 */   198,  198,  198,  198,  198,  296,  198,  126,  198,  198,
 /*  1930 */   198,  290,  289,  193,  196,  240,  255,  255,  255,  242,
 /*  1940 */   255,  271,  267,  267,  300,  244,  295,  205,  295,  245,
 /*  1950 */   215,  271,  245,  178,  248,  186,  248,  271,  271,  259,
 /*  1960 */   113,  259,  221,  184,  220,  229,  220,  220,  280,  226,
 /*  1970 */    40,  116,  207,  113,   68,  135,   53,  114,  222,  219,
 /*  1980 */    55,  219,  219,  157,  204,  156,  117,  113,   10,  244,
 /*  1990 */   300,  300,  225,  204,  111,  297,  225,  219,  244,  222,
 /*  2000 */   242,  228,  204,  219,  155,  203,  221,  219,  259,  204,
 /*  2010 */   228,  259,  219,   65,  164,   84,  174,  204,  203,  111,
 /*  2020 */   199,  204,  203,  199,  204,  203,  112,  204,  203,  197,
 /*  2030 */   197,  197,  235,   41,  191,  189,  183,  113,  180,  183,
 /*  2040 */   222,  120,  188,  235,  180,  117,  235,   38,  245,  204,
 /*  2050 */   154,  151,  245,  101,   92,  245,  171,  245,  113,  164,
 /*  2060 */   222,  134,  153,  236,  236,  204,  236,  272,  152,  178,
 /*  2070 */   270,  236,  178,  140,  113,  283,  272,  178,  272,  270,
 /*  2080 */   178,   73,  113,  113,  297,  113,  115,   73,  249,  248,
 /*  2090 */   116,  115,  113,  215,  223,  215,  214,   41,  214,  167,
 /*  2100 */   223,  214,  214,  214,  167,  117,  292,  291,  106,   43,
 /*  2110 */   113,   73,  245,  247,  249,   54,  265,  265,  282,  282,
 /*  2120 */   169,  246,  118,  146,  119,  115,  115,  120,  139,  116,
 /*  2130 */   157,  148,  117,  167,  148,  119,  277,  139,  139,  308,
 /*  2140 */    59,  279,   54,   21,  157,   21,   21,   21,  129,   50,
 /*  2150 */   114,  139,  167,   49,  113,   40,  121,   74,  116,   74,
 /*  2160 */    81,  317,   60,   40,  117,  317,   12,  118,  125,  301,
 /*  2170 */    72,  301,   71,  125,  114,   41,  304,   40,  121,  322,
 /*  2180 */   307,   41,  301,  307,  114,    6,    3,   41,   41,   41,
 /*  2190 */   116,   41,  117,    7,   41,  115,   41,  113,   41,  113,
 /*  2200 */    40,  107,   41,   41,  117,   41,  117,   41,  113,   41,
 /*  2210 */   118,  115,  115,  113,  149,   50,   81,  114,  155,  129,
 /*  2220 */   115,  113,  116,   50,  115,  113,  115,  117,   50,  116,
 /*  2230 */   116,  115,  113,  115,   50,   50,   98,   50,   96,   11,
 /*  2240 */    81,   50,  103,  116,   50,  115,  115,  115,  115,   61,
 /*  2250 */     7,   41,  116,   41,   41,  148,  115,  113,  113,  116,
 /*  2260 */    41,    3,  113,  143,    2,  148,  115,  115,  327,  113,
 /*  2270 */   327,  113,  327,  327,  327,  327,  327,  327,  327,  116,
 /*  2280 */   327,  114,  327,  114,  114,  113,  115,  327,  114,  114,
 /*  2290 */   327,  115,  327,  116,  114,  113,  327,  327,  327,  327,
 /*  2300 */   327,  327,  327,  327,  327,  327,  327,  327,  327,  327,
 /*  2310 */   327,  327,  327,  327,  327,  327,  327,  327,  327,  327,
 /*  2320 */   327,  327,  327,  327,  327,  327,  327,  327,  327,  327,
 /*  2330 */   327,  327,  327,  327,  327,  327,  327,  327,  327,  327,
 /*  2340 */   327,  327,  327,  327,  327,  327,  327,  327,  327,  327,
 /*  2350 */   327,  327,  327,  327,  327,  327,  327,  327,  327,  327,
 /*  2360 */   327,  327,  327,  327,  327,  327,  327,  327,  327,  327,
 /*  2370 */   327,  327,  327,  327,  327,  327,  327,  327,  327,  327,
 /*  2380 */   327,  327,  327,  327,  327,  327,  327,  327,  327,  327,
 /*  2390 */   327,  327,  327,  327,  327,  327,  327,  327,  327,  327,
 /*  2400 */   327,  327,  327,  327,  327,  327,  327,  327,  327,  327,
 /*  2410 */   327,  327,  327,  327,  327,  327,  327,  327,  327,  327,
 /*  2420 */   327,  327,  327,  327,  327,  327,  327,  327,  327,  327,
 /*  2430 */   327,  327,  327,  327,  327,  327,  327,  327,  327,  327,
 /*  2440 */   327,  327,  327,  327,  327,  327,  327,  327,  327,  327,
 /*  2450 */   327,  327,  327,  327,  327,  327,  327,  327,  327,  327,
 /*  2460 */   327,  327,  327,  327,  327,  327,  327,  327,  327,  327,
 /*  2470 */   327,  327,  327,  327,
};
#define YY_SHIFT_COUNT    (655)
#define YY_SHIFT_MIN      (0)
#define YY_SHIFT_MAX      (2262)
static const unsigned short int yy_shift_ofst[] = {
 /*     0 */  1167,  974, 1272,  821,  821, 1137,  976,  843, 1036, 1142,
 /*    10 */  1432, 1432, 1432,  831, 1137, 1137, 1137, 1137, 1137, 1137,
 /*    20 */  1137, 1137,    0,    0,  155,  701, 1432, 1432, 1432, 1432,
 /*    30 */  1432, 1432, 1432, 1432, 1432, 1432, 1432, 1432, 1432, 1432,
 /*    40 */  1432, 1474, 1474,  913,  767,  767, 1082, 1089, 1326, 1326,
 /*    50 */    86,   86,   86,   86,   58,   87,  229,  258,  287,  318,
 /*    60 */   347,  376,  407,  438,  467,  583,  612,  641,  670,  701,
 /*    70 */   701,  701,  701,  701,  701,  701,  701,  701,  701,  701,
 /*    80 */   701,  701,  701,  701,  701,  701,  739,  701,  701,  115,
 /*    90 */   807,  807, 1247, 1306, 1373, 1432, 1432, 1432, 1432, 1432,
 /*   100 */  1432, 1432, 1432, 1432, 1432, 1432, 1432, 1432, 1432, 1432,
 /*   110 */  1432, 1432, 1432, 1432, 1432, 1432, 1432, 1432, 1432, 1432,
 /*   120 */  1432, 1432, 1432, 1432, 1432, 1432, 1432, 1432, 1432, 1432,
 /*   130 */  1432, 1432, 1432, 1432, 1432, 1432, 1432, 1432, 1432, 1432,
 /*   140 */  1432, 1432, 1432, 1432, 1432,  183,  506,  506,  506,  506,
 /*   150 */   506,  506,  506,  479,   16,   25,   72, 1468, 1326, 1326,
 /*   160 */   657, 1326, 1326, 1063, 1063,    3,  189,  275,  275,  275,
 /*   170 */   403,   46,   46, 2296, 2296,  772,  772,  772,   72, 1087,
 /*   180 */   759, 1076, 1076, 1076, 1076, 1087,  699, 1326,   84,  111,
 /*   190 */  1326, 1326, 1326, 1326, 1326, 1326, 1326, 1326, 1326, 1326,
 /*   200 */  1326, 1326, 1326, 1326, 1326, 1326, 1326, 1326, 1478, 1326,
 /*   210 */   683,  683,  876, 1077, 1077, 1322,  785,  785, 1322,  819,
 /*   220 */   153,  243,  243,  272, 2296, 2296, 2296, 2296, 2296, 2296,
 /*   230 */  2296, 1074, 1268, 1268,  419, 1320, 1215, 1346, 1220, 1253,
 /*   240 */  1381, 1398, 1326, 1326, 1326, 1190, 1190, 1190, 1326, 1326,
 /*   250 */  1326, 1326, 1326, 1326, 1326, 1326, 1326, 1326, 1326, 1326,
 /*   260 */  1326,  607, 1326, 1326, 1326, 1326, 1326, 1326, 1326, 1326,
 /*   270 */  1326, 1326, 1326, 1326, 1326, 1326, 1326,  808, 1326, 1326,
 /*   280 */  1326, 1123, 1473, 1326, 1105, 1326, 1326, 1020, 1255,  186,
 /*   290 */  1207, 1519,  885, 1547, 1547, 1547, 1547,  442, 1397,  885,
 /*   300 */   885, 1719, 1160, 1642,  947, 1790, 1727,  627, 1684, 1265,
 /*   310 */  1684, 1297, 1652,  627,  627, 1652,  627, 1265, 1297, 1605,
 /*   320 */  1790, 1790, 1417, 1417, 1417, 1417,  730,  730, 1677, 1703,
 /*   330 */  1241, 1586, 1553, 1847, 1930, 1930, 1930, 1855, 1860, 1860,
 /*   340 */  1930, 1906, 1847, 1930, 1840, 1930, 1906, 1930, 1923, 1923,
 /*   350 */  1863, 1863, 1925, 1925, 1863, 1826, 1829, 1874, 1978, 1863,
 /*   360 */  1883, 1849, 1829, 1829, 1849, 1874, 1978, 1849, 1978, 1849,
 /*   370 */  1863, 1883, 1850, 1948, 1863, 1883, 1847, 1863, 1883, 1863,
 /*   380 */  1883, 1931, 1931, 1842, 1842, 1842, 1908, 1908, 1908, 1908,
 /*   390 */  1914, 1992, 1924,  272, 1924, 1921,  272, 1928, 2009, 2009,
 /*   400 */  1847, 1863, 1896, 1900, 1952, 1952, 1962, 1962, 1885, 1945,
 /*   410 */  1863, 1895, 1896, 1909, 1916, 1849, 2296, 2296, 2296, 2296,
 /*   420 */  2296, 2296, 2296, 2296, 2296, 2296, 2296, 2296, 2296, 2296,
 /*   430 */  2296, 2296, 2296, 2296, 2296,  844,   28,  982,  452,  795,
 /*   440 */  1602,  961, 1625, 1463, 1733, 1737, 1739, 1679, 1729, 1794,
 /*   450 */  1716,  587, 1635, 1748, 1296, 1363, 1751, 1194, 1753, 1755,
 /*   460 */  1757, 1759, 1761, 1764, 1766, 1799, 1774, 1768, 1770, 1772,
 /*   470 */  1796, 1576, 1776, 1699, 1734, 1781, 1783, 1750, 1786, 1801,
 /*   480 */  1869, 1791, 1933, 1927, 1961, 2008, 1969, 1970, 1971, 1972,
 /*   490 */  2014, 1974, 1976, 1932, 1937, 1979, 2056, 1988, 2002, 2066,
 /*   500 */  1997, 2038, 2061, 1951, 2004, 2005, 2010, 2011, 1977, 1973,
 /*   510 */  1989, 2013, 2013, 2015, 1983, 2007, 2016, 1966, 1986, 1998,
 /*   520 */  2013, 1999, 2081, 2088, 2013, 1987, 2122, 2124, 2125, 2126,
 /*   530 */  2012, 2019, 2099, 2036, 1985, 2104, 2041, 2115, 2035, 2083,
 /*   540 */  2042, 2085, 2079, 2102, 2123, 2047, 2043, 2154, 2049, 2101,
 /*   550 */  2098, 2048, 2060, 2134, 2137, 2140, 2057, 2070, 2179, 2183,
 /*   560 */  2146, 2147, 2148, 2074, 2075, 2150, 2186, 2080, 2084, 2153,
 /*   570 */  2155, 2086, 2157, 2160, 2161, 2087, 2162, 2089, 2164, 2166,
 /*   580 */  2095, 2168, 2092, 2096, 2100, 2094, 2103, 2097, 2105, 2090,
 /*   590 */  2165, 2108, 2065, 2106, 2173, 2109, 2112, 2110, 2113, 2111,
 /*   600 */  2114, 2116, 2178, 2063, 2119, 2118, 2184, 2185, 2187, 2138,
 /*   610 */  2135, 2142, 2228, 2159, 2139, 2127, 2191, 2194, 2107, 2117,
 /*   620 */  2130, 2106, 2131, 2132, 2133, 2136, 2141, 2144, 2188, 2145,
 /*   630 */  2143, 2149, 2151, 2152, 2156, 2158, 2163, 2167, 2169, 2170,
 /*   640 */  2172, 2120, 2243, 2171, 2174, 2175, 2176, 2210, 2180, 2212,
 /*   650 */  2213, 2177, 2182, 2219, 2258, 2262,
};
#define YY_REDUCE_COUNT (434)
#define YY_REDUCE_MIN   (-272)
#define YY_REDUCE_MAX   (1902)
static const short yy_reduce_ofst[] = {
 /*     0 */   617,  830,  833,  674,  875,  306,  757,  669,  838,  861,
 /*    10 */   -57,  596,  887,  332,  333,  336,  337,  554,  758, 1057,
 /*    20 */  1075, 1113,  -39,  305, -272, -209,  731,  893,  927,  989,
 /*    30 */  1122, 1260, 1295, 1299, 1321, 1349, 1352, 1047, 1357, 1361,
 /*    40 */  1366,  594, 1203,  980,  793,  878, 1133, 1152, 1262, 1287,
 /*    50 */   315,  899,  315,  899, -268, -268, -268, -268, -268, -268,
 /*    60 */  -268, -268, -268, -268, -268, -268, -268, -268, -268, -268,
 /*    70 */  -268, -268, -268, -268, -268, -268, -268, -268, -268, -268,
 /*    80 */  -268, -268, -268, -268, -268, -268, -268, -268, -268, -268,
 /*    90 */  -268, -268, 1125, 1403, 1419, 1421, 1428, 1430, 1433, 1436,
 /*   100 */  1442, 1444, 1451, 1454, 1457, 1459, 1465, 1467, 1469, 1472,
 /*   110 */  1480, 1483, 1490, 1494, 1497, 1501, 1504, 1506, 1508, 1511,
 /*   120 */  1515, 1518, 1532, 1536, 1539, 1543, 1546, 1548, 1560, 1569,
 /*   130 */  1571, 1573, 1575, 1578, 1581, 1583, 1585, 1596, 1599, 1606,
 /*   140 */  1608, 1610, 1612, 1614, 1620, -268, -268, -268, -268, -268,
 /*   150 */  -268, -268, -268, -268, -268, -268,  582,  -69,  754,  696,
 /*   160 */   584,  217, 1217,  715, 1114, -268,  -55,  248, 1102, 1116,
 /*   170 */   849, -268, -268, -268, -268, -215, -215, -215,  692,  513,
 /*   180 */   653,  511,  724,  945, 1019,  997, -259,  665,  510,  510,
 /*   190 */   965, -198,  920,  939,  840,  824,  987, 1188, 1324, 1416,
 /*   200 */  1343, 1060, 1353, 1505, 1533, 1545, 1213, 1367, 1025,  542,
 /*   210 */  1271, 1301,  662, 1329, 1365, 1342,  -35, 1072, 1411,  973,
 /*   220 */   851, 1512, 1570, 1595, 1481, 1068, 1238, 1356, 1566, 1565,
 /*   230 */  1590,  199,  301,  338,  331,  440,  590,  605,  741,  814,
 /*   240 */   862,  867,  911, 1031, 1040, 1039, 1062, 1126, 1170, 1223,
 /*   250 */  1249, 1276, 1351, 1383, 1414, 1431, 1434, 1498, 1564, 1696,
 /*   260 */  1705, 1226, 1709, 1710, 1711, 1712, 1713, 1714, 1715, 1717,
 /*   270 */  1718, 1720, 1721, 1722, 1723, 1724, 1725, 1487, 1726, 1728,
 /*   280 */  1730, 1659, 1597, 1731, 1629, 1732,  590, 1735, 1641, 1643,
 /*   290 */  1738, 1740, 1695, 1681, 1682, 1683, 1685, 1487, 1697, 1695,
 /*   300 */  1695, 1736, 1741, 1742, 1743, 1744, 1644, 1670, 1675, 1701,
 /*   310 */  1676, 1651, 1704, 1680, 1686, 1707, 1687, 1745, 1653, 1775,
 /*   320 */  1746, 1747, 1700, 1702, 1749, 1752, 1706, 1708, 1688, 1754,
 /*   330 */  1758, 1769, 1779, 1756, 1760, 1762, 1763, 1765, 1767, 1771,
 /*   340 */  1778, 1773, 1777, 1784, 1785, 1788, 1782, 1793, 1690, 1691,
 /*   350 */  1780, 1789, 1698, 1787, 1798, 1792, 1795, 1800, 1797, 1805,
 /*   360 */  1802, 1803, 1804, 1806, 1807, 1809, 1808, 1810, 1811, 1812,
 /*   370 */  1813, 1815, 1814, 1816, 1817, 1819, 1818, 1820, 1822, 1823,
 /*   380 */  1825, 1821, 1824, 1832, 1833, 1834, 1827, 1828, 1830, 1835,
 /*   390 */  1843, 1846, 1853, 1858, 1856, 1854, 1864, 1831, 1836, 1837,
 /*   400 */  1838, 1845, 1839, 1841, 1844, 1848, 1851, 1852, 1857, 1859,
 /*   410 */  1861, 1862, 1865, 1866, 1875, 1867, 1868, 1870, 1871, 1873,
 /*   420 */  1876, 1872, 1877, 1878, 1880, 1881, 1882, 1884, 1887, 1888,
 /*   430 */  1891, 1894, 1899, 1889, 1902,
};
static const YYACTIONTYPE yy_default[] = {
 /*     0 */  1833, 1833, 1833, 1661, 1388, 1537, 1388, 1388, 1388, 1388,
 /*    10 */  1661, 1661, 1661, 1388, 1388, 1388, 1388, 1388, 1388, 1388,
 /*    20 */  1388, 1388, 1567, 1567, 1714, 1457, 1388, 1388, 1388, 1388,
 /*    30 */  1388, 1388, 1388, 1388, 1388, 1388, 1388, 1660, 1388, 1388,
 /*    40 */  1388, 1388, 1388, 1388, 1748, 1748, 1388, 1388, 1388, 1388,
 /*    50 */  1733, 1732, 1388, 1388, 1388, 1576, 1388, 1388, 1388, 1388,
 /*    60 */  1388, 1583, 1662, 1663, 1388, 1388, 1388, 1388, 1388, 1713,
 /*    70 */  1715, 1678, 1590, 1589, 1588, 1587, 1696, 1555, 1581, 1574,
 /*    80 */  1578, 1662, 1657, 1658, 1656, 1811, 1388, 1663, 1577, 1625,
 /*    90 */  1624, 1641, 1388, 1388, 1388, 1388, 1388, 1388, 1388, 1388,
 /*   100 */  1388, 1388, 1388, 1388, 1388, 1388, 1388, 1388, 1388, 1388,
 /*   110 */  1388, 1388, 1388, 1388, 1388, 1388, 1388, 1388, 1388, 1388,
 /*   120 */  1388, 1388, 1388, 1388, 1388, 1388, 1388, 1388, 1388, 1388,
 /*   130 */  1388, 1388, 1388, 1388, 1388, 1388, 1388, 1388, 1388, 1388,
 /*   140 */  1388, 1388, 1388, 1388, 1388, 1633, 1640, 1639, 1638, 1647,
 /*   150 */  1637, 1634, 1627, 1626, 1628, 1629, 1448, 1499, 1388, 1388,
 /*   160 */  1445, 1388, 1388, 1388, 1388, 1630, 1457, 1618, 1617, 1616,
 /*   170 */  1388, 1644, 1631, 1643, 1642, 1785, 1784, 1721, 1388, 1388,
 /*   180 */  1679, 1388, 1388, 1388, 1388, 1388, 1748, 1388, 1388, 1388,
 /*   190 */  1388, 1388, 1388, 1388, 1388, 1388, 1388, 1388, 1388, 1388,
 /*   200 */  1388, 1388, 1388, 1388, 1388, 1388, 1388, 1388, 1557, 1388,
 /*   210 */  1748, 1748, 1457, 1748, 1748, 1453, 1558, 1558, 1453, 1561,
 /*   220 */  1419, 1388, 1388, 1392, 1728, 1528, 1528, 1528, 1528, 1537,
 /*   230 */  1528, 1388, 1388, 1388, 1388, 1388, 1388, 1388, 1388, 1388,
 /*   240 */  1388, 1388, 1388, 1388, 1388, 1388, 1388, 1388, 1388, 1388,
 /*   250 */  1388, 1388, 1388, 1388, 1388, 1718, 1716, 1388, 1388, 1388,
 /*   260 */  1388, 1388, 1388, 1388, 1388, 1388, 1388, 1388, 1388, 1388,
 /*   270 */  1388, 1388, 1388, 1388, 1778, 1388, 1388, 1388, 1388, 1388,
 /*   280 */  1388, 1533, 1388, 1388, 1388, 1388, 1388, 1458, 1388, 1691,
 /*   290 */  1431, 1388, 1513, 1533, 1533, 1533, 1533, 1535, 1527, 1514,
 /*   300 */  1512, 1800, 1474, 1388, 1469, 1567, 1825, 1593, 1582, 1534,
 /*   310 */  1582, 1822, 1580, 1593, 1593, 1580, 1593, 1534, 1822, 1388,
 /*   320 */  1567, 1567, 1557, 1557, 1557, 1557, 1561, 1561, 1659, 1534,
 /*   330 */  1527, 1388, 1441, 1669, 1500, 1500, 1500, 1492, 1388, 1388,
 /*   340 */  1500, 1489, 1669, 1500, 1474, 1500, 1489, 1500, 1825, 1825,
 /*   350 */  1543, 1543, 1824, 1824, 1543, 1679, 1808, 1602, 1502, 1543,
 /*   360 */  1442, 1580, 1808, 1808, 1580, 1602, 1502, 1580, 1502, 1580,
 /*   370 */  1543, 1442, 1695, 1819, 1543, 1442, 1669, 1543, 1442, 1543,
 /*   380 */  1442, 1781, 1781, 1777, 1777, 1777, 1508, 1508, 1508, 1508,
 /*   390 */  1388, 1388, 1401, 1388, 1401, 1409, 1388, 1388, 1673, 1673,
 /*   400 */  1669, 1543, 1575, 1561, 1758, 1758, 1570, 1570, 1766, 1664,
 /*   410 */  1543, 1388, 1575, 1573, 1571, 1580, 1793, 1793, 1476, 1830,
 /*   420 */  1830, 1728, 1476, 1458, 1458, 1793, 1457, 1457, 1457, 1457,
 /*   430 */  1391, 1391, 1391, 1457, 1391, 1388, 1388, 1388, 1388, 1388,
 /*   440 */  1388, 1388, 1388, 1788, 1388, 1388, 1388, 1388, 1388, 1388,
 /*   450 */  1388, 1723, 1680, 1547, 1388, 1388, 1388, 1388, 1388, 1388,
 /*   460 */  1388, 1388, 1388, 1388, 1388, 1734, 1388, 1388, 1388, 1388,
 /*   470 */  1388, 1388, 1388, 1388, 1388, 1388, 1388, 1607, 1388, 1388,
 /*   480 */  1388, 1394, 1388, 1388, 1388, 1388, 1388, 1388, 1388, 1388,
 /*   490 */  1388, 1446, 1388, 1388, 1388, 1725, 1472, 1388, 1388, 1388,
 /*   500 */  1388, 1388, 1388, 1388, 1388, 1388, 1388, 1388, 1388, 1388,
 /*   510 */  1388, 1584, 1585, 1548, 1388, 1388, 1388, 1388, 1388, 1388,
 /*   520 */  1599, 1388, 1388, 1388, 1594, 1388, 1388, 1388, 1388, 1388,
 /*   530 */  1388, 1388, 1388, 1821, 1388, 1388, 1388, 1388, 1388, 1388,
 /*   540 */  1694, 1693, 1388, 1388, 1388, 1388, 1388, 1388, 1436, 1388,
 /*   550 */  1427, 1388, 1545, 1388, 1388, 1388, 1388, 1421, 1388, 1388,
 /*   560 */  1388, 1388, 1388, 1420, 1388, 1388, 1388, 1388, 1388, 1388,
 /*   570 */  1388, 1388, 1388, 1388, 1388, 1388, 1388, 1388, 1388, 1388,
 /*   580 */  1388, 1388, 1388, 1388, 1388, 1388, 1388, 1388, 1388, 1388,
 /*   590 */  1388, 1388, 1388, 1572, 1388, 1388, 1388, 1388, 1763, 1388,
 /*   600 */  1388, 1388, 1388, 1388, 1388, 1388, 1388, 1388, 1388, 1388,
 /*   610 */  1388, 1388, 1388, 1388, 1388, 1562, 1388, 1388, 1388, 1388,
 /*   620 */  1388, 1812, 1388, 1388, 1388, 1388, 1388, 1388, 1388, 1388,
 /*   630 */  1804, 1388, 1388, 1388, 1388, 1388, 1522, 1611, 1608, 1388,
 /*   640 */  1388, 1516, 1388, 1388, 1388, 1388, 1388, 1388, 1388, 1388,
 /*   650 */  1388, 1393, 1388, 1388, 1388, 1388,
};
/********** End of lemon-generated parsing tables *****************************/

/* The next table maps tokens (terminal symbols) into fallback tokens.  
** If a construct like the following:
** 
**      %fallback ID X Y Z.
**
** appears in the grammar, then ID becomes a fallback token for X, Y,
** and Z.  Whenever one of the tokens X, Y, or Z is input to the parser
** but it does not parse, the type of the token is changed to ID and
** the parse is retried before an error is thrown.
**
** This feature can be used, for example, to cause some keywords in a language
** to revert to identifiers if they keyword does not apply in the context where
** it appears.
*/
#ifdef YYFALLBACK
static const YYCODETYPE yyFallback[] = {
    0,  /*          $ => nothing */
    0,  /*     CREATE => nothing */
   41,  /*    REPLACE => ID */
   41,  /*   PERFETTO => ID */
    0,  /*      MACRO => nothing */
    0,  /*    INCLUDE => nothing */
   41,  /*     MODULE => ID */
    0,  /*    RETURNS => nothing */
   41,  /*   FUNCTION => ID */
    0,  /*  DELEGATES => nothing */
    0,  /*         OR => nothing */
    0,  /*        AND => nothing */
    0,  /*        NOT => nothing */
    0,  /*         IS => nothing */
   41,  /*      MATCH => ID */
   41,  /*    LIKE_KW => ID */
    0,  /*    BETWEEN => nothing */
    0,  /*         IN => nothing */
    0,  /*     ISNULL => nothing */
    0,  /*    NOTNULL => nothing */
    0,  /*         NE => nothing */
    0,  /*         EQ => nothing */
    0,  /*         GT => nothing */
    0,  /*         LE => nothing */
    0,  /*         LT => nothing */
    0,  /*         GE => nothing */
    0,  /*     ESCAPE => nothing */
    0,  /*     BITAND => nothing */
    0,  /*      BITOR => nothing */
    0,  /*     LSHIFT => nothing */
    0,  /*     RSHIFT => nothing */
    0,  /*       PLUS => nothing */
    0,  /*      MINUS => nothing */
    0,  /*       STAR => nothing */
    0,  /*      SLASH => nothing */
    0,  /*        REM => nothing */
    0,  /*     CONCAT => nothing */
    0,  /*        PTR => nothing */
    0,  /*    COLLATE => nothing */
    0,  /*     BITNOT => nothing */
    0,  /*         ON => nothing */
    0,  /*         ID => nothing */
   41,  /*      ABORT => ID */
   41,  /*     ACTION => ID */
   41,  /*      AFTER => ID */
   41,  /*    ANALYZE => ID */
   41,  /*        ASC => ID */
   41,  /*     ATTACH => ID */
   41,  /*     BEFORE => ID */
   41,  /*      BEGIN => ID */
   41,  /*         BY => ID */
   41,  /*    CASCADE => ID */
   41,  /*       CAST => ID */
   41,  /*   COLUMNKW => ID */
   41,  /*   CONFLICT => ID */
   41,  /*   DATABASE => ID */
   41,  /*   DEFERRED => ID */
   41,  /*       DESC => ID */
   41,  /*     DETACH => ID */
   41,  /*         DO => ID */
   41,  /*       EACH => ID */
   41,  /*        END => ID */
   41,  /*  EXCLUSIVE => ID */
   41,  /*    EXPLAIN => ID */
   41,  /*       FAIL => ID */
   41,  /*        FOR => ID */
   41,  /*     IGNORE => ID */
   41,  /*  IMMEDIATE => ID */
   41,  /*  INITIALLY => ID */
   41,  /*    INSTEAD => ID */
   41,  /*         NO => ID */
   41,  /*       PLAN => ID */
   41,  /*      QUERY => ID */
   41,  /*        KEY => ID */
   41,  /*         OF => ID */
   41,  /*     OFFSET => ID */
   41,  /*     PRAGMA => ID */
   41,  /*      RAISE => ID */
   41,  /*  RECURSIVE => ID */
   41,  /*    RELEASE => ID */
   41,  /*   RESTRICT => ID */
   41,  /*        ROW => ID */
   41,  /*       ROWS => ID */
   41,  /*   ROLLBACK => ID */
   41,  /*  SAVEPOINT => ID */
   41,  /*       TEMP => ID */
   41,  /*    TRIGGER => ID */
   41,  /*     VACUUM => ID */
   41,  /*       VIEW => ID */
   41,  /*    VIRTUAL => ID */
   41,  /*       WITH => ID */
   41,  /*    WITHOUT => ID */
   41,  /*      NULLS => ID */
   41,  /*      FIRST => ID */
   41,  /*       LAST => ID */
   41,  /*    CURRENT => ID */
   41,  /*  FOLLOWING => ID */
   41,  /*  PARTITION => ID */
   41,  /*  PRECEDING => ID */
   41,  /*      RANGE => ID */
   41,  /*  UNBOUNDED => ID */
   41,  /*    EXCLUDE => ID */
   41,  /*     GROUPS => ID */
   41,  /*     OTHERS => ID */
   41,  /*       TIES => ID */
   41,  /*  GENERATED => ID */
   41,  /*     ALWAYS => ID */
   41,  /* MATERIALIZED => ID */
   41,  /*    REINDEX => ID */
   41,  /*     RENAME => ID */
   41,  /*   CTIME_KW => ID */
   41,  /*         IF => ID */
    0,  /*        ANY => nothing */
    0,  /*         LP => nothing */
    0,  /*        DOT => nothing */
    0,  /*         RP => nothing */
    0,  /*      COMMA => nothing */
    0,  /*         AS => nothing */
    0,  /*         TO => nothing */
    0,  /*      TABLE => nothing */
    0,  /*      USING => nothing */
    0,  /*      INDEX => nothing */
    0,  /*  INTERSECT => nothing */
    0,  /*       DROP => nothing */
    0,  /*     COMMIT => nothing */
    0,  /*     EXISTS => nothing */
    0,  /*     STRING => nothing */
    0,  /* CONSTRAINT => nothing */
    0,  /*    DEFAULT => nothing */
    0,  /*    INDEXED => nothing */
    0,  /*       NULL => nothing */
    0,  /*    PRIMARY => nothing */
    0,  /*     UNIQUE => nothing */
    0,  /*      CHECK => nothing */
    0,  /* REFERENCES => nothing */
    0,  /*   AUTOINCR => nothing */
    0,  /*     INSERT => nothing */
    0,  /*     DELETE => nothing */
    0,  /*     UPDATE => nothing */
    0,  /*        SET => nothing */
    0,  /* DEFERRABLE => nothing */
    0,  /*    FOREIGN => nothing */
    0,  /*      UNION => nothing */
    0,  /*        ALL => nothing */
    0,  /*     EXCEPT => nothing */
    0,  /*     SELECT => nothing */
    0,  /*     VALUES => nothing */
    0,  /*   DISTINCT => nothing */
    0,  /*       FROM => nothing */
    0,  /*       JOIN => nothing */
    0,  /*    JOIN_KW => nothing */
    0,  /*      ORDER => nothing */
    0,  /*      GROUP => nothing */
    0,  /*     HAVING => nothing */
    0,  /*      LIMIT => nothing */
    0,  /*      WHERE => nothing */
    0,  /*  RETURNING => nothing */
    0,  /*       INTO => nothing */
    0,  /*    NOTHING => nothing */
    0,  /*      FLOAT => nothing */
    0,  /*       BLOB => nothing */
    0,  /*    INTEGER => nothing */
    0,  /*   VARIABLE => nothing */
    0,  /*       CASE => nothing */
    0,  /*       WHEN => nothing */
    0,  /*       THEN => nothing */
    0,  /*       ELSE => nothing */
    0,  /*       SEMI => nothing */
    0,  /*      ALTER => nothing */
    0,  /*        ADD => nothing */
    0,  /*     WINDOW => nothing */
    0,  /*       OVER => nothing */
    0,  /*     FILTER => nothing */
    0,  /*    QNUMBER => nothing */
    0,  /* TRANSACTION => nothing */
    0,  /*      SPACE => nothing */
    0,  /*    COMMENT => nothing */
    0,  /*    ILLEGAL => nothing */
};
#endif /* YYFALLBACK */

/* The following structure represents a single element of the
** parser's stack.  Information stored includes:
**
**   +  The state number for the parser at this level of the stack.
**
**   +  The value of the token stored at this level of the stack.
**      (In other words, the "major" token.)
**
**   +  The semantic value stored at this level of the stack.  This is
**      the information used by the action routines in the grammar.
**      It is sometimes called the "minor" token.
**
** After the "shift" half of a SHIFTREDUCE action, the stateno field
** actually contains the reduce action for the second half of the
** SHIFTREDUCE.
*/
struct yyStackEntry {
  YYACTIONTYPE stateno;  /* The state-number, or reduce action in SHIFTREDUCE */
  YYCODETYPE major;      /* The major token value.  This is the code
                         ** number for the token at this stack level */
  YYMINORTYPE minor;     /* The user-supplied minor token value.  This
                         ** is the value of the token  */
};
typedef struct yyStackEntry yyStackEntry;

/* The state of the parser is completely contained in an instance of
** the following structure */
struct yyParser {
  yyStackEntry *yytos;          /* Pointer to top element of the stack */
#ifdef YYTRACKMAXSTACKDEPTH
  int yyhwm;                    /* High-water mark of the stack */
#endif
#ifndef YYNOERRORRECOVERY
  int yyerrcnt;                 /* Shifts left before out of the error */
#endif
  PerfettoSqlParseARG_SDECL                /* A place to hold %extra_argument */
  PerfettoSqlParseCTX_SDECL                /* A place to hold %extra_context */
  yyStackEntry *yystackEnd;           /* Last entry in the stack */
  yyStackEntry *yystack;              /* The parser stack */
  yyStackEntry yystk0[YYSTACKDEPTH];  /* Initial stack space */
};
typedef struct yyParser yyParser;

#include <assert.h>
#ifndef NDEBUG
#include <stdio.h>
static FILE *yyTraceFILE = 0;
static char *yyTracePrompt = 0;
#endif /* NDEBUG */

#ifndef NDEBUG
/* 
** Turn parser tracing on by giving a stream to which to write the trace
** and a prompt to preface each trace message.  Tracing is turned off
** by making either argument NULL 
**
** Inputs:
** <ul>
** <li> A FILE* to which trace output should be written.
**      If NULL, then tracing is turned off.
** <li> A prefix string written at the beginning of every
**      line of trace output.  If NULL, then tracing is
**      turned off.
** </ul>
**
** Outputs:
** None.
*/
void PerfettoSqlParseTrace(FILE *TraceFILE, char *zTracePrompt){
  yyTraceFILE = TraceFILE;
  yyTracePrompt = zTracePrompt;
  if( yyTraceFILE==0 ) yyTracePrompt = 0;
  else if( yyTracePrompt==0 ) yyTraceFILE = 0;
}
#endif /* NDEBUG */

#if defined(YYCOVERAGE) || !defined(NDEBUG)
/* For tracing shifts, the names of all terminals and nonterminals
** are required.  The following table supplies these names */
static const char *const yyTokenName[] = { 
  /*    0 */ "$",
  /*    1 */ "CREATE",
  /*    2 */ "REPLACE",
  /*    3 */ "PERFETTO",
  /*    4 */ "MACRO",
  /*    5 */ "INCLUDE",
  /*    6 */ "MODULE",
  /*    7 */ "RETURNS",
  /*    8 */ "FUNCTION",
  /*    9 */ "DELEGATES",
  /*   10 */ "OR",
  /*   11 */ "AND",
  /*   12 */ "NOT",
  /*   13 */ "IS",
  /*   14 */ "MATCH",
  /*   15 */ "LIKE_KW",
  /*   16 */ "BETWEEN",
  /*   17 */ "IN",
  /*   18 */ "ISNULL",
  /*   19 */ "NOTNULL",
  /*   20 */ "NE",
  /*   21 */ "EQ",
  /*   22 */ "GT",
  /*   23 */ "LE",
  /*   24 */ "LT",
  /*   25 */ "GE",
  /*   26 */ "ESCAPE",
  /*   27 */ "BITAND",
  /*   28 */ "BITOR",
  /*   29 */ "LSHIFT",
  /*   30 */ "RSHIFT",
  /*   31 */ "PLUS",
  /*   32 */ "MINUS",
  /*   33 */ "STAR",
  /*   34 */ "SLASH",
  /*   35 */ "REM",
  /*   36 */ "CONCAT",
  /*   37 */ "PTR",
  /*   38 */ "COLLATE",
  /*   39 */ "BITNOT",
  /*   40 */ "ON",
  /*   41 */ "ID",
  /*   42 */ "ABORT",
  /*   43 */ "ACTION",
  /*   44 */ "AFTER",
  /*   45 */ "ANALYZE",
  /*   46 */ "ASC",
  /*   47 */ "ATTACH",
  /*   48 */ "BEFORE",
  /*   49 */ "BEGIN",
  /*   50 */ "BY",
  /*   51 */ "CASCADE",
  /*   52 */ "CAST",
  /*   53 */ "COLUMNKW",
  /*   54 */ "CONFLICT",
  /*   55 */ "DATABASE",
  /*   56 */ "DEFERRED",
  /*   57 */ "DESC",
  /*   58 */ "DETACH",
  /*   59 */ "DO",
  /*   60 */ "EACH",
  /*   61 */ "END",
  /*   62 */ "EXCLUSIVE",
  /*   63 */ "EXPLAIN",
  /*   64 */ "FAIL",
  /*   65 */ "FOR",
  /*   66 */ "IGNORE",
  /*   67 */ "IMMEDIATE",
  /*   68 */ "INITIALLY",
  /*   69 */ "INSTEAD",
  /*   70 */ "NO",
  /*   71 */ "PLAN",
  /*   72 */ "QUERY",
  /*   73 */ "KEY",
  /*   74 */ "OF",
  /*   75 */ "OFFSET",
  /*   76 */ "PRAGMA",
  /*   77 */ "RAISE",
  /*   78 */ "RECURSIVE",
  /*   79 */ "RELEASE",
  /*   80 */ "RESTRICT",
  /*   81 */ "ROW",
  /*   82 */ "ROWS",
  /*   83 */ "ROLLBACK",
  /*   84 */ "SAVEPOINT",
  /*   85 */ "TEMP",
  /*   86 */ "TRIGGER",
  /*   87 */ "VACUUM",
  /*   88 */ "VIEW",
  /*   89 */ "VIRTUAL",
  /*   90 */ "WITH",
  /*   91 */ "WITHOUT",
  /*   92 */ "NULLS",
  /*   93 */ "FIRST",
  /*   94 */ "LAST",
  /*   95 */ "CURRENT",
  /*   96 */ "FOLLOWING",
  /*   97 */ "PARTITION",
  /*   98 */ "PRECEDING",
  /*   99 */ "RANGE",
  /*  100 */ "UNBOUNDED",
  /*  101 */ "EXCLUDE",
  /*  102 */ "GROUPS",
  /*  103 */ "OTHERS",
  /*  104 */ "TIES",
  /*  105 */ "GENERATED",
  /*  106 */ "ALWAYS",
  /*  107 */ "MATERIALIZED",
  /*  108 */ "REINDEX",
  /*  109 */ "RENAME",
  /*  110 */ "CTIME_KW",
  /*  111 */ "IF",
  /*  112 */ "ANY",
  /*  113 */ "LP",
  /*  114 */ "DOT",
  /*  115 */ "RP",
  /*  116 */ "COMMA",
  /*  117 */ "AS",
  /*  118 */ "TO",
  /*  119 */ "TABLE",
  /*  120 */ "USING",
  /*  121 */ "INDEX",
  /*  122 */ "INTERSECT",
  /*  123 */ "DROP",
  /*  124 */ "COMMIT",
  /*  125 */ "EXISTS",
  /*  126 */ "STRING",
  /*  127 */ "CONSTRAINT",
  /*  128 */ "DEFAULT",
  /*  129 */ "INDEXED",
  /*  130 */ "NULL",
  /*  131 */ "PRIMARY",
  /*  132 */ "UNIQUE",
  /*  133 */ "CHECK",
  /*  134 */ "REFERENCES",
  /*  135 */ "AUTOINCR",
  /*  136 */ "INSERT",
  /*  137 */ "DELETE",
  /*  138 */ "UPDATE",
  /*  139 */ "SET",
  /*  140 */ "DEFERRABLE",
  /*  141 */ "FOREIGN",
  /*  142 */ "UNION",
  /*  143 */ "ALL",
  /*  144 */ "EXCEPT",
  /*  145 */ "SELECT",
  /*  146 */ "VALUES",
  /*  147 */ "DISTINCT",
  /*  148 */ "FROM",
  /*  149 */ "JOIN",
  /*  150 */ "JOIN_KW",
  /*  151 */ "ORDER",
  /*  152 */ "GROUP",
  /*  153 */ "HAVING",
  /*  154 */ "LIMIT",
  /*  155 */ "WHERE",
  /*  156 */ "RETURNING",
  /*  157 */ "INTO",
  /*  158 */ "NOTHING",
  /*  159 */ "FLOAT",
  /*  160 */ "BLOB",
  /*  161 */ "INTEGER",
  /*  162 */ "VARIABLE",
  /*  163 */ "CASE",
  /*  164 */ "WHEN",
  /*  165 */ "THEN",
  /*  166 */ "ELSE",
  /*  167 */ "SEMI",
  /*  168 */ "ALTER",
  /*  169 */ "ADD",
  /*  170 */ "WINDOW",
  /*  171 */ "OVER",
  /*  172 */ "FILTER",
  /*  173 */ "QNUMBER",
  /*  174 */ "TRANSACTION",
  /*  175 */ "SPACE",
  /*  176 */ "COMMENT",
  /*  177 */ "ILLEGAL",
  /*  178 */ "pscantok",
  /*  179 */ "sql_argument_list",
  /*  180 */ "sql_argument_list_nonempty",
  /*  181 */ "sql_argument_type",
  /*  182 */ "sql_variadic_argument_type",
  /*  183 */ "table_schema",
  /*  184 */ "or_replace",
  /*  185 */ "cmd",
  /*  186 */ "return_type",
  /*  187 */ "select",
  /*  188 */ "table_impl",
  /*  189 */ "indexed_column_list",
  /*  190 */ "macro_argument_list",
  /*  191 */ "macro_body",
  /*  192 */ "macro_argument_list_nonempty",
  /*  193 */ "module_name",
  /*  194 */ "explain",
  /*  195 */ "cmdx",
  /*  196 */ "transtype",
  /*  197 */ "trans_opt",
  /*  198 */ "nm",
  /*  199 */ "savepoint_opt",
  /*  200 */ "create_table",
  /*  201 */ "createkw",
  /*  202 */ "temp",
  /*  203 */ "ifnotexists",
  /*  204 */ "dbnm",
  /*  205 */ "create_table_args",
  /*  206 */ "columnlist",
  /*  207 */ "conslist_opt",
  /*  208 */ "table_option_set",
  /*  209 */ "table_option",
  /*  210 */ "columnname",
  /*  211 */ "typetoken",
  /*  212 */ "typename",
  /*  213 */ "signed",
  /*  214 */ "scanpt",
  /*  215 */ "scantok",
  /*  216 */ "ccons",
  /*  217 */ "term",
  /*  218 */ "expr",
  /*  219 */ "onconf",
  /*  220 */ "sortorder",
  /*  221 */ "autoinc",
  /*  222 */ "eidlist_opt",
  /*  223 */ "refargs",
  /*  224 */ "defer_subclause",
  /*  225 */ "generated",
  /*  226 */ "refarg",
  /*  227 */ "refact",
  /*  228 */ "init_deferred_pred_opt",
  /*  229 */ "tconscomma",
  /*  230 */ "tcons",
  /*  231 */ "sortlist",
  /*  232 */ "eidlist",
  /*  233 */ "defer_subclause_opt",
  /*  234 */ "resolvetype",
  /*  235 */ "orconf",
  /*  236 */ "ifexists",
  /*  237 */ "fullname",
  /*  238 */ "wqlist",
  /*  239 */ "selectnowith",
  /*  240 */ "multiselect_op",
  /*  241 */ "oneselect",
  /*  242 */ "distinct",
  /*  243 */ "selcollist",
  /*  244 */ "from",
  /*  245 */ "where_opt",
  /*  246 */ "groupby_opt",
  /*  247 */ "having_opt",
  /*  248 */ "orderby_opt",
  /*  249 */ "limit_opt",
  /*  250 */ "window_clause",
  /*  251 */ "values",
  /*  252 */ "nexprlist",
  /*  253 */ "mvalues",
  /*  254 */ "sclp",
  /*  255 */ "as",
  /*  256 */ "seltablist",
  /*  257 */ "stl_prefix",
  /*  258 */ "joinop",
  /*  259 */ "on_using",
  /*  260 */ "indexed_by",
  /*  261 */ "exprlist",
  /*  262 */ "xfullname",
  /*  263 */ "idlist",
  /*  264 */ "indexed_opt",
  /*  265 */ "nulls",
  /*  266 */ "with",
  /*  267 */ "where_opt_ret",
  /*  268 */ "setlist",
  /*  269 */ "insert_cmd",
  /*  270 */ "idlist_opt",
  /*  271 */ "upsert",
  /*  272 */ "returning",
  /*  273 */ "filter_over",
  /*  274 */ "likeop",
  /*  275 */ "between_op",
  /*  276 */ "in_op",
  /*  277 */ "paren_exprlist",
  /*  278 */ "case_operand",
  /*  279 */ "case_exprlist",
  /*  280 */ "case_else",
  /*  281 */ "uniqueflag",
  /*  282 */ "collate",
  /*  283 */ "vinto",
  /*  284 */ "nmnum",
  /*  285 */ "minus_num",
  /*  286 */ "plus_num",
  /*  287 */ "trigger_decl",
  /*  288 */ "trigger_cmd_list",
  /*  289 */ "trigger_time",
  /*  290 */ "trigger_event",
  /*  291 */ "foreach_clause",
  /*  292 */ "when_clause",
  /*  293 */ "trigger_cmd",
  /*  294 */ "trnm",
  /*  295 */ "tridxby",
  /*  296 */ "raisetype",
  /*  297 */ "database_kw_opt",
  /*  298 */ "key_opt",
  /*  299 */ "add_column_fullname",
  /*  300 */ "kwcolumn_opt",
  /*  301 */ "carglist",
  /*  302 */ "create_vtab",
  /*  303 */ "vtabarglist",
  /*  304 */ "vtabarg",
  /*  305 */ "vtabargtoken",
  /*  306 */ "lp",
  /*  307 */ "anylist",
  /*  308 */ "wqas",
  /*  309 */ "wqitem",
  /*  310 */ "withnm",
  /*  311 */ "windowdefn_list",
  /*  312 */ "windowdefn",
  /*  313 */ "window",
  /*  314 */ "frame_opt",
  /*  315 */ "range_or_rows",
  /*  316 */ "frame_bound_s",
  /*  317 */ "frame_exclude_opt",
  /*  318 */ "frame_bound_e",
  /*  319 */ "frame_bound",
  /*  320 */ "frame_exclude",
  /*  321 */ "filter_clause",
  /*  322 */ "over_clause",
  /*  323 */ "input",
  /*  324 */ "cmdlist",
  /*  325 */ "ecmd",
  /*  326 */ "conslist",
};
#endif /* defined(YYCOVERAGE) || !defined(NDEBUG) */

#ifndef NDEBUG
/* For tracing reduce actions, the names of all rules are required.
*/
static const char *const yyRuleName[] = {
 /*   0 */ "pscantok ::=",
 /*   1 */ "sql_argument_list ::=",
 /*   2 */ "sql_argument_list ::= sql_argument_list_nonempty",
 /*   3 */ "sql_argument_type ::= ID",
 /*   4 */ "sql_argument_type ::= ID LP ID DOT ID RP",
 /*   5 */ "sql_variadic_argument_type ::= ID DOT DOT DOT",
 /*   6 */ "sql_argument_list_nonempty ::= sql_argument_list_nonempty COMMA ID sql_argument_type",
 /*   7 */ "sql_argument_list_nonempty ::= ID sql_argument_type",
 /*   8 */ "sql_argument_list_nonempty ::= sql_argument_list_nonempty COMMA ID sql_variadic_argument_type",
 /*   9 */ "sql_argument_list_nonempty ::= ID sql_variadic_argument_type",
 /*  10 */ "table_schema ::=",
 /*  11 */ "table_schema ::= LP sql_argument_list_nonempty RP",
 /*  12 */ "or_replace ::=",
 /*  13 */ "or_replace ::= OR REPLACE",
 /*  14 */ "cmd ::= CREATE or_replace PERFETTO FUNCTION ID LP sql_argument_list RP RETURNS return_type AS select pscantok",
 /*  15 */ "cmd ::= CREATE or_replace PERFETTO FUNCTION ID LP sql_argument_list RP RETURNS return_type DELEGATES TO ID pscantok",
 /*  16 */ "return_type ::= ID",
 /*  17 */ "return_type ::= TABLE LP sql_argument_list_nonempty RP",
 /*  18 */ "table_impl ::=",
 /*  19 */ "table_impl ::= USING ID",
 /*  20 */ "cmd ::= CREATE or_replace PERFETTO TABLE ID table_impl table_schema AS select pscantok",
 /*  21 */ "cmd ::= CREATE or_replace PERFETTO VIEW ID table_schema AS select pscantok",
 /*  22 */ "cmd ::= CREATE or_replace PERFETTO INDEX ID ON ID LP indexed_column_list RP",
 /*  23 */ "indexed_column_list ::= indexed_column_list COMMA ID",
 /*  24 */ "indexed_column_list ::= ID",
 /*  25 */ "cmd ::= CREATE or_replace PERFETTO MACRO ID LP macro_argument_list RP RETURNS ID AS macro_body pscantok",
 /*  26 */ "macro_argument_list_nonempty ::= macro_argument_list_nonempty COMMA ID ID",
 /*  27 */ "macro_argument_list_nonempty ::= ID ID",
 /*  28 */ "macro_argument_list ::=",
 /*  29 */ "macro_argument_list ::= macro_argument_list_nonempty",
 /*  30 */ "cmd ::= INCLUDE PERFETTO MODULE module_name",
 /*  31 */ "module_name ::= ID|STAR|INTERSECT",
 /*  32 */ "module_name ::= module_name DOT ID|STAR|INTERSECT",
 /*  33 */ "cmd ::= DROP PERFETTO INDEX ID ON ID",
 /*  34 */ "macro_body ::= ANY",
 /*  35 */ "macro_body ::= macro_body ANY",
 /*  36 */ "explain ::= EXPLAIN",
 /*  37 */ "explain ::= EXPLAIN QUERY PLAN",
 /*  38 */ "cmdx ::= cmd",
 /*  39 */ "cmd ::= BEGIN transtype trans_opt",
 /*  40 */ "transtype ::=",
 /*  41 */ "transtype ::= DEFERRED",
 /*  42 */ "transtype ::= IMMEDIATE",
 /*  43 */ "transtype ::= EXCLUSIVE",
 /*  44 */ "cmd ::= COMMIT|END trans_opt",
 /*  45 */ "cmd ::= ROLLBACK trans_opt",
 /*  46 */ "cmd ::= SAVEPOINT nm",
 /*  47 */ "cmd ::= RELEASE savepoint_opt nm",
 /*  48 */ "cmd ::= ROLLBACK trans_opt TO savepoint_opt nm",
 /*  49 */ "create_table ::= createkw temp TABLE ifnotexists nm dbnm",
 /*  50 */ "createkw ::= CREATE",
 /*  51 */ "ifnotexists ::=",
 /*  52 */ "ifnotexists ::= IF NOT EXISTS",
 /*  53 */ "temp ::= TEMP",
 /*  54 */ "temp ::=",
 /*  55 */ "create_table_args ::= LP columnlist conslist_opt RP table_option_set",
 /*  56 */ "create_table_args ::= AS select",
 /*  57 */ "table_option_set ::=",
 /*  58 */ "table_option_set ::= table_option_set COMMA table_option",
 /*  59 */ "table_option ::= WITHOUT nm",
 /*  60 */ "table_option ::= nm",
 /*  61 */ "columnname ::= nm typetoken",
 /*  62 */ "typetoken ::=",
 /*  63 */ "typetoken ::= typename LP signed RP",
 /*  64 */ "typetoken ::= typename LP signed COMMA signed RP",
 /*  65 */ "typename ::= typename ID|STRING",
 /*  66 */ "scanpt ::=",
 /*  67 */ "scantok ::=",
 /*  68 */ "ccons ::= CONSTRAINT nm",
 /*  69 */ "ccons ::= DEFAULT scantok term",
 /*  70 */ "ccons ::= DEFAULT LP expr RP",
 /*  71 */ "ccons ::= DEFAULT PLUS scantok term",
 /*  72 */ "ccons ::= DEFAULT MINUS scantok term",
 /*  73 */ "ccons ::= DEFAULT scantok ID|INDEXED",
 /*  74 */ "ccons ::= NOT NULL onconf",
 /*  75 */ "ccons ::= PRIMARY KEY sortorder onconf autoinc",
 /*  76 */ "ccons ::= UNIQUE onconf",
 /*  77 */ "ccons ::= CHECK LP expr RP",
 /*  78 */ "ccons ::= REFERENCES nm eidlist_opt refargs",
 /*  79 */ "ccons ::= defer_subclause",
 /*  80 */ "ccons ::= COLLATE ID|STRING",
 /*  81 */ "generated ::= LP expr RP",
 /*  82 */ "generated ::= LP expr RP ID",
 /*  83 */ "autoinc ::=",
 /*  84 */ "autoinc ::= AUTOINCR",
 /*  85 */ "refargs ::=",
 /*  86 */ "refargs ::= refargs refarg",
 /*  87 */ "refarg ::= MATCH nm",
 /*  88 */ "refarg ::= ON INSERT refact",
 /*  89 */ "refarg ::= ON DELETE refact",
 /*  90 */ "refarg ::= ON UPDATE refact",
 /*  91 */ "refact ::= SET NULL",
 /*  92 */ "refact ::= SET DEFAULT",
 /*  93 */ "refact ::= CASCADE",
 /*  94 */ "refact ::= RESTRICT",
 /*  95 */ "refact ::= NO ACTION",
 /*  96 */ "defer_subclause ::= NOT DEFERRABLE init_deferred_pred_opt",
 /*  97 */ "defer_subclause ::= DEFERRABLE init_deferred_pred_opt",
 /*  98 */ "init_deferred_pred_opt ::=",
 /*  99 */ "init_deferred_pred_opt ::= INITIALLY DEFERRED",
 /* 100 */ "init_deferred_pred_opt ::= INITIALLY IMMEDIATE",
 /* 101 */ "conslist_opt ::=",
 /* 102 */ "tconscomma ::= COMMA",
 /* 103 */ "tcons ::= CONSTRAINT nm",
 /* 104 */ "tcons ::= PRIMARY KEY LP sortlist autoinc RP onconf",
 /* 105 */ "tcons ::= UNIQUE LP sortlist RP onconf",
 /* 106 */ "tcons ::= CHECK LP expr RP onconf",
 /* 107 */ "tcons ::= FOREIGN KEY LP eidlist RP REFERENCES nm eidlist_opt refargs defer_subclause_opt",
 /* 108 */ "defer_subclause_opt ::=",
 /* 109 */ "onconf ::=",
 /* 110 */ "onconf ::= ON CONFLICT resolvetype",
 /* 111 */ "orconf ::=",
 /* 112 */ "orconf ::= OR resolvetype",
 /* 113 */ "resolvetype ::= IGNORE",
 /* 114 */ "resolvetype ::= REPLACE",
 /* 115 */ "cmd ::= DROP TABLE ifexists fullname",
 /* 116 */ "ifexists ::= IF EXISTS",
 /* 117 */ "ifexists ::=",
 /* 118 */ "cmd ::= createkw temp VIEW ifnotexists nm dbnm eidlist_opt AS select",
 /* 119 */ "cmd ::= DROP VIEW ifexists fullname",
 /* 120 */ "cmd ::= select",
 /* 121 */ "select ::= WITH wqlist selectnowith",
 /* 122 */ "select ::= WITH RECURSIVE wqlist selectnowith",
 /* 123 */ "select ::= selectnowith",
 /* 124 */ "selectnowith ::= selectnowith multiselect_op oneselect",
 /* 125 */ "multiselect_op ::= UNION",
 /* 126 */ "multiselect_op ::= UNION ALL",
 /* 127 */ "multiselect_op ::= EXCEPT|INTERSECT",
 /* 128 */ "oneselect ::= SELECT distinct selcollist from where_opt groupby_opt having_opt orderby_opt limit_opt",
 /* 129 */ "oneselect ::= SELECT distinct selcollist from where_opt groupby_opt having_opt window_clause orderby_opt limit_opt",
 /* 130 */ "values ::= VALUES LP nexprlist RP",
 /* 131 */ "oneselect ::= mvalues",
 /* 132 */ "mvalues ::= values COMMA LP nexprlist RP",
 /* 133 */ "mvalues ::= mvalues COMMA LP nexprlist RP",
 /* 134 */ "distinct ::= DISTINCT",
 /* 135 */ "distinct ::= ALL",
 /* 136 */ "distinct ::=",
 /* 137 */ "sclp ::=",
 /* 138 */ "selcollist ::= sclp scanpt expr scanpt as",
 /* 139 */ "selcollist ::= sclp scanpt STAR",
 /* 140 */ "selcollist ::= sclp scanpt nm DOT STAR",
 /* 141 */ "as ::= AS nm",
 /* 142 */ "as ::=",
 /* 143 */ "from ::=",
 /* 144 */ "from ::= FROM seltablist",
 /* 145 */ "stl_prefix ::= seltablist joinop",
 /* 146 */ "stl_prefix ::=",
 /* 147 */ "seltablist ::= stl_prefix nm dbnm as on_using",
 /* 148 */ "seltablist ::= stl_prefix nm dbnm as indexed_by on_using",
 /* 149 */ "seltablist ::= stl_prefix nm dbnm LP exprlist RP as on_using",
 /* 150 */ "seltablist ::= stl_prefix LP select RP as on_using",
 /* 151 */ "seltablist ::= stl_prefix LP seltablist RP as on_using",
 /* 152 */ "dbnm ::=",
 /* 153 */ "dbnm ::= DOT nm",
 /* 154 */ "fullname ::= nm",
 /* 155 */ "fullname ::= nm DOT nm",
 /* 156 */ "xfullname ::= nm",
 /* 157 */ "xfullname ::= nm DOT nm",
 /* 158 */ "xfullname ::= nm DOT nm AS nm",
 /* 159 */ "xfullname ::= nm AS nm",
 /* 160 */ "joinop ::= COMMA|JOIN",
 /* 161 */ "joinop ::= JOIN_KW JOIN",
 /* 162 */ "joinop ::= JOIN_KW nm JOIN",
 /* 163 */ "joinop ::= JOIN_KW nm nm JOIN",
 /* 164 */ "on_using ::= ON expr",
 /* 165 */ "on_using ::= USING LP idlist RP",
 /* 166 */ "on_using ::=",
 /* 167 */ "indexed_opt ::=",
 /* 168 */ "indexed_by ::= INDEXED BY nm",
 /* 169 */ "indexed_by ::= NOT INDEXED",
 /* 170 */ "orderby_opt ::=",
 /* 171 */ "orderby_opt ::= ORDER BY sortlist",
 /* 172 */ "sortlist ::= sortlist COMMA expr sortorder nulls",
 /* 173 */ "sortlist ::= expr sortorder nulls",
 /* 174 */ "sortorder ::= ASC",
 /* 175 */ "sortorder ::= DESC",
 /* 176 */ "sortorder ::=",
 /* 177 */ "nulls ::= NULLS FIRST",
 /* 178 */ "nulls ::= NULLS LAST",
 /* 179 */ "nulls ::=",
 /* 180 */ "groupby_opt ::=",
 /* 181 */ "groupby_opt ::= GROUP BY nexprlist",
 /* 182 */ "having_opt ::=",
 /* 183 */ "having_opt ::= HAVING expr",
 /* 184 */ "limit_opt ::=",
 /* 185 */ "limit_opt ::= LIMIT expr",
 /* 186 */ "limit_opt ::= LIMIT expr OFFSET expr",
 /* 187 */ "limit_opt ::= LIMIT expr COMMA expr",
 /* 188 */ "cmd ::= with DELETE FROM xfullname indexed_opt where_opt_ret",
 /* 189 */ "where_opt ::=",
 /* 190 */ "where_opt ::= WHERE expr",
 /* 191 */ "where_opt_ret ::=",
 /* 192 */ "where_opt_ret ::= WHERE expr",
 /* 193 */ "where_opt_ret ::= RETURNING selcollist",
 /* 194 */ "where_opt_ret ::= WHERE expr RETURNING selcollist",
 /* 195 */ "cmd ::= with UPDATE orconf xfullname indexed_opt SET setlist from where_opt_ret",
 /* 196 */ "setlist ::= setlist COMMA nm EQ expr",
 /* 197 */ "setlist ::= setlist COMMA LP idlist RP EQ expr",
 /* 198 */ "setlist ::= nm EQ expr",
 /* 199 */ "setlist ::= LP idlist RP EQ expr",
 /* 200 */ "cmd ::= with insert_cmd INTO xfullname idlist_opt select upsert",
 /* 201 */ "cmd ::= with insert_cmd INTO xfullname idlist_opt DEFAULT VALUES returning",
 /* 202 */ "upsert ::=",
 /* 203 */ "upsert ::= RETURNING selcollist",
 /* 204 */ "upsert ::= ON CONFLICT LP sortlist RP where_opt DO UPDATE SET setlist where_opt upsert",
 /* 205 */ "upsert ::= ON CONFLICT LP sortlist RP where_opt DO NOTHING upsert",
 /* 206 */ "upsert ::= ON CONFLICT DO NOTHING returning",
 /* 207 */ "upsert ::= ON CONFLICT DO UPDATE SET setlist where_opt returning",
 /* 208 */ "returning ::= RETURNING selcollist",
 /* 209 */ "insert_cmd ::= INSERT orconf",
 /* 210 */ "insert_cmd ::= REPLACE",
 /* 211 */ "idlist_opt ::=",
 /* 212 */ "idlist_opt ::= LP idlist RP",
 /* 213 */ "idlist ::= idlist COMMA nm",
 /* 214 */ "idlist ::= nm",
 /* 215 */ "expr ::= LP expr RP",
 /* 216 */ "expr ::= ID|INDEXED|JOIN_KW",
 /* 217 */ "expr ::= nm DOT nm",
 /* 218 */ "expr ::= nm DOT nm DOT nm",
 /* 219 */ "term ::= NULL|FLOAT|BLOB",
 /* 220 */ "term ::= STRING",
 /* 221 */ "term ::= INTEGER",
 /* 222 */ "expr ::= VARIABLE",
 /* 223 */ "expr ::= expr COLLATE ID|STRING",
 /* 224 */ "expr ::= CAST LP expr AS typetoken RP",
 /* 225 */ "expr ::= ID|INDEXED|JOIN_KW LP distinct exprlist RP",
 /* 226 */ "expr ::= ID|INDEXED|JOIN_KW LP distinct exprlist ORDER BY sortlist RP",
 /* 227 */ "expr ::= ID|INDEXED|JOIN_KW LP STAR RP",
 /* 228 */ "expr ::= ID|INDEXED|JOIN_KW LP distinct exprlist RP filter_over",
 /* 229 */ "expr ::= ID|INDEXED|JOIN_KW LP distinct exprlist ORDER BY sortlist RP filter_over",
 /* 230 */ "expr ::= ID|INDEXED|JOIN_KW LP STAR RP filter_over",
 /* 231 */ "term ::= CTIME_KW",
 /* 232 */ "expr ::= LP nexprlist COMMA expr RP",
 /* 233 */ "expr ::= expr AND expr",
 /* 234 */ "expr ::= expr OR expr",
 /* 235 */ "expr ::= expr LT|GT|GE|LE expr",
 /* 236 */ "expr ::= expr EQ|NE expr",
 /* 237 */ "expr ::= expr BITAND|BITOR|LSHIFT|RSHIFT expr",
 /* 238 */ "expr ::= expr PLUS|MINUS expr",
 /* 239 */ "expr ::= expr STAR|SLASH|REM expr",
 /* 240 */ "expr ::= expr CONCAT expr",
 /* 241 */ "likeop ::= NOT LIKE_KW|MATCH",
 /* 242 */ "expr ::= expr likeop expr",
 /* 243 */ "expr ::= expr likeop expr ESCAPE expr",
 /* 244 */ "expr ::= expr ISNULL|NOTNULL",
 /* 245 */ "expr ::= expr NOT NULL",
 /* 246 */ "expr ::= expr IS expr",
 /* 247 */ "expr ::= expr IS NOT expr",
 /* 248 */ "expr ::= expr IS NOT DISTINCT FROM expr",
 /* 249 */ "expr ::= expr IS DISTINCT FROM expr",
 /* 250 */ "expr ::= NOT expr",
 /* 251 */ "expr ::= BITNOT expr",
 /* 252 */ "expr ::= PLUS|MINUS expr",
 /* 253 */ "expr ::= expr PTR expr",
 /* 254 */ "between_op ::= BETWEEN",
 /* 255 */ "between_op ::= NOT BETWEEN",
 /* 256 */ "expr ::= expr between_op expr AND expr",
 /* 257 */ "in_op ::= IN",
 /* 258 */ "in_op ::= NOT IN",
 /* 259 */ "expr ::= expr in_op LP exprlist RP",
 /* 260 */ "expr ::= LP select RP",
 /* 261 */ "expr ::= expr in_op LP select RP",
 /* 262 */ "expr ::= expr in_op nm dbnm paren_exprlist",
 /* 263 */ "expr ::= EXISTS LP select RP",
 /* 264 */ "expr ::= CASE case_operand case_exprlist case_else END",
 /* 265 */ "case_exprlist ::= case_exprlist WHEN expr THEN expr",
 /* 266 */ "case_exprlist ::= WHEN expr THEN expr",
 /* 267 */ "case_else ::= ELSE expr",
 /* 268 */ "case_else ::=",
 /* 269 */ "case_operand ::=",
 /* 270 */ "exprlist ::=",
 /* 271 */ "nexprlist ::= nexprlist COMMA expr",
 /* 272 */ "nexprlist ::= expr",
 /* 273 */ "paren_exprlist ::=",
 /* 274 */ "paren_exprlist ::= LP exprlist RP",
 /* 275 */ "cmd ::= createkw uniqueflag INDEX ifnotexists nm dbnm ON nm LP sortlist RP where_opt",
 /* 276 */ "uniqueflag ::= UNIQUE",
 /* 277 */ "uniqueflag ::=",
 /* 278 */ "eidlist_opt ::=",
 /* 279 */ "eidlist_opt ::= LP eidlist RP",
 /* 280 */ "eidlist ::= eidlist COMMA nm collate sortorder",
 /* 281 */ "eidlist ::= nm collate sortorder",
 /* 282 */ "collate ::=",
 /* 283 */ "collate ::= COLLATE ID|STRING",
 /* 284 */ "cmd ::= DROP INDEX ifexists fullname",
 /* 285 */ "cmd ::= VACUUM vinto",
 /* 286 */ "cmd ::= VACUUM nm vinto",
 /* 287 */ "vinto ::= INTO expr",
 /* 288 */ "vinto ::=",
 /* 289 */ "cmd ::= PRAGMA nm dbnm",
 /* 290 */ "cmd ::= PRAGMA nm dbnm EQ nmnum",
 /* 291 */ "cmd ::= PRAGMA nm dbnm LP nmnum RP",
 /* 292 */ "cmd ::= PRAGMA nm dbnm EQ minus_num",
 /* 293 */ "cmd ::= PRAGMA nm dbnm LP minus_num RP",
 /* 294 */ "plus_num ::= PLUS INTEGER|FLOAT",
 /* 295 */ "minus_num ::= MINUS INTEGER|FLOAT",
 /* 296 */ "cmd ::= createkw trigger_decl BEGIN trigger_cmd_list END",
 /* 297 */ "trigger_decl ::= temp TRIGGER ifnotexists nm dbnm trigger_time trigger_event ON fullname foreach_clause when_clause",
 /* 298 */ "trigger_time ::= BEFORE|AFTER",
 /* 299 */ "trigger_time ::= INSTEAD OF",
 /* 300 */ "trigger_time ::=",
 /* 301 */ "trigger_event ::= DELETE|INSERT",
 /* 302 */ "trigger_event ::= UPDATE",
 /* 303 */ "trigger_event ::= UPDATE OF idlist",
 /* 304 */ "when_clause ::=",
 /* 305 */ "when_clause ::= WHEN expr",
 /* 306 */ "trigger_cmd_list ::= trigger_cmd_list trigger_cmd SEMI",
 /* 307 */ "trigger_cmd_list ::= trigger_cmd SEMI",
 /* 308 */ "trnm ::= nm DOT nm",
 /* 309 */ "tridxby ::= INDEXED BY nm",
 /* 310 */ "tridxby ::= NOT INDEXED",
 /* 311 */ "trigger_cmd ::= UPDATE orconf trnm tridxby SET setlist from where_opt scanpt",
 /* 312 */ "trigger_cmd ::= scanpt insert_cmd INTO trnm idlist_opt select upsert scanpt",
 /* 313 */ "trigger_cmd ::= DELETE FROM trnm tridxby where_opt scanpt",
 /* 314 */ "trigger_cmd ::= scanpt select scanpt",
 /* 315 */ "expr ::= RAISE LP IGNORE RP",
 /* 316 */ "expr ::= RAISE LP raisetype COMMA expr RP",
 /* 317 */ "raisetype ::= ROLLBACK",
 /* 318 */ "raisetype ::= ABORT",
 /* 319 */ "raisetype ::= FAIL",
 /* 320 */ "cmd ::= DROP TRIGGER ifexists fullname",
 /* 321 */ "cmd ::= ATTACH database_kw_opt expr AS expr key_opt",
 /* 322 */ "cmd ::= DETACH database_kw_opt expr",
 /* 323 */ "key_opt ::=",
 /* 324 */ "key_opt ::= KEY expr",
 /* 325 */ "cmd ::= REINDEX",
 /* 326 */ "cmd ::= REINDEX nm dbnm",
 /* 327 */ "cmd ::= ANALYZE",
 /* 328 */ "cmd ::= ANALYZE nm dbnm",
 /* 329 */ "cmd ::= ALTER TABLE fullname RENAME TO nm",
 /* 330 */ "cmd ::= ALTER TABLE add_column_fullname ADD kwcolumn_opt columnname carglist",
 /* 331 */ "cmd ::= ALTER TABLE fullname DROP kwcolumn_opt nm",
 /* 332 */ "add_column_fullname ::= fullname",
 /* 333 */ "cmd ::= ALTER TABLE fullname RENAME kwcolumn_opt nm TO nm",
 /* 334 */ "cmd ::= create_vtab",
 /* 335 */ "cmd ::= create_vtab LP vtabarglist RP",
 /* 336 */ "create_vtab ::= createkw VIRTUAL TABLE ifnotexists nm dbnm USING nm",
 /* 337 */ "vtabarg ::=",
 /* 338 */ "vtabargtoken ::= ANY",
 /* 339 */ "vtabargtoken ::= lp anylist RP",
 /* 340 */ "lp ::= LP",
 /* 341 */ "with ::= WITH wqlist",
 /* 342 */ "with ::= WITH RECURSIVE wqlist",
 /* 343 */ "wqas ::= AS",
 /* 344 */ "wqas ::= AS MATERIALIZED",
 /* 345 */ "wqas ::= AS NOT MATERIALIZED",
 /* 346 */ "wqitem ::= withnm eidlist_opt wqas LP select RP",
 /* 347 */ "withnm ::= nm",
 /* 348 */ "wqlist ::= wqitem",
 /* 349 */ "wqlist ::= wqlist COMMA wqitem",
 /* 350 */ "windowdefn_list ::= windowdefn_list COMMA windowdefn",
 /* 351 */ "windowdefn ::= nm AS LP window RP",
 /* 352 */ "window ::= PARTITION BY nexprlist orderby_opt frame_opt",
 /* 353 */ "window ::= nm PARTITION BY nexprlist orderby_opt frame_opt",
 /* 354 */ "window ::= ORDER BY sortlist frame_opt",
 /* 355 */ "window ::= nm ORDER BY sortlist frame_opt",
 /* 356 */ "window ::= nm frame_opt",
 /* 357 */ "frame_opt ::=",
 /* 358 */ "frame_opt ::= range_or_rows frame_bound_s frame_exclude_opt",
 /* 359 */ "frame_opt ::= range_or_rows BETWEEN frame_bound_s AND frame_bound_e frame_exclude_opt",
 /* 360 */ "range_or_rows ::= RANGE|ROWS|GROUPS",
 /* 361 */ "frame_bound_s ::= frame_bound",
 /* 362 */ "frame_bound_s ::= UNBOUNDED PRECEDING",
 /* 363 */ "frame_bound_e ::= frame_bound",
 /* 364 */ "frame_bound_e ::= UNBOUNDED FOLLOWING",
 /* 365 */ "frame_bound ::= expr PRECEDING|FOLLOWING",
 /* 366 */ "frame_bound ::= CURRENT ROW",
 /* 367 */ "frame_exclude_opt ::=",
 /* 368 */ "frame_exclude_opt ::= EXCLUDE frame_exclude",
 /* 369 */ "frame_exclude ::= NO OTHERS",
 /* 370 */ "frame_exclude ::= CURRENT ROW",
 /* 371 */ "frame_exclude ::= GROUP|TIES",
 /* 372 */ "window_clause ::= WINDOW windowdefn_list",
 /* 373 */ "filter_over ::= filter_clause over_clause",
 /* 374 */ "filter_over ::= over_clause",
 /* 375 */ "filter_over ::= filter_clause",
 /* 376 */ "over_clause ::= OVER LP window RP",
 /* 377 */ "over_clause ::= OVER nm",
 /* 378 */ "filter_clause ::= FILTER LP WHERE expr RP",
 /* 379 */ "term ::= QNUMBER",
 /* 380 */ "input ::= cmdlist",
 /* 381 */ "cmdlist ::= cmdlist ecmd",
 /* 382 */ "cmdlist ::= ecmd",
 /* 383 */ "ecmd ::= SEMI",
 /* 384 */ "ecmd ::= cmdx SEMI",
 /* 385 */ "ecmd ::= explain cmdx SEMI",
 /* 386 */ "trans_opt ::=",
 /* 387 */ "trans_opt ::= TRANSACTION",
 /* 388 */ "trans_opt ::= TRANSACTION nm",
 /* 389 */ "savepoint_opt ::= SAVEPOINT",
 /* 390 */ "savepoint_opt ::=",
 /* 391 */ "cmd ::= create_table create_table_args",
 /* 392 */ "table_option_set ::= table_option",
 /* 393 */ "columnlist ::= columnlist COMMA columnname carglist",
 /* 394 */ "columnlist ::= columnname carglist",
 /* 395 */ "nm ::= ID|INDEXED|JOIN_KW",
 /* 396 */ "nm ::= STRING",
 /* 397 */ "typetoken ::= typename",
 /* 398 */ "typename ::= ID|STRING",
 /* 399 */ "signed ::= plus_num",
 /* 400 */ "signed ::= minus_num",
 /* 401 */ "carglist ::= carglist ccons",
 /* 402 */ "carglist ::=",
 /* 403 */ "ccons ::= NULL onconf",
 /* 404 */ "ccons ::= GENERATED ALWAYS AS generated",
 /* 405 */ "ccons ::= AS generated",
 /* 406 */ "conslist_opt ::= COMMA conslist",
 /* 407 */ "conslist ::= conslist tconscomma tcons",
 /* 408 */ "conslist ::= tcons",
 /* 409 */ "tconscomma ::=",
 /* 410 */ "defer_subclause_opt ::= defer_subclause",
 /* 411 */ "resolvetype ::= raisetype",
 /* 412 */ "selectnowith ::= oneselect",
 /* 413 */ "oneselect ::= values",
 /* 414 */ "sclp ::= selcollist COMMA",
 /* 415 */ "as ::= ID|STRING",
 /* 416 */ "indexed_opt ::= indexed_by",
 /* 417 */ "returning ::=",
 /* 418 */ "expr ::= term",
 /* 419 */ "likeop ::= LIKE_KW|MATCH",
 /* 420 */ "case_operand ::= expr",
 /* 421 */ "exprlist ::= nexprlist",
 /* 422 */ "nmnum ::= plus_num",
 /* 423 */ "nmnum ::= nm",
 /* 424 */ "nmnum ::= ON",
 /* 425 */ "nmnum ::= DELETE",
 /* 426 */ "nmnum ::= DEFAULT",
 /* 427 */ "plus_num ::= INTEGER|FLOAT",
 /* 428 */ "foreach_clause ::=",
 /* 429 */ "foreach_clause ::= FOR EACH ROW",
 /* 430 */ "trnm ::= nm",
 /* 431 */ "tridxby ::=",
 /* 432 */ "database_kw_opt ::= DATABASE",
 /* 433 */ "database_kw_opt ::=",
 /* 434 */ "kwcolumn_opt ::=",
 /* 435 */ "kwcolumn_opt ::= COLUMNKW",
 /* 436 */ "vtabarglist ::= vtabarg",
 /* 437 */ "vtabarglist ::= vtabarglist COMMA vtabarg",
 /* 438 */ "vtabarg ::= vtabarg vtabargtoken",
 /* 439 */ "anylist ::=",
 /* 440 */ "anylist ::= anylist LP anylist RP",
 /* 441 */ "anylist ::= anylist ANY",
 /* 442 */ "with ::=",
 /* 443 */ "windowdefn_list ::= windowdefn",
 /* 444 */ "window ::= frame_opt",
};
#endif /* NDEBUG */


#if YYGROWABLESTACK
/*
** Try to increase the size of the parser stack.  Return the number
** of errors.  Return 0 on success.
*/
static int yyGrowStack(yyParser *p){
  int oldSize = 1 + (int)(p->yystackEnd - p->yystack);
  int newSize;
  int idx;
  yyStackEntry *pNew;

  newSize = oldSize*2 + 100;
  idx = (int)(p->yytos - p->yystack);
  if( p->yystack==p->yystk0 ){
    pNew = YYREALLOC(0, newSize*sizeof(pNew[0]));
    if( pNew==0 ) return 1;
    memcpy(pNew, p->yystack, oldSize*sizeof(pNew[0]));
  }else{
    pNew = YYREALLOC(p->yystack, newSize*sizeof(pNew[0]));
    if( pNew==0 ) return 1;
  }
  p->yystack = pNew;
  p->yytos = &p->yystack[idx];
#ifndef NDEBUG
  if( yyTraceFILE ){
    fprintf(yyTraceFILE,"%sStack grows from %d to %d entries.\n",
            yyTracePrompt, oldSize, newSize);
  }
#endif
  p->yystackEnd = &p->yystack[newSize-1];
  return 0;
}
#endif /* YYGROWABLESTACK */

#if !YYGROWABLESTACK
/* For builds that do no have a growable stack, yyGrowStack always
** returns an error.
*/
# define yyGrowStack(X) 1
#endif

/* Datatype of the argument to the memory allocated passed as the
** second argument to PerfettoSqlParseAlloc() below.  This can be changed by
** putting an appropriate #define in the %include section of the input
** grammar.
*/
#ifndef YYMALLOCARGTYPE
# define YYMALLOCARGTYPE size_t
#endif

/* Initialize a new parser that has already been allocated.
*/
void PerfettoSqlParseInit(void *yypRawParser PerfettoSqlParseCTX_PDECL){
  yyParser *yypParser = (yyParser*)yypRawParser;
  PerfettoSqlParseCTX_STORE
#ifdef YYTRACKMAXSTACKDEPTH
  yypParser->yyhwm = 0;
#endif
  yypParser->yystack = yypParser->yystk0;
  yypParser->yystackEnd = &yypParser->yystack[YYSTACKDEPTH-1];
#ifndef YYNOERRORRECOVERY
  yypParser->yyerrcnt = -1;
#endif
  yypParser->yytos = yypParser->yystack;
  yypParser->yystack[0].stateno = 0;
  yypParser->yystack[0].major = 0;
}

#ifndef PerfettoSqlParse_ENGINEALWAYSONSTACK
/* 
** This function allocates a new parser.
** The only argument is a pointer to a function which works like
** malloc.
**
** Inputs:
** A pointer to the function used to allocate memory.
**
** Outputs:
** A pointer to a parser.  This pointer is used in subsequent calls
** to PerfettoSqlParse and PerfettoSqlParseFree.
*/
void *PerfettoSqlParseAlloc(void *(*mallocProc)(YYMALLOCARGTYPE) PerfettoSqlParseCTX_PDECL){
  yyParser *yypParser;
  yypParser = (yyParser*)(*mallocProc)( (YYMALLOCARGTYPE)sizeof(yyParser) );
  if( yypParser ){
    PerfettoSqlParseCTX_STORE
    PerfettoSqlParseInit(yypParser PerfettoSqlParseCTX_PARAM);
  }
  return (void*)yypParser;
}
#endif /* PerfettoSqlParse_ENGINEALWAYSONSTACK */


/* The following function deletes the "minor type" or semantic value
** associated with a symbol.  The symbol can be either a terminal
** or nonterminal. "yymajor" is the symbol code, and "yypminor" is
** a pointer to the value to be deleted.  The code used to do the 
** deletions is derived from the %destructor and/or %token_destructor
** directives of the input grammar.
*/
static void yy_destructor(
  yyParser *yypParser,    /* The parser */
  YYCODETYPE yymajor,     /* Type code for object to destroy */
  YYMINORTYPE *yypminor   /* The object to be destroyed */
){
  PerfettoSqlParseARG_FETCH
  PerfettoSqlParseCTX_FETCH
  switch( yymajor ){
    /* Here is inserted the actions which take place when a
    ** terminal or non-terminal is destroyed.  This can happen
    ** when the symbol is popped from the stack during a
    ** reduce or during error processing or when a parser is 
    ** being destroyed before it is finished parsing.
    **
    ** Note: during a reduce, the only symbols destroyed are those
    ** which appear on the RHS of the rule, but which are *not* used
    ** inside the C code.
    */
/********* Begin destructor definitions ***************************************/
    case 179: /* sql_argument_list */
    case 180: /* sql_argument_list_nonempty */
    case 183: /* table_schema */
{
 OnPerfettoSqlFreeArgumentList(state, (yypminor->yy640)); 
}
      break;
    case 186: /* return_type */
{
 OnPerfettoSqlFnFreeReturnType(state, (yypminor->yy171)); 
}
      break;
    case 189: /* indexed_column_list */
{
 OnPerfettoSqlFreeIndexedColumnList(state, (yypminor->yy392)); 
}
      break;
    case 190: /* macro_argument_list */
    case 192: /* macro_argument_list_nonempty */
{
 OnPerfettoSqlFreeMacroArgumentList(state, (yypminor->yy480)); 
}
      break;
/********* End destructor definitions *****************************************/
    default:  break;   /* If no destructor action specified: do nothing */
  }
}

/*
** Pop the parser's stack once.
**
** If there is a destructor routine associated with the token which
** is popped from the stack, then call it.
*/
static void yy_pop_parser_stack(yyParser *pParser){
  yyStackEntry *yytos;
  assert( pParser->yytos!=0 );
  assert( pParser->yytos > pParser->yystack );
  yytos = pParser->yytos--;
#ifndef NDEBUG
  if( yyTraceFILE ){
    fprintf(yyTraceFILE,"%sPopping %s\n",
      yyTracePrompt,
      yyTokenName[yytos->major]);
  }
#endif
  yy_destructor(pParser, yytos->major, &yytos->minor);
}

/*
** Clear all secondary memory allocations from the parser
*/
void PerfettoSqlParseFinalize(void *p){
  yyParser *pParser = (yyParser*)p;

  /* In-lined version of calling yy_pop_parser_stack() for each
  ** element left in the stack */
  yyStackEntry *yytos = pParser->yytos;
  while( yytos>pParser->yystack ){
#ifndef NDEBUG
    if( yyTraceFILE ){
      fprintf(yyTraceFILE,"%sPopping %s\n",
        yyTracePrompt,
        yyTokenName[yytos->major]);
    }
#endif
    if( yytos->major>=YY_MIN_DSTRCTR ){
      yy_destructor(pParser, yytos->major, &yytos->minor);
    }
    yytos--;
  }

#if YYGROWABLESTACK
  if( pParser->yystack!=pParser->yystk0 ) YYFREE(pParser->yystack);
#endif
}

#ifndef PerfettoSqlParse_ENGINEALWAYSONSTACK
/* 
** Deallocate and destroy a parser.  Destructors are called for
** all stack elements before shutting the parser down.
**
** If the YYPARSEFREENEVERNULL macro exists (for example because it
** is defined in a %include section of the input grammar) then it is
** assumed that the input pointer is never NULL.
*/
void PerfettoSqlParseFree(
  void *p,                    /* The parser to be deleted */
  void (*freeProc)(void*)     /* Function used to reclaim memory */
){
#ifndef YYPARSEFREENEVERNULL
  if( p==0 ) return;
#endif
  PerfettoSqlParseFinalize(p);
  (*freeProc)(p);
}
#endif /* PerfettoSqlParse_ENGINEALWAYSONSTACK */

/*
** Return the peak depth of the stack for a parser.
*/
#ifdef YYTRACKMAXSTACKDEPTH
int PerfettoSqlParseStackPeak(void *p){
  yyParser *pParser = (yyParser*)p;
  return pParser->yyhwm;
}
#endif

/* This array of booleans keeps track of the parser statement
** coverage.  The element yycoverage[X][Y] is set when the parser
** is in state X and has a lookahead token Y.  In a well-tested
** systems, every element of this matrix should end up being set.
*/
#if defined(YYCOVERAGE)
static unsigned char yycoverage[YYNSTATE][YYNTOKEN];
#endif

/*
** Write into out a description of every state/lookahead combination that
**
**   (1)  has not been used by the parser, and
**   (2)  is not a syntax error.
**
** Return the number of missed state/lookahead combinations.
*/
#if defined(YYCOVERAGE)
int PerfettoSqlParseCoverage(FILE *out){
  int stateno, iLookAhead, i;
  int nMissed = 0;
  for(stateno=0; stateno<YYNSTATE; stateno++){
    i = yy_shift_ofst[stateno];
    for(iLookAhead=0; iLookAhead<YYNTOKEN; iLookAhead++){
      if( yy_lookahead[i+iLookAhead]!=iLookAhead ) continue;
      if( yycoverage[stateno][iLookAhead]==0 ) nMissed++;
      if( out ){
        fprintf(out,"State %d lookahead %s %s\n", stateno,
                yyTokenName[iLookAhead],
                yycoverage[stateno][iLookAhead] ? "ok" : "missed");
      }
    }
  }
  return nMissed;
}
#endif

/*
** Find the appropriate action for a parser given the terminal
** look-ahead token iLookAhead.
*/
static YYACTIONTYPE yy_find_shift_action(
  YYCODETYPE iLookAhead,    /* The look-ahead token */
  YYACTIONTYPE stateno      /* Current state number */
){
  int i;

  if( stateno>YY_MAX_SHIFT ) return stateno;
  assert( stateno <= YY_SHIFT_COUNT );
#if defined(YYCOVERAGE)
  yycoverage[stateno][iLookAhead] = 1;
#endif
  do{
    i = yy_shift_ofst[stateno];
    assert( i>=0 );
    assert( i<=YY_ACTTAB_COUNT );
    assert( i+YYNTOKEN<=(int)YY_NLOOKAHEAD );
    assert( iLookAhead!=YYNOCODE );
    assert( iLookAhead < YYNTOKEN );
    i += iLookAhead;
    assert( i<(int)YY_NLOOKAHEAD );
    if( yy_lookahead[i]!=iLookAhead ){
#ifdef YYFALLBACK
      YYCODETYPE iFallback;            /* Fallback token */
      assert( iLookAhead<sizeof(yyFallback)/sizeof(yyFallback[0]) );
      iFallback = yyFallback[iLookAhead];
      if( iFallback!=0 ){
#ifndef NDEBUG
        if( yyTraceFILE ){
          fprintf(yyTraceFILE, "%sFALLBACK %s => %s\n",
             yyTracePrompt, yyTokenName[iLookAhead], yyTokenName[iFallback]);
        }
#endif
        assert( yyFallback[iFallback]==0 ); /* Fallback loop must terminate */
        iLookAhead = iFallback;
        continue;
      }
#endif
#ifdef YYWILDCARD
      {
        int j = i - iLookAhead + YYWILDCARD;
        assert( j<(int)(sizeof(yy_lookahead)/sizeof(yy_lookahead[0])) );
        if( yy_lookahead[j]==YYWILDCARD && iLookAhead>0 ){
#ifndef NDEBUG
          if( yyTraceFILE ){
            fprintf(yyTraceFILE, "%sWILDCARD %s => %s\n",
               yyTracePrompt, yyTokenName[iLookAhead],
               yyTokenName[YYWILDCARD]);
          }
#endif /* NDEBUG */
          return yy_action[j];
        }
      }
#endif /* YYWILDCARD */
      return yy_default[stateno];
    }else{
      assert( i>=0 && i<(int)(sizeof(yy_action)/sizeof(yy_action[0])) );
      return yy_action[i];
    }
  }while(1);
}

/*
** Find the appropriate action for a parser given the non-terminal
** look-ahead token iLookAhead.
*/
static YYACTIONTYPE yy_find_reduce_action(
  YYACTIONTYPE stateno,     /* Current state number */
  YYCODETYPE iLookAhead     /* The look-ahead token */
){
  int i;
#ifdef YYERRORSYMBOL
  if( stateno>YY_REDUCE_COUNT ){
    return yy_default[stateno];
  }
#else
  assert( stateno<=YY_REDUCE_COUNT );
#endif
  i = yy_reduce_ofst[stateno];
  assert( iLookAhead!=YYNOCODE );
  i += iLookAhead;
#ifdef YYERRORSYMBOL
  if( i<0 || i>=YY_ACTTAB_COUNT || yy_lookahead[i]!=iLookAhead ){
    return yy_default[stateno];
  }
#else
  assert( i>=0 && i<YY_ACTTAB_COUNT );
  assert( yy_lookahead[i]==iLookAhead );
#endif
  return yy_action[i];
}

/*
** The following routine is called if the stack overflows.
*/
static void yyStackOverflow(yyParser *yypParser){
   PerfettoSqlParseARG_FETCH
   PerfettoSqlParseCTX_FETCH
#ifndef NDEBUG
   if( yyTraceFILE ){
     fprintf(yyTraceFILE,"%sStack Overflow!\n",yyTracePrompt);
   }
#endif
   while( yypParser->yytos>yypParser->yystack ) yy_pop_parser_stack(yypParser);
   /* Here code is inserted which will execute if the parser
   ** stack every overflows */
/******** Begin %stack_overflow code ******************************************/
/******** End %stack_overflow code ********************************************/
   PerfettoSqlParseARG_STORE /* Suppress warning about unused %extra_argument var */
   PerfettoSqlParseCTX_STORE
}

/*
** Print tracing information for a SHIFT action
*/
#ifndef NDEBUG
static void yyTraceShift(yyParser *yypParser, int yyNewState, const char *zTag){
  if( yyTraceFILE ){
    if( yyNewState<YYNSTATE ){
      fprintf(yyTraceFILE,"%s%s '%s', go to state %d\n",
         yyTracePrompt, zTag, yyTokenName[yypParser->yytos->major],
         yyNewState);
    }else{
      fprintf(yyTraceFILE,"%s%s '%s', pending reduce %d\n",
         yyTracePrompt, zTag, yyTokenName[yypParser->yytos->major],
         yyNewState - YY_MIN_REDUCE);
    }
  }
}
#else
# define yyTraceShift(X,Y,Z)
#endif

/*
** Perform a shift action.
*/
static void yy_shift(
  yyParser *yypParser,          /* The parser to be shifted */
  YYACTIONTYPE yyNewState,      /* The new state to shift in */
  YYCODETYPE yyMajor,           /* The major token to shift in */
  PerfettoSqlParseTOKENTYPE yyMinor        /* The minor token to shift in */
){
  yyStackEntry *yytos;
  yypParser->yytos++;
#ifdef YYTRACKMAXSTACKDEPTH
  if( (int)(yypParser->yytos - yypParser->yystack)>yypParser->yyhwm ){
    yypParser->yyhwm++;
    assert( yypParser->yyhwm == (int)(yypParser->yytos - yypParser->yystack) );
  }
#endif
  yytos = yypParser->yytos;
  if( yytos>yypParser->yystackEnd ){
    if( yyGrowStack(yypParser) ){
      yypParser->yytos--;
      yyStackOverflow(yypParser);
      return;
    }
    yytos = yypParser->yytos;
    assert( yytos <= yypParser->yystackEnd );
  }
  if( yyNewState > YY_MAX_SHIFT ){
    yyNewState += YY_MIN_REDUCE - YY_MIN_SHIFTREDUCE;
  }
  yytos->stateno = yyNewState;
  yytos->major = yyMajor;
  yytos->minor.yy0 = yyMinor;
  yyTraceShift(yypParser, yyNewState, "Shift");
}

/* For rule J, yyRuleInfoLhs[J] contains the symbol on the left-hand side
** of that rule */
static const YYCODETYPE yyRuleInfoLhs[] = {
   178,  /* (0) pscantok ::= */
   179,  /* (1) sql_argument_list ::= */
   179,  /* (2) sql_argument_list ::= sql_argument_list_nonempty */
   181,  /* (3) sql_argument_type ::= ID */
   181,  /* (4) sql_argument_type ::= ID LP ID DOT ID RP */
   182,  /* (5) sql_variadic_argument_type ::= ID DOT DOT DOT */
   180,  /* (6) sql_argument_list_nonempty ::= sql_argument_list_nonempty COMMA ID sql_argument_type */
   180,  /* (7) sql_argument_list_nonempty ::= ID sql_argument_type */
   180,  /* (8) sql_argument_list_nonempty ::= sql_argument_list_nonempty COMMA ID sql_variadic_argument_type */
   180,  /* (9) sql_argument_list_nonempty ::= ID sql_variadic_argument_type */
   183,  /* (10) table_schema ::= */
   183,  /* (11) table_schema ::= LP sql_argument_list_nonempty RP */
   184,  /* (12) or_replace ::= */
   184,  /* (13) or_replace ::= OR REPLACE */
   185,  /* (14) cmd ::= CREATE or_replace PERFETTO FUNCTION ID LP sql_argument_list RP RETURNS return_type AS select pscantok */
   185,  /* (15) cmd ::= CREATE or_replace PERFETTO FUNCTION ID LP sql_argument_list RP RETURNS return_type DELEGATES TO ID pscantok */
   186,  /* (16) return_type ::= ID */
   186,  /* (17) return_type ::= TABLE LP sql_argument_list_nonempty RP */
   188,  /* (18) table_impl ::= */
   188,  /* (19) table_impl ::= USING ID */
   185,  /* (20) cmd ::= CREATE or_replace PERFETTO TABLE ID table_impl table_schema AS select pscantok */
   185,  /* (21) cmd ::= CREATE or_replace PERFETTO VIEW ID table_schema AS select pscantok */
   185,  /* (22) cmd ::= CREATE or_replace PERFETTO INDEX ID ON ID LP indexed_column_list RP */
   189,  /* (23) indexed_column_list ::= indexed_column_list COMMA ID */
   189,  /* (24) indexed_column_list ::= ID */
   185,  /* (25) cmd ::= CREATE or_replace PERFETTO MACRO ID LP macro_argument_list RP RETURNS ID AS macro_body pscantok */
   192,  /* (26) macro_argument_list_nonempty ::= macro_argument_list_nonempty COMMA ID ID */
   192,  /* (27) macro_argument_list_nonempty ::= ID ID */
   190,  /* (28) macro_argument_list ::= */
   190,  /* (29) macro_argument_list ::= macro_argument_list_nonempty */
   185,  /* (30) cmd ::= INCLUDE PERFETTO MODULE module_name */
   193,  /* (31) module_name ::= ID|STAR|INTERSECT */
   193,  /* (32) module_name ::= module_name DOT ID|STAR|INTERSECT */
   185,  /* (33) cmd ::= DROP PERFETTO INDEX ID ON ID */
   191,  /* (34) macro_body ::= ANY */
   191,  /* (35) macro_body ::= macro_body ANY */
   194,  /* (36) explain ::= EXPLAIN */
   194,  /* (37) explain ::= EXPLAIN QUERY PLAN */
   195,  /* (38) cmdx ::= cmd */
   185,  /* (39) cmd ::= BEGIN transtype trans_opt */
   196,  /* (40) transtype ::= */
   196,  /* (41) transtype ::= DEFERRED */
   196,  /* (42) transtype ::= IMMEDIATE */
   196,  /* (43) transtype ::= EXCLUSIVE */
   185,  /* (44) cmd ::= COMMIT|END trans_opt */
   185,  /* (45) cmd ::= ROLLBACK trans_opt */
   185,  /* (46) cmd ::= SAVEPOINT nm */
   185,  /* (47) cmd ::= RELEASE savepoint_opt nm */
   185,  /* (48) cmd ::= ROLLBACK trans_opt TO savepoint_opt nm */
   200,  /* (49) create_table ::= createkw temp TABLE ifnotexists nm dbnm */
   201,  /* (50) createkw ::= CREATE */
   203,  /* (51) ifnotexists ::= */
   203,  /* (52) ifnotexists ::= IF NOT EXISTS */
   202,  /* (53) temp ::= TEMP */
   202,  /* (54) temp ::= */
   205,  /* (55) create_table_args ::= LP columnlist conslist_opt RP table_option_set */
   205,  /* (56) create_table_args ::= AS select */
   208,  /* (57) table_option_set ::= */
   208,  /* (58) table_option_set ::= table_option_set COMMA table_option */
   209,  /* (59) table_option ::= WITHOUT nm */
   209,  /* (60) table_option ::= nm */
   210,  /* (61) columnname ::= nm typetoken */
   211,  /* (62) typetoken ::= */
   211,  /* (63) typetoken ::= typename LP signed RP */
   211,  /* (64) typetoken ::= typename LP signed COMMA signed RP */
   212,  /* (65) typename ::= typename ID|STRING */
   214,  /* (66) scanpt ::= */
   215,  /* (67) scantok ::= */
   216,  /* (68) ccons ::= CONSTRAINT nm */
   216,  /* (69) ccons ::= DEFAULT scantok term */
   216,  /* (70) ccons ::= DEFAULT LP expr RP */
   216,  /* (71) ccons ::= DEFAULT PLUS scantok term */
   216,  /* (72) ccons ::= DEFAULT MINUS scantok term */
   216,  /* (73) ccons ::= DEFAULT scantok ID|INDEXED */
   216,  /* (74) ccons ::= NOT NULL onconf */
   216,  /* (75) ccons ::= PRIMARY KEY sortorder onconf autoinc */
   216,  /* (76) ccons ::= UNIQUE onconf */
   216,  /* (77) ccons ::= CHECK LP expr RP */
   216,  /* (78) ccons ::= REFERENCES nm eidlist_opt refargs */
   216,  /* (79) ccons ::= defer_subclause */
   216,  /* (80) ccons ::= COLLATE ID|STRING */
   225,  /* (81) generated ::= LP expr RP */
   225,  /* (82) generated ::= LP expr RP ID */
   221,  /* (83) autoinc ::= */
   221,  /* (84) autoinc ::= AUTOINCR */
   223,  /* (85) refargs ::= */
   223,  /* (86) refargs ::= refargs refarg */
   226,  /* (87) refarg ::= MATCH nm */
   226,  /* (88) refarg ::= ON INSERT refact */
   226,  /* (89) refarg ::= ON DELETE refact */
   226,  /* (90) refarg ::= ON UPDATE refact */
   227,  /* (91) refact ::= SET NULL */
   227,  /* (92) refact ::= SET DEFAULT */
   227,  /* (93) refact ::= CASCADE */
   227,  /* (94) refact ::= RESTRICT */
   227,  /* (95) refact ::= NO ACTION */
   224,  /* (96) defer_subclause ::= NOT DEFERRABLE init_deferred_pred_opt */
   224,  /* (97) defer_subclause ::= DEFERRABLE init_deferred_pred_opt */
   228,  /* (98) init_deferred_pred_opt ::= */
   228,  /* (99) init_deferred_pred_opt ::= INITIALLY DEFERRED */
   228,  /* (100) init_deferred_pred_opt ::= INITIALLY IMMEDIATE */
   207,  /* (101) conslist_opt ::= */
   229,  /* (102) tconscomma ::= COMMA */
   230,  /* (103) tcons ::= CONSTRAINT nm */
   230,  /* (104) tcons ::= PRIMARY KEY LP sortlist autoinc RP onconf */
   230,  /* (105) tcons ::= UNIQUE LP sortlist RP onconf */
   230,  /* (106) tcons ::= CHECK LP expr RP onconf */
   230,  /* (107) tcons ::= FOREIGN KEY LP eidlist RP REFERENCES nm eidlist_opt refargs defer_subclause_opt */
   233,  /* (108) defer_subclause_opt ::= */
   219,  /* (109) onconf ::= */
   219,  /* (110) onconf ::= ON CONFLICT resolvetype */
   235,  /* (111) orconf ::= */
   235,  /* (112) orconf ::= OR resolvetype */
   234,  /* (113) resolvetype ::= IGNORE */
   234,  /* (114) resolvetype ::= REPLACE */
   185,  /* (115) cmd ::= DROP TABLE ifexists fullname */
   236,  /* (116) ifexists ::= IF EXISTS */
   236,  /* (117) ifexists ::= */
   185,  /* (118) cmd ::= createkw temp VIEW ifnotexists nm dbnm eidlist_opt AS select */
   185,  /* (119) cmd ::= DROP VIEW ifexists fullname */
   185,  /* (120) cmd ::= select */
   187,  /* (121) select ::= WITH wqlist selectnowith */
   187,  /* (122) select ::= WITH RECURSIVE wqlist selectnowith */
   187,  /* (123) select ::= selectnowith */
   239,  /* (124) selectnowith ::= selectnowith multiselect_op oneselect */
   240,  /* (125) multiselect_op ::= UNION */
   240,  /* (126) multiselect_op ::= UNION ALL */
   240,  /* (127) multiselect_op ::= EXCEPT|INTERSECT */
   241,  /* (128) oneselect ::= SELECT distinct selcollist from where_opt groupby_opt having_opt orderby_opt limit_opt */
   241,  /* (129) oneselect ::= SELECT distinct selcollist from where_opt groupby_opt having_opt window_clause orderby_opt limit_opt */
   251,  /* (130) values ::= VALUES LP nexprlist RP */
   241,  /* (131) oneselect ::= mvalues */
   253,  /* (132) mvalues ::= values COMMA LP nexprlist RP */
   253,  /* (133) mvalues ::= mvalues COMMA LP nexprlist RP */
   242,  /* (134) distinct ::= DISTINCT */
   242,  /* (135) distinct ::= ALL */
   242,  /* (136) distinct ::= */
   254,  /* (137) sclp ::= */
   243,  /* (138) selcollist ::= sclp scanpt expr scanpt as */
   243,  /* (139) selcollist ::= sclp scanpt STAR */
   243,  /* (140) selcollist ::= sclp scanpt nm DOT STAR */
   255,  /* (141) as ::= AS nm */
   255,  /* (142) as ::= */
   244,  /* (143) from ::= */
   244,  /* (144) from ::= FROM seltablist */
   257,  /* (145) stl_prefix ::= seltablist joinop */
   257,  /* (146) stl_prefix ::= */
   256,  /* (147) seltablist ::= stl_prefix nm dbnm as on_using */
   256,  /* (148) seltablist ::= stl_prefix nm dbnm as indexed_by on_using */
   256,  /* (149) seltablist ::= stl_prefix nm dbnm LP exprlist RP as on_using */
   256,  /* (150) seltablist ::= stl_prefix LP select RP as on_using */
   256,  /* (151) seltablist ::= stl_prefix LP seltablist RP as on_using */
   204,  /* (152) dbnm ::= */
   204,  /* (153) dbnm ::= DOT nm */
   237,  /* (154) fullname ::= nm */
   237,  /* (155) fullname ::= nm DOT nm */
   262,  /* (156) xfullname ::= nm */
   262,  /* (157) xfullname ::= nm DOT nm */
   262,  /* (158) xfullname ::= nm DOT nm AS nm */
   262,  /* (159) xfullname ::= nm AS nm */
   258,  /* (160) joinop ::= COMMA|JOIN */
   258,  /* (161) joinop ::= JOIN_KW JOIN */
   258,  /* (162) joinop ::= JOIN_KW nm JOIN */
   258,  /* (163) joinop ::= JOIN_KW nm nm JOIN */
   259,  /* (164) on_using ::= ON expr */
   259,  /* (165) on_using ::= USING LP idlist RP */
   259,  /* (166) on_using ::= */
   264,  /* (167) indexed_opt ::= */
   260,  /* (168) indexed_by ::= INDEXED BY nm */
   260,  /* (169) indexed_by ::= NOT INDEXED */
   248,  /* (170) orderby_opt ::= */
   248,  /* (171) orderby_opt ::= ORDER BY sortlist */
   231,  /* (172) sortlist ::= sortlist COMMA expr sortorder nulls */
   231,  /* (173) sortlist ::= expr sortorder nulls */
   220,  /* (174) sortorder ::= ASC */
   220,  /* (175) sortorder ::= DESC */
   220,  /* (176) sortorder ::= */
   265,  /* (177) nulls ::= NULLS FIRST */
   265,  /* (178) nulls ::= NULLS LAST */
   265,  /* (179) nulls ::= */
   246,  /* (180) groupby_opt ::= */
   246,  /* (181) groupby_opt ::= GROUP BY nexprlist */
   247,  /* (182) having_opt ::= */
   247,  /* (183) having_opt ::= HAVING expr */
   249,  /* (184) limit_opt ::= */
   249,  /* (185) limit_opt ::= LIMIT expr */
   249,  /* (186) limit_opt ::= LIMIT expr OFFSET expr */
   249,  /* (187) limit_opt ::= LIMIT expr COMMA expr */
   185,  /* (188) cmd ::= with DELETE FROM xfullname indexed_opt where_opt_ret */
   245,  /* (189) where_opt ::= */
   245,  /* (190) where_opt ::= WHERE expr */
   267,  /* (191) where_opt_ret ::= */
   267,  /* (192) where_opt_ret ::= WHERE expr */
   267,  /* (193) where_opt_ret ::= RETURNING selcollist */
   267,  /* (194) where_opt_ret ::= WHERE expr RETURNING selcollist */
   185,  /* (195) cmd ::= with UPDATE orconf xfullname indexed_opt SET setlist from where_opt_ret */
   268,  /* (196) setlist ::= setlist COMMA nm EQ expr */
   268,  /* (197) setlist ::= setlist COMMA LP idlist RP EQ expr */
   268,  /* (198) setlist ::= nm EQ expr */
   268,  /* (199) setlist ::= LP idlist RP EQ expr */
   185,  /* (200) cmd ::= with insert_cmd INTO xfullname idlist_opt select upsert */
   185,  /* (201) cmd ::= with insert_cmd INTO xfullname idlist_opt DEFAULT VALUES returning */
   271,  /* (202) upsert ::= */
   271,  /* (203) upsert ::= RETURNING selcollist */
   271,  /* (204) upsert ::= ON CONFLICT LP sortlist RP where_opt DO UPDATE SET setlist where_opt upsert */
   271,  /* (205) upsert ::= ON CONFLICT LP sortlist RP where_opt DO NOTHING upsert */
   271,  /* (206) upsert ::= ON CONFLICT DO NOTHING returning */
   271,  /* (207) upsert ::= ON CONFLICT DO UPDATE SET setlist where_opt returning */
   272,  /* (208) returning ::= RETURNING selcollist */
   269,  /* (209) insert_cmd ::= INSERT orconf */
   269,  /* (210) insert_cmd ::= REPLACE */
   270,  /* (211) idlist_opt ::= */
   270,  /* (212) idlist_opt ::= LP idlist RP */
   263,  /* (213) idlist ::= idlist COMMA nm */
   263,  /* (214) idlist ::= nm */
   218,  /* (215) expr ::= LP expr RP */
   218,  /* (216) expr ::= ID|INDEXED|JOIN_KW */
   218,  /* (217) expr ::= nm DOT nm */
   218,  /* (218) expr ::= nm DOT nm DOT nm */
   217,  /* (219) term ::= NULL|FLOAT|BLOB */
   217,  /* (220) term ::= STRING */
   217,  /* (221) term ::= INTEGER */
   218,  /* (222) expr ::= VARIABLE */
   218,  /* (223) expr ::= expr COLLATE ID|STRING */
   218,  /* (224) expr ::= CAST LP expr AS typetoken RP */
   218,  /* (225) expr ::= ID|INDEXED|JOIN_KW LP distinct exprlist RP */
   218,  /* (226) expr ::= ID|INDEXED|JOIN_KW LP distinct exprlist ORDER BY sortlist RP */
   218,  /* (227) expr ::= ID|INDEXED|JOIN_KW LP STAR RP */
   218,  /* (228) expr ::= ID|INDEXED|JOIN_KW LP distinct exprlist RP filter_over */
   218,  /* (229) expr ::= ID|INDEXED|JOIN_KW LP distinct exprlist ORDER BY sortlist RP filter_over */
   218,  /* (230) expr ::= ID|INDEXED|JOIN_KW LP STAR RP filter_over */
   217,  /* (231) term ::= CTIME_KW */
   218,  /* (232) expr ::= LP nexprlist COMMA expr RP */
   218,  /* (233) expr ::= expr AND expr */
   218,  /* (234) expr ::= expr OR expr */
   218,  /* (235) expr ::= expr LT|GT|GE|LE expr */
   218,  /* (236) expr ::= expr EQ|NE expr */
   218,  /* (237) expr ::= expr BITAND|BITOR|LSHIFT|RSHIFT expr */
   218,  /* (238) expr ::= expr PLUS|MINUS expr */
   218,  /* (239) expr ::= expr STAR|SLASH|REM expr */
   218,  /* (240) expr ::= expr CONCAT expr */
   274,  /* (241) likeop ::= NOT LIKE_KW|MATCH */
   218,  /* (242) expr ::= expr likeop expr */
   218,  /* (243) expr ::= expr likeop expr ESCAPE expr */
   218,  /* (244) expr ::= expr ISNULL|NOTNULL */
   218,  /* (245) expr ::= expr NOT NULL */
   218,  /* (246) expr ::= expr IS expr */
   218,  /* (247) expr ::= expr IS NOT expr */
   218,  /* (248) expr ::= expr IS NOT DISTINCT FROM expr */
   218,  /* (249) expr ::= expr IS DISTINCT FROM expr */
   218,  /* (250) expr ::= NOT expr */
   218,  /* (251) expr ::= BITNOT expr */
   218,  /* (252) expr ::= PLUS|MINUS expr */
   218,  /* (253) expr ::= expr PTR expr */
   275,  /* (254) between_op ::= BETWEEN */
   275,  /* (255) between_op ::= NOT BETWEEN */
   218,  /* (256) expr ::= expr between_op expr AND expr */
   276,  /* (257) in_op ::= IN */
   276,  /* (258) in_op ::= NOT IN */
   218,  /* (259) expr ::= expr in_op LP exprlist RP */
   218,  /* (260) expr ::= LP select RP */
   218,  /* (261) expr ::= expr in_op LP select RP */
   218,  /* (262) expr ::= expr in_op nm dbnm paren_exprlist */
   218,  /* (263) expr ::= EXISTS LP select RP */
   218,  /* (264) expr ::= CASE case_operand case_exprlist case_else END */
   279,  /* (265) case_exprlist ::= case_exprlist WHEN expr THEN expr */
   279,  /* (266) case_exprlist ::= WHEN expr THEN expr */
   280,  /* (267) case_else ::= ELSE expr */
   280,  /* (268) case_else ::= */
   278,  /* (269) case_operand ::= */
   261,  /* (270) exprlist ::= */
   252,  /* (271) nexprlist ::= nexprlist COMMA expr */
   252,  /* (272) nexprlist ::= expr */
   277,  /* (273) paren_exprlist ::= */
   277,  /* (274) paren_exprlist ::= LP exprlist RP */
   185,  /* (275) cmd ::= createkw uniqueflag INDEX ifnotexists nm dbnm ON nm LP sortlist RP where_opt */
   281,  /* (276) uniqueflag ::= UNIQUE */
   281,  /* (277) uniqueflag ::= */
   222,  /* (278) eidlist_opt ::= */
   222,  /* (279) eidlist_opt ::= LP eidlist RP */
   232,  /* (280) eidlist ::= eidlist COMMA nm collate sortorder */
   232,  /* (281) eidlist ::= nm collate sortorder */
   282,  /* (282) collate ::= */
   282,  /* (283) collate ::= COLLATE ID|STRING */
   185,  /* (284) cmd ::= DROP INDEX ifexists fullname */
   185,  /* (285) cmd ::= VACUUM vinto */
   185,  /* (286) cmd ::= VACUUM nm vinto */
   283,  /* (287) vinto ::= INTO expr */
   283,  /* (288) vinto ::= */
   185,  /* (289) cmd ::= PRAGMA nm dbnm */
   185,  /* (290) cmd ::= PRAGMA nm dbnm EQ nmnum */
   185,  /* (291) cmd ::= PRAGMA nm dbnm LP nmnum RP */
   185,  /* (292) cmd ::= PRAGMA nm dbnm EQ minus_num */
   185,  /* (293) cmd ::= PRAGMA nm dbnm LP minus_num RP */
   286,  /* (294) plus_num ::= PLUS INTEGER|FLOAT */
   285,  /* (295) minus_num ::= MINUS INTEGER|FLOAT */
   185,  /* (296) cmd ::= createkw trigger_decl BEGIN trigger_cmd_list END */
   287,  /* (297) trigger_decl ::= temp TRIGGER ifnotexists nm dbnm trigger_time trigger_event ON fullname foreach_clause when_clause */
   289,  /* (298) trigger_time ::= BEFORE|AFTER */
   289,  /* (299) trigger_time ::= INSTEAD OF */
   289,  /* (300) trigger_time ::= */
   290,  /* (301) trigger_event ::= DELETE|INSERT */
   290,  /* (302) trigger_event ::= UPDATE */
   290,  /* (303) trigger_event ::= UPDATE OF idlist */
   292,  /* (304) when_clause ::= */
   292,  /* (305) when_clause ::= WHEN expr */
   288,  /* (306) trigger_cmd_list ::= trigger_cmd_list trigger_cmd SEMI */
   288,  /* (307) trigger_cmd_list ::= trigger_cmd SEMI */
   294,  /* (308) trnm ::= nm DOT nm */
   295,  /* (309) tridxby ::= INDEXED BY nm */
   295,  /* (310) tridxby ::= NOT INDEXED */
   293,  /* (311) trigger_cmd ::= UPDATE orconf trnm tridxby SET setlist from where_opt scanpt */
   293,  /* (312) trigger_cmd ::= scanpt insert_cmd INTO trnm idlist_opt select upsert scanpt */
   293,  /* (313) trigger_cmd ::= DELETE FROM trnm tridxby where_opt scanpt */
   293,  /* (314) trigger_cmd ::= scanpt select scanpt */
   218,  /* (315) expr ::= RAISE LP IGNORE RP */
   218,  /* (316) expr ::= RAISE LP raisetype COMMA expr RP */
   296,  /* (317) raisetype ::= ROLLBACK */
   296,  /* (318) raisetype ::= ABORT */
   296,  /* (319) raisetype ::= FAIL */
   185,  /* (320) cmd ::= DROP TRIGGER ifexists fullname */
   185,  /* (321) cmd ::= ATTACH database_kw_opt expr AS expr key_opt */
   185,  /* (322) cmd ::= DETACH database_kw_opt expr */
   298,  /* (323) key_opt ::= */
   298,  /* (324) key_opt ::= KEY expr */
   185,  /* (325) cmd ::= REINDEX */
   185,  /* (326) cmd ::= REINDEX nm dbnm */
   185,  /* (327) cmd ::= ANALYZE */
   185,  /* (328) cmd ::= ANALYZE nm dbnm */
   185,  /* (329) cmd ::= ALTER TABLE fullname RENAME TO nm */
   185,  /* (330) cmd ::= ALTER TABLE add_column_fullname ADD kwcolumn_opt columnname carglist */
   185,  /* (331) cmd ::= ALTER TABLE fullname DROP kwcolumn_opt nm */
   299,  /* (332) add_column_fullname ::= fullname */
   185,  /* (333) cmd ::= ALTER TABLE fullname RENAME kwcolumn_opt nm TO nm */
   185,  /* (334) cmd ::= create_vtab */
   185,  /* (335) cmd ::= create_vtab LP vtabarglist RP */
   302,  /* (336) create_vtab ::= createkw VIRTUAL TABLE ifnotexists nm dbnm USING nm */
   304,  /* (337) vtabarg ::= */
   305,  /* (338) vtabargtoken ::= ANY */
   305,  /* (339) vtabargtoken ::= lp anylist RP */
   306,  /* (340) lp ::= LP */
   266,  /* (341) with ::= WITH wqlist */
   266,  /* (342) with ::= WITH RECURSIVE wqlist */
   308,  /* (343) wqas ::= AS */
   308,  /* (344) wqas ::= AS MATERIALIZED */
   308,  /* (345) wqas ::= AS NOT MATERIALIZED */
   309,  /* (346) wqitem ::= withnm eidlist_opt wqas LP select RP */
   310,  /* (347) withnm ::= nm */
   238,  /* (348) wqlist ::= wqitem */
   238,  /* (349) wqlist ::= wqlist COMMA wqitem */
   311,  /* (350) windowdefn_list ::= windowdefn_list COMMA windowdefn */
   312,  /* (351) windowdefn ::= nm AS LP window RP */
   313,  /* (352) window ::= PARTITION BY nexprlist orderby_opt frame_opt */
   313,  /* (353) window ::= nm PARTITION BY nexprlist orderby_opt frame_opt */
   313,  /* (354) window ::= ORDER BY sortlist frame_opt */
   313,  /* (355) window ::= nm ORDER BY sortlist frame_opt */
   313,  /* (356) window ::= nm frame_opt */
   314,  /* (357) frame_opt ::= */
   314,  /* (358) frame_opt ::= range_or_rows frame_bound_s frame_exclude_opt */
   314,  /* (359) frame_opt ::= range_or_rows BETWEEN frame_bound_s AND frame_bound_e frame_exclude_opt */
   315,  /* (360) range_or_rows ::= RANGE|ROWS|GROUPS */
   316,  /* (361) frame_bound_s ::= frame_bound */
   316,  /* (362) frame_bound_s ::= UNBOUNDED PRECEDING */
   318,  /* (363) frame_bound_e ::= frame_bound */
   318,  /* (364) frame_bound_e ::= UNBOUNDED FOLLOWING */
   319,  /* (365) frame_bound ::= expr PRECEDING|FOLLOWING */
   319,  /* (366) frame_bound ::= CURRENT ROW */
   317,  /* (367) frame_exclude_opt ::= */
   317,  /* (368) frame_exclude_opt ::= EXCLUDE frame_exclude */
   320,  /* (369) frame_exclude ::= NO OTHERS */
   320,  /* (370) frame_exclude ::= CURRENT ROW */
   320,  /* (371) frame_exclude ::= GROUP|TIES */
   250,  /* (372) window_clause ::= WINDOW windowdefn_list */
   273,  /* (373) filter_over ::= filter_clause over_clause */
   273,  /* (374) filter_over ::= over_clause */
   273,  /* (375) filter_over ::= filter_clause */
   322,  /* (376) over_clause ::= OVER LP window RP */
   322,  /* (377) over_clause ::= OVER nm */
   321,  /* (378) filter_clause ::= FILTER LP WHERE expr RP */
   217,  /* (379) term ::= QNUMBER */
   323,  /* (380) input ::= cmdlist */
   324,  /* (381) cmdlist ::= cmdlist ecmd */
   324,  /* (382) cmdlist ::= ecmd */
   325,  /* (383) ecmd ::= SEMI */
   325,  /* (384) ecmd ::= cmdx SEMI */
   325,  /* (385) ecmd ::= explain cmdx SEMI */
   197,  /* (386) trans_opt ::= */
   197,  /* (387) trans_opt ::= TRANSACTION */
   197,  /* (388) trans_opt ::= TRANSACTION nm */
   199,  /* (389) savepoint_opt ::= SAVEPOINT */
   199,  /* (390) savepoint_opt ::= */
   185,  /* (391) cmd ::= create_table create_table_args */
   208,  /* (392) table_option_set ::= table_option */
   206,  /* (393) columnlist ::= columnlist COMMA columnname carglist */
   206,  /* (394) columnlist ::= columnname carglist */
   198,  /* (395) nm ::= ID|INDEXED|JOIN_KW */
   198,  /* (396) nm ::= STRING */
   211,  /* (397) typetoken ::= typename */
   212,  /* (398) typename ::= ID|STRING */
   213,  /* (399) signed ::= plus_num */
   213,  /* (400) signed ::= minus_num */
   301,  /* (401) carglist ::= carglist ccons */
   301,  /* (402) carglist ::= */
   216,  /* (403) ccons ::= NULL onconf */
   216,  /* (404) ccons ::= GENERATED ALWAYS AS generated */
   216,  /* (405) ccons ::= AS generated */
   207,  /* (406) conslist_opt ::= COMMA conslist */
   326,  /* (407) conslist ::= conslist tconscomma tcons */
   326,  /* (408) conslist ::= tcons */
   229,  /* (409) tconscomma ::= */
   233,  /* (410) defer_subclause_opt ::= defer_subclause */
   234,  /* (411) resolvetype ::= raisetype */
   239,  /* (412) selectnowith ::= oneselect */
   241,  /* (413) oneselect ::= values */
   254,  /* (414) sclp ::= selcollist COMMA */
   255,  /* (415) as ::= ID|STRING */
   264,  /* (416) indexed_opt ::= indexed_by */
   272,  /* (417) returning ::= */
   218,  /* (418) expr ::= term */
   274,  /* (419) likeop ::= LIKE_KW|MATCH */
   278,  /* (420) case_operand ::= expr */
   261,  /* (421) exprlist ::= nexprlist */
   284,  /* (422) nmnum ::= plus_num */
   284,  /* (423) nmnum ::= nm */
   284,  /* (424) nmnum ::= ON */
   284,  /* (425) nmnum ::= DELETE */
   284,  /* (426) nmnum ::= DEFAULT */
   286,  /* (427) plus_num ::= INTEGER|FLOAT */
   291,  /* (428) foreach_clause ::= */
   291,  /* (429) foreach_clause ::= FOR EACH ROW */
   294,  /* (430) trnm ::= nm */
   295,  /* (431) tridxby ::= */
   297,  /* (432) database_kw_opt ::= DATABASE */
   297,  /* (433) database_kw_opt ::= */
   300,  /* (434) kwcolumn_opt ::= */
   300,  /* (435) kwcolumn_opt ::= COLUMNKW */
   303,  /* (436) vtabarglist ::= vtabarg */
   303,  /* (437) vtabarglist ::= vtabarglist COMMA vtabarg */
   304,  /* (438) vtabarg ::= vtabarg vtabargtoken */
   307,  /* (439) anylist ::= */
   307,  /* (440) anylist ::= anylist LP anylist RP */
   307,  /* (441) anylist ::= anylist ANY */
   266,  /* (442) with ::= */
   311,  /* (443) windowdefn_list ::= windowdefn */
   313,  /* (444) window ::= frame_opt */
};

/* For rule J, yyRuleInfoNRhs[J] contains the negative of the number
** of symbols on the right-hand side of that rule. */
static const signed char yyRuleInfoNRhs[] = {
    0,  /* (0) pscantok ::= */
    0,  /* (1) sql_argument_list ::= */
   -1,  /* (2) sql_argument_list ::= sql_argument_list_nonempty */
   -1,  /* (3) sql_argument_type ::= ID */
   -6,  /* (4) sql_argument_type ::= ID LP ID DOT ID RP */
   -4,  /* (5) sql_variadic_argument_type ::= ID DOT DOT DOT */
   -4,  /* (6) sql_argument_list_nonempty ::= sql_argument_list_nonempty COMMA ID sql_argument_type */
   -2,  /* (7) sql_argument_list_nonempty ::= ID sql_argument_type */
   -4,  /* (8) sql_argument_list_nonempty ::= sql_argument_list_nonempty COMMA ID sql_variadic_argument_type */
   -2,  /* (9) sql_argument_list_nonempty ::= ID sql_variadic_argument_type */
    0,  /* (10) table_schema ::= */
   -3,  /* (11) table_schema ::= LP sql_argument_list_nonempty RP */
    0,  /* (12) or_replace ::= */
   -2,  /* (13) or_replace ::= OR REPLACE */
  -13,  /* (14) cmd ::= CREATE or_replace PERFETTO FUNCTION ID LP sql_argument_list RP RETURNS return_type AS select pscantok */
  -14,  /* (15) cmd ::= CREATE or_replace PERFETTO FUNCTION ID LP sql_argument_list RP RETURNS return_type DELEGATES TO ID pscantok */
   -1,  /* (16) return_type ::= ID */
   -4,  /* (17) return_type ::= TABLE LP sql_argument_list_nonempty RP */
    0,  /* (18) table_impl ::= */
   -2,  /* (19) table_impl ::= USING ID */
  -10,  /* (20) cmd ::= CREATE or_replace PERFETTO TABLE ID table_impl table_schema AS select pscantok */
   -9,  /* (21) cmd ::= CREATE or_replace PERFETTO VIEW ID table_schema AS select pscantok */
  -10,  /* (22) cmd ::= CREATE or_replace PERFETTO INDEX ID ON ID LP indexed_column_list RP */
   -3,  /* (23) indexed_column_list ::= indexed_column_list COMMA ID */
   -1,  /* (24) indexed_column_list ::= ID */
  -13,  /* (25) cmd ::= CREATE or_replace PERFETTO MACRO ID LP macro_argument_list RP RETURNS ID AS macro_body pscantok */
   -4,  /* (26) macro_argument_list_nonempty ::= macro_argument_list_nonempty COMMA ID ID */
   -2,  /* (27) macro_argument_list_nonempty ::= ID ID */
    0,  /* (28) macro_argument_list ::= */
   -1,  /* (29) macro_argument_list ::= macro_argument_list_nonempty */
   -4,  /* (30) cmd ::= INCLUDE PERFETTO MODULE module_name */
   -1,  /* (31) module_name ::= ID|STAR|INTERSECT */
   -3,  /* (32) module_name ::= module_name DOT ID|STAR|INTERSECT */
   -6,  /* (33) cmd ::= DROP PERFETTO INDEX ID ON ID */
   -1,  /* (34) macro_body ::= ANY */
   -2,  /* (35) macro_body ::= macro_body ANY */
   -1,  /* (36) explain ::= EXPLAIN */
   -3,  /* (37) explain ::= EXPLAIN QUERY PLAN */
   -1,  /* (38) cmdx ::= cmd */
   -3,  /* (39) cmd ::= BEGIN transtype trans_opt */
    0,  /* (40) transtype ::= */
   -1,  /* (41) transtype ::= DEFERRED */
   -1,  /* (42) transtype ::= IMMEDIATE */
   -1,  /* (43) transtype ::= EXCLUSIVE */
   -2,  /* (44) cmd ::= COMMIT|END trans_opt */
   -2,  /* (45) cmd ::= ROLLBACK trans_opt */
   -2,  /* (46) cmd ::= SAVEPOINT nm */
   -3,  /* (47) cmd ::= RELEASE savepoint_opt nm */
   -5,  /* (48) cmd ::= ROLLBACK trans_opt TO savepoint_opt nm */
   -6,  /* (49) create_table ::= createkw temp TABLE ifnotexists nm dbnm */
   -1,  /* (50) createkw ::= CREATE */
    0,  /* (51) ifnotexists ::= */
   -3,  /* (52) ifnotexists ::= IF NOT EXISTS */
   -1,  /* (53) temp ::= TEMP */
    0,  /* (54) temp ::= */
   -5,  /* (55) create_table_args ::= LP columnlist conslist_opt RP table_option_set */
   -2,  /* (56) create_table_args ::= AS select */
    0,  /* (57) table_option_set ::= */
   -3,  /* (58) table_option_set ::= table_option_set COMMA table_option */
   -2,  /* (59) table_option ::= WITHOUT nm */
   -1,  /* (60) table_option ::= nm */
   -2,  /* (61) columnname ::= nm typetoken */
    0,  /* (62) typetoken ::= */
   -4,  /* (63) typetoken ::= typename LP signed RP */
   -6,  /* (64) typetoken ::= typename LP signed COMMA signed RP */
   -2,  /* (65) typename ::= typename ID|STRING */
    0,  /* (66) scanpt ::= */
    0,  /* (67) scantok ::= */
   -2,  /* (68) ccons ::= CONSTRAINT nm */
   -3,  /* (69) ccons ::= DEFAULT scantok term */
   -4,  /* (70) ccons ::= DEFAULT LP expr RP */
   -4,  /* (71) ccons ::= DEFAULT PLUS scantok term */
   -4,  /* (72) ccons ::= DEFAULT MINUS scantok term */
   -3,  /* (73) ccons ::= DEFAULT scantok ID|INDEXED */
   -3,  /* (74) ccons ::= NOT NULL onconf */
   -5,  /* (75) ccons ::= PRIMARY KEY sortorder onconf autoinc */
   -2,  /* (76) ccons ::= UNIQUE onconf */
   -4,  /* (77) ccons ::= CHECK LP expr RP */
   -4,  /* (78) ccons ::= REFERENCES nm eidlist_opt refargs */
   -1,  /* (79) ccons ::= defer_subclause */
   -2,  /* (80) ccons ::= COLLATE ID|STRING */
   -3,  /* (81) generated ::= LP expr RP */
   -4,  /* (82) generated ::= LP expr RP ID */
    0,  /* (83) autoinc ::= */
   -1,  /* (84) autoinc ::= AUTOINCR */
    0,  /* (85) refargs ::= */
   -2,  /* (86) refargs ::= refargs refarg */
   -2,  /* (87) refarg ::= MATCH nm */
   -3,  /* (88) refarg ::= ON INSERT refact */
   -3,  /* (89) refarg ::= ON DELETE refact */
   -3,  /* (90) refarg ::= ON UPDATE refact */
   -2,  /* (91) refact ::= SET NULL */
   -2,  /* (92) refact ::= SET DEFAULT */
   -1,  /* (93) refact ::= CASCADE */
   -1,  /* (94) refact ::= RESTRICT */
   -2,  /* (95) refact ::= NO ACTION */
   -3,  /* (96) defer_subclause ::= NOT DEFERRABLE init_deferred_pred_opt */
   -2,  /* (97) defer_subclause ::= DEFERRABLE init_deferred_pred_opt */
    0,  /* (98) init_deferred_pred_opt ::= */
   -2,  /* (99) init_deferred_pred_opt ::= INITIALLY DEFERRED */
   -2,  /* (100) init_deferred_pred_opt ::= INITIALLY IMMEDIATE */
    0,  /* (101) conslist_opt ::= */
   -1,  /* (102) tconscomma ::= COMMA */
   -2,  /* (103) tcons ::= CONSTRAINT nm */
   -7,  /* (104) tcons ::= PRIMARY KEY LP sortlist autoinc RP onconf */
   -5,  /* (105) tcons ::= UNIQUE LP sortlist RP onconf */
   -5,  /* (106) tcons ::= CHECK LP expr RP onconf */
  -10,  /* (107) tcons ::= FOREIGN KEY LP eidlist RP REFERENCES nm eidlist_opt refargs defer_subclause_opt */
    0,  /* (108) defer_subclause_opt ::= */
    0,  /* (109) onconf ::= */
   -3,  /* (110) onconf ::= ON CONFLICT resolvetype */
    0,  /* (111) orconf ::= */
   -2,  /* (112) orconf ::= OR resolvetype */
   -1,  /* (113) resolvetype ::= IGNORE */
   -1,  /* (114) resolvetype ::= REPLACE */
   -4,  /* (115) cmd ::= DROP TABLE ifexists fullname */
   -2,  /* (116) ifexists ::= IF EXISTS */
    0,  /* (117) ifexists ::= */
   -9,  /* (118) cmd ::= createkw temp VIEW ifnotexists nm dbnm eidlist_opt AS select */
   -4,  /* (119) cmd ::= DROP VIEW ifexists fullname */
   -1,  /* (120) cmd ::= select */
   -3,  /* (121) select ::= WITH wqlist selectnowith */
   -4,  /* (122) select ::= WITH RECURSIVE wqlist selectnowith */
   -1,  /* (123) select ::= selectnowith */
   -3,  /* (124) selectnowith ::= selectnowith multiselect_op oneselect */
   -1,  /* (125) multiselect_op ::= UNION */
   -2,  /* (126) multiselect_op ::= UNION ALL */
   -1,  /* (127) multiselect_op ::= EXCEPT|INTERSECT */
   -9,  /* (128) oneselect ::= SELECT distinct selcollist from where_opt groupby_opt having_opt orderby_opt limit_opt */
  -10,  /* (129) oneselect ::= SELECT distinct selcollist from where_opt groupby_opt having_opt window_clause orderby_opt limit_opt */
   -4,  /* (130) values ::= VALUES LP nexprlist RP */
   -1,  /* (131) oneselect ::= mvalues */
   -5,  /* (132) mvalues ::= values COMMA LP nexprlist RP */
   -5,  /* (133) mvalues ::= mvalues COMMA LP nexprlist RP */
   -1,  /* (134) distinct ::= DISTINCT */
   -1,  /* (135) distinct ::= ALL */
    0,  /* (136) distinct ::= */
    0,  /* (137) sclp ::= */
   -5,  /* (138) selcollist ::= sclp scanpt expr scanpt as */
   -3,  /* (139) selcollist ::= sclp scanpt STAR */
   -5,  /* (140) selcollist ::= sclp scanpt nm DOT STAR */
   -2,  /* (141) as ::= AS nm */
    0,  /* (142) as ::= */
    0,  /* (143) from ::= */
   -2,  /* (144) from ::= FROM seltablist */
   -2,  /* (145) stl_prefix ::= seltablist joinop */
    0,  /* (146) stl_prefix ::= */
   -5,  /* (147) seltablist ::= stl_prefix nm dbnm as on_using */
   -6,  /* (148) seltablist ::= stl_prefix nm dbnm as indexed_by on_using */
   -8,  /* (149) seltablist ::= stl_prefix nm dbnm LP exprlist RP as on_using */
   -6,  /* (150) seltablist ::= stl_prefix LP select RP as on_using */
   -6,  /* (151) seltablist ::= stl_prefix LP seltablist RP as on_using */
    0,  /* (152) dbnm ::= */
   -2,  /* (153) dbnm ::= DOT nm */
   -1,  /* (154) fullname ::= nm */
   -3,  /* (155) fullname ::= nm DOT nm */
   -1,  /* (156) xfullname ::= nm */
   -3,  /* (157) xfullname ::= nm DOT nm */
   -5,  /* (158) xfullname ::= nm DOT nm AS nm */
   -3,  /* (159) xfullname ::= nm AS nm */
   -1,  /* (160) joinop ::= COMMA|JOIN */
   -2,  /* (161) joinop ::= JOIN_KW JOIN */
   -3,  /* (162) joinop ::= JOIN_KW nm JOIN */
   -4,  /* (163) joinop ::= JOIN_KW nm nm JOIN */
   -2,  /* (164) on_using ::= ON expr */
   -4,  /* (165) on_using ::= USING LP idlist RP */
    0,  /* (166) on_using ::= */
    0,  /* (167) indexed_opt ::= */
   -3,  /* (168) indexed_by ::= INDEXED BY nm */
   -2,  /* (169) indexed_by ::= NOT INDEXED */
    0,  /* (170) orderby_opt ::= */
   -3,  /* (171) orderby_opt ::= ORDER BY sortlist */
   -5,  /* (172) sortlist ::= sortlist COMMA expr sortorder nulls */
   -3,  /* (173) sortlist ::= expr sortorder nulls */
   -1,  /* (174) sortorder ::= ASC */
   -1,  /* (175) sortorder ::= DESC */
    0,  /* (176) sortorder ::= */
   -2,  /* (177) nulls ::= NULLS FIRST */
   -2,  /* (178) nulls ::= NULLS LAST */
    0,  /* (179) nulls ::= */
    0,  /* (180) groupby_opt ::= */
   -3,  /* (181) groupby_opt ::= GROUP BY nexprlist */
    0,  /* (182) having_opt ::= */
   -2,  /* (183) having_opt ::= HAVING expr */
    0,  /* (184) limit_opt ::= */
   -2,  /* (185) limit_opt ::= LIMIT expr */
   -4,  /* (186) limit_opt ::= LIMIT expr OFFSET expr */
   -4,  /* (187) limit_opt ::= LIMIT expr COMMA expr */
   -6,  /* (188) cmd ::= with DELETE FROM xfullname indexed_opt where_opt_ret */
    0,  /* (189) where_opt ::= */
   -2,  /* (190) where_opt ::= WHERE expr */
    0,  /* (191) where_opt_ret ::= */
   -2,  /* (192) where_opt_ret ::= WHERE expr */
   -2,  /* (193) where_opt_ret ::= RETURNING selcollist */
   -4,  /* (194) where_opt_ret ::= WHERE expr RETURNING selcollist */
   -9,  /* (195) cmd ::= with UPDATE orconf xfullname indexed_opt SET setlist from where_opt_ret */
   -5,  /* (196) setlist ::= setlist COMMA nm EQ expr */
   -7,  /* (197) setlist ::= setlist COMMA LP idlist RP EQ expr */
   -3,  /* (198) setlist ::= nm EQ expr */
   -5,  /* (199) setlist ::= LP idlist RP EQ expr */
   -7,  /* (200) cmd ::= with insert_cmd INTO xfullname idlist_opt select upsert */
   -8,  /* (201) cmd ::= with insert_cmd INTO xfullname idlist_opt DEFAULT VALUES returning */
    0,  /* (202) upsert ::= */
   -2,  /* (203) upsert ::= RETURNING selcollist */
  -12,  /* (204) upsert ::= ON CONFLICT LP sortlist RP where_opt DO UPDATE SET setlist where_opt upsert */
   -9,  /* (205) upsert ::= ON CONFLICT LP sortlist RP where_opt DO NOTHING upsert */
   -5,  /* (206) upsert ::= ON CONFLICT DO NOTHING returning */
   -8,  /* (207) upsert ::= ON CONFLICT DO UPDATE SET setlist where_opt returning */
   -2,  /* (208) returning ::= RETURNING selcollist */
   -2,  /* (209) insert_cmd ::= INSERT orconf */
   -1,  /* (210) insert_cmd ::= REPLACE */
    0,  /* (211) idlist_opt ::= */
   -3,  /* (212) idlist_opt ::= LP idlist RP */
   -3,  /* (213) idlist ::= idlist COMMA nm */
   -1,  /* (214) idlist ::= nm */
   -3,  /* (215) expr ::= LP expr RP */
   -1,  /* (216) expr ::= ID|INDEXED|JOIN_KW */
   -3,  /* (217) expr ::= nm DOT nm */
   -5,  /* (218) expr ::= nm DOT nm DOT nm */
   -1,  /* (219) term ::= NULL|FLOAT|BLOB */
   -1,  /* (220) term ::= STRING */
   -1,  /* (221) term ::= INTEGER */
   -1,  /* (222) expr ::= VARIABLE */
   -3,  /* (223) expr ::= expr COLLATE ID|STRING */
   -6,  /* (224) expr ::= CAST LP expr AS typetoken RP */
   -5,  /* (225) expr ::= ID|INDEXED|JOIN_KW LP distinct exprlist RP */
   -8,  /* (226) expr ::= ID|INDEXED|JOIN_KW LP distinct exprlist ORDER BY sortlist RP */
   -4,  /* (227) expr ::= ID|INDEXED|JOIN_KW LP STAR RP */
   -6,  /* (228) expr ::= ID|INDEXED|JOIN_KW LP distinct exprlist RP filter_over */
   -9,  /* (229) expr ::= ID|INDEXED|JOIN_KW LP distinct exprlist ORDER BY sortlist RP filter_over */
   -5,  /* (230) expr ::= ID|INDEXED|JOIN_KW LP STAR RP filter_over */
   -1,  /* (231) term ::= CTIME_KW */
   -5,  /* (232) expr ::= LP nexprlist COMMA expr RP */
   -3,  /* (233) expr ::= expr AND expr */
   -3,  /* (234) expr ::= expr OR expr */
   -3,  /* (235) expr ::= expr LT|GT|GE|LE expr */
   -3,  /* (236) expr ::= expr EQ|NE expr */
   -3,  /* (237) expr ::= expr BITAND|BITOR|LSHIFT|RSHIFT expr */
   -3,  /* (238) expr ::= expr PLUS|MINUS expr */
   -3,  /* (239) expr ::= expr STAR|SLASH|REM expr */
   -3,  /* (240) expr ::= expr CONCAT expr */
   -2,  /* (241) likeop ::= NOT LIKE_KW|MATCH */
   -3,  /* (242) expr ::= expr likeop expr */
   -5,  /* (243) expr ::= expr likeop expr ESCAPE expr */
   -2,  /* (244) expr ::= expr ISNULL|NOTNULL */
   -3,  /* (245) expr ::= expr NOT NULL */
   -3,  /* (246) expr ::= expr IS expr */
   -4,  /* (247) expr ::= expr IS NOT expr */
   -6,  /* (248) expr ::= expr IS NOT DISTINCT FROM expr */
   -5,  /* (249) expr ::= expr IS DISTINCT FROM expr */
   -2,  /* (250) expr ::= NOT expr */
   -2,  /* (251) expr ::= BITNOT expr */
   -2,  /* (252) expr ::= PLUS|MINUS expr */
   -3,  /* (253) expr ::= expr PTR expr */
   -1,  /* (254) between_op ::= BETWEEN */
   -2,  /* (255) between_op ::= NOT BETWEEN */
   -5,  /* (256) expr ::= expr between_op expr AND expr */
   -1,  /* (257) in_op ::= IN */
   -2,  /* (258) in_op ::= NOT IN */
   -5,  /* (259) expr ::= expr in_op LP exprlist RP */
   -3,  /* (260) expr ::= LP select RP */
   -5,  /* (261) expr ::= expr in_op LP select RP */
   -5,  /* (262) expr ::= expr in_op nm dbnm paren_exprlist */
   -4,  /* (263) expr ::= EXISTS LP select RP */
   -5,  /* (264) expr ::= CASE case_operand case_exprlist case_else END */
   -5,  /* (265) case_exprlist ::= case_exprlist WHEN expr THEN expr */
   -4,  /* (266) case_exprlist ::= WHEN expr THEN expr */
   -2,  /* (267) case_else ::= ELSE expr */
    0,  /* (268) case_else ::= */
    0,  /* (269) case_operand ::= */
    0,  /* (270) exprlist ::= */
   -3,  /* (271) nexprlist ::= nexprlist COMMA expr */
   -1,  /* (272) nexprlist ::= expr */
    0,  /* (273) paren_exprlist ::= */
   -3,  /* (274) paren_exprlist ::= LP exprlist RP */
  -12,  /* (275) cmd ::= createkw uniqueflag INDEX ifnotexists nm dbnm ON nm LP sortlist RP where_opt */
   -1,  /* (276) uniqueflag ::= UNIQUE */
    0,  /* (277) uniqueflag ::= */
    0,  /* (278) eidlist_opt ::= */
   -3,  /* (279) eidlist_opt ::= LP eidlist RP */
   -5,  /* (280) eidlist ::= eidlist COMMA nm collate sortorder */
   -3,  /* (281) eidlist ::= nm collate sortorder */
    0,  /* (282) collate ::= */
   -2,  /* (283) collate ::= COLLATE ID|STRING */
   -4,  /* (284) cmd ::= DROP INDEX ifexists fullname */
   -2,  /* (285) cmd ::= VACUUM vinto */
   -3,  /* (286) cmd ::= VACUUM nm vinto */
   -2,  /* (287) vinto ::= INTO expr */
    0,  /* (288) vinto ::= */
   -3,  /* (289) cmd ::= PRAGMA nm dbnm */
   -5,  /* (290) cmd ::= PRAGMA nm dbnm EQ nmnum */
   -6,  /* (291) cmd ::= PRAGMA nm dbnm LP nmnum RP */
   -5,  /* (292) cmd ::= PRAGMA nm dbnm EQ minus_num */
   -6,  /* (293) cmd ::= PRAGMA nm dbnm LP minus_num RP */
   -2,  /* (294) plus_num ::= PLUS INTEGER|FLOAT */
   -2,  /* (295) minus_num ::= MINUS INTEGER|FLOAT */
   -5,  /* (296) cmd ::= createkw trigger_decl BEGIN trigger_cmd_list END */
  -11,  /* (297) trigger_decl ::= temp TRIGGER ifnotexists nm dbnm trigger_time trigger_event ON fullname foreach_clause when_clause */
   -1,  /* (298) trigger_time ::= BEFORE|AFTER */
   -2,  /* (299) trigger_time ::= INSTEAD OF */
    0,  /* (300) trigger_time ::= */
   -1,  /* (301) trigger_event ::= DELETE|INSERT */
   -1,  /* (302) trigger_event ::= UPDATE */
   -3,  /* (303) trigger_event ::= UPDATE OF idlist */
    0,  /* (304) when_clause ::= */
   -2,  /* (305) when_clause ::= WHEN expr */
   -3,  /* (306) trigger_cmd_list ::= trigger_cmd_list trigger_cmd SEMI */
   -2,  /* (307) trigger_cmd_list ::= trigger_cmd SEMI */
   -3,  /* (308) trnm ::= nm DOT nm */
   -3,  /* (309) tridxby ::= INDEXED BY nm */
   -2,  /* (310) tridxby ::= NOT INDEXED */
   -9,  /* (311) trigger_cmd ::= UPDATE orconf trnm tridxby SET setlist from where_opt scanpt */
   -8,  /* (312) trigger_cmd ::= scanpt insert_cmd INTO trnm idlist_opt select upsert scanpt */
   -6,  /* (313) trigger_cmd ::= DELETE FROM trnm tridxby where_opt scanpt */
   -3,  /* (314) trigger_cmd ::= scanpt select scanpt */
   -4,  /* (315) expr ::= RAISE LP IGNORE RP */
   -6,  /* (316) expr ::= RAISE LP raisetype COMMA expr RP */
   -1,  /* (317) raisetype ::= ROLLBACK */
   -1,  /* (318) raisetype ::= ABORT */
   -1,  /* (319) raisetype ::= FAIL */
   -4,  /* (320) cmd ::= DROP TRIGGER ifexists fullname */
   -6,  /* (321) cmd ::= ATTACH database_kw_opt expr AS expr key_opt */
   -3,  /* (322) cmd ::= DETACH database_kw_opt expr */
    0,  /* (323) key_opt ::= */
   -2,  /* (324) key_opt ::= KEY expr */
   -1,  /* (325) cmd ::= REINDEX */
   -3,  /* (326) cmd ::= REINDEX nm dbnm */
   -1,  /* (327) cmd ::= ANALYZE */
   -3,  /* (328) cmd ::= ANALYZE nm dbnm */
   -6,  /* (329) cmd ::= ALTER TABLE fullname RENAME TO nm */
   -7,  /* (330) cmd ::= ALTER TABLE add_column_fullname ADD kwcolumn_opt columnname carglist */
   -6,  /* (331) cmd ::= ALTER TABLE fullname DROP kwcolumn_opt nm */
   -1,  /* (332) add_column_fullname ::= fullname */
   -8,  /* (333) cmd ::= ALTER TABLE fullname RENAME kwcolumn_opt nm TO nm */
   -1,  /* (334) cmd ::= create_vtab */
   -4,  /* (335) cmd ::= create_vtab LP vtabarglist RP */
   -8,  /* (336) create_vtab ::= createkw VIRTUAL TABLE ifnotexists nm dbnm USING nm */
    0,  /* (337) vtabarg ::= */
   -1,  /* (338) vtabargtoken ::= ANY */
   -3,  /* (339) vtabargtoken ::= lp anylist RP */
   -1,  /* (340) lp ::= LP */
   -2,  /* (341) with ::= WITH wqlist */
   -3,  /* (342) with ::= WITH RECURSIVE wqlist */
   -1,  /* (343) wqas ::= AS */
   -2,  /* (344) wqas ::= AS MATERIALIZED */
   -3,  /* (345) wqas ::= AS NOT MATERIALIZED */
   -6,  /* (346) wqitem ::= withnm eidlist_opt wqas LP select RP */
   -1,  /* (347) withnm ::= nm */
   -1,  /* (348) wqlist ::= wqitem */
   -3,  /* (349) wqlist ::= wqlist COMMA wqitem */
   -3,  /* (350) windowdefn_list ::= windowdefn_list COMMA windowdefn */
   -5,  /* (351) windowdefn ::= nm AS LP window RP */
   -5,  /* (352) window ::= PARTITION BY nexprlist orderby_opt frame_opt */
   -6,  /* (353) window ::= nm PARTITION BY nexprlist orderby_opt frame_opt */
   -4,  /* (354) window ::= ORDER BY sortlist frame_opt */
   -5,  /* (355) window ::= nm ORDER BY sortlist frame_opt */
   -2,  /* (356) window ::= nm frame_opt */
    0,  /* (357) frame_opt ::= */
   -3,  /* (358) frame_opt ::= range_or_rows frame_bound_s frame_exclude_opt */
   -6,  /* (359) frame_opt ::= range_or_rows BETWEEN frame_bound_s AND frame_bound_e frame_exclude_opt */
   -1,  /* (360) range_or_rows ::= RANGE|ROWS|GROUPS */
   -1,  /* (361) frame_bound_s ::= frame_bound */
   -2,  /* (362) frame_bound_s ::= UNBOUNDED PRECEDING */
   -1,  /* (363) frame_bound_e ::= frame_bound */
   -2,  /* (364) frame_bound_e ::= UNBOUNDED FOLLOWING */
   -2,  /* (365) frame_bound ::= expr PRECEDING|FOLLOWING */
   -2,  /* (366) frame_bound ::= CURRENT ROW */
    0,  /* (367) frame_exclude_opt ::= */
   -2,  /* (368) frame_exclude_opt ::= EXCLUDE frame_exclude */
   -2,  /* (369) frame_exclude ::= NO OTHERS */
   -2,  /* (370) frame_exclude ::= CURRENT ROW */
   -1,  /* (371) frame_exclude ::= GROUP|TIES */
   -2,  /* (372) window_clause ::= WINDOW windowdefn_list */
   -2,  /* (373) filter_over ::= filter_clause over_clause */
   -1,  /* (374) filter_over ::= over_clause */
   -1,  /* (375) filter_over ::= filter_clause */
   -4,  /* (376) over_clause ::= OVER LP window RP */
   -2,  /* (377) over_clause ::= OVER nm */
   -5,  /* (378) filter_clause ::= FILTER LP WHERE expr RP */
   -1,  /* (379) term ::= QNUMBER */
   -1,  /* (380) input ::= cmdlist */
   -2,  /* (381) cmdlist ::= cmdlist ecmd */
   -1,  /* (382) cmdlist ::= ecmd */
   -1,  /* (383) ecmd ::= SEMI */
   -2,  /* (384) ecmd ::= cmdx SEMI */
   -3,  /* (385) ecmd ::= explain cmdx SEMI */
    0,  /* (386) trans_opt ::= */
   -1,  /* (387) trans_opt ::= TRANSACTION */
   -2,  /* (388) trans_opt ::= TRANSACTION nm */
   -1,  /* (389) savepoint_opt ::= SAVEPOINT */
    0,  /* (390) savepoint_opt ::= */
   -2,  /* (391) cmd ::= create_table create_table_args */
   -1,  /* (392) table_option_set ::= table_option */
   -4,  /* (393) columnlist ::= columnlist COMMA columnname carglist */
   -2,  /* (394) columnlist ::= columnname carglist */
   -1,  /* (395) nm ::= ID|INDEXED|JOIN_KW */
   -1,  /* (396) nm ::= STRING */
   -1,  /* (397) typetoken ::= typename */
   -1,  /* (398) typename ::= ID|STRING */
   -1,  /* (399) signed ::= plus_num */
   -1,  /* (400) signed ::= minus_num */
   -2,  /* (401) carglist ::= carglist ccons */
    0,  /* (402) carglist ::= */
   -2,  /* (403) ccons ::= NULL onconf */
   -4,  /* (404) ccons ::= GENERATED ALWAYS AS generated */
   -2,  /* (405) ccons ::= AS generated */
   -2,  /* (406) conslist_opt ::= COMMA conslist */
   -3,  /* (407) conslist ::= conslist tconscomma tcons */
   -1,  /* (408) conslist ::= tcons */
    0,  /* (409) tconscomma ::= */
   -1,  /* (410) defer_subclause_opt ::= defer_subclause */
   -1,  /* (411) resolvetype ::= raisetype */
   -1,  /* (412) selectnowith ::= oneselect */
   -1,  /* (413) oneselect ::= values */
   -2,  /* (414) sclp ::= selcollist COMMA */
   -1,  /* (415) as ::= ID|STRING */
   -1,  /* (416) indexed_opt ::= indexed_by */
    0,  /* (417) returning ::= */
   -1,  /* (418) expr ::= term */
   -1,  /* (419) likeop ::= LIKE_KW|MATCH */
   -1,  /* (420) case_operand ::= expr */
   -1,  /* (421) exprlist ::= nexprlist */
   -1,  /* (422) nmnum ::= plus_num */
   -1,  /* (423) nmnum ::= nm */
   -1,  /* (424) nmnum ::= ON */
   -1,  /* (425) nmnum ::= DELETE */
   -1,  /* (426) nmnum ::= DEFAULT */
   -1,  /* (427) plus_num ::= INTEGER|FLOAT */
    0,  /* (428) foreach_clause ::= */
   -3,  /* (429) foreach_clause ::= FOR EACH ROW */
   -1,  /* (430) trnm ::= nm */
    0,  /* (431) tridxby ::= */
   -1,  /* (432) database_kw_opt ::= DATABASE */
    0,  /* (433) database_kw_opt ::= */
    0,  /* (434) kwcolumn_opt ::= */
   -1,  /* (435) kwcolumn_opt ::= COLUMNKW */
   -1,  /* (436) vtabarglist ::= vtabarg */
   -3,  /* (437) vtabarglist ::= vtabarglist COMMA vtabarg */
   -2,  /* (438) vtabarg ::= vtabarg vtabargtoken */
    0,  /* (439) anylist ::= */
   -4,  /* (440) anylist ::= anylist LP anylist RP */
   -2,  /* (441) anylist ::= anylist ANY */
    0,  /* (442) with ::= */
   -1,  /* (443) windowdefn_list ::= windowdefn */
   -1,  /* (444) window ::= frame_opt */
};

static void yy_accept(yyParser*);  /* Forward Declaration */

/*
** Perform a reduce action and the shift that must immediately
** follow the reduce.
**
** The yyLookahead and yyLookaheadToken parameters provide reduce actions
** access to the lookahead token (if any).  The yyLookahead will be YYNOCODE
** if the lookahead token has already been consumed.  As this procedure is
** only called from one place, optimizing compilers will in-line it, which
** means that the extra parameters have no performance impact.
*/
static YYACTIONTYPE yy_reduce(
  yyParser *yypParser,         /* The parser */
  unsigned int yyruleno,       /* Number of the rule by which to reduce */
  int yyLookahead,             /* Lookahead token, or YYNOCODE if none */
  PerfettoSqlParseTOKENTYPE yyLookaheadToken  /* Value of the lookahead token */
  PerfettoSqlParseCTX_PDECL                   /* %extra_context */
){
  int yygoto;                     /* The next state */
  YYACTIONTYPE yyact;             /* The next action */
  yyStackEntry *yymsp;            /* The top of the parser's stack */
  int yysize;                     /* Amount to pop the stack */
  PerfettoSqlParseARG_FETCH
  (void)yyLookahead;
  (void)yyLookaheadToken;
  yymsp = yypParser->yytos;

  switch( yyruleno ){
  /* Beginning here are the reduction cases.  A typical example
  ** follows:
  **   case 0:
  **  #line <lineno> <grammarfile>
  **     { ... }           // User supplied code
  **  #line <lineno> <thisfile>
  **     break;
  */
/********** Begin reduce actions **********************************************/
        YYMINORTYPE yylhsminor;
      case 0: /* pscantok ::= */
{
  assert( yyLookahead!=YYNOCODE );
  yymsp[1].minor.yy0 = yyLookaheadToken;
}
        break;
      case 1: /* sql_argument_list ::= */
      case 10: /* table_schema ::= */ yytestcase(yyruleno==10);
{ yymsp[1].minor.yy640 = 0; }
        break;
      case 2: /* sql_argument_list ::= sql_argument_list_nonempty */
{ yylhsminor.yy640 = yymsp[0].minor.yy640; }
  yymsp[0].minor.yy640 = yylhsminor.yy640;
        break;
      case 3: /* sql_argument_type ::= ID */
{ yylhsminor.yy0 = yymsp[0].minor.yy0; }
  yymsp[0].minor.yy0 = yylhsminor.yy0;
        break;
      case 4: /* sql_argument_type ::= ID LP ID DOT ID RP */
{ yylhsminor.yy0 = yymsp[-5].minor.yy0; }
  yymsp[-5].minor.yy0 = yylhsminor.yy0;
        break;
      case 5: /* sql_variadic_argument_type ::= ID DOT DOT DOT */
{ yylhsminor.yy0 = yymsp[-3].minor.yy0; }
  yymsp[-3].minor.yy0 = yylhsminor.yy0;
        break;
      case 6: /* sql_argument_list_nonempty ::= sql_argument_list_nonempty COMMA ID sql_argument_type */
{
  yylhsminor.yy640 = OnPerfettoSqlCreateOrAppendArgument(state, yymsp[-3].minor.yy640, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, 0);
}
  yymsp[-3].minor.yy640 = yylhsminor.yy640;
        break;
      case 7: /* sql_argument_list_nonempty ::= ID sql_argument_type */
{
  yylhsminor.yy640 = OnPerfettoSqlCreateOrAppendArgument(state, 0, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, 0);
}
  yymsp[-1].minor.yy640 = yylhsminor.yy640;
        break;
      case 8: /* sql_argument_list_nonempty ::= sql_argument_list_nonempty COMMA ID sql_variadic_argument_type */
{
  yylhsminor.yy640 = OnPerfettoSqlCreateOrAppendArgument(state, yymsp[-3].minor.yy640, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, 1);
}
  yymsp[-3].minor.yy640 = yylhsminor.yy640;
        break;
      case 9: /* sql_argument_list_nonempty ::= ID sql_variadic_argument_type */
{
  yylhsminor.yy640 = OnPerfettoSqlCreateOrAppendArgument(state, 0, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, 1);
}
  yymsp[-1].minor.yy640 = yylhsminor.yy640;
        break;
      case 11: /* table_schema ::= LP sql_argument_list_nonempty RP */
{ yymsp[-2].minor.yy640 = yymsp[-1].minor.yy640; }
        break;
      case 12: /* or_replace ::= */
{ yymsp[1].minor.yy52 = 0; }
        break;
      case 13: /* or_replace ::= OR REPLACE */
{ yymsp[-1].minor.yy52 = 1; }
        break;
      case 14: /* cmd ::= CREATE or_replace PERFETTO FUNCTION ID LP sql_argument_list RP RETURNS return_type AS select pscantok */
{
  OnPerfettoSqlCreateFunction(state, yymsp[-11].minor.yy52, &yymsp[-8].minor.yy0, yymsp[-6].minor.yy640, yymsp[-3].minor.yy171, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0);
}
        break;
      case 15: /* cmd ::= CREATE or_replace PERFETTO FUNCTION ID LP sql_argument_list RP RETURNS return_type DELEGATES TO ID pscantok */
{
  OnPerfettoSqlCreateDelegatingFunction(state, yymsp[-12].minor.yy52, &yymsp[-9].minor.yy0, yymsp[-7].minor.yy640, yymsp[-4].minor.yy171, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0);
}
        break;
      case 16: /* return_type ::= ID */
{
  yylhsminor.yy171 = OnPerfettoSqlCreateScalarReturnType(&yymsp[0].minor.yy0);
}
  yymsp[0].minor.yy171 = yylhsminor.yy171;
        break;
      case 17: /* return_type ::= TABLE LP sql_argument_list_nonempty RP */
{
  yymsp[-3].minor.yy171 = OnPerfettoSqlCreateTableReturnType(yymsp[-1].minor.yy640);
}
        break;
      case 18: /* table_impl ::= */
{
  yymsp[1].minor.yy0 = (struct PerfettoSqlToken) {0, 0};
}
        break;
      case 19: /* table_impl ::= USING ID */
{
  yymsp[-1].minor.yy0 = yymsp[0].minor.yy0;
}
        break;
      case 20: /* cmd ::= CREATE or_replace PERFETTO TABLE ID table_impl table_schema AS select pscantok */
{
  OnPerfettoSqlCreateTable(state, yymsp[-8].minor.yy52, &yymsp[-5].minor.yy0, &yymsp[-4].minor.yy0, yymsp[-3].minor.yy640, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0);
}
        break;
      case 21: /* cmd ::= CREATE or_replace PERFETTO VIEW ID table_schema AS select pscantok */
{
  OnPerfettoSqlCreateView(state, yymsp[-7].minor.yy52, &yymsp[-8].minor.yy0, &yymsp[-4].minor.yy0, yymsp[-3].minor.yy640, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0);
}
        break;
      case 22: /* cmd ::= CREATE or_replace PERFETTO INDEX ID ON ID LP indexed_column_list RP */
{
  OnPerfettoSqlCreateIndex(state, yymsp[-8].minor.yy52, &yymsp[-9].minor.yy0, &yymsp[-5].minor.yy0, &yymsp[-3].minor.yy0, yymsp[-1].minor.yy392);
}
        break;
      case 23: /* indexed_column_list ::= indexed_column_list COMMA ID */
{
  yylhsminor.yy392 = OnPerfettoSqlCreateOrAppendIndexedColumn(yymsp[-2].minor.yy392, &yymsp[0].minor.yy0);
}
  yymsp[-2].minor.yy392 = yylhsminor.yy392;
        break;
      case 24: /* indexed_column_list ::= ID */
{
  yylhsminor.yy392 = OnPerfettoSqlCreateOrAppendIndexedColumn(0, &yymsp[0].minor.yy0);
}
  yymsp[0].minor.yy392 = yylhsminor.yy392;
        break;
      case 25: /* cmd ::= CREATE or_replace PERFETTO MACRO ID LP macro_argument_list RP RETURNS ID AS macro_body pscantok */
{
  OnPerfettoSqlCreateMacro(state, yymsp[-11].minor.yy52, &yymsp[-8].minor.yy0, yymsp[-6].minor.yy480, &yymsp[-3].minor.yy0, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0);
}
        break;
      case 26: /* macro_argument_list_nonempty ::= macro_argument_list_nonempty COMMA ID ID */
{
  yylhsminor.yy480 = OnPerfettoSqlCreateOrAppendMacroArgument(state, yymsp[-3].minor.yy480, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0);
}
  yymsp[-3].minor.yy480 = yylhsminor.yy480;
        break;
      case 27: /* macro_argument_list_nonempty ::= ID ID */
{
  yylhsminor.yy480 = OnPerfettoSqlCreateOrAppendMacroArgument(state, 0, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0);
}
  yymsp[-1].minor.yy480 = yylhsminor.yy480;
        break;
      case 28: /* macro_argument_list ::= */
{ yymsp[1].minor.yy480 = 0; }
        break;
      case 29: /* macro_argument_list ::= macro_argument_list_nonempty */
{ yylhsminor.yy480 = yymsp[0].minor.yy480; }
  yymsp[0].minor.yy480 = yylhsminor.yy480;
        break;
      case 30: /* cmd ::= INCLUDE PERFETTO MODULE module_name */
{
  OnPerfettoSqlInclude(state, &yymsp[0].minor.yy0);
}
        break;
      case 31: /* module_name ::= ID|STAR|INTERSECT */
{
  yylhsminor.yy0 = yymsp[0].minor.yy0;
}
  yymsp[0].minor.yy0 = yylhsminor.yy0;
        break;
      case 32: /* module_name ::= module_name DOT ID|STAR|INTERSECT */
{
  yylhsminor.yy0 = (struct PerfettoSqlToken) {yymsp[-2].minor.yy0.ptr, yymsp[0].minor.yy0.ptr + yymsp[0].minor.yy0.n - yymsp[-2].minor.yy0.ptr};
}
  yymsp[-2].minor.yy0 = yylhsminor.yy0;
        break;
      case 33: /* cmd ::= DROP PERFETTO INDEX ID ON ID */
{
  OnPerfettoSqlDropIndex(state, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0);
}
        break;
      default:
      /* (34) macro_body ::= ANY */ yytestcase(yyruleno==34);
      /* (35) macro_body ::= macro_body ANY */ yytestcase(yyruleno==35);
      /* (36) explain ::= EXPLAIN */ yytestcase(yyruleno==36);
      /* (37) explain ::= EXPLAIN QUERY PLAN */ yytestcase(yyruleno==37);
      /* (38) cmdx ::= cmd (OPTIMIZED OUT) */ assert(yyruleno!=38);
      /* (39) cmd ::= BEGIN transtype trans_opt */ yytestcase(yyruleno==39);
      /* (40) transtype ::= */ yytestcase(yyruleno==40);
      /* (41) transtype ::= DEFERRED */ yytestcase(yyruleno==41);
      /* (42) transtype ::= IMMEDIATE */ yytestcase(yyruleno==42);
      /* (43) transtype ::= EXCLUSIVE */ yytestcase(yyruleno==43);
      /* (44) cmd ::= COMMIT|END trans_opt */ yytestcase(yyruleno==44);
      /* (45) cmd ::= ROLLBACK trans_opt */ yytestcase(yyruleno==45);
      /* (46) cmd ::= SAVEPOINT nm */ yytestcase(yyruleno==46);
      /* (47) cmd ::= RELEASE savepoint_opt nm */ yytestcase(yyruleno==47);
      /* (48) cmd ::= ROLLBACK trans_opt TO savepoint_opt nm */ yytestcase(yyruleno==48);
      /* (49) create_table ::= createkw temp TABLE ifnotexists nm dbnm */ yytestcase(yyruleno==49);
      /* (50) createkw ::= CREATE */ yytestcase(yyruleno==50);
      /* (51) ifnotexists ::= */ yytestcase(yyruleno==51);
      /* (52) ifnotexists ::= IF NOT EXISTS */ yytestcase(yyruleno==52);
      /* (53) temp ::= TEMP */ yytestcase(yyruleno==53);
      /* (54) temp ::= */ yytestcase(yyruleno==54);
      /* (55) create_table_args ::= LP columnlist conslist_opt RP table_option_set */ yytestcase(yyruleno==55);
      /* (56) create_table_args ::= AS select */ yytestcase(yyruleno==56);
      /* (57) table_option_set ::= */ yytestcase(yyruleno==57);
      /* (58) table_option_set ::= table_option_set COMMA table_option */ yytestcase(yyruleno==58);
      /* (59) table_option ::= WITHOUT nm */ yytestcase(yyruleno==59);
      /* (60) table_option ::= nm (OPTIMIZED OUT) */ assert(yyruleno!=60);
      /* (61) columnname ::= nm typetoken */ yytestcase(yyruleno==61);
      /* (62) typetoken ::= */ yytestcase(yyruleno==62);
      /* (63) typetoken ::= typename LP signed RP */ yytestcase(yyruleno==63);
      /* (64) typetoken ::= typename LP signed COMMA signed RP */ yytestcase(yyruleno==64);
      /* (65) typename ::= typename ID|STRING */ yytestcase(yyruleno==65);
      /* (66) scanpt ::= */ yytestcase(yyruleno==66);
      /* (67) scantok ::= */ yytestcase(yyruleno==67);
      /* (68) ccons ::= CONSTRAINT nm */ yytestcase(yyruleno==68);
      /* (69) ccons ::= DEFAULT scantok term */ yytestcase(yyruleno==69);
      /* (70) ccons ::= DEFAULT LP expr RP */ yytestcase(yyruleno==70);
      /* (71) ccons ::= DEFAULT PLUS scantok term */ yytestcase(yyruleno==71);
      /* (72) ccons ::= DEFAULT MINUS scantok term */ yytestcase(yyruleno==72);
      /* (73) ccons ::= DEFAULT scantok ID|INDEXED */ yytestcase(yyruleno==73);
      /* (74) ccons ::= NOT NULL onconf */ yytestcase(yyruleno==74);
      /* (75) ccons ::= PRIMARY KEY sortorder onconf autoinc */ yytestcase(yyruleno==75);
      /* (76) ccons ::= UNIQUE onconf */ yytestcase(yyruleno==76);
      /* (77) ccons ::= CHECK LP expr RP */ yytestcase(yyruleno==77);
      /* (78) ccons ::= REFERENCES nm eidlist_opt refargs */ yytestcase(yyruleno==78);
      /* (79) ccons ::= defer_subclause (OPTIMIZED OUT) */ assert(yyruleno!=79);
      /* (80) ccons ::= COLLATE ID|STRING */ yytestcase(yyruleno==80);
      /* (81) generated ::= LP expr RP */ yytestcase(yyruleno==81);
      /* (82) generated ::= LP expr RP ID */ yytestcase(yyruleno==82);
      /* (83) autoinc ::= */ yytestcase(yyruleno==83);
      /* (84) autoinc ::= AUTOINCR */ yytestcase(yyruleno==84);
      /* (85) refargs ::= */ yytestcase(yyruleno==85);
      /* (86) refargs ::= refargs refarg */ yytestcase(yyruleno==86);
      /* (87) refarg ::= MATCH nm */ yytestcase(yyruleno==87);
      /* (88) refarg ::= ON INSERT refact */ yytestcase(yyruleno==88);
      /* (89) refarg ::= ON DELETE refact */ yytestcase(yyruleno==89);
      /* (90) refarg ::= ON UPDATE refact */ yytestcase(yyruleno==90);
      /* (91) refact ::= SET NULL */ yytestcase(yyruleno==91);
      /* (92) refact ::= SET DEFAULT */ yytestcase(yyruleno==92);
      /* (93) refact ::= CASCADE */ yytestcase(yyruleno==93);
      /* (94) refact ::= RESTRICT */ yytestcase(yyruleno==94);
      /* (95) refact ::= NO ACTION */ yytestcase(yyruleno==95);
      /* (96) defer_subclause ::= NOT DEFERRABLE init_deferred_pred_opt */ yytestcase(yyruleno==96);
      /* (97) defer_subclause ::= DEFERRABLE init_deferred_pred_opt */ yytestcase(yyruleno==97);
      /* (98) init_deferred_pred_opt ::= */ yytestcase(yyruleno==98);
      /* (99) init_deferred_pred_opt ::= INITIALLY DEFERRED */ yytestcase(yyruleno==99);
      /* (100) init_deferred_pred_opt ::= INITIALLY IMMEDIATE */ yytestcase(yyruleno==100);
      /* (101) conslist_opt ::= */ yytestcase(yyruleno==101);
      /* (102) tconscomma ::= COMMA */ yytestcase(yyruleno==102);
      /* (103) tcons ::= CONSTRAINT nm */ yytestcase(yyruleno==103);
      /* (104) tcons ::= PRIMARY KEY LP sortlist autoinc RP onconf */ yytestcase(yyruleno==104);
      /* (105) tcons ::= UNIQUE LP sortlist RP onconf */ yytestcase(yyruleno==105);
      /* (106) tcons ::= CHECK LP expr RP onconf */ yytestcase(yyruleno==106);
      /* (107) tcons ::= FOREIGN KEY LP eidlist RP REFERENCES nm eidlist_opt refargs defer_subclause_opt */ yytestcase(yyruleno==107);
      /* (108) defer_subclause_opt ::= */ yytestcase(yyruleno==108);
      /* (109) onconf ::= */ yytestcase(yyruleno==109);
      /* (110) onconf ::= ON CONFLICT resolvetype */ yytestcase(yyruleno==110);
      /* (111) orconf ::= */ yytestcase(yyruleno==111);
      /* (112) orconf ::= OR resolvetype */ yytestcase(yyruleno==112);
      /* (113) resolvetype ::= IGNORE */ yytestcase(yyruleno==113);
      /* (114) resolvetype ::= REPLACE */ yytestcase(yyruleno==114);
      /* (115) cmd ::= DROP TABLE ifexists fullname */ yytestcase(yyruleno==115);
      /* (116) ifexists ::= IF EXISTS */ yytestcase(yyruleno==116);
      /* (117) ifexists ::= */ yytestcase(yyruleno==117);
      /* (118) cmd ::= createkw temp VIEW ifnotexists nm dbnm eidlist_opt AS select */ yytestcase(yyruleno==118);
      /* (119) cmd ::= DROP VIEW ifexists fullname */ yytestcase(yyruleno==119);
      /* (120) cmd ::= select (OPTIMIZED OUT) */ assert(yyruleno!=120);
      /* (121) select ::= WITH wqlist selectnowith */ yytestcase(yyruleno==121);
      /* (122) select ::= WITH RECURSIVE wqlist selectnowith */ yytestcase(yyruleno==122);
      /* (123) select ::= selectnowith */ yytestcase(yyruleno==123);
      /* (124) selectnowith ::= selectnowith multiselect_op oneselect */ yytestcase(yyruleno==124);
      /* (125) multiselect_op ::= UNION */ yytestcase(yyruleno==125);
      /* (126) multiselect_op ::= UNION ALL */ yytestcase(yyruleno==126);
      /* (127) multiselect_op ::= EXCEPT|INTERSECT */ yytestcase(yyruleno==127);
      /* (128) oneselect ::= SELECT distinct selcollist from where_opt groupby_opt having_opt orderby_opt limit_opt */ yytestcase(yyruleno==128);
      /* (129) oneselect ::= SELECT distinct selcollist from where_opt groupby_opt having_opt window_clause orderby_opt limit_opt */ yytestcase(yyruleno==129);
      /* (130) values ::= VALUES LP nexprlist RP */ yytestcase(yyruleno==130);
      /* (131) oneselect ::= mvalues */ yytestcase(yyruleno==131);
      /* (132) mvalues ::= values COMMA LP nexprlist RP */ yytestcase(yyruleno==132);
      /* (133) mvalues ::= mvalues COMMA LP nexprlist RP */ yytestcase(yyruleno==133);
      /* (134) distinct ::= DISTINCT */ yytestcase(yyruleno==134);
      /* (135) distinct ::= ALL */ yytestcase(yyruleno==135);
      /* (136) distinct ::= */ yytestcase(yyruleno==136);
      /* (137) sclp ::= */ yytestcase(yyruleno==137);
      /* (138) selcollist ::= sclp scanpt expr scanpt as */ yytestcase(yyruleno==138);
      /* (139) selcollist ::= sclp scanpt STAR */ yytestcase(yyruleno==139);
      /* (140) selcollist ::= sclp scanpt nm DOT STAR */ yytestcase(yyruleno==140);
      /* (141) as ::= AS nm */ yytestcase(yyruleno==141);
      /* (142) as ::= */ yytestcase(yyruleno==142);
      /* (143) from ::= */ yytestcase(yyruleno==143);
      /* (144) from ::= FROM seltablist */ yytestcase(yyruleno==144);
      /* (145) stl_prefix ::= seltablist joinop */ yytestcase(yyruleno==145);
      /* (146) stl_prefix ::= */ yytestcase(yyruleno==146);
      /* (147) seltablist ::= stl_prefix nm dbnm as on_using */ yytestcase(yyruleno==147);
      /* (148) seltablist ::= stl_prefix nm dbnm as indexed_by on_using */ yytestcase(yyruleno==148);
      /* (149) seltablist ::= stl_prefix nm dbnm LP exprlist RP as on_using */ yytestcase(yyruleno==149);
      /* (150) seltablist ::= stl_prefix LP select RP as on_using */ yytestcase(yyruleno==150);
      /* (151) seltablist ::= stl_prefix LP seltablist RP as on_using */ yytestcase(yyruleno==151);
      /* (152) dbnm ::= */ yytestcase(yyruleno==152);
      /* (153) dbnm ::= DOT nm */ yytestcase(yyruleno==153);
      /* (154) fullname ::= nm */ yytestcase(yyruleno==154);
      /* (155) fullname ::= nm DOT nm */ yytestcase(yyruleno==155);
      /* (156) xfullname ::= nm */ yytestcase(yyruleno==156);
      /* (157) xfullname ::= nm DOT nm */ yytestcase(yyruleno==157);
      /* (158) xfullname ::= nm DOT nm AS nm */ yytestcase(yyruleno==158);
      /* (159) xfullname ::= nm AS nm */ yytestcase(yyruleno==159);
      /* (160) joinop ::= COMMA|JOIN */ yytestcase(yyruleno==160);
      /* (161) joinop ::= JOIN_KW JOIN */ yytestcase(yyruleno==161);
      /* (162) joinop ::= JOIN_KW nm JOIN */ yytestcase(yyruleno==162);
      /* (163) joinop ::= JOIN_KW nm nm JOIN */ yytestcase(yyruleno==163);
      /* (164) on_using ::= ON expr */ yytestcase(yyruleno==164);
      /* (165) on_using ::= USING LP idlist RP */ yytestcase(yyruleno==165);
      /* (166) on_using ::= */ yytestcase(yyruleno==166);
      /* (167) indexed_opt ::= */ yytestcase(yyruleno==167);
      /* (168) indexed_by ::= INDEXED BY nm */ yytestcase(yyruleno==168);
      /* (169) indexed_by ::= NOT INDEXED */ yytestcase(yyruleno==169);
      /* (170) orderby_opt ::= */ yytestcase(yyruleno==170);
      /* (171) orderby_opt ::= ORDER BY sortlist */ yytestcase(yyruleno==171);
      /* (172) sortlist ::= sortlist COMMA expr sortorder nulls */ yytestcase(yyruleno==172);
      /* (173) sortlist ::= expr sortorder nulls */ yytestcase(yyruleno==173);
      /* (174) sortorder ::= ASC */ yytestcase(yyruleno==174);
      /* (175) sortorder ::= DESC */ yytestcase(yyruleno==175);
      /* (176) sortorder ::= */ yytestcase(yyruleno==176);
      /* (177) nulls ::= NULLS FIRST */ yytestcase(yyruleno==177);
      /* (178) nulls ::= NULLS LAST */ yytestcase(yyruleno==178);
      /* (179) nulls ::= */ yytestcase(yyruleno==179);
      /* (180) groupby_opt ::= */ yytestcase(yyruleno==180);
      /* (181) groupby_opt ::= GROUP BY nexprlist */ yytestcase(yyruleno==181);
      /* (182) having_opt ::= */ yytestcase(yyruleno==182);
      /* (183) having_opt ::= HAVING expr */ yytestcase(yyruleno==183);
      /* (184) limit_opt ::= */ yytestcase(yyruleno==184);
      /* (185) limit_opt ::= LIMIT expr */ yytestcase(yyruleno==185);
      /* (186) limit_opt ::= LIMIT expr OFFSET expr */ yytestcase(yyruleno==186);
      /* (187) limit_opt ::= LIMIT expr COMMA expr */ yytestcase(yyruleno==187);
      /* (188) cmd ::= with DELETE FROM xfullname indexed_opt where_opt_ret */ yytestcase(yyruleno==188);
      /* (189) where_opt ::= */ yytestcase(yyruleno==189);
      /* (190) where_opt ::= WHERE expr */ yytestcase(yyruleno==190);
      /* (191) where_opt_ret ::= */ yytestcase(yyruleno==191);
      /* (192) where_opt_ret ::= WHERE expr */ yytestcase(yyruleno==192);
      /* (193) where_opt_ret ::= RETURNING selcollist */ yytestcase(yyruleno==193);
      /* (194) where_opt_ret ::= WHERE expr RETURNING selcollist */ yytestcase(yyruleno==194);
      /* (195) cmd ::= with UPDATE orconf xfullname indexed_opt SET setlist from where_opt_ret */ yytestcase(yyruleno==195);
      /* (196) setlist ::= setlist COMMA nm EQ expr */ yytestcase(yyruleno==196);
      /* (197) setlist ::= setlist COMMA LP idlist RP EQ expr */ yytestcase(yyruleno==197);
      /* (198) setlist ::= nm EQ expr */ yytestcase(yyruleno==198);
      /* (199) setlist ::= LP idlist RP EQ expr */ yytestcase(yyruleno==199);
      /* (200) cmd ::= with insert_cmd INTO xfullname idlist_opt select upsert */ yytestcase(yyruleno==200);
      /* (201) cmd ::= with insert_cmd INTO xfullname idlist_opt DEFAULT VALUES returning */ yytestcase(yyruleno==201);
      /* (202) upsert ::= */ yytestcase(yyruleno==202);
      /* (203) upsert ::= RETURNING selcollist */ yytestcase(yyruleno==203);
      /* (204) upsert ::= ON CONFLICT LP sortlist RP where_opt DO UPDATE SET setlist where_opt upsert */ yytestcase(yyruleno==204);
      /* (205) upsert ::= ON CONFLICT LP sortlist RP where_opt DO NOTHING upsert */ yytestcase(yyruleno==205);
      /* (206) upsert ::= ON CONFLICT DO NOTHING returning */ yytestcase(yyruleno==206);
      /* (207) upsert ::= ON CONFLICT DO UPDATE SET setlist where_opt returning */ yytestcase(yyruleno==207);
      /* (208) returning ::= RETURNING selcollist */ yytestcase(yyruleno==208);
      /* (209) insert_cmd ::= INSERT orconf */ yytestcase(yyruleno==209);
      /* (210) insert_cmd ::= REPLACE */ yytestcase(yyruleno==210);
      /* (211) idlist_opt ::= */ yytestcase(yyruleno==211);
      /* (212) idlist_opt ::= LP idlist RP */ yytestcase(yyruleno==212);
      /* (213) idlist ::= idlist COMMA nm */ yytestcase(yyruleno==213);
      /* (214) idlist ::= nm (OPTIMIZED OUT) */ assert(yyruleno!=214);
      /* (215) expr ::= LP expr RP */ yytestcase(yyruleno==215);
      /* (216) expr ::= ID|INDEXED|JOIN_KW */ yytestcase(yyruleno==216);
      /* (217) expr ::= nm DOT nm */ yytestcase(yyruleno==217);
      /* (218) expr ::= nm DOT nm DOT nm */ yytestcase(yyruleno==218);
      /* (219) term ::= NULL|FLOAT|BLOB */ yytestcase(yyruleno==219);
      /* (220) term ::= STRING */ yytestcase(yyruleno==220);
      /* (221) term ::= INTEGER */ yytestcase(yyruleno==221);
      /* (222) expr ::= VARIABLE */ yytestcase(yyruleno==222);
      /* (223) expr ::= expr COLLATE ID|STRING */ yytestcase(yyruleno==223);
      /* (224) expr ::= CAST LP expr AS typetoken RP */ yytestcase(yyruleno==224);
      /* (225) expr ::= ID|INDEXED|JOIN_KW LP distinct exprlist RP */ yytestcase(yyruleno==225);
      /* (226) expr ::= ID|INDEXED|JOIN_KW LP distinct exprlist ORDER BY sortlist RP */ yytestcase(yyruleno==226);
      /* (227) expr ::= ID|INDEXED|JOIN_KW LP STAR RP */ yytestcase(yyruleno==227);
      /* (228) expr ::= ID|INDEXED|JOIN_KW LP distinct exprlist RP filter_over */ yytestcase(yyruleno==228);
      /* (229) expr ::= ID|INDEXED|JOIN_KW LP distinct exprlist ORDER BY sortlist RP filter_over */ yytestcase(yyruleno==229);
      /* (230) expr ::= ID|INDEXED|JOIN_KW LP STAR RP filter_over */ yytestcase(yyruleno==230);
      /* (231) term ::= CTIME_KW */ yytestcase(yyruleno==231);
      /* (232) expr ::= LP nexprlist COMMA expr RP */ yytestcase(yyruleno==232);
      /* (233) expr ::= expr AND expr */ yytestcase(yyruleno==233);
      /* (234) expr ::= expr OR expr */ yytestcase(yyruleno==234);
      /* (235) expr ::= expr LT|GT|GE|LE expr */ yytestcase(yyruleno==235);
      /* (236) expr ::= expr EQ|NE expr */ yytestcase(yyruleno==236);
      /* (237) expr ::= expr BITAND|BITOR|LSHIFT|RSHIFT expr */ yytestcase(yyruleno==237);
      /* (238) expr ::= expr PLUS|MINUS expr */ yytestcase(yyruleno==238);
      /* (239) expr ::= expr STAR|SLASH|REM expr */ yytestcase(yyruleno==239);
      /* (240) expr ::= expr CONCAT expr */ yytestcase(yyruleno==240);
      /* (241) likeop ::= NOT LIKE_KW|MATCH */ yytestcase(yyruleno==241);
      /* (242) expr ::= expr likeop expr */ yytestcase(yyruleno==242);
      /* (243) expr ::= expr likeop expr ESCAPE expr */ yytestcase(yyruleno==243);
      /* (244) expr ::= expr ISNULL|NOTNULL */ yytestcase(yyruleno==244);
      /* (245) expr ::= expr NOT NULL */ yytestcase(yyruleno==245);
      /* (246) expr ::= expr IS expr */ yytestcase(yyruleno==246);
      /* (247) expr ::= expr IS NOT expr */ yytestcase(yyruleno==247);
      /* (248) expr ::= expr IS NOT DISTINCT FROM expr */ yytestcase(yyruleno==248);
      /* (249) expr ::= expr IS DISTINCT FROM expr */ yytestcase(yyruleno==249);
      /* (250) expr ::= NOT expr */ yytestcase(yyruleno==250);
      /* (251) expr ::= BITNOT expr */ yytestcase(yyruleno==251);
      /* (252) expr ::= PLUS|MINUS expr */ yytestcase(yyruleno==252);
      /* (253) expr ::= expr PTR expr */ yytestcase(yyruleno==253);
      /* (254) between_op ::= BETWEEN */ yytestcase(yyruleno==254);
      /* (255) between_op ::= NOT BETWEEN */ yytestcase(yyruleno==255);
      /* (256) expr ::= expr between_op expr AND expr */ yytestcase(yyruleno==256);
      /* (257) in_op ::= IN */ yytestcase(yyruleno==257);
      /* (258) in_op ::= NOT IN */ yytestcase(yyruleno==258);
      /* (259) expr ::= expr in_op LP exprlist RP */ yytestcase(yyruleno==259);
      /* (260) expr ::= LP select RP */ yytestcase(yyruleno==260);
      /* (261) expr ::= expr in_op LP select RP */ yytestcase(yyruleno==261);
      /* (262) expr ::= expr in_op nm dbnm paren_exprlist */ yytestcase(yyruleno==262);
      /* (263) expr ::= EXISTS LP select RP */ yytestcase(yyruleno==263);
      /* (264) expr ::= CASE case_operand case_exprlist case_else END */ yytestcase(yyruleno==264);
      /* (265) case_exprlist ::= case_exprlist WHEN expr THEN expr */ yytestcase(yyruleno==265);
      /* (266) case_exprlist ::= WHEN expr THEN expr */ yytestcase(yyruleno==266);
      /* (267) case_else ::= ELSE expr */ yytestcase(yyruleno==267);
      /* (268) case_else ::= */ yytestcase(yyruleno==268);
      /* (269) case_operand ::= */ yytestcase(yyruleno==269);
      /* (270) exprlist ::= */ yytestcase(yyruleno==270);
      /* (271) nexprlist ::= nexprlist COMMA expr */ yytestcase(yyruleno==271);
      /* (272) nexprlist ::= expr */ yytestcase(yyruleno==272);
      /* (273) paren_exprlist ::= */ yytestcase(yyruleno==273);
      /* (274) paren_exprlist ::= LP exprlist RP */ yytestcase(yyruleno==274);
      /* (275) cmd ::= createkw uniqueflag INDEX ifnotexists nm dbnm ON nm LP sortlist RP where_opt */ yytestcase(yyruleno==275);
      /* (276) uniqueflag ::= UNIQUE */ yytestcase(yyruleno==276);
      /* (277) uniqueflag ::= */ yytestcase(yyruleno==277);
      /* (278) eidlist_opt ::= */ yytestcase(yyruleno==278);
      /* (279) eidlist_opt ::= LP eidlist RP */ yytestcase(yyruleno==279);
      /* (280) eidlist ::= eidlist COMMA nm collate sortorder */ yytestcase(yyruleno==280);
      /* (281) eidlist ::= nm collate sortorder */ yytestcase(yyruleno==281);
      /* (282) collate ::= */ yytestcase(yyruleno==282);
      /* (283) collate ::= COLLATE ID|STRING */ yytestcase(yyruleno==283);
      /* (284) cmd ::= DROP INDEX ifexists fullname */ yytestcase(yyruleno==284);
      /* (285) cmd ::= VACUUM vinto */ yytestcase(yyruleno==285);
      /* (286) cmd ::= VACUUM nm vinto */ yytestcase(yyruleno==286);
      /* (287) vinto ::= INTO expr */ yytestcase(yyruleno==287);
      /* (288) vinto ::= */ yytestcase(yyruleno==288);
      /* (289) cmd ::= PRAGMA nm dbnm */ yytestcase(yyruleno==289);
      /* (290) cmd ::= PRAGMA nm dbnm EQ nmnum */ yytestcase(yyruleno==290);
      /* (291) cmd ::= PRAGMA nm dbnm LP nmnum RP */ yytestcase(yyruleno==291);
      /* (292) cmd ::= PRAGMA nm dbnm EQ minus_num */ yytestcase(yyruleno==292);
      /* (293) cmd ::= PRAGMA nm dbnm LP minus_num RP */ yytestcase(yyruleno==293);
      /* (294) plus_num ::= PLUS INTEGER|FLOAT */ yytestcase(yyruleno==294);
      /* (295) minus_num ::= MINUS INTEGER|FLOAT */ yytestcase(yyruleno==295);
      /* (296) cmd ::= createkw trigger_decl BEGIN trigger_cmd_list END */ yytestcase(yyruleno==296);
      /* (297) trigger_decl ::= temp TRIGGER ifnotexists nm dbnm trigger_time trigger_event ON fullname foreach_clause when_clause */ yytestcase(yyruleno==297);
      /* (298) trigger_time ::= BEFORE|AFTER */ yytestcase(yyruleno==298);
      /* (299) trigger_time ::= INSTEAD OF */ yytestcase(yyruleno==299);
      /* (300) trigger_time ::= */ yytestcase(yyruleno==300);
      /* (301) trigger_event ::= DELETE|INSERT */ yytestcase(yyruleno==301);
      /* (302) trigger_event ::= UPDATE */ yytestcase(yyruleno==302);
      /* (303) trigger_event ::= UPDATE OF idlist */ yytestcase(yyruleno==303);
      /* (304) when_clause ::= */ yytestcase(yyruleno==304);
      /* (305) when_clause ::= WHEN expr */ yytestcase(yyruleno==305);
      /* (306) trigger_cmd_list ::= trigger_cmd_list trigger_cmd SEMI */ yytestcase(yyruleno==306);
      /* (307) trigger_cmd_list ::= trigger_cmd SEMI */ yytestcase(yyruleno==307);
      /* (308) trnm ::= nm DOT nm */ yytestcase(yyruleno==308);
      /* (309) tridxby ::= INDEXED BY nm */ yytestcase(yyruleno==309);
      /* (310) tridxby ::= NOT INDEXED */ yytestcase(yyruleno==310);
      /* (311) trigger_cmd ::= UPDATE orconf trnm tridxby SET setlist from where_opt scanpt */ yytestcase(yyruleno==311);
      /* (312) trigger_cmd ::= scanpt insert_cmd INTO trnm idlist_opt select upsert scanpt */ yytestcase(yyruleno==312);
      /* (313) trigger_cmd ::= DELETE FROM trnm tridxby where_opt scanpt */ yytestcase(yyruleno==313);
      /* (314) trigger_cmd ::= scanpt select scanpt */ yytestcase(yyruleno==314);
      /* (315) expr ::= RAISE LP IGNORE RP */ yytestcase(yyruleno==315);
      /* (316) expr ::= RAISE LP raisetype COMMA expr RP */ yytestcase(yyruleno==316);
      /* (317) raisetype ::= ROLLBACK */ yytestcase(yyruleno==317);
      /* (318) raisetype ::= ABORT */ yytestcase(yyruleno==318);
      /* (319) raisetype ::= FAIL */ yytestcase(yyruleno==319);
      /* (320) cmd ::= DROP TRIGGER ifexists fullname */ yytestcase(yyruleno==320);
      /* (321) cmd ::= ATTACH database_kw_opt expr AS expr key_opt */ yytestcase(yyruleno==321);
      /* (322) cmd ::= DETACH database_kw_opt expr */ yytestcase(yyruleno==322);
      /* (323) key_opt ::= */ yytestcase(yyruleno==323);
      /* (324) key_opt ::= KEY expr */ yytestcase(yyruleno==324);
      /* (325) cmd ::= REINDEX */ yytestcase(yyruleno==325);
      /* (326) cmd ::= REINDEX nm dbnm */ yytestcase(yyruleno==326);
      /* (327) cmd ::= ANALYZE */ yytestcase(yyruleno==327);
      /* (328) cmd ::= ANALYZE nm dbnm */ yytestcase(yyruleno==328);
      /* (329) cmd ::= ALTER TABLE fullname RENAME TO nm */ yytestcase(yyruleno==329);
      /* (330) cmd ::= ALTER TABLE add_column_fullname ADD kwcolumn_opt columnname carglist */ yytestcase(yyruleno==330);
      /* (331) cmd ::= ALTER TABLE fullname DROP kwcolumn_opt nm */ yytestcase(yyruleno==331);
      /* (332) add_column_fullname ::= fullname */ yytestcase(yyruleno==332);
      /* (333) cmd ::= ALTER TABLE fullname RENAME kwcolumn_opt nm TO nm */ yytestcase(yyruleno==333);
      /* (334) cmd ::= create_vtab */ yytestcase(yyruleno==334);
      /* (335) cmd ::= create_vtab LP vtabarglist RP */ yytestcase(yyruleno==335);
      /* (336) create_vtab ::= createkw VIRTUAL TABLE ifnotexists nm dbnm USING nm */ yytestcase(yyruleno==336);
      /* (337) vtabarg ::= */ yytestcase(yyruleno==337);
      /* (338) vtabargtoken ::= ANY */ yytestcase(yyruleno==338);
      /* (339) vtabargtoken ::= lp anylist RP */ yytestcase(yyruleno==339);
      /* (340) lp ::= LP */ yytestcase(yyruleno==340);
      /* (341) with ::= WITH wqlist */ yytestcase(yyruleno==341);
      /* (342) with ::= WITH RECURSIVE wqlist */ yytestcase(yyruleno==342);
      /* (343) wqas ::= AS */ yytestcase(yyruleno==343);
      /* (344) wqas ::= AS MATERIALIZED */ yytestcase(yyruleno==344);
      /* (345) wqas ::= AS NOT MATERIALIZED */ yytestcase(yyruleno==345);
      /* (346) wqitem ::= withnm eidlist_opt wqas LP select RP */ yytestcase(yyruleno==346);
      /* (347) withnm ::= nm (OPTIMIZED OUT) */ assert(yyruleno!=347);
      /* (348) wqlist ::= wqitem (OPTIMIZED OUT) */ assert(yyruleno!=348);
      /* (349) wqlist ::= wqlist COMMA wqitem */ yytestcase(yyruleno==349);
      /* (350) windowdefn_list ::= windowdefn_list COMMA windowdefn */ yytestcase(yyruleno==350);
      /* (351) windowdefn ::= nm AS LP window RP */ yytestcase(yyruleno==351);
      /* (352) window ::= PARTITION BY nexprlist orderby_opt frame_opt */ yytestcase(yyruleno==352);
      /* (353) window ::= nm PARTITION BY nexprlist orderby_opt frame_opt */ yytestcase(yyruleno==353);
      /* (354) window ::= ORDER BY sortlist frame_opt */ yytestcase(yyruleno==354);
      /* (355) window ::= nm ORDER BY sortlist frame_opt */ yytestcase(yyruleno==355);
      /* (356) window ::= nm frame_opt */ yytestcase(yyruleno==356);
      /* (357) frame_opt ::= */ yytestcase(yyruleno==357);
      /* (358) frame_opt ::= range_or_rows frame_bound_s frame_exclude_opt */ yytestcase(yyruleno==358);
      /* (359) frame_opt ::= range_or_rows BETWEEN frame_bound_s AND frame_bound_e frame_exclude_opt */ yytestcase(yyruleno==359);
      /* (360) range_or_rows ::= RANGE|ROWS|GROUPS */ yytestcase(yyruleno==360);
      /* (361) frame_bound_s ::= frame_bound (OPTIMIZED OUT) */ assert(yyruleno!=361);
      /* (362) frame_bound_s ::= UNBOUNDED PRECEDING */ yytestcase(yyruleno==362);
      /* (363) frame_bound_e ::= frame_bound (OPTIMIZED OUT) */ assert(yyruleno!=363);
      /* (364) frame_bound_e ::= UNBOUNDED FOLLOWING */ yytestcase(yyruleno==364);
      /* (365) frame_bound ::= expr PRECEDING|FOLLOWING */ yytestcase(yyruleno==365);
      /* (366) frame_bound ::= CURRENT ROW */ yytestcase(yyruleno==366);
      /* (367) frame_exclude_opt ::= */ yytestcase(yyruleno==367);
      /* (368) frame_exclude_opt ::= EXCLUDE frame_exclude */ yytestcase(yyruleno==368);
      /* (369) frame_exclude ::= NO OTHERS */ yytestcase(yyruleno==369);
      /* (370) frame_exclude ::= CURRENT ROW */ yytestcase(yyruleno==370);
      /* (371) frame_exclude ::= GROUP|TIES */ yytestcase(yyruleno==371);
      /* (372) window_clause ::= WINDOW windowdefn_list */ yytestcase(yyruleno==372);
      /* (373) filter_over ::= filter_clause over_clause */ yytestcase(yyruleno==373);
      /* (374) filter_over ::= over_clause (OPTIMIZED OUT) */ assert(yyruleno!=374);
      /* (375) filter_over ::= filter_clause */ yytestcase(yyruleno==375);
      /* (376) over_clause ::= OVER LP window RP */ yytestcase(yyruleno==376);
      /* (377) over_clause ::= OVER nm */ yytestcase(yyruleno==377);
      /* (378) filter_clause ::= FILTER LP WHERE expr RP */ yytestcase(yyruleno==378);
      /* (379) term ::= QNUMBER */ yytestcase(yyruleno==379);
      /* (380) input ::= cmdlist */ yytestcase(yyruleno==380);
      /* (381) cmdlist ::= cmdlist ecmd */ yytestcase(yyruleno==381);
      /* (382) cmdlist ::= ecmd (OPTIMIZED OUT) */ assert(yyruleno!=382);
      /* (383) ecmd ::= SEMI */ yytestcase(yyruleno==383);
      /* (384) ecmd ::= cmdx SEMI */ yytestcase(yyruleno==384);
      /* (385) ecmd ::= explain cmdx SEMI */ yytestcase(yyruleno==385);
      /* (386) trans_opt ::= */ yytestcase(yyruleno==386);
      /* (387) trans_opt ::= TRANSACTION */ yytestcase(yyruleno==387);
      /* (388) trans_opt ::= TRANSACTION nm */ yytestcase(yyruleno==388);
      /* (389) savepoint_opt ::= SAVEPOINT */ yytestcase(yyruleno==389);
      /* (390) savepoint_opt ::= */ yytestcase(yyruleno==390);
      /* (391) cmd ::= create_table create_table_args */ yytestcase(yyruleno==391);
      /* (392) table_option_set ::= table_option (OPTIMIZED OUT) */ assert(yyruleno!=392);
      /* (393) columnlist ::= columnlist COMMA columnname carglist */ yytestcase(yyruleno==393);
      /* (394) columnlist ::= columnname carglist */ yytestcase(yyruleno==394);
      /* (395) nm ::= ID|INDEXED|JOIN_KW */ yytestcase(yyruleno==395);
      /* (396) nm ::= STRING */ yytestcase(yyruleno==396);
      /* (397) typetoken ::= typename */ yytestcase(yyruleno==397);
      /* (398) typename ::= ID|STRING */ yytestcase(yyruleno==398);
      /* (399) signed ::= plus_num (OPTIMIZED OUT) */ assert(yyruleno!=399);
      /* (400) signed ::= minus_num (OPTIMIZED OUT) */ assert(yyruleno!=400);
      /* (401) carglist ::= carglist ccons */ yytestcase(yyruleno==401);
      /* (402) carglist ::= */ yytestcase(yyruleno==402);
      /* (403) ccons ::= NULL onconf */ yytestcase(yyruleno==403);
      /* (404) ccons ::= GENERATED ALWAYS AS generated */ yytestcase(yyruleno==404);
      /* (405) ccons ::= AS generated */ yytestcase(yyruleno==405);
      /* (406) conslist_opt ::= COMMA conslist */ yytestcase(yyruleno==406);
      /* (407) conslist ::= conslist tconscomma tcons */ yytestcase(yyruleno==407);
      /* (408) conslist ::= tcons (OPTIMIZED OUT) */ assert(yyruleno!=408);
      /* (409) tconscomma ::= */ yytestcase(yyruleno==409);
      /* (410) defer_subclause_opt ::= defer_subclause (OPTIMIZED OUT) */ assert(yyruleno!=410);
      /* (411) resolvetype ::= raisetype (OPTIMIZED OUT) */ assert(yyruleno!=411);
      /* (412) selectnowith ::= oneselect (OPTIMIZED OUT) */ assert(yyruleno!=412);
      /* (413) oneselect ::= values */ yytestcase(yyruleno==413);
      /* (414) sclp ::= selcollist COMMA */ yytestcase(yyruleno==414);
      /* (415) as ::= ID|STRING */ yytestcase(yyruleno==415);
      /* (416) indexed_opt ::= indexed_by (OPTIMIZED OUT) */ assert(yyruleno!=416);
      /* (417) returning ::= */ yytestcase(yyruleno==417);
      /* (418) expr ::= term (OPTIMIZED OUT) */ assert(yyruleno!=418);
      /* (419) likeop ::= LIKE_KW|MATCH */ yytestcase(yyruleno==419);
      /* (420) case_operand ::= expr */ yytestcase(yyruleno==420);
      /* (421) exprlist ::= nexprlist */ yytestcase(yyruleno==421);
      /* (422) nmnum ::= plus_num (OPTIMIZED OUT) */ assert(yyruleno!=422);
      /* (423) nmnum ::= nm (OPTIMIZED OUT) */ assert(yyruleno!=423);
      /* (424) nmnum ::= ON */ yytestcase(yyruleno==424);
      /* (425) nmnum ::= DELETE */ yytestcase(yyruleno==425);
      /* (426) nmnum ::= DEFAULT */ yytestcase(yyruleno==426);
      /* (427) plus_num ::= INTEGER|FLOAT */ yytestcase(yyruleno==427);
      /* (428) foreach_clause ::= */ yytestcase(yyruleno==428);
      /* (429) foreach_clause ::= FOR EACH ROW */ yytestcase(yyruleno==429);
      /* (430) trnm ::= nm */ yytestcase(yyruleno==430);
      /* (431) tridxby ::= */ yytestcase(yyruleno==431);
      /* (432) database_kw_opt ::= DATABASE */ yytestcase(yyruleno==432);
      /* (433) database_kw_opt ::= */ yytestcase(yyruleno==433);
      /* (434) kwcolumn_opt ::= */ yytestcase(yyruleno==434);
      /* (435) kwcolumn_opt ::= COLUMNKW */ yytestcase(yyruleno==435);
      /* (436) vtabarglist ::= vtabarg */ yytestcase(yyruleno==436);
      /* (437) vtabarglist ::= vtabarglist COMMA vtabarg */ yytestcase(yyruleno==437);
      /* (438) vtabarg ::= vtabarg vtabargtoken */ yytestcase(yyruleno==438);
      /* (439) anylist ::= */ yytestcase(yyruleno==439);
      /* (440) anylist ::= anylist LP anylist RP */ yytestcase(yyruleno==440);
      /* (441) anylist ::= anylist ANY */ yytestcase(yyruleno==441);
      /* (442) with ::= */ yytestcase(yyruleno==442);
      /* (443) windowdefn_list ::= windowdefn (OPTIMIZED OUT) */ assert(yyruleno!=443);
      /* (444) window ::= frame_opt (OPTIMIZED OUT) */ assert(yyruleno!=444);
        break;
/********** End reduce actions ************************************************/
  };
  assert( yyruleno<sizeof(yyRuleInfoLhs)/sizeof(yyRuleInfoLhs[0]) );
  yygoto = yyRuleInfoLhs[yyruleno];
  yysize = yyRuleInfoNRhs[yyruleno];
  yyact = yy_find_reduce_action(yymsp[yysize].stateno,(YYCODETYPE)yygoto);

  /* There are no SHIFTREDUCE actions on nonterminals because the table
  ** generator has simplified them to pure REDUCE actions. */
  assert( !(yyact>YY_MAX_SHIFT && yyact<=YY_MAX_SHIFTREDUCE) );

  /* It is not possible for a REDUCE to be followed by an error */
  assert( yyact!=YY_ERROR_ACTION );

  yymsp += yysize+1;
  yypParser->yytos = yymsp;
  yymsp->stateno = (YYACTIONTYPE)yyact;
  yymsp->major = (YYCODETYPE)yygoto;
  yyTraceShift(yypParser, yyact, "... then shift");
  return yyact;
}

/*
** The following code executes when the parse fails
*/
#ifndef YYNOERRORRECOVERY
static void yy_parse_failed(
  yyParser *yypParser           /* The parser */
){
  PerfettoSqlParseARG_FETCH
  PerfettoSqlParseCTX_FETCH
#ifndef NDEBUG
  if( yyTraceFILE ){
    fprintf(yyTraceFILE,"%sFail!\n",yyTracePrompt);
  }
#endif
  while( yypParser->yytos>yypParser->yystack ) yy_pop_parser_stack(yypParser);
  /* Here code is inserted which will be executed whenever the
  ** parser fails */
/************ Begin %parse_failure code ***************************************/
/************ End %parse_failure code *****************************************/
  PerfettoSqlParseARG_STORE /* Suppress warning about unused %extra_argument variable */
  PerfettoSqlParseCTX_STORE
}
#endif /* YYNOERRORRECOVERY */

/*
** The following code executes when a syntax error first occurs.
*/
static void yy_syntax_error(
  yyParser *yypParser,           /* The parser */
  int yymajor,                   /* The major type of the error token */
  PerfettoSqlParseTOKENTYPE yyminor         /* The minor type of the error token */
){
  PerfettoSqlParseARG_FETCH
  PerfettoSqlParseCTX_FETCH
#define TOKEN yyminor
/************ Begin %syntax_error code ****************************************/

  OnPerfettoSqlSyntaxError(state, &yyminor);
/************ End %syntax_error code ******************************************/
  PerfettoSqlParseARG_STORE /* Suppress warning about unused %extra_argument variable */
  PerfettoSqlParseCTX_STORE
}

/*
** The following is executed when the parser accepts
*/
static void yy_accept(
  yyParser *yypParser           /* The parser */
){
  PerfettoSqlParseARG_FETCH
  PerfettoSqlParseCTX_FETCH
#ifndef NDEBUG
  if( yyTraceFILE ){
    fprintf(yyTraceFILE,"%sAccept!\n",yyTracePrompt);
  }
#endif
#ifndef YYNOERRORRECOVERY
  yypParser->yyerrcnt = -1;
#endif
  assert( yypParser->yytos==yypParser->yystack );
  /* Here code is inserted which will be executed whenever the
  ** parser accepts */
/*********** Begin %parse_accept code *****************************************/
/*********** End %parse_accept code *******************************************/
  PerfettoSqlParseARG_STORE /* Suppress warning about unused %extra_argument variable */
  PerfettoSqlParseCTX_STORE
}

/* The main parser program.
** The first argument is a pointer to a structure obtained from
** "PerfettoSqlParseAlloc" which describes the current state of the parser.
** The second argument is the major token number.  The third is
** the minor token.  The fourth optional argument is whatever the
** user wants (and specified in the grammar) and is available for
** use by the action routines.
**
** Inputs:
** <ul>
** <li> A pointer to the parser (an opaque structure.)
** <li> The major token number.
** <li> The minor token number.
** <li> An option argument of a grammar-specified type.
** </ul>
**
** Outputs:
** None.
*/
void PerfettoSqlParse(
  void *yyp,                   /* The parser */
  int yymajor,                 /* The major token code number */
  PerfettoSqlParseTOKENTYPE yyminor       /* The value for the token */
  PerfettoSqlParseARG_PDECL               /* Optional %extra_argument parameter */
){
  YYMINORTYPE yyminorunion;
  YYACTIONTYPE yyact;   /* The parser action. */
#if !defined(YYERRORSYMBOL) && !defined(YYNOERRORRECOVERY)
  int yyendofinput;     /* True if we are at the end of input */
#endif
#ifdef YYERRORSYMBOL
  int yyerrorhit = 0;   /* True if yymajor has invoked an error */
#endif
  yyParser *yypParser = (yyParser*)yyp;  /* The parser */
  PerfettoSqlParseCTX_FETCH
  PerfettoSqlParseARG_STORE

  assert( yypParser->yytos!=0 );
#if !defined(YYERRORSYMBOL) && !defined(YYNOERRORRECOVERY)
  yyendofinput = (yymajor==0);
#endif

  yyact = yypParser->yytos->stateno;
#ifndef NDEBUG
  if( yyTraceFILE ){
    if( yyact < YY_MIN_REDUCE ){
      fprintf(yyTraceFILE,"%sInput '%s' in state %d\n",
              yyTracePrompt,yyTokenName[yymajor],yyact);
    }else{
      fprintf(yyTraceFILE,"%sInput '%s' with pending reduce %d\n",
              yyTracePrompt,yyTokenName[yymajor],yyact-YY_MIN_REDUCE);
    }
  }
#endif

  while(1){ /* Exit by "break" */
    assert( yypParser->yytos>=yypParser->yystack );
    assert( yyact==yypParser->yytos->stateno );
    yyact = yy_find_shift_action((YYCODETYPE)yymajor,yyact);
    if( yyact >= YY_MIN_REDUCE ){
      unsigned int yyruleno = yyact - YY_MIN_REDUCE; /* Reduce by this rule */
#ifndef NDEBUG
      assert( yyruleno<(int)(sizeof(yyRuleName)/sizeof(yyRuleName[0])) );
      if( yyTraceFILE ){
        int yysize = yyRuleInfoNRhs[yyruleno];
        if( yysize ){
          fprintf(yyTraceFILE, "%sReduce %d [%s]%s, pop back to state %d.\n",
            yyTracePrompt,
            yyruleno, yyRuleName[yyruleno],
            yyruleno<YYNRULE_WITH_ACTION ? "" : " without external action",
            yypParser->yytos[yysize].stateno);
        }else{
          fprintf(yyTraceFILE, "%sReduce %d [%s]%s.\n",
            yyTracePrompt, yyruleno, yyRuleName[yyruleno],
            yyruleno<YYNRULE_WITH_ACTION ? "" : " without external action");
        }
      }
#endif /* NDEBUG */

      /* Check that the stack is large enough to grow by a single entry
      ** if the RHS of the rule is empty.  This ensures that there is room
      ** enough on the stack to push the LHS value */
      if( yyRuleInfoNRhs[yyruleno]==0 ){
#ifdef YYTRACKMAXSTACKDEPTH
        if( (int)(yypParser->yytos - yypParser->yystack)>yypParser->yyhwm ){
          yypParser->yyhwm++;
          assert( yypParser->yyhwm ==
                  (int)(yypParser->yytos - yypParser->yystack));
        }
#endif
        if( yypParser->yytos>=yypParser->yystackEnd ){
          if( yyGrowStack(yypParser) ){
            yyStackOverflow(yypParser);
            break;
          }
        }
      }
      yyact = yy_reduce(yypParser,yyruleno,yymajor,yyminor PerfettoSqlParseCTX_PARAM);
    }else if( yyact <= YY_MAX_SHIFTREDUCE ){
      yy_shift(yypParser,yyact,(YYCODETYPE)yymajor,yyminor);
#ifndef YYNOERRORRECOVERY
      yypParser->yyerrcnt--;
#endif
      break;
    }else if( yyact==YY_ACCEPT_ACTION ){
      yypParser->yytos--;
      yy_accept(yypParser);
      return;
    }else{
      assert( yyact == YY_ERROR_ACTION );
      yyminorunion.yy0 = yyminor;
#ifdef YYERRORSYMBOL
      int yymx;
#endif
#ifndef NDEBUG
      if( yyTraceFILE ){
        fprintf(yyTraceFILE,"%sSyntax Error!\n",yyTracePrompt);
      }
#endif
#ifdef YYERRORSYMBOL
      /* A syntax error has occurred.
      ** The response to an error depends upon whether or not the
      ** grammar defines an error token "ERROR".  
      **
      ** This is what we do if the grammar does define ERROR:
      **
      **  * Call the %syntax_error function.
      **
      **  * Begin popping the stack until we enter a state where
      **    it is legal to shift the error symbol, then shift
      **    the error symbol.
      **
      **  * Set the error count to three.
      **
      **  * Begin accepting and shifting new tokens.  No new error
      **    processing will occur until three tokens have been
      **    shifted successfully.
      **
      */
      if( yypParser->yyerrcnt<0 ){
        yy_syntax_error(yypParser,yymajor,yyminor);
      }
      yymx = yypParser->yytos->major;
      if( yymx==YYERRORSYMBOL || yyerrorhit ){
#ifndef NDEBUG
        if( yyTraceFILE ){
          fprintf(yyTraceFILE,"%sDiscard input token %s\n",
             yyTracePrompt,yyTokenName[yymajor]);
        }
#endif
        yy_destructor(yypParser, (YYCODETYPE)yymajor, &yyminorunion);
        yymajor = YYNOCODE;
      }else{
        while( yypParser->yytos > yypParser->yystack ){
          yyact = yy_find_reduce_action(yypParser->yytos->stateno,
                                        YYERRORSYMBOL);
          if( yyact<=YY_MAX_SHIFTREDUCE ) break;
          yy_pop_parser_stack(yypParser);
        }
        if( yypParser->yytos <= yypParser->yystack || yymajor==0 ){
          yy_destructor(yypParser,(YYCODETYPE)yymajor,&yyminorunion);
          yy_parse_failed(yypParser);
#ifndef YYNOERRORRECOVERY
          yypParser->yyerrcnt = -1;
#endif
          yymajor = YYNOCODE;
        }else if( yymx!=YYERRORSYMBOL ){
          yy_shift(yypParser,yyact,YYERRORSYMBOL,yyminor);
        }
      }
      yypParser->yyerrcnt = 3;
      yyerrorhit = 1;
      if( yymajor==YYNOCODE ) break;
      yyact = yypParser->yytos->stateno;
#elif defined(YYNOERRORRECOVERY)
      /* If the YYNOERRORRECOVERY macro is defined, then do not attempt to
      ** do any kind of error recovery.  Instead, simply invoke the syntax
      ** error routine and continue going as if nothing had happened.
      **
      ** Applications can set this macro (for example inside %include) if
      ** they intend to abandon the parse upon the first syntax error seen.
      */
      yy_syntax_error(yypParser,yymajor, yyminor);
      yy_destructor(yypParser,(YYCODETYPE)yymajor,&yyminorunion);
      break;
#else  /* YYERRORSYMBOL is not defined */
      /* This is what we do if the grammar does not define ERROR:
      **
      **  * Report an error message, and throw away the input token.
      **
      **  * If the input token is $, then fail the parse.
      **
      ** As before, subsequent error messages are suppressed until
      ** three input tokens have been successfully shifted.
      */
      if( yypParser->yyerrcnt<=0 ){
        yy_syntax_error(yypParser,yymajor, yyminor);
      }
      yypParser->yyerrcnt = 3;
      yy_destructor(yypParser,(YYCODETYPE)yymajor,&yyminorunion);
      if( yyendofinput ){
        yy_parse_failed(yypParser);
#ifndef YYNOERRORRECOVERY
        yypParser->yyerrcnt = -1;
#endif
      }
      break;
#endif
    }
  }
#ifndef NDEBUG
  if( yyTraceFILE ){
    yyStackEntry *i;
    char cDiv = '[';
    fprintf(yyTraceFILE,"%sReturn. Stack=",yyTracePrompt);
    for(i=&yypParser->yystack[1]; i<=yypParser->yytos; i++){
      fprintf(yyTraceFILE,"%c%s", cDiv, yyTokenName[i->major]);
      cDiv = ' ';
    }
    fprintf(yyTraceFILE,"]\n");
  }
#endif
  return;
}

/*
** Return the fallback token corresponding to canonical token iToken, or
** 0 if iToken has no fallback.
*/
int PerfettoSqlParseFallback(int iToken){
#ifdef YYFALLBACK
  assert( iToken<(int)(sizeof(yyFallback)/sizeof(yyFallback[0])) );
  return yyFallback[iToken];
#else
  (void)iToken;
  return 0;
#endif
}
