1 #line 2 "scan_netlist.cpp"
3 #line 4 "scan_netlist.cpp"
5 #define YY_INT_ALIGNED short int
9 #define yy_create_buffer netlist__create_buffer
10 #define yy_delete_buffer netlist__delete_buffer
11 #define yy_flex_debug netlist__flex_debug
12 #define yy_init_buffer netlist__init_buffer
13 #define yy_flush_buffer netlist__flush_buffer
14 #define yy_load_buffer_state netlist__load_buffer_state
15 #define yy_switch_to_buffer netlist__switch_to_buffer
16 #define yyin netlist_in
17 #define yyleng netlist_leng
18 #define yylex netlist_lex
19 #define yylineno netlist_lineno
20 #define yyout netlist_out
21 #define yyrestart netlist_restart
22 #define yytext netlist_text
23 #define yywrap netlist_wrap
24 #define yyalloc netlist_alloc
25 #define yyrealloc netlist_realloc
26 #define yyfree netlist_free
29 #define YY_FLEX_MAJOR_VERSION 2
30 #define YY_FLEX_MINOR_VERSION 5
31 #define YY_FLEX_SUBMINOR_VERSION 35
32 #if YY_FLEX_SUBMINOR_VERSION > 0
53 #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
58 #ifndef __STDC_LIMIT_MACROS
59 #define __STDC_LIMIT_MACROS 1
79 #define INT8_MIN (-128)
82 #define INT16_MIN (-32767-1)
85 #define INT32_MIN (-2147483647-1)
88 #define INT8_MAX (127)
91 #define INT16_MAX (32767)
94 #define INT32_MAX (2147483647)
97 #define UINT8_MAX (255U)
100 #define UINT16_MAX (65535U)
103 #define UINT32_MAX (4294967295U)
118 #if defined (__STDC__)
126 #define yyconst const
139 #define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)
145 #define BEGIN (yy_start) = 1 + 2 *
151 #define YY_START (((yy_start) - 1) / 2)
152 #define YYSTATE YY_START
155 #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
158 #define YY_NEW_FILE netlist_restart(netlist_in )
160 #define YY_END_OF_BUFFER_CHAR 0
169 #define YY_BUF_SIZE 32768
171 #define YY_BUF_SIZE 16384
177 #define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
179 #ifndef YY_TYPEDEF_YY_BUFFER_STATE
180 #define YY_TYPEDEF_YY_BUFFER_STATE
188 #define EOB_ACT_CONTINUE_SCAN 0
189 #define EOB_ACT_END_OF_FILE 1
190 #define EOB_ACT_LAST_MATCH 2
199 #define YY_LESS_LINENO(n) \
202 for ( yyl = n; yyl < netlist_leng; ++yyl )\
203 if ( netlist_text[yyl] == '\n' )\
212 int yyless_macro_arg = (n); \
213 YY_LESS_LINENO(yyless_macro_arg);\
214 *yy_cp = (yy_hold_char); \
215 YY_RESTORE_YY_MORE_OFFSET \
216 (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
217 YY_DO_BEFORE_ACTION; \
221 #define unput(c) yyunput( c, (yytext_ptr) )
223 #ifndef YY_TYPEDEF_YY_SIZE_T
224 #define YY_TYPEDEF_YY_SIZE_T
228 #ifndef YY_STRUCT_YY_BUFFER_STATE
229 #define YY_STRUCT_YY_BUFFER_STATE
276 #define YY_BUFFER_NEW 0
277 #define YY_BUFFER_NORMAL 1
288 #define YY_BUFFER_EOF_PENDING 2
294 static size_t yy_buffer_stack_top = 0;
295 static size_t yy_buffer_stack_max = 0;
296 static YY_BUFFER_STATE * yy_buffer_stack = 0;
304 #define YY_CURRENT_BUFFER ( (yy_buffer_stack) \
305 ? (yy_buffer_stack)[(yy_buffer_stack_top)] \
311 #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)]
314 static char yy_hold_char;
315 static int yy_n_chars;
319 static char *yy_c_buf_p = (
char *) 0;
320 static int yy_init = 0;
321 static int yy_start = 0;
326 static int yy_did_buffer_switch_on_eof;
336 static void netlist_ensure_buffer_stack (
void );
337 static void netlist__load_buffer_state (
void );
338 static void netlist__init_buffer (YY_BUFFER_STATE
b,FILE *file );
340 #define YY_FLUSH_BUFFER netlist__flush_buffer(YY_CURRENT_BUFFER )
350 #define yy_new_buffer netlist__create_buffer
352 #define yy_set_interactive(is_interactive) \
354 if ( ! YY_CURRENT_BUFFER ){ \
355 netlist_ensure_buffer_stack (); \
356 YY_CURRENT_BUFFER_LVALUE = \
357 netlist__create_buffer(netlist_in,YY_BUF_SIZE ); \
359 YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
362 #define yy_set_bol(at_bol) \
364 if ( ! YY_CURRENT_BUFFER ){\
365 netlist_ensure_buffer_stack (); \
366 YY_CURRENT_BUFFER_LVALUE = \
367 netlist__create_buffer(netlist_in,YY_BUF_SIZE ); \
369 YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
372 #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
376 #define netlist_wrap(n) 1
377 #define YY_SKIP_YYWRAP
387 int netlist_lineno = 1;
390 #define yytext_ptr netlist_text
392 static yy_state_type yy_get_previous_state (
void );
393 static yy_state_type yy_try_NUL_trans (yy_state_type current_state );
394 static int yy_get_next_buffer (
void );
395 static void yy_fatal_error (
yyconst char msg[] );
400 #define YY_DO_BEFORE_ACTION \
401 (yytext_ptr) = yy_bp; \
402 netlist_leng = (size_t) (yy_cp - yy_bp); \
403 (yy_hold_char) = *yy_cp; \
405 (yy_c_buf_p) = yy_cp;
407 #define YY_NUM_RULES 47
408 #define YY_END_OF_BUFFER 48
418 0, 0, 0, 0, 0, 0, 0, 0, 48, 22,
419 19, 18, 22, 21, 20, 22, 15, 8, 16, 14,
420 17, 1, 5, 1, 1, 1, 5, 12, 22, 13,
421 5, 1, 5, 5, 1, 5, 22, 23, 24, 23,
422 28, 27, 26, 28, 25, 28, 28, 8, 14, 1,
423 5, 1, 1, 5, 12, 13, 5, 1, 5, 5,
424 1, 5, 28, 46, 19, 45, 46, 38, 29, 46,
425 46, 29, 46, 40, 39, 36, 46, 37, 42, 46,
426 41, 46, 18, 0, 8, 9, 0, 8, 0, 0,
427 0, 10, 0, 6, 0, 5, 0, 1, 1, 5,
429 5, 1, 5, 19, 0, 1, 1, 0, 5, 5,
430 1, 0, 24, 26, 0, 5, 1, 1, 5, 1,
431 5, 1, 1, 0, 5, 5, 1, 45, 32, 34,
432 0, 44, 40, 40, 0, 40, 40, 40, 0, 0,
433 31, 33, 30, 0, 42, 41, 0, 41, 41, 42,
434 35, 0, 9, 0, 0, 0, 8, 0, 10, 5,
435 11, 5, 2, 1, 1, 5, 5, 7, 5, 5,
436 1, 1, 5, 5, 0, 43, 40, 0, 0, 40,
437 40, 42, 41, 0, 41, 41, 42, 41, 9, 0,
438 0, 8, 0, 10, 0, 5, 0, 5, 5, 5,
440 0, 40, 40, 41, 41, 41, 42, 42, 0, 41,
441 41, 0, 9, 0, 3, 0, 0, 10, 0, 5,
442 5, 41, 0, 41, 41, 41, 9, 0, 0, 0,
443 10, 41, 41, 41, 0, 4, 0
448 1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
449 1, 1, 4, 1, 1, 1, 1, 1, 1, 1,
450 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
451 1, 5, 6, 7, 8, 1, 9, 10, 11, 9,
452 9, 9, 12, 13, 12, 14, 9, 15, 15, 15,
453 15, 15, 15, 15, 15, 15, 15, 16, 17, 18,
454 19, 20, 9, 1, 21, 22, 23, 24, 25, 26,
455 27, 28, 23, 23, 29, 23, 30, 23, 31, 32,
456 23, 23, 33, 34, 23, 35, 36, 23, 23, 23,
457 37, 38, 39, 9, 23, 1, 40, 23, 23, 41,
459 42, 43, 23, 44, 45, 46, 47, 48, 49, 50,
460 23, 51, 52, 23, 53, 54, 55, 23, 23, 23,
461 56, 57, 58, 59, 60, 1, 1, 1, 1, 1,
462 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
463 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
464 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
465 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
466 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
467 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
468 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
470 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
471 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
472 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
473 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
474 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
480 1, 2, 3, 3, 4, 5, 1, 1, 1, 1,
481 1, 1, 1, 6, 7, 1, 1, 1, 8, 1,
482 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
483 7, 7, 7, 7, 7, 7, 1, 1, 1, 7,
484 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
485 7, 7, 7, 7, 7, 7, 7, 1, 1, 9
490 0, 0, 58, 60, 64, 0, 124, 0, 717, 856,
491 856, 856, 710, 856, 856, 171, 185, 177, 856, 856,
492 856, 191, 193, 222, 652, 228, 254, 856, 200, 856,
493 264, 154, 274, 285, 166, 300, 0, 856, 856, 700,
494 856, 856, 856, 699, 856, 199, 686, 297, 856, 682,
495 681, 330, 174, 218, 856, 856, 207, 637, 211, 223,
496 190, 226, 0, 856, 856, 856, 685, 668, 856, 672,
497 670, 856, 659, 382, 856, 653, 652, 646, 311, 260,
498 436, 602, 856, 636, 303, 267, 305, 308, 604, 249,
499 234, 282, 333, 856, 0, 362, 0, 372, 387, 434,
501 440, 487, 493, 856, 635, 282, 503, 618, 509, 357,
502 388, 558, 856, 856, 0, 598, 597, 251, 240, 596,
503 278, 277, 580, 571, 442, 307, 571, 856, 856, 856,
504 568, 856, 488, 373, 563, 0, 345, 856, 536, 358,
505 856, 856, 856, 0, 524, 550, 539, 369, 530, 531,
506 856, 526, 506, 405, 496, 510, 525, 503, 532, 554,
507 856, 547, 573, 452, 436, 602, 594, 856, 468, 287,
508 0, 0, 588, 450, 464, 856, 406, 437, 458, 445,
509 291, 562, 856, 436, 643, 620, 635, 650, 385, 457,
510 432, 614, 626, 485, 459, 695, 428, 664, 482, 420,
512 413, 411, 856, 320, 706, 710, 714, 725, 404, 466,
513 729, 504, 393, 651, 558, 580, 389, 380, 375, 736,
514 551, 856, 370, 599, 740, 661, 365, 618, 312, 332,
515 288, 262, 744, 257, 211, 856, 856, 795, 803, 811,
516 814, 821, 829, 213, 837, 194, 846, 187
521 237, 1, 238, 238, 237, 5, 237, 7, 237, 237,
522 237, 237, 237, 237, 237, 237, 237, 237, 237, 237,
523 237, 239, 239, 239, 24, 239, 239, 237, 237, 237,
524 239, 24, 239, 239, 24, 239, 240, 237, 237, 237,
525 237, 237, 237, 237, 237, 237, 237, 237, 237, 241,
526 241, 241, 241, 241, 237, 237, 241, 52, 241, 241,
527 52, 241, 240, 237, 237, 237, 237, 237, 237, 237,
528 242, 237, 237, 237, 237, 237, 237, 237, 243, 237,
529 243, 237, 237, 237, 237, 237, 237, 237, 237, 237,
530 237, 237, 237, 237, 244, 239, 245, 239, 239, 239,
532 239, 239, 239, 237, 237, 24, 239, 244, 239, 109,
533 109, 240, 237, 237, 246, 241, 241, 241, 241, 241,
534 241, 52, 241, 246, 241, 241, 241, 237, 237, 237,
535 247, 237, 74, 133, 237, 74, 237, 237, 237, 237,
536 237, 237, 237, 248, 243, 237, 248, 81, 243, 243,
537 237, 237, 237, 237, 237, 237, 237, 237, 237, 244,
538 237, 109, 109, 24, 24, 244, 109, 237, 246, 241,
539 52, 52, 246, 241, 247, 237, 237, 237, 237, 134,
540 237, 248, 237, 237, 248, 243, 243, 243, 237, 237,
541 237, 237, 237, 237, 237, 244, 237, 109, 246, 241,
543 237, 134, 237, 237, 248, 248, 248, 248, 237, 81,
544 243, 237, 237, 237, 237, 237, 237, 237, 237, 244,
545 246, 237, 237, 185, 248, 146, 237, 237, 237, 237,
546 237, 226, 248, 226, 237, 237, 0, 237, 237, 237,
547 237, 237, 237, 237, 237, 237, 237, 237
552 10, 11, 12, 13, 11, 10, 14, 15, 10, 10,
553 10, 16, 10, 17, 18, 19, 20, 10, 21, 10,
554 22, 23, 23, 23, 24, 22, 25, 26, 22, 25,
555 27, 25, 22, 25, 22, 22, 28, 29, 30, 25,
556 31, 23, 32, 23, 33, 34, 25, 23, 35, 25,
557 25, 23, 22, 23, 25, 36, 23, 37, 10, 10,
558 39, 40, 39, 40, 41, 42, 43, 44, 42, 41,
559 45, 41, 41, 41, 41, 46, 41, 47, 48, 41,
560 49, 41, 41, 41, 50, 51, 51, 51, 52, 50,
561 52, 53, 50, 52, 54, 52, 50, 52, 50, 50,
563 55, 41, 56, 52, 57, 51, 58, 51, 59, 60,
564 52, 51, 61, 52, 52, 51, 50, 51, 52, 62,
565 51, 63, 41, 41, 64, 65, 66, 67, 65, 68,
566 69, 64, 69, 70, 71, 69, 72, 73, 74, 69,
567 75, 76, 77, 78, 79, 79, 79, 79, 79, 79,
568 79, 79, 79, 79, 79, 79, 79, 79, 79, 79,
569 69, 80, 69, 79, 79, 79, 79, 79, 81, 81,
570 79, 79, 79, 79, 79, 79, 79, 79, 79, 79,
571 79, 64, 82, 64, 84, 85, 87, 115, 90, 87,
572 84, 85, 93, 182, 93, 93, 94, 93, 94, 88,
574 169, 91, 104, 105, 95, 96, 95, 107, 89, 97,
575 110, 97, 84, 85, 111, 86, 86, 96, 91, 160,
576 115, 92, 92, 93, 124, 125, 93, 94, 122, 93,
577 120, 115, 93, 94, 126, 95, 124, 125, 127, 115,
578 97, 95, 98, 86, 86, 156, 97, 98, 157, 99,
579 98, 236, 100, 115, 98, 93, 98, 98, 93, 94,
580 123, 121, 104, 105, 115, 93, 123, 95, 93, 94,
581 98, 237, 97, 101, 98, 93, 232, 95, 93, 94,
582 152, 153, 97, 170, 102, 106, 93, 108, 109, 93,
583 94, 115, 97, 92, 92, 158, 159, 103, 108, 109,
585 115, 93, 231, 97, 93, 94, 87, 117, 90, 87,
586 84, 85, 93, 95, 90, 93, 84, 85, 97, 90,
587 115, 91, 88, 107, 144, 171, 120, 91, 89, 97,
588 164, 172, 154, 96, 93, 117, 165, 93, 91, 203,
589 107, 92, 92, 115, 91, 203, 231, 92, 92, 154,
590 117, 97, 92, 92, 123, 117, 179, 118, 117, 180,
591 119, 235, 117, 93, 117, 117, 93, 94, 222, 179,
592 95, 96, 180, 93, 222, 95, 93, 94, 117, 227,
593 97, 96, 117, 134, 232, 95, 134, 237, 93, 227,
594 97, 93, 94, 186, 218, 135, 136, 138, 96, 189,
596 95, 95, 96, 218, 107, 97, 137, 213, 138, 212,
597 187, 138, 96, 138, 237, 138, 191, 201, 226, 192,
598 202, 138, 139, 140, 138, 202, 212, 202, 138, 96,
599 138, 138, 138, 115, 200, 93, 138, 146, 93, 94,
600 146, 93, 213, 98, 93, 94, 192, 95, 201, 147,
601 148, 202, 97, 95, 97, 124, 125, 204, 97, 180,
602 149, 197, 149, 115, 200, 149, 174, 149, 197, 149,
603 217, 213, 180, 218, 132, 149, 150, 162, 149, 144,
604 210, 115, 149, 174, 149, 149, 149, 96, 93, 163,
605 149, 93, 94, 219, 93, 115, 221, 93, 94, 194,
607 95, 237, 133, 96, 93, 97, 95, 93, 94, 216,
608 93, 97, 177, 93, 94, 219, 95, 194, 227, 152,
609 153, 97, 108, 109, 157, 93, 216, 97, 93, 178,
610 190, 93, 93, 167, 93, 93, 90, 144, 193, 157,
611 189, 102, 97, 144, 144, 158, 159, 190, 97, 97,
612 167, 146, 188, 185, 146, 93, 195, 181, 93, 228,
613 95, 96, 228, 93, 115, 221, 93, 95, 97, 92,
614 92, 96, 97, 195, 183, 144, 183, 133, 176, 183,
615 97, 183, 229, 183, 115, 173, 95, 96, 96, 183,
616 184, 230, 183, 115, 231, 98, 183, 96, 183, 183,
618 183, 115, 173, 93, 183, 197, 93, 95, 198, 115,
619 115, 115, 199, 224, 96, 95, 166, 168, 96, 228,
620 97, 93, 228, 206, 93, 90, 196, 214, 192, 199,
621 214, 209, 166, 144, 210, 96, 93, 104, 97, 93,
622 182, 215, 229, 196, 146, 155, 209, 146, 144, 210,
623 88, 93, 214, 97, 93, 214, 144, 185, 92, 92,
624 151, 97, 234, 144, 143, 234, 215, 205, 97, 206,
625 142, 141, 206, 133, 206, 226, 206, 95, 198, 237,
626 132, 130, 206, 207, 208, 206, 129, 128, 96, 206,
627 123, 206, 206, 206, 115, 115, 93, 206, 211, 93,
629 88, 114, 113, 96, 211, 96, 219, 93, 95, 220,
630 93, 93, 83, 97, 93, 93, 237, 223, 93, 144,
631 224, 237, 237, 144, 97, 237, 93, 144, 97, 93,
632 93, 237, 97, 93, 237, 225, 223, 93, 144, 224,
633 93, 93, 144, 97, 93, 93, 237, 97, 93, 95,
634 220, 237, 237, 144, 97, 237, 237, 144, 97, 237,
635 237, 237, 97, 237, 237, 237, 237, 237, 237, 237,
636 237, 237, 237, 237, 237, 237, 237, 237, 237, 237,
637 237, 237, 237, 237, 237, 237, 237, 237, 233, 237,
638 237, 237, 237, 237, 233, 38, 38, 38, 38, 38,
640 38, 38, 38, 38, 96, 237, 96, 96, 96, 96,
641 96, 112, 237, 237, 112, 112, 112, 112, 112, 116,
642 116, 131, 131, 237, 131, 131, 131, 131, 131, 131,
643 145, 237, 145, 237, 145, 145, 145, 161, 161, 161,
644 161, 161, 161, 161, 237, 161, 175, 175, 237, 175,
645 175, 175, 175, 175, 175, 9, 237, 237, 237, 237,
646 237, 237, 237, 237, 237, 237, 237, 237, 237, 237,
647 237, 237, 237, 237, 237, 237, 237, 237, 237, 237,
648 237, 237, 237, 237, 237, 237, 237, 237, 237, 237,
649 237, 237, 237, 237, 237, 237, 237, 237, 237, 237,
651 237, 237, 237, 237, 237, 237, 237, 237, 237, 237,
652 237, 237, 237, 237, 237, 237
657 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
658 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
659 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
660 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
661 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
662 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
663 3, 3, 4, 4, 5, 5, 5, 5, 5, 5,
664 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
665 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
666 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
668 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
669 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
670 5, 5, 5, 5, 7, 7, 7, 7, 7, 7,
671 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
672 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
673 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
674 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
675 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
676 7, 7, 7, 7, 16, 16, 17, 53, 18, 17,
677 18, 18, 22, 248, 23, 22, 22, 23, 23, 17,
679 246, 18, 29, 29, 22, 32, 23, 32, 17, 22,
680 35, 23, 46, 46, 35, 16, 16, 35, 18, 244,
681 57, 18, 18, 24, 59, 59, 24, 24, 57, 26,
682 53, 54, 26, 26, 61, 24, 60, 60, 61, 62,
683 24, 26, 24, 46, 46, 91, 26, 24, 91, 24,
684 24, 235, 24, 119, 24, 27, 24, 24, 27, 27,
685 59, 54, 80, 80, 118, 31, 62, 27, 31, 31,
686 24, 234, 27, 24, 24, 33, 232, 31, 33, 33,
687 86, 86, 31, 119, 26, 31, 34, 33, 33, 34,
688 34, 121, 33, 90, 90, 92, 92, 27, 34, 34,
690 170, 36, 231, 34, 36, 36, 87, 118, 48, 87,
691 48, 48, 79, 36, 85, 79, 85, 85, 36, 88,
692 126, 48, 88, 33, 79, 122, 121, 85, 87, 79,
693 106, 122, 88, 106, 93, 170, 106, 93, 48, 181,
694 36, 48, 48, 52, 85, 181, 230, 85, 85, 88,
695 52, 93, 88, 88, 126, 52, 137, 52, 52, 137,
696 52, 229, 52, 96, 52, 52, 96, 96, 204, 140,
697 110, 110, 140, 98, 204, 96, 98, 98, 52, 227,
698 96, 110, 52, 74, 223, 98, 74, 134, 99, 219,
699 98, 99, 99, 148, 218, 74, 74, 134, 110, 189,
701 99, 111, 111, 217, 110, 99, 74, 213, 74, 189,
702 148, 74, 111, 74, 134, 74, 154, 177, 209, 154,
703 177, 74, 74, 74, 74, 202, 189, 201, 74, 111,
704 74, 74, 74, 200, 200, 100, 74, 81, 100, 100,
705 81, 101, 197, 99, 101, 101, 191, 100, 178, 81,
706 81, 178, 100, 101, 81, 125, 125, 184, 101, 180,
707 81, 174, 81, 174, 174, 81, 125, 81, 190, 81,
708 195, 190, 179, 195, 175, 81, 81, 100, 81, 210,
709 210, 169, 81, 125, 81, 81, 81, 165, 102, 101,
710 81, 102, 102, 199, 103, 199, 199, 103, 103, 194,
712 102, 133, 133, 164, 107, 102, 103, 107, 107, 194,
713 109, 103, 133, 109, 109, 212, 107, 158, 212, 153,
714 153, 107, 109, 109, 156, 145, 194, 109, 145, 133,
715 153, 149, 150, 109, 149, 150, 157, 145, 155, 157,
716 152, 103, 145, 149, 150, 159, 159, 153, 149, 150,
717 109, 146, 150, 147, 146, 160, 159, 139, 160, 215,
718 162, 162, 215, 182, 221, 221, 182, 160, 146, 157,
719 157, 162, 160, 159, 146, 182, 146, 135, 131, 146,
720 182, 146, 215, 146, 127, 124, 163, 163, 162, 146,
721 146, 216, 146, 123, 216, 162, 146, 163, 146, 146,
723 146, 173, 173, 166, 146, 167, 166, 167, 167, 120,
724 117, 116, 173, 224, 163, 166, 166, 112, 167, 228,
725 166, 186, 228, 224, 186, 192, 166, 193, 192, 173,
726 193, 186, 108, 186, 186, 167, 187, 105, 186, 187,
727 224, 193, 228, 166, 185, 89, 187, 185, 187, 187,
728 84, 188, 214, 187, 188, 214, 185, 185, 192, 192,
729 82, 185, 226, 188, 78, 226, 214, 185, 188, 185,
730 77, 76, 185, 73, 185, 226, 185, 198, 198, 226,
731 71, 70, 185, 185, 185, 185, 68, 67, 198, 185,
732 58, 185, 185, 185, 51, 50, 196, 185, 188, 196,
734 47, 44, 40, 25, 188, 198, 196, 205, 196, 196,
735 205, 206, 13, 196, 206, 207, 9, 205, 207, 205,
736 205, 0, 0, 206, 205, 0, 208, 207, 206, 208,
737 211, 0, 207, 211, 0, 207, 208, 220, 208, 208,
738 220, 225, 211, 208, 225, 233, 0, 211, 233, 220,
739 220, 0, 0, 225, 220, 0, 0, 233, 225, 0,
740 0, 0, 233, 0, 0, 0, 0, 0, 0, 0,
741 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
742 0, 0, 0, 0, 0, 0, 0, 0, 225, 0,
743 0, 0, 0, 0, 225, 238, 238, 238, 238, 238,
745 238, 238, 238, 238, 239, 0, 239, 239, 239, 239,
746 239, 240, 0, 0, 240, 240, 240, 240, 240, 241,
747 241, 242, 242, 0, 242, 242, 242, 242, 242, 242,
748 243, 0, 243, 0, 243, 243, 243, 245, 245, 245,
749 245, 245, 245, 245, 0, 245, 247, 247, 0, 247,
750 247, 247, 247, 247, 247, 237, 237, 237, 237, 237,
751 237, 237, 237, 237, 237, 237, 237, 237, 237, 237,
752 237, 237, 237, 237, 237, 237, 237, 237, 237, 237,
753 237, 237, 237, 237, 237, 237, 237, 237, 237, 237,
754 237, 237, 237, 237, 237, 237, 237, 237, 237, 237,
756 237, 237, 237, 237, 237, 237, 237, 237, 237, 237,
757 237, 237, 237, 237, 237, 237
763 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 1,
764 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
765 0, 0, 0, 0, 0, 1, 0, 0, };
767 static yy_state_type yy_last_accepting_state;
768 static char *yy_last_accepting_cpos;
771 int netlist__flex_debug = 0;
776 #define REJECT reject_used_but_not_detected
777 #define yymore() yymore_used_but_not_detected
778 #define YY_MORE_ADJ 0
779 #define YY_RESTORE_YY_MORE_OFFSET
781 #line 1 "scan_netlist.l"
783 #line 4 "scan_netlist.l"
831 # define strchr index
832 # define strrchr rindex
835 static double netlist_evaluate_scale (
double val,
char * scale) {
837 while (isspace (scale[0])) scale++;
839 case 'E': factor = 1
e+18;
break;
840 case 'P': factor = 1
e+15;
break;
841 case 'T': factor = 1
e+12;
break;
842 case 'G': factor = 1
e+09;
break;
843 case 'M': factor = 1
e+06;
break;
844 case 'k': factor = 1
e+03;
break;
846 if (scale[1] ==
'i' && scale[2] ==
'l')
851 case 'u': factor = 1
e-06;
break;
852 case 'n': factor = 1
e-09;
break;
853 case 'p': factor = 1
e-12;
break;
860 case 'a': factor = 1
e-18;
break;
862 if (scale[1] ==
'B') {
863 val =
pow (10.0, val / 10.0);
866 else if (scale[2] ==
'u')
883 #line 884 "scan_netlist.cpp"
890 #ifndef YY_EXTRA_TYPE
891 #define YY_EXTRA_TYPE void *
894 static int yy_init_globals (
void );
929 #ifndef YY_SKIP_YYWRAP
938 static void yy_flex_strncpy (
char *,
yyconst char *,
int );
941 #ifdef YY_NEED_STRLEN
942 static int yy_flex_strlen (
yyconst char * );
948 static int yyinput (
void );
950 static int input (
void );
956 #ifndef YY_READ_BUF_SIZE
959 #define YY_READ_BUF_SIZE 16384
961 #define YY_READ_BUF_SIZE 8192
970 #define ECHO do { if (fwrite( netlist_text, netlist_leng, 1, netlist_out )) {} } while (0)
977 #define YY_INPUT(buf,result,max_size) \
978 if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
982 for ( n = 0; n < max_size && \
983 (c = getc( netlist_in )) != EOF && c != '\n'; ++n ) \
986 buf[n++] = (char) c; \
987 if ( c == EOF && ferror( netlist_in ) ) \
988 YY_FATAL_ERROR( "input in flex scanner failed" ); \
994 while ( (result = fread(buf, 1, max_size, netlist_in))==0 && ferror(netlist_in)) \
996 if( errno != EINTR) \
998 YY_FATAL_ERROR( "input in flex scanner failed" ); \
1002 clearerr(netlist_in); \
1014 #define yyterminate() return YY_NULL
1018 #ifndef YY_START_STACK_INCR
1019 #define YY_START_STACK_INCR 25
1023 #ifndef YY_FATAL_ERROR
1024 #define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
1033 #define YY_DECL_IS_OURS 1
1037 #define YY_DECL int netlist_lex (void)
1043 #ifndef YY_USER_ACTION
1044 #define YY_USER_ACTION
1049 #define YY_BREAK break;
1052 #define YY_RULE_SETUP \
1059 register yy_state_type yy_current_state;
1063 #line 145 "scan_netlist.l"
1066 #line 1067 "scan_netlist.cpp"
1086 netlist_ensure_buffer_stack ();
1091 netlist__load_buffer_state( );
1096 yy_cp = (yy_c_buf_p);
1099 *yy_cp = (yy_hold_char);
1106 yy_current_state = (yy_start);
1111 if ( yy_accept[yy_current_state] )
1113 (yy_last_accepting_state) = yy_current_state;
1114 (yy_last_accepting_cpos) = yy_cp;
1116 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1118 yy_current_state = (int) yy_def[yy_current_state];
1119 if ( yy_current_state >= 238 )
1120 yy_c = yy_meta[(
unsigned int) yy_c];
1122 yy_current_state = yy_nxt[yy_base[yy_current_state] + (
unsigned int) yy_c];
1125 while ( yy_base[yy_current_state] != 856 );
1128 yy_act = yy_accept[yy_current_state];
1131 yy_cp = (yy_last_accepting_cpos);
1132 yy_current_state = (yy_last_accepting_state);
1133 yy_act = yy_accept[yy_current_state];
1142 if ( netlist_text[yyl] ==
'\n' )
1154 *yy_cp = (yy_hold_char);
1155 yy_cp = (yy_last_accepting_cpos);
1156 yy_current_state = (yy_last_accepting_state);
1157 goto yy_find_action;
1161 #line 147 "scan_netlist.l"
1169 #line 151 "scan_netlist.l"
1177 #line 155 "scan_netlist.l"
1185 #line 159 "scan_netlist.l"
1193 #line 163 "scan_netlist.l"
1201 #line 167 "scan_netlist.l"
1209 #line 171 "scan_netlist.l"
1211 char * p =
strrchr (netlist_text,
'}'); *p =
'\0';
1218 #line 176 "scan_netlist.l"
1226 #line 180 "scan_netlist.l"
1228 if (netlist_text[0] ==
'i' || netlist_text[0] ==
'j')
1229 netlist_text[0] = (netlist_text[1] ==
'\0') ?
'1' :
'0';
1231 netlist_text[1] =
'0';
1238 #line 188 "scan_netlist.l"
1241 while (netlist_text[i] !=
'i' && netlist_text[i] !=
'j') i++;
1242 netlist_text[
i] = netlist_text[i - 1];
1243 netlist_text[i - 1] =
'\0';
1252 #line 197 "scan_netlist.l"
1255 while (isspace (netlist_text[len])) len--;
1264 #line 206 "scan_netlist.l"
1269 #line 207 "scan_netlist.l"
1274 #line 208 "scan_netlist.l"
1279 #line 210 "scan_netlist.l"
1284 #line 211 "scan_netlist.l"
1289 #line 212 "scan_netlist.l"
1295 #line 213 "scan_netlist.l"
1301 #line 215 "scan_netlist.l"
1306 #line 217 "scan_netlist.l"
1313 #line 220 "scan_netlist.l"
1321 #line 224 "scan_netlist.l"
1324 "line %d: syntax error, unrecognized character: `%s'\n",
1325 netlist_lineno, netlist_text);
1331 #line 231 "scan_netlist.l"
1337 #line 232 "scan_netlist.l"
1342 #line 234 "scan_netlist.l"
1351 #line 238 "scan_netlist.l"
1354 "line %d: syntax error, unterminated string constant\n",
1361 #line 244 "scan_netlist.l"
1366 #line 246 "scan_netlist.l"
1369 "line %d: syntax error, unrecognized character: `%s'\n",
1370 netlist_lineno, netlist_text);
1376 #line 253 "scan_netlist.l"
1378 return netlist_text[0];
1383 #line 257 "scan_netlist.l"
1388 #line 258 "scan_netlist.l"
1393 #line 259 "scan_netlist.l"
1398 #line 260 "scan_netlist.l"
1403 #line 261 "scan_netlist.l"
1408 #line 262 "scan_netlist.l"
1413 #line 263 "scan_netlist.l"
1418 #line 264 "scan_netlist.l"
1423 #line 265 "scan_netlist.l"
1428 #line 267 "scan_netlist.l"
1430 return netlist_text[0];
1435 #line 271 "scan_netlist.l"
1437 char * endptr = NULL;
1445 #line 277 "scan_netlist.l"
1447 if (netlist_text[0] ==
'i' || netlist_text[0] ==
'j')
1448 netlist_text[0] = (netlist_text[1] ==
'\0') ?
'1' :
'0';
1450 netlist_text[1] =
'0';
1451 char * endptr = NULL;
1459 #line 287 "scan_netlist.l"
1467 #line 291 "scan_netlist.l"
1475 #line 295 "scan_netlist.l"
1485 #line 300 "scan_netlist.l"
1490 #line 302 "scan_netlist.l"
1493 "line %d: syntax error, unrecognized character: `%s'\n",
1494 netlist_lineno, netlist_text);
1500 #line 309 "scan_netlist.l"
1503 #line 1504 "scan_netlist.cpp"
1513 int yy_amount_of_matched_text = (int) (yy_cp - (
yytext_ptr)) - 1;
1516 *yy_cp = (yy_hold_char);
1544 yy_state_type yy_next_state;
1546 (yy_c_buf_p) = (
yytext_ptr) + yy_amount_of_matched_text;
1548 yy_current_state = yy_get_previous_state( );
1559 yy_next_state = yy_try_NUL_trans( yy_current_state );
1563 if ( yy_next_state )
1566 yy_cp = ++(yy_c_buf_p);
1567 yy_current_state = yy_next_state;
1573 yy_cp = (yy_c_buf_p);
1574 goto yy_find_action;
1578 else switch ( yy_get_next_buffer( ) )
1582 (yy_did_buffer_switch_on_eof) = 0;
1603 if ( ! (yy_did_buffer_switch_on_eof) )
1613 yy_current_state = yy_get_previous_state( );
1615 yy_cp = (yy_c_buf_p);
1623 yy_current_state = yy_get_previous_state( );
1625 yy_cp = (yy_c_buf_p);
1627 goto yy_find_action;
1634 "fatal flex scanner internal error--no action found" );
1646 static int yy_get_next_buffer (
void)
1650 register int number_to_move,
i;
1655 "fatal flex scanner internal error--end of buffer missed" );
1679 number_to_move = (int) ((yy_c_buf_p) - (
yytext_ptr)) - 1;
1681 for ( i = 0; i < number_to_move; ++
i )
1682 *(dest++) = *(source++);
1695 while ( num_to_read <= 0 )
1701 int yy_c_buf_p_offset =
1708 if ( new_size <= 0 )
1723 "fatal error - scanner input buffer overflow" );
1725 (yy_c_buf_p) = &b->
yy_ch_buf[yy_c_buf_p_offset];
1737 (yy_n_chars), (
size_t) num_to_read );
1742 if ( (yy_n_chars) == 0 )
1763 yy_size_t new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1);
1766 YY_FATAL_ERROR(
"out of dynamic memory in yy_get_next_buffer()" );
1769 (yy_n_chars) += number_to_move;
1780 static yy_state_type yy_get_previous_state (
void)
1782 register yy_state_type yy_current_state;
1783 register char *
yy_cp;
1785 yy_current_state = (yy_start);
1790 if ( yy_accept[yy_current_state] )
1792 (yy_last_accepting_state) = yy_current_state;
1793 (yy_last_accepting_cpos) = yy_cp;
1795 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1797 yy_current_state = (int) yy_def[yy_current_state];
1798 if ( yy_current_state >= 238 )
1799 yy_c = yy_meta[(
unsigned int) yy_c];
1801 yy_current_state = yy_nxt[yy_base[yy_current_state] + (
unsigned int) yy_c];
1804 return yy_current_state;
1812 static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state )
1814 register int yy_is_jam;
1815 register char *yy_cp = (yy_c_buf_p);
1818 if ( yy_accept[yy_current_state] )
1820 (yy_last_accepting_state) = yy_current_state;
1821 (yy_last_accepting_cpos) = yy_cp;
1823 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1825 yy_current_state = (int) yy_def[yy_current_state];
1826 if ( yy_current_state >= 238 )
1827 yy_c = yy_meta[(
unsigned int) yy_c];
1829 yy_current_state = yy_nxt[yy_base[yy_current_state] + (
unsigned int) yy_c];
1830 yy_is_jam = (yy_current_state == 237);
1832 return yy_is_jam ? 0 : yy_current_state;
1837 static int yyinput (
void)
1839 static int input (
void)
1845 *(yy_c_buf_p) = (yy_hold_char);
1855 *(yy_c_buf_p) =
'\0';
1862 switch ( yy_get_next_buffer( ) )
1885 if ( ! (yy_did_buffer_switch_on_eof) )
1901 c = *(
unsigned char *) (yy_c_buf_p);
1902 *(yy_c_buf_p) =
'\0';
1903 (yy_hold_char) = *++(yy_c_buf_p);
1923 netlist_ensure_buffer_stack ();
1929 netlist__load_buffer_state( );
1944 netlist_ensure_buffer_stack ();
1951 *(yy_c_buf_p) = (yy_hold_char);
1957 netlist__load_buffer_state( );
1964 (yy_did_buffer_switch_on_eof) = 1;
1967 static void netlist__load_buffer_state (
void)
1972 (yy_hold_char) = *(yy_c_buf_p);
1987 YY_FATAL_ERROR(
"out of dynamic memory in netlist__create_buffer()" );
1996 YY_FATAL_ERROR(
"out of dynamic memory in netlist__create_buffer()" );
2000 netlist__init_buffer(b,file );
2025 extern int isatty (
int );
2032 static void netlist__init_buffer (YY_BUFFER_STATE b, FILE * file )
2080 netlist__load_buffer_state( );
2091 if (new_buffer == NULL)
2094 netlist_ensure_buffer_stack();
2100 *(yy_c_buf_p) = (yy_hold_char);
2107 (yy_buffer_stack_top)++;
2111 netlist__load_buffer_state( );
2112 (yy_did_buffer_switch_on_eof) = 1;
2126 if ((yy_buffer_stack_top) > 0)
2127 --(yy_buffer_stack_top);
2130 netlist__load_buffer_state( );
2131 (yy_did_buffer_switch_on_eof) = 1;
2138 static void netlist_ensure_buffer_stack (
void)
2142 if (!(yy_buffer_stack)) {
2152 if ( ! (yy_buffer_stack) )
2153 YY_FATAL_ERROR(
"out of dynamic memory in netlist_ensure_buffer_stack()" );
2155 memset((yy_buffer_stack), 0, num_to_alloc *
sizeof(
struct yy_buffer_state*));
2157 (yy_buffer_stack_max) = num_to_alloc;
2158 (yy_buffer_stack_top) = 0;
2162 if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){
2167 num_to_alloc = (yy_buffer_stack_max) + grow_size;
2172 if ( ! (yy_buffer_stack) )
2173 YY_FATAL_ERROR(
"out of dynamic memory in netlist_ensure_buffer_stack()" );
2176 memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size *
sizeof(
struct yy_buffer_state*));
2177 (yy_buffer_stack_max) = num_to_alloc;
2199 YY_FATAL_ERROR(
"out of dynamic memory in netlist__scan_buffer()" );
2245 n = _yybytes_len + 2;
2248 YY_FATAL_ERROR(
"out of dynamic memory in netlist__scan_bytes()" );
2250 for ( i = 0; i < _yybytes_len; ++
i )
2251 buf[i] = yybytes[i];
2267 #ifndef YY_EXIT_FAILURE
2268 #define YY_EXIT_FAILURE 2
2271 static void yy_fatal_error (
yyconst char* msg )
2273 (void)
fprintf( stderr,
"%s\n", msg );
2284 int yyless_macro_arg = (n); \
2285 YY_LESS_LINENO(yyless_macro_arg);\
2286 netlist_text[netlist_leng] = (yy_hold_char); \
2287 (yy_c_buf_p) = netlist_text + yyless_macro_arg; \
2288 (yy_hold_char) = *(yy_c_buf_p); \
2289 *(yy_c_buf_p) = '\0'; \
2290 netlist_leng = yyless_macro_arg; \
2345 netlist_lineno = line_number;
2371 netlist__flex_debug = bdebug ;
2374 static int yy_init_globals (
void)
2383 (yy_buffer_stack) = 0;
2384 (yy_buffer_stack_top) = 0;
2385 (yy_buffer_stack_max) = 0;
2386 (yy_c_buf_p) = (
char *) 0;
2418 (yy_buffer_stack) = NULL;
2432 static void yy_flex_strncpy (
char* s1,
yyconst char * s2,
int n )
2435 for ( i = 0; i <
n; ++
i )
2440 #ifdef YY_NEED_STRLEN
2441 static int yy_flex_strlen (
yyconst char *
s )
2444 for ( n = 0; s[
n]; ++
n )
2453 return (
void *) malloc( size );
2465 return (
void *) realloc( (
char *) ptr, size );
2470 free( (
char *) ptr );
2473 #define YYTABLES_NAME "yytables"
2475 #line 309 "scan_netlist.l"