Coverage Report

Created: 2026-04-12 06:37

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
147k
#define yylex           pcap_lex
69
1.64k
#define yyerror         pcap_error
70
#define yydebug         pcap_debug
71
18.5k
#define yynerrs         pcap_nerrs
72
73
/* First part of user prologue.  */
74
#line 47 "/src/libpcap/build/grammar.y"
75
76
/*
77
 * Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996
78
 *  The Regents of the University of California.  All rights reserved.
79
 *
80
 * Redistribution and use in source and binary forms, with or without
81
 * modification, are permitted provided that: (1) source code distributions
82
 * retain the above copyright notice and this paragraph in its entirety, (2)
83
 * distributions including binary code include the above copyright notice and
84
 * this paragraph in its entirety in the documentation or other materials
85
 * provided with the distribution, and (3) all advertising materials mentioning
86
 * features or use of this software display the following acknowledgement:
87
 * ``This product includes software developed by the University of California,
88
 * Lawrence Berkeley Laboratory and its contributors.'' Neither the name of
89
 * the University nor the names of its contributors may be used to endorse
90
 * or promote products derived from this software without specific prior
91
 * written permission.
92
 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
93
 * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
94
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
95
 *
96
 */
97
98
#include <config.h>
99
100
/*
101
 * grammar.h requires gencode.h and sometimes breaks in a polluted namespace
102
 * (see ftmacros.h), so include it early.
103
 */
104
#include "gencode.h"
105
#include "grammar.h"
106
107
#include <stdlib.h>
108
109
#include <stdio.h>
110
111
#include "diag-control.h"
112
113
#include "pcap-int.h"
114
115
#include "scanner.h"
116
117
#include "llc.h"
118
#include "ieee80211.h"
119
#include "pflog.h"
120
#include <pcap/namedb.h>
121
122
#ifdef HAVE_OS_PROTO_H
123
#include "os-proto.h"
124
#endif
125
126
/*
127
 * Work around some bugs in Berkeley YACC prior to the 2017-07-09
128
 * release.
129
 *
130
 * The 2005-05-05 release was the first one to define YYPATCH, so
131
 * we treat any release that either 1) doesn't define YYPATCH or
132
 * 2) defines it to a value < 20170709 as being buggy.
133
 */
134
#if defined(YYBYACC) && (!defined(YYPATCH) || YYPATCH < 20170709)
135
/*
136
 * Both Berkeley YACC and Bison define yydebug (under whatever name
137
 * it has) as a global, but Bison does so only if YYDEBUG is defined.
138
 * Berkeley YACC, prior to the 2017-07-09 release, defines it even if
139
 * YYDEBUG isn't defined; declare it here to suppress a warning.  The
140
 * 2017-07-09 release fixes that.
141
 */
142
#if !defined(YYDEBUG)
143
extern int yydebug;
144
#endif
145
146
/*
147
 * In Berkeley YACC, prior to the 2017-07-09 release, yynerrs (under
148
 * whatever name it has) is global, even if it's building a reentrant
149
 * parser.  In Bison, and in the Berkeley YACC 2017-07-09 release and
150
 * later, it's local in reentrant parsers.
151
 *
152
 * Declare it to squelch a warning.
153
 */
154
extern int yynerrs;
155
#endif
156
157
4.38k
#define QSET(q, p, d, a) (q).proto = (unsigned char)(p),\
158
4.38k
       (q).dir = (unsigned char)(d),\
159
4.38k
       (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
458
{
257
458
  int i;
258
259
2.45k
  for (i = 0; toks[i].s != NULL; i++) {
260
2.21k
    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
214
      if (toks[i].v == -1)
268
0
        abort();
269
214
      return (toks[i].v);
270
214
    }
271
2.21k
  }
272
244
  return (-1);
273
458
}
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.64k
{
280
1.64k
  bpf_set_error(cstate, "can't parse filter expression: %s", msg);
281
1.64k
}
282
283
static const struct tok pflog_reasons[] = {
284
  { PFRES_MATCH,    "match" },
285
  { PFRES_BADOFF,   "bad-offset" },
286
  { PFRES_FRAG,   "fragment" },
287
  { PFRES_SHORT,    "short" },
288
  { PFRES_NORM,   "normalize" },
289
  { PFRES_MEMORY,   "memory" },
290
  { PFRES_TS,   "bad-timestamp" },
291
  { PFRES_CONGEST,  "congestion" },
292
  { PFRES_IPOPTIONS,  "ip-option" },
293
  { PFRES_PROTCKSUM,  "proto-cksum" },
294
  { PFRES_BADSTATE, "state-mismatch" },
295
  { PFRES_STATEINS, "state-insert" },
296
  { PFRES_MAXSTATES,  "state-limit" },
297
  { PFRES_SRCLIMIT, "src-limit" },
298
  { PFRES_SYNPROXY, "synproxy" },
299
#if defined(__FreeBSD__)
300
  { PFRES_MAPFAILED,  "map-failed" },
301
#elif defined(__NetBSD__)
302
  { PFRES_STATELOCKED,  "state-locked" },
303
#elif defined(__OpenBSD__)
304
  { PFRES_TRANSLATE,  "translate" },
305
  { PFRES_NOROUTE,  "no-route" },
306
#elif defined(__APPLE__)
307
  { PFRES_DUMMYNET, "dummynet" },
308
#endif
309
  { 0, NULL }
310
};
311
312
static int
313
pfreason_to_num(compiler_state_t *cstate, const char *reason)
314
7
{
315
7
  int i;
316
317
7
  i = str2tok(reason, pflog_reasons);
318
7
  if (i == -1)
319
7
    bpf_set_error(cstate, "unknown PF reason \"%s\"", reason);
320
7
  return (i);
321
7
}
322
323
static const struct tok pflog_actions[] = {
324
  { PF_PASS,    "pass" },
325
  { PF_PASS,    "accept" }, /* alias for "pass" */
326
  { PF_DROP,    "drop" },
327
  { PF_DROP,    "block" },  /* alias for "drop" */
328
  { PF_SCRUB,   "scrub" },
329
  { PF_NOSCRUB,   "noscrub" },
330
  { PF_NAT,   "nat" },
331
  { PF_NONAT,   "nonat" },
332
  { PF_BINAT,   "binat" },
333
  { PF_NOBINAT,   "nobinat" },
334
  { PF_RDR,   "rdr" },
335
  { PF_NORDR,   "nordr" },
336
  { PF_SYNPROXY_DROP, "synproxy-drop" },
337
#if defined(__FreeBSD__)
338
  { PF_DEFER,   "defer" },
339
#elif defined(__OpenBSD__)
340
  { PF_DEFER,   "defer" },
341
  { PF_MATCH,   "match" },
342
  { PF_DIVERT,    "divert" },
343
  { PF_RT,    "rt" },
344
  { PF_AFRT,    "afrt" },
345
#elif defined(__APPLE__)
346
  { PF_DUMMYNET,    "dummynet" },
347
  { PF_NODUMMYNET,  "nodummynet" },
348
  { PF_NAT64,   "nat64" },
349
  { PF_NONAT64,   "nonat64" },
350
#endif
351
  { 0, NULL },
352
};
353
354
static int
355
pfaction_to_num(compiler_state_t *cstate, const char *action)
356
9
{
357
9
  int i;
358
359
9
  i = str2tok(action, pflog_actions);
360
9
  if (i == -1)
361
4
    bpf_set_error(cstate, "unknown PF action \"%s\"", action);
362
9
  return (i);
363
9
}
364
365
/*
366
 * For calls that might return an "an error occurred" value.
367
 */
368
5.73k
#define CHECK_INT_VAL(val)  if (val == -1) YYABORT
369
95.4k
#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
456k
#   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
11.2k
#  define YYPTRDIFF_T __PTRDIFF_TYPE__
643
#  define YYPTRDIFF_MAXIMUM __PTRDIFF_MAX__
644
# elif defined PTRDIFF_MAX
645
#  ifndef ptrdiff_t
646
#   include <stddef.h> /* INFRINGES ON USER NAME SPACE */
647
#  endif
648
#  define YYPTRDIFF_T ptrdiff_t
649
#  define YYPTRDIFF_MAXIMUM PTRDIFF_MAX
650
# else
651
#  define YYPTRDIFF_T long
652
#  define YYPTRDIFF_MAXIMUM LONG_MAX
653
# endif
654
#endif
655
656
#ifndef YYSIZE_T
657
# ifdef __SIZE_TYPE__
658
#  define YYSIZE_T __SIZE_TYPE__
659
# elif defined size_t
660
#  define YYSIZE_T size_t
661
# elif defined __STDC_VERSION__ && 199901 <= __STDC_VERSION__
662
#  include <stddef.h> /* INFRINGES ON USER NAME SPACE */
663
#  define YYSIZE_T size_t
664
# else
665
#  define YYSIZE_T unsigned
666
# endif
667
#endif
668
669
#define YYSIZE_MAXIMUM                                  \
670
  YY_CAST (YYPTRDIFF_T,                                 \
671
           (YYPTRDIFF_MAXIMUM < YY_CAST (YYSIZE_T, -1)  \
672
            ? YYPTRDIFF_MAXIMUM                         \
673
            : YY_CAST (YYSIZE_T, -1)))
674
675
36
#define YYSIZEOF(X) YY_CAST (YYPTRDIFF_T, sizeof (X))
676
677
/* Stored state numbers (used for stacks). */
678
typedef yytype_int16 yy_state_t;
679
680
/* State numbers in computations.  */
681
typedef int yy_state_fast_t;
682
683
#ifndef YY_
684
# if defined YYENABLE_NLS && YYENABLE_NLS
685
#  if ENABLE_NLS
686
#   include <libintl.h> /* INFRINGES ON USER NAME SPACE */
687
#   define YY_(Msgid) dgettext ("bison-runtime", Msgid)
688
#  endif
689
# endif
690
# ifndef YY_
691
1.64k
#  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
117k
# 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
22.3k
# 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
456k
#define YY_ASSERT(E) ((void) (0 && (E)))
751
752
#if ! defined yyoverflow || YYERROR_VERBOSE
753
754
/* The parser invokes alloca or malloc; define the necessary symbols.  */
755
756
# ifdef YYSTACK_USE_ALLOCA
757
#  if YYSTACK_USE_ALLOCA
758
#   ifdef __GNUC__
759
#    define YYSTACK_ALLOC __builtin_alloca
760
#   elif defined __BUILTIN_VA_ARG_INCR
761
#    include <alloca.h> /* INFRINGES ON USER NAME SPACE */
762
#   elif defined _AIX
763
#    define YYSTACK_ALLOC __alloca
764
#   elif defined _MSC_VER
765
#    include <malloc.h> /* INFRINGES ON USER NAME SPACE */
766
#    define alloca _alloca
767
#   else
768
#    define YYSTACK_ALLOC alloca
769
#    if ! defined _ALLOCA_H && ! defined EXIT_SUCCESS
770
#     include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
771
      /* Use EXIT_SUCCESS as a witness for stdlib.h.  */
772
#     ifndef EXIT_SUCCESS
773
#      define EXIT_SUCCESS 0
774
#     endif
775
#    endif
776
#   endif
777
#  endif
778
# endif
779
780
# ifdef YYSTACK_ALLOC
781
   /* Pacify GCC's 'empty if-body' warning.  */
782
#  define YYSTACK_FREE(Ptr) do { /* empty */; } while (0)
783
#  ifndef YYSTACK_ALLOC_MAXIMUM
784
    /* The OS might guarantee only one guard page at the bottom of the stack,
785
       and a page size can be as small as 4096 bytes.  So we cannot safely
786
       invoke alloca (N) if N exceeds 4096.  Use a slightly smaller number
787
       to allow for a few compiler-allocated temporary stack slots.  */
788
#   define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */
789
#  endif
790
# else
791
#  define YYSTACK_ALLOC YYMALLOC
792
6
#  define YYSTACK_FREE YYFREE
793
#  ifndef YYSTACK_ALLOC_MAXIMUM
794
#   define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM
795
#  endif
796
#  if (defined __cplusplus && ! defined EXIT_SUCCESS \
797
       && ! ((defined YYMALLOC || defined malloc) \
798
             && (defined YYFREE || defined free)))
799
#   include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
800
#   ifndef EXIT_SUCCESS
801
#    define EXIT_SUCCESS 0
802
#   endif
803
#  endif
804
#  ifndef YYMALLOC
805
#   define YYMALLOC malloc
806
#   if ! defined malloc && ! defined EXIT_SUCCESS
807
void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */
808
#   endif
809
#  endif
810
#  ifndef YYFREE
811
6
#   define YYFREE free
812
#   if ! defined free && ! defined EXIT_SUCCESS
813
void free (void *); /* INFRINGES ON USER NAME SPACE */
814
#   endif
815
#  endif
816
# endif
817
#endif /* ! defined yyoverflow || YYERROR_VERBOSE */
818
819
820
#if (! defined yyoverflow \
821
     && (! defined __cplusplus \
822
         || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))
823
824
/* A type that is properly aligned for any stack member.  */
825
union yyalloc
826
{
827
  yy_state_t yyss_alloc;
828
  YYSTYPE yyvs_alloc;
829
};
830
831
/* The size of the maximum gap between one aligned stack and the next.  */
832
12
# define YYSTACK_GAP_MAXIMUM (YYSIZEOF (union yyalloc) - 1)
833
834
/* The size of an array large to enough to hold all stacks, each with
835
   N elements.  */
836
# define YYSTACK_BYTES(N) \
837
     ((N) * (YYSIZEOF (yy_state_t) + YYSIZEOF (YYSTYPE)) \
838
      + YYSTACK_GAP_MAXIMUM)
839
840
# define YYCOPY_NEEDED 1
841
842
/* Relocate STACK from its old location to the new one.  The
843
   local variables YYSIZE and YYSTACKSIZE give the old and new number of
844
   elements in the stack, and YYPTR gives the new location of the
845
   stack.  Advance YYPTR to a properly aligned location for the next
846
   stack.  */
847
# define YYSTACK_RELOCATE(Stack_alloc, Stack)                           \
848
12
    do                                                                  \
