Coverage Report

Created: 2025-11-24 06:15

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/libpcap/build/grammar.c
Line
Count
Source
1
/* A Bison parser, made by GNU Bison 3.5.1.  */
2
3
/* Bison implementation for Yacc-like parsers in C
4
5
   Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2020 Free Software Foundation,
6
   Inc.
7
8
   This program is free software: you can redistribute it and/or modify
9
   it under the terms of the GNU General Public License as published by
10
   the Free Software Foundation, either version 3 of the License, or
11
   (at your option) any later version.
12
13
   This program is distributed in the hope that it will be useful,
14
   but WITHOUT ANY WARRANTY; without even the implied warranty of
15
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
   GNU General Public License for more details.
17
18
   You should have received a copy of the GNU General Public License
19
   along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
20
21
/* As a special exception, you may create a larger work that contains
22
   part or all of the Bison parser skeleton and distribute that work
23
   under terms of your choice, so long as that work isn't itself a
24
   parser generator using the skeleton or a modified version thereof
25
   as a parser skeleton.  Alternatively, if you modify or redistribute
26
   the parser skeleton itself, you may (at your option) remove this
27
   special exception, which will cause the skeleton and the resulting
28
   Bison output files to be licensed under the GNU General Public
29
   License without this special exception.
30
31
   This special exception was added by the Free Software Foundation in
32
   version 2.2 of Bison.  */
33
34
/* C LALR(1) parser skeleton written by Richard Stallman, by
35
   simplifying the original so-called "semantic" parser.  */
36
37
/* All symbols defined below should begin with yy or YY, to avoid
38
   infringing on user name space.  This should be done even for local
39
   variables, as they might otherwise be expanded by user macros.
40
   There are some unavoidable exceptions within include files to
41
   define necessary library symbols; they are noted "INFRINGES ON
42
   USER NAME SPACE" below.  */
43
44
/* Undocumented macros, especially those whose name start with YY_,
45
   are private implementation details.  Do not rely on them.  */
46
47
/* Identify Bison output.  */
48
#define YYBISON 1
49
50
/* Bison version.  */
51
#define YYBISON_VERSION "3.5.1"
52
53
/* Skeleton name.  */
54
#define YYSKELETON_NAME "yacc.c"
55
56
/* Pure parsers.  */
57
#define YYPURE 1
58
59
/* Push parsers.  */
60
#define YYPUSH 0
61
62
/* Pull parsers.  */
63
#define YYPULL 1
64
65
66
/* Substitute the variable and function names.  */
67
#define yyparse         pcap_parse
68
180k
#define yylex           pcap_lex
69
2.11k
#define yyerror         pcap_error
70
#define yydebug         pcap_debug
71
21.9k
#define yynerrs         pcap_nerrs
72
73
/* First part of user prologue.  */
74
#line 47 "/src/libpcap/build/grammar.y"
75
76
/*
77
 * Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996
78
 *  The Regents of the University of California.  All rights reserved.
79
 *
80
 * Redistribution and use in source and binary forms, with or without
81
 * modification, are permitted provided that: (1) source code distributions
82
 * retain the above copyright notice and this paragraph in its entirety, (2)
83
 * distributions including binary code include the above copyright notice and
84
 * this paragraph in its entirety in the documentation or other materials
85
 * provided with the distribution, and (3) all advertising materials mentioning
86
 * features or use of this software display the following acknowledgement:
87
 * ``This product includes software developed by the University of California,
88
 * Lawrence Berkeley Laboratory and its contributors.'' Neither the name of
89
 * the University nor the names of its contributors may be used to endorse
90
 * or promote products derived from this software without specific prior
91
 * written permission.
92
 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
93
 * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
94
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
95
 *
96
 */
97
98
#include <config.h>
99
100
/*
101
 * grammar.h requires gencode.h and sometimes breaks in a polluted namespace
102
 * (see ftmacros.h), so include it early.
103
 */
104
#include "gencode.h"
105
#include "grammar.h"
106
107
#include <stdlib.h>
108
109
#include <stdio.h>
110
111
#include "diag-control.h"
112
113
#include "pcap-int.h"
114
115
#include "scanner.h"
116
117
#include "llc.h"
118
#include "ieee80211.h"
119
#include "pflog.h"
120
#include <pcap/namedb.h>
121
122
#ifdef HAVE_OS_PROTO_H
123
#include "os-proto.h"
124
#endif
125
126
/*
127
 * Work around some bugs in Berkeley YACC prior to the 2017-07-09
128
 * release.
129
 *
130
 * The 2005-05-05 release was the first one to define YYPATCH, so
131
 * we treat any release that either 1) doesn't define YYPATCH or
132
 * 2) defines it to a value < 20170709 as being buggy.
133
 */
134
#if defined(YYBYACC) && (!defined(YYPATCH) || YYPATCH < 20170709)
135
/*
136
 * Both Berkeley YACC and Bison define yydebug (under whatever name
137
 * it has) as a global, but Bison does so only if YYDEBUG is defined.
138
 * Berkeley YACC, prior to the 2017-07-09 release, defines it even if
139
 * YYDEBUG isn't defined; declare it here to suppress a warning.  The
140
 * 2017-07-09 release fixes that.
141
 */
142
#if !defined(YYDEBUG)
143
extern int yydebug;
144
#endif
145
146
/*
147
 * In Berkeley YACC, prior to the 2017-07-09 release, yynerrs (under
148
 * whatever name it has) is global, even if it's building a reentrant
149
 * parser.  In Bison, and in the Berkeley YACC 2017-07-09 release and
150
 * later, it's local in reentrant parsers.
151
 *
152
 * Declare it to squelch a warning.
153
 */
154
extern int yynerrs;
155
#endif
156
157
5.58k
#define QSET(q, p, d, a) (q).proto = (unsigned char)(p),\
158
5.58k
       (q).dir = (unsigned char)(d),\
159
5.58k
       (q).addr = (unsigned char)(a)
160
161
struct tok {
162
  int v;      /* value */
163
  const char *s;    /* string */
164
};
165
166
static const struct tok ieee80211_types[] = {
167
  { IEEE80211_FC0_TYPE_DATA, "data" },
168
  { IEEE80211_FC0_TYPE_MGT, "mgt" },
169
  { IEEE80211_FC0_TYPE_MGT, "management" },
170
  { IEEE80211_FC0_TYPE_CTL, "ctl" },
171
  { IEEE80211_FC0_TYPE_CTL, "control" },
172
  { 0, NULL }
173
};
174
static const struct tok ieee80211_mgt_subtypes[] = {
175
  { IEEE80211_FC0_SUBTYPE_ASSOC_REQ, "assocreq" },
176
  { IEEE80211_FC0_SUBTYPE_ASSOC_REQ, "assoc-req" },
177
  { IEEE80211_FC0_SUBTYPE_ASSOC_RESP, "assocresp" },
178
  { IEEE80211_FC0_SUBTYPE_ASSOC_RESP, "assoc-resp" },
179
  { IEEE80211_FC0_SUBTYPE_REASSOC_REQ, "reassocreq" },
180
  { IEEE80211_FC0_SUBTYPE_REASSOC_REQ, "reassoc-req" },
181
  { IEEE80211_FC0_SUBTYPE_REASSOC_RESP, "reassocresp" },
182
  { IEEE80211_FC0_SUBTYPE_REASSOC_RESP, "reassoc-resp" },
183
  { IEEE80211_FC0_SUBTYPE_PROBE_REQ, "probereq" },
184
  { IEEE80211_FC0_SUBTYPE_PROBE_REQ, "probe-req" },
185
  { IEEE80211_FC0_SUBTYPE_PROBE_RESP, "proberesp" },
186
  { IEEE80211_FC0_SUBTYPE_PROBE_RESP, "probe-resp" },
187
  { IEEE80211_FC0_SUBTYPE_BEACON, "beacon" },
188
  { IEEE80211_FC0_SUBTYPE_ATIM, "atim" },
189
  { IEEE80211_FC0_SUBTYPE_DISASSOC, "disassoc" },
190
  { IEEE80211_FC0_SUBTYPE_DISASSOC, "disassociation" },
191
  { IEEE80211_FC0_SUBTYPE_AUTH, "auth" },
192
  { IEEE80211_FC0_SUBTYPE_AUTH, "authentication" },
193
  { IEEE80211_FC0_SUBTYPE_DEAUTH, "deauth" },
194
  { IEEE80211_FC0_SUBTYPE_DEAUTH, "deauthentication" },
195
  { 0, NULL }
196
};
197
static const struct tok ieee80211_ctl_subtypes[] = {
198
  { IEEE80211_FC0_SUBTYPE_BAR, "bar" },
199
  { IEEE80211_FC0_SUBTYPE_BA, "ba" },
200
  { IEEE80211_FC0_SUBTYPE_PS_POLL, "ps-poll" },
201
  { IEEE80211_FC0_SUBTYPE_RTS, "rts" },
202
  { IEEE80211_FC0_SUBTYPE_CTS, "cts" },
203
  { IEEE80211_FC0_SUBTYPE_ACK, "ack" },
204
  { IEEE80211_FC0_SUBTYPE_CF_END, "cf-end" },
205
  { IEEE80211_FC0_SUBTYPE_CF_END_ACK, "cf-end-ack" },
206
  { 0, NULL }
207
};
208
static const struct tok ieee80211_data_subtypes[] = {
209
  { IEEE80211_FC0_SUBTYPE_DATA, "data" },
210
  { IEEE80211_FC0_SUBTYPE_CF_ACK, "data-cf-ack" },
211
  { IEEE80211_FC0_SUBTYPE_CF_POLL, "data-cf-poll" },
212
  { IEEE80211_FC0_SUBTYPE_CF_ACPL, "data-cf-ack-poll" },
213
  { IEEE80211_FC0_SUBTYPE_NODATA, "null" },
214
  { IEEE80211_FC0_SUBTYPE_NODATA_CF_ACK, "cf-ack" },
215
  { IEEE80211_FC0_SUBTYPE_NODATA_CF_POLL, "cf-poll"  },
216
  { IEEE80211_FC0_SUBTYPE_NODATA_CF_ACPL, "cf-ack-poll" },
217
  { IEEE80211_FC0_SUBTYPE_QOS|IEEE80211_FC0_SUBTYPE_DATA, "qos-data" },
218
  { IEEE80211_FC0_SUBTYPE_QOS|IEEE80211_FC0_SUBTYPE_CF_ACK, "qos-data-cf-ack" },
219
  { IEEE80211_FC0_SUBTYPE_QOS|IEEE80211_FC0_SUBTYPE_CF_POLL, "qos-data-cf-poll" },
220
  { IEEE80211_FC0_SUBTYPE_QOS|IEEE80211_FC0_SUBTYPE_CF_ACPL, "qos-data-cf-ack-poll" },
221
  { IEEE80211_FC0_SUBTYPE_QOS|IEEE80211_FC0_SUBTYPE_NODATA, "qos" },
222
  { IEEE80211_FC0_SUBTYPE_QOS|IEEE80211_FC0_SUBTYPE_NODATA_CF_POLL, "qos-cf-poll" },
223
  { IEEE80211_FC0_SUBTYPE_QOS|IEEE80211_FC0_SUBTYPE_NODATA_CF_ACPL, "qos-cf-ack-poll" },
224
  { 0, NULL }
225
};
226
static const struct tok llc_s_subtypes[] = {
227
  { LLC_RR, "rr" },
228
  { LLC_RNR, "rnr" },
229
  { LLC_REJ, "rej" },
230
  { 0, NULL }
231
};
232
static const struct tok llc_u_subtypes[] = {
233
  { LLC_UI, "ui" },
234
  { LLC_UA, "ua" },
235
  { LLC_DISC, "disc" },
236
  { LLC_DM, "dm" },
237
  { LLC_SABME, "sabme" },
238
  { LLC_TEST, "test" },
239
  { LLC_XID, "xid" },
240
  { LLC_FRMR, "frmr" },
241
  { 0, NULL }
242
};
243
struct type2tok {
244
  int type;
245
  const struct tok *tok;
246
};
247
static const struct type2tok ieee80211_type_subtypes[] = {
248
  { IEEE80211_FC0_TYPE_MGT, ieee80211_mgt_subtypes },
249
  { IEEE80211_FC0_TYPE_CTL, ieee80211_ctl_subtypes },
250
  { IEEE80211_FC0_TYPE_DATA, ieee80211_data_subtypes },
251
  { 0, NULL }
252
};
253
254
static int
255
str2tok(const char *str, const struct tok *toks)
256
475
{
257
475
  int i;
258
259
2.31k
  for (i = 0; toks[i].s != NULL; i++) {
260
2.06k
    if (pcapint_strcasecmp(toks[i].s, str) == 0) {
261
      /*
262
       * Just in case somebody is using this to
263
       * generate values of -1/0xFFFFFFFF.
264
       * That won't work, as it's indistinguishable
265
       * from an error.
266
       */
267
221
      if (toks[i].v == -1)
268
0
        abort();
269
221
      return (toks[i].v);
270
221
    }
271
2.06k
  }
272
254
  return (-1);
273
475
}
274
275
static const struct qual qerr = { Q_UNDEF, Q_UNDEF, Q_UNDEF, Q_UNDEF };
276
277
static void
278
yyerror(void *yyscanner _U_, compiler_state_t *cstate, const char *msg)
279
2.11k
{
280
2.11k
  bpf_set_error(cstate, "can't parse filter expression: %s", msg);
281
2.11k
}
282
283
static const struct tok pflog_reasons[] = {
284
  { PFRES_MATCH,    "match" },
285
  { PFRES_BADOFF,   "bad-offset" },
286
  { PFRES_FRAG,   "fragment" },
287
  { PFRES_SHORT,    "short" },
288
  { PFRES_NORM,   "normalize" },
289
  { PFRES_MEMORY,   "memory" },
290
  { PFRES_TS,   "bad-timestamp" },
291
  { PFRES_CONGEST,  "congestion" },
292
  { PFRES_IPOPTIONS,  "ip-option" },
293
  { PFRES_PROTCKSUM,  "proto-cksum" },
294
  { PFRES_BADSTATE, "state-mismatch" },
295
  { PFRES_STATEINS, "state-insert" },
296
  { PFRES_MAXSTATES,  "state-limit" },
297
  { PFRES_SRCLIMIT, "src-limit" },
298
  { PFRES_SYNPROXY, "synproxy" },
299
#if defined(__FreeBSD__)
300
  { PFRES_MAPFAILED,  "map-failed" },
301
#elif defined(__NetBSD__)
302
  { PFRES_STATELOCKED,  "state-locked" },
303
#elif defined(__OpenBSD__)
304
  { PFRES_TRANSLATE,  "translate" },
305
  { PFRES_NOROUTE,  "no-route" },
306
#elif defined(__APPLE__)
307
  { PFRES_DUMMYNET, "dummynet" },
308
#endif
309
  { 0, NULL }
310
};
311
312
static int
313
pfreason_to_num(compiler_state_t *cstate, const char *reason)
314
6
{
315
6
  int i;
316
317
6
  i = str2tok(reason, pflog_reasons);
318
6
  if (i == -1)
319
6
    bpf_set_error(cstate, "unknown PF reason \"%s\"", reason);
320
6
  return (i);
321
6
}
322
323
static const struct tok pflog_actions[] = {
324
  { PF_PASS,    "pass" },
325
  { PF_PASS,    "accept" }, /* alias for "pass" */
326
  { PF_DROP,    "drop" },
327
  { PF_DROP,    "block" },  /* alias for "drop" */
328
  { PF_SCRUB,   "scrub" },
329
  { PF_NOSCRUB,   "noscrub" },
330
  { PF_NAT,   "nat" },
331
  { PF_NONAT,   "nonat" },
332
  { PF_BINAT,   "binat" },
333
  { PF_NOBINAT,   "nobinat" },
334
  { PF_RDR,   "rdr" },
335
  { PF_NORDR,   "nordr" },
336
  { PF_SYNPROXY_DROP, "synproxy-drop" },
337
#if defined(__FreeBSD__)
338
  { PF_DEFER,   "defer" },
339
#elif defined(__OpenBSD__)
340
  { PF_DEFER,   "defer" },
341
  { PF_MATCH,   "match" },
342
  { PF_DIVERT,    "divert" },
343
  { PF_RT,    "rt" },
344
  { PF_AFRT,    "afrt" },
345
#elif defined(__APPLE__)
346
  { PF_DUMMYNET,    "dummynet" },
347
  { PF_NODUMMYNET,  "nodummynet" },
348
  { PF_NAT64,   "nat64" },
349
  { PF_NONAT64,   "nonat64" },
350
#endif
351
  { 0, NULL },
352
};
353
354
static int
355
pfaction_to_num(compiler_state_t *cstate, const char *action)
356
8
{
357
8
  int i;
358
359
8
  i = str2tok(action, pflog_actions);
360
8
  if (i == -1)
361
6
    bpf_set_error(cstate, "unknown PF action \"%s\"", action);
362
8
  return (i);
363
8
}
364
365
/*
366
 * For calls that might return an "an error occurred" value.
367
 */
368
6.68k
#define CHECK_INT_VAL(val)  if (val == -1) YYABORT
369
111k
#define CHECK_PTR_VAL(val)  if (val == NULL) YYABORT
370
371
DIAG_OFF_BISON_BYACC
372
373
#line 374 "/src/libpcap/build/grammar.c"
374
375
# ifndef YY_CAST
376
#  ifdef __cplusplus
377
#   define YY_CAST(Type, Val) static_cast<Type> (Val)
378
#   define YY_REINTERPRET_CAST(Type, Val) reinterpret_cast<Type> (Val)
379
#  else
380
554k
#   define YY_CAST(Type, Val) ((Type) (Val))
381
#   define YY_REINTERPRET_CAST(Type, Val) ((Type) (Val))
382
#  endif
383
# endif
384
# ifndef YY_NULLPTR
385
#  if defined __cplusplus
386
#   if 201103L <= __cplusplus
387
#    define YY_NULLPTR nullptr
388
#   else
389
#    define YY_NULLPTR 0
390
#   endif
391
#  else
392
#   define YY_NULLPTR ((void*)0)
393
#  endif
394
# endif
395
396
/* Enabling verbose error messages.  */
397
#ifdef YYERROR_VERBOSE
398
# undef YYERROR_VERBOSE
399
# define YYERROR_VERBOSE 1
400
#else
401
# define YYERROR_VERBOSE 0
402
#endif
403
404
/* Use api.header.include to #include this header
405
   instead of duplicating it here.  */
406
#ifndef YY_PCAP_SRC_LIBPCAP_BUILD_GRAMMAR_H_INCLUDED
407
# define YY_PCAP_SRC_LIBPCAP_BUILD_GRAMMAR_H_INCLUDED
408
/* Debug traces.  */
409
#ifndef YYDEBUG
410
# define YYDEBUG 0
411
#endif
412
#if YYDEBUG
413
extern int pcap_debug;
414
#endif
415
416
/* Token type.  */
417
#ifndef YYTOKENTYPE
418
# define YYTOKENTYPE
419
  enum yytokentype
420
  {
421
    DST = 258,
422
    SRC = 259,
423
    HOST = 260,
424
    GATEWAY = 261,
425
    NET = 262,
426
    NETMASK = 263,
427
    PORT = 264,
428
    PORTRANGE = 265,
429
    LESS = 266,
430
    GREATER = 267,
431
    PROTO = 268,
432
    PROTOCHAIN = 269,
433
    CBYTE = 270,
434
    ARP = 271,
435
    RARP = 272,
436
    IP = 273,
437
    SCTP = 274,
438
    TCP = 275,
439
    UDP = 276,
440
    ICMP = 277,
441
    IGMP = 278,
442
    IGRP = 279,
443
    PIM = 280,
444
    VRRP = 281,
445
    CARP = 282,
446
    ATALK = 283,
447
    AARP = 284,
448
    DECNET = 285,
449
    LAT = 286,
450
    SCA = 287,
451
    MOPRC = 288,
452
    MOPDL = 289,
453
    TK_BROADCAST = 290,
454
    TK_MULTICAST = 291,
455
    NUM = 292,
456
    INBOUND = 293,
457
    OUTBOUND = 294,
458
    IFINDEX = 295,
459
    PF_IFNAME = 296,
460
    PF_RSET = 297,
461
    PF_RNR = 298,
462
    PF_SRNR = 299,
463
    PF_REASON = 300,
464
    PF_ACTION = 301,
465
    TYPE = 302,
466
    SUBTYPE = 303,
467
    DIR = 304,
468
    ADDR1 = 305,
469
    ADDR2 = 306,
470
    ADDR3 = 307,
471
    ADDR4 = 308,
472
    RA = 309,
473
    TA = 310,
474
    LINK = 311,
475
    GEQ = 312,
476
    LEQ = 313,
477
    NEQ = 314,
478
    ID = 315,
479
    EID = 316,
480
    HID = 317,
481
    HID6 = 318,
482
    AID = 319,
483
    LSH = 320,
484
    RSH = 321,
485
    LEN = 322,
486
    IPV6 = 323,
487
    ICMPV6 = 324,
488
    AH = 325,
489
    ESP = 326,
490
    VLAN = 327,
491
    MPLS = 328,
492
    PPPOED = 329,
493
    PPPOES = 330,
494
    GENEVE = 331,
495
    VXLAN = 332,
496
    ISO = 333,
497
    ESIS = 334,
498
    CLNP = 335,
499
    ISIS = 336,
500
    L1 = 337,
501
    L2 = 338,
502
    IIH = 339,
503
    LSP = 340,
504
    SNP = 341,
505
    CSNP = 342,
506
    PSNP = 343,
507
    STP = 344,
508
    IPX = 345,
509
    NETBEUI = 346,
510
    LANE = 347,
511
    LLC = 348,
512
    METAC = 349,
513
    BCC = 350,
514
    SC = 351,
515
    ILMIC = 352,
516
    OAMF4EC = 353,
517
    OAMF4SC = 354,
518
    OAM = 355,
519
    OAMF4 = 356,
520
    CONNECTMSG = 357,
521
    METACONNECT = 358,
522
    VPI = 359,
523
    VCI = 360,
524
    RADIO = 361,
525
    FISU = 362,
526
    LSSU = 363,
527
    MSU = 364,
528
    HFISU = 365,
529
    HLSSU = 366,
530
    HMSU = 367,
531
    SIO = 368,
532
    OPC = 369,
533
    DPC = 370,
534
    SLS = 371,
535
    HSIO = 372,
536
    HOPC = 373,
537
    HDPC = 374,
538
    HSLS = 375,
539
    LEX_ERROR = 376,
540
    OR = 377,
541
    AND = 378,
542
    UMINUS = 379
543
  };
544
#endif
545
546
/* Value type.  */
547
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
548
union YYSTYPE
549
{
550
#line 346 "/src/libpcap/build/grammar.y"
551
552
  int i;
553
  bpf_u_int32 h;
554
  char *s;
555
  struct stmt *stmt;
556
  struct arth *a;
557
  struct {
558
    struct qual q;
559
    int atmfieldtype;
560
    int mtp3fieldtype;
561
    struct block *b;
562
  } blk;
563
  struct block *rblk;
564
565
#line 566 "/src/libpcap/build/grammar.c"
566
567
};
568
typedef union YYSTYPE YYSTYPE;
569
# define YYSTYPE_IS_TRIVIAL 1
570
# define YYSTYPE_IS_DECLARED 1
571
#endif
572
573
574
575
int pcap_parse (void *yyscanner, compiler_state_t *cstate);
576
577
#endif /* !YY_PCAP_SRC_LIBPCAP_BUILD_GRAMMAR_H_INCLUDED  */
578
579
580
581
#ifdef short
582
# undef short
583
#endif
584
585
/* On compilers that do not define __PTRDIFF_MAX__ etc., make sure
586
   <limits.h> and (if available) <stdint.h> are included
587
   so that the code can choose integer types of a good width.  */
