1 #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
19 #line 20 "UpgradeLexer.cpp"
20 /* A lexical scanner generated by flex*/
22 /* Scanner skeleton version:
27 #define YY_FLEX_MAJOR_VERSION 2
28 #define YY_FLEX_MINOR_VERSION 5
34 /* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */
46 /* Use prototypes in function declarations. */
49 /* The "const" storage-class-modifier is valid. */
52 #else /* ! __cplusplus */
60 #endif /* ! __cplusplus */
79 #define YY_PROTO(proto) proto
81 #define YY_PROTO(proto) ()
84 /* Returned upon end-of-file. */
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
92 #define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)
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.
98 #define BEGIN yy_start = 1 + 2 *
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
104 #define YY_START ((yy_start - 1) / 2)
105 #define YYSTATE YY_START
107 /* Action number for EOF rule of a given start state. */
108 #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
110 /* Special action meaning "start processing a new file". */
111 #define YY_NEW_FILE yyrestart( yyin )
113 #define YY_END_OF_BUFFER_CHAR 0
115 /* Size of default input buffer. */
116 #define YY_BUF_SIZE (16384*64)
118 typedef struct yy_buffer_state *YY_BUFFER_STATE;
121 extern FILE *yyin, *yyout;
123 #define EOB_ACT_CONTINUE_SCAN 0
124 #define EOB_ACT_END_OF_FILE 1
125 #define EOB_ACT_LAST_MATCH 2
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:
131 * if ( condition_holds )
134 * do_something_else();
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.
141 /* Return all but the first 'n' matched characters back to the input stream. */
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 */ \
154 #define unput(c) yyunput( c, yytext_ptr )
156 /* Some routines like yy_flex_realloc() are emitted as static but are
157 not called by all lexers. This generates warnings in some compilers,
158 notably GCC. Arrange to suppress these. */
160 #define YY_MAY_BE_UNUSED __attribute__((unused))
162 #define YY_MAY_BE_UNUSED
165 /* The following is because we cannot portably get our hands on size_t
166 * (without autoconf's help, which isn't available because we want
167 * flex-generated scanners to compile on their own).
169 typedef unsigned int yy_size_t;
172 struct yy_buffer_state
176 char *yy_ch_buf; /* input buffer */
177 char *yy_buf_pos; /* current position in input buffer */
179 /* Size of input buffer in bytes, not including room for EOB
182 yy_size_t yy_buf_size;
184 /* Number of characters read into yy_ch_buf, not including EOB
189 /* Whether we "own" the buffer - i.e., we know we created it,
190 * and can realloc() it to grow it, and should free() it to
193 int yy_is_our_buffer;
195 /* Whether this is an "interactive" input source; if so, and
196 * if we're using stdio for input, then we want to use getc()
197 * instead of fread(), to make sure we stop fetching input after
200 int yy_is_interactive;
202 /* Whether we're considered to be at the beginning of a line.
203 * If so, '^' rules will be active on the next match, otherwise
208 /* Whether to try to fill the input buffer when we reach the
213 int yy_buffer_status;
214 #define YY_BUFFER_NEW 0
215 #define YY_BUFFER_NORMAL 1
216 /* When an EOF's been seen but there's still some text to process
217 * then we mark the buffer as YY_EOF_PENDING, to indicate that we
218 * shouldn't try reading from the input source any more. We might
219 * still have a bunch of tokens to match, though, because of
220 * possible backing-up.
222 * When we actually see the EOF, we change the status to "new"
223 * (via yyrestart()), so that the user can continue scanning by
224 * just pointing yyin at a new input file.
226 #define YY_BUFFER_EOF_PENDING 2
229 static YY_BUFFER_STATE yy_current_buffer = 0;
231 /* We provide macros for accessing buffer states in case in the
232 * future we want to put the buffer states in a more general
235 #define YY_CURRENT_BUFFER yy_current_buffer
238 /* yy_hold_char holds the character lost when yytext is formed. */
239 static char yy_hold_char;
241 static int yy_n_chars; /* number of characters read into yy_ch_buf */
246 /* Points to current character in buffer. */
247 static char *yy_c_buf_p = (char *) 0;
248 static int yy_init = 1; /* whether we need to initialize */
249 static int yy_start = 0; /* start state number */
251 /* Flag which is used to allow yywrap()'s to do buffer switches
252 * instead of setting up a fresh yyin. A bit of a hack ...
254 static int yy_did_buffer_switch_on_eof;
256 void yyrestart YY_PROTO(( FILE *input_file ));
258 void yy_switch_to_buffer YY_PROTO(( YY_BUFFER_STATE new_buffer ));
259 void yy_load_buffer_state YY_PROTO(( void ));
260 YY_BUFFER_STATE yy_create_buffer YY_PROTO(( FILE *file, int size ));
261 void yy_delete_buffer YY_PROTO(( YY_BUFFER_STATE b ));
262 void yy_init_buffer YY_PROTO(( YY_BUFFER_STATE b, FILE *file ));
263 void yy_flush_buffer YY_PROTO(( YY_BUFFER_STATE b ));
264 #define YY_FLUSH_BUFFER yy_flush_buffer( yy_current_buffer )
266 YY_BUFFER_STATE yy_scan_buffer YY_PROTO(( char *base, yy_size_t size ));
267 YY_BUFFER_STATE yy_scan_string YY_PROTO(( yyconst char *yy_str ));
268 YY_BUFFER_STATE yy_scan_bytes YY_PROTO(( yyconst char *bytes, int len ));
270 static void *yy_flex_alloc YY_PROTO(( yy_size_t ));
271 static inline void *yy_flex_realloc YY_PROTO(( void *, yy_size_t )) YY_MAY_BE_UNUSED;
272 static void yy_flex_free YY_PROTO(( void * ));
274 #define yy_new_buffer yy_create_buffer
276 #define yy_set_interactive(is_interactive) \
278 if ( ! yy_current_buffer ) \
279 yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
280 yy_current_buffer->yy_is_interactive = is_interactive; \
283 #define yy_set_bol(at_bol) \
285 if ( ! yy_current_buffer ) \
286 yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
287 yy_current_buffer->yy_at_bol = at_bol; \
290 #define YY_AT_BOL() (yy_current_buffer->yy_at_bol)
293 #define YY_USES_REJECT
296 #define YY_SKIP_YYWRAP
297 typedef unsigned char YY_CHAR;
298 FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
299 typedef int yy_state_type;
303 #define yytext_ptr yytext
305 static yy_state_type yy_get_previous_state YY_PROTO(( void ));
306 static yy_state_type yy_try_NUL_trans YY_PROTO(( yy_state_type current_state ));
307 static int yy_get_next_buffer YY_PROTO(( void ));
308 static void yy_fatal_error YY_PROTO(( yyconst char msg[] ));
310 /* Done after the current pattern has been matched and before the
311 * corresponding action - sets up yytext.
313 #define YY_DO_BEFORE_ACTION \
314 yytext_ptr = yy_bp; \
315 yyleng = (int) (yy_cp - yy_bp); \
316 yy_hold_char = *yy_cp; \
320 #define YY_NUM_RULES 153
321 #define YY_END_OF_BUFFER 154
322 static yyconst short int yy_acclist[231] =
324 154, 152, 153, 151, 152, 153, 151, 153, 152, 153,
325 152, 153, 152, 153, 152, 153, 152, 153, 152, 153,
326 144, 152, 153, 144, 152, 153, 1, 152, 153, 152,
327 153, 152, 153, 152, 153, 152, 153, 152, 153, 152,
328 153, 152, 153, 152, 153, 152, 153, 152, 153, 152,
329 153, 152, 153, 152, 153, 152, 153, 152, 153, 152,
330 153, 152, 153, 152, 153, 152, 153, 152, 153, 152,
331 153, 143, 141, 140, 140, 147, 145, 149, 144, 1,
332 125, 39, 83, 84, 73, 23, 143, 140, 140, 148,
333 149, 20, 149, 150, 61, 72, 37, 32, 40, 64,
335 3, 52, 63, 89, 94, 92, 93, 91, 90, 95,
336 103, 68, 124, 88, 86, 119, 120, 87, 85, 62,
337 97, 102, 100, 101, 99, 98, 96, 74, 142, 149,
338 149, 121, 47, 104, 105, 82, 67, 133, 71, 81,
339 134, 54, 122, 22, 146, 66, 108, 70, 24, 4,
340 60, 65, 53, 69, 46, 11, 107, 149, 34, 2,
341 5, 56, 110, 58, 48, 76, 80, 78, 79, 77,
342 75, 50, 135, 106, 49, 55, 21, 132, 43, 57,
343 28, 129, 42, 112, 111, 7, 127, 31, 131, 36,
344 59, 118, 114, 126, 25, 26, 113, 128, 51, 123,
346 117, 41, 6, 27, 109, 35, 8, 16, 9, 116,
347 10, 115, 33, 12, 14, 13, 30, 38, 15, 29,
348 130, 136, 138, 139, 17, 44, 137, 18, 45, 19
351 static yyconst short int yy_accept[602] =
353 1, 1, 1, 2, 4, 7, 9, 11, 13, 15,
354 17, 19, 21, 24, 27, 30, 32, 34, 36, 38,
355 40, 42, 44, 46, 48, 50, 52, 54, 56, 58,
356 60, 62, 64, 66, 68, 70, 72, 72, 73, 73,
357 74, 75, 76, 77, 77, 78, 78, 79, 80, 80,
358 81, 81, 81, 81, 81, 81, 81, 81, 81, 82,
359 82, 83, 83, 83, 83, 83, 83, 83, 83, 83,
360 84, 84, 84, 84, 84, 84, 84, 84, 84, 84,
361 84, 84, 84, 84, 84, 84, 84, 84, 84, 84,
362 85, 85, 85, 85, 85, 85, 85, 86, 86, 86,
364 86, 86, 86, 86, 86, 86, 86, 86, 86, 86,
365 86, 86, 86, 86, 86, 87, 87, 87, 87, 87,
366 87, 87, 87, 87, 87, 87, 87, 87, 87, 87,
367 87, 87, 87, 88, 89, 91, 92, 93, 94, 94,
368 95, 96, 96, 96, 97, 97, 97, 98, 98, 99,
369 99, 99, 99, 99, 100, 100, 100, 100, 100, 100,
370 100, 101, 101, 101, 102, 102, 102, 102, 102, 102,
371 102, 102, 102, 102, 102, 102, 102, 102, 102, 102,
372 103, 103, 103, 103, 103, 103, 103, 103, 103, 103,
373 104, 104, 105, 106, 107, 108, 109, 110, 110, 111,
375 112, 112, 112, 113, 114, 114, 114, 114, 114, 114,
376 114, 114, 115, 116, 117, 117, 118, 118, 118, 118,
377 119, 120, 120, 120, 121, 121, 121, 121, 121, 121,
378 121, 121, 121, 122, 123, 124, 124, 124, 125, 125,
379 126, 126, 127, 127, 128, 128, 128, 128, 128, 128,
380 128, 128, 128, 128, 129, 129, 129, 130, 131, 131,
381 131, 131, 132, 132, 132, 132, 133, 133, 133, 134,
382 135, 136, 136, 136, 136, 136, 136, 136, 136, 136,
383 136, 136, 136, 136, 136, 136, 136, 137, 138, 138,
384 138, 138, 138, 139, 140, 140, 140, 141, 141, 141,
386 141, 141, 141, 141, 141, 141, 142, 143, 144, 144,
387 144, 145, 145, 145, 145, 146, 146, 147, 147, 147,
388 147, 147, 147, 147, 148, 148, 148, 148, 148, 149,
389 149, 149, 150, 150, 150, 151, 151, 152, 152, 153,
390 154, 154, 154, 154, 154, 154, 154, 155, 155, 155,
391 156, 156, 157, 157, 157, 158, 159, 160, 160, 160,
392 161, 161, 161, 161, 161, 161, 161, 161, 161, 161,
393 161, 161, 161, 161, 161, 162, 162, 163, 164, 164,
394 164, 164, 164, 164, 164, 164, 164, 164, 164, 165,
395 165, 165, 165, 165, 165, 165, 165, 166, 166, 166,
397 167, 168, 169, 170, 171, 172, 173, 173, 173, 173,
398 174, 174, 174, 174, 175, 176, 176, 177, 178, 178,
399 178, 178, 178, 178, 178, 178, 178, 178, 179, 179,
400 179, 180, 180, 180, 180, 180, 180, 180, 180, 181,
401 182, 183, 183, 183, 184, 185, 186, 186, 186, 187,
402 187, 187, 187, 187, 188, 188, 189, 190, 191, 192,
403 192, 192, 192, 193, 193, 193, 194, 195, 196, 197,
404 198, 198, 198, 199, 200, 201, 201, 201, 201, 201,
405 201, 202, 202, 203, 203, 204, 205, 205, 205, 205,
406 205, 205, 206, 206, 206, 206, 206, 206, 206, 206,
408 206, 207, 207, 207, 207, 207, 207, 207, 207, 207,
409 207, 208, 208, 208, 208, 208, 209, 209, 209, 209,
410 209, 210, 211, 212, 212, 213, 213, 213, 213, 213,
411 214, 214, 214, 214, 215, 215, 216, 217, 217, 217,
412 217, 217, 217, 217, 217, 217, 217, 217, 217, 217,
413 217, 218, 218, 218, 218, 218, 218, 218, 218, 219,
414 219, 219, 219, 219, 219, 220, 220, 220, 220, 220,
415 221, 221, 221, 222, 222, 222, 222, 222, 222, 222,
416 222, 222, 222, 222, 222, 222, 222, 223, 223, 224,
417 225, 226, 226, 227, 227, 228, 229, 230, 230, 231,
422 static yyconst int yy_ec[256] =
424 1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
425 1, 1, 2, 1, 1, 1, 1, 1, 1, 1,
426 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
427 1, 2, 1, 4, 1, 5, 6, 1, 1, 1,
428 1, 1, 7, 1, 8, 9, 1, 10, 11, 11,
429 11, 11, 11, 12, 11, 13, 11, 14, 15, 1,
430 1, 1, 1, 1, 16, 16, 16, 16, 17, 16,
431 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
432 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
433 1, 1, 1, 1, 18, 1, 19, 20, 21, 22,
435 23, 24, 25, 26, 27, 5, 28, 29, 30, 31,
436 32, 33, 34, 35, 36, 37, 38, 39, 40, 41,
437 42, 43, 1, 1, 1, 1, 1, 1, 1, 1,
438 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
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, 1, 1, 1, 1, 1,
446 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
447 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
448 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
449 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
450 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
454 static yyconst int yy_meta[44] =
456 1, 1, 2, 1, 3, 1, 1, 3, 3, 3,
457 3, 3, 3, 4, 1, 3, 3, 3, 3, 3,
458 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
459 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
463 static yyconst short int yy_base[606] =
465 0, 0, 1290, 1291, 1291, 1291, 1285, 1274, 36, 40,
466 44, 50, 56, 62, 0, 63, 66, 81, 89, 47,
467 108, 91, 105, 96, 119, 68, 144, 128, 111, 170,
468 136, 201, 130, 117, 132, 125, 1283, 1291, 1272, 1291,
469 0, 175, 190, 207, 229, 70, 234, 249, 254, 0,
470 139, 145, 167, 76, 168, 138, 255, 31, 1271, 177,
471 90, 198, 48, 110, 258, 195, 221, 211, 200, 1270,
472 267, 269, 270, 156, 271, 272, 273, 217, 275, 276,
473 219, 279, 288, 280, 300, 287, 268, 298, 296, 1269,
474 307, 73, 309, 310, 312, 308, 315, 314, 316, 320,
476 324, 325, 162, 326, 328, 336, 342, 330, 349, 337,
477 344, 348, 356, 361, 1268, 364, 331, 365, 367, 370,
478 375, 368, 378, 402, 383, 394, 395, 403, 371, 241,
479 379, 386, 1267, 0, 428, 433, 1266, 447, 464, 0,
480 1265, 397, 404, 1264, 405, 412, 1263, 421, 1262, 441,
481 437, 438, 417, 1261, 373, 449, 459, 465, 439, 451,
482 1260, 467, 469, 472, 473, 474, 455, 478, 479, 481,
483 484, 486, 487, 488, 490, 494, 491, 492, 493, 503,
484 496, 509, 511, 515, 516, 517, 519, 520, 521, 1259,
485 522, 1258, 1257, 1256, 1255, 1254, 1253, 389, 1252, 1251,
487 527, 523, 1250, 1249, 551, 529, 530, 539, 532, 563,
488 542, 1248, 1247, 1246, 543, 1245, 142, 566, 533, 1244,
489 1243, 419, 567, 1242, 568, 569, 570, 571, 576, 573,
490 577, 579, 1241, 1240, 1239, 583, 587, 1238, 586, 1237,
491 589, 1236, 592, 1235, 599, 594, 595, 596, 531, 602,
492 612, 601, 616, 1234, 613, 618, 1291, 625, 639, 646,
493 650, 655, 639, 619, 640, 1233, 658, 625, 1232, 1231,
494 1230, 659, 660, 661, 662, 663, 665, 664, 669, 667,
495 671, 670, 672, 674, 681, 673, 1229, 1228, 686, 687,
496 692, 688, 1227, 1226, 696, 694, 1225, 695, 697, 698,
498 702, 701, 706, 705, 707, 1224, 1223, 1222, 708, 713,
499 1221, 700, 717, 725, 0, 727, 1220, 729, 730, 731,
500 732, 735, 738, 1219, 733, 739, 745, 750, 1218, 748,
501 746, 1217, 752, 759, 1216, 762, 1215, 763, 1214, 1213,
502 765, 766, 768, 767, 771, 764, 1212, 770, 773, 1211,
503 779, 1210, 782, 783, 1209, 788, 1208, 788, 789, 1207,
504 790, 798, 795, 799, 803, 801, 807, 809, 810, 811,
505 814, 815, 816, 817, 1206, 818, 1205, 1204, 819, 821,
506 823, 826, 827, 830, 836, 837, 839, 841, 1203, 843,
507 844, 845, 847, 848, 855, 849, 1202, 851, 861, 1201,
509 1200, 1199, 1198, 1197, 1196, 1195, 863, 865, 866, 1194,
510 867, 868, 871, 1193, 1192, 870, 1191, 1190, 872, 874,
511 882, 873, 876, 886, 883, 877, 892, 1189, 893, 894,
512 1188, 897, 898, 901, 902, 903, 904, 908, 1187, 1186,
513 1185, 915, 907, 1184, 1183, 1182, 916, 912, 1181, 918,
514 924, 931, 921, 1180, 932, 1179, 1178, 1177, 1176, 913,
515 935, 937, 1175, 938, 940, 1174, 1173, 1172, 1171, 1170,
516 942, 941, 1169, 1168, 1167, 943, 945, 948, 946, 949,
517 1166, 951, 1165, 957, 1164, 1163, 960, 961, 46, 962,
518 963, 1162, 964, 968, 965, 969, 970, 978, 971, 976,
520 1161, 979, 983, 989, 990, 988, 986, 996, 998, 1000,
521 1160, 1001, 1005, 1006, 1007, 1159, 1002, 1010, 1008, 1013,
522 1158, 1155, 1146, 1019, 1144, 1014, 1026, 1015, 1012, 1143,
523 1034, 1035, 1024, 1142, 1020, 1141, 1139, 1039, 1036, 1038,
524 1042, 1046, 1048, 1049, 1050, 1051, 1052, 1053, 1054, 1055,
525 1138, 1057, 1059, 1063, 1065, 1070, 1072, 1066, 1137, 1068,
526 1074, 1076, 1078, 1080, 1136, 1085, 1084, 1086, 1087, 1133,
527 1090, 1092, 1132, 1096, 1098, 1100, 1102, 1103, 1109, 1106,
528 1110, 1112, 1114, 1115, 1116, 1117, 1128, 1118, 910, 734,
529 703, 1123, 629, 1125, 627, 597, 534, 1126, 334, 1291,
531 1161, 1163, 296, 1167, 253
534 static yyconst short int yy_def[606] =
536 600, 1, 600, 600, 600, 600, 601, 602, 603, 600,
537 602, 602, 602, 602, 604, 602, 602, 602, 602, 602,
538 602, 602, 602, 602, 602, 602, 602, 602, 602, 602,
539 602, 602, 602, 602, 602, 602, 601, 600, 602, 600,
540 605, 605, 600, 600, 602, 602, 602, 602, 602, 604,
541 602, 602, 602, 602, 602, 602, 602, 602, 602, 602,
542 602, 602, 602, 602, 602, 602, 602, 602, 602, 602,
543 602, 602, 602, 602, 602, 602, 602, 602, 602, 602,
544 602, 602, 602, 602, 602, 602, 602, 602, 602, 602,
545 602, 602, 602, 602, 602, 602, 602, 602, 602, 602,
547 602, 602, 602, 602, 602, 602, 602, 602, 602, 602,
548 602, 602, 602, 602, 602, 602, 602, 602, 602, 602,
549 602, 602, 602, 602, 602, 602, 602, 602, 602, 602,
550 602, 602, 600, 605, 605, 600, 602, 602, 602, 49,
551 602, 602, 602, 602, 602, 602, 602, 602, 602, 602,
552 602, 602, 602, 602, 602, 602, 602, 602, 602, 602,
553 602, 602, 602, 602, 602, 602, 602, 602, 602, 602,
554 602, 602, 602, 602, 602, 602, 602, 602, 602, 602,
555 602, 602, 602, 602, 602, 602, 602, 602, 602, 602,
556 602, 602, 602, 602, 602, 602, 602, 602, 602, 602,
558 602, 602, 602, 602, 49, 602, 602, 602, 602, 602,
559 602, 602, 602, 602, 602, 602, 602, 602, 602, 602,
560 602, 602, 602, 602, 602, 602, 602, 602, 602, 602,
561 602, 602, 602, 602, 602, 602, 602, 602, 602, 602,
562 602, 602, 602, 602, 602, 602, 602, 602, 602, 602,
563 602, 602, 602, 602, 602, 602, 600, 600, 600, 600,
564 602, 602, 602, 602, 602, 602, 602, 602, 602, 602,
565 602, 602, 602, 602, 602, 602, 602, 602, 602, 602,
566 602, 602, 602, 602, 602, 602, 602, 602, 602, 602,
567 602, 602, 602, 602, 602, 602, 602, 602, 602, 602,
569 602, 602, 602, 602, 602, 602, 602, 602, 602, 602,
570 602, 602, 602, 602, 205, 602, 602, 602, 602, 602,
571 602, 602, 602, 602, 602, 602, 602, 602, 602, 602,
572 602, 602, 602, 602, 602, 602, 602, 602, 602, 602,
573 602, 602, 602, 602, 602, 602, 602, 602, 602, 602,
574 602, 602, 602, 602, 602, 600, 602, 602, 602, 602,
575 602, 602, 602, 602, 602, 602, 602, 602, 602, 602,
576 602, 602, 602, 602, 602, 602, 602, 602, 602, 602,
577 602, 602, 602, 602, 602, 602, 602, 602, 602, 602,
578 602, 602, 602, 602, 602, 602, 602, 602, 602, 602,
580 602, 602, 602, 602, 602, 602, 602, 602, 602, 602,
581 602, 602, 602, 602, 602, 602, 602, 602, 602, 602,
582 602, 602, 602, 602, 602, 602, 602, 602, 602, 602,
583 602, 602, 602, 602, 602, 602, 602, 602, 602, 602,
584 602, 602, 602, 602, 602, 602, 602, 602, 602, 602,
585 602, 602, 602, 602, 602, 602, 602, 602, 602, 602,
586 602, 602, 602, 602, 602, 602, 602, 602, 602, 602,
587 602, 602, 602, 602, 602, 602, 602, 602, 602, 602,
588 602, 602, 602, 602, 602, 602, 602, 602, 602, 602,
589 602, 602, 602, 602, 602, 602, 602, 602, 602, 602,
591 602, 602, 602, 602, 602, 602, 602, 602, 602, 602,
592 602, 602, 602, 602, 602, 602, 602, 602, 602, 602,
593 602, 602, 602, 602, 602, 602, 602, 602, 602, 602,
594 602, 602, 602, 602, 602, 602, 602, 602, 602, 602,
595 602, 602, 602, 602, 602, 602, 602, 602, 602, 602,
596 602, 602, 602, 602, 602, 602, 602, 602, 602, 602,
597 602, 602, 602, 602, 602, 602, 602, 602, 602, 602,
598 602, 602, 602, 602, 602, 602, 602, 602, 602, 602,
599 602, 602, 602, 602, 602, 602, 602, 602, 602, 602,
600 602, 602, 602, 602, 602, 602, 602, 602, 602, 0,
602 600, 600, 600, 600, 600
605 static yyconst short int yy_nxt[1335] =
607 4, 5, 6, 7, 8, 9, 10, 11, 12, 13,
608 14, 14, 14, 4, 15, 8, 8, 8, 16, 17,
609 18, 19, 20, 21, 22, 8, 23, 8, 24, 25,
610 26, 27, 28, 8, 29, 30, 31, 32, 33, 34,
611 35, 8, 36, 42, 40, 43, 43, 43, 43, 44,
612 44, 44, 44, 45, 45, 45, 45, 40, 46, 40,
613 40, 40, 151, 40, 47, 48, 48, 48, 48, 40,
614 47, 48, 48, 48, 48, 40, 40, 69, 137, 40,
615 70, 40, 157, 40, 51, 515, 40, 71, 56, 40,
616 90, 52, 57, 53, 40, 54, 49, 58, 55, 60,
618 59, 61, 40, 40, 40, 91, 192, 64, 145, 40,
619 154, 65, 62, 78, 83, 66, 63, 67, 40, 79,
620 68, 40, 84, 40, 40, 80, 72, 85, 73, 74,
621 40, 86, 40, 101, 81, 82, 75, 87, 40, 129,
622 76, 40, 77, 40, 130, 40, 158, 132, 127, 40,
623 88, 40, 40, 98, 114, 40, 89, 40, 40, 99,
624 141, 128, 148, 131, 100, 326, 92, 115, 93, 40,
625 116, 142, 94, 143, 95, 40, 96, 117, 97, 102,
626 40, 40, 170, 40, 135, 135, 135, 135, 144, 103,
627 40, 104, 105, 146, 106, 107, 108, 147, 109, 43,
629 43, 43, 43, 206, 110, 152, 111, 112, 40, 113,
630 102, 40, 153, 40, 40, 136, 44, 44, 44, 44,
631 118, 164, 119, 120, 40, 121, 155, 122, 156, 123,
632 40, 124, 40, 161, 40, 125, 126, 47, 45, 45,
633 45, 45, 40, 138, 138, 138, 138, 40, 163, 162,
634 139, 178, 253, 175, 40, 134, 139, 47, 48, 48,
635 48, 48, 40, 140, 140, 140, 140, 40, 40, 140,
636 140, 40, 140, 140, 140, 140, 140, 140, 159, 149,
637 40, 40, 40, 40, 40, 40, 40, 165, 40, 40,
638 160, 150, 40, 40, 172, 174, 188, 167, 41, 169,
640 40, 40, 171, 166, 168, 177, 176, 182, 173, 40,
641 183, 40, 187, 40, 179, 180, 184, 181, 185, 189,
642 40, 40, 40, 40, 190, 40, 198, 40, 40, 40,
643 186, 193, 195, 40, 197, 191, 199, 40, 40, 40,
644 200, 40, 201, 40, 40, 194, 196, 40, 208, 40,
645 40, 218, 207, 203, 202, 40, 209, 40, 212, 222,
646 204, 40, 40, 230, 210, 205, 219, 224, 211, 40,
647 214, 220, 213, 215, 40, 223, 216, 40, 40, 217,
648 40, 40, 225, 40, 40, 221, 40, 226, 40, 252,
649 228, 40, 40, 232, 272, 227, 40, 234, 236, 40,
651 238, 229, 40, 233, 237, 247, 231, 40, 40, 239,
652 40, 235, 249, 254, 240, 40, 40, 40, 40, 248,
653 255, 263, 312, 241, 242, 40, 256, 265, 243, 250,
654 40, 251, 40, 244, 40, 264, 245, 135, 135, 135,
655 135, 246, 258, 258, 258, 258, 266, 267, 329, 259,
656 40, 40, 40, 271, 40, 259, 138, 138, 138, 138,
657 40, 268, 40, 139, 40, 269, 270, 276, 40, 139,
658 260, 261, 40, 262, 262, 262, 262, 40, 40, 277,
659 40, 274, 40, 275, 273, 40, 40, 40, 280, 278,
660 285, 40, 40, 279, 40, 282, 283, 40, 281, 40,
662 40, 40, 289, 40, 40, 40, 40, 40, 284, 40,
663 293, 287, 295, 296, 286, 299, 40, 294, 291, 288,
664 298, 292, 40, 297, 40, 300, 290, 302, 40, 40,
665 40, 303, 40, 40, 40, 40, 40, 306, 304, 301,
666 40, 307, 40, 40, 40, 40, 40, 40, 309, 349,
667 311, 305, 40, 308, 319, 40, 40, 313, 310, 314,
668 315, 315, 315, 315, 328, 316, 315, 315, 317, 315,
669 315, 315, 315, 315, 315, 318, 40, 325, 324, 40,
670 40, 40, 40, 40, 40, 320, 40, 321, 327, 40,
671 40, 322, 40, 323, 333, 337, 40, 332, 335, 40,
673 40, 330, 40, 334, 331, 40, 336, 40, 40, 40,
674 40, 343, 40, 338, 40, 40, 342, 339, 341, 340,
675 346, 345, 344, 350, 347, 40, 40, 348, 352, 40,
676 351, 40, 40, 353, 258, 258, 258, 258, 40, 358,
677 40, 259, 40, 361, 354, 260, 260, 259, 356, 356,
678 356, 356, 40, 40, 355, 356, 356, 356, 356, 262,
679 262, 262, 262, 40, 262, 262, 262, 262, 40, 357,
680 359, 40, 40, 40, 40, 40, 40, 40, 40, 362,
681 40, 366, 40, 40, 40, 40, 40, 40, 360, 371,
682 365, 367, 374, 376, 40, 370, 363, 364, 369, 40,
684 40, 40, 372, 375, 368, 40, 373, 40, 40, 40,
685 40, 40, 383, 40, 40, 40, 40, 384, 40, 40,
686 40, 40, 377, 378, 382, 381, 40, 379, 388, 380,
687 40, 385, 386, 387, 389, 391, 390, 394, 40, 392,
688 40, 393, 40, 40, 40, 40, 40, 40, 40, 397,
689 399, 40, 40, 395, 401, 398, 396, 403, 40, 40,
690 405, 40, 407, 40, 400, 40, 411, 408, 402, 406,
691 410, 404, 40, 409, 412, 40, 40, 40, 40, 40,
692 40, 40, 414, 40, 40, 415, 40, 413, 416, 420,
693 417, 418, 40, 419, 421, 40, 40, 356, 356, 356,
695 356, 40, 40, 40, 422, 425, 428, 423, 40, 427,
696 429, 40, 40, 432, 40, 424, 40, 426, 431, 433,
697 40, 434, 40, 40, 40, 430, 436, 40, 40, 40,
698 40, 40, 40, 439, 40, 435, 40, 443, 444, 40,
699 40, 437, 438, 40, 440, 445, 442, 446, 448, 40,
700 40, 441, 40, 447, 40, 449, 40, 40, 40, 450,
701 40, 40, 40, 454, 40, 457, 456, 452, 40, 458,
702 459, 453, 451, 455, 40, 461, 40, 460, 40, 40,
703 40, 40, 462, 40, 40, 40, 40, 40, 465, 40,
704 40, 464, 467, 469, 472, 40, 40, 463, 466, 40,
706 475, 477, 470, 473, 468, 40, 40, 40, 471, 474,
707 40, 40, 476, 478, 40, 40, 40, 40, 483, 480,
708 40, 40, 479, 40, 485, 40, 40, 482, 40, 40,
709 481, 40, 489, 490, 40, 487, 492, 40, 486, 488,
710 494, 493, 484, 491, 40, 40, 495, 499, 40, 496,
711 40, 40, 498, 40, 40, 40, 40, 497, 40, 40,
712 502, 40, 40, 503, 40, 500, 505, 501, 504, 508,
713 40, 506, 509, 40, 40, 40, 40, 40, 40, 510,
714 507, 40, 40, 40, 40, 517, 518, 511, 512, 40,
715 516, 40, 40, 520, 513, 514, 40, 521, 519, 40,
717 523, 40, 40, 40, 522, 527, 524, 528, 529, 40,
718 530, 40, 525, 40, 40, 40, 532, 526, 40, 40,
719 40, 40, 531, 40, 534, 40, 40, 40, 40, 538,
720 539, 547, 40, 40, 533, 542, 544, 40, 535, 40,
721 540, 536, 537, 546, 541, 543, 545, 40, 40, 40,
722 550, 40, 40, 549, 548, 40, 551, 552, 553, 40,
723 555, 40, 40, 40, 40, 40, 40, 40, 40, 558,
724 40, 562, 40, 564, 554, 556, 40, 560, 40, 40,
725 561, 40, 563, 40, 565, 40, 559, 40, 566, 40,
726 557, 40, 569, 40, 570, 567, 573, 40, 40, 40,
728 40, 568, 571, 40, 574, 40, 575, 577, 576, 40,
729 572, 40, 579, 40, 582, 40, 40, 580, 584, 40,
730 578, 581, 40, 40, 583, 40, 585, 40, 40, 40,
731 40, 40, 586, 591, 592, 593, 40, 587, 40, 40,
732 588, 40, 589, 597, 590, 40, 40, 598, 596, 40,
733 40, 40, 40, 595, 40, 40, 40, 40, 594, 40,
734 599, 37, 37, 37, 37, 39, 39, 50, 40, 50,
735 50, 40, 40, 40, 40, 40, 40, 40, 40, 40,
736 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
737 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
739 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
740 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
741 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
742 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
743 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
744 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
745 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
746 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
747 257, 40, 40, 40, 40, 40, 133, 40, 38, 600,
748 3, 600, 600, 600, 600, 600, 600, 600, 600, 600,
750 600, 600, 600, 600, 600, 600, 600, 600, 600, 600,
751 600, 600, 600, 600, 600, 600, 600, 600, 600, 600,
752 600, 600, 600, 600, 600, 600, 600, 600, 600, 600,
756 static yyconst short int yy_chk[1335] =
758 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
759 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
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, 9, 58, 9, 9, 9, 9, 10,
763 10, 10, 10, 11, 11, 11, 11, 11, 12, 489,
764 20, 63, 58, 12, 13, 13, 13, 13, 13, 13,
765 14, 14, 14, 14, 14, 14, 16, 20, 46, 17,
766 20, 26, 63, 46, 16, 489, 92, 20, 17, 54,
767 26, 16, 17, 16, 18, 16, 13, 17, 16, 18,
769 17, 18, 19, 61, 22, 26, 92, 19, 54, 24,
770 61, 19, 18, 22, 24, 19, 18, 19, 23, 22,
771 19, 21, 24, 64, 29, 23, 21, 24, 21, 21,
772 34, 24, 25, 29, 23, 23, 21, 25, 36, 34,
773 21, 28, 21, 33, 35, 35, 64, 36, 33, 31,
774 25, 56, 51, 28, 31, 217, 25, 27, 52, 28,
775 51, 33, 56, 35, 28, 217, 27, 31, 27, 74,
776 31, 52, 27, 52, 27, 103, 27, 31, 27, 30,
777 53, 55, 74, 30, 42, 42, 42, 42, 53, 30,
778 60, 30, 30, 55, 30, 30, 30, 55, 30, 43,
780 43, 43, 43, 103, 30, 60, 30, 30, 66, 30,
781 32, 62, 60, 69, 32, 44, 44, 44, 44, 44,
782 32, 69, 32, 32, 68, 32, 62, 32, 62, 32,
783 78, 32, 81, 66, 67, 32, 32, 45, 45, 45,
784 45, 45, 45, 47, 47, 47, 47, 47, 68, 67,
785 47, 81, 130, 78, 130, 605, 47, 48, 48, 48,
786 48, 48, 48, 49, 49, 49, 49, 49, 57, 49,
787 49, 65, 49, 49, 49, 49, 49, 49, 65, 57,
788 71, 87, 72, 73, 75, 76, 77, 71, 79, 80,
789 65, 57, 82, 84, 76, 77, 87, 72, 603, 73,
791 86, 83, 75, 71, 72, 80, 79, 83, 76, 89,
792 84, 88, 86, 85, 82, 82, 84, 82, 85, 88,
793 91, 96, 93, 94, 89, 95, 96, 98, 97, 99,
794 85, 93, 94, 100, 95, 91, 97, 101, 102, 104,
795 98, 105, 99, 108, 117, 93, 94, 599, 105, 106,
796 110, 108, 104, 101, 100, 107, 105, 111, 106, 110,
797 101, 112, 109, 117, 105, 102, 108, 112, 105, 113,
798 107, 109, 106, 107, 114, 111, 107, 116, 118, 107,
799 119, 122, 113, 120, 129, 109, 155, 114, 121, 129,
800 116, 123, 131, 119, 155, 114, 125, 121, 122, 132,
802 123, 116, 198, 120, 122, 125, 118, 126, 127, 123,
803 142, 121, 127, 131, 123, 124, 128, 143, 145, 126,
804 132, 142, 198, 124, 124, 146, 132, 145, 124, 128,
805 153, 128, 222, 124, 148, 143, 124, 135, 135, 135,
806 135, 124, 136, 136, 136, 136, 146, 148, 222, 136,
807 151, 152, 159, 153, 150, 136, 138, 138, 138, 138,
808 138, 150, 156, 138, 160, 151, 152, 159, 167, 138,
809 139, 139, 157, 139, 139, 139, 139, 139, 158, 160,
810 162, 157, 163, 158, 156, 164, 165, 166, 163, 162,
811 167, 168, 169, 162, 170, 165, 166, 171, 164, 172,
813 173, 174, 171, 175, 177, 178, 179, 176, 166, 181,
814 174, 169, 175, 176, 168, 179, 180, 174, 173, 170,
815 178, 173, 182, 177, 183, 180, 172, 181, 184, 185,
816 186, 182, 187, 188, 189, 191, 202, 185, 183, 180,
817 201, 186, 206, 207, 249, 209, 219, 597, 188, 249,
818 191, 184, 208, 187, 209, 211, 215, 201, 189, 202,
819 205, 205, 205, 205, 219, 206, 205, 205, 207, 205,
820 205, 205, 205, 205, 205, 208, 210, 215, 211, 218,
821 223, 225, 226, 227, 228, 210, 230, 210, 218, 229,
822 231, 210, 232, 210, 227, 230, 236, 226, 229, 239,
824 237, 223, 241, 228, 225, 243, 229, 246, 247, 248,
825 596, 241, 245, 231, 252, 250, 239, 232, 237, 236,
826 246, 245, 243, 250, 247, 251, 255, 248, 252, 253,
827 251, 256, 264, 253, 258, 258, 258, 258, 268, 264,
828 595, 258, 593, 268, 255, 259, 259, 258, 259, 259,
829 259, 259, 263, 265, 256, 260, 260, 260, 260, 261,
830 261, 261, 261, 261, 262, 262, 262, 262, 262, 263,
831 265, 267, 272, 273, 274, 275, 276, 278, 277, 272,
832 280, 276, 279, 282, 281, 283, 286, 284, 267, 281,
833 275, 277, 284, 286, 285, 280, 273, 274, 279, 289,
835 290, 292, 282, 285, 278, 291, 283, 296, 298, 295,
836 299, 300, 296, 312, 302, 301, 591, 298, 304, 303,
837 305, 309, 289, 290, 295, 292, 310, 291, 302, 291,
838 313, 299, 300, 301, 303, 305, 304, 312, 314, 309,
839 316, 310, 318, 319, 320, 321, 325, 590, 322, 316,
840 319, 323, 326, 313, 321, 318, 314, 322, 327, 331,
841 323, 330, 326, 328, 320, 333, 331, 327, 321, 325,
842 330, 322, 334, 328, 333, 336, 338, 346, 341, 342,
843 344, 343, 336, 348, 345, 338, 349, 334, 341, 345,
844 342, 343, 351, 344, 346, 353, 354, 356, 356, 356,
846 356, 358, 359, 361, 348, 353, 358, 349, 363, 354,
847 359, 362, 364, 363, 366, 351, 365, 353, 362, 364,
848 367, 365, 368, 369, 370, 361, 367, 371, 372, 373,
849 374, 376, 379, 370, 380, 366, 381, 374, 376, 382,
850 383, 368, 369, 384, 371, 379, 373, 380, 382, 385,
851 386, 372, 387, 381, 388, 383, 390, 391, 392, 384,
852 393, 394, 396, 388, 398, 392, 391, 386, 395, 393,
853 394, 387, 385, 390, 399, 396, 407, 395, 408, 409,
854 411, 412, 398, 416, 413, 419, 422, 420, 408, 423,
855 426, 407, 411, 413, 420, 421, 425, 399, 409, 424,
857 423, 425, 416, 421, 412, 427, 429, 430, 419, 422,
858 432, 433, 424, 426, 434, 435, 436, 437, 433, 429,
859 443, 438, 427, 589, 435, 448, 460, 432, 442, 447,
860 430, 450, 442, 442, 453, 437, 447, 451, 436, 438,
861 450, 448, 434, 443, 452, 455, 451, 460, 461, 452,
862 462, 464, 455, 465, 472, 471, 476, 453, 477, 479,
863 464, 478, 480, 465, 482, 461, 472, 462, 471, 478,
864 484, 476, 479, 487, 488, 490, 491, 493, 495, 480,
865 477, 494, 496, 497, 499, 491, 493, 482, 484, 500,
866 490, 498, 502, 495, 487, 488, 503, 496, 494, 507,
868 498, 506, 504, 505, 497, 503, 499, 504, 505, 508,
869 506, 509, 500, 510, 512, 517, 508, 502, 513, 514,
870 515, 519, 507, 518, 510, 529, 520, 526, 528, 515,
871 517, 529, 524, 535, 509, 520, 526, 533, 512, 527,
872 518, 513, 514, 528, 519, 524, 527, 531, 532, 539,
873 533, 540, 538, 532, 531, 541, 535, 538, 539, 542,
874 541, 543, 544, 545, 546, 547, 548, 549, 550, 544,
875 552, 548, 553, 550, 540, 542, 554, 546, 555, 558,
876 547, 560, 549, 556, 552, 557, 545, 561, 553, 562,
877 543, 563, 556, 564, 557, 554, 561, 567, 566, 568,
879 569, 555, 558, 571, 562, 572, 563, 566, 564, 574,
880 560, 575, 568, 576, 572, 577, 578, 569, 575, 580,
881 567, 571, 579, 581, 574, 582, 576, 583, 584, 585,
882 586, 588, 577, 582, 583, 584, 592, 578, 594, 598,
883 579, 587, 580, 592, 581, 573, 570, 594, 588, 565,
884 559, 551, 537, 586, 536, 534, 530, 525, 585, 523,
885 598, 601, 601, 601, 601, 602, 602, 604, 522, 604,
886 604, 521, 516, 511, 501, 492, 486, 485, 483, 481,
887 475, 474, 473, 470, 469, 468, 467, 466, 463, 459,
888 458, 457, 456, 454, 449, 446, 445, 444, 441, 440,
890 439, 431, 428, 418, 417, 415, 414, 410, 406, 405,
891 404, 403, 402, 401, 400, 397, 389, 378, 377, 375,
892 360, 357, 355, 352, 350, 347, 340, 339, 337, 335,
893 332, 329, 324, 317, 311, 308, 307, 306, 297, 294,
894 293, 288, 287, 271, 270, 269, 266, 254, 244, 242,
895 240, 238, 235, 234, 233, 224, 221, 220, 216, 214,
896 213, 212, 204, 203, 200, 199, 197, 196, 195, 194,
897 193, 192, 190, 161, 154, 149, 147, 144, 141, 137,
898 133, 115, 90, 70, 59, 39, 37, 8, 7, 3,
899 600, 600, 600, 600, 600, 600, 600, 600, 600, 600,
901 600, 600, 600, 600, 600, 600, 600, 600, 600, 600,
902 600, 600, 600, 600, 600, 600, 600, 600, 600, 600,
903 600, 600, 600, 600, 600, 600, 600, 600, 600, 600,
907 static yy_state_type yy_state_buf[YY_BUF_SIZE + 2], *yy_state_ptr;
908 static char *yy_full_match;
912 *yy_cp = yy_hold_char; /* undo effects of setting up yytext */ \
913 yy_cp = yy_full_match; /* restore poss. backed-over text */ \
917 #define yymore() yymore_used_but_not_detected
918 #define YY_MORE_ADJ 0
919 #define YY_RESTORE_YY_MORE_OFFSET
921 #line 1 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
923 /*===-- UpgradeLexer.l - Scanner for 1.9 assembly files --------*- C++ -*--===//
925 // The LLVM Compiler Infrastructure
927 // This file was developed by Reid Spencer and is distributed under the
928 // University of Illinois Open Source License. See LICENSE.TXT for details.
930 //===----------------------------------------------------------------------===//
932 // This file implements the flex scanner for LLVM 1.9 assembly languages files.
934 //===----------------------------------------------------------------------===*/
935 #define YY_NEVER_INTERACTIVE 1
936 #line 28 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
938 #include "ParserInternals.h"
939 #include "UpgradeParser.h"
943 #define YY_INPUT(buf,result,max_size) \
945 if (LexInput->good() && !LexInput->eof()) { \
946 LexInput->read(buf,max_size); \
947 result = LexInput->gcount(); \
954 // Construct a token value for a non-obsolete token
955 #define RET_TOK(sym) \
956 Upgradelval.String = new std::string(yytext); \
959 #define RET_TY(sym,OldTY,NewTY,sign) \
960 Upgradelval.Type.newTy = new std::string(NewTY); \
961 Upgradelval.Type.oldTy = OldTY; \
962 Upgradelval.Type.elemTy = VoidTy; \
965 #define YY_NEVER_INTERACTIVE 1
966 /* Comments start with a ; and go till end of line */
967 /* Variable(Value) identifiers start with a % sign */
968 /* Label identifiers end with a colon */
969 /* Quoted names can contain any character except " and \ */
970 /* [PN]Integer: match positive and negative literal integer values that
971 * are preceeded by a '%' character. These represent unnamed variable slots.
973 /* E[PN]Integer: match positive and negative literal integer values */
974 /* FPConstant - A Floating point constant.
976 /* HexFPConstant - Floating point constant represented in IEEE format as a
977 * hexadecimal number for when exponential notation is not precise enough.
979 /* HexIntConstant - Hexadecimal constant generated by the CFE to avoid forcing
980 * it to deal with 64 bit numbers.
982 #line 983 "UpgradeLexer.cpp"
984 /* Macros after this point can all be overridden by user definitions in
988 #ifndef YY_SKIP_YYWRAP
990 extern "C" int yywrap YY_PROTO(( void ));
992 extern int yywrap YY_PROTO(( void ));
997 static inline void yyunput YY_PROTO(( int c, char *buf_ptr ));
1001 static void yy_flex_strncpy YY_PROTO(( char *, yyconst char *, int ));
1004 #ifdef YY_NEED_STRLEN
1005 static int yy_flex_strlen YY_PROTO(( yyconst char * ));
1010 static int yyinput YY_PROTO(( void ));
1012 static int input YY_PROTO(( void ));
1017 static int yy_start_stack_ptr = 0;
1018 static int yy_start_stack_depth = 0;
1019 static int *yy_start_stack = 0;
1020 #ifndef YY_NO_PUSH_STATE
1021 static void yy_push_state YY_PROTO(( int new_state ));
1023 #ifndef YY_NO_POP_STATE
1024 static void yy_pop_state YY_PROTO(( void ));
1026 #ifndef YY_NO_TOP_STATE
1027 static int yy_top_state YY_PROTO(( void ));
1031 #define YY_NO_PUSH_STATE 1
1032 #define YY_NO_POP_STATE 1
1033 #define YY_NO_TOP_STATE 1
1036 #ifdef YY_MALLOC_DECL
1044 /* Just try to get by without declaring the routines. This will fail
1045 * miserably on non-ANSI systems for which sizeof(size_t) != sizeof(int)
1046 * or sizeof(void*) != sizeof(int).
1051 /* Amount of stuff to slurp up with each read. */
1052 #ifndef YY_READ_BUF_SIZE
1053 #define YY_READ_BUF_SIZE 8192
1056 /* Copy whatever the last rule matched to the standard output. */
1059 /* This used to be an fputs(), but since the string might contain NUL's,
1060 * we now use fwrite().
1062 #define ECHO (void) fwrite( yytext, yyleng, 1, yyout )
1065 /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
1066 * is returned in "result".
1069 #define YY_INPUT(buf,result,max_size) \
1070 if ( yy_current_buffer->yy_is_interactive ) \
1073 for ( n = 0; n < max_size && \
1074 (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
1075 buf[n] = (char) c; \
1077 buf[n++] = (char) c; \
1078 if ( c == EOF && ferror( yyin ) ) \
1079 YY_FATAL_ERROR( "input in flex scanner failed" ); \
1082 else if ( ((result = fread( buf, 1, max_size, yyin )) == 0) \
1083 && ferror( yyin ) ) \
1084 YY_FATAL_ERROR( "input in flex scanner failed" );
1087 /* No semi-colon after return; correct usage is to write "yyterminate();" -
1088 * we don't want an extra ';' after the "return" because that will cause
1089 * some compilers to complain about unreachable statements.
1092 #define yyterminate() return YY_NULL
1095 /* Number of entries by which start-condition stack grows. */
1096 #ifndef YY_START_STACK_INCR
1097 #define YY_START_STACK_INCR 25
1100 /* Report a fatal error. */
1101 #ifndef YY_FATAL_ERROR
1102 #define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
1105 /* Default declaration of generated scanner - a define so the user can
1106 * easily add parameters.
1109 #define YY_DECL int yylex YY_PROTO(( void ))
1112 /* Code executed at the beginning of each rule, after yytext and yyleng
1115 #ifndef YY_USER_ACTION
1116 #define YY_USER_ACTION
1119 /* Code executed at the end of each rule. */
1121 #define YY_BREAK break;
1124 #define YY_RULE_SETUP \
1129 register yy_state_type yy_current_state;
1130 register char *yy_cp = NULL, *yy_bp = NULL;
1131 register int yy_act;
1133 #line 99 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1136 #line 1137 "UpgradeLexer.cpp"
1147 yy_start = 1; /* first start state */
1155 if ( ! yy_current_buffer )
1157 yy_create_buffer( yyin, YY_BUF_SIZE );
1159 yy_load_buffer_state();
1162 while ( 1 ) /* loops until end-of-file is reached */
1166 /* Support of yytext. */
1167 *yy_cp = yy_hold_char;
1169 /* yy_bp points to the position in yy_ch_buf of the start of
1174 yy_current_state = yy_start;
1175 yy_state_ptr = yy_state_buf;
1176 *yy_state_ptr++ = yy_current_state;
1180 register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
1181 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1183 yy_current_state = (int) yy_def[yy_current_state];
1184 if ( yy_current_state >= 601 )
1185 yy_c = yy_meta[(unsigned int) yy_c];
1187 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
1188 *yy_state_ptr++ = yy_current_state;
1191 while ( yy_current_state != 600 );
1194 yy_current_state = *--yy_state_ptr;
1195 yy_lp = yy_accept[yy_current_state];
1196 find_rule: /* we branch to this label when backing up */
1197 for ( ; ; ) /* until we find what rule we matched */
1199 if ( yy_lp && yy_lp < yy_accept[yy_current_state + 1] )
1201 yy_act = yy_acclist[yy_lp];
1203 yy_full_match = yy_cp;
1208 yy_current_state = *--yy_state_ptr;
1209 yy_lp = yy_accept[yy_current_state];
1212 YY_DO_BEFORE_ACTION;
1214 if ( yy_act != YY_END_OF_BUFFER )
1217 for ( yyl = 0; yyl < yyleng; ++yyl )
1218 if ( yytext[yyl] == '\n' )
1222 do_action: /* This label is used only to access EOF actions. */
1226 { /* beginning of action switch */
1229 #line 101 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1230 { /* Ignore comments for now */ }
1234 #line 103 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1235 { RET_TOK( BEGINTOK); }
1239 #line 104 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1240 { RET_TOK( ENDTOK); }
1244 #line 105 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1245 { RET_TOK( TRUETOK); }
1249 #line 106 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1250 { RET_TOK( FALSETOK); }
1254 #line 107 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1255 { RET_TOK( DECLARE); }
1259 #line 108 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1260 { RET_TOK( GLOBAL); }
1264 #line 109 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1265 { RET_TOK( CONSTANT); }
1269 #line 110 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1270 { RET_TOK( INTERNAL); }
1274 #line 111 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1275 { RET_TOK( LINKONCE); }
1279 #line 112 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1284 #line 113 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1285 { RET_TOK( APPENDING); }
1289 #line 114 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1290 { RET_TOK( DLLIMPORT); }
1294 #line 115 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1295 { RET_TOK( DLLEXPORT); }
1299 #line 116 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1300 { RET_TOK( EXTERN_WEAK); }
1304 #line 117 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1305 { RET_TOK( EXTERNAL); }
1309 #line 118 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1310 { RET_TOK( UNINITIALIZED); } // alias for external
1314 #line 119 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1315 { RET_TOK( IMPLEMENTATION); }
1319 #line 120 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1320 { RET_TOK( ZEROINITIALIZER); }
1324 #line 121 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1325 { RET_TOK( DOTDOTDOT); }
1329 #line 122 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1330 { RET_TOK( UNDEF); }
1334 #line 123 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1335 { RET_TOK( NULL_TOK); }
1339 #line 124 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1344 #line 125 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1349 #line 126 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1350 { RET_TOK( TARGET); }
1354 #line 127 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1355 { RET_TOK( TRIPLE); }
1359 #line 128 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1360 { RET_TOK( DEPLIBS); }
1364 #line 129 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1365 { RET_TOK( ENDIAN); }
1369 #line 130 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1370 { RET_TOK( POINTERSIZE); }
1374 #line 131 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1375 { RET_TOK( DATALAYOUT); }
1379 #line 132 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1380 { RET_TOK( LITTLE); }
1384 #line 133 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1389 #line 134 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1390 { RET_TOK( VOLATILE); }
1394 #line 135 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1395 { RET_TOK( ALIGN); }
1399 #line 136 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1400 { RET_TOK( SECTION); }
1404 #line 137 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1405 { RET_TOK( MODULE); }
1409 #line 138 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1410 { RET_TOK( ASM_TOK); }
1414 #line 139 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1415 { RET_TOK( SIDEEFFECT); }
1419 #line 141 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1420 { RET_TOK( CC_TOK); }
1424 #line 142 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1425 { RET_TOK( CCC_TOK); }
1429 #line 143 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1430 { RET_TOK( CSRETCC_TOK); }
1434 #line 144 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1435 { RET_TOK( FASTCC_TOK); }
1439 #line 145 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1440 { RET_TOK( COLDCC_TOK); }
1444 #line 146 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1445 { RET_TOK( X86_STDCALLCC_TOK); }
1449 #line 147 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1450 { RET_TOK( X86_FASTCALLCC_TOK); }
1454 #line 149 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1455 { RET_TY(VOID,VoidTy,"void",false); }
1459 #line 150 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1460 { RET_TY(BOOL,BoolTy,"bool",false); }
1464 #line 151 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1465 { RET_TY(SBYTE,SByteTy,"sbyte",true); }
1469 #line 152 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1470 { RET_TY(UBYTE,UByteTy,"ubyte",false); }
1474 #line 153 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1475 { RET_TY(SHORT,ShortTy,"short",true); }
1479 #line 154 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1480 { RET_TY(USHORT,UShortTy,"ushort",false); }
1484 #line 155 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1485 { RET_TY(INT,IntTy,"int",true); }
1489 #line 156 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1490 { RET_TY(UINT,UIntTy,"uint",false); }
1494 #line 157 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1495 { RET_TY(LONG,LongTy,"long",true); }
1499 #line 158 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1500 { RET_TY(ULONG,ULongTy,"ulong",false); }
1504 #line 159 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1505 { RET_TY(FLOAT,FloatTy,"float",false); }
1509 #line 160 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1510 { RET_TY(DOUBLE,DoubleTy,"double",false); }
1514 #line 161 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1515 { RET_TY(LABEL,LabelTy,"label",false); }
1519 #line 162 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1520 { RET_TOK(OPAQUE); }
1524 #line 163 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1529 #line 165 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1534 #line 166 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1539 #line 167 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1544 #line 168 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1549 #line 169 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1554 #line 170 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1559 #line 171 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1564 #line 172 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1569 #line 173 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1574 #line 174 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1579 #line 175 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1584 #line 176 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1589 #line 177 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1594 #line 178 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1599 #line 179 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1600 { RET_TOK( SETNE); }
1604 #line 180 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1605 { RET_TOK( SETEQ); }
1609 #line 181 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1610 { RET_TOK( SETLT); }
1614 #line 182 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1615 { RET_TOK( SETGT); }
1619 #line 183 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1620 { RET_TOK( SETLE); }
1624 #line 184 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1625 { RET_TOK( SETGE); }
1629 #line 185 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1634 #line 186 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1639 #line 187 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1644 #line 188 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1649 #line 189 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1654 #line 190 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1659 #line 191 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1664 #line 192 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1669 #line 193 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1674 #line 194 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1679 #line 195 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1684 #line 196 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1689 #line 197 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1694 #line 198 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1699 #line 199 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1704 #line 200 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1709 #line 201 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1714 #line 202 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1719 #line 203 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1724 #line 204 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1729 #line 205 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1734 #line 206 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1739 #line 208 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1740 { RET_TOK( PHI_TOK); }
1744 #line 209 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1749 #line 210 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1754 #line 211 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1755 { RET_TOK( TRUNC); }
1759 #line 212 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1764 #line 213 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1769 #line 214 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1770 { RET_TOK( FPTRUNC); }
1774 #line 215 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1775 { RET_TOK( FPEXT); }
1779 #line 216 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1780 { RET_TOK( FPTOUI); }
1784 #line 217 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1785 { RET_TOK( FPTOSI); }
1789 #line 218 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1790 { RET_TOK( UITOFP); }
1794 #line 219 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1795 { RET_TOK( SITOFP); }
1799 #line 220 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1800 { RET_TOK( PTRTOINT); }
1804 #line 221 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1805 { RET_TOK( INTTOPTR); }
1809 #line 222 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1810 { RET_TOK( BITCAST); }
1814 #line 223 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1815 { RET_TOK( SELECT); }
1819 #line 224 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1824 #line 225 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1829 #line 226 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1834 #line 227 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1839 #line 228 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1840 { RET_TOK( VAARG); }
1844 #line 229 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1849 #line 230 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1854 #line 231 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1855 { RET_TOK( SWITCH); }
1859 #line 232 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1860 { RET_TOK( INVOKE); }
1864 #line 233 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1865 { RET_TOK( UNWIND); }
1869 #line 234 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1870 { RET_TOK( EXCEPT); } // alias for unwind
1874 #line 235 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1875 { RET_TOK( UNREACHABLE); }
1879 #line 237 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1880 { RET_TOK( MALLOC); }
1884 #line 238 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1885 { RET_TOK( ALLOCA); }
1889 #line 239 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1894 #line 240 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1899 #line 241 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1900 { RET_TOK( STORE); }
1904 #line 242 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1905 { RET_TOK( GETELEMENTPTR); }
1909 #line 244 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1910 { RET_TOK( EXTRACTELEMENT); }
1914 #line 245 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1915 { RET_TOK( INSERTELEMENT); }
1919 #line 246 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1920 { RET_TOK( SHUFFLEVECTOR); }
1924 #line 249 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1925 { RET_TOK( VAR_ID); }
1929 #line 250 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1930 { RET_TOK( LABELSTR); }
1934 #line 251 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1935 { RET_TOK( LABELSTR); }
1939 #line 252 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1940 { RET_TOK( STRINGCONSTANT ); }
1944 #line 253 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1945 { RET_TOK( EUINT64VAL ); }
1949 #line 254 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1950 { RET_TOK( ESINT64VAL ); }
1954 #line 255 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1955 { RET_TOK( yytext[0] == 's' ? ESINT64VAL : EUINT64VAL ); }
1959 #line 256 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1960 { RET_TOK( UINTVAL); }
1964 #line 257 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1965 { RET_TOK( SINTVAL); }
1969 #line 258 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1970 { RET_TOK( FPVAL); }
1974 #line 259 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1975 { RET_TOK( FPVAL); }
1977 case YY_STATE_EOF(INITIAL):
1978 #line 260 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1980 /* Make sure to free the internal buffers for flex when we are
1981 * done reading our input!
1983 yy_delete_buffer(YY_CURRENT_BUFFER);
1989 #line 268 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1990 { /* Ignore whitespace */ }
1994 #line 269 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1995 { return yytext[0]; }
1999 #line 271 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
2000 YY_FATAL_ERROR( "flex scanner jammed" );
2002 #line 2003 "UpgradeLexer.cpp"
2004 case YY_END_OF_BUFFER:
2006 /* Amount of text matched not including the EOB char. */
2007 int yy_amount_of_matched_text = (int) (yy_cp - yytext_ptr) - 1;
2009 /* Undo the effects of YY_DO_BEFORE_ACTION. */
2010 *yy_cp = yy_hold_char;
2011 YY_RESTORE_YY_MORE_OFFSET
2013 if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_NEW )
2015 /* We're scanning a new file or input source. It's
2016 * possible that this happened because the user
2017 * just pointed yyin at a new source and called
2018 * yylex(). If so, then we have to assure
2019 * consistency between yy_current_buffer and our
2020 * globals. Here is the right place to do so, because
2021 * this is the first action (other than possibly a
2022 * back-up) that will match for the new input source.
2024 yy_n_chars = yy_current_buffer->yy_n_chars;
2025 yy_current_buffer->yy_input_file = yyin;
2026 yy_current_buffer->yy_buffer_status = YY_BUFFER_NORMAL;
2029 /* Note that here we test for yy_c_buf_p "<=" to the position
2030 * of the first EOB in the buffer, since yy_c_buf_p will
2031 * already have been incremented past the NUL character
2032 * (since all states make transitions on EOB to the
2033 * end-of-buffer state). Contrast this with the test
2036 if ( yy_c_buf_p <= &yy_current_buffer->yy_ch_buf[yy_n_chars] )
2037 { /* This was really a NUL. */
2038 yy_state_type yy_next_state;
2040 yy_c_buf_p = yytext_ptr + yy_amount_of_matched_text;
2042 yy_current_state = yy_get_previous_state();
2044 /* Okay, we're now positioned to make the NUL
2045 * transition. We couldn't have
2046 * yy_get_previous_state() go ahead and do it
2047 * for us because it doesn't know how to deal
2048 * with the possibility of jamming (and we don't
2049 * want to build jamming into it because then it
2050 * will run more slowly).
2053 yy_next_state = yy_try_NUL_trans( yy_current_state );
2055 yy_bp = yytext_ptr + YY_MORE_ADJ;
2057 if ( yy_next_state )
2059 /* Consume the NUL. */
2060 yy_cp = ++yy_c_buf_p;
2061 yy_current_state = yy_next_state;
2068 goto yy_find_action;
2072 else switch ( yy_get_next_buffer() )
2074 case EOB_ACT_END_OF_FILE:
2076 yy_did_buffer_switch_on_eof = 0;
2080 /* Note: because we've taken care in
2081 * yy_get_next_buffer() to have set up
2082 * yytext, we can now set up
2083 * yy_c_buf_p so that if some total
2084 * hoser (like flex itself) wants to
2085 * call the scanner after we return the
2086 * YY_NULL, it'll still work - another
2087 * YY_NULL will get returned.
2089 yy_c_buf_p = yytext_ptr + YY_MORE_ADJ;
2091 yy_act = YY_STATE_EOF(YY_START);
2097 if ( ! yy_did_buffer_switch_on_eof )
2103 case EOB_ACT_CONTINUE_SCAN:
2105 yytext_ptr + yy_amount_of_matched_text;
2107 yy_current_state = yy_get_previous_state();
2110 yy_bp = yytext_ptr + YY_MORE_ADJ;
2113 case EOB_ACT_LAST_MATCH:
2115 &yy_current_buffer->yy_ch_buf[yy_n_chars];
2117 yy_current_state = yy_get_previous_state();
2120 yy_bp = yytext_ptr + YY_MORE_ADJ;
2121 goto yy_find_action;
2128 "fatal flex scanner internal error--no action found" );
2129 } /* end of action switch */
2130 } /* end of scanning one token */
2131 } /* end of yylex */
2134 /* yy_get_next_buffer - try to read in a new buffer
2136 * Returns a code representing an action:
2137 * EOB_ACT_LAST_MATCH -
2138 * EOB_ACT_CONTINUE_SCAN - continue scanning from current position
2139 * EOB_ACT_END_OF_FILE - end of file
2142 static int yy_get_next_buffer()
2144 register char *dest = yy_current_buffer->yy_ch_buf;
2145 register char *source = yytext_ptr;
2146 register int number_to_move, i;
2149 if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] )
2151 "fatal flex scanner internal error--end of buffer missed" );
2153 if ( yy_current_buffer->yy_fill_buffer == 0 )
2154 { /* Don't try to fill the buffer, so this is an EOF. */
2155 if ( yy_c_buf_p - yytext_ptr - YY_MORE_ADJ == 1 )
2157 /* We matched a single character, the EOB, so
2158 * treat this as a final EOF.
2160 return EOB_ACT_END_OF_FILE;
2165 /* We matched some text prior to the EOB, first
2168 return EOB_ACT_LAST_MATCH;
2172 /* Try to read more data. */
2174 /* First move last chars to start of buffer. */
2175 number_to_move = (int) (yy_c_buf_p - yytext_ptr) - 1;
2177 for ( i = 0; i < number_to_move; ++i )
2178 *(dest++) = *(source++);
2180 if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_EOF_PENDING )
2181 /* don't do the read, it's not guaranteed to return an EOF,
2184 yy_current_buffer->yy_n_chars = yy_n_chars = 0;
2189 yy_current_buffer->yy_buf_size - number_to_move - 1;
2191 while ( num_to_read <= 0 )
2192 { /* Not enough room in the buffer - grow it. */
2193 #ifdef YY_USES_REJECT
2195 "input buffer overflow, can't enlarge buffer because scanner uses REJECT" );
2198 /* just a shorter name for the current buffer */
2199 YY_BUFFER_STATE b = yy_current_buffer;
2201 int yy_c_buf_p_offset =
2202 (int) (yy_c_buf_p - b->yy_ch_buf);
2204 if ( b->yy_is_our_buffer )
2206 int new_size = b->yy_buf_size * 2;
2208 if ( new_size <= 0 )
2209 b->yy_buf_size += b->yy_buf_size / 8;
2211 b->yy_buf_size *= 2;
2213 b->yy_ch_buf = (char *)
2214 /* Include room in for 2 EOB chars. */
2215 yy_flex_realloc( (void *) b->yy_ch_buf,
2216 b->yy_buf_size + 2 );
2219 /* Can't grow it, we don't own it. */
2222 if ( ! b->yy_ch_buf )
2224 "fatal error - scanner input buffer overflow" );
2226 yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset];
2228 num_to_read = yy_current_buffer->yy_buf_size -
2233 if ( num_to_read > YY_READ_BUF_SIZE )
2234 num_to_read = YY_READ_BUF_SIZE;
2236 /* Read in more data. */
2237 YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]),
2238 yy_n_chars, num_to_read );
2240 yy_current_buffer->yy_n_chars = yy_n_chars;
2243 if ( yy_n_chars == 0 )
2245 if ( number_to_move == YY_MORE_ADJ )
2247 ret_val = EOB_ACT_END_OF_FILE;
2253 ret_val = EOB_ACT_LAST_MATCH;
2254 yy_current_buffer->yy_buffer_status =
2255 YY_BUFFER_EOF_PENDING;
2260 ret_val = EOB_ACT_CONTINUE_SCAN;
2262 yy_n_chars += number_to_move;
2263 yy_current_buffer->yy_ch_buf[yy_n_chars] = YY_END_OF_BUFFER_CHAR;
2264 yy_current_buffer->yy_ch_buf[yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;
2266 yytext_ptr = &yy_current_buffer->yy_ch_buf[0];
2272 /* yy_get_previous_state - get the state just before the EOB char was reached */
2274 static yy_state_type yy_get_previous_state()
2276 register yy_state_type yy_current_state;
2277 register char *yy_cp;
2279 yy_current_state = yy_start;
2280 yy_state_ptr = yy_state_buf;
2281 *yy_state_ptr++ = yy_current_state;
2283 for ( yy_cp = yytext_ptr + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp )
2285 register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
2286 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
2288 yy_current_state = (int) yy_def[yy_current_state];
2289 if ( yy_current_state >= 601 )
2290 yy_c = yy_meta[(unsigned int) yy_c];
2292 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
2293 *yy_state_ptr++ = yy_current_state;
2296 return yy_current_state;
2300 /* yy_try_NUL_trans - try to make a transition on the NUL character
2303 * next_state = yy_try_NUL_trans( current_state );
2306 #ifdef YY_USE_PROTOS
2307 static yy_state_type yy_try_NUL_trans( yy_state_type yy_current_state )
2309 static yy_state_type yy_try_NUL_trans( yy_current_state )
2310 yy_state_type yy_current_state;
2313 register int yy_is_jam;
2315 register YY_CHAR yy_c = 1;
2316 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
2318 yy_current_state = (int) yy_def[yy_current_state];
2319 if ( yy_current_state >= 601 )
2320 yy_c = yy_meta[(unsigned int) yy_c];
2322 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
2323 yy_is_jam = (yy_current_state == 600);
2325 *yy_state_ptr++ = yy_current_state;
2327 return yy_is_jam ? 0 : yy_current_state;
2332 #ifdef YY_USE_PROTOS
2333 static inline void yyunput( int c, register char *yy_bp )
2335 static inline void yyunput( c, yy_bp )
2337 register char *yy_bp;
2340 register char *yy_cp = yy_c_buf_p;
2342 /* undo effects of setting up yytext */
2343 *yy_cp = yy_hold_char;
2345 if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
2346 { /* need to shift things up to make room */
2347 /* +2 for EOB chars. */
2348 register int number_to_move = yy_n_chars + 2;
2349 register char *dest = &yy_current_buffer->yy_ch_buf[
2350 yy_current_buffer->yy_buf_size + 2];
2351 register char *source =
2352 &yy_current_buffer->yy_ch_buf[number_to_move];
2354 while ( source > yy_current_buffer->yy_ch_buf )
2355 *--dest = *--source;
2357 yy_cp += (int) (dest - source);
2358 yy_bp += (int) (dest - source);
2359 yy_current_buffer->yy_n_chars =
2360 yy_n_chars = yy_current_buffer->yy_buf_size;
2362 if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
2363 YY_FATAL_ERROR( "flex scanner push-back overflow" );
2366 *--yy_cp = (char) c;
2372 yy_hold_char = *yy_cp;
2375 #endif /* ifndef YY_NO_UNPUT */
2380 static int yyinput()
2387 *yy_c_buf_p = yy_hold_char;
2389 if ( *yy_c_buf_p == YY_END_OF_BUFFER_CHAR )
2391 /* yy_c_buf_p now points to the character we want to return.
2392 * If this occurs *before* the EOB characters, then it's a
2393 * valid NUL; if not, then we've hit the end of the buffer.
2395 if ( yy_c_buf_p < &yy_current_buffer->yy_ch_buf[yy_n_chars] )
2396 /* This was really a NUL. */
2400 { /* need more input */
2401 int offset = yy_c_buf_p - yytext_ptr;
2404 switch ( yy_get_next_buffer() )
2406 case EOB_ACT_LAST_MATCH:
2407 /* This happens because yy_g_n_b()
2408 * sees that we've accumulated a
2409 * token and flags that we need to
2410 * try matching the token before
2411 * proceeding. But for input(),
2412 * there's no matching to consider.
2413 * So convert the EOB_ACT_LAST_MATCH
2414 * to EOB_ACT_END_OF_FILE.
2417 /* Reset buffer status. */
2422 case EOB_ACT_END_OF_FILE:
2427 if ( ! yy_did_buffer_switch_on_eof )
2436 case EOB_ACT_CONTINUE_SCAN:
2437 yy_c_buf_p = yytext_ptr + offset;
2443 c = *(unsigned char *) yy_c_buf_p; /* cast for 8-bit char's */
2444 *yy_c_buf_p = '\0'; /* preserve yytext */
2445 yy_hold_char = *++yy_c_buf_p;
2452 #endif /* YY_NO_INPUT */
2454 #ifdef YY_USE_PROTOS
2455 void yyrestart( FILE *input_file )
2457 void yyrestart( input_file )
2461 if ( ! yy_current_buffer )
2462 yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE );
2464 yy_init_buffer( yy_current_buffer, input_file );
2465 yy_load_buffer_state();
2469 #ifdef YY_USE_PROTOS
2470 void yy_switch_to_buffer( YY_BUFFER_STATE new_buffer )
2472 void yy_switch_to_buffer( new_buffer )
2473 YY_BUFFER_STATE new_buffer;
2476 if ( yy_current_buffer == new_buffer )
2479 if ( yy_current_buffer )
2481 /* Flush out information for old buffer. */
2482 *yy_c_buf_p = yy_hold_char;
2483 yy_current_buffer->yy_buf_pos = yy_c_buf_p;
2484 yy_current_buffer->yy_n_chars = yy_n_chars;
2487 yy_current_buffer = new_buffer;
2488 yy_load_buffer_state();
2490 /* We don't actually know whether we did this switch during
2491 * EOF (yywrap()) processing, but the only time this flag
2492 * is looked at is after yywrap() is called, so it's safe
2493 * to go ahead and always set it.
2495 yy_did_buffer_switch_on_eof = 1;
2499 #ifdef YY_USE_PROTOS
2500 void yy_load_buffer_state( void )
2502 void yy_load_buffer_state()
2505 yy_n_chars = yy_current_buffer->yy_n_chars;
2506 yytext_ptr = yy_c_buf_p = yy_current_buffer->yy_buf_pos;
2507 yyin = yy_current_buffer->yy_input_file;
2508 yy_hold_char = *yy_c_buf_p;
2512 #ifdef YY_USE_PROTOS
2513 YY_BUFFER_STATE yy_create_buffer( FILE *file, int size )
2515 YY_BUFFER_STATE yy_create_buffer( file, size )
2522 b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
2524 YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
2526 b->yy_buf_size = size;
2528 /* yy_ch_buf has to be 2 characters longer than the size given because
2529 * we need to put in 2 end-of-buffer characters.
2531 b->yy_ch_buf = (char *) yy_flex_alloc( b->yy_buf_size + 2 );
2532 if ( ! b->yy_ch_buf )
2533 YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
2535 b->yy_is_our_buffer = 1;
2537 yy_init_buffer( b, file );
2543 #ifdef YY_USE_PROTOS
2544 void yy_delete_buffer( YY_BUFFER_STATE b )
2546 void yy_delete_buffer( b )
2553 if ( b == yy_current_buffer )
2554 yy_current_buffer = (YY_BUFFER_STATE) 0;
2556 if ( b->yy_is_our_buffer )
2557 yy_flex_free( (void *) b->yy_ch_buf );
2559 yy_flex_free( (void *) b );
2564 #ifdef YY_USE_PROTOS
2565 void yy_init_buffer( YY_BUFFER_STATE b, FILE *file )
2567 void yy_init_buffer( b, file )
2574 yy_flush_buffer( b );
2576 b->yy_input_file = file;
2577 b->yy_fill_buffer = 1;
2579 #if YY_ALWAYS_INTERACTIVE
2580 b->yy_is_interactive = 1;
2582 #if YY_NEVER_INTERACTIVE
2583 b->yy_is_interactive = 0;
2585 b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
2591 #ifdef YY_USE_PROTOS
2592 void yy_flush_buffer( YY_BUFFER_STATE b )
2594 void yy_flush_buffer( b )
2604 /* We always need two end-of-buffer characters. The first causes
2605 * a transition to the end-of-buffer state. The second causes
2606 * a jam in that state.
2608 b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
2609 b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
2611 b->yy_buf_pos = &b->yy_ch_buf[0];
2614 b->yy_buffer_status = YY_BUFFER_NEW;
2616 if ( b == yy_current_buffer )
2617 yy_load_buffer_state();
2621 #ifndef YY_NO_SCAN_BUFFER
2622 #ifdef YY_USE_PROTOS
2623 YY_BUFFER_STATE yy_scan_buffer( char *base, yy_size_t size )
2625 YY_BUFFER_STATE yy_scan_buffer( base, size )
2633 base[size-2] != YY_END_OF_BUFFER_CHAR ||
2634 base[size-1] != YY_END_OF_BUFFER_CHAR )
2635 /* They forgot to leave room for the EOB's. */
2638 b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
2640 YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
2642 b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */
2643 b->yy_buf_pos = b->yy_ch_buf = base;
2644 b->yy_is_our_buffer = 0;
2645 b->yy_input_file = 0;
2646 b->yy_n_chars = b->yy_buf_size;
2647 b->yy_is_interactive = 0;
2649 b->yy_fill_buffer = 0;
2650 b->yy_buffer_status = YY_BUFFER_NEW;
2652 yy_switch_to_buffer( b );
2659 #ifndef YY_NO_SCAN_STRING
2660 #ifdef YY_USE_PROTOS
2661 YY_BUFFER_STATE yy_scan_string( yyconst char *yy_str )
2663 YY_BUFFER_STATE yy_scan_string( yy_str )
2664 yyconst char *yy_str;
2668 for ( len = 0; yy_str[len]; ++len )
2671 return yy_scan_bytes( yy_str, len );
2676 #ifndef YY_NO_SCAN_BYTES
2677 #ifdef YY_USE_PROTOS
2678 YY_BUFFER_STATE yy_scan_bytes( yyconst char *bytes, int len )
2680 YY_BUFFER_STATE yy_scan_bytes( bytes, len )
2681 yyconst char *bytes;
2690 /* Get memory for full buffer, including space for trailing EOB's. */
2692 buf = (char *) yy_flex_alloc( n );
2694 YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
2696 for ( i = 0; i < len; ++i )
2699 buf[len] = buf[len+1] = YY_END_OF_BUFFER_CHAR;
2701 b = yy_scan_buffer( buf, n );
2703 YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
2705 /* It's okay to grow etc. this buffer, and we should throw it
2706 * away when we're done.
2708 b->yy_is_our_buffer = 1;
2715 #ifndef YY_NO_PUSH_STATE
2716 #ifdef YY_USE_PROTOS
2717 static void yy_push_state( int new_state )
2719 static void yy_push_state( new_state )
2723 if ( yy_start_stack_ptr >= yy_start_stack_depth )
2727 yy_start_stack_depth += YY_START_STACK_INCR;
2728 new_size = yy_start_stack_depth * sizeof( int );
2730 if ( ! yy_start_stack )
2731 yy_start_stack = (int *) yy_flex_alloc( new_size );
2734 yy_start_stack = (int *) yy_flex_realloc(
2735 (void *) yy_start_stack, new_size );
2737 if ( ! yy_start_stack )
2739 "out of memory expanding start-condition stack" );
2742 yy_start_stack[yy_start_stack_ptr++] = YY_START;
2749 #ifndef YY_NO_POP_STATE
2750 static void yy_pop_state()
2752 if ( --yy_start_stack_ptr < 0 )
2753 YY_FATAL_ERROR( "start-condition stack underflow" );
2755 BEGIN(yy_start_stack[yy_start_stack_ptr]);
2760 #ifndef YY_NO_TOP_STATE
2761 static int yy_top_state()
2763 return yy_start_stack[yy_start_stack_ptr - 1];
2767 #ifndef YY_EXIT_FAILURE
2768 #define YY_EXIT_FAILURE 2
2771 #ifdef YY_USE_PROTOS
2772 static void yy_fatal_error( yyconst char msg[] )
2774 static void yy_fatal_error( msg )
2778 (void) fprintf( stderr, "%s\n", msg );
2779 exit( YY_EXIT_FAILURE );
2784 /* Redefine yyless() so it works in section 3 code. */
2790 /* Undo effects of setting up yytext. */ \
2791 yytext[yyleng] = yy_hold_char; \
2792 yy_c_buf_p = yytext + n; \
2793 yy_hold_char = *yy_c_buf_p; \
2794 *yy_c_buf_p = '\0'; \
2800 /* Internal utility routines. */
2803 #ifdef YY_USE_PROTOS
2804 static void yy_flex_strncpy( char *s1, yyconst char *s2, int n )
2806 static void yy_flex_strncpy( s1, s2, n )
2813 for ( i = 0; i < n; ++i )
2818 #ifdef YY_NEED_STRLEN
2819 #ifdef YY_USE_PROTOS
2820 static int yy_flex_strlen( yyconst char *s )
2822 static int yy_flex_strlen( s )
2827 for ( n = 0; s[n]; ++n )
2835 #ifdef YY_USE_PROTOS
2836 static void *yy_flex_alloc( yy_size_t size )
2838 static void *yy_flex_alloc( size )
2842 return (void *) malloc( size );
2845 #ifdef YY_USE_PROTOS
2846 static inline void *yy_flex_realloc( void *ptr, yy_size_t size )
2848 static inline void *yy_flex_realloc( ptr, size )
2853 /* The cast to (char *) in the following accommodates both
2854 * implementations that use char* generic pointers, and those
2855 * that use void* generic pointers. It works with the latter
2856 * because both ANSI C and C++ allow castless assignment from
2857 * any pointer type to void*, and deal with argument conversions
2858 * as though doing an assignment.
2860 return (void *) realloc( (char *) ptr, size );
2863 #ifdef YY_USE_PROTOS
2864 static void yy_flex_free( void *ptr )
2866 static void yy_flex_free( ptr )
2880 #line 271 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"