849
12
      {                                                                 \
850
12
        YYPTRDIFF_T yynewbytes;                                         \
851
12
        YYCOPY (&yyptr->Stack_alloc, Stack, yysize);                    \
852
12
        Stack = &yyptr->Stack_alloc;                                    \
853
12
        yynewbytes = yystacksize * YYSIZEOF (*Stack) + YYSTACK_GAP_MAXIMUM; \
854
12
        yyptr += yynewbytes / YYSIZEOF (*yyptr);                        \
855
12
      }                                                                 \
856
12
    while (0)
857
858
#endif
859
860
#if defined YYCOPY_NEEDED && YYCOPY_NEEDED
861
/* Copy COUNT objects from SRC to DST.  The source and destination do
862
   not overlap.  */
863
# ifndef YYCOPY
864
#  if defined __GNUC__ && 1 < __GNUC__
865
#   define YYCOPY(Dst, Src, Count) \
866
12
      __builtin_memcpy (Dst, Src, YY_CAST (YYSIZE_T, (Count)) * sizeof (*(Src)))
867
#  else
868
#   define YYCOPY(Dst, Src, Count)              \
869
      do                                        \
870
        {                                       \
871
          YYPTRDIFF_T yyi;                      \
872
          for (yyi = 0; yyi < (Count); yyi++)   \
873
            (Dst)[yyi] = (Src)[yyi];            \
874
        }                                       \
875
      while (0)
876
#  endif
877
# endif
878
#endif /* !YYCOPY_NEEDED */
879
880
/* YYFINAL -- State number of the termination state.  */
881
456k
#define YYFINAL  3
882
/* YYLAST -- Last index in YYTABLE.  */
883
715k
#define YYLAST   773
884
885
/* YYNTOKENS -- Number of terminals.  */
886
299k
#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
195k
#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
196k
  (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
456k
#define YYPACT_NINF (-215)
1033
1034
#define yypact_value_is_default(Yyn) \
1035
456k
  ((Yyn) == YYPACT_NINF)
1036
1037
#define YYTABLE_NINF (-42)
1038
1039
#define yytable_value_is_error(Yyn) \
1040
14.5k
  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
384k
#define YYEMPTY         (-2)
1398
237k
#define YYEOF           0
1399
1400
7.29k
#define YYACCEPT        goto yyacceptlab
1401
3.89k
#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
11.6k
#define YYTERROR        1
1426
#define YYERRCODE       256
1427
1428
1429
1430
/* Enable debugging if requested.  */
1431
#if YYDEBUG
1432
1433
# ifndef YYFPRINTF
1434
#  include <stdio.h> /* INFRINGES ON USER NAME SPACE */
1435
#  define YYFPRINTF fprintf
1436
# endif
1437
1438
# define YYDPRINTF(Args)                        \
1439
do {                                            \
1440
  if (yydebug)                                  \
1441
    YYFPRINTF Args;                             \
1442
} while (0)
1443
1444
/* This macro is provided for backward compatibility. */
1445
#ifndef YY_LOCATION_PRINT
1446
# define YY_LOCATION_PRINT(File, Loc) ((void) 0)
1447
#endif
1448
1449
1450
# define YY_SYMBOL_PRINT(Title, Type, Value, Location)                    \
1451
do {                                                                      \
1452
  if (yydebug)                                                            \
1453
    {                                                                     \
1454
      YYFPRINTF (stderr, "%s ", Title);                                   \
1455
      yy_symbol_print (stderr,                                            \
1456
                  Type, Value, yyscanner, cstate); \
1457
      YYFPRINTF (stderr, "\n");                                           \
1458
    }                                                                     \
1459
} while (0)
1460
1461
1462
/*-----------------------------------.
1463
| Print this symbol's value on YYO.  |
1464
`-----------------------------------*/
1465
1466
static void
1467
yy_symbol_value_print (FILE *yyo, int yytype, YYSTYPE const * const yyvaluep, void *yyscanner, compiler_state_t *cstate)
1468
{
1469
  FILE *yyoutput = yyo;
1470
  YYUSE (yyoutput);
1471
  YYUSE (yyscanner);
1472
  YYUSE (cstate);
1473
  if (!yyvaluep)
1474
    return;
1475
# ifdef YYPRINT
1476
  if (yytype < YYNTOKENS)
1477
    YYPRINT (yyo, yytoknum[yytype], *yyvaluep);
1478
# endif
1479
  YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
1480
  YYUSE (yytype);
1481
  YY_IGNORE_MAYBE_UNINITIALIZED_END
1482
}
1483
1484
1485
/*---------------------------.
1486
| Print this symbol on YYO.  |
1487
`---------------------------*/
1488
1489
static void
1490
yy_symbol_print (FILE *yyo, int yytype, YYSTYPE const * const yyvaluep, void *yyscanner, compiler_state_t *cstate)
1491
{
1492
  YYFPRINTF (yyo, "%s %s (",
1493
             yytype < YYNTOKENS ? "token" : "nterm", yytname[yytype]);
1494
1495
  yy_symbol_value_print (yyo, yytype, yyvaluep, yyscanner, cstate);
1496
  YYFPRINTF (yyo, ")");
1497
}
1498
1499
/*------------------------------------------------------------------.
1500
| yy_stack_print -- Print the state stack from its BOTTOM up to its |
1501
| TOP (included).                                                   |
1502
`------------------------------------------------------------------*/
1503
1504
static void
1505
yy_stack_print (yy_state_t *yybottom, yy_state_t *yytop)
1506
{
1507
  YYFPRINTF (stderr, "Stack now");
1508
  for (; yybottom <= yytop; yybottom++)
1509
    {
1510
      int yybot = *yybottom;
1511
      YYFPRINTF (stderr, " %d", yybot);
1512
    }
1513
  YYFPRINTF (stderr, "\n");
1514
}
1515
1516
# define YY_STACK_PRINT(Bottom, Top)                            \
1517
do {                                                            \
1518
  if (yydebug)                                                  \
1519
    yy_stack_print ((Bottom), (Top));                           \
1520
} while (0)
1521
1522
1523
/*------------------------------------------------.
1524
| Report that the YYRULE is going to be reduced.  |
1525
`------------------------------------------------*/
1526
1527
static void
1528
yy_reduce_print (yy_state_t *yyssp, YYSTYPE *yyvsp, int yyrule, void *yyscanner, compiler_state_t *cstate)
1529
{
1530
  int yylno = yyrline[yyrule];
1531
  int yynrhs = yyr2[yyrule];
1532
  int yyi;
1533
  YYFPRINTF (stderr, "Reducing stack by rule %d (line %d):\n",
1534
             yyrule - 1, yylno);
1535
  /* The symbols being reduced.  */
1536
  for (yyi = 0; yyi < yynrhs; yyi++)
1537
    {
1538
      YYFPRINTF (stderr, "   $%d = ", yyi + 1);
1539
      yy_symbol_print (stderr,
1540
                       yystos[+yyssp[yyi + 1 - yynrhs]],
1541
                       &yyvsp[(yyi + 1) - (yynrhs)]
1542
                                              , yyscanner, cstate);
1543
      YYFPRINTF (stderr, "\n");
1544
    }
1545
}
1546
1547
# define YY_REDUCE_PRINT(Rule)          \
1548
do {                                    \
1549
  if (yydebug)                          \
1550
    yy_reduce_print (yyssp, yyvsp, Rule, yyscanner, cstate); \
1551
} while (0)
1552
1553
/* Nonzero means print parse trace.  It is left uninitialized so that
1554
   multiple parsers can coexist.  */
1555
int yydebug;
1556
#else /* !YYDEBUG */
1557
# define YYDPRINTF(Args)
1558
# define YY_SYMBOL_PRINT(Title, Type, Value, Location)
1559
# define YY_STACK_PRINT(Bottom, Top)
1560
# define YY_REDUCE_PRINT(Rule)
1561
#endif /* !YYDEBUG */
1562
1563
1564
/* YYINITDEPTH -- initial size of the parser's stacks.  */
1565
#ifndef YYINITDEPTH
1566
11.1k
# define YYINITDEPTH 200
1567
#endif
1568
1569
/* YYMAXDEPTH -- maximum size the stacks can grow to (effective only
1570
   if the built-in stack extension method is used).
1571
1572
   Do not make this value too large; the results are undefined if
1573
   YYSTACK_ALLOC_MAXIMUM < YYSTACK_BYTES (YYMAXDEPTH)
1574
   evaluated with infinite-precision integer arithmetic.  */
1575
1576
#ifndef YYMAXDEPTH
1577
12
# define YYMAXDEPTH 10000
1578
#endif
1579
1580
1581
#if YYERROR_VERBOSE
1582
1583
# ifndef yystrlen
1584
#  if defined __GLIBC__ && defined _STRING_H
1585
#   define yystrlen(S) (YY_CAST (YYPTRDIFF_T, strlen (S)))
1586
#  else
1587
/* Return the length of YYSTR.  */
1588
static YYPTRDIFF_T
1589
yystrlen (const char *yystr)
1590
{
1591
  YYPTRDIFF_T yylen;
1592
  for (yylen = 0; yystr[yylen]; yylen++)
1593
    continue;
1594
  return yylen;
1595
}
1596
#  endif
1597
# endif
1598
1599
# ifndef yystpcpy
1600
#  if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE
1601
#   define yystpcpy stpcpy
1602
#  else
1603
/* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in
1604
   YYDEST.  */
1605
static char *
1606
yystpcpy (char *yydest, const char *yysrc)
1607
{
1608
  char *yyd = yydest;
1609
  const char *yys = yysrc;
1610
1611
  while ((*yyd++ = *yys++) != '\0')
1612
    continue;
1613
1614
  return yyd - 1;
1615
}
1616
#  endif
1617
# endif
1618
1619
# ifndef yytnamerr
1620
/* Copy to YYRES the contents of YYSTR after stripping away unnecessary
1621
   quotes and backslashes, so that it's suitable for yyerror.  The
1622
   heuristic is that double-quoting is unnecessary unless the string
1623
   contains an apostrophe, a comma, or backslash (other than
1624
   backslash-backslash).  YYSTR is taken from yytname.  If YYRES is
1625
   null, do not copy; instead, return the length of what the result
1626
   would have been.  */
1627
static YYPTRDIFF_T
1628
yytnamerr (char *yyres, const char *yystr)
1629
{
1630
  if (*yystr == '"')
1631
    {
1632
      YYPTRDIFF_T yyn = 0;
1633
      char const *yyp = yystr;
1634
1635
      for (;;)
1636
        switch (*++yyp)
1637
          {
1638
          case '\'':
1639
          case ',':
1640
            goto do_not_strip_quotes;
1641
1642
          case '\\':
1643
            if (*++yyp != '\\')
1644
              goto do_not_strip_quotes;
1645
            else
1646
              goto append;
1647
1648
          append:
1649
          default:
1650
            if (yyres)
1651
              yyres[yyn] = *yyp;
1652
            yyn++;
1653
            break;
1654
1655
          case '"':
1656
            if (yyres)
1657
              yyres[yyn] = '\0';
1658
            return yyn;
1659
          }
1660
    do_not_strip_quotes: ;
1661
    }
1662
1663
  if (yyres)
1664
    return yystpcpy (yyres, yystr) - yyres;
1665
  else
1666
    return yystrlen (yystr);
1667
}
1668
# endif
1669
1670
/* Copy into *YYMSG, which is of size *YYMSG_ALLOC, an error message
1671
   about the unexpected token YYTOKEN for the state stack whose top is
1672
   YYSSP.
1673
1674
   Return 0 if *YYMSG was successfully written.  Return 1 if *YYMSG is
1675
   not large enough to hold the message.  In that case, also set
1676
   *YYMSG_ALLOC to the required number of bytes.  Return 2 if the
1677
   required number of bytes is too large to store.  */
1678
static int
1679
yysyntax_error (YYPTRDIFF_T *yymsg_alloc, char **yymsg,
1680
                yy_state_t *yyssp, int yytoken)
1681
{
1682
  enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 };
1683
  /* Internationalized format string. */
1684
  const char *yyformat = YY_NULLPTR;
1685
  /* Arguments of yyformat: reported tokens (one for the "unexpected",
1686
     one per "expected"). */
1687
  char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
1688
  /* Actual size of YYARG. */
1689
  int yycount = 0;
1690
  /* Cumulated lengths of YYARG.  */
1691
  YYPTRDIFF_T yysize = 0;
1692
1693
  /* There are many possibilities here to consider:
1694
     - If this state is a consistent state with a default action, then
1695
       the only way this function was invoked is if the default action
1696
       is an error action.  In that case, don't check for expected
1697
       tokens because there are none.
1698
     - The only way there can be no lookahead present (in yychar) is if
1699
       this state is a consistent state with a default action.  Thus,
1700
       detecting the absence of a lookahead is sufficient to determine
1701
       that there is no unexpected or expected token to report.  In that
1702
       case, just report a simple "syntax error".
1703
     - Don't assume there isn't a lookahead just because this state is a
1704
       consistent state with a default action.  There might have been a
1705
       previous inconsistent state, consistent state with a non-default
1706
       action, or user semantic action that manipulated yychar.
1707
     - Of course, the expected token list depends on states to have
1708
       correct lookahead information, and it depends on the parser not
1709
       to perform extra reductions after fetching a lookahead from the
1710
       scanner and before detecting a syntax error.  Thus, state merging
1711
       (from LALR or IELR) and default reductions corrupt the expected
1712
       token list.  However, the list is correct for canonical LR with
1713
       one exception: it will still contain any token that will not be
1714
       accepted due to an error action in a later state.
1715
  */
1716
  if (yytoken != YYEMPTY)
1717
    {
1718
      int yyn = yypact[+*yyssp];
1719
      YYPTRDIFF_T yysize0 = yytnamerr (YY_NULLPTR, yytname[yytoken]);
1720
      yysize = yysize0;
1721
      yyarg[yycount++] = yytname[yytoken];
1722
      if (!yypact_value_is_default (yyn))
1723
        {
1724
          /* Start YYX at -YYN if negative to avoid negative indexes in
1725
             YYCHECK.  In other words, skip the first -YYN actions for
1726
             this state because they are default actions.  */
1727
          int yyxbegin = yyn < 0 ? -yyn : 0;
1728
          /* Stay within bounds of both yycheck and yytname.  */
1729
          int yychecklim = YYLAST - yyn + 1;
1730
          int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS;
1731
          int yyx;
1732
1733
          for (yyx = yyxbegin; yyx < yyxend; ++yyx)
1734
            if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR
1735
                && !yytable_value_is_error (yytable[yyx + yyn]))
1736
              {
1737
                if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM)
1738
                  {
1739
                    yycount = 1;
1740
                    yysize = yysize0;
1741
                    break;
1742
                  }
1743
                yyarg[yycount++] = yytname[yyx];
1744
                {
1745
                  YYPTRDIFF_T yysize1
1746
                    = yysize + yytnamerr (YY_NULLPTR, yytname[yyx]);
1747
                  if (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM)
1748
                    yysize = yysize1;
1749
                  else
1750
                    return 2;
1751
                }
1752
              }
1753
        }
