Coverage Report

Created: 2026-05-30 06:11

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
159k
#define yylex           pcap_lex
69
1.86k
#define yyerror         pcap_error
70
#define yydebug         pcap_debug
71
20.8k
#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
4.82k
#define QSET(q, p, d, a) (q).proto = (unsigned char)(p),\
158
4.82k
       (q).dir = (unsigned char)(d),\
159
4.82k
       (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
522
{
257
522
  int i;
258
259
3.04k
  for (i = 0; toks[i].s != NULL; i++) {
260
2.76k
    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
239
      if (toks[i].v == -1)
268
0
        abort();
269
239
      return (toks[i].v);
270
239
    }
271
2.76k
  }
272
283
  return (-1);
273
522
}
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
1.86k
{
280
1.86k
  bpf_set_error(cstate, "can't parse filter expression: %s", msg);
281
1.86k
}
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
7
{
315
7
  int i;
316
317
7
  i = str2tok(reason, pflog_reasons);
318
7
  if (i == -1)
319
7
    bpf_set_error(cstate, "unknown PF reason \"%s\"", reason);
320
7
  return (i);
321
7
}
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
11
{
357
11
  int i;
358
359
11
  i = str2tok(action, pflog_actions);
360
11
  if (i == -1)
361
5
    bpf_set_error(cstate, "unknown PF action \"%s\"", action);
362
11
  return (i);
363
11
}
364
365
/*
366
 * For calls that might return an "an error occurred" value.
367
 */
368
6.38k
#define CHECK_INT_VAL(val)  if (val == -1) YYABORT
369
102k
#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
491k
#   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
12.6k
#  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
54
#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
1.86k
#  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
133k
# 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
25.1k
# 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
491k
#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
9
#  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
9
#   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
18
# 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
18
    do                                                                  \
849
18
      {                                                                 \
850
18
        YYPTRDIFF_T yynewbytes;                                         \
851
18
        YYCOPY (&yyptr->Stack_alloc, Stack, yysize);                    \
852
18
        Stack = &yyptr->Stack_alloc;                                    \
853
18
        yynewbytes = yystacksize * YYSIZEOF (*Stack) + YYSTACK_GAP_MAXIMUM; \
854
18
        yyptr += yynewbytes / YYSIZEOF (*yyptr);                        \
855
18
      }                                                                 \
856
18
    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
18
      __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
491k
#define YYFINAL  3
882
/* YYLAST -- Last index in YYTABLE.  */
883
767k
#define YYLAST   773
884
885
/* YYNTOKENS -- Number of terminals.  */
886
321k
#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
209k
#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
211k
  (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,   471,   491,   510,
953
     529,   548,   549,   550,   552,   554,   556,   557,   558,   560,
954
     562,   564,   565,   567,   568,   569,   570,   571,   579,   581,
955
     582,   583,   584,   586,   588,   589,   590,   591,   592,   593,
956
     596,   597,   600,   601,   602,   603,   604,   605,   606,   607,
957
     608,   609,   610,   611,   614,   615,   616,   617,   620,   622,
958
     623,   624,   625,   626,   627,   628,   629,   630,   631,   632,
959
     633,   634,   635,   636,   637,   638,   639,   640,   641,   642,
960
     643,   644,   645,   646,   647,   648,   649,   650,   651,   652,
961
     653,   654,   655,   656,   657,   658,   659,   660,   662,   663,
962
     664,   665,   666,   667,   668,   669,   670,   671,   672,   673,
963
     674,   675,   676,   677,   678,   679,   680,   681,   682,   683,
964
     686,   687,   688,   689,   690,   691,   694,   699,   702,   706,
965
     709,   715,   724,   730,   753,   770,   771,   795,   798,   804,
966
     820,   821,   824,   827,   828,   829,   831,   832,   833,   835,
967
     836,   838,   839,   840,   841,   842,   843,   844,   845,   846,
968
     847,   848,   849,   850,   851,   852,   854,   855,   856,   857,
969
     858,   860,   861,   863,   864,   865,   866,   867,   868,   869,
970
     871,   872,   873,   874,   877,   878,   880,   881,   882,   883,
971
     885,   892,   893,   896,   897,   898,   899,   900,   901,   904,
972
     905,   906,   907,   908,   909,   910,   911,   913,   914,   915,
973
     916,   918,   931,   932
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
492k
#define YYPACT_NINF (-215)
1033
1034
#define yypact_value_is_default(Yyn) \
1035
492k
  ((Yyn) == YYPACT_NINF)
1036
1037
#define YYTABLE_NINF (-42)
1038
1039
#define yytable_value_is_error(Yyn) \
1040
15.7k
  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
415k
#define YYEMPTY         (-2)
1398
256k
#define YYEOF           0
1399
1400
8.08k
#define YYACCEPT        goto yyacceptlab
1401
4.50k
#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
13.1k
#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
12.5k
# 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
18
# 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
33.4k
{
1820
33.4k
  YYUSE (yyvaluep);
1821
33.4k
  YYUSE (yyscanner);
1822
33.4k
  YYUSE (cstate);
1823
33.4k
  if (!yymsg)
1824
0
    yymsg = "Deleting";
1825
33.4k
  YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp);
1826
1827
33.4k
  YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
1828
33.4k
  YYUSE (yytype);
1829
33.4k
  YY_IGNORE_MAYBE_UNINITIALIZED_END
1830
33.4k
}
1831
1832
1833
1834
1835
/*----------.
1836
| yyparse.  |
1837
`----------*/
1838
1839
int
1840
yyparse (void *yyscanner, compiler_state_t *cstate)
1841
12.5k
{
1842
/* The lookahead symbol.  */
1843
12.5k
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
12.5k
YY_INITIAL_VALUE (static YYSTYPE yyval_default;)
1850
12.5k
YYSTYPE yylval YY_INITIAL_VALUE (= yyval_default);
1851
1852
    /* Number of syntax errors so far.  */
1853
12.5k
    int yynerrs;
1854
1855
12.5k
    yy_state_fast_t yystate;
1856
    /* Number of tokens to shift before error messages enabled.  */
1857
12.5k
    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
12.5k
    yy_state_t yyssa[YYINITDEPTH];
1868
12.5k
    yy_state_t *yyss;
1869
12.5k
    yy_state_t *yyssp;
1870
1871
    /* The semantic value stack.  */
1872
12.5k
    YYSTYPE yyvsa[YYINITDEPTH];
1873
12.5k
    YYSTYPE *yyvs;
1874
12.5k
    YYSTYPE *yyvsp;
1875
1876
12.5k
    YYPTRDIFF_T yystacksize;
1877
1878
12.5k
  int yyn;
1879
12.5k
  int yyresult;
1880
  /* Lookahead token as an internal (translated) token number.  */
1881
12.5k
  int yytoken = 0;
1882
  /* The variables used to return semantic value and location from the
1883
     action routines.  */
1884
12.5k
  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
365k
#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
12.5k
  int yylen = 0;
1898
1899
12.5k
  yyssp = yyss = yyssa;
1900
12.5k
  yyvsp = yyvs = yyvsa;
1901
12.5k
  yystacksize = YYINITDEPTH;
1902
1903
12.5k
  YYDPRINTF ((stderr, "Starting parse\n"));
1904
1905
12.5k
  yystate = 0;
1906
12.5k
  yyerrstatus = 0;
1907
12.5k
  yynerrs = 0;
1908
12.5k
  yychar = YYEMPTY; /* Cause a token to be read.  */
1909
12.5k
  goto yysetstate;
1910
1911
1912
/*------------------------------------------------------------.
1913
| yynewstate -- push a new state, which is found in yystate.  |
1914
`------------------------------------------------------------*/
1915
478k
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
478k
  yyssp++;
1919
1920
1921
/*--------------------------------------------------------------------.
1922
| yysetstate -- set current state (the top of the stack) to yystate.  |
1923
`--------------------------------------------------------------------*/
1924
491k
yysetstate:
1925
491k
  YYDPRINTF ((stderr, "Entering state %d\n", yystate));
1926
491k
  YY_ASSERT (0 <= yystate && yystate < YYNSTATES);
1927
491k
  YY_IGNORE_USELESS_CAST_BEGIN
1928
491k
  *yyssp = YY_CAST (yy_state_t, yystate);
1929
491k
  YY_IGNORE_USELESS_CAST_END
1930
1931
491k
  if (yyss + yystacksize - 1 <= yyssp)
1932
#if !defined yyoverflow && !defined YYSTACK_RELOCATE
1933
    goto yyexhaustedlab;
1934
#else
1935
9
    {
1936
      /* Get the current used size of the three stacks, in elements.  */
1937
9
      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
9
      if (YYMAXDEPTH <= yystacksize)
1961
0
        goto yyexhaustedlab;
1962
9
      yystacksize *= 2;
1963
9
      if (YYMAXDEPTH < yystacksize)
1964
0
        yystacksize = YYMAXDEPTH;
1965
1966
9
      {
1967
9
        yy_state_t *yyss1 = yyss;
1968
9
        union yyalloc *yyptr =
1969
9
          YY_CAST (union yyalloc *,
1970
9
                   YYSTACK_ALLOC (YY_CAST (YYSIZE_T, YYSTACK_BYTES (yystacksize))));
1971
9
        if (! yyptr)
1972
0
          goto yyexhaustedlab;
1973
9
        YYSTACK_RELOCATE (yyss_alloc, yyss);
1974
9
        YYSTACK_RELOCATE (yyvs_alloc, yyvs);
1975
9
# undef YYSTACK_RELOCATE
1976
9
        if (yyss1 != yyssa)
1977
0
          YYSTACK_FREE (yyss1);
1978
9
      }
1979
0
# endif
1980
1981
0
      yyssp = yyss + yysize - 1;
1982
9
      yyvsp = yyvs + yysize - 1;
1983
1984
9
      YY_IGNORE_USELESS_CAST_BEGIN
1985
9
      YYDPRINTF ((stderr, "Stack size increased to %ld\n",
1986
9
                  YY_CAST (long, yystacksize)));
1987
9
      YY_IGNORE_USELESS_CAST_END
1988
1989
9
      if (yyss + yystacksize - 1 <= yyssp)
1990
0
        YYABORT;
1991
9
    }
1992
491k
#endif /* !defined yyoverflow && !defined YYSTACK_RELOCATE */
1993
1994
491k
  if (yystate == YYFINAL)
1995
8.08k
    YYACCEPT;
1996
1997
483k
  goto yybackup;
1998
1999
2000
/*-----------.
2001
| yybackup.  |
2002
`-----------*/
2003
483k
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
483k
  yyn = yypact[yystate];
2009
483k
  if (yypact_value_is_default (yyn))
2010
251k
    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
231k
  if (yychar == YYEMPTY)
2016
159k
    {
2017
159k
      YYDPRINTF ((stderr, "Reading a token: "));
2018
159k
      yychar = yylex (&yylval, yyscanner);
2019
159k
    }
2020
2021
231k
  if (yychar <= YYEOF)
2022
25.5k
    {
2023
25.5k
      yychar = yytoken = YYEOF;
2024
25.5k
      YYDPRINTF ((stderr, "Now at end of input.\n"));
2025
25.5k
    }
2026
205k
  else
2027
205k
    {
2028
205k
      yytoken = YYTRANSLATE (yychar);
2029
205k
      YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc);
2030
205k
    }
2031
2032
  /* If the proper action on seeing token YYTOKEN is to reduce or to
2033
     detect an error, take that action.  */
2034
231k
  yyn += yytoken;
2035
231k
  if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken)
2036
58.2k
    goto yydefault;
2037
172k
  yyn = yytable[yyn];
2038
172k
  if (yyn <= 0)
2039
15.7k
    {
2040
15.7k
      if (yytable_value_is_error (yyn))
2041
0
        goto yyerrlab;
2042
15.7k
      yyn = -yyn;
2043
15.7k
      goto yyreduce;
2044
15.7k
    }
2045
2046
  /* Count tokens shifted since error; after three, turn off error
2047
     status.  */
2048
157k
  if (yyerrstatus)
2049
0
    yyerrstatus--;
2050
2051
  /* Shift the lookahead token.  */
2052
157k
  YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc);
2053
157k
  yystate = yyn;
