-
Notifications
You must be signed in to change notification settings - Fork 3
/
parser_gram.c
8265 lines (6915 loc) · 207 KB
/
parser_gram.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/* A Bison parser, made by GNU Bison 2.4.1. */
/* Skeleton implementation for Bison's Yacc-like parsers in C
Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
/* As a special exception, you may create a larger work that contains
part or all of the Bison parser skeleton and distribute that work
under terms of your choice, so long as that work isn't itself a
parser generator using the skeleton or a modified version thereof
as a parser skeleton. Alternatively, if you modify or redistribute
the parser skeleton itself, you may (at your option) remove this
special exception, which will cause the skeleton and the resulting
Bison output files to be licensed under the GNU General Public
License without this special exception.
This special exception was added by the Free Software Foundation in
version 2.2 of Bison. */
/* C LALR(1) parser skeleton written by Richard Stallman, by
simplifying the original so-called "semantic" parser. */
/* All symbols defined below should begin with yy or YY, to avoid
infringing on user name space. This should be done even for local
variables, as they might otherwise be expanded by user macros.
There are some unavoidable exceptions within include files to
define necessary library symbols; they are noted "INFRINGES ON
USER NAME SPACE" below. */
/* Identify Bison output. */
#define YYBISON 1
/* Bison version. */
#define YYBISON_VERSION "2.4.1"
/* Skeleton name. */
#define YYSKELETON_NAME "yacc.c"
/* Pure parsers. */
#define YYPURE 0
/* Push parsers. */
#define YYPUSH 0
/* Pull parsers. */
#define YYPULL 1
/* Using locations. */
#define YYLSP_NEEDED 0
/* Copy the first part of user declarations. */
/* Line 189 of yacc.c */
#line 29 "parser_gram.y"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <signal.h>
#include <errno.h>
#include <sys/types.h>
#include <locale.h>
#include <sys/utsname.h>
#include <sys/statvfs.h>
#ifdef HAVE_STDINT_H
#include <stdint.h>
#endif
#include <fcntl.h>
#include <sys/mman.h>
#include <sys/wait.h>
#ifdef HAVE_LIBTECLA
#include <libtecla.h>
#endif
#include "parsertypes.h"
#include "filebench.h"
#include "utils.h"
#include "stats.h"
#include "vars.h"
#include "eventgen.h"
#ifdef HAVE_LIBTECLA
#include "auto_comp.h"
#endif
#include "multi_client_sync.h"
/* yacc and lex externals */
extern FILE *yyin;
extern int yydebug;
extern void yyerror(char *s);
extern int yylex(void);
/* GetLine resource object */
#ifdef HAVE_LIBTECLA
static GetLine *gl;
#endif
/* executable name to execute worker processes later */
char *execname;
static int dofile = DOFILE_FALSE;
static FILE *parentscript;
static char *fbbasepath = FILEBENCHDIR;
static char cwd[MAXPATHLEN];
static pidlist_t *pidlist;
static int filecreate_done;
/* utilities */
static cmd_t *alloc_cmd(void);
static attr_t *alloc_attr(void);
static attr_t *alloc_lvar_attr(var_t *var);
static attr_t *get_attr(cmd_t *cmd, int64_t name);
static attr_t *get_attr_fileset(cmd_t *cmd, int64_t name);
static attr_t *get_attr_integer(cmd_t *cmd, int64_t name);
static attr_t *get_attr_bool(cmd_t *cmd, int64_t name);
static void get_attr_lvars(cmd_t *cmd, flowop_t *flowop);
static list_t *alloc_list();
static probtabent_t *alloc_probtabent(void);
static void add_lvar_to_list(var_t *newlvar, var_t **lvar_list);
/* Info Commands */
static void parser_list(cmd_t *);
static void parser_flowop_list(cmd_t *);
/* Define Commands */
static void parser_proc_define(cmd_t *);
static void parser_thread_define(cmd_t *, procflow_t *, int instances);
static void parser_flowop_define(cmd_t *, threadflow_t *, flowop_t **, int);
static void parser_file_define(cmd_t *);
static void parser_fileset_define(cmd_t *);
static void parser_posset_define(cmd_t *);
static void parser_randvar_define(cmd_t *);
static void parser_randvar_set(cmd_t *);
static void parser_composite_flowop_define(cmd_t *);
/* Create Commands */
static void parser_proc_create(cmd_t *);
static void parser_fileset_create(cmd_t *);
/* set commands */
static void parser_set_integer(cmd_t *cmd);
static void parser_set_var(cmd_t *cmd);
static void parser_set_var_op_int(cmd_t *cmd);
static void parser_set_int_op_var(cmd_t *cmd);
static void parser_set_var_op_var(cmd_t *cmd);
/* Shutdown Commands */
static void parser_proc_shutdown(cmd_t *);
static void parser_filebench_shutdown(cmd_t *cmd);
static void parser_fileset_shutdown(cmd_t *cmd);
/* Other Commands */
static void parser_echo(cmd_t *cmd);
static void parser_foreach_integer(cmd_t *cmd);
static void parser_foreach_string(cmd_t *cmd);
static void parser_fscheck(cmd_t *cmd);
static void parser_fsflush(cmd_t *cmd);
static void parser_log(cmd_t *cmd);
static void parser_statscmd(cmd_t *cmd);
static void parser_statsdump(cmd_t *cmd);
static void parser_statsxmldump(cmd_t *cmd);
static void parser_statsmultidump(cmd_t *cmd);
static void parser_usage(cmd_t *cmd);
static void parser_vars(cmd_t *cmd);
static void parser_printvars(cmd_t *cmd);
static void parser_system(cmd_t *cmd);
static void parser_statssnap(cmd_t *cmd);
static void parser_directory(cmd_t *cmd);
static void parser_eventgen(cmd_t *cmd);
static void parser_enable_mc(cmd_t *cmd);
static void parser_domultisync(cmd_t *cmd);
static void parser_run(cmd_t *cmd);
static void parser_run_variable(cmd_t *cmd);
static void parser_sleep(cmd_t *cmd);
static void parser_sleep_variable(cmd_t *cmd);
static void parser_warmup(cmd_t *cmd);
static void parser_warmup_variable(cmd_t *cmd);
static void parser_help(cmd_t *cmd);
static void arg_parse(const char *command);
static void parser_abort(int arg);
static void parser_version(cmd_t *cmd);
static void parser_osprof_enable(cmd_t *cmd);
static void parser_osprof_disable(cmd_t *cmd);
/* Line 189 of yacc.c */
#line 206 "parser_gram.c"
/* Enabling traces. */
#ifndef YYDEBUG
# define YYDEBUG 0
#endif
/* Enabling verbose error messages. */
#ifdef YYERROR_VERBOSE
# undef YYERROR_VERBOSE
# define YYERROR_VERBOSE 1
#else
# define YYERROR_VERBOSE 0
#endif
/* Enabling the token table. */
#ifndef YYTOKEN_TABLE
# define YYTOKEN_TABLE 0
#endif
/* Tokens. */
#ifndef YYTOKENTYPE
# define YYTOKENTYPE
/* Put the tokens into the symbol table, so that GDB and other debuggers
know about them. */
enum yytokentype {
FSC_LIST = 258,
FSC_DEFINE = 259,
FSC_EXEC = 260,
FSC_QUIT = 261,
FSC_DEBUG = 262,
FSC_CREATE = 263,
FSC_SLEEP = 264,
FSC_STATS = 265,
FSC_FOREACH = 266,
FSC_SET = 267,
FSC_SHUTDOWN = 268,
FSC_LOG = 269,
FSC_SYSTEM = 270,
FSC_FLOWOP = 271,
FSC_EVENTGEN = 272,
FSC_ECHO = 273,
FSC_LOAD = 274,
FSC_RUN = 275,
FSC_WARMUP = 276,
FSC_NOUSESTATS = 277,
FSC_FSCHECK = 278,
FSC_FSFLUSH = 279,
FSC_USAGE = 280,
FSC_HELP = 281,
FSC_VARS = 282,
FSC_VERSION = 283,
FSC_ENABLE = 284,
FSC_DOMULTISYNC = 285,
FSV_STRING = 286,
FSV_VAL_INT = 287,
FSV_VAL_BOOLEAN = 288,
FSV_VARIABLE = 289,
FSV_WHITESTRING = 290,
FSV_RANDUNI = 291,
FSV_RANDTAB = 292,
FSV_RANDVAR = 293,
FSV_URAND = 294,
FSV_RAND48 = 295,
FST_INT = 296,
FST_BOOLEAN = 297,
FSE_FILE = 298,
FSE_PROC = 299,
FSE_THREAD = 300,
FSE_CLEAR = 301,
FSE_ALL = 302,
FSE_SNAP = 303,
FSE_DUMP = 304,
FSE_DIRECTORY = 305,
FSE_COMMAND = 306,
FSE_FILESET = 307,
FSE_POSSET = 308,
FSE_XMLDUMP = 309,
FSE_RAND = 310,
FSE_MODE = 311,
FSE_MULTI = 312,
FSE_MULTIDUMP = 313,
FSK_SEPLST = 314,
FSK_OPENLST = 315,
FSK_CLOSELST = 316,
FSK_ASSIGN = 317,
FSK_IN = 318,
FSK_QUOTE = 319,
FSK_DIRSEPLST = 320,
FSK_PLUS = 321,
FSK_MINUS = 322,
FSK_MULTIPLY = 323,
FSK_DIVIDE = 324,
FSA_SIZE = 325,
FSA_PREALLOC = 326,
FSA_PARALLOC = 327,
FSA_PATH = 328,
FSA_REUSE = 329,
FSA_PROCESS = 330,
FSA_MEMSIZE = 331,
FSA_RATE = 332,
FSA_CACHED = 333,
FSA_READONLY = 334,
FSA_TRUSTTREE = 335,
FSA_IOSIZE = 336,
FSA_FILE = 337,
FSA_POSSET = 338,
FSA_WSS = 339,
FSA_NAME = 340,
FSA_RANDOM = 341,
FSA_INSTANCES = 342,
FSA_DSYNC = 343,
FSA_TARGET = 344,
FSA_ITERS = 345,
FSA_NICE = 346,
FSA_VALUE = 347,
FSA_BLOCKING = 348,
FSA_HIGHWATER = 349,
FSA_DIRECTIO = 350,
FSA_DIRWIDTH = 351,
FSA_FD = 352,
FSA_SRCFD = 353,
FSA_ROTATEFD = 354,
FSA_NAMELENGTH = 355,
FSA_FILESIZE = 356,
FSA_ENTRIES = 357,
FSA_FILESIZEGAMMA = 358,
FSA_DIRDEPTHRV = 359,
FSA_DIRGAMMA = 360,
FSA_USEISM = 361,
FSA_TYPE = 362,
FSA_RANDTABLE = 363,
FSA_RANDSRC = 364,
FSA_RANDROUND = 365,
FSA_LEAFDIRS = 366,
FSA_INDEXED = 367,
FSA_FSTYPE = 368,
FSA_RANDSEED = 369,
FSA_RANDGAMMA = 370,
FSA_RANDMEAN = 371,
FSA_RANDMIN = 372,
FSA_RANDMAX = 373,
FSA_MASTER = 374,
FSA_CLIENT = 375,
FSS_TYPE = 376,
FSS_SEED = 377,
FSS_GAMMA = 378,
FSS_MEAN = 379,
FSS_MIN = 380,
FSS_SRC = 381,
FSS_ROUND = 382,
FSV_SET_LOCAL_VAR = 383,
FSA_LVAR_ASSIGN = 384,
FSA_ALLDONE = 385,
FSA_FIRSTDONE = 386,
FSA_TIMEOUT = 387,
FSC_OSPROF_ENABLE = 388,
FSC_OSPROF_DISABLE = 389,
FSA_NOREADAHEAD = 390,
FSA_IOPRIO = 391,
FSA_WRITEONLY = 392
};
#endif
/* Tokens. */
#define FSC_LIST 258
#define FSC_DEFINE 259
#define FSC_EXEC 260
#define FSC_QUIT 261
#define FSC_DEBUG 262
#define FSC_CREATE 263
#define FSC_SLEEP 264
#define FSC_STATS 265
#define FSC_FOREACH 266
#define FSC_SET 267
#define FSC_SHUTDOWN 268
#define FSC_LOG 269
#define FSC_SYSTEM 270
#define FSC_FLOWOP 271
#define FSC_EVENTGEN 272
#define FSC_ECHO 273
#define FSC_LOAD 274
#define FSC_RUN 275
#define FSC_WARMUP 276
#define FSC_NOUSESTATS 277
#define FSC_FSCHECK 278
#define FSC_FSFLUSH 279
#define FSC_USAGE 280
#define FSC_HELP 281
#define FSC_VARS 282
#define FSC_VERSION 283
#define FSC_ENABLE 284
#define FSC_DOMULTISYNC 285
#define FSV_STRING 286
#define FSV_VAL_INT 287
#define FSV_VAL_BOOLEAN 288
#define FSV_VARIABLE 289
#define FSV_WHITESTRING 290
#define FSV_RANDUNI 291
#define FSV_RANDTAB 292
#define FSV_RANDVAR 293
#define FSV_URAND 294
#define FSV_RAND48 295
#define FST_INT 296
#define FST_BOOLEAN 297
#define FSE_FILE 298
#define FSE_PROC 299
#define FSE_THREAD 300
#define FSE_CLEAR 301
#define FSE_ALL 302
#define FSE_SNAP 303
#define FSE_DUMP 304
#define FSE_DIRECTORY 305
#define FSE_COMMAND 306
#define FSE_FILESET 307
#define FSE_POSSET 308
#define FSE_XMLDUMP 309
#define FSE_RAND 310
#define FSE_MODE 311
#define FSE_MULTI 312
#define FSE_MULTIDUMP 313
#define FSK_SEPLST 314
#define FSK_OPENLST 315
#define FSK_CLOSELST 316
#define FSK_ASSIGN 317
#define FSK_IN 318
#define FSK_QUOTE 319
#define FSK_DIRSEPLST 320
#define FSK_PLUS 321
#define FSK_MINUS 322
#define FSK_MULTIPLY 323
#define FSK_DIVIDE 324
#define FSA_SIZE 325
#define FSA_PREALLOC 326
#define FSA_PARALLOC 327
#define FSA_PATH 328
#define FSA_REUSE 329
#define FSA_PROCESS 330
#define FSA_MEMSIZE 331
#define FSA_RATE 332
#define FSA_CACHED 333
#define FSA_READONLY 334
#define FSA_TRUSTTREE 335
#define FSA_IOSIZE 336
#define FSA_FILE 337
#define FSA_POSSET 338
#define FSA_WSS 339
#define FSA_NAME 340
#define FSA_RANDOM 341
#define FSA_INSTANCES 342
#define FSA_DSYNC 343
#define FSA_TARGET 344
#define FSA_ITERS 345
#define FSA_NICE 346
#define FSA_VALUE 347
#define FSA_BLOCKING 348
#define FSA_HIGHWATER 349
#define FSA_DIRECTIO 350
#define FSA_DIRWIDTH 351
#define FSA_FD 352
#define FSA_SRCFD 353
#define FSA_ROTATEFD 354
#define FSA_NAMELENGTH 355
#define FSA_FILESIZE 356
#define FSA_ENTRIES 357
#define FSA_FILESIZEGAMMA 358
#define FSA_DIRDEPTHRV 359
#define FSA_DIRGAMMA 360
#define FSA_USEISM 361
#define FSA_TYPE 362
#define FSA_RANDTABLE 363
#define FSA_RANDSRC 364
#define FSA_RANDROUND 365
#define FSA_LEAFDIRS 366
#define FSA_INDEXED 367
#define FSA_FSTYPE 368
#define FSA_RANDSEED 369
#define FSA_RANDGAMMA 370
#define FSA_RANDMEAN 371
#define FSA_RANDMIN 372
#define FSA_RANDMAX 373
#define FSA_MASTER 374
#define FSA_CLIENT 375
#define FSS_TYPE 376
#define FSS_SEED 377
#define FSS_GAMMA 378
#define FSS_MEAN 379
#define FSS_MIN 380
#define FSS_SRC 381
#define FSS_ROUND 382
#define FSV_SET_LOCAL_VAR 383
#define FSA_LVAR_ASSIGN 384
#define FSA_ALLDONE 385
#define FSA_FIRSTDONE 386
#define FSA_TIMEOUT 387
#define FSC_OSPROF_ENABLE 388
#define FSC_OSPROF_DISABLE 389
#define FSA_NOREADAHEAD 390
#define FSA_IOPRIO 391
#define FSA_WRITEONLY 392
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
typedef union YYSTYPE
{
/* Line 214 of yacc.c */
#line 161 "parser_gram.y"
int64_t ival;
unsigned char bval;
char * sval;
fs_u val;
avd_t avd;
cmd_t *cmd;
attr_t *attr;
list_t *list;
probtabent_t *rndtb;
/* Line 214 of yacc.c */
#line 530 "parser_gram.c"
} YYSTYPE;
# define YYSTYPE_IS_TRIVIAL 1
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
# define YYSTYPE_IS_DECLARED 1
#endif
/* Copy the second part of user declarations. */
/* Line 264 of yacc.c */
#line 542 "parser_gram.c"
#ifdef short
# undef short
#endif
#ifdef YYTYPE_UINT8
typedef YYTYPE_UINT8 yytype_uint8;
#else
typedef unsigned char yytype_uint8;
#endif
#ifdef YYTYPE_INT8
typedef YYTYPE_INT8 yytype_int8;
#elif (defined __STDC__ || defined __C99__FUNC__ \
|| defined __cplusplus || defined _MSC_VER)
typedef signed char yytype_int8;
#else
typedef short int yytype_int8;
#endif
#ifdef YYTYPE_UINT16
typedef YYTYPE_UINT16 yytype_uint16;
#else
typedef unsigned short int yytype_uint16;
#endif
#ifdef YYTYPE_INT16
typedef YYTYPE_INT16 yytype_int16;
#else
typedef short int yytype_int16;
#endif
#ifndef YYSIZE_T
# ifdef __SIZE_TYPE__
# define YYSIZE_T __SIZE_TYPE__
# elif defined size_t
# define YYSIZE_T size_t
# elif ! defined YYSIZE_T && (defined __STDC__ || defined __C99__FUNC__ \
|| defined __cplusplus || defined _MSC_VER)
# include <stddef.h> /* INFRINGES ON USER NAME SPACE */
# define YYSIZE_T size_t
# else
# define YYSIZE_T unsigned int
# endif
#endif
#define YYSIZE_MAXIMUM ((YYSIZE_T) -1)
#ifndef YY_
# if YYENABLE_NLS
# if ENABLE_NLS
# include <libintl.h> /* INFRINGES ON USER NAME SPACE */
# define YY_(msgid) dgettext ("bison-runtime", msgid)
# endif
# endif
# ifndef YY_
# define YY_(msgid) msgid
# endif
#endif
/* Suppress unused-variable warnings by "using" E. */
#if ! defined lint || defined __GNUC__
# define YYUSE(e) ((void) (e))
#else
# define YYUSE(e) /* empty */
#endif
/* Identity function, used to suppress warnings about constant conditions. */
#ifndef lint
# define YYID(n) (n)
#else
#if (defined __STDC__ || defined __C99__FUNC__ \
|| defined __cplusplus || defined _MSC_VER)
static int
YYID (int yyi)
#else
static int
YYID (yyi)
int yyi;
#endif
{
return yyi;
}
#endif
#if ! defined yyoverflow || YYERROR_VERBOSE
/* The parser invokes alloca or malloc; define the necessary symbols. */
# ifdef YYSTACK_USE_ALLOCA
# if YYSTACK_USE_ALLOCA
# ifdef __GNUC__
# define YYSTACK_ALLOC __builtin_alloca
# elif defined __BUILTIN_VA_ARG_INCR
# include <alloca.h> /* INFRINGES ON USER NAME SPACE */
# elif defined _AIX
# define YYSTACK_ALLOC __alloca
# elif defined _MSC_VER
# include <malloc.h> /* INFRINGES ON USER NAME SPACE */
# define alloca _alloca
# else
# define YYSTACK_ALLOC alloca
# if ! defined _ALLOCA_H && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
|| defined __cplusplus || defined _MSC_VER)
# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
# ifndef _STDLIB_H
# define _STDLIB_H 1
# endif
# endif
# endif
# endif
# endif
# ifdef YYSTACK_ALLOC
/* Pacify GCC's `empty if-body' warning. */
# define YYSTACK_FREE(Ptr) do { /* empty */; } while (YYID (0))
# ifndef YYSTACK_ALLOC_MAXIMUM
/* The OS might guarantee only one guard page at the bottom of the stack,
and a page size can be as small as 4096 bytes. So we cannot safely
invoke alloca (N) if N exceeds 4096. Use a slightly smaller number
to allow for a few compiler-allocated temporary stack slots. */
# define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */
# endif
# else
# define YYSTACK_ALLOC YYMALLOC
# define YYSTACK_FREE YYFREE
# ifndef YYSTACK_ALLOC_MAXIMUM
# define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM
# endif
# if (defined __cplusplus && ! defined _STDLIB_H \
&& ! ((defined YYMALLOC || defined malloc) \
&& (defined YYFREE || defined free)))
# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
# ifndef _STDLIB_H
# define _STDLIB_H 1
# endif
# endif
# ifndef YYMALLOC
# define YYMALLOC malloc
# if ! defined malloc && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
|| defined __cplusplus || defined _MSC_VER)
void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */
# endif
# endif
# ifndef YYFREE
# define YYFREE free
# if ! defined free && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
|| defined __cplusplus || defined _MSC_VER)
void free (void *); /* INFRINGES ON USER NAME SPACE */
# endif
# endif
# endif
#endif /* ! defined yyoverflow || YYERROR_VERBOSE */
#if (! defined yyoverflow \
&& (! defined __cplusplus \
|| (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))
/* A type that is properly aligned for any stack member. */
union yyalloc
{
yytype_int16 yyss_alloc;
YYSTYPE yyvs_alloc;
};
/* The size of the maximum gap between one aligned stack and the next. */
# define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1)
/* The size of an array large to enough to hold all stacks, each with
N elements. */
# define YYSTACK_BYTES(N) \
((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \
+ YYSTACK_GAP_MAXIMUM)
/* Copy COUNT objects from FROM to TO. The source and destination do
not overlap. */
# ifndef YYCOPY
# if defined __GNUC__ && 1 < __GNUC__
# define YYCOPY(To, From, Count) \
__builtin_memcpy (To, From, (Count) * sizeof (*(From)))
# else
# define YYCOPY(To, From, Count) \
do \
{ \
YYSIZE_T yyi; \
for (yyi = 0; yyi < (Count); yyi++) \
(To)[yyi] = (From)[yyi]; \
} \
while (YYID (0))
# endif
# endif
/* Relocate STACK from its old location to the new one. The
local variables YYSIZE and YYSTACKSIZE give the old and new number of
elements in the stack, and YYPTR gives the new location of the
stack. Advance YYPTR to a properly aligned location for the next
stack. */
# define YYSTACK_RELOCATE(Stack_alloc, Stack) \
do \
{ \
YYSIZE_T yynewbytes; \
YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \
Stack = &yyptr->Stack_alloc; \
yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
yyptr += yynewbytes / sizeof (*yyptr); \
} \
while (YYID (0))
#endif
/* YYFINAL -- State number of the termination state. */
#define YYFINAL 2
/* YYLAST -- Last index in YYTABLE. */
#define YYLAST 413
/* YYNTOKENS -- Number of terminals. */
#define YYNTOKENS 138
/* YYNNTS -- Number of nonterminals. */
#define YYNNTS 96
/* YYNRULES -- Number of rules. */
#define YYNRULES 294
/* YYNRULES -- Number of states. */
#define YYNSTATES 392
/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */
#define YYUNDEFTOK 2
#define YYMAXUTOK 392
#define YYTRANSLATE(YYX) \
((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
/* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */
static const yytype_uint8 yytranslate[] =
{
0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 1, 2, 3, 4,
5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
35, 36, 37, 38, 39, 40, 41, 42, 43, 44,
45, 46, 47, 48, 49, 50, 51, 52, 53, 54,
55, 56, 57, 58, 59, 60, 61, 62, 63, 64,
65, 66, 67, 68, 69, 70, 71, 72, 73, 74,
75, 76, 77, 78, 79, 80, 81, 82, 83, 84,
85, 86, 87, 88, 89, 90, 91, 92, 93, 94,
95, 96, 97, 98, 99, 100, 101, 102, 103, 104,
105, 106, 107, 108, 109, 110, 111, 112, 113, 114,
115, 116, 117, 118, 119, 120, 121, 122, 123, 124,
125, 126, 127, 128, 129, 130, 131, 132, 133, 134,
135, 136, 137
};
#if YYDEBUG
/* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
YYRHS. */
static const yytype_uint16 yyprhs[] =
{
0, 0, 3, 6, 9, 10, 12, 15, 17, 19,
21, 23, 25, 27, 29, 31, 33, 35, 37, 39,
41, 43, 45, 47, 49, 51, 53, 55, 57, 59,
61, 63, 65, 67, 69, 71, 73, 75, 77, 79,
87, 95, 97, 101, 105, 111, 113, 116, 119, 122,
124, 126, 128, 131, 133, 136, 139, 142, 144, 146,
148, 151, 154, 157, 160, 163, 166, 169, 172, 176,
179, 182, 186, 189, 192, 194, 197, 200, 203, 206,
209, 212, 214, 216, 221, 226, 230, 234, 239, 246,
251, 256, 261, 266, 270, 276, 282, 288, 291, 294,
298, 302, 306, 310, 314, 316, 318, 321, 327, 329,
332, 339, 342, 345, 348, 351, 354, 357, 361, 368,
371, 374, 377, 380, 383, 386, 389, 392, 395, 397,
399, 402, 405, 408, 410, 412, 414, 416, 418, 420,
424, 426, 430, 434, 436, 440, 442, 444, 448, 456,
460, 462, 466, 470, 478, 480, 484, 486, 490, 494,
496, 498, 502, 506, 510, 512, 514, 518, 522, 524,
526, 530, 534, 538, 542, 544, 546, 548, 550, 552,
554, 556, 558, 560, 562, 564, 566, 568, 570, 572,
574, 576, 578, 580, 582, 584, 586, 588, 590, 592,
594, 596, 598, 600, 602, 604, 606, 608, 610, 612,
614, 616, 618, 620, 622, 624, 626, 628, 630, 632,
634, 636, 638, 640, 642, 644, 646, 648, 650, 652,
654, 656, 658, 660, 662, 664, 666, 668, 670, 672,
674, 676, 678, 680, 682, 684, 686, 688, 690, 692,
694, 696, 698, 700, 702, 704, 706, 708, 710, 712,
714, 716, 718, 720, 722, 724, 726, 728, 730, 732,
734, 736, 738, 740, 744, 748, 752, 756, 760, 766,
770, 774, 776, 778, 780, 782, 784, 786, 788, 790,
792, 794, 796, 798, 800
};
/* YYRHS -- A `-1'-separated list of the rules' RHS. */
static const yytype_int16 yyrhs[] =
{
139, 0, -1, 139, 141, -1, 139, 1, -1, -1,
141, -1, 140, 141, -1, 172, -1, 173, -1, 174,
-1, 175, -1, 176, -1, 163, -1, 145, -1, 177,
-1, 147, -1, 151, -1, 152, -1, 142, -1, 160,
-1, 161, -1, 182, -1, 159, -1, 184, -1, 162,
-1, 181, -1, 164, -1, 178, -1, 180, -1, 179,
-1, 167, -1, 146, -1, 148, -1, 149, -1, 150,
-1, 153, -1, 154, -1, 168, -1, 11, -1, 142,
34, 63, 143, 60, 140, 61, -1, 142, 34, 63,
144, 60, 140, 61, -1, 32, -1, 143, 59, 32,
-1, 64, 35, 64, -1, 144, 59, 64, 35, 64,
-1, 17, -1, 145, 199, -1, 15, 158, -1, 18,
158, -1, 28, -1, 133, -1, 134, -1, 25, 158,
-1, 27, -1, 29, 57, -1, 153, 201, -1, 30,
203, -1, 34, -1, 31, -1, 155, -1, 155, 31,
-1, 155, 34, -1, 156, 31, -1, 156, 34, -1,
64, 34, -1, 64, 35, -1, 157, 35, -1, 157,
34, -1, 157, 38, 216, -1, 158, 35, -1, 158,
34, -1, 158, 38, 216, -1, 158, 64, -1, 157,
64, -1, 3, -1, 159, 16, -1, 23, 204, -1,
160, 204, -1, 24, 204, -1, 14, 158, -1, 7,
32, -1, 165, -1, 166, -1, 12, 34, 62, 32,
-1, 12, 34, 62, 34, -1, 165, 205, 32, -1,
165, 205, 34, -1, 12, 34, 62, 33, -1, 12,
34, 62, 64, 35, 64, -1, 12, 34, 62, 31,
-1, 12, 56, 6, 132, -1, 12, 56, 6, 130,
-1, 12, 56, 6, 131, -1, 12, 56, 22, -1,
12, 38, 121, 62, 218, -1, 12, 38, 126, 62,
220, -1, 12, 38, 217, 62, 231, -1, 10, 48,
-1, 10, 46, -1, 10, 50, 156, -1, 10, 51,
158, -1, 10, 49, 158, -1, 10, 54, 158, -1,
10, 58, 158, -1, 6, -1, 183, -1, 169, 183,
-1, 45, 195, 60, 169, 61, -1, 170, -1, 171,
170, -1, 4, 44, 195, 60, 171, 61, -1, 172,
195, -1, 4, 43, -1, 4, 52, -1, 173, 187,
-1, 4, 53, -1, 174, 188, -1, 4, 55, 191,
-1, 4, 16, 227, 60, 169, 61, -1, 176, 227,
-1, 8, 185, -1, 13, 185, -1, 21, 32, -1,
21, 34, -1, 9, 32, -1, 9, 34, -1, 20,
32, -1, 20, 34, -1, 20, -1, 26, -1, 16,
186, -1, 183, 197, -1, 19, 31, -1, 44, -1,
45, -1, 52, -1, 43, -1, 31, -1, 190, -1,
187, 59, 190, -1, 189, -1, 188, 59, 189, -1,
207, 62, 232, -1, 207, -1, 206, 62, 232, -1,
206, -1, 192, -1, 191, 59, 192, -1, 191, 59,
108, 62, 60, 194, 61, -1, 215, 62, 232, -1,
215, -1, 107, 62, 218, -1, 109, 62, 220, -1,
60, 233, 59, 233, 59, 233, 61, -1, 193, -1,
194, 59, 193, -1, 196, -1, 195, 59, 196, -1,
208, 62, 231, -1, 208, -1, 198, -1, 197, 59,
198, -1, 197, 59, 229, -1, 209, 62, 231, -1,
209, -1, 200, -1, 199, 59, 200, -1, 210, 62,
231, -1, 210, -1, 202, -1, 201, 59, 202, -1,
225, 62, 231, -1, 92, 62, 231, -1, 226, 62,
31, -1, 66, -1, 67, -1, 68, -1, 69, -1,
212, -1, 213, -1, 214, -1, 222, -1, 211, -1,
223, -1, 224, -1, 91, -1, 85, -1, 87, -1,
70, -1, 85, -1, 73, -1, 79, -1, 80, -1,
74, -1, 71, -1, 72, -1, 137, -1, 70, -1,
85, -1, 73, -1, 96, -1, 104, -1, 71, -1,
72, -1, 74, -1, 79, -1, 80, -1, 103, -1,
105, -1, 78, -1, 102, -1, 111, -1, 137, -1,
85, -1, 107, -1, 114, -1, 102, -1, 118, -1,
85, -1, 114, -1, 115, -1, 116, -1, 117, -1,
110, -1, 121, -1, 126, -1, 122, -1, 123, -1,
124, -1, 125, -1, 127, -1, 122, -1, 123, -1,
124, -1, 125, -1, 127, -1, 219, -1, 36, -1,
37, -1, 115, -1, 221, -1, 39, -1, 40, -1,
75, -1, 85, -1, 76, -1, 106, -1, 87, -1,
136, -1, 84, -1, 82, -1, 83, -1, 85, -1,
86, -1, 97, -1, 98, -1, 99, -1, 88, -1,
95, -1, 112, -1, 89, -1, 90, -1, 92, -1,
93, -1, 94, -1, 81, -1, 135, -1, 77, -1,
119, -1, 120, -1, 73, -1, 113, -1, 228, -1,
227, 59, 228, -1, 227, 59, 229, -1, 230, 62,
231, -1, 34, 62, 33, -1, 34, 62, 32, -1,
34, 62, 64, 35, 64, -1, 34, 62, 31, -1,
34, 62, 34, -1, 34, -1, 85, -1, 90, -1,
31, -1, 32, -1, 33, -1, 34, -1, 156, -1,
31, -1, 32, -1, 33, -1, 34, -1, 32, -1,
34, -1
};
/* YYRLINE[YYN] -- source line where rule number YYN was defined. */
static const yytype_uint16 yyrline[] =
{
0, 256, 256, 263, 268, 270, 275, 294, 295, 296,
297, 298, 299, 300, 301, 302, 303, 304, 305, 306,
307, 308, 309, 310, 311, 312, 313, 314, 315, 316,
317, 318, 319, 320, 321, 322, 323, 324, 326, 332,
355, 380, 387, 405, 412, 430, 436, 441, 450, 459,
466, 473, 480, 489, 497, 504, 509, 542, 549, 557,
560, 578, 595, 613, 632, 639, 647, 665, 682, 700,
718, 735, 753, 756, 761, 767, 772, 780, 785, 794,
802, 813, 814, 816, 826, 838, 862, 873, 884, 894,
904, 910, 916, 922, 929, 938, 947, 958, 966, 973,
981, 989, 996, 1003, 1012, 1019, 1022, 1040, 1052, 1055,
1073, 1082, 1087, 1092, 1098, 1103, 1108, 1113, 1121, 1129,
1134, 1153, 1172, 1179, 1187, 1194, 1202, 1209, 1216, 1224,
1231, 1237, 1242, 1270, 1271, 1272, 1273, 1279, 1282, 1286,
1300, 1304, 1318, 1323, 1330, 1335, 1343, 1347, 1360, 1379,
1384, 1390, 1395, 1401, 1411, 1415, 1430, 1434, 1448, 1453,
1461, 1465, 1478, 1492, 1497, 1505, 1509, 1523, 1528, 1536,
1540, 1554, 1560, 1566, 1575, 1576, 1577, 1578, 1580, 1581,
1583, 1585, 1586, 1588, 1590, 1593, 1594, 1595, 1598, 1599,
1600, 1601, 1602, 1603, 1604, 1605, 1606, 1609, 1610, 1611,
1612, 1613, 1614, 1615, 1616, 1617, 1618, 1619, 1620, 1621,
1622, 1623, 1624, 1627, 1628, 1629, 1630, 1631, 1634, 1635,
1636, 1637, 1638, 1639, 1642, 1643, 1644, 1645, 1646, 1647,
1648, 1651, 1652, 1653, 1654, 1655, 1657, 1665, 1666, 1667,
1669, 1677, 1678, 1681, 1682, 1683, 1684, 1685, 1686, 1689,
1690, 1691, 1692, 1693, 1694, 1695, 1696, 1697, 1698, 1699,
1700, 1701, 1702, 1703, 1704, 1705, 1706, 1709, 1712, 1713,
1716, 1717, 1719, 1723, 1736, 1750, 1756, 1761, 1766, 1771,
1776, 1781, 1789, 1790, 1792, 1797, 1801, 1805, 1811, 1815,
1819, 1823, 1827, 1833, 1836
};
#endif
#if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE
/* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
First, the terminals, then, starting at YYNTOKENS, nonterminals. */
static const char *const yytname[] =
{
"$end", "error", "$undefined", "FSC_LIST", "FSC_DEFINE", "FSC_EXEC",
"FSC_QUIT", "FSC_DEBUG", "FSC_CREATE", "FSC_SLEEP", "FSC_STATS",
"FSC_FOREACH", "FSC_SET", "FSC_SHUTDOWN", "FSC_LOG", "FSC_SYSTEM",
"FSC_FLOWOP", "FSC_EVENTGEN", "FSC_ECHO", "FSC_LOAD", "FSC_RUN",
"FSC_WARMUP", "FSC_NOUSESTATS", "FSC_FSCHECK", "FSC_FSFLUSH",
"FSC_USAGE", "FSC_HELP", "FSC_VARS", "FSC_VERSION", "FSC_ENABLE",
"FSC_DOMULTISYNC", "FSV_STRING", "FSV_VAL_INT", "FSV_VAL_BOOLEAN",
"FSV_VARIABLE", "FSV_WHITESTRING", "FSV_RANDUNI", "FSV_RANDTAB",
"FSV_RANDVAR", "FSV_URAND", "FSV_RAND48", "FST_INT", "FST_BOOLEAN",
"FSE_FILE", "FSE_PROC", "FSE_THREAD", "FSE_CLEAR", "FSE_ALL", "FSE_SNAP",
"FSE_DUMP", "FSE_DIRECTORY", "FSE_COMMAND", "FSE_FILESET", "FSE_POSSET",
"FSE_XMLDUMP", "FSE_RAND", "FSE_MODE", "FSE_MULTI", "FSE_MULTIDUMP",
"FSK_SEPLST", "FSK_OPENLST", "FSK_CLOSELST", "FSK_ASSIGN", "FSK_IN",
"FSK_QUOTE", "FSK_DIRSEPLST", "FSK_PLUS", "FSK_MINUS", "FSK_MULTIPLY",
"FSK_DIVIDE", "FSA_SIZE", "FSA_PREALLOC", "FSA_PARALLOC", "FSA_PATH",
"FSA_REUSE", "FSA_PROCESS", "FSA_MEMSIZE", "FSA_RATE", "FSA_CACHED",
"FSA_READONLY", "FSA_TRUSTTREE", "FSA_IOSIZE", "FSA_FILE", "FSA_POSSET",
"FSA_WSS", "FSA_NAME", "FSA_RANDOM", "FSA_INSTANCES", "FSA_DSYNC",