Coverage Report

Created: 2026-08-14 06:29

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