/* 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" identifer 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_OR                              9
#define TK_AND                            10
#define TK_NOT                            11
#define TK_IS                             12
#define TK_MATCH                          13
#define TK_LIKE_KW                        14
#define TK_BETWEEN                        15
#define TK_IN                             16
#define TK_ISNULL                         17
#define TK_NOTNULL                        18
#define TK_NE                             19
#define TK_EQ                             20
#define TK_GT                             21
#define TK_LE                             22
#define TK_LT                             23
#define TK_GE                             24
#define TK_ESCAPE                         25
#define TK_BITAND                         26
#define TK_BITOR                          27
#define TK_LSHIFT                         28
#define TK_RSHIFT                         29
#define TK_PLUS                           30
#define TK_MINUS                          31
#define TK_STAR                           32
#define TK_SLASH                          33
#define TK_REM                            34
#define TK_CONCAT                         35
#define TK_PTR                            36
#define TK_COLLATE                        37
#define TK_BITNOT                         38
#define TK_ON                             39
#define TK_ID                             40
#define TK_ABORT                          41
#define TK_ACTION                         42
#define TK_AFTER                          43
#define TK_ANALYZE                        44
#define TK_ASC                            45
#define TK_ATTACH                         46
#define TK_BEFORE                         47
#define TK_BEGIN                          48
#define TK_BY                             49
#define TK_CASCADE                        50
#define TK_CAST                           51
#define TK_COLUMNKW                       52
#define TK_CONFLICT                       53
#define TK_DATABASE                       54
#define TK_DEFERRED                       55
#define TK_DESC                           56
#define TK_DETACH                         57
#define TK_DO                             58
#define TK_EACH                           59
#define TK_END                            60
#define TK_EXCLUSIVE                      61
#define TK_EXPLAIN                        62
#define TK_FAIL                           63
#define TK_FOR                            64
#define TK_IGNORE                         65
#define TK_IMMEDIATE                      66
#define TK_INITIALLY                      67
#define TK_INSTEAD                        68
#define TK_NO                             69
#define TK_PLAN                           70
#define TK_QUERY                          71
#define TK_KEY                            72
#define TK_OF                             73
#define TK_OFFSET                         74
#define TK_PRAGMA                         75
#define TK_RAISE                          76
#define TK_RECURSIVE                      77
#define TK_RELEASE                        78
#define TK_RESTRICT                       79
#define TK_ROW                            80
#define TK_ROWS                           81
#define TK_ROLLBACK                       82
#define TK_SAVEPOINT                      83
#define TK_TEMP                           84
#define TK_TRIGGER                        85
#define TK_VACUUM                         86
#define TK_VIEW                           87
#define TK_VIRTUAL                        88
#define TK_WITH                           89
#define TK_WITHOUT                        90
#define TK_NULLS                          91
#define TK_FIRST                          92
#define TK_LAST                           93
#define TK_CURRENT                        94
#define TK_FOLLOWING                      95
#define TK_PARTITION                      96
#define TK_PRECEDING                      97
#define TK_RANGE                          98
#define TK_UNBOUNDED                      99
#define TK_EXCLUDE                        100
#define TK_GROUPS                         101
#define TK_OTHERS                         102
#define TK_TIES                           103
#define TK_GENERATED                      104
#define TK_ALWAYS                         105
#define TK_MATERIALIZED                   106
#define TK_REINDEX                        107
#define TK_RENAME                         108
#define TK_CTIME_KW                       109
#define TK_IF                             110
#define TK_ANY                            111
#define TK_LP                             112
#define TK_DOT                            113
#define TK_RP                             114
#define TK_COMMA                          115
#define TK_AS                             116
#define TK_TABLE                          117
#define TK_USING                          118
#define TK_INDEX                          119
#define TK_INTERSECT                      120
#define TK_DROP                           121
#define TK_COMMIT                         122
#define TK_TO                             123
#define TK_EXISTS                         124
#define TK_STRING                         125
#define TK_CONSTRAINT                     126
#define TK_DEFAULT                        127
#define TK_INDEXED                        128
#define TK_NULL                           129
#define TK_PRIMARY                        130
#define TK_UNIQUE                         131
#define TK_CHECK                          132
#define TK_REFERENCES                     133
#define TK_AUTOINCR                       134
#define TK_INSERT                         135
#define TK_DELETE                         136
#define TK_UPDATE                         137
#define TK_SET                            138
#define TK_DEFERRABLE                     139
#define TK_FOREIGN                        140
#define TK_UNION                          141
#define TK_ALL                            142
#define TK_EXCEPT                         143
#define TK_SELECT                         144
#define TK_VALUES                         145
#define TK_DISTINCT                       146
#define TK_FROM                           147
#define TK_JOIN                           148
#define TK_JOIN_KW                        149
#define TK_ORDER                          150
#define TK_GROUP                          151
#define TK_HAVING                         152
#define TK_LIMIT                          153
#define TK_WHERE                          154
#define TK_RETURNING                      155
#define TK_INTO                           156
#define TK_NOTHING                        157
#define TK_FLOAT                          158
#define TK_BLOB                           159
#define TK_INTEGER                        160
#define TK_VARIABLE                       161
#define TK_CASE                           162
#define TK_WHEN                           163
#define TK_THEN                           164
#define TK_ELSE                           165
#define TK_SEMI                           166
#define TK_ALTER                          167
#define TK_ADD                            168
#define TK_WINDOW                         169
#define TK_OVER                           170
#define TK_FILTER                         171
#define TK_TRANSACTION                    172
#define TK_SPACE                          173
#define TK_ILLEGAL                        174
#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
**    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
*/
#ifndef INTERFACE
# define INTERFACE 1
#endif
/************* Begin control #defines *****************************************/
#define YYCODETYPE unsigned short int
#define YYNOCODE 321
#define YYACTIONTYPE unsigned short int
#define YYWILDCARD 111
#define PerfettoSqlParseTOKENTYPE struct PerfettoSqlToken
typedef union {
  int yyinit;
  PerfettoSqlParseTOKENTYPE yy0;
  struct PerfettoSqlMacroArgumentList* yy36;
  struct PerfettoSqlIndexedColumnList* yy164;
  struct PerfettoSqlArgumentList* yy274;
  int yy436;
  struct PerfettoSqlFnReturnType* yy483;
} YYMINORTYPE;
#ifndef YYSTACKDEPTH
#define YYSTACKDEPTH 100
#endif
#define PerfettoSqlParseARG_SDECL
#define PerfettoSqlParseARG_PDECL
#define PerfettoSqlParseARG_PARAM
#define PerfettoSqlParseARG_FETCH
#define PerfettoSqlParseARG_STORE
#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             647
#define YYNRULE              437
#define YYNRULE_WITH_ACTION  30
#define YYNTOKEN             175
#define YY_MAX_SHIFT         646
#define YY_MIN_SHIFTREDUCE   927
#define YY_MAX_SHIFTREDUCE   1363
#define YY_ERROR_ACTION      1364
#define YY_ACCEPT_ACTION     1365
#define YY_NO_ACTION         1366
#define YY_MIN_REDUCE        1367
#define YY_MAX_REDUCE        1803
/************* 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


/* 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 (2216)
static const YYACTIONTYPE yy_action[] = {
 /*     0 */  1760,  122,  119,  236,  289,  122,  119,  236, 1760,  129,
 /*    10 */   131,  433,   84, 1338, 1338, 1175, 1178, 1165, 1165,  127,
 /*    20 */   127,  128,  128,  128,  128, 1682,  126,  126,  126,  126,
 /*    30 */   125,  125,  124,  124,  124,  123,  120,  475, 1716,    6,
 /*    40 */  1162, 1162, 1176, 1179,  485, 1095,  125,  125,  124,  124,
 /*    50 */   124,  123,  120,  475,  485,  485, 1096,  124,  124,  124,
 /*    60 */   123,  120,  475,  122,  119,  236,  129,  131,  433,   84,
 /*    70 */  1338, 1338, 1175, 1178, 1165, 1165,  127,  127,  128,  128,
 /*    80 */   128,  128, 1354,  126,  126,  126,  126,  125,  125,  124,
 /*    90 */   124,  124,  123,  120,  475,  129,  131,  433,   84, 1338,
 /*   100 */  1338, 1175, 1178, 1165, 1165,  127,  127,  128,  128,  128,
 /*   110 */   128, 1314,  126,  126,  126,  126,  125,  125,  124,  124,
 /*   120 */   124,  123,  120,  475,  131,  433,   84, 1338, 1338, 1175,
 /*   130 */  1178, 1165, 1165,  127,  127,  128,  128,  128,  128,  630,
 /*   140 */   126,  126,  126,  126,  125,  125,  124,  124,  124,  123,
 /*   150 */   120,  475, 1285,  249, 1285,  521, 1166,  521,   77,   77,
 /*   160 */   132,  239,  129,  131,  433,   84, 1338, 1338, 1175, 1178,
 /*   170 */  1165, 1165,  127,  127,  128,  128,  128,  128, 1152,  126,
 /*   180 */   126,  126,  126,  125,  125,  124,  124,  124,  123,  120,
 /*   190 */   475,  475,  202,  585, 1141,  476, 1315,  243, 1140, 1314,
 /*   200 */   554,  103,  128,  128,  128,  128,  121,  126,  126,  126,
 /*   210 */   126,  125,  125,  124,  124,  124,  123,  120,  475, 1473,
 /*   220 */  1314,  326,  631,  437,  305,   90,  308, 1140, 1140, 1142,
 /*   230 */  1259, 1261,  608, 1795, 1795,  129,  131,  433,   84, 1338,
 /*   240 */  1338, 1175, 1178, 1165, 1165,  127,  127,  128,  128,  128,
 /*   250 */   128,  154,  126,  126,  126,  126,  125,  125,  124,  124,
 /*   260 */   124,  123,  120,  475,  129,  131,  433,   84, 1338, 1338,
 /*   270 */  1175, 1178, 1165, 1165,  127,  127,  128,  128,  128,  128,
 /*   280 */  1473,  126,  126,  126,  126,  125,  125,  124,  124,  124,
 /*   290 */   123,  120,  475,  129,  131,  433,   84, 1338, 1338, 1175,
 /*   300 */  1178, 1165, 1165,  127,  127,  128,  128,  128,  128,  412,
 /*   310 */   126,  126,  126,  126,  125,  125,  124,  124,  124,  123,
 /*   320 */   120,  475, 1432,  337,  129,  131,  433,   84, 1338, 1338,
 /*   330 */  1175, 1178, 1165, 1165,  127,  127,  128,  128,  128,  128,
 /*   340 */   330,  126,  126,  126,  126,  125,  125,  124,  124,  124,
 /*   350 */   123,  120,  475,  129,  131,  433,   84, 1338, 1338, 1175,
 /*   360 */  1178, 1165, 1165,  127,  127,  128,  128,  128,  128,  490,
 /*   370 */   126,  126,  126,  126,  125,  125,  124,  124,  124,  123,
 /*   380 */   120,  475,  129,  131,  433,   84, 1338, 1338, 1175, 1178,
 /*   390 */  1165, 1165,  127,  127,  128,  128,  128,  128, 1000,  126,
 /*   400 */   126,  126,  126,  125,  125,  124,  124,  124,  123,  120,
 /*   410 */   475,  512,  364,  129,  131,  433,   84, 1338, 1338, 1175,
 /*   420 */  1178, 1165, 1165,  127,  127,  128,  128,  128,  128,  993,
 /*   430 */   126,  126,  126,  126,  125,  125,  124,  124,  124,  123,
 /*   440 */   120,  475,  235,  596,  129,  131,  433,   84, 1338, 1338,
 /*   450 */  1175, 1178, 1165, 1165,  127,  127,  128,  128,  128,  128,
 /*   460 */    91,  126,  126,  126,  126,  125,  125,  124,  124,  124,
 /*   470 */   123,  120,  475,  129,  131,  433,   84, 1338, 1338, 1175,
 /*   480 */  1178, 1165, 1165,  127,  127,  128,  128,  128,  128,  402,
 /*   490 */   126,  126,  126,  126,  125,  125,  124,  124,  124,  123,
 /*   500 */   120,  475,  126,  126,  126,  126,  125,  125,  124,  124,
 /*   510 */   124,  123,  120,  475,  630,  591,  578,  403, 1153,  630,
 /*   520 */   351,  630, 1470,  455, 1449,  288,  630,  288,  221,  147,
 /*   530 */   408, 1470,  399,   77,   77,   16,   16,  627,   77,   77,
 /*   540 */    77,   77,  122,  119,  236,   54,   54, 1797,  418, 1136,
 /*   550 */   128,  128,  128,  128,  100,  126,  126,  126,  126,  125,
 /*   560 */   125,  124,  124,  124,  123,  120,  475,  295,  613,  295,
 /*   570 */   122,  119,  236,  613,  211,  613,  580, 1435, 1298,  627,
 /*   580 */   592,  612,  333,  468,  326,  631,  414,  455,  129,  131,
 /*   590 */   433,   84, 1338, 1338, 1175, 1178, 1165, 1165,  127,  127,
 /*   600 */   128,  128,  128,  128, 1646,  126,  126,  126,  126,  125,
 /*   610 */   125,  124,  124,  124,  123,  120,  475,  129,  131,  433,
 /*   620 */    84, 1338, 1338, 1175, 1178, 1165, 1165,  127,  127,  128,
 /*   630 */   128,  128,  128,  583,  126,  126,  126,  126,  125,  125,
 /*   640 */   124,  124,  124,  123,  120,  475,  129,  131,  433,   84,
 /*   650 */  1338, 1338, 1175, 1178, 1165, 1165,  127,  127,  128,  128,
 /*   660 */   128,  128, 1314,  126,  126,  126,  126,  125,  125,  124,
 /*   670 */   124,  124,  123,  120,  475,  129,  131,  433,   84, 1338,
 /*   680 */  1338, 1175, 1178, 1165, 1165,  127,  127,  128,  128,  128,
 /*   690 */   128, 1434,  126,  126,  126,  126,  125,  125,  124,  124,
 /*   700 */   124,  123,  120,  475,  129,  118,  433,   84, 1338, 1338,
 /*   710 */  1175, 1178, 1165, 1165,  127,  127,  128,  128,  128,  128,
 /*   720 */   302,  126,  126,  126,  126,  125,  125,  124,  124,  124,
 /*   730 */   123,  120,  475,  345,  581, 1280,  550, 1314, 1314,  470,
 /*   740 */   469, 1508,  321,  109,  630,  394,  630, 1315, 1343, 1314,
 /*   750 */  1314,  396, 1280,  214,  238, 1280,  630,  581,  484,  481,
 /*   760 */   480,  630,  100,   45,   45,   45,   45,  425,  479,  106,
 /*   770 */   211, 1314,  112, 1219,  151,   45,   45, 1219,   93,  441,
 /*   780 */    77,   77,  423, 1475,  433,   84, 1338, 1338, 1175, 1178,
 /*   790 */  1165, 1165,  127,  127,  128,  128,  128,  128,  533,  126,
 /*   800 */   126,  126,  126,  125,  125,  124,  124,  124,  123,  120,
 /*   810 */   475, 1739,  328,  116,  396,  322,  553, 1766,  382,  295,
 /*   820 */   384,  295, 1315, 1315,  238, 1314, 1314, 1037,  484,  481,
 /*   830 */   480,  627,  114,  114, 1315,   12, 1345, 1314,  479,  563,
 /*   840 */   115,  583,  473,  644, 1475, 1344, 1314, 1314,  519,  523,
 /*   850 */   385,  582,  383,  625,  158,  250, 1131,  349, 1314,  286,
 /*   860 */   401, 1709,  630,  401,  400,  400, 1239, 1346,  348, 1346,
 /*   870 */   629,  380,  604,  544,  582,  604, 1259, 1261,  619, 1796,
 /*   880 */  1796,   13,   13,  116, 1280,  614,  252,    8, 1240,  377,
 /*   890 */  1036,  147,  438,  379,  267,  442,  630,  175,  996,  600,
 /*   900 */   146, 1280,  114,  114, 1280,  579, 1421, 1238,  208,  630,
 /*   910 */   115, 1152,  473,  511,    4,   77,   77, 1421,  251, 1314,
 /*   920 */   397,  630,  570,  625,  158,  630,  622,  628,   13,   13,
 /*   930 */   473, 1140,  432,  380, 1314,  470,  469,  295, 1314,  295,
 /*   940 */   137,  137,  298,  147,   77,   77,  326,  631,  619,  627,
 /*   950 */   613,  473,  573,  599,  568,  326,  631,  295,  615,  295,
 /*   960 */  1140, 1140, 1142, 1143,   28,  624,  602, 1152,  328,  627,
 /*   970 */   532,  601,  553,  272,  232, 1280,  529, 1302,  499,  323,
 /*   980 */   230, 1152,  211, 1141,    4, 1280,  996, 1140,  584,  362,
 /*   990 */   609,  192, 1280,  505,  415, 1280,  622,  628,  326,  631,
 /*  1000 */   473, 1140, 1280,  430, 1315, 1280, 1016, 1314, 1314,  546,
 /*  1010 */   193,  250,  224,  349,  297,  286, 1140, 1140, 1142, 1315,
 /*  1020 */   589,  473, 1314, 1315,  348,  493, 1314,  380, 1314,  544,
 /*  1030 */  1140, 1140, 1142, 1143,   28, 1017,  624,  624,  233,  116,
 /*  1040 */  1314,  630,  252, 1314,  598,  377,  964, 1314,  369,  379,
 /*  1050 */   267,  630,  966,  175, 1061,  593,  146,  965,  114,  114,
 /*  1060 */    75,   75, 1314, 1346,  546, 1346,  115,  630,  473, 1334,
 /*  1070 */    13,   13,  630,  296,  251,  296, 1737,  153,  116,  625,
 /*  1080 */     5,  371,  630,  374,  453,  627,   13,   13,  432,  380,
 /*  1090 */   630,  139,  139, 1315,  445,  181, 1314,  114,  114, 1453,
 /*  1100 */   458,   77,   77,  448,  619,  115,  406,  473,  297,   77,
 /*  1110 */    77,  326,  631,  376,  488, 1314,  488, 1314,  625,  116,
 /*  1120 */   407,  303,  602,    2,  488, 1315,  501,  603, 1314,  299,
 /*  1130 */   152,  590,  590, 1302,  499,  521,  472, 1152,  114,  114,
 /*  1140 */     4,    9,  546,  619,  474,  275,  115, 1315,  473, 1314,
 /*  1150 */  1314, 1050,  622,  628, 1334,  329,  473, 1140,  527,  625,
 /*  1160 */  1466,  602,  422,  421,  497, 1056,  601,  181,  295, 1055,
 /*  1170 */   295, 1314,  632,  295, 1050,  295, 1152,  473,  116,    4,
 /*  1180 */   627, 1681,  630,  230,  619,  627, 1140, 1140, 1142, 1143,
 /*  1190 */    28,  622,  628,  450,  256,  473, 1140,  114,  114, 1060,
 /*  1200 */  1315,   13,   13, 1314,  311,  115,  954,  473,  587,  587,
 /*  1210 */     6,  501,  500,  501,  954,  466,  473, 1152,  625,   83,
 /*  1220 */     4,  630,  101, 1083, 1314, 1140, 1140, 1142, 1143,   28,
 /*  1230 */   489,  521,  622,  628,  456, 1419,  473, 1140,  114,  114,
 /*  1240 */    47,   47,  630,  619,   88,  116,  115,  955,  473,  394,
 /*  1250 */  1365,    1,    1,  307,  611,  955,  353,  473,  630,  625,
 /*  1260 */   527,   13,   13, 1651,  114,  114, 1140, 1140, 1142, 1143,
 /*  1270 */    28, 1131,  115, 1422,  473,  206, 1152,   48,   48,    4,
 /*  1280 */   597,  597,    6,  464,  619,  625,  630,  295,  630,  295,
 /*  1290 */   606,  622,  628,  630,  954,  473, 1140,  328,  456,  627,
 /*  1300 */   313,  553, 1333, 1314,  447,   49,   49,   13,   13,  147,
 /*  1310 */   619,  255,   50,   50,  253,  605,  473, 1152,  471,  630,
 /*  1320 */     4,  207,  457,  312, 1291, 1140, 1140, 1142, 1143,   28,
 /*  1330 */   444, 1450,  622,  628,  224,  955,  473, 1140,   13,   13,
 /*  1340 */   250,  546,  349, 1152,  286,  589,    4,  502, 1651, 1653,
 /*  1350 */  1651, 1314,  607,  348,  610,  361,  380,  473,  622,  628,
 /*  1360 */   525, 1314,  473, 1140,  326,  631, 1140, 1140, 1142, 1143,
 /*  1370 */    28,  252, 1291, 1314,  377,  295,  546,  295,  379,  267,
 /*  1380 */  1645, 1452,  175,  473,  450,  146,  457,  627, 1315,  471,
 /*  1390 */   471, 1314, 1140, 1140, 1142, 1143,   28,  492,  488,  450,
 /*  1400 */   488, 1481,   12,  251,  362,  508,  354,    2,  488,  334,
 /*  1410 */  1714,    6, 1314,  299,  152, 1482,  396,  432,  380,  245,
 /*  1420 */   283,  428,  336,  495,  339,  494,  244,  487, 1317,  487,
 /*  1430 */   534,  338,  337,   35,  429,  575, 1315,  487,  621, 1314,
 /*  1440 */   326,  631,  299,  152,  976,    3, 1315,  212,  510, 1314,
 /*  1450 */   527,  431,  295,  295,  295,  295,  161, 1710, 1315, 1082,
 /*  1460 */  1314, 1314,  213,  499,  627,  627,  291, 1081, 1451, 1591,
 /*  1470 */  1314,  243,  546,  295, 1334,  295,  630,  526,  256, 1638,
 /*  1480 */   528,  295, 1314,  295, 1239,  627,  295,  295,  295,  295,
 /*  1490 */   295, 1197,  295,  627,  534,   59,   59,  437,  627,  627,
 /*  1500 */  1081,  234,  627,  295,  630,  295, 1240,  256,  618, 1487,
 /*  1510 */   630, 1478,  630, 1317,  489,  627,  404, 1591,  630,  627,
 /*  1520 */   630, 1431,  630,   60,   60, 1238,  161,  106,  630,   15,
 /*  1530 */    15,   51,   51,  630,  958,  630, 1740,   61,   61,   52,
 /*  1540 */    52,   62,   62,  489,  630,  314, 1007,   63,   63,  630,
 /*  1550 */   275,  630,   64,   64,   65,   65,  630,  396,  630, 1334,
 /*  1560 */   630,  130,  630,   66,   66,  630,  465,  630,   67,   67,
 /*  1570 */    68,   68,  630,  396,  630,   69,   69,   70,   70,   53,
 /*  1580 */    53,   55,   55,  630,   14,   14,  135,  135,  630, 1367,
 /*  1590 */   630,  136,  136,   72,   72,  630,  608,  157,  630,  113,
 /*  1600 */   630,  111,   56,   56,  630, 1715,    6,   73,   73,   74,
 /*  1610 */    74, 1081,  630,  159,   57,   57,  630,  168,  168,  169,
 /*  1620 */   169,  630,  504,   81,   81, 1217,  504,  630,  988,  630,
 /*  1630 */   465,   58,   58,  630,  939,  138,  138,  561,  630,  557,
 /*  1640 */    76,   76, 1692,  630, 1081,  234,  166,  166,  140,  140,
 /*  1650 */   630, 1590,  134,  134,  630, 1095,  630,  167,  167,  630,
 /*  1660 */  1589,  630,  160,  160,  517,  630, 1096,  157,  630,  144,
 /*  1670 */   144,  630, 1003,  143,  143,  141,  141,  630,  142,  142,
 /*  1680 */    79,   79,  149,  159,   71,   71,   37,   80,   80, 1376,
 /*  1690 */    78,   78,  123,  120,  475,  646,   46,   46,  404, 1590,
 /*  1700 */   156,  512,  364, 1222, 1222,  535,  343,  404, 1589, 1360,
 /*  1710 */   417,  574, 1359,  988, 1360,  417,  342, 1260,  242,  241,
 /*  1720 */   240, 1713,    6, 1712,    6, 1424,  440,  506,  306,   32,
 /*  1730 */   623,  440,  306,  326,  631,  635,  642,  430,  443,  183,
 /*  1740 */   514,  518,  293,  232,  325, 1765, 1025,   94,  220, 1056,
 /*  1750 */   430,  430, 1022, 1055,  430,  477,  271, 1003,  331,  106,
 /*  1760 */  1256,  419, 1015, 1023, 1014,  513,  515,  360,  106,  451,
 /*  1770 */  1133,  274,  520,  274,  522,  274,  365,  106,  945,  564,
 /*  1780 */   223,  935,  641,  940,  641,  359,  309,  577, 1204, 1200,
 /*  1790 */   271, 1086,  274,  164,  106, 1098, 1099,  165, 1216, 1144,
 /*  1800 */  1216,  986,  155, 1215,  503, 1215, 1054,  130,  294, 1754,
 /*  1810 */  1694,  498, 1053,  130, 1690,  346,  347,  350, 1520, 1506,
 /*  1820 */  1519,   31,  204,   19,  507, 1728,  617, 1697,  355,  226,
 /*  1830 */  1670, 1669,  530,  594,  538,  284,  366,  370,  216,  248,
 /*  1840 */  1499,  373,  375, 1410, 1409, 1411, 1747,  318, 1516,  395,
 /*  1850 */   319,  320,   11, 1529,  357, 1574,  358, 1502, 1561, 1514,
 /*  1860 */   616,  551, 1579,  381,  229, 1566, 1556,  304, 1549,  524,
 /*  1870 */  1388, 1565,  201, 1204, 1750,  426,  496,   33,   86,  446,
 /*  1880 */   645,  633, 1265,  620, 1144, 1007, 1354,  482,  278, 1351,
 /*  1890 */   185,  246,  341,   93,  222,  190, 1449, 1642, 1641,  180,
 /*  1900 */   541,  101,  537,   89,   92,   99, 1658, 1308,  486,  545,
 /*  1910 */   947,  957,  572,  269, 1689,  389, 1469, 1468, 1687,  310,
 /*  1920 */   363, 1467,  416,  449,  509, 1762,  258,  390, 1764, 1763,
 /*  1930 */  1439,  420,  225,  411,  209,  210, 1460, 1438, 1511, 1512,
 /*  1940 */   340, 1459, 1510, 1509, 1437,  531,  285,  460,  262,  263,
 /*  1950 */   266,  264,  187,  372, 1412,  265,  268,  542,  539,  315,
 /*  1960 */  1407, 1402,  459, 1570,  569,  571,  194,  424,  461,  462,
 /*  1970 */   463,  133,  516,  608,  276,  427,  197, 1636,  277,  467,
 /*  1980 */   235,   10,  110,  102,  586,  640, 1562,   36,  342,  198,
 /*  1990 */   199,  393,  405, 1373, 1647, 1568,  237, 1567,   38, 1372,
 /*  2000 */   478,  200, 1384, 1383, 1378,  182,   85,   17,  483,   18,
 /*  2010 */   332, 1304, 1303,  173,  145,  219, 1005,  335,  491,  227,
 /*  2020 */   148, 1018,  228, 1492,  368,  398,  300, 1674,   87,  301,
 /*  2030 */  1675,  174, 1673,  344,  247, 1672,   82,  409, 1491,  215,
 /*  2040 */   150, 1214,  316,  410, 1534, 1212,  176, 1533,  317,  352,
 /*  2050 */  1333,  356,  188,  254,  189,  186,  257, 1228,  177,  178,
 /*  2060 */  1623,  452,  454,  324,   95,  191,  576,   96,   97,   98,
 /*  2070 */   179, 1231,  259,  260,  162,   20, 1227,  261,  367, 1220,
 /*  2080 */   274,  195, 1348,  536,  196,   39,  975,  540,  960,  378,
 /*  2090 */  1719, 1718,  543,  170,  171, 1039,  270,  956, 1733,  547,
 /*  2100 */   549,  548,  439,  287,  552,  184,  435,  436,  950,  172,
 /*  2110 */   949,  555,  556,  558,  386,  559,  566,  217,  560,  562,
 /*  2120 */   946,  565,  387,  567,  388,  942,  391,   40,   41,  392,
 /*  2130 */  1267,   42, 1084, 1266,  290,  231,  273,   21,   22,  292,
 /*  2140 */   203, 1090,   34,   23,  130, 1271,  105, 1181,  588,  205,
 /*  2150 */   104,  163,  595, 1296,   24,   25, 1282, 1284, 1286,    7,
 /*  2160 */  1289,  106, 1290,   26,   27, 1195, 1182, 1180, 1237, 1185,
 /*  2170 */   279,  626,  327,  636,  638,  413,  280, 1236,   43, 1184,
 /*  2180 */   643, 1145, 1755,  107, 1049,  434,  987,  117,  108,  937,
 /*  2190 */    44, 1366, 1366, 1366, 1366, 1366, 1366, 1366, 1366, 1366,
 /*  2200 */  1366, 1366,   29, 1366,  281,  282,  637,   30, 1366, 1366,
 /*  2210 */   634,  639,  931, 1366,  218,  641,
};
static const YYCODETYPE yy_lookahead[] = {
 /*     0 */   212,  269,  270,  271,  210,  269,  270,  271,  220,    9,
 /*    10 */    10,   11,   12,   13,   14,   15,   16,   17,   18,   19,
 /*    20 */    20,   21,   22,   23,   24,  293,   26,   27,   28,   29,
 /*    30 */    30,   31,   32,   33,   34,   35,   36,   37,  308,  309,
 /*    40 */    13,   14,   15,   16,  194,   45,   30,   31,   32,   33,
 /*    50 */    34,   35,   36,   37,  204,  205,   56,   32,   33,   34,
 /*    60 */    35,   36,   37,  269,  270,  271,    9,   10,   11,   12,
 /*    70 */    13,   14,   15,   16,   17,   18,   19,   20,   21,   22,
 /*    80 */    23,   24,   52,   26,   27,   28,   29,   30,   31,   32,
 /*    90 */    33,   34,   35,   36,   37,    9,   10,   11,   12,   13,
 /*   100 */    14,   15,   16,   17,   18,   19,   20,   21,   22,   23,
 /*   110 */    24,   40,   26,   27,   28,   29,   30,   31,   32,   33,
 /*   120 */    34,   35,   36,   37,   10,   11,   12,   13,   14,   15,
 /*   130 */    16,   17,   18,   19,   20,   21,   22,   23,   24,  194,
 /*   140 */    26,   27,   28,   29,   30,   31,   32,   33,   34,   35,
 /*   150 */    36,   37,   95,  123,   97,  194,  129,  194,  213,  214,
 /*   160 */    74,   90,    9,   10,   11,   12,   13,   14,   15,   16,
 /*   170 */    17,   18,   19,   20,   21,   22,   23,   24,  109,   26,
 /*   180 */    27,   28,   29,   30,   31,   32,   33,   34,   35,   36,
 /*   190 */    37,   37,  115,  248,  125,   11,  125,   13,  129,  128,
 /*   200 */    40,  115,   21,   22,   23,   24,   25,   26,   27,   28,
 /*   210 */    29,   30,   31,   32,   33,   34,   35,   36,   37,  230,
 /*   220 */   149,  144,  145,   39,  263,   72,  263,  158,  159,  160,
 /*   230 */   111,  112,  150,  114,  115,    9,   10,   11,   12,   13,
 /*   240 */    14,   15,   16,   17,   18,   19,   20,   21,   22,   23,
 /*   250 */    24,  169,   26,   27,   28,   29,   30,   31,   32,   33,
 /*   260 */    34,   35,   36,   37,    9,   10,   11,   12,   13,   14,
 /*   270 */    15,   16,   17,   18,   19,   20,   21,   22,   23,   24,
 /*   280 */   291,   26,   27,   28,   29,   30,   31,   32,   33,   34,
 /*   290 */    35,   36,   37,    9,   10,   11,   12,   13,   14,   15,
 /*   300 */    16,   17,   18,   19,   20,   21,   22,   23,   24,   40,
 /*   310 */    26,   27,   28,   29,   30,   31,   32,   33,   34,   35,
 /*   320 */    36,   37,  213,  139,    9,   10,   11,   12,   13,   14,
 /*   330 */    15,   16,   17,   18,   19,   20,   21,   22,   23,   24,
 /*   340 */   114,   26,   27,   28,   29,   30,   31,   32,   33,   34,
 /*   350 */    35,   36,   37,    9,   10,   11,   12,   13,   14,   15,
 /*   360 */    16,   17,   18,   19,   20,   21,   22,   23,   24,  114,
 /*   370 */    26,   27,   28,   29,   30,   31,   32,   33,   34,   35,
 /*   380 */    36,   37,    9,   10,   11,   12,   13,   14,   15,   16,
 /*   390 */    17,   18,   19,   20,   21,   22,   23,   24,  114,   26,
 /*   400 */    27,   28,   29,   30,   31,   32,   33,   34,   35,   36,
 /*   410 */    37,  136,  137,    9,   10,   11,   12,   13,   14,   15,
 /*   420 */    16,   17,   18,   19,   20,   21,   22,   23,   24,  114,
 /*   430 */    26,   27,   28,   29,   30,   31,   32,   33,   34,   35,
 /*   440 */    36,   37,  170,  171,    9,   10,   11,   12,   13,   14,
 /*   450 */    15,   16,   17,   18,   19,   20,   21,   22,   23,   24,
 /*   460 */   116,   26,   27,   28,   29,   30,   31,   32,   33,   34,
 /*   470 */    35,   36,   37,    9,   10,   11,   12,   13,   14,   15,
 /*   480 */    16,   17,   18,   19,   20,   21,   22,   23,   24,  216,
 /*   490 */    26,   27,   28,   29,   30,   31,   32,   33,   34,   35,
 /*   500 */    36,   37,   26,   27,   28,   29,   30,   31,   32,   33,
 /*   510 */    34,   35,   36,   37,  194,  183,  194,  216,  114,  194,
 /*   520 */   194,  194,  220,  194,  222,  235,  194,  237,  155,   89,
 /*   530 */   244,  229,  246,  213,  214,  213,  214,  247,  213,  214,
 /*   540 */   213,  214,  269,  270,  271,  213,  214,  300,  301,  114,
 /*   550 */    21,   22,   23,   24,   39,   26,   27,   28,   29,   30,
 /*   560 */    31,   32,   33,   34,   35,   36,   37,  235,  248,  237,
 /*   570 */   269,  270,  271,  248,  194,  248,  256,  213,  114,  247,
 /*   580 */   248,  256,  202,  256,  144,  145,  206,  258,    9,   10,
 /*   590 */    11,   12,   13,   14,   15,   16,   17,   18,   19,   20,
 /*   600 */    21,   22,   23,   24,  278,   26,   27,   28,   29,   30,
 /*   610 */    31,   32,   33,   34,   35,   36,   37,    9,   10,   11,
 /*   620 */    12,   13,   14,   15,   16,   17,   18,   19,   20,   21,
 /*   630 */    22,   23,   24,  118,   26,   27,   28,   29,   30,   31,
 /*   640 */    32,   33,   34,   35,   36,   37,    9,   10,   11,   12,
 /*   650 */    13,   14,   15,   16,   17,   18,   19,   20,   21,   22,
 /*   660 */    23,   24,   40,   26,   27,   28,   29,   30,   31,   32,
 /*   670 */    33,   34,   35,   36,   37,    9,   10,   11,   12,   13,
 /*   680 */    14,   15,   16,   17,   18,   19,   20,   21,   22,   23,
 /*   690 */    24,  213,   26,   27,   28,   29,   30,   31,   32,   33,
 /*   700 */    34,   35,   36,   37,    9,   10,   11,   12,   13,   14,
 /*   710 */    15,   16,   17,   18,   19,   20,   21,   22,   23,   24,
 /*   720 */   108,   26,   27,   28,   29,   30,   31,   32,   33,   34,
 /*   730 */    35,   36,   37,  121,   11,   81,    3,   40,   40,   30,
 /*   740 */    31,  254,  255,  164,  194,  194,  194,  125,   39,   40,
 /*   750 */   128,  194,   98,  116,  126,  101,  194,   11,  130,  131,
 /*   760 */   132,  194,   39,  213,  214,  213,  214,  183,  140,  115,
 /*   770 */   194,  149,  164,   43,   77,  213,  214,   47,  156,  228,
 /*   780 */   213,  214,  206,  230,   11,   12,   13,   14,   15,   16,
 /*   790 */    17,   18,   19,   20,   21,   22,   23,   24,   68,   26,
 /*   800 */    27,   28,   29,   30,   31,   32,   33,   34,   35,   36,
 /*   810 */    37,    0,    1,   11,  194,  248,    5,  226,   85,  235,
 /*   820 */    87,  237,  125,  125,  126,  128,  128,    2,  130,  131,
 /*   830 */   132,  247,   30,   31,  125,  210,  127,  128,  140,    4,
 /*   840 */    38,  118,   40,    8,  291,  136,  149,  149,  264,  194,
 /*   850 */   117,  128,  119,   51,  234,   44,    2,   46,  149,   48,
 /*   860 */   310,  304,  194,  313,  312,  313,   41,  158,   57,  160,
 /*   870 */   194,   60,  310,   62,  128,  313,  111,  112,   76,  114,
 /*   880 */   115,  213,  214,   11,   81,  183,   75,   15,   63,   78,
 /*   890 */    65,   89,  198,   82,   83,  227,  194,   86,   40,   96,
 /*   900 */    89,   98,   30,   31,  101,  183,  194,   82,  283,  194,
 /*   910 */    38,  109,   40,  288,  112,  213,  214,  205,  107,   40,
 /*   920 */   194,  194,   87,   51,  304,  194,  124,  125,  213,  214,
 /*   930 */   128,  129,  121,  122,   40,   30,   31,  235,   40,  237,
 /*   940 */   213,  214,  227,   89,  213,  214,  144,  145,   76,  247,
 /*   950 */   248,  149,  117,  150,  119,  144,  145,  235,  256,  237,
 /*   960 */   158,  159,  160,  161,  162,  209,   94,  109,    1,  247,
 /*   970 */   276,   99,    5,  251,  252,   81,  282,  166,  167,  248,
 /*   980 */   115,  109,  194,  125,  112,   81,  128,  129,  194,  135,
 /*   990 */    96,  112,   98,  239,  206,  101,  124,  125,  144,  145,
 /*  1000 */   128,  129,   98,  249,  125,  101,   50,  128,   40,  194,
 /*  1010 */   112,   44,  147,   46,  226,   48,  158,  159,  160,  125,
 /*  1020 */   194,  149,  128,  125,   57,   69,  128,   60,  149,   62,
 /*  1030 */   158,  159,  160,  161,  162,   79,  280,  281,  194,   11,
 /*  1040 */    40,  194,   75,  149,  150,   78,   55,  149,  233,   82,
 /*  1050 */    83,  194,   61,   86,   32,   32,   89,   66,   30,   31,
 /*  1060 */   213,  214,   40,  158,  194,  160,   38,  194,   40,   40,
 /*  1070 */   213,  214,  194,  235,  107,  237,  194,   77,   11,   51,
 /*  1080 */   112,   85,  194,   87,  227,  247,  213,  214,  121,  122,
 /*  1090 */   194,  213,  214,  125,  138,  194,  128,   30,   31,  223,
 /*  1100 */   227,  213,  214,  233,   76,   38,  194,   40,  320,  213,
 /*  1110 */   214,  144,  145,  117,  181,   40,  183,  149,   51,   11,
 /*  1120 */   273,  183,   94,  190,  191,  125,  194,   99,  128,  196,
 /*  1130 */   197,  305,  306,  166,  167,  194,  248,  109,   30,   31,
 /*  1140 */   112,  112,  194,   76,  248,  116,   38,  125,   40,  149,
 /*  1150 */   128,  120,  124,  125,  125,  194,  128,  129,  194,   51,
 /*  1160 */   194,   94,   30,   31,  294,  142,   99,  194,  235,  146,
 /*  1170 */   237,  149,  141,  235,  143,  237,  109,  149,   11,  112,
 /*  1180 */   247,  233,  194,  115,   76,  247,  158,  159,  160,  161,
 /*  1190 */   162,  124,  125,  194,  261,  128,  129,   30,   31,   32,
 /*  1200 */   125,  213,  214,  128,  263,   38,   32,   40,  307,  308,
 /*  1210 */   309,  279,  280,  281,   40,  227,  149,  109,   51,   11,
 /*  1220 */   112,  194,  154,  148,  149,  158,  159,  160,  161,  162,
 /*  1230 */   297,  194,  124,  125,  194,  183,  128,  129,   30,   31,
 /*  1240 */   213,  214,  194,   76,  112,   11,   38,   32,   40,  194,
 /*  1250 */   317,  318,  319,  289,  146,   40,  257,  149,  194,   51,
 /*  1260 */   194,  213,  214,  194,   30,   31,  158,  159,  160,  161,
 /*  1270 */   162,    2,   38,  194,   40,  227,  109,  213,  214,  112,
 /*  1280 */   307,  308,  309,  228,   76,   51,  194,  235,  194,  237,
 /*  1290 */    69,  124,  125,  194,  120,  128,  129,    1,  258,  247,
 /*  1300 */   263,    5,  115,   40,   11,  213,  214,  213,  214,   89,
 /*  1310 */    76,  113,  213,  214,  116,   94,  149,  109,  209,  194,
 /*  1320 */   112,  227,  194,  183,  103,  158,  159,  160,  161,  162,
 /*  1330 */    37,  194,  124,  125,  147,  120,  128,  129,  213,  214,
 /*  1340 */    44,  194,   46,  109,   48,  194,  112,  127,  279,  280,
 /*  1350 */   281,   40,  227,   57,  146,  289,   60,  149,  124,  125,
 /*  1360 */    11,   40,  128,  129,  144,  145,  158,  159,  160,  161,
 /*  1370 */   162,   75,  151,   40,   78,  235,  194,  237,   82,   83,
 /*  1380 */   233,  223,   86,  149,  194,   89,  258,  247,  125,  280,
 /*  1390 */   281,  128,  158,  159,  160,  161,  162,  104,  181,  194,
 /*  1400 */   183,  183,  210,  107,  135,  136,  137,  190,  191,  116,
 /*  1410 */   308,  309,  149,  196,  197,  233,  194,  121,  122,  126,
 /*  1420 */   127,  183,  129,  130,  131,  132,  133,  181,   40,  183,
 /*  1430 */   194,  194,  139,  112,  183,  183,  125,  191,  183,  128,
 /*  1440 */   144,  145,  196,  197,   84,  112,  125,  257,   88,  128,
 /*  1450 */   194,  183,  235,  235,  237,  237,  234,  306,  125,  148,
 /*  1460 */   149,  128,  257,  167,  247,  247,  114,  115,  223,  268,
 /*  1470 */   149,   13,  194,  235,   40,  237,  194,  128,  261,  119,
 /*  1480 */   288,  235,  149,  237,   41,  247,  235,  235,  237,  237,
 /*  1490 */   235,  131,  237,  247,  258,  213,  214,   39,  247,  247,
 /*  1500 */   148,  149,  247,  235,  194,  237,   63,  261,   65,  237,
 /*  1510 */   194,  233,  194,  125,  297,  247,  315,  316,  194,  247,
 /*  1520 */   194,  194,  194,  213,  214,   82,  304,  115,  194,  213,
 /*  1530 */   214,  213,  214,  194,  111,  194,  319,  213,  214,  213,
 /*  1540 */   214,  213,  214,  297,  194,  289,  134,  213,  214,  194,
 /*  1550 */   116,  194,  213,  214,  213,  214,  194,  194,  194,  125,
 /*  1560 */   194,  115,  194,  213,  214,  194,  194,  194,  213,  214,
 /*  1570 */   213,  214,  194,  194,  194,  213,  214,  213,  214,  213,
 /*  1580 */   214,  213,  214,  194,  213,  214,  213,  214,  194,  166,
 /*  1590 */   194,  213,  214,  213,  214,  194,  150,  234,  194,  163,
 /*  1600 */   194,  165,  213,  214,  194,  308,  309,  213,  214,  213,
 /*  1610 */   214,  115,  194,  234,  213,  214,  194,  213,  214,  213,
 /*  1620 */   214,  194,  255,  213,  214,   60,  259,  194,   40,  194,
 /*  1630 */   258,  213,  214,  194,   40,  213,  214,  186,  194,  188,
 /*  1640 */   213,  214,  194,  194,  148,  149,  213,  214,  213,  214,
 /*  1650 */   194,  268,  213,  214,  194,   45,  194,  213,  214,  194,
 /*  1660 */   268,  194,  213,  214,   39,  194,   56,  304,  194,  213,
 /*  1670 */   214,  194,   40,  213,  214,  213,  214,  194,  213,  214,
 /*  1680 */   213,  214,  112,  304,  213,  214,  116,  213,  214,    3,
 /*  1690 */   213,  214,   35,   36,   37,    9,  213,  214,  315,  316,
 /*  1700 */   112,  136,  137,  135,  136,  137,  129,  315,  316,  111,
 /*  1710 */   112,  117,  114,  125,  111,  112,  139,  114,  135,  136,
 /*  1720 */   137,  308,  309,  308,  309,  207,  208,  239,  255,   20,
 /*  1730 */   207,  208,  259,  144,  145,  176,  177,  249,  298,  299,
 /*  1740 */   239,  239,  251,  252,  239,  114,  115,  154,  155,  142,
 /*  1750 */   249,  249,   55,  146,  249,  114,  115,  125,  114,  115,
 /*  1760 */   114,  115,  127,   66,  129,  137,  137,  114,  115,   58,
 /*  1770 */   114,  115,  114,  115,  114,  115,  114,  115,  114,  115,
 /*  1780 */   155,  114,  115,  114,  115,  157,  157,   11,   40,  114,
 /*  1790 */   115,  114,  115,  114,  115,   92,   93,  114,  158,   40,
 /*  1800 */   160,  114,  115,  158,  264,  160,  114,  115,  112,  113,
 /*  1810 */   194,  194,  114,  115,  194,  194,  194,  194,  194,  253,
 /*  1820 */   194,  112,  250,  112,  194,  314,  291,  194,  194,  211,
 /*  1830 */   194,  194,  194,  150,  285,  284,  194,  194,  236,  295,
 /*  1840 */   250,  194,  194,  194,  194,  194,  194,  250,  194,  194,
 /*  1850 */   250,  250,  238,  194,  290,  194,  241,  194,  266,  194,
 /*  1860 */   194,  189,  194,  192,  225,  266,  262,  240,  262,  290,
 /*  1870 */   175,  266,  112,  125,  201,  266,   39,  115,  112,   67,
 /*  1880 */   180,  182,  106,  275,  125,  134,   52,  217,  113,   54,
 /*  1890 */   295,  295,  216,  156,  155,  112,  222,  216,  216,    9,
 /*  1900 */   110,  154,   64,  292,  292,  163,  287,   83,  203,  110,
 /*  1910 */    40,  111,  118,  172,  200,  112,  215,  215,  200,  241,
 /*  1920 */   240,  215,  218,  200,  200,  215,  199,  184,  221,  221,
 /*  1930 */   215,  218,  238,  240,  244,  244,  224,  217,  254,  254,
 /*  1940 */   215,  224,  254,  254,  215,  200,  200,  177,  199,  199,
 /*  1950 */   195,  199,  231,  200,  200,  199,  195,  193,  218,  187,
 /*  1960 */   193,  193,  185,  231,  179,  179,  231,  241,  177,  116,
 /*  1970 */    37,  153,  241,  150,  200,  241,  232,  241,  100,   91,
 /*  1980 */   170,  112,  163,  152,  151,   40,  267,  265,  139,  232,
 /*  1990 */   232,  218,  200,  178,  278,  267,  133,  267,  265,  178,
 /*  2000 */    72,  232,  175,  175,  175,  112,  112,  112,   72,  112,
 /*  2010 */   114,  166,  166,  115,  114,  112,   40,  116,  105,  211,
 /*  2020 */   219,   42,  211,  245,  286,  244,  219,  210,  112,   72,
 /*  2030 */   210,   53,  210,  168,  123,  210,  210,  242,  245,  243,
 /*  2040 */   117,  114,  277,  241,  260,  114,  138,  260,  277,  145,
 /*  2050 */   115,  117,  147,  116,  147,  156,  118,  166,  138,  138,
 /*  2060 */   272,   58,   53,  274,   20,  156,  303,   20,   20,   20,
 /*  2070 */   138,  128,   49,  113,   48,  112,  166,   39,  119,   73,
 /*  2080 */   115,   73,   80,   59,   39,  116,  124,   11,   70,  123,
 /*  2090 */   311,  311,   71,  296,  296,  124,  113,   40,  316,   39,
 /*  2100 */   119,   40,  113,    6,    3,  299,  302,  302,   40,  296,
 /*  2110 */    40,   40,  115,   40,  116,    7,   39,  112,  114,   40,
 /*  2120 */    40,   40,  112,   40,   40,   40,   40,  116,  116,  112,
 /*  2130 */   114,  112,  148,  106,  114,  113,   49,   49,   49,  114,
 /*  2140 */   112,  128,  112,   49,  115,  114,  154,  114,  116,  115,
 /*  2150 */   115,  114,  112,  114,   49,   49,   97,   95,   80,   10,
 /*  2160 */   102,  115,   80,   49,   49,  114,  114,  114,  114,   60,
 /*  2170 */   115,  115,    7,   40,   40,   40,  112,  114,  112,  114,
 /*  2180 */    40,  114,  113,  147,  142,    3,  114,  112,  147,    2,
 /*  2190 */   116,  321,  321,  321,  321,  321,  321,  321,  321,  321,
 /*  2200 */   321,  321,  112,  321,  113,  113,  113,  112,  321,  321,
 /*  2210 */   114,  112,  114,  321,  112,  115,  321,  321,  321,  321,
 /*  2220 */   321,  321,  321,  321,  321,  321,  321,  321,  321,  321,
 /*  2230 */   321,  321,  321,  321,  321,  321,  321,  321,  321,  321,
 /*  2240 */   321,  321,  321,  321,  321,  321,  321,  321,  321,  321,
 /*  2250 */   321,  321,  321,  321,  321,  321,  321,  321,  321,  321,
 /*  2260 */   321,  321,  321,  321,  321,  321,  321,  321,  321,  321,
 /*  2270 */   321,  321,  321,  321,  321,  321,  321,  321,  321,  321,
 /*  2280 */   321,  321,  321,  321,  321,  321,  321,  321,  321,  321,
 /*  2290 */   321,  321,  321,  321,  321,  321,  321,  321,  321,  321,
 /*  2300 */   321,  321,  321,  321,  321,  321,  321,  321,  321,  321,
 /*  2310 */   321,  321,  321,  321,  321,  321,  321,  321,  321,  321,
 /*  2320 */   321,  321,  321,  321,  321,  321,  321,  321,  321,  321,
 /*  2330 */   321,  321,  321,  321,  321,  321,  321,  321,  321,  321,
 /*  2340 */   321,  321,  321,  321,  321,  321,  321,  321,  321,  321,
 /*  2350 */   321,  321,  321,  321,  321,  321,  321,  321,  321,  321,
 /*  2360 */   321,  321,  321,  321,  321,  321,  321,  321,  321,  321,
 /*  2370 */   321,  321,  321,  321,  321,  321,  321,  321,  321,  321,
 /*  2380 */   321,  321,  321,  321,  321,  321,  321,  321,  321,  321,
 /*  2390 */   321,
};
#define YY_SHIFT_COUNT    (646)
#define YY_SHIFT_MIN      (0)
#define YY_SHIFT_MAX      (2187)
static const unsigned short int yy_shift_ofst[] = {
 /*     0 */   967,  811, 1296,  802,  802,  440,  872, 1028, 1067, 1234,
 /*    10 */  1234, 1234,  854,    0,    0,  153,  666, 1234, 1234, 1234,
 /*    20 */  1234, 1234, 1234, 1234, 1234, 1234, 1234, 1234, 1234, 1234,
 /*    30 */  1234,  709,  709,  698,  894,  894, 1220,  440,  440,  440,
 /*    40 */   440,  440,  440,  440,  440,   57,   86,  226,  255,  284,
 /*    50 */   315,  344,  373,  404,  435,  464,  579,  608,  637,  666,
 /*    60 */   666,  666,  666,  666,  666,  666,  666,  666,  666,  666,
 /*    70 */   666,  666,  666,  666,  666,  666,  695,  666,  666,  114,
 /*    80 */   773,  773, 1167, 1108, 1208, 1234, 1234, 1234, 1234, 1234,
 /*    90 */  1234, 1234, 1234, 1234, 1234, 1234, 1234, 1234, 1234, 1234,
 /*   100 */  1234, 1234, 1234, 1234, 1234, 1234, 1234, 1234, 1234, 1234,
 /*   110 */  1234, 1234, 1234, 1234, 1234, 1234, 1234, 1234, 1234, 1234,
 /*   120 */  1234, 1234, 1234, 1234, 1234, 1234, 1234, 1234, 1234, 1234,
 /*   130 */  1234, 1234, 1234, 1234,  181,  529,  529,  529,  529,  529,
 /*   140 */   529,  529,  476,   16,   25,   71,  697, 1000,  184, 1263,
 /*   150 */  1263, 1263, 1360, 1263, 1263,  905,  905,   77,   77,   77,
 /*   160 */  1657,   77,  275,  272,  272,  272,  154,  154, 2216, 2216,
 /*   170 */  1293, 1293, 1293,   71,  825,  622,  879,  879,  879,  879,
 /*   180 */   825,  803, 1263,  119,  765, 1263, 1263, 1263, 1263, 1263,
 /*   190 */  1263, 1263, 1263, 1263, 1263, 1263, 1263, 1263, 1263, 1263,
 /*   200 */  1263, 1263, 1263, 1263,  723, 1263,  654,  654, 1565,  904,
 /*   210 */   904, 1388,  746,  746, 1388,   82, 1589,  160,  269, 2216,
 /*   220 */  2216, 2216, 2216, 2216, 2216, 2216,  858,   69,   69,  628,
 /*   230 */   898, 1022,  968, 1075, 1311, 1321, 1333, 1263, 1263, 1263,
 /*   240 */   956,  956,  956, 1263, 1263, 1263, 1263, 1263, 1263, 1263,
 /*   250 */  1263, 1263, 1263, 1263, 1263, 1263, 1269, 1263, 1263, 1263,
 /*   260 */  1263, 1263, 1263, 1263, 1263, 1263, 1263, 1263, 1263, 1263,
 /*   270 */  1263, 1263, 1352, 1263, 1263, 1263, 1029, 1221, 1263, 1263,
 /*   280 */  1443, 1263, 1263, 1132, 1568,  730,  991, 1174, 1031, 1434,
 /*   290 */  1434, 1434, 1434, 1496, 1023, 1031, 1031, 1631, 1412, 1570,
 /*   300 */  1458, 1610,   30, 1625, 1593,  865, 1593, 1349, 1068, 1625,
 /*   310 */  1625, 1068, 1625,  865, 1349, 1423, 1610, 1610,  515,  515,
 /*   320 */   515,  515, 1446, 1446, 1436, 1187, 1607, 1594, 1686, 1760,
 /*   330 */  1837, 1837, 1837, 1762, 1766, 1766, 1837, 1812, 1760, 1837,
 /*   340 */  1751, 1837, 1812, 1837, 1834, 1834, 1775, 1775, 1835, 1835,
 /*   350 */  1775, 1737, 1739, 1783, 1890, 1775, 1790, 1747, 1739, 1739,
 /*   360 */  1747, 1783, 1890, 1747, 1890, 1747, 1775, 1790, 1742, 1838,
 /*   370 */  1775, 1790, 1760, 1775, 1790, 1775, 1790, 1824, 1824, 1741,
 /*   380 */  1741, 1741, 1799, 1799, 1799, 1799, 1800, 1870, 1803,  269,
 /*   390 */  1803, 1794,  269, 1853, 1933, 1933, 1760, 1775, 1818, 1823,
 /*   400 */  1878, 1878, 1888, 1888, 1810, 1869, 1775, 1819, 1818, 1831,
 /*   410 */  1833, 1747, 1945, 1945, 2216, 2216, 2216, 2216, 2216, 2216,
 /*   420 */  2216, 2216, 2216, 2216, 2216, 2216, 2216, 2216, 2216, 2216,
 /*   430 */  2216, 2216,  733,   27,  835, 1598, 1603, 1583,  996, 1215,
 /*   440 */  1588, 1641, 1644, 1646, 1632, 1635, 1697, 1577,  612, 1709,
 /*   450 */  1198, 1628, 1629, 1653, 1711, 1656, 1658, 1660, 1662, 1664,
 /*   460 */  1667, 1669, 1776, 1748, 1675, 1677, 1679, 1703, 1683, 1640,
 /*   470 */  1645, 1687, 1692, 1696, 1698, 1759, 1849, 1863, 1893, 1928,
 /*   480 */  1894, 1895, 1896, 1897, 1936, 1898, 1900, 1845, 1846, 1903,
 /*   490 */  1976, 1901, 1913, 1979, 1916, 1957, 1978, 1865, 1911, 1923,
 /*   500 */  1927, 1931, 1904, 1899, 1908, 1935, 1935, 1937, 1905, 1938,
 /*   510 */  1934, 1891, 1907, 1920, 1935, 1921, 2003, 2009, 1935, 1909,
 /*   520 */  2044, 2047, 2048, 2049, 1932, 1943, 2023, 1960, 1910, 2026,
 /*   530 */  1963, 2038, 1959, 2006, 1965, 2008, 2002, 2024, 2045, 1969,
 /*   540 */  1962, 2076, 1966, 2018, 2021, 1971, 1983, 2057, 2060, 2061,
 /*   550 */  1981, 1989, 2097, 2101, 2068, 2070, 2071, 1997, 1998, 2073,
 /*   560 */  2108, 2004, 2005, 2079, 2080, 2010, 2081, 2077, 2083, 2011,
 /*   570 */  2084, 2012, 2085, 2086, 2017, 2016, 2019, 2027, 2022, 2020,
 /*   580 */  2025, 2013, 2087, 2028, 1984, 2029, 2088, 2031, 2030, 2032,
 /*   590 */  2034, 2033, 2035, 2037, 2089, 1992, 2040, 2039, 2094, 2105,
 /*   600 */  2106, 2059, 2078, 2062, 2149, 2082, 2058, 2046, 2114, 2115,
 /*   610 */  2036, 2041, 2051, 2029, 2052, 2053, 2054, 2055, 2063, 2064,
 /*   620 */  2109, 2065, 2066, 2067, 2072, 2075, 2090, 2056, 2069, 2091,
 /*   630 */  2092, 2095, 2042, 2074, 2165, 2096, 2098, 2133, 2093, 2134,
 /*   640 */  2099, 2135, 2100, 2102, 2140, 2182, 2187,
};
#define YY_REDUCE_COUNT (431)
#define YY_REDUCE_MIN   (-270)
#define YY_REDUCE_MAX   (1829)
static const short yy_reduce_ofst[] = {
 /*     0 */   933, 1217, 1246,  702,  332,  722,  550,  552,  562,  320,
 /*    10 */   325,  327,  584,  273,  301, -268, -206,  668,  715,  857,
 /*    20 */   873,  -55,  988, 1048, 1094,  567, 1125,  731,  847,  888,
 /*    30 */   896,  932, 1069,  788,  901,  973,  938, 1052, 1140, 1218,
 /*    40 */  1238, 1251, 1252, 1255, 1268, -264, -264, -264, -264, -264,
 /*    50 */  -264, -264, -264, -264, -264, -264, -264, -264, -264, -264,
 /*    60 */  -264, -264, -264, -264, -264, -264, -264, -264, -264, -264,
 /*    70 */  -264, -264, -264, -264, -264, -264, -264, -264, -264, -264,
 /*    80 */  -264, -264,  322,  727,  878, 1027, 1064, 1092, 1099, 1282,
 /*    90 */  1310, 1316, 1318, 1324, 1326, 1328, 1334, 1339, 1341, 1350,
 /*   100 */  1355, 1357, 1362, 1364, 1366, 1368, 1371, 1373, 1378, 1380,
 /*   110 */  1389, 1394, 1396, 1401, 1404, 1406, 1410, 1418, 1422, 1427,
 /*   120 */  1433, 1435, 1439, 1444, 1449, 1456, 1460, 1462, 1465, 1467,
 /*   130 */  1471, 1474, 1477, 1483, -264, -264, -264, -264, -264, -264,
 /*   140 */  -264, -264, -264, -264, -264, -150,  620, 1222,  302,  380,
 /*   150 */   870, 1363,  694, 1379,  826,  756, 1109,  290,  838,  290,
 /*   160 */  -264,  838,  625, 1201, 1383, 1392, -264, -264, -264, -264,
 /*   170 */  -212, -212, -212,  712,  -11,  326,  -39,  -37,  941, 1037,
 /*   180 */   553, -270,  551,  247,  247,  576,  999, 1190, 1205,  964,
 /*   190 */   329, 1066, 1040, 1128, 1256, 1236,  815,  948, 1147, 1182,
 /*   200 */  1278, 1055,  557, 1372,  487, 1151, 1102, 1297, 1192, 1413,
 /*   210 */  1415, 1518, 1367, 1473, 1523,  286, 1272, 1451, 1559, 1440,
 /*   220 */   754, 1488, 1501, 1502, 1491, 1505,  109,  364,  478,  591,
 /*   230 */   655,  676,  726,  794,  844,  882,  912,  961,  966, 1079,
 /*   240 */   876, 1158, 1245, 1137, 1237, 1327, 1448, 1616, 1617, 1620,
 /*   250 */  1621, 1622, 1623, 1624, 1626, 1630, 1540, 1633, 1634, 1636,
 /*   260 */  1637, 1638, 1642, 1643, 1647, 1648, 1649, 1650, 1651, 1652,
 /*   270 */  1654, 1655, 1566, 1659, 1661, 1663, 1572, 1511, 1665, 1666,
 /*   280 */  1535, 1668,  676, 1618, 1549, 1551, 1671, 1672, 1602, 1590,
 /*   290 */  1597, 1600, 1601, 1566, 1614, 1602, 1602, 1639, 1670, 1673,
 /*   300 */  1674, 1676, 1544, 1592, 1604, 1627, 1606, 1564, 1615, 1599,
 /*   310 */  1605, 1678, 1609, 1680, 1579, 1695, 1681, 1682, 1684, 1685,
 /*   320 */  1688, 1689, 1690, 1691, 1608, 1693, 1694, 1699, 1700, 1704,
 /*   330 */  1701, 1702, 1706, 1705, 1707, 1708, 1710, 1712, 1713, 1715,
 /*   340 */  1720, 1725, 1717, 1729, 1595, 1596, 1714, 1718, 1611, 1612,
 /*   350 */  1723, 1716, 1719, 1722, 1721, 1724, 1727, 1726, 1728, 1730,
 /*   360 */  1731, 1733, 1732, 1734, 1735, 1736, 1745, 1749, 1619, 1738,
 /*   370 */  1746, 1750, 1740, 1753, 1752, 1754, 1756, 1755, 1761, 1764,
 /*   380 */  1767, 1768, 1744, 1757, 1758, 1769, 1772, 1777, 1785, 1770,
 /*   390 */  1786, 1743, 1791, 1763, 1765, 1771, 1773, 1774, 1778, 1781,
 /*   400 */  1779, 1780, 1784, 1787, 1782, 1788, 1792, 1789, 1793, 1796,
 /*   410 */  1795, 1802, 1815, 1821, 1797, 1798, 1801, 1804, 1805, 1806,
 /*   420 */  1807, 1808, 1811, 1813, 1817, 1820, 1822, 1825, 1827, 1828,
 /*   430 */  1826, 1829,
};
static const YYACTIONTYPE yy_default[] = {
 /*     0 */  1801, 1801, 1801, 1631, 1364, 1507, 1364, 1364, 1364, 1631,
 /*    10 */  1631, 1631, 1364, 1537, 1537, 1684, 1429, 1364, 1364, 1364,
 /*    20 */  1364, 1364, 1364, 1364, 1364, 1364, 1364, 1364, 1630, 1364,
 /*    30 */  1364, 1364, 1364, 1364, 1717, 1717, 1364, 1364, 1364, 1364,
 /*    40 */  1364, 1364, 1364, 1364, 1364, 1364, 1546, 1364, 1364, 1364,
 /*    50 */  1364, 1364, 1553, 1632, 1633, 1364, 1364, 1364, 1364, 1683,
 /*    60 */  1685, 1648, 1560, 1559, 1558, 1557, 1666, 1525, 1551, 1544,
 /*    70 */  1548, 1632, 1627, 1628, 1626, 1779, 1364, 1633, 1547, 1595,
 /*    80 */  1594, 1611, 1364, 1364, 1364, 1364, 1364, 1364, 1364, 1364,
 /*    90 */  1364, 1364, 1364, 1364, 1364, 1364, 1364, 1364, 1364, 1364,
 /*   100 */  1364, 1364, 1364, 1364, 1364, 1364, 1364, 1364, 1364, 1364,
 /*   110 */  1364, 1364, 1364, 1364, 1364, 1364, 1364, 1364, 1364, 1364,
 /*   120 */  1364, 1364, 1364, 1364, 1364, 1364, 1364, 1364, 1364, 1364,
 /*   130 */  1364, 1364, 1364, 1364, 1603, 1610, 1609, 1608, 1617, 1607,
 /*   140 */  1604, 1597, 1596, 1598, 1599, 1420, 1364, 1364, 1471, 1364,
 /*   150 */  1364, 1364, 1417, 1364, 1364, 1364, 1364, 1703, 1702, 1364,
 /*   160 */  1600, 1364, 1429, 1588, 1587, 1586, 1614, 1601, 1613, 1612,
 /*   170 */  1753, 1752, 1691, 1364, 1364, 1649, 1364, 1364, 1364, 1364,
 /*   180 */  1364, 1717, 1364, 1364, 1364, 1364, 1364, 1364, 1364, 1364,
 /*   190 */  1364, 1364, 1364, 1364, 1364, 1364, 1364, 1364, 1364, 1364,
 /*   200 */  1364, 1364, 1364, 1364, 1527, 1364, 1717, 1717, 1429, 1717,
 /*   210 */  1717, 1425, 1528, 1528, 1425, 1531, 1364, 1391, 1368, 1698,
 /*   220 */  1498, 1498, 1498, 1498, 1507, 1498, 1364, 1364, 1364, 1364,
 /*   230 */  1364, 1364, 1364, 1364, 1364, 1364, 1364, 1364, 1364, 1364,
 /*   240 */  1364, 1364, 1364, 1364, 1364, 1364, 1364, 1364, 1364, 1364,
 /*   250 */  1688, 1686, 1364, 1364, 1364, 1364, 1364, 1364, 1364, 1364,
 /*   260 */  1364, 1364, 1364, 1364, 1364, 1364, 1364, 1364, 1364, 1746,
 /*   270 */  1364, 1364, 1364, 1364, 1364, 1364, 1503, 1364, 1364, 1364,
 /*   280 */  1364, 1364, 1364, 1430, 1364, 1661, 1403, 1364, 1485, 1503,
 /*   290 */  1503, 1503, 1503, 1505, 1497, 1486, 1484, 1768, 1446, 1364,
 /*   300 */  1441, 1537, 1793, 1563, 1552, 1504, 1552, 1790, 1550, 1563,
 /*   310 */  1563, 1550, 1563, 1504, 1790, 1364, 1537, 1537, 1527, 1527,
 /*   320 */  1527, 1527, 1531, 1531, 1629, 1504, 1497, 1364, 1413, 1639,
 /*   330 */  1472, 1472, 1472, 1464, 1364, 1364, 1472, 1461, 1639, 1472,
 /*   340 */  1446, 1472, 1461, 1472, 1793, 1793, 1513, 1513, 1792, 1792,
 /*   350 */  1513, 1649, 1776, 1572, 1474, 1513, 1414, 1550, 1776, 1776,
 /*   360 */  1550, 1572, 1474, 1550, 1474, 1550, 1513, 1414, 1665, 1787,
 /*   370 */  1513, 1414, 1639, 1513, 1414, 1513, 1414, 1749, 1749, 1745,
 /*   380 */  1745, 1745, 1480, 1480, 1480, 1480, 1364, 1364, 1374, 1364,
 /*   390 */  1374, 1381, 1364, 1364, 1643, 1643, 1639, 1513, 1545, 1531,
 /*   400 */  1727, 1727, 1540, 1540, 1735, 1634, 1513, 1364, 1545, 1543,
 /*   410 */  1541, 1550, 1364, 1364, 1761, 1761, 1448, 1798, 1798, 1698,
 /*   420 */  1448, 1430, 1430, 1761, 1429, 1429, 1429, 1429, 1367, 1367,
 /*   430 */  1429, 1367, 1364, 1364, 1364, 1364, 1364, 1364, 1364, 1364,
 /*   440 */  1756, 1364, 1364, 1364, 1364, 1364, 1364, 1364, 1693, 1650,
 /*   450 */  1517, 1364, 1364, 1364, 1364, 1364, 1364, 1364, 1364, 1364,
 /*   460 */  1364, 1364, 1704, 1364, 1364, 1364, 1364, 1364, 1364, 1364,
 /*   470 */  1364, 1364, 1364, 1577, 1364, 1364, 1364, 1364, 1364, 1364,
 /*   480 */  1364, 1364, 1364, 1364, 1364, 1418, 1364, 1364, 1364, 1695,
 /*   490 */  1444, 1364, 1364, 1364, 1364, 1364, 1364, 1364, 1364, 1364,
 /*   500 */  1364, 1364, 1364, 1364, 1364, 1554, 1555, 1518, 1364, 1364,
 /*   510 */  1364, 1364, 1364, 1364, 1569, 1364, 1364, 1364, 1564, 1364,
 /*   520 */  1364, 1364, 1364, 1364, 1364, 1364, 1364, 1789, 1364, 1364,
 /*   530 */  1364, 1364, 1364, 1364, 1664, 1663, 1364, 1364, 1364, 1364,
 /*   540 */  1364, 1364, 1408, 1364, 1399, 1364, 1515, 1364, 1364, 1364,
 /*   550 */  1364, 1393, 1364, 1364, 1364, 1364, 1364, 1392, 1364, 1364,
 /*   560 */  1364, 1364, 1364, 1364, 1364, 1364, 1364, 1364, 1364, 1364,
 /*   570 */  1364, 1364, 1364, 1364, 1364, 1364, 1364, 1364, 1364, 1364,
 /*   580 */  1364, 1364, 1364, 1364, 1364, 1542, 1364, 1364, 1364, 1364,
 /*   590 */  1732, 1364, 1364, 1364, 1364, 1364, 1364, 1364, 1364, 1364,
 /*   600 */  1364, 1364, 1364, 1364, 1364, 1364, 1364, 1532, 1364, 1364,
 /*   610 */  1364, 1364, 1364, 1780, 1364, 1364, 1364, 1364, 1364, 1364,
 /*   620 */  1364, 1364, 1364, 1364, 1364, 1364, 1364, 1772, 1581, 1578,
 /*   630 */  1364, 1364, 1488, 1364, 1364, 1364, 1364, 1364, 1364, 1364,
 /*   640 */  1370, 1364, 1369, 1364, 1364, 1364, 1364,
};
/********** 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 */
   40,  /*    REPLACE => ID */
   40,  /*   PERFETTO => ID */
    0,  /*      MACRO => nothing */
    0,  /*    INCLUDE => nothing */
   40,  /*     MODULE => ID */
    0,  /*    RETURNS => nothing */
   40,  /*   FUNCTION => ID */
    0,  /*         OR => nothing */
    0,  /*        AND => nothing */
    0,  /*        NOT => nothing */
    0,  /*         IS => nothing */
   40,  /*      MATCH => ID */
   40,  /*    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 */
   40,  /*      ABORT => ID */
   40,  /*     ACTION => ID */
   40,  /*      AFTER => ID */
   40,  /*    ANALYZE => ID */
   40,  /*        ASC => ID */
   40,  /*     ATTACH => ID */
   40,  /*     BEFORE => ID */
   40,  /*      BEGIN => ID */
   40,  /*         BY => ID */
   40,  /*    CASCADE => ID */
   40,  /*       CAST => ID */
   40,  /*   COLUMNKW => ID */
   40,  /*   CONFLICT => ID */
   40,  /*   DATABASE => ID */
   40,  /*   DEFERRED => ID */
   40,  /*       DESC => ID */
   40,  /*     DETACH => ID */
   40,  /*         DO => ID */
   40,  /*       EACH => ID */
   40,  /*        END => ID */
   40,  /*  EXCLUSIVE => ID */
   40,  /*    EXPLAIN => ID */
   40,  /*       FAIL => ID */
   40,  /*        FOR => ID */
   40,  /*     IGNORE => ID */
   40,  /*  IMMEDIATE => ID */
   40,  /*  INITIALLY => ID */
   40,  /*    INSTEAD => ID */
   40,  /*         NO => ID */
   40,  /*       PLAN => ID */
   40,  /*      QUERY => ID */
   40,  /*        KEY => ID */
   40,  /*         OF => ID */
   40,  /*     OFFSET => ID */
   40,  /*     PRAGMA => ID */
   40,  /*      RAISE => ID */
   40,  /*  RECURSIVE => ID */
   40,  /*    RELEASE => ID */
   40,  /*   RESTRICT => ID */
   40,  /*        ROW => ID */
   40,  /*       ROWS => ID */
   40,  /*   ROLLBACK => ID */
   40,  /*  SAVEPOINT => ID */
   40,  /*       TEMP => ID */
   40,  /*    TRIGGER => ID */
   40,  /*     VACUUM => ID */
   40,  /*       VIEW => ID */
   40,  /*    VIRTUAL => ID */
   40,  /*       WITH => ID */
   40,  /*    WITHOUT => ID */
   40,  /*      NULLS => ID */
   40,  /*      FIRST => ID */
   40,  /*       LAST => ID */
   40,  /*    CURRENT => ID */
   40,  /*  FOLLOWING => ID */
   40,  /*  PARTITION => ID */
   40,  /*  PRECEDING => ID */
   40,  /*      RANGE => ID */
   40,  /*  UNBOUNDED => ID */
   40,  /*    EXCLUDE => ID */
   40,  /*     GROUPS => ID */
   40,  /*     OTHERS => ID */
   40,  /*       TIES => ID */
   40,  /*  GENERATED => ID */
   40,  /*     ALWAYS => ID */
   40,  /* MATERIALIZED => ID */
   40,  /*    REINDEX => ID */
   40,  /*     RENAME => ID */
   40,  /*   CTIME_KW => ID */
   40,  /*         IF => ID */
    0,  /*        ANY => nothing */
    0,  /*         LP => nothing */
    0,  /*        DOT => nothing */
    0,  /*         RP => nothing */
    0,  /*      COMMA => nothing */
    0,  /*         AS => nothing */
    0,  /*      TABLE => nothing */
    0,  /*      USING => nothing */
    0,  /*      INDEX => nothing */
    0,  /*  INTERSECT => nothing */
    0,  /*       DROP => nothing */
    0,  /*     COMMIT => nothing */
    0,  /*         TO => 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,  /* TRANSACTION => nothing */
    0,  /*      SPACE => 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 */