1754
    }
1755
1756
  switch (yycount)
1757
    {
1758
# define YYCASE_(N, S)                      \
1759
      case N:                               \
1760
        yyformat = S;                       \
1761
      break
1762
    default: /* Avoid compiler warnings. */
1763
      YYCASE_(0, YY_("syntax error"));
1764
      YYCASE_(1, YY_("syntax error, unexpected %s"));
1765
      YYCASE_(2, YY_("syntax error, unexpected %s, expecting %s"));
1766
      YYCASE_(3, YY_("syntax error, unexpected %s, expecting %s or %s"));
1767
      YYCASE_(4, YY_("syntax error, unexpected %s, expecting %s or %s or %s"));
1768
      YYCASE_(5, YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s"));
1769
# undef YYCASE_
1770
    }
1771
1772
  {
1773
    /* Don't count the "%s"s in the final size, but reserve room for
1774
       the terminator.  */
1775
    YYPTRDIFF_T yysize1 = yysize + (yystrlen (yyformat) - 2 * yycount) + 1;
1776
    if (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM)
1777
      yysize = yysize1;
1778
    else
1779
      return 2;
1780
  }
1781
1782
  if (*yymsg_alloc < yysize)
1783
    {
1784
      *yymsg_alloc = 2 * yysize;
1785
      if (! (yysize <= *yymsg_alloc
1786
             && *yymsg_alloc <= YYSTACK_ALLOC_MAXIMUM))
1787
        *yymsg_alloc = YYSTACK_ALLOC_MAXIMUM;
1788
      return 1;
1789
    }
1790
1791
  /* Avoid sprintf, as that infringes on the user's name space.
1792
     Don't have undefined behavior even if the translation
1793
     produced a string with the wrong number of "%s"s.  */
1794
  {
1795
    char *yyp = *yymsg;
1796
    int yyi = 0;
1797
    while ((*yyp = *yyformat) != '\0')
1798
      if (*yyp == '%' && yyformat[1] == 's' && yyi < yycount)
1799
        {
1800
          yyp += yytnamerr (yyp, yyarg[yyi++]);
1801
          yyformat += 2;
1802
        }
1803
      else
1804
        {
1805
          ++yyp;
1806
          ++yyformat;
1807
        }
1808
  }
1809
  return 0;
1810
}
1811
#endif /* YYERROR_VERBOSE */
1812
1813
/*-----------------------------------------------.
1814
| Release the memory associated to this symbol.  |
1815
`-----------------------------------------------*/
1816
1817
static void
1818
yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep, void *yyscanner, compiler_state_t *cstate)
1819
29.3k
{
1820
29.3k
  YYUSE (yyvaluep);
1821
29.3k
  YYUSE (yyscanner);
1822
29.3k
  YYUSE (cstate);
1823
29.3k
  if (!yymsg)
1824
0
    yymsg = "Deleting";
1825
29.3k
  YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp);
1826
1827
29.3k
  YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
1828
29.3k
  YYUSE (yytype);
1829
29.3k
  YY_IGNORE_MAYBE_UNINITIALIZED_END
1830
29.3k
}
1831
1832
1833
1834
1835
/*----------.
1836
| yyparse.  |
1837
`----------*/
1838
1839
int
1840
yyparse (void *yyscanner, compiler_state_t *cstate)
1841
11.1k
{
1842
/* The lookahead symbol.  */
1843
11.1k
int yychar;
1844
1845
1846
/* The semantic value of the lookahead symbol.  */
1847
/* Default value used for initialization, for pacifying older GCCs
1848
   or non-GCC compilers.  */
1849
11.1k
YY_INITIAL_VALUE (static YYSTYPE yyval_default;)
1850
11.1k
YYSTYPE yylval YY_INITIAL_VALUE (= yyval_default);
1851
1852
    /* Number of syntax errors so far.  */
1853
11.1k
    int yynerrs;
1854
1855
11.1k
    yy_state_fast_t yystate;
1856
    /* Number of tokens to shift before error messages enabled.  */
1857
11.1k
    int yyerrstatus;
1858
1859
    /* The stacks and their tools:
1860
       'yyss': related to states.
1861
       'yyvs': related to semantic values.
1862
1863
       Refer to the stacks through separate pointers, to allow yyoverflow
1864
       to reallocate them elsewhere.  */
1865
1866
    /* The state stack.  */
1867
11.1k
    yy_state_t yyssa[YYINITDEPTH];
1868
11.1k
    yy_state_t *yyss;
1869
11.1k
    yy_state_t *yyssp;
1870
1871
    /* The semantic value stack.  */
1872
11.1k
    YYSTYPE yyvsa[YYINITDEPTH];
1873
11.1k
    YYSTYPE *yyvs;
1874
11.1k
    YYSTYPE *yyvsp;
1875
1876
11.1k
    YYPTRDIFF_T yystacksize;
1877
1878
11.1k
  int yyn;
1879
11.1k
  int yyresult;
1880
  /* Lookahead token as an internal (translated) token number.  */
1881
11.1k
  int yytoken = 0;
1882
  /* The variables used to return semantic value and location from the
1883
     action routines.  */
1884
11.1k
  YYSTYPE yyval;
1885
1886
#if YYERROR_VERBOSE
1887
  /* Buffer for error messages, and its allocated size.  */
1888
  char yymsgbuf[128];
1889
  char *yymsg = yymsgbuf;
1890
  YYPTRDIFF_T yymsg_alloc = sizeof yymsgbuf;
1891
#endif
1892
1893
337k
#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
11.1k
  int yylen = 0;
1898
1899
11.1k
  yyssp = yyss = yyssa;
1900
11.1k
  yyvsp = yyvs = yyvsa;
1901
11.1k
  yystacksize = YYINITDEPTH;
1902
1903
11.1k
  YYDPRINTF ((stderr, "Starting parse\n"));
1904
1905
11.1k
  yystate = 0;
1906
11.1k
  yyerrstatus = 0;
1907
11.1k
  yynerrs = 0;
1908
11.1k
  yychar = YYEMPTY; /* Cause a token to be read.  */
1909
11.1k
  goto yysetstate;
1910
1911
1912
/*------------------------------------------------------------.
1913
| yynewstate -- push a new state, which is found in yystate.  |
1914
`------------------------------------------------------------*/
1915
445k
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
445k
  yyssp++;
1919
1920
1921
/*--------------------------------------------------------------------.
1922
| yysetstate -- set current state (the top of the stack) to yystate.  |
1923
`--------------------------------------------------------------------*/
1924
456k
yysetstate:
1925
456k
  YYDPRINTF ((stderr, "Entering state %d\n", yystate));
1926
456k
  YY_ASSERT (0 <= yystate && yystate < YYNSTATES);
1927
456k
  YY_IGNORE_USELESS_CAST_BEGIN
1928
456k
  *yyssp = YY_CAST (yy_state_t, yystate);
1929
456k
  YY_IGNORE_USELESS_CAST_END
1930
1931
456k
  if (yyss + yystacksize - 1 <= yyssp)
1932
#if !defined yyoverflow && !defined YYSTACK_RELOCATE
1933
    goto yyexhaustedlab;
1934
#else
1935
6
    {
1936
      /* Get the current used size of the three stacks, in elements.  */
1937
6
      YYPTRDIFF_T yysize = yyssp - yyss + 1;
1938
1939
# if defined yyoverflow
1940
      {
1941
        /* Give user a chance to reallocate the stack.  Use copies of
1942
           these so that the &'s don't force the real ones into
1943
           memory.  */
1944
        yy_state_t *yyss1 = yyss;
1945
        YYSTYPE *yyvs1 = yyvs;
1946
1947
        /* Each stack pointer address is followed by the size of the
1948
           data in use in that stack, in bytes.  This used to be a
1949
           conditional around just the two extra args, but that might
1950
           be undefined if yyoverflow is a macro.  */
1951
        yyoverflow (YY_("memory exhausted"),
1952
                    &yyss1, yysize * YYSIZEOF (*yyssp),
1953
                    &yyvs1, yysize * YYSIZEOF (*yyvsp),
1954
                    &yystacksize);
1955
        yyss = yyss1;
1956
        yyvs = yyvs1;
1957
      }
1958
# else /* defined YYSTACK_RELOCATE */
1959
      /* Extend the stack our own way.  */
1960
6
      if (YYMAXDEPTH <= yystacksize)
1961
0
        goto yyexhaustedlab;
1962
6
      yystacksize *= 2;
1963
6
      if (YYMAXDEPTH < yystacksize)
1964
0
        yystacksize = YYMAXDEPTH;
1965
1966
6
      {
1967
6
        yy_state_t *yyss1 = yyss;
1968
6
        union yyalloc *yyptr =
1969
6
          YY_CAST (union yyalloc *,
1970
6
                   YYSTACK_ALLOC (YY_CAST (YYSIZE_T, YYSTACK_BYTES (yystacksize))));
1971
6
        if (! yyptr)
1972
0
          goto yyexhaustedlab;
1973
6
        YYSTACK_RELOCATE (yyss_alloc, yyss);
1974
6
        YYSTACK_RELOCATE (yyvs_alloc, yyvs);
1975
6
# undef YYSTACK_RELOCATE
1976
6
        if (yyss1 != yyssa)
1977
0
          YYSTACK_FREE (yyss1);
1978
6
      }
1979
0
# endif
1980
1981
0
      yyssp = yyss + yysize - 1;
1982
6
      yyvsp = yyvs + yysize - 1;
1983
1984
6
      YY_IGNORE_USELESS_CAST_BEGIN
1985
6
      YYDPRINTF ((stderr, "Stack size increased to %ld\n",
1986
6
                  YY_CAST (long, yystacksize)));
1987
6
      YY_IGNORE_USELESS_CAST_END
1988
1989
6
      if (yyss + yystacksize - 1 <= yyssp)
1990
0
        YYABORT;
1991
6
    }
1992
456k
#endif /* !defined yyoverflow && !defined YYSTACK_RELOCATE */
1993
1994
456k
  if (yystate == YYFINAL)
1995
7.29k
    YYACCEPT;
1996
1997
448k
  goto yybackup;
1998
1999
2000
/*-----------.
2001
| yybackup.  |
2002
`-----------*/
2003
448k
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
448k
  yyn = yypact[yystate];
2009
448k
  if (yypact_value_is_default (yyn))
2010
234k
    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
214k
  if (yychar == YYEMPTY)
2016
147k
    {
2017
147k
      YYDPRINTF ((stderr, "Reading a token: "));
2018
147k
      yychar = yylex (&yylval, yyscanner);
2019
147k
    }
2020
2021
214k
  if (yychar <= YYEOF)
2022
23.2k
    {
2023
23.2k
      yychar = yytoken = YYEOF;
2024
23.2k
      YYDPRINTF ((stderr, "Now at end of input.\n"));
2025
23.2k
    }
2026
191k
  else
2027
191k
    {
2028
191k
      yytoken = YYTRANSLATE (yychar);
2029
191k
      YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc);
2030
191k
    }
2031
2032
  /* If the proper action on seeing token YYTOKEN is to reduce or to
2033
     detect an error, take that action.  */
2034
214k
  yyn += yytoken;
2035
214k
  if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken)
2036
54.5k
    goto yydefault;
2037
160k
  yyn = yytable[yyn];
2038
160k
  if (yyn <= 0)
2039
14.5k
    {
2040
14.5k
      if (yytable_value_is_error (yyn))
2041
0
        goto yyerrlab;
2042
14.5k
      yyn = -yyn;
2043
14.5k
      goto yyreduce;
2044
14.5k
    }
2045
2046
  /* Count tokens shifted since error; after three, turn off error
2047
     status.  */
2048
145k
  if (yyerrstatus)
2049
0
    yyerrstatus--;
2050
2051
  /* Shift the lookahead token.  */
2052
145k
  YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc);
2053
145k
  yystate = yyn;
2054
145k
  YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
2055
145k
  *++yyvsp = yylval;
2056
145k
  YY_IGNORE_MAYBE_UNINITIALIZED_END
2057
2058
  /* Discard the shifted token.  */
2059
145k
  yychar = YYEMPTY;
2060
145k
  goto yynewstate;
2061
2062
2063
/*-----------------------------------------------------------.
2064
| yydefault -- do the default action for the current state.  |
2065
`-----------------------------------------------------------*/
2066
288k
yydefault:
2067
288k
  yyn = yydefact[yystate];
2068
288k
  if (yyn == 0)
2069
1.64k
    goto yyerrlab;
2070
287k
  goto yyreduce;
2071
2072
2073
/*-----------------------------.
2074
| yyreduce -- do a reduction.  |
2075
`-----------------------------*/
2076
301k
yyreduce:
2077
  /* yyn is the number of a rule to reduce with.  */
2078
301k
  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
301k
  yyval = yyvsp[1-yylen];
2089
2090
2091
301k
  YY_REDUCE_PRINT (yyn);
2092
301k
  switch (yyn)