588
589
#ifndef __PTRDIFF_MAX__
590
# include <limits.h> /* INFRINGES ON USER NAME SPACE */
591
# if defined __STDC_VERSION__ && 199901 <= __STDC_VERSION__
592
#  include <stdint.h> /* INFRINGES ON USER NAME SPACE */
593
#  define YY_STDINT_H
594
# endif
595
#endif
596
597
/* Narrow types that promote to a signed type and that can represent a
598
   signed or unsigned integer of at least N bits.  In tables they can
599
   save space and decrease cache pressure.  Promoting to a signed type
600
   helps avoid bugs in integer arithmetic.  */
601
602
#ifdef __INT_LEAST8_MAX__
603
typedef __INT_LEAST8_TYPE__ yytype_int8;
604
#elif defined YY_STDINT_H
605
typedef int_least8_t yytype_int8;
606
#else
607
typedef signed char yytype_int8;
608
#endif
609
610
#ifdef __INT_LEAST16_MAX__
611
typedef __INT_LEAST16_TYPE__ yytype_int16;
612
#elif defined YY_STDINT_H
613
typedef int_least16_t yytype_int16;
614
#else
615
typedef short yytype_int16;
616
#endif
617
618
#if defined __UINT_LEAST8_MAX__ && __UINT_LEAST8_MAX__ <= __INT_MAX__
619
typedef __UINT_LEAST8_TYPE__ yytype_uint8;
620
#elif (!defined __UINT_LEAST8_MAX__ && defined YY_STDINT_H \
621
       && UINT_LEAST8_MAX <= INT_MAX)
622
typedef uint_least8_t yytype_uint8;
623
#elif !defined __UINT_LEAST8_MAX__ && UCHAR_MAX <= INT_MAX
624
typedef unsigned char yytype_uint8;
625
#else
626
typedef short yytype_uint8;
627
#endif
628
629
#if defined __UINT_LEAST16_MAX__ && __UINT_LEAST16_MAX__ <= __INT_MAX__
630
typedef __UINT_LEAST16_TYPE__ yytype_uint16;
631
#elif (!defined __UINT_LEAST16_MAX__ && defined YY_STDINT_H \
632
       && UINT_LEAST16_MAX <= INT_MAX)
633
typedef uint_least16_t yytype_uint16;
634
#elif !defined __UINT_LEAST16_MAX__ && USHRT_MAX <= INT_MAX
635
typedef unsigned short yytype_uint16;
636
#else
637
typedef int yytype_uint16;
638
#endif
639
640
#ifndef YYPTRDIFF_T
641
# if defined __PTRDIFF_TYPE__ && defined __PTRDIFF_MAX__
642
13.1k
#  define YYPTRDIFF_T __PTRDIFF_TYPE__
643
#  define YYPTRDIFF_MAXIMUM __PTRDIFF_MAX__
644
# elif defined PTRDIFF_MAX
645
#  ifndef ptrdiff_t
646
#   include <stddef.h> /* INFRINGES ON USER NAME SPACE */
647
#  endif
648
#  define YYPTRDIFF_T ptrdiff_t
649
#  define YYPTRDIFF_MAXIMUM PTRDIFF_MAX
650
# else
651
#  define YYPTRDIFF_T long
652
#  define YYPTRDIFF_MAXIMUM LONG_MAX
653
# endif
654
#endif
655
656
#ifndef YYSIZE_T
657
# ifdef __SIZE_TYPE__
658
#  define YYSIZE_T __SIZE_TYPE__
659
# elif defined size_t
660
#  define YYSIZE_T size_t
661
# elif defined __STDC_VERSION__ && 199901 <= __STDC_VERSION__
662
#  include <stddef.h> /* INFRINGES ON USER NAME SPACE */
663
#  define YYSIZE_T size_t
664
# else
665
#  define YYSIZE_T unsigned
666
# endif
667
#endif
668
669
#define YYSIZE_MAXIMUM                                  \
670
  YY_CAST (YYPTRDIFF_T,                                 \
671
           (YYPTRDIFF_MAXIMUM < YY_CAST (YYSIZE_T, -1)  \
672
            ? YYPTRDIFF_MAXIMUM                         \
673
            : YY_CAST (YYSIZE_T, -1)))
674
675
36
#define YYSIZEOF(X) YY_CAST (YYPTRDIFF_T, sizeof (X))
676
677
/* Stored state numbers (used for stacks). */
678
typedef yytype_int16 yy_state_t;
679
680
/* State numbers in computations.  */
681
typedef int yy_state_fast_t;
682
683
#ifndef YY_
684
# if defined YYENABLE_NLS && YYENABLE_NLS
685
#  if ENABLE_NLS
686
#   include <libintl.h> /* INFRINGES ON USER NAME SPACE */
687
#   define YY_(Msgid) dgettext ("bison-runtime", Msgid)
688
#  endif
689
# endif
690
# ifndef YY_
691
2.11k
#  define YY_(Msgid) Msgid
692
# endif
693
#endif
694
695
#ifndef YY_ATTRIBUTE_PURE
696
# if defined __GNUC__ && 2 < __GNUC__ + (96 <= __GNUC_MINOR__)
697
#  define YY_ATTRIBUTE_PURE __attribute__ ((__pure__))
698
# else
699
#  define YY_ATTRIBUTE_PURE
700
# endif
701
#endif
702
703
#ifndef YY_ATTRIBUTE_UNUSED
704
# if defined __GNUC__ && 2 < __GNUC__ + (7 <= __GNUC_MINOR__)
705
#  define YY_ATTRIBUTE_UNUSED __attribute__ ((__unused__))
706
# else
707
#  define YY_ATTRIBUTE_UNUSED
708
# endif
709
#endif
710
711
/* Suppress unused-variable warnings by "using" E.  */
712
#if ! defined lint || defined __GNUC__
713
141k
# define YYUSE(E) ((void) (E))
714
#else
715
# define YYUSE(E) /* empty */
716
#endif
717
718
#if defined __GNUC__ && ! defined __ICC && 407 <= __GNUC__ * 100 + __GNUC_MINOR__
719
/* Suppress an incorrect diagnostic about yylval being uninitialized.  */
720
# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN                            \
721
    _Pragma ("GCC diagnostic push")                                     \
722
    _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"")              \
723
    _Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"")
724
# define YY_IGNORE_MAYBE_UNINITIALIZED_END      \
725
    _Pragma ("GCC diagnostic pop")
726
#else
727
26.2k
# define YY_INITIAL_VALUE(Value) Value
728
#endif
729
#ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
730
# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
731
# define YY_IGNORE_MAYBE_UNINITIALIZED_END
732
#endif
733
#ifndef YY_INITIAL_VALUE
734
# define YY_INITIAL_VALUE(Value) /* Nothing. */
735
#endif
736
737
#if defined __cplusplus && defined __GNUC__ && ! defined __ICC && 6 <= __GNUC__
738
# define YY_IGNORE_USELESS_CAST_BEGIN                          \
739
    _Pragma ("GCC diagnostic push")                            \
740
    _Pragma ("GCC diagnostic ignored \"-Wuseless-cast\"")
741
# define YY_IGNORE_USELESS_CAST_END            \
742
    _Pragma ("GCC diagnostic pop")
743
#endif
744
#ifndef YY_IGNORE_USELESS_CAST_BEGIN
745
# define YY_IGNORE_USELESS_CAST_BEGIN
746
# define YY_IGNORE_USELESS_CAST_END
747
#endif
748
749
750
554k
#define YY_ASSERT(E) ((void) (0 && (E)))
751
752
#if ! defined yyoverflow || YYERROR_VERBOSE
753
754
/* The parser invokes alloca or malloc; define the necessary symbols.  */
755
756
# ifdef YYSTACK_USE_ALLOCA
757
#  if YYSTACK_USE_ALLOCA
758
#   ifdef __GNUC__
759
#    define YYSTACK_ALLOC __builtin_alloca
760
#   elif defined __BUILTIN_VA_ARG_INCR
761
#    include <alloca.h> /* INFRINGES ON USER NAME SPACE */
762
#   elif defined _AIX
763
#    define YYSTACK_ALLOC __alloca
764
#   elif defined _MSC_VER
765
#    include <malloc.h> /* INFRINGES ON USER NAME SPACE */
766
#    define alloca _alloca
767
#   else
768
#    define YYSTACK_ALLOC alloca
769
#    if ! defined _ALLOCA_H && ! defined EXIT_SUCCESS
770
#     include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
771
      /* Use EXIT_SUCCESS as a witness for stdlib.h.  */
772
#     ifndef EXIT_SUCCESS
773
#      define EXIT_SUCCESS 0
774
#     endif
775
#    endif
776
#   endif
777
#  endif
778
# endif
779
780
# ifdef YYSTACK_ALLOC
781
   /* Pacify GCC's 'empty if-body' warning.  */
782
#  define YYSTACK_FREE(Ptr) do { /* empty */; } while (0)
783
#  ifndef YYSTACK_ALLOC_MAXIMUM
784
    /* The OS might guarantee only one guard page at the bottom of the stack,
785
       and a page size can be as small as 4096 bytes.  So we cannot safely
786
       invoke alloca (N) if N exceeds 4096.  Use a slightly smaller number
787
       to allow for a few compiler-allocated temporary stack slots.  */
788
#   define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */
789
#  endif
790
# else
791
#  define YYSTACK_ALLOC YYMALLOC
792
6
#  define YYSTACK_FREE YYFREE
793
#  ifndef YYSTACK_ALLOC_MAXIMUM
794
#   define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM
795
#  endif
796
#  if (defined __cplusplus && ! defined EXIT_SUCCESS \
797
       && ! ((defined YYMALLOC || defined malloc) \
798
             && (defined YYFREE || defined free)))
799
#   include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
800
#   ifndef EXIT_SUCCESS
801
#    define EXIT_SUCCESS 0
802
#   endif
803
#  endif
804
#  ifndef YYMALLOC
805
#   define YYMALLOC malloc
806
#   if ! defined malloc && ! defined EXIT_SUCCESS
807
void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */
808
#   endif
809
#  endif
810
#  ifndef YYFREE
811
6
#   define YYFREE free
812
#   if ! defined free && ! defined EXIT_SUCCESS
813
void free (void *); /* INFRINGES ON USER NAME SPACE */
814
#   endif
815
#  endif
816
# endif
817
#endif /* ! defined yyoverflow || YYERROR_VERBOSE */
818
819
820
#if (! defined yyoverflow \
821
     && (! defined __cplusplus \
822
         || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))
823
824
/* A type that is properly aligned for any stack member.  */
825
union yyalloc
826
{
827
  yy_state_t yyss_alloc;
828
  YYSTYPE yyvs_alloc;
829
};
830
831
/* The size of the maximum gap between one aligned stack and the next.  */
832
12
# define YYSTACK_GAP_MAXIMUM (YYSIZEOF (union yyalloc) - 1)
833
834
/* The size of an array large to enough to hold all stacks, each with
835
   N elements.  */
836
# define YYSTACK_BYTES(N) \
837
     ((N) * (YYSIZEOF (yy_state_t) + YYSIZEOF (YYSTYPE)) \
838
      + YYSTACK_GAP_MAXIMUM)
839
840
# define YYCOPY_NEEDED 1
841
842
/* Relocate STACK from its old location to the new one.  The
843
   local variables YYSIZE and YYSTACKSIZE give the old and new number of
844
   elements in the stack, and YYPTR gives the new location of the
845
   stack.  Advance YYPTR to a properly aligned location for the next
846
   stack.  */
847
# define YYSTACK_RELOCATE(Stack_alloc, Stack)                           \
848
12
    do                                                                  \
849
12
      {                                                                 \
850
12
        YYPTRDIFF_T yynewbytes;                                         \
851
12
        YYCOPY (&yyptr->Stack_alloc, Stack, yysize);                    \
852
12
        Stack = &yyptr->Stack_alloc;                                    \
853
12
        yynewbytes = yystacksize * YYSIZEOF (*Stack) + YYSTACK_GAP_MAXIMUM; \
854
12
        yyptr += yynewbytes / YYSIZEOF (*yyptr);                        \
855
12
      }                                                                 \
856
12
    while (0)
857
858
#endif
859
860
#if defined YYCOPY_NEEDED && YYCOPY_NEEDED
861
/* Copy COUNT objects from SRC to DST.  The source and destination do
862
   not overlap.  */
863
# ifndef YYCOPY
864
#  if defined __GNUC__ && 1 < __GNUC__
865
#   define YYCOPY(Dst, Src, Count) \
866
12
      __builtin_memcpy (Dst, Src, YY_CAST (YYSIZE_T, (Count)) * sizeof (*(Src)))
867
#  else
868
#   define YYCOPY(Dst, Src, Count)              \
869
      do                                        \
870
        {                                       \
871
          YYPTRDIFF_T yyi;                      \
872
          for (yyi = 0; yyi < (Count); yyi++)   \
873
            (Dst)[yyi] = (Src)[yyi];            \
874
        }                                       \
875
      while (0)
876
#  endif
877
# endif
878
#endif /* !YYCOPY_NEEDED */
879
880
/* YYFINAL -- State number of the termination state.  */
881
554k
#define YYFINAL  3
882
/* YYLAST -- Last index in YYTABLE.  */
883
875k
#define YYLAST   773
884
885
/* YYNTOKENS -- Number of terminals.  */
886
362k
#define YYNTOKENS  142
887
/* YYNNTS -- Number of nonterminals.  */
888
#define YYNNTS  47
889
/* YYNRULES -- Number of rules.  */
890
#define YYNRULES  223
891
/* YYNSTATES -- Number of states.  */
892
#define YYNSTATES  298
893
894
0
#define YYUNDEFTOK  2
895
240k
#define YYMAXUTOK   379
896
897
898
/* YYTRANSLATE(TOKEN-NUM) -- Symbol number corresponding to TOKEN-NUM
899
   as returned by yylex, with out-of-bounds checking.  */
