Coverage Report

Created: 2026-07-30 06:45

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
157k
#define yylex           pcap_lex
69
1.95k
#define yyerror         pcap_error
70
#define yydebug         pcap_debug
71
21.9k
#define yynerrs         pcap_nerrs
72
73
/* First part of user prologue.  */
74
#line 47 "/src/libpcap/build/grammar.y"
75
76
/*
77
 * Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996
78
 *  The Regents of the University of California.  All rights reserved.
79
 *
80
 * Redistribution and use in source and binary forms, with or without
81
 * modification, are permitted provided that: (1) source code distributions
82
 * retain the above copyright notice and this paragraph in its entirety, (2)
83
 * distributions including binary code include the above copyright notice and
84
 * this paragraph in its entirety in the documentation or other materials
85
 * provided with the distribution, and (3) all advertising materials mentioning
86
 * features or use of this software display the following acknowledgement:
87
 * ``This product includes software developed by the University of California,
88
 * Lawrence Berkeley Laboratory and its contributors.'' Neither the name of
89
 * the University nor the names of its contributors may be used to endorse
90
 * or promote products derived from this software without specific prior
91
 * written permission.
92
 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
93
 * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
94
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
95
 *
96
 */
97
98
#include <config.h>
99
100
/*
101
 * grammar.h requires gencode.h and sometimes breaks in a polluted namespace
102
 * (see ftmacros.h), so include it early.
103
 */
104
#include "gencode.h"
105
#include "grammar.h"
106
107
#include <stdlib.h>
108
109
#include <stdio.h>
110
111
#include "diag-control.h"
112
113
#include "pcap-int.h"
114
115
#include "scanner.h"
116
117
#include "llc.h"
118
#include "ieee80211.h"
119
#include "pflog.h"
120
#include <pcap/namedb.h>
121
122
#ifdef HAVE_OS_PROTO_H
123
#include "os-proto.h"
124
#endif
125
126
/*
127
 * Work around some bugs in Berkeley YACC prior to the 2017-07-09
128
 * release.
129
 *
130
 * The 2005-05-05 release was the first one to define YYPATCH, so
131
 * we treat any release that either 1) doesn't define YYPATCH or
132
 * 2) defines it to a value < 20170709 as being buggy.
133
 */
134
#if defined(YYBYACC) && (!defined(YYPATCH) || YYPATCH < 20170709)
135
/*
136
 * Both Berkeley YACC and Bison define yydebug (under whatever name
137
 * it has) as a global, but Bison does so only if YYDEBUG is defined.
138
 * Berkeley YACC, prior to the 2017-07-09 release, defines it even if
139
 * YYDEBUG isn't defined; declare it here to suppress a warning.  The
140
 * 2017-07-09 release fixes that.
141
 */
142
#if !defined(YYDEBUG)
143
extern int yydebug;
144
#endif
145
146
/*
147
 * In Berkeley YACC, prior to the 2017-07-09 release, yynerrs (under
148
 * whatever name it has) is global, even if it's building a reentrant
149
 * parser.  In Bison, and in the Berkeley YACC 2017-07-09 release and
150
 * later, it's local in reentrant parsers.
151
 *
152
 * Declare it to squelch a warning.
153
 */
154
extern int yynerrs;
155
#endif
156
157
5.01k
#define QSET(q, p, d, a) (q).proto = (unsigned char)(p),\
158
5.01k
       (q).dir = (unsigned char)(d),\
159
5.01k
       (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
517
{
257
517
  int i;
258
259
2.85k
  for (i = 0; toks[i].s != NULL; i++) {
260
2.56k
    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
231
      if (toks[i].v == -1)
268
0
        abort();
269
231
      return (toks[i].v);
270
231
    }
271
2.56k
  }
272
286
  return (-1);
273
517
}
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.95k
{
280
1.95k
  bpf_set_error(cstate, "can't parse filter expression: %s", msg);
281
1.95k
}
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
5
{
315
5
  int i;
316
317
5
  i = str2tok(reason, pflog_reasons);
318
5
  if (i == -1)
319
5
    bpf_set_error(cstate, "unknown PF reason \"%s\"", reason);
320
5
  return (i);
321
5
}
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.70k
#define CHECK_INT_VAL(val)  if (val == -1) YYABORT
369
99.8k
#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
487k
#   define YY_CAST(Type, Val) ((Type) (Val))
381
#   define YY_REINTERPRET_CAST(Type, Val) ((Type) (Val))
382
#  endif
383
# endif
384
# ifndef YY_NULLPTR
385
#  if defined __cplusplus
386
#   if 201103L <= __cplusplus
387
#    define YY_NULLPTR nullptr
388
#   else
389
#    define YY_NULLPTR 0
390
#   endif
391
#  else
392
#   define YY_NULLPTR ((void*)0)
393
#  endif
394
# endif
395
396
/* Enabling verbose error messages.  */
397
#ifdef YYERROR_VERBOSE
398
# undef YYERROR_VERBOSE
399
# define YYERROR_VERBOSE 1
400
#else
401
# define YYERROR_VERBOSE 0
402
#endif
403
404
/* Use api.header.include to #include this header
405
   instead of duplicating it here.  */
406
#ifndef YY_PCAP_SRC_LIBPCAP_BUILD_GRAMMAR_H_INCLUDED
407
# define YY_PCAP_SRC_LIBPCAP_BUILD_GRAMMAR_H_INCLUDED
408
/* Debug traces.  */
409
#ifndef YYDEBUG
410
# define YYDEBUG 0
411
#endif
412
#if YYDEBUG
413
extern int pcap_debug;
414
#endif
415
416
/* Token type.  */
417
#ifndef YYTOKENTYPE
418
# define YYTOKENTYPE
419
  enum yytokentype
420
  {
421
    DST = 258,
422
    SRC = 259,
423
    HOST = 260,
424
    GATEWAY = 261,
425
    NET = 262,
426
    NETMASK = 263,
427
    PORT = 264,
428
    PORTRANGE = 265,
429
    LESS = 266,
430
    GREATER = 267,
431
    PROTO = 268,
432
    PROTOCHAIN = 269,
433
    CBYTE = 270,
434
    ARP = 271,
435
    RARP = 272,
436
    IP = 273,
437
    SCTP = 274,
438
    TCP = 275,
439
    UDP = 276,
440
    ICMP = 277,
441
    IGMP = 278,
442
    IGRP = 279,
443
    PIM = 280,
444
    VRRP = 281,
445
    CARP = 282,
446
    ATALK = 283,
447
    AARP = 284,
448
    DECNET = 285,
449
    LAT = 286,
450
    SCA = 287,
451
    MOPRC = 288,
452
    MOPDL = 289,
453
    TK_BROADCAST = 290,
454
    TK_MULTICAST = 291,
455
    NUM = 292,
456
    INBOUND = 293,
457
    OUTBOUND = 294,
458
    IFINDEX = 295,
459
    PF_IFNAME = 296,
460
    PF_RSET = 297,
461
    PF_RNR = 298,
462
    PF_SRNR = 299,
463
    PF_REASON = 300,
464
    PF_ACTION = 301,
465
    TYPE = 302,
466
    SUBTYPE = 303,
467
    DIR = 304,
468
    ADDR1 = 305,
469
    ADDR2 = 306,
470
    ADDR3 = 307,
471
    ADDR4 = 308,
472
    RA = 309,
473
    TA = 310,
474
    LINK = 311,
475
    GEQ = 312,
476
    LEQ = 313,
477
    NEQ = 314,
478
    ID = 315,
479
    EID = 316,
480
    HID = 317,
481
    HID6 = 318,
482
    AID = 319,
483
    LSH = 320,
484
    RSH = 321,
485
    LEN = 322,
486
    IPV6 = 323,
487
    ICMPV6 = 324,
488
    AH = 325,
489
    ESP = 326,
490
    VLAN = 327,
491
    MPLS = 328,
492
    PPPOED = 329,
493
    PPPOES = 330,
494
    GENEVE = 331,
495
    VXLAN = 332,
496
    ISO = 333,
497
    ESIS = 334,
498
    CLNP = 335,
499
    ISIS = 336,
500
    L1 = 337,
501
    L2 = 338,
502
    IIH = 339,
503
    LSP = 340,
504
    SNP = 341,
505
    CSNP = 342,
506
    PSNP = 343,
507
    STP = 344,
508
    IPX = 345,
509
    NETBEUI = 346,
510
    LANE = 347,
511
    LLC = 348,
512
    METAC = 349,
513
    BCC = 350,
514
    SC = 351,
515
    ILMIC = 352,
516
    OAMF4EC = 353,
517
    OAMF4SC = 354,
518
    OAM = 355,
519
    OAMF4 = 356,
520
    CONNECTMSG = 357,
521
    METACONNECT = 358,
522
    VPI = 359,
523
    VCI = 360,
524
    RADIO = 361,
525
    FISU = 362,
526
    LSSU = 363,
527
    MSU = 364,
528
    HFISU = 365,
529
    HLSSU = 366,
530
    HMSU = 367,
531
    SIO = 368,
532
    OPC = 369,
533
    DPC = 370,
534
    SLS = 371,
535
    HSIO = 372,
536
    HOPC = 373,
537
    HDPC = 374,
538
    HSLS = 375,
539
    LEX_ERROR = 376,
540
    OR = 377,
541
    AND = 378,
542
    UMINUS = 379
543
  };
544
#endif
545
546
/* Value type.  */
547
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
548
union YYSTYPE
549
{
550
#line 346 "/src/libpcap/build/grammar.y"
551
552
  int i;
553
  bpf_u_int32 h;
554
  char *s;
555
  struct stmt *stmt;
556
  struct arth *a;
557
  struct {
558
    struct qual q;
559
    int atmfieldtype;
560
    int mtp3fieldtype;
561
    struct block *b;
562
  } blk;
563
  struct block *rblk;
564
565
#line 566 "/src/libpcap/build/grammar.c"
566
567
};
568
typedef union YYSTYPE YYSTYPE;
569
# define YYSTYPE_IS_TRIVIAL 1
570
# define YYSTYPE_IS_DECLARED 1
571
#endif
572
573
574
575
int pcap_parse (void *yyscanner, compiler_state_t *cstate);
576
577
#endif /* !YY_PCAP_SRC_LIBPCAP_BUILD_GRAMMAR_H_INCLUDED  */
578
579
580
581
#ifdef short
582
# undef short
583
#endif
584
585
/* On compilers that do not define __PTRDIFF_MAX__ etc., make sure
586
   <limits.h> and (if available) <stdint.h> are included
587
   so that the code can choose integer types of a good width.  */
588
589
#ifndef __PTRDIFF_MAX__
590
# include <limits.h> /* INFRINGES ON USER NAME SPACE */
591
# if defined __STDC_VERSION__ && 199901 <= __STDC_VERSION__
592
#  include <stdint.h> /* INFRINGES ON USER NAME SPACE */
593
#  define YY_STDINT_H
594
# endif
595
#endif
596
597
/* Narrow types that promote to a signed type and that can represent a
598
   signed or unsigned integer of at least N bits.  In tables they can
599
   save space and decrease cache pressure.  Promoting to a signed type
600
   helps avoid bugs in integer arithmetic.  */
601
602
#ifdef __INT_LEAST8_MAX__
603
typedef __INT_LEAST8_TYPE__ yytype_int8;
604
#elif defined YY_STDINT_H
605
typedef int_least8_t yytype_int8;
606
#else
607
typedef signed char yytype_int8;
608
#endif
609
610
#ifdef __INT_LEAST16_MAX__
611
typedef __INT_LEAST16_TYPE__ yytype_int16;
612
#elif defined YY_STDINT_H
613
typedef int_least16_t yytype_int16;
614
#else
615
typedef short yytype_int16;
616
#endif
617
618
#if defined __UINT_LEAST8_MAX__ && __UINT_LEAST8_MAX__ <= __INT_MAX__
619
typedef __UINT_LEAST8_TYPE__ yytype_uint8;
620
#elif (!defined __UINT_LEAST8_MAX__ && defined YY_STDINT_H \
621
       && UINT_LEAST8_MAX <= INT_MAX)
622
typedef uint_least8_t yytype_uint8;
623
#elif !defined __UINT_LEAST8_MAX__ && UCHAR_MAX <= INT_MAX
624
typedef unsigned char yytype_uint8;
625
#else
626
typedef short yytype_uint8;
627
#endif
628
629
#if defined __UINT_LEAST16_MAX__ && __UINT_LEAST16_MAX__ <= __INT_MAX__
630
typedef __UINT_LEAST16_TYPE__ yytype_uint16;
631
#elif (!defined __UINT_LEAST16_MAX__ && defined YY_STDINT_H \
632
       && UINT_LEAST16_MAX <= INT_MAX)