2054
157k
  YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
2055
157k
  *++yyvsp = yylval;
2056
157k
  YY_IGNORE_MAYBE_UNINITIALIZED_END
2057
2058
  /* Discard the shifted token.  */
2059
157k
  yychar = YYEMPTY;
2060
157k
  goto yynewstate;
2061
2062
2063
/*-----------------------------------------------------------.
2064
| yydefault -- do the default action for the current state.  |
2065
`-----------------------------------------------------------*/
2066
310k
yydefault:
2067
310k
  yyn = yydefact[yystate];
2068
310k
  if (yyn == 0)
2069
1.86k
    goto yyerrlab;
2070
308k
  goto yyreduce;
2071
2072
2073
/*-----------------------------.
2074
| yyreduce -- do a reduction.  |
2075
`-----------------------------*/
2076
324k
yyreduce:
2077
  /* yyn is the number of a rule to reduce with.  */
2078
324k
  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
324k
  yyval = yyvsp[1-yylen];
2089
2090
2091
324k
  YY_REDUCE_PRINT (yyn);
2092
324k
  switch (yyn)
2093
324k
    {
2094
6.36k
  case 2:
2095
6.36k
#line 421 "/src/libpcap/build/grammar.y"
2096
6.36k
{
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.36k
  (void) yynerrs;
2105
6.36k
  CHECK_INT_VAL(finish_parse(cstate, (yyvsp[0].blk).b));
2106
6.36k
}
2107
6.36k
#line 2108 "/src/libpcap/build/grammar.c"
2108
6.36k
    break;
2109
2110
12.5k
  case 4:
2111
12.5k
#line 434 "/src/libpcap/build/grammar.y"
2112
12.5k
                                { (yyval.blk).q = qerr; }
2113
12.5k
#line 2114 "/src/libpcap/build/grammar.c"
2114
12.5k
    break;
2115
2116
6.06k
  case 6:
2117
6.06k
#line 437 "/src/libpcap/build/grammar.y"
2118
6.06k
                                { (yyvsp[0].blk).b = gen_and((yyvsp[-2].blk).b, (yyvsp[0].blk).b); (yyval.blk) = (yyvsp[0].blk); }
2119
6.06k
#line 2120 "/src/libpcap/build/grammar.c"
2120
6.06k
    break;
2121
2122
4.03k
  case 7:
2123
4.03k
#line 438 "/src/libpcap/build/grammar.y"
2124
4.03k
                                { (yyvsp[0].blk).b = gen_and((yyvsp[-2].blk).b, (yyvsp[0].blk).b); (yyval.blk) = (yyvsp[0].blk); }
2125
4.03k
#line 2126 "/src/libpcap/build/grammar.c"
2126
4.03k
    break;
2127
2128
4.47k
  case 8:
2129
4.47k
#line 439 "/src/libpcap/build/grammar.y"
2130
4.47k
                                { (yyvsp[0].blk).b = gen_or((yyvsp[-2].blk).b, (yyvsp[0].blk).b); (yyval.blk) = (yyvsp[0].blk); }
2131
4.47k
#line 2132 "/src/libpcap/build/grammar.c"
2132
4.47k
    break;
2133
2134
6.97k
  case 9:
2135
6.97k
#line 440 "/src/libpcap/build/grammar.y"
2136
6.97k
                                { (yyvsp[0].blk).b = gen_or((yyvsp[-2].blk).b, (yyvsp[0].blk).b); (yyval.blk) = (yyvsp[0].blk); }
2137
6.97k
#line 2138 "/src/libpcap/build/grammar.c"
2138
6.97k
    break;
2139
2140
11.0k
  case 10:
2141
11.0k
#line 442 "/src/libpcap/build/grammar.y"
2142
11.0k
                                { (yyval.blk) = (yyvsp[-1].blk); }
2143
11.0k
#line 2144 "/src/libpcap/build/grammar.c"
2144
11.0k
    break;
2145
2146
14.1k
  case 11:
2147
14.1k
#line 444 "/src/libpcap/build/grammar.y"
2148
14.1k
                                { (yyval.blk) = (yyvsp[-1].blk); }
2149
14.1k
#line 2150 "/src/libpcap/build/grammar.c"
2150
14.1k
    break;
2151
2152
11.2k
  case 13:
2153
11.2k
#line 447 "/src/libpcap/build/grammar.y"
2154
11.2k
                                { CHECK_PTR_VAL(((yyval.blk).b = gen_ncode(cstate, NULL, (yyvsp[0].h),
2155
11.2k
               (yyval.blk).q = (yyvsp[-1].blk).q))); }
2156
10.7k
#line 2157 "/src/libpcap/build/grammar.c"
2157
10.7k
    break;
2158
2159
10.7k
  case 14:
2160
70
#line 449 "/src/libpcap/build/grammar.y"
2161
70
                                { (yyval.blk) = (yyvsp[-1].blk); }
2162
70
#line 2163 "/src/libpcap/build/grammar.c"
2163
70
    break;
2164
2165
1.65k
  case 15:
2166
1.65k
#line 451 "/src/libpcap/build/grammar.y"
2167
1.65k
                                { 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
708
#line 2169 "/src/libpcap/build/grammar.c"
2169
708
    break;
2170
2171
708
  case 16:
2172
174
#line 452 "/src/libpcap/build/grammar.y"
2173
174
                                {
2174
174
          CHECK_PTR_VAL((yyvsp[-2].s));
2175
          /* Check whether HID/NUM is being used when appropriate */
2176
174
          (yyval.blk).q = (yyvsp[-3].blk).q;
2177
174
          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
173
          } 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
173
          } 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
172
          } 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
171
          CHECK_PTR_VAL(((yyval.blk).b = gen_mcode(cstate, (yyvsp[-2].s), NULL, (yyvsp[0].h), (yyval.blk).q)));
2191
171
        }
2192
142
#line 2193 "/src/libpcap/build/grammar.c"
2193
142
    break;
2194
2195
142
  case 17:
2196
0
#line 471 "/src/libpcap/build/grammar.y"
2197
0
                                {
2198
0
          CHECK_PTR_VAL((yyvsp[-2].s));
2199
0
          CHECK_PTR_VAL((yyvsp[0].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
0
          CHECK_PTR_VAL(((yyval.blk).b = gen_mcode(cstate, (yyvsp[-2].s), (yyvsp[0].s), 0, (yyval.blk).q)));
2216
0
        }
2217
0
#line 2218 "/src/libpcap/build/grammar.c"
2218
0
    break;
2219
2220
536
  case 18:
2221
536
#line 491 "/src/libpcap/build/grammar.y"
2222
536
                                {
2223
536
          CHECK_PTR_VAL((yyvsp[0].s));
2224
          /* Check whether HID is being used when appropriate */
2225
536
          (yyval.blk).q = (yyvsp[-1].blk).q;
2226
536
          if ((yyval.blk).q.addr == Q_PORT) {
2227
1
          bpf_set_error(cstate, "'port' qualifier applied to IPv4 address");
2228
1
          YYABORT;
2229
535
          } else if ((yyval.blk).q.addr == Q_PORTRANGE) {
2230
0
          bpf_set_error(cstate, "'portrange' qualifier applied to IPv4 address");
2231
0
          YYABORT;
2232
535
          } else if ((yyval.blk).q.addr == Q_PROTO) {
2233
1
          bpf_set_error(cstate, "'proto' qualifier applied to IPv4 address");
2234
1
          YYABORT;
2235
534
          } else if ((yyval.blk).q.addr == Q_PROTOCHAIN) {
2236
1
          bpf_set_error(cstate, "'protochain' qualifier applied to IPv4 address");
2237
1
          YYABORT;
2238
1
          }
2239
533
          CHECK_PTR_VAL(((yyval.blk).b = gen_ncode(cstate, (yyvsp[0].s), 0, (yyval.blk).q)));
2240
533
        }
2241
498
#line 2242 "/src/libpcap/build/grammar.c"
2242
498
    break;
2243
2244
498
  case 19:
2245
484
#line 510 "/src/libpcap/build/grammar.y"
2246
484
                                {
2247
484
          CHECK_PTR_VAL((yyvsp[-2].s));
2248
          /* Check whether HID6/NUM is being used when appropriate */
2249
483
          (yyval.blk).q = (yyvsp[-3].blk).q;
2250
483
          if ((yyval.blk).q.addr == Q_PORT) {
2251
1
          bpf_set_error(cstate, "'port' qualifier applied to IPv6 address and prefix length");
2252
1
          YYABORT;
2253
482
          } else if ((yyval.blk).q.addr == Q_PORTRANGE) {
2254
0
          bpf_set_error(cstate, "'portrange' qualifier applied to IPv6 address and prefix length");
2255
0
          YYABORT;
2256
482
          } else if ((yyval.blk).q.addr == Q_PROTO) {
2257
1
          bpf_set_error(cstate, "'proto' qualifier applied to IPv6 address and prefix length ");
2258
1
          YYABORT;
2259
481
          } else if ((yyval.blk).q.addr == Q_PROTOCHAIN) {
2260
1
          bpf_set_error(cstate, "'protochain' qualifier applied to IPv6 address and prefix length");
2261
1
          YYABORT;
2262
1
          }
2263
480
          CHECK_PTR_VAL(((yyval.blk).b = gen_mcode6(cstate, (yyvsp[-2].s), (yyvsp[0].h), (yyval.blk).q)));
2264
480
        }
2265
319
#line 2266 "/src/libpcap/build/grammar.c"
2266
319
    break;
2267
2268
673
  case 20:
2269
673
#line 529 "/src/libpcap/build/grammar.y"
2270
673
                                {
2271
673
          CHECK_PTR_VAL((yyvsp[0].s));
2272
          /* Check whether HID6 is being used when appropriate */
2273
672
          (yyval.blk).q = (yyvsp[-1].blk).q;
2274
672
          if ((yyval.blk).q.addr == Q_PORT) {
2275
1
          bpf_set_error(cstate, "'port' qualifier applied to IPv6 address");
2276
1
          YYABORT;
2277
671
          } else if ((yyval.blk).q.addr == Q_PORTRANGE) {
2278
0
          bpf_set_error(cstate, "'portrange' qualifier applied to IPv6 address");
2279
0
          YYABORT;
2280
671
          } else if ((yyval.blk).q.addr == Q_PROTO) {
2281
1
          bpf_set_error(cstate, "'proto' qualifier applied to IPv6 address");
2282
1
          YYABORT;
2283
670
          } else if ((yyval.blk).q.addr == Q_PROTOCHAIN) {
2284
1
          bpf_set_error(cstate, "'protochain' qualifier applied to IPv6 address");
2285
1
          YYABORT;
2286
1
          }
2287
669
          CHECK_PTR_VAL(((yyval.blk).b = gen_mcode6(cstate, (yyvsp[0].s), 128, (yyval.blk).q)));
2288
669
        }
2289
664
#line 2290 "/src/libpcap/build/grammar.c"
2290
664
    break;
2291
2292
2.35k
  case 21:
2293
2.35k
#line 548 "/src/libpcap/build/grammar.y"
2294
2.35k
                                { 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))); }
2295
2.27k
#line 2296 "/src/libpcap/build/grammar.c"
2296
2.27k
    break;
2297
2298
2.27k
  case 22:
2299
659
#line 549 "/src/libpcap/build/grammar.y"
2300
659
                                { 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))); }
2301
644
#line 2302 "/src/libpcap/build/grammar.c"
2302
644
    break;
2303
2304
2.10k
  case 23:
2305
2.10k
#line 550 "/src/libpcap/build/grammar.y"
2306
2.10k
                                { gen_not((yyvsp[0].blk).b); (yyval.blk) = (yyvsp[0].blk); }
2307
2.10k
#line 2308 "/src/libpcap/build/grammar.c"
2308
2.10k
    break;
2309
2310
3.57k
  case 24:
2311
3.57k
#line 552 "/src/libpcap/build/grammar.y"
2312
3.57k
                                { (yyval.blk) = (yyvsp[-1].blk); }
2313
3.57k
#line 2314 "/src/libpcap/build/grammar.c"
2314
3.57k
    break;
2315
2316
1.85k
  case 25:
2317
1.85k
#line 554 "/src/libpcap/build/grammar.y"
2318
1.85k
                                { (yyval.blk) = (yyvsp[-1].blk); }
