blob: eb32f83fd432d471b65f93488c0ba2bc554d7035 [file] [log] [blame]
Reid Spencer832254e2007-02-02 02:16:23 +00001#define yy_create_buffer Upgrade_create_buffer
2#define yy_delete_buffer Upgrade_delete_buffer
3#define yy_scan_buffer Upgrade_scan_buffer
4#define yy_scan_string Upgrade_scan_string
5#define yy_scan_bytes Upgrade_scan_bytes
6#define yy_flex_debug Upgrade_flex_debug
7#define yy_init_buffer Upgrade_init_buffer
8#define yy_flush_buffer Upgrade_flush_buffer
9#define yy_load_buffer_state Upgrade_load_buffer_state
10#define yy_switch_to_buffer Upgrade_switch_to_buffer
11#define yyin Upgradein
12#define yyleng Upgradeleng
13#define yylex Upgradelex
14#define yyout Upgradeout
15#define yyrestart Upgraderestart
16#define yytext Upgradetext
17#define yylineno Upgradelineno
Reid Spencere7c3c602006-11-30 06:36:44 +000018
Reid Spencer832254e2007-02-02 02:16:23 +000019#line 20 "UpgradeLexer.cpp"
20/* A lexical scanner generated by flex*/
Reid Spencere7c3c602006-11-30 06:36:44 +000021
Reid Spencer832254e2007-02-02 02:16:23 +000022/* Scanner skeleton version:
23 * $Header$
24 */
Reid Spencere7c3c602006-11-30 06:36:44 +000025
26#define FLEX_SCANNER
27#define YY_FLEX_MAJOR_VERSION 2
28#define YY_FLEX_MINOR_VERSION 5
29
30#include <stdio.h>
Reid Spencer832254e2007-02-02 02:16:23 +000031#include <unistd.h>
Reid Spencere7c3c602006-11-30 06:36:44 +000032
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +000033
Reid Spencer832254e2007-02-02 02:16:23 +000034/* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */
35#ifdef c_plusplus
36#ifndef __cplusplus
37#define __cplusplus
38#endif
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +000039#endif
40
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +000041
42#ifdef __cplusplus
Reid Spencere7c3c602006-11-30 06:36:44 +000043
Reid Spencer832254e2007-02-02 02:16:23 +000044#include <stdlib.h>
45
46/* Use prototypes in function declarations. */
47#define YY_USE_PROTOS
48
Reid Spencere7c3c602006-11-30 06:36:44 +000049/* The "const" storage-class-modifier is valid. */
50#define YY_USE_CONST
51
52#else /* ! __cplusplus */
53
54#if __STDC__
55
Reid Spencer832254e2007-02-02 02:16:23 +000056#define YY_USE_PROTOS
Reid Spencere7c3c602006-11-30 06:36:44 +000057#define YY_USE_CONST
58
59#endif /* __STDC__ */
60#endif /* ! __cplusplus */
61
Reid Spencer832254e2007-02-02 02:16:23 +000062#ifdef __TURBOC__
63 #pragma warn -rch
64 #pragma warn -use
65#include <io.h>
66#include <stdlib.h>
67#define YY_USE_CONST
68#define YY_USE_PROTOS
69#endif
70
Reid Spencere7c3c602006-11-30 06:36:44 +000071#ifdef YY_USE_CONST
72#define yyconst const
73#else
74#define yyconst
75#endif
76
Reid Spencer832254e2007-02-02 02:16:23 +000077
78#ifdef YY_USE_PROTOS
79#define YY_PROTO(proto) proto
80#else
81#define YY_PROTO(proto) ()
82#endif
83
Reid Spencere7c3c602006-11-30 06:36:44 +000084/* Returned upon end-of-file. */
85#define YY_NULL 0
86
87/* Promotes a possibly negative, possibly signed char to an unsigned
88 * integer for use as an array index. If the signed char is negative,
89 * we want to instead treat it as an 8-bit unsigned char, hence the
90 * double cast.
91 */
92#define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)
93
94/* Enter a start condition. This macro really ought to take a parameter,
95 * but we do it the disgusting crufty way forced on us by the ()-less
96 * definition of BEGIN.
97 */
Reid Spencer832254e2007-02-02 02:16:23 +000098#define BEGIN yy_start = 1 + 2 *
Reid Spencere7c3c602006-11-30 06:36:44 +000099
100/* Translate the current start state into a value that can be later handed
101 * to BEGIN to return to the state. The YYSTATE alias is for lex
102 * compatibility.
103 */
Reid Spencer832254e2007-02-02 02:16:23 +0000104#define YY_START ((yy_start - 1) / 2)
Reid Spencere7c3c602006-11-30 06:36:44 +0000105#define YYSTATE YY_START
106
107/* Action number for EOF rule of a given start state. */
108#define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
109
110/* Special action meaning "start processing a new file". */
Reid Spencer832254e2007-02-02 02:16:23 +0000111#define YY_NEW_FILE yyrestart( yyin )
Reid Spencere7c3c602006-11-30 06:36:44 +0000112
113#define YY_END_OF_BUFFER_CHAR 0
114
115/* Size of default input buffer. */
116#define YY_BUF_SIZE (16384*64)
117
118typedef struct yy_buffer_state *YY_BUFFER_STATE;
119
Reid Spencer832254e2007-02-02 02:16:23 +0000120extern int yyleng;
121extern FILE *yyin, *yyout;
Reid Spencere7c3c602006-11-30 06:36:44 +0000122
123#define EOB_ACT_CONTINUE_SCAN 0
124#define EOB_ACT_END_OF_FILE 1
125#define EOB_ACT_LAST_MATCH 2
126
Reid Spencer832254e2007-02-02 02:16:23 +0000127/* The funky do-while in the following #define is used to turn the definition
128 * int a single C statement (which needs a semi-colon terminator). This
129 * avoids problems with code like:
130 *
131 * if ( condition_holds )
132 * yyless( 5 );
133 * else
134 * do_something_else();
135 *
136 * Prior to using the do-while the compiler would get upset at the
137 * "else" because it interpreted the "if" statement as being all
138 * done when it reached the ';' after the yyless() call.
139 */
140
141/* Return all but the first 'n' matched characters back to the input stream. */
142
Reid Spencere7c3c602006-11-30 06:36:44 +0000143#define yyless(n) \
144 do \
145 { \
Reid Spencer832254e2007-02-02 02:16:23 +0000146 /* Undo effects of setting up yytext. */ \
147 *yy_cp = yy_hold_char; \
Reid Spencere7c3c602006-11-30 06:36:44 +0000148 YY_RESTORE_YY_MORE_OFFSET \
Reid Spencer832254e2007-02-02 02:16:23 +0000149 yy_c_buf_p = yy_cp = yy_bp + n - YY_MORE_ADJ; \
150 YY_DO_BEFORE_ACTION; /* set up yytext again */ \
Reid Spencere7c3c602006-11-30 06:36:44 +0000151 } \
152 while ( 0 )
153
Reid Spencer832254e2007-02-02 02:16:23 +0000154#define unput(c) yyunput( c, yytext_ptr )
155
156/* Some routines like yy_flex_realloc() are emitted as static but are
157 not called by all lexers. This generates warnings in some compilers,
158 notably GCC. Arrange to suppress these. */
159#ifdef __GNUC__
160#define YY_MAY_BE_UNUSED __attribute__((unused))
161#else
162#define YY_MAY_BE_UNUSED
163#endif
Reid Spencere7c3c602006-11-30 06:36:44 +0000164
165/* The following is because we cannot portably get our hands on size_t
166 * (without autoconf's help, which isn't available because we want
167 * flex-generated scanners to compile on their own).
168 */
169typedef unsigned int yy_size_t;
170
Reid Spencer832254e2007-02-02 02:16:23 +0000171
Reid Spencere7c3c602006-11-30 06:36:44 +0000172struct yy_buffer_state
173 {
174 FILE *yy_input_file;
175
176 char *yy_ch_buf; /* input buffer */
177 char *yy_buf_pos; /* current position in input buffer */
178
179 /* Size of input buffer in bytes, not including room for EOB
180 * characters.
181 */
182 yy_size_t yy_buf_size;
183
184 /* Number of characters read into yy_ch_buf, not including EOB
185 * characters.
186 */
187 int yy_n_chars;
188
189 /* Whether we "own" the buffer - i.e., we know we created it,
190 * and can realloc() it to grow it, and should free() it to
191 * delete it.
192 */
193 int yy_is_our_buffer;
194
195 /* Whether this is an "interactive" input source; if so, and
196 * if we're using stdio for input, then we want to use getc()
197 * instead of fread(), to make sure we stop fetching input after
198 * each newline.
199 */
200 int yy_is_interactive;
201
202 /* Whether we're considered to be at the beginning of a line.
203 * If so, '^' rules will be active on the next match, otherwise
204 * not.
205 */
206 int yy_at_bol;
207
208 /* Whether to try to fill the input buffer when we reach the
209 * end of it.
210 */
211 int yy_fill_buffer;
212
213 int yy_buffer_status;
214#define YY_BUFFER_NEW 0
215#define YY_BUFFER_NORMAL 1
216 /* When an EOF's been seen but there's still some text to process
217 * then we mark the buffer as YY_EOF_PENDING, to indicate that we
218 * shouldn't try reading from the input source any more. We might
219 * still have a bunch of tokens to match, though, because of
220 * possible backing-up.
221 *
222 * When we actually see the EOF, we change the status to "new"
Reid Spencer832254e2007-02-02 02:16:23 +0000223 * (via yyrestart()), so that the user can continue scanning by
224 * just pointing yyin at a new input file.
Reid Spencere7c3c602006-11-30 06:36:44 +0000225 */
226#define YY_BUFFER_EOF_PENDING 2
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +0000227 };
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +0000228
Reid Spencer832254e2007-02-02 02:16:23 +0000229static YY_BUFFER_STATE yy_current_buffer = 0;
Reid Spencere7c3c602006-11-30 06:36:44 +0000230
231/* We provide macros for accessing buffer states in case in the
232 * future we want to put the buffer states in a more general
233 * "scanner state".
234 */
Reid Spencer832254e2007-02-02 02:16:23 +0000235#define YY_CURRENT_BUFFER yy_current_buffer
Reid Spencere7c3c602006-11-30 06:36:44 +0000236
237
Reid Spencer832254e2007-02-02 02:16:23 +0000238/* yy_hold_char holds the character lost when yytext is formed. */
Reid Spencere7c3c602006-11-30 06:36:44 +0000239static char yy_hold_char;
Reid Spencer832254e2007-02-02 02:16:23 +0000240
Reid Spencere7c3c602006-11-30 06:36:44 +0000241static int yy_n_chars; /* number of characters read into yy_ch_buf */
Reid Spencer832254e2007-02-02 02:16:23 +0000242
243
244int yyleng;
Reid Spencere7c3c602006-11-30 06:36:44 +0000245
246/* Points to current character in buffer. */
247static char *yy_c_buf_p = (char *) 0;
Reid Spencer832254e2007-02-02 02:16:23 +0000248static int yy_init = 1; /* whether we need to initialize */
Reid Spencere7c3c602006-11-30 06:36:44 +0000249static int yy_start = 0; /* start state number */
250
Reid Spencer832254e2007-02-02 02:16:23 +0000251/* Flag which is used to allow yywrap()'s to do buffer switches
252 * instead of setting up a fresh yyin. A bit of a hack ...
Reid Spencere7c3c602006-11-30 06:36:44 +0000253 */
254static int yy_did_buffer_switch_on_eof;
255
Reid Spencer832254e2007-02-02 02:16:23 +0000256void yyrestart YY_PROTO(( FILE *input_file ));
Reid Spencere7c3c602006-11-30 06:36:44 +0000257
Reid Spencer832254e2007-02-02 02:16:23 +0000258void yy_switch_to_buffer YY_PROTO(( YY_BUFFER_STATE new_buffer ));
259void yy_load_buffer_state YY_PROTO(( void ));
260YY_BUFFER_STATE yy_create_buffer YY_PROTO(( FILE *file, int size ));
261void yy_delete_buffer YY_PROTO(( YY_BUFFER_STATE b ));
262void yy_init_buffer YY_PROTO(( YY_BUFFER_STATE b, FILE *file ));
263void yy_flush_buffer YY_PROTO(( YY_BUFFER_STATE b ));
264#define YY_FLUSH_BUFFER yy_flush_buffer( yy_current_buffer )
Reid Spencere7c3c602006-11-30 06:36:44 +0000265
Reid Spencer832254e2007-02-02 02:16:23 +0000266YY_BUFFER_STATE yy_scan_buffer YY_PROTO(( char *base, yy_size_t size ));
267YY_BUFFER_STATE yy_scan_string YY_PROTO(( yyconst char *yy_str ));
268YY_BUFFER_STATE yy_scan_bytes YY_PROTO(( yyconst char *bytes, int len ));
Reid Spencere7c3c602006-11-30 06:36:44 +0000269
Reid Spencer832254e2007-02-02 02:16:23 +0000270static void *yy_flex_alloc YY_PROTO(( yy_size_t ));
271static inline void *yy_flex_realloc YY_PROTO(( void *, yy_size_t )) YY_MAY_BE_UNUSED;
272static void yy_flex_free YY_PROTO(( void * ));
Reid Spencere7c3c602006-11-30 06:36:44 +0000273
Reid Spencer832254e2007-02-02 02:16:23 +0000274#define yy_new_buffer yy_create_buffer
Reid Spencere7c3c602006-11-30 06:36:44 +0000275
276#define yy_set_interactive(is_interactive) \
277 { \
Reid Spencer832254e2007-02-02 02:16:23 +0000278 if ( ! yy_current_buffer ) \
279 yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
280 yy_current_buffer->yy_is_interactive = is_interactive; \
Reid Spencere7c3c602006-11-30 06:36:44 +0000281 }
282
283#define yy_set_bol(at_bol) \
284 { \
Reid Spencer832254e2007-02-02 02:16:23 +0000285 if ( ! yy_current_buffer ) \
286 yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
287 yy_current_buffer->yy_at_bol = at_bol; \
Reid Spencere7c3c602006-11-30 06:36:44 +0000288 }
289
Reid Spencer832254e2007-02-02 02:16:23 +0000290#define YY_AT_BOL() (yy_current_buffer->yy_at_bol)
Reid Spencere7c3c602006-11-30 06:36:44 +0000291
292
Reid Spencer832254e2007-02-02 02:16:23 +0000293#define YY_USES_REJECT
294
295#define yywrap() 1
Reid Spencere7c3c602006-11-30 06:36:44 +0000296#define YY_SKIP_YYWRAP
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +0000297typedef unsigned char YY_CHAR;
Reid Spencer832254e2007-02-02 02:16:23 +0000298FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +0000299typedef int yy_state_type;
Reid Spencer832254e2007-02-02 02:16:23 +0000300extern int yylineno;
301int yylineno = 1;
302extern char *yytext;
303#define yytext_ptr yytext
Anton Korobeynikov9adeaa22007-01-28 13:37:39 +0000304
Reid Spencer832254e2007-02-02 02:16:23 +0000305static yy_state_type yy_get_previous_state YY_PROTO(( void ));
306static yy_state_type yy_try_NUL_trans YY_PROTO(( yy_state_type current_state ));
307static int yy_get_next_buffer YY_PROTO(( void ));
308static void yy_fatal_error YY_PROTO(( yyconst char msg[] ));
Reid Spencere7c3c602006-11-30 06:36:44 +0000309
310/* Done after the current pattern has been matched and before the
Reid Spencer832254e2007-02-02 02:16:23 +0000311 * corresponding action - sets up yytext.
Reid Spencere7c3c602006-11-30 06:36:44 +0000312 */
313#define YY_DO_BEFORE_ACTION \
Reid Spencer832254e2007-02-02 02:16:23 +0000314 yytext_ptr = yy_bp; \
315 yyleng = (int) (yy_cp - yy_bp); \
316 yy_hold_char = *yy_cp; \
Reid Spencere7c3c602006-11-30 06:36:44 +0000317 *yy_cp = '\0'; \
Reid Spencer832254e2007-02-02 02:16:23 +0000318 yy_c_buf_p = yy_cp;
Reid Spencere7c3c602006-11-30 06:36:44 +0000319
Reid Spencer950bf602007-01-26 08:19:09 +0000320#define YY_NUM_RULES 156
321#define YY_END_OF_BUFFER 157
Reid Spencer832254e2007-02-02 02:16:23 +0000322static yyconst short int yy_acclist[234] =
Reid Spencere7c3c602006-11-30 06:36:44 +0000323 { 0,
Reid Spencer832254e2007-02-02 02:16:23 +0000324 157, 155, 156, 154, 155, 156, 154, 156, 155, 156,
325 155, 156, 155, 156, 155, 156, 155, 156, 155, 156,
326 147, 155, 156, 147, 155, 156, 1, 155, 156, 155,
327 156, 155, 156, 155, 156, 155, 156, 155, 156, 155,
328 156, 155, 156, 155, 156, 155, 156, 155, 156, 155,
329 156, 155, 156, 155, 156, 155, 156, 155, 156, 155,
330 156, 155, 156, 155, 156, 155, 156, 155, 156, 155,
331 156, 146, 144, 143, 143, 150, 148, 152, 147, 1,
332 129, 41, 89, 90, 75, 23, 146, 143, 143, 151,
333 152, 20, 152, 153, 63, 74, 39, 34, 42, 66,
Reid Spencere7c3c602006-11-30 06:36:44 +0000334
Reid Spencer832254e2007-02-02 02:16:23 +0000335 3, 52, 65, 25, 99, 104, 102, 103, 101, 100,
336 105, 109, 70, 128, 94, 92, 83, 84, 93, 91,
337 64, 107, 98, 96, 97, 95, 108, 106, 76, 145,
338 152, 152, 86, 57, 110, 111, 88, 69, 136, 73,
339 87, 137, 54, 85, 22, 149, 68, 114, 72, 26,
340 4, 61, 67, 53, 71, 56, 11, 113, 152, 36,
341 2, 5, 58, 116, 60, 48, 78, 82, 80, 81,
342 79, 77, 50, 138, 112, 49, 55, 21, 126, 135,
343 45, 59, 30, 24, 44, 118, 117, 7, 131, 33,
344 134, 38, 62, 124, 120, 130, 27, 28, 119, 132,
Reid Spencere7c3c602006-11-30 06:36:44 +0000345
Reid Spencer832254e2007-02-02 02:16:23 +0000346 51, 127, 125, 123, 43, 6, 29, 115, 37, 8,
347 17, 9, 122, 10, 121, 35, 12, 14, 13, 32,
348 40, 15, 31, 133, 139, 141, 142, 16, 46, 140,
349 18, 47, 19
Reid Spencere7c3c602006-11-30 06:36:44 +0000350 } ;
351
Reid Spencer832254e2007-02-02 02:16:23 +0000352static yyconst short int yy_accept[611] =
353 { 0,
354 1, 1, 1, 2, 4, 7, 9, 11, 13, 15,
355 17, 19, 21, 24, 27, 30, 32, 34, 36, 38,
356 40, 42, 44, 46, 48, 50, 52, 54, 56, 58,
357 60, 62, 64, 66, 68, 70, 72, 72, 73, 73,
358 74, 75, 76, 77, 77, 78, 78, 79, 80, 80,
359 81, 81, 81, 81, 81, 81, 81, 81, 81, 82,
360 82, 83, 83, 83, 83, 83, 83, 83, 83, 83,
361 84, 84, 84, 84, 84, 84, 84, 84, 84, 84,
362 84, 84, 84, 84, 84, 84, 84, 84, 84, 84,
363 85, 85, 85, 85, 85, 85, 85, 85, 86, 86,
364
365 86, 86, 86, 86, 86, 86, 86, 86, 86, 86,
366 86, 86, 86, 86, 86, 86, 87, 87, 87, 87,
367 87, 87, 87, 87, 87, 87, 87, 87, 87, 87,
368 87, 87, 87, 87, 88, 89, 91, 92, 93, 94,
369 94, 95, 96, 96, 96, 97, 97, 97, 98, 98,
370 99, 99, 99, 99, 99, 100, 100, 100, 100, 100,
371 100, 100, 101, 101, 101, 102, 102, 102, 102, 102,
372 102, 102, 102, 102, 102, 102, 102, 102, 102, 102,
373 102, 103, 103, 103, 103, 103, 103, 103, 103, 103,
374 103, 104, 105, 105, 106, 107, 108, 109, 110, 111,
375
376 111, 112, 113, 113, 113, 114, 115, 115, 115, 115,
377 115, 115, 115, 115, 116, 117, 118, 118, 119, 119,
378 119, 119, 120, 121, 121, 121, 122, 122, 122, 122,
379 122, 122, 122, 122, 122, 123, 124, 125, 125, 125,
380 126, 126, 127, 127, 128, 128, 129, 129, 129, 129,
381 129, 129, 129, 129, 129, 129, 129, 129, 130, 130,
382 130, 131, 132, 132, 132, 132, 133, 133, 133, 133,
383 134, 134, 134, 135, 136, 137, 137, 137, 137, 137,
384 137, 137, 137, 137, 137, 137, 137, 137, 137, 137,
385 137, 138, 139, 139, 139, 139, 139, 140, 141, 141,
386
387 141, 142, 142, 142, 142, 142, 142, 142, 142, 142,
388 143, 144, 145, 145, 145, 146, 146, 146, 146, 147,
389 147, 148, 148, 148, 148, 148, 148, 148, 149, 149,
390 149, 149, 149, 150, 150, 150, 151, 151, 151, 152,
391 152, 153, 153, 154, 155, 155, 155, 155, 155, 155,
392 155, 156, 156, 156, 156, 156, 157, 157, 158, 158,
393 158, 159, 160, 161, 161, 161, 162, 162, 162, 162,
394 162, 162, 162, 162, 162, 162, 162, 162, 162, 162,
395 162, 163, 163, 164, 165, 165, 165, 165, 165, 165,
396 165, 165, 165, 165, 165, 166, 166, 166, 166, 166,
397
398 166, 166, 166, 167, 167, 167, 168, 169, 170, 171,
399 172, 173, 174, 174, 174, 174, 175, 175, 175, 175,
400 176, 177, 177, 178, 179, 179, 179, 179, 179, 179,
401 180, 180, 180, 180, 180, 180, 181, 181, 181, 182,
402 182, 182, 182, 182, 182, 182, 182, 183, 184, 185,
403 185, 185, 186, 187, 188, 188, 188, 189, 189, 189,
404 189, 189, 190, 190, 191, 192, 193, 194, 194, 194,
405 194, 195, 195, 195, 196, 197, 198, 199, 200, 200,
406 200, 201, 202, 203, 204, 204, 204, 204, 204, 204,
407 205, 205, 206, 206, 207, 208, 208, 208, 208, 208,
408
409 208, 209, 209, 209, 209, 209, 209, 209, 209, 209,
410 210, 210, 210, 210, 210, 210, 210, 210, 210, 210,
411 211, 211, 211, 211, 211, 212, 212, 212, 212, 212,
412 213, 214, 215, 215, 216, 216, 216, 216, 216, 217,
413 217, 217, 217, 218, 218, 219, 220, 220, 220, 220,
414 220, 220, 220, 220, 220, 220, 220, 220, 220, 220,
415 221, 221, 221, 221, 221, 221, 221, 221, 222, 222,
416 222, 222, 222, 222, 223, 223, 223, 223, 223, 224,
417 224, 224, 225, 225, 225, 225, 225, 225, 225, 225,
418 225, 225, 225, 225, 225, 225, 226, 226, 227, 228,
419
420 229, 229, 230, 230, 231, 232, 233, 233, 234, 234
421 } ;
422
423static yyconst int yy_ec[256] =
Reid Spencere7c3c602006-11-30 06:36:44 +0000424 { 0,
425 1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
426 1, 1, 2, 1, 1, 1, 1, 1, 1, 1,
427 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
428 1, 2, 1, 4, 1, 5, 6, 1, 1, 1,
Reid Spencer950bf602007-01-26 08:19:09 +0000429 1, 1, 7, 1, 8, 9, 1, 10, 11, 11,
430 11, 11, 11, 12, 11, 13, 11, 14, 15, 1,
431 1, 1, 1, 1, 16, 16, 16, 16, 17, 16,
Reid Spencere7c3c602006-11-30 06:36:44 +0000432 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
433 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
Reid Spencer950bf602007-01-26 08:19:09 +0000434 1, 1, 1, 1, 18, 1, 19, 20, 21, 22,
Reid Spencere7c3c602006-11-30 06:36:44 +0000435
Reid Spencer950bf602007-01-26 08:19:09 +0000436 23, 24, 25, 26, 27, 5, 28, 29, 30, 31,
437 32, 33, 34, 35, 36, 37, 38, 39, 40, 41,
438 42, 43, 1, 1, 1, 1, 1, 1, 1, 1,
Reid Spencere7c3c602006-11-30 06:36:44 +0000439 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
440 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
441 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
442 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
443 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
444 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
445 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
446
447 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
448 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
449 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
450 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
451 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
452 1, 1, 1, 1, 1
453 } ;
454
Reid Spencer832254e2007-02-02 02:16:23 +0000455static yyconst int yy_meta[44] =
Reid Spencere7c3c602006-11-30 06:36:44 +0000456 { 0,
Reid Spencer950bf602007-01-26 08:19:09 +0000457 1, 1, 2, 1, 3, 1, 1, 3, 3, 3,
458 3, 3, 3, 4, 1, 3, 3, 3, 3, 3,
Reid Spencere7c3c602006-11-30 06:36:44 +0000459 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
Reid Spencer950bf602007-01-26 08:19:09 +0000460 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
461 3, 3, 3
Reid Spencere7c3c602006-11-30 06:36:44 +0000462 } ;
463
Reid Spencer832254e2007-02-02 02:16:23 +0000464static yyconst short int yy_base[615] =
Reid Spencere7c3c602006-11-30 06:36:44 +0000465 { 0,
Reid Spencer950bf602007-01-26 08:19:09 +0000466 0, 0, 1308, 1309, 1309, 1309, 1303, 1292, 36, 40,
467 44, 50, 56, 62, 0, 63, 66, 81, 89, 47,
468 108, 91, 105, 96, 119, 117, 144, 128, 68, 170,
469 169, 202, 92, 111, 131, 125, 1301, 1309, 1290, 1309,
470 0, 207, 229, 234, 239, 70, 244, 259, 264, 0,
471 139, 145, 142, 76, 136, 156, 157, 31, 1289, 162,
472 164, 192, 48, 172, 268, 175, 173, 221, 212, 1288,
473 276, 278, 138, 186, 72, 279, 277, 280, 289, 249,
474 282, 290, 216, 281, 291, 189, 294, 284, 295, 1287,
475 297, 306, 73, 305, 316, 317, 246, 311, 318, 322,
Reid Spencere7c3c602006-11-30 06:36:44 +0000476
Reid Spencer950bf602007-01-26 08:19:09 +0000477 323, 324, 327, 329, 330, 338, 332, 348, 350, 333,
478 337, 334, 362, 336, 364, 1286, 367, 351, 359, 371,
479 374, 379, 375, 381, 405, 386, 389, 403, 396, 378,
480 250, 376, 400, 1285, 0, 436, 440, 1284, 454, 471,
481 0, 1283, 382, 406, 1282, 410, 425, 1281, 415, 1280,
482 422, 430, 440, 456, 1279, 458, 459, 473, 412, 447,
483 460, 1278, 474, 442, 472, 477, 480, 476, 461, 478,
484 416, 488, 490, 491, 494, 495, 496, 492, 499, 506,
485 507, 500, 513, 505, 508, 520, 521, 523, 524, 525,
486 1277, 1276, 526, 1275, 1274, 1273, 1272, 1271, 1270, 527,
Reid Spencere7c3c602006-11-30 06:36:44 +0000487
Reid Spencer950bf602007-01-26 08:19:09 +0000488 1269, 1268, 529, 533, 1267, 1266, 561, 538, 537, 542,
489 534, 572, 550, 1265, 1264, 1263, 553, 1262, 535, 575,
490 536, 1261, 1260, 576, 577, 1259, 555, 579, 540, 580,
491 586, 582, 585, 588, 1258, 1257, 1256, 593, 596, 1255,
492 590, 1254, 597, 1253, 600, 1252, 601, 602, 604, 605,
493 619, 609, 612, 618, 622, 611, 214, 1251, 628, 629,
494 1309, 635, 643, 651, 657, 662, 651, 663, 664, 1250,
495 665, 666, 1249, 1248, 1247, 667, 669, 672, 673, 675,
496 676, 677, 678, 683, 679, 686, 685, 691, 690, 693,
497 1246, 1245, 687, 697, 701, 702, 1244, 1243, 703, 707,
Reid Spencere7c3c602006-11-30 06:36:44 +0000498
Reid Spencer950bf602007-01-26 08:19:09 +0000499 1242, 708, 709, 711, 713, 714, 719, 715, 721, 1241,
500 1240, 1239, 722, 724, 1238, 727, 729, 735, 0, 737,
501 1237, 741, 738, 742, 747, 748, 749, 1236, 743, 635,
502 750, 755, 1235, 760, 761, 1234, 763, 764, 1233, 767,
503 1232, 773, 1231, 1230, 775, 776, 778, 777, 781, 780,
504 1229, 783, 784, 789, 791, 1228, 792, 1227, 798, 793,
505 1226, 813, 1225, 794, 795, 1224, 801, 807, 816, 817,
506 822, 813, 796, 819, 825, 826, 828, 829, 830, 832,
507 1223, 833, 1222, 1221, 836, 837, 831, 842, 841, 843,
508 846, 853, 854, 855, 1220, 857, 858, 861, 862, 863,
Reid Spencere7c3c602006-11-30 06:36:44 +0000509
Reid Spencer950bf602007-01-26 08:19:09 +0000510 866, 865, 1219, 876, 860, 1218, 1217, 1216, 1215, 1214,
511 1213, 1212, 877, 879, 880, 1211, 881, 882, 886, 1210,
512 1209, 884, 1208, 1207, 885, 890, 888, 887, 891, 1206,
513 898, 900, 901, 904, 907, 1205, 909, 911, 1204, 912,
514 916, 716, 917, 914, 915, 919, 1203, 1202, 1201, 935,
515 918, 1200, 1199, 1198, 925, 928, 1197, 938, 942, 943,
516 930, 1196, 945, 1195, 1194, 1193, 1192, 946, 949, 954,
517 1191, 950, 955, 1190, 1189, 1188, 1187, 1186, 956, 958,
518 1185, 1184, 1183, 1182, 957, 960, 968, 961, 962, 1181,
519 963, 1180, 973, 1179, 1178, 964, 975, 977, 978, 980,
Reid Spencere7c3c602006-11-30 06:36:44 +0000520
Reid Spencer950bf602007-01-26 08:19:09 +0000521 1177, 981, 983, 984, 987, 988, 992, 994, 995, 1176,
522 997, 998, 1005, 1006, 1004, 1008, 1012, 1014, 920, 1175,
523 1015, 1017, 1020, 1021, 1174, 1023, 1024, 1025, 1026, 1171,
524 1162, 1160, 1029, 1159, 1027, 1044, 1032, 1028, 1158, 1045,
525 1049, 1033, 1157, 1050, 1155, 1154, 1053, 1055, 1056, 1057,
526 1059, 1060, 1061, 1063, 1065, 1066, 1067, 1069, 1071, 1152,
527 1074, 1077, 1080, 1082, 1083, 1085, 1087, 1148, 1090, 1091,
528 1096, 1097, 1098, 1147, 1095, 1101, 1102, 1103, 1145, 1107,
529 1108, 1140, 1106, 1109, 1114, 1118, 1122, 1123, 1126, 1129,
530 1128, 1130, 1131, 1132, 1133, 1070, 1134, 643, 552, 548,
Reid Spencer229e9362006-12-02 22:14:11 +0000531
Reid Spencer950bf602007-01-26 08:19:09 +0000532 1139, 444, 1144, 360, 285, 252, 1142, 133, 1309, 1177,
533 1179, 143, 1183, 57
Reid Spencere7c3c602006-11-30 06:36:44 +0000534 } ;
535
Reid Spencer832254e2007-02-02 02:16:23 +0000536static yyconst short int yy_def[615] =
Reid Spencere7c3c602006-11-30 06:36:44 +0000537 { 0,
Reid Spencer950bf602007-01-26 08:19:09 +0000538 609, 1, 609, 609, 609, 609, 610, 611, 612, 609,
539 611, 611, 611, 611, 613, 611, 611, 611, 611, 611,
540 611, 611, 611, 611, 611, 611, 611, 611, 611, 611,
541 611, 611, 611, 611, 611, 611, 610, 609, 611, 609,
542 614, 614, 609, 609, 611, 611, 611, 611, 611, 613,
543 611, 611, 611, 611, 611, 611, 611, 611, 611, 611,
544 611, 611, 611, 611, 611, 611, 611, 611, 611, 611,
545 611, 611, 611, 611, 611, 611, 611, 611, 611, 611,
546 611, 611, 611, 611, 611, 611, 611, 611, 611, 611,
547 611, 611, 611, 611, 611, 611, 611, 611, 611, 611,
Reid Spencere7c3c602006-11-30 06:36:44 +0000548
Reid Spencer950bf602007-01-26 08:19:09 +0000549 611, 611, 611, 611, 611, 611, 611, 611, 611, 611,
550 611, 611, 611, 611, 611, 611, 611, 611, 611, 611,
551 611, 611, 611, 611, 611, 611, 611, 611, 611, 611,
552 611, 611, 611, 609, 614, 614, 609, 611, 611, 611,
553 49, 611, 611, 611, 611, 611, 611, 611, 611, 611,
554 611, 611, 611, 611, 611, 611, 611, 611, 611, 611,
555 611, 611, 611, 611, 611, 611, 611, 611, 611, 611,
556 611, 611, 611, 611, 611, 611, 611, 611, 611, 611,
557 611, 611, 611, 611, 611, 611, 611, 611, 611, 611,
558 611, 611, 611, 611, 611, 611, 611, 611, 611, 611,
Reid Spencere7c3c602006-11-30 06:36:44 +0000559
Reid Spencer950bf602007-01-26 08:19:09 +0000560 611, 611, 611, 611, 611, 611, 49, 611, 611, 611,
561 611, 611, 611, 611, 611, 611, 611, 611, 611, 611,
562 611, 611, 611, 611, 611, 611, 611, 611, 611, 611,
563 611, 611, 611, 611, 611, 611, 611, 611, 611, 611,
564 611, 611, 611, 611, 611, 611, 611, 611, 611, 611,
565 611, 611, 611, 611, 611, 611, 611, 611, 611, 611,
566 609, 609, 609, 609, 611, 611, 611, 611, 611, 611,
567 611, 611, 611, 611, 611, 611, 611, 611, 611, 611,
568 611, 611, 611, 611, 611, 611, 611, 611, 611, 611,
569 611, 611, 611, 611, 611, 611, 611, 611, 611, 611,
Reid Spencere7c3c602006-11-30 06:36:44 +0000570
Reid Spencer950bf602007-01-26 08:19:09 +0000571 611, 611, 611, 611, 611, 611, 611, 611, 611, 611,
572 611, 611, 611, 611, 611, 611, 611, 611, 207, 611,
573 611, 611, 611, 611, 611, 611, 611, 611, 611, 611,
574 611, 611, 611, 611, 611, 611, 611, 611, 611, 611,
575 611, 611, 611, 611, 611, 611, 611, 611, 611, 611,
576 611, 611, 611, 611, 611, 611, 611, 611, 611, 611,
577 611, 609, 611, 611, 611, 611, 611, 611, 611, 611,
578 611, 611, 611, 611, 611, 611, 611, 611, 611, 611,
579 611, 611, 611, 611, 611, 611, 611, 611, 611, 611,
580 611, 611, 611, 611, 611, 611, 611, 611, 611, 611,
Reid Spencere7c3c602006-11-30 06:36:44 +0000581
Reid Spencer950bf602007-01-26 08:19:09 +0000582 611, 611, 611, 611, 611, 611, 611, 611, 611, 611,
583 611, 611, 611, 611, 611, 611, 611, 611, 611, 611,
584 611, 611, 611, 611, 611, 611, 611, 611, 611, 611,
585 611, 611, 611, 611, 611, 611, 611, 611, 611, 611,
586 611, 611, 611, 611, 611, 611, 611, 611, 611, 611,
587 611, 611, 611, 611, 611, 611, 611, 611, 611, 611,
588 611, 611, 611, 611, 611, 611, 611, 611, 611, 611,
589 611, 611, 611, 611, 611, 611, 611, 611, 611, 611,
590 611, 611, 611, 611, 611, 611, 611, 611, 611, 611,
591 611, 611, 611, 611, 611, 611, 611, 611, 611, 611,
Reid Spencere7c3c602006-11-30 06:36:44 +0000592
Reid Spencer950bf602007-01-26 08:19:09 +0000593 611, 611, 611, 611, 611, 611, 611, 611, 611, 611,
594 611, 611, 611, 611, 611, 611, 611, 611, 611, 611,
595 611, 611, 611, 611, 611, 611, 611, 611, 611, 611,
596 611, 611, 611, 611, 611, 611, 611, 611, 611, 611,
597 611, 611, 611, 611, 611, 611, 611, 611, 611, 611,
598 611, 611, 611, 611, 611, 611, 611, 611, 611, 611,
599 611, 611, 611, 611, 611, 611, 611, 611, 611, 611,
600 611, 611, 611, 611, 611, 611, 611, 611, 611, 611,
601 611, 611, 611, 611, 611, 611, 611, 611, 611, 611,
602 611, 611, 611, 611, 611, 611, 611, 611, 611, 611,
Reid Spencer229e9362006-12-02 22:14:11 +0000603
Reid Spencer950bf602007-01-26 08:19:09 +0000604 611, 611, 611, 611, 611, 611, 611, 611, 0, 609,
605 609, 609, 609, 609
Reid Spencere7c3c602006-11-30 06:36:44 +0000606 } ;
607
Reid Spencer832254e2007-02-02 02:16:23 +0000608static yyconst short int yy_nxt[1353] =
Reid Spencere7c3c602006-11-30 06:36:44 +0000609 { 0,
610 4, 5, 6, 7, 8, 9, 10, 11, 12, 13,
Reid Spencer950bf602007-01-26 08:19:09 +0000611 14, 14, 14, 4, 15, 8, 8, 8, 16, 17,
612 18, 19, 20, 21, 22, 8, 23, 8, 24, 25,
613 26, 27, 28, 8, 29, 30, 31, 32, 33, 34,
614 35, 8, 36, 42, 40, 43, 43, 43, 43, 44,
615 44, 44, 44, 45, 45, 45, 45, 40, 46, 135,
616 40, 40, 152, 40, 47, 48, 48, 48, 48, 40,
617 47, 48, 48, 48, 48, 40, 40, 69, 138, 40,
618 70, 40, 158, 40, 51, 40, 40, 71, 56, 40,
619 102, 52, 57, 53, 40, 54, 49, 58, 55, 60,
Reid Spencere7c3c602006-11-30 06:36:44 +0000620
Reid Spencer950bf602007-01-26 08:19:09 +0000621 59, 61, 40, 172, 40, 40, 194, 64, 146, 40,
622 128, 65, 62, 78, 83, 66, 63, 67, 40, 79,
623 68, 40, 84, 129, 40, 80, 72, 85, 73, 74,
624 40, 86, 40, 130, 81, 82, 75, 87, 40, 90,
625 76, 40, 77, 131, 40, 41, 40, 133, 91, 40,
626 88, 40, 40, 99, 92, 40, 89, 40, 40, 100,
627 142, 147, 132, 145, 101, 148, 93, 170, 94, 40,
628 40, 143, 95, 144, 96, 40, 97, 40, 98, 103,
629 149, 150, 40, 40, 155, 40, 40, 115, 40, 104,
630 153, 105, 106, 151, 107, 108, 109, 154, 110, 40,
Reid Spencere7c3c602006-11-30 06:36:44 +0000631
Reid Spencer950bf602007-01-26 08:19:09 +0000632 116, 163, 40, 117, 111, 40, 112, 113, 159, 114,
633 118, 103, 171, 162, 188, 40, 136, 136, 136, 136,
634 156, 119, 157, 120, 121, 40, 122, 40, 123, 40,
635 124, 359, 125, 165, 40, 183, 126, 127, 43, 43,
636 43, 43, 137, 44, 44, 44, 44, 47, 45, 45,
637 45, 45, 40, 139, 139, 139, 139, 40, 164, 40,
638 140, 257, 40, 40, 200, 40, 140, 47, 48, 48,
639 48, 48, 40, 141, 141, 141, 141, 40, 178, 141,
640 141, 40, 141, 141, 141, 141, 141, 141, 160, 40,
641 40, 40, 40, 40, 40, 40, 166, 40, 40, 175,
Reid Spencere7c3c602006-11-30 06:36:44 +0000642
Reid Spencer950bf602007-01-26 08:19:09 +0000643 161, 173, 40, 40, 40, 190, 168, 40, 40, 186,
644 40, 184, 167, 169, 179, 174, 176, 185, 40, 40,
645 177, 187, 189, 191, 40, 180, 181, 195, 182, 40,
646 40, 40, 201, 192, 193, 40, 40, 40, 197, 199,
647 40, 196, 40, 40, 202, 40, 40, 40, 203, 40,
648 40, 40, 198, 205, 214, 222, 209, 204, 210, 224,
649 206, 40, 227, 40, 40, 225, 211, 207, 215, 223,
650 208, 220, 40, 40, 212, 40, 216, 40, 213, 217,
651 40, 226, 218, 232, 40, 219, 221, 40, 40, 40,
652 228, 40, 40, 230, 40, 40, 256, 234, 229, 40,
Reid Spencere7c3c602006-11-30 06:36:44 +0000653
Reid Spencer950bf602007-01-26 08:19:09 +0000654 233, 236, 40, 240, 231, 238, 267, 235, 249, 40,
655 258, 239, 241, 40, 250, 237, 40, 242, 40, 40,
656 251, 252, 254, 40, 255, 40, 243, 244, 40, 40,
657 279, 245, 269, 253, 259, 40, 246, 268, 40, 247,
658 260, 271, 272, 40, 248, 136, 136, 136, 136, 262,
659 262, 262, 262, 40, 292, 40, 263, 40, 273, 270,
660 40, 284, 263, 139, 139, 139, 139, 40, 274, 40,
661 140, 40, 40, 40, 40, 280, 140, 264, 265, 276,
662 266, 266, 266, 266, 40, 40, 40, 40, 281, 40,
663 40, 40, 275, 40, 277, 278, 282, 290, 285, 286,
Reid Spencere7c3c602006-11-30 06:36:44 +0000664
Reid Spencer950bf602007-01-26 08:19:09 +0000665 283, 40, 287, 40, 40, 40, 293, 40, 40, 40,
666 291, 289, 40, 40, 288, 300, 297, 299, 40, 40,
667 40, 40, 295, 298, 301, 296, 40, 302, 303, 304,
668 294, 306, 308, 40, 40, 307, 40, 40, 40, 40,
669 40, 310, 40, 305, 309, 311, 40, 40, 40, 40,
670 40, 40, 313, 40, 315, 40, 323, 312, 330, 317,
671 316, 40, 314, 40, 337, 40, 40, 332, 40, 318,
672 319, 319, 319, 319, 320, 321, 319, 319, 322, 319,
673 319, 319, 319, 319, 319, 40, 328, 329, 40, 40,
674 40, 335, 40, 40, 324, 40, 325, 331, 40, 40,
Reid Spencere7c3c602006-11-30 06:36:44 +0000675
Reid Spencer950bf602007-01-26 08:19:09 +0000676 326, 40, 327, 40, 341, 333, 40, 336, 339, 40,
677 40, 334, 338, 40, 40, 40, 340, 40, 40, 347,
678 346, 342, 40, 349, 40, 40, 343, 345, 350, 344,
679 348, 40, 40, 351, 355, 40, 352, 353, 358, 356,
680 357, 40, 40, 354, 262, 262, 262, 262, 40, 264,
681 264, 263, 362, 362, 362, 362, 40, 263, 413, 360,
682 362, 362, 362, 362, 40, 361, 266, 266, 266, 266,
683 40, 266, 266, 266, 266, 40, 40, 40, 40, 40,
684 40, 363, 40, 364, 367, 40, 40, 368, 40, 40,
685 40, 40, 40, 372, 365, 366, 40, 377, 40, 40,
Reid Spencere7c3c602006-11-30 06:36:44 +0000686
Reid Spencer950bf602007-01-26 08:19:09 +0000687 40, 371, 373, 40, 40, 369, 40, 375, 370, 380,
688 40, 376, 381, 382, 40, 40, 40, 374, 378, 379,
689 40, 40, 40, 383, 40, 389, 40, 40, 40, 40,
690 390, 388, 40, 384, 40, 40, 385, 40, 386, 387,
691 40, 394, 40, 391, 393, 392, 396, 395, 40, 397,
692 40, 40, 399, 398, 40, 40, 40, 493, 405, 403,
693 40, 40, 40, 40, 400, 401, 402, 404, 40, 407,
694 409, 411, 414, 40, 40, 406, 40, 40, 415, 412,
695 40, 417, 416, 408, 410, 418, 40, 420, 40, 40,
696 40, 40, 419, 40, 40, 421, 40, 40, 422, 426,
Reid Spencere7c3c602006-11-30 06:36:44 +0000697
Reid Spencer950bf602007-01-26 08:19:09 +0000698 423, 424, 40, 425, 40, 40, 40, 40, 40, 40,
699 427, 40, 436, 430, 40, 444, 437, 428, 429, 435,
700 40, 433, 362, 362, 362, 362, 40, 439, 432, 40,
701 40, 431, 40, 434, 440, 40, 438, 441, 40, 40,
702 442, 40, 40, 40, 40, 40, 40, 443, 447, 40,
703 40, 445, 451, 452, 40, 40, 40, 446, 448, 40,
704 450, 455, 453, 454, 456, 449, 40, 40, 40, 457,
705 40, 40, 458, 40, 40, 40, 40, 462, 40, 40,
706 464, 465, 459, 460, 466, 467, 461, 463, 468, 40,
707 40, 469, 40, 40, 40, 40, 471, 40, 40, 40,
Reid Spencer78720742006-12-02 20:21:22 +0000708
Reid Spencer950bf602007-01-26 08:19:09 +0000709 40, 40, 473, 40, 40, 472, 475, 470, 477, 481,
710 480, 40, 474, 40, 40, 483, 478, 40, 476, 486,
711 40, 479, 40, 482, 40, 40, 485, 40, 40, 40,
712 40, 40, 40, 40, 484, 489, 492, 488, 40, 494,
713 487, 40, 491, 40, 543, 501, 496, 490, 40, 495,
714 497, 40, 498, 499, 500, 40, 40, 502, 40, 40,
715 503, 505, 40, 40, 504, 507, 506, 40, 40, 40,
716 40, 40, 511, 40, 40, 40, 40, 40, 512, 509,
717 508, 40, 513, 514, 510, 515, 40, 518, 40, 517,
718 40, 40, 519, 40, 40, 516, 40, 40, 522, 520,
Reid Spencer78720742006-12-02 20:21:22 +0000719
Reid Spencer950bf602007-01-26 08:19:09 +0000720 40, 40, 526, 527, 521, 40, 525, 40, 40, 523,
721 40, 40, 529, 528, 532, 530, 524, 40, 40, 40,
722 536, 40, 531, 537, 538, 40, 539, 40, 40, 533,
723 40, 534, 541, 40, 40, 535, 40, 40, 40, 40,
724 40, 40, 40, 547, 540, 40, 40, 556, 551, 553,
725 542, 548, 544, 545, 549, 552, 546, 40, 40, 559,
726 555, 550, 40, 40, 554, 557, 40, 558, 40, 40,
727 40, 561, 40, 40, 40, 564, 40, 562, 40, 40,
728 40, 567, 40, 40, 40, 571, 560, 40, 565, 573,
729 40, 569, 563, 40, 570, 40, 40, 572, 40, 568,
Reid Spencer78720742006-12-02 20:21:22 +0000730
Reid Spencer950bf602007-01-26 08:19:09 +0000731 40, 574, 566, 40, 40, 578, 575, 579, 40, 40,
732 40, 40, 576, 582, 40, 40, 40, 586, 577, 40,
733 40, 40, 40, 580, 583, 584, 585, 40, 588, 593,
734 591, 40, 581, 589, 592, 40, 40, 587, 590, 40,
735 594, 40, 40, 40, 40, 40, 40, 40, 595, 600,
736 601, 602, 40, 40, 597, 40, 596, 40, 40, 606,
737 40, 40, 598, 599, 605, 40, 607, 40, 40, 604,
738 40, 40, 40, 40, 603, 40, 608, 37, 37, 37,
739 37, 39, 39, 50, 40, 50, 50, 40, 40, 40,
Reid Spencer229e9362006-12-02 22:14:11 +0000740 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
741
Reid Spencer78720742006-12-02 20:21:22 +0000742 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
743 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
744 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
745 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
746 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
747 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
Reid Spencerfcb5df82006-12-01 22:34:43 +0000748 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
Reid Spencere7c3c602006-11-30 06:36:44 +0000749 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
Reid Spencer950bf602007-01-26 08:19:09 +0000750 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
751 40, 40, 40, 40, 40, 40, 40, 40, 261, 40,
Reid Spencer229e9362006-12-02 22:14:11 +0000752
Reid Spencer950bf602007-01-26 08:19:09 +0000753 40, 40, 40, 40, 134, 40, 38, 609, 3, 609,
754 609, 609, 609, 609, 609, 609, 609, 609, 609, 609,
755 609, 609, 609, 609, 609, 609, 609, 609, 609, 609,
756 609, 609, 609, 609, 609, 609, 609, 609, 609, 609,
757 609, 609, 609, 609, 609, 609, 609, 609, 609, 609,
758 609, 609
Reid Spencere7c3c602006-11-30 06:36:44 +0000759 } ;
760
Reid Spencer832254e2007-02-02 02:16:23 +0000761static yyconst short int yy_chk[1353] =
Reid Spencere7c3c602006-11-30 06:36:44 +0000762 { 0,
763 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
764 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
765 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
766 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
Reid Spencer950bf602007-01-26 08:19:09 +0000767 1, 1, 1, 9, 58, 9, 9, 9, 9, 10,
768 10, 10, 10, 11, 11, 11, 11, 11, 12, 614,
769 20, 63, 58, 12, 13, 13, 13, 13, 13, 13,
770 14, 14, 14, 14, 14, 14, 16, 20, 46, 17,
771 20, 29, 63, 46, 16, 75, 93, 20, 17, 54,
772 29, 16, 17, 16, 18, 16, 13, 17, 16, 18,
Reid Spencere7c3c602006-11-30 06:36:44 +0000773
Reid Spencer950bf602007-01-26 08:19:09 +0000774 17, 18, 19, 75, 22, 33, 93, 19, 54, 24,
775 33, 19, 18, 22, 24, 19, 18, 19, 23, 22,
776 19, 21, 24, 33, 34, 23, 21, 24, 21, 21,
777 26, 24, 25, 34, 23, 23, 21, 25, 36, 26,
778 21, 28, 21, 35, 35, 612, 608, 36, 26, 55,
779 25, 73, 51, 28, 26, 53, 25, 27, 52, 28,
780 51, 55, 35, 53, 28, 55, 27, 73, 27, 56,
781 57, 52, 27, 52, 27, 60, 27, 61, 27, 30,
782 56, 57, 31, 30, 61, 64, 67, 31, 66, 30,
783 60, 30, 30, 57, 30, 30, 30, 60, 30, 74,
Reid Spencere7c3c602006-11-30 06:36:44 +0000784
Reid Spencer950bf602007-01-26 08:19:09 +0000785 31, 67, 86, 31, 30, 62, 30, 30, 64, 30,
786 31, 32, 74, 66, 86, 32, 42, 42, 42, 42,
787 62, 32, 62, 32, 32, 69, 32, 257, 32, 83,
788 32, 257, 32, 69, 68, 83, 32, 32, 43, 43,
789 43, 43, 44, 44, 44, 44, 44, 45, 45, 45,
790 45, 45, 45, 47, 47, 47, 47, 47, 68, 97,
791 47, 131, 80, 131, 97, 606, 47, 48, 48, 48,
792 48, 48, 48, 49, 49, 49, 49, 49, 80, 49,
793 49, 65, 49, 49, 49, 49, 49, 49, 65, 71,
794 77, 72, 76, 78, 84, 81, 71, 88, 605, 77,
Reid Spencere7c3c602006-11-30 06:36:44 +0000795
Reid Spencer950bf602007-01-26 08:19:09 +0000796 65, 76, 79, 82, 85, 88, 72, 87, 89, 85,
797 91, 84, 71, 72, 81, 76, 78, 84, 94, 92,
798 79, 85, 87, 89, 98, 82, 82, 94, 82, 95,
799 96, 99, 98, 91, 92, 100, 101, 102, 95, 96,
800 103, 94, 104, 105, 99, 107, 110, 112, 100, 114,
801 111, 106, 95, 102, 107, 110, 105, 101, 106, 111,
802 102, 108, 114, 109, 118, 112, 106, 103, 107, 110,
803 104, 109, 119, 604, 106, 113, 108, 115, 106, 108,
804 117, 113, 108, 118, 120, 108, 109, 121, 123, 132,
805 115, 130, 122, 117, 124, 143, 130, 120, 115, 126,
Reid Spencere7c3c602006-11-30 06:36:44 +0000806
Reid Spencer950bf602007-01-26 08:19:09 +0000807 119, 122, 127, 124, 117, 123, 143, 121, 126, 129,
808 132, 123, 124, 133, 127, 122, 128, 124, 125, 144,
809 128, 128, 129, 146, 129, 159, 125, 125, 149, 171,
810 159, 125, 146, 128, 133, 151, 125, 144, 147, 125,
811 133, 149, 151, 152, 125, 136, 136, 136, 136, 137,
812 137, 137, 137, 153, 171, 164, 137, 602, 152, 147,
813 160, 164, 137, 139, 139, 139, 139, 139, 153, 154,
814 139, 156, 157, 161, 169, 160, 139, 140, 140, 156,
815 140, 140, 140, 140, 140, 165, 158, 163, 161, 168,
816 166, 170, 154, 167, 157, 158, 163, 169, 165, 166,
Reid Spencere7c3c602006-11-30 06:36:44 +0000817
Reid Spencer950bf602007-01-26 08:19:09 +0000818 163, 172, 167, 173, 174, 178, 172, 175, 176, 177,
819 170, 168, 179, 182, 167, 177, 175, 176, 184, 180,
820 181, 185, 174, 175, 178, 174, 183, 179, 180, 181,
821 173, 182, 184, 186, 187, 183, 188, 189, 190, 193,
822 200, 186, 203, 181, 185, 187, 204, 211, 219, 221,
823 209, 208, 189, 229, 193, 210, 211, 188, 219, 203,
824 200, 600, 190, 213, 229, 599, 217, 221, 227, 204,
825 207, 207, 207, 207, 208, 209, 207, 207, 210, 207,
826 207, 207, 207, 207, 207, 212, 213, 217, 220, 224,
827 225, 227, 228, 230, 212, 232, 212, 220, 233, 231,
Reid Spencere7c3c602006-11-30 06:36:44 +0000828
Reid Spencer950bf602007-01-26 08:19:09 +0000829 212, 234, 212, 241, 232, 224, 238, 228, 231, 239,
830 243, 225, 230, 245, 247, 248, 231, 249, 250, 243,
831 241, 233, 252, 247, 256, 253, 234, 239, 248, 238,
832 245, 254, 251, 249, 253, 255, 250, 251, 256, 254,
833 255, 259, 260, 252, 262, 262, 262, 262, 330, 263,
834 263, 262, 263, 263, 263, 263, 598, 262, 330, 259,
835 264, 264, 264, 264, 267, 260, 265, 265, 265, 265,
836 265, 266, 266, 266, 266, 266, 268, 269, 271, 272,
837 276, 267, 277, 268, 272, 278, 279, 276, 280, 281,
838 282, 283, 285, 280, 269, 271, 284, 285, 287, 286,
Reid Spencere7c3c602006-11-30 06:36:44 +0000839
Reid Spencer950bf602007-01-26 08:19:09 +0000840 293, 279, 281, 289, 288, 277, 290, 283, 278, 288,
841 294, 284, 289, 290, 295, 296, 299, 282, 286, 287,
842 300, 302, 303, 293, 304, 300, 305, 306, 308, 442,
843 302, 299, 307, 294, 309, 313, 295, 314, 295, 296,
844 316, 306, 317, 303, 305, 304, 308, 307, 318, 309,
845 320, 323, 314, 313, 322, 324, 329, 442, 323, 320,
846 325, 326, 327, 331, 316, 317, 318, 322, 332, 325,
847 326, 327, 331, 334, 335, 324, 337, 338, 332, 329,
848 340, 335, 334, 325, 326, 337, 342, 340, 345, 346,
849 348, 347, 338, 350, 349, 342, 352, 353, 345, 349,
Reid Spencere7c3c602006-11-30 06:36:44 +0000850
Reid Spencer950bf602007-01-26 08:19:09 +0000851 346, 347, 354, 348, 355, 357, 360, 364, 365, 373,
852 350, 359, 364, 354, 367, 373, 365, 352, 353, 360,
853 368, 359, 362, 362, 362, 362, 372, 368, 357, 369,
854 370, 355, 374, 359, 369, 371, 367, 370, 375, 376,
855 371, 377, 378, 379, 387, 380, 382, 372, 376, 385,
856 386, 374, 380, 382, 389, 388, 390, 375, 377, 391,
857 379, 387, 385, 386, 388, 378, 392, 393, 394, 389,
858 396, 397, 390, 405, 398, 399, 400, 394, 402, 401,
859 397, 398, 391, 392, 399, 400, 393, 396, 401, 404,
860 413, 402, 414, 415, 417, 418, 405, 422, 425, 419,
Reid Spencere7c3c602006-11-30 06:36:44 +0000861
Reid Spencer950bf602007-01-26 08:19:09 +0000862 428, 427, 414, 426, 429, 413, 417, 404, 419, 427,
863 426, 431, 415, 432, 433, 429, 422, 434, 418, 433,
864 435, 425, 437, 428, 438, 440, 432, 444, 445, 441,
865 443, 451, 446, 519, 431, 437, 441, 435, 455, 443,
866 434, 456, 440, 461, 519, 455, 445, 438, 450, 444,
867 446, 458, 450, 450, 451, 459, 460, 456, 463, 468,
868 458, 460, 469, 472, 459, 463, 461, 470, 473, 479,
869 485, 480, 472, 486, 488, 489, 491, 496, 473, 469,
870 468, 487, 479, 480, 470, 485, 493, 488, 497, 487,
871 498, 499, 489, 500, 502, 486, 503, 504, 496, 491,
Reid Spencere7c3c602006-11-30 06:36:44 +0000872
Reid Spencer950bf602007-01-26 08:19:09 +0000873 505, 506, 500, 502, 493, 507, 499, 508, 509, 497,
874 511, 512, 504, 503, 507, 505, 498, 515, 513, 514,
875 512, 516, 506, 513, 514, 517, 515, 518, 521, 508,
876 522, 509, 517, 523, 524, 511, 526, 527, 528, 529,
877 535, 538, 533, 524, 516, 537, 542, 538, 529, 535,
878 518, 526, 521, 522, 527, 533, 523, 536, 540, 542,
879 537, 528, 541, 544, 536, 540, 547, 541, 548, 549,
880 550, 547, 551, 552, 553, 550, 554, 548, 555, 556,
881 557, 553, 558, 596, 559, 557, 544, 561, 551, 559,
882 562, 555, 549, 563, 556, 564, 565, 558, 566, 554,
Reid Spencere7c3c602006-11-30 06:36:44 +0000883
Reid Spencer950bf602007-01-26 08:19:09 +0000884 567, 561, 552, 569, 570, 565, 562, 566, 575, 571,
885 572, 573, 563, 570, 576, 577, 578, 575, 564, 583,
886 580, 581, 584, 567, 571, 572, 573, 585, 577, 584,
887 581, 586, 569, 578, 583, 587, 588, 576, 580, 589,
888 585, 591, 590, 592, 593, 594, 595, 597, 586, 591,
889 592, 593, 601, 582, 588, 607, 587, 603, 579, 601,
890 574, 568, 589, 590, 597, 560, 603, 546, 545, 595,
891 543, 539, 534, 532, 594, 531, 607, 610, 610, 610,
892 610, 611, 611, 613, 530, 613, 613, 525, 520, 510,
893 501, 495, 494, 492, 490, 484, 483, 482, 481, 478,
Reid Spencerfcb5df82006-12-01 22:34:43 +0000894
Reid Spencer950bf602007-01-26 08:19:09 +0000895 477, 476, 475, 474, 471, 467, 466, 465, 464, 462,
896 457, 454, 453, 452, 449, 448, 447, 439, 436, 430,
897 424, 423, 421, 420, 416, 412, 411, 410, 409, 408,
898 407, 406, 403, 395, 384, 383, 381, 366, 363, 361,
899 358, 356, 351, 344, 343, 341, 339, 336, 333, 328,
900 321, 315, 312, 311, 310, 301, 298, 297, 292, 291,
901 275, 274, 273, 270, 258, 246, 244, 242, 240, 237,
902 236, 235, 226, 223, 222, 218, 216, 215, 214, 206,
903 205, 202, 201, 199, 198, 197, 196, 195, 194, 192,
904 191, 162, 155, 150, 148, 145, 142, 138, 134, 116,
Reid Spencer229e9362006-12-02 22:14:11 +0000905
Reid Spencer950bf602007-01-26 08:19:09 +0000906 90, 70, 59, 39, 37, 8, 7, 3, 609, 609,
907 609, 609, 609, 609, 609, 609, 609, 609, 609, 609,
908 609, 609, 609, 609, 609, 609, 609, 609, 609, 609,
909 609, 609, 609, 609, 609, 609, 609, 609, 609, 609,
910 609, 609, 609, 609, 609, 609, 609, 609, 609, 609,
911 609, 609
Reid Spencere7c3c602006-11-30 06:36:44 +0000912 } ;
913
Reid Spencer832254e2007-02-02 02:16:23 +0000914static yy_state_type yy_state_buf[YY_BUF_SIZE + 2], *yy_state_ptr;
915static char *yy_full_match;
916static int yy_lp;
917#define REJECT \
918{ \
919*yy_cp = yy_hold_char; /* undo effects of setting up yytext */ \
920yy_cp = yy_full_match; /* restore poss. backed-over text */ \
921++yy_lp; \
922goto find_rule; \
923}
Reid Spencere7c3c602006-11-30 06:36:44 +0000924#define yymore() yymore_used_but_not_detected
925#define YY_MORE_ADJ 0
926#define YY_RESTORE_YY_MORE_OFFSET
Reid Spencer832254e2007-02-02 02:16:23 +0000927char *yytext;
928#line 1 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
929#define INITIAL 0
Reid Spencer96839be2006-11-30 16:50:26 +0000930/*===-- UpgradeLexer.l - Scanner for 1.9 assembly files --------*- C++ -*--===//
Reid Spencere7c3c602006-11-30 06:36:44 +0000931//
932// The LLVM Compiler Infrastructure
933//
Reid Spencer96839be2006-11-30 16:50:26 +0000934// This file was developed by Reid Spencer and is distributed under the
935// University of Illinois Open Source License. See LICENSE.TXT for details.
Reid Spencere7c3c602006-11-30 06:36:44 +0000936//
937//===----------------------------------------------------------------------===//
938//
Reid Spencer96839be2006-11-30 16:50:26 +0000939// This file implements the flex scanner for LLVM 1.9 assembly languages files.
Reid Spencere7c3c602006-11-30 06:36:44 +0000940//
941//===----------------------------------------------------------------------===*/
Reid Spencer832254e2007-02-02 02:16:23 +0000942#define YY_NEVER_INTERACTIVE 1
943#line 28 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer319a7302007-01-05 17:20:02 +0000944#include "UpgradeInternals.h"
Reid Spencer950bf602007-01-26 08:19:09 +0000945#include "llvm/Module.h"
946#include <list>
Reid Spencere7c3c602006-11-30 06:36:44 +0000947#include "UpgradeParser.h"
948#include <cctype>
949#include <cstdlib>
950
Reid Spencer96839be2006-11-30 16:50:26 +0000951#define YY_INPUT(buf,result,max_size) \
952{ \
953 if (LexInput->good() && !LexInput->eof()) { \
954 LexInput->read(buf,max_size); \
955 result = LexInput->gcount(); \
956 } else {\
957 result = YY_NULL; \
958 } \
959}
960
Reid Spencer950bf602007-01-26 08:19:09 +0000961#define YY_NEVER_INTERACTIVE 1
Reid Spencer96839be2006-11-30 16:50:26 +0000962
Reid Spencere7c3c602006-11-30 06:36:44 +0000963// Construct a token value for a non-obsolete token
Reid Spencer950bf602007-01-26 08:19:09 +0000964#define RET_TOK(type, Enum, sym) \
965 Upgradelval.type = Enum; \
Reid Spencere77e35e2006-12-01 20:26:20 +0000966 return sym
967
Reid Spencer950bf602007-01-26 08:19:09 +0000968#define RET_TY(sym,NewTY,sign) \
969 Upgradelval.PrimType.T = NewTY; \
970 Upgradelval.PrimType.S = sign; \
Reid Spencere7c3c602006-11-30 06:36:44 +0000971 return sym
972
Reid Spencer950bf602007-01-26 08:19:09 +0000973namespace llvm {
974
975// TODO: All of the static identifiers are figured out by the lexer,
976// these should be hashed to reduce the lexer size
977
978// UnEscapeLexed - Run through the specified buffer and change \xx codes to the
979// appropriate character. If AllowNull is set to false, a \00 value will cause
980// an exception to be thrown.
981//
982// If AllowNull is set to true, the return value of the function points to the
983// last character of the string in memory.
984//
985char *UnEscapeLexed(char *Buffer, bool AllowNull) {
986 char *BOut = Buffer;
987 for (char *BIn = Buffer; *BIn; ) {
988 if (BIn[0] == '\\' && isxdigit(BIn[1]) && isxdigit(BIn[2])) {
989 char Tmp = BIn[3]; BIn[3] = 0; // Terminate string
990 *BOut = (char)strtol(BIn+1, 0, 16); // Convert to number
991 if (!AllowNull && !*BOut)
992 error("String literal cannot accept \\00 escape!");
993
994 BIn[3] = Tmp; // Restore character
995 BIn += 3; // Skip over handled chars
996 ++BOut;
997 } else {
998 *BOut++ = *BIn++;
999 }
1000 }
1001
1002 return BOut;
1003}
1004
1005// atoull - Convert an ascii string of decimal digits into the unsigned long
1006// long representation... this does not have to do input error checking,
1007// because we know that the input will be matched by a suitable regex...
1008//
1009static uint64_t atoull(const char *Buffer) {
1010 uint64_t Result = 0;
1011 for (; *Buffer; Buffer++) {
1012 uint64_t OldRes = Result;
1013 Result *= 10;
1014 Result += *Buffer-'0';
1015 if (Result < OldRes) // Uh, oh, overflow detected!!!
1016 error("constant bigger than 64 bits detected!");
1017 }
1018 return Result;
1019}
1020
1021static uint64_t HexIntToVal(const char *Buffer) {
1022 uint64_t Result = 0;
1023 for (; *Buffer; ++Buffer) {
1024 uint64_t OldRes = Result;
1025 Result *= 16;
1026 char C = *Buffer;
1027 if (C >= '0' && C <= '9')
1028 Result += C-'0';
1029 else if (C >= 'A' && C <= 'F')
1030 Result += C-'A'+10;
1031 else if (C >= 'a' && C <= 'f')
1032 Result += C-'a'+10;
1033
1034 if (Result < OldRes) // Uh, oh, overflow detected!!!
1035 error("constant bigger than 64 bits detected!");
1036 }
1037 return Result;
1038}
1039
1040
1041// HexToFP - Convert the ascii string in hexidecimal format to the floating
1042// point representation of it.
1043//
1044static double HexToFP(const char *Buffer) {
1045 // Behave nicely in the face of C TBAA rules... see:
1046 // http://www.nullstone.com/htmls/category/aliastyp.htm
1047 union {
1048 uint64_t UI;
1049 double FP;
1050 } UIntToFP;
1051 UIntToFP.UI = HexIntToVal(Buffer);
1052
1053 assert(sizeof(double) == sizeof(uint64_t) &&
1054 "Data sizes incompatible on this target!");
1055 return UIntToFP.FP; // Cast Hex constant to double
1056}
1057
1058
1059} // End llvm namespace
1060
1061using namespace llvm;
1062
Reid Spencere7c3c602006-11-30 06:36:44 +00001063/* Comments start with a ; and go till end of line */
1064/* Variable(Value) identifiers start with a % sign */
1065/* Label identifiers end with a colon */
1066/* Quoted names can contain any character except " and \ */
1067/* [PN]Integer: match positive and negative literal integer values that
1068 * are preceeded by a '%' character. These represent unnamed variable slots.
1069 */
1070/* E[PN]Integer: match positive and negative literal integer values */
1071/* FPConstant - A Floating point constant.
1072 */
1073/* HexFPConstant - Floating point constant represented in IEEE format as a
1074 * hexadecimal number for when exponential notation is not precise enough.
1075 */
1076/* HexIntConstant - Hexadecimal constant generated by the CFE to avoid forcing
1077 * it to deal with 64 bit numbers.
1078 */
Reid Spencer832254e2007-02-02 02:16:23 +00001079#line 1080 "UpgradeLexer.cpp"
Reid Spencere7c3c602006-11-30 06:36:44 +00001080
1081/* Macros after this point can all be overridden by user definitions in
1082 * section 1.
1083 */
1084
1085#ifndef YY_SKIP_YYWRAP
1086#ifdef __cplusplus
Reid Spencer832254e2007-02-02 02:16:23 +00001087extern "C" int yywrap YY_PROTO(( void ));
Reid Spencere7c3c602006-11-30 06:36:44 +00001088#else
Reid Spencer832254e2007-02-02 02:16:23 +00001089extern int yywrap YY_PROTO(( void ));
Reid Spencere7c3c602006-11-30 06:36:44 +00001090#endif
1091#endif
1092
Reid Spencer832254e2007-02-02 02:16:23 +00001093#ifndef YY_NO_UNPUT
1094static inline void yyunput YY_PROTO(( int c, char *buf_ptr ));
1095#endif
1096
Reid Spencere7c3c602006-11-30 06:36:44 +00001097#ifndef yytext_ptr
Reid Spencer832254e2007-02-02 02:16:23 +00001098static void yy_flex_strncpy YY_PROTO(( char *, yyconst char *, int ));
Reid Spencere7c3c602006-11-30 06:36:44 +00001099#endif
1100
1101#ifdef YY_NEED_STRLEN
Reid Spencer832254e2007-02-02 02:16:23 +00001102static int yy_flex_strlen YY_PROTO(( yyconst char * ));
Reid Spencere7c3c602006-11-30 06:36:44 +00001103#endif
1104
1105#ifndef YY_NO_INPUT
1106#ifdef __cplusplus
Reid Spencer832254e2007-02-02 02:16:23 +00001107static int yyinput YY_PROTO(( void ));
Reid Spencere7c3c602006-11-30 06:36:44 +00001108#else
Reid Spencer832254e2007-02-02 02:16:23 +00001109static int input YY_PROTO(( void ));
1110#endif
Reid Spencere7c3c602006-11-30 06:36:44 +00001111#endif
1112
Reid Spencer832254e2007-02-02 02:16:23 +00001113#if YY_STACK_USED
1114static int yy_start_stack_ptr = 0;
1115static int yy_start_stack_depth = 0;
1116static int *yy_start_stack = 0;
1117#ifndef YY_NO_PUSH_STATE
1118static void yy_push_state YY_PROTO(( int new_state ));
1119#endif
1120#ifndef YY_NO_POP_STATE
1121static void yy_pop_state YY_PROTO(( void ));
1122#endif
1123#ifndef YY_NO_TOP_STATE
1124static int yy_top_state YY_PROTO(( void ));
1125#endif
1126
1127#else
1128#define YY_NO_PUSH_STATE 1
1129#define YY_NO_POP_STATE 1
1130#define YY_NO_TOP_STATE 1
1131#endif
1132
1133#ifdef YY_MALLOC_DECL
1134YY_MALLOC_DECL
1135#else
1136#if __STDC__
1137#ifndef __cplusplus
1138#include <stdlib.h>
1139#endif
1140#else
1141/* Just try to get by without declaring the routines. This will fail
1142 * miserably on non-ANSI systems for which sizeof(size_t) != sizeof(int)
1143 * or sizeof(void*) != sizeof(int).
1144 */
1145#endif
Reid Spencere7c3c602006-11-30 06:36:44 +00001146#endif
1147
1148/* Amount of stuff to slurp up with each read. */
1149#ifndef YY_READ_BUF_SIZE
1150#define YY_READ_BUF_SIZE 8192
1151#endif
1152
1153/* Copy whatever the last rule matched to the standard output. */
Reid Spencer832254e2007-02-02 02:16:23 +00001154
Reid Spencere7c3c602006-11-30 06:36:44 +00001155#ifndef ECHO
1156/* This used to be an fputs(), but since the string might contain NUL's,
1157 * we now use fwrite().
1158 */
Reid Spencer832254e2007-02-02 02:16:23 +00001159#define ECHO (void) fwrite( yytext, yyleng, 1, yyout )
Reid Spencere7c3c602006-11-30 06:36:44 +00001160#endif
1161
1162/* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
1163 * is returned in "result".
1164 */
1165#ifndef YY_INPUT
1166#define YY_INPUT(buf,result,max_size) \
Reid Spencer832254e2007-02-02 02:16:23 +00001167 if ( yy_current_buffer->yy_is_interactive ) \
Reid Spencere7c3c602006-11-30 06:36:44 +00001168 { \
Reid Spencer832254e2007-02-02 02:16:23 +00001169 int c = '*', n; \
Reid Spencere7c3c602006-11-30 06:36:44 +00001170 for ( n = 0; n < max_size && \
Reid Spencer832254e2007-02-02 02:16:23 +00001171 (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
Reid Spencere7c3c602006-11-30 06:36:44 +00001172 buf[n] = (char) c; \
1173 if ( c == '\n' ) \
1174 buf[n++] = (char) c; \
Reid Spencer832254e2007-02-02 02:16:23 +00001175 if ( c == EOF && ferror( yyin ) ) \
Reid Spencere7c3c602006-11-30 06:36:44 +00001176 YY_FATAL_ERROR( "input in flex scanner failed" ); \
1177 result = n; \
1178 } \
Reid Spencer832254e2007-02-02 02:16:23 +00001179 else if ( ((result = fread( buf, 1, max_size, yyin )) == 0) \
1180 && ferror( yyin ) ) \
1181 YY_FATAL_ERROR( "input in flex scanner failed" );
Reid Spencere7c3c602006-11-30 06:36:44 +00001182#endif
1183
1184/* No semi-colon after return; correct usage is to write "yyterminate();" -
1185 * we don't want an extra ';' after the "return" because that will cause
1186 * some compilers to complain about unreachable statements.
1187 */
1188#ifndef yyterminate
1189#define yyterminate() return YY_NULL
1190#endif
1191
1192/* Number of entries by which start-condition stack grows. */
1193#ifndef YY_START_STACK_INCR
1194#define YY_START_STACK_INCR 25
1195#endif
1196
1197/* Report a fatal error. */
1198#ifndef YY_FATAL_ERROR
1199#define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
1200#endif
1201
1202/* Default declaration of generated scanner - a define so the user can
1203 * easily add parameters.
1204 */
1205#ifndef YY_DECL
Reid Spencer832254e2007-02-02 02:16:23 +00001206#define YY_DECL int yylex YY_PROTO(( void ))
1207#endif
Reid Spencere7c3c602006-11-30 06:36:44 +00001208
Reid Spencer832254e2007-02-02 02:16:23 +00001209/* Code executed at the beginning of each rule, after yytext and yyleng
Reid Spencere7c3c602006-11-30 06:36:44 +00001210 * have been set up.
1211 */
1212#ifndef YY_USER_ACTION
1213#define YY_USER_ACTION
1214#endif
1215
1216/* Code executed at the end of each rule. */
1217#ifndef YY_BREAK
1218#define YY_BREAK break;
1219#endif
1220
1221#define YY_RULE_SETUP \
1222 YY_USER_ACTION
1223
1224YY_DECL
Reid Spencer832254e2007-02-02 02:16:23 +00001225 {
Reid Spencere7c3c602006-11-30 06:36:44 +00001226 register yy_state_type yy_current_state;
Reid Spencer832254e2007-02-02 02:16:23 +00001227 register char *yy_cp = NULL, *yy_bp = NULL;
Reid Spencere7c3c602006-11-30 06:36:44 +00001228 register int yy_act;
Reid Spencer832254e2007-02-02 02:16:23 +00001229
1230#line 189 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001231
1232
Reid Spencer832254e2007-02-02 02:16:23 +00001233#line 1234 "UpgradeLexer.cpp"
Reid Spencere7c3c602006-11-30 06:36:44 +00001234
Reid Spencer832254e2007-02-02 02:16:23 +00001235 if ( yy_init )
Reid Spencere7c3c602006-11-30 06:36:44 +00001236 {
Reid Spencer832254e2007-02-02 02:16:23 +00001237 yy_init = 0;
Reid Spencere7c3c602006-11-30 06:36:44 +00001238
1239#ifdef YY_USER_INIT
1240 YY_USER_INIT;
1241#endif
1242
Reid Spencer832254e2007-02-02 02:16:23 +00001243 if ( ! yy_start )
1244 yy_start = 1; /* first start state */
Reid Spencere7c3c602006-11-30 06:36:44 +00001245
Reid Spencer832254e2007-02-02 02:16:23 +00001246 if ( ! yyin )
1247 yyin = stdin;
Reid Spencere7c3c602006-11-30 06:36:44 +00001248
Reid Spencer832254e2007-02-02 02:16:23 +00001249 if ( ! yyout )
1250 yyout = stdout;
Reid Spencere7c3c602006-11-30 06:36:44 +00001251
Reid Spencer832254e2007-02-02 02:16:23 +00001252 if ( ! yy_current_buffer )
1253 yy_current_buffer =
1254 yy_create_buffer( yyin, YY_BUF_SIZE );
Reid Spencere7c3c602006-11-30 06:36:44 +00001255
Reid Spencer832254e2007-02-02 02:16:23 +00001256 yy_load_buffer_state();
Reid Spencere7c3c602006-11-30 06:36:44 +00001257 }
1258
1259 while ( 1 ) /* loops until end-of-file is reached */
1260 {
Reid Spencer832254e2007-02-02 02:16:23 +00001261 yy_cp = yy_c_buf_p;
Reid Spencere7c3c602006-11-30 06:36:44 +00001262
Reid Spencer832254e2007-02-02 02:16:23 +00001263 /* Support of yytext. */
1264 *yy_cp = yy_hold_char;
Reid Spencere7c3c602006-11-30 06:36:44 +00001265
1266 /* yy_bp points to the position in yy_ch_buf of the start of
1267 * the current run.
1268 */
1269 yy_bp = yy_cp;
1270
Reid Spencer832254e2007-02-02 02:16:23 +00001271 yy_current_state = yy_start;
1272 yy_state_ptr = yy_state_buf;
1273 *yy_state_ptr++ = yy_current_state;
Reid Spencere7c3c602006-11-30 06:36:44 +00001274yy_match:
1275 do
1276 {
1277 register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
1278 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1279 {
1280 yy_current_state = (int) yy_def[yy_current_state];
Reid Spencer950bf602007-01-26 08:19:09 +00001281 if ( yy_current_state >= 610 )
Reid Spencere7c3c602006-11-30 06:36:44 +00001282 yy_c = yy_meta[(unsigned int) yy_c];
1283 }
1284 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
Reid Spencer832254e2007-02-02 02:16:23 +00001285 *yy_state_ptr++ = yy_current_state;
Reid Spencere7c3c602006-11-30 06:36:44 +00001286 ++yy_cp;
1287 }
Reid Spencer950bf602007-01-26 08:19:09 +00001288 while ( yy_current_state != 609 );
Reid Spencere7c3c602006-11-30 06:36:44 +00001289
1290yy_find_action:
Reid Spencer832254e2007-02-02 02:16:23 +00001291 yy_current_state = *--yy_state_ptr;
1292 yy_lp = yy_accept[yy_current_state];
1293find_rule: /* we branch to this label when backing up */
1294 for ( ; ; ) /* until we find what rule we matched */
1295 {
1296 if ( yy_lp && yy_lp < yy_accept[yy_current_state + 1] )
1297 {
1298 yy_act = yy_acclist[yy_lp];
1299 {
1300 yy_full_match = yy_cp;
1301 break;
1302 }
1303 }
1304 --yy_cp;
1305 yy_current_state = *--yy_state_ptr;
1306 yy_lp = yy_accept[yy_current_state];
1307 }
Reid Spencere7c3c602006-11-30 06:36:44 +00001308
1309 YY_DO_BEFORE_ACTION;
1310
Reid Spencer832254e2007-02-02 02:16:23 +00001311 if ( yy_act != YY_END_OF_BUFFER )
Reid Spencere7c3c602006-11-30 06:36:44 +00001312 {
1313 int yyl;
Reid Spencer832254e2007-02-02 02:16:23 +00001314 for ( yyl = 0; yyl < yyleng; ++yyl )
1315 if ( yytext[yyl] == '\n' )
1316 ++yylineno;
Reid Spencere7c3c602006-11-30 06:36:44 +00001317 }
1318
1319do_action: /* This label is used only to access EOF actions. */
1320
Reid Spencer832254e2007-02-02 02:16:23 +00001321
Reid Spencere7c3c602006-11-30 06:36:44 +00001322 switch ( yy_act )
1323 { /* beginning of action switch */
1324case 1:
1325YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001326#line 191 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00001327{ /* Ignore comments for now */ }
1328 YY_BREAK
1329case 2:
1330YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001331#line 193 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001332{ return BEGINTOK; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001333 YY_BREAK
1334case 3:
1335YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001336#line 194 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001337{ return ENDTOK; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001338 YY_BREAK
1339case 4:
1340YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001341#line 195 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001342{ return TRUETOK; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001343 YY_BREAK
1344case 5:
1345YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001346#line 196 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001347{ return FALSETOK; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001348 YY_BREAK
1349case 6:
1350YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001351#line 197 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001352{ return DECLARE; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001353 YY_BREAK
1354case 7:
1355YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001356#line 198 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001357{ return GLOBAL; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001358 YY_BREAK
1359case 8:
1360YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001361#line 199 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001362{ return CONSTANT; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001363 YY_BREAK
1364case 9:
1365YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001366#line 200 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001367{ return INTERNAL; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001368 YY_BREAK
1369case 10:
1370YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001371#line 201 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001372{ return LINKONCE; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001373 YY_BREAK
1374case 11:
1375YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001376#line 202 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001377{ return WEAK; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001378 YY_BREAK
1379case 12:
1380YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001381#line 203 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001382{ return APPENDING; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001383 YY_BREAK
1384case 13:
1385YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001386#line 204 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001387{ return DLLIMPORT; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001388 YY_BREAK
1389case 14:
1390YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001391#line 205 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001392{ return DLLEXPORT; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001393 YY_BREAK
1394case 15:
1395YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001396#line 206 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001397{ return EXTERN_WEAK; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001398 YY_BREAK
1399case 16:
1400YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001401#line 207 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001402{ return EXTERNAL; } /* Deprecated, turn into external */
Reid Spencere7c3c602006-11-30 06:36:44 +00001403 YY_BREAK
1404case 17:
1405YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001406#line 208 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001407{ return EXTERNAL; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001408 YY_BREAK
1409case 18:
1410YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001411#line 209 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001412{ return IMPLEMENTATION; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001413 YY_BREAK
1414case 19:
1415YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001416#line 210 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001417{ return ZEROINITIALIZER; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001418 YY_BREAK
1419case 20:
1420YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001421#line 211 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001422{ return DOTDOTDOT; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001423 YY_BREAK
1424case 21:
1425YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001426#line 212 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001427{ return UNDEF; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001428 YY_BREAK
1429case 22:
1430YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001431#line 213 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001432{ return NULL_TOK; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001433 YY_BREAK
1434case 23:
1435YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001436#line 214 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001437{ return TO; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001438 YY_BREAK
1439case 24:
1440YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001441#line 215 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001442{ return EXCEPT; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001443 YY_BREAK
1444case 25:
1445YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001446#line 216 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001447{ return NOT; } /* Deprecated, turned into XOR */
Reid Spencere7c3c602006-11-30 06:36:44 +00001448 YY_BREAK
1449case 26:
1450YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001451#line 217 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001452{ return TAIL; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001453 YY_BREAK
1454case 27:
1455YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001456#line 218 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001457{ return TARGET; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001458 YY_BREAK
1459case 28:
1460YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001461#line 219 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001462{ return TRIPLE; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001463 YY_BREAK
1464case 29:
1465YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001466#line 220 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001467{ return DEPLIBS; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001468 YY_BREAK
1469case 30:
1470YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001471#line 221 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001472{ return ENDIAN; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001473 YY_BREAK
1474case 31:
1475YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001476#line 222 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001477{ return POINTERSIZE; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001478 YY_BREAK
1479case 32:
1480YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001481#line 223 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001482{ return DATALAYOUT; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001483 YY_BREAK
1484case 33:
1485YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001486#line 224 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001487{ return LITTLE; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001488 YY_BREAK
1489case 34:
1490YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001491#line 225 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001492{ return BIG; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001493 YY_BREAK
1494case 35:
1495YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001496#line 226 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001497{ return VOLATILE; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001498 YY_BREAK
1499case 36:
1500YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001501#line 227 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001502{ return ALIGN; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001503 YY_BREAK
1504case 37:
1505YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001506#line 228 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001507{ return SECTION; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001508 YY_BREAK
1509case 38:
1510YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001511#line 229 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001512{ return MODULE; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001513 YY_BREAK
1514case 39:
1515YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001516#line 230 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001517{ return ASM_TOK; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001518 YY_BREAK
1519case 40:
1520YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001521#line 231 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001522{ return SIDEEFFECT; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001523 YY_BREAK
1524case 41:
1525YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001526#line 233 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001527{ return CC_TOK; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001528 YY_BREAK
1529case 42:
1530YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001531#line 234 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001532{ return CCC_TOK; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001533 YY_BREAK
1534case 43:
1535YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001536#line 235 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001537{ return CSRETCC_TOK; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001538 YY_BREAK
1539case 44:
1540YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001541#line 236 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001542{ return FASTCC_TOK; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001543 YY_BREAK
1544case 45:
1545YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001546#line 237 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001547{ return COLDCC_TOK; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001548 YY_BREAK
1549case 46:
1550YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001551#line 238 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001552{ return X86_STDCALLCC_TOK; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001553 YY_BREAK
1554case 47:
1555YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001556#line 239 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001557{ return X86_FASTCALLCC_TOK; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001558 YY_BREAK
1559case 48:
1560YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001561#line 241 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001562{ RET_TY(SBYTE, Type::Int8Ty, Signed); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001563 YY_BREAK
1564case 49:
1565YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001566#line 242 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001567{ RET_TY(UBYTE, Type::Int8Ty, Unsigned); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001568 YY_BREAK
1569case 50:
1570YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001571#line 243 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001572{ RET_TY(SHORT, Type::Int16Ty, Signed); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001573 YY_BREAK
1574case 51:
1575YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001576#line 244 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001577{ RET_TY(USHORT, Type::Int16Ty, Unsigned); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001578 YY_BREAK
1579case 52:
1580YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001581#line 245 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001582{ RET_TY(INT, Type::Int32Ty, Signed); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001583 YY_BREAK
1584case 53:
1585YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001586#line 246 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001587{ RET_TY(UINT, Type::Int32Ty, Unsigned); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001588 YY_BREAK
1589case 54:
1590YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001591#line 247 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001592{ RET_TY(LONG, Type::Int64Ty, Signed); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001593 YY_BREAK
1594case 55:
1595YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001596#line 248 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001597{ RET_TY(ULONG, Type::Int64Ty, Unsigned); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001598 YY_BREAK
1599case 56:
1600YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001601#line 249 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001602{ RET_TY(VOID, Type::VoidTy, Signless ); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001603 YY_BREAK
1604case 57:
1605YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001606#line 250 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001607{ RET_TY(BOOL, Type::Int1Ty, Unsigned ); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001608 YY_BREAK
1609case 58:
1610YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001611#line 251 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001612{ RET_TY(FLOAT, Type::FloatTy, Signless ); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001613 YY_BREAK
1614case 59:
1615YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001616#line 252 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001617{ RET_TY(DOUBLE, Type::DoubleTy,Signless); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001618 YY_BREAK
1619case 60:
1620YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001621#line 253 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001622{ RET_TY(LABEL, Type::LabelTy, Signless ); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001623 YY_BREAK
1624case 61:
1625YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001626#line 254 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001627{ return TYPE; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001628 YY_BREAK
1629case 62:
1630YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001631#line 255 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001632{ return OPAQUE; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001633 YY_BREAK
1634case 63:
1635YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001636#line 257 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001637{ RET_TOK(BinaryOpVal, AddOp, ADD); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001638 YY_BREAK
1639case 64:
1640YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001641#line 258 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001642{ RET_TOK(BinaryOpVal, SubOp, SUB); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001643 YY_BREAK
1644case 65:
1645YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001646#line 259 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001647{ RET_TOK(BinaryOpVal, MulOp, MUL); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001648 YY_BREAK
1649case 66:
1650YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001651#line 260 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001652{ RET_TOK(BinaryOpVal, DivOp, DIV); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001653 YY_BREAK
1654case 67:
1655YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001656#line 261 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001657{ RET_TOK(BinaryOpVal, UDivOp, UDIV); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001658 YY_BREAK
1659case 68:
1660YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001661#line 262 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001662{ RET_TOK(BinaryOpVal, SDivOp, SDIV); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001663 YY_BREAK
1664case 69:
1665YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001666#line 263 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001667{ RET_TOK(BinaryOpVal, FDivOp, FDIV); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001668 YY_BREAK
1669case 70:
1670YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001671#line 264 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001672{ RET_TOK(BinaryOpVal, RemOp, REM); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001673 YY_BREAK
1674case 71:
1675YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001676#line 265 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001677{ RET_TOK(BinaryOpVal, URemOp, UREM); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001678 YY_BREAK
1679case 72:
1680YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001681#line 266 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001682{ RET_TOK(BinaryOpVal, SRemOp, SREM); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001683 YY_BREAK
1684case 73:
1685YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001686#line 267 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001687{ RET_TOK(BinaryOpVal, FRemOp, FREM); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001688 YY_BREAK
1689case 74:
1690YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001691#line 268 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001692{ RET_TOK(BinaryOpVal, AndOp, AND); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001693 YY_BREAK
1694case 75:
1695YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001696#line 269 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001697{ RET_TOK(BinaryOpVal, OrOp , OR ); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001698 YY_BREAK
1699case 76:
1700YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001701#line 270 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001702{ RET_TOK(BinaryOpVal, XorOp, XOR); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001703 YY_BREAK
1704case 77:
1705YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001706#line 271 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001707{ RET_TOK(BinaryOpVal, SetNE, SETNE); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001708 YY_BREAK
1709case 78:
1710YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001711#line 272 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001712{ RET_TOK(BinaryOpVal, SetEQ, SETEQ); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001713 YY_BREAK
1714case 79:
1715YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001716#line 273 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001717{ RET_TOK(BinaryOpVal, SetLT, SETLT); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001718 YY_BREAK
1719case 80:
1720YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001721#line 274 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001722{ RET_TOK(BinaryOpVal, SetGT, SETGT); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001723 YY_BREAK
1724case 81:
1725YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001726#line 275 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001727{ RET_TOK(BinaryOpVal, SetLE, SETLE); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001728 YY_BREAK
1729case 82:
1730YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001731#line 276 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001732{ RET_TOK(BinaryOpVal, SetGE, SETGE); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001733 YY_BREAK
1734case 83:
1735YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001736#line 277 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1737{ RET_TOK(BinaryOpVal, ShlOp, SHL); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001738 YY_BREAK
1739case 84:
1740YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001741#line 278 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1742{ RET_TOK(BinaryOpVal, ShrOp, SHR); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001743 YY_BREAK
1744case 85:
1745YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001746#line 279 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1747{ RET_TOK(BinaryOpVal, LShrOp, LSHR); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001748 YY_BREAK
1749case 86:
1750YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001751#line 280 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1752{ RET_TOK(BinaryOpVal, AShrOp, ASHR); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001753 YY_BREAK
1754case 87:
1755YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001756#line 282 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1757{ RET_TOK(OtherOpVal, ICmpOp, ICMP); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001758 YY_BREAK
1759case 88:
1760YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001761#line 283 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1762{ RET_TOK(OtherOpVal, FCmpOp, FCMP); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001763 YY_BREAK
1764case 89:
1765YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001766#line 285 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1767{ return EQ; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001768 YY_BREAK
1769case 90:
1770YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001771#line 286 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1772{ return NE; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001773 YY_BREAK
1774case 91:
1775YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001776#line 287 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1777{ return SLT; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001778 YY_BREAK
1779case 92:
1780YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001781#line 288 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1782{ return SGT; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001783 YY_BREAK
1784case 93:
1785YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001786#line 289 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1787{ return SLE; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001788 YY_BREAK
1789case 94:
1790YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001791#line 290 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1792{ return SGE; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001793 YY_BREAK
1794case 95:
1795YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001796#line 291 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1797{ return ULT; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001798 YY_BREAK
1799case 96:
1800YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001801#line 292 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1802{ return UGT; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001803 YY_BREAK
1804case 97:
1805YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001806#line 293 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1807{ return ULE; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001808 YY_BREAK
1809case 98:
1810YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001811#line 294 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1812{ return UGE; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001813 YY_BREAK
1814case 99:
1815YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001816#line 295 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1817{ return OEQ; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001818 YY_BREAK
1819case 100:
1820YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001821#line 296 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1822{ return ONE; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001823 YY_BREAK
1824case 101:
1825YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001826#line 297 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1827{ return OLT; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001828 YY_BREAK
1829case 102:
1830YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001831#line 298 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1832{ return OGT; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001833 YY_BREAK
1834case 103:
1835YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001836#line 299 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1837{ return OLE; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001838 YY_BREAK
1839case 104:
1840YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001841#line 300 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1842{ return OGE; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001843 YY_BREAK
1844case 105:
1845YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001846#line 301 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1847{ return ORD; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001848 YY_BREAK
1849case 106:
1850YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001851#line 302 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1852{ return UNO; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001853 YY_BREAK
1854case 107:
1855YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001856#line 303 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1857{ return UEQ; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001858 YY_BREAK
1859case 108:
1860YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001861#line 304 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1862{ return UNE; }
Reid Spencere7c3c602006-11-30 06:36:44 +00001863 YY_BREAK
1864case 109:
1865YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001866#line 306 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1867{ RET_TOK(OtherOpVal, PHIOp, PHI_TOK); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001868 YY_BREAK
1869case 110:
1870YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001871#line 307 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1872{ RET_TOK(OtherOpVal, CallOp, CALL); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001873 YY_BREAK
1874case 111:
1875YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001876#line 308 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1877{ RET_TOK(CastOpVal, CastOp, CAST); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001878 YY_BREAK
1879case 112:
1880YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001881#line 309 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1882{ RET_TOK(CastOpVal, TruncOp, TRUNC); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001883 YY_BREAK
1884case 113:
1885YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001886#line 310 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1887{ RET_TOK(CastOpVal, ZExtOp , ZEXT); }
Reid Spencere7c3c602006-11-30 06:36:44 +00001888 YY_BREAK
Reid Spencer16244f42006-12-01 21:10:07 +00001889case 114:
1890YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001891#line 311 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1892{ RET_TOK(CastOpVal, SExtOp, SEXT); }
Reid Spencer16244f42006-12-01 21:10:07 +00001893 YY_BREAK
Reid Spencerf7bde222006-12-01 22:26:37 +00001894case 115:
1895YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001896#line 312 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1897{ RET_TOK(CastOpVal, FPTruncOp, FPTRUNC); }
Reid Spencerfcb5df82006-12-01 22:34:43 +00001898 YY_BREAK
1899case 116:
1900YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001901#line 313 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1902{ RET_TOK(CastOpVal, FPExtOp, FPEXT); }
Reid Spencerfcb5df82006-12-01 22:34:43 +00001903 YY_BREAK
1904case 117:
1905YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001906#line 314 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1907{ RET_TOK(CastOpVal, FPToUIOp, FPTOUI); }
Reid Spencerfcb5df82006-12-01 22:34:43 +00001908 YY_BREAK
1909case 118:
1910YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001911#line 315 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1912{ RET_TOK(CastOpVal, FPToSIOp, FPTOSI); }
Reid Spencerfcb5df82006-12-01 22:34:43 +00001913 YY_BREAK
1914case 119:
1915YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001916#line 316 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1917{ RET_TOK(CastOpVal, UIToFPOp, UITOFP); }
Reid Spencerfcb5df82006-12-01 22:34:43 +00001918 YY_BREAK
1919case 120:
1920YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001921#line 317 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1922{ RET_TOK(CastOpVal, SIToFPOp, SITOFP); }
Reid Spencerfcb5df82006-12-01 22:34:43 +00001923 YY_BREAK
1924case 121:
1925YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001926#line 318 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1927{ RET_TOK(CastOpVal, PtrToIntOp, PTRTOINT); }
Reid Spencerfcb5df82006-12-01 22:34:43 +00001928 YY_BREAK
1929case 122:
1930YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001931#line 319 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1932{ RET_TOK(CastOpVal, IntToPtrOp, INTTOPTR); }
Reid Spencerfcb5df82006-12-01 22:34:43 +00001933 YY_BREAK
1934case 123:
1935YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001936#line 320 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1937{ RET_TOK(CastOpVal, BitCastOp, BITCAST); }
Reid Spencerfcb5df82006-12-01 22:34:43 +00001938 YY_BREAK
1939case 124:
1940YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001941#line 321 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1942{ RET_TOK(OtherOpVal, SelectOp, SELECT); }
Reid Spencerfcb5df82006-12-01 22:34:43 +00001943 YY_BREAK
1944case 125:
1945YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001946#line 322 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001947{ return VANEXT_old; }
Reid Spencerfcb5df82006-12-01 22:34:43 +00001948 YY_BREAK
1949case 126:
1950YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001951#line 323 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001952{ return VAARG_old; }
Reid Spencerfcb5df82006-12-01 22:34:43 +00001953 YY_BREAK
1954case 127:
1955YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001956#line 324 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001957{ RET_TOK(OtherOpVal, VAArg , VAARG); }
Reid Spencer78720742006-12-02 20:21:22 +00001958 YY_BREAK
1959case 128:
1960YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001961#line 325 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001962{ RET_TOK(TermOpVal, RetOp, RET); }
Reid Spencer229e9362006-12-02 22:14:11 +00001963 YY_BREAK
1964case 129:
1965YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001966#line 326 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001967{ RET_TOK(TermOpVal, BrOp, BR); }
Reid Spencer229e9362006-12-02 22:14:11 +00001968 YY_BREAK
1969case 130:
1970YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001971#line 327 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001972{ RET_TOK(TermOpVal, SwitchOp, SWITCH); }
Reid Spencer229e9362006-12-02 22:14:11 +00001973 YY_BREAK
1974case 131:
1975YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001976#line 328 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001977{ RET_TOK(TermOpVal, InvokeOp, INVOKE); }
Reid Spencer229e9362006-12-02 22:14:11 +00001978 YY_BREAK
1979case 132:
1980YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001981#line 329 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001982{ return UNWIND; }
Reid Spencer229e9362006-12-02 22:14:11 +00001983 YY_BREAK
1984case 133:
1985YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001986#line 330 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001987{ RET_TOK(TermOpVal, UnreachableOp, UNREACHABLE); }
Reid Spencer229e9362006-12-02 22:14:11 +00001988 YY_BREAK
1989case 134:
1990YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001991#line 332 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001992{ RET_TOK(MemOpVal, MallocOp, MALLOC); }
Reid Spencer229e9362006-12-02 22:14:11 +00001993 YY_BREAK
1994case 135:
1995YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00001996#line 333 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00001997{ RET_TOK(MemOpVal, AllocaOp, ALLOCA); }
Reid Spencer229e9362006-12-02 22:14:11 +00001998 YY_BREAK
1999case 136:
2000YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00002001#line 334 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00002002{ RET_TOK(MemOpVal, FreeOp, FREE); }
Reid Spencer229e9362006-12-02 22:14:11 +00002003 YY_BREAK
2004case 137:
2005YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00002006#line 335 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00002007{ RET_TOK(MemOpVal, LoadOp, LOAD); }
Reid Spencer229e9362006-12-02 22:14:11 +00002008 YY_BREAK
2009case 138:
2010YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00002011#line 336 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00002012{ RET_TOK(MemOpVal, StoreOp, STORE); }
Reid Spencer229e9362006-12-02 22:14:11 +00002013 YY_BREAK
2014case 139:
2015YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00002016#line 337 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00002017{ RET_TOK(MemOpVal, GetElementPtrOp, GETELEMENTPTR); }
Reid Spencer229e9362006-12-02 22:14:11 +00002018 YY_BREAK
2019case 140:
2020YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00002021#line 339 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00002022{ RET_TOK(OtherOpVal, ExtractElementOp, EXTRACTELEMENT); }
Reid Spencer229e9362006-12-02 22:14:11 +00002023 YY_BREAK
2024case 141:
2025YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00002026#line 340 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00002027{ RET_TOK(OtherOpVal, InsertElementOp, INSERTELEMENT); }
Reid Spencer229e9362006-12-02 22:14:11 +00002028 YY_BREAK
2029case 142:
2030YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00002031#line 341 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00002032{ RET_TOK(OtherOpVal, ShuffleVectorOp, SHUFFLEVECTOR); }
Reid Spencer229e9362006-12-02 22:14:11 +00002033 YY_BREAK
2034case 143:
2035YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00002036#line 344 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00002037{
Reid Spencer832254e2007-02-02 02:16:23 +00002038 UnEscapeLexed(yytext+1);
2039 Upgradelval.StrVal = strdup(yytext+1); // Skip %
Reid Spencer950bf602007-01-26 08:19:09 +00002040 return VAR_ID;
2041 }
Reid Spencer229e9362006-12-02 22:14:11 +00002042 YY_BREAK
2043case 144:
2044YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00002045#line 349 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00002046{
Reid Spencer832254e2007-02-02 02:16:23 +00002047 yytext[strlen(yytext)-1] = 0; // nuke colon
2048 UnEscapeLexed(yytext);
2049 Upgradelval.StrVal = strdup(yytext);
Reid Spencer950bf602007-01-26 08:19:09 +00002050 return LABELSTR;
2051 }
Reid Spencer229e9362006-12-02 22:14:11 +00002052 YY_BREAK
2053case 145:
2054YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00002055#line 355 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00002056{
Reid Spencer832254e2007-02-02 02:16:23 +00002057 yytext[strlen(yytext)-2] = 0; // nuke colon, end quote
2058 UnEscapeLexed(yytext+1);
2059 Upgradelval.StrVal = strdup(yytext+1);
Reid Spencer950bf602007-01-26 08:19:09 +00002060 return LABELSTR;
2061 }
Reid Spencer229e9362006-12-02 22:14:11 +00002062 YY_BREAK
2063case 146:
2064YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00002065#line 362 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00002066{ // Note that we cannot unescape a string constant here! The
2067 // string constant might contain a \00 which would not be
2068 // understood by the string stuff. It is valid to make a
2069 // [sbyte] c"Hello World\00" constant, for example.
2070 //
Reid Spencer832254e2007-02-02 02:16:23 +00002071 yytext[strlen(yytext)-1] = 0; // nuke end quote
2072 Upgradelval.StrVal = strdup(yytext+1); // Nuke start quote
Reid Spencer950bf602007-01-26 08:19:09 +00002073 return STRINGCONSTANT;
2074 }
Reid Spencer229e9362006-12-02 22:14:11 +00002075 YY_BREAK
2076case 147:
2077YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00002078#line 373 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
2079{ Upgradelval.UInt64Val = atoull(yytext); return EUINT64VAL; }
Reid Spencer229e9362006-12-02 22:14:11 +00002080 YY_BREAK
2081case 148:
2082YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00002083#line 374 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00002084{
Reid Spencer832254e2007-02-02 02:16:23 +00002085 uint64_t Val = atoull(yytext+1);
Reid Spencer950bf602007-01-26 08:19:09 +00002086 // +1: we have bigger negative range
2087 if (Val > (uint64_t)INT64_MAX+1)
2088 error("Constant too large for signed 64 bits!");
2089 Upgradelval.SInt64Val = -Val;
2090 return ESINT64VAL;
2091 }
Reid Spencer229e9362006-12-02 22:14:11 +00002092 YY_BREAK
2093case 149:
2094YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00002095#line 382 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00002096{
Reid Spencer832254e2007-02-02 02:16:23 +00002097 Upgradelval.UInt64Val = HexIntToVal(yytext+3);
2098 return yytext[0] == 's' ? ESINT64VAL : EUINT64VAL;
Reid Spencer950bf602007-01-26 08:19:09 +00002099 }
Reid Spencer229e9362006-12-02 22:14:11 +00002100 YY_BREAK
2101case 150:
2102YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00002103#line 387 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00002104{
Reid Spencer832254e2007-02-02 02:16:23 +00002105 uint64_t Val = atoull(yytext+1);
Reid Spencer950bf602007-01-26 08:19:09 +00002106 if ((unsigned)Val != Val)
2107 error("Invalid value number (too large)!");
2108 Upgradelval.UIntVal = unsigned(Val);
2109 return UINTVAL;
2110 }
Reid Spencer6fd36ab2006-12-29 20:35:03 +00002111 YY_BREAK
2112case 151:
2113YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00002114#line 394 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00002115{
Reid Spencer832254e2007-02-02 02:16:23 +00002116 uint64_t Val = atoull(yytext+2);
Reid Spencer950bf602007-01-26 08:19:09 +00002117 // +1: we have bigger negative range
2118 if (Val > (uint64_t)INT32_MAX+1)
2119 error("Constant too large for signed 32 bits!");
2120 Upgradelval.SIntVal = (int)-Val;
2121 return SINTVAL;
2122 }
Reid Spencer71d2ec92006-12-31 06:02:26 +00002123 YY_BREAK
2124case 152:
2125YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00002126#line 403 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
2127{ Upgradelval.FPVal = atof(yytext); return FPVAL; }
Reid Spencer71d2ec92006-12-31 06:02:26 +00002128 YY_BREAK
2129case 153:
2130YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00002131#line 404 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
2132{ Upgradelval.FPVal = HexToFP(yytext); return FPVAL; }
Reid Spencerf7bde222006-12-01 22:26:37 +00002133 YY_BREAK
2134case YY_STATE_EOF(INITIAL):
Reid Spencer832254e2007-02-02 02:16:23 +00002135#line 406 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00002136{
2137 /* Make sure to free the internal buffers for flex when we are
2138 * done reading our input!
2139 */
Reid Spencer832254e2007-02-02 02:16:23 +00002140 yy_delete_buffer(YY_CURRENT_BUFFER);
Reid Spencere7c3c602006-11-30 06:36:44 +00002141 return EOF;
2142 }
2143 YY_BREAK
Reid Spencer950bf602007-01-26 08:19:09 +00002144case 154:
2145YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00002146#line 414 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencer950bf602007-01-26 08:19:09 +00002147{ /* Ignore whitespace */ }
2148 YY_BREAK
Reid Spencer71d2ec92006-12-31 06:02:26 +00002149case 155:
Reid Spencerf7bde222006-12-01 22:26:37 +00002150YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00002151#line 415 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
2152{ return yytext[0]; }
Reid Spencer78720742006-12-02 20:21:22 +00002153 YY_BREAK
Reid Spencer71d2ec92006-12-31 06:02:26 +00002154case 156:
Reid Spencer78720742006-12-02 20:21:22 +00002155YY_RULE_SETUP
Reid Spencer832254e2007-02-02 02:16:23 +00002156#line 417 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00002157YY_FATAL_ERROR( "flex scanner jammed" );
2158 YY_BREAK
Reid Spencer832254e2007-02-02 02:16:23 +00002159#line 2160 "UpgradeLexer.cpp"
Reid Spencere7c3c602006-11-30 06:36:44 +00002160
2161 case YY_END_OF_BUFFER:
2162 {
2163 /* Amount of text matched not including the EOB char. */
Reid Spencer832254e2007-02-02 02:16:23 +00002164 int yy_amount_of_matched_text = (int) (yy_cp - yytext_ptr) - 1;
Reid Spencere7c3c602006-11-30 06:36:44 +00002165
2166 /* Undo the effects of YY_DO_BEFORE_ACTION. */
Reid Spencer832254e2007-02-02 02:16:23 +00002167 *yy_cp = yy_hold_char;
Reid Spencere7c3c602006-11-30 06:36:44 +00002168 YY_RESTORE_YY_MORE_OFFSET
2169
Reid Spencer832254e2007-02-02 02:16:23 +00002170 if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_NEW )
Reid Spencere7c3c602006-11-30 06:36:44 +00002171 {
2172 /* We're scanning a new file or input source. It's
2173 * possible that this happened because the user
Reid Spencer832254e2007-02-02 02:16:23 +00002174 * just pointed yyin at a new source and called
2175 * yylex(). If so, then we have to assure
2176 * consistency between yy_current_buffer and our
Reid Spencere7c3c602006-11-30 06:36:44 +00002177 * globals. Here is the right place to do so, because
2178 * this is the first action (other than possibly a
2179 * back-up) that will match for the new input source.
2180 */
Reid Spencer832254e2007-02-02 02:16:23 +00002181 yy_n_chars = yy_current_buffer->yy_n_chars;
2182 yy_current_buffer->yy_input_file = yyin;
2183 yy_current_buffer->yy_buffer_status = YY_BUFFER_NORMAL;
Reid Spencere7c3c602006-11-30 06:36:44 +00002184 }
2185
2186 /* Note that here we test for yy_c_buf_p "<=" to the position
2187 * of the first EOB in the buffer, since yy_c_buf_p will
2188 * already have been incremented past the NUL character
2189 * (since all states make transitions on EOB to the
2190 * end-of-buffer state). Contrast this with the test
2191 * in input().
2192 */
Reid Spencer832254e2007-02-02 02:16:23 +00002193 if ( yy_c_buf_p <= &yy_current_buffer->yy_ch_buf[yy_n_chars] )
Reid Spencere7c3c602006-11-30 06:36:44 +00002194 { /* This was really a NUL. */
2195 yy_state_type yy_next_state;
2196
Reid Spencer832254e2007-02-02 02:16:23 +00002197 yy_c_buf_p = yytext_ptr + yy_amount_of_matched_text;
Reid Spencere7c3c602006-11-30 06:36:44 +00002198
Reid Spencer832254e2007-02-02 02:16:23 +00002199 yy_current_state = yy_get_previous_state();
Reid Spencere7c3c602006-11-30 06:36:44 +00002200
2201 /* Okay, we're now positioned to make the NUL
2202 * transition. We couldn't have
2203 * yy_get_previous_state() go ahead and do it
2204 * for us because it doesn't know how to deal
2205 * with the possibility of jamming (and we don't
2206 * want to build jamming into it because then it
2207 * will run more slowly).
2208 */
2209
2210 yy_next_state = yy_try_NUL_trans( yy_current_state );
2211
Reid Spencer832254e2007-02-02 02:16:23 +00002212 yy_bp = yytext_ptr + YY_MORE_ADJ;
Reid Spencere7c3c602006-11-30 06:36:44 +00002213
2214 if ( yy_next_state )
2215 {
2216 /* Consume the NUL. */
Reid Spencer832254e2007-02-02 02:16:23 +00002217 yy_cp = ++yy_c_buf_p;
Reid Spencere7c3c602006-11-30 06:36:44 +00002218 yy_current_state = yy_next_state;
2219 goto yy_match;
2220 }
2221
2222 else
2223 {
Reid Spencer832254e2007-02-02 02:16:23 +00002224 yy_cp = yy_c_buf_p;
Reid Spencere7c3c602006-11-30 06:36:44 +00002225 goto yy_find_action;
2226 }
2227 }
2228
Reid Spencer832254e2007-02-02 02:16:23 +00002229 else switch ( yy_get_next_buffer() )
Reid Spencere7c3c602006-11-30 06:36:44 +00002230 {
2231 case EOB_ACT_END_OF_FILE:
2232 {
Reid Spencer832254e2007-02-02 02:16:23 +00002233 yy_did_buffer_switch_on_eof = 0;
Reid Spencere7c3c602006-11-30 06:36:44 +00002234
Reid Spencer832254e2007-02-02 02:16:23 +00002235 if ( yywrap() )
Reid Spencere7c3c602006-11-30 06:36:44 +00002236 {
2237 /* Note: because we've taken care in
2238 * yy_get_next_buffer() to have set up
Reid Spencer832254e2007-02-02 02:16:23 +00002239 * yytext, we can now set up
Reid Spencere7c3c602006-11-30 06:36:44 +00002240 * yy_c_buf_p so that if some total
2241 * hoser (like flex itself) wants to
2242 * call the scanner after we return the
2243 * YY_NULL, it'll still work - another
2244 * YY_NULL will get returned.
2245 */
Reid Spencer832254e2007-02-02 02:16:23 +00002246 yy_c_buf_p = yytext_ptr + YY_MORE_ADJ;
Reid Spencere7c3c602006-11-30 06:36:44 +00002247
2248 yy_act = YY_STATE_EOF(YY_START);
2249 goto do_action;
2250 }
2251
2252 else
2253 {
Reid Spencer832254e2007-02-02 02:16:23 +00002254 if ( ! yy_did_buffer_switch_on_eof )
Reid Spencere7c3c602006-11-30 06:36:44 +00002255 YY_NEW_FILE;
2256 }
2257 break;
2258 }
2259
2260 case EOB_ACT_CONTINUE_SCAN:
Reid Spencer832254e2007-02-02 02:16:23 +00002261 yy_c_buf_p =
2262 yytext_ptr + yy_amount_of_matched_text;
Reid Spencere7c3c602006-11-30 06:36:44 +00002263
Reid Spencer832254e2007-02-02 02:16:23 +00002264 yy_current_state = yy_get_previous_state();
Reid Spencere7c3c602006-11-30 06:36:44 +00002265
Reid Spencer832254e2007-02-02 02:16:23 +00002266 yy_cp = yy_c_buf_p;
2267 yy_bp = yytext_ptr + YY_MORE_ADJ;
Reid Spencere7c3c602006-11-30 06:36:44 +00002268 goto yy_match;
2269
2270 case EOB_ACT_LAST_MATCH:
Reid Spencer832254e2007-02-02 02:16:23 +00002271 yy_c_buf_p =
2272 &yy_current_buffer->yy_ch_buf[yy_n_chars];
Reid Spencere7c3c602006-11-30 06:36:44 +00002273
Reid Spencer832254e2007-02-02 02:16:23 +00002274 yy_current_state = yy_get_previous_state();
Reid Spencere7c3c602006-11-30 06:36:44 +00002275
Reid Spencer832254e2007-02-02 02:16:23 +00002276 yy_cp = yy_c_buf_p;
2277 yy_bp = yytext_ptr + YY_MORE_ADJ;
Reid Spencere7c3c602006-11-30 06:36:44 +00002278 goto yy_find_action;
2279 }
2280 break;
2281 }
2282
2283 default:
2284 YY_FATAL_ERROR(
2285 "fatal flex scanner internal error--no action found" );
2286 } /* end of action switch */
2287 } /* end of scanning one token */
Reid Spencer832254e2007-02-02 02:16:23 +00002288 } /* end of yylex */
2289
Reid Spencere7c3c602006-11-30 06:36:44 +00002290
2291/* yy_get_next_buffer - try to read in a new buffer
2292 *
2293 * Returns a code representing an action:
2294 * EOB_ACT_LAST_MATCH -
2295 * EOB_ACT_CONTINUE_SCAN - continue scanning from current position
2296 * EOB_ACT_END_OF_FILE - end of file
2297 */
Reid Spencer832254e2007-02-02 02:16:23 +00002298
2299static int yy_get_next_buffer()
2300 {
2301 register char *dest = yy_current_buffer->yy_ch_buf;
2302 register char *source = yytext_ptr;
Reid Spencere7c3c602006-11-30 06:36:44 +00002303 register int number_to_move, i;
2304 int ret_val;
2305
Reid Spencer832254e2007-02-02 02:16:23 +00002306 if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] )
Reid Spencere7c3c602006-11-30 06:36:44 +00002307 YY_FATAL_ERROR(
2308 "fatal flex scanner internal error--end of buffer missed" );
2309
Reid Spencer832254e2007-02-02 02:16:23 +00002310 if ( yy_current_buffer->yy_fill_buffer == 0 )
Reid Spencere7c3c602006-11-30 06:36:44 +00002311 { /* Don't try to fill the buffer, so this is an EOF. */
Reid Spencer832254e2007-02-02 02:16:23 +00002312 if ( yy_c_buf_p - yytext_ptr - YY_MORE_ADJ == 1 )
Reid Spencere7c3c602006-11-30 06:36:44 +00002313 {
2314 /* We matched a single character, the EOB, so
2315 * treat this as a final EOF.
2316 */
2317 return EOB_ACT_END_OF_FILE;
2318 }
2319
2320 else
2321 {
2322 /* We matched some text prior to the EOB, first
2323 * process it.
2324 */
2325 return EOB_ACT_LAST_MATCH;
2326 }
2327 }
2328
2329 /* Try to read more data. */
2330
2331 /* First move last chars to start of buffer. */
Reid Spencer832254e2007-02-02 02:16:23 +00002332 number_to_move = (int) (yy_c_buf_p - yytext_ptr) - 1;
Reid Spencere7c3c602006-11-30 06:36:44 +00002333
2334 for ( i = 0; i < number_to_move; ++i )
2335 *(dest++) = *(source++);
2336
Reid Spencer832254e2007-02-02 02:16:23 +00002337 if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_EOF_PENDING )
Reid Spencere7c3c602006-11-30 06:36:44 +00002338 /* don't do the read, it's not guaranteed to return an EOF,
2339 * just force an EOF
2340 */
Reid Spencer832254e2007-02-02 02:16:23 +00002341 yy_current_buffer->yy_n_chars = yy_n_chars = 0;
Reid Spencere7c3c602006-11-30 06:36:44 +00002342
2343 else
2344 {
Reid Spencer832254e2007-02-02 02:16:23 +00002345 int num_to_read =
2346 yy_current_buffer->yy_buf_size - number_to_move - 1;
Reid Spencere7c3c602006-11-30 06:36:44 +00002347
2348 while ( num_to_read <= 0 )
2349 { /* Not enough room in the buffer - grow it. */
Reid Spencer832254e2007-02-02 02:16:23 +00002350#ifdef YY_USES_REJECT
2351 YY_FATAL_ERROR(
2352"input buffer overflow, can't enlarge buffer because scanner uses REJECT" );
2353#else
Reid Spencere7c3c602006-11-30 06:36:44 +00002354
2355 /* just a shorter name for the current buffer */
Reid Spencer832254e2007-02-02 02:16:23 +00002356 YY_BUFFER_STATE b = yy_current_buffer;
Reid Spencere7c3c602006-11-30 06:36:44 +00002357
2358 int yy_c_buf_p_offset =
Reid Spencer832254e2007-02-02 02:16:23 +00002359 (int) (yy_c_buf_p - b->yy_ch_buf);
Reid Spencere7c3c602006-11-30 06:36:44 +00002360
2361 if ( b->yy_is_our_buffer )
2362 {
2363 int new_size = b->yy_buf_size * 2;
2364
2365 if ( new_size <= 0 )
2366 b->yy_buf_size += b->yy_buf_size / 8;
2367 else
2368 b->yy_buf_size *= 2;
2369
2370 b->yy_ch_buf = (char *)
2371 /* Include room in for 2 EOB chars. */
Reid Spencer832254e2007-02-02 02:16:23 +00002372 yy_flex_realloc( (void *) b->yy_ch_buf,
2373 b->yy_buf_size + 2 );
Reid Spencere7c3c602006-11-30 06:36:44 +00002374 }
2375 else
2376 /* Can't grow it, we don't own it. */
2377 b->yy_ch_buf = 0;
2378
2379 if ( ! b->yy_ch_buf )
2380 YY_FATAL_ERROR(
2381 "fatal error - scanner input buffer overflow" );
2382
Reid Spencer832254e2007-02-02 02:16:23 +00002383 yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset];
Reid Spencere7c3c602006-11-30 06:36:44 +00002384
Reid Spencer832254e2007-02-02 02:16:23 +00002385 num_to_read = yy_current_buffer->yy_buf_size -
Reid Spencere7c3c602006-11-30 06:36:44 +00002386 number_to_move - 1;
Reid Spencer832254e2007-02-02 02:16:23 +00002387#endif
Reid Spencere7c3c602006-11-30 06:36:44 +00002388 }
2389
2390 if ( num_to_read > YY_READ_BUF_SIZE )
2391 num_to_read = YY_READ_BUF_SIZE;
2392
2393 /* Read in more data. */
Reid Spencer832254e2007-02-02 02:16:23 +00002394 YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]),
2395 yy_n_chars, num_to_read );
Reid Spencere7c3c602006-11-30 06:36:44 +00002396
Reid Spencer832254e2007-02-02 02:16:23 +00002397 yy_current_buffer->yy_n_chars = yy_n_chars;
Reid Spencere7c3c602006-11-30 06:36:44 +00002398 }
2399
Reid Spencer832254e2007-02-02 02:16:23 +00002400 if ( yy_n_chars == 0 )
Reid Spencere7c3c602006-11-30 06:36:44 +00002401 {
2402 if ( number_to_move == YY_MORE_ADJ )
2403 {
2404 ret_val = EOB_ACT_END_OF_FILE;
Reid Spencer832254e2007-02-02 02:16:23 +00002405 yyrestart( yyin );
Reid Spencere7c3c602006-11-30 06:36:44 +00002406 }
2407
2408 else
2409 {
2410 ret_val = EOB_ACT_LAST_MATCH;
Reid Spencer832254e2007-02-02 02:16:23 +00002411 yy_current_buffer->yy_buffer_status =
Reid Spencere7c3c602006-11-30 06:36:44 +00002412 YY_BUFFER_EOF_PENDING;
2413 }
2414 }
2415
2416 else
2417 ret_val = EOB_ACT_CONTINUE_SCAN;
2418
Reid Spencer832254e2007-02-02 02:16:23 +00002419 yy_n_chars += number_to_move;
2420 yy_current_buffer->yy_ch_buf[yy_n_chars] = YY_END_OF_BUFFER_CHAR;
2421 yy_current_buffer->yy_ch_buf[yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;
Reid Spencere7c3c602006-11-30 06:36:44 +00002422
Reid Spencer832254e2007-02-02 02:16:23 +00002423 yytext_ptr = &yy_current_buffer->yy_ch_buf[0];
Reid Spencere7c3c602006-11-30 06:36:44 +00002424
2425 return ret_val;
Reid Spencer832254e2007-02-02 02:16:23 +00002426 }
2427
Reid Spencere7c3c602006-11-30 06:36:44 +00002428
2429/* yy_get_previous_state - get the state just before the EOB char was reached */
2430
Reid Spencer832254e2007-02-02 02:16:23 +00002431static yy_state_type yy_get_previous_state()
2432 {
Reid Spencere7c3c602006-11-30 06:36:44 +00002433 register yy_state_type yy_current_state;
2434 register char *yy_cp;
2435
Reid Spencer832254e2007-02-02 02:16:23 +00002436 yy_current_state = yy_start;
2437 yy_state_ptr = yy_state_buf;
2438 *yy_state_ptr++ = yy_current_state;
2439
2440 for ( yy_cp = yytext_ptr + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp )
Reid Spencere7c3c602006-11-30 06:36:44 +00002441 {
2442 register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
2443 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
2444 {
2445 yy_current_state = (int) yy_def[yy_current_state];
Reid Spencer950bf602007-01-26 08:19:09 +00002446 if ( yy_current_state >= 610 )
Reid Spencere7c3c602006-11-30 06:36:44 +00002447 yy_c = yy_meta[(unsigned int) yy_c];
2448 }
2449 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
Reid Spencer832254e2007-02-02 02:16:23 +00002450 *yy_state_ptr++ = yy_current_state;
Reid Spencere7c3c602006-11-30 06:36:44 +00002451 }
2452
2453 return yy_current_state;
Reid Spencer832254e2007-02-02 02:16:23 +00002454 }
2455
Reid Spencere7c3c602006-11-30 06:36:44 +00002456
2457/* yy_try_NUL_trans - try to make a transition on the NUL character
2458 *
2459 * synopsis
2460 * next_state = yy_try_NUL_trans( current_state );
2461 */
Reid Spencer832254e2007-02-02 02:16:23 +00002462
2463#ifdef YY_USE_PROTOS
2464static yy_state_type yy_try_NUL_trans( yy_state_type yy_current_state )
2465#else
2466static yy_state_type yy_try_NUL_trans( yy_current_state )
2467yy_state_type yy_current_state;
2468#endif
2469 {
Reid Spencere7c3c602006-11-30 06:36:44 +00002470 register int yy_is_jam;
2471
2472 register YY_CHAR yy_c = 1;
2473 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
2474 {
2475 yy_current_state = (int) yy_def[yy_current_state];
Reid Spencer950bf602007-01-26 08:19:09 +00002476 if ( yy_current_state >= 610 )
Reid Spencere7c3c602006-11-30 06:36:44 +00002477 yy_c = yy_meta[(unsigned int) yy_c];
2478 }
2479 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
Reid Spencer950bf602007-01-26 08:19:09 +00002480 yy_is_jam = (yy_current_state == 609);
Reid Spencer832254e2007-02-02 02:16:23 +00002481 if ( ! yy_is_jam )
2482 *yy_state_ptr++ = yy_current_state;
Reid Spencere7c3c602006-11-30 06:36:44 +00002483
2484 return yy_is_jam ? 0 : yy_current_state;
Reid Spencer832254e2007-02-02 02:16:23 +00002485 }
Reid Spencere7c3c602006-11-30 06:36:44 +00002486
2487
Reid Spencer832254e2007-02-02 02:16:23 +00002488#ifndef YY_NO_UNPUT
2489#ifdef YY_USE_PROTOS
2490static inline void yyunput( int c, register char *yy_bp )
2491#else
2492static inline void yyunput( c, yy_bp )
2493int c;
2494register char *yy_bp;
2495#endif
2496 {
2497 register char *yy_cp = yy_c_buf_p;
Reid Spencere7c3c602006-11-30 06:36:44 +00002498
Reid Spencer832254e2007-02-02 02:16:23 +00002499 /* undo effects of setting up yytext */
2500 *yy_cp = yy_hold_char;
2501
2502 if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
Reid Spencere7c3c602006-11-30 06:36:44 +00002503 { /* need to shift things up to make room */
2504 /* +2 for EOB chars. */
Reid Spencer832254e2007-02-02 02:16:23 +00002505 register int number_to_move = yy_n_chars + 2;
2506 register char *dest = &yy_current_buffer->yy_ch_buf[
2507 yy_current_buffer->yy_buf_size + 2];
Reid Spencere7c3c602006-11-30 06:36:44 +00002508 register char *source =
Reid Spencer832254e2007-02-02 02:16:23 +00002509 &yy_current_buffer->yy_ch_buf[number_to_move];
Reid Spencere7c3c602006-11-30 06:36:44 +00002510
Reid Spencer832254e2007-02-02 02:16:23 +00002511 while ( source > yy_current_buffer->yy_ch_buf )
Reid Spencere7c3c602006-11-30 06:36:44 +00002512 *--dest = *--source;
2513
2514 yy_cp += (int) (dest - source);
2515 yy_bp += (int) (dest - source);
Reid Spencer832254e2007-02-02 02:16:23 +00002516 yy_current_buffer->yy_n_chars =
2517 yy_n_chars = yy_current_buffer->yy_buf_size;
Reid Spencere7c3c602006-11-30 06:36:44 +00002518
Reid Spencer832254e2007-02-02 02:16:23 +00002519 if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
Reid Spencere7c3c602006-11-30 06:36:44 +00002520 YY_FATAL_ERROR( "flex scanner push-back overflow" );
2521 }
2522
2523 *--yy_cp = (char) c;
2524
Reid Spencer832254e2007-02-02 02:16:23 +00002525 if ( c == '\n' )
2526 --yylineno;
Reid Spencere7c3c602006-11-30 06:36:44 +00002527
Reid Spencer832254e2007-02-02 02:16:23 +00002528 yytext_ptr = yy_bp;
2529 yy_hold_char = *yy_cp;
2530 yy_c_buf_p = yy_cp;
2531 }
2532#endif /* ifndef YY_NO_UNPUT */
2533
Reid Spencere7c3c602006-11-30 06:36:44 +00002534
2535#ifndef YY_NO_INPUT
2536#ifdef __cplusplus
Reid Spencer832254e2007-02-02 02:16:23 +00002537static int yyinput()
Reid Spencere7c3c602006-11-30 06:36:44 +00002538#else
Reid Spencer832254e2007-02-02 02:16:23 +00002539static int input()
Reid Spencere7c3c602006-11-30 06:36:44 +00002540#endif
Reid Spencer832254e2007-02-02 02:16:23 +00002541 {
Reid Spencere7c3c602006-11-30 06:36:44 +00002542 int c;
2543
Reid Spencer832254e2007-02-02 02:16:23 +00002544 *yy_c_buf_p = yy_hold_char;
2545
2546 if ( *yy_c_buf_p == YY_END_OF_BUFFER_CHAR )
Reid Spencere7c3c602006-11-30 06:36:44 +00002547 {
2548 /* yy_c_buf_p now points to the character we want to return.
2549 * If this occurs *before* the EOB characters, then it's a
2550 * valid NUL; if not, then we've hit the end of the buffer.
2551 */
Reid Spencer832254e2007-02-02 02:16:23 +00002552 if ( yy_c_buf_p < &yy_current_buffer->yy_ch_buf[yy_n_chars] )
Reid Spencere7c3c602006-11-30 06:36:44 +00002553 /* This was really a NUL. */
Reid Spencer832254e2007-02-02 02:16:23 +00002554 *yy_c_buf_p = '\0';
Reid Spencere7c3c602006-11-30 06:36:44 +00002555
2556 else
2557 { /* need more input */
Reid Spencer832254e2007-02-02 02:16:23 +00002558 int offset = yy_c_buf_p - yytext_ptr;
2559 ++yy_c_buf_p;
Reid Spencere7c3c602006-11-30 06:36:44 +00002560
Reid Spencer832254e2007-02-02 02:16:23 +00002561 switch ( yy_get_next_buffer() )
Reid Spencere7c3c602006-11-30 06:36:44 +00002562 {
2563 case EOB_ACT_LAST_MATCH:
2564 /* This happens because yy_g_n_b()
2565 * sees that we've accumulated a
2566 * token and flags that we need to
2567 * try matching the token before
2568 * proceeding. But for input(),
2569 * there's no matching to consider.
2570 * So convert the EOB_ACT_LAST_MATCH
2571 * to EOB_ACT_END_OF_FILE.
2572 */
2573
2574 /* Reset buffer status. */
Reid Spencer832254e2007-02-02 02:16:23 +00002575 yyrestart( yyin );
Reid Spencere7c3c602006-11-30 06:36:44 +00002576
Reid Spencer832254e2007-02-02 02:16:23 +00002577 /* fall through */
Reid Spencere7c3c602006-11-30 06:36:44 +00002578
2579 case EOB_ACT_END_OF_FILE:
2580 {
Reid Spencer832254e2007-02-02 02:16:23 +00002581 if ( yywrap() )
Reid Spencere7c3c602006-11-30 06:36:44 +00002582 return EOF;
2583
Reid Spencer832254e2007-02-02 02:16:23 +00002584 if ( ! yy_did_buffer_switch_on_eof )
Reid Spencere7c3c602006-11-30 06:36:44 +00002585 YY_NEW_FILE;
2586#ifdef __cplusplus
2587 return yyinput();
2588#else
2589 return input();
2590#endif
2591 }
2592
2593 case EOB_ACT_CONTINUE_SCAN:
Reid Spencer832254e2007-02-02 02:16:23 +00002594 yy_c_buf_p = yytext_ptr + offset;
Reid Spencere7c3c602006-11-30 06:36:44 +00002595 break;
2596 }
2597 }
2598 }
2599
Reid Spencer832254e2007-02-02 02:16:23 +00002600 c = *(unsigned char *) yy_c_buf_p; /* cast for 8-bit char's */
2601 *yy_c_buf_p = '\0'; /* preserve yytext */
2602 yy_hold_char = *++yy_c_buf_p;
Reid Spencere7c3c602006-11-30 06:36:44 +00002603
2604 if ( c == '\n' )
Reid Spencer832254e2007-02-02 02:16:23 +00002605 ++yylineno;
Reid Spencere7c3c602006-11-30 06:36:44 +00002606
2607 return c;
Reid Spencer832254e2007-02-02 02:16:23 +00002608 }
2609#endif /* YY_NO_INPUT */
Reid Spencere7c3c602006-11-30 06:36:44 +00002610
Reid Spencer832254e2007-02-02 02:16:23 +00002611#ifdef YY_USE_PROTOS
2612void yyrestart( FILE *input_file )
2613#else
2614void yyrestart( input_file )
2615FILE *input_file;
2616#endif
2617 {
2618 if ( ! yy_current_buffer )
2619 yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE );
2620
2621 yy_init_buffer( yy_current_buffer, input_file );
2622 yy_load_buffer_state();
Reid Spencere7c3c602006-11-30 06:36:44 +00002623 }
2624
2625
Reid Spencer832254e2007-02-02 02:16:23 +00002626#ifdef YY_USE_PROTOS
2627void yy_switch_to_buffer( YY_BUFFER_STATE new_buffer )
2628#else
2629void yy_switch_to_buffer( new_buffer )
2630YY_BUFFER_STATE new_buffer;
2631#endif
2632 {
2633 if ( yy_current_buffer == new_buffer )
Reid Spencere7c3c602006-11-30 06:36:44 +00002634 return;
2635
Reid Spencer832254e2007-02-02 02:16:23 +00002636 if ( yy_current_buffer )
Reid Spencere7c3c602006-11-30 06:36:44 +00002637 {
2638 /* Flush out information for old buffer. */
Reid Spencer832254e2007-02-02 02:16:23 +00002639 *yy_c_buf_p = yy_hold_char;
2640 yy_current_buffer->yy_buf_pos = yy_c_buf_p;
2641 yy_current_buffer->yy_n_chars = yy_n_chars;
Reid Spencere7c3c602006-11-30 06:36:44 +00002642 }
2643
Reid Spencer832254e2007-02-02 02:16:23 +00002644 yy_current_buffer = new_buffer;
2645 yy_load_buffer_state();
Reid Spencere7c3c602006-11-30 06:36:44 +00002646
2647 /* We don't actually know whether we did this switch during
Reid Spencer832254e2007-02-02 02:16:23 +00002648 * EOF (yywrap()) processing, but the only time this flag
2649 * is looked at is after yywrap() is called, so it's safe
Reid Spencere7c3c602006-11-30 06:36:44 +00002650 * to go ahead and always set it.
2651 */
Reid Spencer832254e2007-02-02 02:16:23 +00002652 yy_did_buffer_switch_on_eof = 1;
2653 }
Reid Spencere7c3c602006-11-30 06:36:44 +00002654
2655
Reid Spencer832254e2007-02-02 02:16:23 +00002656#ifdef YY_USE_PROTOS
2657void yy_load_buffer_state( void )
2658#else
2659void yy_load_buffer_state()
2660#endif
2661 {
2662 yy_n_chars = yy_current_buffer->yy_n_chars;
2663 yytext_ptr = yy_c_buf_p = yy_current_buffer->yy_buf_pos;
2664 yyin = yy_current_buffer->yy_input_file;
2665 yy_hold_char = *yy_c_buf_p;
2666 }
2667
2668
2669#ifdef YY_USE_PROTOS
2670YY_BUFFER_STATE yy_create_buffer( FILE *file, int size )
2671#else
2672YY_BUFFER_STATE yy_create_buffer( file, size )
2673FILE *file;
2674int size;
2675#endif
2676 {
Reid Spencere7c3c602006-11-30 06:36:44 +00002677 YY_BUFFER_STATE b;
Reid Spencer832254e2007-02-02 02:16:23 +00002678
2679 b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
Reid Spencere7c3c602006-11-30 06:36:44 +00002680 if ( ! b )
Reid Spencer832254e2007-02-02 02:16:23 +00002681 YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
Reid Spencere7c3c602006-11-30 06:36:44 +00002682
2683 b->yy_buf_size = size;
2684
2685 /* yy_ch_buf has to be 2 characters longer than the size given because
2686 * we need to put in 2 end-of-buffer characters.
2687 */
Reid Spencer832254e2007-02-02 02:16:23 +00002688 b->yy_ch_buf = (char *) yy_flex_alloc( b->yy_buf_size + 2 );
Reid Spencere7c3c602006-11-30 06:36:44 +00002689 if ( ! b->yy_ch_buf )
Reid Spencer832254e2007-02-02 02:16:23 +00002690 YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
Reid Spencere7c3c602006-11-30 06:36:44 +00002691
2692 b->yy_is_our_buffer = 1;
2693
Reid Spencer832254e2007-02-02 02:16:23 +00002694 yy_init_buffer( b, file );
Reid Spencere7c3c602006-11-30 06:36:44 +00002695
2696 return b;
Reid Spencer832254e2007-02-02 02:16:23 +00002697 }
Reid Spencere7c3c602006-11-30 06:36:44 +00002698
Reid Spencer832254e2007-02-02 02:16:23 +00002699
2700#ifdef YY_USE_PROTOS
2701void yy_delete_buffer( YY_BUFFER_STATE b )
2702#else
2703void yy_delete_buffer( b )
2704YY_BUFFER_STATE b;
2705#endif
2706 {
Reid Spencere7c3c602006-11-30 06:36:44 +00002707 if ( ! b )
2708 return;
2709
Reid Spencer832254e2007-02-02 02:16:23 +00002710 if ( b == yy_current_buffer )
2711 yy_current_buffer = (YY_BUFFER_STATE) 0;
Reid Spencere7c3c602006-11-30 06:36:44 +00002712
2713 if ( b->yy_is_our_buffer )
Reid Spencer832254e2007-02-02 02:16:23 +00002714 yy_flex_free( (void *) b->yy_ch_buf );
Reid Spencere7c3c602006-11-30 06:36:44 +00002715
Reid Spencer832254e2007-02-02 02:16:23 +00002716 yy_flex_free( (void *) b );
2717 }
Reid Spencere7c3c602006-11-30 06:36:44 +00002718
2719
Reid Spencer832254e2007-02-02 02:16:23 +00002720
2721#ifdef YY_USE_PROTOS
2722void yy_init_buffer( YY_BUFFER_STATE b, FILE *file )
2723#else
2724void yy_init_buffer( b, file )
2725YY_BUFFER_STATE b;
2726FILE *file;
2727#endif
2728
2729
2730 {
2731 yy_flush_buffer( b );
Reid Spencere7c3c602006-11-30 06:36:44 +00002732
2733 b->yy_input_file = file;
2734 b->yy_fill_buffer = 1;
2735
Reid Spencer832254e2007-02-02 02:16:23 +00002736#if YY_ALWAYS_INTERACTIVE
2737 b->yy_is_interactive = 1;
2738#else
2739#if YY_NEVER_INTERACTIVE
2740 b->yy_is_interactive = 0;
2741#else
2742 b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
2743#endif
2744#endif
2745 }
Reid Spencere7c3c602006-11-30 06:36:44 +00002746
2747
Reid Spencer832254e2007-02-02 02:16:23 +00002748#ifdef YY_USE_PROTOS
2749void yy_flush_buffer( YY_BUFFER_STATE b )
2750#else
2751void yy_flush_buffer( b )
2752YY_BUFFER_STATE b;
2753#endif
2754
2755 {
2756 if ( ! b )
Reid Spencere7c3c602006-11-30 06:36:44 +00002757 return;
2758
2759 b->yy_n_chars = 0;
2760
2761 /* We always need two end-of-buffer characters. The first causes
2762 * a transition to the end-of-buffer state. The second causes
2763 * a jam in that state.
2764 */
2765 b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
2766 b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
2767
2768 b->yy_buf_pos = &b->yy_ch_buf[0];
2769
2770 b->yy_at_bol = 1;
2771 b->yy_buffer_status = YY_BUFFER_NEW;
2772
Reid Spencer832254e2007-02-02 02:16:23 +00002773 if ( b == yy_current_buffer )
2774 yy_load_buffer_state();
Reid Spencere7c3c602006-11-30 06:36:44 +00002775 }
2776
2777
Reid Spencer832254e2007-02-02 02:16:23 +00002778#ifndef YY_NO_SCAN_BUFFER
2779#ifdef YY_USE_PROTOS
2780YY_BUFFER_STATE yy_scan_buffer( char *base, yy_size_t size )
2781#else
2782YY_BUFFER_STATE yy_scan_buffer( base, size )
2783char *base;
2784yy_size_t size;
2785#endif
2786 {
Reid Spencere7c3c602006-11-30 06:36:44 +00002787 YY_BUFFER_STATE b;
Reid Spencer832254e2007-02-02 02:16:23 +00002788
Reid Spencere7c3c602006-11-30 06:36:44 +00002789 if ( size < 2 ||
2790 base[size-2] != YY_END_OF_BUFFER_CHAR ||
2791 base[size-1] != YY_END_OF_BUFFER_CHAR )
2792 /* They forgot to leave room for the EOB's. */
2793 return 0;
2794
Reid Spencer832254e2007-02-02 02:16:23 +00002795 b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
Reid Spencere7c3c602006-11-30 06:36:44 +00002796 if ( ! b )
Reid Spencer832254e2007-02-02 02:16:23 +00002797 YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
Reid Spencere7c3c602006-11-30 06:36:44 +00002798
2799 b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */
2800 b->yy_buf_pos = b->yy_ch_buf = base;
2801 b->yy_is_our_buffer = 0;
2802 b->yy_input_file = 0;
2803 b->yy_n_chars = b->yy_buf_size;
2804 b->yy_is_interactive = 0;
2805 b->yy_at_bol = 1;
2806 b->yy_fill_buffer = 0;
2807 b->yy_buffer_status = YY_BUFFER_NEW;
2808
Reid Spencer832254e2007-02-02 02:16:23 +00002809 yy_switch_to_buffer( b );
Reid Spencere7c3c602006-11-30 06:36:44 +00002810
2811 return b;
Reid Spencer832254e2007-02-02 02:16:23 +00002812 }
2813#endif
Reid Spencere7c3c602006-11-30 06:36:44 +00002814
2815
Reid Spencer832254e2007-02-02 02:16:23 +00002816#ifndef YY_NO_SCAN_STRING
2817#ifdef YY_USE_PROTOS
2818YY_BUFFER_STATE yy_scan_string( yyconst char *yy_str )
2819#else
2820YY_BUFFER_STATE yy_scan_string( yy_str )
2821yyconst char *yy_str;
2822#endif
2823 {
2824 int len;
2825 for ( len = 0; yy_str[len]; ++len )
2826 ;
2827
2828 return yy_scan_bytes( yy_str, len );
2829 }
2830#endif
2831
2832
2833#ifndef YY_NO_SCAN_BYTES
2834#ifdef YY_USE_PROTOS
2835YY_BUFFER_STATE yy_scan_bytes( yyconst char *bytes, int len )
2836#else
2837YY_BUFFER_STATE yy_scan_bytes( bytes, len )
2838yyconst char *bytes;
2839int len;
2840#endif
2841 {
Reid Spencere7c3c602006-11-30 06:36:44 +00002842 YY_BUFFER_STATE b;
2843 char *buf;
2844 yy_size_t n;
2845 int i;
Reid Spencer832254e2007-02-02 02:16:23 +00002846
Reid Spencere7c3c602006-11-30 06:36:44 +00002847 /* Get memory for full buffer, including space for trailing EOB's. */
Reid Spencer832254e2007-02-02 02:16:23 +00002848 n = len + 2;
2849 buf = (char *) yy_flex_alloc( n );
Reid Spencere7c3c602006-11-30 06:36:44 +00002850 if ( ! buf )
Reid Spencer832254e2007-02-02 02:16:23 +00002851 YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
Reid Spencere7c3c602006-11-30 06:36:44 +00002852
Reid Spencer832254e2007-02-02 02:16:23 +00002853 for ( i = 0; i < len; ++i )
2854 buf[i] = bytes[i];
Reid Spencere7c3c602006-11-30 06:36:44 +00002855
Reid Spencer832254e2007-02-02 02:16:23 +00002856 buf[len] = buf[len+1] = YY_END_OF_BUFFER_CHAR;
Reid Spencere7c3c602006-11-30 06:36:44 +00002857
Reid Spencer832254e2007-02-02 02:16:23 +00002858 b = yy_scan_buffer( buf, n );
Reid Spencere7c3c602006-11-30 06:36:44 +00002859 if ( ! b )
Reid Spencer832254e2007-02-02 02:16:23 +00002860 YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
Reid Spencere7c3c602006-11-30 06:36:44 +00002861
2862 /* It's okay to grow etc. this buffer, and we should throw it
2863 * away when we're done.
2864 */
2865 b->yy_is_our_buffer = 1;
2866
2867 return b;
Reid Spencer832254e2007-02-02 02:16:23 +00002868 }
2869#endif
2870
2871
2872#ifndef YY_NO_PUSH_STATE
2873#ifdef YY_USE_PROTOS
2874static void yy_push_state( int new_state )
2875#else
2876static void yy_push_state( new_state )
2877int new_state;
2878#endif
2879 {
2880 if ( yy_start_stack_ptr >= yy_start_stack_depth )
2881 {
2882 yy_size_t new_size;
2883
2884 yy_start_stack_depth += YY_START_STACK_INCR;
2885 new_size = yy_start_stack_depth * sizeof( int );
2886
2887 if ( ! yy_start_stack )
2888 yy_start_stack = (int *) yy_flex_alloc( new_size );
2889
2890 else
2891 yy_start_stack = (int *) yy_flex_realloc(
2892 (void *) yy_start_stack, new_size );
2893
2894 if ( ! yy_start_stack )
2895 YY_FATAL_ERROR(
2896 "out of memory expanding start-condition stack" );
2897 }
2898
2899 yy_start_stack[yy_start_stack_ptr++] = YY_START;
2900
2901 BEGIN(new_state);
2902 }
2903#endif
2904
2905
2906#ifndef YY_NO_POP_STATE
2907static void yy_pop_state()
2908 {
2909 if ( --yy_start_stack_ptr < 0 )
2910 YY_FATAL_ERROR( "start-condition stack underflow" );
2911
2912 BEGIN(yy_start_stack[yy_start_stack_ptr]);
2913 }
2914#endif
2915
2916
2917#ifndef YY_NO_TOP_STATE
2918static int yy_top_state()
2919 {
2920 return yy_start_stack[yy_start_stack_ptr - 1];
2921 }
2922#endif
Reid Spencere7c3c602006-11-30 06:36:44 +00002923
2924#ifndef YY_EXIT_FAILURE
2925#define YY_EXIT_FAILURE 2
2926#endif
2927
Reid Spencer832254e2007-02-02 02:16:23 +00002928#ifdef YY_USE_PROTOS
2929static void yy_fatal_error( yyconst char msg[] )
2930#else
2931static void yy_fatal_error( msg )
2932char msg[];
2933#endif
2934 {
2935 (void) fprintf( stderr, "%s\n", msg );
Reid Spencere7c3c602006-11-30 06:36:44 +00002936 exit( YY_EXIT_FAILURE );
Reid Spencer832254e2007-02-02 02:16:23 +00002937 }
2938
2939
Reid Spencere7c3c602006-11-30 06:36:44 +00002940
2941/* Redefine yyless() so it works in section 3 code. */
2942
2943#undef yyless
2944#define yyless(n) \
2945 do \
2946 { \
Reid Spencer832254e2007-02-02 02:16:23 +00002947 /* Undo effects of setting up yytext. */ \
2948 yytext[yyleng] = yy_hold_char; \
2949 yy_c_buf_p = yytext + n; \
2950 yy_hold_char = *yy_c_buf_p; \
2951 *yy_c_buf_p = '\0'; \
2952 yyleng = n; \
Reid Spencere7c3c602006-11-30 06:36:44 +00002953 } \
2954 while ( 0 )
2955
2956
Reid Spencer832254e2007-02-02 02:16:23 +00002957/* Internal utility routines. */
Reid Spencere7c3c602006-11-30 06:36:44 +00002958
2959#ifndef yytext_ptr
Reid Spencer832254e2007-02-02 02:16:23 +00002960#ifdef YY_USE_PROTOS
2961static void yy_flex_strncpy( char *s1, yyconst char *s2, int n )
2962#else
2963static void yy_flex_strncpy( s1, s2, n )
2964char *s1;
2965yyconst char *s2;
2966int n;
2967#endif
2968 {
Reid Spencere7c3c602006-11-30 06:36:44 +00002969 register int i;
2970 for ( i = 0; i < n; ++i )
2971 s1[i] = s2[i];
Reid Spencer832254e2007-02-02 02:16:23 +00002972 }
Reid Spencere7c3c602006-11-30 06:36:44 +00002973#endif
2974
2975#ifdef YY_NEED_STRLEN
Reid Spencer832254e2007-02-02 02:16:23 +00002976#ifdef YY_USE_PROTOS
2977static int yy_flex_strlen( yyconst char *s )
2978#else
2979static int yy_flex_strlen( s )
2980yyconst char *s;
2981#endif
2982 {
Reid Spencere7c3c602006-11-30 06:36:44 +00002983 register int n;
2984 for ( n = 0; s[n]; ++n )
2985 ;
2986
2987 return n;
Reid Spencer832254e2007-02-02 02:16:23 +00002988 }
Reid Spencere7c3c602006-11-30 06:36:44 +00002989#endif
2990
Reid Spencere7c3c602006-11-30 06:36:44 +00002991
Reid Spencer832254e2007-02-02 02:16:23 +00002992#ifdef YY_USE_PROTOS
2993static void *yy_flex_alloc( yy_size_t size )
2994#else
2995static void *yy_flex_alloc( size )
2996yy_size_t size;
2997#endif
2998 {
2999 return (void *) malloc( size );
3000 }
3001
3002#ifdef YY_USE_PROTOS
3003static inline void *yy_flex_realloc( void *ptr, yy_size_t size )
3004#else
3005static inline void *yy_flex_realloc( ptr, size )
3006void *ptr;
3007yy_size_t size;
3008#endif
3009 {
Reid Spencere7c3c602006-11-30 06:36:44 +00003010 /* The cast to (char *) in the following accommodates both
3011 * implementations that use char* generic pointers, and those
3012 * that use void* generic pointers. It works with the latter
3013 * because both ANSI C and C++ allow castless assignment from
3014 * any pointer type to void*, and deal with argument conversions
3015 * as though doing an assignment.
3016 */
3017 return (void *) realloc( (char *) ptr, size );
Reid Spencer832254e2007-02-02 02:16:23 +00003018 }
Reid Spencere7c3c602006-11-30 06:36:44 +00003019
Reid Spencer832254e2007-02-02 02:16:23 +00003020#ifdef YY_USE_PROTOS
3021static void yy_flex_free( void *ptr )
3022#else
3023static void yy_flex_free( ptr )
3024void *ptr;
3025#endif
3026 {
3027 free( ptr );
3028 }
Reid Spencere7c3c602006-11-30 06:36:44 +00003029
Reid Spencer832254e2007-02-02 02:16:23 +00003030#if YY_MAIN
3031int main()
3032 {
3033 yylex();
3034 return 0;
3035 }
3036#endif
3037#line 417 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
Reid Spencere7c3c602006-11-30 06:36:44 +00003038