633
typedef uint_least16_t yytype_uint16;
634
#elif !defined __UINT_LEAST16_MAX__ && USHRT_MAX <= INT_MAX
635
typedef unsigned short yytype_uint16;
636
#else
637
typedef int yytype_uint16;
638
#endif
639
640
#ifndef YYPTRDIFF_T
641
# if defined __PTRDIFF_TYPE__ && defined __PTRDIFF_MAX__
642
13.3k
#  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
48
#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.95k
#  define YY_(Msgid) Msgid
692
# endif
693
#endif
694
695
#ifndef YY_ATTRIBUTE_PURE
696
# if defined __GNUC__ && 2 < __GNUC__ + (96 <= __GNUC_MINOR__)
697
#  define YY_ATTRIBUTE_PURE __attribute__ ((__pure__))
698
# else
699
#  define YY_ATTRIBUTE_PURE
700
# endif
701
#endif
702
703
#ifndef YY_ATTRIBUTE_UNUSED
704
# if defined __GNUC__ && 2 < __GNUC__ + (7 <= __GNUC_MINOR__)
705
#  define YY_ATTRIBUTE_UNUSED __attribute__ ((__unused__))
706
# else
707
#  define YY_ATTRIBUTE_UNUSED
708
# endif
709
#endif
710
711
/* Suppress unused-variable warnings by "using" E.  */
712
#if ! defined lint || defined __GNUC__
713
141k
# define YYUSE(E) ((void) (E))
714
#else
715
# define YYUSE(E) /* empty */
716
#endif
717
718
#if defined __GNUC__ && ! defined __ICC && 407 <= __GNUC__ * 100 + __GNUC_MINOR__
719
/* Suppress an incorrect diagnostic about yylval being uninitialized.  */
720
# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN                            \
721
    _Pragma ("GCC diagnostic push")                                     \
722
    _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"")              \
723
    _Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"")
724
# define YY_IGNORE_MAYBE_UNINITIALIZED_END      \
725
    _Pragma ("GCC diagnostic pop")
726
#else
727
26.6k
# 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
487k
#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
8
#  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
8
#   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
16
# 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
16
    do                                                                  \
849
16
      {                                                                 \
850
16
        YYPTRDIFF_T yynewbytes;                                         \
851
16
        YYCOPY (&yyptr->Stack_alloc, Stack, yysize);                    \
852
16
        Stack = &yyptr->Stack_alloc;                                    \
853
16
        yynewbytes = yystacksize * YYSIZEOF (*Stack) + YYSTACK_GAP_MAXIMUM; \
854
16
        yyptr += yynewbytes / YYSIZEOF (*yyptr);                        \
855
16
      }                                                                 \
856
16
    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
16
      __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
487k
#define YYFINAL  3
882
/* YYLAST -- Last index in YYTABLE.  */
883
759k
#define YYLAST   773
884
885
/* YYNTOKENS -- Number of terminals.  */
886
318k
#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
205k
#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
207k
  (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
488k
#define YYPACT_NINF (-215)
1033
1034
#define yypact_value_is_default(Yyn) \
1035
488k
  ((Yyn) == YYPACT_NINF)
1036
1037
#define YYTABLE_NINF (-42)
1038
1039
#define yytable_value_is_error(Yyn) \
1040
16.0k
  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
412k
#define YYEMPTY         (-2)
1398
256k
#define YYEOF           0
1399
1400
8.71k
#define YYACCEPT        goto yyacceptlab
1401
4.59k
#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
14.3k
#define YYTERROR        1
1426
#define YYERRCODE       256
1427
1428
1429
1430
/* Enable debugging if requested.  */
1431
#if YYDEBUG
1432
1433
# ifndef YYFPRINTF
1434
#  include <stdio.h> /* INFRINGES ON USER NAME SPACE */
1435
#  define YYFPRINTF fprintf
1436
# endif
1437
1438
# define YYDPRINTF(Args)                        \
1439
do {                                            \
1440
  if (yydebug)                                  \
1441
    YYFPRINTF Args;                             \
1442
} while (0)
1443
1444
/* This macro is provided for backward compatibility. */
1445
#ifndef YY_LOCATION_PRINT
1446
# define YY_LOCATION_PRINT(File, Loc) ((void) 0)
1447
#endif
1448
1449
1450
# define YY_SYMBOL_PRINT(Title, Type, Value, Location)                    \
1451
do {                                                                      \
1452
  if (yydebug)                                                            \
1453
    {                                                                     \
1454
      YYFPRINTF (stderr, "%s ", Title);                                   \
1455
      yy_symbol_print (stderr,                                            \
1456
                  Type, Value, yyscanner, cstate); \
1457
      YYFPRINTF (stderr, "\n");                                           \
1458
    }                                                                     \
1459
} while (0)
1460
1461
1462
/*-----------------------------------.
1463
| Print this symbol's value on YYO.  |
1464
`-----------------------------------*/
1465
1466
static void
1467
yy_symbol_value_print (FILE *yyo, int yytype, YYSTYPE const * const yyvaluep, void *yyscanner, compiler_state_t *cstate)
1468
{
1469
  FILE *yyoutput = yyo;
1470
  YYUSE (yyoutput);
1471
  YYUSE (yyscanner);
1472
  YYUSE (cstate);
1473
  if (!yyvaluep)
1474
    return;
1475
# ifdef YYPRINT
1476
  if (yytype < YYNTOKENS)
1477
    YYPRINT (yyo, yytoknum[yytype], *yyvaluep);
1478
# endif
1479
  YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
1480
  YYUSE (yytype);
1481
  YY_IGNORE_MAYBE_UNINITIALIZED_END
1482
}
1483
1484
1485
/*---------------------------.
1486
| Print this symbol on YYO.  |
1487
`---------------------------*/
1488
1489
static void
1490
yy_symbol_print (FILE *yyo, int yytype, YYSTYPE const * const yyvaluep, void *yyscanner, compiler_state_t *cstate)
1491
{
1492
  YYFPRINTF (yyo, "%s %s (",
1493
             yytype < YYNTOKENS ? "token" : "nterm", yytname[yytype]);
1494
1495
  yy_symbol_value_print (yyo, yytype, yyvaluep, yyscanner, cstate);
1496
  YYFPRINTF (yyo, ")");
1497
}
1498
1499
/*------------------------------------------------------------------.
1500
| yy_stack_print -- Print the state stack from its BOTTOM up to its |
1501
| TOP (included).                                                   |
1502
`------------------------------------------------------------------*/
1503
1504
static void
1505
yy_stack_print (yy_state_t *yybottom, yy_state_t *yytop)
1506
{
1507
  YYFPRINTF (stderr, "Stack now");
1508
  for (; yybottom <= yytop; yybottom++)
1509
    {
1510
      int yybot = *yybottom;
1511
      YYFPRINTF (stderr, " %d", yybot);
1512
    }
1513
  YYFPRINTF (stderr, "\n");
1514
}
1515
1516
# define YY_STACK_PRINT(Bottom, Top)                            \
1517
do {                                                            \
1518
  if (yydebug)                                                  \
1519
    yy_stack_print ((Bottom), (Top));                           \
1520
} while (0)
1521
1522
1523
/*------------------------------------------------.
1524
| Report that the YYRULE is going to be reduced.  |
1525
`------------------------------------------------*/
1526
1527
static void
1528
yy_reduce_print (yy_state_t *yyssp, YYSTYPE *yyvsp, int yyrule, void *yyscanner, compiler_state_t *cstate)
1529
{
1530
  int yylno = yyrline[yyrule];
1531
  int yynrhs = yyr2[yyrule];
1532
  int yyi;
1533
  YYFPRINTF (stderr, "Reducing stack by rule %d (line %d):\n",
1534
             yyrule - 1, yylno);
1535
  /* The symbols being reduced.  */
1536
  for (yyi = 0; yyi < yynrhs; yyi++)
1537
    {
1538
      YYFPRINTF (stderr, "   $%d = ", yyi + 1);
1539
      yy_symbol_print (stderr,
1540
                       yystos[+yyssp[yyi + 1 - yynrhs]],
1541
                       &yyvsp[(yyi + 1) - (yynrhs)]
1542
                                              , yyscanner, cstate);
1543
      YYFPRINTF (stderr, "\n");
1544
    }
1545
}
1546
1547
# define YY_REDUCE_PRINT(Rule)          \
1548
do {                                    \
1549
  if (yydebug)                          \
1550
    yy_reduce_print (yyssp, yyvsp, Rule, yyscanner, cstate); \
1551
} while (0)
1552
1553
/* Nonzero means print parse trace.  It is left uninitialized so that
1554
   multiple parsers can coexist.  */
1555
int yydebug;
1556
#else /* !YYDEBUG */
1557
# define YYDPRINTF(Args)
1558
# define YY_SYMBOL_PRINT(Title, Type, Value, Location)
1559
# define YY_STACK_PRINT(Bottom, Top)
1560
# define YY_REDUCE_PRINT(Rule)
1561
#endif /* !YYDEBUG */
1562
1563
1564
/* YYINITDEPTH -- initial size of the parser's stacks.  */
1565
#ifndef YYINITDEPTH
1566
13.3k
# 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
16
# define YYMAXDEPTH 10000
1578
#endif
1579
1580
1581
#if YYERROR_VERBOSE
1582
1583
# ifndef yystrlen
1584
#  if defined __GLIBC__ && defined _STRING_H
1585
#   define yystrlen(S) (YY_CAST (YYPTRDIFF_T, strlen (S)))
1586
#  else
1587
/* Return the length of YYSTR.  */
1588
static YYPTRDIFF_T
1589
yystrlen (const char *yystr)
1590
{
1591
  YYPTRDIFF_T yylen;
1592
  for (yylen = 0; yystr[yylen]; yylen++)
1593
    continue;
1594
  return yylen;
1595
}
1596
#  endif
1597
# endif
1598
1599
# ifndef yystpcpy
1600
#  if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE
1601
#   define yystpcpy stpcpy
1602
#  else
1603
/* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in
1604
   YYDEST.  */
1605
static char *
1606
yystpcpy (char *yydest, const char *yysrc)
1607
{
1608
  char *yyd = yydest;
1609
  const char *yys = yysrc;
1610
1611
  while ((*yyd++ = *yys++) != '\0')
1612
    continue;
1613
1614
  return yyd - 1;
1615
}
1616
#  endif
1617
# endif
1618
1619
# ifndef yytnamerr
1620
/* Copy to YYRES the contents of YYSTR after stripping away unnecessary
1621
   quotes and backslashes, so that it's suitable for yyerror.  The
1622
   heuristic is that double-quoting is unnecessary unless the string
1623
   contains an apostrophe, a comma, or backslash (other than
1624
   backslash-backslash).  YYSTR is taken from yytname.  If YYRES is
1625
   null, do not copy; instead, return the length of what the result
1626
   would have been.  */
1627
static YYPTRDIFF_T
1628
yytnamerr (char *yyres, const char *yystr)
1629
{
1630
  if (*yystr == '"')
1631
    {
1632
      YYPTRDIFF_T yyn = 0;
1633
      char const *yyp = yystr;
1634
1635
      for (;;)
1636
        switch (*++yyp)
1637
          {
1638
          case '\'':
1639
          case ',':
1640
            goto do_not_strip_quotes;
1641
1642
          case '\\':
1643
            if (*++yyp != '\\')
1644
              goto do_not_strip_quotes;
1645
            else
1646
              goto append;
1647
1648
          append:
1649
          default:
1650
            if (yyres)
1651
              yyres[yyn] = *yyp;
1652
            yyn++;
1653
            break;
1654
1655
          case '"':
1656
            if (yyres)
1657
              yyres[yyn] = '\0';
1658
            return yyn;
1659
          }
1660
    do_not_strip_quotes: ;
1661
    }
1662
1663
  if (yyres)
1664
    return yystpcpy (yyres, yystr) - yyres;
1665
  else
1666
    return yystrlen (yystr);
1667
}
1668
# endif
1669
1670
/* Copy into *YYMSG, which is of size *YYMSG_ALLOC, an error message
1671
   about the unexpected token YYTOKEN for the state stack whose top is
1672
   YYSSP.
1673
1674
   Return 0 if *YYMSG was successfully written.  Return 1 if *YYMSG is
1675
   not large enough to hold the message.  In that case, also set
1676
   *YYMSG_ALLOC to the required number of bytes.  Return 2 if the
1677
   required number of bytes is too large to store.  */
1678
static int
1679
yysyntax_error (YYPTRDIFF_T *yymsg_alloc, char **yymsg,
1680
                yy_state_t *yyssp, int yytoken)
1681
{
1682
  enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 };
1683
  /* Internationalized format string. */
1684
  const char *yyformat = YY_NULLPTR;
1685
  /* Arguments of yyformat: reported tokens (one for the "unexpected",
1686
     one per "expected"). */
1687
  char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
1688
  /* Actual size of YYARG. */
1689
  int yycount = 0;
1690
  /* Cumulated lengths of YYARG.  */
1691
  YYPTRDIFF_T yysize = 0;
1692
1693
  /* There are many possibilities here to consider:
1694
     - If this state is a consistent state with a default action, then
1695
       the only way this function was invoked is if the default action
1696
       is an error action.  In that case, don't check for expected
1697
       tokens because there are none.
1698
     - The only way there can be no lookahead present (in yychar) is if
1699
       this state is a consistent state with a default action.  Thus,
1700
       detecting the absence of a lookahead is sufficient to determine
1701
       that there is no unexpected or expected token to report.  In that
1702
       case, just report a simple "syntax error".
1703
     - Don't assume there isn't a lookahead just because this state is a
1704
       consistent state with a default action.  There might have been a
1705
       previous inconsistent state, consistent state with a non-default
1706
       action, or user semantic action that manipulated yychar.
1707
     - Of course, the expected token list depends on states to have
1708
       correct lookahead information, and it depends on the parser not
1709
       to perform extra reductions after fetching a lookahead from the
1710
       scanner and before detecting a syntax error.  Thus, state merging
1711
       (from LALR or IELR) and default reductions corrupt the expected
1712
       token list.  However, the list is correct for canonical LR with
1713
       one exception: it will still contain any token that will not be
1714
       accepted due to an error action in a later state.
1715
  */
1716
  if (yytoken != YYEMPTY)
1717
    {
1718
      int yyn = yypact[+*yyssp];
1719
      YYPTRDIFF_T yysize0 = yytnamerr (YY_NULLPTR, yytname[yytoken]);
1720
      yysize = yysize0;
1721
      yyarg[yycount++] = yytname[yytoken];
1722
      if (!yypact_value_is_default (yyn))
1723
        {
1724
          /* Start YYX at -YYN if negative to avoid negative indexes in
1725
             YYCHECK.  In other words, skip the first -YYN actions for
1726
             this state because they are default actions.  */
1727
          int yyxbegin = yyn < 0 ? -yyn : 0;
1728
          /* Stay within bounds of both yycheck and yytname.  */
1729
          int yychecklim = YYLAST - yyn + 1;
1730
          int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS;
1731
          int yyx;
1732
1733
          for (yyx = yyxbegin; yyx < yyxend; ++yyx)
1734
            if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR
1735
                && !yytable_value_is_error (yytable[yyx + yyn]))
1736
              {
1737
                if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM)
1738
                  {
1739
                    yycount = 1;
1740
                    yysize = yysize0;
1741
                    break;
1742
                  }
1743
                yyarg[yycount++] = yytname[yyx];
1744
                {
1745
                  YYPTRDIFF_T yysize1
1746
                    = yysize + yytnamerr (YY_NULLPTR, yytname[yyx]);
1747
                  if (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM)
1748
                    yysize = yysize1;
1749
                  else
1750
                    return 2;
1751
                }
1752
              }
1753
        }
