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 131
321 #define YY_END_OF_BUFFER 132
322 static yyconst short int yy_acclist[209] =
324 132, 130, 131, 129, 130, 131, 129, 131, 130, 131,
325 130, 131, 130, 131, 130, 131, 130, 131, 130, 131,
326 122, 130, 131, 122, 130, 131, 1, 130, 131, 130,
327 131, 130, 131, 130, 131, 130, 131, 130, 131, 130,
328 131, 130, 131, 130, 131, 130, 131, 130, 131, 130,
329 131, 130, 131, 130, 131, 130, 131, 130, 131, 130,
330 131, 130, 131, 130, 131, 130, 131, 130, 131, 130,
331 131, 121, 119, 118, 118, 125, 123, 127, 122, 1,
332 103, 39, 73, 23, 121, 118, 118, 126, 127, 20,
333 127, 128, 61, 72, 37, 32, 40, 64, 3, 52,
335 63, 81, 68, 102, 97, 98, 62, 74, 120, 127,
336 127, 99, 47, 82, 83, 67, 111, 71, 112, 54,
337 100, 22, 124, 66, 86, 70, 24, 4, 60, 65,
338 53, 69, 46, 11, 85, 127, 34, 2, 5, 56,
339 88, 58, 48, 76, 80, 78, 79, 77, 75, 50,
340 113, 84, 49, 55, 21, 110, 43, 57, 28, 107,
341 42, 90, 89, 7, 105, 31, 109, 36, 59, 96,
342 92, 104, 25, 26, 91, 106, 51, 101, 95, 41,
343 6, 27, 87, 35, 8, 16, 9, 94, 10, 93,
344 33, 12, 14, 13, 30, 38, 15, 29, 108, 114,
346 116, 117, 17, 44, 115, 18, 45, 19
349 static yyconst short int yy_accept[568] =
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, 108, 109, 109, 109, 110, 111, 111, 111, 111,
376 112, 112, 112, 112, 113, 113, 113, 114, 115, 116,
377 116, 116, 116, 116, 116, 116, 116, 116, 116, 116,
378 116, 116, 116, 116, 116, 117, 117, 117, 117, 117,
379 118, 119, 119, 119, 119, 119, 119, 119, 119, 119,
380 119, 119, 120, 121, 122, 122, 122, 123, 123, 123,
381 123, 124, 124, 125, 125, 125, 125, 125, 125, 125,
382 126, 126, 126, 126, 126, 127, 127, 127, 128, 128,
384 128, 129, 129, 130, 130, 131, 132, 132, 132, 132,
385 132, 132, 132, 133, 133, 133, 134, 134, 135, 135,
386 135, 136, 137, 138, 138, 138, 139, 139, 139, 139,
387 139, 139, 139, 139, 139, 139, 139, 139, 139, 139,
388 139, 140, 140, 141, 142, 142, 142, 142, 142, 142,
389 142, 142, 142, 142, 142, 143, 143, 143, 143, 143,
390 143, 143, 143, 144, 144, 144, 145, 146, 147, 148,
391 149, 150, 151, 151, 151, 151, 152, 152, 152, 152,
392 153, 154, 154, 155, 156, 156, 156, 156, 156, 156,
393 156, 156, 156, 156, 157, 157, 157, 158, 158, 158,
395 158, 158, 158, 158, 158, 159, 160, 161, 161, 161,
396 162, 163, 164, 164, 164, 165, 165, 165, 165, 165,
397 166, 166, 167, 168, 169, 170, 170, 170, 170, 171,
398 171, 171, 172, 173, 174, 175, 176, 176, 176, 177,
399 178, 179, 179, 179, 179, 179, 179, 180, 180, 181,
400 181, 182, 183, 183, 183, 183, 183, 183, 184, 184,
401 184, 184, 184, 184, 184, 184, 184, 185, 185, 185,
402 185, 185, 185, 185, 185, 185, 185, 186, 186, 186,
403 186, 186, 187, 187, 187, 187, 187, 188, 189, 190,
404 190, 191, 191, 191, 191, 191, 192, 192, 192, 192,
406 193, 193, 194, 195, 195, 195, 195, 195, 195, 195,
407 195, 195, 195, 195, 195, 195, 195, 196, 196, 196,
408 196, 196, 196, 196, 196, 197, 197, 197, 197, 197,
409 197, 198, 198, 198, 198, 198, 199, 199, 199, 200,
410 200, 200, 200, 200, 200, 200, 200, 200, 200, 200,
411 200, 200, 200, 201, 201, 202, 203, 204, 204, 205,
412 205, 206, 207, 208, 208, 209, 209
415 static yyconst int yy_ec[256] =
417 1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
418 1, 1, 2, 1, 1, 1, 1, 1, 1, 1,
419 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
420 1, 2, 1, 4, 1, 5, 6, 1, 1, 1,
421 1, 1, 7, 1, 8, 9, 1, 10, 11, 11,
422 11, 11, 11, 12, 11, 13, 11, 14, 15, 1,
423 1, 1, 1, 1, 16, 16, 16, 16, 17, 16,
424 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
425 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
426 1, 1, 1, 1, 18, 1, 19, 20, 21, 22,
428 23, 24, 25, 26, 27, 5, 28, 29, 30, 31,
429 32, 33, 34, 35, 36, 37, 38, 39, 40, 41,
430 42, 43, 1, 1, 1, 1, 1, 1, 1, 1,
431 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
432 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
433 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
434 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
435 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
436 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
437 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
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,
447 static yyconst int yy_meta[44] =
449 1, 1, 2, 1, 3, 1, 1, 3, 3, 3,
450 3, 3, 3, 4, 1, 3, 3, 3, 3, 3,
451 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
452 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
456 static yyconst short int yy_base[572] =
458 0, 0, 1222, 1223, 1223, 1223, 1217, 1206, 36, 40,
459 44, 50, 56, 62, 0, 63, 66, 81, 89, 47,
460 100, 97, 76, 96, 111, 46, 48, 110, 68, 140,
461 126, 171, 120, 123, 73, 130, 1215, 1223, 1204, 1223,
462 0, 159, 176, 199, 204, 95, 209, 224, 229, 0,
463 134, 165, 137, 124, 169, 151, 159, 31, 1203, 168,
464 210, 230, 233, 127, 241, 189, 176, 117, 242, 244,
465 240, 243, 246, 249, 252, 253, 257, 259, 263, 265,
466 266, 274, 268, 269, 273, 277, 282, 211, 1202, 287,
467 290, 293, 294, 160, 270, 295, 304, 305, 299, 306,
469 312, 296, 321, 324, 1201, 325, 309, 313, 333, 335,
470 318, 340, 342, 332, 339, 347, 350, 215, 354, 356,
471 1200, 0, 371, 375, 1199, 389, 406, 0, 1198, 365,
472 363, 1197, 382, 359, 1196, 394, 1195, 357, 301, 393,
473 390, 1194, 401, 395, 410, 411, 397, 414, 1193, 415,
474 420, 418, 421, 423, 425, 422, 427, 433, 434, 435,
475 439, 437, 436, 443, 440, 441, 451, 454, 457, 459,
476 460, 462, 465, 466, 467, 1192, 470, 472, 1191, 379,
477 474, 1190, 1189, 502, 479, 478, 483, 475, 513, 493,
478 1188, 494, 1187, 477, 480, 496, 517, 518, 1186, 519,
480 520, 521, 476, 527, 525, 523, 526, 529, 531, 537,
481 538, 540, 541, 543, 545, 548, 553, 555, 559, 560,
482 565, 1185, 562, 567, 1223, 574, 588, 595, 599, 604,
483 588, 568, 589, 1184, 607, 608, 1183, 1182, 1181, 609,
484 610, 611, 612, 614, 615, 617, 620, 622, 618, 621,
485 625, 626, 629, 632, 1180, 630, 635, 641, 642, 1179,
486 1178, 645, 643, 647, 649, 650, 651, 654, 652, 655,
487 657, 1177, 1176, 1175, 659, 661, 1174, 662, 664, 674,
488 0, 675, 1173, 678, 681, 679, 680, 685, 693, 1172,
489 682, 690, 695, 696, 1171, 698, 709, 1170, 701, 697,
491 1169, 711, 1168, 713, 1167, 1166, 714, 715, 717, 719,
492 720, 721, 1165, 723, 728, 1164, 729, 1163, 731, 730,
493 1162, 737, 1161, 737, 739, 1160, 740, 748, 745, 751,
494 754, 746, 757, 756, 760, 761, 764, 765, 766, 769,
495 1159, 771, 1158, 1157, 772, 773, 774, 768, 780, 782,
496 784, 787, 789, 790, 1156, 792, 793, 794, 796, 797,
497 803, 800, 1155, 810, 811, 1154, 1153, 1152, 1151, 1150,
498 1149, 1148, 814, 815, 816, 1147, 818, 817, 822, 1146,
499 1145, 819, 1144, 1143, 820, 826, 824, 821, 836, 837,
500 841, 839, 842, 1142, 845, 848, 1141, 849, 853, 823,
502 852, 854, 855, 856, 1140, 1139, 1138, 863, 857, 1137,
503 1136, 1135, 865, 869, 1134, 870, 875, 877, 864, 1133,
504 881, 1132, 1131, 1130, 1129, 878, 883, 886, 1128, 889,
505 891, 1127, 1126, 1125, 1124, 1123, 892, 890, 1122, 1121,
506 1120, 893, 894, 896, 897, 895, 1119, 906, 1118, 907,
507 1117, 1116, 909, 911, 913, 918, 914, 1115, 915, 917,
508 920, 921, 919, 922, 926, 927, 1114, 928, 937, 938,
509 942, 945, 941, 944, 949, 952, 1113, 955, 957, 958,
510 956, 1112, 959, 960, 961, 962, 1111, 1110, 1107, 969,
511 1097, 966, 976, 970, 967, 1096, 986, 987, 978, 1095,
513 988, 1094, 1092, 989, 990, 995, 996, 997, 998, 1000,
514 1002, 1003, 1004, 1005, 1006, 1009, 1091, 1008, 1012, 1015,
515 1017, 1020, 1023, 1024, 1089, 1026, 1030, 1031, 1033, 1035,
516 1088, 1036, 1037, 1038, 1041, 1084, 1043, 1044, 1082, 1042,
517 1049, 1052, 1054, 1059, 1063, 1062, 1066, 1064, 1067, 1068,
518 1069, 1070, 1079, 1073, 968, 827, 683, 1076, 579, 1077,
519 578, 576, 490, 1078, 488, 1223, 1113, 1115, 124, 1119,
523 static yyconst short int yy_def[572] =
525 566, 1, 566, 566, 566, 566, 567, 568, 569, 566,
526 568, 568, 568, 568, 570, 568, 568, 568, 568, 568,
527 568, 568, 568, 568, 568, 568, 568, 568, 568, 568,
528 568, 568, 568, 568, 568, 568, 567, 566, 568, 566,
529 571, 571, 566, 566, 568, 568, 568, 568, 568, 570,
530 568, 568, 568, 568, 568, 568, 568, 568, 568, 568,
531 568, 568, 568, 568, 568, 568, 568, 568, 568, 568,
532 568, 568, 568, 568, 568, 568, 568, 568, 568, 568,
533 568, 568, 568, 568, 568, 568, 568, 568, 568, 568,
534 568, 568, 568, 568, 568, 568, 568, 568, 568, 568,
536 568, 568, 568, 568, 568, 568, 568, 568, 568, 568,
537 568, 568, 568, 568, 568, 568, 568, 568, 568, 568,
538 566, 571, 571, 566, 568, 568, 568, 49, 568, 568,
539 568, 568, 568, 568, 568, 568, 568, 568, 568, 568,
540 568, 568, 568, 568, 568, 568, 568, 568, 568, 568,
541 568, 568, 568, 568, 568, 568, 568, 568, 568, 568,
542 568, 568, 568, 568, 568, 568, 568, 568, 568, 568,
543 568, 568, 568, 568, 568, 568, 568, 568, 568, 568,
544 568, 568, 568, 49, 568, 568, 568, 568, 568, 568,
545 568, 568, 568, 568, 568, 568, 568, 568, 568, 568,
547 568, 568, 568, 568, 568, 568, 568, 568, 568, 568,
548 568, 568, 568, 568, 568, 568, 568, 568, 568, 568,
549 568, 568, 568, 568, 566, 566, 566, 566, 568, 568,
550 568, 568, 568, 568, 568, 568, 568, 568, 568, 568,
551 568, 568, 568, 568, 568, 568, 568, 568, 568, 568,
552 568, 568, 568, 568, 568, 568, 568, 568, 568, 568,
553 568, 568, 568, 568, 568, 568, 568, 568, 568, 568,
554 568, 568, 568, 568, 568, 568, 568, 568, 568, 568,
555 184, 568, 568, 568, 568, 568, 568, 568, 568, 568,
556 568, 568, 568, 568, 568, 568, 568, 568, 568, 568,
558 568, 568, 568, 568, 568, 568, 568, 568, 568, 568,
559 568, 568, 568, 568, 568, 568, 568, 568, 568, 568,
560 568, 566, 568, 568, 568, 568, 568, 568, 568, 568,
561 568, 568, 568, 568, 568, 568, 568, 568, 568, 568,
562 568, 568, 568, 568, 568, 568, 568, 568, 568, 568,
563 568, 568, 568, 568, 568, 568, 568, 568, 568, 568,
564 568, 568, 568, 568, 568, 568, 568, 568, 568, 568,
565 568, 568, 568, 568, 568, 568, 568, 568, 568, 568,
566 568, 568, 568, 568, 568, 568, 568, 568, 568, 568,
567 568, 568, 568, 568, 568, 568, 568, 568, 568, 568,
569 568, 568, 568, 568, 568, 568, 568, 568, 568, 568,
570 568, 568, 568, 568, 568, 568, 568, 568, 568, 568,
571 568, 568, 568, 568, 568, 568, 568, 568, 568, 568,
572 568, 568, 568, 568, 568, 568, 568, 568, 568, 568,
573 568, 568, 568, 568, 568, 568, 568, 568, 568, 568,
574 568, 568, 568, 568, 568, 568, 568, 568, 568, 568,
575 568, 568, 568, 568, 568, 568, 568, 568, 568, 568,
576 568, 568, 568, 568, 568, 568, 568, 568, 568, 568,
577 568, 568, 568, 568, 568, 568, 568, 568, 568, 568,
578 568, 568, 568, 568, 568, 568, 568, 568, 568, 568,
580 568, 568, 568, 568, 568, 568, 568, 568, 568, 568,
581 568, 568, 568, 568, 568, 568, 568, 568, 568, 568,
582 568, 568, 568, 568, 568, 568, 568, 568, 568, 568,
583 568, 568, 568, 568, 568, 568, 568, 568, 568, 568,
584 568, 568, 568, 568, 568, 568, 568, 568, 568, 568,
585 568, 568, 568, 568, 568, 568, 568, 568, 568, 568,
586 568, 568, 568, 568, 568, 0, 566, 566, 566, 566,
590 static yyconst short int yy_nxt[1267] =
592 4, 5, 6, 7, 8, 9, 10, 11, 12, 13,
593 14, 14, 14, 4, 15, 8, 8, 8, 16, 17,
594 18, 19, 20, 21, 22, 8, 23, 8, 24, 25,
595 26, 27, 28, 8, 29, 30, 31, 32, 33, 34,
596 35, 8, 36, 42, 40, 43, 43, 43, 43, 44,
597 44, 44, 44, 45, 45, 45, 45, 40, 46, 40,
598 40, 40, 139, 40, 47, 48, 48, 48, 48, 40,
599 47, 48, 48, 48, 48, 40, 40, 69, 122, 40,
600 88, 40, 89, 87, 51, 118, 40, 70, 56, 40,
601 93, 52, 57, 53, 40, 54, 49, 58, 55, 60,
603 59, 61, 40, 125, 119, 78, 79, 64, 40, 40,
604 40, 65, 62, 40, 80, 66, 63, 67, 71, 76,
605 68, 72, 81, 40, 40, 77, 41, 82, 73, 84,
606 40, 83, 74, 40, 75, 90, 40, 40, 115, 40,
607 40, 91, 85, 40, 104, 117, 92, 40, 86, 94,
608 40, 116, 120, 40, 151, 129, 133, 105, 132, 95,
609 106, 96, 97, 146, 40, 98, 99, 107, 123, 123,
610 123, 123, 40, 40, 100, 136, 101, 102, 40, 103,
611 94, 40, 40, 137, 40, 43, 43, 43, 43, 40,
612 108, 130, 109, 131, 134, 138, 140, 110, 135, 111,
614 184, 112, 40, 141, 150, 113, 114, 124, 44, 44,
615 44, 44, 47, 45, 45, 45, 45, 40, 126, 126,
616 126, 126, 40, 40, 40, 127, 221, 149, 40, 178,
617 142, 127, 47, 48, 48, 48, 48, 40, 128, 128,
618 128, 128, 40, 40, 128, 128, 40, 128, 128, 128,
619 128, 128, 128, 40, 40, 40, 40, 40, 143, 40,
620 144, 147, 40, 152, 153, 40, 40, 145, 155, 157,
621 40, 159, 40, 148, 161, 156, 40, 158, 40, 40,
622 154, 40, 40, 40, 168, 160, 40, 40, 163, 162,
623 40, 164, 171, 173, 175, 40, 169, 174, 165, 166,
625 40, 167, 170, 40, 172, 176, 40, 40, 40, 40,
626 177, 185, 40, 179, 40, 199, 180, 40, 40, 40,
627 195, 186, 40, 182, 187, 40, 40, 181, 197, 237,
628 183, 40, 188, 191, 40, 196, 192, 40, 40, 193,
629 189, 205, 194, 198, 190, 40, 40, 200, 40, 210,
630 201, 203, 40, 40, 206, 40, 217, 216, 202, 207,
631 40, 211, 204, 40, 215, 208, 212, 40, 220, 40,
632 40, 209, 40, 218, 213, 219, 40, 236, 40, 214,
633 123, 123, 123, 123, 226, 226, 226, 226, 222, 231,
634 223, 227, 40, 234, 232, 40, 224, 227, 126, 126,
636 126, 126, 40, 40, 233, 127, 40, 40, 40, 279,
637 40, 127, 228, 229, 40, 230, 230, 230, 230, 40,
638 235, 238, 240, 40, 40, 244, 239, 40, 40, 243,
639 241, 40, 242, 40, 40, 40, 40, 246, 40, 248,
640 40, 247, 245, 250, 249, 251, 40, 40, 40, 40,
641 40, 256, 40, 40, 40, 263, 40, 252, 254, 262,
642 253, 260, 265, 266, 40, 255, 258, 40, 261, 259,
643 40, 264, 40, 40, 257, 40, 269, 267, 40, 40,
644 40, 272, 268, 40, 270, 40, 273, 40, 40, 40,
645 40, 40, 40, 40, 275, 271, 40, 285, 277, 274,
647 292, 40, 293, 40, 276, 278, 40, 40, 300, 40,
648 280, 281, 281, 281, 281, 282, 283, 281, 281, 284,
649 281, 281, 281, 281, 281, 281, 40, 294, 291, 290,
650 40, 40, 40, 40, 40, 286, 40, 287, 40, 40,
651 40, 288, 40, 289, 40, 299, 295, 303, 298, 301,
652 40, 40, 296, 40, 40, 297, 40, 302, 40, 304,
653 309, 40, 307, 311, 305, 306, 40, 308, 40, 312,
654 310, 315, 40, 40, 313, 40, 316, 317, 40, 314,
655 40, 40, 319, 226, 226, 226, 226, 318, 324, 40,
656 227, 40, 40, 320, 228, 228, 227, 322, 322, 322,
658 322, 40, 40, 321, 322, 322, 322, 322, 230, 230,
659 230, 230, 40, 230, 230, 230, 230, 40, 323, 325,
660 40, 40, 40, 40, 40, 40, 327, 40, 40, 328,
661 40, 40, 332, 40, 40, 40, 337, 326, 40, 40,
662 331, 333, 40, 40, 340, 40, 329, 330, 40, 335,
663 336, 341, 342, 338, 40, 40, 40, 334, 40, 339,
664 40, 349, 40, 40, 40, 40, 343, 40, 40, 350,
665 40, 344, 40, 348, 40, 40, 345, 40, 346, 347,
666 355, 354, 353, 351, 352, 357, 356, 40, 40, 359,
667 358, 40, 40, 40, 40, 40, 40, 363, 40, 360,
669 361, 365, 367, 40, 364, 362, 40, 369, 40, 40,
670 40, 40, 366, 373, 40, 371, 368, 374, 372, 375,
671 376, 370, 40, 378, 40, 379, 40, 40, 40, 377,
672 40, 380, 40, 40, 40, 381, 40, 382, 386, 383,
673 384, 40, 40, 40, 40, 385, 322, 322, 322, 322,
674 40, 387, 40, 40, 391, 394, 393, 388, 40, 40,
675 395, 40, 389, 398, 40, 390, 392, 40, 397, 40,
676 40, 399, 400, 40, 40, 396, 402, 40, 40, 40,
677 401, 40, 40, 405, 40, 40, 40, 40, 403, 409,
678 414, 410, 404, 40, 406, 40, 408, 40, 411, 412,
680 40, 407, 40, 40, 413, 40, 40, 40, 415, 40,
681 40, 416, 420, 40, 423, 422, 40, 418, 424, 425,
682 417, 419, 421, 40, 40, 426, 427, 40, 40, 40,
683 40, 40, 40, 40, 40, 40, 40, 40, 431, 40,
684 40, 428, 430, 433, 435, 439, 438, 429, 432, 40,
685 40, 436, 40, 434, 40, 40, 437, 440, 40, 443,
686 441, 40, 40, 442, 450, 40, 40, 40, 40, 40,
687 40, 446, 445, 449, 451, 444, 40, 40, 40, 448,
688 455, 456, 40, 40, 447, 458, 453, 454, 40, 452,
689 40, 40, 460, 457, 40, 462, 40, 461, 459, 40,
691 463, 464, 40, 40, 40, 40, 40, 40, 40, 40,
692 40, 468, 465, 466, 469, 471, 467, 474, 470, 40,
693 40, 472, 40, 475, 40, 476, 40, 40, 40, 473,
694 40, 40, 40, 40, 40, 40, 483, 484, 478, 40,
695 40, 40, 477, 479, 489, 480, 482, 485, 486, 487,
696 40, 40, 481, 488, 40, 40, 494, 40, 40, 493,
697 495, 490, 40, 491, 498, 40, 492, 496, 40, 40,
698 40, 40, 40, 40, 40, 40, 500, 497, 504, 40,
699 40, 40, 40, 40, 508, 499, 513, 505, 510, 40,
700 506, 40, 501, 502, 503, 509, 511, 507, 512, 40,
702 40, 40, 40, 40, 516, 515, 514, 518, 40, 40,
703 40, 40, 519, 40, 521, 40, 40, 40, 40, 40,
704 524, 40, 40, 528, 517, 40, 522, 530, 40, 526,
705 40, 520, 527, 40, 529, 531, 40, 40, 525, 40,
706 523, 532, 535, 40, 40, 536, 40, 533, 40, 40,
707 40, 40, 539, 534, 40, 40, 40, 40, 543, 540,
708 537, 541, 40, 542, 545, 40, 548, 40, 538, 550,
709 549, 546, 40, 544, 547, 40, 40, 40, 551, 40,
710 40, 40, 40, 40, 552, 557, 40, 558, 559, 40,
711 40, 40, 40, 553, 554, 40, 563, 40, 555, 564,
713 556, 40, 40, 562, 40, 40, 561, 40, 40, 40,
714 40, 560, 565, 37, 37, 37, 37, 39, 39, 50,
715 40, 50, 50, 40, 40, 40, 40, 40, 40, 40,
716 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
717 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
718 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
719 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
720 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
721 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
722 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
724 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
725 40, 40, 40, 225, 40, 40, 40, 40, 121, 40,
726 38, 566, 3, 566, 566, 566, 566, 566, 566, 566,
727 566, 566, 566, 566, 566, 566, 566, 566, 566, 566,
728 566, 566, 566, 566, 566, 566, 566, 566, 566, 566,
729 566, 566, 566, 566, 566, 566, 566, 566, 566, 566,
730 566, 566, 566, 566, 566, 566
733 static yyconst short int yy_chk[1267] =
735 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
736 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
737 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
738 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
739 1, 1, 1, 9, 58, 9, 9, 9, 9, 10,
740 10, 10, 10, 11, 11, 11, 11, 11, 12, 26,
741 20, 27, 58, 12, 13, 13, 13, 13, 13, 13,
742 14, 14, 14, 14, 14, 14, 16, 20, 571, 17,
743 27, 29, 27, 26, 16, 35, 35, 20, 17, 23,
744 29, 16, 17, 16, 18, 16, 13, 17, 16, 18,
746 17, 18, 19, 46, 35, 23, 23, 19, 46, 24,
747 22, 19, 18, 21, 24, 19, 18, 19, 21, 22,
748 19, 21, 24, 28, 25, 22, 569, 24, 21, 25,
749 68, 24, 21, 33, 21, 28, 34, 54, 33, 31,
750 64, 28, 25, 36, 31, 34, 28, 51, 25, 30,
751 53, 33, 36, 30, 68, 51, 54, 31, 53, 30,
752 31, 30, 30, 64, 56, 30, 30, 31, 42, 42,
753 42, 42, 57, 94, 30, 56, 30, 30, 52, 30,
754 32, 60, 55, 57, 32, 43, 43, 43, 43, 67,
755 32, 52, 32, 52, 55, 57, 60, 32, 55, 32,
757 94, 32, 66, 60, 67, 32, 32, 44, 44, 44,
758 44, 44, 45, 45, 45, 45, 45, 45, 47, 47,
759 47, 47, 47, 61, 88, 47, 118, 66, 118, 88,
760 61, 47, 48, 48, 48, 48, 48, 48, 49, 49,
761 49, 49, 49, 62, 49, 49, 63, 49, 49, 49,
762 49, 49, 49, 71, 65, 69, 72, 70, 62, 73,
763 62, 65, 74, 69, 70, 75, 76, 63, 71, 72,
764 77, 74, 78, 65, 75, 71, 79, 73, 80, 81,
765 70, 83, 84, 95, 80, 74, 85, 82, 77, 76,
766 86, 78, 82, 83, 85, 87, 81, 84, 79, 79,
768 90, 79, 81, 91, 82, 86, 92, 93, 96, 102,
769 87, 95, 99, 90, 139, 102, 91, 97, 98, 100,
770 99, 96, 107, 93, 97, 101, 108, 92, 100, 139,
771 93, 111, 97, 98, 103, 99, 98, 104, 106, 98,
772 97, 107, 98, 101, 97, 114, 109, 103, 110, 111,
773 104, 106, 115, 112, 108, 113, 115, 114, 104, 109,
774 116, 112, 106, 117, 113, 110, 112, 119, 117, 120,
775 138, 110, 134, 116, 112, 116, 131, 138, 130, 112,
776 123, 123, 123, 123, 124, 124, 124, 124, 119, 130,
777 120, 124, 180, 134, 131, 133, 120, 124, 126, 126,
779 126, 126, 126, 141, 133, 126, 140, 136, 144, 180,
780 147, 126, 127, 127, 143, 127, 127, 127, 127, 127,
781 136, 140, 143, 145, 146, 147, 141, 148, 150, 146,
782 144, 152, 145, 151, 153, 156, 154, 150, 155, 151,
783 157, 150, 148, 153, 152, 154, 158, 159, 160, 163,
784 162, 158, 161, 165, 166, 163, 164, 154, 156, 162,
785 155, 161, 165, 166, 167, 157, 160, 168, 161, 160,
786 169, 164, 170, 171, 159, 172, 168, 166, 173, 174,
787 175, 171, 167, 177, 169, 178, 172, 181, 188, 203,
788 194, 186, 185, 195, 174, 170, 187, 188, 177, 173,
790 194, 565, 195, 563, 175, 178, 190, 192, 203, 196,
791 181, 184, 184, 184, 184, 185, 186, 184, 184, 187,
792 184, 184, 184, 184, 184, 184, 189, 196, 192, 190,
793 197, 198, 200, 201, 202, 189, 206, 189, 205, 207,
794 204, 189, 208, 189, 209, 202, 197, 205, 201, 204,
795 210, 211, 198, 212, 213, 200, 214, 204, 215, 206,
796 211, 216, 209, 213, 207, 208, 217, 210, 218, 214,
797 212, 217, 219, 220, 215, 223, 218, 219, 221, 216,
798 224, 232, 221, 226, 226, 226, 226, 220, 232, 562,
799 226, 561, 559, 223, 227, 227, 226, 227, 227, 227,
801 227, 231, 233, 224, 228, 228, 228, 228, 229, 229,
802 229, 229, 229, 230, 230, 230, 230, 230, 231, 233,
803 235, 236, 240, 241, 242, 243, 236, 244, 245, 240,
804 246, 249, 244, 247, 250, 248, 249, 235, 251, 252,
805 243, 245, 253, 256, 252, 254, 241, 242, 257, 247,
806 248, 253, 254, 250, 258, 259, 263, 246, 262, 251,
807 264, 263, 265, 266, 267, 269, 256, 268, 270, 264,
808 271, 257, 275, 262, 276, 278, 258, 279, 258, 259,
809 269, 268, 267, 265, 266, 271, 270, 280, 282, 276,
810 275, 284, 286, 287, 285, 291, 557, 282, 288, 278,
812 279, 285, 287, 292, 284, 280, 289, 288, 293, 294,
813 300, 296, 286, 292, 299, 289, 287, 293, 291, 294,
814 296, 288, 297, 299, 302, 300, 304, 307, 308, 297,
815 309, 302, 310, 311, 312, 304, 314, 307, 311, 308,
816 309, 315, 317, 320, 319, 310, 322, 322, 322, 322,
817 324, 312, 325, 327, 319, 324, 320, 314, 329, 332,
818 325, 328, 315, 329, 330, 317, 319, 331, 328, 334,
819 333, 330, 331, 335, 336, 327, 333, 337, 338, 339,
820 332, 348, 340, 336, 342, 345, 346, 347, 334, 340,
821 348, 342, 335, 349, 337, 350, 339, 351, 345, 346,
823 352, 338, 353, 354, 347, 356, 357, 358, 349, 359,
824 360, 350, 354, 362, 358, 357, 361, 352, 359, 360,
825 351, 353, 356, 364, 365, 361, 362, 373, 374, 375,
826 378, 377, 382, 385, 388, 379, 400, 387, 374, 386,
827 556, 364, 373, 377, 379, 387, 386, 365, 375, 389,
828 390, 382, 392, 378, 391, 393, 385, 388, 395, 391,
829 389, 396, 398, 390, 400, 401, 399, 402, 403, 404,
830 409, 395, 393, 399, 401, 392, 408, 419, 413, 398,
831 408, 408, 414, 416, 396, 413, 403, 404, 417, 402,
832 418, 426, 416, 409, 421, 418, 427, 417, 414, 428,
834 419, 421, 430, 438, 431, 437, 442, 443, 446, 444,
835 445, 430, 426, 427, 431, 438, 428, 444, 437, 448,
836 450, 442, 453, 445, 454, 446, 455, 457, 459, 443,
837 460, 456, 463, 461, 462, 464, 457, 459, 450, 465,
838 466, 468, 448, 453, 464, 454, 456, 460, 461, 462,
839 469, 470, 455, 463, 473, 471, 470, 474, 472, 469,
840 471, 465, 475, 466, 474, 476, 468, 472, 478, 481,
841 479, 480, 483, 484, 485, 486, 476, 473, 481, 492,
842 495, 555, 490, 494, 486, 475, 495, 483, 492, 493,
843 484, 499, 478, 479, 480, 490, 493, 485, 494, 497,
845 498, 501, 504, 505, 499, 498, 497, 504, 506, 507,
846 508, 509, 505, 510, 507, 511, 512, 513, 514, 515,
847 510, 518, 516, 514, 501, 519, 508, 516, 520, 512,
848 521, 506, 513, 522, 515, 518, 523, 524, 511, 526,
849 509, 519, 522, 527, 528, 523, 529, 520, 530, 532,
850 533, 534, 527, 521, 535, 540, 537, 538, 532, 528,
851 524, 529, 541, 530, 534, 542, 538, 543, 526, 541,
852 540, 535, 544, 533, 537, 546, 545, 548, 542, 547,
853 549, 550, 551, 552, 543, 548, 554, 549, 550, 558,
854 560, 564, 553, 544, 545, 539, 558, 536, 546, 560,
856 547, 531, 525, 554, 517, 503, 552, 502, 500, 496,
857 491, 551, 564, 567, 567, 567, 567, 568, 568, 570,
858 489, 570, 570, 488, 487, 482, 477, 467, 458, 452,
859 451, 449, 447, 441, 440, 439, 436, 435, 434, 433,
860 432, 429, 425, 424, 423, 422, 420, 415, 412, 411,
861 410, 407, 406, 405, 397, 394, 384, 383, 381, 380,
862 376, 372, 371, 370, 369, 368, 367, 366, 363, 355,
863 344, 343, 341, 326, 323, 321, 318, 316, 313, 306,
864 305, 303, 301, 298, 295, 290, 283, 277, 274, 273,
865 272, 261, 260, 255, 239, 238, 237, 234, 222, 199,
867 193, 191, 183, 182, 179, 176, 149, 142, 137, 135,
868 132, 129, 125, 121, 105, 89, 59, 39, 37, 8,
869 7, 3, 566, 566, 566, 566, 566, 566, 566, 566,
870 566, 566, 566, 566, 566, 566, 566, 566, 566, 566,
871 566, 566, 566, 566, 566, 566, 566, 566, 566, 566,
872 566, 566, 566, 566, 566, 566, 566, 566, 566, 566,
873 566, 566, 566, 566, 566, 566
876 static yy_state_type yy_state_buf[YY_BUF_SIZE + 2], *yy_state_ptr;
877 static char *yy_full_match;
881 *yy_cp = yy_hold_char; /* undo effects of setting up yytext */ \
882 yy_cp = yy_full_match; /* restore poss. backed-over text */ \
886 #define yymore() yymore_used_but_not_detected
887 #define YY_MORE_ADJ 0
888 #define YY_RESTORE_YY_MORE_OFFSET
890 #line 1 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
892 /*===-- UpgradeLexer.l - Scanner for 1.9 assembly files --------*- C++ -*--===//
894 // The LLVM Compiler Infrastructure
896 // This file was developed by Reid Spencer and is distributed under the
897 // University of Illinois Open Source License. See LICENSE.TXT for details.
899 //===----------------------------------------------------------------------===//
901 // This file implements the flex scanner for LLVM 1.9 assembly languages files.
903 //===----------------------------------------------------------------------===*/
904 #define YY_NEVER_INTERACTIVE 1
905 #line 28 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
907 #include "ParserInternals.h"
908 #include "UpgradeParser.h"
912 #define YY_INPUT(buf,result,max_size) \
914 if (LexInput->good() && !LexInput->eof()) { \
915 LexInput->read(buf,max_size); \
916 result = LexInput->gcount(); \
923 // Construct a token value for a non-obsolete token
924 #define RET_TOK(sym) \
925 Upgradelval.String = new std::string(yytext); \
928 #define RET_TY(sym,OldTY,NewTY,sign) \
929 Upgradelval.Type.newTy = new std::string(NewTY); \
930 Upgradelval.Type.oldTy = OldTY; \
931 Upgradelval.Type.elemTy = VoidTy; \
934 #define YY_NEVER_INTERACTIVE 1
935 /* Comments start with a ; and go till end of line */
936 /* Variable(Value) identifiers start with a % sign */
937 /* Label identifiers end with a colon */
938 /* Quoted names can contain any character except " and \ */
939 /* [PN]Integer: match positive and negative literal integer values that
940 * are preceeded by a '%' character. These represent unnamed variable slots.
942 /* E[PN]Integer: match positive and negative literal integer values */
943 /* FPConstant - A Floating point constant.
945 /* HexFPConstant - Floating point constant represented in IEEE format as a
946 * hexadecimal number for when exponential notation is not precise enough.
948 /* HexIntConstant - Hexadecimal constant generated by the CFE to avoid forcing
949 * it to deal with 64 bit numbers.
951 #line 952 "UpgradeLexer.cpp"
953 /* Macros after this point can all be overridden by user definitions in
957 #ifndef YY_SKIP_YYWRAP
959 extern "C" int yywrap YY_PROTO(( void ));
961 extern int yywrap YY_PROTO(( void ));
966 static inline void yyunput YY_PROTO(( int c, char *buf_ptr ));
970 static void yy_flex_strncpy YY_PROTO(( char *, yyconst char *, int ));
973 #ifdef YY_NEED_STRLEN
974 static int yy_flex_strlen YY_PROTO(( yyconst char * ));
979 static int yyinput YY_PROTO(( void ));
981 static int input YY_PROTO(( void ));
986 static int yy_start_stack_ptr = 0;
987 static int yy_start_stack_depth = 0;
988 static int *yy_start_stack = 0;
989 #ifndef YY_NO_PUSH_STATE
990 static void yy_push_state YY_PROTO(( int new_state ));
992 #ifndef YY_NO_POP_STATE
993 static void yy_pop_state YY_PROTO(( void ));
995 #ifndef YY_NO_TOP_STATE
996 static int yy_top_state YY_PROTO(( void ));
1000 #define YY_NO_PUSH_STATE 1
1001 #define YY_NO_POP_STATE 1
1002 #define YY_NO_TOP_STATE 1
1005 #ifdef YY_MALLOC_DECL
1013 /* Just try to get by without declaring the routines. This will fail
1014 * miserably on non-ANSI systems for which sizeof(size_t) != sizeof(int)
1015 * or sizeof(void*) != sizeof(int).
1020 /* Amount of stuff to slurp up with each read. */
1021 #ifndef YY_READ_BUF_SIZE
1022 #define YY_READ_BUF_SIZE 8192
1025 /* Copy whatever the last rule matched to the standard output. */
1028 /* This used to be an fputs(), but since the string might contain NUL's,
1029 * we now use fwrite().
1031 #define ECHO (void) fwrite( yytext, yyleng, 1, yyout )
1034 /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
1035 * is returned in "result".
1038 #define YY_INPUT(buf,result,max_size) \
1039 if ( yy_current_buffer->yy_is_interactive ) \
1042 for ( n = 0; n < max_size && \
1043 (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
1044 buf[n] = (char) c; \
1046 buf[n++] = (char) c; \
1047 if ( c == EOF && ferror( yyin ) ) \
1048 YY_FATAL_ERROR( "input in flex scanner failed" ); \
1051 else if ( ((result = fread( buf, 1, max_size, yyin )) == 0) \
1052 && ferror( yyin ) ) \
1053 YY_FATAL_ERROR( "input in flex scanner failed" );
1056 /* No semi-colon after return; correct usage is to write "yyterminate();" -
1057 * we don't want an extra ';' after the "return" because that will cause
1058 * some compilers to complain about unreachable statements.
1061 #define yyterminate() return YY_NULL
1064 /* Number of entries by which start-condition stack grows. */
1065 #ifndef YY_START_STACK_INCR
1066 #define YY_START_STACK_INCR 25
1069 /* Report a fatal error. */
1070 #ifndef YY_FATAL_ERROR
1071 #define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
1074 /* Default declaration of generated scanner - a define so the user can
1075 * easily add parameters.
1078 #define YY_DECL int yylex YY_PROTO(( void ))
1081 /* Code executed at the beginning of each rule, after yytext and yyleng
1084 #ifndef YY_USER_ACTION
1085 #define YY_USER_ACTION
1088 /* Code executed at the end of each rule. */
1090 #define YY_BREAK break;
1093 #define YY_RULE_SETUP \
1098 register yy_state_type yy_current_state;
1099 register char *yy_cp = NULL, *yy_bp = NULL;
1100 register int yy_act;
1102 #line 99 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1105 #line 1106 "UpgradeLexer.cpp"
1116 yy_start = 1; /* first start state */
1124 if ( ! yy_current_buffer )
1126 yy_create_buffer( yyin, YY_BUF_SIZE );
1128 yy_load_buffer_state();
1131 while ( 1 ) /* loops until end-of-file is reached */
1135 /* Support of yytext. */
1136 *yy_cp = yy_hold_char;
1138 /* yy_bp points to the position in yy_ch_buf of the start of
1143 yy_current_state = yy_start;
1144 yy_state_ptr = yy_state_buf;
1145 *yy_state_ptr++ = yy_current_state;
1149 register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
1150 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1152 yy_current_state = (int) yy_def[yy_current_state];
1153 if ( yy_current_state >= 567 )
1154 yy_c = yy_meta[(unsigned int) yy_c];
1156 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
1157 *yy_state_ptr++ = yy_current_state;
1160 while ( yy_current_state != 566 );
1163 yy_current_state = *--yy_state_ptr;
1164 yy_lp = yy_accept[yy_current_state];
1165 find_rule: /* we branch to this label when backing up */
1166 for ( ; ; ) /* until we find what rule we matched */
1168 if ( yy_lp && yy_lp < yy_accept[yy_current_state + 1] )
1170 yy_act = yy_acclist[yy_lp];
1172 yy_full_match = yy_cp;
1177 yy_current_state = *--yy_state_ptr;
1178 yy_lp = yy_accept[yy_current_state];
1181 YY_DO_BEFORE_ACTION;
1183 if ( yy_act != YY_END_OF_BUFFER )
1186 for ( yyl = 0; yyl < yyleng; ++yyl )
1187 if ( yytext[yyl] == '\n' )
1191 do_action: /* This label is used only to access EOF actions. */
1195 { /* beginning of action switch */
1198 #line 101 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1199 { /* Ignore comments for now */ }
1203 #line 103 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1204 { RET_TOK( BEGINTOK); }
1208 #line 104 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1209 { RET_TOK( ENDTOK); }
1213 #line 105 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1214 { RET_TOK( TRUETOK); }
1218 #line 106 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1219 { RET_TOK( FALSETOK); }
1223 #line 107 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1224 { RET_TOK( DECLARE); }
1228 #line 108 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1229 { RET_TOK( GLOBAL); }
1233 #line 109 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1234 { RET_TOK( CONSTANT); }
1238 #line 110 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1239 { RET_TOK( INTERNAL); }
1243 #line 111 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1244 { RET_TOK( LINKONCE); }
1248 #line 112 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1253 #line 113 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1254 { RET_TOK( APPENDING); }
1258 #line 114 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1259 { RET_TOK( DLLIMPORT); }
1263 #line 115 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1264 { RET_TOK( DLLEXPORT); }
1268 #line 116 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1269 { RET_TOK( EXTERN_WEAK); }
1273 #line 117 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1274 { RET_TOK( EXTERNAL); }
1278 #line 118 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1279 { RET_TOK( UNINITIALIZED); } // alias for external
1283 #line 119 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1284 { RET_TOK( IMPLEMENTATION); }
1288 #line 120 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1289 { RET_TOK( ZEROINITIALIZER); }
1293 #line 121 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1294 { RET_TOK( DOTDOTDOT); }
1298 #line 122 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1299 { RET_TOK( UNDEF); }
1303 #line 123 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1304 { RET_TOK( NULL_TOK); }
1308 #line 124 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1313 #line 125 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1318 #line 126 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1319 { RET_TOK( TARGET); }
1323 #line 127 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1324 { RET_TOK( TRIPLE); }
1328 #line 128 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1329 { RET_TOK( DEPLIBS); }
1333 #line 129 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1334 { RET_TOK( ENDIAN); }
1338 #line 130 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1339 { RET_TOK( POINTERSIZE); }
1343 #line 131 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1344 { RET_TOK( DATALAYOUT); }
1348 #line 132 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1349 { RET_TOK( LITTLE); }
1353 #line 133 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1358 #line 134 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1359 { RET_TOK( VOLATILE); }
1363 #line 135 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1364 { RET_TOK( ALIGN); }
1368 #line 136 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1369 { RET_TOK( SECTION); }
1373 #line 137 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1374 { RET_TOK( MODULE); }
1378 #line 138 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1379 { RET_TOK( ASM_TOK); }
1383 #line 139 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1384 { RET_TOK( SIDEEFFECT); }
1388 #line 141 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1389 { RET_TOK( CC_TOK); }
1393 #line 142 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1394 { RET_TOK( CCC_TOK); }
1398 #line 143 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1399 { RET_TOK( CSRETCC_TOK); }
1403 #line 144 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1404 { RET_TOK( FASTCC_TOK); }
1408 #line 145 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1409 { RET_TOK( COLDCC_TOK); }
1413 #line 146 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1414 { RET_TOK( X86_STDCALLCC_TOK); }
1418 #line 147 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1419 { RET_TOK( X86_FASTCALLCC_TOK); }
1423 #line 149 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1424 { RET_TY(VOID,VoidTy,"void",false); }
1428 #line 150 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1429 { RET_TY(BOOL,BoolTy,"bool",false); }
1433 #line 151 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1434 { RET_TY(SBYTE,SByteTy,"sbyte",true); }
1438 #line 152 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1439 { RET_TY(UBYTE,UByteTy,"ubyte",false); }
1443 #line 153 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1444 { RET_TY(SHORT,ShortTy,"short",true); }
1448 #line 154 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1449 { RET_TY(USHORT,UShortTy,"ushort",false); }
1453 #line 155 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1454 { RET_TY(INT,IntTy,"int",true); }
1458 #line 156 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1459 { RET_TY(UINT,UIntTy,"uint",false); }
1463 #line 157 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1464 { RET_TY(LONG,LongTy,"long",true); }
1468 #line 158 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1469 { RET_TY(ULONG,ULongTy,"ulong",false); }
1473 #line 159 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1474 { RET_TY(FLOAT,FloatTy,"float",false); }
1478 #line 160 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1479 { RET_TY(DOUBLE,DoubleTy,"double",false); }
1483 #line 161 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1484 { RET_TY(LABEL,LabelTy,"label",false); }
1488 #line 162 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1489 { RET_TOK(OPAQUE); }
1493 #line 163 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1498 #line 165 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1503 #line 166 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1508 #line 167 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1513 #line 168 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1518 #line 169 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1523 #line 170 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1528 #line 171 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1533 #line 172 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1538 #line 173 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1543 #line 174 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1548 #line 175 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1553 #line 176 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1558 #line 177 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1563 #line 178 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1568 #line 179 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1569 { RET_TOK( SETNE); }
1573 #line 180 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1574 { RET_TOK( SETEQ); }
1578 #line 181 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1579 { RET_TOK( SETLT); }
1583 #line 182 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1584 { RET_TOK( SETGT); }
1588 #line 183 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1589 { RET_TOK( SETLE); }
1593 #line 184 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1594 { RET_TOK( SETGE); }
1598 #line 186 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1599 { RET_TOK( PHI_TOK); }
1603 #line 187 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1608 #line 188 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1613 #line 189 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1614 { RET_TOK( TRUNC); }
1618 #line 190 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1623 #line 191 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1628 #line 192 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1629 { RET_TOK( FPTRUNC); }
1633 #line 193 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1634 { RET_TOK( FPEXT); }
1638 #line 194 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1639 { RET_TOK( FPTOUI); }
1643 #line 195 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1644 { RET_TOK( FPTOSI); }
1648 #line 196 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1649 { RET_TOK( UITOFP); }
1653 #line 197 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1654 { RET_TOK( SITOFP); }
1658 #line 198 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1659 { RET_TOK( PTRTOINT); }
1663 #line 199 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1664 { RET_TOK( INTTOPTR); }
1668 #line 200 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1669 { RET_TOK( BITCAST); }
1673 #line 201 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1674 { RET_TOK( SELECT); }
1678 #line 202 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1683 #line 203 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1688 #line 204 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1693 #line 205 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1698 #line 206 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1699 { RET_TOK( VAARG); }
1703 #line 207 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1708 #line 208 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1713 #line 209 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1714 { RET_TOK( SWITCH); }
1718 #line 210 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1719 { RET_TOK( INVOKE); }
1723 #line 211 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1724 { RET_TOK( UNWIND); }
1728 #line 212 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1729 { RET_TOK( EXCEPT); } // alias for unwind
1733 #line 213 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1734 { RET_TOK( UNREACHABLE); }
1738 #line 215 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1739 { RET_TOK( MALLOC); }
1743 #line 216 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1744 { RET_TOK( ALLOCA); }
1748 #line 217 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1753 #line 218 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1758 #line 219 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1759 { RET_TOK( STORE); }
1763 #line 220 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1764 { RET_TOK( GETELEMENTPTR); }
1768 #line 222 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1769 { RET_TOK( EXTRACTELEMENT); }
1773 #line 223 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1774 { RET_TOK( INSERTELEMENT); }
1778 #line 224 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1779 { RET_TOK( SHUFFLEVECTOR); }
1783 #line 227 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1784 { RET_TOK( VAR_ID); }
1788 #line 228 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1789 { RET_TOK( LABELSTR); }
1793 #line 229 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1794 { RET_TOK( LABELSTR); }
1798 #line 230 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1799 { RET_TOK( STRINGCONSTANT ); }
1803 #line 231 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1804 { RET_TOK( EUINT64VAL ); }
1808 #line 232 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1809 { RET_TOK( ESINT64VAL ); }
1813 #line 233 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1814 { RET_TOK( yytext[0] == 's' ? ESINT64VAL : EUINT64VAL ); }
1818 #line 234 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1819 { RET_TOK( UINTVAL); }
1823 #line 235 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1824 { RET_TOK( SINTVAL); }
1828 #line 236 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1829 { RET_TOK( FPVAL); }
1833 #line 237 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1834 { RET_TOK( FPVAL); }
1836 case YY_STATE_EOF(INITIAL):
1837 #line 238 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1839 /* Make sure to free the internal buffers for flex when we are
1840 * done reading our input!
1842 yy_delete_buffer(YY_CURRENT_BUFFER);
1848 #line 246 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1849 { /* Ignore whitespace */ }
1853 #line 247 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1854 { return yytext[0]; }
1858 #line 249 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"
1859 YY_FATAL_ERROR( "flex scanner jammed" );
1861 #line 1862 "UpgradeLexer.cpp"
1863 case YY_END_OF_BUFFER:
1865 /* Amount of text matched not including the EOB char. */
1866 int yy_amount_of_matched_text = (int) (yy_cp - yytext_ptr) - 1;
1868 /* Undo the effects of YY_DO_BEFORE_ACTION. */
1869 *yy_cp = yy_hold_char;
1870 YY_RESTORE_YY_MORE_OFFSET
1872 if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_NEW )
1874 /* We're scanning a new file or input source. It's
1875 * possible that this happened because the user
1876 * just pointed yyin at a new source and called
1877 * yylex(). If so, then we have to assure
1878 * consistency between yy_current_buffer and our
1879 * globals. Here is the right place to do so, because
1880 * this is the first action (other than possibly a
1881 * back-up) that will match for the new input source.
1883 yy_n_chars = yy_current_buffer->yy_n_chars;
1884 yy_current_buffer->yy_input_file = yyin;
1885 yy_current_buffer->yy_buffer_status = YY_BUFFER_NORMAL;
1888 /* Note that here we test for yy_c_buf_p "<=" to the position
1889 * of the first EOB in the buffer, since yy_c_buf_p will
1890 * already have been incremented past the NUL character
1891 * (since all states make transitions on EOB to the
1892 * end-of-buffer state). Contrast this with the test
1895 if ( yy_c_buf_p <= &yy_current_buffer->yy_ch_buf[yy_n_chars] )
1896 { /* This was really a NUL. */
1897 yy_state_type yy_next_state;
1899 yy_c_buf_p = yytext_ptr + yy_amount_of_matched_text;
1901 yy_current_state = yy_get_previous_state();
1903 /* Okay, we're now positioned to make the NUL
1904 * transition. We couldn't have
1905 * yy_get_previous_state() go ahead and do it
1906 * for us because it doesn't know how to deal
1907 * with the possibility of jamming (and we don't
1908 * want to build jamming into it because then it
1909 * will run more slowly).
1912 yy_next_state = yy_try_NUL_trans( yy_current_state );
1914 yy_bp = yytext_ptr + YY_MORE_ADJ;
1916 if ( yy_next_state )
1918 /* Consume the NUL. */
1919 yy_cp = ++yy_c_buf_p;
1920 yy_current_state = yy_next_state;
1927 goto yy_find_action;
1931 else switch ( yy_get_next_buffer() )
1933 case EOB_ACT_END_OF_FILE:
1935 yy_did_buffer_switch_on_eof = 0;
1939 /* Note: because we've taken care in
1940 * yy_get_next_buffer() to have set up
1941 * yytext, we can now set up
1942 * yy_c_buf_p so that if some total
1943 * hoser (like flex itself) wants to
1944 * call the scanner after we return the
1945 * YY_NULL, it'll still work - another
1946 * YY_NULL will get returned.
1948 yy_c_buf_p = yytext_ptr + YY_MORE_ADJ;
1950 yy_act = YY_STATE_EOF(YY_START);
1956 if ( ! yy_did_buffer_switch_on_eof )
1962 case EOB_ACT_CONTINUE_SCAN:
1964 yytext_ptr + yy_amount_of_matched_text;
1966 yy_current_state = yy_get_previous_state();
1969 yy_bp = yytext_ptr + YY_MORE_ADJ;
1972 case EOB_ACT_LAST_MATCH:
1974 &yy_current_buffer->yy_ch_buf[yy_n_chars];
1976 yy_current_state = yy_get_previous_state();
1979 yy_bp = yytext_ptr + YY_MORE_ADJ;
1980 goto yy_find_action;
1987 "fatal flex scanner internal error--no action found" );
1988 } /* end of action switch */
1989 } /* end of scanning one token */
1990 } /* end of yylex */
1993 /* yy_get_next_buffer - try to read in a new buffer
1995 * Returns a code representing an action:
1996 * EOB_ACT_LAST_MATCH -
1997 * EOB_ACT_CONTINUE_SCAN - continue scanning from current position
1998 * EOB_ACT_END_OF_FILE - end of file
2001 static int yy_get_next_buffer()
2003 register char *dest = yy_current_buffer->yy_ch_buf;
2004 register char *source = yytext_ptr;
2005 register int number_to_move, i;
2008 if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] )
2010 "fatal flex scanner internal error--end of buffer missed" );
2012 if ( yy_current_buffer->yy_fill_buffer == 0 )
2013 { /* Don't try to fill the buffer, so this is an EOF. */
2014 if ( yy_c_buf_p - yytext_ptr - YY_MORE_ADJ == 1 )
2016 /* We matched a single character, the EOB, so
2017 * treat this as a final EOF.
2019 return EOB_ACT_END_OF_FILE;
2024 /* We matched some text prior to the EOB, first
2027 return EOB_ACT_LAST_MATCH;
2031 /* Try to read more data. */
2033 /* First move last chars to start of buffer. */
2034 number_to_move = (int) (yy_c_buf_p - yytext_ptr) - 1;
2036 for ( i = 0; i < number_to_move; ++i )
2037 *(dest++) = *(source++);
2039 if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_EOF_PENDING )
2040 /* don't do the read, it's not guaranteed to return an EOF,
2043 yy_current_buffer->yy_n_chars = yy_n_chars = 0;
2048 yy_current_buffer->yy_buf_size - number_to_move - 1;
2050 while ( num_to_read <= 0 )
2051 { /* Not enough room in the buffer - grow it. */
2052 #ifdef YY_USES_REJECT
2054 "input buffer overflow, can't enlarge buffer because scanner uses REJECT" );
2057 /* just a shorter name for the current buffer */
2058 YY_BUFFER_STATE b = yy_current_buffer;
2060 int yy_c_buf_p_offset =
2061 (int) (yy_c_buf_p - b->yy_ch_buf);
2063 if ( b->yy_is_our_buffer )
2065 int new_size = b->yy_buf_size * 2;
2067 if ( new_size <= 0 )
2068 b->yy_buf_size += b->yy_buf_size / 8;
2070 b->yy_buf_size *= 2;
2072 b->yy_ch_buf = (char *)
2073 /* Include room in for 2 EOB chars. */
2074 yy_flex_realloc( (void *) b->yy_ch_buf,
2075 b->yy_buf_size + 2 );
2078 /* Can't grow it, we don't own it. */
2081 if ( ! b->yy_ch_buf )
2083 "fatal error - scanner input buffer overflow" );
2085 yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset];
2087 num_to_read = yy_current_buffer->yy_buf_size -
2092 if ( num_to_read > YY_READ_BUF_SIZE )
2093 num_to_read = YY_READ_BUF_SIZE;
2095 /* Read in more data. */
2096 YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]),
2097 yy_n_chars, num_to_read );
2099 yy_current_buffer->yy_n_chars = yy_n_chars;
2102 if ( yy_n_chars == 0 )
2104 if ( number_to_move == YY_MORE_ADJ )
2106 ret_val = EOB_ACT_END_OF_FILE;
2112 ret_val = EOB_ACT_LAST_MATCH;
2113 yy_current_buffer->yy_buffer_status =
2114 YY_BUFFER_EOF_PENDING;
2119 ret_val = EOB_ACT_CONTINUE_SCAN;
2121 yy_n_chars += number_to_move;
2122 yy_current_buffer->yy_ch_buf[yy_n_chars] = YY_END_OF_BUFFER_CHAR;
2123 yy_current_buffer->yy_ch_buf[yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;
2125 yytext_ptr = &yy_current_buffer->yy_ch_buf[0];
2131 /* yy_get_previous_state - get the state just before the EOB char was reached */
2133 static yy_state_type yy_get_previous_state()
2135 register yy_state_type yy_current_state;
2136 register char *yy_cp;
2138 yy_current_state = yy_start;
2139 yy_state_ptr = yy_state_buf;
2140 *yy_state_ptr++ = yy_current_state;
2142 for ( yy_cp = yytext_ptr + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp )
2144 register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
2145 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
2147 yy_current_state = (int) yy_def[yy_current_state];
2148 if ( yy_current_state >= 567 )
2149 yy_c = yy_meta[(unsigned int) yy_c];
2151 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
2152 *yy_state_ptr++ = yy_current_state;
2155 return yy_current_state;
2159 /* yy_try_NUL_trans - try to make a transition on the NUL character
2162 * next_state = yy_try_NUL_trans( current_state );
2165 #ifdef YY_USE_PROTOS
2166 static yy_state_type yy_try_NUL_trans( yy_state_type yy_current_state )
2168 static yy_state_type yy_try_NUL_trans( yy_current_state )
2169 yy_state_type yy_current_state;
2172 register int yy_is_jam;
2174 register YY_CHAR yy_c = 1;
2175 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
2177 yy_current_state = (int) yy_def[yy_current_state];
2178 if ( yy_current_state >= 567 )
2179 yy_c = yy_meta[(unsigned int) yy_c];
2181 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
2182 yy_is_jam = (yy_current_state == 566);
2184 *yy_state_ptr++ = yy_current_state;
2186 return yy_is_jam ? 0 : yy_current_state;
2191 #ifdef YY_USE_PROTOS
2192 static inline void yyunput( int c, register char *yy_bp )
2194 static inline void yyunput( c, yy_bp )
2196 register char *yy_bp;
2199 register char *yy_cp = yy_c_buf_p;
2201 /* undo effects of setting up yytext */
2202 *yy_cp = yy_hold_char;
2204 if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
2205 { /* need to shift things up to make room */
2206 /* +2 for EOB chars. */
2207 register int number_to_move = yy_n_chars + 2;
2208 register char *dest = &yy_current_buffer->yy_ch_buf[
2209 yy_current_buffer->yy_buf_size + 2];
2210 register char *source =
2211 &yy_current_buffer->yy_ch_buf[number_to_move];
2213 while ( source > yy_current_buffer->yy_ch_buf )
2214 *--dest = *--source;
2216 yy_cp += (int) (dest - source);
2217 yy_bp += (int) (dest - source);
2218 yy_current_buffer->yy_n_chars =
2219 yy_n_chars = yy_current_buffer->yy_buf_size;
2221 if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
2222 YY_FATAL_ERROR( "flex scanner push-back overflow" );
2225 *--yy_cp = (char) c;
2231 yy_hold_char = *yy_cp;
2234 #endif /* ifndef YY_NO_UNPUT */
2239 static int yyinput()
2246 *yy_c_buf_p = yy_hold_char;
2248 if ( *yy_c_buf_p == YY_END_OF_BUFFER_CHAR )
2250 /* yy_c_buf_p now points to the character we want to return.
2251 * If this occurs *before* the EOB characters, then it's a
2252 * valid NUL; if not, then we've hit the end of the buffer.
2254 if ( yy_c_buf_p < &yy_current_buffer->yy_ch_buf[yy_n_chars] )
2255 /* This was really a NUL. */
2259 { /* need more input */
2260 int offset = yy_c_buf_p - yytext_ptr;
2263 switch ( yy_get_next_buffer() )
2265 case EOB_ACT_LAST_MATCH:
2266 /* This happens because yy_g_n_b()
2267 * sees that we've accumulated a
2268 * token and flags that we need to
2269 * try matching the token before
2270 * proceeding. But for input(),
2271 * there's no matching to consider.
2272 * So convert the EOB_ACT_LAST_MATCH
2273 * to EOB_ACT_END_OF_FILE.
2276 /* Reset buffer status. */
2281 case EOB_ACT_END_OF_FILE:
2286 if ( ! yy_did_buffer_switch_on_eof )
2295 case EOB_ACT_CONTINUE_SCAN:
2296 yy_c_buf_p = yytext_ptr + offset;
2302 c = *(unsigned char *) yy_c_buf_p; /* cast for 8-bit char's */
2303 *yy_c_buf_p = '\0'; /* preserve yytext */
2304 yy_hold_char = *++yy_c_buf_p;
2311 #endif /* YY_NO_INPUT */
2313 #ifdef YY_USE_PROTOS
2314 void yyrestart( FILE *input_file )
2316 void yyrestart( input_file )
2320 if ( ! yy_current_buffer )
2321 yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE );
2323 yy_init_buffer( yy_current_buffer, input_file );
2324 yy_load_buffer_state();
2328 #ifdef YY_USE_PROTOS
2329 void yy_switch_to_buffer( YY_BUFFER_STATE new_buffer )
2331 void yy_switch_to_buffer( new_buffer )
2332 YY_BUFFER_STATE new_buffer;
2335 if ( yy_current_buffer == new_buffer )
2338 if ( yy_current_buffer )
2340 /* Flush out information for old buffer. */
2341 *yy_c_buf_p = yy_hold_char;
2342 yy_current_buffer->yy_buf_pos = yy_c_buf_p;
2343 yy_current_buffer->yy_n_chars = yy_n_chars;
2346 yy_current_buffer = new_buffer;
2347 yy_load_buffer_state();
2349 /* We don't actually know whether we did this switch during
2350 * EOF (yywrap()) processing, but the only time this flag
2351 * is looked at is after yywrap() is called, so it's safe
2352 * to go ahead and always set it.
2354 yy_did_buffer_switch_on_eof = 1;
2358 #ifdef YY_USE_PROTOS
2359 void yy_load_buffer_state( void )
2361 void yy_load_buffer_state()
2364 yy_n_chars = yy_current_buffer->yy_n_chars;
2365 yytext_ptr = yy_c_buf_p = yy_current_buffer->yy_buf_pos;
2366 yyin = yy_current_buffer->yy_input_file;
2367 yy_hold_char = *yy_c_buf_p;
2371 #ifdef YY_USE_PROTOS
2372 YY_BUFFER_STATE yy_create_buffer( FILE *file, int size )
2374 YY_BUFFER_STATE yy_create_buffer( file, size )
2381 b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
2383 YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
2385 b->yy_buf_size = size;
2387 /* yy_ch_buf has to be 2 characters longer than the size given because
2388 * we need to put in 2 end-of-buffer characters.
2390 b->yy_ch_buf = (char *) yy_flex_alloc( b->yy_buf_size + 2 );
2391 if ( ! b->yy_ch_buf )
2392 YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
2394 b->yy_is_our_buffer = 1;
2396 yy_init_buffer( b, file );
2402 #ifdef YY_USE_PROTOS
2403 void yy_delete_buffer( YY_BUFFER_STATE b )
2405 void yy_delete_buffer( b )
2412 if ( b == yy_current_buffer )
2413 yy_current_buffer = (YY_BUFFER_STATE) 0;
2415 if ( b->yy_is_our_buffer )
2416 yy_flex_free( (void *) b->yy_ch_buf );
2418 yy_flex_free( (void *) b );
2423 #ifdef YY_USE_PROTOS
2424 void yy_init_buffer( YY_BUFFER_STATE b, FILE *file )
2426 void yy_init_buffer( b, file )
2433 yy_flush_buffer( b );
2435 b->yy_input_file = file;
2436 b->yy_fill_buffer = 1;
2438 #if YY_ALWAYS_INTERACTIVE
2439 b->yy_is_interactive = 1;
2441 #if YY_NEVER_INTERACTIVE
2442 b->yy_is_interactive = 0;
2444 b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
2450 #ifdef YY_USE_PROTOS
2451 void yy_flush_buffer( YY_BUFFER_STATE b )
2453 void yy_flush_buffer( b )
2463 /* We always need two end-of-buffer characters. The first causes
2464 * a transition to the end-of-buffer state. The second causes
2465 * a jam in that state.
2467 b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
2468 b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
2470 b->yy_buf_pos = &b->yy_ch_buf[0];
2473 b->yy_buffer_status = YY_BUFFER_NEW;
2475 if ( b == yy_current_buffer )
2476 yy_load_buffer_state();
2480 #ifndef YY_NO_SCAN_BUFFER
2481 #ifdef YY_USE_PROTOS
2482 YY_BUFFER_STATE yy_scan_buffer( char *base, yy_size_t size )
2484 YY_BUFFER_STATE yy_scan_buffer( base, size )
2492 base[size-2] != YY_END_OF_BUFFER_CHAR ||
2493 base[size-1] != YY_END_OF_BUFFER_CHAR )
2494 /* They forgot to leave room for the EOB's. */
2497 b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
2499 YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
2501 b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */
2502 b->yy_buf_pos = b->yy_ch_buf = base;
2503 b->yy_is_our_buffer = 0;
2504 b->yy_input_file = 0;
2505 b->yy_n_chars = b->yy_buf_size;
2506 b->yy_is_interactive = 0;
2508 b->yy_fill_buffer = 0;
2509 b->yy_buffer_status = YY_BUFFER_NEW;
2511 yy_switch_to_buffer( b );
2518 #ifndef YY_NO_SCAN_STRING
2519 #ifdef YY_USE_PROTOS
2520 YY_BUFFER_STATE yy_scan_string( yyconst char *yy_str )
2522 YY_BUFFER_STATE yy_scan_string( yy_str )
2523 yyconst char *yy_str;
2527 for ( len = 0; yy_str[len]; ++len )
2530 return yy_scan_bytes( yy_str, len );
2535 #ifndef YY_NO_SCAN_BYTES
2536 #ifdef YY_USE_PROTOS
2537 YY_BUFFER_STATE yy_scan_bytes( yyconst char *bytes, int len )
2539 YY_BUFFER_STATE yy_scan_bytes( bytes, len )
2540 yyconst char *bytes;
2549 /* Get memory for full buffer, including space for trailing EOB's. */
2551 buf = (char *) yy_flex_alloc( n );
2553 YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
2555 for ( i = 0; i < len; ++i )
2558 buf[len] = buf[len+1] = YY_END_OF_BUFFER_CHAR;
2560 b = yy_scan_buffer( buf, n );
2562 YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
2564 /* It's okay to grow etc. this buffer, and we should throw it
2565 * away when we're done.
2567 b->yy_is_our_buffer = 1;
2574 #ifndef YY_NO_PUSH_STATE
2575 #ifdef YY_USE_PROTOS
2576 static void yy_push_state( int new_state )
2578 static void yy_push_state( new_state )
2582 if ( yy_start_stack_ptr >= yy_start_stack_depth )
2586 yy_start_stack_depth += YY_START_STACK_INCR;
2587 new_size = yy_start_stack_depth * sizeof( int );
2589 if ( ! yy_start_stack )
2590 yy_start_stack = (int *) yy_flex_alloc( new_size );
2593 yy_start_stack = (int *) yy_flex_realloc(
2594 (void *) yy_start_stack, new_size );
2596 if ( ! yy_start_stack )
2598 "out of memory expanding start-condition stack" );
2601 yy_start_stack[yy_start_stack_ptr++] = YY_START;
2608 #ifndef YY_NO_POP_STATE
2609 static void yy_pop_state()
2611 if ( --yy_start_stack_ptr < 0 )
2612 YY_FATAL_ERROR( "start-condition stack underflow" );
2614 BEGIN(yy_start_stack[yy_start_stack_ptr]);
2619 #ifndef YY_NO_TOP_STATE
2620 static int yy_top_state()
2622 return yy_start_stack[yy_start_stack_ptr - 1];
2626 #ifndef YY_EXIT_FAILURE
2627 #define YY_EXIT_FAILURE 2
2630 #ifdef YY_USE_PROTOS
2631 static void yy_fatal_error( yyconst char msg[] )
2633 static void yy_fatal_error( msg )
2637 (void) fprintf( stderr, "%s\n", msg );
2638 exit( YY_EXIT_FAILURE );
2643 /* Redefine yyless() so it works in section 3 code. */
2649 /* Undo effects of setting up yytext. */ \
2650 yytext[yyleng] = yy_hold_char; \
2651 yy_c_buf_p = yytext + n; \
2652 yy_hold_char = *yy_c_buf_p; \
2653 *yy_c_buf_p = '\0'; \
2659 /* Internal utility routines. */
2662 #ifdef YY_USE_PROTOS
2663 static void yy_flex_strncpy( char *s1, yyconst char *s2, int n )
2665 static void yy_flex_strncpy( s1, s2, n )
2672 for ( i = 0; i < n; ++i )
2677 #ifdef YY_NEED_STRLEN
2678 #ifdef YY_USE_PROTOS
2679 static int yy_flex_strlen( yyconst char *s )
2681 static int yy_flex_strlen( s )
2686 for ( n = 0; s[n]; ++n )
2694 #ifdef YY_USE_PROTOS
2695 static void *yy_flex_alloc( yy_size_t size )
2697 static void *yy_flex_alloc( size )
2701 return (void *) malloc( size );
2704 #ifdef YY_USE_PROTOS
2705 static inline void *yy_flex_realloc( void *ptr, yy_size_t size )
2707 static inline void *yy_flex_realloc( ptr, size )
2712 /* The cast to (char *) in the following accommodates both
2713 * implementations that use char* generic pointers, and those
2714 * that use void* generic pointers. It works with the latter
2715 * because both ANSI C and C++ allow castless assignment from
2716 * any pointer type to void*, and deal with argument conversions
2717 * as though doing an assignment.
2719 return (void *) realloc( (char *) ptr, size );
2722 #ifdef YY_USE_PROTOS
2723 static void yy_flex_free( void *ptr )
2725 static void yy_flex_free( ptr )
2739 #line 249 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeLexer.l"