#if YYSTACKDEPTH<=0
  int yystksz;                  /* Current side of the stack */
  yyStackEntry *yystack;        /* The parser's stack */
  yyStackEntry yystk0;          /* First stack entry */
#else
  yyStackEntry yystack[YYSTACKDEPTH];  /* The parser's stack */
  yyStackEntry *yystackEnd;            /* Last entry in the stack */
#endif
};
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 */ "OR",
  /*   10 */ "AND",
  /*   11 */ "NOT",
  /*   12 */ "IS",
  /*   13 */ "MATCH",
  /*   14 */ "LIKE_KW",
  /*   15 */ "BETWEEN",
  /*   16 */ "IN",
  /*   17 */ "ISNULL",
  /*   18 */ "NOTNULL",
  /*   19 */ "NE",
  /*   20 */ "EQ",
  /*   21 */ "GT",
  /*   22 */ "LE",
  /*   23 */ "LT",
  /*   24 */ "GE",
  /*   25 */ "ESCAPE",
  /*   26 */ "BITAND",
  /*   27 */ "BITOR",
  /*   28 */ "LSHIFT",
  /*   29 */ "RSHIFT",
  /*   30 */ "PLUS",
  /*   31 */ "MINUS",
  /*   32 */ "STAR",
  /*   33 */ "SLASH",
  /*   34 */ "REM",
  /*   35 */ "CONCAT",
  /*   36 */ "PTR",
  /*   37 */ "COLLATE",
  /*   38 */ "BITNOT",
  /*   39 */ "ON",
  /*   40 */ "ID",
  /*   41 */ "ABORT",
  /*   42 */ "ACTION",
  /*   43 */ "AFTER",
  /*   44 */ "ANALYZE",
  /*   45 */ "ASC",
  /*   46 */ "ATTACH",
  /*   47 */ "BEFORE",
  /*   48 */ "BEGIN",
  /*   49 */ "BY",
  /*   50 */ "CASCADE",
  /*   51 */ "CAST",
  /*   52 */ "COLUMNKW",
  /*   53 */ "CONFLICT",
  /*   54 */ "DATABASE",
  /*   55 */ "DEFERRED",
  /*   56 */ "DESC",
  /*   57 */ "DETACH",
  /*   58 */ "DO",
  /*   59 */ "EACH",
  /*   60 */ "END",
  /*   61 */ "EXCLUSIVE",
  /*   62 */ "EXPLAIN",
  /*   63 */ "FAIL",
  /*   64 */ "FOR",
  /*   65 */ "IGNORE",
  /*   66 */ "IMMEDIATE",
  /*   67 */ "INITIALLY",
  /*   68 */ "INSTEAD",
  /*   69 */ "NO",
  /*   70 */ "PLAN",
  /*   71 */ "QUERY",
  /*   72 */ "KEY",
  /*   73 */ "OF",
  /*   74 */ "OFFSET",
  /*   75 */ "PRAGMA",
  /*   76 */ "RAISE",
  /*   77 */ "RECURSIVE",
  /*   78 */ "RELEASE",
  /*   79 */ "RESTRICT",
  /*   80 */ "ROW",
  /*   81 */ "ROWS",
  /*   82 */ "ROLLBACK",
  /*   83 */ "SAVEPOINT",
  /*   84 */ "TEMP",
  /*   85 */ "TRIGGER",
  /*   86 */ "VACUUM",
  /*   87 */ "VIEW",
  /*   88 */ "VIRTUAL",
  /*   89 */ "WITH",
  /*   90 */ "WITHOUT",
  /*   91 */ "NULLS",
  /*   92 */ "FIRST",
  /*   93 */ "LAST",
  /*   94 */ "CURRENT",
  /*   95 */ "FOLLOWING",
  /*   96 */ "PARTITION",
  /*   97 */ "PRECEDING",
  /*   98 */ "RANGE",
  /*   99 */ "UNBOUNDED",
  /*  100 */ "EXCLUDE",
  /*  101 */ "GROUPS",
  /*  102 */ "OTHERS",
  /*  103 */ "TIES",
  /*  104 */ "GENERATED",
  /*  105 */ "ALWAYS",
  /*  106 */ "MATERIALIZED",
  /*  107 */ "REINDEX",
  /*  108 */ "RENAME",
  /*  109 */ "CTIME_KW",
  /*  110 */ "IF",
  /*  111 */ "ANY",
  /*  112 */ "LP",
  /*  113 */ "DOT",
  /*  114 */ "RP",
  /*  115 */ "COMMA",
  /*  116 */ "AS",
  /*  117 */ "TABLE",
  /*  118 */ "USING",
  /*  119 */ "INDEX",
  /*  120 */ "INTERSECT",
  /*  121 */ "DROP",
  /*  122 */ "COMMIT",
  /*  123 */ "TO",
  /*  124 */ "EXISTS",
  /*  125 */ "STRING",
  /*  126 */ "CONSTRAINT",
  /*  127 */ "DEFAULT",
  /*  128 */ "INDEXED",
  /*  129 */ "NULL",
  /*  130 */ "PRIMARY",
  /*  131 */ "UNIQUE",
  /*  132 */ "CHECK",
  /*  133 */ "REFERENCES",
  /*  134 */ "AUTOINCR",
  /*  135 */ "INSERT",
  /*  136 */ "DELETE",
  /*  137 */ "UPDATE",
  /*  138 */ "SET",
  /*  139 */ "DEFERRABLE",
  /*  140 */ "FOREIGN",
  /*  141 */ "UNION",
  /*  142 */ "ALL",
  /*  143 */ "EXCEPT",
  /*  144 */ "SELECT",
  /*  145 */ "VALUES",
  /*  146 */ "DISTINCT",
  /*  147 */ "FROM",
  /*  148 */ "JOIN",
  /*  149 */ "JOIN_KW",
  /*  150 */ "ORDER",
  /*  151 */ "GROUP",
  /*  152 */ "HAVING",
  /*  153 */ "LIMIT",
  /*  154 */ "WHERE",
  /*  155 */ "RETURNING",
  /*  156 */ "INTO",
  /*  157 */ "NOTHING",
  /*  158 */ "FLOAT",
  /*  159 */ "BLOB",
  /*  160 */ "INTEGER",
  /*  161 */ "VARIABLE",
  /*  162 */ "CASE",
  /*  163 */ "WHEN",
  /*  164 */ "THEN",
  /*  165 */ "ELSE",
  /*  166 */ "SEMI",
  /*  167 */ "ALTER",
  /*  168 */ "ADD",
  /*  169 */ "WINDOW",
  /*  170 */ "OVER",
  /*  171 */ "FILTER",
  /*  172 */ "TRANSACTION",
  /*  173 */ "SPACE",
  /*  174 */ "ILLEGAL",
  /*  175 */ "pscantok",
  /*  176 */ "sql_argument_list",
  /*  177 */ "sql_argument_list_nonempty",
  /*  178 */ "sql_argument_type",
  /*  179 */ "table_schema",
  /*  180 */ "or_replace",
  /*  181 */ "cmd",
  /*  182 */ "return_type",
  /*  183 */ "select",
  /*  184 */ "table_impl",
  /*  185 */ "indexed_column_list",
  /*  186 */ "macro_argument_list",
  /*  187 */ "macro_body",
  /*  188 */ "macro_argument_list_nonempty",
  /*  189 */ "module_name",
  /*  190 */ "explain",
  /*  191 */ "cmdx",
  /*  192 */ "transtype",
  /*  193 */ "trans_opt",
  /*  194 */ "nm",
  /*  195 */ "savepoint_opt",
  /*  196 */ "create_table",
  /*  197 */ "createkw",
  /*  198 */ "temp",
  /*  199 */ "ifnotexists",
  /*  200 */ "dbnm",
  /*  201 */ "create_table_args",
  /*  202 */ "columnlist",
  /*  203 */ "conslist_opt",
  /*  204 */ "table_option_set",
  /*  205 */ "table_option",
  /*  206 */ "columnname",
  /*  207 */ "typetoken",
  /*  208 */ "typename",
  /*  209 */ "signed",
  /*  210 */ "scanpt",
  /*  211 */ "scantok",
  /*  212 */ "ccons",
  /*  213 */ "term",
  /*  214 */ "expr",
  /*  215 */ "onconf",
  /*  216 */ "sortorder",
  /*  217 */ "autoinc",
  /*  218 */ "eidlist_opt",
  /*  219 */ "refargs",
  /*  220 */ "defer_subclause",
  /*  221 */ "generated",
  /*  222 */ "refarg",
  /*  223 */ "refact",
  /*  224 */ "init_deferred_pred_opt",
  /*  225 */ "tconscomma",
  /*  226 */ "tcons",
  /*  227 */ "sortlist",
  /*  228 */ "eidlist",
  /*  229 */ "defer_subclause_opt",
  /*  230 */ "resolvetype",
  /*  231 */ "orconf",
  /*  232 */ "ifexists",
  /*  233 */ "fullname",
  /*  234 */ "wqlist",
  /*  235 */ "selectnowith",
  /*  236 */ "multiselect_op",
  /*  237 */ "oneselect",
  /*  238 */ "distinct",
  /*  239 */ "selcollist",
  /*  240 */ "from",
  /*  241 */ "where_opt",
  /*  242 */ "groupby_opt",
  /*  243 */ "having_opt",
  /*  244 */ "orderby_opt",
  /*  245 */ "limit_opt",
  /*  246 */ "window_clause",
  /*  247 */ "values",
  /*  248 */ "nexprlist",
  /*  249 */ "sclp",
  /*  250 */ "as",
  /*  251 */ "seltablist",
  /*  252 */ "stl_prefix",
  /*  253 */ "joinop",
  /*  254 */ "on_using",
  /*  255 */ "indexed_by",
  /*  256 */ "exprlist",
  /*  257 */ "xfullname",
  /*  258 */ "idlist",
  /*  259 */ "indexed_opt",
  /*  260 */ "nulls",
  /*  261 */ "with",
  /*  262 */ "where_opt_ret",
  /*  263 */ "setlist",
  /*  264 */ "insert_cmd",
  /*  265 */ "idlist_opt",
  /*  266 */ "upsert",
  /*  267 */ "returning",
  /*  268 */ "filter_over",
  /*  269 */ "likeop",
  /*  270 */ "between_op",
  /*  271 */ "in_op",
  /*  272 */ "paren_exprlist",
  /*  273 */ "case_operand",
  /*  274 */ "case_exprlist",
  /*  275 */ "case_else",
  /*  276 */ "uniqueflag",
  /*  277 */ "collate",
  /*  278 */ "vinto",
  /*  279 */ "nmnum",
  /*  280 */ "minus_num",
  /*  281 */ "plus_num",
  /*  282 */ "trigger_decl",
  /*  283 */ "trigger_cmd_list",
  /*  284 */ "trigger_time",
  /*  285 */ "trigger_event",
  /*  286 */ "foreach_clause",
  /*  287 */ "when_clause",
  /*  288 */ "trigger_cmd",
  /*  289 */ "trnm",
  /*  290 */ "tridxby",
  /*  291 */ "raisetype",
  /*  292 */ "database_kw_opt",
  /*  293 */ "key_opt",
  /*  294 */ "add_column_fullname",
  /*  295 */ "kwcolumn_opt",
  /*  296 */ "carglist",
  /*  297 */ "create_vtab",
  /*  298 */ "vtabarglist",
  /*  299 */ "vtabarg",
  /*  300 */ "vtabargtoken",
  /*  301 */ "lp",
  /*  302 */ "anylist",
  /*  303 */ "wqas",
  /*  304 */ "wqitem",
  /*  305 */ "windowdefn_list",
  /*  306 */ "windowdefn",
  /*  307 */ "window",
  /*  308 */ "frame_opt",
  /*  309 */ "range_or_rows",
  /*  310 */ "frame_bound_s",
  /*  311 */ "frame_exclude_opt",
  /*  312 */ "frame_bound_e",
  /*  313 */ "frame_bound",
  /*  314 */ "frame_exclude",
  /*  315 */ "filter_clause",
  /*  316 */ "over_clause",
  /*  317 */ "input",
  /*  318 */ "cmdlist",
  /*  319 */ "ecmd",
  /*  320 */ "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_argument_list_nonempty ::= sql_argument_list_nonempty COMMA ID sql_argument_type",
 /*   6 */ "sql_argument_list_nonempty ::= ID sql_argument_type",
 /*   7 */ "table_schema ::=",
 /*   8 */ "table_schema ::= LP sql_argument_list_nonempty RP",
 /*   9 */ "or_replace ::=",
 /*  10 */ "or_replace ::= OR REPLACE",
 /*  11 */ "cmd ::= CREATE or_replace PERFETTO FUNCTION ID LP sql_argument_list RP RETURNS return_type AS select pscantok",
 /*  12 */ "return_type ::= ID",
 /*  13 */ "return_type ::= TABLE LP sql_argument_list_nonempty RP",
 /*  14 */ "table_impl ::=",
 /*  15 */ "table_impl ::= USING ID",
 /*  16 */ "cmd ::= CREATE or_replace PERFETTO TABLE ID table_impl table_schema AS select pscantok",
 /*  17 */ "cmd ::= CREATE or_replace PERFETTO VIEW ID table_schema AS select pscantok",
 /*  18 */ "cmd ::= CREATE or_replace PERFETTO INDEX ID ON ID LP indexed_column_list RP",
 /*  19 */ "indexed_column_list ::= indexed_column_list COMMA ID",
 /*  20 */ "indexed_column_list ::= ID",
 /*  21 */ "cmd ::= CREATE or_replace PERFETTO MACRO ID LP macro_argument_list RP RETURNS ID AS macro_body pscantok",
 /*  22 */ "macro_argument_list_nonempty ::= macro_argument_list_nonempty COMMA ID ID",
 /*  23 */ "macro_argument_list_nonempty ::= ID ID",
 /*  24 */ "macro_argument_list ::=",
 /*  25 */ "macro_argument_list ::= macro_argument_list_nonempty",
 /*  26 */ "cmd ::= INCLUDE PERFETTO MODULE module_name",
 /*  27 */ "module_name ::= ID|STAR|INTERSECT",
 /*  28 */ "module_name ::= module_name DOT ID|STAR|INTERSECT",
 /*  29 */ "cmd ::= DROP PERFETTO INDEX ID ON ID",
 /*  30 */ "macro_body ::= ANY",
 /*  31 */ "macro_body ::= macro_body ANY",
 /*  32 */ "explain ::= EXPLAIN",
 /*  33 */ "explain ::= EXPLAIN QUERY PLAN",
 /*  34 */ "cmdx ::= cmd",
 /*  35 */ "cmd ::= BEGIN transtype trans_opt",
 /*  36 */ "transtype ::=",
 /*  37 */ "transtype ::= DEFERRED",
 /*  38 */ "transtype ::= IMMEDIATE",
 /*  39 */ "transtype ::= EXCLUSIVE",
 /*  40 */ "cmd ::= COMMIT|END trans_opt",
 /*  41 */ "cmd ::= ROLLBACK trans_opt",
 /*  42 */ "cmd ::= SAVEPOINT nm",
 /*  43 */ "cmd ::= RELEASE savepoint_opt nm",
 /*  44 */ "cmd ::= ROLLBACK trans_opt TO savepoint_opt nm",
 /*  45 */ "create_table ::= createkw temp TABLE ifnotexists nm dbnm",
 /*  46 */ "createkw ::= CREATE",
 /*  47 */ "ifnotexists ::=",
 /*  48 */ "ifnotexists ::= IF NOT EXISTS",
 /*  49 */ "temp ::= TEMP",
 /*  50 */ "temp ::=",
 /*  51 */ "create_table_args ::= LP columnlist conslist_opt RP table_option_set",
 /*  52 */ "create_table_args ::= AS select",
 /*  53 */ "table_option_set ::=",
 /*  54 */ "table_option_set ::= table_option_set COMMA table_option",
 /*  55 */ "table_option ::= WITHOUT nm",
 /*  56 */ "table_option ::= nm",
 /*  57 */ "columnname ::= nm typetoken",
 /*  58 */ "typetoken ::=",
 /*  59 */ "typetoken ::= typename LP signed RP",
 /*  60 */ "typetoken ::= typename LP signed COMMA signed RP",
 /*  61 */ "typename ::= typename ID|STRING",
 /*  62 */ "scanpt ::=",
 /*  63 */ "scantok ::=",
 /*  64 */ "ccons ::= CONSTRAINT nm",
 /*  65 */ "ccons ::= DEFAULT scantok term",
 /*  66 */ "ccons ::= DEFAULT LP expr RP",
 /*  67 */ "ccons ::= DEFAULT PLUS scantok term",
 /*  68 */ "ccons ::= DEFAULT MINUS scantok term",
 /*  69 */ "ccons ::= DEFAULT scantok ID|INDEXED",
 /*  70 */ "ccons ::= NOT NULL onconf",
 /*  71 */ "ccons ::= PRIMARY KEY sortorder onconf autoinc",
 /*  72 */ "ccons ::= UNIQUE onconf",
 /*  73 */ "ccons ::= CHECK LP expr RP",
 /*  74 */ "ccons ::= REFERENCES nm eidlist_opt refargs",
 /*  75 */ "ccons ::= defer_subclause",
 /*  76 */ "ccons ::= COLLATE ID|STRING",
 /*  77 */ "generated ::= LP expr RP",
 /*  78 */ "generated ::= LP expr RP ID",
 /*  79 */ "autoinc ::=",
 /*  80 */ "autoinc ::= AUTOINCR",
 /*  81 */ "refargs ::=",
 /*  82 */ "refargs ::= refargs refarg",
 /*  83 */ "refarg ::= MATCH nm",
 /*  84 */ "refarg ::= ON INSERT refact",
 /*  85 */ "refarg ::= ON DELETE refact",
 /*  86 */ "refarg ::= ON UPDATE refact",
 /*  87 */ "refact ::= SET NULL",
 /*  88 */ "refact ::= SET DEFAULT",
 /*  89 */ "refact ::= CASCADE",
 /*  90 */ "refact ::= RESTRICT",
 /*  91 */ "refact ::= NO ACTION",
 /*  92 */ "defer_subclause ::= NOT DEFERRABLE init_deferred_pred_opt",
 /*  93 */ "defer_subclause ::= DEFERRABLE init_deferred_pred_opt",
 /*  94 */ "init_deferred_pred_opt ::=",
 /*  95 */ "init_deferred_pred_opt ::= INITIALLY DEFERRED",
 /*  96 */ "init_deferred_pred_opt ::= INITIALLY IMMEDIATE",
 /*  97 */ "conslist_opt ::=",
 /*  98 */ "tconscomma ::= COMMA",
 /*  99 */ "tcons ::= CONSTRAINT nm",
 /* 100 */ "tcons ::= PRIMARY KEY LP sortlist autoinc RP onconf",
 /* 101 */ "tcons ::= UNIQUE LP sortlist RP onconf",
 /* 102 */ "tcons ::= CHECK LP expr RP onconf",
 /* 103 */ "tcons ::= FOREIGN KEY LP eidlist RP REFERENCES nm eidlist_opt refargs defer_subclause_opt",
 /* 104 */ "defer_subclause_opt ::=",
 /* 105 */ "onconf ::=",
 /* 106 */ "onconf ::= ON CONFLICT resolvetype",
 /* 107 */ "orconf ::=",
 /* 108 */ "orconf ::= OR resolvetype",
 /* 109 */ "resolvetype ::= IGNORE",
 /* 110 */ "resolvetype ::= REPLACE",
 /* 111 */ "cmd ::= DROP TABLE ifexists fullname",
 /* 112 */ "ifexists ::= IF EXISTS",
 /* 113 */ "ifexists ::=",
 /* 114 */ "cmd ::= createkw temp VIEW ifnotexists nm dbnm eidlist_opt AS select",
 /* 115 */ "cmd ::= DROP VIEW ifexists fullname",
 /* 116 */ "cmd ::= select",
 /* 117 */ "select ::= WITH wqlist selectnowith",
 /* 118 */ "select ::= WITH RECURSIVE wqlist selectnowith",
 /* 119 */ "select ::= selectnowith",
 /* 120 */ "selectnowith ::= selectnowith multiselect_op oneselect",
 /* 121 */ "multiselect_op ::= UNION",
 /* 122 */ "multiselect_op ::= UNION ALL",
 /* 123 */ "multiselect_op ::= EXCEPT|INTERSECT",
 /* 124 */ "oneselect ::= SELECT distinct selcollist from where_opt groupby_opt having_opt orderby_opt limit_opt",
 /* 125 */ "oneselect ::= SELECT distinct selcollist from where_opt groupby_opt having_opt window_clause orderby_opt limit_opt",
 /* 126 */ "values ::= VALUES LP nexprlist RP",
 /* 127 */ "values ::= values COMMA LP nexprlist RP",
 /* 128 */ "distinct ::= DISTINCT",
 /* 129 */ "distinct ::= ALL",
 /* 130 */ "distinct ::=",
 /* 131 */ "sclp ::=",
 /* 132 */ "selcollist ::= sclp scanpt expr scanpt as",
 /* 133 */ "selcollist ::= sclp scanpt STAR",
 /* 134 */ "selcollist ::= sclp scanpt nm DOT STAR",
 /* 135 */ "as ::= AS nm",
 /* 136 */ "as ::=",
 /* 137 */ "from ::=",
 /* 138 */ "from ::= FROM seltablist",
 /* 139 */ "stl_prefix ::= seltablist joinop",
 /* 140 */ "stl_prefix ::=",
 /* 141 */ "seltablist ::= stl_prefix nm dbnm as on_using",
 /* 142 */ "seltablist ::= stl_prefix nm dbnm as indexed_by on_using",
 /* 143 */ "seltablist ::= stl_prefix nm dbnm LP exprlist RP as on_using",
 /* 144 */ "seltablist ::= stl_prefix LP select RP as on_using",
 /* 145 */ "seltablist ::= stl_prefix LP seltablist RP as on_using",
 /* 146 */ "dbnm ::=",
 /* 147 */ "dbnm ::= DOT nm",
 /* 148 */ "fullname ::= nm",
 /* 149 */ "fullname ::= nm DOT nm",
 /* 150 */ "xfullname ::= nm",
 /* 151 */ "xfullname ::= nm DOT nm",
 /* 152 */ "xfullname ::= nm DOT nm AS nm",
 /* 153 */ "xfullname ::= nm AS nm",
 /* 154 */ "joinop ::= COMMA|JOIN",
 /* 155 */ "joinop ::= JOIN_KW JOIN",
 /* 156 */ "joinop ::= JOIN_KW nm JOIN",
 /* 157 */ "joinop ::= JOIN_KW nm nm JOIN",
 /* 158 */ "on_using ::= ON expr",
 /* 159 */ "on_using ::= USING LP idlist RP",
 /* 160 */ "on_using ::=",
 /* 161 */ "indexed_opt ::=",
 /* 162 */ "indexed_by ::= INDEXED BY nm",
 /* 163 */ "indexed_by ::= NOT INDEXED",
 /* 164 */ "orderby_opt ::=",
 /* 165 */ "orderby_opt ::= ORDER BY sortlist",
 /* 166 */ "sortlist ::= sortlist COMMA expr sortorder nulls",
 /* 167 */ "sortlist ::= expr sortorder nulls",
 /* 168 */ "sortorder ::= ASC",
 /* 169 */ "sortorder ::= DESC",
 /* 170 */ "sortorder ::=",
 /* 171 */ "nulls ::= NULLS FIRST",
 /* 172 */ "nulls ::= NULLS LAST",
 /* 173 */ "nulls ::=",
 /* 174 */ "groupby_opt ::=",
 /* 175 */ "groupby_opt ::= GROUP BY nexprlist",
 /* 176 */ "having_opt ::=",
 /* 177 */ "having_opt ::= HAVING expr",
 /* 178 */ "limit_opt ::=",
 /* 179 */ "limit_opt ::= LIMIT expr",
 /* 180 */ "limit_opt ::= LIMIT expr OFFSET expr",
 /* 181 */ "limit_opt ::= LIMIT expr COMMA expr",
 /* 182 */ "cmd ::= with DELETE FROM xfullname indexed_opt where_opt_ret",
 /* 183 */ "where_opt ::=",
 /* 184 */ "where_opt ::= WHERE expr",
 /* 185 */ "where_opt_ret ::=",
 /* 186 */ "where_opt_ret ::= WHERE expr",
 /* 187 */ "where_opt_ret ::= RETURNING selcollist",
 /* 188 */ "where_opt_ret ::= WHERE expr RETURNING selcollist",
 /* 189 */ "cmd ::= with UPDATE orconf xfullname indexed_opt SET setlist from where_opt_ret",
 /* 190 */ "setlist ::= setlist COMMA nm EQ expr",
 /* 191 */ "setlist ::= setlist COMMA LP idlist RP EQ expr",
 /* 192 */ "setlist ::= nm EQ expr",
 /* 193 */ "setlist ::= LP idlist RP EQ expr",
 /* 194 */ "cmd ::= with insert_cmd INTO xfullname idlist_opt select upsert",
 /* 195 */ "cmd ::= with insert_cmd INTO xfullname idlist_opt DEFAULT VALUES returning",
 /* 196 */ "upsert ::=",
 /* 197 */ "upsert ::= RETURNING selcollist",
 /* 198 */ "upsert ::= ON CONFLICT LP sortlist RP where_opt DO UPDATE SET setlist where_opt upsert",
 /* 199 */ "upsert ::= ON CONFLICT LP sortlist RP where_opt DO NOTHING upsert",
 /* 200 */ "upsert ::= ON CONFLICT DO NOTHING returning",
 /* 201 */ "upsert ::= ON CONFLICT DO UPDATE SET setlist where_opt returning",
 /* 202 */ "returning ::= RETURNING selcollist",
 /* 203 */ "insert_cmd ::= INSERT orconf",
 /* 204 */ "insert_cmd ::= REPLACE",
 /* 205 */ "idlist_opt ::=",
 /* 206 */ "idlist_opt ::= LP idlist RP",
 /* 207 */ "idlist ::= idlist COMMA nm",
 /* 208 */ "idlist ::= nm",
 /* 209 */ "expr ::= LP expr RP",
 /* 210 */ "expr ::= ID|INDEXED|JOIN_KW",
 /* 211 */ "expr ::= nm DOT nm",
 /* 212 */ "expr ::= nm DOT nm DOT nm",
 /* 213 */ "term ::= NULL|FLOAT|BLOB",
 /* 214 */ "term ::= STRING",
 /* 215 */ "term ::= INTEGER",
 /* 216 */ "expr ::= VARIABLE",
 /* 217 */ "expr ::= expr COLLATE ID|STRING",
 /* 218 */ "expr ::= CAST LP expr AS typetoken RP",
 /* 219 */ "expr ::= ID|INDEXED|JOIN_KW LP distinct exprlist RP",
 /* 220 */ "expr ::= ID|INDEXED|JOIN_KW LP distinct exprlist ORDER BY sortlist RP",
 /* 221 */ "expr ::= ID|INDEXED|JOIN_KW LP STAR RP",
 /* 222 */ "expr ::= ID|INDEXED|JOIN_KW LP distinct exprlist RP filter_over",
 /* 223 */ "expr ::= ID|INDEXED|JOIN_KW LP distinct exprlist ORDER BY sortlist RP filter_over",
 /* 224 */ "expr ::= ID|INDEXED|JOIN_KW LP STAR RP filter_over",
 /* 225 */ "term ::= CTIME_KW",
 /* 226 */ "expr ::= LP nexprlist COMMA expr RP",
 /* 227 */ "expr ::= expr AND expr",
 /* 228 */ "expr ::= expr OR expr",
 /* 229 */ "expr ::= expr LT|GT|GE|LE expr",
 /* 230 */ "expr ::= expr EQ|NE expr",
 /* 231 */ "expr ::= expr BITAND|BITOR|LSHIFT|RSHIFT expr",
 /* 232 */ "expr ::= expr PLUS|MINUS expr",
 /* 233 */ "expr ::= expr STAR|SLASH|REM expr",
 /* 234 */ "expr ::= expr CONCAT expr",
 /* 235 */ "likeop ::= NOT LIKE_KW|MATCH",
 /* 236 */ "expr ::= expr likeop expr",
 /* 237 */ "expr ::= expr likeop expr ESCAPE expr",
 /* 238 */ "expr ::= expr ISNULL|NOTNULL",
 /* 239 */ "expr ::= expr NOT NULL",
 /* 240 */ "expr ::= expr IS expr",
 /* 241 */ "expr ::= expr IS NOT expr",
 /* 242 */ "expr ::= expr IS NOT DISTINCT FROM expr",
 /* 243 */ "expr ::= expr IS DISTINCT FROM expr",
 /* 244 */ "expr ::= NOT expr",
 /* 245 */ "expr ::= BITNOT expr",
 /* 246 */ "expr ::= PLUS|MINUS expr",
 /* 247 */ "expr ::= expr PTR expr",
 /* 248 */ "between_op ::= BETWEEN",
 /* 249 */ "between_op ::= NOT BETWEEN",
 /* 250 */ "expr ::= expr between_op expr AND expr",
 /* 251 */ "in_op ::= IN",
 /* 252 */ "in_op ::= NOT IN",
 /* 253 */ "expr ::= expr in_op LP exprlist RP",
 /* 254 */ "expr ::= LP select RP",
 /* 255 */ "expr ::= expr in_op LP select RP",
 /* 256 */ "expr ::= expr in_op nm dbnm paren_exprlist",
 /* 257 */ "expr ::= EXISTS LP select RP",
 /* 258 */ "expr ::= CASE case_operand case_exprlist case_else END",
 /* 259 */ "case_exprlist ::= case_exprlist WHEN expr THEN expr",
 /* 260 */ "case_exprlist ::= WHEN expr THEN expr",
 /* 261 */ "case_else ::= ELSE expr",
 /* 262 */ "case_else ::=",
 /* 263 */ "case_operand ::=",
 /* 264 */ "exprlist ::=",
 /* 265 */ "nexprlist ::= nexprlist COMMA expr",
 /* 266 */ "nexprlist ::= expr",
 /* 267 */ "paren_exprlist ::=",
 /* 268 */ "paren_exprlist ::= LP exprlist RP",
 /* 269 */ "cmd ::= createkw uniqueflag INDEX ifnotexists nm dbnm ON nm LP sortlist RP where_opt",
 /* 270 */ "uniqueflag ::= UNIQUE",
 /* 271 */ "uniqueflag ::=",
 /* 272 */ "eidlist_opt ::=",
 /* 273 */ "eidlist_opt ::= LP eidlist RP",
 /* 274 */ "eidlist ::= eidlist COMMA nm collate sortorder",
 /* 275 */ "eidlist ::= nm collate sortorder",
 /* 276 */ "collate ::=",
 /* 277 */ "collate ::= COLLATE ID|STRING",
 /* 278 */ "cmd ::= DROP INDEX ifexists fullname",
 /* 279 */ "cmd ::= VACUUM vinto",
 /* 280 */ "cmd ::= VACUUM nm vinto",
 /* 281 */ "vinto ::= INTO expr",
 /* 282 */ "vinto ::=",
 /* 283 */ "cmd ::= PRAGMA nm dbnm",
 /* 284 */ "cmd ::= PRAGMA nm dbnm EQ nmnum",
 /* 285 */ "cmd ::= PRAGMA nm dbnm LP nmnum RP",
 /* 286 */ "cmd ::= PRAGMA nm dbnm EQ minus_num",
 /* 287 */ "cmd ::= PRAGMA nm dbnm LP minus_num RP",
 /* 288 */ "plus_num ::= PLUS INTEGER|FLOAT",
 /* 289 */ "minus_num ::= MINUS INTEGER|FLOAT",
 /* 290 */ "cmd ::= createkw trigger_decl BEGIN trigger_cmd_list END",
 /* 291 */ "trigger_decl ::= temp TRIGGER ifnotexists nm dbnm trigger_time trigger_event ON fullname foreach_clause when_clause",
 /* 292 */ "trigger_time ::= BEFORE|AFTER",
 /* 293 */ "trigger_time ::= INSTEAD OF",
 /* 294 */ "trigger_time ::=",
 /* 295 */ "trigger_event ::= DELETE|INSERT",
 /* 296 */ "trigger_event ::= UPDATE",
 /* 297 */ "trigger_event ::= UPDATE OF idlist",
 /* 298 */ "when_clause ::=",
 /* 299 */ "when_clause ::= WHEN expr",
 /* 300 */ "trigger_cmd_list ::= trigger_cmd_list trigger_cmd SEMI",
 /* 301 */ "trigger_cmd_list ::= trigger_cmd SEMI",
 /* 302 */ "trnm ::= nm DOT nm",
 /* 303 */ "tridxby ::= INDEXED BY nm",
 /* 304 */ "tridxby ::= NOT INDEXED",
 /* 305 */ "trigger_cmd ::= UPDATE orconf trnm tridxby SET setlist from where_opt scanpt",
 /* 306 */ "trigger_cmd ::= scanpt insert_cmd INTO trnm idlist_opt select upsert scanpt",
 /* 307 */ "trigger_cmd ::= DELETE FROM trnm tridxby where_opt scanpt",
 /* 308 */ "trigger_cmd ::= scanpt select scanpt",
 /* 309 */ "expr ::= RAISE LP IGNORE RP",
 /* 310 */ "expr ::= RAISE LP raisetype COMMA nm RP",
 /* 311 */ "raisetype ::= ROLLBACK",
 /* 312 */ "raisetype ::= ABORT",
 /* 313 */ "raisetype ::= FAIL",
 /* 314 */ "cmd ::= DROP TRIGGER ifexists fullname",
 /* 315 */ "cmd ::= ATTACH database_kw_opt expr AS expr key_opt",
 /* 316 */ "cmd ::= DETACH database_kw_opt expr",
 /* 317 */ "key_opt ::=",
 /* 318 */ "key_opt ::= KEY expr",
 /* 319 */ "cmd ::= REINDEX",
 /* 320 */ "cmd ::= REINDEX nm dbnm",
 /* 321 */ "cmd ::= ANALYZE",
 /* 322 */ "cmd ::= ANALYZE nm dbnm",
 /* 323 */ "cmd ::= ALTER TABLE fullname RENAME TO nm",
 /* 324 */ "cmd ::= ALTER TABLE add_column_fullname ADD kwcolumn_opt columnname carglist",
 /* 325 */ "cmd ::= ALTER TABLE fullname DROP kwcolumn_opt nm",
 /* 326 */ "add_column_fullname ::= fullname",
 /* 327 */ "cmd ::= ALTER TABLE fullname RENAME kwcolumn_opt nm TO nm",
 /* 328 */ "cmd ::= create_vtab",
 /* 329 */ "cmd ::= create_vtab LP vtabarglist RP",
 /* 330 */ "create_vtab ::= createkw VIRTUAL TABLE ifnotexists nm dbnm USING nm",
 /* 331 */ "vtabarg ::=",
 /* 332 */ "vtabargtoken ::= ANY",
 /* 333 */ "vtabargtoken ::= lp anylist RP",
 /* 334 */ "lp ::= LP",
 /* 335 */ "with ::= WITH wqlist",
 /* 336 */ "with ::= WITH RECURSIVE wqlist",
 /* 337 */ "wqas ::= AS",
 /* 338 */ "wqas ::= AS MATERIALIZED",
 /* 339 */ "wqas ::= AS NOT MATERIALIZED",
 /* 340 */ "wqitem ::= nm eidlist_opt wqas LP select RP",
 /* 341 */ "wqlist ::= wqitem",
 /* 342 */ "wqlist ::= wqlist COMMA wqitem",
 /* 343 */ "windowdefn_list ::= windowdefn_list COMMA windowdefn",
 /* 344 */ "windowdefn ::= nm AS LP window RP",
 /* 345 */ "window ::= PARTITION BY nexprlist orderby_opt frame_opt",
 /* 346 */ "window ::= nm PARTITION BY nexprlist orderby_opt frame_opt",
 /* 347 */ "window ::= ORDER BY sortlist frame_opt",
 /* 348 */ "window ::= nm ORDER BY sortlist frame_opt",
 /* 349 */ "window ::= nm frame_opt",
 /* 350 */ "frame_opt ::=",
 /* 351 */ "frame_opt ::= range_or_rows frame_bound_s frame_exclude_opt",
 /* 352 */ "frame_opt ::= range_or_rows BETWEEN frame_bound_s AND frame_bound_e frame_exclude_opt",
 /* 353 */ "range_or_rows ::= RANGE|ROWS|GROUPS",
 /* 354 */ "frame_bound_s ::= frame_bound",
 /* 355 */ "frame_bound_s ::= UNBOUNDED PRECEDING",
 /* 356 */ "frame_bound_e ::= frame_bound",
 /* 357 */ "frame_bound_e ::= UNBOUNDED FOLLOWING",
 /* 358 */ "frame_bound ::= expr PRECEDING|FOLLOWING",
 /* 359 */ "frame_bound ::= CURRENT ROW",
 /* 360 */ "frame_exclude_opt ::=",
 /* 361 */ "frame_exclude_opt ::= EXCLUDE frame_exclude",
 /* 362 */ "frame_exclude ::= NO OTHERS",
 /* 363 */ "frame_exclude ::= CURRENT ROW",
 /* 364 */ "frame_exclude ::= GROUP|TIES",
 /* 365 */ "window_clause ::= WINDOW windowdefn_list",
 /* 366 */ "filter_over ::= filter_clause over_clause",
 /* 367 */ "filter_over ::= over_clause",
 /* 368 */ "filter_over ::= filter_clause",
 /* 369 */ "over_clause ::= OVER LP window RP",
 /* 370 */ "over_clause ::= OVER nm",
 /* 371 */ "filter_clause ::= FILTER LP WHERE expr RP",
 /* 372 */ "input ::= cmdlist",
 /* 373 */ "cmdlist ::= cmdlist ecmd",
 /* 374 */ "cmdlist ::= ecmd",
 /* 375 */ "ecmd ::= SEMI",
 /* 376 */ "ecmd ::= cmdx SEMI",
 /* 377 */ "ecmd ::= explain cmdx SEMI",
 /* 378 */ "trans_opt ::=",
 /* 379 */ "trans_opt ::= TRANSACTION",
 /* 380 */ "trans_opt ::= TRANSACTION nm",
 /* 381 */ "savepoint_opt ::= SAVEPOINT",
 /* 382 */ "savepoint_opt ::=",
 /* 383 */ "cmd ::= create_table create_table_args",
 /* 384 */ "table_option_set ::= table_option",
 /* 385 */ "columnlist ::= columnlist COMMA columnname carglist",
 /* 386 */ "columnlist ::= columnname carglist",
 /* 387 */ "nm ::= ID|INDEXED|JOIN_KW",
 /* 388 */ "nm ::= STRING",
 /* 389 */ "typetoken ::= typename",
 /* 390 */ "typename ::= ID|STRING",
 /* 391 */ "signed ::= plus_num",
 /* 392 */ "signed ::= minus_num",
 /* 393 */ "carglist ::= carglist ccons",
 /* 394 */ "carglist ::=",
 /* 395 */ "ccons ::= NULL onconf",
 /* 396 */ "ccons ::= GENERATED ALWAYS AS generated",
 /* 397 */ "ccons ::= AS generated",
 /* 398 */ "conslist_opt ::= COMMA conslist",
 /* 399 */ "conslist ::= conslist tconscomma tcons",
 /* 400 */ "conslist ::= tcons",
 /* 401 */ "tconscomma ::=",
 /* 402 */ "defer_subclause_opt ::= defer_subclause",
 /* 403 */ "resolvetype ::= raisetype",
 /* 404 */ "selectnowith ::= oneselect",
 /* 405 */ "oneselect ::= values",
 /* 406 */ "sclp ::= selcollist COMMA",
 /* 407 */ "as ::= ID|STRING",
 /* 408 */ "indexed_opt ::= indexed_by",
 /* 409 */ "returning ::=",
 /* 410 */ "expr ::= term",
 /* 411 */ "likeop ::= LIKE_KW|MATCH",
 /* 412 */ "case_operand ::= expr",
 /* 413 */ "exprlist ::= nexprlist",
 /* 414 */ "nmnum ::= plus_num",
 /* 415 */ "nmnum ::= nm",
 /* 416 */ "nmnum ::= ON",
 /* 417 */ "nmnum ::= DELETE",
 /* 418 */ "nmnum ::= DEFAULT",
 /* 419 */ "plus_num ::= INTEGER|FLOAT",
 /* 420 */ "foreach_clause ::=",
 /* 421 */ "foreach_clause ::= FOR EACH ROW",
 /* 422 */ "trnm ::= nm",
 /* 423 */ "tridxby ::=",
 /* 424 */ "database_kw_opt ::= DATABASE",
 /* 425 */ "database_kw_opt ::=",
 /* 426 */ "kwcolumn_opt ::=",
 /* 427 */ "kwcolumn_opt ::= COLUMNKW",
 /* 428 */ "vtabarglist ::= vtabarg",
 /* 429 */ "vtabarglist ::= vtabarglist COMMA vtabarg",
 /* 430 */ "vtabarg ::= vtabarg vtabargtoken",
 /* 431 */ "anylist ::=",
 /* 432 */ "anylist ::= anylist LP anylist RP",
 /* 433 */ "anylist ::= anylist ANY",
 /* 434 */ "with ::=",
 /* 435 */ "windowdefn_list ::= windowdefn",
 /* 436 */ "window ::= frame_opt",
};
#endif /* NDEBUG */