1754
    }
1755
1756
  switch (yycount)
1757
    {
1758
# define YYCASE_(N, S)                      \
1759
      case N:                               \
1760
        yyformat = S;                       \
1761
      break
1762
    default: /* Avoid compiler warnings. */
1763
      YYCASE_(0, YY_("syntax error"));
1764
      YYCASE_(1, YY_("syntax error, unexpected %s"));
1765
      YYCASE_(2, YY_("syntax error, unexpected %s, expecting %s"));
1766
      YYCASE_(3, YY_("syntax error, unexpected %s, expecting %s or %s"));
1767
      YYCASE_(4, YY_("syntax error, unexpected %s, expecting %s or %s or %s"));
1768
      YYCASE_(5, YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s"));
1769
# undef YYCASE_
1770
    }
1771
1772
  {
1773
    /* Don't count the "%s"s in the final size, but reserve room for
1774
       the terminator.  */
1775
    YYPTRDIFF_T yysize1 = yysize + (yystrlen (yyformat) - 2 * yycount) + 1;
1776
    if (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM)
1777
      yysize = yysize1;
1778
    else
1779
      return 2;
1780
  }
1781
1782
  if (*yymsg_alloc < yysize)
1783
    {
1784
      *yymsg_alloc = 2 * yysize;
1785
      if (! (yysize <= *yymsg_alloc
1786
             && *yymsg_alloc <= YYSTACK_ALLOC_MAXIMUM))
1787
        *yymsg_alloc = YYSTACK_ALLOC_MAXIMUM;
1788
      return 1;
1789
    }
1790
1791
  /* Avoid sprintf, as that infringes on the user's name space.
1792
     Don't have undefined behavior even if the translation
1793
     produced a string with the wrong number of "%s"s.  */
1794
  {
1795
    char *yyp = *yymsg;
1796
    int yyi = 0;
1797
    while ((*yyp = *yyformat) != '\0')
1798
      if (*yyp == '%' && yyformat[1] == 's' && yyi < yycount)
1799
        {
1800
          yyp += yytnamerr (yyp, yyarg[yyi++]);
1801
          yyformat += 2;
1802
        }
1803
      else
1804
        {
1805
          ++yyp;
1806
          ++yyformat;
1807
        }
1808
  }
1809
  return 0;
1810
}
1811
#endif /* YYERROR_VERBOSE */
1812
1813
/*-----------------------------------------------.
1814
| Release the memory associated to this symbol.  |
1815
`-----------------------------------------------*/
1816
1817
static void
1818
yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep, void *yyscanner, compiler_state_t *cstate)
1819
35.3k
{
1820
35.3k
  YYUSE (yyvaluep);
1821
35.3k
  YYUSE (yyscanner);
1822
35.3k
  YYUSE (cstate);
1823
35.3k
  if (!yymsg)
1824
0
    yymsg = "Deleting";
1825
35.3k
  YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp);
1826
1827
35.3k
  YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
1828
35.3k
  YYUSE (yytype);
1829
35.3k
  YY_IGNORE_MAYBE_UNINITIALIZED_END
1830
35.3k
}
1831
1832
1833
1834
1835
/*----------.
1836
| yyparse.  |
1837
`----------*/
1838
1839
int
1840
yyparse (void *yyscanner, compiler_state_t *cstate)
1841
13.3k
{
1842
/* The lookahead symbol.  */
1843
13.3k
int yychar;
1844
1845
1846
/* The semantic value of the lookahead symbol.  */
1847
/* Default value used for initialization, for pacifying older GCCs
1848
   or non-GCC compilers.  */
1849
13.3k
YY_INITIAL_VALUE (static YYSTYPE yyval_default;)
1850
13.3k
YYSTYPE yylval YY_INITIAL_VALUE (= yyval_default);
1851
1852
    /* Number of syntax errors so far.  */
1853
13.3k
    int yynerrs;
1854
1855
13.3k
    yy_state_fast_t yystate;
1856
    /* Number of tokens to shift before error messages enabled.  */
1857
13.3k
    int yyerrstatus;
1858
1859
    /* The stacks and their tools:
1860
       'yyss': related to states.
1861
       'yyvs': related to semantic values.
1862
1863
       Refer to the stacks through separate pointers, to allow yyoverflow
1864
       to reallocate them elsewhere.  */
1865
1866
    /* The state stack.  */
1867
13.3k
    yy_state_t yyssa[YYINITDEPTH];
1868
13.3k
    yy_state_t *yyss;
1869
13.3k
    yy_state_t *yyssp;
1870
1871
    /* The semantic value stack.  */
1872
13.3k
    YYSTYPE yyvsa[YYINITDEPTH];
1873
13.3k
    YYSTYPE *yyvs;
1874
13.3k
    YYSTYPE *yyvsp;
1875
1876
13.3k
    YYPTRDIFF_T yystacksize;
1877
1878
13.3k
  int yyn;
1879
13.3k
  int yyresult;
1880
  /* Lookahead token as an internal (translated) token number.  */
1881
13.3k
  int yytoken = 0;
1882
  /* The variables used to return semantic value and location from the
1883
     action routines.  */
1884
13.3k
  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
364k
#define YYPOPSTACK(N)   (yyvsp -= (N), yyssp -= (N))
1894
1895
  /* The number of symbols on the RHS of the reduced rule.
1896
     Keep to zero when no symbol should be popped.  */
1897
13.3k
  int yylen = 0;
1898
1899
13.3k
  yyssp = yyss = yyssa;
1900
13.3k
  yyvsp = yyvs = yyvsa;
1901
13.3k
  yystacksize = YYINITDEPTH;
1902
1903
13.3k
  YYDPRINTF ((stderr, "Starting parse\n"));
1904
1905
13.3k
  yystate = 0;
1906
13.3k
  yyerrstatus = 0;
1907
13.3k
  yynerrs = 0;
1908
13.3k
  yychar = YYEMPTY; /* Cause a token to be read.  */
1909
13.3k
  goto yysetstate;
1910
1911
1912
/*------------------------------------------------------------.
1913
| yynewstate -- push a new state, which is found in yystate.  |
1914
`------------------------------------------------------------*/
1915
473k
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
473k
  yyssp++;
1919
1920
1921
/*--------------------------------------------------------------------.
1922
| yysetstate -- set current state (the top of the stack) to yystate.  |
1923
`--------------------------------------------------------------------*/
1924
487k
yysetstate:
1925
487k
  YYDPRINTF ((stderr, "Entering state %d\n", yystate));
1926
487k
  YY_ASSERT (0 <= yystate && yystate < YYNSTATES);
1927
487k
  YY_IGNORE_USELESS_CAST_BEGIN
1928
487k
  *yyssp = YY_CAST (yy_state_t, yystate);
1929
487k
  YY_IGNORE_USELESS_CAST_END
1930
1931
487k
  if (yyss + yystacksize - 1 <= yyssp)
1932
#if !defined yyoverflow && !defined YYSTACK_RELOCATE
1933
    goto yyexhaustedlab;
1934
#else
1935
8
    {
1936
      /* Get the current used size of the three stacks, in elements.  */
1937
8
      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
8
      if (YYMAXDEPTH <= yystacksize)
1961
0
        goto yyexhaustedlab;
1962
8
      yystacksize *= 2;
1963
8
      if (YYMAXDEPTH < yystacksize)
1964
0
        yystacksize = YYMAXDEPTH;
1965
1966
8
      {
1967
8
        yy_state_t *yyss1 = yyss;
1968
8
        union yyalloc *yyptr =
1969
8
          YY_CAST (union yyalloc *,
1970
8
                   YYSTACK_ALLOC (YY_CAST (YYSIZE_T, YYSTACK_BYTES (yystacksize))));
1971
8
        if (! yyptr)
1972
0
          goto yyexhaustedlab;
1973
8
        YYSTACK_RELOCATE (yyss_alloc, yyss);
1974
8
        YYSTACK_RELOCATE (yyvs_alloc, yyvs);
1975
8
# undef YYSTACK_RELOCATE
1976
8
        if (yyss1 != yyssa)
1977
0
          YYSTACK_FREE (yyss1);
1978
8
      }
1979
0
# endif
1980
1981
0
      yyssp = yyss + yysize - 1;
1982
8
      yyvsp = yyvs + yysize - 1;
1983
1984
8
      YY_IGNORE_USELESS_CAST_BEGIN
1985
8
      YYDPRINTF ((stderr, "Stack size increased to %ld\n",
1986
8
                  YY_CAST (long, yystacksize)));
1987
8
      YY_IGNORE_USELESS_CAST_END
1988
1989
8
      if (yyss + yystacksize - 1 <= yyssp)
1990
0
        YYABORT;
1991
8
    }
1992
487k
#endif /* !defined yyoverflow && !defined YYSTACK_RELOCATE */
1993
1994
487k
  if (yystate == YYFINAL)
1995
8.71k
    YYACCEPT;
1996
1997
478k
  goto yybackup;
1998
1999
2000
/*-----------.
2001
| yybackup.  |
2002
`-----------*/
2003
478k
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
478k
  yyn = yypact[yystate];
2009
478k
  if (yypact_value_is_default (yyn))
2010
249k
    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
228k
  if (yychar == YYEMPTY)
2016
157k
    {
2017
157k
      YYDPRINTF ((stderr, "Reading a token: "));
2018
157k
      yychar = yylex (&yylval, yyscanner);
2019
157k
    }
2020
2021
228k
  if (yychar <= YYEOF)
2022
27.5k
    {
2023
27.5k
      yychar = yytoken = YYEOF;
2024
27.5k
      YYDPRINTF ((stderr, "Now at end of input.\n"));
2025
27.5k
    }
2026
201k
  else
2027
201k
    {
2028
201k
      yytoken = YYTRANSLATE (yychar);
2029
201k
      YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc);
2030
201k
    }
2031
2032
  /* If the proper action on seeing token YYTOKEN is to reduce or to
2033
     detect an error, take that action.  */
2034
228k
  yyn += yytoken;
2035
228k
  if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken)
2036
57.6k
    goto yydefault;
2037
171k
  yyn = yytable[yyn];
2038
171k
  if (yyn <= 0)
2039
16.0k
    {
2040
16.0k
      if (yytable_value_is_error (yyn))
2041
0
        goto yyerrlab;
2042
16.0k
      yyn = -yyn;
2043
16.0k
      goto yyreduce;
2044
16.0k
    }
2045
2046
  /* Count tokens shifted since error; after three, turn off error
2047
     status.  */
2048
155k
  if (yyerrstatus)
2049
0
    yyerrstatus--;
2050
2051
  /* Shift the lookahead token.  */
2052
155k
  YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc);
2053
155k
  yystate = yyn;
2054
155k
  YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
2055
155k
  *++yyvsp = yylval;
2056
155k
  YY_IGNORE_MAYBE_UNINITIALIZED_END
2057
2058
  /* Discard the shifted token.  */
2059
155k
  yychar = YYEMPTY;
2060
155k
  goto yynewstate;
2061
2062
2063
/*-----------------------------------------------------------.
2064
| yydefault -- do the default action for the current state.  |
2065
`-----------------------------------------------------------*/
2066
307k
yydefault:
2067
307k
  yyn = yydefact[yystate];
2068
307k
  if (yyn == 0)
2069
1.95k
    goto yyerrlab;
2070
305k
  goto yyreduce;
2071
2072
2073
/*-----------------------------.
2074
| yyreduce -- do a reduction.  |
2075
`-----------------------------*/
2076
321k
yyreduce:
2077
  /* yyn is the number of a rule to reduce with.  */
2078
321k
  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
321k
  yyval = yyvsp[1-yylen];
2089
2090
2091
321k
  YY_REDUCE_PRINT (yyn);
2092
321k
  switch (yyn)