2093
301k
    {
2094
5.71k
  case 2:
2095
5.71k
#line 421 "/src/libpcap/build/grammar.y"
2096
5.71k
{
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
5.71k
  (void) yynerrs;
2105
5.71k
  CHECK_INT_VAL(finish_parse(cstate, (yyvsp[0].blk).b));
2106
5.71k
}
2107
5.71k
#line 2108 "/src/libpcap/build/grammar.c"
2108
5.71k
    break;
2109
2110
11.1k
  case 4:
2111
11.1k
#line 434 "/src/libpcap/build/grammar.y"
2112
11.1k
                                { (yyval.blk).q = qerr; }
2113
11.1k
#line 2114 "/src/libpcap/build/grammar.c"
2114
11.1k
    break;
2115
2116
5.43k
  case 6:
2117
5.43k
#line 437 "/src/libpcap/build/grammar.y"
2118
5.43k
                                { (yyvsp[0].blk).b = gen_and((yyvsp[-2].blk).b, (yyvsp[0].blk).b); (yyval.blk) = (yyvsp[0].blk); }
2119
5.43k
#line 2120 "/src/libpcap/build/grammar.c"
2120
5.43k
    break;
2121
2122
3.83k
  case 7:
2123
3.83k
#line 438 "/src/libpcap/build/grammar.y"
2124
3.83k
                                { (yyvsp[0].blk).b = gen_and((yyvsp[-2].blk).b, (yyvsp[0].blk).b); (yyval.blk) = (yyvsp[0].blk); }
2125
3.83k
#line 2126 "/src/libpcap/build/grammar.c"
2126
3.83k
    break;
2127
2128
4.13k
  case 8:
2129
4.13k
#line 439 "/src/libpcap/build/grammar.y"
2130
4.13k
                                { (yyvsp[0].blk).b = gen_or((yyvsp[-2].blk).b, (yyvsp[0].blk).b); (yyval.blk) = (yyvsp[0].blk); }
2131
4.13k
#line 2132 "/src/libpcap/build/grammar.c"
2132
4.13k
    break;
2133
2134
6.61k
  case 9:
2135
6.61k
#line 440 "/src/libpcap/build/grammar.y"
2136
6.61k
                                { (yyvsp[0].blk).b = gen_or((yyvsp[-2].blk).b, (yyvsp[0].blk).b); (yyval.blk) = (yyvsp[0].blk); }
2137
6.61k
#line 2138 "/src/libpcap/build/grammar.c"
2138
6.61k
    break;
2139
2140
10.2k
  case 10:
2141
10.2k
#line 442 "/src/libpcap/build/grammar.y"
2142
10.2k
                                { (yyval.blk) = (yyvsp[-1].blk); }
2143
10.2k
#line 2144 "/src/libpcap/build/grammar.c"
2144
10.2k
    break;
2145
2146
13.4k
  case 11:
2147
13.4k
#line 444 "/src/libpcap/build/grammar.y"
2148
13.4k
                                { (yyval.blk) = (yyvsp[-1].blk); }
2149
13.4k
#line 2150 "/src/libpcap/build/grammar.c"
2150
13.4k
    break;
2151
2152
10.8k
  case 13:
2153
10.8k
#line 447 "/src/libpcap/build/grammar.y"
2154
10.8k
                                { CHECK_PTR_VAL(((yyval.blk).b = gen_ncode(cstate, NULL, (yyvsp[0].h),
2155
10.8k
               (yyval.blk).q = (yyvsp[-1].blk).q))); }
2156
10.4k
#line 2157 "/src/libpcap/build/grammar.c"
2157
10.4k
    break;
2158
2159
10.4k
  case 14:
2160
75
#line 449 "/src/libpcap/build/grammar.y"
2161
75
                                { (yyval.blk) = (yyvsp[-1].blk); }
2162
75
#line 2163 "/src/libpcap/build/grammar.c"
2163
75
    break;
2164
2165
1.55k
  case 15:
2166
1.55k
#line 451 "/src/libpcap/build/grammar.y"
2167
1.55k
                                { 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
732
#line 2169 "/src/libpcap/build/grammar.c"
2169
732
    break;
2170
2171
732
  case 16:
2172
135
#line 452 "/src/libpcap/build/grammar.y"
2173
135
                                {
2174
135
          CHECK_PTR_VAL((yyvsp[-2].s));
2175
          /* Check whether HID/NUM is being used when appropriate */
2176
135
          (yyval.blk).q = (yyvsp[-3].blk).q;
2177
135
          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
134
          } 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
134
          } 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
133
          } 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
132
          CHECK_PTR_VAL(((yyval.blk).b = gen_mcode(cstate, (yyvsp[-2].s), NULL, (yyvsp[0].h), (yyval.blk).q)));
2191
132
        }
2192
107
#line 2193 "/src/libpcap/build/grammar.c"
2193
107
    break;
2194
2195
107
  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
458
  case 18:
2221
458
#line 491 "/src/libpcap/build/grammar.y"
2222
458
                                {
2223
458
          CHECK_PTR_VAL((yyvsp[0].s));
2224
          /* Check whether HID is being used when appropriate */
2225
458
          (yyval.blk).q = (yyvsp[-1].blk).q;
2226
458
          if ((yyval.blk).q.addr == Q_PORT) {
2227
1
          bpf_set_error(cstate, "'port' qualifier applied to IPv4 address");
2228
1
          YYABORT;
2229
457
          } else if ((yyval.blk).q.addr == Q_PORTRANGE) {
2230
0
          bpf_set_error(cstate, "'portrange' qualifier applied to IPv4 address");
2231
0
          YYABORT;
2232
457
          } else if ((yyval.blk).q.addr == Q_PROTO) {
2233
1
          bpf_set_error(cstate, "'proto' qualifier applied to IPv4 address");
2234
1
          YYABORT;
2235
456
          } 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
455
          CHECK_PTR_VAL(((yyval.blk).b = gen_ncode(cstate, (yyvsp[0].s), 0, (yyval.blk).q)));
2240
455
        }
2241
428
#line 2242 "/src/libpcap/build/grammar.c"
2242
428
    break;
2243
2244
428
  case 19:
2245
325
#line 510 "/src/libpcap/build/grammar.y"
2246
325
                                {
2247
325
          CHECK_PTR_VAL((yyvsp[-2].s));
2248
          /* Check whether HID6/NUM is being used when appropriate */
2249
324
          (yyval.blk).q = (yyvsp[-3].blk).q;
2250
324
          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
323
          } 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
323
          } else if ((yyval.blk).q.addr == Q_PROTO) {
2257
0
          bpf_set_error(cstate, "'proto' qualifier applied to IPv6 address and prefix length ");
2258
0
          YYABORT;
2259
323
          } else if ((yyval.blk).q.addr == Q_PROTOCHAIN) {
2260
0
          bpf_set_error(cstate, "'protochain' qualifier applied to IPv6 address and prefix length");
2261
0
          YYABORT;
2262
0
          }
2263
323
          CHECK_PTR_VAL(((yyval.blk).b = gen_mcode6(cstate, (yyvsp[-2].s), (yyvsp[0].h), (yyval.blk).q)));
2264
323
        }
2265
213
#line 2266 "/src/libpcap/build/grammar.c"
2266
213
    break;
2267
2268
687
  case 20:
2269
687
#line 529 "/src/libpcap/build/grammar.y"
2270
687
                                {
2271
687
          CHECK_PTR_VAL((yyvsp[0].s));
2272
          /* Check whether HID6 is being used when appropriate */
2273
686
          (yyval.blk).q = (yyvsp[-1].blk).q;
2274
686
          if ((yyval.blk).q.addr == Q_PORT) {
2275
1
          bpf_set_error(cstate, "'port' qualifier applied to IPv6 address");
2276
1
          YYABORT;
2277
685
          } else if ((yyval.blk).q.addr == Q_PORTRANGE) {
2278
0
          bpf_set_error(cstate, "'portrange' qualifier applied to IPv6 address");
2279
0
          YYABORT;
2280
685
          } else if ((yyval.blk).q.addr == Q_PROTO) {
2281
1
          bpf_set_error(cstate, "'proto' qualifier applied to IPv6 address");
2282
1
          YYABORT;
2283
684
          } 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
683
          CHECK_PTR_VAL(((yyval.blk).b = gen_mcode6(cstate, (yyvsp[0].s), 128, (yyval.blk).q)));
2288
683
        }
2289
678
#line 2290 "/src/libpcap/build/grammar.c"
2290
678
    break;
2291
2292
2.31k
  case 21:
2293
2.31k
#line 548 "/src/libpcap/build/grammar.y"
2294
2.31k
                                { 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.23k
#line 2296 "/src/libpcap/build/grammar.c"
2296
2.23k
    break;
2297
2298
2.23k
  case 22:
2299
620
#line 549 "/src/libpcap/build/grammar.y"
2300
620
                                { 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
598
#line 2302 "/src/libpcap/build/grammar.c"
2302
598
    break;
2303
2304
2.06k
  case 23:
2305
2.06k
#line 550 "/src/libpcap/build/grammar.y"
2306
2.06k
                                { gen_not((yyvsp[0].blk).b); (yyval.blk) = (yyvsp[0].blk); }
2307
2.06k
#line 2308 "/src/libpcap/build/grammar.c"
2308
2.06k
    break;
2309
2310
3.62k
  case 24:
2311
3.62k
#line 552 "/src/libpcap/build/grammar.y"
2312
3.62k
                                { (yyval.blk) = (yyvsp[-1].blk); }
2313
3.62k
#line 2314 "/src/libpcap/build/grammar.c"
2314
3.62k
    break;
2315
2316
1.45k
  case 25:
2317
1.45k
#line 554 "/src/libpcap/build/grammar.y"
2318
1.45k
                                { (yyval.blk) = (yyvsp[-1].blk); }
2319
1.45k
#line 2320 "/src/libpcap/build/grammar.c"
2320
1.45k
    break;
2321
2322
642
  case 27:
2323
642
#line 557 "/src/libpcap/build/grammar.y"
2324
642
                                { (yyvsp[0].blk).b = gen_and((yyvsp[-2].blk).b, (yyvsp[0].blk).b); (yyval.blk) = (yyvsp[0].blk); }
2325
642
#line 2326 "/src/libpcap/build/grammar.c"
2326
642
    break;
2327
2328
1.51k
  case 28:
2329
1.51k
#line 558 "/src/libpcap/build/grammar.y"
2330
1.51k
                                { (yyvsp[0].blk).b = gen_or((yyvsp[-2].blk).b, (yyvsp[0].blk).b); (yyval.blk) = (yyvsp[0].blk); }
2331
1.51k
#line 2332 "/src/libpcap/build/grammar.c"
2332
1.51k
    break;
2333
2334
464
  case 29:
2335
464
#line 560 "/src/libpcap/build/grammar.y"
2336
464
                                { CHECK_PTR_VAL(((yyval.blk).b = gen_ncode(cstate, NULL, (yyvsp[0].h),
2337
464
               (yyval.blk).q = (yyvsp[-1].blk).q))); }
2338
252
#line 2339 "/src/libpcap/build/grammar.c"
2339
252
    break;
2340
2341
911
  case 32:
2342
911
#line 565 "/src/libpcap/build/grammar.y"
2343
911
                                { gen_not((yyvsp[0].blk).b); (yyval.blk) = (yyvsp[0].blk); }
2344
911
#line 2345 "/src/libpcap/build/grammar.c"
2345
911
    break;
2346
2347
113
  case 33:
2348
113
#line 567 "/src/libpcap/build/grammar.y"
2349
113
                                { QSET((yyval.blk).q, (yyvsp[-2].i), (yyvsp[-1].i), (yyvsp[0].i)); }
2350
113
#line 2351 "/src/libpcap/build/grammar.c"
2351
113
    break;
2352
2353
817
  case 34:
2354
817
#line 568 "/src/libpcap/build/grammar.y"
2355
817
                                { QSET((yyval.blk).q, (yyvsp[-1].i), (yyvsp[0].i), Q_DEFAULT); }
2356
817
#line 2357 "/src/libpcap/build/grammar.c"
2357
817
    break;
2358
2359
1.61k
  case 35:
2360
1.61k
#line 569 "/src/libpcap/build/grammar.y"
2361
1.61k
                                { QSET((yyval.blk).q, (yyvsp[-1].i), Q_DEFAULT, (yyvsp[0].i)); }
2362
1.61k
#line 2363 "/src/libpcap/build/grammar.c"
2363
1.61k
    break;
2364
2365
1.70k
  case 36:
2366
1.70k
#line 570 "/src/libpcap/build/grammar.y"
2367
1.70k
                                { QSET((yyval.blk).q, (yyvsp[-1].i), Q_DEFAULT, Q_PROTO); }
2368
1.70k
#line 2369 "/src/libpcap/build/grammar.c"
2369
1.70k
    break;
2370
2371
137
  case 37:
2372
137
#line 571 "/src/libpcap/build/grammar.y"
2373
137
                                {
2374
#ifdef NO_PROTOCHAIN
2375
          bpf_set_error(cstate, "protochain not supported");
2376
          YYABORT;
2377
#else
2378
137
          QSET((yyval.blk).q, (yyvsp[-1].i), Q_DEFAULT, Q_PROTOCHAIN);
2379
137
#endif
2380
137
        }
2381
137
#line 2382 "/src/libpcap/build/grammar.c"
2382
137
    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.82k
  case 39:
2391
2.82k
#line 581 "/src/libpcap/build/grammar.y"
2392
2.82k
                                { (yyval.blk) = (yyvsp[0].blk); }
2393
2.82k
#line 2394 "/src/libpcap/build/grammar.c"
2394
2.82k
    break;
2395
2396
66
  case 40:
2397
66
#line 582 "/src/libpcap/build/grammar.y"
2398
66
                                { (yyval.blk).b = (yyvsp[-1].blk).b; (yyval.blk).q = (yyvsp[-2].blk).q; }
2399
66
#line 2400 "/src/libpcap/build/grammar.c"
2400
66
    break;
2401
2402
5.59k
  case 41:
2403
5.59k
#line 583 "/src/libpcap/build/grammar.y"
2404
5.59k
                                { 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.55k
  case 42:
2409
2.55k
#line 584 "/src/libpcap/build/grammar.y"
2410
2.55k
                                { CHECK_PTR_VAL(((yyval.blk).b = gen_relation(cstate, (yyvsp[-1].i), (yyvsp[-2].a), (yyvsp[0].a), 0)));
2411
2.55k
          (yyval.blk).q = qerr; }
2412
0
#line 2413 "/src/libpcap/build/grammar.c"
2413
0
    break;
2414
2415
1.25k
  case 43:
2416
1.25k
#line 586 "/src/libpcap/build/grammar.y"
2417
1.25k
                                { CHECK_PTR_VAL(((yyval.blk).b = gen_relation(cstate, (yyvsp[-1].i), (yyvsp[-2].a), (yyvsp[0].a), 1)));
2418
1.25k
          (yyval.blk).q = qerr; }
2419
0
#line 2420 "/src/libpcap/build/grammar.c"
2420
0
    break;
2421
2422
3.48k
  case 44:
2423
3.48k
#line 588 "/src/libpcap/build/grammar.y"
2424
3.48k
                                { (yyval.blk).b = (yyvsp[0].rblk); (yyval.blk).q = qerr; }
2425
3.48k
#line 2426 "/src/libpcap/build/grammar.c"
2426
3.48k
    break;
2427
2428
135
  case 45:
2429
135
#line 589 "/src/libpcap/build/grammar.y"
2430
135
                                { 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
33
  case 46:
2435
33
#line 590 "/src/libpcap/build/grammar.y"
2436
33
                                { 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
125
  case 47:
2441
125
#line 591 "/src/libpcap/build/grammar.y"
2442
125
                                { (yyval.blk).b = (yyvsp[0].blk).b; (yyval.blk).q = qerr; }
2443
125
#line 2444 "/src/libpcap/build/grammar.c"
2444
125
    break;
2445
2446
157
  case 48:
2447
157
#line 592 "/src/libpcap/build/grammar.y"
2448
157
                                { 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
192
  case 49:
2453
192
#line 593 "/src/libpcap/build/grammar.y"
2454
192
                                { (yyval.blk).b = (yyvsp[0].blk).b; (yyval.blk).q = qerr; }
2455
192
#line 2456 "/src/libpcap/build/grammar.c"
2456
192
    break;
2457
2458
2.65k
  case 51:
2459
2.65k
#line 597 "/src/libpcap/build/grammar.y"
2460
2.65k
                                { (yyval.i) = Q_DEFAULT; }
2461
2.65k
#line 2462 "/src/libpcap/build/grammar.c"
2462
2.65k
    break;
2463
2464
163
  case 52:
2465
163
#line 600 "/src/libpcap/build/grammar.y"
2466
163
                                { (yyval.i) = Q_SRC; }
2467
163
#line 2468 "/src/libpcap/build/grammar.c"
2468
163
    break;
2469
2470
252
  case 53:
2471
252
#line 601 "/src/libpcap/build/grammar.y"
2472
252
                                { (yyval.i) = Q_DST; }
2473
252
#line 2474 "/src/libpcap/build/grammar.c"
2474
252
    break;
2475
2476
17
  case 54:
2477
17
#line 602 "/src/libpcap/build/grammar.y"
2478
17
                                { (yyval.i) = Q_OR; }
2479
17
#line 2480 "/src/libpcap/build/grammar.c"
2480
17
    break;
2481
2482
57
  case 55:
2483
57
#line 603 "/src/libpcap/build/grammar.y"
2484
57
                                { (yyval.i) = Q_OR; }
2485
57
#line 2486 "/src/libpcap/build/grammar.c"
2486
57
    break;
2487
2488
14
  case 56:
2489
14
#line 604 "/src/libpcap/build/grammar.y"
2490
14
                                { (yyval.i) = Q_AND; }
2491
14
#line 2492 "/src/libpcap/build/grammar.c"
2492
14
    break;
2493
2494
100
  case 57:
2495
100
#line 605 "/src/libpcap/build/grammar.y"
2496
100
                                { (yyval.i) = Q_AND; }
2497
100
#line 2498 "/src/libpcap/build/grammar.c"
2498
100
    break;
2499
2500
45
  case 58:
2501
45
#line 606 "/src/libpcap/build/grammar.y"
2502
45
                                { (yyval.i) = Q_ADDR1; }
2503
45
#line 2504 "/src/libpcap/build/grammar.c"
2504
45
    break;
2505
2506
31
  case 59:
2507
31
#line 607 "/src/libpcap/build/grammar.y"
2508
31
                                { (yyval.i) = Q_ADDR2; }
2509
31
#line 2510 "/src/libpcap/build/grammar.c"
2510
31
    break;
2511
2512
34
  case 60:
2513
34
#line 608 "/src/libpcap/build/grammar.y"
2514
34
                                { (yyval.i) = Q_ADDR3; }
2515
34
#line 2516 "/src/libpcap/build/grammar.c"
2516
34
    break;
2517
2518
25
  case 61:
2519
25
#line 609 "/src/libpcap/build/grammar.y"
2520
25
                                { (yyval.i) = Q_ADDR4; }
2521
25
#line 2522 "/src/libpcap/build/grammar.c"
2522
25
    break;
2523
2524
102
  case 62:
2525
102
#line 610 "/src/libpcap/build/grammar.y"
2526
102
                                { (yyval.i) = Q_RA; }
2527
102
#line 2528 "/src/libpcap/build/grammar.c"
2528
102
    break;
2529
2530
90
  case 63:
2531
90
#line 611 "/src/libpcap/build/grammar.y"
2532
90
                                { (yyval.i) = Q_TA; }
2533
90
#line 2534 "/src/libpcap/build/grammar.c"
2534
90
    break;
2535
2536
264
  case 64:
2537
264
#line 614 "/src/libpcap/build/grammar.y"
2538
264
                                { (yyval.i) = Q_HOST; }
2539
264
#line 2540 "/src/libpcap/build/grammar.c"
2540
264
    break;
2541
2542
894
  case 65:
2543
894
#line 615 "/src/libpcap/build/grammar.y"
2544
894
                                { (yyval.i) = Q_NET; }
2545
894
#line 2546 "/src/libpcap/build/grammar.c"
2546
894
    break;
2547
2548
569
  case 66:
2549
569
#line 616 "/src/libpcap/build/grammar.y"
2550
569
                                { (yyval.i) = Q_PORT; }
2551
569
#line 2552 "/src/libpcap/build/grammar.c"
2552
569
    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
2.83k
  case 69:
2567
2.83k
#line 622 "/src/libpcap/build/grammar.y"
2568
2.83k
                                { (yyval.i) = Q_LINK; }
2569
2.83k
#line 2570 "/src/libpcap/build/grammar.c"
2570
2.83k
    break;
2571
2572
935
  case 70:
2573
935
#line 623 "/src/libpcap/build/grammar.y"
2574
935
                                { (yyval.i) = Q_IP; }
2575
935
#line 2576 "/src/libpcap/build/grammar.c"
2576
935
    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
47
  case 72:
2585
47
#line 625 "/src/libpcap/build/grammar.y"
2586
47
                                { (yyval.i) = Q_RARP; }
2587
47
#line 2588 "/src/libpcap/build/grammar.c"
2588
47
    break;
2589
2590
102
  case 73:
2591
102
#line 626 "/src/libpcap/build/grammar.y"
2592
102
                                { (yyval.i) = Q_SCTP; }
2593
102
#line 2594 "/src/libpcap/build/grammar.c"
2594
102
    break;
2595
2596
279
  case 74:
2597
279
#line 627 "/src/libpcap/build/grammar.y"
2598
279
                                { (yyval.i) = Q_TCP; }
2599
279
#line 2600 "/src/libpcap/build/grammar.c"
2600
279
    break;
2601
2602
588
  case 75:
2603
588
#line 628 "/src/libpcap/build/grammar.y"
2604
588
                                { (yyval.i) = Q_UDP; }
2605
588
#line 2606 "/src/libpcap/build/grammar.c"
2606
588
    break;
2607
2608
44
  case 76:
2609
44
#line 629 "/src/libpcap/build/grammar.y"
2610
44
                                { (yyval.i) = Q_ICMP; }
2611
44
#line 2612 "/src/libpcap/build/grammar.c"
2612
44
    break;
2613
2614
60
  case 77:
2615
60
#line 630 "/src/libpcap/build/grammar.y"
2616
60
                                { (yyval.i) = Q_IGMP; }
2617
60
#line 2618 "/src/libpcap/build/grammar.c"
2618
60
    break;
2619
2620
103
  case 78:
2621
103
#line 631 "/src/libpcap/build/grammar.y"
2622
103
                                { (yyval.i) = Q_IGRP; }
2623
103
#line 2624 "/src/libpcap/build/grammar.c"
2624
103
    break;
2625
2626
423
  case 79:
2627
423
#line 632 "/src/libpcap/build/grammar.y"
2628
423
                                { (yyval.i) = Q_PIM; }
2629
423
#line 2630 "/src/libpcap/build/grammar.c"
2630
423
    break;
2631
2632
67
  case 80:
2633
67
#line 633 "/src/libpcap/build/grammar.y"
2634
67
                                { (yyval.i) = Q_VRRP; }
2635
67
#line 2636 "/src/libpcap/build/grammar.c"
2636
67
    break;
2637
2638
44
  case 81:
2639
44
#line 634 "/src/libpcap/build/grammar.y"
2640
44
                                { (yyval.i) = Q_CARP; }
2641
44
#line 2642 "/src/libpcap/build/grammar.c"
2642
44
    break;
2643
2644
248
  case 82:
2645
248
#line 635 "/src/libpcap/build/grammar.y"
2646
248
                                { (yyval.i) = Q_ATALK; }
2647
248
#line 2648 "/src/libpcap/build/grammar.c"
2648
248
    break;
2649
2650
57
  case 83:
2651
57
#line 636 "/src/libpcap/build/grammar.y"
2652
57
                                { (yyval.i) = Q_AARP; }
2653
57
#line 2654 "/src/libpcap/build/grammar.c"
2654
57
    break;
2655
2656
109
  case 84:
2657
109
#line 637 "/src/libpcap/build/grammar.y"
2658
109
                                { (yyval.i) = Q_DECNET; }
2659
109
#line 2660 "/src/libpcap/build/grammar.c"
2660
109
    break;
2661
2662
62
  case 85:
2663
62
#line 638 "/src/libpcap/build/grammar.y"
2664
62
                                { (yyval.i) = Q_LAT; }
2665
62
#line 2666 "/src/libpcap/build/grammar.c"
2666
62
    break;
2667
2668
71
  case 86:
2669
71
#line 639 "/src/libpcap/build/grammar.y"
2670
71
                                { (yyval.i) = Q_SCA; }
2671
71
#line 2672 "/src/libpcap/build/grammar.c"
2672
71
    break;
2673
2674
33
  case 87:
2675
33
#line 640 "/src/libpcap/build/grammar.y"
2676
33
                                { (yyval.i) = Q_MOPDL; }
2677
33
#line 2678 "/src/libpcap/build/grammar.c"
2678
33
    break;
2679
2680
191
  case 88:
2681
191
#line 641 "/src/libpcap/build/grammar.y"
2682
191
                                { (yyval.i) = Q_MOPRC; }
2683
191
#line 2684 "/src/libpcap/build/grammar.c"
2684
191
    break;
2685
2686
308
  case 89:
2687
308
#line 642 "/src/libpcap/build/grammar.y"
2688
308
                                { (yyval.i) = Q_IPV6; }
2689
308
#line 2690 "/src/libpcap/build/grammar.c"
2690
308
    break;
2691
2692
176
  case 90:
2693
176
#line 643 "/src/libpcap/build/grammar.y"
2694
176
                                { (yyval.i) = Q_ICMPV6; }
2695
176
#line 2696 "/src/libpcap/build/grammar.c"
2696
176
    break;
2697
2698
251
  case 91:
2699
251
#line 644 "/src/libpcap/build/grammar.y"
2700
251
                                { (yyval.i) = Q_AH; }
2701
251
#line 2702 "/src/libpcap/build/grammar.c"
2702
251
    break;
2703
2704
79
  case 92:
2705
79
#line 645 "/src/libpcap/build/grammar.y"
2706
79
                                { (yyval.i) = Q_ESP; }
2707
79
#line 2708 "/src/libpcap/build/grammar.c"
2708
79
    break;
2709
2710
118
  case 93:
2711
118
#line 646 "/src/libpcap/build/grammar.y"
2712
118
                                { (yyval.i) = Q_ISO; }
2713
118
#line 2714 "/src/libpcap/build/grammar.c"
2714
118
    break;
2715
2716
42
  case 94:
2717
42
#line 647 "/src/libpcap/build/grammar.y"
2718
42
                                { (yyval.i) = Q_ESIS; }
2719
42
#line 2720 "/src/libpcap/build/grammar.c"
2720
42
    break;
2721
2722
131
  case 95:
2723
131
#line 648 "/src/libpcap/build/grammar.y"
2724
131
                                { (yyval.i) = Q_ISIS; }
2725
131
#line 2726 "/src/libpcap/build/grammar.c"
2726
131
    break;
2727
2728
1.52k
  case 96:
2729
1.52k
#line 649 "/src/libpcap/build/grammar.y"
2730
1.52k
                                { (yyval.i) = Q_ISIS_L1; }
2731
1.52k
#line 2732 "/src/libpcap/build/grammar.c"
2732
1.52k
    break;
2733
2734
1.49k
  case 97:
2735
1.49k
#line 650 "/src/libpcap/build/grammar.y"
2736
1.49k
                                { (yyval.i) = Q_ISIS_L2; }
2737
1.49k
#line 2738 "/src/libpcap/build/grammar.c"
2738
1.49k
    break;
2739
2740
238
  case 98:
2741
238
#line 651 "/src/libpcap/build/grammar.y"
2742
238
                                { (yyval.i) = Q_ISIS_IIH; }
2743
238
#line 2744 "/src/libpcap/build/grammar.c"
2744
238
    break;
2745
2746
120
  case 99:
2747
120
#line 652 "/src/libpcap/build/grammar.y"
2748
120
                                { (yyval.i) = Q_ISIS_LSP; }
2749
120
#line 2750 "/src/libpcap/build/grammar.c"
2750
120
    break;
2751
2752
192
  case 100:
2753
192
#line 653 "/src/libpcap/build/grammar.y"
2754
192
                                { (yyval.i) = Q_ISIS_SNP; }
2755
192
#line 2756 "/src/libpcap/build/grammar.c"
2756
192
    break;
2757
2758
117
  case 101:
2759
117
#line 654 "/src/libpcap/build/grammar.y"
2760
117
                                { (yyval.i) = Q_ISIS_PSNP; }
2761
117
#line 2762 "/src/libpcap/build/grammar.c"
2762
117
    break;
2763
2764
119
  case 102:
2765
119
#line 655 "/src/libpcap/build/grammar.y"
2766
119
                                { (yyval.i) = Q_ISIS_CSNP; }
2767
119
#line 2768 "/src/libpcap/build/grammar.c"
2768
119
    break;
2769
2770
27
  case 103:
2771
27
#line 656 "/src/libpcap/build/grammar.y"
2772
27
                                { (yyval.i) = Q_CLNP; }
2773
27
#line 2774 "/src/libpcap/build/grammar.c"
2774
27
    break;
2775
2776
110
  case 104:
2777
110
#line 657 "/src/libpcap/build/grammar.y"
2778
110
                                { (yyval.i) = Q_STP; }
2779
110
#line 2780 "/src/libpcap/build/grammar.c"
2780
110
    break;
2781
2782
334
  case 105:
2783
334
#line 658 "/src/libpcap/build/grammar.y"
2784
334
                                { (yyval.i) = Q_IPX; }
2785
334
#line 2786 "/src/libpcap/build/grammar.c"
2786
334
    break;
2787
2788
48
  case 106:
2789
48
#line 659 "/src/libpcap/build/grammar.y"
2790
48
                                { (yyval.i) = Q_NETBEUI; }
2791
48
#line 2792 "/src/libpcap/build/grammar.c"
2792
48
    break;
2793
2794
126
  case 107:
2795
126
#line 660 "/src/libpcap/build/grammar.y"
2796
126
                                { (yyval.i) = Q_RADIO; }
2797
126
#line 2798 "/src/libpcap/build/grammar.c"
2798
126
    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
46
  case 110:
2813
46
#line 664 "/src/libpcap/build/grammar.y"
2814
46
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_less(cstate, (yyvsp[0].h)))); }
2815
46
#line 2816 "/src/libpcap/build/grammar.c"
2816
46
    break;
2817
2818
46
  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
164
  case 112:
2825
164
#line 666 "/src/libpcap/build/grammar.y"
2826
164
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_byteop(cstate, (yyvsp[-1].i), (yyvsp[-2].h), (yyvsp[0].h)))); }
2827
159
#line 2828 "/src/libpcap/build/grammar.c"
2828
159
    break;