2319
1.85k
#line 2320 "/src/libpcap/build/grammar.c"
2320
1.85k
    break;
2321
2322
625
  case 27:
2323
625
#line 557 "/src/libpcap/build/grammar.y"
2324
625
                                { (yyvsp[0].blk).b = gen_and((yyvsp[-2].blk).b, (yyvsp[0].blk).b); (yyval.blk) = (yyvsp[0].blk); }
2325
625
#line 2326 "/src/libpcap/build/grammar.c"
2326
625
    break;
2327
2328
1.42k
  case 28:
2329
1.42k
#line 558 "/src/libpcap/build/grammar.y"
2330
1.42k
                                { (yyvsp[0].blk).b = gen_or((yyvsp[-2].blk).b, (yyvsp[0].blk).b); (yyval.blk) = (yyvsp[0].blk); }
2331
1.42k
#line 2332 "/src/libpcap/build/grammar.c"
2332
1.42k
    break;
2333
2334
525
  case 29:
2335
525
#line 560 "/src/libpcap/build/grammar.y"
2336
525
                                { CHECK_PTR_VAL(((yyval.blk).b = gen_ncode(cstate, NULL, (yyvsp[0].h),
2337
525
               (yyval.blk).q = (yyvsp[-1].blk).q))); }
2338
254
#line 2339 "/src/libpcap/build/grammar.c"
2339
254
    break;
2340
2341
940
  case 32:
2342
940
#line 565 "/src/libpcap/build/grammar.y"
2343
940
                                { gen_not((yyvsp[0].blk).b); (yyval.blk) = (yyvsp[0].blk); }
2344
940
#line 2345 "/src/libpcap/build/grammar.c"
2345
940
    break;
2346
2347
118
  case 33:
2348
118
#line 567 "/src/libpcap/build/grammar.y"
2349
118
                                { QSET((yyval.blk).q, (yyvsp[-2].i), (yyvsp[-1].i), (yyvsp[0].i)); }
2350
118
#line 2351 "/src/libpcap/build/grammar.c"
2351
118
    break;
2352
2353
831
  case 34:
2354
831
#line 568 "/src/libpcap/build/grammar.y"
2355
831
                                { QSET((yyval.blk).q, (yyvsp[-1].i), (yyvsp[0].i), Q_DEFAULT); }
2356
831
#line 2357 "/src/libpcap/build/grammar.c"
2357
831
    break;
2358
2359
1.74k
  case 35:
2360
1.74k
#line 569 "/src/libpcap/build/grammar.y"
2361
1.74k
                                { QSET((yyval.blk).q, (yyvsp[-1].i), Q_DEFAULT, (yyvsp[0].i)); }
2362
1.74k
#line 2363 "/src/libpcap/build/grammar.c"
2363
1.74k
    break;
2364
2365
1.97k
  case 36:
2366
1.97k
#line 570 "/src/libpcap/build/grammar.y"
2367
1.97k
                                { QSET((yyval.blk).q, (yyvsp[-1].i), Q_DEFAULT, Q_PROTO); }
2368
1.97k
#line 2369 "/src/libpcap/build/grammar.c"
2369
1.97k
    break;
2370
2371
158
  case 37:
2372
158
#line 571 "/src/libpcap/build/grammar.y"
2373
158
                                {
2374
#ifdef NO_PROTOCHAIN
2375
          bpf_set_error(cstate, "protochain not supported");
2376
          YYABORT;
2377
#else
2378
158
          QSET((yyval.blk).q, (yyvsp[-1].i), Q_DEFAULT, Q_PROTOCHAIN);
2379
158
#endif
2380
158
        }
2381
158
#line 2382 "/src/libpcap/build/grammar.c"
2382
158
    break;
2383
2384
0
  case 38:
2385
0
#line 579 "/src/libpcap/build/grammar.y"
2386
0
                                { QSET((yyval.blk).q, (yyvsp[-1].i), Q_DEFAULT, (yyvsp[0].i)); }
2387
0
#line 2388 "/src/libpcap/build/grammar.c"
2388
0
    break;
2389
2390
2.96k
  case 39:
2391
2.96k
#line 581 "/src/libpcap/build/grammar.y"
2392
2.96k
                                { (yyval.blk) = (yyvsp[0].blk); }
2393
2.96k
#line 2394 "/src/libpcap/build/grammar.c"
2394
2.96k
    break;
2395
2396
93
  case 40:
2397
93
#line 582 "/src/libpcap/build/grammar.y"
2398
93
                                { (yyval.blk).b = (yyvsp[-1].blk).b; (yyval.blk).q = (yyvsp[-2].blk).q; }
2399
93
#line 2400 "/src/libpcap/build/grammar.c"
2400
93
    break;
2401
2402
6.26k
  case 41:
2403
6.26k
#line 583 "/src/libpcap/build/grammar.y"
2404
6.26k
                                { CHECK_PTR_VAL(((yyval.blk).b = gen_proto_abbrev(cstate, (yyvsp[0].i)))); (yyval.blk).q = qerr; }
2405
0
#line 2406 "/src/libpcap/build/grammar.c"
2406
0
    break;
2407
2408
2.76k
  case 42:
2409
2.76k
#line 584 "/src/libpcap/build/grammar.y"
2410
2.76k
                                { CHECK_PTR_VAL(((yyval.blk).b = gen_relation(cstate, (yyvsp[-1].i), (yyvsp[-2].a), (yyvsp[0].a), 0)));
2411
2.76k
          (yyval.blk).q = qerr; }
2412
0
#line 2413 "/src/libpcap/build/grammar.c"
2413
0
    break;
2414
2415
1.43k
  case 43:
2416
1.43k
#line 586 "/src/libpcap/build/grammar.y"
2417
1.43k
                                { CHECK_PTR_VAL(((yyval.blk).b = gen_relation(cstate, (yyvsp[-1].i), (yyvsp[-2].a), (yyvsp[0].a), 1)));
2418
1.43k
          (yyval.blk).q = qerr; }
2419
0
#line 2420 "/src/libpcap/build/grammar.c"
2420
0
    break;
2421
2422
3.87k
  case 44:
2423
3.87k
#line 588 "/src/libpcap/build/grammar.y"
2424
3.87k
                                { (yyval.blk).b = (yyvsp[0].rblk); (yyval.blk).q = qerr; }
2425
3.87k
#line 2426 "/src/libpcap/build/grammar.c"
2426
3.87k
    break;
2427
2428
147
  case 45:
2429
147
#line 589 "/src/libpcap/build/grammar.y"
2430
147
                                { CHECK_PTR_VAL(((yyval.blk).b = gen_atmtype_abbrev(cstate, (yyvsp[0].i)))); (yyval.blk).q = qerr; }
2431
0
#line 2432 "/src/libpcap/build/grammar.c"
2432
0
    break;
2433
2434
31
  case 46:
2435
31
#line 590 "/src/libpcap/build/grammar.y"
2436
31
                                { CHECK_PTR_VAL(((yyval.blk).b = gen_atmmulti_abbrev(cstate, (yyvsp[0].i)))); (yyval.blk).q = qerr; }
2437
0
#line 2438 "/src/libpcap/build/grammar.c"
2438
0
    break;
2439
2440
130
  case 47:
2441
130
#line 591 "/src/libpcap/build/grammar.y"
2442
130
                                { (yyval.blk).b = (yyvsp[0].blk).b; (yyval.blk).q = qerr; }
2443
130
#line 2444 "/src/libpcap/build/grammar.c"
2444
130
    break;
2445
2446
208
  case 48:
2447
208
#line 592 "/src/libpcap/build/grammar.y"
2448
208
                                { CHECK_PTR_VAL(((yyval.blk).b = gen_mtp2type_abbrev(cstate, (yyvsp[0].i)))); (yyval.blk).q = qerr; }
2449
0
#line 2450 "/src/libpcap/build/grammar.c"
2450
0
    break;
2451
2452
195
  case 49:
2453
195
#line 593 "/src/libpcap/build/grammar.y"
2454
195
                                { (yyval.blk).b = (yyvsp[0].blk).b; (yyval.blk).q = qerr; }
2455
195
#line 2456 "/src/libpcap/build/grammar.c"
2456
195
    break;
2457
2458
2.99k
  case 51:
2459
2.99k
#line 597 "/src/libpcap/build/grammar.y"
2460
2.99k
                                { (yyval.i) = Q_DEFAULT; }
2461
2.99k
#line 2462 "/src/libpcap/build/grammar.c"
2462
2.99k
    break;
2463
2464
140
  case 52:
2465
140
#line 600 "/src/libpcap/build/grammar.y"
2466
140
                                { (yyval.i) = Q_SRC; }
2467
140
#line 2468 "/src/libpcap/build/grammar.c"
2468
140
    break;
2469
2470
267
  case 53:
2471
267
#line 601 "/src/libpcap/build/grammar.y"
2472
267
                                { (yyval.i) = Q_DST; }
2473
267
#line 2474 "/src/libpcap/build/grammar.c"
2474
267
    break;
2475
2476
15
  case 54:
2477
15
#line 602 "/src/libpcap/build/grammar.y"
2478
15
                                { (yyval.i) = Q_OR; }
2479
15
#line 2480 "/src/libpcap/build/grammar.c"
2480
15
    break;
2481
2482
76
  case 55:
2483
76
#line 603 "/src/libpcap/build/grammar.y"
2484
76
                                { (yyval.i) = Q_OR; }
2485
76
#line 2486 "/src/libpcap/build/grammar.c"
2486
76
    break;
2487
2488
11
  case 56:
2489
11
#line 604 "/src/libpcap/build/grammar.y"
2490
11
                                { (yyval.i) = Q_AND; }
2491
11
#line 2492 "/src/libpcap/build/grammar.c"
2492
11
    break;
2493
2494
108
  case 57:
2495
108
#line 605 "/src/libpcap/build/grammar.y"
2496
108
                                { (yyval.i) = Q_AND; }
2497
108
#line 2498 "/src/libpcap/build/grammar.c"
2498
108
    break;
2499
2500
41
  case 58:
2501
41
#line 606 "/src/libpcap/build/grammar.y"
2502
41
                                { (yyval.i) = Q_ADDR1; }
2503
41
#line 2504 "/src/libpcap/build/grammar.c"
2504
41
    break;
2505
2506
30
  case 59:
2507
30
#line 607 "/src/libpcap/build/grammar.y"
2508
30
                                { (yyval.i) = Q_ADDR2; }
2509
30
#line 2510 "/src/libpcap/build/grammar.c"
2510
30
    break;
2511
2512
26
  case 60:
2513
26
#line 608 "/src/libpcap/build/grammar.y"
2514
26
                                { (yyval.i) = Q_ADDR3; }
2515
26
#line 2516 "/src/libpcap/build/grammar.c"
2516
26
    break;
2517
2518
25
  case 61:
2519
25
#line 609 "/src/libpcap/build/grammar.y"
2520
25
                                { (yyval.i) = Q_ADDR4; }
2521
25
#line 2522 "/src/libpcap/build/grammar.c"
2522
25
    break;
2523
2524
117
  case 62:
2525
117
#line 610 "/src/libpcap/build/grammar.y"
2526
117
                                { (yyval.i) = Q_RA; }
2527
117
#line 2528 "/src/libpcap/build/grammar.c"
2528
117
    break;
2529
2530
93
  case 63:
2531
93
#line 611 "/src/libpcap/build/grammar.y"
2532
93
                                { (yyval.i) = Q_TA; }
2533
93
#line 2534 "/src/libpcap/build/grammar.c"
2534
93
    break;
2535
2536
263
  case 64:
2537
263
#line 614 "/src/libpcap/build/grammar.y"
2538
263
                                { (yyval.i) = Q_HOST; }
2539
263
#line 2540 "/src/libpcap/build/grammar.c"
2540
263
    break;
2541
2542
1.00k
  case 65:
2543
1.00k
#line 615 "/src/libpcap/build/grammar.y"
2544
1.00k
                                { (yyval.i) = Q_NET; }
2545
1.00k
#line 2546 "/src/libpcap/build/grammar.c"
2546
1.00k
    break;
2547
2548
595
  case 66:
2549
595
#line 616 "/src/libpcap/build/grammar.y"
2550
595
                                { (yyval.i) = Q_PORT; }
2551
595
#line 2552 "/src/libpcap/build/grammar.c"
2552
595
    break;
2553
2554
0
  case 67:
2555
0
#line 617 "/src/libpcap/build/grammar.y"
2556
0
                                { (yyval.i) = Q_PORTRANGE; }
2557
0
#line 2558 "/src/libpcap/build/grammar.c"
2558
0
    break;
2559
2560
0
  case 68:
2561
0
#line 620 "/src/libpcap/build/grammar.y"
2562
0
                                { (yyval.i) = Q_GATEWAY; }
2563
0
#line 2564 "/src/libpcap/build/grammar.c"
2564
0
    break;
2565
2566
3.10k
  case 69:
2567
3.10k
#line 622 "/src/libpcap/build/grammar.y"
2568
3.10k
                                { (yyval.i) = Q_LINK; }
2569
3.10k
#line 2570 "/src/libpcap/build/grammar.c"
2570
3.10k
    break;
2571
2572
991
  case 70:
2573
991
#line 623 "/src/libpcap/build/grammar.y"
2574
991
                                { (yyval.i) = Q_IP; }
2575
991
#line 2576 "/src/libpcap/build/grammar.c"
2576
991
    break;
2577
2578
83
  case 71:
2579
83
#line 624 "/src/libpcap/build/grammar.y"
2580
83
                                { (yyval.i) = Q_ARP; }
2581
83
#line 2582 "/src/libpcap/build/grammar.c"
2582
83
    break;
2583
2584
58
  case 72:
2585
58
#line 625 "/src/libpcap/build/grammar.y"
2586
58
                                { (yyval.i) = Q_RARP; }
2587
58
#line 2588 "/src/libpcap/build/grammar.c"
2588
58
    break;
2589
2590
129
  case 73:
2591
129
#line 626 "/src/libpcap/build/grammar.y"
2592
129
                                { (yyval.i) = Q_SCTP; }
2593
129
#line 2594 "/src/libpcap/build/grammar.c"
2594
129
    break;
2595
2596
285
  case 74:
2597
285
#line 627 "/src/libpcap/build/grammar.y"
2598
285
                                { (yyval.i) = Q_TCP; }
2599
285
#line 2600 "/src/libpcap/build/grammar.c"
2600
285
    break;
2601
2602
624
  case 75:
2603
624
#line 628 "/src/libpcap/build/grammar.y"
2604
624
                                { (yyval.i) = Q_UDP; }
2605
624
#line 2606 "/src/libpcap/build/grammar.c"
2606
624
    break;
2607
2608
54
  case 76:
2609
54
#line 629 "/src/libpcap/build/grammar.y"
2610
54
                                { (yyval.i) = Q_ICMP; }
2611
54
#line 2612 "/src/libpcap/build/grammar.c"
2612
54
    break;
2613
2614
74
  case 77:
2615
74
#line 630 "/src/libpcap/build/grammar.y"
2616
74
                                { (yyval.i) = Q_IGMP; }
2617
74
#line 2618 "/src/libpcap/build/grammar.c"
2618
74
    break;
2619
2620
132
  case 78:
2621
132
#line 631 "/src/libpcap/build/grammar.y"
2622
132
                                { (yyval.i) = Q_IGRP; }
2623
132
#line 2624 "/src/libpcap/build/grammar.c"
2624
132
    break;
2625
2626
456
  case 79:
2627
456
#line 632 "/src/libpcap/build/grammar.y"
2628
456
                                { (yyval.i) = Q_PIM; }
2629
456
#line 2630 "/src/libpcap/build/grammar.c"
2630
456
    break;
2631
2632
72
  case 80:
2633
72
#line 633 "/src/libpcap/build/grammar.y"
2634
72
                                { (yyval.i) = Q_VRRP; }
2635
72
#line 2636 "/src/libpcap/build/grammar.c"
2636
72
    break;
2637
2638
47
  case 81:
2639
47
#line 634 "/src/libpcap/build/grammar.y"
2640
47
                                { (yyval.i) = Q_CARP; }
2641
47
#line 2642 "/src/libpcap/build/grammar.c"
2642
47
    break;
2643
2644
303
  case 82:
2645
303
#line 635 "/src/libpcap/build/grammar.y"
2646
303
                                { (yyval.i) = Q_ATALK; }
2647
303
#line 2648 "/src/libpcap/build/grammar.c"
2648
303
    break;
2649
2650
59
  case 83:
2651
59
#line 636 "/src/libpcap/build/grammar.y"
2652
59
                                { (yyval.i) = Q_AARP; }
2653
59
#line 2654 "/src/libpcap/build/grammar.c"
2654
59
    break;
2655
2656
119
  case 84:
2657
119
#line 637 "/src/libpcap/build/grammar.y"
2658
119
                                { (yyval.i) = Q_DECNET; }
2659
119
#line 2660 "/src/libpcap/build/grammar.c"
2660
119
    break;
2661
2662
73
  case 85:
2663
73
#line 638 "/src/libpcap/build/grammar.y"
2664
73
                                { (yyval.i) = Q_LAT; }
2665
73
#line 2666 "/src/libpcap/build/grammar.c"
2666
73
    break;
2667
2668
68
  case 86:
2669
68
#line 639 "/src/libpcap/build/grammar.y"
2670
68
                                { (yyval.i) = Q_SCA; }
2671
68
#line 2672 "/src/libpcap/build/grammar.c"
2672
68
    break;
2673
2674
39
  case 87:
2675
39
#line 640 "/src/libpcap/build/grammar.y"
2676
39
                                { (yyval.i) = Q_MOPDL; }
2677
39
#line 2678 "/src/libpcap/build/grammar.c"
2678
39
    break;
2679
2680
185
  case 88:
2681
185
#line 641 "/src/libpcap/build/grammar.y"
2682
185
                                { (yyval.i) = Q_MOPRC; }
2683
185
#line 2684 "/src/libpcap/build/grammar.c"
2684
185
    break;
2685
2686
333
  case 89:
2687
333
#line 642 "/src/libpcap/build/grammar.y"
2688
333
                                { (yyval.i) = Q_IPV6; }
2689
333
#line 2690 "/src/libpcap/build/grammar.c"
2690
333
    break;
2691
2692
203
  case 90:
2693
203
#line 643 "/src/libpcap/build/grammar.y"
2694
203
                                { (yyval.i) = Q_ICMPV6; }
2695
203
#line 2696 "/src/libpcap/build/grammar.c"
2696
203
    break;
2697
2698
236
  case 91:
2699
236
#line 644 "/src/libpcap/build/grammar.y"
2700
236
                                { (yyval.i) = Q_AH; }
2701
236
#line 2702 "/src/libpcap/build/grammar.c"
2702
236
    break;
2703
2704
89
  case 92:
2705
89
#line 645 "/src/libpcap/build/grammar.y"
2706
89
                                { (yyval.i) = Q_ESP; }
2707
89
#line 2708 "/src/libpcap/build/grammar.c"
2708
89
    break;
2709
2710
154
  case 93:
2711
154
#line 646 "/src/libpcap/build/grammar.y"
2712
154
                                { (yyval.i) = Q_ISO; }
2713
154
#line 2714 "/src/libpcap/build/grammar.c"
2714
154
    break;
2715
2716
34
  case 94:
2717
34
#line 647 "/src/libpcap/build/grammar.y"
2718
34
                                { (yyval.i) = Q_ESIS; }
2719
34
#line 2720 "/src/libpcap/build/grammar.c"
2720
34
    break;
2721
2722
132
  case 95:
2723
132
#line 648 "/src/libpcap/build/grammar.y"
2724
132
                                { (yyval.i) = Q_ISIS; }
2725
132
#line 2726 "/src/libpcap/build/grammar.c"
2726
132
    break;
2727
2728
1.74k
  case 96:
2729
1.74k
#line 649 "/src/libpcap/build/grammar.y"
2730
1.74k
                                { (yyval.i) = Q_ISIS_L1; }
2731
1.74k
#line 2732 "/src/libpcap/build/grammar.c"
2732
1.74k
    break;
2733
2734
1.66k
  case 97:
2735
1.66k
#line 650 "/src/libpcap/build/grammar.y"
2736
1.66k
                                { (yyval.i) = Q_ISIS_L2; }
2737
1.66k
#line 2738 "/src/libpcap/build/grammar.c"
2738
1.66k
    break;
2739
2740
229
  case 98:
2741
229
#line 651 "/src/libpcap/build/grammar.y"
2742
229
                                { (yyval.i) = Q_ISIS_IIH; }
2743
229
#line 2744 "/src/libpcap/build/grammar.c"
2744
229
    break;
2745
2746
138
  case 99:
2747
138
#line 652 "/src/libpcap/build/grammar.y"
2748
138
                                { (yyval.i) = Q_ISIS_LSP; }
2749
138
#line 2750 "/src/libpcap/build/grammar.c"
2750
138
    break;
2751
2752
223
  case 100:
2753
223
#line 653 "/src/libpcap/build/grammar.y"
2754
223
                                { (yyval.i) = Q_ISIS_SNP; }
2755
223
#line 2756 "/src/libpcap/build/grammar.c"
2756
223
    break;
2757
2758
124
  case 101:
2759
124
#line 654 "/src/libpcap/build/grammar.y"
2760
124
                                { (yyval.i) = Q_ISIS_PSNP; }
2761
124
#line 2762 "/src/libpcap/build/grammar.c"
2762
124
    break;
2763
2764
123
  case 102:
2765
123
#line 655 "/src/libpcap/build/grammar.y"
2766
123
                                { (yyval.i) = Q_ISIS_CSNP; }
2767
123
#line 2768 "/src/libpcap/build/grammar.c"
2768
123
    break;
2769
2770
29
  case 103:
2771
29
#line 656 "/src/libpcap/build/grammar.y"
2772
29
                                { (yyval.i) = Q_CLNP; }
2773
29
#line 2774 "/src/libpcap/build/grammar.c"
2774
29
    break;
2775
2776
188
  case 104:
2777
188
#line 657 "/src/libpcap/build/grammar.y"
2778
188
                                { (yyval.i) = Q_STP; }
2779
188
#line 2780 "/src/libpcap/build/grammar.c"
2780
188
    break;
2781
2782
382
  case 105:
2783
382
#line 658 "/src/libpcap/build/grammar.y"
2784
382
                                { (yyval.i) = Q_IPX; }
2785
382
#line 2786 "/src/libpcap/build/grammar.c"
2786
382
    break;
2787
2788
60
  case 106:
2789
60
#line 659 "/src/libpcap/build/grammar.y"
2790
60
                                { (yyval.i) = Q_NETBEUI; }
2791
60
#line 2792 "/src/libpcap/build/grammar.c"
2792
60
    break;
2793
2794
176
  case 107:
2795
176
#line 660 "/src/libpcap/build/grammar.y"
2796
176
                                { (yyval.i) = Q_RADIO; }
2797
176
#line 2798 "/src/libpcap/build/grammar.c"
2798
176
    break;
2799
2800
0
  case 108:
2801
0
#line 662 "/src/libpcap/build/grammar.y"
2802
0
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_broadcast(cstate, (yyvsp[-1].i)))); }
2803
0
#line 2804 "/src/libpcap/build/grammar.c"
2804
0
    break;
2805
2806
0
  case 109:
2807
0
#line 663 "/src/libpcap/build/grammar.y"
2808
0
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_multicast(cstate, (yyvsp[-1].i)))); }
2809
0
#line 2810 "/src/libpcap/build/grammar.c"
2810
0
    break;
2811
2812
49
  case 110:
2813
49
#line 664 "/src/libpcap/build/grammar.y"
2814
49
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_less(cstate, (yyvsp[0].h)))); }
2815
49
#line 2816 "/src/libpcap/build/grammar.c"
2816
49
    break;
2817
2818
49
  case 111:
2819
0
#line 665 "/src/libpcap/build/grammar.y"
2820
0
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_greater(cstate, (yyvsp[0].h)))); }
2821
0
#line 2822 "/src/libpcap/build/grammar.c"
2822
0
    break;
2823
2824
158
  case 112:
2825
158
#line 666 "/src/libpcap/build/grammar.y"
2826
158
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_byteop(cstate, (yyvsp[-1].i), (yyvsp[-2].h), (yyvsp[0].h)))); }
2827
154
#line 2828 "/src/libpcap/build/grammar.c"
2828
154
    break;
2829
2830
154
  case 113:
2831
0
#line 667 "/src/libpcap/build/grammar.y"
2832
0
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_inbound_outbound(cstate, 0))); }
2833
0
#line 2834 "/src/libpcap/build/grammar.c"
2834
0
    break;
2835
2836
0
  case 114:
2837
0
#line 668 "/src/libpcap/build/grammar.y"
2838
0
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_inbound_outbound(cstate, 1))); }
2839
0
#line 2840 "/src/libpcap/build/grammar.c"
2840
0
    break;
2841
2842
0
  case 115:
2843
0
#line 669 "/src/libpcap/build/grammar.y"
2844
0
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_ifindex(cstate, (yyvsp[0].h)))); }
2845
0
#line 2846 "/src/libpcap/build/grammar.c"
2846
0
    break;
2847
2848
155
  case 116:
2849
155
#line 670 "/src/libpcap/build/grammar.y"
2850
155
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_vlan(cstate, (yyvsp[0].h), 1))); }
2851
123
#line 2852 "/src/libpcap/build/grammar.c"
2852
123
    break;
2853
2854
564
  case 117:
2855
564
#line 671 "/src/libpcap/build/grammar.y"
2856
564
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_vlan(cstate, 0, 0))); }
2857
552
#line 2858 "/src/libpcap/build/grammar.c"
2858
552
    break;
2859
2860
552
  case 118:
2861
162
#line 672 "/src/libpcap/build/grammar.y"
2862
162
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_mpls(cstate, (yyvsp[0].h), 1))); }
2863
140
#line 2864 "/src/libpcap/build/grammar.c"
2864
140
    break;
2865
2866
185
  case 119:
2867
185
#line 673 "/src/libpcap/build/grammar.y"
2868
185
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_mpls(cstate, 0, 0))); }
2869
177
#line 2870 "/src/libpcap/build/grammar.c"
2870
177
    break;
2871
2872
177
  case 120:
2873
26
#line 674 "/src/libpcap/build/grammar.y"
2874
26
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_pppoed(cstate))); }
2875
25
#line 2876 "/src/libpcap/build/grammar.c"
2876
25
    break;
2877
2878
27
  case 121:
2879
27
#line 675 "/src/libpcap/build/grammar.y"
2880
27
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_pppoes(cstate, (yyvsp[0].h), 1))); }
2881
22
#line 2882 "/src/libpcap/build/grammar.c"
2882
22
    break;
2883
2884
150
  case 122:
2885
150
#line 676 "/src/libpcap/build/grammar.y"
2886
150
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_pppoes(cstate, 0, 0))); }
2887
149
#line 2888 "/src/libpcap/build/grammar.c"
2888
149
    break;
2889
2890
149
  case 123:
2891
0
#line 677 "/src/libpcap/build/grammar.y"
2892
0
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_geneve(cstate, (yyvsp[0].h), 1))); }
2893
0
#line 2894 "/src/libpcap/build/grammar.c"
2894
0
    break;
2895
2896
0
  case 124:
2897
0
#line 678 "/src/libpcap/build/grammar.y"
2898
0
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_geneve(cstate, 0, 0))); }
2899
0
#line 2900 "/src/libpcap/build/grammar.c"
2900
0
    break;
2901
2902
141
  case 125:
2903
141
#line 679 "/src/libpcap/build/grammar.y"
2904
141
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_vxlan(cstate, (yyvsp[0].h), 1))); }
2905
130
#line 2906 "/src/libpcap/build/grammar.c"
2906
130
    break;
2907
2908
649
  case 126:
2909
649
#line 680 "/src/libpcap/build/grammar.y"
2910
649
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_vxlan(cstate, 0, 0))); }
2911
641
#line 2912 "/src/libpcap/build/grammar.c"
2912
641
    break;
2913
2914
641
  case 127:
2915
83
#line 681 "/src/libpcap/build/grammar.y"
2916
83
                                { (yyval.rblk) = (yyvsp[0].rblk); }
2917
83
#line 2918 "/src/libpcap/build/grammar.c"
2918
83
    break;
2919
2920
421
  case 128:
2921
421
#line 682 "/src/libpcap/build/grammar.y"
2922
421
                                { (yyval.rblk) = (yyvsp[0].rblk); }
2923
421
#line 2924 "/src/libpcap/build/grammar.c"
2924
421
    break;
2925
2926
1.21k
  case 129:
2927
1.21k
#line 683 "/src/libpcap/build/grammar.y"
2928
1.21k
                                { (yyval.rblk) = (yyvsp[0].rblk); }
2929
1.21k
#line 2930 "/src/libpcap/build/grammar.c"
2930
1.21k
    break;
2931
2932
42
  case 130:
2933
42
#line 686 "/src/libpcap/build/grammar.y"
2934
42
                                { CHECK_PTR_VAL((yyvsp[0].s)); CHECK_PTR_VAL(((yyval.rblk) = gen_pf_ifname(cstate, (yyvsp[0].s)))); }
2935
33
#line 2936 "/src/libpcap/build/grammar.c"
2936
33
    break;
2937
2938
33
  case 131:
2939
19
#line 687 "/src/libpcap/build/grammar.y"
2940
19
                                { CHECK_PTR_VAL((yyvsp[0].s)); CHECK_PTR_VAL(((yyval.rblk) = gen_pf_ruleset(cstate, (yyvsp[0].s)))); }
2941
12
#line 2942 "/src/libpcap/build/grammar.c"
2942
12
    break;
2943
2944
20
  case 132:
2945
20
#line 688 "/src/libpcap/build/grammar.y"
2946
20
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_pf_rnr(cstate, (yyvsp[0].h)))); }
2947
12
#line 2948 "/src/libpcap/build/grammar.c"
2948
12
    break;
2949
2950
18
  case 133:
2951
18
#line 689 "/src/libpcap/build/grammar.y"
2952
18
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_pf_srnr(cstate, (yyvsp[0].h)))); }
2953
13
#line 2954 "/src/libpcap/build/grammar.c"
2954
13
    break;
2955
2956
15
  case 134:
2957
15
#line 690 "/src/libpcap/build/grammar.y"
2958
15
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_pf_reason(cstate, (yyvsp[0].i)))); }
2959
12
#line 2960 "/src/libpcap/build/grammar.c"
2960
12
    break;
2961
2962
12
  case 135:
2963
6
#line 691 "/src/libpcap/build/grammar.y"
2964
6
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_pf_action(cstate, (yyvsp[0].i)))); }
2965
1
#line 2966 "/src/libpcap/build/grammar.c"
2966
1
    break;
2967
2968
2
  case 136:
2969
2
#line 695 "/src/libpcap/build/grammar.y"
2970
2
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_p80211_type(cstate, (yyvsp[-2].i) | (yyvsp[0].i),
2971
2
          IEEE80211_FC0_TYPE_MASK |
2972
2
          IEEE80211_FC0_SUBTYPE_MASK)));
2973
2
        }
2974
1
#line 2975 "/src/libpcap/build/grammar.c"
2975
1
    break;
2976
2977
181
  case 137:
2978
181
#line 699 "/src/libpcap/build/grammar.y"
2979
181
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_p80211_type(cstate, (yyvsp[0].i),
2980
181
          IEEE80211_FC0_TYPE_MASK)));
2981
181
        }
2982
179
#line 2983 "/src/libpcap/build/grammar.c"
2983
179
    break;
2984
2985
179
  case 138:
2986
27
#line 702 "/src/libpcap/build/grammar.y"
2987
27
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_p80211_type(cstate, (yyvsp[0].i),
2988
27
          IEEE80211_FC0_TYPE_MASK |
2989
27
          IEEE80211_FC0_SUBTYPE_MASK)));
2990
27
        }
2991
24
#line 2992 "/src/libpcap/build/grammar.c"
2992
24
    break;
2993
2994
219
  case 139:
2995
219
#line 706 "/src/libpcap/build/grammar.y"
2996
219
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_p80211_fcdir(cstate, (yyvsp[0].i)))); }
2997
217
#line 2998 "/src/libpcap/build/grammar.c"
2998
217
    break;
2999
3000
217
  case 140:
3001
214
#line 709 "/src/libpcap/build/grammar.y"
3002
214
                                { if (((yyvsp[0].h) & (~IEEE80211_FC0_TYPE_MASK)) != 0) {
3003
26
          bpf_set_error(cstate, "invalid 802.11 type value 0x%02x", (yyvsp[0].h));
3004
26
          YYABORT;
3005
26
          }
3006
188
          (yyval.i) = (int)(yyvsp[0].h);
3007
188
        }
3008
0
#line 3009 "/src/libpcap/build/grammar.c"
3009
0
    break;
3010
3011
36
  case 141:
3012
36
#line 715 "/src/libpcap/build/grammar.y"
3013
36
                                { CHECK_PTR_VAL((yyvsp[0].s));
3014
36
          (yyval.i) = str2tok((yyvsp[0].s), ieee80211_types);
3015
36
          if ((yyval.i) == -1) {
3016
6
          bpf_set_error(cstate, "unknown 802.11 type name \"%s\"", (yyvsp[0].s));
3017
6
          YYABORT;
3018
6
          }
3019
36
        }
3020
30
#line 3021 "/src/libpcap/build/grammar.c"
3021
30
    break;
3022
3023
33
  case 142:
3024
33
#line 724 "/src/libpcap/build/grammar.y"
3025
33
                                { if (((yyvsp[0].h) & (~IEEE80211_FC0_SUBTYPE_MASK)) != 0) {
3026
32
          bpf_set_error(cstate, "invalid 802.11 subtype value 0x%02x", (yyvsp[0].h));
3027
32
          YYABORT;
3028
32
          }
3029
1
          (yyval.i) = (int)(yyvsp[0].h);
3030
1
        }
3031
0
#line 3032 "/src/libpcap/build/grammar.c"
3032
0
    break;
3033
3034
4
  case 143:
3035
4
#line 730 "/src/libpcap/build/grammar.y"
3036
4
                                { const struct tok *types = NULL;
3037
4
          int i;
3038
4
          CHECK_PTR_VAL((yyvsp[0].s));
3039
10
          for (i = 0;; i++) {
3040
10
          if (ieee80211_type_subtypes[i].tok == NULL) {
3041
            /* Ran out of types */
3042
1
            bpf_set_error(cstate, "unknown 802.11 type");
3043
1
            YYABORT;
3044
1
          }
3045
9
          if ((yyvsp[(-1) - (1)].i) == ieee80211_type_subtypes[i].type) {
3046
3
            types = ieee80211_type_subtypes[i].tok;
3047
3
            break;
3048
3
          }
3049
9
          }
3050
3051
3
          (yyval.i) = str2tok((yyvsp[0].s), types);
3052
3
          if ((yyval.i) == -1) {
3053
2
          bpf_set_error(cstate, "unknown 802.11 subtype name \"%s\"", (yyvsp[0].s));
3054
2
          YYABORT;
3055
2
          }
3056
3
        }
3057
1
#line 3058 "/src/libpcap/build/grammar.c"
3058
1
    break;
3059
3060
39
  case 144:
3061
39
#line 753 "/src/libpcap/build/grammar.y"
3062
39
                                { int i;
3063
39
          CHECK_PTR_VAL((yyvsp[0].s));
3064
119
          for (i = 0;; i++) {
3065
119
          if (ieee80211_type_subtypes[i].tok == NULL) {
3066
            /* Ran out of types */
3067
12
            bpf_set_error(cstate, "unknown 802.11 type name");
3068
12
            YYABORT;
3069
12
          }
3070
107
          (yyval.i) = str2tok((yyvsp[0].s), ieee80211_type_subtypes[i].tok);
3071
107
          if ((yyval.i) != -1) {
3072
27
            (yyval.i) |= ieee80211_type_subtypes[i].type;
3073
27
            break;
3074
27
          }
3075
107
          }
3076
39
        }
3077
27
#line 3078 "/src/libpcap/build/grammar.c"
3078
27
    break;
3079
3080
772
  case 145:
3081
772
#line 770 "/src/libpcap/build/grammar.y"
3082
772
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_llc(cstate))); }
3083
763
#line 3084 "/src/libpcap/build/grammar.c"
3084
763
    break;
3085
3086
763
  case 146:
3087
480
#line 771 "/src/libpcap/build/grammar.y"
3088
480
                                { CHECK_PTR_VAL((yyvsp[0].s));
3089
480
          if (pcapint_strcasecmp((yyvsp[0].s), "i") == 0) {
3090
77
          CHECK_PTR_VAL(((yyval.rblk) = gen_llc_i(cstate)));
3091
403
          } else if (pcapint_strcasecmp((yyvsp[0].s), "s") == 0) {
3092
69
          CHECK_PTR_VAL(((yyval.rblk) = gen_llc_s(cstate)));
3093
334
          } else if (pcapint_strcasecmp((yyvsp[0].s), "u") == 0) {
3094
129
          CHECK_PTR_VAL(((yyval.rblk) = gen_llc_u(cstate)));
3095
205
          } else {
3096
205
          int subtype;
3097
3098
205
          subtype = str2tok((yyvsp[0].s), llc_s_subtypes);
3099
205
          if (subtype != -1) {
3100
52
            CHECK_PTR_VAL(((yyval.rblk) = gen_llc_s_subtype(cstate, subtype)));
3101
153
          } else {
3102
153
            subtype = str2tok((yyvsp[0].s), llc_u_subtypes);
3103
153
            if (subtype == -1) {
3104
30
              bpf_set_error(cstate, "unknown LLC type name \"%s\"", (yyvsp[0].s));
3105
30
              YYABORT;
3106
30
            }
3107
123
            CHECK_PTR_VAL(((yyval.rblk) = gen_llc_u_subtype(cstate, subtype)));
3108
123
          }
3109
205
          }
3110
480
        }
3111
440
#line 3112 "/src/libpcap/build/grammar.c"
3112
440
    break;
3113
3114
440
  case 147:
3115
11
#line 795 "/src/libpcap/build/grammar.y"
3116
11
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_llc_s_subtype(cstate, LLC_RNR))); }
3117
10
#line 3118 "/src/libpcap/build/grammar.c"
3118
10
    break;
3119
3120
171
  case 148:
3121
171
#line 798 "/src/libpcap/build/grammar.y"
3122
171
                                { if (((yyvsp[0].h) & (~IEEE80211_FC1_DIR_MASK)) != 0) {
3123
3
          bpf_set_error(cstate, "invalid 802.11 direction value 0x%x", (yyvsp[0].h));
3124
3
          YYABORT;
3125
3
          }
3126
168
          (yyval.i) = (int)(yyvsp[0].h);
3127
168
        }
3128
0
#line 3129 "/src/libpcap/build/grammar.c"
3129
0
    break;
3130
3131
75
  case 149:
3132
75
#line 804 "/src/libpcap/build/grammar.y"
3133
75
                                { CHECK_PTR_VAL((yyvsp[0].s));
3134
75
          if (pcapint_strcasecmp((yyvsp[0].s), "nods") == 0)
3135
17
          (yyval.i) = IEEE80211_FC1_DIR_NODS;
3136
58
          else if (pcapint_strcasecmp((yyvsp[0].s), "tods") == 0)
3137
24
          (yyval.i) = IEEE80211_FC1_DIR_TODS;
3138
34
          else if (pcapint_strcasecmp((yyvsp[0].s), "fromds") == 0)
3139
0
          (yyval.i) = IEEE80211_FC1_DIR_FROMDS;
3140
34
          else if (pcapint_strcasecmp((yyvsp[0].s), "dstods") == 0)
3141
10
          (yyval.i) = IEEE80211_FC1_DIR_DSTODS;
3142
24
          else {
3143
24
          bpf_set_error(cstate, "unknown 802.11 direction");
3144
24
          YYABORT;
3145
24
          }
3146
75
        }
3147
51
#line 3148 "/src/libpcap/build/grammar.c"
3148
51
    break;
3149
3150
51
  case 150:
3151
15
#line 820 "/src/libpcap/build/grammar.y"
3152
15
                                { (yyval.i) = (yyvsp[0].h); }
3153
15
#line 3154 "/src/libpcap/build/grammar.c"
3154
15
    break;
3155
3156
7
  case 151:
3157
7
#line 821 "/src/libpcap/build/grammar.y"
3158
7
                                { CHECK_PTR_VAL((yyvsp[0].s)); CHECK_INT_VAL(((yyval.i) = pfreason_to_num(cstate, (yyvsp[0].s)))); }
3159
0
#line 3160 "/src/libpcap/build/grammar.c"
3160
0
    break;
3161
3162
11
  case 152:
3163
11
#line 824 "/src/libpcap/build/grammar.y"
3164
11
                                { CHECK_PTR_VAL((yyvsp[0].s)); CHECK_INT_VAL(((yyval.i) = pfaction_to_num(cstate, (yyvsp[0].s)))); }
3165
6
#line 3166 "/src/libpcap/build/grammar.c"
3166
6
    break;
3167
3168
1.23k
  case 153:
3169
1.23k
#line 827 "/src/libpcap/build/grammar.y"
3170
1.23k
                                { (yyval.i) = BPF_JGT; }
3171
1.23k
#line 3172 "/src/libpcap/build/grammar.c"
3172
1.23k
    break;
3173
3174
79
  case 154:
3175
79
#line 828 "/src/libpcap/build/grammar.y"
3176
79
                                { (yyval.i) = BPF_JGE; }
3177
79
#line 3178 "/src/libpcap/build/grammar.c"
3178
79
    break;
3179
3180
1.59k
  case 155:
3181
1.59k
#line 829 "/src/libpcap/build/grammar.y"
3182
1.59k
                                { (yyval.i) = BPF_JEQ; }
3183
1.59k
#line 3184 "/src/libpcap/build/grammar.c"
3184
1.59k
    break;
3185
3186
166
  case 156:
3187
166
#line 831 "/src/libpcap/build/grammar.y"
3188
166
                                { (yyval.i) = BPF_JGT; }
3189
166
#line 3190 "/src/libpcap/build/grammar.c"
3190
166
    break;
3191
3192
1.39k
  case 157:
3193
1.39k
#line 832 "/src/libpcap/build/grammar.y"
3194
1.39k
                                { (yyval.i) = BPF_JGE; }
3195
1.39k
#line 3196 "/src/libpcap/build/grammar.c"
3196
1.39k
    break;
3197
3198
37
  case 158:
3199
37
#line 833 "/src/libpcap/build/grammar.y"
3200
37
                                { (yyval.i) = BPF_JEQ; }
3201
37
#line 3202 "/src/libpcap/build/grammar.c"
3202
37
    break;
3203
3204
22.6k
  case 159:
3205
22.6k
#line 835 "/src/libpcap/build/grammar.y"
3206
22.6k
                                { CHECK_PTR_VAL(((yyval.a) = gen_loadi(cstate, (yyvsp[0].h)))); }
3207
22.6k
#line 3208 "/src/libpcap/build/grammar.c"
3208
22.6k
    break;
3209
3210
22.6k
  case 161:
3211
3.26k
#line 838 "/src/libpcap/build/grammar.y"
3212
3.26k
                                        { CHECK_PTR_VAL(((yyval.a) = gen_load(cstate, (yyvsp[-3].i), (yyvsp[-1].a), 1))); }
3213
3.24k
#line 3214 "/src/libpcap/build/grammar.c"
3214
3.24k
    break;
3215
3216
3.24k
  case 162:
3217
441
#line 839 "/src/libpcap/build/grammar.y"
3218
441
                                        { CHECK_PTR_VAL(((yyval.a) = gen_load(cstate, (yyvsp[-5].i), (yyvsp[-3].a), (yyvsp[-1].h)))); }
3219
439
#line 3220 "/src/libpcap/build/grammar.c"
3220
439
    break;
3221
3222
2.54k
  case 163:
3223
2.54k
#line 840 "/src/libpcap/build/grammar.y"
3224
2.54k
                                        { CHECK_PTR_VAL(((yyval.a) = gen_arth(cstate, BPF_ADD, (yyvsp[-2].a), (yyvsp[0].a)))); }
3225
2.54k
#line 3226 "/src/libpcap/build/grammar.c"
3226
2.54k
    break;
3227
3228
2.54k
  case 164:
3229
1.35k
#line 841 "/src/libpcap/build/grammar.y"
3230
1.35k
                                        { CHECK_PTR_VAL(((yyval.a) = gen_arth(cstate, BPF_SUB, (yyvsp[-2].a), (yyvsp[0].a)))); }
3231
1.35k
#line 3232 "/src/libpcap/build/grammar.c"
3232
1.35k
    break;
3233
3234
3.77k
  case 165:
3235
3.77k
#line 842 "/src/libpcap/build/grammar.y"
3236
3.77k
                                        { CHECK_PTR_VAL(((yyval.a) = gen_arth(cstate, BPF_MUL, (yyvsp[-2].a), (yyvsp[0].a)))); }
3237
3.77k
#line 3238 "/src/libpcap/build/grammar.c"
3238
3.77k
    break;
3239
3240
3.77k
  case 166:
3241
1.72k
#line 843 "/src/libpcap/build/grammar.y"
3242
1.72k
                                        { CHECK_PTR_VAL(((yyval.a) = gen_arth(cstate, BPF_DIV, (yyvsp[-2].a), (yyvsp[0].a)))); }
3243
1.72k
#line 3244 "/src/libpcap/build/grammar.c"
3244
1.72k
    break;
3245
3246
1.72k
  case 167:
3247
1.15k
#line 844 "/src/libpcap/build/grammar.y"
3248
1.15k
                                        { CHECK_PTR_VAL(((yyval.a) = gen_arth(cstate, BPF_MOD, (yyvsp[-2].a), (yyvsp[0].a)))); }
3249
1.14k
#line 3250 "/src/libpcap/build/grammar.c"
3250
1.14k
    break;
3251
3252
1.86k
  case 168:
3253
1.86k
#line 845 "/src/libpcap/build/grammar.y"
3254
1.86k
                                        { CHECK_PTR_VAL(((yyval.a) = gen_arth(cstate, BPF_AND, (yyvsp[-2].a), (yyvsp[0].a)))); }
3255
1.86k
#line 3256 "/src/libpcap/build/grammar.c"
3256
1.86k
    break;
3257
3258
1.86k
  case 169:
3259
1.05k
#line 846 "/src/libpcap/build/grammar.y"
3260
1.05k
                                        { CHECK_PTR_VAL(((yyval.a) = gen_arth(cstate, BPF_OR, (yyvsp[-2].a), (yyvsp[0].a)))); }
3261
1.05k
#line 3262 "/src/libpcap/build/grammar.c"
3262
1.05k
    break;
3263
3264
1.05k
  case 170:
3265
869
#line 847 "/src/libpcap/build/grammar.y"
3266
869
                                        { CHECK_PTR_VAL(((yyval.a) = gen_arth(cstate, BPF_XOR, (yyvsp[-2].a), (yyvsp[0].a)))); }
3267
869
#line 3268 "/src/libpcap/build/grammar.c"
3268
869
    break;
3269
3270
869
  case 171:
3271
708
#line 848 "/src/libpcap/build/grammar.y"
3272
708
                                        { CHECK_PTR_VAL(((yyval.a) = gen_arth(cstate, BPF_LSH, (yyvsp[-2].a), (yyvsp[0].a)))); }
3273
671
#line 3274 "/src/libpcap/build/grammar.c"
3274
671
    break;
3275
3276
715
  case 172:
3277
715
#line 849 "/src/libpcap/build/grammar.y"
3278
715
                                        { CHECK_PTR_VAL(((yyval.a) = gen_arth(cstate, BPF_RSH, (yyvsp[-2].a), (yyvsp[0].a)))); }
3279
709
#line 3280 "/src/libpcap/build/grammar.c"
3280
709
    break;
3281
3282
15.8k
  case 173:
3283
15.8k
#line 850 "/src/libpcap/build/grammar.y"
3284
15.8k
                                        { CHECK_PTR_VAL(((yyval.a) = gen_neg(cstate, (yyvsp[0].a)))); }