2093
321k
    {
2094
6.68k
  case 2:
2095
6.68k
#line 421 "/src/libpcap/build/grammar.y"
2096
6.68k
{
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.68k
  (void) yynerrs;
2105
6.68k
  CHECK_INT_VAL(finish_parse(cstate, (yyvsp[0].blk).b));
2106
6.68k
}
2107
6.68k
#line 2108 "/src/libpcap/build/grammar.c"
2108
6.68k
    break;
2109
2110
13.3k
  case 4:
2111
13.3k
#line 434 "/src/libpcap/build/grammar.y"
2112
13.3k
                                { (yyval.blk).q = qerr; }
2113
13.3k
#line 2114 "/src/libpcap/build/grammar.c"
2114
13.3k
    break;
2115
2116
6.11k
  case 6:
2117
6.11k
#line 437 "/src/libpcap/build/grammar.y"
2118
6.11k
                                { (yyvsp[0].blk).b = gen_and((yyvsp[-2].blk).b, (yyvsp[0].blk).b); (yyval.blk) = (yyvsp[0].blk); }
2119
6.11k
#line 2120 "/src/libpcap/build/grammar.c"
2120
6.11k
    break;
2121
2122
4.07k
  case 7:
2123
4.07k
#line 438 "/src/libpcap/build/grammar.y"
2124
4.07k
                                { (yyvsp[0].blk).b = gen_and((yyvsp[-2].blk).b, (yyvsp[0].blk).b); (yyval.blk) = (yyvsp[0].blk); }
2125
4.07k
#line 2126 "/src/libpcap/build/grammar.c"
2126
4.07k
    break;
2127
2128
4.30k
  case 8:
2129
4.30k
#line 439 "/src/libpcap/build/grammar.y"
2130
4.30k
                                { (yyvsp[0].blk).b = gen_or((yyvsp[-2].blk).b, (yyvsp[0].blk).b); (yyval.blk) = (yyvsp[0].blk); }
2131
4.30k
#line 2132 "/src/libpcap/build/grammar.c"
2132
4.30k
    break;
2133
2134
6.50k
  case 9:
2135
6.50k
#line 440 "/src/libpcap/build/grammar.y"
2136
6.50k
                                { (yyvsp[0].blk).b = gen_or((yyvsp[-2].blk).b, (yyvsp[0].blk).b); (yyval.blk) = (yyvsp[0].blk); }
2137
6.50k
#line 2138 "/src/libpcap/build/grammar.c"
2138
6.50k
    break;
2139
2140
11.2k
  case 10:
2141
11.2k
#line 442 "/src/libpcap/build/grammar.y"
2142
11.2k
                                { (yyval.blk) = (yyvsp[-1].blk); }
2143
11.2k
#line 2144 "/src/libpcap/build/grammar.c"
2144
11.2k
    break;
2145
2146
13.5k
  case 11:
2147
13.5k
#line 444 "/src/libpcap/build/grammar.y"
2148
13.5k
                                { (yyval.blk) = (yyvsp[-1].blk); }
2149
13.5k
#line 2150 "/src/libpcap/build/grammar.c"
2150
13.5k
    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.8k
#line 2157 "/src/libpcap/build/grammar.c"
2157
10.8k
    break;
2158
2159
10.8k
  case 14:
2160
63
#line 449 "/src/libpcap/build/grammar.y"
2161
63
                                { (yyval.blk) = (yyvsp[-1].blk); }
2162
63
#line 2163 "/src/libpcap/build/grammar.c"
2163
63
    break;
2164
2165
1.73k
  case 15:
2166
1.73k
#line 451 "/src/libpcap/build/grammar.y"
2167
1.73k
                                { 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
728
#line 2169 "/src/libpcap/build/grammar.c"
2169
728
    break;
2170
2171
728
  case 16:
2172
168
#line 452 "/src/libpcap/build/grammar.y"
2173
168
                                {
2174
168
          CHECK_PTR_VAL((yyvsp[-2].s));
2175
          /* Check whether HID/NUM is being used when appropriate */
2176
168
          (yyval.blk).q = (yyvsp[-3].blk).q;
2177
168
          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
167
          } 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
167
          } 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
166
          } 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
165
          CHECK_PTR_VAL(((yyval.blk).b = gen_mcode(cstate, (yyvsp[-2].s), NULL, (yyvsp[0].h), (yyval.blk).q)));
2191
165
        }
2192
110
#line 2193 "/src/libpcap/build/grammar.c"
2193
110
    break;
2194
2195
110
  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
593
  case 18:
2221
593
#line 491 "/src/libpcap/build/grammar.y"
2222
593
                                {
2223
593
          CHECK_PTR_VAL((yyvsp[0].s));
2224
          /* Check whether HID is being used when appropriate */
2225
593
          (yyval.blk).q = (yyvsp[-1].blk).q;
2226
593
          if ((yyval.blk).q.addr == Q_PORT) {
2227
1
          bpf_set_error(cstate, "'port' qualifier applied to IPv4 address");
2228
1
          YYABORT;
2229
592
          } else if ((yyval.blk).q.addr == Q_PORTRANGE) {
2230
0
          bpf_set_error(cstate, "'portrange' qualifier applied to IPv4 address");
2231
0
          YYABORT;
2232
592
          } else if ((yyval.blk).q.addr == Q_PROTO) {
2233
1
          bpf_set_error(cstate, "'proto' qualifier applied to IPv4 address");
2234
1
          YYABORT;
2235
591
          } 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
590
          CHECK_PTR_VAL(((yyval.blk).b = gen_ncode(cstate, (yyvsp[0].s), 0, (yyval.blk).q)));
2240
590
        }
2241
565
#line 2242 "/src/libpcap/build/grammar.c"
2242
565
    break;
2243
2244
565
  case 19:
2245
403
#line 510 "/src/libpcap/build/grammar.y"
2246
403
                                {
2247
403
          CHECK_PTR_VAL((yyvsp[-2].s));
2248
          /* Check whether HID6/NUM is being used when appropriate */
2249
402
          (yyval.blk).q = (yyvsp[-3].blk).q;
2250
402
          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
401
          } 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
401
          } 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
400
          } 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
399
          CHECK_PTR_VAL(((yyval.blk).b = gen_mcode6(cstate, (yyvsp[-2].s), (yyvsp[0].h), (yyval.blk).q)));
2264
399
        }
2265
283
#line 2266 "/src/libpcap/build/grammar.c"
2266
283
    break;
2267
2268
604
  case 20:
2269
604
#line 529 "/src/libpcap/build/grammar.y"
2270
604
                                {
2271
604
          CHECK_PTR_VAL((yyvsp[0].s));
2272
          /* Check whether HID6 is being used when appropriate */
2273
603
          (yyval.blk).q = (yyvsp[-1].blk).q;
2274
603
          if ((yyval.blk).q.addr == Q_PORT) {
2275
1
          bpf_set_error(cstate, "'port' qualifier applied to IPv6 address");
2276
1
          YYABORT;
2277
602
          } else if ((yyval.blk).q.addr == Q_PORTRANGE) {
2278
0
          bpf_set_error(cstate, "'portrange' qualifier applied to IPv6 address");
2279
0
          YYABORT;
2280
602
          } else if ((yyval.blk).q.addr == Q_PROTO) {
2281
1
          bpf_set_error(cstate, "'proto' qualifier applied to IPv6 address");
2282
1
          YYABORT;
2283
601
          } 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
600
          CHECK_PTR_VAL(((yyval.blk).b = gen_mcode6(cstate, (yyvsp[0].s), 128, (yyval.blk).q)));
2288
600
        }
2289
589
#line 2290 "/src/libpcap/build/grammar.c"
2290
589
    break;
2291
2292
2.24k
  case 21:
2293
2.24k
#line 548 "/src/libpcap/build/grammar.y"
2294
2.24k
                                { 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.17k
#line 2296 "/src/libpcap/build/grammar.c"
2296
2.17k
    break;
2297
2298
2.17k
  case 22:
2299
571
#line 549 "/src/libpcap/build/grammar.y"
2300
571
                                { 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
558
#line 2302 "/src/libpcap/build/grammar.c"
2302
558
    break;
2303
2304
1.98k
  case 23:
2305
1.98k
#line 550 "/src/libpcap/build/grammar.y"
2306
1.98k
                                { gen_not((yyvsp[0].blk).b); (yyval.blk) = (yyvsp[0].blk); }
2307
1.98k
#line 2308 "/src/libpcap/build/grammar.c"
2308
1.98k
    break;
2309
2310
3.58k
  case 24:
2311
3.58k
#line 552 "/src/libpcap/build/grammar.y"
2312
3.58k
                                { (yyval.blk) = (yyvsp[-1].blk); }
2313
3.58k
#line 2314 "/src/libpcap/build/grammar.c"
2314
3.58k
    break;
2315
2316
1.91k
  case 25:
2317
1.91k
#line 554 "/src/libpcap/build/grammar.y"
2318
1.91k
                                { (yyval.blk) = (yyvsp[-1].blk); }
2319
1.91k
#line 2320 "/src/libpcap/build/grammar.c"
2320
1.91k
    break;
2321
2322
689
  case 27:
2323
689
#line 557 "/src/libpcap/build/grammar.y"
2324
689
                                { (yyvsp[0].blk).b = gen_and((yyvsp[-2].blk).b, (yyvsp[0].blk).b); (yyval.blk) = (yyvsp[0].blk); }
2325
689
#line 2326 "/src/libpcap/build/grammar.c"
2326
689
    break;
2327
2328
1.57k
  case 28:
2329
1.57k
#line 558 "/src/libpcap/build/grammar.y"
2330
1.57k
                                { (yyvsp[0].blk).b = gen_or((yyvsp[-2].blk).b, (yyvsp[0].blk).b); (yyval.blk) = (yyvsp[0].blk); }
2331
1.57k
#line 2332 "/src/libpcap/build/grammar.c"
2332
1.57k
    break;
2333
2334
658
  case 29:
2335
658
#line 560 "/src/libpcap/build/grammar.y"
2336
658
                                { CHECK_PTR_VAL(((yyval.blk).b = gen_ncode(cstate, NULL, (yyvsp[0].h),
2337
658
               (yyval.blk).q = (yyvsp[-1].blk).q))); }
2338
351
#line 2339 "/src/libpcap/build/grammar.c"
2339
351
    break;
2340
2341
1.00k
  case 32:
2342
1.00k
#line 565 "/src/libpcap/build/grammar.y"
2343
1.00k
                                { gen_not((yyvsp[0].blk).b); (yyval.blk) = (yyvsp[0].blk); }
2344
1.00k
#line 2345 "/src/libpcap/build/grammar.c"
2345
1.00k
    break;
2346
2347
117
  case 33:
2348
117
#line 567 "/src/libpcap/build/grammar.y"
2349
117
                                { QSET((yyval.blk).q, (yyvsp[-2].i), (yyvsp[-1].i), (yyvsp[0].i)); }
2350
117
#line 2351 "/src/libpcap/build/grammar.c"
2351
117
    break;
2352
2353
866
  case 34:
2354
866
#line 568 "/src/libpcap/build/grammar.y"
2355
866
                                { QSET((yyval.blk).q, (yyvsp[-1].i), (yyvsp[0].i), Q_DEFAULT); }
2356
866
#line 2357 "/src/libpcap/build/grammar.c"
2357
866
    break;
2358
2359
1.80k
  case 35:
2360
1.80k
#line 569 "/src/libpcap/build/grammar.y"
2361
1.80k
                                { QSET((yyval.blk).q, (yyvsp[-1].i), Q_DEFAULT, (yyvsp[0].i)); }
2362
1.80k
#line 2363 "/src/libpcap/build/grammar.c"
2363
1.80k
    break;
2364
2365
2.07k
  case 36:
2366
2.07k
#line 570 "/src/libpcap/build/grammar.y"
2367
2.07k
                                { QSET((yyval.blk).q, (yyvsp[-1].i), Q_DEFAULT, Q_PROTO); }
2368
2.07k
#line 2369 "/src/libpcap/build/grammar.c"
2369
2.07k
    break;
2370
2371
164
  case 37:
2372
164
#line 571 "/src/libpcap/build/grammar.y"
2373
164
                                {
2374
#ifdef NO_PROTOCHAIN
2375
          bpf_set_error(cstate, "protochain not supported");
2376
          YYABORT;
2377
#else
2378
164
          QSET((yyval.blk).q, (yyvsp[-1].i), Q_DEFAULT, Q_PROTOCHAIN);
2379
164
#endif
2380
164
        }
2381
164
#line 2382 "/src/libpcap/build/grammar.c"
2382
164
    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.99k
  case 39:
2391
2.99k
#line 581 "/src/libpcap/build/grammar.y"
2392
2.99k
                                { (yyval.blk) = (yyvsp[0].blk); }
2393
2.99k
#line 2394 "/src/libpcap/build/grammar.c"
2394
2.99k
    break;
2395
2396
92
  case 40:
2397
92
#line 582 "/src/libpcap/build/grammar.y"
2398
92
                                { (yyval.blk).b = (yyvsp[-1].blk).b; (yyval.blk).q = (yyvsp[-2].blk).q; }
2399
92
#line 2400 "/src/libpcap/build/grammar.c"
2400
92
    break;
2401
2402
6.36k
  case 41:
2403
6.36k
#line 583 "/src/libpcap/build/grammar.y"
2404
6.36k
                                { 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.78k
  case 42:
2409
2.78k
#line 584 "/src/libpcap/build/grammar.y"
2410
2.78k
                                { CHECK_PTR_VAL(((yyval.blk).b = gen_relation(cstate, (yyvsp[-1].i), (yyvsp[-2].a), (yyvsp[0].a), 0)));
2411
2.78k
          (yyval.blk).q = qerr; }
2412
0
#line 2413 "/src/libpcap/build/grammar.c"
2413
0
    break;
2414
2415
1.46k
  case 43:
2416
1.46k
#line 586 "/src/libpcap/build/grammar.y"
2417
1.46k
                                { CHECK_PTR_VAL(((yyval.blk).b = gen_relation(cstate, (yyvsp[-1].i), (yyvsp[-2].a), (yyvsp[0].a), 1)));
2418
1.46k
          (yyval.blk).q = qerr; }
2419
0
#line 2420 "/src/libpcap/build/grammar.c"
2420
0
    break;
2421
2422
3.78k
  case 44:
2423
3.78k
#line 588 "/src/libpcap/build/grammar.y"
2424
3.78k
                                { (yyval.blk).b = (yyvsp[0].rblk); (yyval.blk).q = qerr; }
2425
3.78k
#line 2426 "/src/libpcap/build/grammar.c"
2426
3.78k
    break;
2427
2428
144
  case 45:
2429
144
#line 589 "/src/libpcap/build/grammar.y"
2430
144
                                { 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
35
  case 46:
2435
35
#line 590 "/src/libpcap/build/grammar.y"
2436
35
                                { 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
137
  case 47:
2441
137
#line 591 "/src/libpcap/build/grammar.y"
2442
137
                                { (yyval.blk).b = (yyvsp[0].blk).b; (yyval.blk).q = qerr; }
2443
137
#line 2444 "/src/libpcap/build/grammar.c"
2444
137
    break;
2445
2446
210
  case 48:
2447
210
#line 592 "/src/libpcap/build/grammar.y"
2448
210
                                { 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
215
  case 49:
2453
215
#line 593 "/src/libpcap/build/grammar.y"
2454
215
                                { (yyval.blk).b = (yyvsp[0].blk).b; (yyval.blk).q = qerr; }
2455
215
#line 2456 "/src/libpcap/build/grammar.c"
2456
215
    break;
2457
2458
3.15k
  case 51:
2459
3.15k
#line 597 "/src/libpcap/build/grammar.y"
2460
3.15k
                                { (yyval.i) = Q_DEFAULT; }
2461
3.15k
#line 2462 "/src/libpcap/build/grammar.c"
2462
3.15k
    break;
2463
2464
176
  case 52:
2465
176
#line 600 "/src/libpcap/build/grammar.y"
2466
176
                                { (yyval.i) = Q_SRC; }
2467
176
#line 2468 "/src/libpcap/build/grammar.c"
2468
176
    break;
2469
2470
235
  case 53:
2471
235
#line 601 "/src/libpcap/build/grammar.y"
2472
235
                                { (yyval.i) = Q_DST; }
2473
235
#line 2474 "/src/libpcap/build/grammar.c"
2474
235
    break;
2475
2476
28
  case 54:
2477
28
#line 602 "/src/libpcap/build/grammar.y"
2478
28
                                { (yyval.i) = Q_OR; }
2479
28
#line 2480 "/src/libpcap/build/grammar.c"
2480
28
    break;
2481
2482
84
  case 55:
2483
84
#line 603 "/src/libpcap/build/grammar.y"
2484
84
                                { (yyval.i) = Q_OR; }
2485
84
#line 2486 "/src/libpcap/build/grammar.c"
2486
84
    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
116
  case 57:
2495
116
#line 605 "/src/libpcap/build/grammar.y"
2496
116
                                { (yyval.i) = Q_AND; }
2497
116
#line 2498 "/src/libpcap/build/grammar.c"
2498
116
    break;
2499
2500
36
  case 58:
2501
36
#line 606 "/src/libpcap/build/grammar.y"
2502
36
                                { (yyval.i) = Q_ADDR1; }
2503
36
#line 2504 "/src/libpcap/build/grammar.c"
2504
36
    break;
2505
2506
36
  case 59:
2507
36
#line 607 "/src/libpcap/build/grammar.y"
2508
36
                                { (yyval.i) = Q_ADDR2; }
2509
36
#line 2510 "/src/libpcap/build/grammar.c"
2510
36
    break;
2511
2512
31
  case 60:
2513
31
#line 608 "/src/libpcap/build/grammar.y"
2514
31
                                { (yyval.i) = Q_ADDR3; }
2515
31
#line 2516 "/src/libpcap/build/grammar.c"
2516
31
    break;
2517
2518
29
  case 61:
2519
29
#line 609 "/src/libpcap/build/grammar.y"
2520
29
                                { (yyval.i) = Q_ADDR4; }
2521
29
#line 2522 "/src/libpcap/build/grammar.c"
2522
29
    break;
2523
2524
135
  case 62:
2525
135
#line 610 "/src/libpcap/build/grammar.y"
2526
135
                                { (yyval.i) = Q_RA; }
2527
135
#line 2528 "/src/libpcap/build/grammar.c"
2528
135
    break;
2529
2530
66
  case 63:
2531
66
#line 611 "/src/libpcap/build/grammar.y"
2532
66
                                { (yyval.i) = Q_TA; }
2533
66
#line 2534 "/src/libpcap/build/grammar.c"
2534
66
    break;
2535
2536
266
  case 64:
2537
266
#line 614 "/src/libpcap/build/grammar.y"
2538
266
                                { (yyval.i) = Q_HOST; }
2539
266
#line 2540 "/src/libpcap/build/grammar.c"
2540
266
    break;
2541
2542
978
  case 65:
2543
978
#line 615 "/src/libpcap/build/grammar.y"
2544
978
                                { (yyval.i) = Q_NET; }
2545
978
#line 2546 "/src/libpcap/build/grammar.c"
2546
978
    break;
2547
2548
673
  case 66:
2549
673
#line 616 "/src/libpcap/build/grammar.y"
2550
673
                                { (yyval.i) = Q_PORT; }
2551
673
#line 2552 "/src/libpcap/build/grammar.c"
2552
673
    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.16k
  case 69:
2567
3.16k
#line 622 "/src/libpcap/build/grammar.y"
2568
3.16k
                                { (yyval.i) = Q_LINK; }
2569
3.16k
#line 2570 "/src/libpcap/build/grammar.c"
2570
3.16k
    break;
2571
2572
905
  case 70:
2573
905
#line 623 "/src/libpcap/build/grammar.y"
2574
905
                                { (yyval.i) = Q_IP; }
2575
905
#line 2576 "/src/libpcap/build/grammar.c"
2576
905
    break;
2577
2578
94
  case 71:
2579
94
#line 624 "/src/libpcap/build/grammar.y"
2580
94
                                { (yyval.i) = Q_ARP; }
2581
94
#line 2582 "/src/libpcap/build/grammar.c"
2582
94
    break;
2583
2584
49
  case 72:
2585
49
#line 625 "/src/libpcap/build/grammar.y"
2586
49
                                { (yyval.i) = Q_RARP; }
2587
49
#line 2588 "/src/libpcap/build/grammar.c"
2588
49
    break;
2589
2590
179
  case 73:
2591
179
#line 626 "/src/libpcap/build/grammar.y"
2592
179
                                { (yyval.i) = Q_SCTP; }
2593
179
#line 2594 "/src/libpcap/build/grammar.c"
2594
179
    break;
2595
2596
253
  case 74:
2597
253
#line 627 "/src/libpcap/build/grammar.y"
2598
253
                                { (yyval.i) = Q_TCP; }
2599
253
#line 2600 "/src/libpcap/build/grammar.c"
2600
253
    break;
2601
2602
615
  case 75:
2603
615
#line 628 "/src/libpcap/build/grammar.y"
2604
615
                                { (yyval.i) = Q_UDP; }
2605
615
#line 2606 "/src/libpcap/build/grammar.c"
2606
615
    break;
2607
2608
76
  case 76:
2609
76
#line 629 "/src/libpcap/build/grammar.y"
2610
76
                                { (yyval.i) = Q_ICMP; }
2611
76
#line 2612 "/src/libpcap/build/grammar.c"
2612
76
    break;
2613
2614
65
  case 77:
2615
65
#line 630 "/src/libpcap/build/grammar.y"
2616
65
                                { (yyval.i) = Q_IGMP; }
2617
65
#line 2618 "/src/libpcap/build/grammar.c"
2618
65
    break;
2619
2620
169
  case 78:
2621
169
#line 631 "/src/libpcap/build/grammar.y"
2622
169
                                { (yyval.i) = Q_IGRP; }
2623
169
#line 2624 "/src/libpcap/build/grammar.c"
2624
169
    break;
2625
2626
400
  case 79:
2627
400
#line 632 "/src/libpcap/build/grammar.y"
2628
400
                                { (yyval.i) = Q_PIM; }
2629
400
#line 2630 "/src/libpcap/build/grammar.c"
2630
400
    break;
2631
2632
46
  case 80:
2633
46
#line 633 "/src/libpcap/build/grammar.y"
2634
46
                                { (yyval.i) = Q_VRRP; }
2635
46
#line 2636 "/src/libpcap/build/grammar.c"
2636
46
    break;
2637
2638
51
  case 81:
2639
51
#line 634 "/src/libpcap/build/grammar.y"
2640
51
                                { (yyval.i) = Q_CARP; }
2641
51
#line 2642 "/src/libpcap/build/grammar.c"
2642
51
    break;
2643
2644
268
  case 82:
2645
268
#line 635 "/src/libpcap/build/grammar.y"
2646
268
                                { (yyval.i) = Q_ATALK; }
2647
268
#line 2648 "/src/libpcap/build/grammar.c"
2648
268
    break;
2649
2650
58
  case 83:
2651
58
#line 636 "/src/libpcap/build/grammar.y"
2652
58
                                { (yyval.i) = Q_AARP; }
2653
58
#line 2654 "/src/libpcap/build/grammar.c"
2654
58
    break;
2655
2656
114
  case 84:
2657
114
#line 637 "/src/libpcap/build/grammar.y"
2658
114
                                { (yyval.i) = Q_DECNET; }
2659
114
#line 2660 "/src/libpcap/build/grammar.c"
2660
114
    break;
2661
2662
81
  case 85:
2663
81
#line 638 "/src/libpcap/build/grammar.y"
2664
81
                                { (yyval.i) = Q_LAT; }
2665
81
#line 2666 "/src/libpcap/build/grammar.c"
2666
81
    break;
2667
2668
52
  case 86:
2669
52
#line 639 "/src/libpcap/build/grammar.y"
2670
52
                                { (yyval.i) = Q_SCA; }
2671
52
#line 2672 "/src/libpcap/build/grammar.c"
2672
52
    break;
2673
2674
30
  case 87:
2675
30
#line 640 "/src/libpcap/build/grammar.y"
2676
30
                                { (yyval.i) = Q_MOPDL; }
2677
30
#line 2678 "/src/libpcap/build/grammar.c"
2678
30
    break;
2679
2680
208
  case 88:
2681
208
#line 641 "/src/libpcap/build/grammar.y"
2682
208
                                { (yyval.i) = Q_MOPRC; }
2683
208
#line 2684 "/src/libpcap/build/grammar.c"
2684
208
    break;
2685
2686
350
  case 89:
2687
350
#line 642 "/src/libpcap/build/grammar.y"
2688
350
                                { (yyval.i) = Q_IPV6; }
2689
350
#line 2690 "/src/libpcap/build/grammar.c"
2690
350
    break;
2691
2692
209
  case 90:
2693
209
#line 643 "/src/libpcap/build/grammar.y"
2694
209
                                { (yyval.i) = Q_ICMPV6; }
2695
209
#line 2696 "/src/libpcap/build/grammar.c"
2696
209
    break;
2697
2698
263
  case 91:
2699
263
#line 644 "/src/libpcap/build/grammar.y"
2700
263
                                { (yyval.i) = Q_AH; }
2701
263
#line 2702 "/src/libpcap/build/grammar.c"
2702
263
    break;
2703
2704
75
  case 92:
2705
75
#line 645 "/src/libpcap/build/grammar.y"
2706
75
                                { (yyval.i) = Q_ESP; }
2707
75
#line 2708 "/src/libpcap/build/grammar.c"
2708
75
    break;
2709
2710
168
  case 93:
2711
168
#line 646 "/src/libpcap/build/grammar.y"
2712
168
                                { (yyval.i) = Q_ISO; }
2713
168
#line 2714 "/src/libpcap/build/grammar.c"
2714
168
    break;
2715
2716
26
  case 94:
2717
26
#line 647 "/src/libpcap/build/grammar.y"
2718
26
                                { (yyval.i) = Q_ESIS; }
2719
26
#line 2720 "/src/libpcap/build/grammar.c"
2720
26
    break;
2721
2722
82
  case 95:
2723
82
#line 648 "/src/libpcap/build/grammar.y"
2724
82
                                { (yyval.i) = Q_ISIS; }
2725
82
#line 2726 "/src/libpcap/build/grammar.c"
2726
82
    break;
2727
2728
1.67k
  case 96:
2729
1.67k
#line 649 "/src/libpcap/build/grammar.y"
2730
1.67k
                                { (yyval.i) = Q_ISIS_L1; }
2731
1.67k
#line 2732 "/src/libpcap/build/grammar.c"
2732
1.67k
    break;
2733
2734
1.76k
  case 97:
2735
1.76k
#line 650 "/src/libpcap/build/grammar.y"
2736
1.76k
                                { (yyval.i) = Q_ISIS_L2; }
2737
1.76k
#line 2738 "/src/libpcap/build/grammar.c"
2738
1.76k
    break;
2739
2740
222
  case 98:
2741
222
#line 651 "/src/libpcap/build/grammar.y"
2742
222
                                { (yyval.i) = Q_ISIS_IIH; }
2743
222
#line 2744 "/src/libpcap/build/grammar.c"
2744
222
    break;
2745
2746
127
  case 99:
2747
127
#line 652 "/src/libpcap/build/grammar.y"
2748
127
                                { (yyval.i) = Q_ISIS_LSP; }
2749
127
#line 2750 "/src/libpcap/build/grammar.c"
2750
127
    break;
2751
2752
174
  case 100:
2753
174
#line 653 "/src/libpcap/build/grammar.y"
2754
174
                                { (yyval.i) = Q_ISIS_SNP; }
2755
174
#line 2756 "/src/libpcap/build/grammar.c"
2756
174
    break;
2757
2758
147
  case 101:
2759
147
#line 654 "/src/libpcap/build/grammar.y"
2760
147
                                { (yyval.i) = Q_ISIS_PSNP; }
2761
147
#line 2762 "/src/libpcap/build/grammar.c"
2762
147
    break;
2763
2764
116
  case 102:
2765
116
#line 655 "/src/libpcap/build/grammar.y"
2766
116
                                { (yyval.i) = Q_ISIS_CSNP; }
2767
116
#line 2768 "/src/libpcap/build/grammar.c"
2768
116
    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
219
  case 104:
2777
219
#line 657 "/src/libpcap/build/grammar.y"
2778
219
                                { (yyval.i) = Q_STP; }
2779
219
#line 2780 "/src/libpcap/build/grammar.c"
2780
219
    break;
2781
2782
419
  case 105:
2783
419
#line 658 "/src/libpcap/build/grammar.y"
2784
419
                                { (yyval.i) = Q_IPX; }
2785
419
#line 2786 "/src/libpcap/build/grammar.c"
2786
419
    break;
2787
2788
100
  case 106:
2789
100
#line 659 "/src/libpcap/build/grammar.y"
2790
100
                                { (yyval.i) = Q_NETBEUI; }
2791
100
#line 2792 "/src/libpcap/build/grammar.c"
2792
100
    break;
2793
2794
158
  case 107:
2795
158
#line 660 "/src/libpcap/build/grammar.y"
2796
158
                                { (yyval.i) = Q_RADIO; }
2797
158
#line 2798 "/src/libpcap/build/grammar.c"
2798
158
    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
47
  case 110:
2813
47
#line 664 "/src/libpcap/build/grammar.y"
2814
47
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_less(cstate, (yyvsp[0].h)))); }
2815
47
#line 2816 "/src/libpcap/build/grammar.c"
2816
47
    break;
2817
2818
47
  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
113
  case 112:
2825
113
#line 666 "/src/libpcap/build/grammar.y"
2826
113
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_byteop(cstate, (yyvsp[-1].i), (yyvsp[-2].h), (yyvsp[0].h)))); }
2827
112
#line 2828 "/src/libpcap/build/grammar.c"
2828
112
    break;