900
#define YYTRANSLATE(YYX)                                                \
901
242k
  (0 <= (YYX) && (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
902
903
/* YYTRANSLATE[TOKEN-NUM] -- Symbol number corresponding to TOKEN-NUM
904
   as returned by yylex.  */
905
static const yytype_uint8 yytranslate[] =
906
{
907
       0,     2,     2,     2,     2,     2,     2,     2,     2,     2,
908
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
909
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
910
       2,     2,     2,   124,     2,     2,     2,   140,   126,     2,
911
     133,   132,   129,   127,     2,   128,     2,   130,     2,     2,
912
       2,     2,     2,     2,     2,     2,     2,     2,   139,     2,
913
     136,   135,   134,     2,     2,     2,     2,     2,     2,     2,
914
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
915
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
916
       2,   137,     2,   138,   141,     2,     2,     2,     2,     2,
917
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
918
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
919
       2,     2,     2,     2,   125,     2,     2,     2,     2,     2,
920
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
921
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
922
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
923
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
924
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
925
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
926
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
927
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
928
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
929
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
930
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
931
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
932
       2,     2,     2,     2,     2,     2,     1,     2,     3,     4,
933
       5,     6,     7,     8,     9,    10,    11,    12,    13,    14,
934
      15,    16,    17,    18,    19,    20,    21,    22,    23,    24,
935
      25,    26,    27,    28,    29,    30,    31,    32,    33,    34,
936
      35,    36,    37,    38,    39,    40,    41,    42,    43,    44,
937
      45,    46,    47,    48,    49,    50,    51,    52,    53,    54,
938
      55,    56,    57,    58,    59,    60,    61,    62,    63,    64,
939
      65,    66,    67,    68,    69,    70,    71,    72,    73,    74,
940
      75,    76,    77,    78,    79,    80,    81,    82,    83,    84,
941
      85,    86,    87,    88,    89,    90,    91,    92,    93,    94,
942
      95,    96,    97,    98,    99,   100,   101,   102,   103,   104,
943
     105,   106,   107,   108,   109,   110,   111,   112,   113,   114,
944
     115,   116,   117,   118,   119,   120,   121,   122,   123,   131
945
};
946
947
#if YYDEBUG
948
  /* YYRLINE[YYN] -- Source line where rule number YYN was defined.  */
949
static const yytype_int16 yyrline[] =
950
{
951
       0,   420,   420,   432,   434,   436,   437,   438,   439,   440,
952
     442,   444,   446,   447,   449,   451,   452,   472,   492,   511,
953
     531,   551,   552,   553,   555,   557,   559,   560,   561,   563,
954
     565,   567,   568,   570,   571,   572,   573,   574,   582,   584,
955
     585,   586,   587,   589,   591,   592,   593,   594,   595,   596,
956
     599,   600,   603,   604,   605,   606,   607,   608,   609,   610,
957
     611,   612,   613,   614,   617,   618,   619,   620,   623,   625,
958
     626,   627,   628,   629,   630,   631,   632,   633,   634,   635,
959
     636,   637,   638,   639,   640,   641,   642,   643,   644,   645,
960
     646,   647,   648,   649,   650,   651,   652,   653,   654,   655,
961
     656,   657,   658,   659,   660,   661,   662,   663,   665,   666,
962
     667,   668,   669,   670,   671,   672,   673,   674,   675,   676,
963
     677,   678,   679,   680,   681,   682,   683,   684,   685,   686,
964
     689,   690,   691,   692,   693,   694,   697,   702,   705,   709,
965
     712,   718,   727,   733,   756,   773,   774,   798,   801,   807,
966
     823,   824,   827,   830,   831,   832,   834,   835,   836,   838,
967
     839,   841,   842,   843,   844,   845,   846,   847,   848,   849,
968
     850,   851,   852,   853,   854,   855,   857,   858,   859,   860,
969
     861,   863,   864,   866,   867,   868,   869,   870,   871,   872,
970
     874,   875,   876,   877,   880,   881,   883,   884,   885,   886,
971
     888,   895,   896,   899,   900,   901,   902,   903,   904,   907,
972
     908,   909,   910,   911,   912,   913,   914,   916,   917,   918,
973
     919,   921,   934,   935
974
};
975
#endif
976
977
#if YYDEBUG || YYERROR_VERBOSE || 0
978
/* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
979
   First, the terminals, then, starting at YYNTOKENS, nonterminals.  */
980
static const char *const yytname[] =
981
{
982
  "$end", "error", "$undefined", "DST", "SRC", "HOST", "GATEWAY", "NET",
983
  "NETMASK", "PORT", "PORTRANGE", "LESS", "GREATER", "PROTO", "PROTOCHAIN",
984
  "CBYTE", "ARP", "RARP", "IP", "SCTP", "TCP", "UDP", "ICMP", "IGMP",
985
  "IGRP", "PIM", "VRRP", "CARP", "ATALK", "AARP", "DECNET", "LAT", "SCA",
986
  "MOPRC", "MOPDL", "TK_BROADCAST", "TK_MULTICAST", "NUM", "INBOUND",
987
  "OUTBOUND", "IFINDEX", "PF_IFNAME", "PF_RSET", "PF_RNR", "PF_SRNR",
988
  "PF_REASON", "PF_ACTION", "TYPE", "SUBTYPE", "DIR", "ADDR1", "ADDR2",
989
  "ADDR3", "ADDR4", "RA", "TA", "LINK", "GEQ", "LEQ", "NEQ", "ID", "EID",
990
  "HID", "HID6", "AID", "LSH", "RSH", "LEN", "IPV6", "ICMPV6", "AH", "ESP",
991
  "VLAN", "MPLS", "PPPOED", "PPPOES", "GENEVE", "VXLAN", "ISO", "ESIS",
992
  "CLNP", "ISIS", "L1", "L2", "IIH", "LSP", "SNP", "CSNP", "PSNP", "STP",
993
  "IPX", "NETBEUI", "LANE", "LLC", "METAC", "BCC", "SC", "ILMIC",
994
  "OAMF4EC", "OAMF4SC", "OAM", "OAMF4", "CONNECTMSG", "METACONNECT", "VPI",
995
  "VCI", "RADIO", "FISU", "LSSU", "MSU", "HFISU", "HLSSU", "HMSU", "SIO",
996
  "OPC", "DPC", "SLS", "HSIO", "HOPC", "HDPC", "HSLS", "LEX_ERROR", "OR",
997
  "AND", "'!'", "'|'", "'&'", "'+'", "'-'", "'*'", "'/'", "UMINUS", "')'",
998
  "'('", "'>'", "'='", "'<'", "'['", "']'", "':'", "'%'", "'^'", "$accept",
999
  "prog", "null", "expr", "and", "or", "id", "nid", "not", "paren", "pid",
1000
  "qid", "term", "head", "rterm", "pqual", "dqual", "aqual", "ndaqual",
1001
  "pname", "other", "pfvar", "p80211", "type", "subtype", "type_subtype",
1002
  "pllc", "dir", "reason", "action", "relop", "irelop", "arth", "narth",
1003
  "byteop", "pnum", "atmtype", "atmmultitype", "atmfield", "atmvalue",
1004
  "atmfieldvalue", "atmlistvalue", "mtp2type", "mtp3field", "mtp3value",
1005
  "mtp3fieldvalue", "mtp3listvalue", YY_NULLPTR
1006
};
1007
#endif
1008
1009
# ifdef YYPRINT
1010
/* YYTOKNUM[NUM] -- (External) token number corresponding to the
1011
   (internal) symbol number NUM (which must be that of a token).  */
1012
static const yytype_int16 yytoknum[] =
1013
{
1014
       0,   256,   257,   258,   259,   260,   261,   262,   263,   264,
1015
     265,   266,   267,   268,   269,   270,   271,   272,   273,   274,
1016
     275,   276,   277,   278,   279,   280,   281,   282,   283,   284,
1017
     285,   286,   287,   288,   289,   290,   291,   292,   293,   294,
1018
     295,   296,   297,   298,   299,   300,   301,   302,   303,   304,
1019
     305,   306,   307,   308,   309,   310,   311,   312,   313,   314,
1020
     315,   316,   317,   318,   319,   320,   321,   322,   323,   324,
1021
     325,   326,   327,   328,   329,   330,   331,   332,   333,   334,
1022
     335,   336,   337,   338,   339,   340,   341,   342,   343,   344,
1023
     345,   346,   347,   348,   349,   350,   351,   352,   353,   354,
1024
     355,   356,   357,   358,   359,   360,   361,   362,   363,   364,
1025
     365,   366,   367,   368,   369,   370,   371,   372,   373,   374,
1026
     375,   376,   377,   378,    33,   124,    38,    43,    45,    42,
1027
      47,   379,    41,    40,    62,    61,    60,    91,    93,    58,
1028
      37,    94
1029
};
1030
# endif
1031
1032
556k
#define YYPACT_NINF (-215)
1033
1034
#define yypact_value_is_default(Yyn) \
1035
556k
  ((Yyn) == YYPACT_NINF)
1036
1037
#define YYTABLE_NINF (-42)
1038
1039
#define yytable_value_is_error(Yyn) \
1040
23.8k
  0
1041
1042
  /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
1043
     STATE-NUM.  */
1044
static const yytype_int16 yypact[] =
1045
{
1046
    -215,    29,   224,  -215,    -5,     0,    11,  -215,  -215,  -215,
1047
    -215,  -215,  -215,  -215,  -215,  -215,  -215,  -215,  -215,  -215,
1048
    -215,  -215,  -215,  -215,  -215,  -215,  -215,  -215,  -215,    18,
1049
       8,    26,    53,    55,   -24,    37,  -215,  -215,  -215,  -215,
1050
    -215,  -215,   -26,   -26,  -215,   -26,   -26,   -26,  -215,  -215,
1051
    -215,  -215,  -215,  -215,  -215,  -215,  -215,  -215,  -215,  -215,
1052
    -215,  -215,  -215,   -27,  -215,  -215,  -215,  -215,  -215,  -215,
1053
    -215,  -215,  -215,  -215,  -215,  -215,  -215,  -215,  -215,  -215,
1054
    -215,  -215,  -215,  -215,  -215,  -215,  -215,  -215,  -215,  -215,
1055
    -215,  -215,   580,  -215,   -50,   462,   462,  -215,   148,  -215,
1056
     718,    12,  -215,  -215,  -215,   562,  -215,  -215,  -215,  -215,
1057
      21,  -215,    25,  -215,  -215,   -65,  -215,  -215,  -215,  -215,
1058
    -215,  -215,  -215,  -215,  -215,  -215,   -26,  -215,  -215,  -215,
1059
    -215,  -215,  -215,  -215,   580,   -31,   -66,  -215,  -215,   343,
1060
     343,  -215,    41,   -23,   -21,  -215,  -215,     6,   -15,  -215,
1061
    -215,  -215,   148,   148,  -215,   -34,    17,  -215,  -215,  -215,
1062
    -215,  -215,  -215,  -215,  -215,  -215,   -22,    73,   -18,  -215,
1063
    -215,  -215,  -215,  -215,  -215,   162,  -215,  -215,  -215,   580,
1064
    -215,  -215,  -215,   580,   580,   580,   580,   580,   580,   580,
1065
     580,  -215,  -215,  -215,   580,   580,   580,   580,  -215,   104,
1066
     108,   111,  -215,  -215,  -215,   131,   133,   137,  -215,  -215,
1067
    -215,  -215,  -215,  -215,  -215,   139,   -21,   589,  -215,   343,
1068
     343,  -215,    30,  -215,  -215,  -215,  -215,  -215,   115,   141,
1069
     142,  -215,  -215,    50,   -50,   -21,   179,   180,   183,   184,
1070
    -215,  -215,   150,  -215,  -215,  -215,  -215,  -215,  -215,    66,
1071
     -64,   -64,   607,   149,  -106,  -106,   -66,   -66,   589,   589,
1072
     589,   589,  -215,  -101,  -215,  -215,  -215,   -41,  -215,  -215,
1073
    -215,    43,  -215,  -215,  -215,  -215,   148,   148,  -215,  -215,
1074
    -215,  -215,   -10,  -215,   153,  -215,   104,  -215,   131,  -215,
1075
    -215,  -215,  -215,  -215,    59,  -215,  -215,  -215
1076
};
1077
1078
  /* YYDEFACT[STATE-NUM] -- Default reduction number in state STATE-NUM.
1079
     Performed when YYTABLE does not specify something else to do.  Zero
1080
     means the default is an error.  */
1081
static const yytype_uint8 yydefact[] =
1082
{
1083
       4,     0,    51,     1,     0,     0,     0,    71,    72,    70,
1084
      73,    74,    75,    76,    77,    78,    79,    80,    81,    82,
1085
      83,    84,    85,    86,    88,    87,   181,   113,   114,     0,
1086
       0,     0,     0,     0,     0,     0,    69,   175,    89,    90,
1087
      91,    92,   117,   119,   120,   122,   124,   126,    93,    94,
1088
     103,    95,    96,    97,    98,    99,   100,   102,   101,   104,
1089
     105,   106,   183,   145,   184,   185,   188,   189,   186,   187,
1090
     190,   191,   192,   193,   194,   195,   107,   203,   204,   205,
1091
     206,   207,   208,   209,   210,   211,   212,   213,   214,   215,
1092
     216,    24,     0,    25,     2,    51,    51,     5,     0,    31,
1093
       0,    50,    44,   127,   129,     0,   160,   159,    45,    46,
1094
       0,    48,     0,   110,   111,     0,   115,   130,   131,   132,
1095
     133,   150,   151,   134,   152,   135,     0,   116,   118,   121,
1096
     123,   125,   147,   146,     0,     0,   173,    11,    10,    51,
1097
      51,    32,     0,   160,   159,    15,    21,    18,    20,    22,
1098
      39,    12,     0,     0,    13,    53,    52,    64,    68,    65,
1099
      66,    67,    36,    37,   108,   109,     0,     0,     0,    58,
1100
      59,    60,    61,    62,    63,    34,    35,    38,   128,     0,
1101
     154,   156,   158,     0,     0,     0,     0,     0,     0,     0,
1102
       0,   153,   155,   157,     0,     0,     0,     0,   200,     0,
1103
       0,     0,    47,   196,   221,     0,     0,     0,    49,   217,
1104
     177,   176,   179,   180,   178,     0,     0,     0,     7,    51,
1105
      51,     6,   159,     9,     8,    40,   174,   182,     0,     0,
1106
       0,    23,    26,    30,     0,    29,     0,     0,     0,     0,
1107
     140,   141,   137,   144,   138,   148,   149,   139,    33,     0,
1108
     171,   172,   169,   168,   163,   164,   165,   166,   167,   170,
1109
      42,    43,   201,     0,   197,   198,   222,     0,   218,   219,
1110
     112,   159,    17,    16,    19,    14,     0,     0,    55,    57,
1111
      54,    56,     0,   161,     0,   199,     0,   220,     0,    27,
1112
      28,   142,   143,   136,     0,   202,   223,   162
1113
};
1114
1115
  /* YYPGOTO[NTERM-NUM].  */
1116
static const yytype_int16 yypgoto[] =
1117
{
1118
    -215,  -215,  -215,   197,   -33,  -214,   -88,  -135,     3,    -2,
1119
    -215,  -215,   -93,  -215,  -215,  -215,  -215,    27,  -215,     7,
1120
    -215,  -215,  -215,  -215,  -215,  -215,  -215,  -215,  -215,  -215,
1121
     -84,   -56,   -67,   -95,  -215,   -39,  -215,  -215,  -215,  -215,
1122
    -182,  -215,  -215,  -215,  -215,  -183,  -215
1123
};
1124
1125
  /* YYDEFGOTO[NTERM-NUM].  */
1126
static const yytype_int16 yydefgoto[] =
1127
{
1128
      -1,     1,     2,   142,   139,   140,   231,   151,   152,   134,
1129
     233,   234,    97,    98,    99,   100,   175,   176,   177,   135,
1130
     102,   103,   178,   242,   293,   244,   104,   247,   123,   125,
1131
     196,   197,   105,   106,   215,   107,   108,   109,   110,   202,
1132
     203,   263,   111,   112,   208,   209,   267
1133
};
1134
1135
  /* YYTABLE[YYPACT[STATE-NUM]] -- What to do in state STATE-NUM.  If
1136
     positive, shift that token.  If negative, reduce the rule whose
1137
     number is the opposite.  If YYTABLE_NINF, syntax error.  */
1138
static const yytype_int16 yytable[] =
1139
{
1140
      96,   143,   141,   127,   128,    95,   129,   130,   131,   101,
1141
     150,    26,   -41,   121,   228,   240,   132,   262,   232,   245,
1142
     277,   137,   266,   189,   190,   136,   200,   291,   206,     3,
1143
     -13,   285,   113,   133,   194,   195,   122,   114,   241,   143,
1144
     126,   126,   246,   126,   126,   126,   221,   224,   115,   286,
1145
     292,   218,   223,   288,   201,   116,   207,   144,   198,   154,
1146
     210,   211,   204,   187,   188,   189,   190,   217,   117,   212,
1147
     213,   214,   137,   138,   194,   195,   194,   195,   180,   181,
1148
     182,   137,   180,   181,   182,   232,   118,   216,   236,   237,
1149
     119,   287,   120,    96,    96,   144,   153,   124,    95,    95,
1150
     222,   222,   101,   101,   295,   296,   179,    93,   199,   226,
1151
     205,   227,   249,   154,   235,   230,   250,   251,   252,   253,
1152
     254,   255,   256,   257,   126,   143,   141,   258,   259,   260,
1153
     261,   183,   184,   243,   -41,   -41,   229,   220,   220,   238,
1154
     239,   198,   219,   219,   -41,   264,   101,   101,   265,   179,
1155
     153,   126,   -13,   -13,    93,   191,   192,   193,    93,   191,
1156
     192,   193,   -13,   137,   138,   -29,   -29,   157,   204,   159,
1157
     268,   160,   161,   225,   269,   227,   270,   272,   273,   274,
1158
     222,   271,   275,   278,   279,    26,   280,   281,   289,   290,
1159
     294,   185,   186,   187,   188,   189,   190,   297,   282,    94,
1160
       0,   276,   248,     0,   283,   284,   194,   195,   145,   146,
1161
     147,   148,   149,     0,   183,   184,     0,   220,    96,     0,
1162
       0,     0,   219,   219,    -3,     0,   101,   101,     0,     0,
1163
       0,     0,     0,     0,     0,     4,     5,   154,   154,     6,
1164
       7,     8,     9,    10,    11,    12,    13,    14,    15,    16,
1165
      17,    18,    19,    20,    21,    22,    23,    24,    25,     0,
1166
       0,    26,    27,    28,    29,    30,    31,    32,    33,    34,
1167
      35,     0,    91,     0,   153,   153,   187,   188,   189,   190,
1168
      36,    93,     0,     0,     0,     0,     0,     0,     0,   194,
1169
     195,    37,    38,    39,    40,    41,    42,    43,    44,    45,
1170
      46,    47,    48,    49,    50,    51,    52,    53,    54,    55,
1171
      56,    57,    58,    59,    60,    61,    62,    63,    64,    65,
1172
      66,    67,    68,    69,    70,    71,    72,    73,    74,    75,
1173
      76,    77,    78,    79,    80,    81,    82,    83,    84,    85,
1174
      86,    87,    88,    89,    90,     0,     0,     0,    91,     0,
1175
       0,     0,    92,     0,     4,     5,     0,    93,     6,     7,
1176
       8,     9,    10,    11,    12,    13,    14,    15,    16,    17,
1177
      18,    19,    20,    21,    22,    23,    24,    25,     0,     0,
1178
      26,    27,    28,    29,    30,    31,    32,    33,    34,    35,
1179
       0,     0,     0,     0,     0,     0,     0,     0,     0,    36,
1180
       0,     0,     0,   145,   146,   147,   148,   149,     0,     0,
1181
      37,    38,    39,    40,    41,    42,    43,    44,    45,    46,
1182
      47,    48,    49,    50,    51,    52,    53,    54,    55,    56,
1183
      57,    58,    59,    60,    61,    62,    63,    64,    65,    66,
1184
      67,    68,    69,    70,    71,    72,    73,    74,    75,    76,
1185
      77,    78,    79,    80,    81,    82,    83,    84,    85,    86,
1186
      87,    88,    89,    90,     0,     0,     0,    91,     0,     0,
1187
       0,    92,     0,     4,     5,     0,    93,     6,     7,     8,
1188
       9,    10,    11,    12,    13,    14,    15,    16,    17,    18,
1189
      19,    20,    21,    22,    23,    24,    25,     0,     0,    26,
1190
      27,    28,    29,    30,    31,    32,    33,    34,    35,     0,
1191
       0,     0,     0,     0,     0,     0,     0,     0,    36,     0,
1192
       0,     0,     0,     0,     0,     0,     0,     0,     0,    37,
1193
      38,    39,    40,    41,    42,    43,    44,    45,    46,    47,
1194
      48,    49,    50,    51,    52,    53,    54,    55,    56,    57,
1195
      58,    59,    60,    61,    62,    63,    64,    65,    66,    67,
1196
      68,    69,    70,    71,    72,    73,    74,    75,    76,    77,
1197
      78,    79,    80,    81,    82,    83,    84,    85,    86,    87,
1198
      88,    89,    90,     0,     0,     0,    91,     0,     0,     0,
1199
      92,     0,     0,     0,     0,    93,     7,     8,     9,    10,
1200
      11,    12,    13,    14,    15,    16,    17,    18,    19,    20,
1201
      21,    22,    23,    24,    25,     0,     0,    26,     0,   180,
1202
     181,   182,     0,     0,     0,     0,     0,   183,   184,     0,
1203
       0,     0,     0,     0,     0,     0,    36,     0,     0,     0,
1204
       0,     0,     0,     0,     0,     0,     0,    37,    38,    39,
1205
      40,    41,     0,     0,   183,   184,     0,     0,    48,    49,
1206
      50,    51,    52,    53,    54,    55,    56,    57,    58,    59,
1207
      60,    61,   183,   184,     0,     0,     0,     0,     0,     0,
1208
       0,     0,     0,     0,     0,     0,    76,   185,   186,   187,
1209
     188,   189,   190,     0,     0,     0,   191,   192,   193,     0,
1210
       0,     0,   194,   195,     0,     0,     0,     0,    92,     0,
1211
       0,     0,     0,    93,   185,   186,   187,   188,   189,   190,
1212
       0,   155,   156,   157,   158,   159,     0,   160,   161,   194,
1213
     195,   162,   163,   186,   187,   188,   189,   190,     0,     0,
1214
       0,     0,     0,     0,     0,     0,     0,   194,   195,     0,
1215
       0,     0,     0,   164,   165,     0,     0,     0,     0,     0,
1216
       0,     0,     0,     0,     0,   166,   167,   168,   169,   170,
1217
     171,   172,   173,   174
1218
};
1219
1220
static const yytype_int16 yycheck[] =
1221
{
1222
       2,    96,    95,    42,    43,     2,    45,    46,    47,     2,
1223
      98,    37,     0,    37,     8,    37,    43,   199,   153,    37,
1224
     234,   122,   205,   129,   130,    92,   110,    37,   112,     0,
1225
       0,   132,    37,    60,   140,   141,    60,    37,    60,   134,
1226
      42,    43,    60,    45,    46,    47,   139,   140,    37,   263,
1227
      60,   139,   140,   267,   110,    37,   112,    96,    37,    98,
1228
     125,   126,    37,   127,   128,   129,   130,   134,    60,   134,
1229
     135,   136,   122,   123,   140,   141,   140,   141,    57,    58,
1230
      59,   122,    57,    58,    59,   220,    60,   126,   122,   123,
1231
      37,   132,    37,    95,    96,   134,    98,    60,    95,    96,
1232
     139,   140,    95,    96,   286,   288,   137,   133,   110,   132,
1233
     112,   132,   179,   152,   153,   130,   183,   184,   185,   186,
1234
     187,   188,   189,   190,   126,   220,   219,   194,   195,   196,
1235
     197,    65,    66,    60,   122,   123,   130,   139,   140,   122,
1236
     123,    37,   139,   140,   132,    37,   139,   140,    37,   137,
1237
     152,   153,   122,   123,   133,   134,   135,   136,   133,   134,
1238
     135,   136,   132,   122,   123,   122,   123,     5,    37,     7,
1239
      37,     9,    10,   132,    37,   132,    37,    62,    37,    37,
1240
     219,   220,   132,     4,     4,    37,     3,     3,   276,   277,
1241
      37,   125,   126,   127,   128,   129,   130,   138,    48,     2,
1242
      -1,   234,   175,    -1,   138,   139,   140,   141,    60,    61,
1243
      62,    63,    64,    -1,    65,    66,    -1,   219,   220,    -1,
1244
      -1,    -1,   219,   220,     0,    -1,   219,   220,    -1,    -1,
1245
      -1,    -1,    -1,    -1,    -1,    11,    12,   276,   277,    15,
1246
      16,    17,    18,    19,    20,    21,    22,    23,    24,    25,
1247
      26,    27,    28,    29,    30,    31,    32,    33,    34,    -1,
1248
      -1,    37,    38,    39,    40,    41,    42,    43,    44,    45,
1249
      46,    -1,   124,    -1,   276,   277,   127,   128,   129,   130,
1250
      56,   133,    -1,    -1,    -1,    -1,    -1,    -1,    -1,   140,
1251
     141,    67,    68,    69,    70,    71,    72,    73,    74,    75,
1252
      76,    77,    78,    79,    80,    81,    82,    83,    84,    85,
1253
      86,    87,    88,    89,    90,    91,    92,    93,    94,    95,
1254
      96,    97,    98,    99,   100,   101,   102,   103,   104,   105,
1255
     106,   107,   108,   109,   110,   111,   112,   113,   114,   115,
1256
     116,   117,   118,   119,   120,    -1,    -1,    -1,   124,    -1,
1257
      -1,    -1,   128,    -1,    11,    12,    -1,   133,    15,    16,
1258
      17,    18,    19,    20,    21,    22,    23,    24,    25,    26,
1259
      27,    28,    29,    30,    31,    32,    33,    34,    -1,    -1,
1260
      37,    38,    39,    40,    41,    42,    43,    44,    45,    46,
1261
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    56,
1262
      -1,    -1,    -1,    60,    61,    62,    63,    64,    -1,    -1,
1263
      67,    68,    69,    70,    71,    72,    73,    74,    75,    76,
1264
      77,    78,    79,    80,    81,    82,    83,    84,    85,    86,
1265
      87,    88,    89,    90,    91,    92,    93,    94,    95,    96,
1266
      97,    98,    99,   100,   101,   102,   103,   104,   105,   106,
1267
     107,   108,   109,   110,   111,   112,   113,   114,   115,   116,
1268
     117,   118,   119,   120,    -1,    -1,    -1,   124,    -1,    -1,
1269
      -1,   128,    -1,    11,    12,    -1,   133,    15,    16,    17,
1270
      18,    19,    20,    21,    22,    23,    24,    25,    26,    27,
1271
      28,    29,    30,    31,    32,    33,    34,    -1,    -1,    37,
1272
      38,    39,    40,    41,    42,    43,    44,    45,    46,    -1,
1273
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    56,    -1,
1274
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    -1,    67,
1275
      68,    69,    70,    71,    72,    73,    74,    75,    76,    77,
1276
      78,    79,    80,    81,    82,    83,    84,    85,    86,    87,
1277
      88,    89,    90,    91,    92,    93,    94,    95,    96,    97,
1278
      98,    99,   100,   101,   102,   103,   104,   105,   106,   107,
1279
     108,   109,   110,   111,   112,   113,   114,   115,   116,   117,
1280
     118,   119,   120,    -1,    -1,    -1,   124,    -1,    -1,    -1,
1281
     128,    -1,    -1,    -1,    -1,   133,    16,    17,    18,    19,
1282
      20,    21,    22,    23,    24,    25,    26,    27,    28,    29,
1283
      30,    31,    32,    33,    34,    -1,    -1,    37,    -1,    57,
1284
      58,    59,    -1,    -1,    -1,    -1,    -1,    65,    66,    -1,
1285
      -1,    -1,    -1,    -1,    -1,    -1,    56,    -1,    -1,    -1,
1286
      -1,    -1,    -1,    -1,    -1,    -1,    -1,    67,    68,    69,
1287
      70,    71,    -1,    -1,    65,    66,    -1,    -1,    78,    79,
1288
      80,    81,    82,    83,    84,    85,    86,    87,    88,    89,
1289
      90,    91,    65,    66,    -1,    -1,    -1,    -1,    -1,    -1,
1290
      -1,    -1,    -1,    -1,    -1,    -1,   106,   125,   126,   127,
1291
     128,   129,   130,    -1,    -1,    -1,   134,   135,   136,    -1,
1292
      -1,    -1,   140,   141,    -1,    -1,    -1,    -1,   128,    -1,
1293
      -1,    -1,    -1,   133,   125,   126,   127,   128,   129,   130,
1294
      -1,     3,     4,     5,     6,     7,    -1,     9,    10,   140,
1295
     141,    13,    14,   126,   127,   128,   129,   130,    -1,    -1,
1296
      -1,    -1,    -1,    -1,    -1,    -1,    -1,   140,   141,    -1,
1297
      -1,    -1,    -1,    35,    36,    -1,    -1,    -1,    -1,    -1,
1298
      -1,    -1,    -1,    -1,    -1,    47,    48,    49,    50,    51,
1299
      52,    53,    54,    55
1300
};
1301
1302
  /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
1303
     symbol of state STATE-NUM.  */
1304
static const yytype_uint8 yystos[] =
1305
{
1306
       0,   143,   144,     0,    11,    12,    15,    16,    17,    18,
1307
      19,    20,    21,    22,    23,    24,    25,    26,    27,    28,
1308
      29,    30,    31,    32,    33,    34,    37,    38,    39,    40,
1309
      41,    42,    43,    44,    45,    46,    56,    67,    68,    69,
1310
      70,    71,    72,    73,    74,    75,    76,    77,    78,    79,
1311
      80,    81,    82,    83,    84,    85,    86,    87,    88,    89,
1312
      90,    91,    92,    93,    94,    95,    96,    97,    98,    99,
1313
     100,   101,   102,   103,   104,   105,   106,   107,   108,   109,
1314
     110,   111,   112,   113,   114,   115,   116,   117,   118,   119,
1315
     120,   124,   128,   133,   145,   150,   151,   154,   155,   156,
1316
     157,   161,   162,   163,   168,   174,   175,   177,   178,   179,
1317
     180,   184,   185,    37,    37,    37,    37,    60,    60,    37,
1318
      37,    37,    60,   170,    60,   171,   151,   177,   177,   177,
1319
     177,   177,    43,    60,   151,   161,   174,   122,   123,   146,
1320
     147,   154,   145,   175,   177,    60,    61,    62,    63,    64,
1321
     148,   149,   150,   151,   177,     3,     4,     5,     6,     7,
1322
       9,    10,    13,    14,    35,    36,    47,    48,    49,    50,
1323
      51,    52,    53,    54,    55,   158,   159,   160,   164,   137,
1324
      57,    58,    59,    65,    66,   125,   126,   127,   128,   129,
1325
     130,   134,   135,   136,   140,   141,   172,   173,    37,   151,
1326
     172,   173,   181,   182,    37,   151,   172,   173,   186,   187,
1327
     125,   126,   134,   135,   136,   176,   177,   174,   148,   150,
1328
     151,   154,   177,   148,   154,   132,   132,   132,     8,   130,
1329
     130,   148,   149,   152,   153,   177,   122,   123,   122,   123,
1330
      37,    60,   165,    60,   167,    37,    60,   169,   159,   174,
1331
     174,   174,   174,   174,   174,   174,   174,   174,   174,   174,
1332
     174,   174,   182,   183,    37,    37,   187,   188,    37,    37,
1333
      37,   177,    62,    37,    37,   132,   146,   147,     4,     4,
1334
       3,     3,    48,   138,   139,   132,   147,   132,   147,   148,
1335
     148,    37,    60,   166,    37,   182,   187,   138
1336
};
1337
1338
  /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives.  */
1339
static const yytype_uint8 yyr1[] =
1340
{
1341
       0,   142,   143,   143,   144,   145,   145,   145,   145,   145,
1342
     146,   147,   148,   148,   148,   149,   149,   149,   149,   149,
1343
     149,   149,   149,   149,   150,   151,   152,   152,   152,   153,
1344
     153,   154,   154,   155,   155,   155,   155,   155,   155,   156,
1345
     156,   156,   156,   156,   156,   156,   156,   156,   156,   156,
1346
     157,   157,   158,   158,   158,   158,   158,   158,   158,   158,
1347
     158,   158,   158,   158,   159,   159,   159,   159,   160,   161,
1348
     161,   161,   161,   161,   161,   161,   161,   161,   161,   161,
1349
     161,   161,   161,   161,   161,   161,   161,   161,   161,   161,
1350
     161,   161,   161,   161,   161,   161,   161,   161,   161,   161,
1351
     161,   161,   161,   161,   161,   161,   161,   161,   162,   162,
1352
     162,   162,   162,   162,   162,   162,   162,   162,   162,   162,
1353
     162,   162,   162,   162,   162,   162,   162,   162,   162,   162,
1354
     163,   163,   163,   163,   163,   163,   164,   164,   164,   164,
1355
     165,   165,   166,   166,   167,   168,   168,   168,   169,   169,
1356
     170,   170,   171,   172,   172,   172,   173,   173,   173,   174,
1357
     174,   175,   175,   175,   175,   175,   175,   175,   175,   175,
1358
     175,   175,   175,   175,   175,   175,   176,   176,   176,   176,
1359
     176,   177,   177,   178,   178,   178,   178,   178,   178,   178,
1360
     179,   179,   179,   179,   180,   180,   181,   181,   181,   181,
1361
     182,   183,   183,   184,   184,   184,   184,   184,   184,   185,
1362
     185,   185,   185,   185,   185,   185,   185,   186,   186,   186,
1363
     186,   187,   188,   188
1364
};
1365
1366
  /* YYR2[YYN] -- Number of symbols on the right hand side of rule YYN.  */
1367
static const yytype_int8 yyr2[] =
1368
{
1369
       0,     2,     2,     1,     0,     1,     3,     3,     3,     3,
1370
       1,     1,     1,     1,     3,     1,     3,     3,     1,     3,
1371
       1,     1,     1,     2,     1,     1,     1,     3,     3,     1,
1372
       1,     1,     2,     3,     2,     2,     2,     2,     2,     2,
1373
       3,     1,     3,     3,     1,     1,     1,     2,     1,     2,
1374
       1,     0,     1,     1,     3,     3,     3,     3,     1,     1,
1375
       1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
1376
       1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
1377
       1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
1378
       1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
1379
       1,     1,     1,     1,     1,     1,     1,     1,     2,     2,
1380
       2,     2,     4,     1,     1,     2,     2,     1,     2,     1,
1381
       1,     2,     1,     2,     1,     2,     1,     1,     2,     1,
1382
       2,     2,     2,     2,     2,     2,     4,     2,     2,     2,
1383
       1,     1,     1,     1,     1,     1,     2,     2,     1,     1,
1384
       1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
1385
       1,     4,     6,     3,     3,     3,     3,     3,     3,     3,
1386
       3,     3,     3,     2,     3,     1,     1,     1,     1,     1,
1387
       1,     1,     3,     1,     1,     1,     1,     1,     1,     1,
1388
       1,     1,     1,     1,     1,     1,     1,     2,     2,     3,
1389
       1,     1,     3,     1,     1,     1,     1,     1,     1,     1,
1390
       1,     1,     1,     1,     1,     1,     1,     1,     2,     2,
1391
       3,     1,     1,     3
1392
};
1393
1394
1395
#define yyerrok         (yyerrstatus = 0)
1396
#define yyclearin       (yychar = YYEMPTY)
1397
469k
#define YYEMPTY         (-2)
1398
288k
#define YYEOF           0
1399
1400
8.38k
#define YYACCEPT        goto yyacceptlab
1401
4.75k
#define YYABORT         goto yyabortlab
1402
0
#define YYERROR         goto yyerrorlab
1403
1404
1405
#define YYRECOVERING()  (!!yyerrstatus)
1406
1407
#define YYBACKUP(Token, Value)                                    \
1408
  do                                                              \
1409
    if (yychar == YYEMPTY)                                        \
1410
      {                                                           \
1411
        yychar = (Token);                                         \
1412
        yylval = (Value);                                         \
1413
        YYPOPSTACK (yylen);                                       \
1414
        yystate = *yyssp;                                         \
1415
        goto yybackup;                                            \
1416
      }                                                           \
1417
    else                                                          \
1418
      {                                                           \
1419
        yyerror (yyscanner, cstate, YY_("syntax error: cannot back up")); \
1420
        YYERROR;                                                  \
1421
      }                                                           \
1422
  while (0)
1423
1424
/* Error token number */
1425
15.6k
#define YYTERROR        1
1426
#define YYERRCODE       256
1427
1428
1429
1430
/* Enable debugging if requested.  */
1431
#if YYDEBUG
1432
1433
# ifndef YYFPRINTF
1434
#  include <stdio.h> /* INFRINGES ON USER NAME SPACE */
1435
#  define YYFPRINTF fprintf
1436
# endif
1437
1438
# define YYDPRINTF(Args)                        \
1439
do {                                            \
1440
  if (yydebug)                                  \
1441
    YYFPRINTF Args;                             \
1442
} while (0)
1443
1444
/* This macro is provided for backward compatibility. */
1445
#ifndef YY_LOCATION_PRINT
1446
# define YY_LOCATION_PRINT(File, Loc) ((void) 0)
1447
#endif
1448
1449
1450
# define YY_SYMBOL_PRINT(Title, Type, Value, Location)                    \
1451
do {                                                                      \
1452
  if (yydebug)                                                            \
1453
    {                                                                     \
1454
      YYFPRINTF (stderr, "%s ", Title);                                   \
1455
      yy_symbol_print (stderr,                                            \
1456
                  Type, Value, yyscanner, cstate); \
1457
      YYFPRINTF (stderr, "\n");                                           \
1458
    }                                                                     \
1459
} while (0)
1460
1461
1462
/*-----------------------------------.
1463
| Print this symbol's value on YYO.  |
1464
`-----------------------------------*/
1465
1466
static void
1467
yy_symbol_value_print (FILE *yyo, int yytype, YYSTYPE const * const yyvaluep, void *yyscanner, compiler_state_t *cstate)
1468
{
1469
  FILE *yyoutput = yyo;
1470
  YYUSE (yyoutput);
1471
  YYUSE (yyscanner);
1472
  YYUSE (cstate);
1473
  if (!yyvaluep)
1474
    return;
1475
# ifdef YYPRINT
1476
  if (yytype < YYNTOKENS)
1477
    YYPRINT (yyo, yytoknum[yytype], *yyvaluep);
1478
# endif
1479
  YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
1480
  YYUSE (yytype);
1481
  YY_IGNORE_MAYBE_UNINITIALIZED_END
1482
}
1483
1484
1485
/*---------------------------.
1486
| Print this symbol on YYO.  |
1487
`---------------------------*/
1488
1489
static void
1490
yy_symbol_print (FILE *yyo, int yytype, YYSTYPE const * const yyvaluep, void *yyscanner, compiler_state_t *cstate)
1491
{
1492
  YYFPRINTF (yyo, "%s %s (",
1493
             yytype < YYNTOKENS ? "token" : "nterm", yytname[yytype]);
1494
1495
  yy_symbol_value_print (yyo, yytype, yyvaluep, yyscanner, cstate);
1496
  YYFPRINTF (yyo, ")");
1497
}
1498
1499
/*------------------------------------------------------------------.
1500
| yy_stack_print -- Print the state stack from its BOTTOM up to its |
1501
| TOP (included).                                                   |
1502
`------------------------------------------------------------------*/
1503
1504
static void
1505
yy_stack_print (yy_state_t *yybottom, yy_state_t *yytop)
1506
{
1507
  YYFPRINTF (stderr, "Stack now");
1508
  for (; yybottom <= yytop; yybottom++)
1509
    {
1510
      int yybot = *yybottom;
1511
      YYFPRINTF (stderr, " %d", yybot);
1512
    }
1513
  YYFPRINTF (stderr, "\n");
1514
}
1515
1516
# define YY_STACK_PRINT(Bottom, Top)                            \
1517
do {                                                            \
1518
  if (yydebug)                                                  \
1519
    yy_stack_print ((Bottom), (Top));                           \
1520
} while (0)
1521
1522
1523
/*------------------------------------------------.
1524
| Report that the YYRULE is going to be reduced.  |
1525
`------------------------------------------------*/
1526
1527
static void
1528
yy_reduce_print (yy_state_t *yyssp, YYSTYPE *yyvsp, int yyrule, void *yyscanner, compiler_state_t *cstate)
1529
{
1530
  int yylno = yyrline[yyrule];
1531
  int yynrhs = yyr2[yyrule];
1532
  int yyi;
1533
  YYFPRINTF (stderr, "Reducing stack by rule %d (line %d):\n",
1534
             yyrule - 1, yylno);
1535
  /* The symbols being reduced.  */
1536
  for (yyi = 0; yyi < yynrhs; yyi++)
1537
    {
1538
      YYFPRINTF (stderr, "   $%d = ", yyi + 1);
1539
      yy_symbol_print (stderr,
1540
                       yystos[+yyssp[yyi + 1 - yynrhs]],
1541
                       &yyvsp[(yyi + 1) - (yynrhs)]
1542
                                              , yyscanner, cstate);
1543
      YYFPRINTF (stderr, "\n");
1544
    }
1545
}
1546
1547
# define YY_REDUCE_PRINT(Rule)          \
1548
do {                                    \
1549
  if (yydebug)                          \
1550
    yy_reduce_print (yyssp, yyvsp, Rule, yyscanner, cstate); \
1551
} while (0)
1552
1553
/* Nonzero means print parse trace.  It is left uninitialized so that
1554
   multiple parsers can coexist.  */
1555
int yydebug;
1556
#else /* !YYDEBUG */
1557
# define YYDPRINTF(Args)
1558
# define YY_SYMBOL_PRINT(Title, Type, Value, Location)
1559
# define YY_STACK_PRINT(Bottom, Top)
1560
# define YY_REDUCE_PRINT(Rule)
1561
#endif /* !YYDEBUG */
1562
1563
1564
/* YYINITDEPTH -- initial size of the parser's stacks.  */
1565
#ifndef YYINITDEPTH
1566
13.1k
# define YYINITDEPTH 200
1567
#endif
1568
1569
/* YYMAXDEPTH -- maximum size the stacks can grow to (effective only
1570
   if the built-in stack extension method is used).
1571
1572
   Do not make this value too large; the results are undefined if
1573
   YYSTACK_ALLOC_MAXIMUM < YYSTACK_BYTES (YYMAXDEPTH)
1574
   evaluated with infinite-precision integer arithmetic.  */
1575
1576
#ifndef YYMAXDEPTH
1577
12
# define YYMAXDEPTH 10000
1578
#endif
1579
1580
1581
#if YYERROR_VERBOSE
1582
1583
# ifndef yystrlen
1584
#  if defined __GLIBC__ && defined _STRING_H
1585
#   define yystrlen(S) (YY_CAST (YYPTRDIFF_T, strlen (S)))
1586
#  else
1587
/* Return the length of YYSTR.  */
1588
static YYPTRDIFF_T
1589
yystrlen (const char *yystr)
1590
{
1591
  YYPTRDIFF_T yylen;
1592
  for (yylen = 0; yystr[yylen]; yylen++)
1593
    continue;
1594
  return yylen;
1595
}
1596
#  endif
1597
# endif
1598
1599
# ifndef yystpcpy
1600
#  if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE
1601
#   define yystpcpy stpcpy
1602
#  else
1603
/* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in
1604
   YYDEST.  */
1605
static char *
1606
yystpcpy (char *yydest, const char *yysrc)
1607
{
1608
  char *yyd = yydest;
1609
  const char *yys = yysrc;
1610
1611
  while ((*yyd++ = *yys++) != '\0')
1612
    continue;
1613
1614
  return yyd - 1;
1615
}
1616
#  endif
1617
# endif
1618
1619
# ifndef yytnamerr
1620
/* Copy to YYRES the contents of YYSTR after stripping away unnecessary
1621
   quotes and backslashes, so that it's suitable for yyerror.  The
1622
   heuristic is that double-quoting is unnecessary unless the string
1623
   contains an apostrophe, a comma, or backslash (other than
1624
   backslash-backslash).  YYSTR is taken from yytname.  If YYRES is
1625
   null, do not copy; instead, return the length of what the result
1626
   would have been.  */
1627
static YYPTRDIFF_T
1628
yytnamerr (char *yyres, const char *yystr)
1629
{
1630
  if (*yystr == '"')
1631
    {
1632
      YYPTRDIFF_T yyn = 0;
1633
      char const *yyp = yystr;
1634
1635
      for (;;)
1636
        switch (*++yyp)
1637
          {
1638
          case '\'':
1639
          case ',':
1640
            goto do_not_strip_quotes;
1641
1642
          case '\\':
1643
            if (*++yyp != '\\')
1644
              goto do_not_strip_quotes;
1645
            else
1646
              goto append;
1647
1648
          append:
1649
          default:
1650
            if (yyres)
1651
              yyres[yyn] = *yyp;
1652
            yyn++;
1653
            break;
1654
1655
          case '"':
1656
            if (yyres)
1657
              yyres[yyn] = '\0';
1658
            return yyn;
1659
          }
1660
    do_not_strip_quotes: ;
1661
    }
1662
1663
  if (yyres)
1664
    return yystpcpy (yyres, yystr) - yyres;
1665
  else
1666
    return yystrlen (yystr);
1667
}
1668
# endif
1669
1670
/* Copy into *YYMSG, which is of size *YYMSG_ALLOC, an error message
1671
   about the unexpected token YYTOKEN for the state stack whose top is
1672
   YYSSP.
1673
1674
   Return 0 if *YYMSG was successfully written.  Return 1 if *YYMSG is
1675
   not large enough to hold the message.  In that case, also set
1676
   *YYMSG_ALLOC to the required number of bytes.  Return 2 if the
1677
   required number of bytes is too large to store.  */
1678
static int
1679
yysyntax_error (YYPTRDIFF_T *yymsg_alloc, char **yymsg,
1680
                yy_state_t *yyssp, int yytoken)
1681
{
1682
  enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 };
1683
  /* Internationalized format string. */
1684
  const char *yyformat = YY_NULLPTR;
1685
  /* Arguments of yyformat: reported tokens (one for the "unexpected",
1686
     one per "expected"). */
1687
  char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
1688
  /* Actual size of YYARG. */
1689
  int yycount = 0;
1690
  /* Cumulated lengths of YYARG.  */
1691
  YYPTRDIFF_T yysize = 0;
1692
1693
  /* There are many possibilities here to consider:
1694
     - If this state is a consistent state with a default action, then
1695
       the only way this function was invoked is if the default action
1696
       is an error action.  In that case, don't check for expected
1697
       tokens because there are none.
1698
     - The only way there can be no lookahead present (in yychar) is if
1699
       this state is a consistent state with a default action.  Thus,
1700
       detecting the absence of a lookahead is sufficient to determine
1701
       that there is no unexpected or expected token to report.  In that
1702
       case, just report a simple "syntax error".
1703
     - Don't assume there isn't a lookahead just because this state is a
1704
       consistent state with a default action.  There might have been a
1705
       previous inconsistent state, consistent state with a non-default
1706
       action, or user semantic action that manipulated yychar.
1707
     - Of course, the expected token list depends on states to have
1708
       correct lookahead information, and it depends on the parser not
1709
       to perform extra reductions after fetching a lookahead from the
1710
       scanner and before detecting a syntax error.  Thus, state merging
1711
       (from LALR or IELR) and default reductions corrupt the expected
1712
       token list.  However, the list is correct for canonical LR with
1713
       one exception: it will still contain any token that will not be
1714
       accepted due to an error action in a later state.
1715
  */
1716
  if (yytoken != YYEMPTY)
1717
    {
1718
      int yyn = yypact[+*yyssp];
1719
      YYPTRDIFF_T yysize0 = yytnamerr (YY_NULLPTR, yytname[yytoken]);
1720
      yysize = yysize0;
1721
      yyarg[yycount++] = yytname[yytoken];
1722
      if (!yypact_value_is_default (yyn))
1723
        {
1724
          /* Start YYX at -YYN if negative to avoid negative indexes in
1725
             YYCHECK.  In other words, skip the first -YYN actions for
1726
             this state because they are default actions.  */
1727
          int yyxbegin = yyn < 0 ? -yyn : 0;
1728
          /* Stay within bounds of both yycheck and yytname.  */
1729
          int yychecklim = YYLAST - yyn + 1;
1730
          int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS;
1731
          int yyx;
1732
1733
          for (yyx = yyxbegin; yyx < yyxend; ++yyx)
1734
            if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR
1735
                && !yytable_value_is_error (yytable[yyx + yyn]))
1736
              {
1737
                if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM)
1738
                  {
1739
                    yycount = 1;
1740
                    yysize = yysize0;
1741
                    break;
1742
                  }
1743
                yyarg[yycount++] = yytname[yyx];
1744
                {
1745
                  YYPTRDIFF_T yysize1
1746
                    = yysize + yytnamerr (YY_NULLPTR, yytname[yyx]);
1747
                  if (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM)
1748
                    yysize = yysize1;
1749
                  else
1750
                    return 2;
1751
                }
1752
              }
1753
        }
1754
    }