#if YYSTACKDEPTH<=0
/*
** Try to increase the size of the parser stack.  Return the number
** of errors.  Return 0 on success.
*/
static int yyGrowStack(yyParser *p){
  int newSize;
  int idx;
  yyStackEntry *pNew;

  newSize = p->yystksz*2 + 100;
  idx = p->yytos ? (int)(p->yytos - p->yystack) : 0;
  if( p->yystack==&p->yystk0 ){
    pNew = malloc(newSize*sizeof(pNew[0]));
    if( pNew ) pNew[0] = p->yystk0;
  }else{
    pNew = realloc(p->yystack, newSize*sizeof(pNew[0]));
  }
  if( pNew ){
    p->yystack = pNew;
    p->yytos = &p->yystack[idx];
#ifndef NDEBUG
    if( yyTraceFILE ){
      fprintf(yyTraceFILE,"%sStack grows from %d to %d entries.\n",
              yyTracePrompt, p->yystksz, newSize);
    }
#endif
    p->yystksz = newSize;
  }
  return pNew==0; 
}
#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
#if YYSTACKDEPTH<=0
  yypParser->yytos = NULL;
  yypParser->yystack = NULL;
  yypParser->yystksz = 0;
  if( yyGrowStack(yypParser) ){
    yypParser->yystack = &yypParser->yystk0;
    yypParser->yystksz = 1;
  }
#endif
#ifndef YYNOERRORRECOVERY
  yypParser->yyerrcnt = -1;
#endif
  yypParser->yytos = yypParser->yystack;
  yypParser->yystack[0].stateno = 0;
  yypParser->yystack[0].major = 0;
#if YYSTACKDEPTH>0
  yypParser->yystackEnd = &yypParser->yystack[YYSTACKDEPTH-1];
#endif
}

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