2829
2830
112
  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
190
  case 116:
2849
190
#line 670 "/src/libpcap/build/grammar.y"
2850
190
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_vlan(cstate, (yyvsp[0].h), 1))); }
2851
159
#line 2852 "/src/libpcap/build/grammar.c"
2852
159
    break;
2853
2854
523
  case 117:
2855
523
#line 671 "/src/libpcap/build/grammar.y"
2856
523
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_vlan(cstate, 0, 0))); }
2857
509
#line 2858 "/src/libpcap/build/grammar.c"
2858
509
    break;
2859
2860
509
  case 118:
2861
120
#line 672 "/src/libpcap/build/grammar.y"
2862
120
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_mpls(cstate, (yyvsp[0].h), 1))); }
2863
99
#line 2864 "/src/libpcap/build/grammar.c"
2864
99
    break;
2865
2866
146
  case 119:
2867
146
#line 673 "/src/libpcap/build/grammar.y"
2868
146
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_mpls(cstate, 0, 0))); }
2869
135
#line 2870 "/src/libpcap/build/grammar.c"
2870
135
    break;
2871
2872
135
  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
46
  case 121:
2879
46
#line 675 "/src/libpcap/build/grammar.y"
2880
46
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_pppoes(cstate, (yyvsp[0].h), 1))); }
2881
43
#line 2882 "/src/libpcap/build/grammar.c"
2882
43
    break;
2883
2884
144
  case 122:
2885
144
#line 676 "/src/libpcap/build/grammar.y"
2886
144
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_pppoes(cstate, 0, 0))); }
2887
142
#line 2888 "/src/libpcap/build/grammar.c"
2888
142
    break;
2889
2890
142
  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
111
  case 125:
2903
111
#line 679 "/src/libpcap/build/grammar.y"
2904
111
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_vxlan(cstate, (yyvsp[0].h), 1))); }
2905
96
#line 2906 "/src/libpcap/build/grammar.c"
2906
96
    break;
2907
2908
653
  case 126:
2909
653
#line 680 "/src/libpcap/build/grammar.y"
2910
653
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_vxlan(cstate, 0, 0))); }
2911
646
#line 2912 "/src/libpcap/build/grammar.c"
2912
646
    break;
2913
2914
646
  case 127:
2915
91
#line 681 "/src/libpcap/build/grammar.y"
2916
91
                                { (yyval.rblk) = (yyvsp[0].rblk); }
2917
91
#line 2918 "/src/libpcap/build/grammar.c"
2918
91
    break;
2919
2920
416
  case 128:
2921
416
#line 682 "/src/libpcap/build/grammar.y"
2922
416
                                { (yyval.rblk) = (yyvsp[0].rblk); }
2923
416
#line 2924 "/src/libpcap/build/grammar.c"
2924
416
    break;
2925
2926
1.26k
  case 129:
2927
1.26k
#line 683 "/src/libpcap/build/grammar.y"
2928
1.26k
                                { (yyval.rblk) = (yyvsp[0].rblk); }
2929
1.26k
#line 2930 "/src/libpcap/build/grammar.c"
2930
1.26k
    break;
2931
2932
51
  case 130:
2933
51
#line 686 "/src/libpcap/build/grammar.y"
2934
51
                                { CHECK_PTR_VAL((yyvsp[0].s)); CHECK_PTR_VAL(((yyval.rblk) = gen_pf_ifname(cstate, (yyvsp[0].s)))); }
2935
42
#line 2936 "/src/libpcap/build/grammar.c"
2936
42
    break;
2937
2938
42
  case 131:
2939
22
#line 687 "/src/libpcap/build/grammar.y"
2940
22
                                { CHECK_PTR_VAL((yyvsp[0].s)); CHECK_PTR_VAL(((yyval.rblk) = gen_pf_ruleset(cstate, (yyvsp[0].s)))); }
2941
16
#line 2942 "/src/libpcap/build/grammar.c"
2942
16
    break;
2943
2944
21
  case 132:
2945
21
#line 688 "/src/libpcap/build/grammar.y"
2946
21
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_pf_rnr(cstate, (yyvsp[0].h)))); }
2947
11
#line 2948 "/src/libpcap/build/grammar.c"
2948
11
    break;
2949
2950
19
  case 133:
2951
19
#line 689 "/src/libpcap/build/grammar.y"
2952
19
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_pf_srnr(cstate, (yyvsp[0].h)))); }
2953
11
#line 2954 "/src/libpcap/build/grammar.c"
2954
11
    break;
2955
2956
19
  case 134:
2957
19
#line 690 "/src/libpcap/build/grammar.y"
2958
19
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_pf_reason(cstate, (yyvsp[0].i)))); }
2959
10
#line 2960 "/src/libpcap/build/grammar.c"
2960
10
    break;
2961
2962
10
  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
3
  case 136:
2969
3
#line 695 "/src/libpcap/build/grammar.y"
2970
3
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_p80211_type(cstate, (yyvsp[-2].i) | (yyvsp[0].i),
2971
3
          IEEE80211_FC0_TYPE_MASK |
2972
3
          IEEE80211_FC0_SUBTYPE_MASK)));
2973
3
        }
2974
1
#line 2975 "/src/libpcap/build/grammar.c"
2975
1
    break;
2976
2977
184
  case 137:
2978
184
#line 699 "/src/libpcap/build/grammar.y"
2979
184
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_p80211_type(cstate, (yyvsp[0].i),
2980
184
          IEEE80211_FC0_TYPE_MASK)));
2981
184
        }
2982
182
#line 2983 "/src/libpcap/build/grammar.c"
2983
182
    break;
2984
2985
182
  case 138:
2986
23
#line 702 "/src/libpcap/build/grammar.y"
2987
23
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_p80211_type(cstate, (yyvsp[0].i),
2988
23
          IEEE80211_FC0_TYPE_MASK |
2989
23
          IEEE80211_FC0_SUBTYPE_MASK)));
2990
23
        }
2991
21
#line 2992 "/src/libpcap/build/grammar.c"
2992
21
    break;
2993
2994
215
  case 139:
2995
215
#line 706 "/src/libpcap/build/grammar.y"
2996
215
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_p80211_fcdir(cstate, (yyvsp[0].i)))); }
2997
212
#line 2998 "/src/libpcap/build/grammar.c"
2998
212
    break;
2999
3000
248
  case 140:
3001
248
#line 709 "/src/libpcap/build/grammar.y"
3002
248
                                { if (((yyvsp[0].h) & (~IEEE80211_FC0_TYPE_MASK)) != 0) {
3003
44
          bpf_set_error(cstate, "invalid 802.11 type value 0x%02x", (yyvsp[0].h));
3004
44
          YYABORT;
3005
44
          }
3006
204
          (yyval.i) = (int)(yyvsp[0].h);
3007
204
        }
3008
0
#line 3009 "/src/libpcap/build/grammar.c"
3009
0
    break;
3010
3011
39
  case 141:
3012
39
#line 715 "/src/libpcap/build/grammar.y"
3013
39
                                { CHECK_PTR_VAL((yyvsp[0].s));
3014
39
          (yyval.i) = str2tok((yyvsp[0].s), ieee80211_types);
3015
39
          if ((yyval.i) == -1) {
3016
12
          bpf_set_error(cstate, "unknown 802.11 type name \"%s\"", (yyvsp[0].s));
3017
12
          YYABORT;
3018
12
          }
3019
39
        }
3020
27
#line 3021 "/src/libpcap/build/grammar.c"
3021
27
    break;
3022
3023
42
  case 142:
3024
42
#line 724 "/src/libpcap/build/grammar.y"
3025
42
                                { if (((yyvsp[0].h) & (~IEEE80211_FC0_SUBTYPE_MASK)) != 0) {
3026
40
          bpf_set_error(cstate, "invalid 802.11 subtype value 0x%02x", (yyvsp[0].h));
3027
40
          YYABORT;
3028
40
          }
3029
2
          (yyval.i) = (int)(yyvsp[0].h);
3030
2
        }
3031
0
#line 3032 "/src/libpcap/build/grammar.c"
3032
0
    break;
3033
3034
5
  case 143:
3035
5
#line 730 "/src/libpcap/build/grammar.y"
3036
5
                                { const struct tok *types = NULL;
3037
5
          int i;
3038
5
          CHECK_PTR_VAL((yyvsp[0].s));
3039
13
          for (i = 0;; i++) {
3040
13
          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
12
          if ((yyvsp[(-1) - (1)].i) == ieee80211_type_subtypes[i].type) {
3046
4
            types = ieee80211_type_subtypes[i].tok;
3047
4
            break;
3048
4
          }
3049
12
          }
3050
3051
4
          (yyval.i) = str2tok((yyvsp[0].s), types);
3052
4
          if ((yyval.i) == -1) {
3053
3
          bpf_set_error(cstate, "unknown 802.11 subtype name \"%s\"", (yyvsp[0].s));
3054
3
          YYABORT;
3055
3
          }
3056
4
        }
3057
1
#line 3058 "/src/libpcap/build/grammar.c"
3058
1
    break;
3059
3060
33
  case 144:
3061
33
#line 753 "/src/libpcap/build/grammar.y"
3062
33
                                { int i;
3063
33
          CHECK_PTR_VAL((yyvsp[0].s));
3064
97
          for (i = 0;; i++) {
3065
97
          if (ieee80211_type_subtypes[i].tok == NULL) {
3066
            /* Ran out of types */
3067
10
            bpf_set_error(cstate, "unknown 802.11 type name");
3068
10
            YYABORT;
3069
10
          }
3070
87
          (yyval.i) = str2tok((yyvsp[0].s), ieee80211_type_subtypes[i].tok);
3071
87
          if ((yyval.i) != -1) {
3072
23
            (yyval.i) |= ieee80211_type_subtypes[i].type;
3073
23
            break;
3074
23
          }
3075
87
          }
3076
33
        }
3077
23
#line 3078 "/src/libpcap/build/grammar.c"
3078
23
    break;
3079
3080
785
  case 145:
3081
785
#line 770 "/src/libpcap/build/grammar.y"
3082
785
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_llc(cstate))); }
3083
776
#line 3084 "/src/libpcap/build/grammar.c"
3084
776
    break;