1755
1756
  switch (yycount)
1757
    {
1758
# define YYCASE_(N, S)                      \
1759
      case N:                               \
1760
        yyformat = S;                       \
1761
      break
1762
    default: /* Avoid compiler warnings. */
1763
      YYCASE_(0, YY_("syntax error"));
1764
      YYCASE_(1, YY_("syntax error, unexpected %s"));
1765
      YYCASE_(2, YY_("syntax error, unexpected %s, expecting %s"));
1766
      YYCASE_(3, YY_("syntax error, unexpected %s, expecting %s or %s"));
1767
      YYCASE_(4, YY_("syntax error, unexpected %s, expecting %s or %s or %s"));
1768
      YYCASE_(5, YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s"));
1769
# undef YYCASE_
1770
    }
1771
1772
  {
1773
    /* Don't count the "%s"s in the final size, but reserve room for
1774
       the terminator.  */
1775
    YYPTRDIFF_T yysize1 = yysize + (yystrlen (yyformat) - 2 * yycount) + 1;
1776
    if (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM)
1777
      yysize = yysize1;
1778
    else
1779
      return 2;
1780
  }
1781
1782
  if (*yymsg_alloc < yysize)
1783
    {
1784
      *yymsg_alloc = 2 * yysize;
1785
      if (! (yysize <= *yymsg_alloc
1786
             && *yymsg_alloc <= YYSTACK_ALLOC_MAXIMUM))
1787
        *yymsg_alloc = YYSTACK_ALLOC_MAXIMUM;
1788
      return 1;
1789
    }
1790
1791
  /* Avoid sprintf, as that infringes on the user's name space.
1792
     Don't have undefined behavior even if the translation
1793
     produced a string with the wrong number of "%s"s.  */
1794
  {
1795
    char *yyp = *yymsg;
1796
    int yyi = 0;
1797
    while ((*yyp = *yyformat) != '\0')
1798
      if (*yyp == '%' && yyformat[1] == 's' && yyi < yycount)
1799
        {
1800
          yyp += yytnamerr (yyp, yyarg[yyi++]);
1801
          yyformat += 2;
1802
        }
1803
      else
1804
        {
1805
          ++yyp;
1806
          ++yyformat;
1807
        }
1808
  }
1809
  return 0;
1810
}
1811
#endif /* YYERROR_VERBOSE */
1812
1813
/*-----------------------------------------------.
1814
| Release the memory associated to this symbol.  |
1815
`-----------------------------------------------*/
1816
1817
static void
1818
yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep, void *yyscanner, compiler_state_t *cstate)
1819
35.3k
{
1820
35.3k
  YYUSE (yyvaluep);
1821
35.3k
  YYUSE (yyscanner);
1822
35.3k
  YYUSE (cstate);
1823
35.3k
  if (!yymsg)
1824
0
    yymsg = "Deleting";
1825
35.3k
  YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp);
1826
1827
35.3k
  YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
1828
35.3k
  YYUSE (yytype);
1829
35.3k
  YY_IGNORE_MAYBE_UNINITIALIZED_END
