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 130
321 #define YY_END_OF_BUFFER 131
322 static yyconst short int yy_acclist[208] =
324 131, 129, 130, 128, 129, 130, 128, 130, 129, 130,
325 129, 130, 129, 130, 129, 130, 129, 130, 129, 130,
326 121, 129, 130, 121, 129, 130, 1, 129, 130, 129,
327 130, 129, 130, 129, 130, 129, 130, 129, 130, 129,
328 130, 129, 130, 129, 130, 129, 130, 129, 130, 129,
329 130, 129, 130, 129, 130, 129, 130, 129, 130, 129,
330 130, 129, 130, 129, 130, 129, 130, 129, 130, 129,
331 130, 120, 118, 117, 117, 124, 122, 126, 121, 1,
332 102, 38, 72, 22, 120, 117, 117, 125, 126, 19,
333 126, 127, 60, 71, 36, 31, 39, 63, 3, 51,
335 62, 80, 67, 101, 96, 97, 61, 73, 119, 126,
336 126, 98, 46, 81, 82, 66, 110, 70, 111, 53,
337 99, 21, 123, 65, 85, 69, 23, 4, 59, 64,
338 52, 68, 45, 11, 84, 126, 33, 2, 5, 55,
339 87, 57, 47, 75, 79, 77, 78, 76, 74, 49,
340 112, 83, 48, 54, 20, 109, 42, 56, 27, 106,
341 41, 89, 88, 7, 104, 30, 108, 35, 58, 95,
342 91, 103, 24, 25, 90, 105, 50, 100, 94, 40,
343 6, 26, 86, 34, 8, 16, 9, 93, 10, 92,
344 32, 12, 14, 13, 29, 37, 15, 28, 107, 113,
346 115, 116, 43, 114, 17, 44, 18
349 static yyconst short int yy_accept[557] =
351 1, 1, 1, 2, 4, 7, 9, 11, 13, 15,
352 17, 19, 21, 24, 27, 30, 32, 34, 36, 38,
353 40, 42, 44, 46, 48, 50, 52, 54, 56, 58,
354 60, 62, 64, 66, 68, 70, 72, 72, 73, 73,
355 74, 75, 76, 77, 77, 78, 78, 79, 80, 80,
356 81, 81, 81, 81, 81, 81, 81, 81, 81, 82,
357 82, 83, 83, 83, 83, 83, 83, 83, 83, 83,
358 83, 83, 83, 83, 83, 83, 83, 83, 83, 83,
359 83, 83, 83, 83, 83, 83, 83, 83, 83, 84,
360 84, 84, 84, 84, 84, 84, 84, 84, 84, 84,
362 84, 84, 84, 84, 84, 85, 85, 85, 85, 85,
363 85, 85, 85, 85, 85, 85, 85, 85, 85, 85,
364 85, 86, 87, 89, 90, 91, 92, 92, 93, 94,
365 94, 94, 95, 95, 95, 96, 96, 97, 97, 97,
366 97, 97, 98, 98, 98, 98, 98, 98, 98, 99,
367 99, 99, 100, 100, 100, 100, 100, 100, 100, 100,
368 100, 100, 100, 100, 100, 100, 101, 101, 101, 101,
369 101, 101, 101, 101, 101, 101, 102, 102, 102, 103,
370 103, 103, 104, 105, 105, 105, 105, 105, 105, 105,
371 105, 106, 106, 107, 107, 107, 107, 107, 107, 108,
373 108, 108, 108, 108, 108, 108, 108, 108, 108, 108,
374 108, 108, 108, 108, 108, 108, 108, 108, 108, 108,
375 108, 109, 109, 109, 110, 111, 111, 111, 111, 112,
376 112, 112, 112, 113, 113, 113, 114, 115, 116, 116,
377 116, 116, 116, 116, 116, 116, 116, 116, 116, 116,
378 116, 116, 116, 116, 117, 117, 117, 117, 117, 118,
379 119, 119, 119, 119, 119, 119, 119, 119, 119, 119,
380 119, 120, 121, 122, 122, 122, 123, 123, 123, 123,
381 124, 124, 125, 125, 125, 125, 125, 125, 125, 126,
382 126, 126, 126, 126, 127, 127, 127, 128, 128, 128,
384 129, 129, 130, 130, 131, 132, 132, 132, 132, 132,
385 132, 133, 133, 133, 134, 134, 135, 135, 135, 136,
386 137, 138, 138, 138, 139, 139, 139, 139, 139, 139,
387 139, 139, 139, 139, 139, 139, 139, 139, 139, 140,
388 140, 141, 142, 142, 142, 142, 142, 142, 142, 142,
389 142, 142, 142, 143, 143, 143, 143, 143, 143, 143,
390 143, 144, 144, 144, 145, 146, 147, 148, 149, 150,
391 151, 151, 151, 151, 152, 152, 152, 152, 153, 154,
392 154, 155, 156, 156, 156, 156, 156, 156, 156, 156,
393 156, 157, 157, 157, 158, 158, 158, 158, 158, 158,
395 158, 158, 159, 160, 161, 161, 161, 162, 163, 164,
396 164, 164, 165, 165, 165, 165, 165, 166, 166, 167,
397 168, 169, 170, 170, 170, 170, 171, 171, 171, 172,
398 173, 174, 175, 176, 176, 177, 178, 179, 179, 179,
399 179, 179, 179, 180, 180, 181, 181, 182, 183, 183,
400 183, 183, 183, 183, 184, 184, 184, 184, 184, 184,
401 184, 184, 184, 185, 185, 185, 185, 185, 185, 185,
402 185, 185, 186, 186, 186, 186, 186, 187, 187, 187,
403 187, 187, 188, 189, 190, 190, 191, 191, 191, 191,
404 192, 192, 192, 192, 193, 193, 194, 195, 195, 195,
406 195, 195, 195, 195, 195, 195, 195, 195, 195, 195,
407 196, 196, 196, 196, 196, 196, 196, 196, 197, 197,
408 197, 197, 197, 198, 198, 198, 198, 198, 199, 199,
409 200, 200, 200, 200, 200, 200, 200, 200, 200, 200,
410 200, 200, 200, 201, 201, 202, 203, 203, 204, 204,
411 205, 206, 207, 207, 208, 208
414 static yyconst int yy_ec[256] =
416 1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
417 1, 1, 2, 1, 1, 1, 1, 1, 1, 1,
418 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
419 1, 2, 1, 4, 1, 5, 6, 1, 1, 1,
420 1, 1, 7, 1, 8, 9, 1, 10, 11, 11,
421 11, 11, 11, 12, 11, 13, 11, 14, 15, 1,
422 1, 1, 1, 1, 16, 16, 16, 16, 17, 16,
423 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
424 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
425 1, 1, 1, 1, 18, 1, 19, 20, 21, 22,
427 23, 24, 25, 26, 27, 5, 28, 29, 30, 31,
428 32, 33, 34, 35, 36, 37, 38, 39, 40, 41,
429 42, 43, 1, 1, 1, 1, 1, 1, 1, 1,
430 1, 1, 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,
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,
446 static yyconst int yy_meta[44] =
448 1, 1, 2, 1, 3, 1, 1, 3, 3, 3,
449 3, 3, 3, 4, 1, 3, 3, 3, 3, 3,
450 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
451 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
455 static yyconst short int yy_base[561] =
457 0, 0, 1200, 1201, 1201, 1201, 1195, 1184, 36, 40,
458 44, 50, 56, 62, 0, 63, 66, 81, 89, 47,
459 100, 97, 76, 96, 111, 46, 48, 110, 68, 140,
460 126, 171, 120, 123, 73, 130, 1193, 1201, 1182, 1201,
461 0, 159, 176, 199, 204, 95, 209, 224, 229, 0,
462 134, 165, 137, 124, 169, 151, 159, 31, 1181, 168,
463 210, 230, 233, 127, 241, 189, 176, 117, 242, 244,
464 240, 243, 246, 249, 252, 253, 257, 259, 263, 265,
465 266, 274, 268, 269, 273, 277, 282, 211, 1180, 287,
466 290, 293, 294, 160, 270, 295, 304, 305, 299, 306,
468 312, 296, 321, 324, 1179, 325, 309, 313, 333, 335,
469 318, 339, 342, 332, 350, 340, 343, 215, 356, 357,
470 1178, 0, 365, 370, 1177, 389, 406, 0, 1176, 359,
471 372, 1175, 371, 374, 1174, 381, 1173, 375, 301, 376,
472 393, 1172, 401, 396, 408, 407, 410, 411, 1171, 414,
473 413, 415, 420, 421, 422, 424, 431, 432, 433, 434,
474 441, 436, 440, 438, 439, 449, 443, 454, 383, 451,
475 459, 462, 464, 465, 466, 1170, 468, 469, 1169, 470,
476 471, 1168, 1167, 499, 476, 475, 488, 477, 503, 492,
477 1166, 510, 1165, 481, 484, 516, 513, 517, 1164, 519,
479 521, 522, 524, 523, 526, 525, 527, 528, 537, 530,
480 541, 544, 545, 546, 539, 549, 556, 560, 559, 478,
481 1163, 561, 563, 1201, 571, 591, 579, 595, 600, 566,
482 601, 602, 1162, 603, 604, 1161, 1160, 1159, 605, 606,
483 607, 610, 611, 613, 614, 615, 617, 618, 621, 622,
484 628, 572, 627, 1158, 624, 635, 637, 636, 1157, 1156,
485 638, 639, 642, 645, 646, 650, 648, 649, 652, 654,
486 1155, 1154, 1153, 655, 656, 1152, 657, 663, 665, 0,
487 675, 1151, 672, 680, 674, 679, 682, 689, 1150, 676,
488 690, 692, 693, 1149, 695, 706, 1148, 707, 696, 1147,
490 708, 1146, 709, 1145, 1144, 710, 571, 712, 714, 717,
491 1143, 721, 723, 1142, 724, 1141, 726, 725, 1140, 731,
492 1139, 732, 731, 1138, 733, 743, 735, 745, 741, 749,
493 751, 678, 753, 754, 756, 758, 759, 760, 1137, 761,
494 1136, 1135, 762, 764, 765, 769, 771, 774, 766, 779,
495 780, 783, 1134, 784, 785, 788, 791, 793, 797, 798,
496 1133, 787, 803, 1132, 1131, 1130, 1129, 1128, 1127, 1126,
497 804, 807, 808, 1125, 809, 810, 813, 1124, 1123, 812,
498 1122, 1121, 816, 820, 814, 818, 825, 830, 824, 815,
499 1120, 836, 834, 1119, 839, 841, 840, 842, 843, 844,
501 845, 1118, 1117, 1116, 850, 846, 1115, 1114, 1113, 852,
502 858, 1112, 861, 864, 866, 853, 1111, 860, 1110, 1109,
503 1108, 1107, 872, 875, 877, 1106, 878, 879, 1105, 1104,
504 1103, 1102, 1101, 883, 1100, 1099, 1098, 881, 880, 882,
505 884, 886, 1097, 885, 1096, 888, 1095, 1094, 891, 898,
506 899, 900, 901, 1093, 904, 905, 909, 911, 907, 914,
507 916, 917, 1092, 918, 920, 927, 921, 931, 934, 933,
508 935, 1091, 936, 939, 942, 944, 1090, 937, 947, 945,
509 948, 1089, 1088, 1087, 950, 1086, 949, 959, 955, 1083,
510 967, 970, 969, 1074, 971, 1072, 1071, 972, 976, 973,
512 978, 979, 951, 981, 984, 986, 987, 989, 993, 1070,
513 991, 990, 997, 999, 1000, 1002, 1003, 1068, 1008, 1010,
514 1012, 1013, 1067, 1014, 1015, 1018, 1019, 1066, 1021, 1065,
515 1020, 1030, 1029, 1024, 1032, 1033, 1034, 1040, 1043, 1045,
516 1044, 1046, 1063, 1047, 1062, 1060, 1048, 1059, 1049, 1056,
517 677, 479, 1054, 435, 1201, 1089, 1091, 124, 1095, 76
520 static yyconst short int yy_def[561] =
522 555, 1, 555, 555, 555, 555, 556, 557, 558, 555,
523 557, 557, 557, 557, 559, 557, 557, 557, 557, 557,
524 557, 557, 557, 557, 557, 557, 557, 557, 557, 557,
525 557, 557, 557, 557, 557, 557, 556, 555, 557, 555,
526 560, 560, 555, 555, 557, 557, 557, 557, 557, 559,
527 557, 557, 557, 557, 557, 557, 557, 557, 557, 557,
528 557, 557, 557, 557, 557, 557, 557, 557, 557, 557,
529 557, 557, 557, 557, 557, 557, 557, 557, 557, 557,
530 557, 557, 557, 557, 557, 557, 557, 557, 557, 557,
531 557, 557, 557, 557, 557, 557, 557, 557, 557, 557,
533 557, 557, 557, 557, 557, 557, 557, 557, 557, 557,
534 557, 557, 557, 557, 557, 557, 557, 557, 557, 557,
535 555, 560, 560, 555, 557, 557, 557, 49, 557, 557,
536 557, 557, 557, 557, 557, 557, 557, 557, 557, 557,
537 557, 557, 557, 557, 557, 557, 557, 557, 557, 557,
538 557, 557, 557, 557, 557, 557, 557, 557, 557, 557,
539 557, 557, 557, 557, 557, 557, 557, 557, 557, 557,
540 557, 557, 557, 557, 557, 557, 557, 557, 557, 557,
541 557, 557, 557, 49, 557, 557, 557, 557, 557, 557,
542 557, 557, 557, 557, 557, 557, 557, 557, 557, 557,
544 557, 557, 557, 557, 557, 557, 557, 557, 557, 557,
545 557, 557, 557, 557, 557, 557, 557, 557, 557, 557,
546 557, 557, 557, 555, 555, 555, 555, 557, 557, 557,
547 557, 557, 557, 557, 557, 557, 557, 557, 557, 557,
548 557, 557, 557, 557, 557, 557, 557, 557, 557, 557,
549 557, 557, 557, 557, 557, 557, 557, 557, 557, 557,
550 557, 557, 557, 557, 557, 557, 557, 557, 557, 557,
551 557, 557, 557, 557, 557, 557, 557, 557, 557, 184,
552 557, 557, 557, 557, 557, 557, 557, 557, 557, 557,
553 557, 557, 557, 557, 557, 557, 557, 557, 557, 557,
555 557, 557, 557, 557, 557, 557, 557, 557, 557, 557,
556 557, 557, 557, 557, 557, 557, 557, 557, 557, 555,
557 557, 557, 557, 557, 557, 557, 557, 557, 557, 557,
558 557, 557, 557, 557, 557, 557, 557, 557, 557, 557,
559 557, 557, 557, 557, 557, 557, 557, 557, 557, 557,
560 557, 557, 557, 557, 557, 557, 557, 557, 557, 557,
561 557, 557, 557, 557, 557, 557, 557, 557, 557, 557,
562 557, 557, 557, 557, 557, 557, 557, 557, 557, 557,
563 557, 557, 557, 557, 557, 557, 557, 557, 557, 557,
564 557, 557, 557, 557, 557, 557, 557, 557, 557, 557,
566 557, 557, 557, 557, 557, 557, 557, 557, 557, 557,
567 557, 557, 557, 557, 557, 557, 557, 557, 557, 557,
568 557, 557, 557, 557, 557, 557, 557, 557, 557, 557,
569 557, 557, 557, 557, 557, 557, 557, 557, 557, 557,
570 557, 557, 557, 557, 557, 557, 557, 557, 557, 557,
571 557, 557, 557, 557, 557, 557, 557, 557, 557, 557,
572 557, 557, 557, 557, 557, 557, 557, 557, 557, 557,
573 557, 557, 557, 557, 557, 557, 557, 557, 557, 557,
574 557, 557, 557, 557, 557, 557, 557, 557, 557, 557,
575 557, 557, 557, 557, 557, 557, 557, 557, 557, 557,
577 557, 557, 557, 557, 557, 557, 557, 557, 557, 557,
578 557, 557, 557, 557, 557, 557, 557, 557, 557, 557,
579 557, 557, 557, 557, 557, 557, 557, 557, 557, 557,
580 557, 557, 557, 557, 557, 557, 557, 557, 557, 557,
581 557, 557, 557, 557, 557, 557, 557, 557, 557, 557,
582 557, 557, 557, 557, 0, 555, 555, 555, 555, 555
585 static yyconst short int yy_nxt[1245] =
587 4, 5, 6, 7, 8, 9, 10, 11, 12, 13,
588 14, 14, 14, 4, 15, 8, 8, 8, 16, 17,
589 18, 19, 20, 21, 22, 8, 23, 8, 24, 25,
590 26, 27, 28, 8, 29, 30, 31, 32, 33, 34,
591 35, 8, 36, 42, 40, 43, 43, 43, 43, 44,
592 44, 44, 44, 45, 45, 45, 45, 40, 46, 40,
593 40, 40, 139, 40, 47, 48, 48, 48, 48, 40,
594 47, 48, 48, 48, 48, 40, 40, 69, 122, 40,
595 88, 40, 89, 87, 51, 118, 40, 70, 56, 40,
596 93, 52, 57, 53, 40, 54, 49, 58, 55, 60,
598 59, 61, 40, 125, 119, 78, 79, 64, 40, 40,
599 40, 65, 62, 40, 80, 66, 63, 67, 71, 76,
600 68, 72, 81, 40, 40, 77, 41, 82, 73, 84,
601 40, 83, 74, 40, 75, 90, 40, 40, 115, 40,
602 40, 91, 85, 40, 104, 117, 92, 40, 86, 94,
603 40, 116, 120, 40, 151, 129, 133, 105, 132, 95,
604 106, 96, 97, 146, 40, 98, 99, 107, 123, 123,
605 123, 123, 40, 40, 100, 136, 101, 102, 40, 103,
606 94, 40, 40, 137, 40, 43, 43, 43, 43, 40,
607 108, 130, 109, 131, 134, 138, 140, 110, 135, 111,
609 184, 112, 40, 141, 150, 113, 114, 124, 44, 44,
610 44, 44, 47, 45, 45, 45, 45, 40, 126, 126,
611 126, 126, 40, 40, 40, 127, 220, 149, 40, 178,
612 142, 127, 47, 48, 48, 48, 48, 40, 128, 128,
613 128, 128, 40, 40, 128, 128, 40, 128, 128, 128,
614 128, 128, 128, 40, 40, 40, 40, 40, 143, 40,
615 144, 147, 40, 152, 153, 40, 40, 145, 155, 157,
616 40, 159, 40, 148, 161, 156, 40, 158, 40, 40,
617 154, 40, 40, 40, 168, 160, 40, 40, 163, 162,
618 40, 164, 171, 173, 175, 40, 169, 174, 165, 166,
620 40, 167, 170, 40, 172, 176, 40, 40, 40, 40,
621 177, 185, 40, 179, 40, 199, 180, 40, 40, 40,
622 195, 186, 40, 182, 187, 40, 40, 181, 197, 236,
623 183, 40, 188, 191, 40, 196, 192, 40, 40, 193,
624 189, 205, 194, 198, 190, 40, 40, 200, 40, 210,
625 201, 203, 40, 40, 206, 40, 40, 215, 202, 207,
626 211, 219, 204, 40, 214, 208, 217, 216, 218, 40,
627 40, 209, 40, 212, 123, 123, 123, 123, 213, 225,
628 225, 225, 225, 230, 40, 40, 226, 40, 40, 40,
629 221, 222, 226, 232, 40, 235, 40, 223, 126, 126,
631 126, 126, 40, 231, 237, 127, 40, 234, 233, 40,
632 269, 127, 227, 228, 40, 229, 229, 229, 229, 40,
633 40, 40, 239, 40, 40, 242, 40, 40, 40, 238,
634 241, 240, 247, 40, 40, 40, 245, 40, 243, 244,
635 246, 248, 249, 250, 40, 40, 40, 40, 40, 40,
636 255, 40, 40, 40, 40, 251, 40, 252, 261, 262,
637 253, 264, 40, 259, 40, 257, 263, 40, 258, 254,
638 260, 265, 40, 256, 267, 40, 268, 40, 40, 40,
639 271, 40, 40, 40, 40, 266, 272, 270, 40, 40,
640 40, 40, 40, 274, 40, 317, 276, 40, 273, 284,
642 278, 40, 277, 275, 291, 40, 292, 279, 280, 280,
643 280, 280, 281, 282, 280, 280, 40, 280, 280, 280,
644 280, 280, 280, 40, 283, 285, 40, 286, 289, 40,
645 40, 287, 40, 288, 40, 40, 40, 40, 40, 40,
646 40, 40, 294, 40, 290, 300, 298, 293, 302, 297,
647 40, 295, 40, 301, 40, 296, 299, 40, 40, 40,
648 307, 303, 40, 308, 305, 304, 309, 313, 306, 40,
649 312, 310, 40, 40, 40, 311, 40, 314, 315, 40,
650 225, 225, 225, 225, 40, 40, 316, 226, 320, 320,
651 320, 320, 318, 226, 339, 381, 321, 227, 227, 319,
653 320, 320, 320, 320, 229, 229, 229, 229, 40, 229,
654 229, 229, 229, 40, 40, 40, 40, 40, 40, 40,
655 40, 322, 325, 40, 40, 326, 40, 40, 40, 330,
656 40, 40, 323, 324, 40, 40, 335, 40, 329, 331,
657 40, 40, 327, 328, 333, 334, 338, 340, 40, 40,
658 40, 40, 40, 336, 332, 40, 337, 347, 40, 40,
659 341, 40, 40, 40, 348, 40, 346, 40, 40, 40,
660 40, 342, 343, 345, 344, 352, 40, 353, 40, 349,
661 350, 351, 355, 354, 357, 40, 356, 40, 40, 40,
662 40, 40, 40, 40, 358, 40, 360, 361, 362, 359,
664 363, 365, 40, 40, 367, 40, 40, 364, 40, 40,
665 400, 369, 370, 371, 372, 366, 373, 374, 368, 40,
666 40, 40, 40, 40, 377, 40, 375, 40, 378, 376,
667 40, 379, 383, 380, 40, 382, 40, 40, 40, 40,
668 320, 320, 320, 320, 40, 40, 40, 384, 40, 388,
669 391, 390, 392, 395, 40, 385, 40, 386, 40, 397,
670 387, 389, 40, 394, 40, 396, 40, 40, 393, 40,
671 399, 40, 40, 40, 40, 40, 402, 40, 40, 40,
672 406, 407, 40, 398, 40, 401, 403, 40, 408, 405,
673 409, 411, 40, 40, 404, 410, 40, 40, 40, 412,
675 40, 40, 414, 413, 40, 417, 40, 419, 420, 415,
676 40, 40, 416, 421, 418, 422, 40, 40, 425, 423,
677 40, 40, 40, 40, 424, 40, 40, 40, 40, 40,
678 428, 40, 427, 40, 430, 432, 434, 40, 40, 426,
679 429, 435, 437, 40, 433, 441, 431, 40, 439, 40,
680 436, 438, 40, 40, 40, 40, 40, 40, 40, 40,
681 440, 445, 442, 40, 447, 40, 40, 451, 452, 444,
682 443, 40, 454, 40, 40, 449, 450, 40, 448, 40,
683 460, 446, 453, 456, 458, 40, 457, 455, 40, 459,
684 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
686 464, 40, 465, 469, 40, 462, 461, 463, 466, 467,
687 470, 40, 40, 40, 40, 468, 471, 40, 40, 473,
688 40, 472, 40, 478, 40, 474, 479, 40, 477, 40,
689 40, 40, 475, 40, 40, 480, 484, 481, 476, 482,
690 40, 483, 488, 490, 40, 489, 40, 40, 40, 40,
691 40, 485, 40, 486, 492, 40, 487, 40, 40, 494,
692 40, 40, 40, 40, 40, 499, 498, 491, 40, 493,
693 502, 504, 40, 495, 506, 496, 503, 500, 497, 505,
694 40, 501, 40, 40, 40, 40, 40, 507, 508, 40,
695 511, 40, 40, 516, 40, 509, 514, 40, 512, 40,
697 40, 517, 40, 40, 40, 520, 40, 510, 515, 513,
698 40, 522, 40, 40, 519, 40, 40, 521, 523, 524,
699 518, 40, 527, 40, 528, 40, 40, 40, 40, 525,
700 530, 40, 40, 40, 40, 526, 534, 40, 531, 529,
701 532, 533, 40, 40, 536, 40, 40, 40, 539, 537,
702 540, 535, 538, 40, 542, 541, 40, 40, 40, 40,
703 40, 40, 40, 547, 544, 548, 543, 40, 552, 40,
704 545, 553, 40, 40, 546, 40, 40, 551, 40, 40,
705 40, 40, 550, 40, 40, 40, 549, 40, 554, 37,
706 37, 37, 37, 39, 39, 50, 40, 50, 50, 40,
708 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
709 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
710 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
711 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
712 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
713 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
714 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
715 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
716 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
717 40, 224, 40, 40, 40, 40, 121, 40, 38, 555,
719 3, 555, 555, 555, 555, 555, 555, 555, 555, 555,
720 555, 555, 555, 555, 555, 555, 555, 555, 555, 555,
721 555, 555, 555, 555, 555, 555, 555, 555, 555, 555,
722 555, 555, 555, 555, 555, 555, 555, 555, 555, 555,
726 static yyconst short int yy_chk[1245] =
728 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
729 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
730 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
731 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
732 1, 1, 1, 9, 58, 9, 9, 9, 9, 10,
733 10, 10, 10, 11, 11, 11, 11, 11, 12, 26,
734 20, 27, 58, 12, 13, 13, 13, 13, 13, 13,
735 14, 14, 14, 14, 14, 14, 16, 20, 560, 17,
736 27, 29, 27, 26, 16, 35, 35, 20, 17, 23,
737 29, 16, 17, 16, 18, 16, 13, 17, 16, 18,
739 17, 18, 19, 46, 35, 23, 23, 19, 46, 24,
740 22, 19, 18, 21, 24, 19, 18, 19, 21, 22,
741 19, 21, 24, 28, 25, 22, 558, 24, 21, 25,
742 68, 24, 21, 33, 21, 28, 34, 54, 33, 31,
743 64, 28, 25, 36, 31, 34, 28, 51, 25, 30,
744 53, 33, 36, 30, 68, 51, 54, 31, 53, 30,
745 31, 30, 30, 64, 56, 30, 30, 31, 42, 42,
746 42, 42, 57, 94, 30, 56, 30, 30, 52, 30,
747 32, 60, 55, 57, 32, 43, 43, 43, 43, 67,
748 32, 52, 32, 52, 55, 57, 60, 32, 55, 32,
750 94, 32, 66, 60, 67, 32, 32, 44, 44, 44,
751 44, 44, 45, 45, 45, 45, 45, 45, 47, 47,
752 47, 47, 47, 61, 88, 47, 118, 66, 118, 88,
753 61, 47, 48, 48, 48, 48, 48, 48, 49, 49,
754 49, 49, 49, 62, 49, 49, 63, 49, 49, 49,
755 49, 49, 49, 71, 65, 69, 72, 70, 62, 73,
756 62, 65, 74, 69, 70, 75, 76, 63, 71, 72,
757 77, 74, 78, 65, 75, 71, 79, 73, 80, 81,
758 70, 83, 84, 95, 80, 74, 85, 82, 77, 76,
759 86, 78, 82, 83, 85, 87, 81, 84, 79, 79,
761 90, 79, 81, 91, 82, 86, 92, 93, 96, 102,
762 87, 95, 99, 90, 139, 102, 91, 97, 98, 100,
763 99, 96, 107, 93, 97, 101, 108, 92, 100, 139,
764 93, 111, 97, 98, 103, 99, 98, 104, 106, 98,
765 97, 107, 98, 101, 97, 114, 109, 103, 110, 111,
766 104, 106, 112, 116, 108, 113, 117, 114, 104, 109,
767 112, 117, 106, 115, 113, 110, 116, 115, 116, 119,
768 120, 110, 130, 112, 123, 123, 123, 123, 112, 124,
769 124, 124, 124, 130, 133, 131, 124, 134, 138, 140,
770 119, 120, 124, 133, 136, 138, 169, 120, 126, 126,
772 126, 126, 126, 131, 140, 126, 141, 136, 134, 144,
773 169, 126, 127, 127, 143, 127, 127, 127, 127, 127,
774 146, 145, 143, 147, 148, 146, 151, 150, 152, 141,
775 145, 144, 151, 153, 154, 155, 150, 156, 147, 148,
776 150, 152, 153, 154, 157, 158, 159, 160, 554, 162,
777 158, 164, 165, 163, 161, 154, 167, 155, 162, 163,
778 156, 165, 166, 161, 170, 160, 164, 168, 160, 157,
779 161, 166, 171, 159, 167, 172, 168, 173, 174, 175,
780 171, 177, 178, 180, 181, 166, 172, 170, 186, 185,
781 188, 220, 552, 174, 194, 220, 177, 195, 173, 188,
783 180, 187, 178, 175, 194, 190, 195, 181, 184, 184,
784 184, 184, 185, 186, 184, 184, 189, 184, 184, 184,
785 184, 184, 184, 192, 187, 189, 197, 189, 190, 196,
786 198, 189, 200, 189, 201, 202, 204, 203, 206, 205,
787 207, 208, 197, 210, 192, 204, 202, 196, 205, 201,
788 209, 198, 215, 204, 211, 200, 203, 212, 213, 214,
789 210, 206, 216, 211, 208, 207, 212, 216, 209, 217,
790 215, 213, 219, 218, 222, 214, 223, 217, 218, 230,
791 225, 225, 225, 225, 307, 252, 219, 225, 227, 227,
792 227, 227, 222, 225, 252, 307, 230, 226, 226, 223,
794 226, 226, 226, 226, 228, 228, 228, 228, 228, 229,
795 229, 229, 229, 229, 231, 232, 234, 235, 239, 240,
796 241, 231, 235, 242, 243, 239, 244, 245, 246, 243,
797 247, 248, 232, 234, 249, 250, 248, 255, 242, 244,
798 253, 251, 240, 241, 246, 247, 251, 253, 256, 258,
799 257, 261, 262, 249, 245, 263, 250, 262, 264, 265,
800 255, 267, 268, 266, 263, 269, 261, 270, 274, 275,
801 277, 256, 257, 258, 257, 267, 278, 268, 279, 264,
802 265, 266, 270, 269, 275, 283, 274, 285, 281, 290,
803 551, 332, 286, 284, 277, 287, 279, 281, 283, 278,
805 284, 286, 288, 291, 287, 292, 293, 285, 295, 299,
806 332, 288, 290, 291, 292, 286, 293, 295, 287, 296,
807 298, 301, 303, 306, 299, 308, 296, 309, 301, 298,
808 310, 303, 309, 306, 312, 308, 313, 315, 318, 317,
809 320, 320, 320, 320, 323, 322, 325, 310, 327, 317,
810 322, 318, 323, 327, 329, 312, 326, 313, 328, 329,
811 315, 317, 330, 326, 331, 328, 333, 334, 325, 335,
812 331, 336, 337, 338, 340, 343, 334, 344, 345, 349,
813 338, 340, 346, 330, 347, 333, 335, 348, 343, 337,
814 344, 346, 350, 351, 336, 345, 352, 354, 355, 347,
816 362, 356, 349, 348, 357, 352, 358, 355, 356, 350,
817 359, 360, 351, 357, 354, 358, 363, 371, 362, 359,
818 372, 373, 375, 376, 360, 380, 377, 385, 390, 383,
819 372, 386, 371, 384, 375, 377, 383, 389, 387, 363,
820 373, 384, 386, 388, 380, 390, 376, 393, 388, 392,
821 385, 387, 395, 397, 396, 398, 399, 400, 401, 406,
822 389, 396, 392, 405, 398, 410, 416, 405, 405, 395,
823 393, 411, 410, 418, 413, 400, 401, 414, 399, 415,
824 418, 397, 406, 413, 415, 423, 414, 411, 424, 416,
825 425, 427, 428, 439, 438, 440, 434, 441, 444, 442,
827 427, 446, 428, 440, 449, 424, 423, 425, 434, 438,
828 441, 450, 451, 452, 453, 439, 442, 455, 456, 446,
829 459, 444, 457, 453, 458, 449, 455, 460, 452, 461,
830 462, 464, 450, 465, 467, 456, 460, 457, 451, 458,
831 466, 459, 465, 467, 468, 466, 470, 469, 471, 473,
832 478, 461, 474, 462, 469, 475, 464, 476, 480, 471,
833 479, 481, 487, 485, 503, 478, 476, 468, 489, 470,
834 481, 487, 488, 473, 489, 474, 485, 479, 475, 488,
835 491, 480, 493, 492, 495, 498, 500, 491, 492, 499,
836 498, 501, 502, 503, 504, 493, 501, 505, 499, 506,
838 507, 504, 508, 512, 511, 507, 509, 495, 502, 500,
839 513, 509, 514, 515, 506, 516, 517, 508, 511, 512,
840 505, 519, 515, 520, 516, 521, 522, 524, 525, 513,
841 519, 526, 527, 531, 529, 514, 524, 534, 520, 517,
842 521, 522, 533, 532, 526, 535, 536, 537, 531, 527,
843 532, 525, 529, 538, 534, 533, 539, 541, 540, 542,
844 544, 547, 549, 539, 536, 540, 535, 553, 547, 550,
845 537, 549, 548, 546, 538, 545, 543, 544, 530, 528,
846 523, 518, 542, 510, 497, 496, 541, 494, 553, 556,
847 556, 556, 556, 557, 557, 559, 490, 559, 559, 486,
849 484, 483, 482, 477, 472, 463, 454, 448, 447, 445,
850 443, 437, 436, 435, 433, 432, 431, 430, 429, 426,
851 422, 421, 420, 419, 417, 412, 409, 408, 407, 404,
852 403, 402, 394, 391, 382, 381, 379, 378, 374, 370,
853 369, 368, 367, 366, 365, 364, 361, 353, 342, 341,
854 339, 324, 321, 319, 316, 314, 311, 305, 304, 302,
855 300, 297, 294, 289, 282, 276, 273, 272, 271, 260,
856 259, 254, 238, 237, 236, 233, 221, 199, 193, 191,
857 183, 182, 179, 176, 149, 142, 137, 135, 132, 129,
858 125, 121, 105, 89, 59, 39, 37, 8, 7, 3,
860 555, 555, 555, 555, 555, 555, 555, 555, 555, 555,
861 555, 555, 555, 555, 555, 555, 555, 555, 555, 555,
862 555, 555, 555, 555, 555, 555, 555, 555, 555, 555,
863 555, 555, 555, 555, 555, 555, 555, 555, 555, 555,
867 static yy_state_type yy_state_buf[YY_BUF_SIZE + 2], *yy_state_ptr;
868 static char *yy_full_match;
872 *yy_cp = yy_hold_char; /* undo effects of setting up yytext */ \
873 yy_cp = yy_full_match; /* restore poss. backed-over text */ \
877 #define yymore() yymore_used_but_not_detected
878 #define YY_MORE_ADJ 0
879 #define YY_RESTORE_YY_MORE_OFFSET
881 #line 1 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
883 /*===-- UpgradeLexer.l - Scanner for 1.9 assembly files --------*- C++ -*--===//
885 // The LLVM Compiler Infrastructure
887 // This file was developed by Reid Spencer and is distributed under the
888 // University of Illinois Open Source License. See LICENSE.TXT for details.
890 //===----------------------------------------------------------------------===//
892 // This file implements the flex scanner for LLVM 1.9 assembly languages files.
894 //===----------------------------------------------------------------------===*/
895 #define YY_NEVER_INTERACTIVE 1
896 #line 28 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
898 #include "ParserInternals.h"
899 #include "UpgradeParser.h"
903 #define YY_INPUT(buf,result,max_size) \
905 if (LexInput->good() && !LexInput->eof()) { \
906 LexInput->read(buf,max_size); \
907 result = LexInput->gcount(); \
914 // Construct a token value for a non-obsolete token
915 #define RET_TOK(sym) \
916 Upgradelval.String = new std::string(yytext); \
919 #define RET_TY(sym,OldTY,NewTY,sign) \
920 Upgradelval.Type.newTy = new std::string(NewTY); \
921 Upgradelval.Type.oldTy = OldTY; \
924 #define YY_NEVER_INTERACTIVE 1
925 /* Comments start with a ; and go till end of line */
926 /* Variable(Value) identifiers start with a % sign */
927 /* Label identifiers end with a colon */
928 /* Quoted names can contain any character except " and \ */
929 /* [PN]Integer: match positive and negative literal integer values that
930 * are preceeded by a '%' character. These represent unnamed variable slots.
932 /* E[PN]Integer: match positive and negative literal integer values */
933 /* FPConstant - A Floating point constant.
935 /* HexFPConstant - Floating point constant represented in IEEE format as a
936 * hexadecimal number for when exponential notation is not precise enough.
938 /* HexIntConstant - Hexadecimal constant generated by the CFE to avoid forcing
939 * it to deal with 64 bit numbers.
941 #line 942 "UpgradeLexer.cpp"
943 /* Macros after this point can all be overridden by user definitions in
947 #ifndef YY_SKIP_YYWRAP
949 extern "C" int yywrap YY_PROTO(( void ));
951 extern int yywrap YY_PROTO(( void ));
956 static inline void yyunput YY_PROTO(( int c, char *buf_ptr ));
960 static void yy_flex_strncpy YY_PROTO(( char *, yyconst char *, int ));
963 #ifdef YY_NEED_STRLEN
964 static int yy_flex_strlen YY_PROTO(( yyconst char * ));
969 static int yyinput YY_PROTO(( void ));
971 static int input YY_PROTO(( void ));
976 static int yy_start_stack_ptr = 0;
977 static int yy_start_stack_depth = 0;
978 static int *yy_start_stack = 0;
979 #ifndef YY_NO_PUSH_STATE
980 static void yy_push_state YY_PROTO(( int new_state ));
982 #ifndef YY_NO_POP_STATE
983 static void yy_pop_state YY_PROTO(( void ));
985 #ifndef YY_NO_TOP_STATE
986 static int yy_top_state YY_PROTO(( void ));
990 #define YY_NO_PUSH_STATE 1
991 #define YY_NO_POP_STATE 1
992 #define YY_NO_TOP_STATE 1
995 #ifdef YY_MALLOC_DECL
1003 /* Just try to get by without declaring the routines. This will fail
1004 * miserably on non-ANSI systems for which sizeof(size_t) != sizeof(int)
1005 * or sizeof(void*) != sizeof(int).
1010 /* Amount of stuff to slurp up with each read. */
1011 #ifndef YY_READ_BUF_SIZE
1012 #define YY_READ_BUF_SIZE 8192
1015 /* Copy whatever the last rule matched to the standard output. */
1018 /* This used to be an fputs(), but since the string might contain NUL's,
1019 * we now use fwrite().
1021 #define ECHO (void) fwrite( yytext, yyleng, 1, yyout )
1024 /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
1025 * is returned in "result".
1028 #define YY_INPUT(buf,result,max_size) \
1029 if ( yy_current_buffer->yy_is_interactive ) \
1032 for ( n = 0; n < max_size && \
1033 (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
1034 buf[n] = (char) c; \
1036 buf[n++] = (char) c; \
1037 if ( c == EOF && ferror( yyin ) ) \
1038 YY_FATAL_ERROR( "input in flex scanner failed" ); \
1041 else if ( ((result = fread( buf, 1, max_size, yyin )) == 0) \
1042 && ferror( yyin ) ) \
1043 YY_FATAL_ERROR( "input in flex scanner failed" );
1046 /* No semi-colon after return; correct usage is to write "yyterminate();" -
1047 * we don't want an extra ';' after the "return" because that will cause
1048 * some compilers to complain about unreachable statements.
1051 #define yyterminate() return YY_NULL
1054 /* Number of entries by which start-condition stack grows. */
1055 #ifndef YY_START_STACK_INCR
1056 #define YY_START_STACK_INCR 25
1059 /* Report a fatal error. */
1060 #ifndef YY_FATAL_ERROR
1061 #define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
1064 /* Default declaration of generated scanner - a define so the user can
1065 * easily add parameters.
1068 #define YY_DECL int yylex YY_PROTO(( void ))
1071 /* Code executed at the beginning of each rule, after yytext and yyleng
1074 #ifndef YY_USER_ACTION
1075 #define YY_USER_ACTION
1078 /* Code executed at the end of each rule. */
1080 #define YY_BREAK break;
1083 #define YY_RULE_SETUP \
1088 register yy_state_type yy_current_state;
1089 register char *yy_cp = NULL, *yy_bp = NULL;
1090 register int yy_act;
1092 #line 98 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1095 #line 1096 "UpgradeLexer.cpp"
1106 yy_start = 1; /* first start state */
1114 if ( ! yy_current_buffer )
1116 yy_create_buffer( yyin, YY_BUF_SIZE );
1118 yy_load_buffer_state();
1121 while ( 1 ) /* loops until end-of-file is reached */
1125 /* Support of yytext. */
1126 *yy_cp = yy_hold_char;
1128 /* yy_bp points to the position in yy_ch_buf of the start of
1133 yy_current_state = yy_start;
1134 yy_state_ptr = yy_state_buf;
1135 *yy_state_ptr++ = yy_current_state;
1139 register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
1140 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1142 yy_current_state = (int) yy_def[yy_current_state];
1143 if ( yy_current_state >= 556 )
1144 yy_c = yy_meta[(unsigned int) yy_c];
1146 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
1147 *yy_state_ptr++ = yy_current_state;
1150 while ( yy_current_state != 555 );
1153 yy_current_state = *--yy_state_ptr;
1154 yy_lp = yy_accept[yy_current_state];
1155 find_rule: /* we branch to this label when backing up */
1156 for ( ; ; ) /* until we find what rule we matched */
1158 if ( yy_lp && yy_lp < yy_accept[yy_current_state + 1] )
1160 yy_act = yy_acclist[yy_lp];
1162 yy_full_match = yy_cp;
1167 yy_current_state = *--yy_state_ptr;
1168 yy_lp = yy_accept[yy_current_state];
1171 YY_DO_BEFORE_ACTION;
1173 if ( yy_act != YY_END_OF_BUFFER )
1176 for ( yyl = 0; yyl < yyleng; ++yyl )
1177 if ( yytext[yyl] == '\n' )
1181 do_action: /* This label is used only to access EOF actions. */
1185 { /* beginning of action switch */
1188 #line 100 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1189 { /* Ignore comments for now */ }
1193 #line 102 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1194 { RET_TOK( BEGINTOK); }
1198 #line 103 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1199 { RET_TOK( ENDTOK); }
1203 #line 104 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1204 { RET_TOK( TRUETOK); }
1208 #line 105 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1209 { RET_TOK( FALSETOK); }
1213 #line 106 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1214 { RET_TOK( DECLARE); }
1218 #line 107 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1219 { RET_TOK( GLOBAL); }
1223 #line 108 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1224 { RET_TOK( CONSTANT); }
1228 #line 109 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1229 { RET_TOK( INTERNAL); }
1233 #line 110 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1234 { RET_TOK( LINKONCE); }
1238 #line 111 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1243 #line 112 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1244 { RET_TOK( APPENDING); }
1248 #line 113 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1249 { RET_TOK( DLLIMPORT); }
1253 #line 114 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1254 { RET_TOK( DLLEXPORT); }
1258 #line 115 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1259 { RET_TOK( EXTERN_WEAK); }
1263 #line 116 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1264 { RET_TOK( EXTERNAL); }
1268 #line 117 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1269 { RET_TOK( IMPLEMENTATION); }
1273 #line 118 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1274 { RET_TOK( ZEROINITIALIZER); }
1278 #line 119 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1279 { RET_TOK( DOTDOTDOT); }
1283 #line 120 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1284 { RET_TOK( UNDEF); }
1288 #line 121 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1289 { RET_TOK( NULL_TOK); }
1293 #line 122 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1298 #line 123 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1303 #line 124 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1304 { RET_TOK( TARGET); }
1308 #line 125 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1309 { RET_TOK( TRIPLE); }
1313 #line 126 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1314 { RET_TOK( DEPLIBS); }
1318 #line 127 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1319 { RET_TOK( ENDIAN); }
1323 #line 128 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1324 { RET_TOK( POINTERSIZE); }
1328 #line 129 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1329 { RET_TOK( DATALAYOUT); }
1333 #line 130 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1334 { RET_TOK( LITTLE); }
1338 #line 131 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1343 #line 132 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1344 { RET_TOK( VOLATILE); }
1348 #line 133 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1349 { RET_TOK( ALIGN); }
1353 #line 134 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1354 { RET_TOK( SECTION); }
1358 #line 135 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1359 { RET_TOK( MODULE); }
1363 #line 136 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1364 { RET_TOK( ASM_TOK); }
1368 #line 137 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1369 { RET_TOK( SIDEEFFECT); }
1373 #line 139 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1374 { RET_TOK( CC_TOK); }
1378 #line 140 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1379 { RET_TOK( CCC_TOK); }
1383 #line 141 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1384 { RET_TOK( CSRETCC_TOK); }
1388 #line 142 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1389 { RET_TOK( FASTCC_TOK); }
1393 #line 143 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1394 { RET_TOK( COLDCC_TOK); }
1398 #line 144 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1399 { RET_TOK( X86_STDCALLCC_TOK); }
1403 #line 145 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1404 { RET_TOK( X86_FASTCALLCC_TOK); }
1408 #line 147 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1409 { RET_TY(VOID,VoidTy,"void",false); }
1413 #line 148 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1414 { RET_TY(BOOL,BoolTy,"bool",false); }
1418 #line 149 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1419 { RET_TY(SBYTE,SByteTy,"sbyte",true); }
1423 #line 150 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1424 { RET_TY(UBYTE,UByteTy,"ubyte",false); }
1428 #line 151 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1429 { RET_TY(SHORT,ShortTy,"short",true); }
1433 #line 152 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1434 { RET_TY(USHORT,UShortTy,"ushort",false); }
1438 #line 153 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1439 { RET_TY(INT,IntTy,"int",true); }
1443 #line 154 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1444 { RET_TY(UINT,UIntTy,"uint",false); }
1448 #line 155 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1449 { RET_TY(LONG,LongTy,"long",true); }
1453 #line 156 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1454 { RET_TY(ULONG,ULongTy,"ulong",false); }
1458 #line 157 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1459 { RET_TY(FLOAT,FloatTy,"float",false); }
1463 #line 158 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1464 { RET_TY(DOUBLE,DoubleTy,"double",false); }
1468 #line 159 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1469 { RET_TY(LABEL,LabelTy,"label",false); }
1473 #line 160 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1474 { RET_TY(OPAQUE,OpaqueTy,"opaque",false); }
1478 #line 161 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1483 #line 163 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1488 #line 164 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1493 #line 165 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1498 #line 166 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1503 #line 167 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1508 #line 168 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1513 #line 169 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1518 #line 170 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1523 #line 171 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1528 #line 172 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1533 #line 173 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1538 #line 174 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1543 #line 175 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1548 #line 176 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1553 #line 177 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1554 { RET_TOK( SETNE); }
1558 #line 178 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1559 { RET_TOK( SETEQ); }
1563 #line 179 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1564 { RET_TOK( SETLT); }
1568 #line 180 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1569 { RET_TOK( SETGT); }
1573 #line 181 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1574 { RET_TOK( SETLE); }
1578 #line 182 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1579 { RET_TOK( SETGE); }
1583 #line 184 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1584 { RET_TOK( PHI_TOK); }
1588 #line 185 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1593 #line 186 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1598 #line 187 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1599 { RET_TOK( TRUNC); }
1603 #line 188 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1608 #line 189 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1613 #line 190 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1614 { RET_TOK( FPTRUNC); }
1618 #line 191 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1619 { RET_TOK( FPEXT); }
1623 #line 192 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1624 { RET_TOK( FPTOUI); }
1628 #line 193 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1629 { RET_TOK( FPTOSI); }
1633 #line 194 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1634 { RET_TOK( UITOFP); }
1638 #line 195 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1639 { RET_TOK( SITOFP); }
1643 #line 196 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1644 { RET_TOK( PTRTOINT); }
1648 #line 197 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1649 { RET_TOK( INTTOPTR); }
1653 #line 198 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1654 { RET_TOK( BITCAST); }
1658 #line 199 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1659 { RET_TOK( SELECT); }
1663 #line 200 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1668 #line 201 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1673 #line 202 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1678 #line 203 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1683 #line 204 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1684 { RET_TOK( VAARG); }
1688 #line 205 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1693 #line 206 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1698 #line 207 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1699 { RET_TOK( SWITCH); }
1703 #line 208 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1704 { RET_TOK( INVOKE); }
1708 #line 209 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1709 { RET_TOK( UNWIND); }
1713 #line 210 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1714 { RET_TOK( UNWIND); }
1718 #line 211 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1719 { RET_TOK( UNREACHABLE); }
1723 #line 213 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1724 { RET_TOK( MALLOC); }
1728 #line 214 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1729 { RET_TOK( ALLOCA); }
1733 #line 215 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1738 #line 216 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1743 #line 217 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1744 { RET_TOK( STORE); }
1748 #line 218 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1749 { RET_TOK( GETELEMENTPTR); }
1753 #line 220 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1754 { RET_TOK( EXTRACTELEMENT); }
1758 #line 221 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1759 { RET_TOK( INSERTELEMENT); }
1763 #line 222 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1764 { RET_TOK( SHUFFLEVECTOR); }
1768 #line 225 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1769 { RET_TOK( VAR_ID); }
1773 #line 226 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1774 { RET_TOK( LABELSTR); }
1778 #line 227 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1779 { RET_TOK( LABELSTR); }
1783 #line 228 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1784 { RET_TOK( STRINGCONSTANT ); }
1788 #line 229 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1789 { RET_TOK( EUINT64VAL ); }
1793 #line 230 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1794 { RET_TOK( ESINT64VAL ); }
1798 #line 231 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1799 { RET_TOK( yytext[0] == 's' ? ESINT64VAL : EUINT64VAL ); }
1803 #line 232 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1804 { RET_TOK( UINTVAL); }
1808 #line 233 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1809 { RET_TOK( SINTVAL); }
1813 #line 234 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1814 { RET_TOK( FPVAL); }
1818 #line 235 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1819 { RET_TOK( FPVAL); }
1821 case YY_STATE_EOF(INITIAL):
1822 #line 236 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1824 /* Make sure to free the internal buffers for flex when we are
1825 * done reading our input!
1827 yy_delete_buffer(YY_CURRENT_BUFFER);
1833 #line 244 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1834 { /* Ignore whitespace */ }
1838 #line 245 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1839 { return yytext[0]; }
1843 #line 247 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1844 YY_FATAL_ERROR( "flex scanner jammed" );
1846 #line 1847 "UpgradeLexer.cpp"
1848 case YY_END_OF_BUFFER:
1850 /* Amount of text matched not including the EOB char. */
1851 int yy_amount_of_matched_text = (int) (yy_cp - yytext_ptr) - 1;
1853 /* Undo the effects of YY_DO_BEFORE_ACTION. */
1854 *yy_cp = yy_hold_char;
1855 YY_RESTORE_YY_MORE_OFFSET
1857 if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_NEW )
1859 /* We're scanning a new file or input source. It's
1860 * possible that this happened because the user
1861 * just pointed yyin at a new source and called
1862 * yylex(). If so, then we have to assure
1863 * consistency between yy_current_buffer and our
1864 * globals. Here is the right place to do so, because
1865 * this is the first action (other than possibly a
1866 * back-up) that will match for the new input source.
1868 yy_n_chars = yy_current_buffer->yy_n_chars;
1869 yy_current_buffer->yy_input_file = yyin;
1870 yy_current_buffer->yy_buffer_status = YY_BUFFER_NORMAL;
1873 /* Note that here we test for yy_c_buf_p "<=" to the position
1874 * of the first EOB in the buffer, since yy_c_buf_p will
1875 * already have been incremented past the NUL character
1876 * (since all states make transitions on EOB to the
1877 * end-of-buffer state). Contrast this with the test
1880 if ( yy_c_buf_p <= &yy_current_buffer->yy_ch_buf[yy_n_chars] )
1881 { /* This was really a NUL. */
1882 yy_state_type yy_next_state;
1884 yy_c_buf_p = yytext_ptr + yy_amount_of_matched_text;
1886 yy_current_state = yy_get_previous_state();
1888 /* Okay, we're now positioned to make the NUL
1889 * transition. We couldn't have
1890 * yy_get_previous_state() go ahead and do it
1891 * for us because it doesn't know how to deal
1892 * with the possibility of jamming (and we don't
1893 * want to build jamming into it because then it
1894 * will run more slowly).
1897 yy_next_state = yy_try_NUL_trans( yy_current_state );
1899 yy_bp = yytext_ptr + YY_MORE_ADJ;
1901 if ( yy_next_state )
1903 /* Consume the NUL. */
1904 yy_cp = ++yy_c_buf_p;
1905 yy_current_state = yy_next_state;
1912 goto yy_find_action;
1916 else switch ( yy_get_next_buffer() )
1918 case EOB_ACT_END_OF_FILE:
1920 yy_did_buffer_switch_on_eof = 0;
1924 /* Note: because we've taken care in
1925 * yy_get_next_buffer() to have set up
1926 * yytext, we can now set up
1927 * yy_c_buf_p so that if some total
1928 * hoser (like flex itself) wants to
1929 * call the scanner after we return the
1930 * YY_NULL, it'll still work - another
1931 * YY_NULL will get returned.
1933 yy_c_buf_p = yytext_ptr + YY_MORE_ADJ;
1935 yy_act = YY_STATE_EOF(YY_START);
1941 if ( ! yy_did_buffer_switch_on_eof )
1947 case EOB_ACT_CONTINUE_SCAN:
1949 yytext_ptr + yy_amount_of_matched_text;
1951 yy_current_state = yy_get_previous_state();
1954 yy_bp = yytext_ptr + YY_MORE_ADJ;
1957 case EOB_ACT_LAST_MATCH:
1959 &yy_current_buffer->yy_ch_buf[yy_n_chars];
1961 yy_current_state = yy_get_previous_state();
1964 yy_bp = yytext_ptr + YY_MORE_ADJ;
1965 goto yy_find_action;
1972 "fatal flex scanner internal error--no action found" );
1973 } /* end of action switch */
1974 } /* end of scanning one token */
1975 } /* end of yylex */
1978 /* yy_get_next_buffer - try to read in a new buffer
1980 * Returns a code representing an action:
1981 * EOB_ACT_LAST_MATCH -
1982 * EOB_ACT_CONTINUE_SCAN - continue scanning from current position
1983 * EOB_ACT_END_OF_FILE - end of file
1986 static int yy_get_next_buffer()
1988 register char *dest = yy_current_buffer->yy_ch_buf;
1989 register char *source = yytext_ptr;
1990 register int number_to_move, i;
1993 if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] )
1995 "fatal flex scanner internal error--end of buffer missed" );
1997 if ( yy_current_buffer->yy_fill_buffer == 0 )
1998 { /* Don't try to fill the buffer, so this is an EOF. */
1999 if ( yy_c_buf_p - yytext_ptr - YY_MORE_ADJ == 1 )
2001 /* We matched a single character, the EOB, so
2002 * treat this as a final EOF.
2004 return EOB_ACT_END_OF_FILE;
2009 /* We matched some text prior to the EOB, first
2012 return EOB_ACT_LAST_MATCH;
2016 /* Try to read more data. */
2018 /* First move last chars to start of buffer. */
2019 number_to_move = (int) (yy_c_buf_p - yytext_ptr) - 1;
2021 for ( i = 0; i < number_to_move; ++i )
2022 *(dest++) = *(source++);
2024 if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_EOF_PENDING )
2025 /* don't do the read, it's not guaranteed to return an EOF,
2028 yy_current_buffer->yy_n_chars = yy_n_chars = 0;
2033 yy_current_buffer->yy_buf_size - number_to_move - 1;
2035 while ( num_to_read <= 0 )
2036 { /* Not enough room in the buffer - grow it. */
2037 #ifdef YY_USES_REJECT
2039 "input buffer overflow, can't enlarge buffer because scanner uses REJECT" );
2042 /* just a shorter name for the current buffer */
2043 YY_BUFFER_STATE b = yy_current_buffer;
2045 int yy_c_buf_p_offset =
2046 (int) (yy_c_buf_p - b->yy_ch_buf);
2048 if ( b->yy_is_our_buffer )
2050 int new_size = b->yy_buf_size * 2;
2052 if ( new_size <= 0 )
2053 b->yy_buf_size += b->yy_buf_size / 8;
2055 b->yy_buf_size *= 2;
2057 b->yy_ch_buf = (char *)
2058 /* Include room in for 2 EOB chars. */
2059 yy_flex_realloc( (void *) b->yy_ch_buf,
2060 b->yy_buf_size + 2 );
2063 /* Can't grow it, we don't own it. */
2066 if ( ! b->yy_ch_buf )
2068 "fatal error - scanner input buffer overflow" );
2070 yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset];
2072 num_to_read = yy_current_buffer->yy_buf_size -
2077 if ( num_to_read > YY_READ_BUF_SIZE )
2078 num_to_read = YY_READ_BUF_SIZE;
2080 /* Read in more data. */
2081 YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]),
2082 yy_n_chars, num_to_read );
2084 yy_current_buffer->yy_n_chars = yy_n_chars;
2087 if ( yy_n_chars == 0 )
2089 if ( number_to_move == YY_MORE_ADJ )
2091 ret_val = EOB_ACT_END_OF_FILE;
2097 ret_val = EOB_ACT_LAST_MATCH;
2098 yy_current_buffer->yy_buffer_status =
2099 YY_BUFFER_EOF_PENDING;
2104 ret_val = EOB_ACT_CONTINUE_SCAN;
2106 yy_n_chars += number_to_move;
2107 yy_current_buffer->yy_ch_buf[yy_n_chars] = YY_END_OF_BUFFER_CHAR;
2108 yy_current_buffer->yy_ch_buf[yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;
2110 yytext_ptr = &yy_current_buffer->yy_ch_buf[0];
2116 /* yy_get_previous_state - get the state just before the EOB char was reached */
2118 static yy_state_type yy_get_previous_state()
2120 register yy_state_type yy_current_state;
2121 register char *yy_cp;
2123 yy_current_state = yy_start;
2124 yy_state_ptr = yy_state_buf;
2125 *yy_state_ptr++ = yy_current_state;
2127 for ( yy_cp = yytext_ptr + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp )
2129 register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
2130 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
2132 yy_current_state = (int) yy_def[yy_current_state];
2133 if ( yy_current_state >= 556 )
2134 yy_c = yy_meta[(unsigned int) yy_c];
2136 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
2137 *yy_state_ptr++ = yy_current_state;
2140 return yy_current_state;
2144 /* yy_try_NUL_trans - try to make a transition on the NUL character
2147 * next_state = yy_try_NUL_trans( current_state );
2150 #ifdef YY_USE_PROTOS
2151 static yy_state_type yy_try_NUL_trans( yy_state_type yy_current_state )
2153 static yy_state_type yy_try_NUL_trans( yy_current_state )
2154 yy_state_type yy_current_state;
2157 register int yy_is_jam;
2159 register YY_CHAR yy_c = 1;
2160 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
2162 yy_current_state = (int) yy_def[yy_current_state];
2163 if ( yy_current_state >= 556 )
2164 yy_c = yy_meta[(unsigned int) yy_c];
2166 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
2167 yy_is_jam = (yy_current_state == 555);
2169 *yy_state_ptr++ = yy_current_state;
2171 return yy_is_jam ? 0 : yy_current_state;
2176 #ifdef YY_USE_PROTOS
2177 static inline void yyunput( int c, register char *yy_bp )
2179 static inline void yyunput( c, yy_bp )
2181 register char *yy_bp;
2184 register char *yy_cp = yy_c_buf_p;
2186 /* undo effects of setting up yytext */
2187 *yy_cp = yy_hold_char;
2189 if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
2190 { /* need to shift things up to make room */
2191 /* +2 for EOB chars. */
2192 register int number_to_move = yy_n_chars + 2;
2193 register char *dest = &yy_current_buffer->yy_ch_buf[
2194 yy_current_buffer->yy_buf_size + 2];
2195 register char *source =
2196 &yy_current_buffer->yy_ch_buf[number_to_move];
2198 while ( source > yy_current_buffer->yy_ch_buf )
2199 *--dest = *--source;
2201 yy_cp += (int) (dest - source);
2202 yy_bp += (int) (dest - source);
2203 yy_current_buffer->yy_n_chars =
2204 yy_n_chars = yy_current_buffer->yy_buf_size;
2206 if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
2207 YY_FATAL_ERROR( "flex scanner push-back overflow" );
2210 *--yy_cp = (char) c;
2216 yy_hold_char = *yy_cp;
2219 #endif /* ifndef YY_NO_UNPUT */
2224 static int yyinput()
2231 *yy_c_buf_p = yy_hold_char;
2233 if ( *yy_c_buf_p == YY_END_OF_BUFFER_CHAR )
2235 /* yy_c_buf_p now points to the character we want to return.
2236 * If this occurs *before* the EOB characters, then it's a
2237 * valid NUL; if not, then we've hit the end of the buffer.
2239 if ( yy_c_buf_p < &yy_current_buffer->yy_ch_buf[yy_n_chars] )
2240 /* This was really a NUL. */
2244 { /* need more input */
2245 int offset = yy_c_buf_p - yytext_ptr;
2248 switch ( yy_get_next_buffer() )
2250 case EOB_ACT_LAST_MATCH:
2251 /* This happens because yy_g_n_b()
2252 * sees that we've accumulated a
2253 * token and flags that we need to
2254 * try matching the token before
2255 * proceeding. But for input(),
2256 * there's no matching to consider.
2257 * So convert the EOB_ACT_LAST_MATCH
2258 * to EOB_ACT_END_OF_FILE.
2261 /* Reset buffer status. */
2266 case EOB_ACT_END_OF_FILE:
2271 if ( ! yy_did_buffer_switch_on_eof )
2280 case EOB_ACT_CONTINUE_SCAN:
2281 yy_c_buf_p = yytext_ptr + offset;
2287 c = *(unsigned char *) yy_c_buf_p; /* cast for 8-bit char's */
2288 *yy_c_buf_p = '\0'; /* preserve yytext */
2289 yy_hold_char = *++yy_c_buf_p;
2296 #endif /* YY_NO_INPUT */
2298 #ifdef YY_USE_PROTOS
2299 void yyrestart( FILE *input_file )
2301 void yyrestart( input_file )
2305 if ( ! yy_current_buffer )
2306 yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE );
2308 yy_init_buffer( yy_current_buffer, input_file );
2309 yy_load_buffer_state();
2313 #ifdef YY_USE_PROTOS
2314 void yy_switch_to_buffer( YY_BUFFER_STATE new_buffer )
2316 void yy_switch_to_buffer( new_buffer )
2317 YY_BUFFER_STATE new_buffer;
2320 if ( yy_current_buffer == new_buffer )
2323 if ( yy_current_buffer )
2325 /* Flush out information for old buffer. */
2326 *yy_c_buf_p = yy_hold_char;
2327 yy_current_buffer->yy_buf_pos = yy_c_buf_p;
2328 yy_current_buffer->yy_n_chars = yy_n_chars;
2331 yy_current_buffer = new_buffer;
2332 yy_load_buffer_state();
2334 /* We don't actually know whether we did this switch during
2335 * EOF (yywrap()) processing, but the only time this flag
2336 * is looked at is after yywrap() is called, so it's safe
2337 * to go ahead and always set it.
2339 yy_did_buffer_switch_on_eof = 1;
2343 #ifdef YY_USE_PROTOS
2344 void yy_load_buffer_state( void )
2346 void yy_load_buffer_state()
2349 yy_n_chars = yy_current_buffer->yy_n_chars;
2350 yytext_ptr = yy_c_buf_p = yy_current_buffer->yy_buf_pos;
2351 yyin = yy_current_buffer->yy_input_file;
2352 yy_hold_char = *yy_c_buf_p;
2356 #ifdef YY_USE_PROTOS
2357 YY_BUFFER_STATE yy_create_buffer( FILE *file, int size )
2359 YY_BUFFER_STATE yy_create_buffer( file, size )
2366 b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
2368 YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
2370 b->yy_buf_size = size;
2372 /* yy_ch_buf has to be 2 characters longer than the size given because
2373 * we need to put in 2 end-of-buffer characters.
2375 b->yy_ch_buf = (char *) yy_flex_alloc( b->yy_buf_size + 2 );
2376 if ( ! b->yy_ch_buf )
2377 YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
2379 b->yy_is_our_buffer = 1;
2381 yy_init_buffer( b, file );
2387 #ifdef YY_USE_PROTOS
2388 void yy_delete_buffer( YY_BUFFER_STATE b )
2390 void yy_delete_buffer( b )
2397 if ( b == yy_current_buffer )
2398 yy_current_buffer = (YY_BUFFER_STATE) 0;
2400 if ( b->yy_is_our_buffer )
2401 yy_flex_free( (void *) b->yy_ch_buf );
2403 yy_flex_free( (void *) b );
2408 #ifdef YY_USE_PROTOS
2409 void yy_init_buffer( YY_BUFFER_STATE b, FILE *file )
2411 void yy_init_buffer( b, file )
2418 yy_flush_buffer( b );
2420 b->yy_input_file = file;
2421 b->yy_fill_buffer = 1;
2423 #if YY_ALWAYS_INTERACTIVE
2424 b->yy_is_interactive = 1;
2426 #if YY_NEVER_INTERACTIVE
2427 b->yy_is_interactive = 0;
2429 b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
2435 #ifdef YY_USE_PROTOS
2436 void yy_flush_buffer( YY_BUFFER_STATE b )
2438 void yy_flush_buffer( b )
2448 /* We always need two end-of-buffer characters. The first causes
2449 * a transition to the end-of-buffer state. The second causes
2450 * a jam in that state.
2452 b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
2453 b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
2455 b->yy_buf_pos = &b->yy_ch_buf[0];
2458 b->yy_buffer_status = YY_BUFFER_NEW;
2460 if ( b == yy_current_buffer )
2461 yy_load_buffer_state();
2465 #ifndef YY_NO_SCAN_BUFFER
2466 #ifdef YY_USE_PROTOS
2467 YY_BUFFER_STATE yy_scan_buffer( char *base, yy_size_t size )
2469 YY_BUFFER_STATE yy_scan_buffer( base, size )
2477 base[size-2] != YY_END_OF_BUFFER_CHAR ||
2478 base[size-1] != YY_END_OF_BUFFER_CHAR )
2479 /* They forgot to leave room for the EOB's. */
2482 b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
2484 YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
2486 b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */
2487 b->yy_buf_pos = b->yy_ch_buf = base;
2488 b->yy_is_our_buffer = 0;
2489 b->yy_input_file = 0;
2490 b->yy_n_chars = b->yy_buf_size;
2491 b->yy_is_interactive = 0;
2493 b->yy_fill_buffer = 0;
2494 b->yy_buffer_status = YY_BUFFER_NEW;
2496 yy_switch_to_buffer( b );
2503 #ifndef YY_NO_SCAN_STRING
2504 #ifdef YY_USE_PROTOS
2505 YY_BUFFER_STATE yy_scan_string( yyconst char *yy_str )
2507 YY_BUFFER_STATE yy_scan_string( yy_str )
2508 yyconst char *yy_str;
2512 for ( len = 0; yy_str[len]; ++len )
2515 return yy_scan_bytes( yy_str, len );
2520 #ifndef YY_NO_SCAN_BYTES
2521 #ifdef YY_USE_PROTOS
2522 YY_BUFFER_STATE yy_scan_bytes( yyconst char *bytes, int len )
2524 YY_BUFFER_STATE yy_scan_bytes( bytes, len )
2525 yyconst char *bytes;
2534 /* Get memory for full buffer, including space for trailing EOB's. */
2536 buf = (char *) yy_flex_alloc( n );
2538 YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
2540 for ( i = 0; i < len; ++i )
2543 buf[len] = buf[len+1] = YY_END_OF_BUFFER_CHAR;
2545 b = yy_scan_buffer( buf, n );
2547 YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
2549 /* It's okay to grow etc. this buffer, and we should throw it
2550 * away when we're done.
2552 b->yy_is_our_buffer = 1;
2559 #ifndef YY_NO_PUSH_STATE
2560 #ifdef YY_USE_PROTOS
2561 static void yy_push_state( int new_state )
2563 static void yy_push_state( new_state )
2567 if ( yy_start_stack_ptr >= yy_start_stack_depth )
2571 yy_start_stack_depth += YY_START_STACK_INCR;
2572 new_size = yy_start_stack_depth * sizeof( int );
2574 if ( ! yy_start_stack )
2575 yy_start_stack = (int *) yy_flex_alloc( new_size );
2578 yy_start_stack = (int *) yy_flex_realloc(
2579 (void *) yy_start_stack, new_size );
2581 if ( ! yy_start_stack )
2583 "out of memory expanding start-condition stack" );
2586 yy_start_stack[yy_start_stack_ptr++] = YY_START;
2593 #ifndef YY_NO_POP_STATE
2594 static void yy_pop_state()
2596 if ( --yy_start_stack_ptr < 0 )
2597 YY_FATAL_ERROR( "start-condition stack underflow" );
2599 BEGIN(yy_start_stack[yy_start_stack_ptr]);
2604 #ifndef YY_NO_TOP_STATE
2605 static int yy_top_state()
2607 return yy_start_stack[yy_start_stack_ptr - 1];
2611 #ifndef YY_EXIT_FAILURE
2612 #define YY_EXIT_FAILURE 2
2615 #ifdef YY_USE_PROTOS
2616 static void yy_fatal_error( yyconst char msg[] )
2618 static void yy_fatal_error( msg )
2622 (void) fprintf( stderr, "%s\n", msg );
2623 exit( YY_EXIT_FAILURE );
2628 /* Redefine yyless() so it works in section 3 code. */
2634 /* Undo effects of setting up yytext. */ \
2635 yytext[yyleng] = yy_hold_char; \
2636 yy_c_buf_p = yytext + n; \
2637 yy_hold_char = *yy_c_buf_p; \
2638 *yy_c_buf_p = '\0'; \
2644 /* Internal utility routines. */
2647 #ifdef YY_USE_PROTOS
2648 static void yy_flex_strncpy( char *s1, yyconst char *s2, int n )
2650 static void yy_flex_strncpy( s1, s2, n )
2657 for ( i = 0; i < n; ++i )
2662 #ifdef YY_NEED_STRLEN
2663 #ifdef YY_USE_PROTOS
2664 static int yy_flex_strlen( yyconst char *s )
2666 static int yy_flex_strlen( s )
2671 for ( n = 0; s[n]; ++n )
2679 #ifdef YY_USE_PROTOS
2680 static void *yy_flex_alloc( yy_size_t size )
2682 static void *yy_flex_alloc( size )
2686 return (void *) malloc( size );
2689 #ifdef YY_USE_PROTOS
2690 static inline void *yy_flex_realloc( void *ptr, yy_size_t size )
2692 static inline void *yy_flex_realloc( ptr, size )
2697 /* The cast to (char *) in the following accommodates both
2698 * implementations that use char* generic pointers, and those
2699 * that use void* generic pointers. It works with the latter
2700 * because both ANSI C and C++ allow castless assignment from
2701 * any pointer type to void*, and deal with argument conversions
2702 * as though doing an assignment.
2704 return (void *) realloc( (char *) ptr, size );
2707 #ifdef YY_USE_PROTOS
2708 static void yy_flex_free( void *ptr )
2710 static void yy_flex_free( ptr )
2724 #line 247 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"