2829
2830
159
  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
157
  case 116:
2849
157
#line 670 "/src/libpcap/build/grammar.y"
2850
157
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_vlan(cstate, (yyvsp[0].h), 1))); }
2851
137
#line 2852 "/src/libpcap/build/grammar.c"
2852
137
    break;
2853
2854
429
  case 117:
2855
429
#line 671 "/src/libpcap/build/grammar.y"
2856
429
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_vlan(cstate, 0, 0))); }
2857
420
#line 2858 "/src/libpcap/build/grammar.c"
2858
420
    break;
2859
2860
420
  case 118:
2861
122
#line 672 "/src/libpcap/build/grammar.y"
2862
122
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_mpls(cstate, (yyvsp[0].h), 1))); }
2863
114
#line 2864 "/src/libpcap/build/grammar.c"
2864
114
    break;
2865
2866
155
  case 119:
2867
155
#line 673 "/src/libpcap/build/grammar.y"
2868
155
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_mpls(cstate, 0, 0))); }
2869
149
#line 2870 "/src/libpcap/build/grammar.c"
2870
149
    break;
2871
2872
149
  case 120:
2873
27
#line 674 "/src/libpcap/build/grammar.y"
2874
27
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_pppoed(cstate))); }
2875
26
#line 2876 "/src/libpcap/build/grammar.c"
2876
26
    break;
2877
2878
26
  case 121:
2879
25
#line 675 "/src/libpcap/build/grammar.y"
2880
25
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_pppoes(cstate, (yyvsp[0].h), 1))); }
2881
20
#line 2882 "/src/libpcap/build/grammar.c"
2882
20
    break;
2883
2884
149
  case 122:
2885
149
#line 676 "/src/libpcap/build/grammar.y"
2886
149
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_pppoes(cstate, 0, 0))); }
2887
148
#line 2888 "/src/libpcap/build/grammar.c"
2888
148
    break;
2889
2890
148
  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
122
  case 125:
2903
122
#line 679 "/src/libpcap/build/grammar.y"
2904
122
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_vxlan(cstate, (yyvsp[0].h), 1))); }
2905
109
#line 2906 "/src/libpcap/build/grammar.c"
2906
109
    break;
2907
2908
671
  case 126:
2909
671
#line 680 "/src/libpcap/build/grammar.y"
2910
671
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_vxlan(cstate, 0, 0))); }
2911
662
#line 2912 "/src/libpcap/build/grammar.c"
2912
662
    break;
2913
2914
662
  case 127:
2915
85
#line 681 "/src/libpcap/build/grammar.y"
2916
85
                                { (yyval.rblk) = (yyvsp[0].rblk); }
2917
85
#line 2918 "/src/libpcap/build/grammar.c"
2918
85
    break;
2919
2920
361
  case 128:
2921
361
#line 682 "/src/libpcap/build/grammar.y"
2922
361
                                { (yyval.rblk) = (yyvsp[0].rblk); }
2923
361
#line 2924 "/src/libpcap/build/grammar.c"
2924
361
    break;
2925
2926
1.05k
  case 129:
2927
1.05k
#line 683 "/src/libpcap/build/grammar.y"
2928
1.05k
                                { (yyval.rblk) = (yyvsp[0].rblk); }
2929
1.05k
#line 2930 "/src/libpcap/build/grammar.c"
2930
1.05k
    break;
2931
2932
48
  case 130:
2933
48
#line 686 "/src/libpcap/build/grammar.y"
2934
48
                                { CHECK_PTR_VAL((yyvsp[0].s)); CHECK_PTR_VAL(((yyval.rblk) = gen_pf_ifname(cstate, (yyvsp[0].s)))); }
2935
37
#line 2936 "/src/libpcap/build/grammar.c"
2936
37
    break;
2937
2938
37
  case 131:
2939
18
#line 687 "/src/libpcap/build/grammar.y"
2940
18
                                { CHECK_PTR_VAL((yyvsp[0].s)); CHECK_PTR_VAL(((yyval.rblk) = gen_pf_ruleset(cstate, (yyvsp[0].s)))); }
2941
11
#line 2942 "/src/libpcap/build/grammar.c"
2942
11
    break;
2943
2944
16
  case 132:
2945
16
#line 688 "/src/libpcap/build/grammar.y"
2946
16
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_pf_rnr(cstate, (yyvsp[0].h)))); }
2947
10
#line 2948 "/src/libpcap/build/grammar.c"
2948
10
    break;
2949
2950
21
  case 133:
2951
21
#line 689 "/src/libpcap/build/grammar.y"
2952
21
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_pf_srnr(cstate, (yyvsp[0].h)))); }
2953
14
#line 2954 "/src/libpcap/build/grammar.c"
2954
14
    break;
2955
2956
15
  case 134:
2957
15
#line 690 "/src/libpcap/build/grammar.y"
2958
15
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_pf_reason(cstate, (yyvsp[0].i)))); }
2959
12
#line 2960 "/src/libpcap/build/grammar.c"
2960
12
    break;
2961
2962
12
  case 135:
2963
5
#line 691 "/src/libpcap/build/grammar.y"
2964
5
                                { 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
140
  case 137:
2978
140
#line 699 "/src/libpcap/build/grammar.y"
2979
140
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_p80211_type(cstate, (yyvsp[0].i),
2980
140
          IEEE80211_FC0_TYPE_MASK)));
2981
140
        }
2982
138
#line 2983 "/src/libpcap/build/grammar.c"
2983
138
    break;
2984
2985
138
  case 138:
2986
22
#line 702 "/src/libpcap/build/grammar.y"
2987
22
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_p80211_type(cstate, (yyvsp[0].i),
2988
22
          IEEE80211_FC0_TYPE_MASK |
2989
22
          IEEE80211_FC0_SUBTYPE_MASK)));
2990
22
        }
2991
19
#line 2992 "/src/libpcap/build/grammar.c"
2992
19
    break;
2993
2994
204
  case 139:
2995
204
#line 706 "/src/libpcap/build/grammar.y"
2996
204
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_p80211_fcdir(cstate, (yyvsp[0].i)))); }
2997
203
#line 2998 "/src/libpcap/build/grammar.c"
2998
203
    break;
2999
3000
203
  case 140:
3001
169
#line 709 "/src/libpcap/build/grammar.y"
3002
169
                                { if (((yyvsp[0].h) & (~IEEE80211_FC0_TYPE_MASK)) != 0) {
3003
19
          bpf_set_error(cstate, "invalid 802.11 type value 0x%02x", (yyvsp[0].h));
3004
19
          YYABORT;
3005
19
          }
3006
150
          (yyval.i) = (int)(yyvsp[0].h);
3007
150
        }
3008
0
#line 3009 "/src/libpcap/build/grammar.c"
3009
0
    break;
3010
3011
24
  case 141:
3012
24
#line 715 "/src/libpcap/build/grammar.y"
3013
24
                                { CHECK_PTR_VAL((yyvsp[0].s));
3014
24
          (yyval.i) = str2tok((yyvsp[0].s), ieee80211_types);
3015
24
          if ((yyval.i) == -1) {
3016
4
          bpf_set_error(cstate, "unknown 802.11 type name \"%s\"", (yyvsp[0].s));
3017
4
          YYABORT;
3018
4
          }
3019
24
        }
3020
20
#line 3021 "/src/libpcap/build/grammar.c"
3021
20
    break;
3022
3023
27
  case 142:
3024
27
#line 724 "/src/libpcap/build/grammar.y"
3025
27
                                { if (((yyvsp[0].h) & (~IEEE80211_FC0_SUBTYPE_MASK)) != 0) {
3026
25
          bpf_set_error(cstate, "invalid 802.11 subtype value 0x%02x", (yyvsp[0].h));
3027
25
          YYABORT;
3028
25
          }
3029
2
          (yyval.i) = (int)(yyvsp[0].h);
3030
2
        }
3031
0
#line 3032 "/src/libpcap/build/grammar.c"
3032
0
    break;
3033
3034
3
  case 143:
3035
3
#line 730 "/src/libpcap/build/grammar.y"
3036
3
                                { const struct tok *types = NULL;
3037
3
          int i;
3038
3
          CHECK_PTR_VAL((yyvsp[0].s));
3039
6
          for (i = 0;; i++) {
3040
6
          if (ieee80211_type_subtypes[i].tok == NULL) {
3041
            /* Ran out of types */
3042
0
            bpf_set_error(cstate, "unknown 802.11 type");
3043
0
            YYABORT;
3044
0
          }
3045
6
          if ((yyvsp[(-1) - (1)].i) == ieee80211_type_subtypes[i].type) {
3046
3
            types = ieee80211_type_subtypes[i].tok;
3047
3
            break;
3048
3
          }
3049
6
          }
3050
3051
3
          (yyval.i) = str2tok((yyvsp[0].s), types);
3052
3
          if ((yyval.i) == -1) {
3053
2
          bpf_set_error(cstate, "unknown 802.11 subtype name \"%s\"", (yyvsp[0].s));
3054
2
          YYABORT;
3055
2
          }
3056
3
        }
3057
1
#line 3058 "/src/libpcap/build/grammar.c"
3058
1
    break;
3059
3060
29
  case 144:
3061
29
#line 753 "/src/libpcap/build/grammar.y"
3062
29
                                { int i;
3063
29
          CHECK_PTR_VAL((yyvsp[0].s));
3064
86
          for (i = 0;; i++) {
3065
86
          if (ieee80211_type_subtypes[i].tok == NULL) {
3066
            /* Ran out of types */
3067
7
            bpf_set_error(cstate, "unknown 802.11 type name");
3068
7
            YYABORT;
3069
7
          }
3070
79
          (yyval.i) = str2tok((yyvsp[0].s), ieee80211_type_subtypes[i].tok);
3071
79
          if ((yyval.i) != -1) {
3072
22
            (yyval.i) |= ieee80211_type_subtypes[i].type;
3073
22
            break;
3074
22
          }
3075
79
          }
3076
29
        }
3077
22
#line 3078 "/src/libpcap/build/grammar.c"
3078
22
    break;
3079
3080
627
  case 145:
3081
627
#line 770 "/src/libpcap/build/grammar.y"
3082
627
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_llc(cstate))); }
3083
619
#line 3084 "/src/libpcap/build/grammar.c"
3084
619
    break;
3085
3086
619
  case 146:
3087
450
#line 771 "/src/libpcap/build/grammar.y"
3088
450
                                { CHECK_PTR_VAL((yyvsp[0].s));
3089
450
          if (pcapint_strcasecmp((yyvsp[0].s), "i") == 0) {
3090
87
          CHECK_PTR_VAL(((yyval.rblk) = gen_llc_i(cstate)));
3091
363
          } else if (pcapint_strcasecmp((yyvsp[0].s), "s") == 0) {
3092
56
          CHECK_PTR_VAL(((yyval.rblk) = gen_llc_s(cstate)));
3093
307
          } else if (pcapint_strcasecmp((yyvsp[0].s), "u") == 0) {
3094
119
          CHECK_PTR_VAL(((yyval.rblk) = gen_llc_u(cstate)));
3095
188
          } else {
3096
188
          int subtype;
3097
3098
188
          subtype = str2tok((yyvsp[0].s), llc_s_subtypes);
3099
188
          if (subtype != -1) {
3100
40
            CHECK_PTR_VAL(((yyval.rblk) = gen_llc_s_subtype(cstate, subtype)));
3101
148
          } else {
3102
148
            subtype = str2tok((yyvsp[0].s), llc_u_subtypes);
3103
148
            if (subtype == -1) {
3104
22
              bpf_set_error(cstate, "unknown LLC type name \"%s\"", (yyvsp[0].s));
3105
22
              YYABORT;
3106
22
            }
3107
126
            CHECK_PTR_VAL(((yyval.rblk) = gen_llc_u_subtype(cstate, subtype)));
3108
126
          }
3109
188
          }
3110
450
        }