1830
35.3k
}
1831
1832
1833
1834
1835
/*----------.
1836
| yyparse.  |
1837
`----------*/
1838
1839
int
1840
yyparse (void *yyscanner, compiler_state_t *cstate)
1841
13.1k
{
1842
/* The lookahead symbol.  */
1843
13.1k
int yychar;
1844
1845
1846
/* The semantic value of the lookahead symbol.  */
1847
/* Default value used for initialization, for pacifying older GCCs
1848
   or non-GCC compilers.  */
1849
13.1k
YY_INITIAL_VALUE (static YYSTYPE yyval_default;)
1850
13.1k
YYSTYPE yylval YY_INITIAL_VALUE (= yyval_default);
1851
1852
    /* Number of syntax errors so far.  */
1853
13.1k
    int yynerrs;
1854
1855
13.1k
    yy_state_fast_t yystate;
1856
    /* Number of tokens to shift before error messages enabled.  */
1857
13.1k
    int yyerrstatus;
1858
1859
    /* The stacks and their tools:
1860
       'yyss': related to states.
1861
       'yyvs': related to semantic values.
1862
1863
       Refer to the stacks through separate pointers, to allow yyoverflow
1864
       to reallocate them elsewhere.  */
1865
1866
    /* The state stack.  */
1867
13.1k
    yy_state_t yyssa[YYINITDEPTH];
1868
13.1k
    yy_state_t *yyss;
1869
13.1k
    yy_state_t *yyssp;
1870
1871
    /* The semantic value stack.  */
1872
13.1k
    YYSTYPE yyvsa[YYINITDEPTH];
1873
13.1k
    YYSTYPE *yyvs;
1874
13.1k
    YYSTYPE *yyvsp;
1875
1876
13.1k
    YYPTRDIFF_T yystacksize;
1877
1878
13.1k
  int yyn;
1879
13.1k
  int yyresult;
1880
  /* Lookahead token as an internal (translated) token number.  */
1881
13.1k
  int yytoken = 0;
1882
  /* The variables used to return semantic value and location from the
1883
     action routines.  */
1884
13.1k
  YYSTYPE yyval;
1885
1886
#if YYERROR_VERBOSE
1887
  /* Buffer for error messages, and its allocated size.  */
1888
  char yymsgbuf[128];
1889
  char *yymsg = yymsgbuf;
1890
  YYPTRDIFF_T yymsg_alloc = sizeof yymsgbuf;
1891
#endif
1892
1893
408k
#define YYPOPSTACK(N)   (yyvsp -= (N), yyssp -= (N))
1894
1895
  /* The number of symbols on the RHS of the reduced rule.
1896
     Keep to zero when no symbol should be popped.  */
1897
13.1k
  int yylen = 0;
1898
1899
13.1k
  yyssp = yyss = yyssa;
1900
13.1k
  yyvsp = yyvs = yyvsa;
1901
13.1k
  yystacksize = YYINITDEPTH;
1902
1903
13.1k
  YYDPRINTF ((stderr, "Starting parse\n"));
1904
1905
13.1k
  yystate = 0;
1906
13.1k
  yyerrstatus = 0;
1907
13.1k
  yynerrs = 0;
1908
13.1k
  yychar = YYEMPTY; /* Cause a token to be read.  */
1909
13.1k
  goto yysetstate;
1910
1911
1912
/*------------------------------------------------------------.
1913
| yynewstate -- push a new state, which is found in yystate.  |
1914
`------------------------------------------------------------*/
1915
541k
yynewstate:
1916
  /* In all cases, when you get here, the value and location stacks
1917
     have just been pushed.  So pushing a state here evens the stacks.  */
1918
541k
  yyssp++;
1919
1920
1921
/*--------------------------------------------------------------------.
1922
| yysetstate -- set current state (the top of the stack) to yystate.  |
1923
`--------------------------------------------------------------------*/
1924
554k
yysetstate:
1925
554k
  YYDPRINTF ((stderr, "Entering state %d\n", yystate));
1926
554k
  YY_ASSERT (0 <= yystate && yystate < YYNSTATES);
1927
554k
  YY_IGNORE_USELESS_CAST_BEGIN
1928
554k
  *yyssp = YY_CAST (yy_state_t, yystate);
1929
554k
  YY_IGNORE_USELESS_CAST_END
1930
1931
554k
  if (yyss + yystacksize - 1 <= yyssp)
1932
#if !defined yyoverflow && !defined YYSTACK_RELOCATE
1933
    goto yyexhaustedlab;
1934
#else
1935
6
    {
1936
      /* Get the current used size of the three stacks, in elements.  */
1937
6
      YYPTRDIFF_T yysize = yyssp - yyss + 1;
1938
1939
# if defined yyoverflow
1940
      {
1941
        /* Give user a chance to reallocate the stack.  Use copies of
1942
           these so that the &'s don't force the real ones into
1943
           memory.  */
1944
        yy_state_t *yyss1 = yyss;
1945
        YYSTYPE *yyvs1 = yyvs;
1946
1947
        /* Each stack pointer address is followed by the size of the
1948
           data in use in that stack, in bytes.  This used to be a
1949
           conditional around just the two extra args, but that might
1950
           be undefined if yyoverflow is a macro.  */
1951
        yyoverflow (YY_("memory exhausted"),
1952
                    &yyss1, yysize * YYSIZEOF (*yyssp),
1953
                    &yyvs1, yysize * YYSIZEOF (*yyvsp),
1954
                    &yystacksize);
1955
        yyss = yyss1;
1956
        yyvs = yyvs1;
1957
      }
1958
# else /* defined YYSTACK_RELOCATE */
1959
      /* Extend the stack our own way.  */
1960
6
      if (YYMAXDEPTH <= yystacksize)
1961
0
        goto yyexhaustedlab;
1962
6
      yystacksize *= 2;
1963
6
      if (YYMAXDEPTH < yystacksize)
1964
0
        yystacksize = YYMAXDEPTH;
1965
1966
6
      {
1967
6
        yy_state_t *yyss1 = yyss;
1968
6
        union yyalloc *yyptr =
1969
6
          YY_CAST (union yyalloc *,
1970
6
                   YYSTACK_ALLOC (YY_CAST (YYSIZE_T, YYSTACK_BYTES (yystacksize))));
1971
6
        if (! yyptr)
1972
0
          goto yyexhaustedlab;
1973
6
        YYSTACK_RELOCATE (yyss_alloc, yyss);
1974
6
        YYSTACK_RELOCATE (yyvs_alloc, yyvs);
1975
6
# undef YYSTACK_RELOCATE
1976
6
        if (yyss1 != yyssa)
1977
0
          YYSTACK_FREE (yyss1);
1978
6
      }
1979
0
# endif
1980
1981
0
      yyssp = yyss + yysize - 1;
1982
6
      yyvsp = yyvs + yysize - 1;
1983
1984
6
      YY_IGNORE_USELESS_CAST_BEGIN
1985
6
      YYDPRINTF ((stderr, "Stack size increased to %ld\n",
1986
6
                  YY_CAST (long, yystacksize)));
1987
6
      YY_IGNORE_USELESS_CAST_END
1988
1989
6
      if (yyss + yystacksize - 1 <= yyssp)
1990
0
        YYABORT;
1991
6
    }
1992
554k
#endif /* !defined yyoverflow && !defined YYSTACK_RELOCATE */
1993
1994
554k
  if (yystate == YYFINAL)
1995
8.38k
    YYACCEPT;
1996
1997
545k
  goto yybackup;
1998
1999
2000
/*-----------.
2001
| yybackup.  |
2002
`-----------*/
2003
545k
yybackup:
2004
  /* Do appropriate processing given the current state.  Read a
2005
     lookahead token if we need one and don't already have one.  */
2006
2007
  /* First try to decide what to do without reference to lookahead token.  */
2008
545k
  yyn = yypact[yystate];
2009
545k
  if (yypact_value_is_default (yyn))
2010
283k
    goto yydefault;
2011
2012
  /* Not known => get a lookahead token if don't already have one.  */
2013
2014
  /* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol.  */
2015
262k
  if (yychar == YYEMPTY)
2016
180k
    {
2017
180k
      YYDPRINTF ((stderr, "Reading a token: "));
2018
180k
      yychar = yylex (&yylval, yyscanner);
2019
180k
    }
2020
2021
262k
  if (yychar <= YYEOF)
2022
26.2k
    {
2023
26.2k
      yychar = yytoken = YYEOF;
2024
26.2k
      YYDPRINTF ((stderr, "Now at end of input.\n"));
2025
26.2k
    }
2026
236k
  else
2027
236k
    {
2028
236k
      yytoken = YYTRANSLATE (yychar);
2029
236k
      YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc);
2030
236k
    }
2031
2032
  /* If the proper action on seeing token YYTOKEN is to reduce or to
2033
     detect an error, take that action.  */
2034
262k
  yyn += yytoken;
2035
262k
  if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken)
2036
60.2k
    goto yydefault;
2037
202k
  yyn = yytable[yyn];
2038
202k
  if (yyn <= 0)
2039
23.8k
    {
2040
23.8k
      if (yytable_value_is_error (yyn))
2041
0
        goto yyerrlab;
2042
23.8k
      yyn = -yyn;
2043
23.8k
      goto yyreduce;
2044
23.8k
    }
2045
2046
  /* Count tokens shifted since error; after three, turn off error
2047
     status.  */
2048
178k
  if (yyerrstatus)
2049
0
    yyerrstatus--;
2050
2051
  /* Shift the lookahead token.  */
2052
178k
  YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc);
2053
178k
  yystate = yyn;
2054
178k
  YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
2055
178k
  *++yyvsp = yylval;
2056
178k
  YY_IGNORE_MAYBE_UNINITIALIZED_END
2057
2058
  /* Discard the shifted token.  */
2059
178k
  yychar = YYEMPTY;
2060
178k
  goto yynewstate;
2061
2062
2063
/*-----------------------------------------------------------.
2064
| yydefault -- do the default action for the current state.  |
2065
`-----------------------------------------------------------*/
2066
343k
yydefault:
2067
343k
  yyn = yydefact[yystate];
2068
343k
  if (yyn == 0)
2069
2.11k
    goto yyerrlab;
2070
341k
  goto yyreduce;
2071
2072
2073
/*-----------------------------.
2074
| yyreduce -- do a reduction.  |
2075
`-----------------------------*/
2076
365k
yyreduce:
2077
  /* yyn is the number of a rule to reduce with.  */
2078
365k
  yylen = yyr2[yyn];
2079
2080
  /* If YYLEN is nonzero, implement the default value of the action:
2081
     '$$ = $1'.
2082
2083
     Otherwise, the following line sets YYVAL to garbage.
2084
     This behavior is undocumented and Bison
2085
     users should not rely upon it.  Assigning to YYVAL
2086
     unconditionally makes the parser a bit smaller, and it avoids a
2087
     GCC warning that YYVAL may be used uninitialized.  */
2088
365k
  yyval = yyvsp[1-yylen];
2089
2090
2091
365k
  YY_REDUCE_PRINT (yyn);
2092
365k
  switch (yyn)
