blob: 764e468efa9c38d9fcf5583a5e5ff61cba339668 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +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
18
19#line 20 "UpgradeLexer.cpp"
Dale Johannesenb9de9f02007-09-06 18:13:44 +000020/* A lexical scanner generated by flex */
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021
22/* Scanner skeleton version:
Dale Johannesenb9de9f02007-09-06 18:13:44 +000023 * $Header: /cvs/root/flex/flex/skel.c,v 1.2 2004/05/07 00:28:17 jkh Exp $
Dan Gohmanf17a25c2007-07-18 16:29:46 +000024 */
25
26#define FLEX_SCANNER
27#define YY_FLEX_MAJOR_VERSION 2
28#define YY_FLEX_MINOR_VERSION 5
29
30#include <stdio.h>
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031
32
33/* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */
34#ifdef c_plusplus
35#ifndef __cplusplus
36#define __cplusplus
37#endif
38#endif
39
40
41#ifdef __cplusplus
42
43#include <stdlib.h>
Dale Johannesenb9de9f02007-09-06 18:13:44 +000044#include <unistd.h>
Dan Gohmanf17a25c2007-07-18 16:29:46 +000045
46/* Use prototypes in function declarations. */
47#define YY_USE_PROTOS
48
49/* The "const" storage-class-modifier is valid. */
50#define YY_USE_CONST
51
52#else /* ! __cplusplus */
53
54#if __STDC__
55
56#define YY_USE_PROTOS
57#define YY_USE_CONST
58
59#endif /* __STDC__ */
60#endif /* ! __cplusplus */
61
62#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
71#ifdef YY_USE_CONST
72#define yyconst const
73#else
74#define yyconst
75#endif
76
77
78#ifdef YY_USE_PROTOS
79#define YY_PROTO(proto) proto
80#else
81#define YY_PROTO(proto) ()
82#endif
83
84/* 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 */
98#define BEGIN yy_start = 1 + 2 *
99
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 */
104#define YY_START ((yy_start - 1) / 2)
105#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". */
111#define YY_NEW_FILE yyrestart( yyin )
112
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
120extern int yyleng;
121extern FILE *yyin, *yyout;
122
123#define EOB_ACT_CONTINUE_SCAN 0
124#define EOB_ACT_END_OF_FILE 1
125#define EOB_ACT_LAST_MATCH 2
126
127/* 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
143#define yyless(n) \
144 do \
145 { \
146 /* Undo effects of setting up yytext. */ \
147 *yy_cp = yy_hold_char; \
148 YY_RESTORE_YY_MORE_OFFSET \
149 yy_c_buf_p = yy_cp = yy_bp + n - YY_MORE_ADJ; \
150 YY_DO_BEFORE_ACTION; /* set up yytext again */ \
151 } \
152 while ( 0 )
153
154#define unput(c) yyunput( c, yytext_ptr )
155
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000156/* The following is because we cannot portably get our hands on size_t
157 * (without autoconf's help, which isn't available because we want
158 * flex-generated scanners to compile on their own).
159 */
160typedef unsigned int yy_size_t;
161
162
163struct yy_buffer_state
164 {
165 FILE *yy_input_file;
166
167 char *yy_ch_buf; /* input buffer */
168 char *yy_buf_pos; /* current position in input buffer */
169
170 /* Size of input buffer in bytes, not including room for EOB
171 * characters.
172 */
173 yy_size_t yy_buf_size;
174
175 /* Number of characters read into yy_ch_buf, not including EOB
176 * characters.
177 */
178 int yy_n_chars;
179
180 /* Whether we "own" the buffer - i.e., we know we created it,
181 * and can realloc() it to grow it, and should free() it to
182 * delete it.
183 */
184 int yy_is_our_buffer;
185
186 /* Whether this is an "interactive" input source; if so, and
187 * if we're using stdio for input, then we want to use getc()
188 * instead of fread(), to make sure we stop fetching input after
189 * each newline.
190 */
191 int yy_is_interactive;
192
193 /* Whether we're considered to be at the beginning of a line.
194 * If so, '^' rules will be active on the next match, otherwise
195 * not.
196 */
197 int yy_at_bol;
198
199 /* Whether to try to fill the input buffer when we reach the
200 * end of it.
201 */
202 int yy_fill_buffer;
203
204 int yy_buffer_status;
205#define YY_BUFFER_NEW 0
206#define YY_BUFFER_NORMAL 1
207 /* When an EOF's been seen but there's still some text to process
208 * then we mark the buffer as YY_EOF_PENDING, to indicate that we
209 * shouldn't try reading from the input source any more. We might
210 * still have a bunch of tokens to match, though, because of
211 * possible backing-up.
212 *
213 * When we actually see the EOF, we change the status to "new"
214 * (via yyrestart()), so that the user can continue scanning by
215 * just pointing yyin at a new input file.
216 */
217#define YY_BUFFER_EOF_PENDING 2
218 };
219
220static YY_BUFFER_STATE yy_current_buffer = 0;
221
222/* We provide macros for accessing buffer states in case in the
223 * future we want to put the buffer states in a more general
224 * "scanner state".
225 */
226#define YY_CURRENT_BUFFER yy_current_buffer
227
228
229/* yy_hold_char holds the character lost when yytext is formed. */
230static char yy_hold_char;
231
232static int yy_n_chars; /* number of characters read into yy_ch_buf */
233
234
235int yyleng;
236
237/* Points to current character in buffer. */
238static char *yy_c_buf_p = (char *) 0;
239static int yy_init = 1; /* whether we need to initialize */
240static int yy_start = 0; /* start state number */
241
242/* Flag which is used to allow yywrap()'s to do buffer switches
243 * instead of setting up a fresh yyin. A bit of a hack ...
244 */
245static int yy_did_buffer_switch_on_eof;
246
247void yyrestart YY_PROTO(( FILE *input_file ));
248
249void yy_switch_to_buffer YY_PROTO(( YY_BUFFER_STATE new_buffer ));
250void yy_load_buffer_state YY_PROTO(( void ));
251YY_BUFFER_STATE yy_create_buffer YY_PROTO(( FILE *file, int size ));
252void yy_delete_buffer YY_PROTO(( YY_BUFFER_STATE b ));
253void yy_init_buffer YY_PROTO(( YY_BUFFER_STATE b, FILE *file ));
254void yy_flush_buffer YY_PROTO(( YY_BUFFER_STATE b ));
255#define YY_FLUSH_BUFFER yy_flush_buffer( yy_current_buffer )
256
257YY_BUFFER_STATE yy_scan_buffer YY_PROTO(( char *base, yy_size_t size ));
258YY_BUFFER_STATE yy_scan_string YY_PROTO(( yyconst char *yy_str ));
259YY_BUFFER_STATE yy_scan_bytes YY_PROTO(( yyconst char *bytes, int len ));
260
261static void *yy_flex_alloc YY_PROTO(( yy_size_t ));
Dale Johannesenb9de9f02007-09-06 18:13:44 +0000262static inline void *yy_flex_realloc YY_PROTO(( void *, yy_size_t ));
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000263static void yy_flex_free YY_PROTO(( void * ));
264
265#define yy_new_buffer yy_create_buffer
266
267#define yy_set_interactive(is_interactive) \
268 { \
269 if ( ! yy_current_buffer ) \
270 yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
271 yy_current_buffer->yy_is_interactive = is_interactive; \
272 }
273
274#define yy_set_bol(at_bol) \
275 { \
276 if ( ! yy_current_buffer ) \
277 yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
278 yy_current_buffer->yy_at_bol = at_bol; \
279 }
280
281#define YY_AT_BOL() (yy_current_buffer->yy_at_bol)
282
283
284#define YY_USES_REJECT
285
286#define yywrap() 1
287#define YY_SKIP_YYWRAP
288typedef unsigned char YY_CHAR;
289FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
290typedef int yy_state_type;
291extern int yylineno;
292int yylineno = 1;
293extern char *yytext;
294#define yytext_ptr yytext
295
296static yy_state_type yy_get_previous_state YY_PROTO(( void ));
297static yy_state_type yy_try_NUL_trans YY_PROTO(( yy_state_type current_state ));
298static int yy_get_next_buffer YY_PROTO(( void ));
299static void yy_fatal_error YY_PROTO(( yyconst char msg[] ));
300
301/* Done after the current pattern has been matched and before the
302 * corresponding action - sets up yytext.
303 */
304#define YY_DO_BEFORE_ACTION \
305 yytext_ptr = yy_bp; \
306 yyleng = (int) (yy_cp - yy_bp); \
307 yy_hold_char = *yy_cp; \
308 *yy_cp = '\0'; \
309 yy_c_buf_p = yy_cp;
310
311#define YY_NUM_RULES 161
312#define YY_END_OF_BUFFER 162
313static yyconst short int yy_acclist[241] =
314 { 0,
315 162, 160, 161, 159, 160, 161, 159, 161, 160, 161,
316 160, 161, 160, 161, 160, 161, 160, 161, 160, 161,
317 152, 160, 161, 152, 160, 161, 1, 160, 161, 160,
318 161, 160, 161, 160, 161, 160, 161, 160, 161, 160,
319 161, 160, 161, 160, 161, 160, 161, 160, 161, 160,
320 161, 160, 161, 160, 161, 160, 161, 160, 161, 160,
321 161, 160, 161, 160, 161, 160, 161, 160, 161, 160,
322 161, 160, 161, 151, 149, 148, 148, 155, 153, 157,
323 152, 1, 134, 41, 94, 62, 50, 95, 80, 23,
324 151, 148, 148, 156, 157, 20, 157, 158, 68, 79,
325
326 39, 34, 42, 71, 3, 53, 56, 59, 54, 70,
327 25, 104, 109, 107, 108, 106, 105, 110, 114, 75,
328 133, 99, 97, 88, 89, 98, 96, 69, 112, 103,
329 101, 102, 100, 113, 111, 81, 150, 157, 157, 91,
330 61, 115, 116, 93, 74, 141, 78, 92, 142, 57,
331 90, 22, 154, 73, 119, 77, 26, 4, 66, 72,
332 55, 76, 60, 11, 118, 157, 36, 2, 5, 63,
333 121, 65, 48, 83, 87, 85, 86, 84, 82, 51,
334 143, 117, 49, 58, 21, 131, 140, 45, 64, 30,
335 24, 44, 123, 122, 7, 136, 33, 139, 38, 67,
336
337 129, 125, 135, 27, 28, 124, 137, 52, 132, 130,
338 128, 43, 6, 29, 120, 37, 8, 17, 9, 127,
339 10, 126, 35, 12, 14, 13, 32, 40, 15, 31,
340 138, 144, 146, 147, 16, 46, 145, 18, 47, 19
341 } ;
342
343static yyconst short int yy_accept[621] =
344 { 0,
345 1, 1, 1, 2, 4, 7, 9, 11, 13, 15,
346 17, 19, 21, 24, 27, 30, 32, 34, 36, 38,
347 40, 42, 44, 46, 48, 50, 52, 54, 56, 58,
348 60, 62, 64, 66, 68, 70, 72, 74, 74, 75,
349 75, 76, 77, 78, 79, 79, 80, 80, 81, 82,
350 82, 83, 83, 83, 83, 83, 83, 83, 83, 83,
351 83, 84, 84, 85, 85, 85, 85, 85, 85, 85,
352 85, 85, 86, 86, 86, 86, 86, 86, 86, 86,
353 86, 86, 87, 87, 87, 88, 88, 88, 88, 88,
354 88, 88, 88, 88, 88, 88, 89, 89, 89, 89,
355
356 89, 89, 89, 89, 90, 90, 90, 90, 90, 90,
357 90, 90, 90, 90, 90, 90, 90, 90, 90, 90,
358 90, 90, 91, 91, 91, 91, 91, 91, 91, 91,
359 91, 91, 91, 91, 91, 91, 91, 91, 91, 91,
360 92, 93, 95, 96, 97, 98, 98, 99, 99, 100,
361 100, 100, 101, 101, 101, 102, 102, 103, 103, 103,
362 103, 103, 104, 104, 104, 104, 104, 104, 104, 105,
363 105, 105, 106, 106, 106, 106, 106, 106, 106, 106,
364 106, 106, 106, 106, 106, 107, 108, 109, 109, 109,
365 109, 110, 110, 110, 110, 110, 110, 110, 110, 110,
366
367 110, 111, 112, 112, 113, 114, 115, 116, 117, 118,
368 118, 119, 120, 120, 120, 121, 122, 122, 122, 122,
369 122, 122, 122, 122, 123, 124, 125, 125, 126, 126,
370 126, 126, 127, 128, 128, 128, 129, 129, 129, 129,
371 129, 129, 129, 129, 129, 130, 131, 132, 132, 132,
372 133, 133, 134, 134, 135, 135, 136, 136, 136, 136,
373 136, 136, 136, 136, 136, 136, 136, 136, 137, 137,
374 137, 138, 139, 139, 139, 139, 140, 140, 140, 140,
375 141, 141, 141, 142, 143, 144, 144, 144, 144, 144,
376 144, 144, 144, 144, 144, 144, 144, 144, 144, 144,
377
378 144, 145, 146, 146, 146, 146, 146, 147, 148, 148,
379 148, 149, 149, 149, 149, 149, 149, 149, 149, 149,
380 150, 151, 152, 152, 152, 153, 153, 153, 153, 154,
381 154, 155, 155, 155, 155, 155, 155, 155, 156, 156,
382 156, 156, 156, 157, 157, 157, 158, 158, 158, 159,
383 159, 160, 160, 161, 162, 162, 162, 162, 162, 162,
384 162, 163, 163, 163, 163, 163, 164, 164, 165, 165,
385 165, 166, 167, 168, 168, 168, 169, 169, 169, 169,
386 169, 169, 169, 169, 169, 169, 169, 169, 169, 169,
387 169, 170, 170, 171, 172, 172, 172, 172, 172, 172,
388
389 172, 172, 172, 172, 172, 173, 173, 173, 173, 173,
390 173, 173, 173, 174, 174, 174, 175, 176, 177, 178,
391 179, 180, 181, 181, 181, 181, 182, 182, 182, 182,
392 183, 184, 184, 185, 186, 186, 186, 186, 186, 186,
393 187, 187, 187, 187, 187, 187, 188, 188, 188, 189,
394 189, 189, 189, 189, 189, 189, 189, 190, 191, 192,
395 192, 192, 193, 194, 195, 195, 195, 196, 196, 196,
396 196, 196, 197, 197, 198, 199, 200, 201, 201, 201,
397 201, 202, 202, 202, 203, 204, 205, 206, 207, 207,
398 207, 208, 209, 210, 211, 211, 211, 211, 211, 211,
399
400 212, 212, 213, 213, 214, 215, 215, 215, 215, 215,
401 215, 216, 216, 216, 216, 216, 216, 216, 216, 216,
402 217, 217, 217, 217, 217, 217, 217, 217, 217, 217,
403 218, 218, 218, 218, 218, 219, 219, 219, 219, 219,
404 220, 221, 222, 222, 223, 223, 223, 223, 223, 224,
405 224, 224, 224, 225, 225, 226, 227, 227, 227, 227,
406 227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
407 228, 228, 228, 228, 228, 228, 228, 228, 229, 229,
408 229, 229, 229, 229, 230, 230, 230, 230, 230, 231,
409 231, 231, 232, 232, 232, 232, 232, 232, 232, 232,
410
411 232, 232, 232, 232, 232, 232, 233, 233, 234, 235,
412 236, 236, 237, 237, 238, 239, 240, 240, 241, 241
413 } ;
414
415static yyconst int yy_ec[256] =
416 { 0,
417 1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
418 1, 1, 2, 1, 1, 1, 1, 1, 1, 1,
419 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
420 1, 2, 1, 4, 1, 5, 6, 1, 1, 1,
421 1, 1, 7, 1, 8, 9, 1, 10, 11, 12,
422 13, 14, 15, 16, 15, 17, 15, 18, 19, 1,
423 1, 1, 1, 20, 21, 21, 21, 21, 22, 21,
424 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
425 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
426 1, 1, 1, 1, 23, 1, 24, 25, 26, 27,
427
428 28, 29, 30, 31, 32, 5, 33, 34, 35, 36,
429 37, 38, 39, 40, 41, 42, 43, 44, 45, 46,
430 47, 48, 1, 1, 1, 1, 1, 1, 1, 1,
431 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
432 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
433 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
434 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
435 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
436 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
437 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
438
439 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
445 } ;
446
447static yyconst int yy_meta[49] =
448 { 0,
449 1, 1, 2, 1, 3, 1, 4, 5, 3, 6,
450 6, 6, 6, 6, 6, 6, 6, 7, 1, 1,
451 3, 8, 3, 3, 3, 3, 3, 8, 3, 3,
452 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
453 3, 3, 3, 3, 3, 3, 3, 3
454 } ;
455
456static yyconst short int yy_base[630] =
457 { 0,
458 0, 0, 1336, 1337, 1337, 1337, 1331, 1316, 41, 0,
459 49, 59, 69, 1287, 0, 112, 69, 72, 93, 113,
460 52, 122, 74, 152, 120, 77, 136, 156, 135, 71,
461 187, 186, 224, 118, 115, 56, 153, 1328, 1337, 1313,
462 1337, 0, 256, 0, 1321, 1320, 88, 264, 1282, 283,
463 0, 1323, 140, 157, 158, 121, 164, 183, 198, 32,
464 1308, 190, 95, 175, 54, 165, 217, 162, 117, 182,
465 218, 1307, 220, 272, 185, 100, 204, 219, 235, 241,
466 264, 232, 273, 57, 1306, 284, 285, 296, 297, 299,
467 300, 226, 298, 302, 308, 1305, 303, 309, 307, 316,
468
469 321, 329, 330, 332, 333, 334, 313, 337, 310, 315,
470 342, 343, 350, 353, 346, 352, 358, 363, 357, 365,
471 366, 1304, 373, 377, 381, 385, 383, 384, 389, 390,
472 402, 386, 392, 417, 418, 395, 271, 393, 403, 1303,
473 0, 0, 416, 1302, 0, 447, 0, 1315, 1300, 438,
474 428, 1299, 448, 427, 1298, 419, 1297, 451, 452, 453,
475 406, 1296, 454, 455, 456, 461, 457, 460, 1295, 465,
476 464, 470, 462, 477, 474, 480, 481, 482, 483, 485,
477 488, 486, 490, 491, 1294, 1293, 1292, 492, 493, 495,
478 506, 502, 514, 511, 494, 519, 515, 517, 520, 522,
479
480 1291, 1290, 525, 1289, 1288, 1287, 1286, 1285, 1284, 523,
481 1283, 1282, 531, 529, 1281, 1280, 562, 538, 537, 540,
482 532, 567, 550, 1279, 1278, 1277, 575, 1276, 534, 533,
483 576, 1275, 1274, 535, 578, 1273, 580, 582, 581, 586,
484 584, 589, 587, 588, 1272, 1271, 1270, 591, 590, 1269,
485 592, 1268, 603, 1267, 601, 1266, 607, 608, 612, 605,
486 620, 596, 621, 616, 627, 623, 546, 1265, 628, 630,
487 1337, 630, 646, 652, 654, 656, 632, 648, 637, 1264,
488 639, 652, 1263, 1262, 1261, 651, 649, 653, 660, 661,
489 664, 662, 663, 665, 666, 668, 669, 679, 674, 675,
490
491 1260, 1259, 670, 671, 682, 686, 1258, 1257, 687, 692,
492 1256, 689, 693, 696, 697, 702, 704, 700, 706, 1255,
493 1254, 1253, 708, 709, 1252, 701, 710, 712, 0, 713,
494 1251, 714, 721, 724, 730, 732, 733, 1250, 735, 736,
495 738, 739, 1249, 741, 744, 1248, 753, 746, 1247, 749,
496 1246, 755, 1245, 1244, 758, 760, 764, 766, 761, 768,
497 1243, 770, 771, 773, 774, 1242, 776, 1241, 778, 777,
498 1240, 0, 1239, 781, 779, 1238, 782, 790, 797, 796,
499 806, 794, 807, 795, 799, 808, 809, 810, 811, 813,
500 1237, 817, 1236, 1235, 822, 823, 820, 830, 826, 824,
501
502 828, 831, 833, 835, 1234, 832, 844, 839, 846, 848,
503 851, 843, 1233, 855, 859, 1232, 1231, 1230, 1229, 1228,
504 1227, 1226, 860, 862, 864, 1225, 865, 863, 867, 1224,
505 1223, 866, 1222, 1221, 868, 871, 872, 869, 870, 1220,
506 875, 880, 885, 888, 889, 1219, 890, 895, 1218, 896,
507 897, 898, 900, 901, 902, 903, 1217, 1216, 1215, 911,
508 906, 1214, 1213, 1212, 915, 908, 1211, 918, 926, 929,
509 909, 1210, 931, 1209, 1208, 1207, 1206, 920, 932, 934,
510 1205, 937, 938, 1204, 1203, 1202, 1201, 1200, 940, 943,
511 1199, 1198, 1197, 1192, 941, 944, 946, 945, 948, 1181,
512
513 951, 1178, 953, 1170, 1167, 958, 960, 961, 962, 963,
514 1164, 964, 965, 968, 969, 970, 971, 976, 977, 1158,
515 979, 986, 987, 989, 990, 991, 994, 997, 998, 1146,
516 1003, 1006, 1007, 1004, 1145, 1008, 1009, 1011, 1012, 1144,
517 1142, 1141, 1018, 1140, 1013, 1017, 1020, 1019, 1139, 1029,
518 1033, 1034, 1137, 1016, 1136, 1133, 1038, 1041, 1042, 1043,
519 1045, 1046, 1047, 1050, 1053, 1052, 1054, 1056, 1057, 1131,
520 1058, 1061, 1059, 1064, 1065, 1070, 1069, 1128, 1071, 1077,
521 1081, 1082, 1083, 913, 1084, 1085, 1086, 1089, 784, 1091,
522 1092, 783, 1090, 1095, 1104, 1096, 1105, 1111, 1108, 1112,
523
524 1113, 1115, 1116, 1117, 1119, 737, 1120, 548, 391, 349,
525 1121, 312, 1125, 270, 266, 221, 1126, 184, 1337, 1166,
526 1172, 1178, 192, 1186, 1192, 70, 1200, 1203, 1208
527 } ;
528
529static yyconst short int yy_def[630] =
530 { 0,
531 619, 1, 619, 619, 619, 619, 620, 621, 622, 623,
532 621, 621, 11, 13, 624, 622, 621, 621, 621, 621,
533 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
534 621, 621, 621, 621, 621, 621, 621, 620, 619, 621,
535 619, 625, 625, 626, 623, 11, 621, 11, 13, 11,
536 624, 627, 621, 621, 621, 621, 621, 621, 621, 621,
537 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
538 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
539 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
540 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
541
542 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
543 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
544 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
545 621, 621, 621, 621, 621, 621, 621, 621, 621, 619,
546 625, 43, 628, 621, 48, 11, 50, 627, 621, 621,
547 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
548 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
549 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
550 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
551 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
552
553 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
554 621, 621, 621, 621, 621, 621, 50, 621, 621, 621,
555 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
556 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
557 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
558 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
559 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
560 619, 628, 629, 629, 146, 146, 621, 621, 621, 621,
561 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
562 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
563
564 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
565 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
566 621, 621, 621, 621, 621, 621, 621, 621, 217, 621,
567 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
568 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
569 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
570 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
571 621, 274, 621, 621, 621, 621, 621, 621, 621, 621,
572 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
573 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
574
575 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
576 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
577 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
578 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
579 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
580 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
581 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
582 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
583 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
584 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
585
586 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
587 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
588 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
589 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
590 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
591 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
592 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
593 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
594 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
595 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
596
597 621, 621, 621, 621, 621, 621, 621, 621, 621, 621,
598 621, 621, 621, 621, 621, 621, 621, 621, 0, 619,
599 619, 619, 619, 619, 619, 619, 619, 619, 619
600 } ;
601
602static yyconst short int yy_nxt[1386] =
603 { 0,
604 4, 5, 6, 7, 8, 9, 10, 11, 12, 13,
605 14, 14, 14, 14, 14, 14, 14, 4, 15, 16,
606 8, 8, 8, 17, 18, 19, 20, 21, 22, 23,
607 8, 24, 8, 25, 26, 27, 28, 29, 8, 30,
608 31, 32, 33, 34, 35, 36, 8, 37, 43, 41,
609 44, 44, 44, 44, 44, 44, 44, 44, 46, 46,
610 46, 46, 46, 46, 46, 46, 41, 47, 159, 41,
611 187, 41, 137, 41, 41, 44, 41, 48, 49, 49,
612 49, 49, 49, 49, 49, 49, 41, 71, 41, 41,
613 72, 41, 138, 165, 41, 53, 144, 73, 108, 58,
614
615 93, 80, 54, 59, 55, 41, 56, 81, 60, 57,
616 41, 61, 41, 94, 50, 52, 62, 41, 63, 95,
617 162, 619, 619, 619, 619, 619, 619, 619, 619, 64,
618 41, 178, 41, 65, 41, 41, 66, 41, 41, 41,
619 67, 134, 136, 89, 68, 74, 69, 75, 76, 70,
620 170, 90, 41, 41, 135, 77, 91, 41, 153, 78,
621 92, 79, 82, 96, 83, 105, 149, 84, 85, 41,
622 41, 106, 97, 41, 41, 41, 107, 86, 98, 41,
623 139, 41, 41, 99, 152, 100, 87, 88, 150, 101,
624 151, 102, 41, 103, 154, 104, 109, 45, 155, 41,
625
626 41, 41, 41, 41, 41, 169, 166, 41, 163, 121,
627 164, 110, 156, 111, 112, 41, 113, 114, 115, 177,
628 116, 41, 122, 160, 171, 123, 117, 157, 118, 119,
629 161, 120, 124, 109, 41, 41, 41, 41, 41, 158,
630 179, 41, 167, 41, 172, 173, 180, 185, 125, 41,
631 126, 127, 41, 128, 168, 129, 198, 130, 41, 131,
632 181, 174, 182, 132, 133, 142, 142, 142, 142, 142,
633 142, 142, 142, 145, 145, 145, 145, 145, 145, 145,
634 145, 41, 183, 41, 186, 146, 267, 41, 41, 41,
635 41, 146, 147, 147, 147, 147, 147, 147, 147, 147,
636
637 184, 41, 41, 147, 147, 175, 147, 147, 147, 147,
638 147, 147, 176, 41, 41, 41, 41, 41, 188, 41,
639 41, 193, 189, 196, 41, 41, 41, 41, 200, 41,
640 41, 199, 41, 41, 194, 197, 190, 191, 41, 192,
641 195, 201, 203, 205, 202, 204, 41, 41, 207, 41,
642 41, 41, 214, 210, 41, 217, 209, 206, 211, 41,
643 41, 218, 208, 41, 212, 213, 41, 41, 220, 41,
644 41, 215, 230, 219, 41, 41, 221, 224, 216, 232,
645 41, 236, 41, 41, 222, 234, 226, 231, 223, 227,
646 41, 225, 228, 233, 41, 229, 237, 238, 41, 235,
647
648 41, 41, 41, 41, 240, 239, 41, 41, 41, 41,
649 41, 246, 41, 259, 242, 241, 244, 250, 266, 41,
650 41, 245, 260, 41, 248, 247, 251, 243, 253, 254,
651 249, 252, 268, 255, 41, 41, 41, 273, 256, 261,
652 262, 257, 269, 273, 41, 41, 258, 285, 270, 264,
653 281, 265, 263, 274, 275, 41, 276, 276, 276, 276,
654 276, 276, 276, 276, 278, 41, 280, 277, 41, 41,
655 41, 41, 41, 41, 41, 279, 282, 41, 41, 41,
656 286, 41, 41, 288, 289, 283, 284, 41, 294, 296,
657 290, 41, 292, 291, 41, 287, 293, 41, 41, 41,
658
659 41, 295, 41, 41, 297, 41, 303, 41, 41, 41,
660 41, 41, 41, 307, 299, 310, 298, 309, 301, 41,
661 308, 300, 313, 41, 305, 302, 312, 306, 41, 311,
662 304, 41, 41, 314, 41, 319, 41, 41, 316, 41,
663 41, 317, 41, 318, 321, 320, 41, 315, 41, 41,
664 41, 41, 41, 323, 41, 41, 322, 41, 325, 333,
665 341, 326, 340, 41, 324, 41, 327, 41, 369, 343,
666 328, 329, 329, 329, 329, 329, 329, 329, 329, 330,
667 331, 332, 329, 329, 41, 329, 329, 329, 329, 329,
668 329, 338, 41, 41, 334, 41, 335, 41, 41, 41,
669
670 336, 41, 337, 41, 41, 41, 41, 41, 41, 41,
671 347, 349, 342, 41, 339, 346, 351, 344, 41, 350,
672 41, 345, 41, 348, 41, 41, 355, 356, 352, 41,
673 357, 353, 354, 41, 359, 364, 358, 41, 41, 360,
674 41, 362, 366, 363, 41, 41, 361, 41, 365, 41,
675 367, 273, 274, 274, 41, 368, 41, 273, 619, 619,
676 619, 40, 619, 40, 370, 41, 41, 373, 41, 41,
677 41, 371, 375, 374, 376, 377, 378, 41, 41, 41,
678 41, 41, 41, 41, 382, 41, 41, 41, 41, 387,
679 379, 41, 41, 381, 380, 383, 41, 385, 386, 41,
680
681 392, 391, 390, 41, 41, 388, 41, 384, 389, 41,
682 41, 393, 394, 41, 41, 399, 400, 41, 41, 41,
683 398, 41, 395, 41, 396, 41, 41, 41, 397, 41,
684 41, 41, 401, 403, 404, 402, 406, 405, 41, 407,
685 413, 41, 409, 410, 408, 414, 415, 41, 412, 41,
686 41, 411, 41, 41, 41, 41, 41, 417, 41, 419,
687 421, 41, 416, 41, 423, 424, 41, 425, 426, 427,
688 41, 418, 41, 420, 430, 41, 422, 41, 41, 429,
689 428, 41, 431, 41, 436, 41, 432, 41, 41, 433,
690 41, 41, 434, 41, 41, 41, 41, 435, 41, 41,
691
692 41, 41, 440, 437, 446, 447, 443, 41, 445, 438,
693 439, 41, 41, 41, 41, 449, 41, 442, 444, 441,
694 450, 451, 448, 41, 41, 41, 41, 41, 41, 452,
695 41, 454, 455, 453, 41, 457, 456, 41, 461, 41,
696 41, 41, 462, 41, 458, 41, 460, 41, 41, 41,
697 41, 459, 41, 463, 464, 465, 41, 466, 468, 467,
698 41, 41, 472, 41, 475, 41, 470, 473, 41, 469,
699 471, 474, 41, 476, 479, 477, 41, 41, 478, 41,
700 41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
701 483, 480, 41, 482, 487, 485, 490, 41, 491, 493,
702
703 481, 484, 41, 488, 486, 41, 41, 41, 496, 489,
704 492, 495, 41, 41, 41, 41, 494, 41, 41, 41,
705 41, 499, 502, 41, 498, 41, 41, 504, 41, 497,
706 41, 501, 41, 508, 509, 41, 500, 41, 506, 507,
707 511, 505, 512, 41, 503, 513, 41, 510, 41, 41,
708 516, 41, 515, 514, 41, 41, 517, 41, 41, 518,
709 41, 41, 41, 41, 521, 41, 522, 519, 41, 520,
710 41, 523, 527, 524, 525, 41, 528, 41, 41, 41,
711 41, 41, 41, 529, 526, 41, 41, 41, 41, 531,
712 536, 537, 530, 41, 41, 535, 41, 532, 542, 533,
713
714 538, 539, 540, 41, 41, 534, 41, 41, 41, 541,
715 547, 41, 548, 546, 41, 41, 543, 549, 544, 551,
716 41, 41, 545, 41, 41, 41, 41, 553, 41, 41,
717 41, 557, 550, 41, 41, 41, 41, 41, 552, 561,
718 563, 558, 564, 566, 559, 554, 41, 555, 556, 562,
719 41, 41, 560, 565, 567, 41, 568, 570, 41, 41,
720 41, 571, 41, 41, 41, 569, 574, 41, 572, 41,
721 41, 41, 577, 41, 41, 41, 41, 581, 41, 575,
722 583, 41, 41, 573, 579, 580, 41, 41, 41, 582,
723 584, 578, 588, 576, 41, 585, 586, 589, 41, 41,
724
725 41, 41, 41, 41, 592, 587, 41, 41, 41, 41,
726 590, 596, 41, 41, 593, 594, 595, 598, 591, 601,
727 603, 41, 41, 602, 599, 41, 597, 600, 41, 41,
728 41, 605, 41, 41, 41, 604, 41, 41, 41, 610,
729 611, 612, 41, 41, 606, 41, 616, 607, 41, 608,
730 41, 609, 617, 41, 41, 615, 41, 41, 41, 41,
731 614, 41, 41, 41, 613, 618, 38, 38, 38, 38,
732 38, 38, 38, 38, 40, 41, 40, 40, 40, 40,
733 42, 41, 42, 42, 41, 42, 51, 41, 51, 51,
734 51, 51, 51, 51, 141, 41, 141, 141, 41, 141,
735
736 148, 148, 148, 148, 148, 148, 148, 148, 272, 41,
737 272, 372, 372, 372, 41, 41, 41, 41, 41, 41,
738 41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
739 41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
740 41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
741 41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
742 41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
743 41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
744 41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
745 41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
746
747 41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
748 41, 41, 41, 41, 41, 41, 41, 41, 39, 41,
749 271, 41, 41, 41, 41, 41, 39, 40, 48, 143,
750 41, 140, 40, 41, 39, 619, 3, 619, 619, 619,
751 619, 619, 619, 619, 619, 619, 619, 619, 619, 619,
752 619, 619, 619, 619, 619, 619, 619, 619, 619, 619,
753 619, 619, 619, 619, 619, 619, 619, 619, 619, 619,
754 619, 619, 619, 619, 619, 619, 619, 619, 619, 619,
755 619, 619, 619, 619, 619
756 } ;
757
758static yyconst short int yy_chk[1386] =
759 { 0,
760 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
761 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
762 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
763 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
764 1, 1, 1, 1, 1, 1, 1, 1, 9, 60,
765 9, 9, 9, 9, 9, 9, 9, 9, 11, 11,
766 11, 11, 11, 11, 11, 11, 11, 12, 60, 21,
767 84, 65, 36, 36, 84, 626, 12, 13, 13, 13,
768 13, 13, 13, 13, 13, 13, 17, 21, 30, 18,
769 21, 23, 36, 65, 26, 17, 47, 21, 30, 18,
770
771 26, 23, 17, 18, 17, 47, 17, 23, 18, 17,
772 19, 18, 63, 26, 13, 16, 19, 76, 19, 26,
773 63, 16, 16, 16, 16, 16, 16, 16, 16, 19,
774 20, 76, 35, 19, 69, 34, 20, 25, 56, 22,
775 20, 34, 35, 25, 20, 22, 20, 22, 22, 20,
776 69, 25, 29, 27, 34, 22, 25, 53, 56, 22,
777 25, 22, 24, 27, 24, 29, 53, 24, 24, 24,
778 37, 29, 27, 28, 54, 55, 29, 24, 27, 68,
779 37, 57, 66, 28, 55, 28, 24, 24, 54, 28,
780 54, 28, 64, 28, 57, 28, 31, 623, 57, 70,
781
782 58, 618, 75, 32, 31, 68, 66, 62, 64, 32,
783 64, 31, 58, 31, 31, 59, 31, 31, 31, 75,
784 31, 77, 32, 62, 70, 32, 31, 59, 31, 31,
785 62, 31, 32, 33, 67, 71, 78, 73, 616, 59,
786 77, 33, 67, 92, 71, 73, 78, 82, 33, 82,
787 33, 33, 79, 33, 67, 33, 92, 33, 80, 33,
788 78, 73, 79, 33, 33, 43, 43, 43, 43, 43,
789 43, 43, 43, 48, 48, 48, 48, 48, 48, 48,
790 48, 81, 80, 615, 83, 48, 137, 614, 137, 74,
791 83, 48, 50, 50, 50, 50, 50, 50, 50, 50,
792
793 81, 86, 87, 50, 50, 74, 50, 50, 50, 50,
794 50, 50, 74, 88, 89, 93, 90, 91, 86, 94,
795 97, 89, 87, 91, 99, 95, 98, 109, 94, 612,
796 107, 93, 110, 100, 90, 91, 88, 88, 101, 88,
797 90, 95, 98, 100, 97, 99, 102, 103, 101, 104,
798 105, 106, 107, 103, 108, 109, 102, 100, 104, 111,
799 112, 110, 101, 115, 105, 106, 610, 113, 112, 116,
800 114, 108, 115, 111, 119, 117, 112, 113, 108, 116,
801 118, 119, 120, 121, 112, 117, 114, 115, 112, 114,
802 123, 113, 114, 116, 124, 114, 120, 121, 125, 118,
803
804 127, 128, 126, 132, 123, 121, 129, 130, 609, 133,
805 138, 128, 136, 132, 124, 123, 126, 130, 136, 131,
806 139, 127, 133, 161, 129, 128, 130, 125, 131, 131,
807 129, 130, 138, 131, 134, 135, 156, 143, 131, 134,
808 134, 131, 139, 143, 154, 151, 131, 161, 139, 135,
809 156, 135, 134, 146, 146, 150, 146, 146, 146, 146,
810 146, 146, 146, 146, 151, 153, 154, 150, 158, 159,
811 160, 163, 164, 165, 167, 153, 158, 168, 166, 173,
812 163, 171, 170, 165, 166, 159, 160, 172, 171, 173,
813 167, 175, 170, 168, 174, 164, 170, 176, 177, 178,
814
815 179, 172, 180, 182, 174, 181, 179, 183, 184, 188,
816 189, 195, 190, 182, 175, 184, 174, 183, 177, 192,
817 182, 176, 190, 191, 181, 178, 189, 181, 194, 188,
818 180, 193, 197, 191, 198, 195, 196, 199, 192, 200,
819 210, 193, 203, 194, 197, 196, 214, 191, 213, 221,
820 230, 229, 234, 199, 219, 218, 198, 220, 203, 221,
821 230, 210, 229, 267, 200, 608, 213, 223, 267, 234,
822 214, 217, 217, 217, 217, 217, 217, 217, 217, 218,
823 219, 220, 217, 217, 222, 217, 217, 217, 217, 217,
824 217, 223, 227, 231, 222, 235, 222, 237, 239, 238,
825
826 222, 241, 222, 240, 243, 244, 242, 249, 248, 251,
827 239, 241, 231, 262, 227, 238, 242, 235, 255, 241,
828 253, 237, 260, 240, 257, 258, 249, 251, 243, 259,
829 253, 244, 248, 264, 257, 262, 255, 261, 263, 258,
830 266, 260, 264, 261, 265, 269, 259, 270, 263, 277,
831 265, 272, 273, 273, 279, 266, 281, 272, 274, 274,
832 275, 275, 276, 276, 269, 278, 287, 277, 286, 282,
833 288, 270, 279, 278, 281, 282, 286, 289, 290, 292,
834 293, 291, 294, 295, 290, 296, 297, 303, 304, 295,
835 287, 299, 300, 289, 288, 291, 298, 293, 294, 305,
836
837 300, 299, 298, 306, 309, 296, 312, 292, 297, 310,
838 313, 303, 304, 314, 315, 310, 312, 318, 326, 316,
839 309, 317, 305, 319, 305, 323, 324, 327, 306, 328,
840 330, 332, 313, 315, 316, 314, 318, 317, 333, 319,
841 330, 334, 324, 326, 323, 332, 333, 335, 328, 336,
842 337, 327, 339, 340, 606, 341, 342, 335, 344, 336,
843 337, 345, 334, 348, 340, 341, 350, 342, 344, 345,
844 347, 335, 352, 336, 350, 355, 339, 356, 359, 348,
845 347, 357, 352, 358, 359, 360, 355, 362, 363, 356,
846 364, 365, 357, 367, 370, 369, 375, 358, 374, 377,
847
848 592, 589, 364, 360, 374, 375, 369, 378, 370, 362,
849 363, 382, 384, 380, 379, 378, 385, 367, 369, 365,
850 379, 380, 377, 381, 383, 386, 387, 388, 389, 381,
851 390, 383, 384, 382, 392, 386, 385, 397, 390, 395,
852 396, 400, 392, 399, 387, 401, 389, 398, 402, 406,
853 403, 388, 404, 395, 396, 397, 408, 398, 400, 399,
854 412, 407, 404, 409, 408, 410, 402, 406, 411, 401,
855 403, 407, 414, 409, 412, 410, 415, 423, 411, 424,
856 428, 425, 427, 432, 429, 435, 438, 439, 436, 437,
857 424, 414, 441, 423, 429, 427, 436, 442, 437, 439,
858
859 415, 425, 443, 432, 428, 444, 445, 447, 443, 435,
860 438, 442, 448, 450, 451, 452, 441, 453, 454, 455,
861 456, 447, 451, 461, 445, 466, 471, 453, 460, 444,
862 584, 450, 465, 460, 460, 468, 448, 478, 455, 456,
863 465, 454, 466, 469, 452, 468, 470, 461, 473, 479,
864 471, 480, 470, 469, 482, 483, 473, 489, 495, 478,
865 490, 496, 498, 497, 482, 499, 483, 479, 501, 480,
866 503, 489, 497, 490, 495, 506, 498, 507, 508, 509,
867 510, 512, 513, 499, 496, 514, 515, 516, 517, 503,
868 510, 512, 501, 518, 519, 509, 521, 506, 517, 507,
869
870 513, 514, 515, 522, 523, 508, 524, 525, 526, 516,
871 523, 527, 524, 522, 528, 529, 518, 525, 519, 527,
872 531, 534, 521, 532, 533, 536, 537, 529, 538, 539,
873 545, 534, 526, 554, 546, 543, 548, 547, 528, 539,
874 545, 536, 546, 548, 537, 531, 550, 532, 533, 543,
875 551, 552, 538, 547, 550, 557, 551, 554, 558, 559,
876 560, 557, 561, 562, 563, 552, 560, 564, 558, 566,
877 565, 567, 563, 568, 569, 571, 573, 567, 572, 561,
878 569, 574, 575, 559, 565, 566, 577, 576, 579, 568,
879 571, 564, 575, 562, 580, 572, 573, 576, 581, 582,
880
881 583, 585, 586, 587, 580, 574, 588, 593, 590, 591,
882 577, 585, 594, 596, 581, 582, 583, 587, 579, 591,
883 594, 595, 597, 593, 588, 599, 586, 590, 598, 600,
884 601, 596, 602, 603, 604, 595, 605, 607, 611, 601,
885 602, 603, 613, 617, 597, 578, 611, 598, 570, 599,
886 556, 600, 613, 555, 553, 607, 549, 544, 542, 541,
887 605, 540, 535, 530, 604, 617, 620, 620, 620, 620,
888 620, 620, 620, 620, 621, 520, 621, 621, 621, 621,
889 622, 511, 622, 622, 505, 622, 624, 504, 624, 624,
890 624, 624, 624, 624, 625, 502, 625, 625, 500, 625,
891
892 627, 627, 627, 627, 627, 627, 627, 627, 628, 494,
893 628, 629, 629, 629, 493, 492, 491, 488, 487, 486,
894 485, 484, 481, 477, 476, 475, 474, 472, 467, 464,
895 463, 462, 459, 458, 457, 449, 446, 440, 434, 433,
896 431, 430, 426, 422, 421, 420, 419, 418, 417, 416,
897 413, 405, 394, 393, 391, 376, 373, 371, 368, 366,
898 361, 354, 353, 351, 349, 346, 343, 338, 331, 325,
899 322, 321, 320, 311, 308, 307, 302, 301, 285, 284,
900 283, 280, 268, 256, 254, 252, 250, 247, 246, 245,
901 236, 233, 232, 228, 226, 225, 224, 216, 215, 212,
902
903 211, 209, 208, 207, 206, 205, 204, 202, 201, 187,
904 186, 185, 169, 162, 157, 155, 152, 149, 148, 144,
905 140, 122, 96, 85, 72, 61, 52, 49, 46, 45,
906 40, 38, 14, 8, 7, 3, 619, 619, 619, 619,
907 619, 619, 619, 619, 619, 619, 619, 619, 619, 619,
908 619, 619, 619, 619, 619, 619, 619, 619, 619, 619,
909 619, 619, 619, 619, 619, 619, 619, 619, 619, 619,
910 619, 619, 619, 619, 619, 619, 619, 619, 619, 619,
911 619, 619, 619, 619, 619
912 } ;
913
914static 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}
924#define yymore() yymore_used_but_not_detected
925#define YY_MORE_ADJ 0
926#define YY_RESTORE_YY_MORE_OFFSET
927char *yytext;
Dale Johannesenb9de9f02007-09-06 18:13:44 +0000928#line 1 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000929#define INITIAL 0
930/*===-- UpgradeLexer.l - Scanner for 1.9 assembly files --------*- C++ -*--===//
931//
932// The LLVM Compiler Infrastructure
933//
934// This file was developed by Reid Spencer and is distributed under the
935// University of Illinois Open Source License. See LICENSE.TXT for details.
936//
937//===----------------------------------------------------------------------===//
938//
939// This file implements the flex scanner for LLVM 1.9 assembly languages files.
Dale Johannesen3b5303b2007-09-28 18:06:58 +0000940// This doesn't handle long double constants, since LLVM 1.9 did not have them.
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000941//
942//===----------------------------------------------------------------------===*/
943#define YY_NEVER_INTERACTIVE 1
Dale Johannesen3b5303b2007-09-28 18:06:58 +0000944#line 29 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +0000945#include "UpgradeInternals.h"
946#include "llvm/Module.h"
947#include <list>
948#include "UpgradeParser.h"
949#include <cctype>
950#include <cstdlib>
951
952#define YY_INPUT(buf,result,max_size) \
953{ \
954 if (LexInput->good() && !LexInput->eof()) { \
955 LexInput->read(buf,max_size); \
956 result = LexInput->gcount(); \
957 } else {\
958 result = YY_NULL; \
959 } \
960}
961
962#define YY_NEVER_INTERACTIVE 1
963
964// Construct a token value for a non-obsolete token
965#define RET_TOK(type, Enum, sym) \
966 Upgradelval.type = Enum; \
967 return sym
968
969#define RET_TY(sym,NewTY,sign) \
970 Upgradelval.PrimType.T = NewTY; \
971 switch (sign) { \
972 case 0: Upgradelval.PrimType.S.makeSignless(); break; \
973 case 1: Upgradelval.PrimType.S.makeUnsigned(); break; \
974 case 2: Upgradelval.PrimType.S.makeSigned(); break; \
975 default: assert(0 && "Invalid sign kind"); break; \
976 }\
977 return sym
978
979namespace llvm {
980
981// TODO: All of the static identifiers are figured out by the lexer,
982// these should be hashed to reduce the lexer size
983
984// UnEscapeLexed - Run through the specified buffer and change \xx codes to the
985// appropriate character. If AllowNull is set to false, a \00 value will cause
986// an exception to be thrown.
987//
988// If AllowNull is set to true, the return value of the function points to the
989// last character of the string in memory.
990//
991char *UnEscapeLexed(char *Buffer, bool AllowNull) {
992 char *BOut = Buffer;
993 for (char *BIn = Buffer; *BIn; ) {
994 if (BIn[0] == '\\' && isxdigit(BIn[1]) && isxdigit(BIn[2])) {
995 char Tmp = BIn[3]; BIn[3] = 0; // Terminate string
996 *BOut = (char)strtol(BIn+1, 0, 16); // Convert to number
997 if (!AllowNull && !*BOut)
998 error("String literal cannot accept \\00 escape!");
999
1000 BIn[3] = Tmp; // Restore character
1001 BIn += 3; // Skip over handled chars
1002 ++BOut;
1003 } else {
1004 *BOut++ = *BIn++;
1005 }
1006 }
1007
1008 return BOut;
1009}
1010
1011// atoull - Convert an ascii string of decimal digits into the unsigned long
1012// long representation... this does not have to do input error checking,
1013// because we know that the input will be matched by a suitable regex...
1014//
1015static uint64_t atoull(const char *Buffer) {
1016 uint64_t Result = 0;
1017 for (; *Buffer; Buffer++) {
1018 uint64_t OldRes = Result;
1019 Result *= 10;
1020 Result += *Buffer-'0';
1021 if (Result < OldRes) // Uh, oh, overflow detected!!!
1022 error("constant bigger than 64 bits detected!");
1023 }
1024 return Result;
1025}
1026
1027static uint64_t HexIntToVal(const char *Buffer) {
1028 uint64_t Result = 0;
1029 for (; *Buffer; ++Buffer) {
1030 uint64_t OldRes = Result;
1031 Result *= 16;
1032 char C = *Buffer;
1033 if (C >= '0' && C <= '9')
1034 Result += C-'0';
1035 else if (C >= 'A' && C <= 'F')
1036 Result += C-'A'+10;
1037 else if (C >= 'a' && C <= 'f')
1038 Result += C-'a'+10;
1039
1040 if (Result < OldRes) // Uh, oh, overflow detected!!!
1041 error("constant bigger than 64 bits detected!");
1042 }
1043 return Result;
1044}
1045
1046
1047// HexToFP - Convert the ascii string in hexidecimal format to the floating
1048// point representation of it.
1049//
1050static double HexToFP(const char *Buffer) {
1051 // Behave nicely in the face of C TBAA rules... see:
1052 // http://www.nullstone.com/htmls/category/aliastyp.htm
1053 union {
1054 uint64_t UI;
1055 double FP;
1056 } UIntToFP;
1057 UIntToFP.UI = HexIntToVal(Buffer);
1058
1059 assert(sizeof(double) == sizeof(uint64_t) &&
1060 "Data sizes incompatible on this target!");
1061 return UIntToFP.FP; // Cast Hex constant to double
1062}
1063
1064
1065} // End llvm namespace
1066
1067using namespace llvm;
1068
1069/* Comments start with a ; and go till end of line */
1070/* Variable(Value) identifiers start with a % sign */
1071/* Label identifiers end with a colon */
1072/* Quoted names can contain any character except " and \ */
1073/* [PN]Integer: match positive and negative literal integer values that
1074 * are preceeded by a '%' character. These represent unnamed variable slots.
1075 */
1076/* E[PN]Integer: match positive and negative literal integer values */
1077/* FPConstant - A Floating point constant.
1078 */
1079/* HexFPConstant - Floating point constant represented in IEEE format as a
1080 * hexadecimal number for when exponential notation is not precise enough.
1081 */
1082/* HexIntConstant - Hexadecimal constant generated by the CFE to avoid forcing
1083 * it to deal with 64 bit numbers.
1084 */
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001085#line 1086 "UpgradeLexer.cpp"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001086
1087/* Macros after this point can all be overridden by user definitions in
1088 * section 1.
1089 */
1090
1091#ifndef YY_SKIP_YYWRAP
1092#ifdef __cplusplus
1093extern "C" int yywrap YY_PROTO(( void ));
1094#else
1095extern int yywrap YY_PROTO(( void ));
1096#endif
1097#endif
1098
1099#ifndef YY_NO_UNPUT
1100static inline void yyunput YY_PROTO(( int c, char *buf_ptr ));
1101#endif
1102
1103#ifndef yytext_ptr
1104static void yy_flex_strncpy YY_PROTO(( char *, yyconst char *, int ));
1105#endif
1106
1107#ifdef YY_NEED_STRLEN
1108static int yy_flex_strlen YY_PROTO(( yyconst char * ));
1109#endif
1110
1111#ifndef YY_NO_INPUT
1112#ifdef __cplusplus
1113static int yyinput YY_PROTO(( void ));
1114#else
1115static int input YY_PROTO(( void ));
1116#endif
1117#endif
1118
1119#if YY_STACK_USED
1120static int yy_start_stack_ptr = 0;
1121static int yy_start_stack_depth = 0;
1122static int *yy_start_stack = 0;
1123#ifndef YY_NO_PUSH_STATE
1124static void yy_push_state YY_PROTO(( int new_state ));
1125#endif
1126#ifndef YY_NO_POP_STATE
1127static void yy_pop_state YY_PROTO(( void ));
1128#endif
1129#ifndef YY_NO_TOP_STATE
1130static int yy_top_state YY_PROTO(( void ));
1131#endif
1132
1133#else
1134#define YY_NO_PUSH_STATE 1
1135#define YY_NO_POP_STATE 1
1136#define YY_NO_TOP_STATE 1
1137#endif
1138
1139#ifdef YY_MALLOC_DECL
1140YY_MALLOC_DECL
1141#else
1142#if __STDC__
1143#ifndef __cplusplus
1144#include <stdlib.h>
1145#endif
1146#else
1147/* Just try to get by without declaring the routines. This will fail
1148 * miserably on non-ANSI systems for which sizeof(size_t) != sizeof(int)
1149 * or sizeof(void*) != sizeof(int).
1150 */
1151#endif
1152#endif
1153
1154/* Amount of stuff to slurp up with each read. */
1155#ifndef YY_READ_BUF_SIZE
1156#define YY_READ_BUF_SIZE 8192
1157#endif
1158
1159/* Copy whatever the last rule matched to the standard output. */
1160
1161#ifndef ECHO
1162/* This used to be an fputs(), but since the string might contain NUL's,
1163 * we now use fwrite().
1164 */
1165#define ECHO (void) fwrite( yytext, yyleng, 1, yyout )
1166#endif
1167
1168/* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
1169 * is returned in "result".
1170 */
1171#ifndef YY_INPUT
1172#define YY_INPUT(buf,result,max_size) \
1173 if ( yy_current_buffer->yy_is_interactive ) \
1174 { \
1175 int c = '*', n; \
1176 for ( n = 0; n < max_size && \
1177 (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
1178 buf[n] = (char) c; \
1179 if ( c == '\n' ) \
1180 buf[n++] = (char) c; \
1181 if ( c == EOF && ferror( yyin ) ) \
1182 YY_FATAL_ERROR( "input in flex scanner failed" ); \
1183 result = n; \
1184 } \
1185 else if ( ((result = fread( buf, 1, max_size, yyin )) == 0) \
1186 && ferror( yyin ) ) \
1187 YY_FATAL_ERROR( "input in flex scanner failed" );
1188#endif
1189
1190/* No semi-colon after return; correct usage is to write "yyterminate();" -
1191 * we don't want an extra ';' after the "return" because that will cause
1192 * some compilers to complain about unreachable statements.
1193 */
1194#ifndef yyterminate
1195#define yyterminate() return YY_NULL
1196#endif
1197
1198/* Number of entries by which start-condition stack grows. */
1199#ifndef YY_START_STACK_INCR
1200#define YY_START_STACK_INCR 25
1201#endif
1202
1203/* Report a fatal error. */
1204#ifndef YY_FATAL_ERROR
1205#define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
1206#endif
1207
1208/* Default declaration of generated scanner - a define so the user can
1209 * easily add parameters.
1210 */
1211#ifndef YY_DECL
1212#define YY_DECL int yylex YY_PROTO(( void ))
1213#endif
1214
1215/* Code executed at the beginning of each rule, after yytext and yyleng
1216 * have been set up.
1217 */
1218#ifndef YY_USER_ACTION
1219#define YY_USER_ACTION
1220#endif
1221
1222/* Code executed at the end of each rule. */
1223#ifndef YY_BREAK
1224#define YY_BREAK break;
1225#endif
1226
1227#define YY_RULE_SETUP \
1228 YY_USER_ACTION
1229
1230YY_DECL
1231 {
1232 register yy_state_type yy_current_state;
Dale Johannesenb9de9f02007-09-06 18:13:44 +00001233 register char *yy_cp, *yy_bp;
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001234 register int yy_act;
1235
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001236#line 195 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001237
1238
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001239#line 1240 "UpgradeLexer.cpp"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001240
1241 if ( yy_init )
1242 {
1243 yy_init = 0;
1244
1245#ifdef YY_USER_INIT
1246 YY_USER_INIT;
1247#endif
1248
1249 if ( ! yy_start )
1250 yy_start = 1; /* first start state */
1251
1252 if ( ! yyin )
1253 yyin = stdin;
1254
1255 if ( ! yyout )
1256 yyout = stdout;
1257
1258 if ( ! yy_current_buffer )
1259 yy_current_buffer =
1260 yy_create_buffer( yyin, YY_BUF_SIZE );
1261
1262 yy_load_buffer_state();
1263 }
1264
1265 while ( 1 ) /* loops until end-of-file is reached */
1266 {
1267 yy_cp = yy_c_buf_p;
1268
1269 /* Support of yytext. */
1270 *yy_cp = yy_hold_char;
1271
1272 /* yy_bp points to the position in yy_ch_buf of the start of
1273 * the current run.
1274 */
1275 yy_bp = yy_cp;
1276
1277 yy_current_state = yy_start;
1278 yy_state_ptr = yy_state_buf;
1279 *yy_state_ptr++ = yy_current_state;
1280yy_match:
1281 do
1282 {
1283 register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
1284 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1285 {
1286 yy_current_state = (int) yy_def[yy_current_state];
1287 if ( yy_current_state >= 620 )
1288 yy_c = yy_meta[(unsigned int) yy_c];
1289 }
1290 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
1291 *yy_state_ptr++ = yy_current_state;
1292 ++yy_cp;
1293 }
1294 while ( yy_current_state != 619 );
1295
1296yy_find_action:
1297 yy_current_state = *--yy_state_ptr;
1298 yy_lp = yy_accept[yy_current_state];
1299find_rule: /* we branch to this label when backing up */
1300 for ( ; ; ) /* until we find what rule we matched */
1301 {
1302 if ( yy_lp && yy_lp < yy_accept[yy_current_state + 1] )
1303 {
1304 yy_act = yy_acclist[yy_lp];
1305 {
1306 yy_full_match = yy_cp;
1307 break;
1308 }
1309 }
1310 --yy_cp;
1311 yy_current_state = *--yy_state_ptr;
1312 yy_lp = yy_accept[yy_current_state];
1313 }
1314
1315 YY_DO_BEFORE_ACTION;
1316
1317 if ( yy_act != YY_END_OF_BUFFER )
1318 {
1319 int yyl;
1320 for ( yyl = 0; yyl < yyleng; ++yyl )
1321 if ( yytext[yyl] == '\n' )
1322 ++yylineno;
1323 }
1324
1325do_action: /* This label is used only to access EOF actions. */
1326
1327
1328 switch ( yy_act )
1329 { /* beginning of action switch */
1330case 1:
1331YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001332#line 197 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001333{ /* Ignore comments for now */ }
1334 YY_BREAK
1335case 2:
1336YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001337#line 199 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001338{ return BEGINTOK; }
1339 YY_BREAK
1340case 3:
1341YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001342#line 200 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001343{ return ENDTOK; }
1344 YY_BREAK
1345case 4:
1346YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001347#line 201 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001348{ return TRUETOK; }
1349 YY_BREAK
1350case 5:
1351YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001352#line 202 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001353{ return FALSETOK; }
1354 YY_BREAK
1355case 6:
1356YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001357#line 203 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001358{ return DECLARE; }
1359 YY_BREAK
1360case 7:
1361YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001362#line 204 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001363{ return GLOBAL; }
1364 YY_BREAK
1365case 8:
1366YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001367#line 205 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001368{ return CONSTANT; }
1369 YY_BREAK
1370case 9:
1371YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001372#line 206 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001373{ return INTERNAL; }
1374 YY_BREAK
1375case 10:
1376YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001377#line 207 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001378{ return LINKONCE; }
1379 YY_BREAK
1380case 11:
1381YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001382#line 208 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001383{ return WEAK; }
1384 YY_BREAK
1385case 12:
1386YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001387#line 209 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001388{ return APPENDING; }
1389 YY_BREAK
1390case 13:
1391YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001392#line 210 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001393{ return DLLIMPORT; }
1394 YY_BREAK
1395case 14:
1396YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001397#line 211 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001398{ return DLLEXPORT; }
1399 YY_BREAK
1400case 15:
1401YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001402#line 212 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001403{ return EXTERN_WEAK; }
1404 YY_BREAK
1405case 16:
1406YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001407#line 213 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001408{ return EXTERNAL; } /* Deprecated, turn into external */
1409 YY_BREAK
1410case 17:
1411YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001412#line 214 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001413{ return EXTERNAL; }
1414 YY_BREAK
1415case 18:
1416YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001417#line 215 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001418{ return IMPLEMENTATION; }
1419 YY_BREAK
1420case 19:
1421YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001422#line 216 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001423{ return ZEROINITIALIZER; }
1424 YY_BREAK
1425case 20:
1426YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001427#line 217 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001428{ return DOTDOTDOT; }
1429 YY_BREAK
1430case 21:
1431YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001432#line 218 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001433{ return UNDEF; }
1434 YY_BREAK
1435case 22:
1436YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001437#line 219 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001438{ return NULL_TOK; }
1439 YY_BREAK
1440case 23:
1441YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001442#line 220 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001443{ return TO; }
1444 YY_BREAK
1445case 24:
1446YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001447#line 221 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001448{ return EXCEPT; }
1449 YY_BREAK
1450case 25:
1451YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001452#line 222 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001453{ return NOT; } /* Deprecated, turned into XOR */
1454 YY_BREAK
1455case 26:
1456YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001457#line 223 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001458{ return TAIL; }
1459 YY_BREAK
1460case 27:
1461YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001462#line 224 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001463{ return TARGET; }
1464 YY_BREAK
1465case 28:
1466YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001467#line 225 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001468{ return TRIPLE; }
1469 YY_BREAK
1470case 29:
1471YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001472#line 226 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001473{ return DEPLIBS; }
1474 YY_BREAK
1475case 30:
1476YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001477#line 227 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001478{ return ENDIAN; }
1479 YY_BREAK
1480case 31:
1481YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001482#line 228 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001483{ return POINTERSIZE; }
1484 YY_BREAK
1485case 32:
1486YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001487#line 229 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001488{ return DATALAYOUT; }
1489 YY_BREAK
1490case 33:
1491YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001492#line 230 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001493{ return LITTLE; }
1494 YY_BREAK
1495case 34:
1496YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001497#line 231 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001498{ return BIG; }
1499 YY_BREAK
1500case 35:
1501YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001502#line 232 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001503{ return VOLATILE; }
1504 YY_BREAK
1505case 36:
1506YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001507#line 233 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001508{ return ALIGN; }
1509 YY_BREAK
1510case 37:
1511YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001512#line 234 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001513{ return SECTION; }
1514 YY_BREAK
1515case 38:
1516YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001517#line 235 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001518{ return MODULE; }
1519 YY_BREAK
1520case 39:
1521YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001522#line 236 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001523{ return ASM_TOK; }
1524 YY_BREAK
1525case 40:
1526YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001527#line 237 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001528{ return SIDEEFFECT; }
1529 YY_BREAK
1530case 41:
1531YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001532#line 239 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001533{ return CC_TOK; }
1534 YY_BREAK
1535case 42:
1536YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001537#line 240 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001538{ return CCC_TOK; }
1539 YY_BREAK
1540case 43:
1541YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001542#line 241 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001543{ return CSRETCC_TOK; }
1544 YY_BREAK
1545case 44:
1546YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001547#line 242 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001548{ return FASTCC_TOK; }
1549 YY_BREAK
1550case 45:
1551YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001552#line 243 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001553{ return COLDCC_TOK; }
1554 YY_BREAK
1555case 46:
1556YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001557#line 244 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001558{ return X86_STDCALLCC_TOK; }
1559 YY_BREAK
1560case 47:
1561YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001562#line 245 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001563{ return X86_FASTCALLCC_TOK; }
1564 YY_BREAK
1565case 48:
1566YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001567#line 247 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001568{ RET_TY(SBYTE, Type::Int8Ty, 2); }
1569 YY_BREAK
1570case 49:
1571YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001572#line 248 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001573{ RET_TY(UBYTE, Type::Int8Ty, 1); }
1574 YY_BREAK
1575case 50:
1576YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001577#line 249 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001578{ RET_TY(UBYTE, Type::Int8Ty, 1); }
1579 YY_BREAK
1580case 51:
1581YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001582#line 250 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001583{ RET_TY(SHORT, Type::Int16Ty, 2); }
1584 YY_BREAK
1585case 52:
1586YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001587#line 251 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001588{ RET_TY(USHORT, Type::Int16Ty, 1); }
1589 YY_BREAK
1590case 53:
1591YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001592#line 252 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001593{ RET_TY(USHORT, Type::Int16Ty, 1); }
1594 YY_BREAK
1595case 54:
1596YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001597#line 253 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001598{ RET_TY(INT, Type::Int32Ty, 2); }
1599 YY_BREAK
1600case 55:
1601YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001602#line 254 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001603{ RET_TY(UINT, Type::Int32Ty, 1); }
1604 YY_BREAK
1605case 56:
1606YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001607#line 255 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001608{ RET_TY(UINT, Type::Int32Ty, 1); }
1609 YY_BREAK
1610case 57:
1611YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001612#line 256 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001613{ RET_TY(LONG, Type::Int64Ty, 2); }
1614 YY_BREAK
1615case 58:
1616YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001617#line 257 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001618{ RET_TY(ULONG, Type::Int64Ty, 1); }
1619 YY_BREAK
1620case 59:
1621YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001622#line 258 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001623{ RET_TY(ULONG, Type::Int64Ty, 1); }
1624 YY_BREAK
1625case 60:
1626YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001627#line 259 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001628{ RET_TY(VOID, Type::VoidTy, 0); }
1629 YY_BREAK
1630case 61:
1631YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001632#line 260 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001633{ RET_TY(BOOL, Type::Int1Ty, 1); }
1634 YY_BREAK
1635case 62:
1636YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001637#line 261 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001638{ RET_TY(BOOL, Type::Int1Ty, 1); }
1639 YY_BREAK
1640case 63:
1641YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001642#line 262 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001643{ RET_TY(FLOAT, Type::FloatTy, 0); }
1644 YY_BREAK
1645case 64:
1646YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001647#line 263 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001648{ RET_TY(DOUBLE, Type::DoubleTy,0); }
1649 YY_BREAK
1650case 65:
1651YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001652#line 264 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001653{ RET_TY(LABEL, Type::LabelTy, 0); }
1654 YY_BREAK
1655case 66:
1656YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001657#line 265 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001658{ return TYPE; }
1659 YY_BREAK
1660case 67:
1661YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001662#line 266 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001663{ return OPAQUE; }
1664 YY_BREAK
1665case 68:
1666YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001667#line 268 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001668{ RET_TOK(BinaryOpVal, AddOp, ADD); }
1669 YY_BREAK
1670case 69:
1671YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001672#line 269 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001673{ RET_TOK(BinaryOpVal, SubOp, SUB); }
1674 YY_BREAK
1675case 70:
1676YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001677#line 270 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001678{ RET_TOK(BinaryOpVal, MulOp, MUL); }
1679 YY_BREAK
1680case 71:
1681YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001682#line 271 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001683{ RET_TOK(BinaryOpVal, DivOp, DIV); }
1684 YY_BREAK
1685case 72:
1686YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001687#line 272 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001688{ RET_TOK(BinaryOpVal, UDivOp, UDIV); }
1689 YY_BREAK
1690case 73:
1691YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001692#line 273 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001693{ RET_TOK(BinaryOpVal, SDivOp, SDIV); }
1694 YY_BREAK
1695case 74:
1696YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001697#line 274 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001698{ RET_TOK(BinaryOpVal, FDivOp, FDIV); }
1699 YY_BREAK
1700case 75:
1701YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001702#line 275 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001703{ RET_TOK(BinaryOpVal, RemOp, REM); }
1704 YY_BREAK
1705case 76:
1706YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001707#line 276 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001708{ RET_TOK(BinaryOpVal, URemOp, UREM); }
1709 YY_BREAK
1710case 77:
1711YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001712#line 277 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001713{ RET_TOK(BinaryOpVal, SRemOp, SREM); }
1714 YY_BREAK
1715case 78:
1716YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001717#line 278 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001718{ RET_TOK(BinaryOpVal, FRemOp, FREM); }
1719 YY_BREAK
1720case 79:
1721YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001722#line 279 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001723{ RET_TOK(BinaryOpVal, AndOp, AND); }
1724 YY_BREAK
1725case 80:
1726YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001727#line 280 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001728{ RET_TOK(BinaryOpVal, OrOp , OR ); }
1729 YY_BREAK
1730case 81:
1731YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001732#line 281 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001733{ RET_TOK(BinaryOpVal, XorOp, XOR); }
1734 YY_BREAK
1735case 82:
1736YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001737#line 282 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001738{ RET_TOK(BinaryOpVal, SetNE, SETNE); }
1739 YY_BREAK
1740case 83:
1741YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001742#line 283 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001743{ RET_TOK(BinaryOpVal, SetEQ, SETEQ); }
1744 YY_BREAK
1745case 84:
1746YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001747#line 284 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001748{ RET_TOK(BinaryOpVal, SetLT, SETLT); }
1749 YY_BREAK
1750case 85:
1751YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001752#line 285 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001753{ RET_TOK(BinaryOpVal, SetGT, SETGT); }
1754 YY_BREAK
1755case 86:
1756YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001757#line 286 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001758{ RET_TOK(BinaryOpVal, SetLE, SETLE); }
1759 YY_BREAK
1760case 87:
1761YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001762#line 287 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001763{ RET_TOK(BinaryOpVal, SetGE, SETGE); }
1764 YY_BREAK
1765case 88:
1766YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001767#line 288 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001768{ RET_TOK(BinaryOpVal, ShlOp, SHL); }
1769 YY_BREAK
1770case 89:
1771YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001772#line 289 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001773{ RET_TOK(BinaryOpVal, ShrOp, SHR); }
1774 YY_BREAK
1775case 90:
1776YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001777#line 290 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001778{ RET_TOK(BinaryOpVal, LShrOp, LSHR); }
1779 YY_BREAK
1780case 91:
1781YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001782#line 291 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001783{ RET_TOK(BinaryOpVal, AShrOp, ASHR); }
1784 YY_BREAK
1785case 92:
1786YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001787#line 293 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001788{ RET_TOK(OtherOpVal, ICmpOp, ICMP); }
1789 YY_BREAK
1790case 93:
1791YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001792#line 294 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001793{ RET_TOK(OtherOpVal, FCmpOp, FCMP); }
1794 YY_BREAK
1795case 94:
1796YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001797#line 296 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001798{ return EQ; }
1799 YY_BREAK
1800case 95:
1801YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001802#line 297 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001803{ return NE; }
1804 YY_BREAK
1805case 96:
1806YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001807#line 298 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001808{ return SLT; }
1809 YY_BREAK
1810case 97:
1811YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001812#line 299 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001813{ return SGT; }
1814 YY_BREAK
1815case 98:
1816YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001817#line 300 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001818{ return SLE; }
1819 YY_BREAK
1820case 99:
1821YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001822#line 301 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001823{ return SGE; }
1824 YY_BREAK
1825case 100:
1826YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001827#line 302 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001828{ return ULT; }
1829 YY_BREAK
1830case 101:
1831YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001832#line 303 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001833{ return UGT; }
1834 YY_BREAK
1835case 102:
1836YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001837#line 304 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001838{ return ULE; }
1839 YY_BREAK
1840case 103:
1841YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001842#line 305 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001843{ return UGE; }
1844 YY_BREAK
1845case 104:
1846YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001847#line 306 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001848{ return OEQ; }
1849 YY_BREAK
1850case 105:
1851YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001852#line 307 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001853{ return ONE; }
1854 YY_BREAK
1855case 106:
1856YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001857#line 308 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001858{ return OLT; }
1859 YY_BREAK
1860case 107:
1861YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001862#line 309 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001863{ return OGT; }
1864 YY_BREAK
1865case 108:
1866YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001867#line 310 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001868{ return OLE; }
1869 YY_BREAK
1870case 109:
1871YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001872#line 311 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001873{ return OGE; }
1874 YY_BREAK
1875case 110:
1876YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001877#line 312 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001878{ return ORD; }
1879 YY_BREAK
1880case 111:
1881YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001882#line 313 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001883{ return UNO; }
1884 YY_BREAK
1885case 112:
1886YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001887#line 314 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001888{ return UEQ; }
1889 YY_BREAK
1890case 113:
1891YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001892#line 315 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001893{ return UNE; }
1894 YY_BREAK
1895case 114:
1896YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001897#line 317 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001898{ RET_TOK(OtherOpVal, PHIOp, PHI_TOK); }
1899 YY_BREAK
1900case 115:
1901YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001902#line 318 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001903{ RET_TOK(OtherOpVal, CallOp, CALL); }
1904 YY_BREAK
1905case 116:
1906YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001907#line 319 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001908{ RET_TOK(CastOpVal, CastOp, CAST); }
1909 YY_BREAK
1910case 117:
1911YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001912#line 320 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001913{ RET_TOK(CastOpVal, TruncOp, TRUNC); }
1914 YY_BREAK
1915case 118:
1916YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001917#line 321 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001918{ RET_TOK(CastOpVal, ZExtOp , ZEXT); }
1919 YY_BREAK
1920case 119:
1921YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001922#line 322 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001923{ RET_TOK(CastOpVal, SExtOp, SEXT); }
1924 YY_BREAK
1925case 120:
1926YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001927#line 323 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001928{ RET_TOK(CastOpVal, FPTruncOp, FPTRUNC); }
1929 YY_BREAK
1930case 121:
1931YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001932#line 324 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001933{ RET_TOK(CastOpVal, FPExtOp, FPEXT); }
1934 YY_BREAK
1935case 122:
1936YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001937#line 325 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001938{ RET_TOK(CastOpVal, FPToUIOp, FPTOUI); }
1939 YY_BREAK
1940case 123:
1941YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001942#line 326 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001943{ RET_TOK(CastOpVal, FPToSIOp, FPTOSI); }
1944 YY_BREAK
1945case 124:
1946YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001947#line 327 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001948{ RET_TOK(CastOpVal, UIToFPOp, UITOFP); }
1949 YY_BREAK
1950case 125:
1951YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001952#line 328 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001953{ RET_TOK(CastOpVal, SIToFPOp, SITOFP); }
1954 YY_BREAK
1955case 126:
1956YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001957#line 329 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001958{ RET_TOK(CastOpVal, PtrToIntOp, PTRTOINT); }
1959 YY_BREAK
1960case 127:
1961YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001962#line 330 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001963{ RET_TOK(CastOpVal, IntToPtrOp, INTTOPTR); }
1964 YY_BREAK
1965case 128:
1966YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001967#line 331 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001968{ RET_TOK(CastOpVal, BitCastOp, BITCAST); }
1969 YY_BREAK
1970case 129:
1971YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001972#line 332 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001973{ RET_TOK(OtherOpVal, SelectOp, SELECT); }
1974 YY_BREAK
1975case 130:
1976YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001977#line 333 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001978{ return VANEXT_old; }
1979 YY_BREAK
1980case 131:
1981YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001982#line 334 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001983{ return VAARG_old; }
1984 YY_BREAK
1985case 132:
1986YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001987#line 335 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001988{ RET_TOK(OtherOpVal, VAArg , VAARG); }
1989 YY_BREAK
1990case 133:
1991YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001992#line 336 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001993{ RET_TOK(TermOpVal, RetOp, RET); }
1994 YY_BREAK
1995case 134:
1996YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00001997#line 337 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001998{ RET_TOK(TermOpVal, BrOp, BR); }
1999 YY_BREAK
2000case 135:
2001YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00002002#line 338 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002003{ RET_TOK(TermOpVal, SwitchOp, SWITCH); }
2004 YY_BREAK
2005case 136:
2006YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00002007#line 339 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002008{ RET_TOK(TermOpVal, InvokeOp, INVOKE); }
2009 YY_BREAK
2010case 137:
2011YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00002012#line 340 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002013{ return UNWIND; }
2014 YY_BREAK
2015case 138:
2016YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00002017#line 341 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002018{ RET_TOK(TermOpVal, UnreachableOp, UNREACHABLE); }
2019 YY_BREAK
2020case 139:
2021YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00002022#line 343 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002023{ RET_TOK(MemOpVal, MallocOp, MALLOC); }
2024 YY_BREAK
2025case 140:
2026YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00002027#line 344 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002028{ RET_TOK(MemOpVal, AllocaOp, ALLOCA); }
2029 YY_BREAK
2030case 141:
2031YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00002032#line 345 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002033{ RET_TOK(MemOpVal, FreeOp, FREE); }
2034 YY_BREAK
2035case 142:
2036YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00002037#line 346 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002038{ RET_TOK(MemOpVal, LoadOp, LOAD); }
2039 YY_BREAK
2040case 143:
2041YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00002042#line 347 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002043{ RET_TOK(MemOpVal, StoreOp, STORE); }
2044 YY_BREAK
2045case 144:
2046YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00002047#line 348 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002048{ RET_TOK(MemOpVal, GetElementPtrOp, GETELEMENTPTR); }
2049 YY_BREAK
2050case 145:
2051YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00002052#line 350 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002053{ RET_TOK(OtherOpVal, ExtractElementOp, EXTRACTELEMENT); }
2054 YY_BREAK
2055case 146:
2056YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00002057#line 351 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002058{ RET_TOK(OtherOpVal, InsertElementOp, INSERTELEMENT); }
2059 YY_BREAK
2060case 147:
2061YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00002062#line 352 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002063{ RET_TOK(OtherOpVal, ShuffleVectorOp, SHUFFLEVECTOR); }
2064 YY_BREAK
2065case 148:
2066YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00002067#line 355 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002068{
2069 UnEscapeLexed(yytext+1);
2070 Upgradelval.StrVal = strdup(yytext+1); // Skip %
2071 return VAR_ID;
2072 }
2073 YY_BREAK
2074case 149:
2075YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00002076#line 360 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002077{
2078 yytext[strlen(yytext)-1] = 0; // nuke colon
2079 UnEscapeLexed(yytext);
2080 Upgradelval.StrVal = strdup(yytext);
2081 return LABELSTR;
2082 }
2083 YY_BREAK
2084case 150:
2085YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00002086#line 366 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002087{
2088 yytext[strlen(yytext)-2] = 0; // nuke colon, end quote
2089 UnEscapeLexed(yytext+1);
2090 Upgradelval.StrVal = strdup(yytext+1);
2091 return LABELSTR;
2092 }
2093 YY_BREAK
2094case 151:
2095YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00002096#line 373 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002097{ // Note that we cannot unescape a string constant here! The
2098 // string constant might contain a \00 which would not be
2099 // understood by the string stuff. It is valid to make a
2100 // [sbyte] c"Hello World\00" constant, for example.
2101 //
2102 yytext[strlen(yytext)-1] = 0; // nuke end quote
2103 Upgradelval.StrVal = strdup(yytext+1); // Nuke start quote
2104 return STRINGCONSTANT;
2105 }
2106 YY_BREAK
2107case 152:
2108YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00002109#line 384 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002110{ Upgradelval.UInt64Val = atoull(yytext); return EUINT64VAL; }
2111 YY_BREAK
2112case 153:
2113YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00002114#line 385 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002115{
2116 uint64_t Val = atoull(yytext+1);
2117 // +1: we have bigger negative range
2118 if (Val > (uint64_t)INT64_MAX+1)
2119 error("Constant too large for signed 64 bits!");
2120 Upgradelval.SInt64Val = -Val;
2121 return ESINT64VAL;
2122 }
2123 YY_BREAK
2124case 154:
2125YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00002126#line 393 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002127{
2128 Upgradelval.UInt64Val = HexIntToVal(yytext+3);
2129 return yytext[0] == 's' ? ESINT64VAL : EUINT64VAL;
2130 }
2131 YY_BREAK
2132case 155:
2133YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00002134#line 398 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002135{
2136 uint64_t Val = atoull(yytext+1);
2137 if ((unsigned)Val != Val)
2138 error("Invalid value number (too large)!");
2139 Upgradelval.UIntVal = unsigned(Val);
2140 return UINTVAL;
2141 }
2142 YY_BREAK
2143case 156:
2144YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00002145#line 405 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002146{
2147 uint64_t Val = atoull(yytext+2);
2148 // +1: we have bigger negative range
2149 if (Val > (uint64_t)INT32_MAX+1)
2150 error("Constant too large for signed 32 bits!");
2151 Upgradelval.SIntVal = (int)-Val;
2152 return SINTVAL;
2153 }
2154 YY_BREAK
2155case 157:
2156YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00002157#line 414 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dale Johannesenb9de9f02007-09-06 18:13:44 +00002158{ Upgradelval.FPVal = new APFloat(atof(yytext)); return FPVAL; }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002159 YY_BREAK
2160case 158:
2161YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00002162#line 415 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dale Johannesenb9de9f02007-09-06 18:13:44 +00002163{ Upgradelval.FPVal = new APFloat(HexToFP(yytext));
2164 return FPVAL;
2165 }
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002166 YY_BREAK
2167case YY_STATE_EOF(INITIAL):
Dale Johannesen3b5303b2007-09-28 18:06:58 +00002168#line 419 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002169{
2170 /* Make sure to free the internal buffers for flex when we are
2171 * done reading our input!
2172 */
2173 yy_delete_buffer(YY_CURRENT_BUFFER);
2174 return EOF;
2175 }
2176 YY_BREAK
2177case 159:
2178YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00002179#line 427 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002180{ /* Ignore whitespace */ }
2181 YY_BREAK
2182case 160:
2183YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00002184#line 428 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002185{ return yytext[0]; }
2186 YY_BREAK
2187case 161:
2188YY_RULE_SETUP
Dale Johannesen3b5303b2007-09-28 18:06:58 +00002189#line 430 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002190YY_FATAL_ERROR( "flex scanner jammed" );
2191 YY_BREAK
Dale Johannesen3b5303b2007-09-28 18:06:58 +00002192#line 2193 "UpgradeLexer.cpp"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002193
2194 case YY_END_OF_BUFFER:
2195 {
2196 /* Amount of text matched not including the EOB char. */
2197 int yy_amount_of_matched_text = (int) (yy_cp - yytext_ptr) - 1;
2198
2199 /* Undo the effects of YY_DO_BEFORE_ACTION. */
2200 *yy_cp = yy_hold_char;
2201 YY_RESTORE_YY_MORE_OFFSET
2202
2203 if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_NEW )
2204 {
2205 /* We're scanning a new file or input source. It's
2206 * possible that this happened because the user
2207 * just pointed yyin at a new source and called
2208 * yylex(). If so, then we have to assure
2209 * consistency between yy_current_buffer and our
2210 * globals. Here is the right place to do so, because
2211 * this is the first action (other than possibly a
2212 * back-up) that will match for the new input source.
2213 */
2214 yy_n_chars = yy_current_buffer->yy_n_chars;
2215 yy_current_buffer->yy_input_file = yyin;
2216 yy_current_buffer->yy_buffer_status = YY_BUFFER_NORMAL;
2217 }
2218
2219 /* Note that here we test for yy_c_buf_p "<=" to the position
2220 * of the first EOB in the buffer, since yy_c_buf_p will
2221 * already have been incremented past the NUL character
2222 * (since all states make transitions on EOB to the
2223 * end-of-buffer state). Contrast this with the test
2224 * in input().
2225 */
2226 if ( yy_c_buf_p <= &yy_current_buffer->yy_ch_buf[yy_n_chars] )
2227 { /* This was really a NUL. */
2228 yy_state_type yy_next_state;
2229
2230 yy_c_buf_p = yytext_ptr + yy_amount_of_matched_text;
2231
2232 yy_current_state = yy_get_previous_state();
2233
2234 /* Okay, we're now positioned to make the NUL
2235 * transition. We couldn't have
2236 * yy_get_previous_state() go ahead and do it
2237 * for us because it doesn't know how to deal
2238 * with the possibility of jamming (and we don't
2239 * want to build jamming into it because then it
2240 * will run more slowly).
2241 */
2242
2243 yy_next_state = yy_try_NUL_trans( yy_current_state );
2244
2245 yy_bp = yytext_ptr + YY_MORE_ADJ;
2246
2247 if ( yy_next_state )
2248 {
2249 /* Consume the NUL. */
2250 yy_cp = ++yy_c_buf_p;
2251 yy_current_state = yy_next_state;
2252 goto yy_match;
2253 }
2254
2255 else
2256 {
2257 yy_cp = yy_c_buf_p;
2258 goto yy_find_action;
2259 }
2260 }
2261
2262 else switch ( yy_get_next_buffer() )
2263 {
2264 case EOB_ACT_END_OF_FILE:
2265 {
2266 yy_did_buffer_switch_on_eof = 0;
2267
2268 if ( yywrap() )
2269 {
2270 /* Note: because we've taken care in
2271 * yy_get_next_buffer() to have set up
2272 * yytext, we can now set up
2273 * yy_c_buf_p so that if some total
2274 * hoser (like flex itself) wants to
2275 * call the scanner after we return the
2276 * YY_NULL, it'll still work - another
2277 * YY_NULL will get returned.
2278 */
2279 yy_c_buf_p = yytext_ptr + YY_MORE_ADJ;
2280
2281 yy_act = YY_STATE_EOF(YY_START);
2282 goto do_action;
2283 }
2284
2285 else
2286 {
2287 if ( ! yy_did_buffer_switch_on_eof )
2288 YY_NEW_FILE;
2289 }
2290 break;
2291 }
2292
2293 case EOB_ACT_CONTINUE_SCAN:
2294 yy_c_buf_p =
2295 yytext_ptr + yy_amount_of_matched_text;
2296
2297 yy_current_state = yy_get_previous_state();
2298
2299 yy_cp = yy_c_buf_p;
2300 yy_bp = yytext_ptr + YY_MORE_ADJ;
2301 goto yy_match;
2302
2303 case EOB_ACT_LAST_MATCH:
2304 yy_c_buf_p =
2305 &yy_current_buffer->yy_ch_buf[yy_n_chars];
2306
2307 yy_current_state = yy_get_previous_state();
2308
2309 yy_cp = yy_c_buf_p;
2310 yy_bp = yytext_ptr + YY_MORE_ADJ;
2311 goto yy_find_action;
2312 }
2313 break;
2314 }
2315
2316 default:
2317 YY_FATAL_ERROR(
2318 "fatal flex scanner internal error--no action found" );
2319 } /* end of action switch */
2320 } /* end of scanning one token */
2321 } /* end of yylex */
2322
2323
2324/* yy_get_next_buffer - try to read in a new buffer
2325 *
2326 * Returns a code representing an action:
2327 * EOB_ACT_LAST_MATCH -
2328 * EOB_ACT_CONTINUE_SCAN - continue scanning from current position
2329 * EOB_ACT_END_OF_FILE - end of file
2330 */
2331
2332static int yy_get_next_buffer()
2333 {
2334 register char *dest = yy_current_buffer->yy_ch_buf;
2335 register char *source = yytext_ptr;
2336 register int number_to_move, i;
2337 int ret_val;
2338
2339 if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] )
2340 YY_FATAL_ERROR(
2341 "fatal flex scanner internal error--end of buffer missed" );
2342
2343 if ( yy_current_buffer->yy_fill_buffer == 0 )
2344 { /* Don't try to fill the buffer, so this is an EOF. */
2345 if ( yy_c_buf_p - yytext_ptr - YY_MORE_ADJ == 1 )
2346 {
2347 /* We matched a single character, the EOB, so
2348 * treat this as a final EOF.
2349 */
2350 return EOB_ACT_END_OF_FILE;
2351 }
2352
2353 else
2354 {
2355 /* We matched some text prior to the EOB, first
2356 * process it.
2357 */
2358 return EOB_ACT_LAST_MATCH;
2359 }
2360 }
2361
2362 /* Try to read more data. */
2363
2364 /* First move last chars to start of buffer. */
2365 number_to_move = (int) (yy_c_buf_p - yytext_ptr) - 1;
2366
2367 for ( i = 0; i < number_to_move; ++i )
2368 *(dest++) = *(source++);
2369
2370 if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_EOF_PENDING )
2371 /* don't do the read, it's not guaranteed to return an EOF,
2372 * just force an EOF
2373 */
2374 yy_current_buffer->yy_n_chars = yy_n_chars = 0;
2375
2376 else
2377 {
2378 int num_to_read =
2379 yy_current_buffer->yy_buf_size - number_to_move - 1;
2380
2381 while ( num_to_read <= 0 )
2382 { /* Not enough room in the buffer - grow it. */
2383#ifdef YY_USES_REJECT
2384 YY_FATAL_ERROR(
2385"input buffer overflow, can't enlarge buffer because scanner uses REJECT" );
2386#else
2387
2388 /* just a shorter name for the current buffer */
2389 YY_BUFFER_STATE b = yy_current_buffer;
2390
2391 int yy_c_buf_p_offset =
2392 (int) (yy_c_buf_p - b->yy_ch_buf);
2393
2394 if ( b->yy_is_our_buffer )
2395 {
2396 int new_size = b->yy_buf_size * 2;
2397
2398 if ( new_size <= 0 )
2399 b->yy_buf_size += b->yy_buf_size / 8;
2400 else
2401 b->yy_buf_size *= 2;
2402
2403 b->yy_ch_buf = (char *)
2404 /* Include room in for 2 EOB chars. */
2405 yy_flex_realloc( (void *) b->yy_ch_buf,
2406 b->yy_buf_size + 2 );
2407 }
2408 else
2409 /* Can't grow it, we don't own it. */
2410 b->yy_ch_buf = 0;
2411
2412 if ( ! b->yy_ch_buf )
2413 YY_FATAL_ERROR(
2414 "fatal error - scanner input buffer overflow" );
2415
2416 yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset];
2417
2418 num_to_read = yy_current_buffer->yy_buf_size -
2419 number_to_move - 1;
2420#endif
2421 }
2422
2423 if ( num_to_read > YY_READ_BUF_SIZE )
2424 num_to_read = YY_READ_BUF_SIZE;
2425
2426 /* Read in more data. */
2427 YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]),
2428 yy_n_chars, num_to_read );
2429
2430 yy_current_buffer->yy_n_chars = yy_n_chars;
2431 }
2432
2433 if ( yy_n_chars == 0 )
2434 {
2435 if ( number_to_move == YY_MORE_ADJ )
2436 {
2437 ret_val = EOB_ACT_END_OF_FILE;
2438 yyrestart( yyin );
2439 }
2440
2441 else
2442 {
2443 ret_val = EOB_ACT_LAST_MATCH;
2444 yy_current_buffer->yy_buffer_status =
2445 YY_BUFFER_EOF_PENDING;
2446 }
2447 }
2448
2449 else
2450 ret_val = EOB_ACT_CONTINUE_SCAN;
2451
2452 yy_n_chars += number_to_move;
2453 yy_current_buffer->yy_ch_buf[yy_n_chars] = YY_END_OF_BUFFER_CHAR;
2454 yy_current_buffer->yy_ch_buf[yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;
2455
2456 yytext_ptr = &yy_current_buffer->yy_ch_buf[0];
2457
2458 return ret_val;
2459 }
2460
2461
2462/* yy_get_previous_state - get the state just before the EOB char was reached */
2463
2464static yy_state_type yy_get_previous_state()
2465 {
2466 register yy_state_type yy_current_state;
2467 register char *yy_cp;
2468
2469 yy_current_state = yy_start;
2470 yy_state_ptr = yy_state_buf;
2471 *yy_state_ptr++ = yy_current_state;
2472
2473 for ( yy_cp = yytext_ptr + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp )
2474 {
2475 register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
2476 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
2477 {
2478 yy_current_state = (int) yy_def[yy_current_state];
2479 if ( yy_current_state >= 620 )
2480 yy_c = yy_meta[(unsigned int) yy_c];
2481 }
2482 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
2483 *yy_state_ptr++ = yy_current_state;
2484 }
2485
2486 return yy_current_state;
2487 }
2488
2489
2490/* yy_try_NUL_trans - try to make a transition on the NUL character
2491 *
2492 * synopsis
2493 * next_state = yy_try_NUL_trans( current_state );
2494 */
2495
2496#ifdef YY_USE_PROTOS
2497static yy_state_type yy_try_NUL_trans( yy_state_type yy_current_state )
2498#else
2499static yy_state_type yy_try_NUL_trans( yy_current_state )
2500yy_state_type yy_current_state;
2501#endif
2502 {
2503 register int yy_is_jam;
2504
2505 register YY_CHAR yy_c = 1;
2506 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
2507 {
2508 yy_current_state = (int) yy_def[yy_current_state];
2509 if ( yy_current_state >= 620 )
2510 yy_c = yy_meta[(unsigned int) yy_c];
2511 }
2512 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
2513 yy_is_jam = (yy_current_state == 619);
2514 if ( ! yy_is_jam )
2515 *yy_state_ptr++ = yy_current_state;
2516
2517 return yy_is_jam ? 0 : yy_current_state;
2518 }
2519
2520
2521#ifndef YY_NO_UNPUT
2522#ifdef YY_USE_PROTOS
2523static inline void yyunput( int c, register char *yy_bp )
2524#else
2525static inline void yyunput( c, yy_bp )
2526int c;
2527register char *yy_bp;
2528#endif
2529 {
2530 register char *yy_cp = yy_c_buf_p;
2531
2532 /* undo effects of setting up yytext */
2533 *yy_cp = yy_hold_char;
2534
2535 if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
2536 { /* need to shift things up to make room */
2537 /* +2 for EOB chars. */
2538 register int number_to_move = yy_n_chars + 2;
2539 register char *dest = &yy_current_buffer->yy_ch_buf[
2540 yy_current_buffer->yy_buf_size + 2];
2541 register char *source =
2542 &yy_current_buffer->yy_ch_buf[number_to_move];
2543
2544 while ( source > yy_current_buffer->yy_ch_buf )
2545 *--dest = *--source;
2546
2547 yy_cp += (int) (dest - source);
2548 yy_bp += (int) (dest - source);
2549 yy_current_buffer->yy_n_chars =
2550 yy_n_chars = yy_current_buffer->yy_buf_size;
2551
2552 if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
2553 YY_FATAL_ERROR( "flex scanner push-back overflow" );
2554 }
2555
2556 *--yy_cp = (char) c;
2557
2558 if ( c == '\n' )
2559 --yylineno;
2560
2561 yytext_ptr = yy_bp;
2562 yy_hold_char = *yy_cp;
2563 yy_c_buf_p = yy_cp;
2564 }
2565#endif /* ifndef YY_NO_UNPUT */
2566
2567
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002568#ifdef __cplusplus
2569static int yyinput()
2570#else
2571static int input()
2572#endif
2573 {
2574 int c;
2575
2576 *yy_c_buf_p = yy_hold_char;
2577
2578 if ( *yy_c_buf_p == YY_END_OF_BUFFER_CHAR )
2579 {
2580 /* yy_c_buf_p now points to the character we want to return.
2581 * If this occurs *before* the EOB characters, then it's a
2582 * valid NUL; if not, then we've hit the end of the buffer.
2583 */
2584 if ( yy_c_buf_p < &yy_current_buffer->yy_ch_buf[yy_n_chars] )
2585 /* This was really a NUL. */
2586 *yy_c_buf_p = '\0';
2587
2588 else
2589 { /* need more input */
2590 int offset = yy_c_buf_p - yytext_ptr;
2591 ++yy_c_buf_p;
2592
2593 switch ( yy_get_next_buffer() )
2594 {
2595 case EOB_ACT_LAST_MATCH:
2596 /* This happens because yy_g_n_b()
2597 * sees that we've accumulated a
2598 * token and flags that we need to
2599 * try matching the token before
2600 * proceeding. But for input(),
2601 * there's no matching to consider.
2602 * So convert the EOB_ACT_LAST_MATCH
2603 * to EOB_ACT_END_OF_FILE.
2604 */
2605
2606 /* Reset buffer status. */
2607 yyrestart( yyin );
2608
2609 /* fall through */
2610
2611 case EOB_ACT_END_OF_FILE:
2612 {
2613 if ( yywrap() )
2614 return EOF;
2615
2616 if ( ! yy_did_buffer_switch_on_eof )
2617 YY_NEW_FILE;
2618#ifdef __cplusplus
2619 return yyinput();
2620#else
2621 return input();
2622#endif
2623 }
2624
2625 case EOB_ACT_CONTINUE_SCAN:
2626 yy_c_buf_p = yytext_ptr + offset;
2627 break;
2628 }
2629 }
2630 }
2631
2632 c = *(unsigned char *) yy_c_buf_p; /* cast for 8-bit char's */
2633 *yy_c_buf_p = '\0'; /* preserve yytext */
2634 yy_hold_char = *++yy_c_buf_p;
2635
2636 if ( c == '\n' )
2637 ++yylineno;
2638
2639 return c;
2640 }
Dale Johannesenb9de9f02007-09-06 18:13:44 +00002641
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002642
2643#ifdef YY_USE_PROTOS
2644void yyrestart( FILE *input_file )
2645#else
2646void yyrestart( input_file )
2647FILE *input_file;
2648#endif
2649 {
2650 if ( ! yy_current_buffer )
2651 yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE );
2652
2653 yy_init_buffer( yy_current_buffer, input_file );
2654 yy_load_buffer_state();
2655 }
2656
2657
2658#ifdef YY_USE_PROTOS
2659void yy_switch_to_buffer( YY_BUFFER_STATE new_buffer )
2660#else
2661void yy_switch_to_buffer( new_buffer )
2662YY_BUFFER_STATE new_buffer;
2663#endif
2664 {
2665 if ( yy_current_buffer == new_buffer )
2666 return;
2667
2668 if ( yy_current_buffer )
2669 {
2670 /* Flush out information for old buffer. */
2671 *yy_c_buf_p = yy_hold_char;
2672 yy_current_buffer->yy_buf_pos = yy_c_buf_p;
2673 yy_current_buffer->yy_n_chars = yy_n_chars;
2674 }
2675
2676 yy_current_buffer = new_buffer;
2677 yy_load_buffer_state();
2678
2679 /* We don't actually know whether we did this switch during
2680 * EOF (yywrap()) processing, but the only time this flag
2681 * is looked at is after yywrap() is called, so it's safe
2682 * to go ahead and always set it.
2683 */
2684 yy_did_buffer_switch_on_eof = 1;
2685 }
2686
2687
2688#ifdef YY_USE_PROTOS
2689void yy_load_buffer_state( void )
2690#else
2691void yy_load_buffer_state()
2692#endif
2693 {
2694 yy_n_chars = yy_current_buffer->yy_n_chars;
2695 yytext_ptr = yy_c_buf_p = yy_current_buffer->yy_buf_pos;
2696 yyin = yy_current_buffer->yy_input_file;
2697 yy_hold_char = *yy_c_buf_p;
2698 }
2699
2700
2701#ifdef YY_USE_PROTOS
2702YY_BUFFER_STATE yy_create_buffer( FILE *file, int size )
2703#else
2704YY_BUFFER_STATE yy_create_buffer( file, size )
2705FILE *file;
2706int size;
2707#endif
2708 {
2709 YY_BUFFER_STATE b;
2710
2711 b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
2712 if ( ! b )
2713 YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
2714
2715 b->yy_buf_size = size;
2716
2717 /* yy_ch_buf has to be 2 characters longer than the size given because
2718 * we need to put in 2 end-of-buffer characters.
2719 */
2720 b->yy_ch_buf = (char *) yy_flex_alloc( b->yy_buf_size + 2 );
2721 if ( ! b->yy_ch_buf )
2722 YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
2723
2724 b->yy_is_our_buffer = 1;
2725
2726 yy_init_buffer( b, file );
2727
2728 return b;
2729 }
2730
2731
2732#ifdef YY_USE_PROTOS
2733void yy_delete_buffer( YY_BUFFER_STATE b )
2734#else
2735void yy_delete_buffer( b )
2736YY_BUFFER_STATE b;
2737#endif
2738 {
2739 if ( ! b )
2740 return;
2741
2742 if ( b == yy_current_buffer )
2743 yy_current_buffer = (YY_BUFFER_STATE) 0;
2744
2745 if ( b->yy_is_our_buffer )
2746 yy_flex_free( (void *) b->yy_ch_buf );
2747
2748 yy_flex_free( (void *) b );
2749 }
2750
2751
Dale Johannesenb9de9f02007-09-06 18:13:44 +00002752#ifndef YY_ALWAYS_INTERACTIVE
2753#ifndef YY_NEVER_INTERACTIVE
2754extern int isatty YY_PROTO(( int ));
2755#endif
2756#endif
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002757
2758#ifdef YY_USE_PROTOS
2759void yy_init_buffer( YY_BUFFER_STATE b, FILE *file )
2760#else
2761void yy_init_buffer( b, file )
2762YY_BUFFER_STATE b;
2763FILE *file;
2764#endif
2765
2766
2767 {
2768 yy_flush_buffer( b );
2769
2770 b->yy_input_file = file;
2771 b->yy_fill_buffer = 1;
2772
2773#if YY_ALWAYS_INTERACTIVE
2774 b->yy_is_interactive = 1;
2775#else
2776#if YY_NEVER_INTERACTIVE
2777 b->yy_is_interactive = 0;
2778#else
2779 b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
2780#endif
2781#endif
2782 }
2783
2784
2785#ifdef YY_USE_PROTOS
2786void yy_flush_buffer( YY_BUFFER_STATE b )
2787#else
2788void yy_flush_buffer( b )
2789YY_BUFFER_STATE b;
2790#endif
2791
2792 {
2793 if ( ! b )
2794 return;
2795
2796 b->yy_n_chars = 0;
2797
2798 /* We always need two end-of-buffer characters. The first causes
2799 * a transition to the end-of-buffer state. The second causes
2800 * a jam in that state.
2801 */
2802 b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
2803 b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
2804
2805 b->yy_buf_pos = &b->yy_ch_buf[0];
2806
2807 b->yy_at_bol = 1;
2808 b->yy_buffer_status = YY_BUFFER_NEW;
2809
2810 if ( b == yy_current_buffer )
2811 yy_load_buffer_state();
2812 }
2813
2814
2815#ifndef YY_NO_SCAN_BUFFER
2816#ifdef YY_USE_PROTOS
2817YY_BUFFER_STATE yy_scan_buffer( char *base, yy_size_t size )
2818#else
2819YY_BUFFER_STATE yy_scan_buffer( base, size )
2820char *base;
2821yy_size_t size;
2822#endif
2823 {
2824 YY_BUFFER_STATE b;
2825
2826 if ( size < 2 ||
2827 base[size-2] != YY_END_OF_BUFFER_CHAR ||
2828 base[size-1] != YY_END_OF_BUFFER_CHAR )
2829 /* They forgot to leave room for the EOB's. */
2830 return 0;
2831
2832 b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
2833 if ( ! b )
2834 YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
2835
2836 b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */
2837 b->yy_buf_pos = b->yy_ch_buf = base;
2838 b->yy_is_our_buffer = 0;
2839 b->yy_input_file = 0;
2840 b->yy_n_chars = b->yy_buf_size;
2841 b->yy_is_interactive = 0;
2842 b->yy_at_bol = 1;
2843 b->yy_fill_buffer = 0;
2844 b->yy_buffer_status = YY_BUFFER_NEW;
2845
2846 yy_switch_to_buffer( b );
2847
2848 return b;
2849 }
2850#endif
2851
2852
2853#ifndef YY_NO_SCAN_STRING
2854#ifdef YY_USE_PROTOS
2855YY_BUFFER_STATE yy_scan_string( yyconst char *yy_str )
2856#else
2857YY_BUFFER_STATE yy_scan_string( yy_str )
2858yyconst char *yy_str;
2859#endif
2860 {
2861 int len;
2862 for ( len = 0; yy_str[len]; ++len )
2863 ;
2864
2865 return yy_scan_bytes( yy_str, len );
2866 }
2867#endif
2868
2869
2870#ifndef YY_NO_SCAN_BYTES
2871#ifdef YY_USE_PROTOS
2872YY_BUFFER_STATE yy_scan_bytes( yyconst char *bytes, int len )
2873#else
2874YY_BUFFER_STATE yy_scan_bytes( bytes, len )
2875yyconst char *bytes;
2876int len;
2877#endif
2878 {
2879 YY_BUFFER_STATE b;
2880 char *buf;
2881 yy_size_t n;
2882 int i;
2883
2884 /* Get memory for full buffer, including space for trailing EOB's. */
2885 n = len + 2;
2886 buf = (char *) yy_flex_alloc( n );
2887 if ( ! buf )
2888 YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
2889
2890 for ( i = 0; i < len; ++i )
2891 buf[i] = bytes[i];
2892
2893 buf[len] = buf[len+1] = YY_END_OF_BUFFER_CHAR;
2894
2895 b = yy_scan_buffer( buf, n );
2896 if ( ! b )
2897 YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
2898
2899 /* It's okay to grow etc. this buffer, and we should throw it
2900 * away when we're done.
2901 */
2902 b->yy_is_our_buffer = 1;
2903
2904 return b;
2905 }
2906#endif
2907
2908
2909#ifndef YY_NO_PUSH_STATE
2910#ifdef YY_USE_PROTOS
2911static void yy_push_state( int new_state )
2912#else
2913static void yy_push_state( new_state )
2914int new_state;
2915#endif
2916 {
2917 if ( yy_start_stack_ptr >= yy_start_stack_depth )
2918 {
2919 yy_size_t new_size;
2920
2921 yy_start_stack_depth += YY_START_STACK_INCR;
2922 new_size = yy_start_stack_depth * sizeof( int );
2923
2924 if ( ! yy_start_stack )
2925 yy_start_stack = (int *) yy_flex_alloc( new_size );
2926
2927 else
2928 yy_start_stack = (int *) yy_flex_realloc(
2929 (void *) yy_start_stack, new_size );
2930
2931 if ( ! yy_start_stack )
2932 YY_FATAL_ERROR(
2933 "out of memory expanding start-condition stack" );
2934 }
2935
2936 yy_start_stack[yy_start_stack_ptr++] = YY_START;
2937
2938 BEGIN(new_state);
2939 }
2940#endif
2941
2942
2943#ifndef YY_NO_POP_STATE
2944static void yy_pop_state()
2945 {
2946 if ( --yy_start_stack_ptr < 0 )
2947 YY_FATAL_ERROR( "start-condition stack underflow" );
2948
2949 BEGIN(yy_start_stack[yy_start_stack_ptr]);
2950 }
2951#endif
2952
2953
2954#ifndef YY_NO_TOP_STATE
2955static int yy_top_state()
2956 {
2957 return yy_start_stack[yy_start_stack_ptr - 1];
2958 }
2959#endif
2960
2961#ifndef YY_EXIT_FAILURE
2962#define YY_EXIT_FAILURE 2
2963#endif
2964
2965#ifdef YY_USE_PROTOS
2966static void yy_fatal_error( yyconst char msg[] )
2967#else
2968static void yy_fatal_error( msg )
2969char msg[];
2970#endif
2971 {
2972 (void) fprintf( stderr, "%s\n", msg );
2973 exit( YY_EXIT_FAILURE );
2974 }
2975
2976
2977
2978/* Redefine yyless() so it works in section 3 code. */
2979
2980#undef yyless
2981#define yyless(n) \
2982 do \
2983 { \
2984 /* Undo effects of setting up yytext. */ \
2985 yytext[yyleng] = yy_hold_char; \
2986 yy_c_buf_p = yytext + n; \
2987 yy_hold_char = *yy_c_buf_p; \
2988 *yy_c_buf_p = '\0'; \
2989 yyleng = n; \
2990 } \
2991 while ( 0 )
2992
2993
2994/* Internal utility routines. */
2995
2996#ifndef yytext_ptr
2997#ifdef YY_USE_PROTOS
2998static void yy_flex_strncpy( char *s1, yyconst char *s2, int n )
2999#else
3000static void yy_flex_strncpy( s1, s2, n )
3001char *s1;
3002yyconst char *s2;
3003int n;
3004#endif
3005 {
3006 register int i;
3007 for ( i = 0; i < n; ++i )
3008 s1[i] = s2[i];
3009 }
3010#endif
3011
3012#ifdef YY_NEED_STRLEN
3013#ifdef YY_USE_PROTOS
3014static int yy_flex_strlen( yyconst char *s )
3015#else
3016static int yy_flex_strlen( s )
3017yyconst char *s;
3018#endif
3019 {
3020 register int n;
3021 for ( n = 0; s[n]; ++n )
3022 ;
3023
3024 return n;
3025 }
3026#endif
3027
3028
3029#ifdef YY_USE_PROTOS
3030static void *yy_flex_alloc( yy_size_t size )
3031#else
3032static void *yy_flex_alloc( size )
3033yy_size_t size;
3034#endif
3035 {
3036 return (void *) malloc( size );
3037 }
3038
3039#ifdef YY_USE_PROTOS
3040static inline void *yy_flex_realloc( void *ptr, yy_size_t size )
3041#else
3042static inline void *yy_flex_realloc( ptr, size )
3043void *ptr;
3044yy_size_t size;
3045#endif
3046 {
3047 /* The cast to (char *) in the following accommodates both
3048 * implementations that use char* generic pointers, and those
3049 * that use void* generic pointers. It works with the latter
3050 * because both ANSI C and C++ allow castless assignment from
3051 * any pointer type to void*, and deal with argument conversions
3052 * as though doing an assignment.
3053 */
3054 return (void *) realloc( (char *) ptr, size );
3055 }
3056
3057#ifdef YY_USE_PROTOS
3058static void yy_flex_free( void *ptr )
3059#else
3060static void yy_flex_free( ptr )
3061void *ptr;
3062#endif
3063 {
3064 free( ptr );
3065 }
3066
3067#if YY_MAIN
3068int main()
3069 {
3070 yylex();
3071 return 0;
3072 }
3073#endif
Dale Johannesen3b5303b2007-09-28 18:06:58 +00003074#line 430 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003075