3285
15.8k
#line 3286 "/src/libpcap/build/grammar.c"
3286
15.8k
    break;
3287
3288
15.8k
  case 174:
3289
138
#line 851 "/src/libpcap/build/grammar.y"
3290
138
                                        { (yyval.a) = (yyvsp[-1].a); }
3291
138
#line 3292 "/src/libpcap/build/grammar.c"
3292
138
    break;
3293
3294
2.72k
  case 175:
3295
2.72k
#line 852 "/src/libpcap/build/grammar.y"
3296
2.72k
                                        { CHECK_PTR_VAL(((yyval.a) = gen_loadlen(cstate))); }
3297
2.72k
#line 3298 "/src/libpcap/build/grammar.c"
3298
2.72k
    break;
3299
3300
2.72k
  case 176:
3301
59
#line 854 "/src/libpcap/build/grammar.y"
3302
59
                                { (yyval.i) = '&'; }
3303
59
#line 3304 "/src/libpcap/build/grammar.c"
3304
59
    break;
3305
3306
33
  case 177:
3307
33
#line 855 "/src/libpcap/build/grammar.y"
3308
33
                                { (yyval.i) = '|'; }
3309
33
#line 3310 "/src/libpcap/build/grammar.c"
3310
33
    break;
3311
3312
29
  case 178:
3313
29
#line 856 "/src/libpcap/build/grammar.y"
3314
29
                                { (yyval.i) = '<'; }
3315
29
#line 3316 "/src/libpcap/build/grammar.c"
3316
29
    break;
3317
3318
25
  case 179:
3319
25
#line 857 "/src/libpcap/build/grammar.y"
3320
25
                                { (yyval.i) = '>'; }
3321
25
#line 3322 "/src/libpcap/build/grammar.c"
3322
25
    break;
3323
3324
16
  case 180:
3325
16
#line 858 "/src/libpcap/build/grammar.y"
3326
16
                                { (yyval.i) = '='; }
3327
16
#line 3328 "/src/libpcap/build/grammar.c"
3328
16
    break;
3329
3330
79
  case 182:
3331
79
#line 861 "/src/libpcap/build/grammar.y"
3332
79
                                { (yyval.h) = (yyvsp[-1].h); }
3333
79
#line 3334 "/src/libpcap/build/grammar.c"
3334
79
    break;
3335
3336
70
  case 183:
3337
70
#line 863 "/src/libpcap/build/grammar.y"
3338
70
                                { (yyval.i) = A_LANE; }
3339
70
#line 3340 "/src/libpcap/build/grammar.c"
3340
70
    break;
3341
3342
10
  case 184:
3343
10
#line 864 "/src/libpcap/build/grammar.y"
3344
10
                                { (yyval.i) = A_METAC; }
3345
10
#line 3346 "/src/libpcap/build/grammar.c"
3346
10
    break;
3347
3348
10
  case 185:
3349
10
#line 865 "/src/libpcap/build/grammar.y"
3350
10
                                { (yyval.i) = A_BCC; }
3351
10
#line 3352 "/src/libpcap/build/grammar.c"
3352
10
    break;
3353
3354
4
  case 186:
3355
4
#line 866 "/src/libpcap/build/grammar.y"
3356
4
                                { (yyval.i) = A_OAMF4EC; }
3357
4
#line 3358 "/src/libpcap/build/grammar.c"
3358
4
    break;
3359
3360
10
  case 187:
3361
10
#line 867 "/src/libpcap/build/grammar.y"
3362
10
                                { (yyval.i) = A_OAMF4SC; }
3363
10
#line 3364 "/src/libpcap/build/grammar.c"
3364
10
    break;
3365
3366
41
  case 188:
3367
41
#line 868 "/src/libpcap/build/grammar.y"
3368
41
                                { (yyval.i) = A_SC; }
3369
41
#line 3370 "/src/libpcap/build/grammar.c"
3370
41
    break;
3371
3372
2
  case 189:
3373
2
#line 869 "/src/libpcap/build/grammar.y"
3374
2
                                { (yyval.i) = A_ILMIC; }
3375
2
#line 3376 "/src/libpcap/build/grammar.c"
3376
2
    break;
3377
3378
17
  case 190:
3379
17
#line 871 "/src/libpcap/build/grammar.y"
3380
17
                                { (yyval.i) = A_OAM; }
3381
17
#line 3382 "/src/libpcap/build/grammar.c"
3382
17
    break;
3383
3384
14
  case 191:
3385
14
#line 872 "/src/libpcap/build/grammar.y"
3386
14
                                { (yyval.i) = A_OAMF4; }
3387
14
#line 3388 "/src/libpcap/build/grammar.c"
3388
14
    break;
3389
3390
0
  case 192:
3391
0
#line 873 "/src/libpcap/build/grammar.y"
3392
0
                                { (yyval.i) = A_CONNECTMSG; }
3393
0
#line 3394 "/src/libpcap/build/grammar.c"
3394
0
    break;
3395
3396
0
  case 193:
3397
0
#line 874 "/src/libpcap/build/grammar.y"
3398
0
                                { (yyval.i) = A_METACONNECT; }
3399
0
#line 3400 "/src/libpcap/build/grammar.c"
3400
0
    break;
3401
3402
119
  case 194:
3403
119
#line 877 "/src/libpcap/build/grammar.y"
3404
119
                                { (yyval.blk).atmfieldtype = A_VPI; }
3405
119
#line 3406 "/src/libpcap/build/grammar.c"
3406
119
    break;
3407
3408
105
  case 195:
3409
105
#line 878 "/src/libpcap/build/grammar.y"
3410
105
                                { (yyval.blk).atmfieldtype = A_VCI; }
3411
105
#line 3412 "/src/libpcap/build/grammar.c"
3412
105
    break;
3413
3414
42
  case 197:
3415
42
#line 881 "/src/libpcap/build/grammar.y"
3416
42
                                { CHECK_PTR_VAL(((yyval.blk).b = gen_atmfield_code(cstate, (yyvsp[-2].blk).atmfieldtype, (yyvsp[0].h), (yyvsp[-1].i), 0))); }
3417
35
#line 3418 "/src/libpcap/build/grammar.c"
3418
35
    break;
3419
3420
71
  case 198:
3421
71
#line 882 "/src/libpcap/build/grammar.y"
3422
71
                                { CHECK_PTR_VAL(((yyval.blk).b = gen_atmfield_code(cstate, (yyvsp[-2].blk).atmfieldtype, (yyvsp[0].h), (yyvsp[-1].i), 1))); }
3423
67
#line 3424 "/src/libpcap/build/grammar.c"
3424
67
    break;
3425
3426
67
  case 199:
3427
19
#line 883 "/src/libpcap/build/grammar.y"
3428
19
                                 { (yyval.blk).b = (yyvsp[-1].blk).b; (yyval.blk).q = qerr; }
3429
19
#line 3430 "/src/libpcap/build/grammar.c"
3430
19
    break;
3431
3432
251
  case 200:
3433
251
#line 885 "/src/libpcap/build/grammar.y"
3434
251
                   {
3435
251
  (yyval.blk).atmfieldtype = (yyvsp[-1].blk).atmfieldtype;
3436
251
  if ((yyval.blk).atmfieldtype == A_VPI ||
3437
144
      (yyval.blk).atmfieldtype == A_VCI)
3438
251
    CHECK_PTR_VAL(((yyval.blk).b = gen_atmfield_code(cstate, (yyval.blk).atmfieldtype, (yyvsp[0].h), BPF_JEQ, 0)));
3439
251
  }
3440
190
#line 3441 "/src/libpcap/build/grammar.c"
3441
190
    break;
3442
3443
190
  case 202:
3444
143
#line 893 "/src/libpcap/build/grammar.y"
3445
143
                                        { (yyvsp[0].blk).b = gen_or((yyvsp[-2].blk).b, (yyvsp[0].blk).b); (yyval.blk) = (yyvsp[0].blk); }
3446
143
#line 3447 "/src/libpcap/build/grammar.c"
3447
143
    break;
3448
3449
14
  case 203:
3450
14
#line 896 "/src/libpcap/build/grammar.y"
3451
14
                                { (yyval.i) = M_FISU; }
3452
14
#line 3453 "/src/libpcap/build/grammar.c"
3453
14
    break;
3454
3455
118
  case 204:
3456
118
#line 897 "/src/libpcap/build/grammar.y"
3457
118
                                { (yyval.i) = M_LSSU; }
3458
118
#line 3459 "/src/libpcap/build/grammar.c"
3459
118
    break;
3460
3461
42
  case 205:
3462
42
#line 898 "/src/libpcap/build/grammar.y"
3463
42
                                { (yyval.i) = M_MSU; }
3464
42
#line 3465 "/src/libpcap/build/grammar.c"
3465
42
    break;
3466
3467
7
  case 206:
3468
7
#line 899 "/src/libpcap/build/grammar.y"
3469
7
                                { (yyval.i) = MH_FISU; }
3470
7
#line 3471 "/src/libpcap/build/grammar.c"
3471
7
    break;
3472
3473
14
  case 207:
3474
14
#line 900 "/src/libpcap/build/grammar.y"
3475
14
                                { (yyval.i) = MH_LSSU; }
3476
14
#line 3477 "/src/libpcap/build/grammar.c"
3477
14
    break;
3478
3479
13
  case 208:
3480
13
#line 901 "/src/libpcap/build/grammar.y"
3481
13
                                { (yyval.i) = MH_MSU; }
3482
13
#line 3483 "/src/libpcap/build/grammar.c"
3483
13
    break;
3484
3485
56
  case 209:
3486
56
#line 904 "/src/libpcap/build/grammar.y"
3487
56
                                { (yyval.blk).mtp3fieldtype = M_SIO; }
3488
56
#line 3489 "/src/libpcap/build/grammar.c"
3489
56
    break;
3490
3491
43
  case 210:
3492
43
#line 905 "/src/libpcap/build/grammar.y"
3493
43
                                { (yyval.blk).mtp3fieldtype = M_OPC; }
3494
43
#line 3495 "/src/libpcap/build/grammar.c"
3495
43
    break;
3496
3497
56
  case 211:
3498
56
#line 906 "/src/libpcap/build/grammar.y"
3499
56
                                { (yyval.blk).mtp3fieldtype = M_DPC; }
3500
56
#line 3501 "/src/libpcap/build/grammar.c"
3501
56
    break;
3502
3503
57
  case 212:
3504
57
#line 907 "/src/libpcap/build/grammar.y"
3505
57
                                { (yyval.blk).mtp3fieldtype = M_SLS; }
3506
57
#line 3507 "/src/libpcap/build/grammar.c"
3507
57
    break;
3508
3509
61
  case 213:
3510
61
#line 908 "/src/libpcap/build/grammar.y"
3511
61
                                { (yyval.blk).mtp3fieldtype = MH_SIO; }
3512
61
#line 3513 "/src/libpcap/build/grammar.c"
3513
61
    break;
3514
3515
49
  case 214:
3516
49
#line 909 "/src/libpcap/build/grammar.y"
3517
49
                                { (yyval.blk).mtp3fieldtype = MH_OPC; }
3518
49
#line 3519 "/src/libpcap/build/grammar.c"
3519
49
    break;
3520
3521
41
  case 215:
3522
41
#line 910 "/src/libpcap/build/grammar.y"
3523
41
                                { (yyval.blk).mtp3fieldtype = MH_DPC; }
3524
41
#line 3525 "/src/libpcap/build/grammar.c"
3525
41
    break;
3526
3527
15
  case 216:
3528
15
#line 911 "/src/libpcap/build/grammar.y"
3529
15
                                { (yyval.blk).mtp3fieldtype = MH_SLS; }
3530
15
#line 3531 "/src/libpcap/build/grammar.c"
3531
15
    break;
3532
3533
41
  case 218:
3534
41
#line 914 "/src/libpcap/build/grammar.y"
3535
41
                                { CHECK_PTR_VAL(((yyval.blk).b = gen_mtp3field_code(cstate, (yyvsp[-2].blk).mtp3fieldtype, (yyvsp[0].h), (yyvsp[-1].i), 0))); }
3536
40
#line 3537 "/src/libpcap/build/grammar.c"
3537
40
    break;
3538
3539
76
  case 219:
3540
76
#line 915 "/src/libpcap/build/grammar.y"
3541
76
                                { CHECK_PTR_VAL(((yyval.blk).b = gen_mtp3field_code(cstate, (yyvsp[-2].blk).mtp3fieldtype, (yyvsp[0].h), (yyvsp[-1].i), 1))); }
3542
73
#line 3543 "/src/libpcap/build/grammar.c"
3543
73
    break;
3544
3545
73
  case 220:
3546
10
#line 916 "/src/libpcap/build/grammar.y"
3547
10
                                  { (yyval.blk).b = (yyvsp[-1].blk).b; (yyval.blk).q = qerr; }
3548
10
#line 3549 "/src/libpcap/build/grammar.c"
3549
10
    break;
3550
3551
657
  case 221:
3552
657
#line 918 "/src/libpcap/build/grammar.y"
3553
657
                    {
3554
657
  (yyval.blk).mtp3fieldtype = (yyvsp[-1].blk).mtp3fieldtype;
3555
657
  if ((yyval.blk).mtp3fieldtype == M_SIO ||
3556
542
      (yyval.blk).mtp3fieldtype == M_OPC ||
3557
481
      (yyval.blk).mtp3fieldtype == M_DPC ||
3558
426
      (yyval.blk).mtp3fieldtype == M_SLS ||
3559
301
      (yyval.blk).mtp3fieldtype == MH_SIO ||
3560
206
      (yyval.blk).mtp3fieldtype == MH_OPC ||
3561
145
      (yyval.blk).mtp3fieldtype == MH_DPC ||
3562
80
      (yyval.blk).mtp3fieldtype == MH_SLS)
3563
657
    CHECK_PTR_VAL(((yyval.blk).b = gen_mtp3field_code(cstate, (yyval.blk).mtp3fieldtype, (yyvsp[0].h), BPF_JEQ, 0)));
3564
657
  }
3565
538
#line 3566 "/src/libpcap/build/grammar.c"
3566
538
    break;
3567
3568
538
  case 223:
3569
410
#line 932 "/src/libpcap/build/grammar.y"
3570
410
                                          { (yyvsp[0].blk).b = gen_or((yyvsp[-2].blk).b, (yyvsp[0].blk).b); (yyval.blk) = (yyvsp[0].blk); }
3571
410
#line 3572 "/src/libpcap/build/grammar.c"
3572
410
    break;
3573
3574
3575
0
#line 3576 "/src/libpcap/build/grammar.c"
3576
3577
112k
      default: break;
3578
324k
    }
3579
  /* User semantic actions sometimes alter yychar, and that requires
3580
     that yytoken be updated with the new translation.  We take the
3581
     approach of translating immediately before every use of yytoken.
3582
     One alternative is translating here after every semantic action,
3583
     but that translation would be missed if the semantic action invokes
3584
     YYABORT, YYACCEPT, or YYERROR immediately after altering yychar or
3585
     if it invokes YYBACKUP.  In the case of YYABORT or YYACCEPT, an
3586
     incorrect destructor might then be invoked immediately.  In the
3587
     case of YYERROR or YYBACKUP, subsequent parser actions might lead
3588
     to an incorrect destructor call or verbose syntax error message
3589
     before the lookahead is translated.  */
3590
321k
  YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc);
3591
3592
321k
  YYPOPSTACK (yylen);
3593
321k
  yylen = 0;
3594
321k
  YY_STACK_PRINT (yyss, yyssp);
3595
3596
321k
  *++yyvsp = yyval;
3597
3598
  /* Now 'shift' the result of the reduction.  Determine what state
3599
     that goes to, based on the state we popped back to and the rule
3600
     number reduced by.  */
3601
321k
  {
3602
321k
    const int yylhs = yyr1[yyn] - YYNTOKENS;
3603
321k
    const int yyi = yypgoto[yylhs] + *yyssp;
3604
321k
    yystate = (0 <= yyi && yyi <= YYLAST && yycheck[yyi] == *yyssp
3605
321k
               ? yytable[yyi]
3606
321k
               : yydefgoto[yylhs]);
3607
321k
  }
3608
3609
321k
  goto yynewstate;
3610
3611
3612
/*--------------------------------------.
3613
| yyerrlab -- here on detecting error.  |
3614
`--------------------------------------*/
3615
1.86k
yyerrlab:
3616
  /* Make sure we have latest lookahead translation.  See comments at
3617
     user semantic actions for why this is necessary.  */
3618
1.86k
  yytoken = yychar == YYEMPTY ? YYEMPTY : YYTRANSLATE (yychar);
3619
3620
  /* If not already recovering from an error, report this error.  */
3621
1.86k
  if (!yyerrstatus)
3622
1.86k
    {
3623
1.86k
      ++yynerrs;
3624
1.86k
#if ! YYERROR_VERBOSE
3625
1.86k
      yyerror (yyscanner, cstate, YY_("syntax error"));
3626
#else
3627
# define YYSYNTAX_ERROR yysyntax_error (&yymsg_alloc, &yymsg, \
3628
                                        yyssp, yytoken)
3629
      {
3630
        char const *yymsgp = YY_("syntax error");
3631
        int yysyntax_error_status;
3632
        yysyntax_error_status = YYSYNTAX_ERROR;
3633
        if (yysyntax_error_status == 0)
3634
          yymsgp = yymsg;
3635
        else if (yysyntax_error_status == 1)
3636
          {
3637
            if (yymsg != yymsgbuf)
3638
              YYSTACK_FREE (yymsg);
3639
            yymsg = YY_CAST (char *, YYSTACK_ALLOC (YY_CAST (YYSIZE_T, yymsg_alloc)));
3640
            if (!yymsg)
3641
              {
3642
                yymsg = yymsgbuf;
3643
                yymsg_alloc = sizeof yymsgbuf;
3644
                yysyntax_error_status = 2;
3645
              }
3646
            else
3647
              {
3648
                yysyntax_error_status = YYSYNTAX_ERROR;
3649
                yymsgp = yymsg;
3650
              }
3651
          }
3652
        yyerror (yyscanner, cstate, yymsgp);
3653
        if (yysyntax_error_status == 2)
3654
          goto yyexhaustedlab;
3655
      }
3656
# undef YYSYNTAX_ERROR
3657
#endif
3658
1.86k
    }
3659
3660
3661
3662
1.86k
  if (yyerrstatus == 3)
3663
0
    {
3664
      /* If just tried and failed to reuse lookahead token after an
3665
         error, discard it.  */
3666
3667
0
      if (yychar <= YYEOF)
3668
0
        {
3669
          /* Return failure if at end of input.  */
3670
0
          if (yychar == YYEOF)
3671
0
            YYABORT;
3672
0
        }
3673
0
      else
3674
0
        {
3675
0
          yydestruct ("Error: discarding",
3676
0
                      yytoken, &yylval, yyscanner, cstate);
3677
0
          yychar = YYEMPTY;
3678
0
        }
3679
0
    }
3680
3681
  /* Else will try to reuse lookahead token after shifting the error
3682
     token.  */
3683
1.86k
  goto yyerrlab1;
3684
3685
3686
/*---------------------------------------------------.
3687
| yyerrorlab -- error raised explicitly by YYERROR.  |
3688
`---------------------------------------------------*/
3689
1.86k
yyerrorlab:
3690
  /* Pacify compilers when the user code never invokes YYERROR and the
3691
     label yyerrorlab therefore never appears in user code.  */
3692
0
  if (0)
3693
0
    YYERROR;
3694
3695
  /* Do not reclaim the symbols of the rule whose action triggered
3696
     this YYERROR.  */
3697
0
  YYPOPSTACK (yylen);
3698
0
  yylen = 0;
3699
0
  YY_STACK_PRINT (yyss, yyssp);
3700
0
  yystate = *yyssp;
3701
0
  goto yyerrlab1;
3702
3703
3704
/*-------------------------------------------------------------.
3705
| yyerrlab1 -- common code for both syntax error and YYERROR.  |
3706
`-------------------------------------------------------------*/
3707
1.86k
yyerrlab1:
3708
1.86k
  yyerrstatus = 3;      /* Each real token shifted decrements this.  */
3709
3710
1.86k
  for (;;)
3711
9.11k
    {
3712
9.11k
      yyn = yypact[yystate];
3713
9.11k
      if (!yypact_value_is_default (yyn))
3714
7.25k
        {
3715
7.25k
          yyn += YYTERROR;
3716
7.25k
          if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR)
3717
0
            {
3718
0
              yyn = yytable[yyn];
3719
0
              if (0 < yyn)
3720
0
                break;
3721
0
            }
3722
7.25k
        }
3723
3724
      /* Pop the current state because it cannot handle the error token.  */
3725
9.11k
      if (yyssp == yyss)
3726
1.86k
        YYABORT;
3727
3728
3729
7.25k
      yydestruct ("Error: popping",
3730
7.25k
                  yystos[yystate], yyvsp, yyscanner, cstate);
3731
7.25k
      YYPOPSTACK (1);
3732
7.25k
      yystate = *yyssp;
3733
7.25k
      YY_STACK_PRINT (yyss, yyssp);
3734
7.25k
    }
3735
3736
0
  YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
3737
0
  *++yyvsp = yylval;
3738
0
  YY_IGNORE_MAYBE_UNINITIALIZED_END
3739
3740
3741
  /* Shift the error token.  */
3742
0
  YY_SYMBOL_PRINT ("Shifting", yystos[yyn], yyvsp, yylsp);
3743
3744
0
  yystate = yyn;
3745
0
  goto yynewstate;
3746
3747
3748
/*-------------------------------------.
3749
| yyacceptlab -- YYACCEPT comes here.  |
3750
`-------------------------------------*/
3751
8.08k
yyacceptlab:
3752
8.08k
  yyresult = 0;
3753
8.08k
  goto yyreturn;
3754
3755
3756
/*-----------------------------------.
3757
| yyabortlab -- YYABORT comes here.  |
3758
`-----------------------------------*/
3759
4.50k
yyabortlab:
3760
4.50k
  yyresult = 1;
3761
4.50k
  goto yyreturn;
3762
3763
3764
0
#if !defined yyoverflow || YYERROR_VERBOSE
3765
/*-------------------------------------------------.
3766
| yyexhaustedlab -- memory exhaustion comes here.  |
3767
`-------------------------------------------------*/
3768
0
yyexhaustedlab:
3769
0
  yyerror (yyscanner, cstate, YY_("memory exhausted"));
3770
0
  yyresult = 2;
3771
  /* Fall through.  */
3772
0
#endif
3773
3774
3775
/*-----------------------------------------------------.
3776
| yyreturn -- parsing is finished, return the result.  |
3777
`-----------------------------------------------------*/
3778
12.5k
yyreturn:
3779
12.5k
  if (yychar != YYEMPTY)
3780
2.33k
    {
3781
      /* Make sure we have latest lookahead translation.  See comments at
3782
         user semantic actions for why this is necessary.  */
3783
2.33k
      yytoken = YYTRANSLATE (yychar);
3784
2.33k
      yydestruct ("Cleanup: discarding lookahead",
3785
2.33k
                  yytoken, &yylval, yyscanner, cstate);
3786
2.33k
    }
3787
  /* Do not reclaim the symbols of the rule whose action triggered
3788
     this YYABORT or YYACCEPT.  */
3789
12.5k
  YYPOPSTACK (yylen);
3790
12.5k
  YY_STACK_PRINT (yyss, yyssp);
3791
36.4k
  while (yyssp != yyss)
3792
23.8k
    {
3793
23.8k
      yydestruct ("Cleanup: popping",
3794
23.8k
                  yystos[+*yyssp], yyvsp, yyscanner, cstate);
3795
23.8k
      YYPOPSTACK (1);
3796
23.8k
    }
3797
12.5k
#ifndef yyoverflow
3798
12.5k
  if (yyss != yyssa)
3799
9
    YYSTACK_FREE (yyss);
3800
12.5k
#endif
3801
#if YYERROR_VERBOSE
3802
  if (yymsg != yymsgbuf)
3803
    YYSTACK_FREE (yymsg);
3804
#endif
3805
12.5k
  return yyresult;
3806
0
}
3807
#line 934 "/src/libpcap/build/grammar.y"
3808