3111
421
#line 3112 "/src/libpcap/build/grammar.c"
3112
421
    break;
3113
3114
421
  case 147:
3115
14
#line 795 "/src/libpcap/build/grammar.y"
3116
14
                                { CHECK_PTR_VAL(((yyval.rblk) = gen_llc_s_subtype(cstate, LLC_RNR))); }
3117
13
#line 3118 "/src/libpcap/build/grammar.c"
3118
13
    break;
3119
3120
168
  case 148:
3121
168
#line 798 "/src/libpcap/build/grammar.y"
3122
168
                                { if (((yyvsp[0].h) & (~IEEE80211_FC1_DIR_MASK)) != 0) {
3123
6
          bpf_set_error(cstate, "invalid 802.11 direction value 0x%x", (yyvsp[0].h));
3124
6
          YYABORT;
3125
6
          }
3126
162
          (yyval.i) = (int)(yyvsp[0].h);
3127
162
        }
3128
0
#line 3129 "/src/libpcap/build/grammar.c"
3129
0
    break;
3130
3131
64
  case 149:
3132
64
#line 804 "/src/libpcap/build/grammar.y"
3133
64
                                { CHECK_PTR_VAL((yyvsp[0].s));
3134
64
          if (pcapint_strcasecmp((yyvsp[0].s), "nods") == 0)
3135
15
          (yyval.i) = IEEE80211_FC1_DIR_NODS;
3136
49
          else if (pcapint_strcasecmp((yyvsp[0].s), "tods") == 0)
3137
17
          (yyval.i) = IEEE80211_FC1_DIR_TODS;
3138
32
          else if (pcapint_strcasecmp((yyvsp[0].s), "fromds") == 0)
3139
0
          (yyval.i) = IEEE80211_FC1_DIR_FROMDS;
3140
32
          else if (pcapint_strcasecmp((yyvsp[0].s), "dstods") == 0)
3141
10
          (yyval.i) = IEEE80211_FC1_DIR_DSTODS;
3142
22
          else {
3143
22
          bpf_set_error(cstate, "unknown 802.11 direction");
3144
22
          YYABORT;
3145
22
          }
3146
64
        }
3147
42
#line 3148 "/src/libpcap/build/grammar.c"
3148
42
    break;
3149
3150
42
  case 150:
3151
15
#line 820 "/src/libpcap/build/grammar.y"
3152
15
                                { (yyval.i) = (yyvsp[0].h); }
3153
15
#line 3154 "/src/libpcap/build/grammar.c"
3154
15
    break;
3155
3156
7
  case 151:
3157
7
#line 821 "/src/libpcap/build/grammar.y"
3158
7
                                { CHECK_PTR_VAL((yyvsp[0].s)); CHECK_INT_VAL(((yyval.i) = pfreason_to_num(cstate, (yyvsp[0].s)))); }
3159
0
#line 3160 "/src/libpcap/build/grammar.c"
3160
0
    break;
3161
3162
9
  case 152:
3163
9
#line 824 "/src/libpcap/build/grammar.y"
3164
9
                                { CHECK_PTR_VAL((yyvsp[0].s)); CHECK_INT_VAL(((yyval.i) = pfaction_to_num(cstate, (yyvsp[0].s)))); }
3165
5
#line 3166 "/src/libpcap/build/grammar.c"
3166
5
    break;
3167
3168
1.19k
  case 153:
3169
1.19k
#line 827 "/src/libpcap/build/grammar.y"
3170
1.19k
                                { (yyval.i) = BPF_JGT; }
3171
1.19k
#line 3172 "/src/libpcap/build/grammar.c"
3172
1.19k
    break;
3173
3174
73
  case 154:
3175
73
#line 828 "/src/libpcap/build/grammar.y"
3176
73
                                { (yyval.i) = BPF_JGE; }
3177
73
#line 3178 "/src/libpcap/build/grammar.c"
3178
73
    break;
3179
3180
1.42k
  case 155:
3181
1.42k
#line 829 "/src/libpcap/build/grammar.y"
3182
1.42k
                                { (yyval.i) = BPF_JEQ; }
3183
1.42k
#line 3184 "/src/libpcap/build/grammar.c"
3184
1.42k
    break;
3185
3186
156
  case 156:
3187
156
#line 831 "/src/libpcap/build/grammar.y"
3188
156
                                { (yyval.i) = BPF_JGT; }
3189
156
#line 3190 "/src/libpcap/build/grammar.c"
3190
156
    break;
3191
3192
1.18k
  case 157:
3193
1.18k
#line 832 "/src/libpcap/build/grammar.y"
3194
1.18k
                                { (yyval.i) = BPF_JGE; }
3195
1.18k
#line 3196 "/src/libpcap/build/grammar.c"
3196
1.18k
    break;
3197
3198
57
  case 158:
3199
57
#line 833 "/src/libpcap/build/grammar.y"
3200
57
                                { (yyval.i) = BPF_JEQ; }
3201
57
#line 3202 "/src/libpcap/build/grammar.c"
3202
57
    break;
3203
3204
20.9k
  case 159:
3205
20.9k
#line 835 "/src/libpcap/build/grammar.y"
3206
20.9k
                                { CHECK_PTR_VAL(((yyval.a) = gen_loadi(cstate, (yyvsp[0].h)))); }
3207
20.9k
#line 3208 "/src/libpcap/build/grammar.c"
3208
20.9k
    break;
3209
3210
20.9k
  case 161:
3211
3.04k
#line 838 "/src/libpcap/build/grammar.y"
3212
3.04k
                                        { CHECK_PTR_VAL(((yyval.a) = gen_load(cstate, (yyvsp[-3].i), (yyvsp[-1].a), 1))); }
3213
3.02k
#line 3214 "/src/libpcap/build/grammar.c"
3214
3.02k
    break;
3215
3216
3.02k
  case 162:
3217
392
#line 839 "/src/libpcap/build/grammar.y"
3218
392
                                        { CHECK_PTR_VAL(((yyval.a) = gen_load(cstate, (yyvsp[-5].i), (yyvsp[-3].a), (yyvsp[-1].h)))); }
3219
390
#line 3220 "/src/libpcap/build/grammar.c"
3220
390
    break;
3221
3222
2.57k
  case 163:
3223
2.57k
#line 840 "/src/libpcap/build/grammar.y"
3224
2.57k
                                        { CHECK_PTR_VAL(((yyval.a) = gen_arth(cstate, BPF_ADD, (yyvsp[-2].a), (yyvsp[0].a)))); }
3225
2.57k
#line 3226 "/src/libpcap/build/grammar.c"
3226
2.57k
    break;
3227
3228
2.57k
  case 164:
3229
1.56k
#line 841 "/src/libpcap/build/grammar.y"
3230
1.56k
                                        { CHECK_PTR_VAL(((yyval.a) = gen_arth(cstate, BPF_SUB, (yyvsp[-2].a), (yyvsp[0].a)))); }
3231
1.56k
#line 3232 "/src/libpcap/build/grammar.c"
3232
1.56k
    break;
3233
3234
3.65k
  case 165:
3235
3.65k
#line 842 "/src/libpcap/build/grammar.y"
3236
3.65k
                                        { CHECK_PTR_VAL(((yyval.a) = gen_arth(cstate, BPF_MUL, (yyvsp[-2].a), (yyvsp[0].a)))); }
3237
3.65k
#line 3238 "/src/libpcap/build/grammar.c"
3238
3.65k
    break;
3239
3240
3.65k
  case 166:
3241
1.59k
#line 843 "/src/libpcap/build/grammar.y"
3242
1.59k
                                        { CHECK_PTR_VAL(((yyval.a) = gen_arth(cstate, BPF_DIV, (yyvsp[-2].a), (yyvsp[0].a)))); }
3243
1.58k
#line 3244 "/src/libpcap/build/grammar.c"
3244
1.58k
    break;
3245
3246
1.58k
  case 167:
3247
980
#line 844 "/src/libpcap/build/grammar.y"
3248
980
                                        { CHECK_PTR_VAL(((yyval.a) = gen_arth(cstate, BPF_MOD, (yyvsp[-2].a), (yyvsp[0].a)))); }
3249
979
#line 3250 "/src/libpcap/build/grammar.c"
3250
979
    break;
3251
3252
1.58k
  case 168:
3253
1.58k
#line 845 "/src/libpcap/build/grammar.y"
3254
1.58k
                                        { CHECK_PTR_VAL(((yyval.a) = gen_arth(cstate, BPF_AND, (yyvsp[-2].a), (yyvsp[0].a)))); }
3255
1.58k
#line 3256 "/src/libpcap/build/grammar.c"
3256
1.58k
    break;
3257
3258
1.58k
  case 169:
3259
931
#line 846 "/src/libpcap/build/grammar.y"
3260
931
                                        { CHECK_PTR_VAL(((yyval.a) = gen_arth(cstate, BPF_OR, (yyvsp[-2].a), (yyvsp[0].a)))); }
3261
931
#line 3262 "/src/libpcap/build/grammar.c"
3262
931
    break;
3263
3264
931
  case 170:
3265
825
#line 847 "/src/libpcap/build/grammar.y"
3266
825
                                        { CHECK_PTR_VAL(((yyval.a) = gen_arth(cstate, BPF_XOR, (yyvsp[-2].a), (yyvsp[0].a)))); }
3267
825
#line 3268 "/src/libpcap/build/grammar.c"
3268
825
    break;
3269
3270
825
  case 171:
3271
619
#line 848 "/src/libpcap/build/grammar.y"
3272
619
                                        { CHECK_PTR_VAL(((yyval.a) = gen_arth(cstate, BPF_LSH, (yyvsp[-2].a), (yyvsp[0].a)))); }
3273
591
#line 3274 "/src/libpcap/build/grammar.c"
3274
591
    break;
3275
3276
719
  case 172:
3277
719
#line 849 "/src/libpcap/build/grammar.y"
3278
719
                                        { CHECK_PTR_VAL(((yyval.a) = gen_arth(cstate, BPF_RSH, (yyvsp[-2].a), (yyvsp[0].a)))); }
3279
712
#line 3280 "/src/libpcap/build/grammar.c"
3280
712
    break;
3281
3282
15.0k
  case 173:
3283
15.0k
#line 850 "/src/libpcap/build/grammar.y"
3284
15.0k
                                        { CHECK_PTR_VAL(((yyval.a) = gen_neg(cstate, (yyvsp[0].a)))); }
3285
15.0k
#line 3286 "/src/libpcap/build/grammar.c"
3286
15.0k
    break;
3287
3288
15.0k
  case 174:
3289
124
#line 851 "/src/libpcap/build/grammar.y"
3290
124
                                        { (yyval.a) = (yyvsp[-1].a); }
3291
124
#line 3292 "/src/libpcap/build/grammar.c"
3292
124
    break;
3293
3294
2.54k
  case 175:
3295
2.54k
#line 852 "/src/libpcap/build/grammar.y"
3296
2.54k
                                        { CHECK_PTR_VAL(((yyval.a) = gen_loadlen(cstate))); }
3297
2.54k
#line 3298 "/src/libpcap/build/grammar.c"
3298
2.54k
    break;
3299
3300
2.54k
  case 176:
3301
66
#line 854 "/src/libpcap/build/grammar.y"
3302
66
                                { (yyval.i) = '&'; }
3303
66
#line 3304 "/src/libpcap/build/grammar.c"
3304
66
    break;
3305
3306
37
  case 177:
3307
37
#line 855 "/src/libpcap/build/grammar.y"
3308
37
                                { (yyval.i) = '|'; }
3309
37
#line 3310 "/src/libpcap/build/grammar.c"
3310
37
    break;
3311
3312
20
  case 178:
3313
20
#line 856 "/src/libpcap/build/grammar.y"
3314
20
                                { (yyval.i) = '<'; }
3315
20
#line 3316 "/src/libpcap/build/grammar.c"
3316
20
    break;
3317
3318
28
  case 179:
3319
28
#line 857 "/src/libpcap/build/grammar.y"
3320
28
                                { (yyval.i) = '>'; }
3321
28
#line 3322 "/src/libpcap/build/grammar.c"
3322
28
    break;
3323
3324
16
  case 180:
3325
16
#line 858 "/src/libpcap/build/grammar.y"
3326
16
                                { (yyval.i) = '='; }
3327
16
#line 3328 "/src/libpcap/build/grammar.c"
3328
16
    break;
3329
3330
76
  case 182:
3331
76
#line 861 "/src/libpcap/build/grammar.y"
3332
76
                                { (yyval.h) = (yyvsp[-1].h); }
3333
76
#line 3334 "/src/libpcap/build/grammar.c"
3334
76
    break;
3335
3336
64
  case 183:
3337
64
#line 863 "/src/libpcap/build/grammar.y"
3338
64
                                { (yyval.i) = A_LANE; }
3339
64
#line 3340 "/src/libpcap/build/grammar.c"
3340
64
    break;
3341
3342
9
  case 184:
3343
9
#line 864 "/src/libpcap/build/grammar.y"
3344
9
                                { (yyval.i) = A_METAC; }
3345
9
#line 3346 "/src/libpcap/build/grammar.c"
3346
9
    break;
3347
3348
10
  case 185:
3349
10
#line 865 "/src/libpcap/build/grammar.y"
3350
10
                                { (yyval.i) = A_BCC; }
3351
10
#line 3352 "/src/libpcap/build/grammar.c"
3352
10
    break;
3353
3354
4
  case 186:
3355
4
#line 866 "/src/libpcap/build/grammar.y"
3356
4
                                { (yyval.i) = A_OAMF4EC; }
3357
4
#line 3358 "/src/libpcap/build/grammar.c"
3358
4
    break;
3359
3360
10
  case 187:
3361
10
#line 867 "/src/libpcap/build/grammar.y"
3362
10
                                { (yyval.i) = A_OAMF4SC; }
3363
10
#line 3364 "/src/libpcap/build/grammar.c"
3364
10
    break;
3365
3366
37
  case 188:
3367
37
#line 868 "/src/libpcap/build/grammar.y"
3368
37
                                { (yyval.i) = A_SC; }
3369
37
#line 3370 "/src/libpcap/build/grammar.c"
3370
37
    break;
3371
3372
1
  case 189:
3373
1
#line 869 "/src/libpcap/build/grammar.y"
3374
1
                                { (yyval.i) = A_ILMIC; }
3375
1
#line 3376 "/src/libpcap/build/grammar.c"
3376
1
    break;
3377
3378
15
  case 190:
3379
15
#line 871 "/src/libpcap/build/grammar.y"
3380
15
                                { (yyval.i) = A_OAM; }
3381
15
#line 3382 "/src/libpcap/build/grammar.c"
3382
15
    break;
3383
3384
18
  case 191:
3385
18
#line 872 "/src/libpcap/build/grammar.y"
3386
18
                                { (yyval.i) = A_OAMF4; }
3387
18
#line 3388 "/src/libpcap/build/grammar.c"
3388
18
    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
101
  case 194:
3403
101
#line 877 "/src/libpcap/build/grammar.y"
3404
101
                                { (yyval.blk).atmfieldtype = A_VPI; }
3405
101
#line 3406 "/src/libpcap/build/grammar.c"
3406
101
    break;
3407
3408
111
  case 195:
3409
111
#line 878 "/src/libpcap/build/grammar.y"
3410
111
                                { (yyval.blk).atmfieldtype = A_VCI; }
3411
111
#line 3412 "/src/libpcap/build/grammar.c"
3412
111
    break;
3413
3414
32
  case 197:
3415
32
#line 881 "/src/libpcap/build/grammar.y"
3416
32
                                { CHECK_PTR_VAL(((yyval.blk).b = gen_atmfield_code(cstate, (yyvsp[-2].blk).atmfieldtype, (yyvsp[0].h), (yyvsp[-1].i), 0))); }
3417
27
#line 3418 "/src/libpcap/build/grammar.c"
3418
27
    break;
3419
3420
69
  case 198:
3421
69
#line 882 "/src/libpcap/build/grammar.y"
3422
69
                                { CHECK_PTR_VAL(((yyval.blk).b = gen_atmfield_code(cstate, (yyvsp[-2].blk).atmfieldtype, (yyvsp[0].h), (yyvsp[-1].i), 1))); }
3423
66
#line 3424 "/src/libpcap/build/grammar.c"
3424
66
    break;
3425
3426
66
  case 199:
3427
20
#line 883 "/src/libpcap/build/grammar.y"
3428
20
                                 { (yyval.blk).b = (yyvsp[-1].blk).b; (yyval.blk).q = qerr; }
3429
20
#line 3430 "/src/libpcap/build/grammar.c"
3430
20
    break;
3431
3432
248
  case 200:
3433
248
#line 885 "/src/libpcap/build/grammar.y"
3434
248
                   {
3435
248
  (yyval.blk).atmfieldtype = (yyvsp[-1].blk).atmfieldtype;
3436
248
  if ((yyval.blk).atmfieldtype == A_VPI ||
3437
142
      (yyval.blk).atmfieldtype == A_VCI)
3438
248
    CHECK_PTR_VAL(((yyval.blk).b = gen_atmfield_code(cstate, (yyval.blk).atmfieldtype, (yyvsp[0].h), BPF_JEQ, 0)));
3439
248
  }
3440
194
#line 3441 "/src/libpcap/build/grammar.c"
3441
194
    break;
3442
3443
194
  case 202:
3444
144
#line 893 "/src/libpcap/build/grammar.y"
3445
144
                                        { (yyvsp[0].blk).b = gen_or((yyvsp[-2].blk).b, (yyvsp[0].blk).b); (yyval.blk) = (yyvsp[0].blk); }
3446
144
#line 3447 "/src/libpcap/build/grammar.c"
3447
144
    break;
3448
3449
17
  case 203:
3450
17
#line 896 "/src/libpcap/build/grammar.y"
3451
17
                                { (yyval.i) = M_FISU; }
3452
17
#line 3453 "/src/libpcap/build/grammar.c"
3453
17
    break;
3454
3455
70
  case 204:
3456
70
#line 897 "/src/libpcap/build/grammar.y"
3457
70
                                { (yyval.i) = M_LSSU; }
3458
70
#line 3459 "/src/libpcap/build/grammar.c"
3459
70
    break;
3460
3461
34
  case 205:
3462
34
#line 898 "/src/libpcap/build/grammar.y"
3463
34
                                { (yyval.i) = M_MSU; }
3464
34
#line 3465 "/src/libpcap/build/grammar.c"
3465
34
    break;
3466
3467
11
  case 206:
3468
11
#line 899 "/src/libpcap/build/grammar.y"
3469
11
                                { (yyval.i) = MH_FISU; }
3470
11
#line 3471 "/src/libpcap/build/grammar.c"
3471
11
    break;
3472
3473
5
  case 207:
3474
5
#line 900 "/src/libpcap/build/grammar.y"
3475
5
                                { (yyval.i) = MH_LSSU; }
3476
5
#line 3477 "/src/libpcap/build/grammar.c"
3477
5
    break;
3478
3479
20
  case 208:
3480
20
#line 901 "/src/libpcap/build/grammar.y"
3481
20
                                { (yyval.i) = MH_MSU; }
3482
20
#line 3483 "/src/libpcap/build/grammar.c"
3483
20
    break;
3484
3485
67
  case 209:
3486
67
#line 904 "/src/libpcap/build/grammar.y"
3487
67
                                { (yyval.blk).mtp3fieldtype = M_SIO; }
3488
67
#line 3489 "/src/libpcap/build/grammar.c"
3489
67
    break;
3490
3491
37
  case 210:
3492
37
#line 905 "/src/libpcap/build/grammar.y"
3493
37
                                { (yyval.blk).mtp3fieldtype = M_OPC; }
3494
37
#line 3495 "/src/libpcap/build/grammar.c"
3495
37
    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
48
  case 212:
3504
48
#line 907 "/src/libpcap/build/grammar.y"
3505
48
                                { (yyval.blk).mtp3fieldtype = M_SLS; }
3506
48
#line 3507 "/src/libpcap/build/grammar.c"
3507
48
    break;
3508
3509
60
  case 213:
3510
60
#line 908 "/src/libpcap/build/grammar.y"
3511
60
                                { (yyval.blk).mtp3fieldtype = MH_SIO; }
3512
60
#line 3513 "/src/libpcap/build/grammar.c"
3513
60
    break;
3514
3515
24
  case 214:
3516
24
#line 909 "/src/libpcap/build/grammar.y"
3517
24
                                { (yyval.blk).mtp3fieldtype = MH_OPC; }
3518
24
#line 3519 "/src/libpcap/build/grammar.c"
3519
24
    break;
3520
3521
40
  case 215:
3522
40
#line 910 "/src/libpcap/build/grammar.y"
3523
40
                                { (yyval.blk).mtp3fieldtype = MH_DPC; }
3524
40
#line 3525 "/src/libpcap/build/grammar.c"
3525
40
    break;
3526
3527
12
  case 216:
3528
12
#line 911 "/src/libpcap/build/grammar.y"
3529
12
                                { (yyval.blk).mtp3fieldtype = MH_SLS; }
3530
12
#line 3531 "/src/libpcap/build/grammar.c"
3531
12
    break;
3532
3533
64
  case 218:
3534
64
#line 914 "/src/libpcap/build/grammar.y"
3535
64
                                { CHECK_PTR_VAL(((yyval.blk).b = gen_mtp3field_code(cstate, (yyvsp[-2].blk).mtp3fieldtype, (yyvsp[0].h), (yyvsp[-1].i), 0))); }
3536
62
#line 3537 "/src/libpcap/build/grammar.c"
3537
62
    break;
3538
3539
62
  case 219:
3540
59
#line 915 "/src/libpcap/build/grammar.y"
3541
59
                                { CHECK_PTR_VAL(((yyval.blk).b = gen_mtp3field_code(cstate, (yyvsp[-2].blk).mtp3fieldtype, (yyvsp[0].h), (yyvsp[-1].i), 1))); }
3542
57
#line 3543 "/src/libpcap/build/grammar.c"
3543
57
    break;
3544
3545
57
  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
541
  case 221:
3552
541
#line 918 "/src/libpcap/build/grammar.y"
3553
541
                    {
3554
541
  (yyval.blk).mtp3fieldtype = (yyvsp[-1].blk).mtp3fieldtype;
3555
541
  if ((yyval.blk).mtp3fieldtype == M_SIO ||
3556
461
      (yyval.blk).mtp3fieldtype == M_OPC ||
3557
414
      (yyval.blk).mtp3fieldtype == M_DPC ||
3558
359
      (yyval.blk).mtp3fieldtype == M_SLS ||
3559
286
      (yyval.blk).mtp3fieldtype == MH_SIO ||
3560
158
      (yyval.blk).mtp3fieldtype == MH_OPC ||
3561
112
      (yyval.blk).mtp3fieldtype == MH_DPC ||
3562
37
      (yyval.blk).mtp3fieldtype == MH_SLS)
3563
541
    CHECK_PTR_VAL(((yyval.blk).b = gen_mtp3field_code(cstate, (yyval.blk).mtp3fieldtype, (yyvsp[0].h), BPF_JEQ, 0)));
3564
541
  }
3565
441
#line 3566 "/src/libpcap/build/grammar.c"
3566
441
    break;
3567
3568
441
  case 223:
3569
328
#line 932 "/src/libpcap/build/grammar.y"
3570
328
                                          { (yyvsp[0].blk).b = gen_or((yyvsp[-2].blk).b, (yyvsp[0].blk).b); (yyval.blk) = (yyvsp[0].blk); }
3571
328
#line 3572 "/src/libpcap/build/grammar.c"
3572
328
    break;
3573
3574
3575
0
#line 3576 "/src/libpcap/build/grammar.c"
3576
3577
105k
      default: break;
3578
301k
    }
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
299k
  YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc);
3591
3592
299k
  YYPOPSTACK (yylen);
3593
299k
  yylen = 0;
3594
299k
  YY_STACK_PRINT (yyss, yyssp);
3595
3596
299k
  *++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
299k
  {
3602
299k
    const int yylhs = yyr1[yyn] - YYNTOKENS;
3603
299k
    const int yyi = yypgoto[yylhs] + *yyssp;
3604
299k
    yystate = (0 <= yyi && yyi <= YYLAST && yycheck[yyi] == *yyssp
3605
299k
               ? yytable[yyi]
3606
299k
               : yydefgoto[yylhs]);
3607
299k
  }
3608
3609
299k
  goto yynewstate;
3610
3611
3612
/*--------------------------------------.
3613
| yyerrlab -- here on detecting error.  |
3614
`--------------------------------------*/
3615
1.64k
yyerrlab:
3616
  /* Make sure we have latest lookahead translation.  See comments at
3617
     user semantic actions for why this is necessary.  */
3618
1.64k
  yytoken = yychar == YYEMPTY ? YYEMPTY : YYTRANSLATE (yychar);
3619
3620
  /* If not already recovering from an error, report this error.  */
3621
1.64k
  if (!yyerrstatus)
3622
1.64k
    {
3623
1.64k
      ++yynerrs;
3624
1.64k
#if ! YYERROR_VERBOSE
3625
1.64k
      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.64k
    }
3659
3660
3661
3662
1.64k
  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.64k
  goto yyerrlab1;
3684
3685
3686
/*---------------------------------------------------.
3687
| yyerrorlab -- error raised explicitly by YYERROR.  |
3688
`---------------------------------------------------*/
3689
1.64k
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.64k
yyerrlab1:
3708
1.64k
  yyerrstatus = 3;      /* Each real token shifted decrements this.  */
3709
3710
1.64k
  for (;;)
3711
8.02k
    {
3712
8.02k
      yyn = yypact[yystate];
3713
8.02k
      if (!yypact_value_is_default (yyn))
3714
6.38k
        {
3715
6.38k
          yyn += YYTERROR;
3716
6.38k
          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
6.38k
        }
3723
3724
      /* Pop the current state because it cannot handle the error token.  */
3725
8.02k
      if (yyssp == yyss)
3726
1.64k
        YYABORT;
3727
3728
3729
6.38k
      yydestruct ("Error: popping",
3730
6.38k
                  yystos[yystate], yyvsp, yyscanner, cstate);
3731
6.38k
      YYPOPSTACK (1);
3732
6.38k
      yystate = *yyssp;
3733
6.38k
      YY_STACK_PRINT (yyss, yyssp);
3734
6.38k
    }
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
7.29k
yyacceptlab:
3752
7.29k
  yyresult = 0;
3753
7.29k
  goto yyreturn;
3754
3755
3756
/*-----------------------------------.
3757
| yyabortlab -- YYABORT comes here.  |
3758
`-----------------------------------*/
3759
3.89k
yyabortlab:
3760
3.89k
  yyresult = 1;
3761
3.89k
  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
11.1k
yyreturn:
3779
11.1k
  if (yychar != YYEMPTY)
3780
2.01k
    {
3781
      /* Make sure we have latest lookahead translation.  See comments at
3782
         user semantic actions for why this is necessary.  */
3783
2.01k
      yytoken = YYTRANSLATE (yychar);
3784
2.01k
      yydestruct ("Cleanup: discarding lookahead",
3785
2.01k
                  yytoken, &yylval, yyscanner, cstate);
3786
2.01k
    }
3787
  /* Do not reclaim the symbols of the rule whose action triggered
3788
     this YYABORT or YYACCEPT.  */
3789
11.1k
  YYPOPSTACK (yylen);
3790
11.1k
  YY_STACK_PRINT (yyss, yyssp);
3791
32.0k
  while (yyssp != yyss)
3792
20.9k
    {
3793
20.9k
      yydestruct ("Cleanup: popping",
3794
20.9k
                  yystos[+*yyssp], yyvsp, yyscanner, cstate);
3795
20.9k
      YYPOPSTACK (1);
3796
20.9k
    }
3797
11.1k
#ifndef yyoverflow
3798
11.1k
  if (yyss != yyssa)
3799
6
    YYSTACK_FREE (yyss);
3800
11.1k
#endif
3801
#if YYERROR_VERBOSE
3802
  if (yymsg != yymsgbuf)
3803
    YYSTACK_FREE (yymsg);
3804
#endif
3805
11.1k
  return yyresult;
3806
0
}
3807
#line 934 "/src/libpcap/build/grammar.y"
3808