3085
3086
776
  case 146:
3087
511
#line 771 "/src/libpcap/build/grammar.y"
3088
511
                                { CHECK_PTR_VAL((yyvsp[0].s));
3089
511
          if (pcapint_strcasecmp((yyvsp[0].s), "i") == 0) {
3090
93
          CHECK_PTR_VAL(((yyval.rblk) = gen_llc_i(cstate)));
3091
418
          } else if (pcapint_strcasecmp((yyvsp[0].s), "s") == 0) {
3092
74
          CHECK_PTR_VAL(((yyval.rblk) = gen_llc_s(cstate)));
3093
344
          } else if (pcapint_strcasecmp((yyvsp[0].s), "u") == 0) {
3094
138
          CHECK_PTR_VAL(((yyval.rblk) = gen_llc_u(cstate)));
3095
206
          } else {
3096
206
          int subtype;
3097
3098
206
          subtype = str2tok((yyvsp[0].s), llc_s_subtypes);
3099
206
          if (subtype != -1) {
3100
41
            CHECK_PTR_VAL(((yyval.rblk) = gen_llc_s_subtype(cstate, subtype)));
3101
165
          } else {
3102
165
            subtype = str2tok((yyvsp[0].s), llc_u_subtypes);
3103
165
            if (subtype == -1) {
3104
32
              bpf_set_error(cstate, "unknown LLC type name \"%s\"", (yyvsp[0].s));
3105
32
              YYABORT;
3106
32
            }
3107
133
            CHECK_PTR_VAL(((yyval.rblk) = gen_llc_u_subtype(cstate, subtype)));
3108
133
          }
3109
206
          }
3110
511
        }
3111
468
#line 3112 "/src/libpcap/build/grammar.c"
3112
468
    break;
3113
3114
468
  case 147:
3115
24
#line 795 "/src/libpcap/build/grammar.y"
3116
24
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_llc_s_subtype(cstate, LLC_RNR))); }
3117
23
#line 3118 "/src/libpcap/build/grammar.c"
3118
23
    break;
3119
3120
179
  case 148:
3121
179
#line 798 "/src/libpcap/build/grammar.y"
3122
179
                                { if (((yyvsp[0].h) & (~IEEE80211_FC1_DIR_MASK)) != 0) {
3123
1
          bpf_set_error(cstate, "invalid 802.11 direction value 0x%x", (yyvsp[0].h));
3124
1
          YYABORT;
3125
1
          }
3126
178
          (yyval.i) = (int)(yyvsp[0].h);
3127
178
        }
3128
0
#line 3129 "/src/libpcap/build/grammar.c"
3129
0
    break;
3130
3131
61
  case 149:
3132
61
#line 804 "/src/libpcap/build/grammar.y"
3133
61
                                { CHECK_PTR_VAL((yyvsp[0].s));
3134
61
          if (pcapint_strcasecmp((yyvsp[0].s), "nods") == 0)
3135
12
          (yyval.i) = IEEE80211_FC1_DIR_NODS;
3136
49
          else if (pcapint_strcasecmp((yyvsp[0].s), "tods") == 0)
3137
15
          (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
61
        }
3147
37
#line 3148 "/src/libpcap/build/grammar.c"
3148
37
    break;
3149
3150
37
  case 150:
3151
19
#line 820 "/src/libpcap/build/grammar.y"
3152
19
                                { (yyval.i) = (yyvsp[0].h); }
3153
19
#line 3154 "/src/libpcap/build/grammar.c"
3154
19
    break;
3155
3156
5
  case 151:
3157
5
#line 821 "/src/libpcap/build/grammar.y"
3158
5
                                { 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.20k
  case 153:
3169
1.20k
#line 827 "/src/libpcap/build/grammar.y"
3170
1.20k
                                { (yyval.i) = BPF_JGT; }
3171
1.20k
#line 3172 "/src/libpcap/build/grammar.c"
3172
1.20k
    break;
3173
3174
75
  case 154:
3175
75
#line 828 "/src/libpcap/build/grammar.y"
3176
75
                                { (yyval.i) = BPF_JGE; }
3177
75
#line 3178 "/src/libpcap/build/grammar.c"
3178
75
    break;
3179
3180
1.65k
  case 155:
3181
1.65k
#line 829 "/src/libpcap/build/grammar.y"
3182
1.65k
                                { (yyval.i) = BPF_JEQ; }
3183
1.65k
#line 3184 "/src/libpcap/build/grammar.c"
3184
1.65k
    break;
3185
3186
174
  case 156:
3187
174
#line 831 "/src/libpcap/build/grammar.y"
3188
174
                                { (yyval.i) = BPF_JGT; }
3189
174
#line 3190 "/src/libpcap/build/grammar.c"
3190
174
    break;
3191
3192
1.44k
  case 157:
3193
1.44k
#line 832 "/src/libpcap/build/grammar.y"
3194
1.44k
                                { (yyval.i) = BPF_JGE; }
3195
1.44k
#line 3196 "/src/libpcap/build/grammar.c"
3196
1.44k
    break;
3197
3198
40
  case 158:
3199
40
#line 833 "/src/libpcap/build/grammar.y"
3200
40
                                { (yyval.i) = BPF_JEQ; }
3201
40
#line 3202 "/src/libpcap/build/grammar.c"
3202
40
    break;
3203
3204
22.1k
  case 159:
3205
22.1k
#line 835 "/src/libpcap/build/grammar.y"
3206
22.1k
                                { CHECK_PTR_VAL(((yyval.a) = gen_loadi(cstate, (yyvsp[0].h)))); }
3207
22.1k
#line 3208 "/src/libpcap/build/grammar.c"
3208
22.1k
    break;
3209
3210
22.1k
  case 161:
3211
3.28k
#line 838 "/src/libpcap/build/grammar.y"
3212
3.28k
                                        { CHECK_PTR_VAL(((yyval.a) = gen_load(cstate, (yyvsp[-3].i), (yyvsp[-1].a), 1))); }
3213
3.25k
#line 3214 "/src/libpcap/build/grammar.c"
3214
3.25k
    break;
3215
3216
3.25k
  case 162:
3217
396
#line 839 "/src/libpcap/build/grammar.y"
3218
396
                                        { CHECK_PTR_VAL(((yyval.a) = gen_load(cstate, (yyvsp[-5].i), (yyvsp[-3].a), (yyvsp[-1].h)))); }
3219
395
#line 3220 "/src/libpcap/build/grammar.c"
3220
395
    break;
3221
3222
2.32k
  case 163:
3223
2.32k
#line 840 "/src/libpcap/build/grammar.y"
3224
2.32k
                                        { CHECK_PTR_VAL(((yyval.a) = gen_arth(cstate, BPF_ADD, (yyvsp[-2].a), (yyvsp[0].a)))); }
3225
2.32k
#line 3226 "/src/libpcap/build/grammar.c"
3226
2.32k
    break;
3227
3228
2.32k
  case 164:
3229
1.28k
#line 841 "/src/libpcap/build/grammar.y"
3230
1.28k
                                        { CHECK_PTR_VAL(((yyval.a) = gen_arth(cstate, BPF_SUB, (yyvsp[-2].a), (yyvsp[0].a)))); }
3231
1.28k
#line 3232 "/src/libpcap/build/grammar.c"
3232
1.28k
    break;
3233
3234
3.58k
  case 165:
3235
3.58k
#line 842 "/src/libpcap/build/grammar.y"
3236
3.58k
                                        { CHECK_PTR_VAL(((yyval.a) = gen_arth(cstate, BPF_MUL, (yyvsp[-2].a), (yyvsp[0].a)))); }
3237
3.58k
#line 3238 "/src/libpcap/build/grammar.c"
3238
3.58k
    break;
3239
3240
3.58k
  case 166:
3241
1.73k
#line 843 "/src/libpcap/build/grammar.y"
3242
1.73k
                                        { 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.13k
#line 844 "/src/libpcap/build/grammar.y"
3248
1.13k
                                        { CHECK_PTR_VAL(((yyval.a) = gen_arth(cstate, BPF_MOD, (yyvsp[-2].a), (yyvsp[0].a)))); }
3249
1.12k
#line 3250 "/src/libpcap/build/grammar.c"
3250
1.12k
    break;
3251
3252
1.81k
  case 168:
3253
1.81k
#line 845 "/src/libpcap/build/grammar.y"
3254
1.81k
                                        { CHECK_PTR_VAL(((yyval.a) = gen_arth(cstate, BPF_AND, (yyvsp[-2].a), (yyvsp[0].a)))); }
3255
1.81k
#line 3256 "/src/libpcap/build/grammar.c"
3256
1.81k
    break;
3257
3258
1.81k
  case 169:
3259
1.04k
#line 846 "/src/libpcap/build/grammar.y"
3260
1.04k
                                        { CHECK_PTR_VAL(((yyval.a) = gen_arth(cstate, BPF_OR, (yyvsp[-2].a), (yyvsp[0].a)))); }
3261
1.04k
#line 3262 "/src/libpcap/build/grammar.c"
3262
1.04k
    break;
3263
3264
1.04k
  case 170:
3265
879
#line 847 "/src/libpcap/build/grammar.y"
3266
879
                                        { CHECK_PTR_VAL(((yyval.a) = gen_arth(cstate, BPF_XOR, (yyvsp[-2].a), (yyvsp[0].a)))); }
3267
879
#line 3268 "/src/libpcap/build/grammar.c"
3268
879
    break;
3269
3270
879
  case 171:
3271
769
#line 848 "/src/libpcap/build/grammar.y"
3272
769
                                        { CHECK_PTR_VAL(((yyval.a) = gen_arth(cstate, BPF_LSH, (yyvsp[-2].a), (yyvsp[0].a)))); }
3273
768
#line 3274 "/src/libpcap/build/grammar.c"
3274
768
    break;
3275
3276
768
  case 172:
3277
692
#line 849 "/src/libpcap/build/grammar.y"
3278
692
                                        { CHECK_PTR_VAL(((yyval.a) = gen_arth(cstate, BPF_RSH, (yyvsp[-2].a), (yyvsp[0].a)))); }
3279
691
#line 3280 "/src/libpcap/build/grammar.c"
3280
691
    break;
3281
3282
14.6k
  case 173:
3283
14.6k
#line 850 "/src/libpcap/build/grammar.y"
3284
14.6k
                                        { CHECK_PTR_VAL(((yyval.a) = gen_neg(cstate, (yyvsp[0].a)))); }
3285
14.6k
#line 3286 "/src/libpcap/build/grammar.c"
3286
14.6k
    break;
3287
3288
14.6k
  case 174:
3289
127
#line 851 "/src/libpcap/build/grammar.y"
3290
127
                                        { (yyval.a) = (yyvsp[-1].a); }
3291
127
#line 3292 "/src/libpcap/build/grammar.c"
3292
127
    break;
3293
3294
2.69k
  case 175:
3295
2.69k
#line 852 "/src/libpcap/build/grammar.y"
3296
2.69k
                                        { CHECK_PTR_VAL(((yyval.a) = gen_loadlen(cstate))); }
3297
2.69k
#line 3298 "/src/libpcap/build/grammar.c"
3298
2.69k
    break;
3299
3300
2.69k
  case 176:
3301
40
#line 854 "/src/libpcap/build/grammar.y"
3302
40
                                { (yyval.i) = '&'; }
3303
40
#line 3304 "/src/libpcap/build/grammar.c"
3304
40
    break;
3305
3306
23
  case 177:
3307
23
#line 855 "/src/libpcap/build/grammar.y"
3308
23
                                { (yyval.i) = '|'; }
3309
23
#line 3310 "/src/libpcap/build/grammar.c"
3310
23
    break;
3311
3312
15
  case 178:
3313
15
#line 856 "/src/libpcap/build/grammar.y"
3314
15
                                { (yyval.i) = '<'; }
3315
15
#line 3316 "/src/libpcap/build/grammar.c"
3316
15
    break;
3317
3318
20
  case 179:
3319
20
#line 857 "/src/libpcap/build/grammar.y"
3320
20
                                { (yyval.i) = '>'; }
3321
20
#line 3322 "/src/libpcap/build/grammar.c"
3322
20
    break;
3323
3324
17
  case 180:
3325
17
#line 858 "/src/libpcap/build/grammar.y"
3326
17
                                { (yyval.i) = '='; }
3327
17
#line 3328 "/src/libpcap/build/grammar.c"
3328
17
    break;
3329
3330
71
  case 182:
3331
71
#line 861 "/src/libpcap/build/grammar.y"
3332
71
                                { (yyval.h) = (yyvsp[-1].h); }
3333
71
#line 3334 "/src/libpcap/build/grammar.c"
3334
71
    break;
3335
3336
71
  case 183:
3337
71
#line 863 "/src/libpcap/build/grammar.y"
3338
71
                                { (yyval.i) = A_LANE; }
3339
71
#line 3340 "/src/libpcap/build/grammar.c"
3340
71
    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
11
  case 185:
3349
11
#line 865 "/src/libpcap/build/grammar.y"
3350
11
                                { (yyval.i) = A_BCC; }
3351
11
#line 3352 "/src/libpcap/build/grammar.c"
3352
11
    break;
3353
3354
8
  case 186:
3355
8
#line 866 "/src/libpcap/build/grammar.y"
3356
8
                                { (yyval.i) = A_OAMF4EC; }
3357
8
#line 3358 "/src/libpcap/build/grammar.c"
3358
8
    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
32
  case 188:
3367
32
#line 868 "/src/libpcap/build/grammar.y"
3368
32
                                { (yyval.i) = A_SC; }
3369
32
#line 3370 "/src/libpcap/build/grammar.c"
3370
32
    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
22
  case 190:
3379
22
#line 871 "/src/libpcap/build/grammar.y"
3380
22
                                { (yyval.i) = A_OAM; }
3381
22
#line 3382 "/src/libpcap/build/grammar.c"
3382
22
    break;
3383
3384
13
  case 191:
3385
13
#line 872 "/src/libpcap/build/grammar.y"
3386
13
                                { (yyval.i) = A_OAMF4; }
3387
13
#line 3388 "/src/libpcap/build/grammar.c"
3388
13
    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
130
  case 194:
3403
130
#line 877 "/src/libpcap/build/grammar.y"
3404
130
                                { (yyval.blk).atmfieldtype = A_VPI; }
3405
130
#line 3406 "/src/libpcap/build/grammar.c"
3406
130
    break;
3407
3408
108
  case 195:
3409
108
#line 878 "/src/libpcap/build/grammar.y"
3410
108
                                { (yyval.blk).atmfieldtype = A_VCI; }
3411
108
#line 3412 "/src/libpcap/build/grammar.c"
3412
108
    break;
3413
3414
43
  case 197:
3415
43
#line 881 "/src/libpcap/build/grammar.y"
3416
43
                                { 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
93
  case 198:
3421
93
#line 882 "/src/libpcap/build/grammar.y"
3422
93
                                { CHECK_PTR_VAL(((yyval.blk).b = gen_atmfield_code(cstate, (yyvsp[-2].blk).atmfieldtype, (yyvsp[0].h), (yyvsp[-1].i), 1))); }
3423
85
#line 3424 "/src/libpcap/build/grammar.c"
3424
85
    break;
3425
3426
85
  case 199:
3427
16
#line 883 "/src/libpcap/build/grammar.y"
3428
16
                                 { (yyval.blk).b = (yyvsp[-1].blk).b; (yyval.blk).q = qerr; }
3429
16
#line 3430 "/src/libpcap/build/grammar.c"
3430
16
    break;
3431
3432
233
  case 200:
3433
233
#line 885 "/src/libpcap/build/grammar.y"
3434
233
                   {
3435
233
  (yyval.blk).atmfieldtype = (yyvsp[-1].blk).atmfieldtype;
3436
233
  if ((yyval.blk).atmfieldtype == A_VPI ||
3437
122
      (yyval.blk).atmfieldtype == A_VCI)
3438
233
    CHECK_PTR_VAL(((yyval.blk).b = gen_atmfield_code(cstate, (yyval.blk).atmfieldtype, (yyvsp[0].h), BPF_JEQ, 0)));
3439
233
  }
3440
175
#line 3441 "/src/libpcap/build/grammar.c"
3441
175
    break;
3442
3443
175
  case 202:
3444
139
#line 893 "/src/libpcap/build/grammar.y"
3445
139
                                        { (yyvsp[0].blk).b = gen_or((yyvsp[-2].blk).b, (yyvsp[0].blk).b); (yyval.blk) = (yyvsp[0].blk); }
3446
139
#line 3447 "/src/libpcap/build/grammar.c"
3447
139
    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
114
  case 204:
3456
114
#line 897 "/src/libpcap/build/grammar.y"
3457
114
                                { (yyval.i) = M_LSSU; }
3458
114
#line 3459 "/src/libpcap/build/grammar.c"
3459
114
    break;
3460
3461
44
  case 205:
3462
44
#line 898 "/src/libpcap/build/grammar.y"
3463
44
                                { (yyval.i) = M_MSU; }
3464
44
#line 3465 "/src/libpcap/build/grammar.c"
3465
44
    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
10
  case 207:
3474
10
#line 900 "/src/libpcap/build/grammar.y"
3475
10
                                { (yyval.i) = MH_LSSU; }
3476
10
#line 3477 "/src/libpcap/build/grammar.c"
3477
10
    break;
3478
3479
21
  case 208:
3480
21
#line 901 "/src/libpcap/build/grammar.y"
3481
21
                                { (yyval.i) = MH_MSU; }
3482
21
#line 3483 "/src/libpcap/build/grammar.c"
3483
21
    break;
3484
3485
84
  case 209:
3486
84
#line 904 "/src/libpcap/build/grammar.y"
3487
84
                                { (yyval.blk).mtp3fieldtype = M_SIO; }
3488
84
#line 3489 "/src/libpcap/build/grammar.c"
3489
84
    break;
3490
3491
41
  case 210:
3492
41
#line 905 "/src/libpcap/build/grammar.y"
3493
41
                                { (yyval.blk).mtp3fieldtype = M_OPC; }
3494
41
#line 3495 "/src/libpcap/build/grammar.c"
3495
41
    break;
3496
3497
57
  case 211:
3498
57
#line 906 "/src/libpcap/build/grammar.y"
3499
57
                                { (yyval.blk).mtp3fieldtype = M_DPC; }
3500
57
#line 3501 "/src/libpcap/build/grammar.c"
3501
57
    break;
3502
3503
29
  case 212:
3504
29
#line 907 "/src/libpcap/build/grammar.y"
3505
29
                                { (yyval.blk).mtp3fieldtype = M_SLS; }
3506
29
#line 3507 "/src/libpcap/build/grammar.c"
3507
29
    break;
3508
3509
40
  case 213:
3510
40
#line 908 "/src/libpcap/build/grammar.y"
3511
40
                                { (yyval.blk).mtp3fieldtype = MH_SIO; }
3512
40
#line 3513 "/src/libpcap/build/grammar.c"
3513
40
    break;
3514
3515
68
  case 214:
3516
68
#line 909 "/src/libpcap/build/grammar.y"
3517
68
                                { (yyval.blk).mtp3fieldtype = MH_OPC; }
3518
68
#line 3519 "/src/libpcap/build/grammar.c"
3519
68
    break;
3520
3521
38
  case 215:
3522
38
#line 910 "/src/libpcap/build/grammar.y"
3523
38
                                { (yyval.blk).mtp3fieldtype = MH_DPC; }
3524
38
#line 3525 "/src/libpcap/build/grammar.c"
3525
38
    break;
3526
3527
17
  case 216:
3528
17
#line 911 "/src/libpcap/build/grammar.y"
3529
17
                                { (yyval.blk).mtp3fieldtype = MH_SLS; }
3530
17
#line 3531 "/src/libpcap/build/grammar.c"
3531
17
    break;
3532
3533
42
  case 218:
3534
42
#line 914 "/src/libpcap/build/grammar.y"
3535
42
                                { CHECK_PTR_VAL(((yyval.blk).b = gen_mtp3field_code(cstate, (yyvsp[-2].blk).mtp3fieldtype, (yyvsp[0].h), (yyvsp[-1].i), 0))); }
3536
38
#line 3537 "/src/libpcap/build/grammar.c"
3537
38
    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
65
#line 3543 "/src/libpcap/build/grammar.c"
3543
65
    break;
3544
3545
65
  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
616
  case 221:
3552
616
#line 918 "/src/libpcap/build/grammar.y"
3553
616
                    {
3554
616
  (yyval.blk).mtp3fieldtype = (yyvsp[-1].blk).mtp3fieldtype;
3555
616
  if ((yyval.blk).mtp3fieldtype == M_SIO ||
3556
498
      (yyval.blk).mtp3fieldtype == M_OPC ||
3557
439
      (yyval.blk).mtp3fieldtype == M_DPC ||
3558
380
      (yyval.blk).mtp3fieldtype == M_SLS ||
3559
283
      (yyval.blk).mtp3fieldtype == MH_SIO ||
3560
208
      (yyval.blk).mtp3fieldtype == MH_OPC ||
3561
144
      (yyval.blk).mtp3fieldtype == MH_DPC ||
3562
82
      (yyval.blk).mtp3fieldtype == MH_SLS)
3563
616
    CHECK_PTR_VAL(((yyval.blk).b = gen_mtp3field_code(cstate, (yyval.blk).mtp3fieldtype, (yyvsp[0].h), BPF_JEQ, 0)));
3564
616
  }
3565
532
#line 3566 "/src/libpcap/build/grammar.c"
3566
532
    break;
3567
3568
532
  case 223:
3569
370
#line 932 "/src/libpcap/build/grammar.y"
3570
370
                                          { (yyvsp[0].blk).b = gen_or((yyvsp[-2].blk).b, (yyvsp[0].blk).b); (yyval.blk) = (yyvsp[0].blk); }
3571
370
#line 3572 "/src/libpcap/build/grammar.c"
3572
370
    break;
3573
3574
3575
0
#line 3576 "/src/libpcap/build/grammar.c"
3576
3577
111k
      default: break;
3578
321k
    }
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
318k
  YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc);
3591
3592
318k
  YYPOPSTACK (yylen);
3593
318k
  yylen = 0;
3594
318k
  YY_STACK_PRINT (yyss, yyssp);
3595
3596
318k
  *++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
318k
  {
3602
318k
    const int yylhs = yyr1[yyn] - YYNTOKENS;
3603
318k
    const int yyi = yypgoto[yylhs] + *yyssp;
3604
318k
    yystate = (0 <= yyi && yyi <= YYLAST && yycheck[yyi] == *yyssp
3605
318k
               ? yytable[yyi]
3606
318k
               : yydefgoto[yylhs]);
3607
318k
  }
3608
3609
318k
  goto yynewstate;
3610
3611
3612
/*--------------------------------------.
3613
| yyerrlab -- here on detecting error.  |
3614
`--------------------------------------*/
3615
1.95k
yyerrlab:
3616
  /* Make sure we have latest lookahead translation.  See comments at
3617
     user semantic actions for why this is necessary.  */
3618
1.95k
  yytoken = yychar == YYEMPTY ? YYEMPTY : YYTRANSLATE (yychar);
3619
3620
  /* If not already recovering from an error, report this error.  */
3621
1.95k
  if (!yyerrstatus)
3622
1.95k
    {
3623
1.95k
      ++yynerrs;
3624
1.95k
#if ! YYERROR_VERBOSE
3625
1.95k
      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.95k
    }
3659
3660
3661
3662
1.95k
  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.95k
  goto yyerrlab1;
3684
3685
3686
/*---------------------------------------------------.
3687
| yyerrorlab -- error raised explicitly by YYERROR.  |
3688
`---------------------------------------------------*/
3689
1.95k
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.95k
yyerrlab1:
3708
1.95k
  yyerrstatus = 3;      /* Each real token shifted decrements this.  */
3709
3710
1.95k
  for (;;)
3711
9.75k
    {
3712
9.75k
      yyn = yypact[yystate];
3713
9.75k
      if (!yypact_value_is_default (yyn))
3714
7.79k
        {
3715
7.79k
          yyn += YYTERROR;
3716
7.79k
          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.79k
        }
3723
3724
      /* Pop the current state because it cannot handle the error token.  */
3725
9.75k
      if (yyssp == yyss)
3726
1.95k
        YYABORT;
3727
3728
3729
7.79k
      yydestruct ("Error: popping",
3730
7.79k
                  yystos[yystate], yyvsp, yyscanner, cstate);
3731
7.79k
      YYPOPSTACK (1);
3732
7.79k
      yystate = *yyssp;
3733
7.79k
      YY_STACK_PRINT (yyss, yyssp);
3734
7.79k
    }
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.71k
yyacceptlab:
3752
8.71k
  yyresult = 0;
3753
8.71k
  goto yyreturn;
3754
3755
3756
/*-----------------------------------.
3757
| yyabortlab -- YYABORT comes here.  |
3758
`-----------------------------------*/
3759
4.59k
yyabortlab:
3760
4.59k
  yyresult = 1;
3761
4.59k
  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
13.3k
yyreturn:
3779
13.3k
  if (yychar != YYEMPTY)
3780
2.41k
    {
3781
      /* Make sure we have latest lookahead translation.  See comments at
3782
         user semantic actions for why this is necessary.  */
3783
2.41k
      yytoken = YYTRANSLATE (yychar);
3784
2.41k
      yydestruct ("Cleanup: discarding lookahead",
3785
2.41k
                  yytoken, &yylval, yyscanner, cstate);
3786
2.41k
    }
3787
  /* Do not reclaim the symbols of the rule whose action triggered
3788
     this YYABORT or YYACCEPT.  */
3789
13.3k
  YYPOPSTACK (yylen);
3790
13.3k
  YY_STACK_PRINT (yyss, yyssp);
3791
38.4k
  while (yyssp != yyss)
3792
25.0k
    {
3793
25.0k
      yydestruct ("Cleanup: popping",
3794
25.0k
                  yystos[+*yyssp], yyvsp, yyscanner, cstate);
3795
25.0k
      YYPOPSTACK (1);
3796
25.0k
    }
3797
13.3k
#ifndef yyoverflow
3798
13.3k
  if (yyss != yyssa)
3799
8
    YYSTACK_FREE (yyss);
3800
13.3k
#endif
3801
#if YYERROR_VERBOSE
3802
  if (yymsg != yymsgbuf)
3803
    YYSTACK_FREE (yymsg);
3804
#endif
3805
13.3k
  return yyresult;
3806
0
}
3807
#line 934 "/src/libpcap/build/grammar.y"
3808