2093
365k
    {
2094
6.66k
  case 2:
2095
6.66k
#line 421 "/src/libpcap/build/grammar.y"
2096
6.66k
{
2097
  /*
2098
   * I'm not sure we have a reason to use yynerrs, but it's
2099
   * declared, and incremented, whether we need it or not,
2100
   * which means that Clang 15 will give a "set but not
2101
   * used" warning.  This should suppress the warning for
2102
   * yynerrs without suppressing it for other variables.
2103
   */
2104
6.66k
  (void) yynerrs;
2105
6.66k
  CHECK_INT_VAL(finish_parse(cstate, (yyvsp[0].blk).b));
2106
6.66k
}
2107
6.66k
#line 2108 "/src/libpcap/build/grammar.c"
2108
6.66k
    break;
2109
2110
13.1k
  case 4:
2111
13.1k
#line 434 "/src/libpcap/build/grammar.y"
2112
13.1k
                                { (yyval.blk).q = qerr; }
2113
13.1k
#line 2114 "/src/libpcap/build/grammar.c"
2114
13.1k
    break;
2115
2116
6.01k
  case 6:
2117
6.01k
#line 437 "/src/libpcap/build/grammar.y"
2118
6.01k
                                { (yyvsp[0].blk).b = gen_and((yyvsp[-2].blk).b, (yyvsp[0].blk).b); (yyval.blk) = (yyvsp[0].blk); }
2119
6.01k
#line 2120 "/src/libpcap/build/grammar.c"
2120
6.01k
    break;
2121
2122
6.20k
  case 7:
2123
6.20k
#line 438 "/src/libpcap/build/grammar.y"
2124
6.20k
                                { (yyvsp[0].blk).b = gen_and((yyvsp[-2].blk).b, (yyvsp[0].blk).b); (yyval.blk) = (yyvsp[0].blk); }
2125
6.20k
#line 2126 "/src/libpcap/build/grammar.c"
2126
6.20k
    break;
2127
2128
4.43k
  case 8:
2129
4.43k
#line 439 "/src/libpcap/build/grammar.y"
2130
4.43k
                                { (yyvsp[0].blk).b = gen_or((yyvsp[-2].blk).b, (yyvsp[0].blk).b); (yyval.blk) = (yyvsp[0].blk); }
2131
4.43k
#line 2132 "/src/libpcap/build/grammar.c"
2132
4.43k
    break;
2133
2134
12.2k
  case 9:
2135
12.2k
#line 440 "/src/libpcap/build/grammar.y"
2136
12.2k
                                { (yyvsp[0].blk).b = gen_or((yyvsp[-2].blk).b, (yyvsp[0].blk).b); (yyval.blk) = (yyvsp[0].blk); }
2137
12.2k
#line 2138 "/src/libpcap/build/grammar.c"
2138
12.2k
    break;
2139
2140
12.9k
  case 10:
2141
12.9k
#line 442 "/src/libpcap/build/grammar.y"
2142
12.9k
                                { (yyval.blk) = (yyvsp[-1].blk); }
2143
12.9k
#line 2144 "/src/libpcap/build/grammar.c"
2144
12.9k
    break;
2145
2146
19.4k
  case 11:
2147
19.4k
#line 444 "/src/libpcap/build/grammar.y"
2148
19.4k
                                { (yyval.blk) = (yyvsp[-1].blk); }
2149
19.4k
#line 2150 "/src/libpcap/build/grammar.c"
2150
19.4k
    break;
2151
2152
20.5k
  case 13:
2153
20.5k
#line 447 "/src/libpcap/build/grammar.y"
2154
20.5k
                                { CHECK_PTR_VAL(((yyval.blk).b = gen_ncode(cstate, NULL, (yyvsp[0].h),
2155
20.5k
               (yyval.blk).q = (yyvsp[-1].blk).q))); }
2156
20.1k
#line 2157 "/src/libpcap/build/grammar.c"
2157
20.1k
    break;
2158
2159
20.1k
  case 14:
2160
72
#line 449 "/src/libpcap/build/grammar.y"
2161
72
                                { (yyval.blk) = (yyvsp[-1].blk); }
2162
72
#line 2163 "/src/libpcap/build/grammar.c"
2163
72
    break;
2164
2165
1.85k
  case 15:
2166
1.85k
#line 451 "/src/libpcap/build/grammar.y"
2167
1.85k
                                { CHECK_PTR_VAL((yyvsp[0].s)); CHECK_PTR_VAL(((yyval.blk).b = gen_scode(cstate, (yyvsp[0].s), (yyval.blk).q = (yyvsp[-1].blk).q))); }
2168
860
#line 2169 "/src/libpcap/build/grammar.c"
2169
860
    break;
2170
2171
860
  case 16:
2172
342
#line 452 "/src/libpcap/build/grammar.y"
2173
342
                                {
2174
342
          CHECK_PTR_VAL((yyvsp[-2].s));
2175
          /* Check whether HID/NUM is being used when appropriate */
2176
342
          (yyval.blk).q = (yyvsp[-3].blk).q;
2177
342
          if ((yyval.blk).q.addr == Q_PORT) {
2178
1
          bpf_set_error(cstate, "'port' qualifier applied to IPv4 address and prefix length");
2179
1
          YYABORT;
2180
341
          } else if ((yyval.blk).q.addr == Q_PORTRANGE) {
2181
0
          bpf_set_error(cstate, "'portrange' qualifier applied to IPv4 address and prefix length");
2182
0
          YYABORT;
2183
341
          } else if ((yyval.blk).q.addr == Q_PROTO) {
2184
1
          bpf_set_error(cstate, "'proto' qualifier applied to IPv4 address and prefix length");
2185
1
          YYABORT;
2186
340
          } else if ((yyval.blk).q.addr == Q_PROTOCHAIN) {
2187
1
          bpf_set_error(cstate, "'protochain' qualifier applied to IPv4 address and prefix length");
2188
1
          YYABORT;
2189
1
          }
2190
          /* The default case in gen_mcode() catches Q_HOST and Q_GATEWAY. */
2191
339
          CHECK_PTR_VAL(((yyval.blk).b = gen_mcode(cstate, (yyvsp[-2].s), NULL, (yyvsp[0].h), (yyval.blk).q)));
2192
339
        }
2193
271
#line 2194 "/src/libpcap/build/grammar.c"
2194
271
    break;
2195
2196
271
  case 17:
2197
0
#line 472 "/src/libpcap/build/grammar.y"
2198
0
                                {
2199
0
          CHECK_PTR_VAL((yyvsp[-2].s));
2200
          /* Check whether HID mask HID is being used when appropriate */
2201
0
          (yyval.blk).q = (yyvsp[-3].blk).q;
2202
0
          if ((yyval.blk).q.addr == Q_PORT) {
2203
0
          bpf_set_error(cstate, "'port' qualifier applied to IPv4 address and netmask");
2204
0
          YYABORT;
2205
0
          } else if ((yyval.blk).q.addr == Q_PORTRANGE) {
2206
0
          bpf_set_error(cstate, "'portrange' qualifier applied to IPv4 address and netmask");
2207
0
          YYABORT;
2208
0
          } else if ((yyval.blk).q.addr == Q_PROTO) {
2209
0
          bpf_set_error(cstate, "'proto' qualifier applied to IPv4 address and netmask");
2210
0
          YYABORT;
2211
0
          } else if ((yyval.blk).q.addr == Q_PROTOCHAIN) {
2212
0
          bpf_set_error(cstate, "'protochain' qualifier applied to IPv4 address and netmask");
2213
0
          YYABORT;
2214
0
          }
2215
          /* The default case in gen_mcode() catches Q_HOST and Q_GATEWAY. */
2216
0
          CHECK_PTR_VAL(((yyval.blk).b = gen_mcode(cstate, (yyvsp[-2].s), (yyvsp[0].s), 0, (yyval.blk).q)));
2217
0
        }
2218
0
#line 2219 "/src/libpcap/build/grammar.c"
2219
0
    break;
2220
2221
492
  case 18:
2222
492
#line 492 "/src/libpcap/build/grammar.y"
2223
492
                                {
2224
492
          CHECK_PTR_VAL((yyvsp[0].s));
2225
          /* Check whether HID is being used when appropriate */
2226
492
          (yyval.blk).q = (yyvsp[-1].blk).q;
2227
492
          if ((yyval.blk).q.addr == Q_PORT) {
2228
1
          bpf_set_error(cstate, "'port' qualifier applied to IPv4 address");
2229
1
          YYABORT;
2230
491
          } else if ((yyval.blk).q.addr == Q_PORTRANGE) {
2231
0
          bpf_set_error(cstate, "'portrange' qualifier applied to IPv4 address");
2232
0
          YYABORT;
2233
491
          } else if ((yyval.blk).q.addr == Q_PROTO) {
2234
1
          bpf_set_error(cstate, "'proto' qualifier applied to IPv4 address");
2235
1
          YYABORT;
2236
490
          } else if ((yyval.blk).q.addr == Q_PROTOCHAIN) {
2237
1
          bpf_set_error(cstate, "'protochain' qualifier applied to IPv4 address");
2238
1
          YYABORT;
2239
1
          }
2240
489
          CHECK_PTR_VAL(((yyval.blk).b = gen_ncode(cstate, (yyvsp[0].s), 0, (yyval.blk).q)));
2241
489
        }
2242
455
#line 2243 "/src/libpcap/build/grammar.c"
2243
455
    break;
2244
2245
455
  case 19:
2246
368
#line 511 "/src/libpcap/build/grammar.y"
2247
368
                                {
2248
368
          CHECK_PTR_VAL((yyvsp[-2].s));
2249
          /* Check whether HID6/NUM is being used when appropriate */
2250
367
          (yyval.blk).q = (yyvsp[-3].blk).q;
2251
367
          if ((yyval.blk).q.addr == Q_PORT) {
2252
1
          bpf_set_error(cstate, "'port' qualifier applied to IPv6 address and prefix length");
2253
1
          YYABORT;
2254
366
          } else if ((yyval.blk).q.addr == Q_PORTRANGE) {
2255
0
          bpf_set_error(cstate, "'portrange' qualifier applied to IPv6 address and prefix length");
2256
0
          YYABORT;
2257
366
          } else if ((yyval.blk).q.addr == Q_PROTO) {
2258
1
          bpf_set_error(cstate, "'proto' qualifier applied to IPv6 address and prefix length ");
2259
1
          YYABORT;
2260
365
          } else if ((yyval.blk).q.addr == Q_PROTOCHAIN) {
2261
1
          bpf_set_error(cstate, "'protochain' qualifier applied to IPv6 address and prefix length");
2262
1
          YYABORT;
2263
1
          }
2264
          /* The default case in gen_mcode6() catches Q_GATEWAY. */
2265
364
          CHECK_PTR_VAL(((yyval.blk).b = gen_mcode6(cstate, (yyvsp[-2].s), (yyvsp[0].h), (yyval.blk).q)));
2266
364
        }
2267
196
#line 2268 "/src/libpcap/build/grammar.c"
2268
196
    break;
2269
2270
661
  case 20:
2271
661
#line 531 "/src/libpcap/build/grammar.y"
2272
661
                                {
2273
661
          CHECK_PTR_VAL((yyvsp[0].s));
2274
          /* Check whether HID6 is being used when appropriate */
2275
660
          (yyval.blk).q = (yyvsp[-1].blk).q;
2276
660
          if ((yyval.blk).q.addr == Q_PORT) {
2277
1
          bpf_set_error(cstate, "'port' qualifier applied to IPv6 address");
2278
1
          YYABORT;
2279
659
          } else if ((yyval.blk).q.addr == Q_PORTRANGE) {
2280
0
          bpf_set_error(cstate, "'portrange' qualifier applied to IPv6 address");
2281
0
          YYABORT;
2282
659
          } else if ((yyval.blk).q.addr == Q_PROTO) {
2283
1
          bpf_set_error(cstate, "'proto' qualifier applied to IPv6 address");
2284
1
          YYABORT;
2285
658
          } else if ((yyval.blk).q.addr == Q_PROTOCHAIN) {
2286
1
          bpf_set_error(cstate, "'protochain' qualifier applied to IPv6 address");
2287
1
          YYABORT;
2288
1
          }
2289
          /* The default case in gen_mcode6() catches Q_GATEWAY. */
2290
657
          CHECK_PTR_VAL(((yyval.blk).b = gen_mcode6(cstate, (yyvsp[0].s), 128, (yyval.blk).q)));
2291
657
        }
2292
650
#line 2293 "/src/libpcap/build/grammar.c"
2293
650
    break;
2294
2295
867
  case 21:
2296
867
#line 551 "/src/libpcap/build/grammar.y"
2297
867
                                { CHECK_PTR_VAL((yyvsp[0].s)); CHECK_PTR_VAL(((yyval.blk).b = gen_ecode(cstate, (yyvsp[0].s), (yyval.blk).q = (yyvsp[-1].blk).q))); }
2298
840
#line 2299 "/src/libpcap/build/grammar.c"
2299
840
    break;
2300
2301
840
  case 22:
2302
462
#line 552 "/src/libpcap/build/grammar.y"
2303
462
                                { CHECK_PTR_VAL((yyvsp[0].s)); CHECK_PTR_VAL(((yyval.blk).b = gen_acode(cstate, (yyvsp[0].s), (yyval.blk).q = (yyvsp[-1].blk).q))); }
2304
441
#line 2305 "/src/libpcap/build/grammar.c"
2305
441
    break;
2306
2307
2.40k
  case 23:
2308
2.40k
#line 553 "/src/libpcap/build/grammar.y"
2309
2.40k
                                { gen_not((yyvsp[0].blk).b); (yyval.blk) = (yyvsp[0].blk); }
2310
2.40k
#line 2311 "/src/libpcap/build/grammar.c"
2311
2.40k
    break;
2312
2313
3.90k
  case 24:
2314
3.90k
#line 555 "/src/libpcap/build/grammar.y"
2315
3.90k
                                { (yyval.blk) = (yyvsp[-1].blk); }
2316
3.90k
#line 2317 "/src/libpcap/build/grammar.c"
2317
3.90k
    break;
2318
2319
1.74k
  case 25:
2320
1.74k
#line 557 "/src/libpcap/build/grammar.y"
2321
1.74k
                                { (yyval.blk) = (yyvsp[-1].blk); }
2322
1.74k
#line 2323 "/src/libpcap/build/grammar.c"
2323
1.74k
    break;
2324
2325
364
  case 27:
2326
364
#line 560 "/src/libpcap/build/grammar.y"
2327
364
                                { (yyvsp[0].blk).b = gen_and((yyvsp[-2].blk).b, (yyvsp[0].blk).b); (yyval.blk) = (yyvsp[0].blk); }
2328
364
#line 2329 "/src/libpcap/build/grammar.c"
2329
364
    break;
2330
2331
1.44k
  case 28:
2332
1.44k
#line 561 "/src/libpcap/build/grammar.y"
2333
1.44k
                                { (yyvsp[0].blk).b = gen_or((yyvsp[-2].blk).b, (yyvsp[0].blk).b); (yyval.blk) = (yyvsp[0].blk); }
2334
1.44k
#line 2335 "/src/libpcap/build/grammar.c"
2335
1.44k
    break;
2336
2337
592
  case 29:
2338
592
#line 563 "/src/libpcap/build/grammar.y"
2339
592
                                { CHECK_PTR_VAL(((yyval.blk).b = gen_ncode(cstate, NULL, (yyvsp[0].h),
2340
592
               (yyval.blk).q = (yyvsp[-1].blk).q))); }
2341
358
#line 2342 "/src/libpcap/build/grammar.c"
2342
358
    break;
2343
2344
877
  case 32:
2345
877
#line 568 "/src/libpcap/build/grammar.y"
2346
877
                                { gen_not((yyvsp[0].blk).b); (yyval.blk) = (yyvsp[0].blk); }
2347
877
#line 2348 "/src/libpcap/build/grammar.c"
2348
877
    break;
2349
2350
175
  case 33:
2351
175
#line 570 "/src/libpcap/build/grammar.y"
2352
175
                                { QSET((yyval.blk).q, (yyvsp[-2].i), (yyvsp[-1].i), (yyvsp[0].i)); }
2353
175
#line 2354 "/src/libpcap/build/grammar.c"
2354
175
    break;
2355
2356
659
  case 34:
2357
659
#line 571 "/src/libpcap/build/grammar.y"
2358
659
                                { QSET((yyval.blk).q, (yyvsp[-1].i), (yyvsp[0].i), Q_DEFAULT); }
2359
659
#line 2360 "/src/libpcap/build/grammar.c"
2360
659
    break;
2361
2362
2.23k
  case 35:
2363
2.23k
#line 572 "/src/libpcap/build/grammar.y"
2364
2.23k
                                { QSET((yyval.blk).q, (yyvsp[-1].i), Q_DEFAULT, (yyvsp[0].i)); }
2365
2.23k
#line 2366 "/src/libpcap/build/grammar.c"
2366
2.23k
    break;
2367
2368
2.12k
  case 36:
2369
2.12k
#line 573 "/src/libpcap/build/grammar.y"
2370
2.12k
                                { QSET((yyval.blk).q, (yyvsp[-1].i), Q_DEFAULT, Q_PROTO); }
2371
2.12k
#line 2372 "/src/libpcap/build/grammar.c"
2372
2.12k
    break;
2373
2374
386
  case 37:
2375
386
#line 574 "/src/libpcap/build/grammar.y"
2376
386
                                {
2377
#ifdef NO_PROTOCHAIN
2378
          bpf_set_error(cstate, "protochain not supported");
2379
          YYABORT;
2380
#else
2381
386
          QSET((yyval.blk).q, (yyvsp[-1].i), Q_DEFAULT, Q_PROTOCHAIN);
2382
386
#endif
2383
386
        }
2384
386
#line 2385 "/src/libpcap/build/grammar.c"
2385
386
    break;
2386
2387
0
  case 38:
2388
0
#line 582 "/src/libpcap/build/grammar.y"
2389
0
                                { QSET((yyval.blk).q, (yyvsp[-1].i), Q_DEFAULT, (yyvsp[0].i)); }
2390
0
#line 2391 "/src/libpcap/build/grammar.c"
2391
0
    break;
2392
2393
3.59k
  case 39:
2394
3.59k
#line 584 "/src/libpcap/build/grammar.y"
2395
3.59k
                                { (yyval.blk) = (yyvsp[0].blk); }
2396
3.59k
#line 2397 "/src/libpcap/build/grammar.c"
2397
3.59k
    break;
2398
2399
74
  case 40:
2400
74
#line 585 "/src/libpcap/build/grammar.y"
2401
74
                                { (yyval.blk).b = (yyvsp[-1].blk).b; (yyval.blk).q = (yyvsp[-2].blk).q; }
2402
74
#line 2403 "/src/libpcap/build/grammar.c"
2403
74
    break;
2404
2405
5.69k
  case 41:
2406
5.69k
#line 586 "/src/libpcap/build/grammar.y"
2407
5.69k
                                { CHECK_PTR_VAL(((yyval.blk).b = gen_proto_abbrev(cstate, (yyvsp[0].i)))); (yyval.blk).q = qerr; }
2408
0
#line 2409 "/src/libpcap/build/grammar.c"
2409
0
    break;
2410
2411
2.87k
  case 42:
2412
2.87k
#line 587 "/src/libpcap/build/grammar.y"
2413
2.87k
                                { CHECK_PTR_VAL(((yyval.blk).b = gen_relation(cstate, (yyvsp[-1].i), (yyvsp[-2].a), (yyvsp[0].a), 0)));
2414
2.87k
          (yyval.blk).q = qerr; }
2415
0
#line 2416 "/src/libpcap/build/grammar.c"
2416
0
    break;
2417
2418
1.55k
  case 43:
2419
1.55k
#line 589 "/src/libpcap/build/grammar.y"
2420
1.55k
                                { CHECK_PTR_VAL(((yyval.blk).b = gen_relation(cstate, (yyvsp[-1].i), (yyvsp[-2].a), (yyvsp[0].a), 1)));
2421
1.55k
          (yyval.blk).q = qerr; }
2422
0
#line 2423 "/src/libpcap/build/grammar.c"
2423
0
    break;
2424
2425
3.78k
  case 44:
2426
3.78k
#line 591 "/src/libpcap/build/grammar.y"
2427
3.78k
                                { (yyval.blk).b = (yyvsp[0].rblk); (yyval.blk).q = qerr; }
2428
3.78k
#line 2429 "/src/libpcap/build/grammar.c"
2429
3.78k
    break;
2430
2431
151
  case 45:
2432
151
#line 592 "/src/libpcap/build/grammar.y"
2433
151
                                { CHECK_PTR_VAL(((yyval.blk).b = gen_atmtype_abbrev(cstate, (yyvsp[0].i)))); (yyval.blk).q = qerr; }
2434
0
#line 2435 "/src/libpcap/build/grammar.c"
2435
0
    break;
2436
2437
35
  case 46:
2438
35
#line 593 "/src/libpcap/build/grammar.y"
2439
35
                                { CHECK_PTR_VAL(((yyval.blk).b = gen_atmmulti_abbrev(cstate, (yyvsp[0].i)))); (yyval.blk).q = qerr; }
2440
0
#line 2441 "/src/libpcap/build/grammar.c"
2441
0
    break;
2442
2443
110
  case 47:
2444
110
#line 594 "/src/libpcap/build/grammar.y"
2445
110
                                { (yyval.blk).b = (yyvsp[0].blk).b; (yyval.blk).q = qerr; }
2446
110
#line 2447 "/src/libpcap/build/grammar.c"
2447
110
    break;
2448
2449
287
  case 48:
2450
287
#line 595 "/src/libpcap/build/grammar.y"
2451
287
                                { CHECK_PTR_VAL(((yyval.blk).b = gen_mtp2type_abbrev(cstate, (yyvsp[0].i)))); (yyval.blk).q = qerr; }
2452
0
#line 2453 "/src/libpcap/build/grammar.c"
2453
0
    break;
2454
2455
236
  case 49:
2456
236
#line 596 "/src/libpcap/build/grammar.y"
2457
236
                                { (yyval.blk).b = (yyvsp[0].blk).b; (yyval.blk).q = qerr; }
2458
236
#line 2459 "/src/libpcap/build/grammar.c"
2459
236
    break;
2460
2461
3.81k
  case 51:
2462
3.81k
#line 600 "/src/libpcap/build/grammar.y"
2463
3.81k
                                { (yyval.i) = Q_DEFAULT; }
2464
3.81k
#line 2465 "/src/libpcap/build/grammar.c"
2465
3.81k
    break;
2466
2467
145
  case 52:
2468
145
#line 603 "/src/libpcap/build/grammar.y"
2469
145
                                { (yyval.i) = Q_SRC; }
2470
145
#line 2471 "/src/libpcap/build/grammar.c"
2471
145
    break;
2472
2473
191
  case 53:
2474
191
#line 604 "/src/libpcap/build/grammar.y"
2475
191
                                { (yyval.i) = Q_DST; }
2476
191
#line 2477 "/src/libpcap/build/grammar.c"
2477
191
    break;
2478
2479
21
  case 54:
2480
21
#line 605 "/src/libpcap/build/grammar.y"
2481
21
                                { (yyval.i) = Q_OR; }
2482
21
#line 2483 "/src/libpcap/build/grammar.c"
2483
21
    break;
2484
2485
79
  case 55:
2486
79
#line 606 "/src/libpcap/build/grammar.y"
2487
79
                                { (yyval.i) = Q_OR; }
2488
79
#line 2489 "/src/libpcap/build/grammar.c"
2489
79
    break;
2490
2491
19
  case 56:
2492
19
#line 607 "/src/libpcap/build/grammar.y"
2493
19
                                { (yyval.i) = Q_AND; }
2494
19
#line 2495 "/src/libpcap/build/grammar.c"
2495
19
    break;
2496
2497
168
  case 57:
2498
168
#line 608 "/src/libpcap/build/grammar.y"
2499
168
                                { (yyval.i) = Q_AND; }
2500
168
#line 2501 "/src/libpcap/build/grammar.c"
2501
168
    break;
2502
2503
26
  case 58:
2504
26
#line 609 "/src/libpcap/build/grammar.y"
2505
26
                                { (yyval.i) = Q_ADDR1; }
2506
26
#line 2507 "/src/libpcap/build/grammar.c"
2507
26
    break;
2508
2509
19
  case 59:
2510
19
#line 610 "/src/libpcap/build/grammar.y"
2511
19
                                { (yyval.i) = Q_ADDR2; }
2512
19
#line 2513 "/src/libpcap/build/grammar.c"
2513
19
    break;
2514
2515
20
  case 60:
2516
20
#line 611 "/src/libpcap/build/grammar.y"
2517
20
                                { (yyval.i) = Q_ADDR3; }
2518
20
#line 2519 "/src/libpcap/build/grammar.c"
2519
20
    break;
2520
2521
15
  case 61:
2522
15
#line 612 "/src/libpcap/build/grammar.y"
2523
15
                                { (yyval.i) = Q_ADDR4; }
2524
15
#line 2525 "/src/libpcap/build/grammar.c"
2525
15
    break;
2526
2527
79
  case 62:
2528
79
#line 613 "/src/libpcap/build/grammar.y"
2529
79
                                { (yyval.i) = Q_RA; }
2530
79
#line 2531 "/src/libpcap/build/grammar.c"
2531
79
    break;
2532
2533
52
  case 63:
2534
52
#line 614 "/src/libpcap/build/grammar.y"
2535
52
                                { (yyval.i) = Q_TA; }
2536
52
#line 2537 "/src/libpcap/build/grammar.c"
2537
52
    break;
2538
2539
212
  case 64:
2540
212
#line 617 "/src/libpcap/build/grammar.y"
2541
212
                                { (yyval.i) = Q_HOST; }
2542
212
#line 2543 "/src/libpcap/build/grammar.c"
2543
212
    break;
2544
2545
1.52k
  case 65:
2546
1.52k
#line 618 "/src/libpcap/build/grammar.y"
2547
1.52k
                                { (yyval.i) = Q_NET; }
2548
1.52k
#line 2549 "/src/libpcap/build/grammar.c"
2549
1.52k
    break;
2550
2551
679
  case 66:
2552
679
#line 619 "/src/libpcap/build/grammar.y"
2553
679
                                { (yyval.i) = Q_PORT; }
2554
679
#line 2555 "/src/libpcap/build/grammar.c"
2555
679
    break;
2556
2557
0
  case 67:
2558
0
#line 620 "/src/libpcap/build/grammar.y"
2559
0
                                { (yyval.i) = Q_PORTRANGE; }
2560
0
#line 2561 "/src/libpcap/build/grammar.c"
2561
0
    break;
2562
2563
0
  case 68:
2564
0
#line 623 "/src/libpcap/build/grammar.y"
2565
0
                                { (yyval.i) = Q_GATEWAY; }
2566
0
#line 2567 "/src/libpcap/build/grammar.c"
2567
0
    break;
2568
2569
2.82k
  case 69:
2570
2.82k
#line 625 "/src/libpcap/build/grammar.y"
2571
2.82k
                                { (yyval.i) = Q_LINK; }
2572
2.82k
#line 2573 "/src/libpcap/build/grammar.c"
2573
2.82k
    break;
2574
2575
1.23k
  case 70:
2576
1.23k
#line 626 "/src/libpcap/build/grammar.y"
2577
1.23k
                                { (yyval.i) = Q_IP; }
2578
1.23k
#line 2579 "/src/libpcap/build/grammar.c"
2579
1.23k
    break;
2580
2581
158
  case 71:
2582
158
#line 627 "/src/libpcap/build/grammar.y"
2583
158
                                { (yyval.i) = Q_ARP; }
2584
158
#line 2585 "/src/libpcap/build/grammar.c"
2585
158
    break;
2586
2587
80
  case 72:
2588
80
#line 628 "/src/libpcap/build/grammar.y"
2589
80
                                { (yyval.i) = Q_RARP; }
2590
80
#line 2591 "/src/libpcap/build/grammar.c"
2591
80
    break;
2592
2593
133
  case 73:
2594
133
#line 629 "/src/libpcap/build/grammar.y"
2595
133
                                { (yyval.i) = Q_SCTP; }
2596
133
#line 2597 "/src/libpcap/build/grammar.c"
2597
133
    break;
2598
2599
354
  case 74:
2600
354
#line 630 "/src/libpcap/build/grammar.y"
2601
354
                                { (yyval.i) = Q_TCP; }
2602
354
#line 2603 "/src/libpcap/build/grammar.c"
2603
354
    break;
2604
2605
783
  case 75:
2606
783
#line 631 "/src/libpcap/build/grammar.y"
2607
783
                                { (yyval.i) = Q_UDP; }
2608
783
#line 2609 "/src/libpcap/build/grammar.c"
2609
783
    break;
2610
2611
99
  case 76:
2612
99
#line 632 "/src/libpcap/build/grammar.y"
2613
99
                                { (yyval.i) = Q_ICMP; }
2614
99
#line 2615 "/src/libpcap/build/grammar.c"
2615
99
    break;
2616
2617
86
  case 77:
2618
86
#line 633 "/src/libpcap/build/grammar.y"
2619
86
                                { (yyval.i) = Q_IGMP; }
2620
86
#line 2621 "/src/libpcap/build/grammar.c"
2621
86
    break;
2622
2623
236
  case 78:
2624
236
#line 634 "/src/libpcap/build/grammar.y"
2625
236
                                { (yyval.i) = Q_IGRP; }
2626
236
#line 2627 "/src/libpcap/build/grammar.c"
2627
236
    break;
2628
2629
409
  case 79:
2630
409
#line 635 "/src/libpcap/build/grammar.y"
2631
409
                                { (yyval.i) = Q_PIM; }
2632
409
#line 2633 "/src/libpcap/build/grammar.c"
2633
409
    break;
2634
2635
59
  case 80:
2636
59
#line 636 "/src/libpcap/build/grammar.y"
2637
59
                                { (yyval.i) = Q_VRRP; }
2638
59
#line 2639 "/src/libpcap/build/grammar.c"
2639
59
    break;
2640
2641
67
  case 81:
2642
67
#line 637 "/src/libpcap/build/grammar.y"
2643
67
                                { (yyval.i) = Q_CARP; }
2644
67
#line 2645 "/src/libpcap/build/grammar.c"
2645
67
    break;
2646
2647
306
  case 82:
2648
306
#line 638 "/src/libpcap/build/grammar.y"
2649
306
                                { (yyval.i) = Q_ATALK; }
2650
306
#line 2651 "/src/libpcap/build/grammar.c"
2651
306
    break;
2652
2653
52
  case 83:
2654
52
#line 639 "/src/libpcap/build/grammar.y"
2655
52
                                { (yyval.i) = Q_AARP; }
2656
52
#line 2657 "/src/libpcap/build/grammar.c"
2657
52
    break;
2658
2659
136
  case 84:
2660
136
#line 640 "/src/libpcap/build/grammar.y"
2661
136
                                { (yyval.i) = Q_DECNET; }
2662
136
#line 2663 "/src/libpcap/build/grammar.c"
2663
136
    break;
2664
2665
96
  case 85:
2666
96
#line 641 "/src/libpcap/build/grammar.y"
2667
96
                                { (yyval.i) = Q_LAT; }
2668
96
#line 2669 "/src/libpcap/build/grammar.c"
2669
96
    break;
2670
2671
78
  case 86:
2672
78
#line 642 "/src/libpcap/build/grammar.y"
2673
78
                                { (yyval.i) = Q_SCA; }
2674
78
#line 2675 "/src/libpcap/build/grammar.c"
2675
78
    break;
2676
2677
11
  case 87:
2678
11
#line 643 "/src/libpcap/build/grammar.y"
2679
11
                                { (yyval.i) = Q_MOPDL; }
2680
11
#line 2681 "/src/libpcap/build/grammar.c"
2681
11
    break;
2682
2683
96
  case 88:
2684
96
#line 644 "/src/libpcap/build/grammar.y"
2685
96
                                { (yyval.i) = Q_MOPRC; }
2686
96
#line 2687 "/src/libpcap/build/grammar.c"
2687
96
    break;
2688
2689
470
  case 89:
2690
470
#line 645 "/src/libpcap/build/grammar.y"
2691
470
                                { (yyval.i) = Q_IPV6; }
2692
470
#line 2693 "/src/libpcap/build/grammar.c"
2693
470
    break;
2694
2695
462
  case 90:
2696
462
#line 646 "/src/libpcap/build/grammar.y"
2697
462
                                { (yyval.i) = Q_ICMPV6; }
2698
462
#line 2699 "/src/libpcap/build/grammar.c"
2699
462
    break;
2700
2701
245
  case 91:
2702
245
#line 647 "/src/libpcap/build/grammar.y"
2703
245
                                { (yyval.i) = Q_AH; }
2704
245
#line 2705 "/src/libpcap/build/grammar.c"
2705
245
    break;
2706
2707
37
  case 92:
2708
37
#line 648 "/src/libpcap/build/grammar.y"
2709
37
                                { (yyval.i) = Q_ESP; }
2710
37
#line 2711 "/src/libpcap/build/grammar.c"
2711
37
    break;
2712
2713
168
  case 93:
2714
168
#line 649 "/src/libpcap/build/grammar.y"
2715
168
                                { (yyval.i) = Q_ISO; }
2716
168
#line 2717 "/src/libpcap/build/grammar.c"
2717
168
    break;
2718
2719
101
  case 94:
2720
101
#line 650 "/src/libpcap/build/grammar.y"
2721
101
                                { (yyval.i) = Q_ESIS; }
2722
101
#line 2723 "/src/libpcap/build/grammar.c"
2723
101
    break;
2724
2725
123
  case 95:
2726
123
#line 651 "/src/libpcap/build/grammar.y"
2727
123
                                { (yyval.i) = Q_ISIS; }
2728
123
#line 2729 "/src/libpcap/build/grammar.c"
2729
123
    break;
2730
2731
1.72k
  case 96:
2732
1.72k
#line 652 "/src/libpcap/build/grammar.y"
2733
1.72k
                                { (yyval.i) = Q_ISIS_L1; }
2734
1.72k
#line 2735 "/src/libpcap/build/grammar.c"
2735
1.72k
    break;
2736
2737
1.62k
  case 97:
2738
1.62k
#line 653 "/src/libpcap/build/grammar.y"
2739
1.62k
                                { (yyval.i) = Q_ISIS_L2; }
2740
1.62k
#line 2741 "/src/libpcap/build/grammar.c"
2741
1.62k
    break;
2742
2743
174
  case 98:
2744
174
#line 654 "/src/libpcap/build/grammar.y"
2745
174
                                { (yyval.i) = Q_ISIS_IIH; }
2746
174
#line 2747 "/src/libpcap/build/grammar.c"
2747
174
    break;
2748
2749
91
  case 99:
2750
91
#line 655 "/src/libpcap/build/grammar.y"
2751
91
                                { (yyval.i) = Q_ISIS_LSP; }
2752
91
#line 2753 "/src/libpcap/build/grammar.c"
2753
91
    break;
2754
2755
170
  case 100:
2756
170
#line 656 "/src/libpcap/build/grammar.y"
2757
170
                                { (yyval.i) = Q_ISIS_SNP; }
2758
170
#line 2759 "/src/libpcap/build/grammar.c"
2759
170
    break;
2760
2761
107
  case 101:
2762
107
#line 657 "/src/libpcap/build/grammar.y"
2763
107
                                { (yyval.i) = Q_ISIS_PSNP; }
2764
107
#line 2765 "/src/libpcap/build/grammar.c"
2765
107
    break;
2766
2767
80
  case 102:
2768
80
#line 658 "/src/libpcap/build/grammar.y"
2769
80
                                { (yyval.i) = Q_ISIS_CSNP; }
2770
80
#line 2771 "/src/libpcap/build/grammar.c"
2771
80
    break;
2772
2773
18
  case 103:
2774
18
#line 659 "/src/libpcap/build/grammar.y"
2775
18
                                { (yyval.i) = Q_CLNP; }
2776
18
#line 2777 "/src/libpcap/build/grammar.c"
2777
18
    break;
2778
2779
169
  case 104:
2780
169
#line 660 "/src/libpcap/build/grammar.y"
2781
169
                                { (yyval.i) = Q_STP; }
2782
169
#line 2783 "/src/libpcap/build/grammar.c"
2783
169
    break;
2784
2785
340
  case 105:
2786
340
#line 661 "/src/libpcap/build/grammar.y"
2787
340
                                { (yyval.i) = Q_IPX; }
2788
340
#line 2789 "/src/libpcap/build/grammar.c"
2789
340
    break;
2790
2791
33
  case 106:
2792
33
#line 662 "/src/libpcap/build/grammar.y"
2793
33
                                { (yyval.i) = Q_NETBEUI; }
2794
33
#line 2795 "/src/libpcap/build/grammar.c"
2795
33
    break;
2796
2797
203
  case 107:
2798
203
#line 663 "/src/libpcap/build/grammar.y"
2799
203
                                { (yyval.i) = Q_RADIO; }
2800
203
#line 2801 "/src/libpcap/build/grammar.c"
2801
203
    break;
2802
2803
0
  case 108:
2804
0
#line 665 "/src/libpcap/build/grammar.y"
2805
0
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_broadcast(cstate, (yyvsp[-1].i)))); }
2806
0
#line 2807 "/src/libpcap/build/grammar.c"
2807
0
    break;
2808
2809
0
  case 109:
2810
0
#line 666 "/src/libpcap/build/grammar.y"
2811
0
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_multicast(cstate, (yyvsp[-1].i)))); }
2812
0
#line 2813 "/src/libpcap/build/grammar.c"
2813
0
    break;
2814
2815
60
  case 110:
2816
60
#line 667 "/src/libpcap/build/grammar.y"
2817
60
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_less(cstate, (yyvsp[0].h)))); }
2818
60
#line 2819 "/src/libpcap/build/grammar.c"
2819
60
    break;
2820
2821
60
  case 111:
2822
0
#line 668 "/src/libpcap/build/grammar.y"
2823
0
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_greater(cstate, (yyvsp[0].h)))); }
2824
0
#line 2825 "/src/libpcap/build/grammar.c"
2825
0
    break;
2826
2827
218
  case 112:
2828
218
#line 669 "/src/libpcap/build/grammar.y"
2829
218
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_byteop(cstate, (yyvsp[-1].i), (yyvsp[-2].h), (yyvsp[0].h)))); }
2830
200
#line 2831 "/src/libpcap/build/grammar.c"
2831
200
    break;
2832
2833
200
  case 113:
2834
0
#line 670 "/src/libpcap/build/grammar.y"
2835
0
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_inbound_outbound(cstate, 0))); }
2836
0
#line 2837 "/src/libpcap/build/grammar.c"
2837
0
    break;
2838
2839
0
  case 114:
2840
0
#line 671 "/src/libpcap/build/grammar.y"
2841
0
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_inbound_outbound(cstate, 1))); }
2842
0
#line 2843 "/src/libpcap/build/grammar.c"
2843
0
    break;
2844
2845
0
  case 115:
2846
0
#line 672 "/src/libpcap/build/grammar.y"
2847
0
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_ifindex(cstate, (yyvsp[0].h)))); }
2848
0
#line 2849 "/src/libpcap/build/grammar.c"
2849
0
    break;
2850
2851
86
  case 116:
2852
86
#line 673 "/src/libpcap/build/grammar.y"
2853
86
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_vlan(cstate, (yyvsp[0].h), 1))); }
2854
48
#line 2855 "/src/libpcap/build/grammar.c"
2855
48
    break;
2856
2857
616
  case 117:
2858
616
#line 674 "/src/libpcap/build/grammar.y"
2859
616
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_vlan(cstate, 0, 0))); }
2860
610
#line 2861 "/src/libpcap/build/grammar.c"
2861
610
    break;
2862
2863
610
  case 118:
2864
62
#line 675 "/src/libpcap/build/grammar.y"
2865
62
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_mpls(cstate, (yyvsp[0].h), 1))); }
2866
42
#line 2867 "/src/libpcap/build/grammar.c"
2867
42
    break;
2868
2869
108
  case 119:
2870
108
#line 676 "/src/libpcap/build/grammar.y"
2871
108
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_mpls(cstate, 0, 0))); }
2872
99
#line 2873 "/src/libpcap/build/grammar.c"
2873
99
    break;
2874
2875
99
  case 120:
2876
16
#line 677 "/src/libpcap/build/grammar.y"
2877
16
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_pppoed(cstate))); }
2878
15
#line 2879 "/src/libpcap/build/grammar.c"
2879
15
    break;
2880
2881
29
  case 121:
2882
29
#line 678 "/src/libpcap/build/grammar.y"
2883
29
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_pppoes(cstate, (yyvsp[0].h), 1))); }
2884
27
#line 2885 "/src/libpcap/build/grammar.c"
2885
27
    break;
2886
2887
73
  case 122:
2888
73
#line 679 "/src/libpcap/build/grammar.y"
2889
73
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_pppoes(cstate, 0, 0))); }
2890
72
#line 2891 "/src/libpcap/build/grammar.c"
2891
72
    break;
2892
2893
72
  case 123:
2894
0
#line 680 "/src/libpcap/build/grammar.y"
2895
0
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_geneve(cstate, (yyvsp[0].h), 1))); }
2896
0
#line 2897 "/src/libpcap/build/grammar.c"
2897
0
    break;
2898
2899
0
  case 124:
2900
0
#line 681 "/src/libpcap/build/grammar.y"
2901
0
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_geneve(cstate, 0, 0))); }
2902
0
#line 2903 "/src/libpcap/build/grammar.c"
2903
0
    break;
2904
2905
156
  case 125:
2906
156
#line 682 "/src/libpcap/build/grammar.y"
2907
156
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_vxlan(cstate, (yyvsp[0].h), 1))); }
2908
141
#line 2909 "/src/libpcap/build/grammar.c"
2909
141
    break;
2910
2911
643
  case 126:
2912
643
#line 683 "/src/libpcap/build/grammar.y"
2913
643
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_vxlan(cstate, 0, 0))); }
2914
635
#line 2915 "/src/libpcap/build/grammar.c"
2915
635
    break;
2916
2917
635
  case 127:
2918
87
#line 684 "/src/libpcap/build/grammar.y"
2919
87
                                { (yyval.rblk) = (yyvsp[0].rblk); }
2920
87
#line 2921 "/src/libpcap/build/grammar.c"
2921
87
    break;
2922
2923
398
  case 128:
2924
398
#line 685 "/src/libpcap/build/grammar.y"
2925
398
                                { (yyval.rblk) = (yyvsp[0].rblk); }
2926
398
#line 2927 "/src/libpcap/build/grammar.c"
2927
398
    break;
2928
2929
1.35k
  case 129:
2930
1.35k
#line 686 "/src/libpcap/build/grammar.y"
2931
1.35k
                                { (yyval.rblk) = (yyvsp[0].rblk); }
2932
1.35k
#line 2933 "/src/libpcap/build/grammar.c"
2933
1.35k
    break;
2934
2935
38
  case 130:
2936
38
#line 689 "/src/libpcap/build/grammar.y"
2937
38
                                { CHECK_PTR_VAL((yyvsp[0].s)); CHECK_PTR_VAL(((yyval.rblk) = gen_pf_ifname(cstate, (yyvsp[0].s)))); }
2938
28
#line 2939 "/src/libpcap/build/grammar.c"
2939
28
    break;
2940
2941
28
  case 131:
2942
15
#line 690 "/src/libpcap/build/grammar.y"
2943
15
                                { CHECK_PTR_VAL((yyvsp[0].s)); CHECK_PTR_VAL(((yyval.rblk) = gen_pf_ruleset(cstate, (yyvsp[0].s)))); }
2944
13
#line 2945 "/src/libpcap/build/grammar.c"
2945
13
    break;
2946
2947
18
  case 132:
2948
18
#line 691 "/src/libpcap/build/grammar.y"
2949
18
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_pf_rnr(cstate, (yyvsp[0].h)))); }
2950
10
#line 2951 "/src/libpcap/build/grammar.c"
2951
10
    break;
2952
2953
16
  case 133:
2954
16
#line 692 "/src/libpcap/build/grammar.y"
2955
16
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_pf_srnr(cstate, (yyvsp[0].h)))); }
2956
10
#line 2957 "/src/libpcap/build/grammar.c"
2957
10
    break;
2958
2959
26
  case 134:
2960
26
#line 693 "/src/libpcap/build/grammar.y"
2961
26
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_pf_reason(cstate, (yyvsp[0].i)))); }
2962
25
#line 2963 "/src/libpcap/build/grammar.c"
2963
25
    break;
2964
2965
25
  case 135:
2966
2
#line 694 "/src/libpcap/build/grammar.y"
2967
2
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_pf_action(cstate, (yyvsp[0].i)))); }
2968
1
#line 2969 "/src/libpcap/build/grammar.c"
2969
1
    break;
2970
2971
4
  case 136:
2972
4
#line 698 "/src/libpcap/build/grammar.y"
2973
4
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_p80211_type(cstate, (yyvsp[-2].i) | (yyvsp[0].i),
2974
4
          IEEE80211_FC0_TYPE_MASK |
2975
4
          IEEE80211_FC0_SUBTYPE_MASK)));
2976
4
        }
2977
2
#line 2978 "/src/libpcap/build/grammar.c"
2978
2
    break;
2979
2980
173
  case 137:
2981
173
#line 702 "/src/libpcap/build/grammar.y"
2982
173
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_p80211_type(cstate, (yyvsp[0].i),
2983
173
          IEEE80211_FC0_TYPE_MASK)));
2984
173
        }
2985
171
#line 2986 "/src/libpcap/build/grammar.c"
2986
171
    break;
2987
2988
171
  case 138:
2989
19
#line 705 "/src/libpcap/build/grammar.y"
2990
19
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_p80211_type(cstate, (yyvsp[0].i),
2991
19
          IEEE80211_FC0_TYPE_MASK |
2992
19
          IEEE80211_FC0_SUBTYPE_MASK)));
2993
19
        }
2994
16
#line 2995 "/src/libpcap/build/grammar.c"
2995
16
    break;
2996
2997
211
  case 139:
2998
211
#line 709 "/src/libpcap/build/grammar.y"
2999
211
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_p80211_fcdir(cstate, (yyvsp[0].i)))); }
3000
209
#line 3001 "/src/libpcap/build/grammar.c"
3001
209
    break;
3002
3003
209
  case 140:
3004
186
#line 712 "/src/libpcap/build/grammar.y"
3005
186
                                { if (((yyvsp[0].h) & (~IEEE80211_FC0_TYPE_MASK)) != 0) {
3006
34
          bpf_set_error(cstate, "invalid 802.11 type value 0x%02x", (yyvsp[0].h));
3007
34
          YYABORT;
3008
34
          }
3009
152
          (yyval.i) = (int)(yyvsp[0].h);
3010
152
        }
3011
0
#line 3012 "/src/libpcap/build/grammar.c"
3012
0
    break;
3013
3014
37
  case 141:
3015
37
#line 718 "/src/libpcap/build/grammar.y"
3016
37
                                { CHECK_PTR_VAL((yyvsp[0].s));
3017
37
          (yyval.i) = str2tok((yyvsp[0].s), ieee80211_types);
3018
37
          if ((yyval.i) == -1) {
3019
8
          bpf_set_error(cstate, "unknown 802.11 type name \"%s\"", (yyvsp[0].s));
3020
8
          YYABORT;
3021
8
          }
3022
37
        }
3023
29
#line 3024 "/src/libpcap/build/grammar.c"
3024
29
    break;
3025
3026
29
  case 142:
3027
3
#line 727 "/src/libpcap/build/grammar.y"
3028
3
                                { if (((yyvsp[0].h) & (~IEEE80211_FC0_SUBTYPE_MASK)) != 0) {
3029
1
          bpf_set_error(cstate, "invalid 802.11 subtype value 0x%02x", (yyvsp[0].h));
3030
1
          YYABORT;
3031
1
          }
3032
2
          (yyval.i) = (int)(yyvsp[0].h);
3033
2
        }
3034
0
#line 3035 "/src/libpcap/build/grammar.c"
3035
0
    break;
3036
3037
5
  case 143:
3038
5
#line 733 "/src/libpcap/build/grammar.y"
3039
5
                                { const struct tok *types = NULL;
3040
5
          int i;
3041
5
          CHECK_PTR_VAL((yyvsp[0].s));
3042
13
          for (i = 0;; i++) {
3043
13
          if (ieee80211_type_subtypes[i].tok == NULL) {
3044
            /* Ran out of types */
3045
1
            bpf_set_error(cstate, "unknown 802.11 type");
3046
1
            YYABORT;
3047
1
          }
3048
12
          if ((yyvsp[(-1) - (1)].i) == ieee80211_type_subtypes[i].type) {
3049
4
            types = ieee80211_type_subtypes[i].tok;
3050
4
            break;
3051
4
          }
3052
12
          }
3053
3054
4
          (yyval.i) = str2tok((yyvsp[0].s), types);
3055
4
          if ((yyval.i) == -1) {
3056
2
          bpf_set_error(cstate, "unknown 802.11 subtype name \"%s\"", (yyvsp[0].s));
3057
2
          YYABORT;
3058
2
          }
3059
4
        }
3060
2
#line 3061 "/src/libpcap/build/grammar.c"
3061
2
    break;
3062
3063
22
  case 144:
3064
22
#line 756 "/src/libpcap/build/grammar.y"
3065
22
                                { int i;
3066
22
          CHECK_PTR_VAL((yyvsp[0].s));
3067
60
          for (i = 0;; i++) {
3068
60
          if (ieee80211_type_subtypes[i].tok == NULL) {
3069
            /* Ran out of types */
3070
3
            bpf_set_error(cstate, "unknown 802.11 type name");
3071
3
            YYABORT;
3072
3
          }
3073
57
          (yyval.i) = str2tok((yyvsp[0].s), ieee80211_type_subtypes[i].tok);
3074
57
          if ((yyval.i) != -1) {
3075
19
            (yyval.i) |= ieee80211_type_subtypes[i].type;
3076
19
            break;
3077
19
          }
3078
57
          }
3079
22
        }
3080
19
#line 3081 "/src/libpcap/build/grammar.c"
3081
19
    break;
3082
3083
757
  case 145:
3084
757
#line 773 "/src/libpcap/build/grammar.y"
3085
757
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_llc(cstate))); }
3086
752
#line 3087 "/src/libpcap/build/grammar.c"
3087
752
    break;
3088
3089
752
  case 146:
3090
625
#line 774 "/src/libpcap/build/grammar.y"
3091
625
                                { CHECK_PTR_VAL((yyvsp[0].s));
3092
625
          if (pcapint_strcasecmp((yyvsp[0].s), "i") == 0) {
3093
91
          CHECK_PTR_VAL(((yyval.rblk) = gen_llc_i(cstate)));
3094
534
          } else if (pcapint_strcasecmp((yyvsp[0].s), "s") == 0) {
3095
157
          CHECK_PTR_VAL(((yyval.rblk) = gen_llc_s(cstate)));
3096
377
          } else if (pcapint_strcasecmp((yyvsp[0].s), "u") == 0) {
3097
176
          CHECK_PTR_VAL(((yyval.rblk) = gen_llc_u(cstate)));
3098
201
          } else {
3099
201
          int subtype;
3100
3101
201
          subtype = str2tok((yyvsp[0].s), llc_s_subtypes);
3102
201
          if (subtype != -1) {
3103
39
            CHECK_PTR_VAL(((yyval.rblk) = gen_llc_s_subtype(cstate, subtype)));
3104
162
          } else {
3105
162
            subtype = str2tok((yyvsp[0].s), llc_u_subtypes);
3106
162
            if (subtype == -1) {
3107
32
              bpf_set_error(cstate, "unknown LLC type name \"%s\"", (yyvsp[0].s));
3108
32
              YYABORT;
3109
32
            }
3110
130
            CHECK_PTR_VAL(((yyval.rblk) = gen_llc_u_subtype(cstate, subtype)));
3111
130
          }
3112
201
          }
3113
625
        }
3114
580
#line 3115 "/src/libpcap/build/grammar.c"
3115
580
    break;
3116
3117
580
  case 147:
3118
20
#line 798 "/src/libpcap/build/grammar.y"
3119
20
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_llc_s_subtype(cstate, LLC_RNR))); }
3120
19
#line 3121 "/src/libpcap/build/grammar.c"
3121
19
    break;
3122
3123
237
  case 148:
3124
237
#line 801 "/src/libpcap/build/grammar.y"
3125
237
                                { if (((yyvsp[0].h) & (~IEEE80211_FC1_DIR_MASK)) != 0) {
3126
42
          bpf_set_error(cstate, "invalid 802.11 direction value 0x%x", (yyvsp[0].h));
3127
42
          YYABORT;
3128
42
          }
3129
195
          (yyval.i) = (int)(yyvsp[0].h);
3130
195
        }
3131
0
#line 3132 "/src/libpcap/build/grammar.c"
3132
0
    break;
3133
3134
42
  case 149:
3135
42
#line 807 "/src/libpcap/build/grammar.y"
3136
42
                                { CHECK_PTR_VAL((yyvsp[0].s));
3137
42
          if (pcapint_strcasecmp((yyvsp[0].s), "nods") == 0)
3138
6
          (yyval.i) = IEEE80211_FC1_DIR_NODS;
3139
36
          else if (pcapint_strcasecmp((yyvsp[0].s), "tods") == 0)
3140
10
          (yyval.i) = IEEE80211_FC1_DIR_TODS;
3141
26
          else if (pcapint_strcasecmp((yyvsp[0].s), "fromds") == 0)
3142
0
          (yyval.i) = IEEE80211_FC1_DIR_FROMDS;
3143
26
          else if (pcapint_strcasecmp((yyvsp[0].s), "dstods") == 0)
3144
0
          (yyval.i) = IEEE80211_FC1_DIR_DSTODS;
3145
26
          else {
3146
26
          bpf_set_error(cstate, "unknown 802.11 direction");
3147
26
          YYABORT;
3148
26
          }
3149
42
        }
3150
16
#line 3151 "/src/libpcap/build/grammar.c"
3151
16
    break;
3152
3153
26
  case 150:
3154
26
#line 823 "/src/libpcap/build/grammar.y"
3155
26
                                { (yyval.i) = (yyvsp[0].h); }
3156
26
#line 3157 "/src/libpcap/build/grammar.c"
3157
26
    break;
3158
3159
6
  case 151:
3160
6
#line 824 "/src/libpcap/build/grammar.y"
3161
6
                                { CHECK_PTR_VAL((yyvsp[0].s)); CHECK_INT_VAL(((yyval.i) = pfreason_to_num(cstate, (yyvsp[0].s)))); }
3162
0
#line 3163 "/src/libpcap/build/grammar.c"
3163
0
    break;
3164
3165
8
  case 152:
3166
8
#line 827 "/src/libpcap/build/grammar.y"
3167
8
                                { CHECK_PTR_VAL((yyvsp[0].s)); CHECK_INT_VAL(((yyval.i) = pfaction_to_num(cstate, (yyvsp[0].s)))); }
3168
2
#line 3169 "/src/libpcap/build/grammar.c"
3169
2
    break;
3170
3171
1.24k
  case 153:
3172
1.24k
#line 830 "/src/libpcap/build/grammar.y"
3173
1.24k
                                { (yyval.i) = BPF_JGT; }
3174
1.24k
#line 3175 "/src/libpcap/build/grammar.c"
3175
1.24k
    break;
3176
3177
68
  case 154:
3178
68
#line 831 "/src/libpcap/build/grammar.y"
3179
68
                                { (yyval.i) = BPF_JGE; }
3180
68
#line 3181 "/src/libpcap/build/grammar.c"
3181
68
    break;
3182
3183
1.75k
  case 155:
3184
1.75k
#line 832 "/src/libpcap/build/grammar.y"
3185
1.75k
                                { (yyval.i) = BPF_JEQ; }
3186
1.75k
#line 3187 "/src/libpcap/build/grammar.c"
3187
1.75k
    break;
3188
3189
152
  case 156:
3190
152
#line 834 "/src/libpcap/build/grammar.y"
3191
152
                                { (yyval.i) = BPF_JGT; }
3192
152
#line 3193 "/src/libpcap/build/grammar.c"
3193
152
    break;
3194
3195
1.49k
  case 157:
3196
1.49k
#line 835 "/src/libpcap/build/grammar.y"
3197
1.49k
                                { (yyval.i) = BPF_JGE; }
3198
1.49k
#line 3199 "/src/libpcap/build/grammar.c"
3199
1.49k
    break;
3200
3201
65
  case 158:
3202
65
#line 836 "/src/libpcap/build/grammar.y"
3203
65
                                { (yyval.i) = BPF_JEQ; }
3204
65
#line 3205 "/src/libpcap/build/grammar.c"
3205
65
    break;
3206
3207
24.0k
  case 159:
3208
24.0k
#line 838 "/src/libpcap/build/grammar.y"
3209
24.0k
                                { CHECK_PTR_VAL(((yyval.a) = gen_loadi(cstate, (yyvsp[0].h)))); }
3210
24.0k
#line 3211 "/src/libpcap/build/grammar.c"
3211
24.0k
    break;
3212
3213
24.0k
  case 161:
3214
4.26k
#line 841 "/src/libpcap/build/grammar.y"
3215
4.26k
                                        { CHECK_PTR_VAL(((yyval.a) = gen_load(cstate, (yyvsp[-3].i), (yyvsp[-1].a), 1))); }
3216
4.24k
#line 3217 "/src/libpcap/build/grammar.c"
3217
4.24k
    break;
3218
3219
4.24k
  case 162:
3220
326
#line 842 "/src/libpcap/build/grammar.y"
3221
326
                                        { CHECK_PTR_VAL(((yyval.a) = gen_load(cstate, (yyvsp[-5].i), (yyvsp[-3].a), (yyvsp[-1].h)))); }
3222
325
#line 3223 "/src/libpcap/build/grammar.c"
3223
325
    break;
3224
3225
2.19k
  case 163:
3226
2.19k
#line 843 "/src/libpcap/build/grammar.y"
3227
2.19k
                                        { CHECK_PTR_VAL(((yyval.a) = gen_arth(cstate, BPF_ADD, (yyvsp[-2].a), (yyvsp[0].a)))); }
3228
2.19k
#line 3229 "/src/libpcap/build/grammar.c"
3229
2.19k
    break;
3230
3231
2.19k
  case 164:
3232
1.70k
#line 844 "/src/libpcap/build/grammar.y"
3233
1.70k
                                        { CHECK_PTR_VAL(((yyval.a) = gen_arth(cstate, BPF_SUB, (yyvsp[-2].a), (yyvsp[0].a)))); }
3234
1.70k
#line 3235 "/src/libpcap/build/grammar.c"
3235
1.70k
    break;
3236
3237
4.31k
  case 165:
3238
4.31k
#line 845 "/src/libpcap/build/grammar.y"
3239
4.31k
                                        { CHECK_PTR_VAL(((yyval.a) = gen_arth(cstate, BPF_MUL, (yyvsp[-2].a), (yyvsp[0].a)))); }
3240
4.31k
#line 3241 "/src/libpcap/build/grammar.c"
3241
4.31k
    break;
3242
3243
4.31k
  case 166:
3244
1.70k
#line 846 "/src/libpcap/build/grammar.y"
3245
1.70k
                                        { CHECK_PTR_VAL(((yyval.a) = gen_arth(cstate, BPF_DIV, (yyvsp[-2].a), (yyvsp[0].a)))); }
3246
1.70k
#line 3247 "/src/libpcap/build/grammar.c"
3247
1.70k
    break;
3248
3249
1.70k
  case 167:
3250
1.31k
#line 847 "/src/libpcap/build/grammar.y"
3251
1.31k
                                        { CHECK_PTR_VAL(((yyval.a) = gen_arth(cstate, BPF_MOD, (yyvsp[-2].a), (yyvsp[0].a)))); }
3252
1.31k
#line 3253 "/src/libpcap/build/grammar.c"
3253
1.31k
    break;
3254
3255
1.78k
  case 168:
3256
1.78k
#line 848 "/src/libpcap/build/grammar.y"
3257
1.78k
                                        { CHECK_PTR_VAL(((yyval.a) = gen_arth(cstate, BPF_AND, (yyvsp[-2].a), (yyvsp[0].a)))); }
3258
1.78k
#line 3259 "/src/libpcap/build/grammar.c"
3259
1.78k
    break;
3260
3261
1.78k
  case 169:
3262
1.28k
#line 849 "/src/libpcap/build/grammar.y"
3263
1.28k
                                        { CHECK_PTR_VAL(((yyval.a) = gen_arth(cstate, BPF_OR, (yyvsp[-2].a), (yyvsp[0].a)))); }
3264
1.28k
#line 3265 "/src/libpcap/build/grammar.c"
3265
1.28k
    break;
3266
3267
1.28k
  case 170:
3268
1.05k
#line 850 "/src/libpcap/build/grammar.y"
3269
1.05k
                                        { CHECK_PTR_VAL(((yyval.a) = gen_arth(cstate, BPF_XOR, (yyvsp[-2].a), (yyvsp[0].a)))); }
3270
1.05k
#line 3271 "/src/libpcap/build/grammar.c"
3271
1.05k
    break;
3272
3273
1.05k
  case 171:
3274
697
#line 851 "/src/libpcap/build/grammar.y"
3275
697
                                        { CHECK_PTR_VAL(((yyval.a) = gen_arth(cstate, BPF_LSH, (yyvsp[-2].a), (yyvsp[0].a)))); }
3276
693
#line 3277 "/src/libpcap/build/grammar.c"
3277
693
    break;
3278
3279
693
  case 172:
3280
622
#line 852 "/src/libpcap/build/grammar.y"
3281
622
                                        { CHECK_PTR_VAL(((yyval.a) = gen_arth(cstate, BPF_RSH, (yyvsp[-2].a), (yyvsp[0].a)))); }
3282
621
#line 3283 "/src/libpcap/build/grammar.c"
3283
621
    break;
3284
3285
15.8k
  case 173:
3286
15.8k
#line 853 "/src/libpcap/build/grammar.y"
3287
15.8k
                                        { CHECK_PTR_VAL(((yyval.a) = gen_neg(cstate, (yyvsp[0].a)))); }
3288
15.8k
#line 3289 "/src/libpcap/build/grammar.c"
3289
15.8k
    break;
3290
3291
15.8k
  case 174:
3292
78
#line 854 "/src/libpcap/build/grammar.y"
3293
78
                                        { (yyval.a) = (yyvsp[-1].a); }
3294
78
#line 3295 "/src/libpcap/build/grammar.c"
3295
78
    break;
3296
3297
2.74k
  case 175:
3298
2.74k
#line 855 "/src/libpcap/build/grammar.y"
3299
2.74k
                                        { CHECK_PTR_VAL(((yyval.a) = gen_loadlen(cstate))); }
