14 #line 2 "./ortools/flatzinc/parser.yy.cc"
16 #line 4 "./ortools/flatzinc/parser.yy.cc"
18 #define YY_INT_ALIGNED short int
23 #define YY_FLEX_MAJOR_VERSION 2
24 #define YY_FLEX_MINOR_VERSION 6
25 #define YY_FLEX_SUBMINOR_VERSION 4
26 #if YY_FLEX_SUBMINOR_VERSION > 0
30 #ifdef yy_create_buffer
31 #define orfz__create_buffer_ALREADY_DEFINED
33 #define yy_create_buffer orfz__create_buffer
36 #ifdef yy_delete_buffer
37 #define orfz__delete_buffer_ALREADY_DEFINED
39 #define yy_delete_buffer orfz__delete_buffer
43 #define orfz__scan_buffer_ALREADY_DEFINED
45 #define yy_scan_buffer orfz__scan_buffer
49 #define orfz__scan_string_ALREADY_DEFINED
51 #define yy_scan_string orfz__scan_string
55 #define orfz__scan_bytes_ALREADY_DEFINED
57 #define yy_scan_bytes orfz__scan_bytes
61 #define orfz__init_buffer_ALREADY_DEFINED
63 #define yy_init_buffer orfz__init_buffer
66 #ifdef yy_flush_buffer
67 #define orfz__flush_buffer_ALREADY_DEFINED
69 #define yy_flush_buffer orfz__flush_buffer
72 #ifdef yy_load_buffer_state
73 #define orfz__load_buffer_state_ALREADY_DEFINED
75 #define yy_load_buffer_state orfz__load_buffer_state
78 #ifdef yy_switch_to_buffer
79 #define orfz__switch_to_buffer_ALREADY_DEFINED
81 #define yy_switch_to_buffer orfz__switch_to_buffer
84 #ifdef yypush_buffer_state
85 #define orfz_push_buffer_state_ALREADY_DEFINED
87 #define yypush_buffer_state orfz_push_buffer_state
90 #ifdef yypop_buffer_state
91 #define orfz_pop_buffer_state_ALREADY_DEFINED
93 #define yypop_buffer_state orfz_pop_buffer_state
96 #ifdef yyensure_buffer_stack
97 #define orfz_ensure_buffer_stack_ALREADY_DEFINED
99 #define yyensure_buffer_stack orfz_ensure_buffer_stack
103 #define orfz_lex_ALREADY_DEFINED
105 #define yylex orfz_lex
109 #define orfz_restart_ALREADY_DEFINED
111 #define yyrestart orfz_restart
115 #define orfz_lex_init_ALREADY_DEFINED
117 #define yylex_init orfz_lex_init
120 #ifdef yylex_init_extra
121 #define orfz_lex_init_extra_ALREADY_DEFINED
123 #define yylex_init_extra orfz_lex_init_extra
127 #define orfz_lex_destroy_ALREADY_DEFINED
129 #define yylex_destroy orfz_lex_destroy
133 #define orfz_get_debug_ALREADY_DEFINED
135 #define yyget_debug orfz_get_debug
139 #define orfz_set_debug_ALREADY_DEFINED
141 #define yyset_debug orfz_set_debug
145 #define orfz_get_extra_ALREADY_DEFINED
147 #define yyget_extra orfz_get_extra
151 #define orfz_set_extra_ALREADY_DEFINED
153 #define yyset_extra orfz_set_extra
157 #define orfz_get_in_ALREADY_DEFINED
159 #define yyget_in orfz_get_in
163 #define orfz_set_in_ALREADY_DEFINED
165 #define yyset_in orfz_set_in
169 #define orfz_get_out_ALREADY_DEFINED
171 #define yyget_out orfz_get_out
175 #define orfz_set_out_ALREADY_DEFINED
177 #define yyset_out orfz_set_out
181 #define orfz_get_leng_ALREADY_DEFINED
183 #define yyget_leng orfz_get_leng
187 #define orfz_get_text_ALREADY_DEFINED
189 #define yyget_text orfz_get_text
193 #define orfz_get_lineno_ALREADY_DEFINED
195 #define yyget_lineno orfz_get_lineno
199 #define orfz_set_lineno_ALREADY_DEFINED
201 #define yyset_lineno orfz_set_lineno
205 #define orfz_get_column_ALREADY_DEFINED
207 #define yyget_column orfz_get_column
211 #define orfz_set_column_ALREADY_DEFINED
213 #define yyset_column orfz_set_column
217 #define orfz_wrap_ALREADY_DEFINED
219 #define yywrap orfz_wrap
223 #define orfz_get_lval_ALREADY_DEFINED
225 #define yyget_lval orfz_get_lval
229 #define orfz_set_lval_ALREADY_DEFINED
231 #define yyset_lval orfz_set_lval
235 #define orfz_alloc_ALREADY_DEFINED
237 #define yyalloc orfz_alloc
241 #define orfz_realloc_ALREADY_DEFINED
243 #define yyrealloc orfz_realloc
247 #define orfz_free_ALREADY_DEFINED
249 #define yyfree orfz_free
269 #if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
274 #ifndef __STDC_LIMIT_MACROS
275 #define __STDC_LIMIT_MACROS 1
278 #include <inttypes.h>
295 #define INT8_MIN (-128)
298 #define INT16_MIN (-32767 - 1)
301 #define INT32_MIN (-2147483647 - 1)
304 #define INT8_MAX (127)
307 #define INT16_MAX (32767)
310 #define INT32_MAX (2147483647)
313 #define UINT8_MAX (255U)
316 #define UINT16_MAX (65535U)
319 #define UINT32_MAX (4294967295U)
323 #define SIZE_MAX (~(size_t)0)
333 #define yyconst const
335 #if defined(__GNUC__) && __GNUC__ >= 3
336 #define yynoreturn __attribute__((__noreturn__))
347 #define YY_SC_TO_UI(c) ((YY_CHAR)(c))
350 #ifndef YY_TYPEDEF_YY_SCANNER_T
351 #define YY_TYPEDEF_YY_SCANNER_T
357 #define yyin yyg->yyin_r
358 #define yyout yyg->yyout_r
359 #define yyextra yyg->yyextra_r
360 #define yyleng yyg->yyleng_r
361 #define yytext yyg->yytext_r
362 #define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)
363 #define yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column)
364 #define yy_flex_debug yyg->yy_flex_debug_r
370 #define BEGIN yyg->yy_start = 1 + 2 *
375 #define YY_START ((yyg->yy_start - 1) / 2)
376 #define YYSTATE YY_START
378 #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
380 #define YY_NEW_FILE yyrestart(yyin, yyscanner)
381 #define YY_END_OF_BUFFER_CHAR 0
390 #define YY_BUF_SIZE 32768
392 #define YY_BUF_SIZE 16384
399 #define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
401 #ifndef YY_TYPEDEF_YY_BUFFER_STATE
402 #define YY_TYPEDEF_YY_BUFFER_STATE
406 #ifndef YY_TYPEDEF_YY_SIZE_T
407 #define YY_TYPEDEF_YY_SIZE_T
411 #define EOB_ACT_CONTINUE_SCAN 0
412 #define EOB_ACT_END_OF_FILE 1
413 #define EOB_ACT_LAST_MATCH 2
422 #define YY_LESS_LINENO(n) \
425 for (yyl = n; yyl < yyleng; ++yyl) \
426 if (yytext[yyl] == '\n') --yylineno; \
428 #define YY_LINENO_REWIND_TO(dst) \
431 for (p = yy_cp - 1; p >= (dst); --p) \
432 if (*p == '\n') --yylineno; \
439 int yyless_macro_arg = (n); \
440 YY_LESS_LINENO(yyless_macro_arg); \
441 *yy_cp = yyg->yy_hold_char; \
442 YY_RESTORE_YY_MORE_OFFSET \
443 yyg->yy_c_buf_p = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
444 YY_DO_BEFORE_ACTION; \
446 #define unput(c) yyunput(c, yyg->yytext_ptr, yyscanner)
448 #ifndef YY_STRUCT_YY_BUFFER_STATE
449 #define YY_STRUCT_YY_BUFFER_STATE
495 #define YY_BUFFER_NEW 0
496 #define YY_BUFFER_NORMAL 1
507 #define YY_BUFFER_EOF_PENDING 2
517 #define YY_CURRENT_BUFFER \
518 (yyg->yy_buffer_stack ? yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] : NULL)
522 #define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
535 #define YY_FLUSH_BUFFER yy_flush_buffer(YY_CURRENT_BUFFER, yyscanner)
545 #define yy_new_buffer yy_create_buffer
546 #define yy_set_interactive(is_interactive) \
548 if (!YY_CURRENT_BUFFER) { \
549 yyensure_buffer_stack(yyscanner); \
550 YY_CURRENT_BUFFER_LVALUE = \
551 yy_create_buffer(yyin, YY_BUF_SIZE, yyscanner); \
553 YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
555 #define yy_set_bol(at_bol) \
557 if (!YY_CURRENT_BUFFER) { \
558 yyensure_buffer_stack(yyscanner); \
559 YY_CURRENT_BUFFER_LVALUE = \
560 yy_create_buffer(yyin, YY_BUF_SIZE, yyscanner); \
562 YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
564 #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
568 #define orfz_wrap(yyscanner) ( 1)
569 #define YY_SKIP_YYWRAP
574 #define yytext_ptr yytext_r
585 #define YY_DO_BEFORE_ACTION \
586 yyg->yytext_ptr = yy_bp; \
587 yyleng = (int)(yy_cp - yy_bp); \
588 yyg->yy_hold_char = *yy_cp; \
590 yyg->yy_c_buf_p = yy_cp;
591 #define YY_NUM_RULES 31
592 #define YY_END_OF_BUFFER 32
600 0, 0, 0, 32, 30, 28, 27, 30, 29, 30, 30, 18, 18, 30, 24, 30, 24,
601 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 0, 26, 29, 18, 18, 14, 0,
602 0, 0, 0, 15, 24, 25, 0, 24, 24, 24, 24, 24, 24, 24, 24, 8, 24,
603 24, 24, 24, 24, 24, 21, 0, 23, 20, 19, 25, 24, 24, 24, 24, 24, 5,
604 24, 24, 24, 24, 11, 24, 24, 13, 0, 24, 2, 24, 24, 24, 24, 24, 24,
605 24, 24, 16, 0, 22, 1, 24, 17, 4, 24, 24, 24, 24, 12, 24, 24,
607 24, 24, 24, 24, 24, 24, 24, 10, 24, 6, 7, 24, 24, 9, 3, 0};
610 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 1, 1, 1, 1, 1, 1, 1, 1,
611 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 4, 1, 1, 5,
612 1, 1, 1, 1, 1, 6, 1, 7, 8, 1, 9, 10, 10, 10, 10, 10, 10, 10, 11,
613 11, 12, 1, 1, 1, 1, 1, 1, 13, 13, 13, 13, 14, 13, 15, 15, 15, 15, 15,
614 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 1, 1, 1, 1,
615 16, 1, 17, 18, 19, 20,
617 21, 22, 15, 15, 23, 15, 15, 24, 25, 26, 27, 28, 15, 29, 30, 31, 32, 33, 15,
618 34, 35, 36, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
619 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
620 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
621 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
624 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
625 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
626 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1};
628 static const YY_CHAR yy_meta[37] = {0, 1, 1, 2, 1, 1, 1, 1, 1, 3, 3, 3, 1,
629 4, 4, 5, 5, 4, 4, 4, 4, 4, 4, 5, 5, 5,
630 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5};
633 0, 0, 0, 174, 175, 175, 175, 169, 0, 28, 164, 32, 17, 159, 0,
634 154, 140, 141, 140, 28, 140, 31, 143, 135, 40, 134, 145, 157, 175, 0,
635 0, 0, 175, 53, 62, 40, 0, 175, 0, 0, 144, 130, 131, 131, 132,
636 128, 123, 119, 126, 0, 130, 119, 118, 124, 115, 117, 65, 71, 74, 46,
637 0, 0, 128, 120, 113, 112, 124, 0, 117, 116, 118, 114, 0, 103, 114,
638 0, 81, 99, 0, 102, 111, 100, 105, 104, 105, 97, 105, 0, 84, 87,
639 0, 96, 0, 0, 101, 100, 103, 99, 0, 103, 83,
641 69, 83, 54, 55, 56, 49, 34, 0, 34, 0, 0, 37, 16, 0, 0,
642 175, 98, 103, 106, 108, 111, 113};
645 0, 116, 1, 116, 116, 116, 116, 117, 118, 116, 116, 116, 11, 116, 119,
646 120, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 117, 116, 118,
647 11, 12, 116, 116, 116, 116, 121, 116, 119, 122, 120, 119, 119, 119, 119,
648 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 116, 116, 116, 116,
649 121, 122, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119,
650 119, 116, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 116, 116,
651 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119,
653 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119,
654 0, 116, 116, 116, 116, 116, 116};
657 0, 4, 5, 6, 7, 8, 4, 9, 10, 11, 12, 12, 13, 14, 14,
658 14, 15, 16, 17, 18, 14, 14, 19, 20, 14, 21, 14, 22, 23, 14,
659 24, 25, 14, 26, 14, 14, 14, 30, 31, 31, 33, 31, 31, 31, 116,
660 44, 34, 115, 47, 59, 59, 116, 45, 34, 48, 59, 59, 51, 114, 35,
661 113, 52, 56, 56, 56, 112, 36, 53, 57, 57, 111, 58, 58, 58, 56,
662 56, 56, 110, 109, 76, 58, 58, 58, 58, 58, 58, 76, 88, 88, 108,
663 89, 89, 89, 89, 89, 89, 89, 89, 89, 27, 107,
665 27, 27, 27, 29, 106, 29, 29, 29, 38, 38, 38, 39, 39, 60, 60,
666 61, 61, 61, 105, 104, 103, 102, 101, 100, 99, 98, 97, 96, 95, 94,
667 93, 92, 91, 90, 87, 86, 85, 84, 83, 82, 81, 80, 79, 78, 77,
668 75, 74, 73, 72, 71, 70, 69, 68, 67, 66, 65, 64, 63, 62, 40,
669 28, 55, 54, 50, 49, 46, 43, 42, 41, 40, 37, 32, 28, 116, 3,
670 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116,
671 116, 116, 116, 116, 116, 116, 116, 116, 116, 116,
673 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116};
676 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
677 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
678 1, 1, 1, 1, 1, 1, 1, 9, 9, 9, 11, 11, 11, 11, 12,
679 19, 11, 113, 21, 35, 35, 12, 19, 11, 21, 59, 59, 24, 112, 11,
680 109, 24, 33, 33, 33, 107, 11, 24, 34, 34, 106, 34, 34, 34, 56,
681 56, 56, 105, 104, 56, 57, 57, 57, 58, 58, 58, 56, 76, 76, 103,
682 76, 76, 76, 88, 88, 88, 89, 89, 89, 117, 102,
684 117, 117, 117, 118, 101, 118, 118, 118, 119, 119, 119, 120, 120, 121, 121,
685 122, 122, 122, 100, 99, 97, 96, 95, 94, 91, 86, 85, 84, 83, 82,
686 81, 80, 79, 77, 74, 73, 71, 70, 69, 68, 66, 65, 64, 63, 62,
687 55, 54, 53, 52, 51, 50, 48, 47, 46, 45, 44, 43, 42, 41, 40,
688 27, 26, 25, 23, 22, 20, 18, 17, 16, 15, 13, 10, 7, 3, 116,
689 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116,
690 116, 116, 116, 116, 116, 116, 116, 116, 116, 116,
692 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 116};
696 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
697 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0,
703 #define REJECT reject_used_but_not_detected
704 #define yymore() yymore_used_but_not_detected
705 #define YY_MORE_ADJ 0
706 #define YY_RESTORE_YY_MORE_OFFSET
707 #line 1 "./ortools/flatzinc/parser.lex"
711 #line 11 "./ortools/flatzinc/parser.lex"
714 #include "absl/strings/numbers.h"
716 #include "ortools/flatzinc/parser.tab.hh"
717 #if defined(_MSC_VER)
718 #define YY_NO_UNISTD_H
720 #define isatty _isatty
722 #line 769 "./ortools/flatzinc/parser.yy.cc"
726 #line 773 "./ortools/flatzinc/parser.yy.cc"
730 #ifndef YY_NO_UNISTD_H
738 #ifndef YY_EXTRA_TYPE
739 #define YY_EXTRA_TYPE void*
781 #define yylval yyg->yylval_r
828 #ifndef YY_SKIP_YYWRAP
843 static void yy_flex_strncpy(
char*,
const char*,
int,
yyscan_t yyscanner);
846 #ifdef YY_NEED_STRLEN
847 static int yy_flex_strlen(
const char*,
yyscan_t yyscanner);
852 static int yyinput(
yyscan_t yyscanner);
860 #ifndef YY_READ_BUF_SIZE
863 #define YY_READ_BUF_SIZE 16384
865 #define YY_READ_BUF_SIZE 8192
876 if (fwrite(yytext, (size_t)yyleng, 1, yyout)) { \
885 #define YY_INPUT(buf, result, max_size) \
886 if (YY_CURRENT_BUFFER_LVALUE->yy_is_interactive) { \
889 for (n = 0; n < max_size && (c = getc(yyin)) != EOF && c != '\n'; ++n) \
891 if (c == '\n') buf[n++] = (char)c; \
892 if (c == EOF && ferror(yyin)) \
893 YY_FATAL_ERROR("input in flex scanner failed"); \
897 while ((result = (int)fread(buf, 1, (yy_size_t)max_size, yyin)) == 0 && \
899 if (errno != EINTR) { \
900 YY_FATAL_ERROR("input in flex scanner failed"); \
915 #define yyterminate() return YY_NULL
919 #ifndef YY_START_STACK_INCR
920 #define YY_START_STACK_INCR 25
924 #ifndef YY_FATAL_ERROR
925 #define YY_FATAL_ERROR(msg) yy_fatal_error(msg, yyscanner)
934 #define YY_DECL_IS_OURS 1
938 #define YY_DECL int yylex(YYSTYPE* yylval_param, yyscan_t yyscanner)
944 #ifndef YY_USER_ACTION
945 #define YY_USER_ACTION
950 #define YY_BREAK break;
953 #define YY_RULE_SETUP YY_USER_ACTION
987 #line 26 "./ortools/flatzinc/parser.lex"
989 #line 1049 "./ortools/flatzinc/parser.yy.cc"
1011 while (
yy_chk[
yy_base[yy_current_state] + yy_c] != yy_current_state) {
1012 yy_current_state = (int)
yy_def[yy_current_state];
1013 if (yy_current_state >= 117) yy_c =
yy_meta[yy_c];
1015 yy_current_state =
yy_nxt[
yy_base[yy_current_state] + yy_c];
1017 }
while (
yy_base[yy_current_state] != 175);
1031 for (yyl = 0; yyl <
yyleng; ++yyl)
1032 if (
yytext[yyl] ==
'\n')
do {
1046 goto yy_find_action;
1050 #line 27 "./ortools/flatzinc/parser.lex"
1057 #line 28 "./ortools/flatzinc/parser.lex"
1064 #line 29 "./ortools/flatzinc/parser.lex"
1071 #line 30 "./ortools/flatzinc/parser.lex"
1078 #line 31 "./ortools/flatzinc/parser.lex"
1085 #line 32 "./ortools/flatzinc/parser.lex"
1092 #line 33 "./ortools/flatzinc/parser.lex"
1099 #line 34 "./ortools/flatzinc/parser.lex"
1106 #line 35 "./ortools/flatzinc/parser.lex"
1113 #line 36 "./ortools/flatzinc/parser.lex"
1120 #line 37 "./ortools/flatzinc/parser.lex"
1127 #line 38 "./ortools/flatzinc/parser.lex"
1134 #line 39 "./ortools/flatzinc/parser.lex"
1141 #line 40 "./ortools/flatzinc/parser.lex"
1148 #line 41 "./ortools/flatzinc/parser.lex"
1155 #line 43 "./ortools/flatzinc/parser.lex"
1157 yylval->integer_value = 1;
1163 #line 47 "./ortools/flatzinc/parser.lex"
1165 yylval->integer_value = 0;
1171 #line 51 "./ortools/flatzinc/parser.lex"
1179 #line 55 "./ortools/flatzinc/parser.lex"
1187 #line 59 "./ortools/flatzinc/parser.lex"
1195 #line 63 "./ortools/flatzinc/parser.lex"
1203 #line 67 "./ortools/flatzinc/parser.lex"
1211 #line 71 "./ortools/flatzinc/parser.lex"
1219 #line 76 "./ortools/flatzinc/parser.lex"
1227 #line 80 "./ortools/flatzinc/parser.lex"
1235 #line 84 "./ortools/flatzinc/parser.lex"
1244 #line 85 "./ortools/flatzinc/parser.lex"
1249 #line 86 "./ortools/flatzinc/parser.lex"
1254 #line 87 "./ortools/flatzinc/parser.lex"
1259 #line 88 "./ortools/flatzinc/parser.lex"
1266 #line 89 "./ortools/flatzinc/parser.lex"
1269 #line 1305 "./ortools/flatzinc/parser.yy.cc"
1275 int yy_amount_of_matched_text = (int)(
yy_cp -
yyg->yytext_ptr) - 1;
1325 if (yy_next_state) {
1328 yy_current_state = yy_next_state;
1334 goto yy_find_action;
1382 goto yy_find_action;
1388 YY_FATAL_ERROR(
"fatal flex scanner internal error--no action found");
1404 char* source =
yyg->yytext_ptr;
1405 int number_to_move, i;
1410 YY_FATAL_ERROR(
"fatal flex scanner internal error--end of buffer missed");
1434 for (i = 0; i < number_to_move; ++i) *(dest++) = *(source++);
1446 while (num_to_read <= 0) {
1453 if (
b->yy_is_our_buffer) {
1454 int new_size =
b->yy_buf_size * 2;
1457 b->yy_buf_size +=
b->yy_buf_size / 8;
1459 b->yy_buf_size *= 2;
1461 b->yy_ch_buf = (
char*)
1467 b->yy_ch_buf = NULL;
1540 while (
yy_chk[
yy_base[yy_current_state] + yy_c] != yy_current_state) {
1541 yy_current_state = (int)
yy_def[yy_current_state];
1542 if (yy_current_state >= 117) yy_c =
yy_meta[yy_c];
1544 yy_current_state =
yy_nxt[
yy_base[yy_current_state] + yy_c];
1547 return yy_current_state;
1567 while (
yy_chk[
yy_base[yy_current_state] + yy_c] != yy_current_state) {
1568 yy_current_state = (int)
yy_def[yy_current_state];
1569 if (yy_current_state >= 117) yy_c =
yy_meta[yy_c];
1571 yy_current_state =
yy_nxt[
yy_base[yy_current_state] + yy_c];
1572 yy_is_jam = (yy_current_state == 116);
1575 return yy_is_jam ? 0 : yy_current_state;
1589 if (yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf +
1599 yy_cp += (int)(dest - source);
1600 yy_bp += (int)(dest - source);
1604 if (yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2)
1623 static int yyinput(
yyscan_t yyscanner)
1665 if (
yywrap(yyscanner))
return 0;
1669 return yyinput(yyscanner);
1671 return input(yyscanner);
1764 if (!
b)
YY_FATAL_ERROR(
"out of dynamic memory in yy_create_buffer()");
1766 b->yy_buf_size = size;
1775 b->yy_is_our_buffer = 1;
1794 if (
b->yy_is_our_buffer)
yyfree((
void*)
b->yy_ch_buf, yyscanner);
1811 b->yy_input_file =
file;
1812 b->yy_fill_buffer = 1;
1819 b->yy_bs_lineno = 1;
1820 b->yy_bs_column = 0;
1823 b->yy_is_interactive =
file ? (isatty(fileno(
file)) > 0) : 0;
1845 b->yy_buf_pos = &
b->yy_ch_buf[0];
1861 if (new_buffer == NULL)
return;
1916 YY_FATAL_ERROR(
"out of dynamic memory in yyensure_buffer_stack()");
1935 YY_FATAL_ERROR(
"out of dynamic memory in yyensure_buffer_stack()");
1962 b->yy_buf_size = (int)(size - 2);
1963 b->yy_buf_pos =
b->yy_ch_buf = base;
1964 b->yy_is_our_buffer = 0;
1965 b->yy_input_file = NULL;
1966 b->yy_n_chars =
b->yy_buf_size;
1967 b->yy_is_interactive = 0;
1969 b->yy_fill_buffer = 0;
2005 buf = (
char*)
yyalloc(n, yyscanner);
2006 if (!buf)
YY_FATAL_ERROR(
"out of dynamic memory in yy_scan_bytes()");
2008 for (i = 0; i < _yybytes_len; ++i) buf[i] = yybytes[i];
2018 b->yy_is_our_buffer = 1;
2023 #ifndef YY_EXIT_FAILURE
2024 #define YY_EXIT_FAILURE 2
2030 fprintf(stderr,
"%s\n", msg);
2040 int yyless_macro_arg = (n); \
2041 YY_LESS_LINENO(yyless_macro_arg); \
2042 yytext[yyleng] = yyg->yy_hold_char; \
2043 yyg->yy_c_buf_p = yytext + yyless_macro_arg; \
2044 yyg->yy_hold_char = *yyg->yy_c_buf_p; \
2045 *yyg->yy_c_buf_p = '\0'; \
2046 yyleng = yyless_macro_arg; \
2195 if (ptr_yy_globals == NULL) {
2202 if (*ptr_yy_globals == NULL) {
2209 memset(*ptr_yy_globals, 0x00,
sizeof(
struct yyguts_t));
2226 if (ptr_yy_globals == NULL) {
2233 if (*ptr_yy_globals == NULL) {
2240 memset(*ptr_yy_globals, 0x00,
sizeof(
struct yyguts_t));
2303 yyfree(yyscanner, yyscanner);
2313 static void yy_flex_strncpy(
char* s1,
const char* s2,
int n,
2319 for (i = 0; i < n; ++i) s1[i] = s2[i];
2323 #ifdef YY_NEED_STRLEN
2324 static int yy_flex_strlen(
const char* s,
yyscan_t yyscanner) {
2326 for (n = 0; s[n]; ++n)
2350 return realloc(ptr, size);
2359 #define YYTABLES_NAME "yytables"
2361 #line 89 "./ortools/flatzinc/parser.lex"