#define FLEX_SCANNER
#define YY_FLEX_MAJOR_VERSION 2
#define YY_FLEX_MINOR_VERSION 5
#include <stdio.h>
#include <errno.h>
#ifdef c_plusplus
#ifndef __cplusplus
#define __cplusplus
#endif
#endif
#ifdef __cplusplus
#include <stdlib.h>
#include <unistd.h>
#define YY_USE_PROTOS
#define YY_USE_CONST
#else
#ifdef __STDC__
#define YY_USE_PROTOS
#define YY_USE_CONST
#endif
#endif
#ifdef __TURBOC__
#pragma warn -rch
#pragma warn -use
#include <io.h>
#include <stdlib.h>
#define YY_USE_CONST
#define YY_USE_PROTOS
#endif
#ifdef YY_USE_CONST
#define yyconst const
#else
#define yyconst
#endif
#ifdef YY_USE_PROTOS
#define YY_PROTO(proto) proto
#else
#define YY_PROTO(proto) ()
#endif
#define YY_NULL 0
#define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)
#define BEGIN yy_start = 1 + 2 *
#define YY_START ((yy_start - 1) / 2)
#define YYSTATE YY_START
#define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
#define YY_NEW_FILE yyrestart( yyin )
#define YY_END_OF_BUFFER_CHAR 0
#define YY_BUF_SIZE 16384
typedef struct yy_buffer_state *YY_BUFFER_STATE;
extern int yyleng;
extern FILE *yyin, *yyout;
#define EOB_ACT_CONTINUE_SCAN 0
#define EOB_ACT_END_OF_FILE 1
#define EOB_ACT_LAST_MATCH 2
#define yyless(n) \
do \
{ \
\
*yy_cp = yy_hold_char; \
YY_RESTORE_YY_MORE_OFFSET \
yy_c_buf_p = yy_cp = yy_bp + n - YY_MORE_ADJ; \
YY_DO_BEFORE_ACTION; \
} \
while ( 0 )
#define unput(c) yyunput( c, yytext_ptr )
typedef unsigned int yy_size_t;
struct yy_buffer_state
{
FILE *yy_input_file;
char *yy_ch_buf;
char *yy_buf_pos;
yy_size_t yy_buf_size;
int yy_n_chars;
int yy_is_our_buffer;
int yy_is_interactive;
int yy_at_bol;
int yy_fill_buffer;
int yy_buffer_status;
#define YY_BUFFER_NEW 0
#define YY_BUFFER_NORMAL 1
#define YY_BUFFER_EOF_PENDING 2
};
static YY_BUFFER_STATE yy_current_buffer = 0;
#define YY_CURRENT_BUFFER yy_current_buffer
static char yy_hold_char;
static int yy_n_chars;
int yyleng;
static char *yy_c_buf_p = (char *) 0;
static int yy_init = 1;
static int yy_start = 0;
static int yy_did_buffer_switch_on_eof;
void yyrestart YY_PROTO(( FILE *input_file ));
void yy_switch_to_buffer YY_PROTO(( YY_BUFFER_STATE new_buffer ));
void yy_load_buffer_state YY_PROTO(( void ));
YY_BUFFER_STATE yy_create_buffer YY_PROTO(( FILE *file, int size ));
void yy_delete_buffer YY_PROTO(( YY_BUFFER_STATE b ));
void yy_init_buffer YY_PROTO(( YY_BUFFER_STATE b, FILE *file ));
void yy_flush_buffer YY_PROTO(( YY_BUFFER_STATE b ));
#define YY_FLUSH_BUFFER yy_flush_buffer( yy_current_buffer )
YY_BUFFER_STATE yy_scan_buffer YY_PROTO(( char *base, yy_size_t size ));
YY_BUFFER_STATE yy_scan_string YY_PROTO(( yyconst char *yy_str ));
YY_BUFFER_STATE yy_scan_bytes YY_PROTO(( yyconst char *bytes, int len ));
static void *yy_flex_alloc YY_PROTO(( yy_size_t ));
static void *yy_flex_realloc YY_PROTO(( void *, yy_size_t ));
static void yy_flex_free YY_PROTO(( void * ));
#define yy_new_buffer yy_create_buffer
#define yy_set_interactive(is_interactive) \
{ \
if ( ! yy_current_buffer ) \
yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
yy_current_buffer->yy_is_interactive = is_interactive; \
}
#define yy_set_bol(at_bol) \
{ \
if ( ! yy_current_buffer ) \
yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
yy_current_buffer->yy_at_bol = at_bol; \
}
#define YY_AT_BOL() (yy_current_buffer->yy_at_bol)
#define yywrap() 1
#define YY_SKIP_YYWRAP
typedef unsigned char YY_CHAR;
FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
typedef int yy_state_type;
extern char *yytext;
#define yytext_ptr yytext
static yy_state_type yy_get_previous_state YY_PROTO(( void ));
static yy_state_type yy_try_NUL_trans YY_PROTO(( yy_state_type current_state ));
static int yy_get_next_buffer YY_PROTO(( void ));
static void yy_fatal_error YY_PROTO(( yyconst char msg[] ));
#define YY_DO_BEFORE_ACTION \
yytext_ptr = yy_bp; \
yyleng = (int) (yy_cp - yy_bp); \
yy_hold_char = *yy_cp; \
*yy_cp = '\0'; \
yy_c_buf_p = yy_cp;
#define YY_NUM_RULES 54
#define YY_END_OF_BUFFER 55
static yyconst short int yy_accept[593] =
{ 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 55, 42, 50, 49, 48, 42, 53, 42,
43, 44, 42, 45, 42, 42, 42, 42, 47, 46,
53, 37, 37, 37, 37, 37, 37, 37, 53, 42,
42, 50, 53, 37, 37, 37, 37, 37, 1, 53,
42, 42, 16, 15, 16, 15, 15, 53, 53, 53,
2, 8, 7, 8, 3, 8, 4, 53, 12, 12,
12, 10, 11, 42, 0, 50, 48, 42, 0, 0,
0, 52, 0, 42, 32, 0, 0, 31, 0, 40,
40, 0, 42, 42, 0, 42, 42, 42, 42, 0,
35, 37, 37, 37, 37, 37, 37, 37, 42, 51,
42, 50, 0, 0, 0, 0, 0, 0, 42, 42,
42, 42, 42, 1, 0, 38, 38, 0, 42, 16,
16, 14, 13, 14, 0, 0, 2, 8, 0, 5,
6, 8, 8, 12, 0, 12, 12, 0, 9, 41,
41, 0, 0, 32, 0, 0, 42, 42, 42, 42,
42, 0, 0, 35, 35, 37, 37, 37, 37, 37,
37, 37, 37, 37, 42, 0, 0, 0, 0, 0,
0, 42, 42, 42, 42, 42, 0, 42, 9, 0,
42, 42, 42, 42, 42, 42, 0, 36, 36, 36,
0, 0, 35, 35, 35, 35, 35, 35, 35, 37,
37, 37, 37, 37, 37, 37, 37, 37, 42, 0,
0, 0, 0, 0, 0, 42, 42, 42, 42, 42,
42, 42, 0, 0, 36, 36, 36, 0, 35, 35,
0, 35, 35, 35, 35, 35, 35, 35, 35, 35,
35, 35, 0, 24, 37, 37, 37, 37, 37, 37,
37, 37, 42, 0, 0, 0, 0, 42, 42, 42,
42, 42, 42, 42, 42, 0, 36, 0, 35, 35,
35, 0, 0, 0, 35, 35, 35, 35, 35, 35,
35, 35, 35, 35, 35, 35, 35, 37, 37, 37,
37, 37, 37, 37, 37, 42, 0, 0, 0, 42,
42, 42, 33, 33, 33, 0, 0, 35, 35, 35,
35, 35, 35, 35, 0, 0, 0, 0, 0, 35,
35, 35, 35, 35, 35, 35, 35, 35, 35, 35,
35, 35, 35, 37, 37, 0, 23, 37, 37, 37,
37, 0, 22, 0, 25, 42, 0, 0, 0, 42,
42, 42, 42, 33, 33, 33, 33, 0, 35, 0,
35, 35, 35, 35, 35, 35, 35, 35, 35, 35,
35, 0, 0, 0, 35, 35, 35, 35, 35, 35,
35, 35, 35, 35, 35, 35, 35, 37, 37, 37,
37, 37, 37, 39, 0, 0, 0, 42, 19, 38,
42, 34, 34, 34, 35, 0, 0, 0, 35, 35,
35, 35, 35, 35, 35, 35, 35, 35, 35, 35,
35, 0, 0, 0, 0, 0, 35, 35, 35, 35,
35, 35, 35, 35, 37, 37, 37, 37, 0, 21,
0, 26, 0, 19, 0, 0, 42, 0, 42, 42,
42, 34, 34, 34, 34, 34, 0, 0, 0, 0,
0, 35, 35, 35, 35, 35, 35, 35, 35, 35,
35, 35, 35, 35, 35, 35, 35, 35, 35, 35,
35, 0, 29, 37, 37, 37, 0, 0, 0, 20,
19, 0, 0, 19, 0, 42, 42, 42, 34, 34,
0, 0, 0, 35, 35, 35, 35, 35, 35, 35,
35, 35, 35, 35, 35, 35, 35, 35, 35, 35,
35, 0, 27, 37, 37, 20, 0, 17, 0, 42,
42, 42, 42, 42, 0, 0, 0, 0, 0, 35,
35, 35, 35, 35, 35, 35, 35, 0, 30, 37,
0, 42, 42, 42, 35, 35, 35, 35, 35, 35,
0, 28, 0, 42, 42, 42, 42, 42, 35, 35,
35, 35, 35, 0, 18, 33, 33, 33, 33, 33,
33, 0
} ;
static yyconst int yy_ec[256] =
{ 0,
1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 2, 4, 5, 6, 1, 7, 1, 1, 8,
9, 10, 11, 12, 13, 14, 15, 16, 17, 18,
19, 20, 21, 22, 22, 22, 23, 24, 1, 1,
25, 26, 10, 27, 28, 29, 30, 31, 32, 29,
33, 34, 35, 36, 36, 37, 36, 38, 39, 40,
36, 41, 42, 43, 44, 45, 46, 47, 36, 36,
10, 48, 10, 1, 49, 1, 50, 51, 52, 53,
54, 55, 56, 56, 57, 56, 56, 58, 59, 60,
61, 56, 56, 62, 63, 64, 65, 56, 56, 56,
56, 56, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1
} ;
static yyconst int yy_meta[66] =
{ 0,
1, 2, 3, 4, 5, 2, 1, 6, 6, 1,
1, 2, 1, 7, 8, 9, 9, 9, 9, 9,
9, 9, 9, 10, 11, 6, 1, 9, 9, 9,
9, 9, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 12, 13, 14,
14, 14, 14, 14, 14, 13, 13, 13, 13, 13,
13, 13, 13, 13, 13
} ;
static yyconst short int yy_base[659] =
{ 0,
0, 64, 65, 66, 72, 87, 134, 198, 262, 309,
83, 98, 2616, 2548, 2586, 3619, 2562, 356, 402, 58,
3619, 3619, 2517, 3619, 106, 412, 139, 105, 2540, 3619,
3619, 467, 2516, 517, 2487, 2486, 2496, 2482, 571, 149,
44, 175, 595, 2444, 2446, 2438, 2433, 2434, 2494, 204,
268, 65, 0, 3619, 2474, 3619, 0, 276, 650, 114,
0, 2420, 3619, 79, 3619, 93, 3619, 131, 2417, 71,
103, 3619, 140, 2416, 206, 2461, 2458, 672, 2456, 2428,
2426, 3619, 217, 286, 125, 2380, 321, 2377, 347, 328,
2375, 382, 322, 705, 2398, 2407, 379, 429, 393, 2387,
124, 745, 0, 2366, 2361, 253, 2351, 2347, 241, 3619,
99, 558, 2329, 2333, 2325, 2319, 2320, 147, 116, 214,
233, 181, 29, 2380, 534, 555, 2325, 617, 126, 0,
2359, 178, 3619, 3619, 614, 268, 0, 2297, 677, 3619,
3619, 2296, 315, 2295, 2337, 243, 280, 295, 2339, 2292,
3619, 2336, 2320, 2274, 705, 777, 789, 824, 859, 894,
2307, 2259, 934, 129, 975, 1015, 2252, 2232, 2224, 2221,
2229, 2224, 2213, 2222, 287, 2193, 2197, 2162, 2162, 2167,
323, 321, 2170, 235, 163, 304, 811, 331, 2217, 2215,
638, 369, 1057, 1092, 724, 379, 2193, 2184, 730, 421,
2166, 2163, 363, 628, 1127, 808, 437, 1168, 834, 2162,
365, 434, 2153, 2151, 2141, 2139, 2119, 2117, 422, 2099,
2095, 2069, 2082, 2069, 413, 444, 542, 495, 528, 1210,
1245, 1280, 2106, 2105, 842, 2097, 2074, 2072, 2035, 563,
867, 570, 875, 586, 1315, 0, 885, 1326, 911, 674,
1367, 953, 603, 3619, 2006, 1993, 2006, 1986, 1962, 1965,
1965, 1929, 538, 1922, 1905, 1906, 328, 431, 21, 556,
920, 592, 1409, 1444, 994, 1944, 1942, 1874, 1872, 1477,
684, 1034, 1067, 1077, 686, 691, 756, 1000, 767, 1519,
0, 1102, 1530, 1111, 961, 1571, 1146, 1854, 1831, 663,
526, 1809, 1816, 790, 791, 655, 1823, 1742, 239, 580,
640, 721, 1612, 1646, 1680, 1774, 1765, 1757, 1185, 1715,
1193, 1042, 1755, 1220, 1228, 1766, 1255, 1265, 1290, 770,
985, 1025, 1298, 1298, 1337, 1797, 0, 1348, 1808, 1384,
1154, 1849, 1419, 1697, 1690, 847, 3619, 1689, 1682, 1693,
1632, 959, 3619, 1000, 3619, 652, 1618, 1595, 539, 1044,
576, 740, 1427, 670, 1890, 1924, 1462, 1634, 1633, 1392,
808, 1468, 1058, 1959, 0, 764, 1970, 1495, 1236, 2010,
1549, 1590, 1622, 1632, 1137, 1265, 1656, 1658, 1503, 1660,
2052, 0, 1690, 2063, 1669, 1435, 1699, 1534, 1531, 1534,
1530, 1100, 1101, 1509, 1447, 1439, 816, 572, 1849, 1428,
2105, 2140, 2175, 2210, 1450, 1734, 1774, 1827, 1368, 1211,
1246, 1866, 1281, 2245, 0, 798, 2256, 1898, 1452, 2296,
1908, 1932, 1346, 1942, 1989, 2029, 1540, 1581, 2073, 819,
853, 2338, 0, 896, 1152, 1284, 1248, 1113, 1193, 3619,
1351, 3619, 1089, 1552, 2087, 813, 872, 671, 1322, 2087,
1090, 2348, 2383, 2418, 2453, 1785, 2035, 1123, 2120, 2150,
2130, 1083, 1040, 1410, 1623, 2158, 1669, 2488, 0, 937,
2499, 2183, 1598, 2539, 2193, 2219, 2228, 2274, 1725, 1026,
1121, 1369, 3619, 1392, 958, 877, 811, 836, 1594, 742,
1455, 1675, 2383, 1677, 2418, 2581, 2616, 2651, 2282, 1875,
2315, 2358, 2396, 760, 715, 1828, 1943, 2429, 1971, 2686,
0, 1171, 2697, 2437, 1742, 2463, 717, 2472, 2517, 1998,
649, 1596, 3619, 1740, 619, 3619, 559, 3619, 1288, 2525,
1311, 2739, 2774, 2558, 2564, 530, 2591, 2601, 2626, 451,
437, 2087, 371, 363, 2634, 0, 1301, 1780, 3619, 1832,
2097, 2809, 2844, 2879, 2659, 2667, 2675, 326, 0, 305,
1833, 3619, 200, 2715, 1664, 2914, 2949, 2725, 3619, 2748,
2758, 1916, 3619, 175, 3619, 2785, 2793, 2826, 127, 2859,
2835, 3619, 2997, 3011, 3025, 3039, 3053, 3067, 3081, 3095,
3109, 3123, 3129, 3143, 3157, 1360, 3171, 3185, 3199, 3213,
3227, 3241, 3255, 3269, 3275, 3282, 3296, 3310, 3316, 3323,
3329, 3335, 3341, 3348, 3354, 3360, 3366, 3373, 3381, 3387,
3393, 3399, 3406, 3414, 3420, 3426, 3433, 3441, 3447, 3455,
3462, 3470, 3476, 3484, 3491, 3499, 3513, 3527, 3533, 3541,
3548, 3562, 3568, 3576, 3582, 3590, 1881, 3604
} ;
static yyconst short int yy_def[659] =
{ 0,
592, 1, 1, 1, 593, 593, 594, 594, 595, 595,
596, 596, 592, 597, 592, 592, 592, 598, 599, 600,
592, 592, 601, 592, 602, 597, 26, 26, 603, 592,
592, 592, 32, 32, 34, 34, 34, 34, 597, 26,
597, 592, 599, 32, 32, 34, 34, 34, 592, 592,
604, 597, 605, 592, 605, 592, 605, 592, 599, 592,
606, 607, 592, 607, 592, 607, 592, 608, 609, 609,
609, 592, 592, 597, 597, 592, 592, 598, 610, 598,
611, 592, 612, 592, 600, 613, 600, 601, 601, 602,
614, 597, 597, 26, 603, 94, 94, 94, 94, 615,
616, 32, 34, 34, 34, 34, 34, 34, 597, 592,
597, 592, 592, 592, 592, 592, 592, 611, 597, 94,
597, 597, 597, 592, 592, 604, 617, 597, 597, 605,
605, 592, 592, 592, 612, 592, 606, 607, 607, 592,
592, 607, 607, 609, 592, 609, 609, 592, 592, 597,
592, 611, 618, 613, 613, 592, 597, 597, 597, 94,
160, 619, 592, 620, 592, 32, 34, 34, 34, 34,
34, 34, 34, 34, 597, 592, 592, 592, 592, 592,
611, 597, 160, 597, 597, 597, 592, 597, 592, 618,
597, 597, 597, 597, 597, 597, 621, 622, 622, 199,
623, 622, 624, 165, 592, 205, 205, 592, 205, 34,
34, 34, 34, 34, 34, 34, 34, 34, 597, 592,
592, 592, 592, 592, 611, 597, 597, 597, 597, 597,
597, 597, 592, 625, 625, 235, 625, 626, 627, 628,
592, 629, 208, 629, 629, 245, 629, 592, 248, 248,
592, 248, 592, 592, 34, 34, 34, 34, 34, 34,
34, 34, 597, 592, 592, 592, 611, 597, 597, 597,
597, 597, 597, 597, 597, 630, 630, 631, 632, 592,
592, 592, 592, 592, 633, 633, 634, 251, 634, 634,
290, 634, 592, 293, 293, 592, 293, 34, 34, 34,
34, 34, 34, 34, 34, 597, 592, 592, 611, 597,
597, 597, 597, 597, 597, 592, 635, 636, 280, 592,
320, 320, 592, 320, 592, 592, 592, 592, 592, 592,
637, 637, 638, 296, 638, 638, 336, 638, 592, 339,
339, 592, 339, 34, 34, 592, 592, 34, 34, 34,
34, 592, 592, 592, 592, 597, 592, 592, 611, 597,
597, 597, 597, 597, 597, 597, 597, 592, 639, 592,
640, 323, 640, 640, 374, 374, 592, 377, 377, 592,
377, 592, 592, 592, 592, 641, 641, 642, 342, 642,
642, 391, 642, 592, 394, 394, 394, 34, 34, 34,
34, 34, 34, 597, 592, 592, 611, 597, 597, 597,
597, 597, 597, 597, 592, 592, 592, 592, 643, 643,
644, 380, 644, 644, 424, 424, 592, 427, 427, 592,
427, 592, 592, 592, 592, 592, 592, 645, 645, 646,
646, 646, 442, 442, 34, 34, 34, 34, 592, 592,
592, 592, 592, 592, 611, 611, 597, 647, 648, 597,
597, 597, 597, 597, 597, 597, 592, 592, 592, 592,
592, 592, 649, 649, 650, 430, 650, 650, 478, 478,
592, 481, 481, 592, 481, 592, 592, 592, 592, 651,
651, 592, 592, 34, 34, 34, 592, 652, 611, 597,
647, 647, 647, 648, 648, 597, 597, 597, 597, 597,
592, 592, 592, 592, 653, 653, 654, 484, 654, 654,
520, 520, 592, 523, 523, 523, 592, 592, 592, 592,
592, 592, 592, 34, 34, 592, 652, 592, 611, 597,
597, 597, 597, 597, 592, 592, 592, 592, 592, 592,
655, 655, 656, 656, 656, 555, 555, 592, 592, 34,
611, 597, 597, 597, 592, 592, 592, 592, 657, 657,
592, 592, 658, 597, 597, 597, 597, 597, 592, 592,
592, 592, 592, 658, 592, 597, 597, 597, 597, 597,
597, 0, 592, 592, 592, 592, 592, 592, 592, 592,
592, 592, 592, 592, 592, 592, 592, 592, 592, 592,
592, 592, 592, 592, 592, 592, 592, 592, 592, 592,
592, 592, 592, 592, 592, 592, 592, 592, 592, 592,
592, 592, 592, 592, 592, 592, 592, 592, 592, 592,
592, 592, 592, 592, 592, 592, 592, 592, 592, 592,
592, 592, 592, 592, 592, 592, 592, 592
} ;
static yyconst short int yy_nxt[3685] =
{ 0,
14, 15, 16, 17, 18, 19, 20, 21, 22, 14,
23, 24, 14, 14, 25, 26, 27, 28, 26, 26,
26, 26, 26, 29, 30, 31, 14, 32, 32, 32,
32, 33, 34, 34, 34, 34, 35, 36, 34, 37,
34, 38, 34, 34, 34, 34, 34, 39, 14, 40,
40, 40, 40, 40, 40, 14, 14, 14, 14, 14,
14, 14, 41, 14, 14, 42, 49, 49, 75, 43,
50, 50, 146, 15, 54, 55, 75, 56, 311, 51,
51, 86, 186, 56, 70, 16, 71, 72, 15, 54,
55, 75, 56, 44, 45, 56, 57, 46, 56, 70,
16, 71, 72, 140, 47, 87, 147, 48, 111, 91,
56, 57, 75, 91, 91, 136, 110, 141, 145, 58,
98, 98, 98, 98, 98, 99, 139, 52, 52, 129,
73, 91, 143, 110, 58, 15, 16, 17, 163, 59,
139, 148, 149, 163, 144, 73, 75, 165, 592, 82,
145, 175, 204, 92, 97, 97, 97, 97, 97, 97,
97, 97, 74, 75, 96, 96, 96, 96, 96, 96,
96, 96, 87, 75, 75, 182, 112, 585, 188, 136,
110, 60, 61, 61, 61, 61, 61, 61, 61, 61,
61, 61, 61, 61, 61, 61, 61, 61, 61, 15,
16, 17, 585, 59, 113, 114, 181, 74, 115, 74,
75, 74, 228, 74, 74, 116, 125, 74, 117, 84,
84, 84, 84, 84, 84, 84, 84, 74, 75, 74,
74, 74, 84, 84, 84, 84, 84, 84, 84, 84,
185, 82, 136, 110, 146, 60, 61, 61, 61, 61,
61, 61, 61, 61, 61, 61, 61, 61, 61, 61,
61, 61, 61, 15, 16, 17, 63, 59, 183, 136,
110, 127, 64, 65, 66, 127, 127, 132, 110, 133,
75, 134, 75, 147, 169, 133, 67, 134, 75, 170,
145, 359, 171, 127, 172, 184, 148, 149, 226, 134,
134, 84, 84, 84, 84, 84, 84, 84, 84, 68,
15, 16, 17, 63, 59, 128, 136, 110, 370, 64,
65, 66, 85, 134, 85, 82, 85, 145, 85, 85,
82, 91, 85, 67, 75, 91, 91, 157, 158, 159,
157, 157, 157, 157, 157, 85, 85, 219, 88, 518,
88, 75, 88, 91, 88, 88, 68, 79, 88, 79,
74, 79, 139, 79, 79, 226, 253, 79, 75, 75,
88, 88, 88, 226, 225, 92, 592, 163, 75, 79,
79, 79, 191, 90, 370, 74, 204, 90, 254, 74,
74, 229, 309, 90, 161, 161, 161, 161, 161, 161,
161, 161, 95, 80, 82, 90, 90, 74, 161, 161,
161, 161, 161, 161, 83, 82, 75, 84, 84, 84,
84, 84, 84, 84, 84, 93, 75, 94, 94, 94,
94, 94, 94, 94, 94, 95, 237, 237, 237, 96,
96, 96, 96, 96, 161, 161, 161, 161, 161, 161,
161, 161, 246, 246, 246, 246, 246, 247, 310, 75,
518, 96, 96, 96, 96, 96, 96, 74, 255, 75,
267, 74, 256, 74, 476, 263, 74, 74, 75, 74,
74, 74, 102, 102, 102, 102, 102, 102, 102, 102,
95, 75, 268, 74, 102, 102, 102, 102, 102, 103,
103, 103, 103, 103, 103, 103, 103, 103, 103, 103,
103, 103, 103, 103, 75, 103, 96, 96, 96, 96,
96, 96, 74, 74, 74, 74, 74, 74, 74, 74,
74, 74, 103, 103, 103, 103, 103, 103, 103, 103,
592, 82, 75, 545, 103, 103, 103, 103, 103, 84,
84, 84, 84, 84, 84, 84, 84, 226, 127, 112,
348, 538, 127, 127, 349, 95, 74, 74, 74, 74,
74, 74, 109, 110, 74, 75, 74, 163, 74, 74,
127, 270, 74, 241, 163, 75, 204, 113, 114, 75,
306, 115, 407, 243, 74, 74, 74, 82, 116, 592,
163, 117, 128, 75, 253, 271, 269, 83, 312, 243,
84, 84, 84, 84, 84, 84, 84, 84, 126, 75,
74, 457, 126, 75, 74, 74, 254, 75, 126, 592,
592, 592, 592, 592, 592, 592, 592, 360, 409, 75,
126, 126, 74, 209, 209, 209, 209, 209, 209, 209,
209, 118, 82, 230, 231, 232, 230, 230, 230, 230,
230, 560, 135, 163, 346, 592, 592, 592, 592, 592,
592, 592, 592, 79, 502, 79, 150, 79, 138, 79,
79, 138, 138, 79, 363, 75, 347, 75, 138, 291,
291, 291, 291, 291, 292, 79, 79, 79, 163, 75,
163, 138, 75, 361, 241, 163, 154, 204, 154, 243,
154, 356, 154, 154, 243, 404, 154, 75, 503, 80,
160, 160, 160, 160, 160, 160, 160, 160, 154, 154,
154, 163, 160, 160, 160, 160, 160, 191, 476, 192,
192, 192, 192, 192, 192, 235, 235, 236, 237, 237,
237, 237, 237, 201, 160, 160, 160, 160, 160, 160,
166, 166, 166, 166, 166, 166, 166, 166, 75, 241,
163, 75, 166, 166, 166, 166, 166, 362, 91, 288,
592, 163, 91, 422, 163, 419, 419, 75, 91, 75,
288, 352, 354, 243, 160, 160, 160, 160, 160, 160,
91, 91, 191, 410, 192, 192, 192, 192, 192, 192,
192, 192, 127, 353, 355, 82, 127, 455, 82, 473,
473, 370, 127, 245, 245, 245, 245, 245, 245, 245,
245, 372, 241, 163, 127, 127, 75, 191, 538, 193,
193, 193, 193, 193, 193, 193, 193, 592, 346, 244,
244, 244, 244, 244, 244, 244, 244, 277, 277, 277,
277, 277, 277, 277, 277, 201, 592, 163, 456, 499,
347, 75, 191, 536, 194, 194, 194, 194, 194, 195,
192, 192, 282, 283, 284, 282, 282, 282, 282, 282,
252, 252, 252, 252, 252, 252, 252, 252, 241, 163,
286, 286, 286, 286, 286, 286, 75, 74, 243, 196,
196, 196, 196, 196, 196, 196, 196, 490, 490, 75,
535, 196, 196, 196, 196, 196, 290, 290, 290, 290,
290, 290, 290, 290, 500, 313, 314, 315, 313, 313,
313, 313, 313, 196, 196, 196, 196, 196, 196, 198,
199, 200, 200, 200, 200, 200, 200, 201, 515, 515,
352, 202, 202, 202, 202, 202, 592, 75, 289, 289,
289, 289, 289, 289, 289, 289, 337, 337, 337, 337,
337, 338, 353, 202, 202, 202, 202, 202, 202, 163,
205, 206, 207, 205, 205, 205, 205, 205, 208, 163,
534, 354, 209, 209, 209, 209, 209, 271, 288, 272,
272, 272, 272, 272, 272, 297, 297, 297, 297, 297,
297, 297, 297, 355, 209, 209, 209, 209, 209, 209,
210, 210, 210, 210, 210, 210, 210, 210, 241, 163,
163, 75, 210, 210, 210, 210, 210, 325, 288, 326,
326, 326, 326, 326, 326, 326, 326, 375, 375, 375,
375, 375, 376, 422, 196, 196, 196, 196, 196, 196,
191, 592, 192, 192, 192, 192, 192, 192, 192, 192,
325, 372, 327, 327, 327, 327, 327, 327, 327, 327,
325, 75, 328, 328, 328, 328, 328, 329, 326, 326,
408, 449, 451, 460, 75, 191, 372, 192, 192, 192,
192, 192, 192, 192, 192, 241, 163, 332, 332, 332,
332, 332, 332, 450, 452, 288, 336, 336, 336, 336,
336, 336, 336, 336, 241, 163, 467, 75, 497, 75,
241, 163, 242, 242, 242, 242, 242, 242, 242, 242,
243, 163, 496, 492, 244, 244, 244, 244, 244, 592,
288, 335, 335, 335, 335, 335, 335, 335, 335, 392,
392, 392, 392, 392, 393, 493, 244, 244, 244, 244,
244, 244, 163, 248, 249, 250, 248, 248, 248, 248,
248, 251, 551, 551, 449, 252, 252, 252, 252, 252,
324, 324, 324, 324, 324, 324, 324, 324, 374, 374,
374, 374, 374, 374, 374, 374, 450, 252, 252, 252,
252, 252, 252, 271, 370, 272, 272, 272, 272, 272,
272, 272, 272, 592, 372, 373, 373, 373, 373, 373,
373, 373, 373, 382, 383, 384, 382, 382, 382, 382,
382, 425, 425, 425, 425, 425, 426, 75, 271, 370,
273, 273, 273, 273, 273, 273, 273, 273, 325, 422,
326, 326, 326, 326, 326, 326, 326, 326, 325, 163,
326, 326, 326, 326, 326, 326, 326, 326, 334, 561,
82, 495, 75, 271, 592, 274, 274, 274, 274, 274,
275, 272, 272, 325, 422, 326, 326, 326, 326, 326,
326, 241, 163, 343, 343, 343, 343, 343, 343, 343,
343, 334, 569, 569, 540, 502, 494, 75, 241, 163,
286, 286, 286, 286, 286, 286, 286, 286, 243, 241,
163, 287, 287, 287, 287, 287, 287, 287, 287, 288,
592, 163, 451, 289, 289, 289, 289, 289, 75, 432,
334, 241, 163, 387, 387, 387, 387, 387, 387, 505,
492, 334, 137, 137, 452, 289, 289, 289, 289, 289,
289, 163, 293, 294, 295, 293, 293, 293, 293, 293,
296, 372, 493, 532, 297, 297, 297, 297, 297, 391,
391, 391, 391, 391, 391, 391, 391, 416, 417, 418,
416, 416, 416, 416, 416, 533, 297, 297, 297, 297,
297, 297, 271, 370, 272, 272, 272, 272, 272, 272,
272, 272, 592, 422, 390, 390, 390, 390, 390, 390,
390, 390, 411, 412, 413, 414, 411, 411, 411, 411,
443, 443, 443, 443, 443, 444, 75, 271, 592, 272,
272, 272, 272, 272, 272, 272, 272, 479, 479, 479,
479, 479, 480, 319, 75, 75, 363, 364, 364, 364,
364, 364, 364, 381, 381, 381, 381, 381, 381, 381,
381, 75, 320, 321, 322, 320, 320, 320, 320, 320,
323, 454, 503, 453, 324, 324, 324, 324, 324, 75,
424, 424, 424, 424, 424, 424, 424, 424, 397, 397,
397, 397, 397, 397, 397, 397, 324, 324, 324, 324,
324, 324, 241, 163, 332, 332, 332, 332, 332, 332,
332, 332, 288, 241, 163, 333, 333, 333, 333, 333,
333, 333, 333, 334, 163, 458, 75, 335, 335, 335,
335, 335, 592, 334, 423, 423, 423, 423, 423, 423,
423, 423, 448, 447, 446, 458, 445, 458, 458, 335,
335, 335, 335, 335, 335, 163, 339, 340, 341, 339,
339, 339, 339, 339, 342, 163, 82, 532, 343, 343,
343, 343, 343, 432, 389, 433, 433, 433, 433, 433,
433, 433, 433, 521, 521, 521, 521, 521, 522, 533,
343, 343, 343, 343, 343, 343, 363, 364, 364, 364,
364, 364, 364, 364, 364, 432, 370, 434, 434, 434,
434, 434, 434, 434, 434, 432, 476, 435, 435, 435,
435, 435, 436, 433, 433, 539, 319, 239, 406, 75,
363, 365, 365, 365, 365, 365, 365, 365, 365, 241,
163, 241, 163, 592, 163, 405, 403, 574, 592, 334,
592, 389, 592, 389, 442, 442, 442, 442, 442, 442,
442, 442, 476, 75, 363, 366, 366, 366, 366, 366,
367, 364, 364, 241, 163, 439, 439, 439, 439, 439,
439, 75, 592, 389, 441, 441, 441, 441, 441, 441,
441, 441, 503, 402, 505, 401, 400, 75, 370, 399,
371, 371, 371, 371, 371, 371, 371, 371, 372, 163,
398, 558, 373, 373, 373, 373, 373, 467, 389, 468,
468, 468, 468, 468, 468, 468, 468, 556, 556, 556,
556, 556, 557, 559, 373, 373, 373, 373, 373, 373,
377, 378, 379, 377, 377, 377, 377, 377, 380, 325,
319, 558, 381, 381, 381, 381, 381, 467, 239, 469,
469, 469, 469, 469, 469, 469, 469, 201, 460, 358,
510, 510, 510, 559, 381, 381, 381, 381, 381, 381,
241, 163, 387, 387, 387, 387, 387, 387, 387, 387,
334, 241, 163, 388, 388, 388, 388, 388, 388, 388,
388, 389, 75, 571, 571, 390, 390, 390, 390, 390,
467, 370, 470, 470, 470, 470, 470, 471, 468, 468,
357, 476, 458, 351, 350, 572, 572, 390, 390, 390,
390, 390, 390, 163, 394, 395, 396, 394, 394, 394,
394, 394, 458, 345, 458, 459, 397, 397, 397, 397,
397, 431, 431, 431, 431, 431, 431, 431, 431, 583,
510, 510, 510, 344, 583, 319, 75, 239, 397, 397,
397, 397, 397, 397, 363, 364, 364, 364, 364, 364,
364, 364, 364, 478, 478, 478, 478, 478, 478, 478,
478, 592, 75, 477, 477, 477, 477, 477, 477, 477,
477, 579, 579, 579, 579, 579, 579, 75, 363, 364,
364, 364, 364, 364, 364, 364, 364, 486, 487, 488,
486, 486, 486, 486, 486, 432, 370, 433, 433, 433,
433, 433, 433, 433, 433, 201, 518, 201, 264, 308,
307, 75, 370, 305, 420, 420, 420, 420, 420, 420,
420, 420, 372, 370, 592, 421, 421, 421, 421, 421,
421, 421, 421, 422, 518, 304, 303, 423, 423, 423,
423, 423, 432, 302, 433, 433, 433, 433, 433, 433,
433, 433, 163, 527, 527, 527, 527, 527, 527, 423,
423, 423, 423, 423, 423, 427, 428, 429, 427, 427,
427, 427, 427, 430, 301, 300, 299, 431, 431, 431,
431, 431, 432, 298, 433, 433, 433, 433, 433, 433,
511, 512, 513, 511, 511, 511, 511, 511, 280, 431,
431, 431, 431, 431, 431, 241, 163, 439, 439, 439,
439, 439, 439, 439, 439, 389, 241, 163, 440, 440,
440, 440, 440, 440, 440, 440, 241, 163, 455, 82,
441, 441, 441, 441, 441, 239, 389, 201, 561, 82,
370, 498, 506, 507, 508, 506, 506, 506, 506, 506,
518, 573, 441, 441, 441, 441, 441, 441, 460, 276,
461, 461, 461, 461, 461, 461, 461, 461, 201, 101,
264, 266, 264, 467, 75, 468, 468, 468, 468, 468,
468, 468, 468, 467, 265, 468, 468, 468, 468, 468,
468, 264, 75, 460, 262, 462, 462, 462, 462, 462,
462, 462, 462, 467, 261, 468, 468, 468, 468, 468,
468, 468, 468, 485, 485, 485, 485, 485, 485, 485,
485, 260, 259, 258, 257, 95, 201, 75, 460, 239,
463, 463, 463, 463, 463, 464, 465, 465, 520, 520,
520, 520, 520, 520, 520, 520, 592, 201, 519, 519,
519, 519, 519, 519, 519, 519, 101, 82, 189, 227,
224, 223, 75, 460, 222, 466, 466, 466, 461, 461,
461, 461, 461, 163, 527, 527, 527, 527, 527, 527,
527, 527, 163, 528, 528, 528, 528, 528, 528, 528,
528, 221, 220, 218, 217, 216, 215, 75, 370, 214,
474, 474, 474, 474, 474, 474, 474, 474, 422, 370,
213, 475, 475, 475, 475, 475, 475, 475, 475, 476,
212, 211, 101, 477, 477, 477, 477, 477, 163, 529,
529, 529, 529, 529, 530, 527, 527, 509, 509, 509,
509, 509, 509, 509, 509, 477, 477, 477, 477, 477,
477, 481, 482, 483, 481, 481, 481, 481, 481, 484,
93, 155, 82, 485, 485, 485, 485, 485, 545, 75,
546, 546, 546, 546, 546, 546, 546, 546, 82, 75,
189, 144, 145, 139, 139, 485, 485, 485, 485, 485,
485, 241, 163, 491, 491, 491, 491, 491, 491, 491,
491, 460, 131, 465, 465, 465, 465, 465, 465, 465,
465, 545, 187, 547, 547, 547, 547, 547, 547, 547,
547, 124, 180, 179, 501, 178, 177, 176, 501, 174,
501, 501, 173, 168, 501, 75, 460, 167, 465, 465,
465, 465, 465, 465, 465, 465, 501, 501, 501, 545,
101, 548, 548, 548, 548, 548, 549, 546, 546, 504,
74, 101, 156, 504, 89, 504, 504, 155, 82, 504,
75, 460, 150, 465, 465, 465, 465, 465, 465, 509,
509, 504, 504, 504, 526, 526, 526, 526, 526, 526,
526, 526, 555, 555, 555, 555, 555, 555, 555, 555,
151, 77, 76, 75, 145, 75, 460, 139, 509, 509,
509, 509, 509, 509, 509, 509, 592, 131, 554, 554,
554, 554, 554, 554, 554, 554, 163, 527, 527, 527,
527, 527, 527, 527, 527, 124, 123, 122, 121, 120,
75, 370, 119, 516, 516, 516, 516, 516, 516, 516,
516, 476, 370, 108, 517, 517, 517, 517, 517, 517,
517, 517, 518, 107, 106, 105, 519, 519, 519, 519,
519, 163, 527, 527, 527, 527, 527, 527, 527, 527,
562, 563, 564, 562, 562, 562, 562, 562, 519, 519,
519, 519, 519, 519, 523, 524, 525, 523, 523, 523,
523, 523, 104, 101, 89, 77, 526, 526, 526, 526,
526, 540, 75, 541, 541, 541, 541, 541, 541, 565,
566, 567, 565, 565, 565, 565, 565, 76, 526, 526,
526, 526, 526, 526, 540, 75, 541, 541, 541, 541,
541, 541, 541, 541, 545, 75, 546, 546, 546, 546,
546, 546, 546, 546, 545, 592, 546, 546, 546, 546,
546, 546, 546, 546, 592, 592, 592, 592, 75, 540,
592, 542, 542, 542, 542, 542, 542, 542, 542, 545,
592, 546, 546, 546, 546, 546, 546, 370, 592, 570,
570, 570, 570, 570, 570, 570, 570, 592, 592, 592,
592, 592, 592, 75, 540, 592, 543, 543, 543, 543,
543, 544, 541, 541, 579, 579, 579, 579, 579, 579,
579, 579, 580, 580, 580, 580, 580, 580, 580, 580,
581, 581, 581, 581, 581, 582, 579, 579, 75, 370,
592, 552, 552, 552, 552, 552, 552, 552, 552, 518,
370, 592, 553, 553, 553, 553, 553, 553, 553, 553,
592, 592, 592, 592, 554, 554, 554, 554, 554, 592,
586, 587, 588, 586, 586, 586, 586, 586, 574, 592,
575, 575, 575, 575, 575, 575, 554, 554, 554, 554,
554, 554, 540, 592, 541, 541, 541, 541, 541, 541,
541, 541, 75, 579, 579, 579, 579, 579, 579, 579,
579, 592, 75, 579, 579, 579, 579, 579, 579, 579,
579, 592, 592, 592, 592, 592, 75, 540, 592, 541,
541, 541, 541, 541, 541, 541, 541, 592, 592, 592,
589, 589, 589, 589, 589, 589, 589, 589, 586, 586,
586, 586, 586, 586, 586, 586, 592, 592, 592, 592,
592, 75, 574, 592, 575, 575, 575, 575, 575, 575,
575, 575, 75, 592, 592, 592, 592, 592, 592, 592,
75, 590, 590, 590, 590, 590, 591, 589, 589, 592,
589, 589, 589, 589, 589, 589, 75, 574, 592, 576,
576, 576, 576, 576, 576, 576, 576, 592, 592, 592,
592, 592, 592, 75, 589, 589, 589, 589, 589, 589,
589, 589, 75, 592, 592, 592, 592, 592, 592, 592,
592, 75, 574, 592, 577, 577, 577, 577, 577, 578,
575, 575, 592, 592, 592, 592, 75, 592, 592, 592,
592, 592, 592, 592, 592, 592, 592, 592, 592, 592,
592, 592, 592, 592, 592, 592, 75, 574, 592, 575,
575, 575, 575, 575, 575, 575, 575, 592, 592, 592,
592, 592, 592, 592, 592, 592, 592, 592, 592, 592,
592, 592, 592, 592, 592, 592, 592, 592, 592, 592,
592, 75, 574, 592, 575, 575, 575, 575, 575, 575,
575, 575, 592, 592, 592, 592, 592, 592, 592, 592,
592, 592, 592, 592, 592, 592, 592, 592, 592, 592,
592, 592, 592, 592, 592, 592, 75, 53, 53, 53,
53, 53, 53, 53, 53, 53, 53, 53, 53, 53,
53, 31, 31, 31, 31, 31, 31, 31, 31, 31,
31, 31, 31, 31, 31, 62, 62, 62, 62, 62,
62, 62, 62, 62, 62, 62, 62, 62, 62, 69,
69, 69, 69, 69, 69, 69, 69, 69, 69, 69,
69, 69, 69, 74, 592, 592, 592, 74, 592, 74,
74, 74, 592, 592, 74, 74, 74, 78, 78, 592,
78, 78, 78, 78, 78, 78, 78, 78, 78, 78,
78, 81, 81, 81, 81, 81, 81, 81, 81, 81,
81, 81, 81, 81, 81, 85, 592, 592, 592, 85,
592, 85, 85, 85, 85, 592, 85, 85, 85, 88,
592, 592, 592, 88, 592, 88, 88, 88, 592, 592,
88, 88, 88, 90, 592, 592, 90, 90, 90, 90,
90, 90, 592, 592, 90, 90, 90, 100, 100, 592,
592, 592, 100, 126, 592, 592, 126, 126, 126, 126,
126, 126, 592, 592, 126, 126, 126, 130, 592, 592,
130, 130, 130, 130, 130, 130, 592, 130, 592, 130,
130, 138, 592, 592, 138, 592, 138, 138, 138, 138,
138, 592, 138, 138, 138, 142, 142, 142, 142, 142,
142, 142, 142, 142, 142, 142, 142, 142, 142, 144,
144, 592, 144, 592, 144, 144, 144, 144, 144, 144,
144, 144, 144, 79, 79, 592, 79, 79, 79, 79,
79, 79, 79, 79, 79, 79, 79, 152, 152, 152,
152, 152, 152, 152, 152, 152, 152, 152, 152, 152,
152, 153, 153, 592, 153, 153, 153, 153, 153, 153,
153, 153, 153, 153, 153, 154, 592, 592, 592, 154,
592, 154, 154, 154, 592, 592, 154, 154, 154, 91,
592, 592, 91, 91, 91, 91, 91, 91, 592, 592,
91, 91, 91, 162, 162, 592, 592, 592, 162, 164,
164, 164, 592, 592, 592, 164, 127, 592, 592, 127,
127, 127, 127, 127, 127, 592, 592, 127, 127, 127,
190, 190, 190, 190, 190, 190, 190, 190, 190, 190,
190, 190, 190, 190, 197, 197, 592, 592, 592, 197,
203, 203, 203, 592, 592, 592, 203, 233, 233, 592,
592, 592, 233, 234, 234, 592, 592, 592, 234, 238,
238, 592, 592, 592, 238, 240, 240, 240, 592, 592,
592, 240, 276, 276, 592, 592, 592, 276, 278, 278,
592, 592, 592, 278, 279, 279, 592, 592, 592, 279,
281, 281, 281, 592, 592, 592, 281, 285, 285, 285,
285, 592, 592, 592, 285, 316, 316, 592, 592, 592,
316, 317, 317, 592, 592, 592, 317, 318, 318, 592,
592, 592, 318, 330, 330, 330, 592, 592, 592, 330,
331, 331, 331, 331, 592, 592, 592, 331, 368, 368,
592, 592, 592, 368, 369, 369, 592, 592, 592, 369,
385, 385, 385, 592, 592, 592, 385, 386, 386, 386,
386, 592, 592, 592, 386, 415, 415, 592, 592, 592,
415, 419, 592, 419, 419, 592, 592, 592, 419, 437,
437, 437, 592, 592, 592, 437, 438, 438, 438, 438,
592, 592, 592, 438, 472, 472, 592, 592, 592, 472,
473, 592, 473, 473, 592, 592, 592, 473, 489, 489,
489, 592, 592, 592, 489, 490, 490, 490, 592, 592,
592, 592, 490, 501, 592, 592, 501, 501, 592, 501,
501, 501, 592, 592, 501, 501, 501, 504, 592, 592,
504, 504, 592, 504, 504, 504, 592, 592, 504, 504,
504, 514, 514, 592, 592, 592, 514, 515, 592, 515,
515, 592, 592, 592, 515, 531, 531, 592, 592, 592,
592, 531, 537, 537, 537, 537, 537, 537, 537, 537,
537, 537, 537, 537, 537, 537, 550, 550, 592, 592,
592, 550, 551, 592, 551, 551, 592, 592, 592, 551,
568, 568, 592, 592, 592, 568, 569, 592, 569, 592,
592, 592, 592, 569, 584, 584, 584, 584, 584, 584,
584, 584, 584, 584, 584, 584, 584, 584, 13, 592,
592, 592, 592, 592, 592, 592, 592, 592, 592, 592,
592, 592, 592, 592, 592, 592, 592, 592, 592, 592,
592, 592, 592, 592, 592, 592, 592, 592, 592, 592,
592, 592, 592, 592, 592, 592, 592, 592, 592, 592,
592, 592, 592, 592, 592, 592, 592, 592, 592, 592,
592, 592, 592, 592, 592, 592, 592, 592, 592, 592,
592, 592, 592, 592
} ;
static yyconst short int yy_chk[3685] =
{ 0,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 2, 3, 4, 269, 2,
3, 4, 70, 5, 5, 5, 123, 5, 269, 3,
4, 20, 123, 5, 11, 11, 11, 11, 6, 6,
6, 41, 6, 2, 2, 5, 5, 2, 6, 12,
12, 12, 12, 64, 2, 20, 71, 2, 41, 25,
6, 6, 52, 25, 25, 60, 60, 66, 70, 5,
28, 28, 28, 28, 28, 28, 64, 3, 4, 52,
11, 25, 68, 68, 6, 7, 7, 7, 101, 7,
66, 73, 73, 164, 73, 12, 111, 101, 85, 118,
71, 111, 164, 25, 27, 27, 27, 27, 27, 27,
27, 27, 40, 119, 40, 40, 40, 40, 40, 40,
40, 40, 85, 129, 589, 119, 42, 584, 129, 132,
132, 7, 7, 7, 7, 7, 7, 7, 7, 7,
7, 7, 7, 7, 7, 7, 7, 7, 7, 8,
8, 8, 573, 8, 42, 42, 118, 75, 42, 75,
185, 75, 185, 75, 75, 42, 50, 75, 42, 50,
50, 50, 50, 50, 50, 50, 50, 120, 122, 75,
75, 75, 83, 83, 83, 83, 83, 83, 83, 83,
122, 309, 109, 109, 146, 8, 8, 8, 8, 8,
8, 8, 8, 8, 8, 8, 8, 8, 8, 8,
8, 8, 8, 9, 9, 9, 9, 9, 120, 136,
136, 51, 9, 9, 9, 51, 51, 58, 58, 58,
121, 58, 184, 147, 106, 58, 9, 58, 109, 106,
146, 309, 106, 51, 106, 121, 148, 148, 184, 58,
58, 84, 84, 84, 84, 84, 84, 84, 84, 9,
10, 10, 10, 10, 10, 51, 143, 143, 570, 10,
10, 10, 87, 58, 87, 181, 87, 147, 87, 87,
267, 90, 87, 10, 175, 90, 90, 93, 93, 93,
93, 93, 93, 93, 93, 87, 87, 175, 89, 568,
89, 186, 89, 90, 89, 89, 10, 18, 89, 18,
18, 18, 143, 18, 18, 186, 211, 18, 182, 93,
89, 89, 89, 182, 181, 90, 554, 203, 188, 18,
18, 18, 192, 92, 553, 92, 203, 92, 211, 92,
92, 188, 267, 92, 97, 97, 97, 97, 97, 97,
97, 97, 196, 18, 19, 92, 92, 92, 99, 99,
99, 99, 99, 99, 19, 225, 192, 19, 19, 19,
19, 19, 19, 19, 19, 26, 196, 26, 26, 26,
26, 26, 26, 26, 26, 26, 200, 200, 200, 26,
26, 26, 26, 26, 98, 98, 98, 98, 98, 98,
98, 98, 207, 207, 207, 207, 207, 207, 268, 26,
551, 26, 26, 26, 26, 26, 26, 32, 212, 219,
225, 32, 212, 32, 550, 219, 32, 32, 268, 32,
32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
32, 226, 226, 32, 32, 32, 32, 32, 32, 32,
32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
32, 32, 34, 34, 34, 34, 34, 34, 34, 34,
34, 359, 228, 546, 34, 34, 34, 34, 34, 125,
125, 125, 125, 125, 125, 125, 125, 228, 126, 112,
301, 537, 126, 126, 301, 227, 34, 34, 34, 34,
34, 34, 39, 39, 39, 229, 39, 240, 39, 39,
126, 229, 39, 242, 242, 263, 240, 112, 112, 227,
263, 112, 359, 242, 39, 39, 39, 43, 112, 244,
244, 112, 126, 270, 253, 272, 227, 43, 270, 244,
43, 43, 43, 43, 43, 43, 43, 43, 128, 408,
128, 408, 128, 361, 128, 128, 253, 310, 128, 135,
135, 135, 135, 135, 135, 135, 135, 310, 361, 272,
128, 128, 128, 204, 204, 204, 204, 204, 204, 204,
204, 43, 59, 191, 191, 191, 191, 191, 191, 191,
191, 535, 59, 531, 300, 59, 59, 59, 59, 59,
59, 59, 59, 78, 458, 78, 78, 78, 139, 78,
78, 139, 139, 78, 364, 191, 300, 311, 139, 250,
250, 250, 250, 250, 250, 78, 78, 78, 281, 356,
285, 139, 306, 311, 286, 286, 155, 281, 155, 285,
155, 306, 155, 155, 286, 356, 155, 364, 458, 78,
94, 94, 94, 94, 94, 94, 94, 94, 155, 155,
155, 527, 94, 94, 94, 94, 94, 195, 515, 195,
195, 195, 195, 195, 195, 199, 199, 199, 199, 199,
199, 199, 199, 199, 94, 94, 94, 94, 94, 94,
102, 102, 102, 102, 102, 102, 102, 102, 312, 287,
287, 195, 102, 102, 102, 102, 102, 312, 156, 287,
289, 289, 156, 514, 330, 376, 376, 362, 156, 500,
289, 304, 305, 330, 102, 102, 102, 102, 102, 102,
156, 156, 157, 362, 157, 157, 157, 157, 157, 157,
157, 157, 187, 304, 305, 456, 187, 407, 407, 426,
426, 371, 187, 206, 206, 206, 206, 206, 206, 206,
206, 371, 440, 440, 187, 187, 157, 158, 498, 158,
158, 158, 158, 158, 158, 158, 158, 209, 346, 209,
209, 209, 209, 209, 209, 209, 209, 235, 235, 235,
235, 235, 235, 235, 235, 235, 441, 441, 407, 456,
346, 158, 159, 497, 159, 159, 159, 159, 159, 159,
159, 159, 241, 241, 241, 241, 241, 241, 241, 241,
243, 243, 243, 243, 243, 243, 243, 243, 247, 247,
247, 247, 247, 247, 247, 247, 159, 160, 247, 160,
160, 160, 160, 160, 160, 160, 160, 444, 444, 457,
496, 160, 160, 160, 160, 160, 249, 249, 249, 249,
249, 249, 249, 249, 457, 271, 271, 271, 271, 271,
271, 271, 271, 160, 160, 160, 160, 160, 160, 163,
163, 163, 163, 163, 163, 163, 163, 163, 480, 480,
352, 163, 163, 163, 163, 163, 252, 271, 252, 252,
252, 252, 252, 252, 252, 252, 295, 295, 295, 295,
295, 295, 352, 163, 163, 163, 163, 163, 163, 165,
165, 165, 165, 165, 165, 165, 165, 165, 165, 331,
495, 354, 165, 165, 165, 165, 165, 275, 331, 275,
275, 275, 275, 275, 275, 288, 288, 288, 288, 288,
288, 288, 288, 354, 165, 165, 165, 165, 165, 165,
166, 166, 166, 166, 166, 166, 166, 166, 332, 332,
490, 275, 166, 166, 166, 166, 166, 282, 332, 282,
282, 282, 282, 282, 282, 282, 282, 322, 322, 322,
322, 322, 322, 473, 166, 166, 166, 166, 166, 166,
193, 373, 193, 193, 193, 193, 193, 193, 193, 193,
283, 373, 283, 283, 283, 283, 283, 283, 283, 283,
284, 360, 284, 284, 284, 284, 284, 284, 284, 284,
360, 402, 403, 461, 193, 194, 472, 194, 194, 194,
194, 194, 194, 194, 194, 292, 292, 292, 292, 292,
292, 292, 292, 402, 403, 292, 294, 294, 294, 294,
294, 294, 294, 294, 491, 491, 468, 461, 453, 194,
205, 205, 205, 205, 205, 205, 205, 205, 205, 205,
205, 385, 448, 445, 205, 205, 205, 205, 205, 297,
385, 297, 297, 297, 297, 297, 297, 297, 297, 341,
341, 341, 341, 341, 341, 445, 205, 205, 205, 205,
205, 205, 208, 208, 208, 208, 208, 208, 208, 208,
208, 208, 522, 522, 449, 208, 208, 208, 208, 208,
319, 319, 319, 319, 319, 319, 319, 319, 321, 321,
321, 321, 321, 321, 321, 321, 449, 208, 208, 208,
208, 208, 208, 230, 420, 230, 230, 230, 230, 230,
230, 230, 230, 324, 420, 324, 324, 324, 324, 324,
324, 324, 324, 325, 325, 325, 325, 325, 325, 325,
325, 379, 379, 379, 379, 379, 379, 230, 231, 421,
231, 231, 231, 231, 231, 231, 231, 231, 327, 421,
327, 327, 327, 327, 327, 327, 327, 327, 328, 386,
328, 328, 328, 328, 328, 328, 328, 328, 386, 539,
539, 447, 231, 232, 423, 232, 232, 232, 232, 232,
232, 232, 232, 329, 423, 329, 329, 329, 329, 329,
329, 333, 333, 334, 334, 334, 334, 334, 334, 334,
334, 333, 557, 557, 541, 459, 446, 232, 245, 245,
245, 245, 245, 245, 245, 245, 245, 245, 245, 248,
248, 248, 248, 248, 248, 248, 248, 248, 248, 248,
335, 335, 451, 248, 248, 248, 248, 248, 541, 433,
335, 338, 338, 338, 338, 338, 338, 338, 338, 459,
492, 338, 606, 606, 451, 248, 248, 248, 248, 248,
248, 251, 251, 251, 251, 251, 251, 251, 251, 251,
251, 419, 492, 494, 251, 251, 251, 251, 251, 340,
340, 340, 340, 340, 340, 340, 340, 370, 370, 370,
370, 370, 370, 370, 370, 494, 251, 251, 251, 251,
251, 251, 273, 474, 273, 273, 273, 273, 273, 273,
273, 273, 343, 474, 343, 343, 343, 343, 343, 343,
343, 343, 363, 363, 363, 363, 363, 363, 363, 363,
396, 396, 396, 396, 396, 396, 273, 274, 501, 274,
274, 274, 274, 274, 274, 274, 274, 429, 429, 429,
429, 429, 429, 415, 363, 410, 367, 367, 367, 367,
367, 367, 367, 372, 372, 372, 372, 372, 372, 372,
372, 274, 280, 280, 280, 280, 280, 280, 280, 280,
280, 406, 501, 405, 280, 280, 280, 280, 280, 367,
378, 378, 378, 378, 378, 378, 378, 378, 389, 389,
389, 389, 389, 389, 389, 389, 280, 280, 280, 280,
280, 280, 290, 290, 290, 290, 290, 290, 290, 290,
290, 290, 290, 293, 293, 293, 293, 293, 293, 293,
293, 293, 293, 293, 437, 454, 404, 293, 293, 293,
293, 293, 381, 437, 381, 381, 381, 381, 381, 381,
381, 381, 401, 400, 399, 454, 398, 454, 454, 293,
293, 293, 293, 293, 293, 296, 296, 296, 296, 296,
296, 296, 296, 296, 296, 438, 499, 532, 296, 296,
296, 296, 296, 382, 438, 382, 382, 382, 382, 382,
382, 382, 382, 483, 483, 483, 483, 483, 483, 532,
296, 296, 296, 296, 296, 296, 313, 313, 313, 313,
313, 313, 313, 313, 313, 383, 475, 383, 383, 383,
383, 383, 383, 383, 383, 384, 475, 384, 384, 384,
384, 384, 384, 384, 384, 499, 369, 368, 358, 313,
314, 314, 314, 314, 314, 314, 314, 314, 314, 387,
387, 388, 388, 390, 390, 357, 351, 575, 502, 387,
504, 388, 477, 390, 395, 395, 395, 395, 395, 395,
395, 395, 477, 314, 315, 315, 315, 315, 315, 315,
315, 315, 315, 393, 393, 393, 393, 393, 393, 393,
393, 575, 397, 393, 397, 397, 397, 397, 397, 397,
397, 397, 502, 350, 504, 349, 348, 315, 320, 345,
320, 320, 320, 320, 320, 320, 320, 320, 320, 489,
344, 534, 320, 320, 320, 320, 320, 416, 489, 416,
416, 416, 416, 416, 416, 416, 416, 525, 525, 525,
525, 525, 525, 534, 320, 320, 320, 320, 320, 320,
323, 323, 323, 323, 323, 323, 323, 323, 323, 326,
318, 558, 323, 323, 323, 323, 323, 417, 317, 417,
417, 417, 417, 417, 417, 417, 417, 316, 466, 308,
466, 466, 466, 558, 323, 323, 323, 323, 323, 323,
336, 336, 336, 336, 336, 336, 336, 336, 336, 336,
336, 339, 339, 339, 339, 339, 339, 339, 339, 339,
339, 339, 466, 560, 571, 339, 339, 339, 339, 339,
418, 516, 418, 418, 418, 418, 418, 418, 418, 418,
307, 516, 409, 303, 302, 560, 571, 339, 339, 339,
339, 339, 339, 342, 342, 342, 342, 342, 342, 342,
342, 342, 409, 299, 409, 409, 342, 342, 342, 342,
342, 422, 422, 422, 422, 422, 422, 422, 422, 657,
510, 510, 510, 298, 657, 279, 409, 278, 342, 342,
342, 342, 342, 342, 365, 365, 365, 365, 365, 365,
365, 365, 365, 428, 428, 428, 428, 428, 428, 428,
428, 431, 510, 431, 431, 431, 431, 431, 431, 431,
431, 582, 582, 582, 582, 582, 582, 365, 366, 366,
366, 366, 366, 366, 366, 366, 366, 432, 432, 432,
432, 432, 432, 432, 432, 434, 517, 434, 434, 434,
434, 434, 434, 434, 434, 277, 517, 276, 266, 265,
264, 366, 374, 262, 374, 374, 374, 374, 374, 374,
374, 374, 374, 377, 519, 377, 377, 377, 377, 377,
377, 377, 377, 377, 519, 261, 260, 377, 377, 377,
377, 377, 435, 259, 435, 435, 435, 435, 435, 435,
435, 435, 530, 530, 530, 530, 530, 530, 530, 377,
377, 377, 377, 377, 377, 380, 380, 380, 380, 380,
380, 380, 380, 380, 258, 257, 256, 380, 380, 380,
380, 380, 436, 255, 436, 436, 436, 436, 436, 436,
467, 467, 467, 467, 467, 467, 467, 467, 239, 380,
380, 380, 380, 380, 380, 391, 391, 391, 391, 391,
391, 391, 391, 391, 391, 391, 394, 394, 394, 394,
394, 394, 394, 394, 394, 394, 439, 439, 455, 455,
394, 394, 394, 394, 394, 238, 439, 237, 561, 561,
552, 455, 460, 460, 460, 460, 460, 460, 460, 460,
552, 561, 394, 394, 394, 394, 394, 394, 411, 236,
411, 411, 411, 411, 411, 411, 411, 411, 234, 233,
224, 223, 222, 469, 460, 469, 469, 469, 469, 469,
469, 469, 469, 471, 221, 471, 471, 471, 471, 471,
471, 220, 411, 412, 218, 412, 412, 412, 412, 412,
412, 412, 412, 470, 217, 470, 470, 470, 470, 470,
470, 470, 470, 476, 476, 476, 476, 476, 476, 476,
476, 216, 215, 214, 213, 210, 202, 412, 413, 201,
413, 413, 413, 413, 413, 413, 413, 413, 482, 482,
482, 482, 482, 482, 482, 482, 485, 198, 485, 485,
485, 485, 485, 485, 485, 485, 197, 190, 189, 183,
180, 179, 413, 414, 178, 414, 414, 414, 414, 414,
414, 414, 414, 486, 486, 486, 486, 486, 486, 486,
486, 486, 487, 487, 487, 487, 487, 487, 487, 487,
487, 177, 176, 174, 173, 172, 171, 414, 424, 170,
424, 424, 424, 424, 424, 424, 424, 424, 424, 427,
169, 427, 427, 427, 427, 427, 427, 427, 427, 427,
168, 167, 162, 427, 427, 427, 427, 427, 488, 488,
488, 488, 488, 488, 488, 488, 488, 509, 509, 509,
509, 509, 509, 509, 509, 427, 427, 427, 427, 427,
427, 430, 430, 430, 430, 430, 430, 430, 430, 430,
161, 154, 153, 430, 430, 430, 430, 430, 511, 509,
511, 511, 511, 511, 511, 511, 511, 511, 152, 150,
149, 145, 144, 142, 138, 430, 430, 430, 430, 430,
430, 442, 442, 442, 442, 442, 442, 442, 442, 442,
442, 462, 131, 462, 462, 462, 462, 462, 462, 462,
462, 512, 127, 512, 512, 512, 512, 512, 512, 512,
512, 124, 117, 116, 503, 115, 114, 113, 503, 108,
503, 503, 107, 105, 503, 462, 463, 104, 463, 463,
463, 463, 463, 463, 463, 463, 503, 503, 503, 513,
100, 513, 513, 513, 513, 513, 513, 513, 513, 505,
96, 95, 91, 505, 88, 505, 505, 86, 81, 505,
463, 464, 80, 464, 464, 464, 464, 464, 464, 464,
464, 505, 505, 505, 518, 518, 518, 518, 518, 518,
518, 518, 524, 524, 524, 524, 524, 524, 524, 524,
79, 77, 76, 74, 69, 464, 465, 62, 465, 465,
465, 465, 465, 465, 465, 465, 526, 55, 526, 526,
526, 526, 526, 526, 526, 526, 528, 528, 528, 528,
528, 528, 528, 528, 528, 49, 48, 47, 46, 45,
465, 478, 44, 478, 478, 478, 478, 478, 478, 478,
478, 478, 481, 38, 481, 481, 481, 481, 481, 481,
481, 481, 481, 37, 36, 35, 481, 481, 481, 481,
481, 529, 529, 529, 529, 529, 529, 529, 529, 529,
540, 540, 540, 540, 540, 540, 540, 540, 481, 481,
481, 481, 481, 481, 484, 484, 484, 484, 484, 484,
484, 484, 33, 29, 23, 17, 484, 484, 484, 484,
484, 544, 540, 544, 544, 544, 544, 544, 544, 545,
545, 545, 545, 545, 545, 545, 545, 15, 484, 484,
484, 484, 484, 484, 506, 14, 506, 506, 506, 506,
506, 506, 506, 506, 547, 544, 547, 547, 547, 547,
547, 547, 547, 547, 548, 13, 548, 548, 548, 548,
548, 548, 548, 548, 0, 0, 0, 0, 506, 507,
0, 507, 507, 507, 507, 507, 507, 507, 507, 549,
0, 549, 549, 549, 549, 549, 549, 555, 0, 555,
555, 555, 555, 555, 555, 555, 555, 0, 0, 0,
0, 0, 0, 507, 508, 0, 508, 508, 508, 508,
508, 508, 508, 508, 565, 565, 565, 565, 565, 565,
565, 565, 566, 566, 566, 566, 566, 566, 566, 566,
567, 567, 567, 567, 567, 567, 567, 567, 508, 520,
0, 520, 520, 520, 520, 520, 520, 520, 520, 520,
523, 0, 523, 523, 523, 523, 523, 523, 523, 523,
0, 0, 0, 0, 523, 523, 523, 523, 523, 0,
574, 574, 574, 574, 574, 574, 574, 574, 578, 0,
578, 578, 578, 578, 578, 578, 523, 523, 523, 523,
523, 523, 542, 0, 542, 542, 542, 542, 542, 542,
542, 542, 574, 580, 580, 580, 580, 580, 580, 580,
580, 0, 578, 581, 581, 581, 581, 581, 581, 581,
581, 0, 0, 0, 0, 0, 542, 543, 0, 543,
543, 543, 543, 543, 543, 543, 543, 0, 0, 0,
586, 586, 586, 586, 586, 586, 586, 586, 587, 587,
587, 587, 587, 587, 587, 587, 0, 0, 0, 0,
0, 543, 562, 0, 562, 562, 562, 562, 562, 562,
562, 562, 586, 0, 0, 0, 0, 0, 0, 0,
587, 588, 588, 588, 588, 588, 588, 588, 588, 0,
591, 591, 591, 591, 591, 591, 562, 563, 0, 563,
563, 563, 563, 563, 563, 563, 563, 0, 0, 0,
0, 0, 0, 588, 590, 590, 590, 590, 590, 590,
590, 590, 591, 0, 0, 0, 0, 0, 0, 0,
0, 563, 564, 0, 564, 564, 564, 564, 564, 564,
564, 564, 0, 0, 0, 0, 590, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 564, 576, 0, 576,
576, 576, 576, 576, 576, 576, 576, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 576, 577, 0, 577, 577, 577, 577, 577, 577,
577, 577, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 577, 593, 593, 593,
593, 593, 593, 593, 593, 593, 593, 593, 593, 593,
593, 594, 594, 594, 594, 594, 594, 594, 594, 594,
594, 594, 594, 594, 594, 595, 595, 595, 595, 595,
595, 595, 595, 595, 595, 595, 595, 595, 595, 596,
596, 596, 596, 596, 596, 596, 596, 596, 596, 596,
596, 596, 596, 597, 0, 0, 0, 597, 0, 597,
597, 597, 0, 0, 597, 597, 597, 598, 598, 0,
598, 598, 598, 598, 598, 598, 598, 598, 598, 598,
598, 599, 599, 599, 599, 599, 599, 599, 599, 599,
599, 599, 599, 599, 599, 600, 0, 0, 0, 600,
0, 600, 600, 600, 600, 0, 600, 600, 600, 601,
0, 0, 0, 601, 0, 601, 601, 601, 0, 0,
601, 601, 601, 602, 0, 0, 602, 602, 602, 602,
602, 602, 0, 0, 602, 602, 602, 603, 603, 0,
0, 0, 603, 604, 0, 0, 604, 604, 604, 604,
604, 604, 0, 0, 604, 604, 604, 605, 0, 0,
605, 605, 605, 605, 605, 605, 0, 605, 0, 605,
605, 607, 0, 0, 607, 0, 607, 607, 607, 607,
607, 0, 607, 607, 607, 608, 608, 608, 608, 608,
608, 608, 608, 608, 608, 608, 608, 608, 608, 609,
609, 0, 609, 0, 609, 609, 609, 609, 609, 609,
609, 609, 609, 610, 610, 0, 610, 610, 610, 610,
610, 610, 610, 610, 610, 610, 610, 611, 611, 611,
611, 611, 611, 611, 611, 611, 611, 611, 611, 611,
611, 612, 612, 0, 612, 612, 612, 612, 612, 612,
612, 612, 612, 612, 612, 613, 0, 0, 0, 613,
0, 613, 613, 613, 0, 0, 613, 613, 613, 614,
0, 0, 614, 614, 614, 614, 614, 614, 0, 0,
614, 614, 614, 615, 615, 0, 0, 0, 615, 616,
616, 616, 0, 0, 0, 616, 617, 0, 0, 617,
617, 617, 617, 617, 617, 0, 0, 617, 617, 617,
618, 618, 618, 618, 618, 618, 618, 618, 618, 618,
618, 618, 618, 618, 619, 619, 0, 0, 0, 619,
620, 620, 620, 0, 0, 0, 620, 621, 621, 0,
0, 0, 621, 622, 622, 0, 0, 0, 622, 623,
623, 0, 0, 0, 623, 624, 624, 624, 0, 0,
0, 624, 625, 625, 0, 0, 0, 625, 626, 626,
0, 0, 0, 626, 627, 627, 0, 0, 0, 627,
628, 628, 628, 0, 0, 0, 628, 629, 629, 629,
629, 0, 0, 0, 629, 630, 630, 0, 0, 0,
630, 631, 631, 0, 0, 0, 631, 632, 632, 0,
0, 0, 632, 633, 633, 633, 0, 0, 0, 633,
634, 634, 634, 634, 0, 0, 0, 634, 635, 635,
0, 0, 0, 635, 636, 636, 0, 0, 0, 636,
637, 637, 637, 0, 0, 0, 637, 638, 638, 638,
638, 0, 0, 0, 638, 639, 639, 0, 0, 0,
639, 640, 0, 640, 640, 0, 0, 0, 640, 641,
641, 641, 0, 0, 0, 641, 642, 642, 642, 642,
0, 0, 0, 642, 643, 643, 0, 0, 0, 643,
644, 0, 644, 644, 0, 0, 0, 644, 645, 645,
645, 0, 0, 0, 645, 646, 646, 646, 0, 0,
0, 0, 646, 647, 0, 0, 647, 647, 0, 647,
647, 647, 0, 0, 647, 647, 647, 648, 0, 0,
648, 648, 0, 648, 648, 648, 0, 0, 648, 648,
648, 649, 649, 0, 0, 0, 649, 650, 0, 650,
650, 0, 0, 0, 650, 651, 651, 0, 0, 0,
0, 651, 652, 652, 652, 652, 652, 652, 652, 652,
652, 652, 652, 652, 652, 652, 653, 653, 0, 0,
0, 653, 654, 0, 654, 654, 0, 0, 0, 654,
655, 655, 0, 0, 0, 655, 656, 0, 656, 0,
0, 0, 0, 656, 658, 658, 658, 658, 658, 658,
658, 658, 658, 658, 658, 658, 658, 658, 592, 592,
592, 592, 592, 592, 592, 592, 592, 592, 592, 592,
592, 592, 592, 592, 592, 592, 592, 592, 592, 592,
592, 592, 592, 592, 592, 592, 592, 592, 592, 592,
592, 592, 592, 592, 592, 592, 592, 592, 592, 592,
592, 592, 592, 592, 592, 592, 592, 592, 592, 592,
592, 592, 592, 592, 592, 592, 592, 592, 592, 592,
592, 592, 592, 592
} ;
static yy_state_type yy_last_accepting_state;
static char *yy_last_accepting_cpos;
#define REJECT reject_used_but_not_detected
#define yymore() yymore_used_but_not_detected
#define YY_MORE_ADJ 0
#define YY_RESTORE_YY_MORE_OFFSET
char *yytext;
#line 1 "toke.l"
#define INITIAL 0
#line 2 "toke.l"
#include <config.h>
#include <sys/types.h>
#include <sys/param.h>
#include <sys/stat.h>
#include <stdio.h>
#ifdef STDC_HEADERS
# include <stdlib.h>
# include <stddef.h>
#else
# ifdef HAVE_STDLIB_H
# include <stdlib.h>
# endif
#endif
#ifdef HAVE_STRING_H
# include <string.h>
#endif
#ifdef HAVE_STRINGS_H
# include <strings.h>
#endif
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#if defined(HAVE_MALLOC_H) && !defined(STDC_HEADERS)
# include <malloc.h>
#endif
#ifdef HAVE_DIRENT_H
# include <dirent.h>
# define NAMLEN(dirent) strlen((dirent)->d_name)
#else
# define dirent direct
# define NAMLEN(dirent) (dirent)->d_namlen
# ifdef HAVE_SYS_NDIR_H
# include <sys/ndir.h>
# endif
# ifdef HAVE_SYS_DIR_H
# include <sys/dir.h>
# endif
# ifdef HAVE_NDIR_H
# include <ndir.h>
# endif
#endif
#include <ctype.h>
#include "sudo.h"
#include "parse.h"
#include <gram.h>
extern YYSTYPE yylval;
extern int parse_error;
int sudolineno = 1;
char *sudoers;
static int sawspace = 0;
static int arg_len = 0;
static int arg_size = 0;
static int append __P((char *, int));
static int _fill __P((char *, int, int));
static int fill_cmnd __P((char *, int));
static int fill_args __P((char *, int, int));
static int _push_include __P((char *, int));
static int pop_include __P((void));
static int ipv6_valid __P((const char *s));
static char *parse_include __P((char *));
extern void yyerror __P((const char *));
#define fill(a, b) _fill(a, b, 0)
#define push_include(_p) (_push_include((_p), FALSE))
#define push_includedir(_p) (_push_include((_p), TRUE))
#define COMMANDARGINC 64
#ifdef TRACELEXER
#define LEXTRACE(msg) fputs(msg, stderr)
#else
#define LEXTRACE(msg)
#endif
#define YY_NO_UNPUT 1
#define GOTDEFS 1
#define GOTCMND 2
#define STARTDEFS 3
#define INDEFS 4
#define INSTR 5
#line 1504 "lex.yy.c"
#ifndef YY_SKIP_YYWRAP
#ifdef __cplusplus
extern "C" int yywrap YY_PROTO(( void ));
#else
extern int yywrap YY_PROTO(( void ));
#endif
#endif
#ifndef YY_NO_UNPUT
static void yyunput YY_PROTO(( int c, char *buf_ptr ));
#endif
#ifndef yytext_ptr
static void yy_flex_strncpy YY_PROTO(( char *, yyconst char *, int ));
#endif
#ifdef YY_NEED_STRLEN
static int yy_flex_strlen YY_PROTO(( yyconst char * ));
#endif
#ifndef YY_NO_INPUT
#ifdef __cplusplus
static int yyinput YY_PROTO(( void ));
#else
static int input YY_PROTO(( void ));
#endif
#endif
#if defined(YY_STACK_USED) && YY_STACK_USED
static int yy_start_stack_ptr = 0;
static int yy_start_stack_depth = 0;
static int *yy_start_stack = 0;
#ifndef YY_NO_PUSH_STATE
static void yy_push_state YY_PROTO(( int new_state ));
#endif
#ifndef YY_NO_POP_STATE
static void yy_pop_state YY_PROTO(( void ));
#endif
#ifndef YY_NO_TOP_STATE
static int yy_top_state YY_PROTO(( void ));
#endif
#else
#define YY_NO_PUSH_STATE 1
#define YY_NO_POP_STATE 1
#define YY_NO_TOP_STATE 1
#endif
#ifdef YY_MALLOC_DECL
YY_MALLOC_DECL
#else
#ifdef __STDC__
#ifndef __cplusplus
#include <stdlib.h>
#endif
#else
#endif
#endif
#ifndef YY_READ_BUF_SIZE
#define YY_READ_BUF_SIZE 8192
#endif
#ifndef ECHO
#define ECHO (void) fwrite( yytext, yyleng, 1, yyout )
#endif
#ifndef YY_INPUT
#define YY_INPUT(buf,result,max_size) \
if ( yy_current_buffer->yy_is_interactive ) \
{ \
int c = '*', n; \
for ( n = 0; n < max_size && \
(c = getc( yyin )) != EOF && c != '\n'; ++n ) \
buf[n] = (char) c; \
if ( c == '\n' ) \
buf[n++] = (char) c; \
if ( c == EOF && ferror( yyin ) ) \
YY_FATAL_ERROR( "input in flex scanner failed" ); \
result = n; \
} \
else if ( ((result = fread( buf, 1, max_size, yyin )) == 0) \
&& ferror( yyin ) ) \
YY_FATAL_ERROR( "input in flex scanner failed" );
#endif
#ifndef yyterminate
#define yyterminate() return YY_NULL
#endif
#ifndef YY_START_STACK_INCR
#define YY_START_STACK_INCR 25
#endif
#ifndef YY_FATAL_ERROR
#define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
#endif
#ifndef YY_DECL
#define YY_DECL int yylex YY_PROTO(( void ))
#endif
#ifndef YY_USER_ACTION
#define YY_USER_ACTION
#endif
#ifndef YY_BREAK
#define YY_BREAK break;
#endif
#define YY_RULE_SETUP \
if ( yyleng > 0 ) \
yy_current_buffer->yy_at_bol = \
(yytext[yyleng - 1] == '\n'); \
YY_USER_ACTION
YY_DECL
{
register yy_state_type yy_current_state;
register char *yy_cp, *yy_bp;
register int yy_act;
#line 127 "toke.l"
#line 1660 "lex.yy.c"
if ( yy_init )
{
yy_init = 0;
#ifdef YY_USER_INIT
YY_USER_INIT;
#endif
if ( ! yy_start )
yy_start = 1;
if ( ! yyin )
yyin = stdin;
if ( ! yyout )
yyout = stdout;
if ( ! yy_current_buffer )
yy_current_buffer =
yy_create_buffer( yyin, YY_BUF_SIZE );
yy_load_buffer_state();
}
while ( 1 )
{
yy_cp = yy_c_buf_p;
*yy_cp = yy_hold_char;
yy_bp = yy_cp;
yy_current_state = yy_start;
yy_current_state += YY_AT_BOL();
yy_match:
do
{
register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
if ( yy_accept[yy_current_state] )
{
yy_last_accepting_state = yy_current_state;
yy_last_accepting_cpos = yy_cp;
}
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
{
yy_current_state = (int) yy_def[yy_current_state];
if ( yy_current_state >= 593 )
yy_c = yy_meta[(unsigned int) yy_c];
}
yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
++yy_cp;
}
while ( yy_base[yy_current_state] != 3619 );
yy_find_action:
yy_act = yy_accept[yy_current_state];
if ( yy_act == 0 )
{
yy_cp = yy_last_accepting_cpos;
yy_current_state = yy_last_accepting_state;
yy_act = yy_accept[yy_current_state];
}
YY_DO_BEFORE_ACTION;
do_action:
switch ( yy_act )
{
case 0:
*yy_cp = yy_hold_char;
yy_cp = yy_last_accepting_cpos;
yy_current_state = yy_last_accepting_state;
goto yy_find_action;
case 1:
YY_RULE_SETUP
#line 128 "toke.l"
BEGIN STARTDEFS;
YY_BREAK
case 2:
YY_RULE_SETUP
#line 130 "toke.l"
{
BEGIN INDEFS;
LEXTRACE("DEFVAR ");
if (!fill(yytext, yyleng))
yyterminate();
return(DEFVAR);
}
YY_BREAK
case 3:
YY_RULE_SETUP
#line 139 "toke.l"
{
BEGIN STARTDEFS;
LEXTRACE(", ");
return(',');
}
YY_BREAK
case 4:
YY_RULE_SETUP
#line 145 "toke.l"
{
LEXTRACE("= ");
return('=');
}
YY_BREAK
case 5:
YY_RULE_SETUP
#line 150 "toke.l"
{
LEXTRACE("+= ");
return('+');
}
YY_BREAK
case 6:
YY_RULE_SETUP
#line 155 "toke.l"
{
LEXTRACE("-= ");
return('-');
}
YY_BREAK
case 7:
YY_RULE_SETUP
#line 160 "toke.l"
{
LEXTRACE("BEGINSTR ");
yylval.string = NULL;
BEGIN INSTR;
}
YY_BREAK
case 8:
YY_RULE_SETUP
#line 166 "toke.l"
{
LEXTRACE("WORD(2) ");
if (!fill(yytext, yyleng))
yyterminate();
return(WORD);
}
YY_BREAK
case 9:
YY_RULE_SETUP
#line 175 "toke.l"
{
++sudolineno;
LEXTRACE("\n");
}
YY_BREAK
case 10:
YY_RULE_SETUP
#line 181 "toke.l"
{
LEXTRACE("ENDSTR ");
BEGIN INDEFS;
return(WORD);
}
YY_BREAK
case 11:
YY_RULE_SETUP
#line 187 "toke.l"
{
LEXTRACE("BACKSLASH ");
if (!append(yytext, yyleng))
yyterminate();
}
YY_BREAK
case 12:
YY_RULE_SETUP
#line 193 "toke.l"
{
LEXTRACE("STRBODY ");
if (!append(yytext, yyleng))
yyterminate();
}
YY_BREAK
case 13:
YY_RULE_SETUP
#line 201 "toke.l"
{
LEXTRACE("QUOTEDCHAR ");
if (!fill_args(yytext, 2, sawspace))
yyterminate();
sawspace = FALSE;
}
YY_BREAK
case 14:
YY_RULE_SETUP
#line 209 "toke.l"
{
LEXTRACE("QUOTEDCHAR ");
if (!fill_args(yytext + 1, 1, sawspace))
yyterminate();
sawspace = FALSE;
}
YY_BREAK
case 15:
YY_RULE_SETUP
#line 217 "toke.l"
{
BEGIN INITIAL;
yyless(0);
return(COMMAND);
}
YY_BREAK
case 16:
YY_RULE_SETUP
#line 223 "toke.l"
{
LEXTRACE("ARG ");
if (!fill_args(yytext, yyleng, sawspace))
yyterminate();
sawspace = FALSE;
}
YY_BREAK
case 17:
YY_RULE_SETUP
#line 231 "toke.l"
{
char *path;
if ((path = parse_include(yytext)) == NULL)
yyterminate();
LEXTRACE("INCLUDE\n");
if (!push_include(path))
yyterminate();
}
YY_BREAK
case 18:
YY_RULE_SETUP
#line 244 "toke.l"
{
char *path;
if ((path = parse_include(yytext)) == NULL)
yyterminate();
LEXTRACE("INCLUDEDIR\n");
if (!push_includedir(path) && parse_error)
yyterminate();
}
YY_BREAK
case 19:
YY_RULE_SETUP
#line 260 "toke.l"
{
int n;
for (n = 0; isblank((unsigned char)yytext[n]); n++)
continue;
n += 8;
BEGIN GOTDEFS;
switch (yytext[n++]) {
case ':':
yyless(n);
LEXTRACE("DEFAULTS_USER ");
return(DEFAULTS_USER);
case '>':
yyless(n);
LEXTRACE("DEFAULTS_RUNAS ");
return(DEFAULTS_RUNAS);
case '@':
yyless(n);
LEXTRACE("DEFAULTS_HOST ");
return(DEFAULTS_HOST);
case '!':
yyless(n);
LEXTRACE("DEFAULTS_CMND ");
return(DEFAULTS_CMND);
default:
LEXTRACE("DEFAULTS ");
return(DEFAULTS);
}
}
YY_BREAK
case 20:
YY_RULE_SETUP
#line 289 "toke.l"
{
int n;
for (n = 0; isblank((unsigned char)yytext[n]); n++)
continue;
switch (yytext[n]) {
case 'H':
LEXTRACE("HOSTALIAS ");
return(HOSTALIAS);
case 'C':
LEXTRACE("CMNDALIAS ");
return(CMNDALIAS);
case 'U':
LEXTRACE("USERALIAS ");
return(USERALIAS);
case 'R':
LEXTRACE("RUNASALIAS ");
return(RUNASALIAS);
}
}
YY_BREAK
case 21:
YY_RULE_SETUP
#line 309 "toke.l"
{
LEXTRACE("NOPASSWD ");
return(NOPASSWD);
}
YY_BREAK
case 22:
YY_RULE_SETUP
#line 315 "toke.l"
{
LEXTRACE("PASSWD ");
return(PASSWD);
}
YY_BREAK
case 23:
YY_RULE_SETUP
#line 321 "toke.l"
{
LEXTRACE("NOEXEC ");
return(NOEXEC);
}
YY_BREAK
case 24:
YY_RULE_SETUP
#line 326 "toke.l"
{
LEXTRACE("EXEC ");
return(EXEC);
}
YY_BREAK
case 25:
YY_RULE_SETUP
#line 331 "toke.l"
{
LEXTRACE("SETENV ");
return(SETENV);
}
YY_BREAK
case 26:
YY_RULE_SETUP
#line 336 "toke.l"
{
LEXTRACE("NOSETENV ");
return(NOSETENV);
}
YY_BREAK
case 27:
YY_RULE_SETUP
#line 341 "toke.l"
{
LEXTRACE("LOG_OUTPUT ");
return(LOG_OUTPUT);
}
YY_BREAK
case 28:
YY_RULE_SETUP
#line 346 "toke.l"
{
LEXTRACE("NOLOG_OUTPUT ");
return(NOLOG_OUTPUT);
}
YY_BREAK
case 29:
YY_RULE_SETUP
#line 351 "toke.l"
{
LEXTRACE("LOG_INPUT ");
return(LOG_INPUT);
}
YY_BREAK
case 30:
YY_RULE_SETUP
#line 356 "toke.l"
{
LEXTRACE("NOLOG_INPUT ");
return(NOLOG_INPUT);
}
YY_BREAK
case 31:
YY_RULE_SETUP
#line 361 "toke.l"
{
if (!fill(yytext, yyleng))
yyterminate();
LEXTRACE("NETGROUP ");
return(NETGROUP);
}
YY_BREAK
case 32:
YY_RULE_SETUP
#line 369 "toke.l"
{
if (!fill(yytext, yyleng))
yyterminate();
LEXTRACE("USERGROUP ");
return(USERGROUP);
}
YY_BREAK
case 33:
YY_RULE_SETUP
#line 377 "toke.l"
{
if (!fill(yytext, yyleng))
yyterminate();
LEXTRACE("NTWKADDR ");
return(NTWKADDR);
}
YY_BREAK
case 34:
YY_RULE_SETUP
#line 384 "toke.l"
{
if (!fill(yytext, yyleng))
yyterminate();
LEXTRACE("NTWKADDR ");
return(NTWKADDR);
}
YY_BREAK
case 35:
YY_RULE_SETUP
#line 391 "toke.l"
{
if (!ipv6_valid(yytext)) {
LEXTRACE("ERROR ");
return(ERROR);
}
if (!fill(yytext, yyleng))
yyterminate();
LEXTRACE("NTWKADDR ");
return(NTWKADDR);
}
YY_BREAK
case 36:
YY_RULE_SETUP
#line 402 "toke.l"
{
if (!ipv6_valid(yytext)) {
LEXTRACE("ERROR ");
return(ERROR);
}
if (!fill(yytext, yyleng))
yyterminate();
LEXTRACE("NTWKADDR ");
return(NTWKADDR);
}
YY_BREAK
case 37:
YY_RULE_SETUP
#line 413 "toke.l"
{
if (strcmp(yytext, "ALL") == 0) {
LEXTRACE("ALL ");
return(ALL);
}
#ifdef HAVE_SELINUX
if (strcmp(yytext, "TYPE") == 0) {
LEXTRACE("TYPE ");
return(TYPE);
}
if (strcmp(yytext, "ROLE") == 0) {
LEXTRACE("ROLE ");
return(ROLE);
}
#endif
if (!fill(yytext, yyleng))
yyterminate();
LEXTRACE("ALIAS ");
return(ALIAS);
}
YY_BREAK
case 38:
YY_RULE_SETUP
#line 435 "toke.l"
{
if (!fill_cmnd(yytext, yyleng))
yyterminate();
LEXTRACE("COMMAND ");
return(COMMAND);
}
YY_BREAK
case 39:
YY_RULE_SETUP
#line 443 "toke.l"
{
BEGIN GOTCMND;
LEXTRACE("COMMAND ");
if (!fill_cmnd(yytext, yyleng))
yyterminate();
}
YY_BREAK
case 40:
YY_RULE_SETUP
#line 450 "toke.l"
{
if (yytext[yyleng - 1] == '/') {
LEXTRACE("COMMAND ");
if (!fill_cmnd(yytext, yyleng))
yyterminate();
return(COMMAND);
} else {
BEGIN GOTCMND;
LEXTRACE("COMMAND ");
if (!fill_cmnd(yytext, yyleng))
yyterminate();
}
}
YY_BREAK
case 41:
YY_RULE_SETUP
#line 465 "toke.l"
{
if (!fill(yytext + 1, yyleng - 2))
yyterminate();
switch (yytext[1]) {
case '%':
LEXTRACE("USERGROUP ");
return(USERGROUP);
case '+':
LEXTRACE("NETGROUP ");
return(NETGROUP);
default:
LEXTRACE("WORD(4) ");
return(WORD);
}
}
YY_BREAK
case 42:
YY_RULE_SETUP
#line 482 "toke.l"
{
if (!fill(yytext, yyleng))
yyterminate();
LEXTRACE("WORD(5) ");
return(WORD);
}
YY_BREAK
case 43:
YY_RULE_SETUP
#line 490 "toke.l"
{
LEXTRACE("( ");
return ('(');
}
YY_BREAK
case 44:
YY_RULE_SETUP
#line 495 "toke.l"
{
LEXTRACE(") ");
return(')');
}
YY_BREAK
case 45:
YY_RULE_SETUP
#line 500 "toke.l"
{
LEXTRACE(", ");
return(',');
}
YY_BREAK
case 46:
YY_RULE_SETUP
#line 505 "toke.l"
{
LEXTRACE("= ");
return('=');
}
YY_BREAK
case 47:
YY_RULE_SETUP
#line 510 "toke.l"
{
LEXTRACE(": ");
return(':');
}
YY_BREAK
case 48:
YY_RULE_SETUP
#line 515 "toke.l"
{
if (yyleng % 2 == 1)
return('!');
}
YY_BREAK
case 49:
YY_RULE_SETUP
#line 520 "toke.l"
{
BEGIN INITIAL;
++sudolineno;
LEXTRACE("\n");
return(COMMENT);
}
YY_BREAK
case 50:
YY_RULE_SETUP
#line 527 "toke.l"
{
sawspace = TRUE;
}
YY_BREAK
case 51:
YY_RULE_SETUP
#line 531 "toke.l"
{
sawspace = TRUE;
++sudolineno;
LEXTRACE("\n\t");
}
YY_BREAK
case 52:
YY_RULE_SETUP
#line 537 "toke.l"
{
BEGIN INITIAL;
++sudolineno;
LEXTRACE("\n");
return(COMMENT);
}
YY_BREAK
case 53:
YY_RULE_SETUP
#line 544 "toke.l"
{
LEXTRACE("ERROR ");
return(ERROR);
}
YY_BREAK
case YY_STATE_EOF(INITIAL):
case YY_STATE_EOF(GOTDEFS):
case YY_STATE_EOF(GOTCMND):
case YY_STATE_EOF(STARTDEFS):
case YY_STATE_EOF(INDEFS):
case YY_STATE_EOF(INSTR):
#line 549 "toke.l"
{
if (YY_START != INITIAL) {
BEGIN INITIAL;
LEXTRACE("ERROR ");
return(ERROR);
}
if (!pop_include())
yyterminate();
}
YY_BREAK
case 54:
YY_RULE_SETUP
#line 559 "toke.l"
ECHO;
YY_BREAK
#line 2346 "lex.yy.c"
case YY_END_OF_BUFFER:
{
int yy_amount_of_matched_text = (int) (yy_cp - yytext_ptr) - 1;
*yy_cp = yy_hold_char;
YY_RESTORE_YY_MORE_OFFSET
if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_NEW )
{
yy_n_chars = yy_current_buffer->yy_n_chars;
yy_current_buffer->yy_input_file = yyin;
yy_current_buffer->yy_buffer_status = YY_BUFFER_NORMAL;
}
if ( yy_c_buf_p <= &yy_current_buffer->yy_ch_buf[yy_n_chars] )
{
yy_state_type yy_next_state;
yy_c_buf_p = yytext_ptr + yy_amount_of_matched_text;
yy_current_state = yy_get_previous_state();
yy_next_state = yy_try_NUL_trans( yy_current_state );
yy_bp = yytext_ptr + YY_MORE_ADJ;
if ( yy_next_state )
{
yy_cp = ++yy_c_buf_p;
yy_current_state = yy_next_state;
goto yy_match;
}
else
{
yy_cp = yy_c_buf_p;
goto yy_find_action;
}
}
else switch ( yy_get_next_buffer() )
{
case EOB_ACT_END_OF_FILE:
{
yy_did_buffer_switch_on_eof = 0;
if ( yywrap() )
{
yy_c_buf_p = yytext_ptr + YY_MORE_ADJ;
yy_act = YY_STATE_EOF(YY_START);
goto do_action;
}
else
{
if ( ! yy_did_buffer_switch_on_eof )
YY_NEW_FILE;
}
break;
}
case EOB_ACT_CONTINUE_SCAN:
yy_c_buf_p =
yytext_ptr + yy_amount_of_matched_text;
yy_current_state = yy_get_previous_state();
yy_cp = yy_c_buf_p;
yy_bp = yytext_ptr + YY_MORE_ADJ;
goto yy_match;
case EOB_ACT_LAST_MATCH:
yy_c_buf_p =
&yy_current_buffer->yy_ch_buf[yy_n_chars];
yy_current_state = yy_get_previous_state();
yy_cp = yy_c_buf_p;
yy_bp = yytext_ptr + YY_MORE_ADJ;
goto yy_find_action;
}
break;
}
default:
YY_FATAL_ERROR(
"fatal flex scanner internal error--no action found" );
}
}
}
static int yy_get_next_buffer()
{
register char *dest = yy_current_buffer->yy_ch_buf;
register char *source = yytext_ptr;
register int number_to_move, i;
int ret_val;
if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] )
YY_FATAL_ERROR(
"fatal flex scanner internal error--end of buffer missed" );
if ( yy_current_buffer->yy_fill_buffer == 0 )
{
if ( yy_c_buf_p - yytext_ptr - YY_MORE_ADJ == 1 )
{
return EOB_ACT_END_OF_FILE;
}
else
{
return EOB_ACT_LAST_MATCH;
}
}
number_to_move = (int) (yy_c_buf_p - yytext_ptr) - 1;
for ( i = 0; i < number_to_move; ++i )
*(dest++) = *(source++);
if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_EOF_PENDING )
yy_current_buffer->yy_n_chars = yy_n_chars = 0;
else
{
int num_to_read =
yy_current_buffer->yy_buf_size - number_to_move - 1;
while ( num_to_read <= 0 )
{
#ifdef YY_USES_REJECT
YY_FATAL_ERROR(
"input buffer overflow, can't enlarge buffer because scanner uses REJECT" );
#else
YY_BUFFER_STATE b = yy_current_buffer;
int yy_c_buf_p_offset =
(int) (yy_c_buf_p - b->yy_ch_buf);
if ( b->yy_is_our_buffer )
{
int new_size = b->yy_buf_size * 2;
if ( new_size <= 0 )
b->yy_buf_size += b->yy_buf_size / 8;
else
b->yy_buf_size *= 2;
b->yy_ch_buf = (char *)
yy_flex_realloc( (void *) b->yy_ch_buf,
b->yy_buf_size + 2 );
}
else
b->yy_ch_buf = 0;
if ( ! b->yy_ch_buf )
YY_FATAL_ERROR(
"fatal error - scanner input buffer overflow" );
yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset];
num_to_read = yy_current_buffer->yy_buf_size -
number_to_move - 1;
#endif
}
if ( num_to_read > YY_READ_BUF_SIZE )
num_to_read = YY_READ_BUF_SIZE;
YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]),
yy_n_chars, num_to_read );
yy_current_buffer->yy_n_chars = yy_n_chars;
}
if ( yy_n_chars == 0 )
{
if ( number_to_move == YY_MORE_ADJ )
{
ret_val = EOB_ACT_END_OF_FILE;
yyrestart( yyin );
}
else
{
ret_val = EOB_ACT_LAST_MATCH;
yy_current_buffer->yy_buffer_status =
YY_BUFFER_EOF_PENDING;
}
}
else
ret_val = EOB_ACT_CONTINUE_SCAN;
yy_n_chars += number_to_move;
yy_current_buffer->yy_ch_buf[yy_n_chars] = YY_END_OF_BUFFER_CHAR;
yy_current_buffer->yy_ch_buf[yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;
yytext_ptr = &yy_current_buffer->yy_ch_buf[0];
return ret_val;
}
static yy_state_type yy_get_previous_state()
{
register yy_state_type yy_current_state;
register char *yy_cp;
yy_current_state = yy_start;
yy_current_state += YY_AT_BOL();
for ( yy_cp = yytext_ptr + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp )
{
register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
if ( yy_accept[yy_current_state] )
{
yy_last_accepting_state = yy_current_state;
yy_last_accepting_cpos = yy_cp;
}
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
{
yy_current_state = (int) yy_def[yy_current_state];
if ( yy_current_state >= 593 )
yy_c = yy_meta[(unsigned int) yy_c];
}
yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
}
return yy_current_state;
}
#ifdef YY_USE_PROTOS
static yy_state_type yy_try_NUL_trans( yy_state_type yy_current_state )
#else
static yy_state_type yy_try_NUL_trans( yy_current_state )
yy_state_type yy_current_state;
#endif
{
register int yy_is_jam;
register char *yy_cp = yy_c_buf_p;
register YY_CHAR yy_c = 1;
if ( yy_accept[yy_current_state] )
{
yy_last_accepting_state = yy_current_state;
yy_last_accepting_cpos = yy_cp;
}
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
{
yy_current_state = (int) yy_def[yy_current_state];
if ( yy_current_state >= 593 )
yy_c = yy_meta[(unsigned int) yy_c];
}
yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
yy_is_jam = (yy_current_state == 592);
return yy_is_jam ? 0 : yy_current_state;
}
#ifndef YY_NO_UNPUT
#ifdef YY_USE_PROTOS
static void yyunput( int c, register char *yy_bp )
#else
static void yyunput( c, yy_bp )
int c;
register char *yy_bp;
#endif
{
register char *yy_cp = yy_c_buf_p;
*yy_cp = yy_hold_char;
if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
{
register int number_to_move = yy_n_chars + 2;
register char *dest = &yy_current_buffer->yy_ch_buf[
yy_current_buffer->yy_buf_size + 2];
register char *source =
&yy_current_buffer->yy_ch_buf[number_to_move];
while ( source > yy_current_buffer->yy_ch_buf )
*--dest = *--source;
yy_cp += (int) (dest - source);
yy_bp += (int) (dest - source);
yy_current_buffer->yy_n_chars =
yy_n_chars = yy_current_buffer->yy_buf_size;
if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
YY_FATAL_ERROR( "flex scanner push-back overflow" );
}
*--yy_cp = (char) c;
yytext_ptr = yy_bp;
yy_hold_char = *yy_cp;
yy_c_buf_p = yy_cp;
}
#endif
#ifndef YY_NO_INPUT
#ifdef __cplusplus
static int yyinput()
#else
static int input()
#endif
{
int c;
*yy_c_buf_p = yy_hold_char;
if ( *yy_c_buf_p == YY_END_OF_BUFFER_CHAR )
{
if ( yy_c_buf_p < &yy_current_buffer->yy_ch_buf[yy_n_chars] )
*yy_c_buf_p = '\0';
else
{
int offset = yy_c_buf_p - yytext_ptr;
++yy_c_buf_p;
switch ( yy_get_next_buffer() )
{
case EOB_ACT_LAST_MATCH:
yyrestart( yyin );
case EOB_ACT_END_OF_FILE:
{
if ( yywrap() )
return EOF;
if ( ! yy_did_buffer_switch_on_eof )
YY_NEW_FILE;
#ifdef __cplusplus
return yyinput();
#else
return input();
#endif
}
case EOB_ACT_CONTINUE_SCAN:
yy_c_buf_p = yytext_ptr + offset;
break;
}
}
}
c = *(unsigned char *) yy_c_buf_p;
*yy_c_buf_p = '\0';
yy_hold_char = *++yy_c_buf_p;
yy_current_buffer->yy_at_bol = (c == '\n');
return c;
}
#endif
#ifdef YY_USE_PROTOS
void yyrestart( FILE *input_file )
#else
void yyrestart( input_file )
FILE *input_file;
#endif
{
if ( ! yy_current_buffer )
yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE );
yy_init_buffer( yy_current_buffer, input_file );
yy_load_buffer_state();
}
#ifdef YY_USE_PROTOS
void yy_switch_to_buffer( YY_BUFFER_STATE new_buffer )
#else
void yy_switch_to_buffer( new_buffer )
YY_BUFFER_STATE new_buffer;
#endif
{
if ( yy_current_buffer == new_buffer )
return;
if ( yy_current_buffer )
{
*yy_c_buf_p = yy_hold_char;
yy_current_buffer->yy_buf_pos = yy_c_buf_p;
yy_current_buffer->yy_n_chars = yy_n_chars;
}
yy_current_buffer = new_buffer;
yy_load_buffer_state();
yy_did_buffer_switch_on_eof = 1;
}
#ifdef YY_USE_PROTOS
void yy_load_buffer_state( void )
#else
void yy_load_buffer_state()
#endif
{
yy_n_chars = yy_current_buffer->yy_n_chars;
yytext_ptr = yy_c_buf_p = yy_current_buffer->yy_buf_pos;
yyin = yy_current_buffer->yy_input_file;
yy_hold_char = *yy_c_buf_p;
}
#ifdef YY_USE_PROTOS
YY_BUFFER_STATE yy_create_buffer( FILE *file, int size )
#else
YY_BUFFER_STATE yy_create_buffer( file, size )
FILE *file;
int size;
#endif
{
YY_BUFFER_STATE b;
b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
if ( ! b )
YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
b->yy_buf_size = size;
b->yy_ch_buf = (char *) yy_flex_alloc( b->yy_buf_size + 2 );
if ( ! b->yy_ch_buf )
YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
b->yy_is_our_buffer = 1;
yy_init_buffer( b, file );
return b;
}
#ifdef YY_USE_PROTOS
void yy_delete_buffer( YY_BUFFER_STATE b )
#else
void yy_delete_buffer( b )
YY_BUFFER_STATE b;
#endif
{
if ( ! b )
return;
if ( b == yy_current_buffer )
yy_current_buffer = (YY_BUFFER_STATE) 0;
if ( b->yy_is_our_buffer )
yy_flex_free( (void *) b->yy_ch_buf );
yy_flex_free( (void *) b );
}
#ifndef YY_ALWAYS_INTERACTIVE
#ifndef YY_NEVER_INTERACTIVE
#include <unistd.h>
#endif
#endif
#ifdef YY_USE_PROTOS
void yy_init_buffer( YY_BUFFER_STATE b, FILE *file )
#else
void yy_init_buffer( b, file )
YY_BUFFER_STATE b;
FILE *file;
#endif
{
int oerrno = errno;
yy_flush_buffer( b );
b->yy_input_file = file;
b->yy_fill_buffer = 1;
#if defined(YY_ALWAYS_INTERACTIVE) && YY_ALWAYS_INTERACTIVE
b->yy_is_interactive = 1;
#else
#if defined(YY_NEVER_INTERACTIVE) && YY_NEVER_INTERACTIVE
b->yy_is_interactive = 0;
#else
b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
#endif
#endif
errno = oerrno;
}
#ifdef YY_USE_PROTOS
void yy_flush_buffer( YY_BUFFER_STATE b )
#else
void yy_flush_buffer( b )
YY_BUFFER_STATE b;
#endif
{
if ( ! b )
return;
b->yy_n_chars = 0;
b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
b->yy_buf_pos = &b->yy_ch_buf[0];
b->yy_at_bol = 1;
b->yy_buffer_status = YY_BUFFER_NEW;
if ( b == yy_current_buffer )
yy_load_buffer_state();
}
#ifndef YY_NO_SCAN_BUFFER
#ifdef YY_USE_PROTOS
YY_BUFFER_STATE yy_scan_buffer( char *base, yy_size_t size )
#else
YY_BUFFER_STATE yy_scan_buffer( base, size )
char *base;
yy_size_t size;
#endif
{
YY_BUFFER_STATE b;
if ( size < 2 ||
base[size-2] != YY_END_OF_BUFFER_CHAR ||
base[size-1] != YY_END_OF_BUFFER_CHAR )
return 0;
b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
if ( ! b )
YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
b->yy_buf_size = size - 2;
b->yy_buf_pos = b->yy_ch_buf = base;
b->yy_is_our_buffer = 0;
b->yy_input_file = 0;
b->yy_n_chars = b->yy_buf_size;
b->yy_is_interactive = 0;
b->yy_at_bol = 1;
b->yy_fill_buffer = 0;
b->yy_buffer_status = YY_BUFFER_NEW;
yy_switch_to_buffer( b );
return b;
}
#endif
#ifndef YY_NO_SCAN_STRING
#ifdef YY_USE_PROTOS
YY_BUFFER_STATE yy_scan_string( yyconst char *yy_str )
#else
YY_BUFFER_STATE yy_scan_string( yy_str )
yyconst char *yy_str;
#endif
{
int len;
for ( len = 0; yy_str[len]; ++len )
;
return yy_scan_bytes( yy_str, len );
}
#endif
#ifndef YY_NO_SCAN_BYTES
#ifdef YY_USE_PROTOS
YY_BUFFER_STATE yy_scan_bytes( yyconst char *bytes, int len )
#else
YY_BUFFER_STATE yy_scan_bytes( bytes, len )
yyconst char *bytes;
int len;
#endif
{
YY_BUFFER_STATE b;
char *buf;
yy_size_t n;
int i;
n = len + 2;
buf = (char *) yy_flex_alloc( n );
if ( ! buf )
YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
for ( i = 0; i < len; ++i )
buf[i] = bytes[i];
buf[len] = buf[len+1] = YY_END_OF_BUFFER_CHAR;
b = yy_scan_buffer( buf, n );
if ( ! b )
YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
b->yy_is_our_buffer = 1;
return b;
}
#endif
#ifndef YY_NO_PUSH_STATE
#ifdef YY_USE_PROTOS
static void yy_push_state( int new_state )
#else
static void yy_push_state( new_state )
int new_state;
#endif
{
if ( yy_start_stack_ptr >= yy_start_stack_depth )
{
yy_size_t new_size;
yy_start_stack_depth += YY_START_STACK_INCR;
new_size = yy_start_stack_depth * sizeof( int );
if ( ! yy_start_stack )
yy_start_stack = (int *) yy_flex_alloc( new_size );
else
yy_start_stack = (int *) yy_flex_realloc(
(void *) yy_start_stack, new_size );
if ( ! yy_start_stack )
YY_FATAL_ERROR(
"out of memory expanding start-condition stack" );
}
yy_start_stack[yy_start_stack_ptr++] = YY_START;
BEGIN(new_state);
}
#endif
#ifndef YY_NO_POP_STATE
static void yy_pop_state()
{
if ( --yy_start_stack_ptr < 0 )
YY_FATAL_ERROR( "start-condition stack underflow" );
BEGIN(yy_start_stack[yy_start_stack_ptr]);
}
#endif
#ifndef YY_NO_TOP_STATE
static int yy_top_state()
{
return yy_start_stack[yy_start_stack_ptr - 1];
}
#endif
#ifndef YY_EXIT_FAILURE
#define YY_EXIT_FAILURE 2
#endif
#ifdef YY_USE_PROTOS
static void yy_fatal_error( yyconst char msg[] )
#else
static void yy_fatal_error( msg )
char msg[];
#endif
{
(void) fprintf( stderr, "%s\n", msg );
exit( YY_EXIT_FAILURE );
}
#undef yyless
#define yyless(n) \
do \
{ \
\
yytext[yyleng] = yy_hold_char; \
yy_c_buf_p = yytext + n; \
yy_hold_char = *yy_c_buf_p; \
*yy_c_buf_p = '\0'; \
yyleng = n; \
} \
while ( 0 )
#ifndef yytext_ptr
#ifdef YY_USE_PROTOS
static void yy_flex_strncpy( char *s1, yyconst char *s2, int n )
#else
static void yy_flex_strncpy( s1, s2, n )
char *s1;
yyconst char *s2;
int n;
#endif
{
register int i;
for ( i = 0; i < n; ++i )
s1[i] = s2[i];
}
#endif
#ifdef YY_NEED_STRLEN
#ifdef YY_USE_PROTOS
static int yy_flex_strlen( yyconst char *s )
#else
static int yy_flex_strlen( s )
yyconst char *s;
#endif
{
register int n;
for ( n = 0; s[n]; ++n )
;
return n;
}
#endif
#ifdef YY_USE_PROTOS
static void *yy_flex_alloc( yy_size_t size )
#else
static void *yy_flex_alloc( size )
yy_size_t size;
#endif
{
return (void *) malloc( size );
}
#ifdef YY_USE_PROTOS
static void *yy_flex_realloc( void *ptr, yy_size_t size )
#else
static void *yy_flex_realloc( ptr, size )
void *ptr;
yy_size_t size;
#endif
{
return (void *) realloc( (char *) ptr, size );
}
#ifdef YY_USE_PROTOS
static void yy_flex_free( void *ptr )
#else
static void yy_flex_free( ptr )
void *ptr;
#endif
{
free( ptr );
}
#if defined(YY_MAIN) && YY_MAIN
int main()
{
yylex();
return 0;
}
#endif
#line 559 "toke.l"
static unsigned char
hexchar(s)
const char *s;
{
int i;
int result = 0;
s += 2;
for (i = 0; i < 2; i++) {
switch (*s) {
case 'A':
case 'a':
result += 10;
break;
case 'B':
case 'b':
result += 11;
break;
case 'C':
case 'c':
result += 12;
break;
case 'D':
case 'd':
result += 13;
break;
case 'E':
case 'e':
result += 14;
break;
case 'F':
case 'f':
result += 15;
break;
default:
result += *s - '0';
break;
}
if (i == 0) {
result *= 16;
s++;
}
}
return((unsigned char)result);
}
static int
_fill(src, len, olen)
char *src;
int len, olen;
{
char *dst;
dst = olen ? realloc(yylval.string, olen + len + 1) : malloc(len + 1);
if (dst == NULL) {
yyerror("unable to allocate memory");
return(FALSE);
}
yylval.string = dst;
dst += olen;
while (len--) {
if (*src == '\\' && len) {
if (src[1] == 'x' && len >= 3 &&
isxdigit((unsigned char) src[2]) &&
isxdigit((unsigned char) src[3])) {
*dst++ = hexchar(src);
src += 4;
len -= 3;
} else {
src++;
len--;
*dst++ = *src++;
}
} else {
*dst++ = *src++;
}
}
*dst = '\0';
return(TRUE);
}
static int
append(src, len)
char *src;
int len;
{
int olen = 0;
if (yylval.string != NULL)
olen = strlen(yylval.string);
return(_fill(src, len, olen));
}
#define SPECIAL(c) \
((c) == ',' || (c) == ':' || (c) == '=' || (c) == ' ' || (c) == '\t' || (c) == '#')
static int
fill_cmnd(src, len)
char *src;
int len;
{
char *dst;
int i;
arg_len = arg_size = 0;
dst = yylval.command.cmnd = (char *) malloc(len + 1);
if (yylval.command.cmnd == NULL) {
yyerror("unable to allocate memory");
return(FALSE);
}
for (i = 0; i < len; i++) {
if (src[i] == '\\' && i != len - 1 && SPECIAL(src[i + 1]))
*dst++ = src[++i];
else
*dst++ = src[i];
}
*dst = '\0';
yylval.command.args = NULL;
return(TRUE);
}
static int
fill_args(s, len, addspace)
char *s;
int len;
int addspace;
{
int new_len;
char *p;
if (yylval.command.args == NULL) {
addspace = 0;
new_len = len;
} else
new_len = arg_len + len + addspace;
if (new_len >= arg_size) {
while (new_len >= (arg_size += COMMANDARGINC))
;
p = yylval.command.args ?
(char *) realloc(yylval.command.args, arg_size) :
(char *) malloc(arg_size);
if (p == NULL) {
efree(yylval.command.args);
yyerror("unable to allocate memory");
return(FALSE);
} else
yylval.command.args = p;
}
p = yylval.command.args + arg_len;
if (addspace)
*p++ = ' ';
if (strlcpy(p, s, arg_size - (p - yylval.command.args)) != len) {
yyerror("fill_args: buffer overflow");
return(FALSE);
}
arg_len = new_len;
return(TRUE);
}
struct path_list {
char *path;
struct path_list *next;
};
struct include_stack {
YY_BUFFER_STATE bs;
char *path;
struct path_list *more;
int lineno;
int keepopen;
};
static int
pl_compare(v1, v2)
const void *v1;
const void *v2;
{
const struct path_list * const *p1 = v1;
const struct path_list * const *p2 = v2;
return(strcmp((*p1)->path, (*p2)->path));
}
static char *
switch_dir(stack, dirpath)
struct include_stack *stack;
char *dirpath;
{
DIR *dir;
int i, count = 0;
char *path = NULL;
struct dirent *dent;
struct stat sb;
struct path_list *pl, *first = NULL;
struct path_list **sorted = NULL;
if (!(dir = opendir(dirpath))) {
yyerror(dirpath);
return(NULL);
}
while ((dent = readdir(dir))) {
if (dent->d_name[0] == '\0' || dent->d_name[NAMLEN(dent) - 1] == '~'
|| strchr(dent->d_name, '.') != NULL) {
continue;
}
if (asprintf(&path, "%s/%s", dirpath, dent->d_name) == -1) {
closedir(dir);
goto bad;
}
if (stat(path, &sb) != 0 || !S_ISREG(sb.st_mode)) {
efree(path);
continue;
}
pl = malloc(sizeof(*pl));
if (pl == NULL)
goto bad;
pl->path = path;
pl->next = first;
first = pl;
count++;
}
closedir(dir);
if (count == 0)
goto done;
sorted = malloc(sizeof(*sorted) * count);
if (sorted == NULL)
goto bad;
pl = first;
for (i = 0; i < count; i++) {
sorted[i] = pl;
pl = pl->next;
}
qsort(sorted, count, sizeof(*sorted), pl_compare);
first = sorted[0];
sorted[count - 1]->next = NULL;
for (i = 1; i < count; i++)
sorted[i - 1]->next = sorted[i];
efree(sorted);
if (count) {
path = first->path;
pl = first->next;
efree(first);
stack->more = pl;
} else {
path = NULL;
}
done:
efree(dirpath);
return(path);
bad:
while (first != NULL) {
pl = first;
first = pl->next;
free(pl->path);
free(pl);
}
efree(sorted);
efree(dirpath);
efree(path);
return(NULL);
}
#define MAX_SUDOERS_DEPTH 128
#define SUDOERS_STACK_INCREMENT 16
static size_t istacksize, idepth;
static struct include_stack *istack;
static int keepopen;
void
init_lexer()
{
struct path_list *pl;
while (idepth) {
idepth--;
while ((pl = istack[idepth].more) != NULL) {
istack[idepth].more = pl->next;
efree(pl->path);
efree(pl);
}
efree(istack[idepth].path);
if (idepth && !istack[idepth].keepopen)
fclose(istack[idepth].bs->yy_input_file);
yy_delete_buffer(istack[idepth].bs);
}
efree(istack);
istack = NULL;
istacksize = idepth = 0;
keepopen = FALSE;
}
static int
_push_include(path, isdir)
char *path;
int isdir;
{
struct path_list *pl;
FILE *fp;
if (idepth >= istacksize) {
if (idepth > MAX_SUDOERS_DEPTH) {
yyerror("too many levels of includes");
return(FALSE);
}
istacksize += SUDOERS_STACK_INCREMENT;
istack = (struct include_stack *) realloc(istack,
sizeof(*istack) * istacksize);
if (istack == NULL) {
yyerror("unable to allocate memory");
return(FALSE);
}
}
if (isdir) {
if (!(path = switch_dir(&istack[idepth], path))) {
return(FALSE);
}
while ((fp = open_sudoers(path, FALSE, &keepopen)) == NULL) {
efree(path);
if ((pl = istack[idepth].more) == NULL)
return(FALSE);
path = pl->path;
istack[idepth].more = pl->next;
efree(pl);
}
} else {
if ((fp = open_sudoers(path, TRUE, &keepopen)) == NULL) {
yyerror(path);
return(FALSE);
}
istack[idepth].more = NULL;
}
istack[idepth].path = sudoers;
istack[idepth].bs = YY_CURRENT_BUFFER;
istack[idepth].lineno = sudolineno;
istack[idepth].keepopen = keepopen;
idepth++;
sudolineno = 1;
sudoers = path;
yy_switch_to_buffer(yy_create_buffer(fp, YY_BUF_SIZE));
return(TRUE);
}
static int
pop_include()
{
struct path_list *pl;
FILE *fp;
if (idepth == 0)
return(FALSE);
if (!keepopen)
fclose(YY_CURRENT_BUFFER->yy_input_file);
yy_delete_buffer(YY_CURRENT_BUFFER);
while ((pl = istack[idepth - 1].more) != NULL) {
fp = open_sudoers(pl->path, FALSE, &keepopen);
if (fp != NULL) {
istack[idepth - 1].more = pl->next;
efree(sudoers);
sudoers = pl->path;
sudolineno = 1;
yy_switch_to_buffer(yy_create_buffer(fp, YY_BUF_SIZE));
efree(pl);
break;
}
istack[idepth - 1].more = pl->next;
efree(pl->path);
efree(pl);
}
if (pl == NULL) {
idepth--;
yy_switch_to_buffer(istack[idepth].bs);
efree(sudoers);
sudoers = istack[idepth].path;
sudolineno = istack[idepth].lineno;
keepopen = istack[idepth].keepopen;
}
return(TRUE);
}
static char *
parse_include(base)
char *base;
{
char *cp, *ep, *path;
int len = 0, subst = 0;
size_t shost_len = 0;
cp = base + sizeof("#include");
if (*cp == 'i')
cp += 3;
while (isblank((unsigned char) *cp))
cp++;
ep = cp;
while (*ep != '\0' && !isspace((unsigned char) *ep)) {
if (ep[0] == '%' && ep[1] == 'h') {
shost_len = strlen(user_shost);
len += shost_len - 2;
subst = 1;
}
ep++;
}
len += (int)(ep - cp);
if ((path = malloc(len + 1)) == NULL)
yyerror("unable to allocate memory");
if (subst) {
char *pp = path;
while (cp < ep) {
if (cp[0] == '%' && cp[1] == 'h') {
memcpy(pp, user_shost, shost_len);
pp += shost_len;
cp += 2;
continue;
}
*pp++ = *cp++;
}
*pp = '\0';
} else {
memcpy(path, cp, len);
path[len] = '\0';
}
if (*ep != '\0')
yyless((int)(ep - base));
return(path);
}
static int
ipv6_valid(s)
const char *s;
{
int nmatch = 0;
for (; *s != '\0'; s++) {
if (s[0] == ':' && s[1] == ':') {
if (++nmatch > 1)
break;
}
if (s[0] == '/')
nmatch = 0;
}
return (nmatch <= 1);
}