3300
2.73k
#line 3301 "/src/libpcap/build/grammar.c"
3301
2.73k
    break;
3302
3303
2.73k
  case 176:
3304
46
#line 857 "/src/libpcap/build/grammar.y"
3305
46
                                { (yyval.i) = '&'; }
3306
46
#line 3307 "/src/libpcap/build/grammar.c"
3307
46
    break;
3308
3309
57
  case 177:
3310
57
#line 858 "/src/libpcap/build/grammar.y"
3311
57
                                { (yyval.i) = '|'; }
3312
57
#line 3313 "/src/libpcap/build/grammar.c"
3313
57
    break;
3314
3315
13
  case 178:
3316
13
#line 859 "/src/libpcap/build/grammar.y"
3317
13
                                { (yyval.i) = '<'; }
3318
13
#line 3319 "/src/libpcap/build/grammar.c"
3319
13
    break;
3320
3321
72
  case 179:
3322
72
#line 860 "/src/libpcap/build/grammar.y"
3323
72
                                { (yyval.i) = '>'; }
3324
72
#line 3325 "/src/libpcap/build/grammar.c"
3325
72
    break;
3326
3327
31
  case 180:
3328
31
#line 861 "/src/libpcap/build/grammar.y"
3329
31
                                { (yyval.i) = '='; }
3330
31
#line 3331 "/src/libpcap/build/grammar.c"
3331
31
    break;
3332
3333
91
  case 182:
3334
91
#line 864 "/src/libpcap/build/grammar.y"
3335
91
                                { (yyval.h) = (yyvsp[-1].h); }
3336
91
#line 3337 "/src/libpcap/build/grammar.c"
3337
91
    break;
3338
3339
73
  case 183:
3340
73
#line 866 "/src/libpcap/build/grammar.y"
3341
73
                                { (yyval.i) = A_LANE; }
3342
73
#line 3343 "/src/libpcap/build/grammar.c"
3343
73
    break;
3344
3345
10
  case 184:
3346
10
#line 867 "/src/libpcap/build/grammar.y"
3347
10
                                { (yyval.i) = A_METAC; }
3348
10
#line 3349 "/src/libpcap/build/grammar.c"
3349
10
    break;
3350
3351
11
  case 185:
3352
11
#line 868 "/src/libpcap/build/grammar.y"
3353
11
                                { (yyval.i) = A_BCC; }
3354
11
#line 3355 "/src/libpcap/build/grammar.c"
3355
11
    break;
3356
3357
4
  case 186:
3358
4
#line 869 "/src/libpcap/build/grammar.y"
3359
4
                                { (yyval.i) = A_OAMF4EC; }
3360
4
#line 3361 "/src/libpcap/build/grammar.c"
3361
4
    break;
3362
3363
10
  case 187:
3364
10
#line 870 "/src/libpcap/build/grammar.y"
3365
10
                                { (yyval.i) = A_OAMF4SC; }
3366
10
#line 3367 "/src/libpcap/build/grammar.c"
3367
10
    break;
3368
3369
41
  case 188:
3370
41
#line 871 "/src/libpcap/build/grammar.y"
3371
41
                                { (yyval.i) = A_SC; }
3372
41
#line 3373 "/src/libpcap/build/grammar.c"
3373
41
    break;
3374
3375
2
  case 189:
3376
2
#line 872 "/src/libpcap/build/grammar.y"
3377
2
                                { (yyval.i) = A_ILMIC; }
3378
2
#line 3379 "/src/libpcap/build/grammar.c"
3379
2
    break;
3380
3381
24
  case 190:
3382
24
#line 874 "/src/libpcap/build/grammar.y"
3383
24
                                { (yyval.i) = A_OAM; }
3384
24
#line 3385 "/src/libpcap/build/grammar.c"
3385
24
    break;
3386
3387
11
  case 191:
3388
11
#line 875 "/src/libpcap/build/grammar.y"
3389
11
                                { (yyval.i) = A_OAMF4; }
3390
11
#line 3391 "/src/libpcap/build/grammar.c"
3391
11
    break;
3392
3393
0
  case 192:
3394
0
#line 876 "/src/libpcap/build/grammar.y"
3395
0
                                { (yyval.i) = A_CONNECTMSG; }
3396
0
#line 3397 "/src/libpcap/build/grammar.c"
3397
0
    break;
3398
3399
0
  case 193:
3400
0
#line 877 "/src/libpcap/build/grammar.y"
3401
0
                                { (yyval.i) = A_METACONNECT; }
3402
0
#line 3403 "/src/libpcap/build/grammar.c"
3403
0
    break;
3404
3405
80
  case 194:
3406
80
#line 880 "/src/libpcap/build/grammar.y"
3407
80
                                { (yyval.blk).atmfieldtype = A_VPI; }
3408
80
#line 3409 "/src/libpcap/build/grammar.c"
3409
80
    break;
3410
3411
120
  case 195:
3412
120
#line 881 "/src/libpcap/build/grammar.y"
3413
120
                                { (yyval.blk).atmfieldtype = A_VCI; }
3414
120
#line 3415 "/src/libpcap/build/grammar.c"
3415
120
    break;
3416
3417
52
  case 197:
3418
52
#line 884 "/src/libpcap/build/grammar.y"
3419
52
                                { CHECK_PTR_VAL(((yyval.blk).b = gen_atmfield_code(cstate, (yyvsp[-2].blk).atmfieldtype, (yyvsp[0].h), (yyvsp[-1].i), 0))); }
3420
43
#line 3421 "/src/libpcap/build/grammar.c"
3421
43
    break;
3422
3423
49
  case 198:
3424
49
#line 885 "/src/libpcap/build/grammar.y"
3425
49
                                { CHECK_PTR_VAL(((yyval.blk).b = gen_atmfield_code(cstate, (yyvsp[-2].blk).atmfieldtype, (yyvsp[0].h), (yyvsp[-1].i), 1))); }
3426
48
#line 3427 "/src/libpcap/build/grammar.c"
3427
48
    break;
3428
3429
48
  case 199:
3430
14
#line 886 "/src/libpcap/build/grammar.y"
3431
14
                                 { (yyval.blk).b = (yyvsp[-1].blk).b; (yyval.blk).q = qerr; }
3432
14
#line 3433 "/src/libpcap/build/grammar.c"
3433
14
    break;
3434
3435
234
  case 200:
3436
234
#line 888 "/src/libpcap/build/grammar.y"
3437
234
                   {
3438
234
  (yyval.blk).atmfieldtype = (yyvsp[-1].blk).atmfieldtype;
3439
234
  if ((yyval.blk).atmfieldtype == A_VPI ||
3440
129
      (yyval.blk).atmfieldtype == A_VCI)
3441
234
    CHECK_PTR_VAL(((yyval.blk).b = gen_atmfield_code(cstate, (yyval.blk).atmfieldtype, (yyvsp[0].h), BPF_JEQ, 0)));
3442
234
  }
3443
177
#line 3444 "/src/libpcap/build/grammar.c"
3444
177
    break;
3445
3446
177
  case 202:
3447
143
#line 896 "/src/libpcap/build/grammar.y"
3448
143
                                        { (yyvsp[0].blk).b = gen_or((yyvsp[-2].blk).b, (yyvsp[0].blk).b); (yyval.blk) = (yyvsp[0].blk); }
3449
143
#line 3450 "/src/libpcap/build/grammar.c"
3450
143
    break;
3451
3452
13
  case 203:
3453
13
#line 899 "/src/libpcap/build/grammar.y"
3454
13
                                { (yyval.i) = M_FISU; }
3455
13
#line 3456 "/src/libpcap/build/grammar.c"
3456
13
    break;
3457
3458
155
  case 204:
3459
155
#line 900 "/src/libpcap/build/grammar.y"
3460
155
                                { (yyval.i) = M_LSSU; }
3461
155
#line 3462 "/src/libpcap/build/grammar.c"
3462
155
    break;
3463
3464
77
  case 205:
3465
77
#line 901 "/src/libpcap/build/grammar.y"
3466
77
                                { (yyval.i) = M_MSU; }
3467
77
#line 3468 "/src/libpcap/build/grammar.c"
3468
77
    break;
3469
3470
6
  case 206:
3471
6
#line 902 "/src/libpcap/build/grammar.y"
3472
6
                                { (yyval.i) = MH_FISU; }
3473
6
#line 3474 "/src/libpcap/build/grammar.c"
3474
6
    break;
3475
3476
10
  case 207:
3477
10
#line 903 "/src/libpcap/build/grammar.y"
3478
10
                                { (yyval.i) = MH_LSSU; }
3479
10
#line 3480 "/src/libpcap/build/grammar.c"
3480
10
    break;
3481
3482
26
  case 208:
3483
26
#line 904 "/src/libpcap/build/grammar.y"
3484
26
                                { (yyval.i) = MH_MSU; }
3485
26
#line 3486 "/src/libpcap/build/grammar.c"
3486
26
    break;
3487
3488
61
  case 209:
3489
61
#line 907 "/src/libpcap/build/grammar.y"
3490
61
                                { (yyval.blk).mtp3fieldtype = M_SIO; }
3491
61
#line 3492 "/src/libpcap/build/grammar.c"
3492
61
    break;
3493
3494
83
  case 210:
3495
83
#line 908 "/src/libpcap/build/grammar.y"
3496
83
                                { (yyval.blk).mtp3fieldtype = M_OPC; }
3497
83
#line 3498 "/src/libpcap/build/grammar.c"
3498
83
    break;
3499
3500
89
  case 211:
3501
89
#line 909 "/src/libpcap/build/grammar.y"
3502
89
                                { (yyval.blk).mtp3fieldtype = M_DPC; }
3503
89
#line 3504 "/src/libpcap/build/grammar.c"
3504
89
    break;
3505
3506
65
  case 212:
3507
65
#line 910 "/src/libpcap/build/grammar.y"
3508
65
                                { (yyval.blk).mtp3fieldtype = M_SLS; }
3509
65
#line 3510 "/src/libpcap/build/grammar.c"
3510
65
    break;
3511
3512
74
  case 213:
3513
74
#line 911 "/src/libpcap/build/grammar.y"
3514
74
                                { (yyval.blk).mtp3fieldtype = MH_SIO; }
3515
74
#line 3516 "/src/libpcap/build/grammar.c"
3516
74
    break;
3517
3518
15
  case 214:
3519
15
#line 912 "/src/libpcap/build/grammar.y"
3520
15
                                { (yyval.blk).mtp3fieldtype = MH_OPC; }
3521
15
#line 3522 "/src/libpcap/build/grammar.c"
3522
15
    break;
3523
3524
28
  case 215:
3525
28
#line 913 "/src/libpcap/build/grammar.y"
3526
28
                                { (yyval.blk).mtp3fieldtype = MH_DPC; }
3527
28
#line 3528 "/src/libpcap/build/grammar.c"
3528
28
    break;
3529
3530
14
  case 216:
3531
14
#line 914 "/src/libpcap/build/grammar.y"
3532
14
                                { (yyval.blk).mtp3fieldtype = MH_SLS; }
3533
14
#line 3534 "/src/libpcap/build/grammar.c"
3534
14
    break;
3535
3536
83
  case 218:
3537
83
#line 917 "/src/libpcap/build/grammar.y"
3538
83
                                { CHECK_PTR_VAL(((yyval.blk).b = gen_mtp3field_code(cstate, (yyvsp[-2].blk).mtp3fieldtype, (yyvsp[0].h), (yyvsp[-1].i), 0))); }
3539
82
#line 3540 "/src/libpcap/build/grammar.c"
3540
82
    break;
3541
3542
82
  case 219:
3543
81
#line 918 "/src/libpcap/build/grammar.y"
3544
81
                                { CHECK_PTR_VAL(((yyval.blk).b = gen_mtp3field_code(cstate, (yyvsp[-2].blk).mtp3fieldtype, (yyvsp[0].h), (yyvsp[-1].i), 1))); }
3545
78
#line 3546 "/src/libpcap/build/grammar.c"
3546
78
    break;
3547
3548
78
  case 220:
3549
12
#line 919 "/src/libpcap/build/grammar.y"
3550
12
                                  { (yyval.blk).b = (yyvsp[-1].blk).b; (yyval.blk).q = qerr; }
3551
12
#line 3552 "/src/libpcap/build/grammar.c"
3552
12
    break;
3553
3554
569
  case 221:
3555
569
#line 921 "/src/libpcap/build/grammar.y"
3556
569
                    {
3557
569
  (yyval.blk).mtp3fieldtype = (yyvsp[-1].blk).mtp3fieldtype;
3558
569
  if ((yyval.blk).mtp3fieldtype == M_SIO ||
3559
487
      (yyval.blk).mtp3fieldtype == M_OPC ||
3560
407
      (yyval.blk).mtp3fieldtype == M_DPC ||
3561
326
      (yyval.blk).mtp3fieldtype == M_SLS ||
3562
238
      (yyval.blk).mtp3fieldtype == MH_SIO ||
3563
102
      (yyval.blk).mtp3fieldtype == MH_OPC ||
3564
60
      (yyval.blk).mtp3fieldtype == MH_DPC ||
3565
24
      (yyval.blk).mtp3fieldtype == MH_SLS)
3566
569
    CHECK_PTR_VAL(((yyval.blk).b = gen_mtp3field_code(cstate, (yyval.blk).mtp3fieldtype, (yyvsp[0].h), BPF_JEQ, 0)));
3567
569
  }
3568
447
#line 3569 "/src/libpcap/build/grammar.c"
3569
447
    break;
3570
3571
447
  case 223:
3572
323
#line 935 "/src/libpcap/build/grammar.y"
3573
323
                                          { (yyvsp[0].blk).b = gen_or((yyvsp[-2].blk).b, (yyvsp[0].blk).b); (yyval.blk) = (yyvsp[0].blk); }
3574
323
#line 3575 "/src/libpcap/build/grammar.c"
3575
323
    break;
3576
3577
3578
0
#line 3579 "/src/libpcap/build/grammar.c"
3579
3580
124k
      default: break;
3581
365k
    }
3582
  /* User semantic actions sometimes alter yychar, and that requires
3583
     that yytoken be updated with the new translation.  We take the
3584
     approach of translating immediately before every use of yytoken.
3585
     One alternative is translating here after every semantic action,
3586
     but that translation would be missed if the semantic action invokes
3587
     YYABORT, YYACCEPT, or YYERROR immediately after altering yychar or
3588
     if it invokes YYBACKUP.  In the case of YYABORT or YYACCEPT, an
3589
     incorrect destructor might then be invoked immediately.  In the
3590
     case of YYERROR or YYBACKUP, subsequent parser actions might lead
3591
     to an incorrect destructor call or verbose syntax error message
3592
     before the lookahead is translated.  */
3593
362k
  YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc);
3594
3595
362k
  YYPOPSTACK (yylen);
3596
362k
  yylen = 0;
3597
362k
  YY_STACK_PRINT (yyss, yyssp);
3598
3599
362k
  *++yyvsp = yyval;
3600
3601
  /* Now 'shift' the result of the reduction.  Determine what state
3602
     that goes to, based on the state we popped back to and the rule
3603
     number reduced by.  */
3604
362k
  {
3605
362k
    const int yylhs = yyr1[yyn] - YYNTOKENS;
3606
362k
    const int yyi = yypgoto[yylhs] + *yyssp;
3607
362k
    yystate = (0 <= yyi && yyi <= YYLAST && yycheck[yyi] == *yyssp
3608
362k
               ? yytable[yyi]
3609
362k
               : yydefgoto[yylhs]);
3610
362k
  }
3611
3612
362k
  goto yynewstate;
3613
3614
3615
/*--------------------------------------.
3616
| yyerrlab -- here on detecting error.  |
3617
`--------------------------------------*/
3618
2.11k
yyerrlab:
3619
  /* Make sure we have latest lookahead translation.  See comments at
3620
     user semantic actions for why this is necessary.  */
3621
2.11k
  yytoken = yychar == YYEMPTY ? YYEMPTY : YYTRANSLATE (yychar);
3622
3623
  /* If not already recovering from an error, report this error.  */
3624
2.11k
  if (!yyerrstatus)
3625
2.11k
    {
3626
2.11k
      ++yynerrs;
3627
2.11k
#if ! YYERROR_VERBOSE
3628
2.11k
      yyerror (yyscanner, cstate, YY_("syntax error"));
3629
#else
3630
# define YYSYNTAX_ERROR yysyntax_error (&yymsg_alloc, &yymsg, \
3631
                                        yyssp, yytoken)
3632
      {
3633
        char const *yymsgp = YY_("syntax error");
3634
        int yysyntax_error_status;
3635
        yysyntax_error_status = YYSYNTAX_ERROR;
3636
        if (yysyntax_error_status == 0)
3637
          yymsgp = yymsg;
3638
        else if (yysyntax_error_status == 1)
3639
          {
3640
            if (yymsg != yymsgbuf)
3641
              YYSTACK_FREE (yymsg);
3642
            yymsg = YY_CAST (char *, YYSTACK_ALLOC (YY_CAST (YYSIZE_T, yymsg_alloc)));
3643
            if (!yymsg)
3644
              {
3645
                yymsg = yymsgbuf;
3646
                yymsg_alloc = sizeof yymsgbuf;
3647
                yysyntax_error_status = 2;
3648
              }
3649
            else
3650
              {
3651
                yysyntax_error_status = YYSYNTAX_ERROR;
3652
                yymsgp = yymsg;
3653
              }
3654
          }
3655
        yyerror (yyscanner, cstate, yymsgp);
3656
        if (yysyntax_error_status == 2)
3657
          goto yyexhaustedlab;
3658
      }
3659
# undef YYSYNTAX_ERROR
3660
#endif
3661
2.11k
    }
3662
3663
3664
3665
2.11k
  if (yyerrstatus == 3)
3666
0
    {
3667
      /* If just tried and failed to reuse lookahead token after an
3668
         error, discard it.  */
3669
3670
0
      if (yychar <= YYEOF)
3671
0
        {
3672
          /* Return failure if at end of input.  */
3673
0
          if (yychar == YYEOF)
3674
0
            YYABORT;
3675
0
        }
3676
0
      else
3677
0
        {
3678
0
          yydestruct ("Error: discarding",
3679
0
                      yytoken, &yylval, yyscanner, cstate);
3680
0
          yychar = YYEMPTY;
3681
0
        }
3682
0
    }
3683
3684
  /* Else will try to reuse lookahead token after shifting the error
3685
     token.  */
3686
2.11k
  goto yyerrlab1;
3687
3688
3689
/*---------------------------------------------------.
3690
| yyerrorlab -- error raised explicitly by YYERROR.  |
3691
`---------------------------------------------------*/
3692
2.11k
yyerrorlab:
3693
  /* Pacify compilers when the user code never invokes YYERROR and the
3694
     label yyerrorlab therefore never appears in user code.  */
3695
0
  if (0)
3696
0
    YYERROR;
3697
3698
  /* Do not reclaim the symbols of the rule whose action triggered
3699
     this YYERROR.  */
3700
0
  YYPOPSTACK (yylen);
3701
0
  yylen = 0;
3702
0
  YY_STACK_PRINT (yyss, yyssp);
3703
0
  yystate = *yyssp;
3704
0
  goto yyerrlab1;
3705
3706
3707
/*-------------------------------------------------------------.
3708
| yyerrlab1 -- common code for both syntax error and YYERROR.  |
3709
`-------------------------------------------------------------*/
3710
2.11k
yyerrlab1:
3711
2.11k
  yyerrstatus = 3;      /* Each real token shifted decrements this.  */
3712
3713
2.11k
  for (;;)
3714
10.8k
    {
3715
10.8k
      yyn = yypact[yystate];
3716
10.8k
      if (!yypact_value_is_default (yyn))
3717
8.70k
        {
3718
8.70k
          yyn += YYTERROR;
3719
8.70k
          if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR)
3720
0
            {
3721
0
              yyn = yytable[yyn];
3722
0
              if (0 < yyn)
3723
0
                break;
3724
0
            }
3725
8.70k
        }
3726
3727
      /* Pop the current state because it cannot handle the error token.  */
3728
10.8k
      if (yyssp == yyss)
3729
2.11k
        YYABORT;
3730
3731
3732
8.70k
      yydestruct ("Error: popping",
3733
8.70k
                  yystos[yystate], yyvsp, yyscanner, cstate);
3734
8.70k
      YYPOPSTACK (1);
3735
8.70k
      yystate = *yyssp;
3736
8.70k
      YY_STACK_PRINT (yyss, yyssp);
3737
8.70k
    }
3738
3739
0
  YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
3740
0
  *++yyvsp = yylval;
3741
0
  YY_IGNORE_MAYBE_UNINITIALIZED_END
3742
3743
3744
  /* Shift the error token.  */
3745
0
  YY_SYMBOL_PRINT ("Shifting", yystos[yyn], yyvsp, yylsp);
3746
3747
0
  yystate = yyn;
3748
0
  goto yynewstate;
3749
3750
3751
/*-------------------------------------.
3752
| yyacceptlab -- YYACCEPT comes here.  |
3753
`-------------------------------------*/
3754
8.38k
yyacceptlab:
3755
8.38k
  yyresult = 0;
3756
8.38k
  goto yyreturn;
3757
3758
3759
/*-----------------------------------.
3760
| yyabortlab -- YYABORT comes here.  |
3761
`-----------------------------------*/
3762
4.75k
yyabortlab:
3763
4.75k
  yyresult = 1;
3764
4.75k
  goto yyreturn;
3765
3766
3767
0
#if !defined yyoverflow || YYERROR_VERBOSE
3768
/*-------------------------------------------------.
3769
| yyexhaustedlab -- memory exhaustion comes here.  |
3770
`-------------------------------------------------*/
3771
0
yyexhaustedlab:
3772
0
  yyerror (yyscanner, cstate, YY_("memory exhausted"));
3773
0
  yyresult = 2;
3774
  /* Fall through.  */
3775
0
#endif
3776
3777
3778
/*-----------------------------------------------------.
3779
| yyreturn -- parsing is finished, return the result.  |
3780
`-----------------------------------------------------*/
3781
13.1k
yyreturn:
3782
13.1k
  if (yychar != YYEMPTY)
3783
2.49k
    {
3784
      /* Make sure we have latest lookahead translation.  See comments at
3785
         user semantic actions for why this is necessary.  */
3786
2.49k
      yytoken = YYTRANSLATE (yychar);
3787
2.49k
      yydestruct ("Cleanup: discarding lookahead",
3788
2.49k
                  yytoken, &yylval, yyscanner, cstate);
3789
2.49k
    }
3790
  /* Do not reclaim the symbols of the rule whose action triggered
3791
     this YYABORT or YYACCEPT.  */
3792
13.1k
  YYPOPSTACK (yylen);
3793
13.1k
  YY_STACK_PRINT (yyss, yyssp);
3794
37.2k
  while (yyssp != yyss)
3795
24.1k
    {
3796
24.1k
      yydestruct ("Cleanup: popping",
3797
24.1k
                  yystos[+*yyssp], yyvsp, yyscanner, cstate);
3798
24.1k
      YYPOPSTACK (1);
3799
24.1k
    }
3800
13.1k
#ifndef yyoverflow
3801
13.1k
  if (yyss != yyssa)
3802
6
    YYSTACK_FREE (yyss);
3803
13.1k
#endif
3804
#if YYERROR_VERBOSE
3805
  if (yymsg != yymsgbuf)
3806
    YYSTACK_FREE (yymsg);
3807
#endif
3808
13.1k
  return yyresult;
3809
0
}
3810
#line 937 "/src/libpcap/build/grammar.y"
3811