From a028d0b73b4e3922e5cc1893dfd771991dab55df Mon Sep 17 00:00:00 2001 From: dlaroche Date: Tue, 19 Jun 2001 16:45:41 +0000 Subject: [PATCH] Fixed make file so that pristine gets rid of more generated files. Removed some generated files from cvs tree. --- src/Headers/cgrammar_tokens.h | 267 -- src/Headers/constraintTermn.h | 48 - src/Headers/herald.last | 6 +- src/Headers/llgrammar_gen.h | 248 -- src/Headers/llgrammar_gen2.h | 248 -- src/Headers/signature_gen.h | 102 - src/Makefile | 23 +- src/lex.yy.c | 5405 --------------------------------- src/llgrammar.c | 3902 ------------------------ src/llgrammar.tab.c | 3856 ----------------------- src/llgrammar.tab.h | 202 -- src/signature.c | 1323 -------- src/signature.tab.c | 1277 -------- src/signature.tab.h | 56 - 14 files changed, 20 insertions(+), 16943 deletions(-) delete mode 100644 src/Headers/cgrammar_tokens.h delete mode 100644 src/Headers/constraintTermn.h delete mode 100644 src/Headers/llgrammar_gen.h delete mode 100644 src/Headers/llgrammar_gen2.h delete mode 100644 src/Headers/signature_gen.h delete mode 100644 src/lex.yy.c delete mode 100644 src/llgrammar.c delete mode 100644 src/llgrammar.tab.c delete mode 100644 src/llgrammar.tab.h delete mode 100644 src/signature.c delete mode 100644 src/signature.tab.c delete mode 100644 src/signature.tab.h diff --git a/src/Headers/cgrammar_tokens.h b/src/Headers/cgrammar_tokens.h deleted file mode 100644 index 75d11c4..0000000 --- a/src/Headers/cgrammar_tokens.h +++ /dev/null @@ -1,267 +0,0 @@ -/* -** Inserted at beginning of c files generated by bison -** REMEMBER: Change bison.reset too. -*/ - -/*@-allmacros@*/ -/*@+boolint@*/ -/*@+charint@*/ -/*@-macroparams@*/ -/*@-macroundef@*/ -/*@-unreachable@*/ -/*@-macrospec@*/ -/*@-varuse@*/ -/*@+ignorequals@*/ -/*@-macrostmt@*/ -/*@-noeffect@*/ -/*@-shadow@*/ -/*@-exitarg@*/ -/*@-macroredef@*/ -/*@-uniondef@*/ -/*@-compdef@*/ -/*@-matchfields@*/ -/*@-exportlocal@*/ -/*@-evalorderuncon@*/ -/*@-exportheader@*/ -/*@-typeuse@*/ -/*@-redecl@*/ -/*@-redef@*/ -/*@-noparams@*/ -/*@-ansireserved@*/ -/*@-fielduse@*/ -/*@-ifblock@*/ -/*@-elseifcomplete@*/ -/*@-whileblock@*/ -/*@-forblock@*/ -/*@-branchstate@*/ -/*@-readonlytrans@*/ -/*@-namechecks@*/ -/*@-usedef@*/ -/*@-systemunrecog@*/ -/*@-dependenttrans@*/ -/*@-unqualifiedtrans@*/ -/*@-nullassign@*/ - -/* < end of bison.head > */ - -typedef union -{ - lltok tok; - int count; - specialClauseKind sck; - qual typequal; - qualList tquallist; - ctype ctyp; - sRef sr; - /*@only@*/ qtype qtyp; - /*@only@*/ cstring cname; - /*@only@*/ idDecl ntyp; - /*@only@*/ idDeclList ntyplist; - /*@only@*/ uentryList flist; - /*@owned@*/ uentryList entrylist; - /*@observer@*/ /*@dependent@*/ uentry entry; - /*@only@*/ uentry oentry; - /*@only@*/ exprNode expr; - /*@only@*/ enumNameList enumnamelist; - /*@only@*/ exprNodeList alist; - /*@only@*/ sRefSet srset; - /*@only@*/ cstringList cstringlist; - /*drl - added 1/19/2001 - */ - constraint con; - constraintList conL; - constraintExpr conE; - /* drl */ -} YYSTYPE; -#define BADTOK 257 -#define SKIPTOK 258 -#define CTOK_ELIPSIS 259 -#define CASE 260 -#define DEFAULT 261 -#define CIF 262 -#define CELSE 263 -#define SWITCH 264 -#define WHILE 265 -#define DO 266 -#define CFOR 267 -#define GOTO 268 -#define CONTINUE 269 -#define BREAK 270 -#define RETURN 271 -#define TSEMI 272 -#define TLBRACE 273 -#define TRBRACE 274 -#define TCOMMA 275 -#define TCOLON 276 -#define TASSIGN 277 -#define TLPAREN 278 -#define TRPAREN 279 -#define TLSQBR 280 -#define TRSQBR 281 -#define TDOT 282 -#define TAMPERSAND 283 -#define TEXCL 284 -#define TTILDE 285 -#define TMINUS 286 -#define TPLUS 287 -#define TMULT 288 -#define TDIV 289 -#define TPERCENT 290 -#define TLT 291 -#define TGT 292 -#define TCIRC 293 -#define TBAR 294 -#define TQUEST 295 -#define CSIZEOF 296 -#define CALIGNOF 297 -#define ARROW_OP 298 -#define CTYPEDEF 299 -#define COFFSETOF 300 -#define INC_OP 301 -#define DEC_OP 302 -#define LEFT_OP 303 -#define RIGHT_OP 304 -#define LE_OP 305 -#define GE_OP 306 -#define EQ_OP 307 -#define NE_OP 308 -#define AND_OP 309 -#define OR_OP 310 -#define MUL_ASSIGN 311 -#define DIV_ASSIGN 312 -#define MOD_ASSIGN 313 -#define ADD_ASSIGN 314 -#define SUB_ASSIGN 315 -#define LEFT_ASSIGN 316 -#define RIGHT_ASSIGN 317 -#define AND_ASSIGN 318 -#define XOR_ASSIGN 319 -#define OR_ASSIGN 320 -#define CSTRUCT 321 -#define CUNION 322 -#define CENUM 323 -#define VA_ARG 324 -#define VA_DCL 325 -#define QGLOBALS 326 -#define QMODIFIES 327 -#define QNOMODS 328 -#define QCONSTANT 329 -#define QFUNCTION 330 -#define QITER 331 -#define QDEFINES 332 -#define QUSES 333 -#define QALLOCATES 334 -#define QSETS 335 -#define QRELEASES 336 -#define QPRECLAUSE 337 -#define QPOSTCLAUSE 338 -#define QALT 339 -#define QUNDEF 340 -#define QKILLED 341 -#define QENDMACRO 342 -#define LLMACRO 343 -#define LLMACROITER 344 -#define LLMACROEND 345 -#define TENDMACRO 346 -#define QSWITCHBREAK 347 -#define QLOOPBREAK 348 -#define QINNERBREAK 349 -#define QSAFEBREAK 350 -#define QINNERCONTINUE 351 -#define QFALLTHROUGH 352 -#define QLINTNOTREACHED 353 -#define QLINTFALLTHROUGH 354 -#define QLINTFALLTHRU 355 -#define QARGSUSED 356 -#define QPRINTFLIKE 357 -#define QLINTPRINTFLIKE 358 -#define QSCANFLIKE 359 -#define QMESSAGELIKE 360 -#define QNOTREACHED 361 -#define QCONST 362 -#define QVOLATILE 363 -#define QINLINE 364 -#define QEXTENSION 365 -#define QEXTERN 366 -#define QSTATIC 367 -#define QAUTO 368 -#define QREGISTER 369 -#define QOUT 370 -#define QIN 371 -#define QYIELD 372 -#define QONLY 373 -#define QTEMP 374 -#define QSHARED 375 -#define QREF 376 -#define QUNIQUE 377 -#define QCHECKED 378 -#define QUNCHECKED 379 -#define QCHECKEDSTRICT 380 -#define QCHECKMOD 381 -#define QKEEP 382 -#define QKEPT 383 -#define QPARTIAL 384 -#define QSPECIAL 385 -#define QOWNED 386 -#define QDEPENDENT 387 -#define QRETURNED 388 -#define QEXPOSED 389 -#define QNULL 390 -#define QOBSERVER 391 -#define QISNULL 392 -#define QEXITS 393 -#define QMAYEXIT 394 -#define QNEVEREXIT 395 -#define QTRUEEXIT 396 -#define QFALSEEXIT 397 -#define QLONG 398 -#define QSIGNED 399 -#define QUNSIGNED 400 -#define QSHORT 401 -#define QUNUSED 402 -#define QSEF 403 -#define QNOTNULL 404 -#define QRELNULL 405 -#define QABSTRACT 406 -#define QCONCRETE 407 -#define QMUTABLE 408 -#define QIMMUTABLE 409 -#define QTRUENULL 410 -#define QFALSENULL 411 -#define QEXTERNAL 412 -#define QREFCOUNTED 413 -#define QREFS 414 -#define QNEWREF 415 -#define QTEMPREF 416 -#define QKILLREF 417 -#define QRELDEF 418 -#define CGCHAR 419 -#define CBOOL 420 -#define CINT 421 -#define CGFLOAT 422 -#define CDOUBLE 423 -#define CVOID 424 -#define QANYTYPE 425 -#define QINTEGRALTYPE 426 -#define QUNSIGNEDINTEGRALTYPE 427 -#define QSIGNEDINTEGRALTYPE 428 -#define QNULLTERMINATED 429 -#define QSETBUFFERSIZE 430 -#define QBUFFERCONSTRAINT 431 -#define QENSURESCONSTRAINT 432 -#define QSETSTRINGLENGTH 433 -#define QMAXSET 434 -#define QMAXREAD 435 -#define QTESTINRANGE 436 -#define TCAND 437 -#define IDENTIFIER 438 -#define NEW_IDENTIFIER 439 -#define TYPE_NAME_OR_ID 440 -#define CCONSTANT 441 -#define ITER_NAME 442 -#define ITER_ENDNAME 443 -#define TYPE_NAME 444 - - -extern YYSTYPE yylval; diff --git a/src/Headers/constraintTermn.h b/src/Headers/constraintTermn.h deleted file mode 100644 index 9eaf7e8..0000000 --- a/src/Headers/constraintTermn.h +++ /dev/null @@ -1,48 +0,0 @@ - -#ifndef __constraintTerm_h__ - -#define __constraintTerm_h__ - -constraintTerm constraintTerm_simplify (constraintTerm term); - -constraintTerm constraintTerm_makeExprNode (/*@only@*/ exprNode e); - -constraintTerm constraintTerm_copy (constraintTerm term); - -constraintTerm exprNode_makeConstraintTerm ( exprNode e); - - -bool constraintTerm_same (constraintTerm term1, constraintTerm term2); - -bool constraintTerm_similar (constraintTerm term1, constraintTerm term2); - -bool constraintTerm_canGetValue (constraintTerm term); -int constraintTerm_getValue (constraintTerm term); - -fileloc constraintTerm_getFileloc (constraintTerm t); - -constraintTerm constraintTerm_makeMaxSetexpr (exprNode e); - -constraintTerm constraintTerm_makeMinSetexpr (exprNode e); - -constraintTerm constraintTerm_makeMaxReadexpr (exprNode e); - -constraintTerm constraintTerm_makeMinReadexpr (exprNode e); - -constraintTerm constraintTerm_makeValueexpr (exprNode e); - -constraintTerm intLit_makeConstraintTerm (int i); - -constraintTerm constraintTerm_makeIntLitValue (int i); - -bool constraintTerm_isIntLiteral (constraintTerm term); - -cstring constraintTerm_print (constraintTerm term); - -#endif - - - - - - diff --git a/src/Headers/herald.last b/src/Headers/herald.last index 72e3a6c..33111a3 100644 --- a/src/Headers/herald.last +++ b/src/Headers/herald.last @@ -1,7 +1,7 @@ /* herald.h - created automatically by gmake updateversion */ /*@constant observer char *LCL_VERSION;@*/ -# define LCL_VERSION "LCLint 2.5q --- 20 June 2001" +# define LCL_VERSION "LCLint 3.0b-alpha --- 20 June 2001" /*@constant observer char *LCL_PARSE_VERSION;@*/ -# define LCL_PARSE_VERSION "LCLint 2.5q" +# define LCL_PARSE_VERSION "LCLint 3.0b-alpha" /*@constant observer char *LCL_COMPILE;@*/ -# define LCL_COMPILE "Compiled using gcc -DSTDC_HEADERS=1 -g -Wall -pedantic on Linux neodymium.yellow.cert.org 2.2.19-7.0.1 #1 Tue Apr 10 01:56:16 EDT 2001 i686 unknown by dlaroche" +# define LCL_COMPILE "Compiled using gcc -DSTDC_HEADERS=1 on Linux neodymium.yellow.cert.org 2.2.19-7.0.1 #1 Tue Apr 10 01:56:16 EDT 2001 i686 unknown by dlaroche" diff --git a/src/Headers/llgrammar_gen.h b/src/Headers/llgrammar_gen.h deleted file mode 100644 index 2a69055..0000000 --- a/src/Headers/llgrammar_gen.h +++ /dev/null @@ -1,248 +0,0 @@ -/* -** Inserted at beginning of c files generated by bison -** REMEMBER: Change bison.reset too. -*/ - -/*@-allmacros@*/ -/*@+boolint@*/ -/*@+charint@*/ -/*@-macroparams@*/ -/*@-macroundef@*/ -/*@-unreachable@*/ -/*@-macrospec@*/ -/*@-varuse@*/ -/*@+ignorequals@*/ -/*@-macrostmt@*/ -/*@-noeffect@*/ -/*@-shadow@*/ -/*@-exitarg@*/ -/*@-macroredef@*/ -/*@-uniondef@*/ -/*@-compdef@*/ -/*@-matchfields@*/ -/*@-exportlocal@*/ -/*@-evalorderuncon@*/ -/*@-exportheader@*/ -/*@-typeuse@*/ -/*@-redecl@*/ -/*@-redef@*/ -/*@-noparams@*/ -/*@-ansireserved@*/ -/*@-fielduse@*/ -/*@-ifblock@*/ -/*@-elseifcomplete@*/ -/*@-whileblock@*/ -/*@-forblock@*/ -/*@-branchstate@*/ -/*@-readonlytrans@*/ -/*@-namechecks@*/ -/*@-usedef@*/ -/*@-systemunrecog@*/ -/*@-dependenttrans@*/ -/*@-unqualifiedtrans@*/ -/*@-nullassign@*/ - -/* < end of bison.head > */ - -typedef union -{ - ltoken ltok; /* a leaf is also an ltoken */ - qual typequal; - unsigned int count; - /*@only@*/ ltokenList ltokenList; - /*@only@*/ abstDeclaratorNode abstDecl; - /*@only@*/ declaratorNode declare; - /*@only@*/ declaratorNodeList declarelist; - /*@only@*/ typeExpr typeexpr; - /*@only@*/ arrayQualNode array; - /*@only@*/ quantifierNode quantifier; - /*@only@*/ quantifierNodeList quantifiers; - /*@only@*/ varNode var; - /*@only@*/ varNodeList vars; - /*@only@*/ storeRefNode storeref; - /*@only@*/ storeRefNodeList storereflist; - /*@only@*/ termNode term; - /*@only@*/ termNodeList termlist; - /*@only@*/ programNode program; - /*@only@*/ stmtNode stmt; - /*@only@*/ claimNode claim; - /*@only@*/ typeNode type; - /*@only@*/ iterNode iter; - /*@only@*/ fcnNode fcn; - /*@only@*/ fcnNodeList fcns; - /*@only@*/ letDeclNode letdecl; - /*@only@*/ letDeclNodeList letdecls; - /*@only@*/ lclPredicateNode lclpredicate; - /*@only@*/ modifyNode modify; - /*@only@*/ paramNode param; - /*@only@*/ paramNodeList paramlist; - /*@only@*/ declaratorInvNodeList declaratorinvs; - /*@only@*/ declaratorInvNode declaratorinv; - /*@only@*/ abstBodyNode abstbody; - /*@only@*/ abstractNode abstract; - /*@only@*/ exposedNode exposed; - /* taggedUnionNode taggedunion; */ - /*@only@*/ globalList globals; - /*@only@*/ constDeclarationNode constdeclaration; - /*@only@*/ varDeclarationNode vardeclaration; - /*@only@*/ varDeclarationNodeList vardeclarationlist; - /*@only@*/ initDeclNodeList initdecls; - /*@only@*/ initDeclNode initdecl; - /*@only@*/ stDeclNodeList structdecls; - /*@only@*/ stDeclNode structdecl; - /*@only@*/ strOrUnionNode structorunion; - /*@only@*/ enumSpecNode enumspec; - /*@only@*/ lclTypeSpecNode lcltypespec; - /*@only@*/ typeNameNode typname; - /*@only@*/ opFormNode opform; - /*@only@*/ sigNode signature; - /*@only@*/ nameNode name; - /*@only@*/ typeNameNodeList namelist; - /*@only@*/ replaceNode replace; - /*@only@*/ replaceNodeList replacelist; - /*@only@*/ renamingNode renaming; - /*@only@*/ traitRefNode traitref; - /*@only@*/ traitRefNodeList traitreflist; - /*@only@*/ importNode import; - /*@only@*/ importNodeList importlist; - /*@only@*/ interfaceNode iface; - /*@only@*/ interfaceNodeList interfacelist; - /*@only@*/ CTypesNode ctypes; -} YYSTYPE; -#define simpleOp 257 -#define PREFIX_OP 258 -#define POSTFIX_OP 259 -#define LLT_MULOP 260 -#define LLT_SEMI 261 -#define LLT_VERTICALBAR 262 -#define ITERATION_OP 263 -#define LLT_LPAR 264 -#define LLT_LBRACKET 265 -#define selectSym 266 -#define LLT_IF_THEN_ELSE 267 -#define logicalOp 268 -#define eqSepSym 269 -#define equationSym 270 -#define commentSym 271 -#define LLT_WHITESPACE 272 -#define LLT_EOL 273 -#define LLT_TYPEDEF_NAME 274 -#define quantifierSym 275 -#define openSym 276 -#define closeSym 277 -#define sepSym 278 -#define simpleId 279 -#define mapSym 280 -#define markerSym 281 -#define preSym 282 -#define postSym 283 -#define anySym 284 -#define LLT_COLON 285 -#define LLT_COMMA 286 -#define LLT_EQUALS 287 -#define LLT_LBRACE 288 -#define LLT_RBRACE 289 -#define LLT_RBRACKET 290 -#define LLT_RPAR 291 -#define LLT_QUOTE 292 -#define eqOp 293 -#define LLT_CCHAR 294 -#define LLT_CFLOAT 295 -#define LLT_CINTEGER 296 -#define LLT_LCSTRING 297 -#define LLT_ALL 298 -#define LLT_ANYTHING 299 -#define LLT_BE 300 -#define LLT_BODY 301 -#define LLT_CLAIMS 302 -#define LLT_CHECKS 303 -#define LLT_CONSTANT 304 -#define LLT_ELSE 305 -#define LLT_ENSURES 306 -#define LLT_FOR 307 -#define LLT_FRESH 308 -#define LLT_IF 309 -#define LLT_IMMUTABLE 310 -#define LLT_IMPORTS 311 -#define LLT_CONSTRAINT 312 -#define LLT_ISSUB 313 -#define LLT_LET 314 -#define LLT_MODIFIES 315 -#define LLT_MUTABLE 316 -#define LLT_NOTHING 317 -#define LLT_INTERNAL 318 -#define LLT_FILESYS 319 -#define LLT_OBJ 320 -#define LLT_OUT 321 -#define LLT_SEF 322 -#define LLT_ONLY 323 -#define LLT_PARTIAL 324 -#define LLT_OWNED 325 -#define LLT_DEPENDENT 326 -#define LLT_KEEP 327 -#define LLT_KEPT 328 -#define LLT_TEMP 329 -#define LLT_SHARED 330 -#define LLT_UNIQUE 331 -#define LLT_UNUSED 332 -#define LLT_EXITS 333 -#define LLT_MAYEXIT 334 -#define LLT_NEVEREXIT 335 -#define LLT_TRUEEXIT 336 -#define LLT_FALSEEXIT 337 -#define LLT_UNDEF 338 -#define LLT_KILLED 339 -#define LLT_CHECKMOD 340 -#define LLT_CHECKED 341 -#define LLT_UNCHECKED 342 -#define LLT_CHECKEDSTRICT 343 -#define LLT_TRUENULL 344 -#define LLT_FALSENULL 345 -#define LLT_LNULL 346 -#define LLT_LNOTNULL 347 -#define LLT_RETURNED 348 -#define LLT_OBSERVER 349 -#define LLT_EXPOSED 350 -#define LLT_REFCOUNTED 351 -#define LLT_REFS 352 -#define LLT_RELNULL 353 -#define LLT_RELDEF 354 -#define LLT_KILLREF 355 -#define LLT_NULLTERMINATED 356 -#define LLT_TEMPREF 357 -#define LLT_NEWREF 358 -#define LLT_PRIVATE 359 -#define LLT_REQUIRES 360 -#define LLT_RESULT 361 -#define LLT_SIZEOF 362 -#define LLT_SPEC 363 -#define LLT_TAGGEDUNION 364 -#define LLT_THEN 365 -#define LLT_TYPE 366 -#define LLT_TYPEDEF 367 -#define LLT_UNCHANGED 368 -#define LLT_USES 369 -#define LLT_CHAR 370 -#define LLT_CONST 371 -#define LLT_DOUBLE 372 -#define LLT_ENUM 373 -#define LLT_FLOAT 374 -#define LLT_INT 375 -#define LLT_ITER 376 -#define LLT_YIELD 377 -#define LLT_LONG 378 -#define LLT_SHORT 379 -#define LLT_SIGNED 380 -#define LLT_UNKNOWN 381 -#define LLT_STRUCT 382 -#define LLT_TELIPSIS 383 -#define LLT_UNION 384 -#define LLT_UNSIGNED 385 -#define LLT_VOID 386 -#define LLT_VOLATILE 387 -#define LLT_PRINTFLIKE 388 -#define LLT_SCANFLIKE 389 -#define LLT_MESSAGELIKE 390 - - -extern YYSTYPE yllval; diff --git a/src/Headers/llgrammar_gen2.h b/src/Headers/llgrammar_gen2.h deleted file mode 100644 index 2a69055..0000000 --- a/src/Headers/llgrammar_gen2.h +++ /dev/null @@ -1,248 +0,0 @@ -/* -** Inserted at beginning of c files generated by bison -** REMEMBER: Change bison.reset too. -*/ - -/*@-allmacros@*/ -/*@+boolint@*/ -/*@+charint@*/ -/*@-macroparams@*/ -/*@-macroundef@*/ -/*@-unreachable@*/ -/*@-macrospec@*/ -/*@-varuse@*/ -/*@+ignorequals@*/ -/*@-macrostmt@*/ -/*@-noeffect@*/ -/*@-shadow@*/ -/*@-exitarg@*/ -/*@-macroredef@*/ -/*@-uniondef@*/ -/*@-compdef@*/ -/*@-matchfields@*/ -/*@-exportlocal@*/ -/*@-evalorderuncon@*/ -/*@-exportheader@*/ -/*@-typeuse@*/ -/*@-redecl@*/ -/*@-redef@*/ -/*@-noparams@*/ -/*@-ansireserved@*/ -/*@-fielduse@*/ -/*@-ifblock@*/ -/*@-elseifcomplete@*/ -/*@-whileblock@*/ -/*@-forblock@*/ -/*@-branchstate@*/ -/*@-readonlytrans@*/ -/*@-namechecks@*/ -/*@-usedef@*/ -/*@-systemunrecog@*/ -/*@-dependenttrans@*/ -/*@-unqualifiedtrans@*/ -/*@-nullassign@*/ - -/* < end of bison.head > */ - -typedef union -{ - ltoken ltok; /* a leaf is also an ltoken */ - qual typequal; - unsigned int count; - /*@only@*/ ltokenList ltokenList; - /*@only@*/ abstDeclaratorNode abstDecl; - /*@only@*/ declaratorNode declare; - /*@only@*/ declaratorNodeList declarelist; - /*@only@*/ typeExpr typeexpr; - /*@only@*/ arrayQualNode array; - /*@only@*/ quantifierNode quantifier; - /*@only@*/ quantifierNodeList quantifiers; - /*@only@*/ varNode var; - /*@only@*/ varNodeList vars; - /*@only@*/ storeRefNode storeref; - /*@only@*/ storeRefNodeList storereflist; - /*@only@*/ termNode term; - /*@only@*/ termNodeList termlist; - /*@only@*/ programNode program; - /*@only@*/ stmtNode stmt; - /*@only@*/ claimNode claim; - /*@only@*/ typeNode type; - /*@only@*/ iterNode iter; - /*@only@*/ fcnNode fcn; - /*@only@*/ fcnNodeList fcns; - /*@only@*/ letDeclNode letdecl; - /*@only@*/ letDeclNodeList letdecls; - /*@only@*/ lclPredicateNode lclpredicate; - /*@only@*/ modifyNode modify; - /*@only@*/ paramNode param; - /*@only@*/ paramNodeList paramlist; - /*@only@*/ declaratorInvNodeList declaratorinvs; - /*@only@*/ declaratorInvNode declaratorinv; - /*@only@*/ abstBodyNode abstbody; - /*@only@*/ abstractNode abstract; - /*@only@*/ exposedNode exposed; - /* taggedUnionNode taggedunion; */ - /*@only@*/ globalList globals; - /*@only@*/ constDeclarationNode constdeclaration; - /*@only@*/ varDeclarationNode vardeclaration; - /*@only@*/ varDeclarationNodeList vardeclarationlist; - /*@only@*/ initDeclNodeList initdecls; - /*@only@*/ initDeclNode initdecl; - /*@only@*/ stDeclNodeList structdecls; - /*@only@*/ stDeclNode structdecl; - /*@only@*/ strOrUnionNode structorunion; - /*@only@*/ enumSpecNode enumspec; - /*@only@*/ lclTypeSpecNode lcltypespec; - /*@only@*/ typeNameNode typname; - /*@only@*/ opFormNode opform; - /*@only@*/ sigNode signature; - /*@only@*/ nameNode name; - /*@only@*/ typeNameNodeList namelist; - /*@only@*/ replaceNode replace; - /*@only@*/ replaceNodeList replacelist; - /*@only@*/ renamingNode renaming; - /*@only@*/ traitRefNode traitref; - /*@only@*/ traitRefNodeList traitreflist; - /*@only@*/ importNode import; - /*@only@*/ importNodeList importlist; - /*@only@*/ interfaceNode iface; - /*@only@*/ interfaceNodeList interfacelist; - /*@only@*/ CTypesNode ctypes; -} YYSTYPE; -#define simpleOp 257 -#define PREFIX_OP 258 -#define POSTFIX_OP 259 -#define LLT_MULOP 260 -#define LLT_SEMI 261 -#define LLT_VERTICALBAR 262 -#define ITERATION_OP 263 -#define LLT_LPAR 264 -#define LLT_LBRACKET 265 -#define selectSym 266 -#define LLT_IF_THEN_ELSE 267 -#define logicalOp 268 -#define eqSepSym 269 -#define equationSym 270 -#define commentSym 271 -#define LLT_WHITESPACE 272 -#define LLT_EOL 273 -#define LLT_TYPEDEF_NAME 274 -#define quantifierSym 275 -#define openSym 276 -#define closeSym 277 -#define sepSym 278 -#define simpleId 279 -#define mapSym 280 -#define markerSym 281 -#define preSym 282 -#define postSym 283 -#define anySym 284 -#define LLT_COLON 285 -#define LLT_COMMA 286 -#define LLT_EQUALS 287 -#define LLT_LBRACE 288 -#define LLT_RBRACE 289 -#define LLT_RBRACKET 290 -#define LLT_RPAR 291 -#define LLT_QUOTE 292 -#define eqOp 293 -#define LLT_CCHAR 294 -#define LLT_CFLOAT 295 -#define LLT_CINTEGER 296 -#define LLT_LCSTRING 297 -#define LLT_ALL 298 -#define LLT_ANYTHING 299 -#define LLT_BE 300 -#define LLT_BODY 301 -#define LLT_CLAIMS 302 -#define LLT_CHECKS 303 -#define LLT_CONSTANT 304 -#define LLT_ELSE 305 -#define LLT_ENSURES 306 -#define LLT_FOR 307 -#define LLT_FRESH 308 -#define LLT_IF 309 -#define LLT_IMMUTABLE 310 -#define LLT_IMPORTS 311 -#define LLT_CONSTRAINT 312 -#define LLT_ISSUB 313 -#define LLT_LET 314 -#define LLT_MODIFIES 315 -#define LLT_MUTABLE 316 -#define LLT_NOTHING 317 -#define LLT_INTERNAL 318 -#define LLT_FILESYS 319 -#define LLT_OBJ 320 -#define LLT_OUT 321 -#define LLT_SEF 322 -#define LLT_ONLY 323 -#define LLT_PARTIAL 324 -#define LLT_OWNED 325 -#define LLT_DEPENDENT 326 -#define LLT_KEEP 327 -#define LLT_KEPT 328 -#define LLT_TEMP 329 -#define LLT_SHARED 330 -#define LLT_UNIQUE 331 -#define LLT_UNUSED 332 -#define LLT_EXITS 333 -#define LLT_MAYEXIT 334 -#define LLT_NEVEREXIT 335 -#define LLT_TRUEEXIT 336 -#define LLT_FALSEEXIT 337 -#define LLT_UNDEF 338 -#define LLT_KILLED 339 -#define LLT_CHECKMOD 340 -#define LLT_CHECKED 341 -#define LLT_UNCHECKED 342 -#define LLT_CHECKEDSTRICT 343 -#define LLT_TRUENULL 344 -#define LLT_FALSENULL 345 -#define LLT_LNULL 346 -#define LLT_LNOTNULL 347 -#define LLT_RETURNED 348 -#define LLT_OBSERVER 349 -#define LLT_EXPOSED 350 -#define LLT_REFCOUNTED 351 -#define LLT_REFS 352 -#define LLT_RELNULL 353 -#define LLT_RELDEF 354 -#define LLT_KILLREF 355 -#define LLT_NULLTERMINATED 356 -#define LLT_TEMPREF 357 -#define LLT_NEWREF 358 -#define LLT_PRIVATE 359 -#define LLT_REQUIRES 360 -#define LLT_RESULT 361 -#define LLT_SIZEOF 362 -#define LLT_SPEC 363 -#define LLT_TAGGEDUNION 364 -#define LLT_THEN 365 -#define LLT_TYPE 366 -#define LLT_TYPEDEF 367 -#define LLT_UNCHANGED 368 -#define LLT_USES 369 -#define LLT_CHAR 370 -#define LLT_CONST 371 -#define LLT_DOUBLE 372 -#define LLT_ENUM 373 -#define LLT_FLOAT 374 -#define LLT_INT 375 -#define LLT_ITER 376 -#define LLT_YIELD 377 -#define LLT_LONG 378 -#define LLT_SHORT 379 -#define LLT_SIGNED 380 -#define LLT_UNKNOWN 381 -#define LLT_STRUCT 382 -#define LLT_TELIPSIS 383 -#define LLT_UNION 384 -#define LLT_UNSIGNED 385 -#define LLT_VOID 386 -#define LLT_VOLATILE 387 -#define LLT_PRINTFLIKE 388 -#define LLT_SCANFLIKE 389 -#define LLT_MESSAGELIKE 390 - - -extern YYSTYPE yllval; diff --git a/src/Headers/signature_gen.h b/src/Headers/signature_gen.h deleted file mode 100644 index 6d4fda9..0000000 --- a/src/Headers/signature_gen.h +++ /dev/null @@ -1,102 +0,0 @@ -/* -** Inserted at beginning of c files generated by bison -** REMEMBER: Change bison.reset too. -*/ - -/*@-allmacros@*/ -/*@+boolint@*/ -/*@+charint@*/ -/*@-macroparams@*/ -/*@-macroundef@*/ -/*@-unreachable@*/ -/*@-macrospec@*/ -/*@-varuse@*/ -/*@+ignorequals@*/ -/*@-macrostmt@*/ -/*@-noeffect@*/ -/*@-shadow@*/ -/*@-exitarg@*/ -/*@-macroredef@*/ -/*@-uniondef@*/ -/*@-compdef@*/ -/*@-matchfields@*/ -/*@-exportlocal@*/ -/*@-evalorderuncon@*/ -/*@-exportheader@*/ -/*@-typeuse@*/ -/*@-redecl@*/ -/*@-redef@*/ -/*@-noparams@*/ -/*@-ansireserved@*/ -/*@-fielduse@*/ -/*@-ifblock@*/ -/*@-elseifcomplete@*/ -/*@-whileblock@*/ -/*@-forblock@*/ -/*@-branchstate@*/ -/*@-readonlytrans@*/ -/*@-namechecks@*/ -/*@-usedef@*/ -/*@-systemunrecog@*/ -/*@-dependenttrans@*/ -/*@-unqualifiedtrans@*/ -/*@-nullassign@*/ - -/* < end of bison.head > */ - -typedef union { - ltoken ltok; /* a leaf is also an ltoken */ - unsigned int count; - /*@only@*/ ltokenList ltokenList; - /*@only@*/ opFormNode opform; - /*@owned@*/ sigNode signature; - /*@only@*/ nameNode name; - /*@owned@*/ lslOp operator; - /*@only@*/ lslOpList operators; -} YYSTYPE; -#define LST_SIMPLEID 257 -#define LST_LOGICALOP 258 -#define LST_EQOP 259 -#define LST_SIMPLEOP 260 -#define LST_MAPSYM 261 -#define LST_FIELDMAPSYM 262 -#define LST_MARKERSYM 263 -#define LST_ifTOKEN 264 -#define LST_thenTOKEN 265 -#define LST_elseTOKEN 266 -#define LST_LBRACKET 267 -#define LST_RBRACKET 268 -#define LST_SELECTSYM 269 -#define LST_SEPSYM 270 -#define LST_OPENSYM 271 -#define LST_CLOSESYM 272 -#define LST_COLON 273 -#define LST_COMMA 274 -#define LST_EOL 275 -#define LST_COMMENTSYM 276 -#define LST_WHITESPACE 277 -#define LST_QUANTIFIERSYM 278 -#define LST_EQUATIONSYM 279 -#define LST_EQSEPSYM 280 -#define LST_COMPOSESYM 281 -#define LST_LPAR 282 -#define LST_RPAR 283 -#define LST_assertsTOKEN 284 -#define LST_assumesTOKEN 285 -#define LST_byTOKEN 286 -#define LST_convertsTOKEN 287 -#define LST_enumerationTOKEN 288 -#define LST_equationsTOKEN 289 -#define LST_exemptingTOKEN 290 -#define LST_forTOKEN 291 -#define LST_generatedTOKEN 292 -#define LST_impliesTOKEN 293 -#define LST_includesTOKEN 294 -#define LST_introducesTOKEN 295 -#define LST_ofTOKEN 296 -#define LST_partitionedTOKEN 297 -#define LST_traitTOKEN 298 -#define LST_tupleTOKEN 299 -#define LST_unionTOKEN 300 -#define LST_BADTOKEN 301 - diff --git a/src/Makefile b/src/Makefile index 993caa3..e3485c7 100644 --- a/src/Makefile +++ b/src/Makefile @@ -71,8 +71,6 @@ lclint : $(OBJ) object: $(OBJ) -mylint: - CC="$(LCLINT)" ; export CC ; $(MAKE) -e object ### ### grammars ### @@ -86,7 +84,7 @@ signature.c : signature.c.der signature.y ifdef BISON @$(BISON) $(YFLAGS) -p lsl signature.y @$(CAT) bison.head signature.tab.c > signature.c - @$(MV) Headers/signature_gen.h Headers/signature_gen.bak + -@$(MV) Headers/signature_gen.h Headers/signature_gen.bak @$(CAT) bison.head signature.tab.h > Headers/signature_gen.h else $(CP) signature.c.der signature.c @@ -98,7 +96,7 @@ ifdef BISON @echo '// Expect 119 shift/reduce conflicts and 114 reduce/reduce conflicts.' @echo '// (see cgrammar.y for explanation)' @$(CAT) bison.head cgrammar.tab.c > cgrammar.c - @$(MV) Headers/cgrammar_tokens.h Headers/cgrammar_tokens.bak + -@$(MV) Headers/cgrammar_tokens.h Headers/cgrammar_tokens.bak @$(CAT) bison.head cgrammar.tab.h > Headers/cgrammar_tokens.h else $(CP) cgrammar.c.der cgrammar.c @@ -111,9 +109,9 @@ ifdef BISON $(BISON) $(YFLAGS) -p yl llgrammar.y @echo '// Expect 2 shift/reduce conflicts.' @$(CAT) bison.head llgrammar.tab.c > llgrammar.c - @$(MV) Headers/llgrammar_gen2.h Headers/llgrammar_gen2.bak + -@$(MV) Headers/llgrammar_gen2.h Headers/llgrammar_gen2.bak @$(CAT) bison.head llgrammar.tab.h > Headers/llgrammar_gen2.h - @$(MV) Headers/llgrammar_gen.h Headers/llgrammar_gen.bak + -@$(MV) Headers/llgrammar_gen.h Headers/llgrammar_gen.bak @$(CAT) bison.head llgrammar.tab.h > Headers/llgrammar_gen.h else $(CP) llgrammar.c.der llgrammar.c @@ -149,6 +147,7 @@ cscanner.o : cscanner.c Headers/signature2.h : signature.c Headers/cgrammar2.h : cgrammar.c +Headers/cgrammar_tokens.h : cgrammar.c Headers/llgrammar.h : llgrammar.c ### @@ -161,6 +160,10 @@ SINGLEFLAGS = +neverinclude -supcounts +partial -showsummary -load lclint.lcd .c.check: lclint.lcd lclint $(LCLINT) $(LINTFLAGS) $(SINGLEFLAGS) $*.c +lcllib.c: Headers/llgrammar.h +clabstract.c: Headers/cgrammar_tokens.h +scan.c: Headers/signature2.h + .c.o: ifeq ($(CHECK), 1) $(LCLINT) $(LINTFLAGS) $(SINGLEFLAGS) $*.c @@ -253,6 +256,8 @@ endif @echo '// Done Release '`cat $(VERSION_NUMBER)` +Headers/flag_codes.h: flags + flags: flags.def grep "FLG_" flags.def > Headers/flag_codes.gen @@ -270,6 +275,12 @@ flags: flags.def pristine: clean -$(RM) -f *.lcs *.lslo + -$(RM) signature.c signature.tab.c signature.tab.h + -$(RM) llgrammar.c llgrammar.tab.c llgrammar.tab.h + -$(RM) Headers/cgrammar_tokens.h + -$(RM) lex.yy.c + -$(RM) cgrammar.tab.h + -$(RM) Headers/*_gen.h* Headers/*_gen2.h* clean: tidy -$(RM) core lclint diff --git a/src/lex.yy.c b/src/lex.yy.c deleted file mode 100644 index 45e13de..0000000 --- a/src/lex.yy.c +++ /dev/null @@ -1,5405 +0,0 @@ -/* A lexical scanner generated by flex */ - -/* Scanner skeleton version: - * $Header$ - */ - -#define FLEX_SCANNER -#define YY_FLEX_MAJOR_VERSION 2 -#define YY_FLEX_MINOR_VERSION 5 - -#include - - -/* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */ -#ifdef c_plusplus -#ifndef __cplusplus -#define __cplusplus -#endif -#endif - - -#ifdef __cplusplus - -#include -#include - -/* Use prototypes in function declarations. */ -#define YY_USE_PROTOS - -/* The "const" storage-class-modifier is valid. */ -#define YY_USE_CONST - -#else /* ! __cplusplus */ - -#if __STDC__ - -#define YY_USE_PROTOS -#define YY_USE_CONST - -#endif /* __STDC__ */ -#endif /* ! __cplusplus */ - -#ifdef __TURBOC__ - #pragma warn -rch - #pragma warn -use -#include -#include -#define YY_USE_CONST -#define YY_USE_PROTOS -#endif - -#ifdef YY_USE_CONST -#define yyconst const -#else -#define yyconst -#endif - - -#ifdef YY_USE_PROTOS -#define YY_PROTO(proto) proto -#else -#define YY_PROTO(proto) () -#endif - -/* Returned upon end-of-file. */ -#define YY_NULL 0 - -/* Promotes a possibly negative, possibly signed char to an unsigned - * integer for use as an array index. If the signed char is negative, - * we want to instead treat it as an 8-bit unsigned char, hence the - * double cast. - */ -#define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c) - -/* Enter a start condition. This macro really ought to take a parameter, - * but we do it the disgusting crufty way forced on us by the ()-less - * definition of BEGIN. - */ -#define BEGIN yy_start = 1 + 2 * - -/* Translate the current start state into a value that can be later handed - * to BEGIN to return to the state. The YYSTATE alias is for lex - * compatibility. - */ -#define YY_START ((yy_start - 1) / 2) -#define YYSTATE YY_START - -/* Action number for EOF rule of a given start state. */ -#define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1) - -/* Special action meaning "start processing a new file". */ -#define YY_NEW_FILE yyrestart( yyin ) - -#define YY_END_OF_BUFFER_CHAR 0 - -/* Size of default input buffer. */ -#define YY_BUF_SIZE 16384 - -typedef struct yy_buffer_state *YY_BUFFER_STATE; - -extern int yyleng; -extern FILE *yyin, *yyout; - -#define EOB_ACT_CONTINUE_SCAN 0 -#define EOB_ACT_END_OF_FILE 1 -#define EOB_ACT_LAST_MATCH 2 - -/* The funky do-while in the following #define is used to turn the definition - * int a single C statement (which needs a semi-colon terminator). This - * avoids problems with code like: - * - * if ( condition_holds ) - * yyless( 5 ); - * else - * do_something_else(); - * - * Prior to using the do-while the compiler would get upset at the - * "else" because it interpreted the "if" statement as being all - * done when it reached the ';' after the yyless() call. - */ - -/* Return all but the first 'n' matched characters back to the input stream. */ - -#define yyless(n) \ - do \ - { \ - /* Undo effects of setting up yytext. */ \ - *yy_cp = yy_hold_char; \ - YY_RESTORE_YY_MORE_OFFSET \ - yy_c_buf_p = yy_cp = yy_bp + n - YY_MORE_ADJ; \ - YY_DO_BEFORE_ACTION; /* set up yytext again */ \ - } \ - while ( 0 ) - -#define unput(c) yyunput( c, yytext_ptr ) - -/* The following is because we cannot portably get our hands on size_t - * (without autoconf's help, which isn't available because we want - * flex-generated scanners to compile on their own). - */ -typedef unsigned int yy_size_t; - - -struct yy_buffer_state - { - FILE *yy_input_file; - - char *yy_ch_buf; /* input buffer */ - char *yy_buf_pos; /* current position in input buffer */ - - /* Size of input buffer in bytes, not including room for EOB - * characters. - */ - yy_size_t yy_buf_size; - - /* Number of characters read into yy_ch_buf, not including EOB - * characters. - */ - int yy_n_chars; - - /* Whether we "own" the buffer - i.e., we know we created it, - * and can realloc() it to grow it, and should free() it to - * delete it. - */ - int yy_is_our_buffer; - - /* Whether this is an "interactive" input source; if so, and - * if we're using stdio for input, then we want to use getc() - * instead of fread(), to make sure we stop fetching input after - * each newline. - */ - int yy_is_interactive; - - /* Whether we're considered to be at the beginning of a line. - * If so, '^' rules will be active on the next match, otherwise - * not. - */ - int yy_at_bol; - - /* Whether to try to fill the input buffer when we reach the - * end of it. - */ - int yy_fill_buffer; - - int yy_buffer_status; -#define YY_BUFFER_NEW 0 -#define YY_BUFFER_NORMAL 1 - /* When an EOF's been seen but there's still some text to process - * then we mark the buffer as YY_EOF_PENDING, to indicate that we - * shouldn't try reading from the input source any more. We might - * still have a bunch of tokens to match, though, because of - * possible backing-up. - * - * When we actually see the EOF, we change the status to "new" - * (via yyrestart()), so that the user can continue scanning by - * just pointing yyin at a new input file. - */ -#define YY_BUFFER_EOF_PENDING 2 - }; - -static YY_BUFFER_STATE yy_current_buffer = 0; - -/* We provide macros for accessing buffer states in case in the - * future we want to put the buffer states in a more general - * "scanner state". - */ -#define YY_CURRENT_BUFFER yy_current_buffer - - -/* yy_hold_char holds the character lost when yytext is formed. */ -static char yy_hold_char; - -static int yy_n_chars; /* number of characters read into yy_ch_buf */ - - -int yyleng; - -/* Points to current character in buffer. */ -static char *yy_c_buf_p = (char *) 0; -static int yy_init = 1; /* whether we need to initialize */ -static int yy_start = 0; /* start state number */ - -/* Flag which is used to allow yywrap()'s to do buffer switches - * instead of setting up a fresh yyin. A bit of a hack ... - */ -static int yy_did_buffer_switch_on_eof; - -void yyrestart YY_PROTO(( FILE *input_file )); - -void yy_switch_to_buffer YY_PROTO(( YY_BUFFER_STATE new_buffer )); -void yy_load_buffer_state YY_PROTO(( void )); -YY_BUFFER_STATE yy_create_buffer YY_PROTO(( FILE *file, int size )); -void yy_delete_buffer YY_PROTO(( YY_BUFFER_STATE b )); -void yy_init_buffer YY_PROTO(( YY_BUFFER_STATE b, FILE *file )); -void yy_flush_buffer YY_PROTO(( YY_BUFFER_STATE b )); -#define YY_FLUSH_BUFFER yy_flush_buffer( yy_current_buffer ) - -YY_BUFFER_STATE yy_scan_buffer YY_PROTO(( char *base, yy_size_t size )); -YY_BUFFER_STATE yy_scan_string YY_PROTO(( yyconst char *yy_str )); -YY_BUFFER_STATE yy_scan_bytes YY_PROTO(( yyconst char *bytes, int len )); - -static void *yy_flex_alloc YY_PROTO(( yy_size_t )); -static void *yy_flex_realloc YY_PROTO(( void *, yy_size_t )); -static void yy_flex_free YY_PROTO(( void * )); - -#define yy_new_buffer yy_create_buffer - -#define yy_set_interactive(is_interactive) \ - { \ - if ( ! yy_current_buffer ) \ - yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \ - yy_current_buffer->yy_is_interactive = is_interactive; \ - } - -#define yy_set_bol(at_bol) \ - { \ - if ( ! yy_current_buffer ) \ - yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \ - yy_current_buffer->yy_at_bol = at_bol; \ - } - -#define YY_AT_BOL() (yy_current_buffer->yy_at_bol) - -typedef unsigned char YY_CHAR; -FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0; -typedef int yy_state_type; -extern char *yytext; -#define yytext_ptr yytext - -static yy_state_type yy_get_previous_state YY_PROTO(( void )); -static yy_state_type yy_try_NUL_trans YY_PROTO(( yy_state_type current_state )); -static int yy_get_next_buffer YY_PROTO(( void )); -static void yy_fatal_error YY_PROTO(( yyconst char msg[] )); - -/* Done after the current pattern has been matched and before the - * corresponding action - sets up yytext. - */ -#define YY_DO_BEFORE_ACTION \ - yytext_ptr = yy_bp; \ - yyleng = (int) (yy_cp - yy_bp); \ - yy_hold_char = *yy_cp; \ - *yy_cp = '\0'; \ - yy_c_buf_p = yy_cp; - -#define YY_NUM_RULES 181 -#define YY_END_OF_BUFFER 182 -static yyconst short int yy_accept[530] = - { 0, - 0, 0, 182, 180, 160, 161, 147, 180, 3, 82, - 153, 146, 180, 141, 142, 151, 150, 138, 149, 145, - 152, 97, 97, 139, 135, 154, 140, 155, 158, 180, - 82, 143, 179, 144, 156, 82, 82, 82, 82, 82, - 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, - 82, 82, 82, 82, 82, 82, 136, 157, 137, 148, - 134, 0, 42, 0, 2, 82, 120, 177, 178, 129, - 121, 0, 0, 118, 126, 116, 127, 117, 128, 0, - 110, 1, 119, 159, 113, 90, 0, 99, 98, 0, - 97, 125, 131, 133, 132, 124, 0, 0, 0, 82, - - 122, 82, 82, 82, 82, 82, 82, 82, 82, 9, - 82, 82, 82, 82, 82, 82, 82, 13, 44, 82, - 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, - 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, - 82, 82, 82, 82, 82, 82, 82, 123, 130, 0, - 0, 2, 104, 4, 0, 108, 109, 110, 0, 111, - 112, 92, 91, 0, 107, 100, 101, 101, 83, 115, - 114, 167, 168, 165, 170, 175, 166, 176, 171, 174, - 169, 172, 173, 0, 0, 82, 82, 82, 82, 82, - 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, - - 82, 82, 82, 11, 82, 82, 27, 82, 82, 82, - 82, 82, 82, 82, 82, 82, 82, 43, 82, 82, - 82, 82, 82, 82, 74, 82, 82, 82, 82, 82, - 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, - 82, 82, 82, 82, 82, 82, 0, 42, 0, 0, - 110, 0, 108, 109, 0, 113, 93, 94, 94, 105, - 106, 103, 102, 84, 86, 164, 0, 0, 82, 82, - 82, 82, 39, 82, 6, 29, 82, 82, 82, 82, - 82, 82, 10, 25, 82, 82, 82, 82, 12, 82, - 82, 82, 51, 82, 31, 82, 82, 52, 82, 82, - - 68, 82, 82, 82, 82, 82, 82, 82, 82, 82, - 82, 82, 82, 82, 82, 82, 82, 82, 82, 82, - 82, 82, 82, 82, 82, 82, 26, 82, 82, 82, - 0, 110, 96, 95, 85, 87, 87, 0, 163, 82, - 82, 82, 82, 5, 82, 36, 82, 82, 82, 82, - 82, 82, 82, 30, 82, 82, 82, 82, 82, 82, - 82, 82, 82, 82, 69, 82, 82, 82, 82, 82, - 82, 82, 32, 82, 82, 82, 82, 82, 82, 82, - 82, 82, 82, 77, 24, 82, 82, 82, 82, 82, - 18, 76, 89, 88, 162, 82, 80, 82, 82, 82, - - 82, 82, 82, 82, 28, 82, 38, 82, 21, 82, - 54, 78, 82, 60, 82, 82, 82, 82, 82, 82, - 82, 58, 82, 14, 75, 34, 15, 82, 41, 22, - 17, 82, 82, 82, 82, 82, 72, 19, 20, 82, - 81, 37, 47, 64, 82, 82, 8, 82, 59, 82, - 82, 82, 62, 53, 82, 82, 82, 45, 82, 82, - 57, 82, 46, 61, 82, 23, 82, 82, 82, 82, - 65, 7, 82, 73, 82, 82, 82, 70, 16, 82, - 40, 82, 55, 82, 33, 35, 82, 71, 56, 82, - 82, 82, 82, 67, 82, 82, 82, 82, 63, 82, - - 82, 82, 82, 82, 82, 82, 82, 48, 82, 82, - 82, 66, 82, 82, 82, 79, 82, 82, 82, 82, - 82, 82, 82, 82, 50, 82, 82, 49, 0 - } ; - -static yyconst int yy_ec[256] = - { 0, - 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, - 4, 4, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 2, 5, 6, 7, 8, 9, 10, 11, 12, - 13, 14, 15, 16, 17, 18, 19, 20, 21, 21, - 21, 21, 21, 21, 21, 21, 21, 22, 23, 24, - 25, 26, 27, 28, 29, 30, 31, 30, 32, 33, - 34, 8, 8, 8, 35, 36, 37, 8, 8, 8, - 38, 39, 40, 41, 42, 8, 43, 44, 8, 45, - 46, 47, 48, 49, 50, 1, 51, 52, 53, 54, - - 55, 56, 57, 58, 59, 8, 60, 61, 62, 63, - 64, 65, 8, 66, 67, 68, 69, 70, 71, 72, - 73, 74, 75, 76, 77, 78, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1 - } ; - -static yyconst int yy_meta[79] = - { 0, - 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, - 3, 1, 1, 1, 1, 1, 1, 1, 1, 4, - 4, 1, 1, 1, 1, 1, 1, 1, 5, 5, - 5, 5, 5, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 1, 1, 1, 1, 2, - 5, 5, 5, 5, 5, 5, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 1, 1, 1, 1 - } ; - -static yyconst short int yy_base[537] = - { 0, - 0, 0, 679, 680, 680, 680, 653, 73, 0, 0, - 55, 71, 630, 680, 680, 651, 67, 680, 68, 66, - 74, 80, 87, 680, 680, 65, 650, 77, 680, 99, - 623, 680, 680, 680, 648, 622, 28, 605, 67, 40, - 73, 82, 606, 84, 51, 605, 89, 98, 617, 612, - 105, 102, 603, 62, 607, 605, 680, 86, 680, 680, - 680, 108, 175, 660, 0, 0, 680, 680, 680, 680, - 680, 127, 168, 680, 680, 680, 680, 680, 680, 644, - 162, 680, 680, 680, 164, 169, 171, 166, 167, 0, - 211, 636, 680, 680, 680, 635, 252, 622, 622, 585, - - 680, 603, 582, 586, 598, 585, 155, 588, 148, 581, - 582, 579, 144, 586, 582, 579, 576, 0, 98, 580, - 587, 580, 577, 568, 570, 576, 569, 579, 573, 565, - 569, 565, 165, 574, 64, 142, 574, 114, 569, 565, - 557, 560, 183, 574, 180, 564, 567, 680, 680, 242, - 187, 0, 680, 680, 234, 680, 680, 243, 241, 680, - 680, 204, 221, 194, 270, 225, 680, 223, 266, 680, - 680, 680, 580, 680, 680, 680, 680, 680, 680, 680, - 680, 680, 680, 581, 582, 229, 554, 549, 552, 564, - 559, 547, 559, 203, 560, 555, 557, 553, 545, 542, - - 550, 537, 552, 0, 538, 542, 545, 530, 533, 536, - 539, 529, 531, 532, 537, 524, 517, 0, 534, 520, - 534, 527, 246, 516, 0, 518, 517, 519, 526, 527, - 511, 509, 509, 511, 520, 519, 515, 517, 507, 511, - 502, 223, 514, 516, 505, 504, 254, 308, 561, 292, - 296, 303, 680, 680, 301, 313, 236, 680, 279, 680, - 680, 680, 680, 294, 283, 680, 535, 523, 506, 505, - 496, 485, 0, 497, 0, 0, 496, 487, 495, 484, - 489, 490, 0, 0, 483, 483, 493, 479, 0, 483, - 488, 483, 0, 273, 0, 488, 473, 473, 474, 484, - - 0, 484, 478, 472, 468, 479, 464, 466, 476, 462, - 474, 464, 468, 467, 472, 471, 457, 459, 467, 465, - 463, 455, 460, 461, 449, 461, 0, 445, 457, 457, - 317, 339, 680, 680, 299, 680, 289, 482, 680, 458, - 440, 440, 441, 0, 292, 0, 442, 443, 449, 447, - 446, 437, 436, 0, 443, 431, 435, 441, 439, 437, - 431, 436, 420, 421, 0, 437, 418, 418, 429, 423, - 420, 428, 0, 427, 424, 428, 425, 409, 418, 420, - 405, 418, 419, 0, 0, 408, 416, 412, 407, 408, - 0, 0, 680, 680, 680, 412, 0, 397, 409, 409, - - 398, 392, 392, 404, 0, 404, 406, 387, 0, 404, - 0, 0, 398, 0, 392, 386, 396, 386, 388, 385, - 392, 0, 385, 0, 0, 386, 0, 383, 0, 0, - 0, 387, 381, 385, 380, 384, 0, 0, 0, 377, - 0, 0, 0, 370, 382, 380, 0, 371, 0, 372, - 371, 370, 0, 0, 368, 354, 360, 0, 343, 342, - 0, 344, 0, 0, 338, 0, 343, 343, 341, 326, - 0, 0, 325, 0, 331, 323, 331, 0, 0, 334, - 0, 320, 0, 333, 327, 0, 319, 0, 0, 311, - 320, 328, 326, 0, 317, 320, 313, 326, 0, 319, - - 305, 318, 315, 299, 300, 310, 296, 0, 307, 310, - 301, 0, 302, 292, 285, 0, 280, 294, 270, 281, - 242, 139, 117, 66, 0, 44, 28, 0, 680, 400, - 404, 408, 413, 417, 419, 424 - } ; - -static yyconst short int yy_def[537] = - { 0, - 529, 1, 529, 529, 529, 529, 529, 530, 531, 532, - 529, 529, 533, 529, 529, 529, 529, 529, 529, 529, - 529, 529, 529, 529, 529, 529, 529, 529, 529, 529, - 532, 529, 529, 529, 529, 532, 532, 532, 532, 532, - 532, 532, 532, 532, 532, 532, 532, 532, 532, 532, - 532, 532, 532, 532, 532, 532, 529, 529, 529, 529, - 529, 530, 529, 530, 534, 532, 529, 529, 529, 529, - 529, 533, 533, 529, 529, 529, 529, 529, 529, 529, - 529, 529, 529, 529, 529, 529, 529, 529, 529, 535, - 529, 529, 529, 529, 529, 529, 529, 529, 529, 532, - - 529, 532, 532, 532, 532, 532, 532, 532, 532, 532, - 532, 532, 532, 532, 532, 532, 532, 532, 532, 532, - 532, 532, 532, 532, 532, 532, 532, 532, 532, 532, - 532, 532, 532, 532, 532, 532, 532, 532, 532, 532, - 532, 532, 532, 532, 532, 532, 532, 529, 529, 529, - 536, 534, 529, 529, 529, 529, 529, 529, 529, 529, - 529, 529, 529, 529, 529, 529, 529, 529, 535, 529, - 529, 529, 529, 529, 529, 529, 529, 529, 529, 529, - 529, 529, 529, 529, 529, 532, 532, 532, 532, 532, - 532, 532, 532, 532, 532, 532, 532, 532, 532, 532, - - 532, 532, 532, 532, 532, 532, 532, 532, 532, 532, - 532, 532, 532, 532, 532, 532, 532, 532, 532, 532, - 532, 532, 532, 532, 532, 532, 532, 532, 532, 532, - 532, 532, 532, 532, 532, 532, 532, 532, 532, 532, - 532, 532, 532, 532, 532, 532, 536, 529, 536, 529, - 529, 529, 529, 529, 529, 529, 529, 529, 529, 529, - 529, 529, 529, 529, 529, 529, 529, 529, 532, 532, - 532, 532, 532, 532, 532, 532, 532, 532, 532, 532, - 532, 532, 532, 532, 532, 532, 532, 532, 532, 532, - 532, 532, 532, 532, 532, 532, 532, 532, 532, 532, - - 532, 532, 532, 532, 532, 532, 532, 532, 532, 532, - 532, 532, 532, 532, 532, 532, 532, 532, 532, 532, - 532, 532, 532, 532, 532, 532, 532, 532, 532, 532, - 529, 529, 529, 529, 529, 529, 529, 529, 529, 532, - 532, 532, 532, 532, 532, 532, 532, 532, 532, 532, - 532, 532, 532, 532, 532, 532, 532, 532, 532, 532, - 532, 532, 532, 532, 532, 532, 532, 532, 532, 532, - 532, 532, 532, 532, 532, 532, 532, 532, 532, 532, - 532, 532, 532, 532, 532, 532, 532, 532, 532, 532, - 532, 532, 529, 529, 529, 532, 532, 532, 532, 532, - - 532, 532, 532, 532, 532, 532, 532, 532, 532, 532, - 532, 532, 532, 532, 532, 532, 532, 532, 532, 532, - 532, 532, 532, 532, 532, 532, 532, 532, 532, 532, - 532, 532, 532, 532, 532, 532, 532, 532, 532, 532, - 532, 532, 532, 532, 532, 532, 532, 532, 532, 532, - 532, 532, 532, 532, 532, 532, 532, 532, 532, 532, - 532, 532, 532, 532, 532, 532, 532, 532, 532, 532, - 532, 532, 532, 532, 532, 532, 532, 532, 532, 532, - 532, 532, 532, 532, 532, 532, 532, 532, 532, 532, - 532, 532, 532, 532, 532, 532, 532, 532, 532, 532, - - 532, 532, 532, 532, 532, 532, 532, 532, 532, 532, - 532, 532, 532, 532, 532, 532, 532, 532, 532, 532, - 532, 532, 532, 532, 532, 532, 532, 532, 0, 529, - 529, 529, 529, 529, 529, 529 - } ; - -static yyconst short int yy_nxt[759] = - { 0, - 4, 5, 6, 5, 7, 8, 9, 10, 11, 12, - 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, - 23, 24, 25, 26, 27, 28, 29, 30, 10, 10, - 10, 10, 10, 10, 10, 10, 31, 10, 10, 10, - 10, 10, 10, 10, 10, 32, 33, 34, 35, 36, - 37, 38, 39, 40, 41, 42, 43, 10, 44, 45, - 46, 10, 47, 48, 49, 50, 51, 52, 53, 54, - 55, 10, 56, 10, 57, 58, 59, 60, 63, 67, - 70, 75, 528, 80, 77, 81, 81, 82, 92, 93, - 103, 76, 78, 79, 109, 71, 104, 85, 83, 86, - - 86, 95, 96, 110, 85, 121, 91, 91, 527, 122, - 148, 87, 144, 63, 226, 88, 97, 106, 87, 64, - 84, 89, 88, 90, 107, 145, 98, 227, 89, 68, - 108, 69, 114, 111, 87, 112, 99, 153, 526, 118, - 88, 87, 115, 124, 113, 116, 119, 88, 89, 127, - 120, 90, 125, 128, 64, 89, 140, 126, 206, 134, - 129, 149, 135, 136, 231, 207, 130, 141, 131, 137, - 529, 525, 138, 73, 142, 139, 150, 150, 72, 232, - 151, 81, 81, 158, 158, 164, 85, 164, 86, 86, - 165, 165, 248, 155, 156, 159, 160, 157, 228, 161, - - 87, 166, 168, 195, 162, 192, 524, 167, 200, 193, - 163, 201, 196, 165, 165, 229, 155, 156, 159, 160, - 221, 222, 157, 87, 161, 223, 166, 168, 85, 162, - 91, 91, 224, 249, 167, 237, 238, 163, 243, 257, - 244, 239, 87, 150, 150, 258, 88, 151, 250, 240, - 250, 241, 89, 251, 251, 255, 259, 255, 263, 248, - 256, 256, 158, 158, 257, 87, 262, 269, 270, 278, - 279, 88, 258, 325, 252, 253, 326, 333, 254, 89, - 172, 259, 173, 263, 174, 175, 176, 177, 178, 165, - 165, 179, 180, 262, 181, 182, 183, 252, 253, 306, - - 249, 264, 260, 254, 333, 261, 523, 265, 307, 150, - 150, 251, 251, 151, 334, 251, 251, 331, 337, 331, - 256, 256, 332, 332, 394, 260, 264, 358, 156, 335, - 261, 157, 256, 256, 265, 336, 332, 332, 359, 334, - 393, 522, 521, 337, 520, 160, 400, 519, 161, 394, - 518, 156, 517, 401, 335, 516, 157, 515, 332, 332, - 514, 513, 336, 512, 511, 510, 509, 393, 160, 508, - 507, 253, 506, 161, 254, 505, 504, 503, 502, 501, - 500, 499, 498, 497, 496, 495, 494, 493, 492, 491, - 490, 489, 488, 487, 253, 486, 485, 484, 483, 254, - - 62, 62, 62, 62, 62, 65, 482, 481, 65, 66, - 480, 66, 66, 72, 72, 479, 72, 72, 152, 478, - 152, 152, 169, 169, 247, 247, 247, 247, 247, 477, - 476, 475, 474, 473, 472, 471, 470, 469, 468, 467, - 466, 465, 464, 463, 462, 461, 460, 459, 458, 457, - 456, 455, 454, 453, 452, 451, 450, 449, 448, 447, - 446, 445, 444, 443, 442, 441, 440, 439, 438, 437, - 436, 435, 434, 433, 432, 431, 430, 429, 428, 427, - 426, 425, 424, 423, 422, 421, 420, 419, 418, 417, - 416, 415, 414, 413, 412, 411, 410, 409, 408, 407, - - 406, 405, 404, 403, 402, 399, 398, 397, 396, 395, - 392, 391, 390, 389, 388, 387, 386, 385, 384, 383, - 382, 381, 380, 379, 378, 377, 376, 375, 374, 373, - 372, 371, 370, 369, 368, 367, 366, 365, 364, 363, - 362, 361, 360, 357, 356, 355, 354, 353, 352, 351, - 350, 349, 348, 347, 346, 345, 344, 343, 342, 341, - 340, 339, 338, 529, 330, 329, 328, 327, 324, 323, - 322, 321, 320, 319, 318, 317, 316, 315, 314, 313, - 312, 311, 310, 309, 308, 305, 304, 303, 302, 301, - 300, 299, 298, 297, 296, 295, 294, 293, 292, 291, - - 290, 289, 288, 287, 286, 285, 284, 283, 282, 281, - 280, 277, 276, 275, 274, 273, 272, 271, 268, 267, - 266, 246, 245, 242, 236, 235, 234, 233, 230, 225, - 220, 219, 218, 217, 216, 215, 214, 213, 212, 211, - 210, 209, 208, 205, 204, 203, 202, 199, 198, 197, - 194, 191, 190, 189, 188, 187, 186, 185, 184, 171, - 170, 154, 529, 147, 146, 143, 133, 132, 123, 117, - 105, 102, 101, 100, 94, 74, 73, 61, 529, 3, - 529, 529, 529, 529, 529, 529, 529, 529, 529, 529, - 529, 529, 529, 529, 529, 529, 529, 529, 529, 529, - - 529, 529, 529, 529, 529, 529, 529, 529, 529, 529, - 529, 529, 529, 529, 529, 529, 529, 529, 529, 529, - 529, 529, 529, 529, 529, 529, 529, 529, 529, 529, - 529, 529, 529, 529, 529, 529, 529, 529, 529, 529, - 529, 529, 529, 529, 529, 529, 529, 529, 529, 529, - 529, 529, 529, 529, 529, 529, 529, 529 - } ; - -static yyconst short int yy_chk[759] = - { 0, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 8, 11, - 12, 17, 527, 20, 19, 20, 20, 21, 26, 26, - 37, 17, 19, 19, 40, 12, 37, 22, 21, 22, - - 22, 28, 28, 40, 23, 45, 23, 23, 526, 45, - 58, 22, 54, 62, 135, 22, 30, 39, 23, 8, - 21, 22, 23, 22, 39, 54, 30, 135, 23, 11, - 39, 11, 42, 41, 22, 41, 30, 72, 524, 44, - 22, 23, 42, 47, 41, 42, 44, 23, 22, 48, - 44, 22, 47, 48, 62, 23, 52, 47, 119, 51, - 48, 58, 51, 51, 138, 119, 48, 52, 48, 51, - 73, 523, 51, 72, 52, 51, 63, 63, 73, 138, - 63, 81, 81, 85, 85, 87, 86, 87, 86, 86, - 87, 87, 151, 81, 81, 85, 85, 81, 136, 85, - - 86, 88, 89, 109, 86, 107, 522, 88, 113, 107, - 86, 113, 109, 164, 164, 136, 81, 81, 85, 85, - 133, 133, 81, 86, 85, 133, 88, 89, 91, 86, - 91, 91, 133, 151, 88, 143, 143, 86, 145, 162, - 145, 143, 91, 150, 150, 162, 91, 150, 155, 143, - 155, 143, 91, 155, 155, 159, 163, 159, 168, 247, - 159, 159, 158, 158, 162, 91, 166, 186, 186, 194, - 194, 91, 162, 242, 158, 158, 242, 257, 158, 91, - 97, 163, 97, 168, 97, 97, 97, 97, 97, 165, - 165, 97, 97, 166, 97, 97, 97, 158, 158, 223, - - 247, 169, 165, 158, 257, 165, 521, 169, 223, 248, - 248, 250, 250, 248, 259, 251, 251, 252, 265, 252, - 255, 255, 252, 252, 337, 165, 169, 294, 251, 264, - 165, 251, 256, 256, 169, 264, 331, 331, 294, 259, - 335, 520, 519, 265, 518, 256, 345, 517, 256, 337, - 515, 251, 514, 345, 264, 513, 251, 511, 332, 332, - 510, 509, 264, 507, 506, 505, 504, 335, 256, 503, - 502, 332, 501, 256, 332, 500, 498, 497, 496, 495, - 493, 492, 491, 490, 487, 485, 484, 482, 480, 477, - 476, 475, 473, 470, 332, 469, 468, 467, 465, 332, - - 530, 530, 530, 530, 530, 531, 462, 460, 531, 532, - 459, 532, 532, 533, 533, 457, 533, 533, 534, 456, - 534, 534, 535, 535, 536, 536, 536, 536, 536, 455, - 452, 451, 450, 448, 446, 445, 444, 440, 436, 435, - 434, 433, 432, 428, 426, 423, 421, 420, 419, 418, - 417, 416, 415, 413, 410, 408, 407, 406, 404, 403, - 402, 401, 400, 399, 398, 396, 390, 389, 388, 387, - 386, 383, 382, 381, 380, 379, 378, 377, 376, 375, - 374, 372, 371, 370, 369, 368, 367, 366, 364, 363, - 362, 361, 360, 359, 358, 357, 356, 355, 353, 352, - - 351, 350, 349, 348, 347, 343, 342, 341, 340, 338, - 330, 329, 328, 326, 325, 324, 323, 322, 321, 320, - 319, 318, 317, 316, 315, 314, 313, 312, 311, 310, - 309, 308, 307, 306, 305, 304, 303, 302, 300, 299, - 298, 297, 296, 292, 291, 290, 288, 287, 286, 285, - 282, 281, 280, 279, 278, 277, 274, 272, 271, 270, - 269, 268, 267, 249, 246, 245, 244, 243, 241, 240, - 239, 238, 237, 236, 235, 234, 233, 232, 231, 230, - 229, 228, 227, 226, 224, 222, 221, 220, 219, 217, - 216, 215, 214, 213, 212, 211, 210, 209, 208, 207, - - 206, 205, 203, 202, 201, 200, 199, 198, 197, 196, - 195, 193, 192, 191, 190, 189, 188, 187, 185, 184, - 173, 147, 146, 144, 142, 141, 140, 139, 137, 134, - 132, 131, 130, 129, 128, 127, 126, 125, 124, 123, - 122, 121, 120, 117, 116, 115, 114, 112, 111, 110, - 108, 106, 105, 104, 103, 102, 100, 99, 98, 96, - 92, 80, 64, 56, 55, 53, 50, 49, 46, 43, - 38, 36, 35, 31, 27, 16, 13, 7, 3, 529, - 529, 529, 529, 529, 529, 529, 529, 529, 529, 529, - 529, 529, 529, 529, 529, 529, 529, 529, 529, 529, - - 529, 529, 529, 529, 529, 529, 529, 529, 529, 529, - 529, 529, 529, 529, 529, 529, 529, 529, 529, 529, - 529, 529, 529, 529, 529, 529, 529, 529, 529, 529, - 529, 529, 529, 529, 529, 529, 529, 529, 529, 529, - 529, 529, 529, 529, 529, 529, 529, 529, 529, 529, - 529, 529, 529, 529, 529, 529, 529, 529 - } ; - -static yy_state_type yy_last_accepting_state; -static char *yy_last_accepting_cpos; - -/* The intent behind this definition is that it'll catch - * any uses of REJECT which flex missed. - */ -#define REJECT reject_used_but_not_detected -#define yymore() yymore_used_but_not_detected -#define YY_MORE_ADJ 0 -#define YY_RESTORE_YY_MORE_OFFSET -char *yytext; -#line 1 "cscanner.l" -#define INITIAL 0 -/*;-*-C-*-; -** Copyright (c) Massachusetts Institute of Technology 1994-1998. -** All Rights Reserved. -** Unpublished rights reserved under the copyright laws of -** the United States. -** -** THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED -** OR IMPLIED. ANY USE IS AT YOUR OWN RISK. -** -** This code is distributed freely and may be used freely under the -** following conditions: -** -** 1. This notice may not be removed or altered. -** -** 2. Works derived from this code are not distributed for -** commercial gain without explicit permission from MIT -** (for permission contact lclint-request@sds.lcs.mit.edu). -*/ -/* - * Modified by Herbert 08/19/97: - * - added #include for IBM's OS/2 compiler. - * - fixed weird bug with lookup of tmp files (OS/2 and MSDOS only). - */ -/* - * Modified by Mike Smith - * Corrected missing 'line' in scanf() calls in handleSpecial(). - * Without this, I get an error when LCLint hits a '#line' directive - * in the pre-pre-processed source files. For safety, I have made these - * conditional on OS2 and MSDOS because I don't understand why noone else - * has seen this problem. - * - * Modified by Mike Smith, 4th June 1997 - * Finally resolved the #line problem. The scanf() calls have been fixed to - * allow the following #line forms:- - * - * #line 123 "filename" - * #line 123 - * # 123 "filename" - * # 123 - * - * The last two are generated by the GNU pre-processor, apparently - */ -#line 56 "cscanner.l" -/* -** based on original C lexer by Nate Osgood -** from hacrat@catfish.lcs.mit.edu Mon Jun 14 13:06:32 1993 -** -*/ - -# include "lclintMacros.nf" -# include "basic.h" - -# include "cgrammar.h" -# include "cgrammar_tokens.h" - -# include "fileIdList.h" -# include "portab.h" - -# if defined(OS2) && defined(__IBMC__) - /* needed for isatty()... */ -# include -# endif - -static bool lastWasString = FALSE; -static char savechar = '\0'; - -/*@notfunction@*/ -# define yyinput() (incColumn (), getc (yyin)) - -/*@-noparams@*/ -/*@-incondefs@*/ -extern /*@external@*/ int read (); -/*@=incondefs@*/ -/*@=noparams@*/ - -static /*@owned@*/ cstring lastidprocessed = cstring_undefined; - -static int lminput (void); -static int tokLength = 0; -static bool inSpecPart = FALSE; -static bool continueLine = FALSE; - -static int ninput (void); -static char processChar (void); -static double processFloat (void); -static /*@only@*/ exprNode processString (void); -static long processDec (void); -static long processHex (void); -static long processOctal (void); -static int processIdentifier (/*@only@*/ cstring) - /*@globals undef lastidprocessed@*/ ; -static bool processHashIdentifier (/*@only@*/ cstring) - /*@globals undef lastidprocessed@*/ ; - -static int processSpec (int); -static bool handleSpecial (char *); -static int handleLlSpecial (void); -static void handleMacro (void); -static bool processMacro (void); -static /*@only@*/ cstring makeIdentifier (char *); - -/* yes, this is exported! */ -bool g_expectingTypeName = TRUE; /* beginning of file can be type name! */ - -static int returnInt (ctype, long); -static int returnFloat (ctype, double); -static int returnChar (char); -static void setTokLength (int) /*@modifies g_currentloc@*/ ; -static void setTokLengthT (size_t) /*@modifies g_currentloc@*/ ; - -static void advanceLine (void) -{ - tokLength = 0; - beginLine (); -} - -/*@-allmacros@*/ -# define RETURN_INT(c,i) \ - do { lastWasString = FALSE; \ - return (returnInt (c, i)); } while (FALSE) - -# define RETURN_FLOAT(c,f) \ - do { lastWasString = FALSE; \ - return (returnFloat (c, f)); \ - } while (FALSE) - -# define RETURN_CHAR(c) \ - do { lastWasString = FALSE; \ - return (returnChar (c)); \ - } while (FALSE) - -# define RETURN_TOK(t) \ - do { yylval.tok = lltok_create (t, fileloc_decColumn (g_currentloc, tokLength)); \ - tokLength = 0; \ - lastWasString = FALSE; \ - return (t); } while (FALSE) - -# define RETURN_TYPE(t, ct) \ - do { yylval.ctyp = ct; tokLength = 0; return (t); } while (FALSE) - -/* don't fileloc_decColumn (g_currentloc, tokLength)); - the string could have \n's in it! -*/ - -# define RETURN_STRING(c) \ - do { yylval.expr = exprNode_stringLiteral (c, fileloc_decColumn (g_currentloc, tokLength)); \ - tokLength = 0; \ - lastWasString = TRUE; \ - return (CCONSTANT); } while (FALSE) - -# define RETURN_EXPR(e) \ - do { yylval.expr = e; \ - tokLength = 0; \ - lastWasString = TRUE; \ - return (CCONSTANT); } while (FALSE) - -/*@=allmacros@*/ - -static void setTokLength (int len) -{ - addColumn (len); - tokLength = len; -} - -static void setTokLengthT (size_t len) -{ - setTokLength (size_toInt (len)); -} - -# include "flex.head" -#line 877 "lex.yy.c" - -/* Macros after this point can all be overridden by user definitions in - * section 1. - */ - -#ifndef YY_SKIP_YYWRAP -#ifdef __cplusplus -extern "C" int yywrap YY_PROTO(( void )); -#else -extern int yywrap YY_PROTO(( void )); -#endif -#endif - -#ifndef YY_NO_UNPUT -static void yyunput YY_PROTO(( int c, char *buf_ptr )); -#endif - -#ifndef yytext_ptr -static void yy_flex_strncpy YY_PROTO(( char *, yyconst char *, int )); -#endif - -#ifdef YY_NEED_STRLEN -static int yy_flex_strlen YY_PROTO(( yyconst char * )); -#endif - -#ifndef YY_NO_INPUT -#ifdef __cplusplus -static int yyinput YY_PROTO(( void )); -#else -static int input YY_PROTO(( void )); -#endif -#endif - -#if YY_STACK_USED -static int yy_start_stack_ptr = 0; -static int yy_start_stack_depth = 0; -static int *yy_start_stack = 0; -#ifndef YY_NO_PUSH_STATE -static void yy_push_state YY_PROTO(( int new_state )); -#endif -#ifndef YY_NO_POP_STATE -static void yy_pop_state YY_PROTO(( void )); -#endif -#ifndef YY_NO_TOP_STATE -static int yy_top_state YY_PROTO(( void )); -#endif - -#else -#define YY_NO_PUSH_STATE 1 -#define YY_NO_POP_STATE 1 -#define YY_NO_TOP_STATE 1 -#endif - -#ifdef YY_MALLOC_DECL -YY_MALLOC_DECL -#else -#if __STDC__ -#ifndef __cplusplus -#include -#endif -#else -/* Just try to get by without declaring the routines. This will fail - * miserably on non-ANSI systems for which sizeof(size_t) != sizeof(int) - * or sizeof(void*) != sizeof(int). - */ -#endif -#endif - -/* Amount of stuff to slurp up with each read. */ -#ifndef YY_READ_BUF_SIZE -#define YY_READ_BUF_SIZE 8192 -#endif - -/* Copy whatever the last rule matched to the standard output. */ - -#ifndef ECHO -/* This used to be an fputs(), but since the string might contain NUL's, - * we now use fwrite(). - */ -#define ECHO (void) fwrite( yytext, yyleng, 1, yyout ) -#endif - -/* Gets input and stuffs it into "buf". number of characters read, or YY_NULL, - * is returned in "result". - */ -#ifndef YY_INPUT -#define YY_INPUT(buf,result,max_size) \ - if ( yy_current_buffer->yy_is_interactive ) \ - { \ - int c = '*', n; \ - for ( n = 0; n < max_size && \ - (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ - buf[n] = (char) c; \ - if ( c == '\n' ) \ - buf[n++] = (char) c; \ - if ( c == EOF && ferror( yyin ) ) \ - YY_FATAL_ERROR( "input in flex scanner failed" ); \ - result = n; \ - } \ - else if ( ((result = fread( buf, 1, max_size, yyin )) == 0) \ - && ferror( yyin ) ) \ - YY_FATAL_ERROR( "input in flex scanner failed" ); -#endif - -/* No semi-colon after return; correct usage is to write "yyterminate();" - - * we don't want an extra ';' after the "return" because that will cause - * some compilers to complain about unreachable statements. - */ -#ifndef yyterminate -#define yyterminate() return YY_NULL -#endif - -/* Number of entries by which start-condition stack grows. */ -#ifndef YY_START_STACK_INCR -#define YY_START_STACK_INCR 25 -#endif - -/* Report a fatal error. */ -#ifndef YY_FATAL_ERROR -#define YY_FATAL_ERROR(msg) yy_fatal_error( msg ) -#endif - -/* Default declaration of generated scanner - a define so the user can - * easily add parameters. - */ -#ifndef YY_DECL -#define YY_DECL int yylex YY_PROTO(( void )) -#endif - -/* Code executed at the beginning of each rule, after yytext and yyleng - * have been set up. - */ -#ifndef YY_USER_ACTION -#define YY_USER_ACTION -#endif - -/* Code executed at the end of each rule. */ -#ifndef YY_BREAK -#define YY_BREAK break; -#endif - -#define YY_RULE_SETUP \ - YY_USER_ACTION - -YY_DECL - { - register yy_state_type yy_current_state; - register char *yy_cp = NULL, *yy_bp = NULL; - register int yy_act; - -#line 185 "cscanner.l" - - -#line 1031 "lex.yy.c" - - if ( yy_init ) - { - yy_init = 0; - -#ifdef YY_USER_INIT - YY_USER_INIT; -#endif - - if ( ! yy_start ) - yy_start = 1; /* first start state */ - - if ( ! yyin ) - yyin = stdin; - - if ( ! yyout ) - yyout = stdout; - - if ( ! yy_current_buffer ) - yy_current_buffer = - yy_create_buffer( yyin, YY_BUF_SIZE ); - - yy_load_buffer_state(); - } - - while ( 1 ) /* loops until end-of-file is reached */ - { - yy_cp = yy_c_buf_p; - - /* Support of yytext. */ - *yy_cp = yy_hold_char; - - /* yy_bp points to the position in yy_ch_buf of the start of - * the current run. - */ - yy_bp = yy_cp; - - yy_current_state = yy_start; -yy_match: - do - { - register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)]; - if ( yy_accept[yy_current_state] ) - { - yy_last_accepting_state = yy_current_state; - yy_last_accepting_cpos = yy_cp; - } - while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) - { - yy_current_state = (int) yy_def[yy_current_state]; - if ( yy_current_state >= 530 ) - yy_c = yy_meta[(unsigned int) yy_c]; - } - yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; - ++yy_cp; - } - while ( yy_base[yy_current_state] != 680 ); - -yy_find_action: - yy_act = yy_accept[yy_current_state]; - if ( yy_act == 0 ) - { /* have to back up */ - yy_cp = yy_last_accepting_cpos; - yy_current_state = yy_last_accepting_state; - yy_act = yy_accept[yy_current_state]; - } - - YY_DO_BEFORE_ACTION; - - -do_action: /* This label is used only to access EOF actions. */ - - - switch ( yy_act ) - { /* beginning of action switch */ - case 0: /* must back up */ - /* undo the effects of YY_DO_BEFORE_ACTION */ - *yy_cp = yy_hold_char; - yy_cp = yy_last_accepting_cpos; - yy_current_state = yy_last_accepting_state; - goto yy_find_action; - -case 1: -YY_RULE_SETUP -#line 187 "cscanner.l" -{ llfatalbug (cstring_makeLiteral ("Comment in pre-processor output")); } - YY_BREAK -case 2: -YY_RULE_SETUP -#line 189 "cscanner.l" -{ - context_saveLocation (); - setTokLength (longUnsigned_toInt (mstring_length (yytext))); - - if (processHashIdentifier (makeIdentifier (yytext + 1))) - { - if (lastWasString) - { - ; - } - else - { - RETURN_STRING (cstring_makeLiteral ("\"\"")); - } - } - else - { - if (handleSpecial (yytext)) - { - setTokLength (1); - RETURN_TOK (0); - } - } - } - YY_BREAK -case 3: -YY_RULE_SETUP -#line 213 "cscanner.l" -{ if (handleSpecial (yytext)) - { - setTokLength (1); RETURN_TOK (0); - } - } - YY_BREAK -case 4: -YY_RULE_SETUP -#line 218 "cscanner.l" -{ setTokLength (3); RETURN_TOK (CTOK_ELIPSIS); } - YY_BREAK -case 5: -YY_RULE_SETUP -#line 219 "cscanner.l" -{ setTokLength (5); RETURN_TOK (BREAK); } - YY_BREAK -case 6: -YY_RULE_SETUP -#line 220 "cscanner.l" -{ setTokLength (4); RETURN_TOK (CASE); } - YY_BREAK -case 7: -YY_RULE_SETUP -#line 221 "cscanner.l" -{ setTokLength (8); RETURN_TOK (CONTINUE); } - YY_BREAK -case 8: -YY_RULE_SETUP -#line 222 "cscanner.l" -{ setTokLength (7); RETURN_TOK (DEFAULT); } - YY_BREAK -case 9: -YY_RULE_SETUP -#line 223 "cscanner.l" -{ setTokLength (2); RETURN_TOK (DO); } - YY_BREAK -case 10: -YY_RULE_SETUP -#line 224 "cscanner.l" -{ setTokLength (4); RETURN_TOK (CELSE); } - YY_BREAK -case 11: -YY_RULE_SETUP -#line 225 "cscanner.l" -{ setTokLength (3); RETURN_TOK (CFOR); } - YY_BREAK -case 12: -YY_RULE_SETUP -#line 226 "cscanner.l" -{ setTokLength (4); RETURN_TOK (GOTO); } - YY_BREAK -case 13: -YY_RULE_SETUP -#line 227 "cscanner.l" -{ setTokLength (2); RETURN_TOK (CIF); } - YY_BREAK -case 14: -YY_RULE_SETUP -#line 228 "cscanner.l" -{ setTokLength (6); RETURN_TOK (RETURN); } - YY_BREAK -case 15: -YY_RULE_SETUP -#line 229 "cscanner.l" -{ setTokLength (6); RETURN_TOK (CSIZEOF); } - YY_BREAK -case 16: -YY_RULE_SETUP -#line 230 "cscanner.l" -{ setTokLength (8); RETURN_TOK (COFFSETOF); } - YY_BREAK -case 17: -YY_RULE_SETUP -#line 231 "cscanner.l" -{ setTokLength (6); RETURN_TOK (SWITCH); } - YY_BREAK -case 18: -YY_RULE_SETUP -#line 232 "cscanner.l" -{ setTokLength (5); RETURN_TOK (WHILE); } - YY_BREAK -case 19: -YY_RULE_SETUP -#line 233 "cscanner.l" -{ setTokLength (6); RETURN_TOK (VA_ARG); } - YY_BREAK -case 20: -YY_RULE_SETUP -#line 234 "cscanner.l" -{ setTokLength (6); RETURN_TOK (VA_DCL); } - YY_BREAK -case 21: -YY_RULE_SETUP -#line 235 "cscanner.l" -{ - /* gcc extension...this might not be appropriate */ - setTokLength (6); RETURN_TOK (QINLINE); } - YY_BREAK -case 22: -YY_RULE_SETUP -#line 239 "cscanner.l" -{ setTokLength (6); RETURN_TOK (CSTRUCT); } - YY_BREAK -case 23: -YY_RULE_SETUP -#line 240 "cscanner.l" -{ setTokLength (7); RETURN_TOK (CTYPEDEF); } - YY_BREAK -case 24: -YY_RULE_SETUP -#line 242 "cscanner.l" -{ setTokLength (5); RETURN_TOK (CUNION); } - YY_BREAK -case 25: -YY_RULE_SETUP -#line 243 "cscanner.l" -{ setTokLength (4); RETURN_TOK (CENUM); } - YY_BREAK -case 26: -YY_RULE_SETUP -#line 245 "cscanner.l" -{ setTokLength (4); RETURN_TYPE (CVOID, ctype_void); } - YY_BREAK -case 27: -YY_RULE_SETUP -#line 246 "cscanner.l" -{ setTokLength (3); RETURN_TYPE (CINT, ctype_int); } - YY_BREAK -case 28: -YY_RULE_SETUP -#line 247 "cscanner.l" -{ setTokLength (6); RETURN_TYPE (CDOUBLE, ctype_double); } - YY_BREAK -case 29: -YY_RULE_SETUP -#line 248 "cscanner.l" -{ setTokLength (4); RETURN_TYPE (CGCHAR, ctype_char); } - YY_BREAK -case 30: -YY_RULE_SETUP -#line 249 "cscanner.l" -{ setTokLength (5); RETURN_TYPE (CGFLOAT, ctype_float); } - YY_BREAK -case 31: -YY_RULE_SETUP -#line 251 "cscanner.l" -{ setTokLength (4); RETURN_TOK (QLONG); } - YY_BREAK -case 32: -YY_RULE_SETUP -#line 252 "cscanner.l" -{ setTokLength (5); RETURN_TOK (QSHORT); } - YY_BREAK -case 33: -YY_RULE_SETUP -#line 253 "cscanner.l" -{ setTokLength (8); RETURN_TOK (QUNSIGNED); } - YY_BREAK -case 34: -YY_RULE_SETUP -#line 254 "cscanner.l" -{ setTokLength (6); RETURN_TOK (QSIGNED); } - YY_BREAK -case 35: -YY_RULE_SETUP -#line 256 "cscanner.l" -{ setTokLength (8); RETURN_TOK (QVOLATILE); } - YY_BREAK -case 36: -YY_RULE_SETUP -#line 257 "cscanner.l" -{ setTokLength (5); RETURN_TOK (QCONST); } - YY_BREAK -/* some systems expect this! [gack!] */ -case 37: -YY_RULE_SETUP -#line 260 "cscanner.l" -{ setTokLength (7); RETURN_TOK (QCONST); } - YY_BREAK -case 38: -YY_RULE_SETUP -#line 262 "cscanner.l" -{ setTokLength (6); RETURN_TOK (QEXTERN); } - YY_BREAK -case 39: -YY_RULE_SETUP -#line 263 "cscanner.l" -{ setTokLength (4); RETURN_TOK (QAUTO); } - YY_BREAK -case 40: -YY_RULE_SETUP -#line 264 "cscanner.l" -{ setTokLength (8); RETURN_TOK (QREGISTER); } - YY_BREAK -case 41: -YY_RULE_SETUP -#line 265 "cscanner.l" -{ setTokLength (6); RETURN_TOK (QSTATIC); } - YY_BREAK -case 42: -YY_RULE_SETUP -#line 267 "cscanner.l" -{ RETURN_EXPR (processString ()); } - YY_BREAK -case 43: -YY_RULE_SETUP -#line 268 "cscanner.l" -{ return (processSpec (QOUT)); } - YY_BREAK -case 44: -YY_RULE_SETUP -#line 269 "cscanner.l" -{ return (processSpec (QIN)); } - YY_BREAK -case 45: -YY_RULE_SETUP -#line 270 "cscanner.l" -{ return (processSpec (QPARTIAL)); } - YY_BREAK -case 46: -YY_RULE_SETUP -#line 271 "cscanner.l" -{ return (processSpec (QSPECIAL)); } - YY_BREAK -case 47: -YY_RULE_SETUP -#line 272 "cscanner.l" -{ return (processSpec (QANYTYPE)); } - YY_BREAK -case 48: -YY_RULE_SETUP -#line 273 "cscanner.l" -{ return (processSpec (QINTEGRALTYPE)); } - YY_BREAK -case 49: -YY_RULE_SETUP -#line 274 "cscanner.l" -{ return (processSpec (QUNSIGNEDINTEGRALTYPE)); } - YY_BREAK -case 50: -YY_RULE_SETUP -#line 275 "cscanner.l" -{ return (processSpec (QSIGNEDINTEGRALTYPE)); } - YY_BREAK -case 51: -YY_RULE_SETUP -#line 276 "cscanner.l" -{ return (processSpec (QKEEP)); } - YY_BREAK -case 52: -YY_RULE_SETUP -#line 277 "cscanner.l" -{ return (processSpec (QNULL)); } - YY_BREAK -case 53: -YY_RULE_SETUP -#line 278 "cscanner.l" -{ return (processSpec (QNOTNULL)); } - YY_BREAK -case 54: -YY_RULE_SETUP -#line 279 "cscanner.l" -{ return (processSpec (QISNULL)); } - YY_BREAK -case 55: -YY_RULE_SETUP -#line 280 "cscanner.l" -{ return (processSpec (QTRUENULL)); } - YY_BREAK -case 56: -YY_RULE_SETUP -#line 281 "cscanner.l" -{ return (processSpec (QFALSENULL)); } - YY_BREAK -case 57: -YY_RULE_SETUP -#line 282 "cscanner.l" -{ return (processSpec (QRELNULL)); } - YY_BREAK -case 58: -YY_RULE_SETUP -#line 283 "cscanner.l" -{ return (processSpec (QRELDEF)); } - YY_BREAK -case 59: -YY_RULE_SETUP -#line 284 "cscanner.l" -{ return (processSpec (QEXPOSED)); } - YY_BREAK -case 60: -YY_RULE_SETUP -#line 285 "cscanner.l" -{ return (processSpec (QNEWREF)); } - YY_BREAK -case 61: -YY_RULE_SETUP -#line 286 "cscanner.l" -{ return (processSpec (QTEMPREF)); } - YY_BREAK -case 62: -YY_RULE_SETUP -#line 287 "cscanner.l" -{ return (processSpec (QKILLREF)); } - YY_BREAK -case 63: -YY_RULE_SETUP -#line 288 "cscanner.l" -{ return (processSpec (QREFCOUNTED)); } - YY_BREAK -case 64: -YY_RULE_SETUP -#line 289 "cscanner.l" -{ return (processSpec (QCHECKED)); } - YY_BREAK -case 65: -YY_RULE_SETUP -#line 290 "cscanner.l" -{ return (processSpec (QCHECKMOD)); } - YY_BREAK -case 66: -YY_RULE_SETUP -#line 291 "cscanner.l" -{ return (processSpec (QCHECKEDSTRICT)); } - YY_BREAK -case 67: -YY_RULE_SETUP -#line 292 "cscanner.l" -{ return (processSpec (QUNCHECKED)); } - YY_BREAK -case 68: -YY_RULE_SETUP -#line 293 "cscanner.l" -{ return (processSpec (QONLY)); } - YY_BREAK -case 69: -YY_RULE_SETUP -#line 294 "cscanner.l" -{ return (processSpec (QOWNED)); } - YY_BREAK -case 70: -YY_RULE_SETUP -#line 295 "cscanner.l" -{ return (processSpec (QOBSERVER)); } - YY_BREAK -case 71: -YY_RULE_SETUP -#line 296 "cscanner.l" -{ return (processSpec (QDEPENDENT)); } - YY_BREAK -case 72: -YY_RULE_SETUP -#line 297 "cscanner.l" -{ return (processSpec (QUNUSED)); } - YY_BREAK -case 73: -YY_RULE_SETUP -#line 298 "cscanner.l" -{ return (processSpec (QEXTERNAL)); } - YY_BREAK -case 74: -YY_RULE_SETUP -#line 299 "cscanner.l" -{ return (processSpec (QSEF)); } - YY_BREAK -case 75: -YY_RULE_SETUP -#line 300 "cscanner.l" -{ return (processSpec (QSHARED)); } - YY_BREAK -case 76: -YY_RULE_SETUP -#line 301 "cscanner.l" -{ return (processSpec (QYIELD)); } - YY_BREAK -case 77: -YY_RULE_SETUP -#line 302 "cscanner.l" -{ return (processSpec (QUNDEF)); } - YY_BREAK -case 78: -YY_RULE_SETUP -#line 303 "cscanner.l" -{ return (processSpec (QKILLED)); } - YY_BREAK -case 79: -YY_RULE_SETUP -#line 304 "cscanner.l" -{ return (processSpec (QNULLTERMINATED));} - YY_BREAK -case 80: -YY_RULE_SETUP -#line 305 "cscanner.l" -{ return (processSpec (QMAXSET));} - YY_BREAK -case 81: -YY_RULE_SETUP -#line 306 "cscanner.l" -{ return (processSpec (QMAXREAD));} - YY_BREAK -case 82: -YY_RULE_SETUP -#line 308 "cscanner.l" -{ int tok; - context_saveLocation (); - setTokLength (longUnsigned_toInt (mstring_length (yytext))); - tok = processIdentifier (makeIdentifier (yytext)); - if (tok != BADTOK) - { - return (tok); - } - } - YY_BREAK -case 83: -YY_RULE_SETUP -#line 317 "cscanner.l" -{ setTokLengthT (mstring_length (yytext)); - RETURN_INT (ctype_int, processHex ()); /* evs 2000-05-17 was ctype_uint */ - } - YY_BREAK -case 84: -YY_RULE_SETUP -#line 320 "cscanner.l" -{ setTokLengthT (mstring_length (yytext)); - RETURN_INT (ctype_lint, processHex ()); } - YY_BREAK -case 85: -YY_RULE_SETUP -#line 322 "cscanner.l" -{ setTokLengthT (mstring_length (yytext)); - RETURN_INT (ctype_llint, processHex ()); } - YY_BREAK -case 86: -YY_RULE_SETUP -#line 324 "cscanner.l" -{ setTokLengthT (mstring_length (yytext)); - RETURN_INT (ctype_uint, processHex ()); } - YY_BREAK -case 87: -YY_RULE_SETUP -#line 326 "cscanner.l" -{ setTokLengthT (mstring_length (yytext)); - RETURN_INT (ctype_ulint, processHex ()); } - YY_BREAK -case 88: -YY_RULE_SETUP -#line 328 "cscanner.l" -{ setTokLengthT (mstring_length (yytext)); - RETURN_INT (ctype_ullint, processHex ()); } - YY_BREAK -case 89: -YY_RULE_SETUP -#line 330 "cscanner.l" -{ setTokLengthT (mstring_length (yytext)); - RETURN_INT (ctype_ullint, processHex ()); } - YY_BREAK -case 90: -YY_RULE_SETUP -#line 332 "cscanner.l" -{ setTokLengthT (mstring_length (yytext)); - RETURN_INT (ctype_int, processOctal ()); } - YY_BREAK -case 91: -YY_RULE_SETUP -#line 334 "cscanner.l" -{ setTokLengthT (mstring_length (yytext)); - RETURN_INT (ctype_uint, processOctal ()); } - YY_BREAK -case 92: -YY_RULE_SETUP -#line 336 "cscanner.l" -{ setTokLengthT (mstring_length (yytext)); - RETURN_INT (ctype_lint, processOctal ()); } - YY_BREAK -case 93: -YY_RULE_SETUP -#line 338 "cscanner.l" -{ setTokLengthT (mstring_length (yytext)); - RETURN_INT (ctype_llint, processOctal ()); } - YY_BREAK -case 94: -YY_RULE_SETUP -#line 340 "cscanner.l" -{ setTokLengthT (mstring_length (yytext)); - RETURN_INT (ctype_ulint, processOctal ()); } - YY_BREAK -case 95: -YY_RULE_SETUP -#line 342 "cscanner.l" -{ setTokLengthT (mstring_length (yytext)); - RETURN_INT (ctype_ullint, processOctal ()); } - YY_BREAK -case 96: -YY_RULE_SETUP -#line 344 "cscanner.l" -{ setTokLengthT (mstring_length (yytext)); - RETURN_INT (ctype_ullint, processOctal ()); } - YY_BREAK -case 97: -YY_RULE_SETUP -#line 346 "cscanner.l" -{ setTokLengthT (mstring_length (yytext)); - RETURN_INT (ctype_int, processDec ()); } - YY_BREAK -case 98: -YY_RULE_SETUP -#line 348 "cscanner.l" -{ setTokLengthT (mstring_length (yytext)); - RETURN_INT (ctype_uint, processDec ()); } - YY_BREAK -case 99: -YY_RULE_SETUP -#line 350 "cscanner.l" -{ setTokLengthT (mstring_length (yytext)); - RETURN_INT (ctype_lint, processDec ()); } - YY_BREAK -case 100: -YY_RULE_SETUP -#line 352 "cscanner.l" -{ setTokLengthT (mstring_length (yytext)); - RETURN_INT (ctype_llint, processDec ()); } - YY_BREAK -case 101: -YY_RULE_SETUP -#line 354 "cscanner.l" -{ setTokLengthT (mstring_length (yytext)); - RETURN_INT (ctype_ulint, processDec ()); } - YY_BREAK -case 102: -YY_RULE_SETUP -#line 356 "cscanner.l" -{ setTokLengthT (mstring_length (yytext)); - RETURN_INT (ctype_ullint, processDec ()); } - YY_BREAK -case 103: -YY_RULE_SETUP -#line 358 "cscanner.l" -{ setTokLengthT (mstring_length (yytext)); - RETURN_INT (ctype_ullint, processDec ()); } - YY_BREAK -case 104: -YY_RULE_SETUP -#line 360 "cscanner.l" -{ setTokLengthT (mstring_length (yytext)); - RETURN_CHAR (processChar ()); } - YY_BREAK -case 105: -YY_RULE_SETUP -#line 362 "cscanner.l" -{ setTokLengthT (mstring_length (yytext)); - RETURN_FLOAT (ctype_float, processFloat ()); } - YY_BREAK -case 106: -YY_RULE_SETUP -#line 364 "cscanner.l" -{ setTokLengthT (mstring_length (yytext)); - RETURN_FLOAT (ctype_ldouble, processFloat ()); } - YY_BREAK -case 107: -YY_RULE_SETUP -#line 366 "cscanner.l" -{ setTokLengthT (mstring_length (yytext)); - RETURN_FLOAT (ctype_double, processFloat ()); } - YY_BREAK -case 108: -YY_RULE_SETUP -#line 369 "cscanner.l" -{ setTokLengthT (mstring_length (yytext)); - RETURN_FLOAT (ctype_float, processFloat ()); } - YY_BREAK -case 109: -YY_RULE_SETUP -#line 371 "cscanner.l" -{ setTokLengthT (mstring_length (yytext)); - RETURN_FLOAT (ctype_ldouble, processFloat ()); } - YY_BREAK -case 110: -YY_RULE_SETUP -#line 373 "cscanner.l" -{ setTokLengthT (mstring_length (yytext)); - RETURN_FLOAT (ctype_double, processFloat ()); } - YY_BREAK -case 111: -YY_RULE_SETUP -#line 376 "cscanner.l" -{ setTokLengthT (mstring_length (yytext)); - RETURN_FLOAT (ctype_float, processFloat ()); } - YY_BREAK -case 112: -YY_RULE_SETUP -#line 378 "cscanner.l" -{ setTokLengthT (mstring_length (yytext)); - RETURN_FLOAT (ctype_ldouble, processFloat ()); } - YY_BREAK -case 113: -YY_RULE_SETUP -#line 380 "cscanner.l" -{ setTokLengthT (mstring_length (yytext)); - RETURN_FLOAT (ctype_double, processFloat ()); } - YY_BREAK -case 114: -YY_RULE_SETUP -#line 383 "cscanner.l" -{ setTokLength (3); RETURN_TOK (RIGHT_ASSIGN); } - YY_BREAK -case 115: -YY_RULE_SETUP -#line 384 "cscanner.l" -{ setTokLength (3); RETURN_TOK (LEFT_ASSIGN); } - YY_BREAK -case 116: -YY_RULE_SETUP -#line 385 "cscanner.l" -{ setTokLength (2); RETURN_TOK (ADD_ASSIGN); } - YY_BREAK -case 117: -YY_RULE_SETUP -#line 386 "cscanner.l" -{ setTokLength (2); RETURN_TOK (SUB_ASSIGN); } - YY_BREAK -case 118: -YY_RULE_SETUP -#line 387 "cscanner.l" -{ setTokLength (2); RETURN_TOK (MUL_ASSIGN); } - YY_BREAK -case 119: -YY_RULE_SETUP -#line 388 "cscanner.l" -{ setTokLength (2); RETURN_TOK (DIV_ASSIGN); } - YY_BREAK -case 120: -YY_RULE_SETUP -#line 389 "cscanner.l" -{ setTokLength (2); RETURN_TOK (MOD_ASSIGN); } - YY_BREAK -case 121: -YY_RULE_SETUP -#line 390 "cscanner.l" -{ setTokLength (2); RETURN_TOK (AND_ASSIGN); } - YY_BREAK -case 122: -YY_RULE_SETUP -#line 391 "cscanner.l" -{ setTokLength (2); RETURN_TOK (XOR_ASSIGN); } - YY_BREAK -case 123: -YY_RULE_SETUP -#line 392 "cscanner.l" -{ setTokLength (2); RETURN_TOK (OR_ASSIGN); } - YY_BREAK -case 124: -YY_RULE_SETUP -#line 393 "cscanner.l" -{ setTokLength (2); RETURN_TOK (RIGHT_OP); } - YY_BREAK -case 125: -YY_RULE_SETUP -#line 394 "cscanner.l" -{ setTokLength (2); RETURN_TOK (LEFT_OP); } - YY_BREAK -case 126: -YY_RULE_SETUP -#line 395 "cscanner.l" -{ setTokLength (2); RETURN_TOK (INC_OP); } - YY_BREAK -case 127: -YY_RULE_SETUP -#line 396 "cscanner.l" -{ setTokLength (2); RETURN_TOK (DEC_OP); } - YY_BREAK -case 128: -YY_RULE_SETUP -#line 397 "cscanner.l" -{ setTokLength (2); RETURN_TOK (ARROW_OP); } - YY_BREAK -case 129: -YY_RULE_SETUP -#line 398 "cscanner.l" -{ setTokLength (2); RETURN_TOK (AND_OP); } - YY_BREAK -case 130: -YY_RULE_SETUP -#line 399 "cscanner.l" -{ setTokLength (2); RETURN_TOK (OR_OP); } - YY_BREAK -case 131: -YY_RULE_SETUP -#line 400 "cscanner.l" -{ setTokLength (2); RETURN_TOK (LE_OP); } - YY_BREAK -case 132: -YY_RULE_SETUP -#line 401 "cscanner.l" -{ setTokLength (2); RETURN_TOK (GE_OP); } - YY_BREAK -case 133: -YY_RULE_SETUP -#line 402 "cscanner.l" -{ setTokLength (2); RETURN_TOK (EQ_OP); } - YY_BREAK -case 134: -YY_RULE_SETUP -#line 403 "cscanner.l" -{ setTokLength (2); RETURN_TOK (NE_OP); } - YY_BREAK -case 135: -YY_RULE_SETUP -#line 404 "cscanner.l" -{ setTokLength (1); RETURN_TOK (TSEMI); } - YY_BREAK -case 136: -YY_RULE_SETUP -#line 405 "cscanner.l" -{ setTokLength (1); RETURN_TOK (TLBRACE); } - YY_BREAK -case 137: -YY_RULE_SETUP -#line 406 "cscanner.l" -{ setTokLength (1); RETURN_TOK (TRBRACE); } - YY_BREAK -case 138: -YY_RULE_SETUP -#line 407 "cscanner.l" -{ setTokLength (1); RETURN_TOK (TCOMMA); } - YY_BREAK -case 139: -YY_RULE_SETUP -#line 408 "cscanner.l" -{ setTokLength (1); RETURN_TOK (TCOLON); } - YY_BREAK -case 140: -YY_RULE_SETUP -#line 409 "cscanner.l" -{ setTokLength (1); RETURN_TOK (TASSIGN); } - YY_BREAK -case 141: -YY_RULE_SETUP -#line 410 "cscanner.l" -{ setTokLength (1); RETURN_TOK (TLPAREN); } - YY_BREAK -case 142: -YY_RULE_SETUP -#line 411 "cscanner.l" -{ setTokLength (1); RETURN_TOK (TRPAREN); } - YY_BREAK -case 143: -YY_RULE_SETUP -#line 412 "cscanner.l" -{ setTokLength (1); RETURN_TOK (TLSQBR); } - YY_BREAK -case 144: -YY_RULE_SETUP -#line 413 "cscanner.l" -{ setTokLength (1); RETURN_TOK (TRSQBR); } - YY_BREAK -case 145: -YY_RULE_SETUP -#line 414 "cscanner.l" -{ setTokLength (1); RETURN_TOK (TDOT); } - YY_BREAK -case 146: -YY_RULE_SETUP -#line 415 "cscanner.l" -{ setTokLength (1); RETURN_TOK (TAMPERSAND); } - YY_BREAK -case 147: -YY_RULE_SETUP -#line 416 "cscanner.l" -{ setTokLength (1); RETURN_TOK (TEXCL); } - YY_BREAK -case 148: -YY_RULE_SETUP -#line 419 "cscanner.l" -{ setTokLength (1); RETURN_TOK (TTILDE); } - YY_BREAK -case 149: -YY_RULE_SETUP -#line 420 "cscanner.l" -{ setTokLength (1); RETURN_TOK (TMINUS); } - YY_BREAK -case 150: -YY_RULE_SETUP -#line 421 "cscanner.l" -{ setTokLength (1); RETURN_TOK (TPLUS); } - YY_BREAK -case 151: -YY_RULE_SETUP -#line 422 "cscanner.l" -{ setTokLength (1); RETURN_TOK (TMULT); } - YY_BREAK -case 152: -YY_RULE_SETUP -#line 423 "cscanner.l" -{ setTokLength (1); RETURN_TOK (TDIV); } - YY_BREAK -case 153: -YY_RULE_SETUP -#line 424 "cscanner.l" -{ setTokLength (1); RETURN_TOK (TPERCENT); } - YY_BREAK -case 154: -YY_RULE_SETUP -#line 425 "cscanner.l" -{ setTokLength (1); RETURN_TOK (TLT); } - YY_BREAK -case 155: -YY_RULE_SETUP -#line 426 "cscanner.l" -{ setTokLength (1); RETURN_TOK (TGT); } - YY_BREAK -case 156: -YY_RULE_SETUP -#line 427 "cscanner.l" -{ setTokLength (1); RETURN_TOK (TCIRC); } - YY_BREAK -case 157: -YY_RULE_SETUP -#line 428 "cscanner.l" -{ setTokLength (1); RETURN_TOK (TBAR); } - YY_BREAK -case 158: -YY_RULE_SETUP -#line 429 "cscanner.l" -{ setTokLength (1); RETURN_TOK (TQUEST); } - YY_BREAK -case 159: -YY_RULE_SETUP -#line 432 "cscanner.l" -{ setTokLength (1); RETURN_TOK (TCAND); } - YY_BREAK -case 160: -YY_RULE_SETUP -#line 435 "cscanner.l" -{ incColumn (); } - YY_BREAK -case 161: -YY_RULE_SETUP -#line 436 "cscanner.l" -{ context_incLineno (); - if (continueLine) - { - continueLine = FALSE; - } - else - { - if (context_inMacro ()) - { - /* Don't use RETURN_TOK */ - yylval.tok = lltok_create (TENDMACRO, g_currentloc); - lastWasString = FALSE; - return (TENDMACRO); - } - } - } - YY_BREAK -case 162: -YY_RULE_SETUP -#line 452 "cscanner.l" -{ setTokLength (6); - - if (processMacro ()) { - if (context_inIterDef ()) - { - RETURN_TOK (LLMACROITER); - } - if (context_inIterEnd ()) - { - RETURN_TOK (LLMACROEND); - } - if (context_inMacro ()) - { - RETURN_TOK (LLMACRO); - } - } - } - YY_BREAK -case 163: -YY_RULE_SETUP -#line 469 "cscanner.l" -{ if (context_inHeader () || context_inFunction ()) - { - handleMacro (); - } - else - { - int nspchar = ninput (); - int nspaces; - - /* - ** This is a hack to get the column number correct. - */ - - llassert (nspchar >= '0' && nspchar <= '9'); - - nspaces = nspchar - '0'; - - setTokLength (5 + nspaces); - - if (processMacro ()) - { - if (context_inIterDef ()) - { - RETURN_TOK (LLMACROITER); - } - if (context_inIterEnd ()) - { - RETURN_TOK (LLMACROEND); - } - if (context_inMacro ()) - { - RETURN_TOK (LLMACRO); - } - } - } - } - YY_BREAK -case 164: -YY_RULE_SETUP -#line 505 "cscanner.l" -{ setTokLength (4); lldiagmsg (ctype_unparseTable ()); } - YY_BREAK -case 165: -YY_RULE_SETUP -#line 506 "cscanner.l" -{ setTokLength (3); - lldiagmsg (message ("%q: *** marker ***", fileloc_unparse (g_currentloc))); - } - YY_BREAK -case 166: -YY_RULE_SETUP -#line 509 "cscanner.l" -{ setTokLength (3); usymtab_printLocal (); } - YY_BREAK -case 167: -YY_RULE_SETUP -#line 510 "cscanner.l" -{ setTokLength (3); lldiagmsg (usymtab_unparseAliases ()); } - YY_BREAK -case 168: -YY_RULE_SETUP -#line 511 "cscanner.l" -{ setTokLength (3); lldiagmsg (context_unparse ()); } - YY_BREAK -case 169: -YY_RULE_SETUP -#line 512 "cscanner.l" -{ setTokLength (3); lldiagmsg (context_unparseClauses ()); } - YY_BREAK -case 170: -YY_RULE_SETUP -#line 513 "cscanner.l" -{ setTokLength (3); usymtab_printGuards (); } - YY_BREAK -case 171: -YY_RULE_SETUP -#line 514 "cscanner.l" -{ setTokLength (3); usymtab_printOut (); } - YY_BREAK -case 172: -YY_RULE_SETUP -#line 515 "cscanner.l" -{ setTokLength (3); usymtab_printAll (); } - YY_BREAK -case 173: -YY_RULE_SETUP -#line 516 "cscanner.l" -{ setTokLength (3); usymtab_printComplete (); } - YY_BREAK -case 174: -YY_RULE_SETUP -#line 517 "cscanner.l" -{ setTokLength (3); usymtab_printTypes (); } - YY_BREAK -case 175: -YY_RULE_SETUP -#line 518 "cscanner.l" -{ setTokLength (3); lldiagmsg (usymtab_unparseStack ()); } - YY_BREAK -case 176: -YY_RULE_SETUP -#line 519 "cscanner.l" -{ setTokLength (3); - lldiagmsg (message ("Can modify: %q", - sRefSet_unparse (context_modList ()))); - } - YY_BREAK -case 177: -YY_RULE_SETUP -#line 523 "cscanner.l" -{ /* BEFORE_COMMENT_MARKER */ - int tok; - incColumn (); incColumn (); - tok = handleLlSpecial (); - if (tok != BADTOK) - { - RETURN_TOK (tok); - } - } - YY_BREAK -case 178: -YY_RULE_SETUP -#line 532 "cscanner.l" -{ /* AFTER_COMMENT_MARKER */ - setTokLength (2); - inSpecPart = FALSE; - RETURN_TOK (QENDMACRO); } - YY_BREAK -case 179: -YY_RULE_SETUP -#line 536 "cscanner.l" -{ incColumn (); continueLine = TRUE; } - YY_BREAK -case 180: -YY_RULE_SETUP -#line 537 "cscanner.l" -{ incColumn (); - voptgenerror - (FLG_SYNTAX, - message ("Invalid character (ascii: %d), skipping character", - (int)(*yytext)), - g_currentloc); - } - YY_BREAK -case 181: -YY_RULE_SETUP -#line 544 "cscanner.l" -ECHO; - YY_BREAK -#line 2177 "lex.yy.c" -case YY_STATE_EOF(INITIAL): - yyterminate(); - - case YY_END_OF_BUFFER: - { - /* Amount of text matched not including the EOB char. */ - int yy_amount_of_matched_text = (int) (yy_cp - yytext_ptr) - 1; - - /* Undo the effects of YY_DO_BEFORE_ACTION. */ - *yy_cp = yy_hold_char; - YY_RESTORE_YY_MORE_OFFSET - - if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_NEW ) - { - /* We're scanning a new file or input source. It's - * possible that this happened because the user - * just pointed yyin at a new source and called - * yylex(). If so, then we have to assure - * consistency between yy_current_buffer and our - * globals. Here is the right place to do so, because - * this is the first action (other than possibly a - * back-up) that will match for the new input source. - */ - yy_n_chars = yy_current_buffer->yy_n_chars; - yy_current_buffer->yy_input_file = yyin; - yy_current_buffer->yy_buffer_status = YY_BUFFER_NORMAL; - } - - /* Note that here we test for yy_c_buf_p "<=" to the position - * of the first EOB in the buffer, since yy_c_buf_p will - * already have been incremented past the NUL character - * (since all states make transitions on EOB to the - * end-of-buffer state). Contrast this with the test - * in input(). - */ - if ( yy_c_buf_p <= &yy_current_buffer->yy_ch_buf[yy_n_chars] ) - { /* This was really a NUL. */ - yy_state_type yy_next_state; - - yy_c_buf_p = yytext_ptr + yy_amount_of_matched_text; - - yy_current_state = yy_get_previous_state(); - - /* Okay, we're now positioned to make the NUL - * transition. We couldn't have - * yy_get_previous_state() go ahead and do it - * for us because it doesn't know how to deal - * with the possibility of jamming (and we don't - * want to build jamming into it because then it - * will run more slowly). - */ - - yy_next_state = yy_try_NUL_trans( yy_current_state ); - - yy_bp = yytext_ptr + YY_MORE_ADJ; - - if ( yy_next_state ) - { - /* Consume the NUL. */ - yy_cp = ++yy_c_buf_p; - yy_current_state = yy_next_state; - goto yy_match; - } - - else - { - yy_cp = yy_c_buf_p; - goto yy_find_action; - } - } - - else switch ( yy_get_next_buffer() ) - { - case EOB_ACT_END_OF_FILE: - { - yy_did_buffer_switch_on_eof = 0; - - if ( yywrap() ) - { - /* Note: because we've taken care in - * yy_get_next_buffer() to have set up - * yytext, we can now set up - * yy_c_buf_p so that if some total - * hoser (like flex itself) wants to - * call the scanner after we return the - * YY_NULL, it'll still work - another - * YY_NULL will get returned. - */ - yy_c_buf_p = yytext_ptr + YY_MORE_ADJ; - - yy_act = YY_STATE_EOF(YY_START); - goto do_action; - } - - else - { - if ( ! yy_did_buffer_switch_on_eof ) - YY_NEW_FILE; - } - break; - } - - case EOB_ACT_CONTINUE_SCAN: - yy_c_buf_p = - yytext_ptr + yy_amount_of_matched_text; - - yy_current_state = yy_get_previous_state(); - - yy_cp = yy_c_buf_p; - yy_bp = yytext_ptr + YY_MORE_ADJ; - goto yy_match; - - case EOB_ACT_LAST_MATCH: - yy_c_buf_p = - &yy_current_buffer->yy_ch_buf[yy_n_chars]; - - yy_current_state = yy_get_previous_state(); - - yy_cp = yy_c_buf_p; - yy_bp = yytext_ptr + YY_MORE_ADJ; - goto yy_find_action; - } - break; - } - - default: - YY_FATAL_ERROR( - "fatal flex scanner internal error--no action found" ); - } /* end of action switch */ - } /* end of scanning one token */ - } /* end of yylex */ - - -/* yy_get_next_buffer - try to read in a new buffer - * - * Returns a code representing an action: - * EOB_ACT_LAST_MATCH - - * EOB_ACT_CONTINUE_SCAN - continue scanning from current position - * EOB_ACT_END_OF_FILE - end of file - */ - -static int yy_get_next_buffer() - { - register char *dest = yy_current_buffer->yy_ch_buf; - register char *source = yytext_ptr; - register int number_to_move, i; - int ret_val; - - if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] ) - YY_FATAL_ERROR( - "fatal flex scanner internal error--end of buffer missed" ); - - if ( yy_current_buffer->yy_fill_buffer == 0 ) - { /* Don't try to fill the buffer, so this is an EOF. */ - if ( yy_c_buf_p - yytext_ptr - YY_MORE_ADJ == 1 ) - { - /* We matched a single character, the EOB, so - * treat this as a final EOF. - */ - return EOB_ACT_END_OF_FILE; - } - - else - { - /* We matched some text prior to the EOB, first - * process it. - */ - return EOB_ACT_LAST_MATCH; - } - } - - /* Try to read more data. */ - - /* First move last chars to start of buffer. */ - number_to_move = (int) (yy_c_buf_p - yytext_ptr) - 1; - - for ( i = 0; i < number_to_move; ++i ) - *(dest++) = *(source++); - - if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_EOF_PENDING ) - /* don't do the read, it's not guaranteed to return an EOF, - * just force an EOF - */ - yy_current_buffer->yy_n_chars = yy_n_chars = 0; - - else - { - int num_to_read = - yy_current_buffer->yy_buf_size - number_to_move - 1; - - while ( num_to_read <= 0 ) - { /* Not enough room in the buffer - grow it. */ -#ifdef YY_USES_REJECT - YY_FATAL_ERROR( -"input buffer overflow, can't enlarge buffer because scanner uses REJECT" ); -#else - - /* just a shorter name for the current buffer */ - YY_BUFFER_STATE b = yy_current_buffer; - - int yy_c_buf_p_offset = - (int) (yy_c_buf_p - b->yy_ch_buf); - - if ( b->yy_is_our_buffer ) - { - int new_size = b->yy_buf_size * 2; - - if ( new_size <= 0 ) - b->yy_buf_size += b->yy_buf_size / 8; - else - b->yy_buf_size *= 2; - - b->yy_ch_buf = (char *) - /* Include room in for 2 EOB chars. */ - yy_flex_realloc( (void *) b->yy_ch_buf, - b->yy_buf_size + 2 ); - } - else - /* Can't grow it, we don't own it. */ - b->yy_ch_buf = 0; - - if ( ! b->yy_ch_buf ) - YY_FATAL_ERROR( - "fatal error - scanner input buffer overflow" ); - - yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset]; - - num_to_read = yy_current_buffer->yy_buf_size - - number_to_move - 1; -#endif - } - - if ( num_to_read > YY_READ_BUF_SIZE ) - num_to_read = YY_READ_BUF_SIZE; - - /* Read in more data. */ - YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]), - yy_n_chars, num_to_read ); - - yy_current_buffer->yy_n_chars = yy_n_chars; - } - - if ( yy_n_chars == 0 ) - { - if ( number_to_move == YY_MORE_ADJ ) - { - ret_val = EOB_ACT_END_OF_FILE; - yyrestart( yyin ); - } - - else - { - ret_val = EOB_ACT_LAST_MATCH; - yy_current_buffer->yy_buffer_status = - YY_BUFFER_EOF_PENDING; - } - } - - else - ret_val = EOB_ACT_CONTINUE_SCAN; - - yy_n_chars += number_to_move; - yy_current_buffer->yy_ch_buf[yy_n_chars] = YY_END_OF_BUFFER_CHAR; - yy_current_buffer->yy_ch_buf[yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR; - - yytext_ptr = &yy_current_buffer->yy_ch_buf[0]; - - return ret_val; - } - - -/* yy_get_previous_state - get the state just before the EOB char was reached */ - -static yy_state_type yy_get_previous_state() - { - register yy_state_type yy_current_state; - register char *yy_cp; - - yy_current_state = yy_start; - - for ( yy_cp = yytext_ptr + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp ) - { - register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1); - if ( yy_accept[yy_current_state] ) - { - yy_last_accepting_state = yy_current_state; - yy_last_accepting_cpos = yy_cp; - } - while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) - { - yy_current_state = (int) yy_def[yy_current_state]; - if ( yy_current_state >= 530 ) - yy_c = yy_meta[(unsigned int) yy_c]; - } - yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; - } - - return yy_current_state; - } - - -/* yy_try_NUL_trans - try to make a transition on the NUL character - * - * synopsis - * next_state = yy_try_NUL_trans( current_state ); - */ - -#ifdef YY_USE_PROTOS -static yy_state_type yy_try_NUL_trans( yy_state_type yy_current_state ) -#else -static yy_state_type yy_try_NUL_trans( yy_current_state ) -yy_state_type yy_current_state; -#endif - { - register int yy_is_jam; - register char *yy_cp = yy_c_buf_p; - - register YY_CHAR yy_c = 1; - if ( yy_accept[yy_current_state] ) - { - yy_last_accepting_state = yy_current_state; - yy_last_accepting_cpos = yy_cp; - } - while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) - { - yy_current_state = (int) yy_def[yy_current_state]; - if ( yy_current_state >= 530 ) - yy_c = yy_meta[(unsigned int) yy_c]; - } - yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; - yy_is_jam = (yy_current_state == 529); - - return yy_is_jam ? 0 : yy_current_state; - } - - -#ifndef YY_NO_UNPUT -#ifdef YY_USE_PROTOS -static void yyunput( int c, register char *yy_bp ) -#else -static void yyunput( c, yy_bp ) -int c; -register char *yy_bp; -#endif - { - register char *yy_cp = yy_c_buf_p; - - /* undo effects of setting up yytext */ - *yy_cp = yy_hold_char; - - if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 ) - { /* need to shift things up to make room */ - /* +2 for EOB chars. */ - register int number_to_move = yy_n_chars + 2; - register char *dest = &yy_current_buffer->yy_ch_buf[ - yy_current_buffer->yy_buf_size + 2]; - register char *source = - &yy_current_buffer->yy_ch_buf[number_to_move]; - - while ( source > yy_current_buffer->yy_ch_buf ) - *--dest = *--source; - - yy_cp += (int) (dest - source); - yy_bp += (int) (dest - source); - yy_current_buffer->yy_n_chars = - yy_n_chars = yy_current_buffer->yy_buf_size; - - if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 ) - YY_FATAL_ERROR( "flex scanner push-back overflow" ); - } - - *--yy_cp = (char) c; - - - yytext_ptr = yy_bp; - yy_hold_char = *yy_cp; - yy_c_buf_p = yy_cp; - } -#endif /* ifndef YY_NO_UNPUT */ - - -#ifdef __cplusplus -static int yyinput() -#else -static int input() -#endif - { - int c; - - *yy_c_buf_p = yy_hold_char; - - if ( *yy_c_buf_p == YY_END_OF_BUFFER_CHAR ) - { - /* yy_c_buf_p now points to the character we want to return. - * If this occurs *before* the EOB characters, then it's a - * valid NUL; if not, then we've hit the end of the buffer. - */ - if ( yy_c_buf_p < &yy_current_buffer->yy_ch_buf[yy_n_chars] ) - /* This was really a NUL. */ - *yy_c_buf_p = '\0'; - - else - { /* need more input */ - int offset = yy_c_buf_p - yytext_ptr; - ++yy_c_buf_p; - - switch ( yy_get_next_buffer() ) - { - case EOB_ACT_LAST_MATCH: - /* This happens because yy_g_n_b() - * sees that we've accumulated a - * token and flags that we need to - * try matching the token before - * proceeding. But for input(), - * there's no matching to consider. - * So convert the EOB_ACT_LAST_MATCH - * to EOB_ACT_END_OF_FILE. - */ - - /* Reset buffer status. */ - yyrestart( yyin ); - - /* fall through */ - - case EOB_ACT_END_OF_FILE: - { - if ( yywrap() ) - return EOF; - - if ( ! yy_did_buffer_switch_on_eof ) - YY_NEW_FILE; -#ifdef __cplusplus - return yyinput(); -#else - return input(); -#endif - } - - case EOB_ACT_CONTINUE_SCAN: - yy_c_buf_p = yytext_ptr + offset; - break; - } - } - } - - c = *(unsigned char *) yy_c_buf_p; /* cast for 8-bit char's */ - *yy_c_buf_p = '\0'; /* preserve yytext */ - yy_hold_char = *++yy_c_buf_p; - - - return c; - } - - -#ifdef YY_USE_PROTOS -void yyrestart( FILE *input_file ) -#else -void yyrestart( input_file ) -FILE *input_file; -#endif - { - if ( ! yy_current_buffer ) - yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); - - yy_init_buffer( yy_current_buffer, input_file ); - yy_load_buffer_state(); - } - - -#ifdef YY_USE_PROTOS -void yy_switch_to_buffer( YY_BUFFER_STATE new_buffer ) -#else -void yy_switch_to_buffer( new_buffer ) -YY_BUFFER_STATE new_buffer; -#endif - { - if ( yy_current_buffer == new_buffer ) - return; - - if ( yy_current_buffer ) - { - /* Flush out information for old buffer. */ - *yy_c_buf_p = yy_hold_char; - yy_current_buffer->yy_buf_pos = yy_c_buf_p; - yy_current_buffer->yy_n_chars = yy_n_chars; - } - - yy_current_buffer = new_buffer; - yy_load_buffer_state(); - - /* We don't actually know whether we did this switch during - * EOF (yywrap()) processing, but the only time this flag - * is looked at is after yywrap() is called, so it's safe - * to go ahead and always set it. - */ - yy_did_buffer_switch_on_eof = 1; - } - - -#ifdef YY_USE_PROTOS -void yy_load_buffer_state( void ) -#else -void yy_load_buffer_state() -#endif - { - yy_n_chars = yy_current_buffer->yy_n_chars; - yytext_ptr = yy_c_buf_p = yy_current_buffer->yy_buf_pos; - yyin = yy_current_buffer->yy_input_file; - yy_hold_char = *yy_c_buf_p; - } - - -#ifdef YY_USE_PROTOS -YY_BUFFER_STATE yy_create_buffer( FILE *file, int size ) -#else -YY_BUFFER_STATE yy_create_buffer( file, size ) -FILE *file; -int size; -#endif - { - YY_BUFFER_STATE b; - - b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) ); - if ( ! b ) - YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); - - b->yy_buf_size = size; - - /* yy_ch_buf has to be 2 characters longer than the size given because - * we need to put in 2 end-of-buffer characters. - */ - b->yy_ch_buf = (char *) yy_flex_alloc( b->yy_buf_size + 2 ); - if ( ! b->yy_ch_buf ) - YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); - - b->yy_is_our_buffer = 1; - - yy_init_buffer( b, file ); - - return b; - } - - -#ifdef YY_USE_PROTOS -void yy_delete_buffer( YY_BUFFER_STATE b ) -#else -void yy_delete_buffer( b ) -YY_BUFFER_STATE b; -#endif - { - if ( ! b ) - return; - - if ( b == yy_current_buffer ) - yy_current_buffer = (YY_BUFFER_STATE) 0; - - if ( b->yy_is_our_buffer ) - yy_flex_free( (void *) b->yy_ch_buf ); - - yy_flex_free( (void *) b ); - } - - -#ifndef YY_ALWAYS_INTERACTIVE -#ifndef YY_NEVER_INTERACTIVE -extern int isatty YY_PROTO(( int )); -#endif -#endif - -#ifdef YY_USE_PROTOS -void yy_init_buffer( YY_BUFFER_STATE b, FILE *file ) -#else -void yy_init_buffer( b, file ) -YY_BUFFER_STATE b; -FILE *file; -#endif - - - { - yy_flush_buffer( b ); - - b->yy_input_file = file; - b->yy_fill_buffer = 1; - -#if YY_ALWAYS_INTERACTIVE - b->yy_is_interactive = 1; -#else -#if YY_NEVER_INTERACTIVE - b->yy_is_interactive = 0; -#else - b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0; -#endif -#endif - } - - -#ifdef YY_USE_PROTOS -void yy_flush_buffer( YY_BUFFER_STATE b ) -#else -void yy_flush_buffer( b ) -YY_BUFFER_STATE b; -#endif - - { - if ( ! b ) - return; - - b->yy_n_chars = 0; - - /* We always need two end-of-buffer characters. The first causes - * a transition to the end-of-buffer state. The second causes - * a jam in that state. - */ - b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR; - b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR; - - b->yy_buf_pos = &b->yy_ch_buf[0]; - - b->yy_at_bol = 1; - b->yy_buffer_status = YY_BUFFER_NEW; - - if ( b == yy_current_buffer ) - yy_load_buffer_state(); - } - - -#ifndef YY_NO_SCAN_BUFFER -#ifdef YY_USE_PROTOS -YY_BUFFER_STATE yy_scan_buffer( char *base, yy_size_t size ) -#else -YY_BUFFER_STATE yy_scan_buffer( base, size ) -char *base; -yy_size_t size; -#endif - { - YY_BUFFER_STATE b; - - if ( size < 2 || - base[size-2] != YY_END_OF_BUFFER_CHAR || - base[size-1] != YY_END_OF_BUFFER_CHAR ) - /* They forgot to leave room for the EOB's. */ - return 0; - - b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) ); - if ( ! b ) - YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" ); - - b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */ - b->yy_buf_pos = b->yy_ch_buf = base; - b->yy_is_our_buffer = 0; - b->yy_input_file = 0; - b->yy_n_chars = b->yy_buf_size; - b->yy_is_interactive = 0; - b->yy_at_bol = 1; - b->yy_fill_buffer = 0; - b->yy_buffer_status = YY_BUFFER_NEW; - - yy_switch_to_buffer( b ); - - return b; - } -#endif - - -#ifndef YY_NO_SCAN_STRING -#ifdef YY_USE_PROTOS -YY_BUFFER_STATE yy_scan_string( yyconst char *yy_str ) -#else -YY_BUFFER_STATE yy_scan_string( yy_str ) -yyconst char *yy_str; -#endif - { - int len; - for ( len = 0; yy_str[len]; ++len ) - ; - - return yy_scan_bytes( yy_str, len ); - } -#endif - - -#ifndef YY_NO_SCAN_BYTES -#ifdef YY_USE_PROTOS -YY_BUFFER_STATE yy_scan_bytes( yyconst char *bytes, int len ) -#else -YY_BUFFER_STATE yy_scan_bytes( bytes, len ) -yyconst char *bytes; -int len; -#endif - { - YY_BUFFER_STATE b; - char *buf; - yy_size_t n; - int i; - - /* Get memory for full buffer, including space for trailing EOB's. */ - n = len + 2; - buf = (char *) yy_flex_alloc( n ); - if ( ! buf ) - YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" ); - - for ( i = 0; i < len; ++i ) - buf[i] = bytes[i]; - - buf[len] = buf[len+1] = YY_END_OF_BUFFER_CHAR; - - b = yy_scan_buffer( buf, n ); - if ( ! b ) - YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" ); - - /* It's okay to grow etc. this buffer, and we should throw it - * away when we're done. - */ - b->yy_is_our_buffer = 1; - - return b; - } -#endif - - -#ifndef YY_NO_PUSH_STATE -#ifdef YY_USE_PROTOS -static void yy_push_state( int new_state ) -#else -static void yy_push_state( new_state ) -int new_state; -#endif - { - if ( yy_start_stack_ptr >= yy_start_stack_depth ) - { - yy_size_t new_size; - - yy_start_stack_depth += YY_START_STACK_INCR; - new_size = yy_start_stack_depth * sizeof( int ); - - if ( ! yy_start_stack ) - yy_start_stack = (int *) yy_flex_alloc( new_size ); - - else - yy_start_stack = (int *) yy_flex_realloc( - (void *) yy_start_stack, new_size ); - - if ( ! yy_start_stack ) - YY_FATAL_ERROR( - "out of memory expanding start-condition stack" ); - } - - yy_start_stack[yy_start_stack_ptr++] = YY_START; - - BEGIN(new_state); - } -#endif - - -#ifndef YY_NO_POP_STATE -static void yy_pop_state() - { - if ( --yy_start_stack_ptr < 0 ) - YY_FATAL_ERROR( "start-condition stack underflow" ); - - BEGIN(yy_start_stack[yy_start_stack_ptr]); - } -#endif - - -#ifndef YY_NO_TOP_STATE -static int yy_top_state() - { - return yy_start_stack[yy_start_stack_ptr - 1]; - } -#endif - -#ifndef YY_EXIT_FAILURE -#define YY_EXIT_FAILURE 2 -#endif - -#ifdef YY_USE_PROTOS -static void yy_fatal_error( yyconst char msg[] ) -#else -static void yy_fatal_error( msg ) -char msg[]; -#endif - { - (void) fprintf( stderr, "%s\n", msg ); - exit( YY_EXIT_FAILURE ); - } - - - -/* Redefine yyless() so it works in section 3 code. */ - -#undef yyless -#define yyless(n) \ - do \ - { \ - /* Undo effects of setting up yytext. */ \ - yytext[yyleng] = yy_hold_char; \ - yy_c_buf_p = yytext + n; \ - yy_hold_char = *yy_c_buf_p; \ - *yy_c_buf_p = '\0'; \ - yyleng = n; \ - } \ - while ( 0 ) - - -/* Internal utility routines. */ - -#ifndef yytext_ptr -#ifdef YY_USE_PROTOS -static void yy_flex_strncpy( char *s1, yyconst char *s2, int n ) -#else -static void yy_flex_strncpy( s1, s2, n ) -char *s1; -yyconst char *s2; -int n; -#endif - { - register int i; - for ( i = 0; i < n; ++i ) - s1[i] = s2[i]; - } -#endif - -#ifdef YY_NEED_STRLEN -#ifdef YY_USE_PROTOS -static int yy_flex_strlen( yyconst char *s ) -#else -static int yy_flex_strlen( s ) -yyconst char *s; -#endif - { - register int n; - for ( n = 0; s[n]; ++n ) - ; - - return n; - } -#endif - - -#ifdef YY_USE_PROTOS -static void *yy_flex_alloc( yy_size_t size ) -#else -static void *yy_flex_alloc( size ) -yy_size_t size; -#endif - { - return (void *) malloc( size ); - } - -#ifdef YY_USE_PROTOS -static void *yy_flex_realloc( void *ptr, yy_size_t size ) -#else -static void *yy_flex_realloc( ptr, size ) -void *ptr; -yy_size_t size; -#endif - { - /* The cast to (char *) in the following accommodates both - * implementations that use char* generic pointers, and those - * that use void* generic pointers. It works with the latter - * because both ANSI C and C++ allow castless assignment from - * any pointer type to void*, and deal with argument conversions - * as though doing an assignment. - */ - return (void *) realloc( (char *) ptr, size ); - } - -#ifdef YY_USE_PROTOS -static void yy_flex_free( void *ptr ) -#else -static void yy_flex_free( ptr ) -void *ptr; -#endif - { - free( ptr ); - } - -#if YY_MAIN -int main() - { - yylex(); - return 0; - } -#endif -#line 544 "cscanner.l" - - -struct skeyword -{ - /*@null@*/ /*@observer@*/ char *name; - int token; -} ; - -/* -** These tokens are followed by syntax that is parsed by the -** grammar proper. -*/ - -struct skeyword s_parsetable[] = { - { "modifies", QMODIFIES } , - { "globals", QGLOBALS } , - { "alt", QALT } , - { "constant", QCONSTANT } , - { "function", QFUNCTION } , - { "iter", QITER } , - { "defines", QDEFINES } , - { "uses", QUSES } , - { "allocates", QALLOCATES } , - { "sets", QSETS } , - { "releases", QRELEASES } , - { "pre", QPRECLAUSE } , - { "post", QPOSTCLAUSE } , - {"setBufferSize", QSETBUFFERSIZE}, - {"requires", QBUFFERCONSTRAINT}, - {"ensures", QENSURESCONSTRAINT}, - {"setStringLength", QSETSTRINGLENGTH}, - {"testinRange", QTESTINRANGE}, - { NULL, BADTOK } -} ; - -/* -** These tokens are either stand-alone tokens, or followed by -** token-specific text. -*/ - -struct skeyword s_keytable[] = { - { "anytype", QANYTYPE } , - { "integraltype", QINTEGRALTYPE } , - { "unsignedintegraltype", QUNSIGNEDINTEGRALTYPE } , - { "signedintegraltype", QSIGNEDINTEGRALTYPE } , - { "out", QOUT } , - { "in", QIN } , - { "only", QONLY } , - { "owned", QOWNED } , - { "dependent", QDEPENDENT } , - { "partial", QPARTIAL } , - { "special", QSPECIAL } , - { "truenull", QTRUENULL } , - { "falsenull", QFALSENULL } , - { "keep", QKEEP } , - { "kept", QKEPT } , - { "notnull", QNOTNULL } , - { "abstract", QABSTRACT } , - { "concrete", QCONCRETE } , - { "mutable", QMUTABLE } , - { "immutable", QIMMUTABLE } , - { "unused", QUNUSED } , - { "external", QEXTERNAL } , - { "sef", QSEF } , - { "unique", QUNIQUE } , - { "returned", QRETURNED } , - { "exposed", QEXPOSED } , - { "refcounted", QREFCOUNTED } , - { "refs", QREFS } , - { "newref", QNEWREF } , - { "tempref", QTEMPREF } , - { "killref", QKILLREF } , - { "null", QNULL } , - { "relnull", QRELNULL } , - { "nullterminated", QNULLTERMINATED }, - { "setBufferSize", QSETBUFFERSIZE }, - { "requires", QBUFFERCONSTRAINT }, - { "ensures", QENSURESCONSTRAINT }, - { "testInRange", QTESTINRANGE}, - { "MaxSet", QMAXSET}, - { "MaxRead", QMAXREAD}, - { "reldef", QRELDEF } , - { "observer", QOBSERVER } , - { "exits", QEXITS } , - { "mayexit", QMAYEXIT } , - { "trueexit", QTRUEEXIT } , - { "falseexit", QFALSEEXIT } , - { "neverexit", QNEVEREXIT } , - { "temp", QTEMP } , - { "shared", QSHARED } , - { "ref", QREF } , - { "unchecked", QUNCHECKED } , - { "checked", QCHECKED } , - { "checkmod", QCHECKMOD } , - { "checkedstrict", QCHECKEDSTRICT } , - { "innercontinue", QINNERCONTINUE } , - { "innerbreak", QINNERBREAK } , - { "loopbreak", QLOOPBREAK } , - { "switchbreak", QSWITCHBREAK } , - { "safebreak", QSAFEBREAK } , - { "fallthrough", QFALLTHROUGH } , - { "l_fallthrou", QLINTFALLTHROUGH } , - { "l_fallth", QLINTFALLTHRU } , - { "notreached", QNOTREACHED } , - { "l_notreach", QLINTNOTREACHED } , - { "printflike", QPRINTFLIKE } , - { "l_printfli", QLINTPRINTFLIKE } , - { "scanflike", QSCANFLIKE } , - { "messagelike", QMESSAGELIKE } , - { "l_argsus", QARGSUSED } , - { NULL, BADTOK } -} ; - -/* -** would be better if these weren't hard coded... -*/ - -static bool isArtificial (cstring s) -{ - return (cstring_equalLit (s, "modifies") - || cstring_equalLit (s, "globals") - || cstring_equalLit (s, "alt")); -} - -void swallowMacro (void) -{ - int i; - bool skipnext = FALSE; - - while ((i = lminput ()) != EOF) - { - char c = (char) i; - - - if (c == '\\') - { - skipnext = TRUE; - } - else if (c == '\n') - { - if (skipnext) - { - skipnext = FALSE; - } - else - { - checkUngetc (i, yyin); - return; - } - } - } - - if (i != EOF) - { - checkUngetc (i, yyin); - } -} - -static int commentMarkerToken (cstring s) -{ - int i = 0; - - while (s_parsetable[i].name != NULL) - { - if (cstring_equalLit (s, s_parsetable[i].name)) - { - return s_parsetable[i].token; - } - - i++; - } - - return BADTOK; -} - -static int tokenMacroCode (cstring s) -{ - int i = 0; - - while (s_keytable[i].name != NULL) - { - if (cstring_equalLit (s, s_keytable[i].name)) - { - if (s_keytable[i].token == QLINTFALLTHROUGH) - { - voptgenerror - (FLG_WARNLINTCOMMENTS, - cstring_makeLiteral - ("Traditional lint comment /*FALLTHROUGH*/ used. " - "This is interpreted by " - "LCLint in the same way as most Unix lints, but it is " - "preferable to replace it with the /*@fallthrough@*/ " - "stylized comment"), - g_currentloc); - return QFALLTHROUGH; - } - else if (s_keytable[i].token == QLINTFALLTHRU) - { - voptgenerror - (FLG_WARNLINTCOMMENTS, - cstring_makeLiteral - ("Traditional lint comment /*FALLTHRU*/ used. " - "This is interpreted by " - "LCLint in the same way as most Unix lints, but it is " - "preferable to replace it with the /*@fallthrough@*/ " - "stylized comment"), - g_currentloc); - return QFALLTHROUGH; - } - else if (s_keytable[i].token == QLINTNOTREACHED) - { - voptgenerror - (FLG_WARNLINTCOMMENTS, - cstring_makeLiteral - ("Traditional lint comment /*NOTREACHED*/ used. " - "This is interpreted by " - "LCLint in the same way as most Unix lints, but it is " - "preferable to replace it with the /*@notreached@*/ " - "stylized comment."), - g_currentloc); - - return QNOTREACHED; - } - else if (s_keytable[i].token == QPRINTFLIKE) - { - setSpecialFunction (QU_PRINTFLIKE); - return SKIPTOK; - } - else if (s_keytable[i].token == QLINTPRINTFLIKE) - { - voptgenerror - (FLG_WARNLINTCOMMENTS, - cstring_makeLiteral - ("Traditional lint comment /*PRINTFLIKE*/ used. " - "This is interpreted by " - "LCLint in the same way as most Unix lints, but it is " - "preferable to replace it with either /*@printflike@*/, " - "/*@scanflike@*/ or /*@messagelike@*/."), - g_currentloc); - - setSpecialFunction (QU_PRINTFLIKE); - return SKIPTOK; - } - else if (s_keytable[i].token == QSCANFLIKE) - { - setSpecialFunction (QU_SCANFLIKE); - return SKIPTOK; - } - else if (s_keytable[i].token == QMESSAGELIKE) - { - setSpecialFunction (QU_MESSAGELIKE); - return SKIPTOK; - } - else if (s_keytable[i].token == QARGSUSED) - { - voptgenerror - (FLG_WARNLINTCOMMENTS, - cstring_makeLiteral - ("Traditional lint comment /*ARGSUSED*/ used. " - "This is interpreted by " - "LCLint in the same way as most Unix lints, but it is " - "preferable to use /*@unused@*/ annotations on " - "the unused parameters."), - g_currentloc); - - setArgsUsed (); - return SKIPTOK; - } - - return s_keytable[i].token; - } - - i++; - } - - return BADTOK; -} - -static int lminput () -{ - if (savechar == '\0') - { - incColumn (); - return (input ()); - } - else - { - int save = (int) savechar; - savechar = '\0'; - return save; - } -} - -static void lmsavechar (char c) -{ - if (savechar == '\0') savechar = c; - else - { - llbuglit ("lmsavechar: override"); - } -} - -static int returnFloat (ctype ct, double f) -{ - yylval.expr = exprNode_floatLiteral (f, ct, cstring_fromChars (yytext), - fileloc_decColumn (g_currentloc, tokLength)); - tokLength = 0; - return (CCONSTANT); -} - -static int returnInt (ctype ct, long i) -{ - ctype c = ct; - - if (ctype_equal (ct, ctype_int)) - { - if (i == 0) - { - c = context_typeofZero (); - } - else if (i == 1) - { - c = context_typeofOne (); - } - } - - yylval.expr = exprNode_numLiteral (c, cstring_fromChars (yytext), - fileloc_decColumn (g_currentloc, tokLength), i); - tokLength = 0; - return (CCONSTANT); -} - -static int returnChar (char c) -{ - yylval.expr = exprNode_charLiteral (c, cstring_fromChars (yytext), - fileloc_decColumn (g_currentloc, tokLength)); - tokLength = 0; - return (CCONSTANT); -} - -static int ninput () -{ - int c = lminput (); - - if (c != EOF && ((char)c == '\n')) - { - context_incLineno (); - } - - return c; -} - -static char macro_nextChar () -{ - static bool in_quote = FALSE, in_escape = FALSE, in_char = FALSE; - int ic; - char c; - - ic = lminput (); - c = char_fromInt (ic); - - if (!in_quote && !in_char && (c == '\\' || c == BEFORE_COMMENT_MARKER[0])) - { - if (c == '\\') - { - while ((c = char_fromInt (lminput ())) != '\0' && c != '\n') - { - ; /* skip to newline */ - } - - context_incLineno (); - - if (c != '\0') - { - return macro_nextChar (); - } - else - { - return c; - } - } - else /* if (c == '@') */ - { - if (handleLlSpecial () != BADTOK) - { - llerrorlit (FLG_SYNTAX, "Macro cannot use special syntax"); - } - - return macro_nextChar (); - } - } - else if (!in_escape && c == '\"') - { - in_quote = !in_quote; - } - else if (!in_escape && c == '\'') - { - in_char = !in_char; - } - else if ((in_quote || in_char) && c == '\\') - { - in_escape = !in_escape; - } - else if ((in_quote || in_char) && in_escape) - { - in_escape = FALSE; - } - else if (!in_quote && c == '/') - { - char c2; - - if ((c2 = char_fromInt (lminput ())) == '*') - { - while (c2 != '\0') - { - while ((c2 = char_fromInt (lminput ())) != '\0' - && c2 != '\n' && c2 != '*') - { - ; - } - - if (c2 == '*') - { - while ((c2 = char_fromInt (lminput ())) != '\0' - && c2 == '*') - { - ; - } - - if (c2 == '/') - { - goto outofcomment; - } - } - else - { - llfatalerror (cstring_makeLiteral ("Macro: bad comment!")); - } - } - outofcomment: - return macro_nextChar (); - } - else - { - /*** putchar does not work! why? puts to stdio...??! ***/ - lmsavechar (c2); - } - } - return c; -} - -/* -** keeps stylized comments -*/ - -static char macro_nextCharC () -{ - static bool in_quote = FALSE, in_escape = FALSE, in_char = FALSE; - char c; - - c = char_fromInt (lminput ()); - - if (!in_quote && !in_char && c == '\\') - { - while ((c = char_fromInt (lminput ())) != '\0' && c != '\n') - { - ; /* skip to newline */ - } - - context_incLineno (); - - if (c != '\0') - { - return macro_nextCharC (); - } - else - { - return c; - } - } - else if (!in_escape && c == '\"') - { - in_quote = !in_quote; - } - else if (!in_escape && c == '\'') - { - in_char = !in_char; - } - else if ((in_quote || in_char) && c == '\\') - { - in_escape = !in_escape; - } - else if ((in_quote || in_char) && in_escape) - { - in_escape = FALSE; - } - else if (!in_quote && c == '/') - { - char c2; - - if ((c2 = char_fromInt (lminput ())) == '*') - { - while (c2 != '\0') - { - while ((c2 = char_fromInt (lminput ())) != '\0' - && c2 != '\n' && c2 != '*') - { - ; - } - - if (c2 == '*') - { - while ((c2 = char_fromInt (lminput ())) != '\0' - && c2 == '*') - { - ; - } - - if (c2 == '/') - { - goto outofcomment; - } - } - else - { - llfatalerror (cstring_makeLiteral ("Macro: bad comment!")); - } - } - outofcomment: - return macro_nextCharC (); - } - else - { - lmsavechar (c2); - } - } - return c; -} - -/* -** skips whitespace (handles line continuations) -** returns first non-whitespace character -*/ - -static char skip_whitespace () -{ - char c; - - while ((c = macro_nextChar ()) == ' ' || c == '\t') - { - ; - } - - return c; -} - -static void handleMacro () -{ - cstring mac = cstring_undefined; - int macrocode; - char c; - - while (currentColumn () > 2) - { - mac = cstring_appendChar (mac, ' '); - setTokLength (-1); - } - - c = macro_nextCharC (); - - if (c >= '0' && c <= '9') - { - int i; - - for (i = 0; i < ((c - '0') + 1); i++) - { - mac = cstring_appendChar (mac, ' '); - } - } - else - { - BADBRANCH; - } - - while (((c = macro_nextCharC ()) != '\0') && (c != '\n')) - { - mac = cstring_appendChar (mac, c); - } - - - macrocode = tokenMacroCode (mac); - - if (macrocode == BADTOK && !isArtificial (mac)) - { - DPRINTF (("Add macro: %s", mac)); - context_addMacroCache (mac); - } - else - { - cstring_free (mac); - } - - if (c == '\n') - { - context_incLineno (); - } -} - -static bool processMacro (void) -{ - uentry e2; - ctype ct; - int noparams = 0; - cstring fname = cstring_undefined; - bool res = TRUE; - bool isspecfcn = FALSE; - bool isiter = FALSE; - bool skipparam = FALSE; - bool isenditer = FALSE; - bool unknownm = FALSE; - bool hasParams = FALSE; - bool emptyMacro = FALSE; - char c = skip_whitespace (); - fileloc loc = fileloc_noColumn (g_currentloc); - - /* are both of these necessary? what do they mean? */ - uentryList specparams = uentryList_undefined; - uentryList pn = uentryList_undefined; - - context_resetMacroMissingParams (); - - if (c == '\0' || c == '\n') - { - llcontbug (cstring_makeLiteral ("Bad macro")); - fileloc_free (loc); - return FALSE; - } - - fname = cstring_appendChar (fname, c); - - while ((c = macro_nextChar ()) != '(' && c != '\0' - && c != ' ' && c != '\t' && c != '\n') - { - fname = cstring_appendChar (fname, c); - } - - if (c == ' ' || c == '\t' || c == '\n') - { - char oldc = c; - - if (c != '\n') - { - while (c == ' ' || c == '\t') - { - c = macro_nextChar (); - } - unput (c); - } - - if (c == '\n') - { - emptyMacro = TRUE; - unput (c); - } - - c = oldc; - } - - hasParams = (c == '('); - - - if (usymtab_exists (fname)) - { - e2 = usymtab_lookupExpose (fname); - ct = uentry_getType (e2); - - - if (uentry_isCodeDefined (e2) - && fileloc_isUser (uentry_whereDefined (e2))) - { - if (optgenerror - (FLG_MACROREDEF, - message ("Macro %s already defined", fname), - loc)) - { - uentry_showWhereDefined (e2); - uentry_clearDefined (e2); - } - - if (uentry_isFunction (e2)) - { - uentry_setType (e2, ctype_unknown); - ct = ctype_unknown; - unknownm = TRUE; - context_enterUnknownMacro (e2); - } - else - { - context_enterConstantMacro (e2); - } - } - else - { - if (uentry_isForward (e2) && uentry_isFunction (e2)) - { - unknownm = TRUE; - - voptgenerror - (FLG_MACROFCNDECL, - message - ("Parameterized macro has no prototype or specification: %s ", - fname), - loc); - - ct = ctype_unknown; - uentry_setType (e2, ctype_unknown); - uentry_setFunctionDefined (e2, loc); - uentry_setUsed (e2, fileloc_undefined); - context_enterUnknownMacro (e2); - } - else - { - if (uentry_isIter (e2)) - { - isiter = TRUE; - specparams = uentry_getParams (e2); - noparams = uentryList_size (specparams); - uentry_setDefined (e2, loc); - context_enterIterDef (e2); - } - else if (uentry_isEndIter (e2)) - { - isenditer = TRUE; - uentry_setDefined (e2, loc); - context_enterIterEnd (e2); /* don't care about it now */ - /* but should parse like an iter! */ - } - else if (uentry_isConstant (e2)) - { - if (hasParams) - { - voptgenerror - (FLG_INCONDEFS, - message ("Constant %s implemented as parameterized macro", - fname), - g_currentloc); - - uentry_showWhereSpecified (e2); - uentry_setType (e2, ctype_unknown); - uentry_makeVarFunction (e2); - uentry_setDefined (e2, g_currentloc); - uentry_setFunctionDefined (e2, g_currentloc); - context_enterUnknownMacro (e2); - } - else - { - if (!uentry_isSpecified (e2)) - { - fileloc oloc = uentry_whereDeclared (e2); - - if (fileloc_isLib (oloc)) - { - ; - } - else if (fileloc_isUndefined (oloc) - || fileloc_isPreproc (oloc)) - { - if (!emptyMacro) - { - voptgenerror - (FLG_MACROCONSTDECL, - message - ("Macro constant %q not declared", - uentry_getName (e2)), - loc); - } - } - else if (!fileloc_withinLines (oloc, loc, 2)) - { /* bogus! will give errors if there is too much whitespace */ - voptgenerror - (FLG_SYNTAX, - message - ("Macro constant name %s does not match name in " - "previous constant declaration. This constant " - "is declared at %q", fname, - fileloc_unparse (oloc)), - loc); - } - } - - context_enterConstantMacro (e2); - cstring_free (fname); - fileloc_free (loc); - return res; - } - - } - else if (ctype_isFunction (ct)) - { - isspecfcn = TRUE; - specparams = ctype_argsFunction (ct); - noparams = uentryList_size (specparams); - - uentry_setFunctionDefined (e2, loc); - context_enterMacro (e2); - } - else if (uentry_isVar (e2)) - { - if (hasParams) - { - voptgenerror - (FLG_INCONDEFS, - message ("Variable %s implemented as parameterized macro", - fname), - loc); - - uentry_showWhereSpecified (e2); - uentry_setType (e2, ctype_unknown); - uentry_makeVarFunction (e2); - uentry_setDefined (e2, g_currentloc); - uentry_setFunctionDefined (e2, g_currentloc); - context_enterUnknownMacro (e2); - } - else - { - uentry ucons = uentry_makeConstant (fname, - ctype_unknown, - loc); - if (uentry_isExpandedMacro (e2)) - { - ; /* okay */ - } - else - { - if (optgenerror - (FLG_INCONDEFS, - message ("Variable %s implemented by a macro", - fname), - loc)) - { - uentry_showWhereSpecified (e2); - } - } - - uentry_setDefined (e2, loc); - uentry_setUsed (ucons, loc); - - context_enterConstantMacro (ucons); - uentry_markOwned (ucons); - cstring_free (fname); - return res; - } - } - else - { - if (uentry_isDatatype (e2)) - { - vgenhinterror - (FLG_SYNTAX, - message ("Type implemented as macro: %x", - uentry_getName (e2)), - message ("A type is implemented using a macro definition. A " - "typedef should be used instead."), - g_currentloc); - - swallowMacro (); - /* Must exit scope (not sure why a new scope was entered?) */ - usymtab_quietExitScope (g_currentloc); - uentry_setDefined (e2, g_currentloc); - res = FALSE; - } - else - { - llcontbug - (message ("Unexpanded macro not function or constant: %q", - uentry_unparse (e2))); - uentry_setType (e2, ctype_unknown); - - if (hasParams) - { - uentry_makeVarFunction (e2); - uentry_setDefined (e2, g_currentloc); - uentry_setFunctionDefined (e2, g_currentloc); - context_enterUnknownMacro (e2); - } - } - } - } - } - } - else - { - uentry ce; - - voptgenerror - (FLG_MACROMATCHNAME, - message ("Unexpanded macro %s does not match name of a constant " - "or iter declaration. The name used in the control " - "comment on the previous line should match. " - "(Assuming macro defines a constant.)", - fname), - loc); - - - ce = uentry_makeConstant (fname, ctype_unknown, fileloc_undefined); - uentry_setUsed (ce, loc); /* perhaps bogus? */ - e2 = usymtab_supEntryReturn (ce); - - context_enterConstantMacro (e2); - cstring_free (fname); - fileloc_free (loc); - return res; - } - - /* in macros, ( must follow immediatetly after name */ - - if (hasParams) - { - int paramno = 0; - - c = skip_whitespace (); - - while (c != ')' && c != '\0') - { - uentry param; - bool suppress = context_inSuppressRegion (); - cstring paramname = cstring_undefined; - - /* - ** save the parameter location - */ - - decColumn (); - context_saveLocation (); - incColumn (); - - while (c != ' ' && c != '\t' && c != ',' && c != '\0' && c != ')') - { - paramname = cstring_appendChar (paramname, c); - c = macro_nextChar (); - } - - if (c == ' ' || c == '\t') c = skip_whitespace (); - - if (c == ',') - { - c = macro_nextChar (); - if (c == ' ' || c == '\t') c = skip_whitespace (); - } - - if (c == '\0') - { - llfatalerror (cstring_makeLiteral - ("Bad macro syntax: uentryList")); - } - - if ((isspecfcn || isiter) && (paramno < noparams) - && !uentry_isElipsisMarker (uentryList_getN - (specparams, paramno))) - { - uentry decl = uentryList_getN (specparams, paramno); - sRef sr; - - param = uentry_nameCopy (paramname, decl); - - - uentry_setParam (param); - sr = sRef_makeParam (paramno, uentry_getType (param)); - - if (sRef_getNullState (sr) == NS_ABSNULL) - { - ctype pt = ctype_realType (uentry_getType (param)); - - if (ctype_isUser (pt)) - { - uentry te = usymtab_getTypeEntrySafe (ctype_typeId (pt)); - - if (uentry_isValid (te)) - { - sRef_setStateFromUentry (sr, te); - } - } - else - { - sRef_setNullState (sr, NS_UNKNOWN, g_currentloc); - } - } - - uentry_setSref (param, sr); - uentry_setDeclaredForceOnly (param, context_getSaveLocation ()); - - skipparam = isiter && uentry_isOut (uentryList_getN (specparams, paramno)); - } - else - { - fileloc sloc = context_getSaveLocation (); - - param = uentry_makeVariableSrefParam - (paramname, ctype_unknown, sRef_makeParam (paramno, ctype_unknown)); - cstring_free (paramname); - - sRef_setPosNull (uentry_getSref (param), sloc); - - uentry_setDeclaredForce (param, sloc); - - skipparam = FALSE; - fileloc_free (sloc); - } - - if (!skipparam) - { - llassert (!uentry_isElipsisMarker (param)); - - if (!suppress) - { - sRef_makeUnsafe (uentry_getSref (param)); - } - - pn = uentryList_add (pn, uentry_copy (param)); - usymtab_supEntry (param); - } - else - { - /* don't add param */ - uentry_free (param); - } - - if (c == ',') - { - (void) macro_nextChar (); - c = skip_whitespace (); - } - - paramno++; - } - - if (c == ')') - { - if (isspecfcn || isiter) - { - if (paramno != noparams && noparams >= 0) - { - advanceLine (); - - voptgenerror - (FLG_INCONDEFS, - message ("Macro %s specified with %d args, defined with %d", - fname, noparams, paramno), - g_currentloc); - - uentry_showWhereSpecified (e2); - uentry_resetParams (e2, pn); - } - } - else - { - uentry_resetParams (e2, pn); - } - } - } - else - { - /* - ** the form should be: - ** - ** # define newname oldname - ** where oldname refers to a function matching the specification - ** of newname. - */ - - if (unknownm) - { - sRef_setGlobalScope (); - usymtab_supGlobalEntry (uentry_makeVariableLoc (fname, ctype_unknown)); - sRef_clearGlobalScope (); - } - else - { - context_setMacroMissingParams (); - } - } - - - /* context_setuentryList (pn); */ - usymtab_enterScope (); - - fileloc_free (loc); - cstring_free (fname); - - return res; -} - -static bool handleSpecial (char *yyt) -{ - char *l = mstring_create (MAX_NAME_LENGTH); - static bool reportcpp = FALSE; - int lineno = 0; - char c; - char *ol; - cstring olc; - - strcpy (l, yyt + 1); - - /* Need to safe original l for deallocating. */ - ol = l; - - l += strlen (yyt) - 1; - - while ((c = char_fromInt (lminput ())) != '\n' && c != '\0') - { - *l++ = c; - } - - *l = '\0'; - olc = cstring_fromChars (ol); - - if (cstring_equalPrefix (olc, "pragma")) - { - char *pname = mstring_create (longUnsigned_fromInt (MAX_PRAGMA_LEN)); - char *opname = pname; - char *ptr = ol + 6; /* pragma is six characters, plus space */ - int len = 0; - - - /* skip whitespace */ - while (((c = *ptr) != '\0') && isspace (c)) - { - ptr++; - } - - - while (((c = *ptr) != '\0') && !isspace (c)) - { - len++; - - if (len > MAX_PRAGMA_LEN) - { - break; - } - - ptr++; - *pname++ = c; - } - - *pname = '\0'; - - if (len == PRAGMA_LEN_EXPAND - && mstring_equal (opname, PRAGMA_EXPAND)) - { - cstring exname = cstring_undefined; - uentry ue; - - ptr++; - while (((c = *ptr) != '\0') && !isspace (c)) - { - exname = cstring_appendChar (exname, c); - ptr++; - } - - - ue = usymtab_lookupExposeGlob (exname); - - if (uentry_isExpandedMacro (ue)) - { - if (fileloc_isPreproc (uentry_whereDefined (ue))) - { - fileloc_setColumn (g_currentloc, 1); - uentry_setDefined (ue, g_currentloc); - } - } - - cstring_free (exname); - } - } - else if (cstring_equalPrefix (olc, "ident")) - { - /* Some pre-processors will leave these in the code. Ignore rest of line */ - } - /* - ** Yuk...Win32 filenames can have spaces in them...we need to read - ** to the matching end quote. - */ - else if ((sscanf (ol, "line %d \"", &lineno) == 1) - || (sscanf (ol, " %d \"", &lineno) == 1)) - { - char *tmp = ol; - char *fname; - fileId fid; - - while (*tmp != '\"' && *tmp != '\0') - { - tmp++; - } - - llassert (*tmp == '\"'); - - tmp++; - fname = tmp; - - while (*tmp != '\"' && *tmp != '\0') - { - tmp++; - } - - llassert (*tmp == '\"'); - - *tmp = '\0'; - - DPRINTF (("fname: %s", fname)); - -# if defined(OS2) || defined(MSDOS) || defined(WIN32) - - /* - ** DOS-like path delimiters get delivered in pairs, something like - ** \"..\\\\file.h\", so we have to make it normal again. We do NOT - ** remove the pre dirs yet as we usually specify tmp paths relative - ** to the current directory, so tmp files would not get found in - ** the hash table. If this method fails we try it again later. - */ - - { - char *stmp = fname; - - /* - ** Skip past the drive marker. - */ - - DPRINTF (("stmp: %s / %s", stmp, fname)); - - if (strchr (stmp, ':') != NULL) - { - stmp = strchr (stmp, ':') + 1; - } - - DPRINTF (("stmp: %s / %s", stmp, fname)); - - while ((stmp = strchr (stmp, CONNECTCHAR)) != NULL ) - { - if (*(stmp+1) == CONNECTCHAR) - { - memmove (stmp, stmp+1, strlen (stmp)); - } - - stmp++; - DPRINTF (("stmp: %s / %s", stmp, fname)); - } - - DPRINTF (("Now: base = %s", fname)); - - fid = fileTable_lookupBase (context_fileTable (), - cstring_fromChars (fname)); - if (!(fileId_isValid (fid))) - { - fname = removePreDirs (fname); - fid = fileTable_lookupBase (context_fileTable (), - cstring_fromChars (fname)); - } - } -# else /* !defined(OS2) && !defined(MSDOS) */ - fname = removePreDirs (fname); - fid = fileTable_lookupBase (context_fileTable (), - cstring_fromChars (fname)); -# endif /* !defined(OS2) && !defined(MSDOS) */ - - if (!(fileId_isValid (fid))) - { - if (isHeaderFile (cstring_fromChars (fname))) - { - fid = fileTable_addHeaderFile (context_fileTable (), - cstring_fromChars (fname)); - } - else - { - fid = fileTable_addFile (context_fileTable (), - cstring_fromChars (fname)); - } - } - - setFileLine (fid, lineno); - } - else if ((sscanf (ol, "line %d", &lineno) == 1) - || (sscanf (ol, " %d", &lineno) == 1)) - { - setLine (lineno); /* next line is */ - } - else - { - if (mstring_equal (ol, "")) { - DPRINTF (("Empty pp command!")); - /* - ** evs 2000-05-16: This is a horrible kludge, to get around a bug (well, difficulty) in the pre-processor. - ** We handle a plain # in the input file, by echoing it, and ignoring it in the post-pp-file. - */ - mstring_free (ol); - return FALSE; - } else { - if (!reportcpp) - { - - } else { - llbug (message ("File contains preprocessor command: #%s", - cstring_fromChars (ol))); - reportcpp = TRUE; - } - } - - sfree (ol); - return TRUE; - } - - sfree (ol); - return FALSE; -} - -static int handleLlSpecial () -{ - int ic; - char c; - char *s = mstring_createEmpty (); - char *os; - int tok; - int charsread = 0; - - while (((ic = ninput ()) != 0) && isalpha (ic)) - { - c = (char) ic; - s = mstring_append (s, c); - charsread++; - } - - os = s; - - if (charsread == 0 && ic == (int) AFTER_COMMENT_MARKER[0]) - { - ic = ninput (); - - llassert (ic == AFTER_COMMENT_MARKER[1]); - - - if (isProcessingGlobMods () && (*s == '\0')) - { - sfree (os); - return QNOMODS; /* special token no modifications token */ - } - else - { - ; - } - } - - tok = commentMarkerToken (cstring_fromChars (os)); - - if (tok != BADTOK) - { - tokLength = charsread; - sfree (os); - inSpecPart = TRUE; - return tok; - } - - /* Add rest of the comment */ - - if (ic != 0 && ic != EOF) - { - c = (char) ic; - - - s = mstring_append (s, c); - charsread++; - - while (((ic = ninput ()) != 0) && (ic != EOF) - && (ic != AFTER_COMMENT_MARKER[0])) - { - c = (char) ic; - s = mstring_append (s, c); - charsread++; - } - } - - if (ic == AFTER_COMMENT_MARKER[0]) - { - int nc = ninput (); - llassert ((char) nc == AFTER_COMMENT_MARKER[1]); - charsread++; - } - - - os = s; - - while (*s == ' ' || *s == '\t' || *s == '\n') - { - s++; - } - - if (*s == '-' || *s == '+' || *s == '=') /* setting flags */ - { - c = *s; - - while (c == '-' || c == '+' || c == '=') - { - ynm set = ynm_fromCodeChar (c); - cstring thisflag; - - s++; - - thisflag = cstring_fromChars (s); - - while ((c = *s) != '\0' && (c != '-') && (c != '=') - && (c != '+') && (c != ' ') && (c != '\t') && (c != '\n')) - { - s++; - } - - *s = '\0'; - - if (!context_getFlag (FLG_NOCOMMENTS)) - { - cstring flagname = thisflag; - flagcode fflag = identifyFlag (flagname); - - if (flagcode_isSkip (fflag)) - { - ; - } - else if (flagcode_isInvalid (fflag)) - { - if (isMode (flagname)) - { - if (ynm_isMaybe (set)) - { - llerror - (FLG_BADFLAG, - message - ("Stylized comment attempts to restore flag %s. " - "A mode flag cannot be restored.", - flagname)); - } - else - { - context_setMode (flagname); - } - } - else - { - llerror - (FLG_BADFLAG, - message ("Unrecognized option in stylized comment: %s", - flagname)); - } - } - else if (flagcode_isGlobalFlag (fflag)) - { - llerror - (FLG_BADFLAG, - message - ("Stylized comment attempts to set global flag %s. " - "A global flag cannot be set locally.", - flagname)); - } - else - { - context_fileSetFlag (fflag, set); - - if (flagcode_hasArgument (fflag)) - { - if (ynm_isMaybe (set)) - { - llerror - (FLG_BADFLAG, - message - ("Stylized comment attempts to restore flag %s. " - "A flag for setting a value cannot be restored.", - flagname)); - } - else - { /* cut-and-pastied from llmain...blecch */ - cstring extra = cstring_undefined; - char *rest; - char *orest; - char rchar; - - *s = c; - rest = mstring_copy (s); - orest = rest; - *s = '\0'; - - while ((rchar = *rest) != '\0' - && (isspace (rchar))) - { - rest++; - s++; - } - - while ((rchar = *rest) != '\0' - && !isspace (rchar)) - { - extra = cstring_appendChar (extra, rchar); - rest++; - s++; - } - - sfree (orest); - - if (cstring_isUndefined (extra)) - { - llerror - (FLG_BADFLAG, - message - ("Flag %s (in stylized comment) must be followed by an argument", - flagcode_unparse (fflag))); - } - else - { - s--; - - if (flagcode_hasValue (fflag)) - { - setValueFlag (fflag, extra); - } - else if (flagcode_hasString (fflag)) - { - setStringFlag (fflag, extra); - } - else - { - BADEXIT; - } - } - } - } - } - } - else - { - ; - } - - *s = c; - while ((c == ' ') || (c == '\t') || (c == '\n')) - { - c = *(++s); - } - } - - if (context_inHeader () && !isArtificial (cstring_fromChars (os))) - { - context_addComment (cstring_fromCharsNew (os)); - } - else - { - ; - } - } - else - { - char *t = s; - int macrocode; - char tchar = '\0'; - - while (*s != '\0' && *s != ' ' && *s != '\t' && *s != '\n') - { - s++; - } - - if (*s != '\0') - { - tchar = *s; - *s = '\0'; - s++; - } - - t = cstring_toCharsSafe (cstring_downcase (cstring_fromChars (t))); - macrocode = tokenMacroCode (cstring_fromChars (t)); - - if (macrocode != BADTOK) - { - tokLength = mstring_length (t); - - - sfree (t); - sfree (os); - - if (macrocode == SKIPTOK) - { - return BADTOK; - } - - return macrocode; - } - - if (context_inHeader ()) - { - if (tchar != '\0') - { - *(s-1) = tchar; - } - - if ((context_inMacro () || context_inGlobalContext ()) - && macrocode != SKIPTOK - && !isArtificial (cstring_fromChars (os))) - { - context_addComment (cstring_fromCharsNew (os)); - } - else - { - ; - } - - if (tchar != '\0') - { - *(s-1) = '\0'; - } - } - - if (mstring_equal (t, "ignore")) - { - if (!context_getFlag (FLG_NOCOMMENTS)) - { - context_enterSuppressRegion (); - } - } - else if ((*t == 'i' || *t == 't') - && (*(t + 1) == '\0')) - { - if (!context_getFlag (FLG_NOCOMMENTS) - && (*t == 'i' || context_getFlag (FLG_TMPCOMMENTS))) - { - context_enterSuppressLine (-1); /* infinite suppression */ - } - } - else if (((*t == 'i') || (*t == 't')) - && ((*(t + 1) >= '0' && *(t + 1) <= '9'))) - { - bool tmpcomment = (*t == 't'); - int val = -1; - char *tt = t; /* don't mangle t, since it is free'd */ - char lc = *(++tt); - - if (lc >= '0' && lc <= '9') - { - val = (int)(lc - '0'); - - lc = *(++tt); - while (lc >= '0' && lc <= '9') - { - val *= 10; - val += lc - '0'; - lc = *(++tt); - } - } - - - if (!context_getFlag (FLG_NOCOMMENTS) - && (!tmpcomment || context_getFlag (FLG_TMPCOMMENTS))) - { - context_enterSuppressLine (val); - } - } - else if (mstring_equal (t, "end")) - { - if (!context_getFlag (FLG_NOCOMMENTS)) - { - context_exitSuppressRegion (); - } - } - else if (mstring_equal (t, "notfunction")) - { - ; /* handled by pcpp */ - } - else if (mstring_equal (t, "access")) - { - cstring tname; - - while (TRUE) - { - while ((c = *s) && (c == ' ' || c == '\t' || c == '\n')) - { - s++; - } - - if (c == '\0') - { - break; - } - - tname = cstring_fromChars (s); - - while ((c = *s) != '\0' && c != ' ' - && c != '\t' && c != '\n' && c != ',') - { - s++; - } - - *s = '\0'; - - - if (!context_getFlag (FLG_NOCOMMENTS) - && !context_getFlag (FLG_NOACCESS)) - { - if (usymtab_existsType (tname)) - { - usymId uid = usymtab_getTypeId (tname); - context_addFileAccessType (uid); - } - else - { - if (!(context_inSuppressRegion () - || context_inSuppressZone (g_currentloc))) - { - llmsg - (message - ("%q: Unrecognized type %s used in access comment", - fileloc_unparse (g_currentloc), tname)); - } - } - } - - if (c != '\0') - { - s++; - } - - if (c != ',' && c != ' ') - { - break; - } - } - } - else if (mstring_equal (t, "noaccess")) - { - cstring tname; - char lc; - - while (TRUE) - { - while ((lc = *s) && (lc == ' ' || lc == '\t' || lc == '\n')) - { - s++; - } - - if (lc == '\0') - { - break; - } - - tname = cstring_fromChars (s); - - while ((lc = *s) != '\0' && lc != ' ' && lc != '\t' - && lc != '\n' && lc != ',') - { - s++; - } - - *s = '\0'; - - if (!context_getFlag (FLG_NOCOMMENTS) - && !context_getFlag (FLG_NOACCESS)) - { - if (usymtab_existsType (tname)) - { - typeId tuid = usymtab_getTypeId (tname); - - if (context_couldHaveAccess (tuid)) - { - context_removeFileAccessType (tuid); - } - else - { - if (!(context_inSuppressRegion () - || context_inSuppressZone (g_currentloc))) - { - uentry ue = usymtab_getTypeEntry (tuid); - - if (uentry_isAbstractDatatype (ue)) - { - llmsg - (message - ("%q: Non-accessible abstract type %s used in noaccess comment", - fileloc_unparse (g_currentloc), tname)); - } - else - { - llmsg - (message - ("%q: Non-abstract type %s used in noaccess comment", - fileloc_unparse (g_currentloc), tname)); - } - } - } - } - else - { - if (!(context_inSuppressRegion () - || context_inSuppressZone (g_currentloc))) - { - llmsg - (message - ("%q: Unrecognized type %s used in noaccess comment", - fileloc_unparse (g_currentloc), tname)); - } - } - } - - if (lc != '\0') - { - s++; - } - - if (lc != ',' && lc != ' ') - { - break; - } - } - } - else - { - setTokLength (- (2 + charsread)); - - voptgenerror (FLG_UNRECOGCOMMENTS, - message ("Stylized comment unrecognized: %s", - cstring_fromChars (os)), - g_currentloc); - } - - sfree (t); - } - - sfree (os); - return BADTOK; -} - -static /*@only@*/ cstring makeIdentifier (char *s) -{ - char *c = mstring_create (size_toInt (strlen (s)) + 1); - cstring id = cstring_fromChars (c); - - while (isalnum (*s) || (*s == '_') || (*s == '$')) - { - *c++ = *s++; - } - - *c = '\0'; - return (id); -} - -/*@observer@*/ /*@dependent@*/ uentry coerceId (cstring cn) -{ - if (!(usymtab_exists (cn))) - { - fileloc loc = fileloc_createExternal (); - - /* - ** We need to put this in a global scope, otherwise the sRef will be deallocated. - */ - - uentry ce = uentry_makeUnrecognized (cn, loc); - - if (!context_inIterEnd ()) - { - voptgenerror - (FLG_SYSTEMUNRECOG, - message ("Unrecognized (possibly system) identifier: %q", - uentry_getName (ce)), - g_currentloc); - } - - return ce; - } - - return (usymtab_lookup (cn)); -} - -/* -** like, coerceId, but doesn't supercede for iters -*/ - -/*@observer@*/ uentry coerceIterId (cstring cn) -{ - if (!(usymtab_exists (cn))) - { - return uentry_undefined; - } - - return (usymtab_lookup (cn)); -} - -/*@observer@*/ cstring LastIdentifier () -{ - return (lastidprocessed); -} - -static int processIdentifier (cstring id) -{ - uentry le; - - DPRINTF (("Process identifier: %s", id)); - - context_clearJustPopped (); - lastidprocessed = id; - - if (context_inFunctionDecl ()) - { - int tok = commentMarkerToken (id); - - if (tok != BADTOK) - { - return tok; - } - else - { - tok = tokenMacroCode (id); - - if (tok != BADTOK) - { - return tok; - } - } - } - - /* Consider handling: Defined by C99 as static const char __func__[] */ - - if (context_getFlag (FLG_GNUEXTENSIONS)) - { - int tok = BADTOK; - - if (cstring_equalLit (id, "__stdcall") - || cstring_equalLit (id, "__cdecl") - || cstring_equalLit (id, "__extension__")) - { - return BADTOK; - } - else if (cstring_equalLit (id, "__volatile__")) - { - tok = QVOLATILE; - } - else if (cstring_equalLit (id, "__signed")) - { - tok = QSIGNED; - } - else if (cstring_equalLit (id, "__unsigned")) - { - tok = QUNSIGNED; - } - else if (cstring_equalLit (id, "__const__")) - { - tok = QCONST; - } - else if (cstring_equalLit (id, "__alignof__")) - { - tok = CALIGNOF; /* alignof is parsed like sizeof */ - } - else if (cstring_equalLit (id, "__FUNCTION__") - || cstring_equalLit (id, "__PRETTY_FUNCTION__")) - { - /* These tokens hold the name of the current function as strings */ - yylval.expr = exprNode_stringLiteral (id, fileloc_copy (g_currentloc)); - tokLength = 0; - lastWasString = TRUE; - tok = CCONSTANT; - return tok; - } - else if (cstring_equalLit (id, "__attribute__") - || cstring_equalLit (id, "__asm__") - || cstring_equalLit (id, "_asm") - || cstring_equalLit (id, "__asm") - || cstring_equalLit (id, "__declspec")) - { - int depth = 0; - bool useparens = FALSE; - bool usebraces = FALSE; - bool inquote = FALSE; - bool inescape = FALSE; - int ic; - - while ((ic = input ()) != EOF) - { - - if (inescape) - { - inescape = FALSE; - } - else if (ic == '\\') - { - inescape = TRUE; - } - else if (ic == '\"') - { - inquote = !inquote; - } - else if (!inquote) - { - if (ic == '(') - { - if (!useparens) - { - if (!usebraces) - { - useparens = TRUE; - } - } - - if (useparens) - { - depth++; - } - } - else if (ic == '{') - { - if (!usebraces) - { - if (!useparens) - { - usebraces = TRUE; - } - } - - if (usebraces) - { - depth++; - } - } - else if (ic == ')' && useparens) - { - depth--; - if (depth == 0) break; - } - else if (ic == '}' && usebraces) - { - depth--; - if (depth == 0) break; - } - else if (ic == '}' - && !usebraces && !useparens - && cstring_equalLit (id, "__asm")) - { - /* - ** We need this because some MS VC++ include files - ** have __asm mov ... } - ** Its a kludge, but otherwise would need to parse - ** the asm code! - */ - return TRBRACE; - } - } - - if (ic == '\n') - { - context_incLineno (); - - if (cstring_equalLit (id, "__asm") - && !useparens && !usebraces) - { - break; - } - } - } - - llassert ((useparens && ic == ')') - || (usebraces && ic == '}') - || (!useparens && !usebraces)); - - return BADTOK; - } - else if (cstring_equalLit (id, "inline") - || cstring_equalLit (id, "__inline") - || cstring_equalLit (id, "_inline") - || cstring_equalLit (id, "__inline__")) - { - tok = QINLINE; - } - - if (tok != BADTOK) - { - RETURN_TOK (tok); - } - } - - le = usymtab_lookupSafe (id); - - /*@-dependenttrans@*/ - - if (uentry_isIter (le)) - { - yylval.entry = le; - return (ITER_NAME); - } - else if (uentry_isEndIter (le)) - { - yylval.entry = le; - return (ITER_ENDNAME); - } - else if (uentry_isUndefined (le)) - { - yylval.cname = id; - - /* avoid parse errors for certain system built ins */ - - if (g_expectingTypeName && (cstring_firstChar (id) == '_') - && (cstring_secondChar (id) == '_')) - { - return (TYPE_NAME_OR_ID); - } - - return (NEW_IDENTIFIER); - } - else if (!uentry_isDeclared (le) && !uentry_isCodeDefined (le)) - { - if (uentry_isDatatype (le)) - { - yylval.cname = id; - return (NEW_IDENTIFIER); - } - else - { - yylval.entry = le; - return (IDENTIFIER); - } - } - else if (uentry_isDatatype (le)) - { - if (!g_expectingTypeName) - { - yylval.cname = id; - - return (NEW_IDENTIFIER); - } - else - { - yylval.ctyp = uentry_getAbstractType (le); - - uentry_setUsed (le, g_currentloc); - return (TYPE_NAME); - } - } - else - { - yylval.entry = le; - return (IDENTIFIER); - } - - /*@=dependenttrans@*/ -} - -static bool processHashIdentifier (/*@only@*/ cstring id) -{ - if (context_inMacro () || context_inIterDef () || - context_inIterEnd ()) - { - uentry le; - - context_clearJustPopped (); - - lastidprocessed = id; - le = usymtab_lookupSafe (id); - - if (uentry_isParam (le) || uentry_isRefParam (le)) - { - return TRUE; - } - else - { - return FALSE; - } - } - else - { - cstring_free (id); - return FALSE; - } -} - - -static /*@only@*/ exprNode processString () -{ - exprNode res; - fileloc loc; - char *nl = strchr (yytext, '\n'); - cstring ns = cstring_fromCharsNew (yytext); - - if (nl == NULL) - { - loc = fileloc_copy (g_currentloc); - addColumn (cstring_length (ns)); - } - else - { - char *lastnl = nl; - - loc = fileloc_copy (g_currentloc); - - context_incLineno (); - - while ((nl = strchr ((nl + 1), '\n')) != NULL) - { - context_incLineno (); - lastnl = nl; - } - } - - - res = exprNode_stringLiteral (ns, loc); - return (res); -} - -static -char processChar () -{ - char fchar; - char next; - - llassert (*yytext != '\0'); - fchar = *(yytext + 1); - if (fchar != '\\') return fchar; - - next = *(yytext + 2); - - switch (next) - { - case 'n': return '\n'; - case 't': return '\t'; - case '\"': return '\"'; - case '\'': return '\''; - case '\\': return '\\'; - default: return '\0'; - } -} - -static -double processFloat () -{ - double ret = atof (yytext); - - return (ret); -} - -static -long processHex () -{ - int index = 2; - long val = 0; - - llassert (yytext[0] == '0' - && (yytext[1] == 'X' || yytext[1] == 'x')); - - while (yytext[index] != '\0') { - int tval; - char c = yytext[index]; - - if (c >= '0' && c <= '9') { - tval = (int) c - (int) '0'; - } else if (c >= 'A' && c <= 'F') { - tval = (int) c - (int) 'A' + 10; - } else if (c >= 'a' && c <= 'f') { - tval = (int) c - (int) 'a' + 10; - } else if (c == 'U' || c == 'L' || c == 'u' || c == 'l') { - index++; - while (yytext[index] != '\0') { - if (c == 'U' || c == 'L' || c == 'u' || c == 'l') { - ; - } else { - voptgenerror - (FLG_SYNTAX, - message ("Invalid character (%c) following specifier in hex constant: %s", - c, cstring_fromChars (yytext)), - g_currentloc); - } - index++; - } - - break; - } else { - voptgenerror - (FLG_SYNTAX, - message ("Invalid character (%c) in hex constant: %s", - c, cstring_fromChars (yytext)), - g_currentloc); - break; - } - - val = (val * 16) + tval; - index++; - } - - DPRINTF (("Hex constant: %s = %ld", yytext, val)); - return val; -} - -static -long processOctal () -{ - int index = 1; - long val = 0; - - llassert (yytext[0] == '0' && yytext[1] != 'X' && yytext[1] != 'x'); - - while (yytext[index] != '\0') { - int tval; - char c = yytext[index]; - - if (c >= '0' && c <= '7') { - tval = (int) c - (int) '0'; - } else { - voptgenerror - (FLG_SYNTAX, - message ("Invalid character (%c) in octal constant: %s", - c, cstring_fromChars (yytext)), - g_currentloc); - break; - } - - val = (val * 8) + tval; - index++; - } - - DPRINTF (("Octal constant: %s = %ld", yytext, val)); - return val; -} - -static -long processDec () -{ - return (atol (yytext)); -} - -static int -processSpec (int tok) -{ - size_t length = strlen (yytext); - - - if (inSpecPart) - { - setTokLengthT (length); - RETURN_TOK (tok); - } - else - { - - context_saveLocation (); - setTokLengthT (length); - return (processIdentifier (makeIdentifier (yytext))); - } -} diff --git a/src/llgrammar.c b/src/llgrammar.c deleted file mode 100644 index f9c3d67..0000000 --- a/src/llgrammar.c +++ /dev/null @@ -1,3902 +0,0 @@ -/* -** Inserted at beginning of c files generated by bison -** REMEMBER: Change bison.reset too. -*/ - -/*@-allmacros@*/ -/*@+boolint@*/ -/*@+charint@*/ -/*@-macroparams@*/ -/*@-macroundef@*/ -/*@-unreachable@*/ -/*@-macrospec@*/ -/*@-varuse@*/ -/*@+ignorequals@*/ -/*@-macrostmt@*/ -/*@-noeffect@*/ -/*@-shadow@*/ -/*@-exitarg@*/ -/*@-macroredef@*/ -/*@-uniondef@*/ -/*@-compdef@*/ -/*@-matchfields@*/ -/*@-exportlocal@*/ -/*@-evalorderuncon@*/ -/*@-exportheader@*/ -/*@-typeuse@*/ -/*@-redecl@*/ -/*@-redef@*/ -/*@-noparams@*/ -/*@-ansireserved@*/ -/*@-fielduse@*/ -/*@-ifblock@*/ -/*@-elseifcomplete@*/ -/*@-whileblock@*/ -/*@-forblock@*/ -/*@-branchstate@*/ -/*@-readonlytrans@*/ -/*@-namechecks@*/ -/*@-usedef@*/ -/*@-systemunrecog@*/ -/*@-dependenttrans@*/ -/*@-unqualifiedtrans@*/ -/*@-nullassign@*/ - -/* < end of bison.head > */ - - -/* A Bison parser, made from llgrammar.y - by GNU Bison version 1.28 */ - -#define YYBISON 1 /* Identify Bison output. */ - -#define yyparse ylparse -#define yylex yllex -#define yyerror ylerror -#define yylval yllval -#define yychar ylchar -#define yydebug yldebug -#define yynerrs ylnerrs -#define simpleOp 257 -#define PREFIX_OP 258 -#define POSTFIX_OP 259 -#define LLT_MULOP 260 -#define LLT_SEMI 261 -#define LLT_VERTICALBAR 262 -#define ITERATION_OP 263 -#define LLT_LPAR 264 -#define LLT_LBRACKET 265 -#define selectSym 266 -#define LLT_IF_THEN_ELSE 267 -#define logicalOp 268 -#define eqSepSym 269 -#define equationSym 270 -#define commentSym 271 -#define LLT_WHITESPACE 272 -#define LLT_EOL 273 -#define LLT_TYPEDEF_NAME 274 -#define quantifierSym 275 -#define openSym 276 -#define closeSym 277 -#define sepSym 278 -#define simpleId 279 -#define mapSym 280 -#define markerSym 281 -#define preSym 282 -#define postSym 283 -#define anySym 284 -#define LLT_COLON 285 -#define LLT_COMMA 286 -#define LLT_EQUALS 287 -#define LLT_LBRACE 288 -#define LLT_RBRACE 289 -#define LLT_RBRACKET 290 -#define LLT_RPAR 291 -#define LLT_QUOTE 292 -#define eqOp 293 -#define LLT_CCHAR 294 -#define LLT_CFLOAT 295 -#define LLT_CINTEGER 296 -#define LLT_LCSTRING 297 -#define LLT_ALL 298 -#define LLT_ANYTHING 299 -#define LLT_BE 300 -#define LLT_BODY 301 -#define LLT_CLAIMS 302 -#define LLT_CHECKS 303 -#define LLT_CONSTANT 304 -#define LLT_ELSE 305 -#define LLT_ENSURES 306 -#define LLT_FOR 307 -#define LLT_FRESH 308 -#define LLT_IF 309 -#define LLT_IMMUTABLE 310 -#define LLT_IMPORTS 311 -#define LLT_CONSTRAINT 312 -#define LLT_ISSUB 313 -#define LLT_LET 314 -#define LLT_MODIFIES 315 -#define LLT_MUTABLE 316 -#define LLT_NOTHING 317 -#define LLT_INTERNAL 318 -#define LLT_FILESYS 319 -#define LLT_OBJ 320 -#define LLT_OUT 321 -#define LLT_SEF 322 -#define LLT_ONLY 323 -#define LLT_PARTIAL 324 -#define LLT_OWNED 325 -#define LLT_DEPENDENT 326 -#define LLT_KEEP 327 -#define LLT_KEPT 328 -#define LLT_TEMP 329 -#define LLT_SHARED 330 -#define LLT_UNIQUE 331 -#define LLT_UNUSED 332 -#define LLT_EXITS 333 -#define LLT_MAYEXIT 334 -#define LLT_NEVEREXIT 335 -#define LLT_TRUEEXIT 336 -#define LLT_FALSEEXIT 337 -#define LLT_UNDEF 338 -#define LLT_KILLED 339 -#define LLT_CHECKMOD 340 -#define LLT_CHECKED 341 -#define LLT_UNCHECKED 342 -#define LLT_CHECKEDSTRICT 343 -#define LLT_TRUENULL 344 -#define LLT_FALSENULL 345 -#define LLT_LNULL 346 -#define LLT_LNOTNULL 347 -#define LLT_RETURNED 348 -#define LLT_OBSERVER 349 -#define LLT_EXPOSED 350 -#define LLT_REFCOUNTED 351 -#define LLT_REFS 352 -#define LLT_RELNULL 353 -#define LLT_RELDEF 354 -#define LLT_KILLREF 355 -#define LLT_NULLTERMINATED 356 -#define LLT_TEMPREF 357 -#define LLT_NEWREF 358 -#define LLT_PRIVATE 359 -#define LLT_REQUIRES 360 -#define LLT_RESULT 361 -#define LLT_SIZEOF 362 -#define LLT_SPEC 363 -#define LLT_TAGGEDUNION 364 -#define LLT_THEN 365 -#define LLT_TYPE 366 -#define LLT_TYPEDEF 367 -#define LLT_UNCHANGED 368 -#define LLT_USES 369 -#define LLT_CHAR 370 -#define LLT_CONST 371 -#define LLT_DOUBLE 372 -#define LLT_ENUM 373 -#define LLT_FLOAT 374 -#define LLT_INT 375 -#define LLT_ITER 376 -#define LLT_YIELD 377 -#define LLT_LONG 378 -#define LLT_SHORT 379 -#define LLT_SIGNED 380 -#define LLT_UNKNOWN 381 -#define LLT_STRUCT 382 -#define LLT_TELIPSIS 383 -#define LLT_UNION 384 -#define LLT_UNSIGNED 385 -#define LLT_VOID 386 -#define LLT_VOLATILE 387 -#define LLT_PRINTFLIKE 388 -#define LLT_SCANFLIKE 389 -#define LLT_MESSAGELIKE 390 - -#line 36 "llgrammar.y" - - -# include "lclintMacros.nf" -# include "llbasic.h" -# include "lclscan.h" -# include "checking.h" -# include "lslparse.h" -# include "lh.h" -# include "usymtab_interface.h" - -/*@-noparams@*/ -static /*@unused@*/ void yyprint (); -/*@=noparams@*/ - -/*@-redecl@*/ -void ylerror (char *) /*@modifies *g_msgstream@*/ ; -/*@=redecl@*/ - -bool g_inTypeDef = FALSE; - -/*@constant int YYDEBUG;@*/ -# define YYDEBUG 1 - -/*@notfunction@*/ -# define YYPRINT(file, type, value) yyprint (file, type, value) - -/* -** This is necessary, or else when the bison-generated code #include's malloc.h, -** there will be a parse error. -** -** Unfortunately, it means the error checking on malloc, etc. is lost for allocations -** in bison-generated files under Win32. -*/ - -# ifdef WIN32 -# undef malloc -# undef calloc -# undef realloc -# endif - - -#line 78 "llgrammar.y" -typedef union -{ - ltoken ltok; /* a leaf is also an ltoken */ - qual typequal; - unsigned int count; - /*@only@*/ ltokenList ltokenList; - /*@only@*/ abstDeclaratorNode abstDecl; - /*@only@*/ declaratorNode declare; - /*@only@*/ declaratorNodeList declarelist; - /*@only@*/ typeExpr typeexpr; - /*@only@*/ arrayQualNode array; - /*@only@*/ quantifierNode quantifier; - /*@only@*/ quantifierNodeList quantifiers; - /*@only@*/ varNode var; - /*@only@*/ varNodeList vars; - /*@only@*/ storeRefNode storeref; - /*@only@*/ storeRefNodeList storereflist; - /*@only@*/ termNode term; - /*@only@*/ termNodeList termlist; - /*@only@*/ programNode program; - /*@only@*/ stmtNode stmt; - /*@only@*/ claimNode claim; - /*@only@*/ typeNode type; - /*@only@*/ iterNode iter; - /*@only@*/ fcnNode fcn; - /*@only@*/ fcnNodeList fcns; - /*@only@*/ letDeclNode letdecl; - /*@only@*/ letDeclNodeList letdecls; - /*@only@*/ lclPredicateNode lclpredicate; - /*@only@*/ modifyNode modify; - /*@only@*/ paramNode param; - /*@only@*/ paramNodeList paramlist; - /*@only@*/ declaratorInvNodeList declaratorinvs; - /*@only@*/ declaratorInvNode declaratorinv; - /*@only@*/ abstBodyNode abstbody; - /*@only@*/ abstractNode abstract; - /*@only@*/ exposedNode exposed; - /* taggedUnionNode taggedunion; */ - /*@only@*/ globalList globals; - /*@only@*/ constDeclarationNode constdeclaration; - /*@only@*/ varDeclarationNode vardeclaration; - /*@only@*/ varDeclarationNodeList vardeclarationlist; - /*@only@*/ initDeclNodeList initdecls; - /*@only@*/ initDeclNode initdecl; - /*@only@*/ stDeclNodeList structdecls; - /*@only@*/ stDeclNode structdecl; - /*@only@*/ strOrUnionNode structorunion; - /*@only@*/ enumSpecNode enumspec; - /*@only@*/ lclTypeSpecNode lcltypespec; - /*@only@*/ typeNameNode typname; - /*@only@*/ opFormNode opform; - /*@only@*/ sigNode signature; - /*@only@*/ nameNode name; - /*@only@*/ typeNameNodeList namelist; - /*@only@*/ replaceNode replace; - /*@only@*/ replaceNodeList replacelist; - /*@only@*/ renamingNode renaming; - /*@only@*/ traitRefNode traitref; - /*@only@*/ traitRefNodeList traitreflist; - /*@only@*/ importNode import; - /*@only@*/ importNodeList importlist; - /*@only@*/ interfaceNode iface; - /*@only@*/ interfaceNodeList interfacelist; - /*@only@*/ CTypesNode ctypes; -} YYSTYPE; -#ifndef YYDEBUG -#define YYDEBUG 1 -#endif - -#include - -#ifndef __cplusplus -#ifndef __STDC__ -#define const -#endif -#endif - - - -#define YYFINAL 684 -#define YYFLAG -32768 -#define YYNTBASE 137 - -#define YYTRANSLATE(x) ((unsigned)(x) <= 390 ? yytranslate[x] : 291) - -static const short 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, 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 -}; - -#if YYDEBUG != 0 -static const short yyprhs[] = { 0, - 0, 1, 5, 6, 9, 11, 13, 14, 17, 20, - 21, 24, 26, 28, 30, 34, 38, 40, 42, 44, - 46, 48, 50, 57, 58, 60, 62, 66, 69, 71, - 72, 76, 78, 80, 82, 84, 89, 93, 98, 103, - 105, 107, 109, 111, 113, 114, 128, 129, 144, 145, - 159, 164, 165, 166, 173, 174, 175, 183, 184, 185, - 193, 194, 195, 202, 203, 204, 211, 214, 217, 219, - 223, 225, 229, 231, 233, 237, 239, 241, 245, 247, - 252, 256, 263, 265, 269, 271, 273, 277, 279, 283, - 285, 289, 293, 297, 302, 304, 306, 308, 310, 312, - 316, 318, 322, 323, 326, 330, 333, 336, 337, 340, - 345, 346, 350, 352, 356, 362, 366, 368, 369, 373, - 374, 378, 379, 383, 387, 391, 393, 397, 399, 401, - 404, 406, 408, 409, 413, 414, 418, 419, 421, 423, - 425, 429, 431, 435, 436, 441, 447, 449, 453, 456, - 460, 464, 469, 473, 479, 486, 488, 492, 494, 496, - 499, 502, 506, 510, 514, 519, 521, 525, 530, 534, - 535, 538, 539, 541, 542, 549, 551, 555, 556, 560, - 561, 565, 567, 569, 571, 573, 575, 577, 579, 581, - 583, 585, 587, 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, 675, 681, 683, 686, 688, - 691, 692, 699, 700, 707, 710, 713, 714, 716, 718, - 721, 725, 727, 731, 732, 734, 741, 744, 746, 750, - 752, 754, 756, 760, 763, 766, 770, 775, 777, 781, - 784, 787, 791, 796, 798, 801, 804, 808, 813, 816, - 819, 822, 825, 829, 831, 832, 834, 838, 841, 843, - 845, 848, 852, 856, 861, 864, 868, 875, 877, 880, - 883, 887, 891, 896, 901, 907, 911, 916, 921, 927, - 930, 933, 937, 941, 943, 945, 947, 949, 951, 953, - 955, 956, 958, 960, 964, 966, 968, 973, 974, 976, - 978, 982, 984, 986, 993, 995, 999, 1001, 1006, 1010, - 1014, 1016, 1019, 1022, 1024, 1026, 1028, 1031, 1033, 1036, - 1039, 1043, 1045, 1047, 1050, 1053, 1057, 1059, 1062, 1066, - 1068, 1074, 1078, 1083, 1086, 1090, 1093, 1095, 1099, 1103, - 1105, 1110, 1112, 1115, 1119, 1123, 1127, 1132, 1136, 1138, - 1142, 1144, 1146, 1148, 1150, 1152, 1154, 1159, 1164, 1169, - 1174, 1181, 1186, 1188, 1190, 1192, 1194, 1196, 1199, 1200, - 1204, 1206, 1210, 1214, 1219, 1221, 1223, 1225, 1227, 1229, - 1231, 1233, 1235 -}; - -static const short yyrhs[] = { -1, - 139, 138, 141, 0, 0, 139, 140, 0, 144, 0, - 145, 0, 0, 146, 142, 0, 151, 142, 0, 0, - 142, 143, 0, 146, 0, 151, 0, 145, 0, 57, - 175, 7, 0, 115, 179, 7, 0, 154, 0, 155, - 0, 156, 0, 158, 0, 161, 0, 147, 0, 122, - 285, 10, 148, 37, 7, 0, 0, 149, 0, 150, - 0, 149, 32, 150, 0, 123, 244, 0, 244, 0, - 0, 109, 152, 153, 0, 154, 0, 155, 0, 156, - 0, 158, 0, 50, 227, 189, 7, 0, 227, 189, - 7, 0, 117, 227, 189, 7, 0, 133, 227, 189, - 7, 0, 163, 0, 172, 0, 134, 0, 135, 0, - 136, 0, 0, 227, 240, 191, 159, 34, 193, 195, - 199, 200, 201, 204, 205, 35, 0, 0, 157, 227, - 240, 191, 160, 34, 193, 195, 199, 200, 201, 204, - 205, 35, 0, 0, 48, 287, 10, 206, 37, 191, - 162, 34, 195, 200, 209, 204, 35, 0, 48, 284, - 287, 7, 0, 0, 0, 62, 164, 112, 20, 165, - 214, 0, 0, 0, 62, 166, 97, 112, 20, 167, - 214, 0, 0, 0, 97, 62, 168, 112, 20, 169, - 214, 0, 0, 0, 56, 170, 112, 20, 171, 214, - 0, 0, 0, 113, 227, 173, 219, 174, 7, 0, - 230, 7, 0, 238, 7, 0, 176, 0, 175, 32, - 176, 0, 178, 0, 3, 178, 3, 0, 43, 0, - 178, 0, 177, 32, 178, 0, 283, 0, 180, 0, - 179, 32, 180, 0, 289, 0, 289, 10, 182, 37, - 0, 10, 181, 37, 0, 10, 181, 37, 10, 182, - 37, 0, 289, 0, 181, 32, 289, 0, 184, 0, - 183, 0, 183, 32, 184, 0, 245, 0, 183, 32, - 245, 0, 185, 0, 184, 32, 185, 0, 245, 53, - 223, 0, 245, 53, 186, 0, 245, 53, 186, 256, - 0, 290, 0, 249, 0, 188, 0, 260, 0, 190, - 0, 189, 32, 190, 0, 240, 0, 240, 33, 187, - 0, 0, 191, 192, 0, 227, 189, 7, 0, 64, - 7, 0, 65, 7, 0, 0, 193, 194, 0, 105, - 227, 189, 7, 0, 0, 60, 196, 7, 0, 197, - 0, 196, 32, 197, 0, 285, 31, 198, 46, 260, - 0, 285, 46, 260, 0, 227, 0, 0, 49, 259, - 7, 0, 0, 106, 259, 7, 0, 0, 61, 63, - 7, 0, 61, 45, 7, 0, 61, 202, 7, 0, - 203, 0, 202, 32, 203, 0, 260, 0, 228, 0, - 66, 228, 0, 64, 0, 65, 0, 0, 52, 259, - 7, 0, 0, 48, 259, 7, 0, 0, 207, 0, - 208, 0, 129, 0, 208, 32, 129, 0, 244, 0, - 208, 32, 244, 0, 0, 47, 34, 210, 35, 0, - 47, 34, 210, 7, 35, 0, 211, 0, 10, 210, - 37, 0, 210, 6, 0, 210, 8, 210, 0, 210, - 7, 210, 0, 284, 10, 212, 37, 0, 284, 10, - 37, 0, 285, 33, 284, 10, 37, 0, 285, 33, - 284, 10, 212, 37, 0, 213, 0, 212, 32, 213, - 0, 277, 0, 285, 0, 3, 213, 0, 213, 3, - 0, 213, 3, 213, 0, 10, 213, 37, 0, 284, - 10, 37, 0, 284, 10, 212, 37, 0, 7, 0, - 34, 215, 35, 0, 34, 177, 35, 7, 0, 34, - 35, 7, 0, 0, 215, 158, 0, 0, 217, 0, - 0, 58, 218, 279, 10, 259, 37, 0, 220, 0, - 219, 32, 220, 0, 0, 240, 221, 222, 0, 0, - 34, 216, 35, 0, 132, 0, 116, 0, 118, 0, - 120, 0, 121, 0, 124, 0, 125, 0, 126, 0, - 131, 0, 127, 0, 223, 0, 224, 223, 0, 20, - 0, 224, 0, 67, 0, 78, 0, 68, 0, 69, - 0, 71, 0, 72, 0, 73, 0, 74, 0, 95, - 0, 79, 0, 80, 0, 82, 0, 83, 0, 81, - 0, 75, 0, 76, 0, 77, 0, 87, 0, 88, - 0, 89, 0, 90, 0, 91, 0, 99, 0, 100, - 0, 97, 0, 98, 0, 104, 0, 101, 0, 92, - 0, 93, 0, 94, 0, 96, 0, 70, 0, 102, - 0, 84, 0, 85, 0, 225, 0, 230, 0, 238, - 0, 226, 227, 0, 8, 228, 31, 228, 8, 0, - 227, 0, 227, 229, 0, 6, 0, 229, 6, 0, - 0, 128, 233, 231, 34, 234, 35, 0, 0, 130, - 233, 232, 34, 234, 35, 0, 128, 286, 0, 130, - 286, 0, 0, 286, 0, 235, 0, 234, 235, 0, - 227, 236, 7, 0, 240, 0, 236, 32, 240, 0, - 0, 32, 0, 119, 233, 34, 239, 237, 35, 0, - 119, 286, 0, 25, 0, 239, 32, 25, 0, 242, - 0, 241, 0, 285, 0, 10, 241, 37, 0, 6, - 241, 0, 241, 248, 0, 241, 10, 37, 0, 241, - 10, 207, 37, 0, 20, 0, 10, 242, 37, 0, - 6, 242, 0, 242, 248, 0, 242, 10, 37, 0, - 242, 10, 207, 37, 0, 20, 0, 6, 243, 0, - 243, 248, 0, 243, 10, 37, 0, 243, 10, 207, - 37, 0, 227, 243, 0, 227, 241, 0, 227, 246, - 0, 227, 246, 0, 66, 227, 246, 0, 249, 0, - 0, 247, 0, 10, 247, 37, 0, 6, 247, 0, - 6, 0, 248, 0, 247, 248, 0, 247, 10, 37, - 0, 10, 207, 37, 0, 247, 10, 207, 37, 0, - 11, 36, 0, 11, 188, 36, 0, 55, 27, 111, - 27, 51, 27, 0, 252, 0, 27, 252, 0, 252, - 27, 0, 27, 252, 27, 0, 250, 253, 251, 0, - 27, 250, 253, 251, 0, 250, 253, 251, 27, 0, - 27, 250, 253, 251, 27, 0, 11, 253, 36, 0, - 11, 253, 36, 27, 0, 27, 11, 253, 36, 0, - 27, 11, 253, 36, 27, 0, 12, 283, 0, 26, - 283, 0, 27, 12, 283, 0, 27, 26, 283, 0, - 22, 0, 34, 0, 23, 0, 35, 0, 264, 0, - 14, 0, 39, 0, 0, 254, 0, 27, 0, 254, - 255, 27, 0, 32, 0, 24, 0, 31, 257, 26, - 288, 0, 0, 258, 0, 288, 0, 258, 32, 288, - 0, 260, 0, 261, 0, 55, 261, 111, 261, 51, - 261, 0, 262, 0, 261, 14, 261, 0, 263, 0, - 278, 10, 259, 37, 0, 263, 39, 263, 0, 263, - 33, 263, 0, 265, 0, 268, 266, 0, 268, 267, - 0, 3, 0, 6, 0, 268, 0, 264, 265, 0, - 264, 0, 266, 264, 0, 264, 268, 0, 267, 264, - 268, 0, 273, 0, 269, 0, 269, 273, 0, 273, - 269, 0, 273, 269, 273, 0, 270, 0, 270, 273, - 0, 271, 31, 288, 0, 271, 0, 11, 272, 36, - 31, 288, 0, 11, 272, 36, 0, 11, 36, 31, - 288, 0, 11, 36, 0, 250, 272, 251, 0, 250, - 251, 0, 260, 0, 272, 255, 260, 0, 10, 261, - 37, 0, 285, 0, 290, 10, 274, 37, 0, 276, - 0, 273, 275, 0, 273, 12, 283, 0, 273, 26, - 283, 0, 273, 11, 36, 0, 273, 11, 274, 36, - 0, 273, 31, 288, 0, 261, 0, 274, 32, 261, - 0, 28, 0, 29, 0, 30, 0, 38, 0, 277, - 0, 107, 0, 54, 10, 274, 37, 0, 114, 10, - 44, 37, 0, 114, 10, 202, 37, 0, 108, 10, - 260, 37, 0, 59, 10, 260, 32, 260, 37, 0, - 108, 10, 227, 37, 0, 42, 0, 43, 0, 40, - 0, 41, 0, 279, 0, 278, 279, 0, 0, 21, - 280, 281, 0, 282, 0, 281, 32, 282, 0, 285, - 31, 198, 0, 285, 31, 66, 198, 0, 25, 0, - 20, 0, 25, 0, 25, 0, 283, 0, 283, 0, - 283, 0, 283, 0, 283, 0 -}; - -#endif - -#if YYDEBUG != 0 -static const short yyrline[] = { 0, - 383, 384, 387, 388, 391, 392, 395, 396, 397, 400, - 401, 404, 405, 406, 409, 415, 419, 421, 423, 425, - 427, 429, 433, 437, 438, 441, 443, 447, 448, 451, - 452, 455, 457, 459, 461, 465, 469, 471, 473, 477, - 478, 481, 482, 483, 486, 487, 494, 496, 507, 509, - 512, 516, 516, 517, 518, 518, 520, 521, 522, 523, - 524, 524, 525, 528, 529, 530, 531, 533, 549, 551, - 555, 556, 558, 561, 562, 565, 569, 571, 575, 577, - 579, 581, 585, 586, 589, 591, 593, 596, 598, 601, - 603, 606, 607, 608, 612, 613, 615, 617, 620, 622, - 626, 627, 630, 632, 636, 637, 638, 641, 642, 645, - 649, 650, 653, 654, 657, 658, 660, 663, 664, 667, - 668, 671, 672, 673, 674, 677, 678, 681, 682, 683, - 684, 685, 688, 689, 692, 693, 696, 697, 700, 701, - 702, 705, 706, 709, 710, 711, 714, 715, 718, 723, - 729, 737, 739, 741, 743, 747, 748, 751, 752, 753, - 754, 755, 756, 757, 759, 763, 764, 765, 766, 769, - 770, 773, 774, 777, 777, 786, 787, 791, 792, 795, - 796, 799, 800, 801, 802, 803, 804, 805, 806, 807, - 808, 816, 817, 822, 824, 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, 868, 870, 872, 874, 876, 885, 886, 891, 892, - 895, 897, 899, 901, 903, 905, 909, 910, 913, 914, - 919, 922, 924, 928, 929, 932, 934, 938, 939, 949, - 950, 953, 954, 955, 956, 957, 958, 961, 962, 963, - 964, 965, 966, 975, 976, 977, 978, 979, 985, 986, - 987, 997, 998, 999, 1004, 1005, 1008, 1009, 1010, 1011, - 1012, 1013, 1014, 1015, 1018, 1019, 1022, 1024, 1026, 1028, - 1030, 1033, 1035, 1037, 1039, 1041, 1043, 1051, 1053, 1055, - 1058, 1061, 1064, 1069, 1070, 1073, 1074, 1077, 1078, 1079, - 1082, 1083, 1086, 1087, 1090, 1091, 1094, 1097, 1098, 1101, - 1102, 1105, 1108, 1114, 1116, 1117, 1120, 1121, 1126, 1128, - 1132, 1133, 1134, 1137, 1138, 1141, 1142, 1145, 1146, 1149, - 1150, 1153, 1154, 1155, 1156, 1157, 1158, 1159, 1162, 1163, - 1166, 1169, 1171, 1175, 1179, 1180, 1183, 1184, 1187, 1189, - 1191, 1193, 1194, 1196, 1198, 1200, 1203, 1205, 1209, 1210, - 1213, 1214, 1215, 1216, 1219, 1220, 1221, 1222, 1223, 1224, - 1229, 1235, 1245, 1246, 1247, 1248, 1251, 1253, 1257, 1261, - 1264, 1265, 1268, 1269, 1272, 1273, 1276, 1277, 1278, 1279, - 1280, 1281, 1282 -}; -#endif - - -#if YYDEBUG != 0 || defined (YYERROR_VERBOSE) - -static const char * const yytname[] = { "$","error","$undefined.","simpleOp", -"PREFIX_OP","POSTFIX_OP","LLT_MULOP","LLT_SEMI","LLT_VERTICALBAR","ITERATION_OP", -"LLT_LPAR","LLT_LBRACKET","selectSym","LLT_IF_THEN_ELSE","logicalOp","eqSepSym", -"equationSym","commentSym","LLT_WHITESPACE","LLT_EOL","LLT_TYPEDEF_NAME","quantifierSym", -"openSym","closeSym","sepSym","simpleId","mapSym","markerSym","preSym","postSym", -"anySym","LLT_COLON","LLT_COMMA","LLT_EQUALS","LLT_LBRACE","LLT_RBRACE","LLT_RBRACKET", -"LLT_RPAR","LLT_QUOTE","eqOp","LLT_CCHAR","LLT_CFLOAT","LLT_CINTEGER","LLT_LCSTRING", -"LLT_ALL","LLT_ANYTHING","LLT_BE","LLT_BODY","LLT_CLAIMS","LLT_CHECKS","LLT_CONSTANT", -"LLT_ELSE","LLT_ENSURES","LLT_FOR","LLT_FRESH","LLT_IF","LLT_IMMUTABLE","LLT_IMPORTS", -"LLT_CONSTRAINT","LLT_ISSUB","LLT_LET","LLT_MODIFIES","LLT_MUTABLE","LLT_NOTHING", -"LLT_INTERNAL","LLT_FILESYS","LLT_OBJ","LLT_OUT","LLT_SEF","LLT_ONLY","LLT_PARTIAL", -"LLT_OWNED","LLT_DEPENDENT","LLT_KEEP","LLT_KEPT","LLT_TEMP","LLT_SHARED","LLT_UNIQUE", -"LLT_UNUSED","LLT_EXITS","LLT_MAYEXIT","LLT_NEVEREXIT","LLT_TRUEEXIT","LLT_FALSEEXIT", -"LLT_UNDEF","LLT_KILLED","LLT_CHECKMOD","LLT_CHECKED","LLT_UNCHECKED","LLT_CHECKEDSTRICT", -"LLT_TRUENULL","LLT_FALSENULL","LLT_LNULL","LLT_LNOTNULL","LLT_RETURNED","LLT_OBSERVER", -"LLT_EXPOSED","LLT_REFCOUNTED","LLT_REFS","LLT_RELNULL","LLT_RELDEF","LLT_KILLREF", -"LLT_NULLTERMINATED","LLT_TEMPREF","LLT_NEWREF","LLT_PRIVATE","LLT_REQUIRES", -"LLT_RESULT","LLT_SIZEOF","LLT_SPEC","LLT_TAGGEDUNION","LLT_THEN","LLT_TYPE", -"LLT_TYPEDEF","LLT_UNCHANGED","LLT_USES","LLT_CHAR","LLT_CONST","LLT_DOUBLE", -"LLT_ENUM","LLT_FLOAT","LLT_INT","LLT_ITER","LLT_YIELD","LLT_LONG","LLT_SHORT", -"LLT_SIGNED","LLT_UNKNOWN","LLT_STRUCT","LLT_TELIPSIS","LLT_UNION","LLT_UNSIGNED", -"LLT_VOID","LLT_VOLATILE","LLT_PRINTFLIKE","LLT_SCANFLIKE","LLT_MESSAGELIKE", -"interface","@1","externals","external","optDeclarations","declarations","declaration", -"imports","uses","export","iter","iterParamList","realIterParamList","iterParam", -"private","@2","private2","constDeclaration","varDeclaration","type","special", -"fcn","@3","@4","claim","@5","abstract","@6","@7","@8","@9","@10","@11","@12", -"@13","exposed","@14","@15","importNameList","importName","interfaceNameList", -"interfaceName","traitRefNodeList","traitRef","traitIdList","renaming","nameList", -"replaceNodeList","replace","name","initializer","constLclExpr","initDecls", -"initDecl","globals","globalDecl","privateInits","privateInit","optLetDecl", -"beDeclList","beDecl","sortSpec","optChecks","optRequire","optModify","storeRefList", -"storeRef","optEnsure","optClaim","optParamList","realParamList","paramList", -"optBody","callExpr","stmt","valueList","value","abstBody","fcns","optTypeInv", -"typeInv","@16","declaratorInvs","declaratorInv","@17","optExposedBody","CType", -"CTypes","typeSpecifier","specialQualifier","lclTypeSpec","lclType","pointers", -"structOrUnionSpec","@18","@19","optTagId","structDecls","structDecl","declaratorList", -"optCOMMA","enumSpec","enumeratorList","declarator","notype_decl","after_type_decl", -"parameter_decl","param","typeName","optAbstDeclarator","abstDeclarator","arrayQual", -"opForm","open","close","anyOp","middle","placeList","separator","signature", -"domain","sortList","lclPredicate","term","term0","equalityTerm","simpleOpTerm", -"simpleOp2","prefixOpTerm","postfixOps","infixOpPart","secondary","bracketed", -"sqBracketed","matched","args","primary","termList","stateFcn","lclPrimary", -"cLiteral","quantifiers","quantifier","@20","quantifiedList","quantified","simpleIdOrTypedefName", -"fcnId","varId","tagId","claimId","sortId","traitId","opId", NULL -}; -#endif - -static const short yyr1[] = { 0, - 138, 137, 139, 139, 140, 140, 141, 141, 141, 142, - 142, 143, 143, 143, 144, 145, 146, 146, 146, 146, - 146, 146, 147, 148, 148, 149, 149, 150, 150, 152, - 151, 153, 153, 153, 153, 154, 155, 155, 155, 156, - 156, 157, 157, 157, 159, 158, 160, 158, 162, 161, - 161, 164, 165, 163, 166, 167, 163, 168, 169, 163, - 170, 171, 163, 173, 174, 172, 172, 172, 175, 175, - 176, 176, 176, 177, 177, 178, 179, 179, 180, 180, - 180, 180, 181, 181, 182, 182, 182, 183, 183, 184, - 184, 185, 185, 185, 186, 186, 187, 188, 189, 189, - 190, 190, 191, 191, 192, 192, 192, 193, 193, 194, - 195, 195, 196, 196, 197, 197, 198, 199, 199, 200, - 200, 201, 201, 201, 201, 202, 202, 203, 203, 203, - 203, 203, 204, 204, 205, 205, 206, 206, 207, 207, - 207, 208, 208, 209, 209, 209, 210, 210, 210, 210, - 210, 211, 211, 211, 211, 212, 212, 213, 213, 213, - 213, 213, 213, 213, 213, 214, 214, 214, 214, 215, - 215, 216, 216, 218, 217, 219, 219, 221, 220, 222, - 222, 223, 223, 223, 223, 223, 223, 223, 223, 223, - 223, 224, 224, 225, 225, 226, 226, 226, 226, 226, - 226, 226, 226, 226, 226, 226, 226, 226, 226, 226, - 226, 226, 226, 226, 226, 226, 226, 226, 226, 226, - 226, 226, 226, 226, 226, 226, 226, 226, 226, 226, - 226, 227, 227, 227, 227, 227, 228, 228, 229, 229, - 231, 230, 232, 230, 230, 230, 233, 233, 234, 234, - 235, 236, 236, 237, 237, 238, 238, 239, 239, 240, - 240, 241, 241, 241, 241, 241, 241, 242, 242, 242, - 242, 242, 242, 243, 243, 243, 243, 243, 244, 244, - 244, 245, 245, 245, 246, 246, 247, 247, 247, 247, - 247, 247, 247, 247, 248, 248, 249, 249, 249, 249, - 249, 249, 249, 249, 249, 249, 249, 249, 249, 249, - 249, 249, 249, 250, 250, 251, 251, 252, 252, 252, - 253, 253, 254, 254, 255, 255, 256, 257, 257, 258, - 258, 259, 260, 261, 261, 261, 262, 262, 262, 262, - 263, 263, 263, 264, 264, 265, 265, 266, 266, 267, - 267, 268, 268, 268, 268, 268, 268, 268, 269, 269, - 270, 270, 270, 270, 271, 271, 272, 272, 273, 273, - 273, 273, 273, 273, 273, 273, 273, 273, 274, 274, - 275, 275, 275, 275, 276, 276, 276, 276, 276, 276, - 276, 276, 277, 277, 277, 277, 278, 278, 280, 279, - 281, 281, 282, 282, 283, 283, 284, 285, 286, 287, - 288, 289, 290 -}; - -static const short yyr2[] = { 0, - 0, 3, 0, 2, 1, 1, 0, 2, 2, 0, - 2, 1, 1, 1, 3, 3, 1, 1, 1, 1, - 1, 1, 6, 0, 1, 1, 3, 2, 1, 0, - 3, 1, 1, 1, 1, 4, 3, 4, 4, 1, - 1, 1, 1, 1, 0, 13, 0, 14, 0, 13, - 4, 0, 0, 6, 0, 0, 7, 0, 0, 7, - 0, 0, 6, 0, 0, 6, 2, 2, 1, 3, - 1, 3, 1, 1, 3, 1, 1, 3, 1, 4, - 3, 6, 1, 3, 1, 1, 3, 1, 3, 1, - 3, 3, 3, 4, 1, 1, 1, 1, 1, 3, - 1, 3, 0, 2, 3, 2, 2, 0, 2, 4, - 0, 3, 1, 3, 5, 3, 1, 0, 3, 0, - 3, 0, 3, 3, 3, 1, 3, 1, 1, 2, - 1, 1, 0, 3, 0, 3, 0, 1, 1, 1, - 3, 1, 3, 0, 4, 5, 1, 3, 2, 3, - 3, 4, 3, 5, 6, 1, 3, 1, 1, 2, - 2, 3, 3, 3, 4, 1, 3, 4, 3, 0, - 2, 0, 1, 0, 6, 1, 3, 0, 3, 0, - 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 2, 5, 1, 2, 1, 2, - 0, 6, 0, 6, 2, 2, 0, 1, 1, 2, - 3, 1, 3, 0, 1, 6, 2, 1, 3, 1, - 1, 1, 3, 2, 2, 3, 4, 1, 3, 2, - 2, 3, 4, 1, 2, 2, 3, 4, 2, 2, - 2, 2, 3, 1, 0, 1, 3, 2, 1, 1, - 2, 3, 3, 4, 2, 3, 6, 1, 2, 2, - 3, 3, 4, 4, 5, 3, 4, 4, 5, 2, - 2, 3, 3, 1, 1, 1, 1, 1, 1, 1, - 0, 1, 1, 3, 1, 1, 4, 0, 1, 1, - 3, 1, 1, 6, 1, 3, 1, 4, 3, 3, - 1, 2, 2, 1, 1, 1, 2, 1, 2, 2, - 3, 1, 1, 2, 2, 3, 1, 2, 3, 1, - 5, 3, 4, 2, 3, 2, 1, 3, 3, 1, - 4, 1, 2, 3, 3, 3, 4, 3, 1, 3, - 1, 1, 1, 1, 1, 1, 4, 4, 4, 4, - 6, 4, 1, 1, 1, 1, 1, 2, 0, 3, - 1, 3, 3, 4, 1, 1, 1, 1, 1, 1, - 1, 1, 1 -}; - -static const short yydefact[] = { 3, - 1, 0, 0, 7, 4, 5, 6, 0, 406, 405, - 73, 0, 69, 71, 76, 0, 0, 77, 412, 79, - 0, 194, 0, 0, 61, 52, 196, 198, 199, 228, - 200, 201, 202, 203, 210, 211, 212, 197, 205, 206, - 209, 207, 208, 230, 231, 213, 214, 215, 216, 217, - 224, 225, 226, 204, 227, 220, 221, 218, 219, 223, - 229, 222, 30, 0, 183, 0, 184, 247, 185, 186, - 0, 187, 188, 189, 191, 247, 247, 190, 182, 0, - 42, 43, 44, 2, 10, 22, 10, 17, 18, 19, - 0, 20, 21, 40, 41, 192, 195, 232, 0, 0, - 233, 234, 0, 15, 0, 0, 83, 16, 0, 0, - 220, 237, 0, 233, 234, 407, 410, 0, 0, 0, - 0, 0, 0, 58, 0, 64, 0, 0, 409, 257, - 408, 0, 241, 245, 243, 246, 0, 8, 9, 0, - 193, 235, 0, 0, 268, 0, 99, 103, 261, 260, - 262, 67, 68, 72, 70, 0, 81, 78, 344, 345, - 321, 0, 319, 314, 0, 0, 315, 320, 0, 0, - 0, 86, 85, 90, 285, 88, 284, 321, 298, 318, - 239, 238, 0, 0, 137, 0, 101, 0, 0, 0, - 0, 31, 32, 33, 34, 35, 0, 0, 0, 24, - 0, 0, 0, 11, 14, 12, 13, 103, 264, 270, - 0, 0, 37, 0, 0, 45, 0, 0, 265, 0, - 271, 84, 0, 323, 0, 322, 310, 311, 321, 0, - 0, 321, 299, 0, 285, 80, 0, 0, 289, 0, - 282, 286, 290, 0, 0, 300, 240, 0, 51, 140, - 0, 138, 139, 285, 142, 36, 62, 53, 0, 0, - 65, 176, 178, 38, 258, 254, 0, 0, 25, 26, - 29, 0, 0, 39, 47, 263, 269, 100, 0, 0, - 399, 408, 395, 396, 393, 394, 0, 0, 0, 386, - 0, 0, 102, 97, 0, 98, 333, 335, 337, 0, - 341, 346, 353, 357, 360, 352, 372, 385, 0, 397, - 413, 370, 0, 0, 0, 0, 104, 0, 266, 0, - 295, 0, 272, 0, 0, 306, 326, 325, 0, 0, - 312, 313, 0, 301, 0, 283, 87, 89, 91, 0, - 288, 0, 0, 0, 291, 93, 92, 96, 95, 316, - 317, 302, 236, 103, 0, 289, 0, 274, 280, 279, - 281, 0, 0, 56, 59, 0, 0, 180, 255, 0, - 28, 0, 0, 0, 0, 249, 0, 0, 0, 364, - 367, 0, 0, 0, 0, 0, 0, 0, 366, 0, - 0, 0, 0, 347, 346, 348, 342, 343, 354, 358, - 0, 0, 0, 0, 381, 382, 383, 0, 384, 355, - 373, 0, 398, 0, 106, 107, 108, 0, 267, 296, - 273, 82, 307, 324, 308, 303, 0, 293, 287, 292, - 0, 328, 94, 304, 49, 141, 143, 275, 289, 0, - 276, 166, 170, 63, 54, 0, 0, 177, 66, 172, - 179, 259, 256, 23, 27, 0, 252, 242, 250, 244, - 108, 369, 0, 362, 0, 400, 401, 0, 379, 0, - 0, 0, 194, 0, 0, 0, 131, 132, 0, 0, - 126, 129, 128, 365, 336, 340, 339, 350, 349, 0, - 411, 359, 376, 0, 374, 375, 378, 356, 0, 332, - 0, 111, 105, 309, 305, 0, 294, 0, 329, 330, - 0, 277, 0, 0, 0, 74, 0, 57, 60, 174, - 0, 173, 251, 0, 111, 363, 0, 368, 0, 0, - 0, 387, 0, 0, 392, 390, 388, 130, 0, 389, - 351, 377, 338, 371, 0, 0, 109, 118, 297, 0, - 0, 111, 278, 169, 0, 0, 167, 171, 0, 0, - 181, 253, 118, 361, 402, 0, 403, 117, 380, 0, - 0, 127, 0, 113, 0, 0, 0, 120, 327, 331, - 120, 75, 168, 103, 0, 120, 404, 334, 391, 112, - 0, 0, 0, 0, 0, 0, 122, 144, 0, 122, - 114, 0, 116, 110, 119, 0, 0, 133, 0, 133, - 0, 133, 0, 121, 0, 0, 0, 0, 135, 0, - 0, 175, 135, 115, 124, 123, 125, 0, 0, 0, - 0, 408, 0, 147, 0, 0, 50, 0, 134, 0, - 46, 0, 149, 0, 0, 145, 0, 0, 48, 136, - 0, 148, 146, 151, 150, 0, 0, 153, 0, 156, - 158, 0, 159, 407, 0, 160, 0, 0, 152, 161, - 0, 0, 163, 157, 162, 164, 0, 154, 0, 165, - 155, 0, 0, 0 -}; - -static const short yydefgoto[] = { 682, - 4, 1, 5, 84, 138, 204, 6, 205, 206, 86, - 268, 269, 270, 207, 125, 192, 88, 89, 90, 91, - 92, 316, 378, 93, 511, 94, 122, 363, 123, 446, - 191, 447, 121, 362, 95, 197, 367, 12, 13, 515, - 14, 17, 18, 106, 171, 172, 173, 174, 346, 293, - 294, 146, 147, 216, 317, 502, 547, 548, 573, 574, - 567, 578, 597, 608, 480, 481, 619, 630, 251, 342, - 253, 610, 654, 634, 659, 660, 444, 517, 521, 522, - 560, 261, 262, 368, 451, 96, 97, 98, 99, 254, - 482, 182, 114, 201, 202, 128, 375, 376, 456, 370, - 115, 266, 187, 149, 150, 360, 255, 176, 241, 242, - 243, 177, 295, 352, 179, 225, 226, 465, 433, 508, - 509, 499, 500, 297, 298, 299, 300, 301, 397, 398, - 302, 303, 304, 305, 382, 306, 470, 411, 307, 308, - 309, 310, 383, 466, 467, 311, 662, 312, 130, 119, - 492, 20, 313 -}; - -static const short yypact[] = {-32768, - -25, 136, 368, 1350,-32768,-32768,-32768, 181,-32768,-32768, --32768, 94,-32768,-32768,-32768, 181, 110,-32768,-32768, 33, - 2903,-32768, 182, 2903,-32768, 17,-32768,-32768,-32768,-32768, --32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, --32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, --32768,-32768,-32768,-32768,-32768, -11,-32768,-32768,-32768,-32768, --32768,-32768,-32768, 2903,-32768, 2903,-32768, 181,-32768,-32768, - 108,-32768,-32768,-32768,-32768, 181, 181,-32768,-32768, 2903, --32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, - 2903,-32768,-32768,-32768,-32768,-32768, 399,-32768, 2903, 408, - 155, 192, 205,-32768, 136, 204,-32768,-32768, 368, 1152, --32768, 233, 223,-32768,-32768, 266,-32768, 181, 305, 408, - 211, 235, 264,-32768, 1445,-32768, 408, 339,-32768, 347, --32768, 377,-32768, 347,-32768, 347, 408, 1247, 1247, 408, --32768,-32768, 408, 408,-32768, 196,-32768, 259, 322, 409, --32768,-32768,-32768,-32768,-32768, 181, 387,-32768,-32768,-32768, - 386, 181,-32768,-32768, 181, 534,-32768,-32768, 403, 2903, - 410, 445, 453,-32768, 360, 439,-32768, 386, 474,-32768, --32768, 496, 2903, 497, 2319, 239, 470, 486, 492, 401, - 404,-32768,-32768,-32768,-32768,-32768, 408, 282, 493, 2414, - 488, 494, 288,-32768,-32768,-32768,-32768,-32768, 322, 409, - 121, 141,-32768, 408, 3200, 1836, 1933, 3059,-32768, 2030, --32768,-32768, 1152,-32768, 499, 122,-32768,-32768, 386, 181, - 181, 386, 502, 421, 360,-32768, 1152, 1152, 360, 1741, --32768, 454,-32768, 328, 80,-32768,-32768, 525,-32768,-32768, - 504,-32768, 507, 380,-32768,-32768,-32768,-32768, 522, 524, - 515,-32768,-32768,-32768,-32768, 518, 2903, 514, 520,-32768, --32768, 2903, 2903,-32768, 1836,-32768,-32768,-32768, 3200, 3109, --32768, 266,-32768,-32768,-32768,-32768, 544, 3200, 545,-32768, - 549, 551,-32768,-32768, 3033,-32768, 550,-32768, 114, 3226, --32768, 374, 382, 382, 535, 193,-32768,-32768, 273,-32768, --32768,-32768, 555, 560, 562, 536,-32768, 408,-32768, 537, --32768, 539,-32768, 540, 541, 552,-32768,-32768, 553, 547, --32768,-32768, 80,-32768, 554,-32768, 453, 439,-32768, 439, - 454, 548, 177, 2127,-32768, 556,-32768,-32768,-32768,-32768, --32768, 557,-32768,-32768, 2509, 380, 1644,-32768, 322, 469, --32768, 47, 47,-32768,-32768, 408, 564, 538, 561, 559, --32768, 569, 2414, 408, 2611,-32768, 2713, 558, 36, 565, --32768, 293, 108, 3200, 10, 3200, 1022, 762,-32768, 220, - 3200, 3226, 3226,-32768,-32768, 268, 374, 374, 275, 275, - 181, 3150, 181, 181,-32768,-32768,-32768, 181,-32768, 382, --32768, 3200,-32768, 3200,-32768,-32768,-32768, 314,-32768,-32768, --32768,-32768,-32768,-32768, 563, 568, 566,-32768,-32768,-32768, - 573, 181,-32768,-32768, 1836,-32768,-32768, 469, 354, 2224, --32768,-32768, 165,-32768,-32768, 47, 47,-32768,-32768, 530, --32768,-32768,-32768,-32768,-32768, 317,-32768,-32768,-32768,-32768, --32768,-32768, 181, 567, 3200, 570,-32768, 572, 550, 362, - 3200, 579, 581, 575, 577, 578,-32768,-32768, 2903, 384, --32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, 268, --32768,-32768,-32768, 157,-32768,-32768,-32768, 275, 583,-32768, - 397, -8,-32768,-32768,-32768, 574,-32768, 590, 591,-32768, - 571,-32768, 587, 592, 363,-32768, 1547,-32768,-32768,-32768, - 594,-32768,-32768, 408, -8,-32768, 181,-32768, 108, 2808, - 3200,-32768, 28, 3200,-32768,-32768,-32768,-32768, 892,-32768, --32768,-32768,-32768,-32768, 108, 2903,-32768, 582,-32768, 181, - 181, 576,-32768,-32768, 181, 593,-32768,-32768, 408, 605, --32768,-32768, 582,-32768,-32768, 2903,-32768,-32768, 550, 3200, - 600,-32768, 331,-32768, 103, 408, 3200, 521,-32768,-32768, - 521,-32768,-32768,-32768, 629, 521,-32768, 550,-32768,-32768, - 108, 2903, 3200, 336, 634, 3200, 584, 597, 3200, 584, --32768, 601,-32768,-32768,-32768, 639, 632, 596, 615, 596, - 613, 596, 3200,-32768, 644, 648, 337, 3200, 608, 49, - 623,-32768, 608,-32768,-32768,-32768,-32768, 652, 3200, 625, - 49, 651, 50,-32768, 653, 631,-32768, 627,-32768, 658, --32768, 63,-32768, 272, 49,-32768, 208, 642,-32768,-32768, - 49,-32768,-32768, 660,-32768, 222, 222,-32768, 419, 666, --32768, 661,-32768,-32768, 668,-32768, 41, 222,-32768, 316, - 432, 468,-32768, 666,-32768,-32768, 426,-32768, 430,-32768, --32768, 670, 676,-32768 -}; - -static const short yypgoto[] = {-32768, --32768,-32768,-32768,-32768, 595,-32768,-32768, 678, 677,-32768, --32768,-32768, 307, 679,-32768,-32768, 610, 612, 616,-32768, - -121,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, --32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, 580,-32768, - -6,-32768, 585,-32768, 461,-32768, 451, 452,-32768,-32768, - 471, -108, 478, -188,-32768, 232,-32768, -458,-32768, 127, - -473, 175, -169, 142, 137, 206, -206, 120,-32768, -180, --32768,-32768, -507,-32768, -190, -230, -318,-32768,-32768,-32768, --32768,-32768, 381,-32768,-32768, -89,-32768,-32768,-32768, -3, - -18,-32768, 32,-32768,-32768, 407, 476, 68,-32768,-32768, - 56,-32768, -93, -127, 344, 398, -187, 257, -182, -213, - -101, 511, 30, -267, 603, -137,-32768, 586,-32768,-32768, --32768, -531, -204, -254,-32768, 105, -46, 466,-32768,-32768, - -278, 455,-32768,-32768, 472, -265, -205,-32768,-32768, -372, --32768, -303,-32768,-32768, 242, 7, -23, -38, 423, 656, - -377, 19, 531 -}; - - -#define YYLAST 3340 - - -static const short yytable[] = { 118, - 100, 103, 113, 196, 252, 413, 148, 141, 15, 19, - 296, 186, 271, 296, 15, 209, 211, 112, 198, 275, - 120, 395, 19, 391, 379, 341, 343, 389, 203, 117, - 497, 2, 132, 385, 107, 101, 320, 399, 400, 324, - 245, 391, 110, 670, 445, 595, 208, 219, 221, 391, - 124, 545, 336, 442, 510, 643, 644, 645, 631, 102, - 126, 151, 127, 180, 606, 426, 563, 611, 643, 651, - 645, 361, 462, 632, 129, 381, 137, 673, 570, 371, - 443, 151, 129, 129, 646, 526, 628, 140, 151, 3, - 381, 330, 587, 581, 333, 142, 546, 640, 151, 652, - 104, 151, 350, 263, 151, 151, 175, 219, 221, 219, - 221, 15, 633, -55, 351, 19, 108, 488, 602, 180, - 471, 100, 484, 642, 117, 105, 359, 518, 519, 469, - 217, 218, 131, 592, 100, 100, 485, 655, 8, 178, - 345, 109, 341, 343, 498, 327, 392, 469, 593, 564, - 220, 218, 393, 328, 347, 9, 101, 276, 151, 469, - 10, 152, 19, 431, 248, 435, 235, 437, 227, 101, - 101, 228, 579, 580, 222, 151, 180, 277, 11, 112, - 102, 472, 475, 483, 9, 271, 344, 218, 531, 10, - 180, 180, 542, 102, 102, 232, 494, 180, 153, 514, - 9, 9, 213, 402, 403, 10, 116, 154, 501, 418, - 656, 541, 318, 429, 164, 151, 533, 657, 404, 175, - 405, 406, 407, 408, 656, 341, 167, 214, 209, 211, - 409, 657, 632, 175, 175, 156, 331, 332, 181, 345, - 157, 345, 350, 327, 658, 256, 632, 283, 284, 285, - 286, 328, 178, 183, 351, 396, 585, 219, 441, 513, - 528, 283, 284, 285, 286, -101, 178, 178, 374, 374, - 214, 318, 263, 178, 661, -405, 569, 279, 280, 151, - 457, 631, 412, 661, 661, 402, 403, 9, 264, 164, - -101, 215, 282, 281, 274, 661, 632, 661, 661, 661, - 404, 167, 405, 406, 407, 408, 653, 283, 284, 285, - 286, 209, 409, 214, 185, 588, 327, 151, 151, 214, - 503, 287, 188, 523, 328, 657, 289, 151, 464, 571, - 159, 217, 218, 160, 483, 151, 441, 590, 161, 162, - 632, 163, 604, 627, 468, 214, 189, 9, 524, 164, - 489, 490, 10, 165, 166, 283, 284, 285, 286, 439, - 190, 167, 591, 357, 218, 239, 168, 214, 539, 240, - 218, 374, 199, 374, 290, 291, 159, 16, 131, 160, - -248, 292, 169, 474, 112, 356, 200, 9, 603, 357, - 218, 279, 10, 531, 555, 558, 223, 556, 532, 358, - 151, 9, 483, 621, 131, 623, 282, 491, 624, 495, - 496, 598, 224, 143, 491, 539, 600, 144, 220, 218, - 540, 283, 284, 285, 286, 666, 667, 145, 531, 234, - 562, 318, 131, 544, 656, 287, 516, 674, 491, 675, - 289, 657, 459, 65, 459, 67, 236, 69, 70, 15, - 668, 72, 73, 74, 75, 669, 632, 668, 78, 79, - 538, 668, 680, 344, 218, 584, 681, 594, 676, 491, - 656, 283, 284, 285, 286, 112, 237, 657, 440, 218, - 677, 679, 133, 135, 238, 151, 210, 212, 290, 291, - 468, 244, 632, 338, 340, 292, 486, 487, 134, 136, - 246, 247, 215, 249, 678, 257, 575, 283, 284, 285, - 286, 258, 259, 559, 65, 260, 67, 265, 69, 70, - 151, 272, 72, 73, 74, 75, 568, 273, 334, 78, - 79, 335, 353, 491, 326, 112, 159, 151, 355, 160, - 354, 364, 576, 365, 229, 230, 366, 163, 582, 369, - 372, 373, 575, 384, 386, 164, 491, 491, 387, 231, - 388, 15, 568, 391, 414, 401, 415, 167, 416, 417, - 449, 450, 168, 419, 420, 454, 421, 422, 423, 424, - 427, 636, 425, 434, 428, 452, 432, 520, 568, 504, - -406, 461, 636, 453, 505, 463, 635, 527, 554, 583, - 549, 529, 530, 112, 552, 636, 636, 635, 663, 507, - 534, 535, 636, 536, 537, 550, 506, 663, 663, 543, - 635, 635, 551, 553, 665, 281, 596, 635, 561, 663, - 577, 663, 663, 663, 159, 545, 589, 160, 599, 21, - 605, 279, 280, 609, 607, 614, 613, 618, 620, 622, - 625, 473, 281, 164, 626, 629, 282, 637, 639, 641, - -407, 649, 647, 648, 650, 167, 664, 645, 670, 683, - 671, 283, 284, 285, 286, 684, 615, 672, 7, 455, - 85, 139, 87, 325, 155, 287, 288, 337, 322, 339, - 289, 278, 525, 158, 616, 477, 478, 479, 27, 28, - 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, - 39, 40, 41, 42, 43, 44, 45, 601, 46, 47, - 48, 49, 50, 51, 52, 53, 54, 55, 111, 57, - 58, 59, 60, 61, 193, 62, 194, 586, 290, 291, - 195, 612, 638, 617, 572, 292, 448, 65, 377, 67, - 68, 69, 70, 438, 348, 72, 73, 74, 75, 76, - 410, 77, 78, 79, 159, 394, 390, 160, 233, 21, - 565, 279, 280, 184, 349, 0, 0, 0, 0, 0, - 0, 473, 281, 164, 0, 0, 282, 0, 0, 0, - 0, 0, 0, 0, 0, 167, 0, 0, 0, 0, - 0, 283, 284, 285, 286, 476, 0, 0, 0, 0, - 0, 329, 0, 0, 0, 287, 288, 0, 0, 0, - 289, 0, 0, 0, 0, 477, 478, 479, 27, 28, - 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, - 39, 40, 41, 42, 43, 44, 45, 0, 46, 47, - 48, 49, 50, 51, 52, 53, 54, 55, 111, 57, - 58, 59, 60, 61, 0, 62, 0, 0, 290, 291, - 0, 0, 0, 0, 0, 292, 0, 65, 0, 67, - 68, 69, 70, 0, 0, 72, 73, 74, 75, 76, - 0, 77, 78, 79, 159, 0, 0, 160, 0, 21, - 0, 279, 280, 0, 0, 0, 0, 0, 0, 0, - 0, 473, 281, 164, 0, 0, 282, 0, 0, 0, - 0, 0, 0, 0, 0, 167, 0, 0, 0, 0, - 0, 283, 284, 285, 286, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 287, 288, 0, 0, 0, - 289, 0, 0, 0, 0, 477, 478, 479, 27, 28, - 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, - 39, 40, 41, 42, 43, 44, 45, 0, 46, 47, - 48, 49, 50, 51, 52, 53, 54, 55, 111, 57, - 58, 59, 60, 61, 0, 62, 0, 0, 290, 291, - 0, 0, 0, 0, 0, 292, 0, 65, 0, 67, - 68, 69, 70, 0, 0, 72, 73, 74, 75, 76, - 0, 77, 78, 79, 159, 0, 0, 160, 0, 21, - 0, 279, 280, 0, 0, 0, 0, 0, 0, 0, - 0, 473, 281, 164, 0, 0, 282, 0, 0, 0, - 0, 0, 0, 0, 0, 167, 0, 0, 0, 0, - 0, 283, 284, 285, 286, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 287, 288, 0, 0, 0, - 289, 0, 0, 0, 0, 0, 0, 0, 27, 28, - 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, - 39, 40, 41, 42, 43, 44, 45, 0, 46, 47, - 48, 49, 50, 51, 52, 53, 54, 55, 111, 57, - 58, 59, 60, 61, 0, 62, 0, 0, 290, 291, - 0, 0, 0, 0, 0, 292, 0, 65, 0, 67, - 68, 69, 70, 0, 0, 72, 73, 74, 75, 76, - 0, 77, 78, 79, 159, 0, 0, 160, 0, 21, - 0, 0, 161, 162, 0, 163, 0, 0, 0, 0, - 0, 22, 0, 164, 0, 0, 0, 165, 166, 0, - 0, 0, 0, 0, 0, 167, 0, 0, 0, 0, - 168, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 169, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 170, 27, 28, - 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, - 39, 40, 41, 42, 43, 44, 45, 0, 46, 47, - 48, 49, 50, 51, 52, 53, 54, 55, 111, 57, - 58, 59, 60, 61, 21, 62, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 22, 65, 0, 67, - 68, 69, 70, 0, 0, 72, 73, 74, 75, 76, - 0, 77, 78, 79, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 23, 0, 24, 0, 0, 0, - 0, 0, 25, 0, 0, 0, 0, 0, 26, 0, - 0, 0, 0, 27, 28, 29, 30, 31, 32, 33, - 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, - 44, 45, 0, 46, 47, 48, 49, 50, 51, 52, - 53, 54, 55, 56, 57, 58, 59, 60, 61, 0, - 62, 0, 0, 0, 0, 63, 0, 21, 0, 64, - 0, 3, 65, 66, 67, 68, 69, 70, 71, 22, - 72, 73, 74, 75, 76, 0, 77, 78, 79, 80, - 81, 82, 83, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 23, 0, 24, - 0, 0, 0, 0, 0, 25, 0, 0, 0, 0, - 0, 26, 0, 0, 0, 0, 27, 28, 29, 30, - 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, - 41, 42, 43, 44, 45, 0, 46, 47, 48, 49, - 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, - 60, 61, 21, 62, 0, 0, 0, 0, 63, 0, - 0, 0, 64, 0, 22, 65, 66, 67, 68, 69, - 70, 71, 0, 72, 73, 74, 75, 76, 0, 77, - 78, 79, 80, 81, 82, 83, 0, 0, 0, 0, - 0, 0, 0, 0, 24, 0, 0, 0, 0, 0, - 25, 0, 0, 0, 0, 0, 26, 0, 0, 0, - 0, 27, 28, 29, 30, 31, 32, 33, 34, 35, - 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, - 0, 46, 47, 48, 49, 50, 51, 52, 53, 54, - 55, 56, 57, 58, 59, 60, 61, 0, 62, 0, - 0, 0, 0, 0, 21, 0, 0, 64, 0, 0, - 65, 66, 67, 68, 69, 70, 22, 0, 72, 73, - 74, 75, 76, 0, 77, 78, 79, 80, 81, 82, - 83, 557, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 27, 28, 29, 30, 31, 32, 33, - 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, - 44, 45, 0, 46, 47, 48, 49, 50, 51, 52, - 53, 54, 55, 111, 57, 58, 59, 60, 61, 439, - 62, 21, 0, 357, 218, 0, 0, 0, 0, 0, - 0, 0, 65, 22, 67, 68, 69, 70, 131, 0, - 72, 73, 74, 75, 76, 0, 77, 78, 79, 0, - 81, 82, 83, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, - 37, 38, 39, 40, 41, 42, 43, 44, 45, 0, - 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, - 111, 57, 58, 59, 60, 61, 239, 62, 21, 0, - 240, 218, 0, 0, 0, 0, 0, 0, 0, 65, - 22, 67, 68, 69, 70, 0, 0, 72, 73, 74, - 75, 76, 250, 77, 78, 79, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 27, 28, 29, - 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, - 40, 41, 42, 43, 44, 45, 0, 46, 47, 48, - 49, 50, 51, 52, 53, 54, 55, 111, 57, 58, - 59, 60, 61, 21, 62, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 22, 65, 0, 67, 68, - 69, 70, 0, 0, 72, 73, 74, 75, 76, 250, - 77, 78, 79, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 314, - 315, 0, 27, 28, 29, 30, 31, 32, 33, 34, - 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, - 45, 0, 46, 47, 48, 49, 50, 51, 52, 53, - 54, 55, 111, 57, 58, 59, 60, 61, 0, 62, - 21, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 65, 22, 67, 68, 69, 70, 0, 0, 72, - 73, 74, 75, 76, 0, 77, 78, 79, 0, 319, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 27, - 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, - 38, 39, 40, 41, 42, 43, 44, 45, 0, 46, - 47, 48, 49, 50, 51, 52, 53, 54, 55, 111, - 57, 58, 59, 60, 61, 0, 62, 21, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 65, 22, - 67, 68, 69, 70, 0, 0, 72, 73, 74, 75, - 76, 250, 77, 78, 79, 0, 323, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 27, 28, 29, 30, - 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, - 41, 42, 43, 44, 45, 0, 46, 47, 48, 49, - 50, 51, 52, 53, 54, 55, 111, 57, 58, 59, - 60, 61, 0, 62, 21, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 65, 22, 67, 68, 69, - 70, 0, 0, 72, 73, 74, 75, 76, 250, 77, - 78, 79, 0, 430, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 27, 28, 29, 30, 31, 32, 33, - 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, - 44, 45, 0, 46, 47, 48, 49, 50, 51, 52, - 53, 54, 55, 111, 57, 58, 59, 60, 61, 0, - 62, 21, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 65, 22, 67, 68, 69, 70, 0, 0, - 72, 73, 74, 75, 76, 250, 77, 78, 79, 0, - 512, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, - 37, 38, 39, 40, 41, 42, 43, 44, 45, 0, - 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, - 111, 57, 58, 59, 60, 61, 21, 62, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 22, 65, - 0, 67, 68, 69, 70, 0, 0, 72, 73, 74, - 75, 76, 250, 77, 78, 79, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 27, 28, 29, 30, 31, - 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, - 42, 43, 44, 45, 0, 46, 47, 48, 49, 50, - 51, 52, 53, 54, 55, 111, 57, 58, 59, 60, - 61, 21, 62, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 22, 65, 0, 67, 68, 69, 70, - 0, 0, 72, 73, 74, 75, 76, 250, 77, 78, - 79, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, - 37, 38, 39, 40, 41, 42, 43, 44, 45, 0, - 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, - 111, 57, 58, 59, 60, 61, 21, 62, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 22, 65, - 0, 67, 68, 69, 70, 0, 267, 72, 73, 74, - 75, 76, 0, 77, 78, 79, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 27, 28, 29, 30, 31, - 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, - 42, 43, 44, 45, 0, 46, 47, 48, 49, 50, - 51, 52, 53, 54, 55, 111, 57, 58, 59, 60, - 61, 0, 62, 0, 0, 0, 0, 0, 21, 0, - 0, 0, 0, 0, 65, 0, 67, 68, 69, 70, - 22, 0, 72, 73, 74, 75, 76, 436, 77, 78, - 79, 0, 0, 0, 0, 458, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 27, 28, 29, - 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, - 40, 41, 42, 43, 44, 45, 0, 46, 47, 48, - 49, 50, 51, 52, 53, 54, 55, 111, 57, 58, - 59, 60, 61, 0, 62, 0, 0, 0, 0, 0, - 21, 0, 0, 0, 0, 0, 65, 0, 67, 68, - 69, 70, 22, 0, 72, 73, 74, 75, 76, 0, - 77, 78, 79, 0, 0, 0, 0, 460, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 27, - 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, - 38, 39, 40, 41, 42, 43, 44, 45, 0, 46, - 47, 48, 49, 50, 51, 52, 53, 54, 55, 111, - 57, 58, 59, 60, 61, 21, 62, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 22, 65, 0, - 67, 68, 69, 70, 0, 0, 72, 73, 74, 75, - 76, 0, 77, 78, 79, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 566, 27, 28, 29, 30, 31, 32, - 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, - 43, 44, 45, 0, 46, 47, 48, 49, 50, 51, - 52, 53, 54, 55, 111, 57, 58, 59, 60, 61, - 21, 62, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 22, 65, 0, 67, 68, 69, 70, 0, - 0, 72, 73, 74, 75, 76, 0, 77, 78, 79, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 27, - 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, - 38, 39, 40, 41, 42, 43, 44, 45, 0, 46, - 47, 48, 49, 50, 51, 52, 53, 54, 55, 111, - 57, 58, 59, 60, 61, 0, 62, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 65, 0, - 67, 68, 69, 70, 0, 0, 72, 73, 74, 75, - 76, 0, 77, 78, 79, 159, 0, 0, 160, 0, - 0, 0, 279, 280, 0, 0, 0, 0, 0, 0, - 0, 0, 9, 281, 164, 350, 0, 282, 0, 0, - 0, 159, 0, 0, 160, 0, 167, 351, 279, 280, - 0, 0, 283, 284, 285, 286, 0, 0, 9, 281, - 164, 0, 0, 282, 0, 0, 287, 288, 0, 0, - 0, 289, 167, 0, 321, 0, 0, 0, 283, 284, - 285, 286, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 159, 287, 288, 160, 0, 0, 289, 279, 280, - 0, 0, 0, 0, 0, 0, 0, 0, 9, 281, - 164, 0, 0, 282, 0, 0, 0, 0, 0, 290, - 291, 0, 167, 0, 380, 0, 292, 0, 283, 284, - 285, 286, 159, 0, 0, 160, 0, 0, 0, 279, - 280, 0, 287, 288, 0, 290, 291, 289, 0, 9, - 281, 164, 292, 0, 282, 0, 0, 0, 0, 0, - 0, 0, 0, 167, 0, 493, 0, 0, 0, 283, - 284, 285, 286, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 159, 287, 288, 160, 0, 0, 289, 279, - 280, 0, 0, 0, 0, 290, 291, 0, 0, 9, - 281, 164, 292, 0, 282, 0, 0, 0, 159, 0, - 0, 160, 0, 167, 0, 279, 280, 0, 0, 283, - 284, 285, 286, 0, 0, 9, 0, 164, 0, 0, - 282, 0, 0, 287, 288, 0, 290, 291, 289, 167, - 0, 0, 0, 292, 0, 283, 284, 285, 286, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 287, - 0, 0, 0, 0, 289, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 290, 291, 0, 0, - 0, 0, 0, 292, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 290, 291, 0, 0, 0, 0, 0, 292 -}; - -static const short yycheck[] = { 23, - 4, 8, 21, 125, 185, 309, 100, 97, 2, 3, - 215, 120, 200, 218, 8, 143, 144, 21, 127, 208, - 24, 300, 16, 14, 279, 239, 240, 295, 137, 23, - 408, 57, 71, 288, 16, 4, 217, 303, 304, 220, - 178, 14, 10, 3, 363, 577, 140, 149, 150, 14, - 62, 60, 235, 7, 432, 6, 7, 8, 10, 4, - 64, 100, 66, 110, 596, 333, 525, 599, 6, 7, - 8, 254, 37, 25, 68, 280, 80, 37, 51, 267, - 34, 120, 76, 77, 35, 463, 618, 91, 127, 115, - 295, 229, 566, 552, 232, 99, 105, 629, 137, 37, - 7, 140, 23, 197, 143, 144, 110, 209, 210, 211, - 212, 105, 620, 97, 35, 109, 7, 396, 592, 166, - 111, 125, 390, 631, 118, 32, 254, 446, 447, 384, - 10, 11, 25, 31, 138, 139, 391, 645, 3, 110, - 242, 32, 356, 357, 410, 24, 33, 402, 46, 527, - 10, 11, 39, 32, 244, 20, 125, 37, 197, 414, - 25, 7, 156, 344, 183, 354, 170, 355, 162, 138, - 139, 165, 550, 551, 156, 214, 223, 37, 43, 183, - 125, 386, 387, 388, 20, 373, 10, 11, 32, 25, - 237, 238, 36, 138, 139, 166, 402, 244, 7, 35, - 20, 20, 7, 11, 12, 25, 25, 3, 414, 318, - 3, 490, 216, 37, 22, 254, 471, 10, 26, 223, - 28, 29, 30, 31, 3, 439, 34, 32, 356, 357, - 38, 10, 25, 237, 238, 32, 230, 231, 6, 341, - 37, 343, 23, 24, 37, 7, 25, 40, 41, 42, - 43, 32, 223, 31, 35, 302, 560, 359, 360, 440, - 465, 40, 41, 42, 43, 7, 237, 238, 272, 273, - 32, 275, 366, 244, 647, 10, 531, 10, 11, 318, - 374, 10, 10, 656, 657, 11, 12, 20, 7, 22, - 32, 33, 25, 21, 7, 668, 25, 670, 671, 672, - 26, 34, 28, 29, 30, 31, 35, 40, 41, 42, - 43, 439, 38, 32, 10, 570, 24, 356, 357, 32, - 7, 54, 112, 7, 32, 10, 59, 366, 36, 534, - 3, 10, 11, 6, 539, 374, 438, 7, 11, 12, - 25, 14, 7, 7, 383, 32, 112, 20, 32, 22, - 397, 398, 25, 26, 27, 40, 41, 42, 43, 6, - 97, 34, 32, 10, 11, 6, 39, 32, 32, 10, - 11, 375, 34, 377, 107, 108, 3, 10, 25, 6, - 34, 114, 55, 387, 388, 6, 10, 20, 593, 10, - 11, 10, 25, 32, 32, 517, 10, 35, 37, 20, - 439, 20, 607, 610, 25, 612, 25, 401, 613, 403, - 404, 581, 27, 6, 408, 32, 586, 10, 10, 11, - 37, 40, 41, 42, 43, 656, 657, 20, 32, 27, - 524, 435, 25, 37, 3, 54, 443, 668, 432, 670, - 59, 10, 375, 116, 377, 118, 37, 120, 121, 443, - 32, 124, 125, 126, 127, 37, 25, 32, 131, 132, - 479, 32, 37, 10, 11, 559, 37, 576, 37, 463, - 3, 40, 41, 42, 43, 479, 32, 10, 10, 11, - 671, 672, 76, 77, 32, 524, 143, 144, 107, 108, - 529, 53, 25, 237, 238, 114, 392, 393, 76, 77, - 27, 6, 33, 7, 37, 20, 545, 40, 41, 42, - 43, 20, 112, 517, 116, 112, 118, 25, 120, 121, - 559, 34, 124, 125, 126, 127, 530, 34, 27, 131, - 132, 111, 8, 527, 36, 539, 3, 576, 32, 6, - 37, 20, 546, 20, 11, 12, 32, 14, 555, 32, - 37, 32, 591, 10, 10, 22, 550, 551, 10, 26, - 10, 555, 566, 14, 10, 31, 7, 34, 7, 34, - 7, 34, 39, 37, 36, 7, 37, 37, 27, 27, - 27, 620, 36, 27, 37, 25, 31, 58, 592, 27, - 10, 34, 631, 35, 27, 31, 620, 31, 7, 7, - 27, 32, 31, 607, 34, 644, 645, 631, 647, 37, - 32, 37, 651, 37, 37, 26, 51, 656, 657, 37, - 644, 645, 32, 37, 648, 21, 106, 651, 35, 668, - 49, 670, 671, 672, 3, 60, 37, 6, 10, 8, - 7, 10, 11, 47, 61, 7, 46, 52, 34, 37, - 7, 20, 21, 22, 7, 48, 25, 35, 7, 35, - 10, 35, 10, 33, 7, 34, 25, 8, 3, 0, - 10, 40, 41, 42, 43, 0, 45, 10, 1, 373, - 4, 87, 4, 223, 105, 54, 55, 237, 218, 238, - 59, 214, 461, 109, 63, 64, 65, 66, 67, 68, - 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, - 79, 80, 81, 82, 83, 84, 85, 591, 87, 88, - 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, - 99, 100, 101, 102, 125, 104, 125, 563, 107, 108, - 125, 600, 623, 607, 539, 114, 366, 116, 273, 118, - 119, 120, 121, 356, 244, 124, 125, 126, 127, 128, - 306, 130, 131, 132, 3, 300, 295, 6, 166, 8, - 529, 10, 11, 118, 244, -1, -1, -1, -1, -1, - -1, 20, 21, 22, -1, -1, 25, -1, -1, -1, - -1, -1, -1, -1, -1, 34, -1, -1, -1, -1, - -1, 40, 41, 42, 43, 44, -1, -1, -1, -1, - -1, 226, -1, -1, -1, 54, 55, -1, -1, -1, - 59, -1, -1, -1, -1, 64, 65, 66, 67, 68, - 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, - 79, 80, 81, 82, 83, 84, 85, -1, 87, 88, - 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, - 99, 100, 101, 102, -1, 104, -1, -1, 107, 108, - -1, -1, -1, -1, -1, 114, -1, 116, -1, 118, - 119, 120, 121, -1, -1, 124, 125, 126, 127, 128, - -1, 130, 131, 132, 3, -1, -1, 6, -1, 8, - -1, 10, 11, -1, -1, -1, -1, -1, -1, -1, - -1, 20, 21, 22, -1, -1, 25, -1, -1, -1, - -1, -1, -1, -1, -1, 34, -1, -1, -1, -1, - -1, 40, 41, 42, 43, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, 54, 55, -1, -1, -1, - 59, -1, -1, -1, -1, 64, 65, 66, 67, 68, - 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, - 79, 80, 81, 82, 83, 84, 85, -1, 87, 88, - 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, - 99, 100, 101, 102, -1, 104, -1, -1, 107, 108, - -1, -1, -1, -1, -1, 114, -1, 116, -1, 118, - 119, 120, 121, -1, -1, 124, 125, 126, 127, 128, - -1, 130, 131, 132, 3, -1, -1, 6, -1, 8, - -1, 10, 11, -1, -1, -1, -1, -1, -1, -1, - -1, 20, 21, 22, -1, -1, 25, -1, -1, -1, - -1, -1, -1, -1, -1, 34, -1, -1, -1, -1, - -1, 40, 41, 42, 43, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, 54, 55, -1, -1, -1, - 59, -1, -1, -1, -1, -1, -1, -1, 67, 68, - 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, - 79, 80, 81, 82, 83, 84, 85, -1, 87, 88, - 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, - 99, 100, 101, 102, -1, 104, -1, -1, 107, 108, - -1, -1, -1, -1, -1, 114, -1, 116, -1, 118, - 119, 120, 121, -1, -1, 124, 125, 126, 127, 128, - -1, 130, 131, 132, 3, -1, -1, 6, -1, 8, - -1, -1, 11, 12, -1, 14, -1, -1, -1, -1, - -1, 20, -1, 22, -1, -1, -1, 26, 27, -1, - -1, -1, -1, -1, -1, 34, -1, -1, -1, -1, - 39, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, 55, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, 66, 67, 68, - 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, - 79, 80, 81, 82, 83, 84, 85, -1, 87, 88, - 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, - 99, 100, 101, 102, 8, 104, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, 20, 116, -1, 118, - 119, 120, 121, -1, -1, 124, 125, 126, 127, 128, - -1, 130, 131, 132, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 48, -1, 50, -1, -1, -1, - -1, -1, 56, -1, -1, -1, -1, -1, 62, -1, - -1, -1, -1, 67, 68, 69, 70, 71, 72, 73, - 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, - 84, 85, -1, 87, 88, 89, 90, 91, 92, 93, - 94, 95, 96, 97, 98, 99, 100, 101, 102, -1, - 104, -1, -1, -1, -1, 109, -1, 8, -1, 113, - -1, 115, 116, 117, 118, 119, 120, 121, 122, 20, - 124, 125, 126, 127, 128, -1, 130, 131, 132, 133, - 134, 135, 136, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, 48, -1, 50, - -1, -1, -1, -1, -1, 56, -1, -1, -1, -1, - -1, 62, -1, -1, -1, -1, 67, 68, 69, 70, - 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, - 81, 82, 83, 84, 85, -1, 87, 88, 89, 90, - 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, - 101, 102, 8, 104, -1, -1, -1, -1, 109, -1, - -1, -1, 113, -1, 20, 116, 117, 118, 119, 120, - 121, 122, -1, 124, 125, 126, 127, 128, -1, 130, - 131, 132, 133, 134, 135, 136, -1, -1, -1, -1, - -1, -1, -1, -1, 50, -1, -1, -1, -1, -1, - 56, -1, -1, -1, -1, -1, 62, -1, -1, -1, - -1, 67, 68, 69, 70, 71, 72, 73, 74, 75, - 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, - -1, 87, 88, 89, 90, 91, 92, 93, 94, 95, - 96, 97, 98, 99, 100, 101, 102, -1, 104, -1, - -1, -1, -1, -1, 8, -1, -1, 113, -1, -1, - 116, 117, 118, 119, 120, 121, 20, -1, 124, 125, - 126, 127, 128, -1, 130, 131, 132, 133, 134, 135, - 136, 35, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, 67, 68, 69, 70, 71, 72, 73, - 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, - 84, 85, -1, 87, 88, 89, 90, 91, 92, 93, - 94, 95, 96, 97, 98, 99, 100, 101, 102, 6, - 104, 8, -1, 10, 11, -1, -1, -1, -1, -1, - -1, -1, 116, 20, 118, 119, 120, 121, 25, -1, - 124, 125, 126, 127, 128, -1, 130, 131, 132, -1, - 134, 135, 136, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, - 77, 78, 79, 80, 81, 82, 83, 84, 85, -1, - 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, - 97, 98, 99, 100, 101, 102, 6, 104, 8, -1, - 10, 11, -1, -1, -1, -1, -1, -1, -1, 116, - 20, 118, 119, 120, 121, -1, -1, 124, 125, 126, - 127, 128, 129, 130, 131, 132, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, 67, 68, 69, - 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, - 80, 81, 82, 83, 84, 85, -1, 87, 88, 89, - 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, - 100, 101, 102, 8, 104, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, 20, 116, -1, 118, 119, - 120, 121, -1, -1, 124, 125, 126, 127, 128, 129, - 130, 131, 132, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, 64, - 65, -1, 67, 68, 69, 70, 71, 72, 73, 74, - 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, - 85, -1, 87, 88, 89, 90, 91, 92, 93, 94, - 95, 96, 97, 98, 99, 100, 101, 102, -1, 104, - 8, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, 116, 20, 118, 119, 120, 121, -1, -1, 124, - 125, 126, 127, 128, -1, 130, 131, 132, -1, 37, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, 67, - 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, - 78, 79, 80, 81, 82, 83, 84, 85, -1, 87, - 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, - 98, 99, 100, 101, 102, -1, 104, 8, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, 116, 20, - 118, 119, 120, 121, -1, -1, 124, 125, 126, 127, - 128, 129, 130, 131, 132, -1, 37, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, 67, 68, 69, 70, - 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, - 81, 82, 83, 84, 85, -1, 87, 88, 89, 90, - 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, - 101, 102, -1, 104, 8, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, 116, 20, 118, 119, 120, - 121, -1, -1, 124, 125, 126, 127, 128, 129, 130, - 131, 132, -1, 37, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, 67, 68, 69, 70, 71, 72, 73, - 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, - 84, 85, -1, 87, 88, 89, 90, 91, 92, 93, - 94, 95, 96, 97, 98, 99, 100, 101, 102, -1, - 104, 8, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, 116, 20, 118, 119, 120, 121, -1, -1, - 124, 125, 126, 127, 128, 129, 130, 131, 132, -1, - 37, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, - 77, 78, 79, 80, 81, 82, 83, 84, 85, -1, - 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, - 97, 98, 99, 100, 101, 102, 8, 104, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, 20, 116, - -1, 118, 119, 120, 121, -1, -1, 124, 125, 126, - 127, 128, 129, 130, 131, 132, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, 67, 68, 69, 70, 71, - 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, - 82, 83, 84, 85, -1, 87, 88, 89, 90, 91, - 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, - 102, 8, 104, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, 20, 116, -1, 118, 119, 120, 121, - -1, -1, 124, 125, 126, 127, 128, 129, 130, 131, - 132, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, - 77, 78, 79, 80, 81, 82, 83, 84, 85, -1, - 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, - 97, 98, 99, 100, 101, 102, 8, 104, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, 20, 116, - -1, 118, 119, 120, 121, -1, 123, 124, 125, 126, - 127, 128, -1, 130, 131, 132, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, 67, 68, 69, 70, 71, - 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, - 82, 83, 84, 85, -1, 87, 88, 89, 90, 91, - 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, - 102, -1, 104, -1, -1, -1, -1, -1, 8, -1, - -1, -1, -1, -1, 116, -1, 118, 119, 120, 121, - 20, -1, 124, 125, 126, 127, 128, 129, 130, 131, - 132, -1, -1, -1, -1, 35, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, 67, 68, 69, - 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, - 80, 81, 82, 83, 84, 85, -1, 87, 88, 89, - 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, - 100, 101, 102, -1, 104, -1, -1, -1, -1, -1, - 8, -1, -1, -1, -1, -1, 116, -1, 118, 119, - 120, 121, 20, -1, 124, 125, 126, 127, 128, -1, - 130, 131, 132, -1, -1, -1, -1, 35, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, 67, - 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, - 78, 79, 80, 81, 82, 83, 84, 85, -1, 87, - 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, - 98, 99, 100, 101, 102, 8, 104, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, 20, 116, -1, - 118, 119, 120, 121, -1, -1, 124, 125, 126, 127, - 128, -1, 130, 131, 132, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, 66, 67, 68, 69, 70, 71, 72, - 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, - 83, 84, 85, -1, 87, 88, 89, 90, 91, 92, - 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, - 8, 104, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, 20, 116, -1, 118, 119, 120, 121, -1, - -1, 124, 125, 126, 127, 128, -1, 130, 131, 132, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, 67, - 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, - 78, 79, 80, 81, 82, 83, 84, 85, -1, 87, - 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, - 98, 99, 100, 101, 102, -1, 104, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, 116, -1, - 118, 119, 120, 121, -1, -1, 124, 125, 126, 127, - 128, -1, 130, 131, 132, 3, -1, -1, 6, -1, - -1, -1, 10, 11, -1, -1, -1, -1, -1, -1, - -1, -1, 20, 21, 22, 23, -1, 25, -1, -1, - -1, 3, -1, -1, 6, -1, 34, 35, 10, 11, - -1, -1, 40, 41, 42, 43, -1, -1, 20, 21, - 22, -1, -1, 25, -1, -1, 54, 55, -1, -1, - -1, 59, 34, -1, 36, -1, -1, -1, 40, 41, - 42, 43, -1, -1, -1, -1, -1, -1, -1, -1, - -1, 3, 54, 55, 6, -1, -1, 59, 10, 11, - -1, -1, -1, -1, -1, -1, -1, -1, 20, 21, - 22, -1, -1, 25, -1, -1, -1, -1, -1, 107, - 108, -1, 34, -1, 36, -1, 114, -1, 40, 41, - 42, 43, 3, -1, -1, 6, -1, -1, -1, 10, - 11, -1, 54, 55, -1, 107, 108, 59, -1, 20, - 21, 22, 114, -1, 25, -1, -1, -1, -1, -1, - -1, -1, -1, 34, -1, 36, -1, -1, -1, 40, - 41, 42, 43, -1, -1, -1, -1, -1, -1, -1, - -1, -1, 3, 54, 55, 6, -1, -1, 59, 10, - 11, -1, -1, -1, -1, 107, 108, -1, -1, 20, - 21, 22, 114, -1, 25, -1, -1, -1, 3, -1, - -1, 6, -1, 34, -1, 10, 11, -1, -1, 40, - 41, 42, 43, -1, -1, 20, -1, 22, -1, -1, - 25, -1, -1, 54, 55, -1, 107, 108, 59, 34, - -1, -1, -1, 114, -1, 40, 41, 42, 43, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, 54, - -1, -1, -1, -1, 59, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, 107, 108, -1, -1, - -1, -1, -1, 114, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, 107, 108, -1, -1, -1, -1, -1, 114 -}; -/* -*-C-*- Note some compilers choke on comments on `#line' lines. */ -#line 3 "/usr/lib/bison.simple" -/* This file comes from bison-1.28. */ - -/* Skeleton output parser for bison, - Copyright (C) 1984, 1989, 1990 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 2, 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, write to the Free Software - Foundation, Inc., 59 Temple Place - Suite 330, - Boston, MA 02111-1307, USA. */ - -/* As a special exception, when this file is copied by Bison into a - Bison output file, you may use that output file without restriction. - This special exception was added by the Free Software Foundation - in version 1.24 of Bison. */ - -/* This is the parser code that is written into each bison parser - when the %semantic_parser declaration is not specified in the grammar. - It was written by Richard Stallman by simplifying the hairy parser - used when %semantic_parser is specified. */ - -#ifndef YYSTACK_USE_ALLOCA -#ifdef alloca -#define YYSTACK_USE_ALLOCA -#else /* alloca not defined */ -#ifdef __GNUC__ -#define YYSTACK_USE_ALLOCA -#define alloca __builtin_alloca -#else /* not GNU C. */ -#if (!defined (__STDC__) && defined (sparc)) || defined (__sparc__) || defined (__sparc) || defined (__sgi) || (defined (__sun) && defined (__i386)) -#define YYSTACK_USE_ALLOCA -#include -#else /* not sparc */ -/* We think this test detects Watcom and Microsoft C. */ -/* This used to test MSDOS, but that is a bad idea - since that symbol is in the user namespace. */ -#if (defined (_MSDOS) || defined (_MSDOS_)) && !defined (__TURBOC__) -#if 0 /* No need for malloc.h, which pollutes the namespace; - instead, just don't use alloca. */ -#include -#endif -#else /* not MSDOS, or __TURBOC__ */ -#if defined(_AIX) -/* I don't know what this was needed for, but it pollutes the namespace. - So I turned it off. rms, 2 May 1997. */ -/* #include */ - #pragma alloca -#define YYSTACK_USE_ALLOCA -#else /* not MSDOS, or __TURBOC__, or _AIX */ -#if 0 -#ifdef __hpux /* haible@ilog.fr says this works for HPUX 9.05 and up, - and on HPUX 10. Eventually we can turn this on. */ -#define YYSTACK_USE_ALLOCA -#define alloca __builtin_alloca -#endif /* __hpux */ -#endif -#endif /* not _AIX */ -#endif /* not MSDOS, or __TURBOC__ */ -#endif /* not sparc */ -#endif /* not GNU C */ -#endif /* alloca not defined */ -#endif /* YYSTACK_USE_ALLOCA not defined */ - -#ifdef YYSTACK_USE_ALLOCA -#define YYSTACK_ALLOC alloca -#else -#define YYSTACK_ALLOC malloc -#endif - -/* Note: there must be only one dollar sign in this file. - It is replaced by the list of actions, each action - as one case of the switch. */ - -#define yyerrok (yyerrstatus = 0) -#define yyclearin (yychar = YYEMPTY) -#define YYEMPTY -2 -#define YYEOF 0 -#define YYACCEPT goto yyacceptlab -#define YYABORT goto yyabortlab -#define YYERROR goto yyerrlab1 -/* Like YYERROR except do call yyerror. - This remains here temporarily to ease the - transition to the new meaning of YYERROR, for GCC. - Once GCC version 2 has supplanted version 1, this can go. */ -#define YYFAIL goto yyerrlab -#define YYRECOVERING() (!!yyerrstatus) -#define YYBACKUP(token, value) \ -do \ - if (yychar == YYEMPTY && yylen == 1) \ - { yychar = (token), yylval = (value); \ - yychar1 = YYTRANSLATE (yychar); \ - YYPOPSTACK; \ - goto yybackup; \ - } \ - else \ - { yyerror ("syntax error: cannot back up"); YYERROR; } \ -while (0) - -#define YYTERROR 1 -#define YYERRCODE 256 - -#ifndef YYPURE -#define YYLEX yylex() -#endif - -#ifdef YYPURE -#ifdef YYLSP_NEEDED -#ifdef YYLEX_PARAM -#define YYLEX yylex(&yylval, &yylloc, YYLEX_PARAM) -#else -#define YYLEX yylex(&yylval, &yylloc) -#endif -#else /* not YYLSP_NEEDED */ -#ifdef YYLEX_PARAM -#define YYLEX yylex(&yylval, YYLEX_PARAM) -#else -#define YYLEX yylex(&yylval) -#endif -#endif /* not YYLSP_NEEDED */ -#endif - -/* If nonreentrant, generate the variables here */ - -#ifndef YYPURE - -int yychar; /* the lookahead symbol */ -YYSTYPE yylval; /* the semantic value of the */ - /* lookahead symbol */ - -#ifdef YYLSP_NEEDED -YYLTYPE yylloc; /* location data for the lookahead */ - /* symbol */ -#endif - -int yynerrs; /* number of parse errors so far */ -#endif /* not YYPURE */ - -#if YYDEBUG != 0 -int yydebug; /* nonzero means print parse trace */ -/* Since this is uninitialized, it does not stop multiple parsers - from coexisting. */ -#endif - -/* YYINITDEPTH indicates the initial size of the parser's stacks */ - -#ifndef YYINITDEPTH -#define YYINITDEPTH 200 -#endif - -/* YYMAXDEPTH is the maximum size the stacks can grow to - (effective only if the built-in stack extension method is used). */ - -#if YYMAXDEPTH == 0 -#undef YYMAXDEPTH -#endif - -#ifndef YYMAXDEPTH -#define YYMAXDEPTH 10000 -#endif - -/* Define __yy_memcpy. Note that the size argument - should be passed with type unsigned int, because that is what the non-GCC - definitions require. With GCC, __builtin_memcpy takes an arg - of type size_t, but it can handle unsigned int. */ - -#if __GNUC__ > 1 /* GNU C and GNU C++ define this. */ -#define __yy_memcpy(TO,FROM,COUNT) __builtin_memcpy(TO,FROM,COUNT) -#else /* not GNU C or C++ */ -#ifndef __cplusplus - -/* This is the most reliable way to avoid incompatibilities - in available built-in functions on various systems. */ -static void -__yy_memcpy (to, from, count) - char *to; - char *from; - unsigned int count; -{ - register char *f = from; - register char *t = to; - register int i = count; - - while (i-- > 0) - *t++ = *f++; -} - -#else /* __cplusplus */ - -/* This is the most reliable way to avoid incompatibilities - in available built-in functions on various systems. */ -static void -__yy_memcpy (char *to, char *from, unsigned int count) -{ - register char *t = to; - register char *f = from; - register int i = count; - - while (i-- > 0) - *t++ = *f++; -} - -#endif -#endif - -#line 217 "/usr/lib/bison.simple" - -/* The user can define YYPARSE_PARAM as the name of an argument to be passed - into yyparse. The argument should have type void *. - It should actually point to an object. - Grammar actions can access the variable by casting it - to the proper pointer type. */ - -#ifdef YYPARSE_PARAM -#ifdef __cplusplus -#define YYPARSE_PARAM_ARG void *YYPARSE_PARAM -#define YYPARSE_PARAM_DECL -#else /* not __cplusplus */ -#define YYPARSE_PARAM_ARG YYPARSE_PARAM -#define YYPARSE_PARAM_DECL void *YYPARSE_PARAM; -#endif /* not __cplusplus */ -#else /* not YYPARSE_PARAM */ -#define YYPARSE_PARAM_ARG -#define YYPARSE_PARAM_DECL -#endif /* not YYPARSE_PARAM */ - -/* Prevent warning if -Wstrict-prototypes. */ -#ifdef __GNUC__ -#ifdef YYPARSE_PARAM -int yyparse (void *); -#else -int yyparse (void); -#endif -#endif - -int -yyparse(YYPARSE_PARAM_ARG) - YYPARSE_PARAM_DECL -{ - register int yystate; - register int yyn; - register short *yyssp; - register YYSTYPE *yyvsp; - int yyerrstatus; /* number of tokens to shift before error messages enabled */ - int yychar1 = 0; /* lookahead token as an internal (translated) token number */ - - short yyssa[YYINITDEPTH]; /* the state stack */ - YYSTYPE yyvsa[YYINITDEPTH]; /* the semantic value stack */ - - short *yyss = yyssa; /* refer to the stacks thru separate pointers */ - YYSTYPE *yyvs = yyvsa; /* to allow yyoverflow to reallocate them elsewhere */ - -#ifdef YYLSP_NEEDED - YYLTYPE yylsa[YYINITDEPTH]; /* the location stack */ - YYLTYPE *yyls = yylsa; - YYLTYPE *yylsp; - -#define YYPOPSTACK (yyvsp--, yyssp--, yylsp--) -#else -#define YYPOPSTACK (yyvsp--, yyssp--) -#endif - - int yystacksize = YYINITDEPTH; - int yyfree_stacks = 0; - -#ifdef YYPURE - int yychar; - YYSTYPE yylval; - int yynerrs; -#ifdef YYLSP_NEEDED - YYLTYPE yylloc; -#endif -#endif - - YYSTYPE yyval; /* the variable used to return */ - /* semantic values from the action */ - /* routines */ - - int yylen; - -#if YYDEBUG != 0 - if (yydebug) - fprintf(stderr, "Starting parse\n"); -#endif - - yystate = 0; - yyerrstatus = 0; - yynerrs = 0; - yychar = YYEMPTY; /* Cause a token to be read. */ - - /* Initialize stack pointers. - Waste one element of value and location stack - so that they stay on the same level as the state stack. - The wasted elements are never initialized. */ - - yyssp = yyss - 1; - yyvsp = yyvs; -#ifdef YYLSP_NEEDED - yylsp = yyls; -#endif - -/* Push a new state, which is found in yystate . */ -/* In all cases, when you get here, the value and location stacks - have just been pushed. so pushing a state here evens the stacks. */ -yynewstate: - - *++yyssp = yystate; - - if (yyssp >= yyss + yystacksize - 1) - { - /* Give user a chance to reallocate the stack */ - /* Use copies of these so that the &'s don't force the real ones into memory. */ - YYSTYPE *yyvs1 = yyvs; - short *yyss1 = yyss; -#ifdef YYLSP_NEEDED - YYLTYPE *yyls1 = yyls; -#endif - - /* Get the current used size of the three stacks, in elements. */ - int size = yyssp - yyss + 1; - -#ifdef yyoverflow - /* Each stack pointer address is followed by the size of - the data in use in that stack, in bytes. */ -#ifdef YYLSP_NEEDED - /* This used to be a conditional around just the two extra args, - but that might be undefined if yyoverflow is a macro. */ - yyoverflow("parser stack overflow", - &yyss1, size * sizeof (*yyssp), - &yyvs1, size * sizeof (*yyvsp), - &yyls1, size * sizeof (*yylsp), - &yystacksize); -#else - yyoverflow("parser stack overflow", - &yyss1, size * sizeof (*yyssp), - &yyvs1, size * sizeof (*yyvsp), - &yystacksize); -#endif - - yyss = yyss1; yyvs = yyvs1; -#ifdef YYLSP_NEEDED - yyls = yyls1; -#endif -#else /* no yyoverflow */ - /* Extend the stack our own way. */ - if (yystacksize >= YYMAXDEPTH) - { - yyerror("parser stack overflow"); - if (yyfree_stacks) - { - free (yyss); - free (yyvs); -#ifdef YYLSP_NEEDED - free (yyls); -#endif - } - return 2; - } - yystacksize *= 2; - if (yystacksize > YYMAXDEPTH) - yystacksize = YYMAXDEPTH; -#ifndef YYSTACK_USE_ALLOCA - yyfree_stacks = 1; -#endif - yyss = (short *) YYSTACK_ALLOC (yystacksize * sizeof (*yyssp)); - __yy_memcpy ((char *)yyss, (char *)yyss1, - size * (unsigned int) sizeof (*yyssp)); - yyvs = (YYSTYPE *) YYSTACK_ALLOC (yystacksize * sizeof (*yyvsp)); - __yy_memcpy ((char *)yyvs, (char *)yyvs1, - size * (unsigned int) sizeof (*yyvsp)); -#ifdef YYLSP_NEEDED - yyls = (YYLTYPE *) YYSTACK_ALLOC (yystacksize * sizeof (*yylsp)); - __yy_memcpy ((char *)yyls, (char *)yyls1, - size * (unsigned int) sizeof (*yylsp)); -#endif -#endif /* no yyoverflow */ - - yyssp = yyss + size - 1; - yyvsp = yyvs + size - 1; -#ifdef YYLSP_NEEDED - yylsp = yyls + size - 1; -#endif - -#if YYDEBUG != 0 - if (yydebug) - fprintf(stderr, "Stack size increased to %d\n", yystacksize); -#endif - - if (yyssp >= yyss + yystacksize - 1) - YYABORT; - } - -#if YYDEBUG != 0 - if (yydebug) - fprintf(stderr, "Entering state %d\n", yystate); -#endif - - goto yybackup; - yybackup: - -/* Do appropriate processing given the current state. */ -/* Read a lookahead token if we need one and don't already have one. */ -/* yyresume: */ - - /* First try to decide what to do without reference to lookahead token. */ - - yyn = yypact[yystate]; - if (yyn == YYFLAG) - goto yydefault; - - /* Not known => get a lookahead token if don't already have one. */ - - /* yychar is either YYEMPTY or YYEOF - or a valid token in external form. */ - - if (yychar == YYEMPTY) - { -#if YYDEBUG != 0 - if (yydebug) - fprintf(stderr, "Reading a token: "); -#endif - yychar = YYLEX; - } - - /* Convert token to internal form (in yychar1) for indexing tables with */ - - if (yychar <= 0) /* This means end of input. */ - { - yychar1 = 0; - yychar = YYEOF; /* Don't call YYLEX any more */ - -#if YYDEBUG != 0 - if (yydebug) - fprintf(stderr, "Now at end of input.\n"); -#endif - } - else - { - yychar1 = YYTRANSLATE(yychar); - -#if YYDEBUG != 0 - if (yydebug) - { - fprintf (stderr, "Next token is %d (%s", yychar, yytname[yychar1]); - /* Give the individual parser a way to print the precise meaning - of a token, for further debugging info. */ -#ifdef YYPRINT - YYPRINT (stderr, yychar, yylval); -#endif - fprintf (stderr, ")\n"); - } -#endif - } - - yyn += yychar1; - if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != yychar1) - goto yydefault; - - yyn = yytable[yyn]; - - /* yyn is what to do for this token type in this state. - Negative => reduce, -yyn is rule number. - Positive => shift, yyn is new state. - New state is final state => don't bother to shift, - just return success. - 0, or most negative number => error. */ - - if (yyn < 0) - { - if (yyn == YYFLAG) - goto yyerrlab; - yyn = -yyn; - goto yyreduce; - } - else if (yyn == 0) - goto yyerrlab; - - if (yyn == YYFINAL) - YYACCEPT; - - /* Shift the lookahead token. */ - -#if YYDEBUG != 0 - if (yydebug) - fprintf(stderr, "Shifting token %d (%s), ", yychar, yytname[yychar1]); -#endif - - /* Discard the token being shifted unless it is eof. */ - if (yychar != YYEOF) - yychar = YYEMPTY; - - *++yyvsp = yylval; -#ifdef YYLSP_NEEDED - *++yylsp = yylloc; -#endif - - /* count tokens shifted since error; after three, turn off error status. */ - if (yyerrstatus) yyerrstatus--; - - yystate = yyn; - goto yynewstate; - -/* Do the default action for the current state. */ -yydefault: - - yyn = yydefact[yystate]; - if (yyn == 0) - goto yyerrlab; - -/* Do a reduction. yyn is the number of a rule to reduce with. */ -yyreduce: - yylen = yyr2[yyn]; - if (yylen > 0) - yyval = yyvsp[1-yylen]; /* implement default value of the action */ - -#if YYDEBUG != 0 - if (yydebug) - { - int i; - - fprintf (stderr, "Reducing via rule %d (line %d), ", - yyn, yyrline[yyn]); - - /* Print the symbols being reduced, and their result. */ - for (i = yyprhs[yyn]; yyrhs[i] > 0; i++) - fprintf (stderr, "%s ", yytname[yyrhs[i]]); - fprintf (stderr, " -> %s\n", yytname[yyr1[yyn]]); - } -#endif - - - switch (yyn) { - -case 1: -#line 383 "llgrammar.y" -{ lhExternals (yyvsp[0].interfacelist); ; - break;} -case 2: -#line 384 "llgrammar.y" -{ interfaceNodeList_free (yyvsp[-2].interfacelist); interfaceNodeList_free (yyvsp[0].interfacelist); ; - break;} -case 3: -#line 387 "llgrammar.y" -{ yyval.interfacelist = interfaceNodeList_new (); ; - break;} -case 4: -#line 388 "llgrammar.y" -{ yyval.interfacelist = interfaceNodeList_addh (yyvsp[-1].interfacelist, yyvsp[0].iface);; - break;} -case 7: -#line 395 "llgrammar.y" -{ yyval.interfacelist = interfaceNodeList_new (); ; - break;} -case 8: -#line 396 "llgrammar.y" -{ yyval.interfacelist = consInterfaceNode (yyvsp[-1].iface, yyvsp[0].interfacelist);; - break;} -case 9: -#line 397 "llgrammar.y" -{ yyval.interfacelist = consInterfaceNode (yyvsp[-1].iface, yyvsp[0].interfacelist);; - break;} -case 10: -#line 400 "llgrammar.y" -{ yyval.interfacelist = interfaceNodeList_new (); ; - break;} -case 11: -#line 401 "llgrammar.y" -{ yyval.interfacelist = interfaceNodeList_addh (yyvsp[-1].interfacelist, yyvsp[0].iface);; - break;} -case 15: -#line 410 "llgrammar.y" -{ yyval.iface = makeInterfaceNodeImports (yyvsp[-1].importlist); - /* assume subspecs are already processed, symbol table info in external file */ - ; - break;} -case 16: -#line 416 "llgrammar.y" -{ yyval.iface = makeInterfaceNodeUses (yyvsp[-1].traitreflist); readlsignatures (yyval.iface);; - break;} -case 17: -#line 420 "llgrammar.y" -{ declareConstant (yyvsp[0].constdeclaration); yyval.iface = interfaceNode_makeConst (yyvsp[0].constdeclaration); ; - break;} -case 18: -#line 422 "llgrammar.y" -{ declareVar (yyvsp[0].vardeclaration); yyval.iface = interfaceNode_makeVar (yyvsp[0].vardeclaration); ; - break;} -case 19: -#line 424 "llgrammar.y" -{ declareType (yyvsp[0].type); yyval.iface = interfaceNode_makeType (yyvsp[0].type); ; - break;} -case 20: -#line 426 "llgrammar.y" -{ declareFcn (yyvsp[0].fcn, typeId_invalid); yyval.iface = interfaceNode_makeFcn (yyvsp[0].fcn); ; - break;} -case 21: -#line 428 "llgrammar.y" -{ yyval.iface = interfaceNode_makeClaim (yyvsp[0].claim); ; - break;} -case 22: -#line 430 "llgrammar.y" -{ declareIter (yyvsp[0].iter); yyval.iface = interfaceNode_makeIter (yyvsp[0].iter); ; - break;} -case 23: -#line 434 "llgrammar.y" -{ yyval.iter = makeIterNode (yyvsp[-4].ltok, yyvsp[-2].paramlist); ; - break;} -case 24: -#line 437 "llgrammar.y" -{ yyval.paramlist = paramNodeList_new (); ; - break;} -case 25: -#line 438 "llgrammar.y" -{ yyval.paramlist = yyvsp[0].paramlist; ; - break;} -case 26: -#line 442 "llgrammar.y" -{ yyval.paramlist = paramNodeList_add (paramNodeList_new (), yyvsp[0].param); ; - break;} -case 27: -#line 444 "llgrammar.y" -{ yyval.paramlist = paramNodeList_add (yyvsp[-2].paramlist,yyvsp[0].param); ; - break;} -case 28: -#line 447 "llgrammar.y" -{ yyval.param = markYieldParamNode (yyvsp[0].param); ; - break;} -case 29: -#line 448 "llgrammar.y" -{ yyval.param = yyvsp[0].param; ; - break;} -case 30: -#line 451 "llgrammar.y" -{ symtable_export (g_symtab, FALSE); ; - break;} -case 31: -#line 452 "llgrammar.y" -{ yyval.iface = yyvsp[0].iface; symtable_export (g_symtab, TRUE); ; - break;} -case 32: -#line 456 "llgrammar.y" -{ declarePrivConstant (yyvsp[0].constdeclaration); yyval.iface = interfaceNode_makePrivConst (yyvsp[0].constdeclaration); ; - break;} -case 33: -#line 458 "llgrammar.y" -{ declarePrivVar (yyvsp[0].vardeclaration); yyval.iface = interfaceNode_makePrivVar (yyvsp[0].vardeclaration); ; - break;} -case 34: -#line 460 "llgrammar.y" -{ declarePrivType (yyvsp[0].type); yyval.iface = interfaceNode_makePrivType (yyvsp[0].type); ; - break;} -case 35: -#line 462 "llgrammar.y" -{ declarePrivFcn (yyvsp[0].fcn, typeId_invalid); yyval.iface = interfaceNode_makePrivFcn (yyvsp[0].fcn); ; - break;} -case 36: -#line 466 "llgrammar.y" -{ yyval.constdeclaration = makeConstDeclarationNode (yyvsp[-2].lcltypespec, yyvsp[-1].initdecls); ; - break;} -case 37: -#line 470 "llgrammar.y" -{ yyval.vardeclaration = makeVarDeclarationNode (yyvsp[-2].lcltypespec, yyvsp[-1].initdecls, FALSE, FALSE); yyval.vardeclaration->qualifier = QLF_NONE; ; - break;} -case 38: -#line 472 "llgrammar.y" -{ yyval.vardeclaration = makeVarDeclarationNode (yyvsp[-2].lcltypespec, yyvsp[-1].initdecls, FALSE, FALSE); yyval.vardeclaration->qualifier = QLF_CONST; ; - break;} -case 39: -#line 474 "llgrammar.y" -{ yyval.vardeclaration = makeVarDeclarationNode (yyvsp[-2].lcltypespec, yyvsp[-1].initdecls, FALSE, FALSE); yyval.vardeclaration->qualifier = QLF_VOLATILE; ; - break;} -case 40: -#line 477 "llgrammar.y" -{ yyval.type = makeAbstractTypeNode (yyvsp[0].abstract); ; - break;} -case 41: -#line 478 "llgrammar.y" -{ yyval.type = makeExposedTypeNode (yyvsp[0].exposed); ; - break;} -case 42: -#line 481 "llgrammar.y" -{ yyval.typequal = qual_createPrintfLike (); ; - break;} -case 43: -#line 482 "llgrammar.y" -{ yyval.typequal = qual_createScanfLike (); ; - break;} -case 44: -#line 483 "llgrammar.y" -{ yyval.typequal = qual_createMessageLike (); ; - break;} -case 45: -#line 486 "llgrammar.y" -{ enteringFcnScope (yyvsp[-2].lcltypespec, yyvsp[-1].declare, yyvsp[0].globals); ; - break;} -case 46: -#line 488 "llgrammar.y" -{ yyval.fcn = makeFcnNode (qual_createUnknown (), yyvsp[-12].lcltypespec, yyvsp[-11].declare, yyvsp[-10].globals, yyvsp[-7].vardeclarationlist, yyvsp[-6].letdecls, - yyvsp[-5].lclpredicate, yyvsp[-4].lclpredicate, yyvsp[-3].modify, yyvsp[-2].lclpredicate, yyvsp[-1].lclpredicate); - /* type, declarator, glovbls, privateinits, - lets, checks, requires, modifies, ensures, claims */ - symtable_exitScope (g_symtab); - ; - break;} -case 47: -#line 494 "llgrammar.y" -{ enteringFcnScope (yyvsp[-2].lcltypespec, yyvsp[-1].declare, yyvsp[0].globals); ; - break;} -case 48: -#line 498 "llgrammar.y" -{ yyval.fcn = makeFcnNode (yyvsp[-13].typequal, yyvsp[-12].lcltypespec, yyvsp[-11].declare, yyvsp[-10].globals, yyvsp[-7].vardeclarationlist, - yyvsp[-6].letdecls, yyvsp[-5].lclpredicate, yyvsp[-4].lclpredicate, yyvsp[-3].modify, yyvsp[-2].lclpredicate, yyvsp[-1].lclpredicate); - /* type, declarator, glovbls, privateinits, - lets, checks, requires, modifies, ensures, claims */ - symtable_exitScope (g_symtab); - ; - break;} -case 49: -#line 508 "llgrammar.y" -{ enteringClaimScope (yyvsp[-2].paramlist, yyvsp[0].globals); ; - break;} -case 50: -#line 510 "llgrammar.y" -{ yyval.claim = makeClaimNode (yyvsp[-11].ltok, yyvsp[-9].paramlist, yyvsp[-7].globals, yyvsp[-4].letdecls, yyvsp[-3].lclpredicate, yyvsp[-2].program, yyvsp[-1].lclpredicate); - symtable_exitScope (g_symtab); ; - break;} -case 51: -#line 513 "llgrammar.y" -{ yyval.claim = (claimNode) 0; ; - break;} -case 52: -#line 516 "llgrammar.y" -{g_inTypeDef = TRUE; ; - break;} -case 53: -#line 516 "llgrammar.y" -{g_inTypeDef = FALSE; ; - break;} -case 54: -#line 517 "llgrammar.y" -{ yyval.abstract = makeAbstractNode (yyvsp[-5].ltok, yyvsp[-2].ltok, TRUE, FALSE, yyvsp[0].abstbody); ; - break;} -case 55: -#line 518 "llgrammar.y" -{g_inTypeDef = TRUE; ; - break;} -case 56: -#line 519 "llgrammar.y" -{g_inTypeDef = FALSE; ; - break;} -case 57: -#line 520 "llgrammar.y" -{ yyval.abstract = makeAbstractNode (yyvsp[-6].ltok, yyvsp[-2].ltok, TRUE, TRUE, yyvsp[0].abstbody); ; - break;} -case 58: -#line 521 "llgrammar.y" -{g_inTypeDef = TRUE; ; - break;} -case 59: -#line 522 "llgrammar.y" -{g_inTypeDef = FALSE; ; - break;} -case 60: -#line 523 "llgrammar.y" -{ yyval.abstract = makeAbstractNode (yyvsp[-5].ltok, yyvsp[-2].ltok, TRUE, TRUE, yyvsp[0].abstbody); ; - break;} -case 61: -#line 524 "llgrammar.y" -{g_inTypeDef = TRUE; ; - break;} -case 62: -#line 524 "llgrammar.y" -{g_inTypeDef = FALSE; ; - break;} -case 63: -#line 525 "llgrammar.y" -{ yyval.abstract = makeAbstractNode (yyvsp[-5].ltok, yyvsp[-2].ltok, FALSE, FALSE, yyvsp[0].abstbody); ; - break;} -case 64: -#line 528 "llgrammar.y" -{ g_inTypeDef = TRUE; setExposedType (yyvsp[0].lcltypespec); ; - break;} -case 65: -#line 529 "llgrammar.y" -{ g_inTypeDef = FALSE; ; - break;} -case 66: -#line 530 "llgrammar.y" -{ yyval.exposed = makeExposedNode (yyvsp[-5].ltok, yyvsp[-4].lcltypespec, yyvsp[-2].declaratorinvs); /* to support mutually recursive types */ ; - break;} -case 67: -#line 532 "llgrammar.y" -{ yyval.exposed = makeExposedNode (yyvsp[0].ltok, makeLclTypeSpecNodeSU (yyvsp[-1].structorunion), declaratorInvNodeList_new ()); ; - break;} -case 68: -#line 534 "llgrammar.y" -{ yyval.exposed = makeExposedNode (yyvsp[0].ltok, makeLclTypeSpecNodeEnum (yyvsp[-1].enumspec), declaratorInvNodeList_new ()); ; - break;} -case 69: -#line 550 "llgrammar.y" -{ yyval.importlist = importNodeList_add (importNodeList_new (), yyvsp[0].import); ; - break;} -case 70: -#line 552 "llgrammar.y" -{ yyval.importlist = importNodeList_add (yyvsp[-2].importlist, yyvsp[0].import); ; - break;} -case 71: -#line 555 "llgrammar.y" -{ yyval.import = importNode_makePlain (yyvsp[0].ltok); ; - break;} -case 72: -#line 557 "llgrammar.y" -{ checkBrackets (yyvsp[-2].ltok, yyvsp[0].ltok); yyval.import = importNode_makeBracketed (yyvsp[-1].ltok); ; - break;} -case 73: -#line 558 "llgrammar.y" -{ yyval.import = importNode_makeQuoted (yyvsp[0].ltok); ; - break;} -case 74: -#line 561 "llgrammar.y" -{ yyval.ltokenList = ltokenList_singleton (yyvsp[0].ltok); ; - break;} -case 75: -#line 562 "llgrammar.y" -{ yyval.ltokenList = ltokenList_push (yyvsp[-2].ltokenList, yyvsp[0].ltok); ; - break;} -case 77: -#line 570 "llgrammar.y" -{ yyval.traitreflist = traitRefNodeList_add (traitRefNodeList_new (), yyvsp[0].traitref); ; - break;} -case 78: -#line 572 "llgrammar.y" -{ yyval.traitreflist = traitRefNodeList_add (yyvsp[-2].traitreflist, yyvsp[0].traitref); ; - break;} -case 79: -#line 576 "llgrammar.y" -{ yyval.traitref = makeTraitRefNode (ltokenList_singleton (yyvsp[0].ltok), (renamingNode)0); ; - break;} -case 80: -#line 578 "llgrammar.y" -{ yyval.traitref = makeTraitRefNode (ltokenList_singleton (yyvsp[-3].ltok), yyvsp[-1].renaming); ; - break;} -case 81: -#line 580 "llgrammar.y" -{ yyval.traitref = makeTraitRefNode (yyvsp[-1].ltokenList, (renamingNode)0); ; - break;} -case 82: -#line 582 "llgrammar.y" -{ yyval.traitref = makeTraitRefNode (yyvsp[-4].ltokenList, yyvsp[-1].renaming); ; - break;} -case 83: -#line 585 "llgrammar.y" -{ yyval.ltokenList = ltokenList_singleton (yyvsp[0].ltok); ; - break;} -case 84: -#line 586 "llgrammar.y" -{ yyval.ltokenList = ltokenList_push (yyvsp[-2].ltokenList, yyvsp[0].ltok); ; - break;} -case 85: -#line 590 "llgrammar.y" -{ yyval.renaming = makeRenamingNode (typeNameNodeList_new (), yyvsp[0].replacelist); ; - break;} -case 86: -#line 592 "llgrammar.y" -{ yyval.renaming = makeRenamingNode (yyvsp[0].namelist, replaceNodeList_new ()); ; - break;} -case 87: -#line 593 "llgrammar.y" -{ yyval.renaming = makeRenamingNode (yyvsp[-2].namelist, yyvsp[0].replacelist); ; - break;} -case 88: -#line 597 "llgrammar.y" -{ yyval.namelist = typeNameNodeList_add (typeNameNodeList_new (), yyvsp[0].typname); ; - break;} -case 89: -#line 598 "llgrammar.y" -{ yyval.namelist = typeNameNodeList_add (yyvsp[-2].namelist, yyvsp[0].typname); ; - break;} -case 90: -#line 602 "llgrammar.y" -{ yyval.replacelist = replaceNodeList_add (replaceNodeList_new (), yyvsp[0].replace); ; - break;} -case 91: -#line 603 "llgrammar.y" -{ yyval.replacelist = replaceNodeList_add (yyvsp[-2].replacelist, yyvsp[0].replace); ; - break;} -case 92: -#line 606 "llgrammar.y" -{ yyval.replace = makeReplaceNode (yyvsp[-1].ltok, yyvsp[-2].typname, TRUE, yyvsp[0].ltok, NULL, NULL); ; - break;} -case 93: -#line 607 "llgrammar.y" -{ yyval.replace = makeReplaceNameNode (yyvsp[-1].ltok, yyvsp[-2].typname, yyvsp[0].name); ; - break;} -case 94: -#line 608 "llgrammar.y" -{ yyval.replace = makeReplaceNode (yyvsp[-2].ltok, yyvsp[-3].typname, FALSE, ltoken_undefined, - yyvsp[-1].name, yyvsp[0].signature); ; - break;} -case 95: -#line 612 "llgrammar.y" -{ yyval.name = makeNameNodeId (yyvsp[0].ltok); ; - break;} -case 96: -#line 613 "llgrammar.y" -{ yyval.name = makeNameNodeForm (yyvsp[0].opform); ; - break;} -case 99: -#line 621 "llgrammar.y" -{ yyval.initdecls = initDeclNodeList_add (initDeclNodeList_new (), yyvsp[0].initdecl); ; - break;} -case 100: -#line 623 "llgrammar.y" -{ yyval.initdecls = initDeclNodeList_add (yyvsp[-2].initdecls, yyvsp[0].initdecl); ; - break;} -case 101: -#line 626 "llgrammar.y" -{ yyval.initdecl = makeInitDeclNode (yyvsp[0].declare, (termNode)0); ; - break;} -case 102: -#line 627 "llgrammar.y" -{ yyval.initdecl = makeInitDeclNode (yyvsp[-2].declare, yyvsp[0].term); ; - break;} -case 103: -#line 631 "llgrammar.y" -{ yyval.globals = varDeclarationNodeList_new (); ; - break;} -case 104: -#line 633 "llgrammar.y" -{ varDeclarationNodeList_addh (yyvsp[-1].globals, yyvsp[0].vardeclaration); yyval.globals = yyvsp[-1].globals; ; - break;} -case 105: -#line 636 "llgrammar.y" -{ yyval.vardeclaration = makeVarDeclarationNode (yyvsp[-2].lcltypespec, yyvsp[-1].initdecls, TRUE, FALSE); ; - break;} -case 106: -#line 637 "llgrammar.y" -{ yyval.vardeclaration = makeInternalStateNode (); ; - break;} -case 107: -#line 638 "llgrammar.y" -{ yyval.vardeclaration = makeFileSystemNode (); ; - break;} -case 108: -#line 641 "llgrammar.y" -{ yyval.vardeclarationlist = varDeclarationNodeList_new (); ; - break;} -case 109: -#line 642 "llgrammar.y" -{ varDeclarationNodeList_addh (yyvsp[-1].vardeclarationlist, yyvsp[0].vardeclaration); yyval.vardeclarationlist = yyvsp[-1].vardeclarationlist; ; - break;} -case 110: -#line 646 "llgrammar.y" -{ yyval.vardeclaration = makeVarDeclarationNode (yyvsp[-2].lcltypespec, yyvsp[-1].initdecls, FALSE, TRUE); ; - break;} -case 111: -#line 649 "llgrammar.y" -{ yyval.letdecls = letDeclNodeList_new (); ; - break;} -case 112: -#line 650 "llgrammar.y" -{ yyval.letdecls = yyvsp[-1].letdecls; ; - break;} -case 113: -#line 653 "llgrammar.y" -{ yyval.letdecls = letDeclNodeList_add (letDeclNodeList_new (), yyvsp[0].letdecl); ; - break;} -case 114: -#line 654 "llgrammar.y" -{ yyval.letdecls = letDeclNodeList_add (yyvsp[-2].letdecls, yyvsp[0].letdecl); ; - break;} -case 115: -#line 657 "llgrammar.y" -{ yyval.letdecl = makeLetDeclNode (yyvsp[-4].ltok, yyvsp[-2].lcltypespec, yyvsp[0].term); ; - break;} -case 116: -#line 658 "llgrammar.y" -{ yyval.letdecl = makeLetDeclNode (yyvsp[-2].ltok, (lclTypeSpecNode)0, yyvsp[0].term); ; - break;} -case 118: -#line 663 "llgrammar.y" -{ yyval.lclpredicate = (lclPredicateNode)0; ; - break;} -case 119: -#line 664 "llgrammar.y" -{ checkLclPredicate (yyvsp[-2].ltok, yyvsp[-1].lclpredicate); yyval.lclpredicate = makeChecksNode (yyvsp[-2].ltok, yyvsp[-1].lclpredicate); ; - break;} -case 120: -#line 667 "llgrammar.y" -{ yyval.lclpredicate = (lclPredicateNode)0; ; - break;} -case 121: -#line 668 "llgrammar.y" -{ checkLclPredicate (yyvsp[-2].ltok, yyvsp[-1].lclpredicate); yyval.lclpredicate = makeRequiresNode (yyvsp[-2].ltok, yyvsp[-1].lclpredicate);; - break;} -case 122: -#line 671 "llgrammar.y" -{ yyval.modify = (modifyNode)0; ; - break;} -case 123: -#line 672 "llgrammar.y" -{ yyval.modify = makeModifyNodeSpecial (yyvsp[-2].ltok, TRUE); ; - break;} -case 124: -#line 673 "llgrammar.y" -{ yyval.modify = makeModifyNodeSpecial (yyvsp[-2].ltok, FALSE); ; - break;} -case 125: -#line 674 "llgrammar.y" -{ yyval.modify = makeModifyNodeRef (yyvsp[-2].ltok, yyvsp[-1].storereflist); ; - break;} -case 126: -#line 677 "llgrammar.y" -{ yyval.storereflist = storeRefNodeList_add (storeRefNodeList_new (), yyvsp[0].storeref); ; - break;} -case 127: -#line 678 "llgrammar.y" -{ yyval.storereflist = storeRefNodeList_add (yyvsp[-2].storereflist, yyvsp[0].storeref); ; - break;} -case 128: -#line 681 "llgrammar.y" -{ yyval.storeref = makeStoreRefNodeTerm (yyvsp[0].term); ; - break;} -case 129: -#line 682 "llgrammar.y" -{ yyval.storeref = makeStoreRefNodeType (yyvsp[0].lcltypespec, FALSE); ; - break;} -case 130: -#line 683 "llgrammar.y" -{ yyval.storeref = makeStoreRefNodeType (yyvsp[0].lcltypespec, TRUE); ; - break;} -case 131: -#line 684 "llgrammar.y" -{ yyval.storeref = makeStoreRefNodeInternal (); ; - break;} -case 132: -#line 685 "llgrammar.y" -{ yyval.storeref = makeStoreRefNodeSystem (); ; - break;} -case 133: -#line 688 "llgrammar.y" -{ yyval.lclpredicate = (lclPredicateNode)0; ; - break;} -case 134: -#line 689 "llgrammar.y" -{ checkLclPredicate (yyvsp[-2].ltok, yyvsp[-1].lclpredicate); yyval.lclpredicate = makeEnsuresNode (yyvsp[-2].ltok, yyvsp[-1].lclpredicate);; - break;} -case 135: -#line 692 "llgrammar.y" -{ yyval.lclpredicate = (lclPredicateNode)0; ; - break;} -case 136: -#line 693 "llgrammar.y" -{ checkLclPredicate (yyvsp[-2].ltok, yyvsp[-1].lclpredicate); yyval.lclpredicate = makeIntraClaimNode (yyvsp[-2].ltok, yyvsp[-1].lclpredicate);; - break;} -case 137: -#line 696 "llgrammar.y" -{ yyval.paramlist = paramNodeList_new (); ; - break;} -case 138: -#line 697 "llgrammar.y" -{ yyval.paramlist = yyvsp[0].paramlist; ; - break;} -case 140: -#line 701 "llgrammar.y" -{ yyval.paramlist = paramNodeList_add (paramNodeList_new (), paramNode_elipsis ()); ; - break;} -case 141: -#line 702 "llgrammar.y" -{ yyval.paramlist = paramNodeList_add (yyvsp[-2].paramlist, paramNode_elipsis ()); ; - break;} -case 142: -#line 705 "llgrammar.y" -{ yyval.paramlist = paramNodeList_single (yyvsp[0].param); ; - break;} -case 143: -#line 706 "llgrammar.y" -{ yyval.paramlist = paramNodeList_add (yyvsp[-2].paramlist, yyvsp[0].param); ; - break;} -case 144: -#line 709 "llgrammar.y" -{ yyval.program = (programNode)0; ; - break;} -case 145: -#line 710 "llgrammar.y" -{ yyval.program = yyvsp[-1].program; ; - break;} -case 146: -#line 711 "llgrammar.y" -{ yyval.program = yyvsp[-2].program; ; - break;} -case 147: -#line 714 "llgrammar.y" -{ yyval.program = makeProgramNode (yyvsp[0].stmt); ; - break;} -case 148: -#line 717 "llgrammar.y" -{ yyval.program = yyvsp[-1].program; yyval.program->wrapped = yyval.program->wrapped + 1; ; - break;} -case 149: -#line 719 "llgrammar.y" -{ programNodeList x = programNodeList_new (); - programNodeList_addh (x, yyvsp[-1].program); - yyval.program = makeProgramNodeAction (x, ACT_ITER); - ; - break;} -case 150: -#line 724 "llgrammar.y" -{ programNodeList x = programNodeList_new (); - programNodeList_addh (x, yyvsp[-2].program); - programNodeList_addh (x, yyvsp[0].program); - yyval.program = makeProgramNodeAction (x, ACT_ALTERNATE); - ; - break;} -case 151: -#line 730 "llgrammar.y" -{ programNodeList x = programNodeList_new (); - programNodeList_addh (x, yyvsp[-2].program); - programNodeList_addh (x, yyvsp[0].program); - yyval.program = makeProgramNodeAction (x, ACT_SEQUENCE); - ; - break;} -case 152: -#line 738 "llgrammar.y" -{ yyval.stmt = makeStmtNode (ltoken_undefined, yyvsp[-3].ltok, yyvsp[-1].termlist); ; - break;} -case 153: -#line 740 "llgrammar.y" -{ yyval.stmt = makeStmtNode (ltoken_undefined, yyvsp[-2].ltok, termNodeList_new ()); ; - break;} -case 154: -#line 742 "llgrammar.y" -{ yyval.stmt = makeStmtNode (yyvsp[-4].ltok, yyvsp[-2].ltok, termNodeList_new ()); ; - break;} -case 155: -#line 744 "llgrammar.y" -{ yyval.stmt = makeStmtNode (yyvsp[-5].ltok, yyvsp[-3].ltok, yyvsp[-1].termlist); ; - break;} -case 156: -#line 747 "llgrammar.y" -{ yyval.termlist = termNodeList_push (termNodeList_new (), yyvsp[0].term); ; - break;} -case 157: -#line 748 "llgrammar.y" -{ yyval.termlist = termNodeList_push (yyvsp[-2].termlist, yyvsp[0].term); ; - break;} -case 159: -#line 752 "llgrammar.y" -{ yyval.term = makeSimpleTermNode (yyvsp[0].ltok); ; - break;} -case 160: -#line 753 "llgrammar.y" -{ yyval.term = makePrefixTermNode (yyvsp[-1].ltok, yyvsp[0].term); ; - break;} -case 161: -#line 754 "llgrammar.y" -{ yyval.term = makePostfixTermNode2 (yyvsp[-1].term, yyvsp[0].ltok); ; - break;} -case 162: -#line 755 "llgrammar.y" -{ yyval.term = makeInfixTermNode (yyvsp[-2].term, yyvsp[-1].ltok, yyvsp[0].term); ; - break;} -case 163: -#line 756 "llgrammar.y" -{ yyval.term = yyvsp[-1].term; yyval.term->wrapped = yyval.term->wrapped + 1; ; - break;} -case 164: -#line 758 "llgrammar.y" -{ yyval.term = makeOpCallTermNode (yyvsp[-2].ltok, yyvsp[-1].ltok, termNodeList_new (), yyvsp[0].ltok); ; - break;} -case 165: -#line 760 "llgrammar.y" -{ yyval.term = makeOpCallTermNode (yyvsp[-3].ltok, yyvsp[-2].ltok, yyvsp[-1].termlist, yyvsp[0].ltok); ; - break;} -case 166: -#line 763 "llgrammar.y" -{ yyval.abstbody = (abstBodyNode)0; ; - break;} -case 167: -#line 764 "llgrammar.y" -{ yyval.abstbody = makeAbstBodyNode (yyvsp[-2].ltok, yyvsp[-1].fcns); ; - break;} -case 168: -#line 765 "llgrammar.y" -{ yyval.abstbody = makeAbstBodyNode2 (yyvsp[-3].ltok, yyvsp[-2].ltokenList); ; - break;} -case 169: -#line 766 "llgrammar.y" -{ yyval.abstbody = (abstBodyNode)0; ; - break;} -case 170: -#line 769 "llgrammar.y" -{ yyval.fcns = fcnNodeList_new (); ; - break;} -case 171: -#line 770 "llgrammar.y" -{ yyval.fcns = fcnNodeList_add (yyvsp[-1].fcns, yyvsp[0].fcn); ; - break;} -case 172: -#line 773 "llgrammar.y" -{ yyval.lclpredicate = (lclPredicateNode)0; ; - break;} -case 174: -#line 777 "llgrammar.y" -{ g_inTypeDef = FALSE; ; - break;} -case 175: -#line 778 "llgrammar.y" -{ yyvsp[-1].lclpredicate->tok = yyvsp[-5].ltok; yyvsp[-1].lclpredicate->kind = LPD_CONSTRAINT; - checkLclPredicate (yyvsp[-5].ltok, yyvsp[-1].lclpredicate); - yyval.lclpredicate = yyvsp[-1].lclpredicate; - symtable_exitScope (g_symtab); - g_inTypeDef = TRUE; - ; - break;} -case 176: -#line 786 "llgrammar.y" -{ yyval.declaratorinvs = declaratorInvNodeList_add (declaratorInvNodeList_new (), yyvsp[0].declaratorinv); ; - break;} -case 177: -#line 788 "llgrammar.y" -{ yyval.declaratorinvs = declaratorInvNodeList_add (yyvsp[-2].declaratorinvs, yyvsp[0].declaratorinv); ; - break;} -case 178: -#line 791 "llgrammar.y" -{ declareForwardType (yyvsp[0].declare); ; - break;} -case 179: -#line 792 "llgrammar.y" -{ yyval.declaratorinv = makeDeclaratorInvNode (yyvsp[-2].declare, yyvsp[0].abstbody); ; - break;} -case 180: -#line 795 "llgrammar.y" -{ yyval.abstbody = (abstBodyNode)0; ; - break;} -case 181: -#line 796 "llgrammar.y" -{ yyval.abstbody = makeExposedBodyNode (yyvsp[-2].ltok, yyvsp[-1].lclpredicate); ; - break;} -case 182: -#line 799 "llgrammar.y" -{ yyval.ltok = yyvsp[0].ltok; ltoken_setIntField (yyval.ltok, fixBits (TS_VOID, 0)); ; - break;} -case 183: -#line 800 "llgrammar.y" -{ yyval.ltok = yyvsp[0].ltok; ltoken_setIntField (yyval.ltok, fixBits (TS_CHAR, 0)); ; - break;} -case 184: -#line 801 "llgrammar.y" -{ yyval.ltok = yyvsp[0].ltok; ltoken_setIntField (yyval.ltok, fixBits (TS_DOUBLE, 0)); ; - break;} -case 185: -#line 802 "llgrammar.y" -{ yyval.ltok = yyvsp[0].ltok; ltoken_setIntField (yyval.ltok, fixBits (TS_FLOAT, 0)); ; - break;} -case 186: -#line 803 "llgrammar.y" -{ yyval.ltok = yyvsp[0].ltok; ltoken_setIntField (yyval.ltok, fixBits (TS_INT, 0)); ; - break;} -case 187: -#line 804 "llgrammar.y" -{ yyval.ltok = yyvsp[0].ltok; ltoken_setIntField (yyval.ltok, fixBits (TS_LONG, 0)); ; - break;} -case 188: -#line 805 "llgrammar.y" -{ yyval.ltok = yyvsp[0].ltok; ltoken_setIntField (yyval.ltok, fixBits (TS_SHORT, 0)); ; - break;} -case 189: -#line 806 "llgrammar.y" -{ yyval.ltok = yyvsp[0].ltok; ltoken_setIntField (yyval.ltok, fixBits (TS_SIGNED, 0)); ; - break;} -case 190: -#line 807 "llgrammar.y" -{ yyval.ltok = yyvsp[0].ltok; ltoken_setIntField (yyval.ltok, fixBits (TS_UNSIGNED, 0)); ; - break;} -case 191: -#line 808 "llgrammar.y" -{ yyval.ltok = yyvsp[0].ltok; ltoken_setIntField (yyval.ltok, fixBits (TS_UNKNOWN, 0)); ; - break;} -case 192: -#line 816 "llgrammar.y" -{ yyval.ctypes = makeCTypesNode ((CTypesNode)0, yyvsp[0].ltok); ; - break;} -case 193: -#line 817 "llgrammar.y" -{ yyval.ctypes = makeCTypesNode (yyvsp[-1].ctypes, yyvsp[0].ltok); ; - break;} -case 194: -#line 823 "llgrammar.y" -{ yyval.ctypes = makeTypeSpecifier (yyvsp[0].ltok); ; - break;} -case 195: -#line 825 "llgrammar.y" -{ yyval.ctypes = yyvsp[0].ctypes; yyval.ctypes->sort = sort_lookupName (lclctype_toSort (yyvsp[0].ctypes->intfield)); ; - break;} -case 196: -#line 830 "llgrammar.y" -{ yyval.typequal = qual_createOut (); ; - break;} -case 197: -#line 831 "llgrammar.y" -{ yyval.typequal = qual_createUnused (); ; - break;} -case 198: -#line 832 "llgrammar.y" -{ yyval.typequal = qual_createSef (); ; - break;} -case 199: -#line 833 "llgrammar.y" -{ yyval.typequal = qual_createOnly (); ; - break;} -case 200: -#line 834 "llgrammar.y" -{ yyval.typequal = qual_createOwned (); ; - break;} -case 201: -#line 835 "llgrammar.y" -{ yyval.typequal = qual_createDependent (); ; - break;} -case 202: -#line 836 "llgrammar.y" -{ yyval.typequal = qual_createKeep (); ; - break;} -case 203: -#line 837 "llgrammar.y" -{ yyval.typequal = qual_createKept (); ; - break;} -case 204: -#line 838 "llgrammar.y" -{ yyval.typequal = qual_createObserver (); ; - break;} -case 205: -#line 839 "llgrammar.y" -{ yyval.typequal = qual_createExits (); ; - break;} -case 206: -#line 840 "llgrammar.y" -{ yyval.typequal = qual_createMayExit (); ; - break;} -case 207: -#line 841 "llgrammar.y" -{ yyval.typequal = qual_createTrueExit (); ; - break;} -case 208: -#line 842 "llgrammar.y" -{ yyval.typequal = qual_createFalseExit (); ; - break;} -case 209: -#line 843 "llgrammar.y" -{ yyval.typequal = qual_createNeverExit (); ; - break;} -case 210: -#line 844 "llgrammar.y" -{ yyval.typequal = qual_createOnly (); ; - break;} -case 211: -#line 845 "llgrammar.y" -{ yyval.typequal = qual_createShared (); ; - break;} -case 212: -#line 846 "llgrammar.y" -{ yyval.typequal = qual_createUnique (); ; - break;} -case 213: -#line 847 "llgrammar.y" -{ yyval.typequal = qual_createChecked (); ; - break;} -case 214: -#line 848 "llgrammar.y" -{ yyval.typequal = qual_createUnchecked (); ; - break;} -case 215: -#line 849 "llgrammar.y" -{ yyval.typequal = qual_createCheckedStrict (); ; - break;} -case 216: -#line 850 "llgrammar.y" -{ yyval.typequal = qual_createTrueNull (); ; - break;} -case 217: -#line 851 "llgrammar.y" -{ yyval.typequal = qual_createFalseNull (); ; - break;} -case 218: -#line 852 "llgrammar.y" -{ yyval.typequal = qual_createRelNull (); ; - break;} -case 219: -#line 853 "llgrammar.y" -{ yyval.typequal = qual_createRelDef (); ; - break;} -case 220: -#line 854 "llgrammar.y" -{ yyval.typequal = qual_createRefCounted (); ; - break;} -case 221: -#line 855 "llgrammar.y" -{ yyval.typequal = qual_createRefs (); ; - break;} -case 222: -#line 856 "llgrammar.y" -{ yyval.typequal = qual_createNewRef (); ; - break;} -case 223: -#line 857 "llgrammar.y" -{ yyval.typequal = qual_createKillRef (); ; - break;} -case 224: -#line 858 "llgrammar.y" -{ yyval.typequal = qual_createNull (); ; - break;} -case 225: -#line 859 "llgrammar.y" -{ yyval.typequal = qual_createNotNull (); ; - break;} -case 226: -#line 860 "llgrammar.y" -{ yyval.typequal = qual_createReturned (); ; - break;} -case 227: -#line 861 "llgrammar.y" -{ yyval.typequal = qual_createExposed (); ; - break;} -case 228: -#line 862 "llgrammar.y" -{ yyval.typequal = qual_createPartial (); ; - break;} -case 229: -#line 863 "llgrammar.y" -{ yyval.typequal = qual_createNullTerminated () ; ; - break;} -case 230: -#line 864 "llgrammar.y" -{ yyval.typequal = qual_createUndef (); ; - break;} -case 231: -#line 865 "llgrammar.y" -{ yyval.typequal = qual_createKilled (); ; - break;} -case 232: -#line 869 "llgrammar.y" -{ yyval.lcltypespec = makeLclTypeSpecNodeType (yyvsp[0].ctypes); ; - break;} -case 233: -#line 871 "llgrammar.y" -{ yyval.lcltypespec = makeLclTypeSpecNodeSU (yyvsp[0].structorunion); ; - break;} -case 234: -#line 873 "llgrammar.y" -{ yyval.lcltypespec = makeLclTypeSpecNodeEnum (yyvsp[0].enumspec); ; - break;} -case 235: -#line 875 "llgrammar.y" -{ yyval.lcltypespec = lclTypeSpecNode_addQual (yyvsp[0].lcltypespec, yyvsp[-1].typequal); ; - break;} -case 236: -#line 877 "llgrammar.y" -{ yyval.lcltypespec = makeLclTypeSpecNodeConj (yyvsp[-3].lcltypespec, yyvsp[-1].lcltypespec); ; - break;} -case 238: -#line 887 "llgrammar.y" -{ llassert (lclTypeSpecNode_isDefined (yyvsp[-1].lcltypespec)); - yyvsp[-1].lcltypespec->pointers = yyvsp[0].count; yyval.lcltypespec = yyvsp[-1].lcltypespec; ; - break;} -case 239: -#line 891 "llgrammar.y" -{ yyval.count = 1; ; - break;} -case 240: -#line 892 "llgrammar.y" -{ yyval.count = yyvsp[-1].count + 1; ; - break;} -case 241: -#line 896 "llgrammar.y" -{ (void) checkAndEnterTag (TAG_FWDSTRUCT, ltoken_copy (yyvsp[0].ltok)); ; - break;} -case 242: -#line 898 "llgrammar.y" -{ yyval.structorunion = makestrOrUnionNode (yyvsp[-5].ltok, SU_STRUCT, yyvsp[-4].ltok, yyvsp[-1].structdecls); ; - break;} -case 243: -#line 900 "llgrammar.y" -{ (void) checkAndEnterTag (TAG_FWDUNION, ltoken_copy (yyvsp[0].ltok)); ; - break;} -case 244: -#line 902 "llgrammar.y" -{ yyval.structorunion = makestrOrUnionNode (yyvsp[-5].ltok, SU_UNION, yyvsp[-4].ltok, yyvsp[-1].structdecls); ; - break;} -case 245: -#line 904 "llgrammar.y" -{ yyval.structorunion = makeForwardstrOrUnionNode (yyvsp[-1].ltok, SU_STRUCT, yyvsp[0].ltok); ; - break;} -case 246: -#line 906 "llgrammar.y" -{ yyval.structorunion = makeForwardstrOrUnionNode (yyvsp[-1].ltok, SU_UNION, yyvsp[0].ltok); ; - break;} -case 247: -#line 909 "llgrammar.y" -{ yyval.ltok = ltoken_undefined; ; - break;} -case 249: -#line 913 "llgrammar.y" -{ yyval.structdecls = stDeclNodeList_add (stDeclNodeList_new (), yyvsp[0].structdecl); ; - break;} -case 250: -#line 914 "llgrammar.y" -{ yyval.structdecls = stDeclNodeList_add (yyvsp[-1].structdecls, yyvsp[0].structdecl); ; - break;} -case 251: -#line 919 "llgrammar.y" -{ yyval.structdecl = makestDeclNode (yyvsp[-2].lcltypespec, yyvsp[-1].declarelist); ; - break;} -case 252: -#line 923 "llgrammar.y" -{ yyval.declarelist = declaratorNodeList_add (declaratorNodeList_new (), yyvsp[0].declare); ; - break;} -case 253: -#line 925 "llgrammar.y" -{ yyval.declarelist = declaratorNodeList_add (yyvsp[-2].declarelist, yyvsp[0].declare); ; - break;} -case 254: -#line 928 "llgrammar.y" -{ ; ; - break;} -case 255: -#line 929 "llgrammar.y" -{ ; ; - break;} -case 256: -#line 933 "llgrammar.y" -{ yyval.enumspec = makeEnumSpecNode (yyvsp[-5].ltok, yyvsp[-4].ltok, yyvsp[-2].ltokenList); ; - break;} -case 257: -#line 935 "llgrammar.y" -{ yyval.enumspec = makeEnumSpecNode2 (yyvsp[-1].ltok, yyvsp[0].ltok); ; - break;} -case 258: -#line 938 "llgrammar.y" -{ yyval.ltokenList = ltokenList_singleton (yyvsp[0].ltok); ; - break;} -case 259: -#line 939 "llgrammar.y" -{ yyval.ltokenList = ltokenList_push (yyvsp[-2].ltokenList, yyvsp[0].ltok); ; - break;} -case 260: -#line 949 "llgrammar.y" -{ yyval.declare = makeDeclaratorNode (yyvsp[0].typeexpr); ; - break;} -case 261: -#line 950 "llgrammar.y" -{ yyval.declare = makeDeclaratorNode (yyvsp[0].typeexpr); ; - break;} -case 262: -#line 953 "llgrammar.y" -{ yyval.typeexpr = makeTypeExpr (yyvsp[0].ltok); ; - break;} -case 263: -#line 954 "llgrammar.y" -{ yyval.typeexpr = yyvsp[-1].typeexpr; yyval.typeexpr->wrapped = yyval.typeexpr->wrapped + 1; ; - break;} -case 264: -#line 955 "llgrammar.y" -{ yyval.typeexpr = makePointerNode (yyvsp[-1].ltok, yyvsp[0].typeexpr); ; - break;} -case 265: -#line 956 "llgrammar.y" -{ yyval.typeexpr = makeArrayNode (yyvsp[-1].typeexpr, yyvsp[0].array); ; - break;} -case 266: -#line 957 "llgrammar.y" -{ yyval.typeexpr = makeFunctionNode (yyvsp[-2].typeexpr, paramNodeList_new ()); ; - break;} -case 267: -#line 958 "llgrammar.y" -{ yyval.typeexpr = makeFunctionNode (yyvsp[-3].typeexpr, yyvsp[-1].paramlist); ; - break;} -case 268: -#line 961 "llgrammar.y" -{ yyval.typeexpr = makeTypeExpr (yyvsp[0].ltok); ; - break;} -case 269: -#line 962 "llgrammar.y" -{ yyval.typeexpr = yyvsp[-1].typeexpr; yyval.typeexpr->wrapped = yyval.typeexpr->wrapped + 1; ; - break;} -case 270: -#line 963 "llgrammar.y" -{ yyval.typeexpr = makePointerNode (yyvsp[-1].ltok, yyvsp[0].typeexpr); ; - break;} -case 271: -#line 964 "llgrammar.y" -{ yyval.typeexpr = makeArrayNode (yyvsp[-1].typeexpr, yyvsp[0].array); ; - break;} -case 272: -#line 965 "llgrammar.y" -{ yyval.typeexpr = makeFunctionNode (yyvsp[-2].typeexpr, paramNodeList_new ()); ; - break;} -case 273: -#line 966 "llgrammar.y" -{ yyval.typeexpr = makeFunctionNode (yyvsp[-3].typeexpr, yyvsp[-1].paramlist); ; - break;} -case 274: -#line 975 "llgrammar.y" -{ yyval.typeexpr = makeTypeExpr (yyvsp[0].ltok); ; - break;} -case 275: -#line 976 "llgrammar.y" -{ yyval.typeexpr = makePointerNode (yyvsp[-1].ltok, yyvsp[0].typeexpr); ; - break;} -case 276: -#line 977 "llgrammar.y" -{ yyval.typeexpr = makeArrayNode (yyvsp[-1].typeexpr, yyvsp[0].array); ; - break;} -case 277: -#line 978 "llgrammar.y" -{ yyval.typeexpr = makeFunctionNode (yyvsp[-2].typeexpr, paramNodeList_new ()); ; - break;} -case 278: -#line 979 "llgrammar.y" -{ yyval.typeexpr = makeFunctionNode (yyvsp[-3].typeexpr, yyvsp[-1].paramlist); ; - break;} -case 279: -#line 985 "llgrammar.y" -{ yyval.param = makeParamNode (yyvsp[-1].lcltypespec, yyvsp[0].typeexpr); ; - break;} -case 280: -#line 986 "llgrammar.y" -{ yyval.param = makeParamNode (yyvsp[-1].lcltypespec, yyvsp[0].typeexpr); ; - break;} -case 281: -#line 987 "llgrammar.y" -{ yyval.param = makeParamNode (yyvsp[-1].lcltypespec, yyvsp[0].abstDecl); ; - break;} -case 282: -#line 997 "llgrammar.y" -{ yyval.typname = makeTypeNameNode (FALSE, yyvsp[-1].lcltypespec, yyvsp[0].abstDecl); ; - break;} -case 283: -#line 998 "llgrammar.y" -{ yyval.typname = makeTypeNameNode (TRUE, yyvsp[-1].lcltypespec, yyvsp[0].abstDecl); ; - break;} -case 284: -#line 999 "llgrammar.y" -{ yyval.typname = makeTypeNameNodeOp (yyvsp[0].opform); ; - break;} -case 285: -#line 1004 "llgrammar.y" -{ yyval.abstDecl = (abstDeclaratorNode)0; ; - break;} -case 286: -#line 1005 "llgrammar.y" -{ yyval.abstDecl = (abstDeclaratorNode)yyvsp[0].typeexpr; ; - break;} -case 287: -#line 1008 "llgrammar.y" -{ yyval.typeexpr = yyvsp[-1].typeexpr; yyval.typeexpr->wrapped = yyval.typeexpr->wrapped + 1; ; - break;} -case 288: -#line 1009 "llgrammar.y" -{ yyval.typeexpr = makePointerNode (yyvsp[-1].ltok, yyvsp[0].typeexpr); ; - break;} -case 289: -#line 1010 "llgrammar.y" -{ yyval.typeexpr = makePointerNode (yyvsp[0].ltok, (typeExpr)0); ; - break;} -case 290: -#line 1011 "llgrammar.y" -{ yyval.typeexpr = makeArrayNode ((typeExpr)0, yyvsp[0].array); ; - break;} -case 291: -#line 1012 "llgrammar.y" -{ yyval.typeexpr = makeArrayNode (yyvsp[-1].typeexpr, yyvsp[0].array); ; - break;} -case 292: -#line 1013 "llgrammar.y" -{ yyval.typeexpr = makeFunctionNode (yyvsp[-2].typeexpr, paramNodeList_new ()); ; - break;} -case 293: -#line 1014 "llgrammar.y" -{ yyval.typeexpr = makeFunctionNode ((typeExpr)0, yyvsp[-1].paramlist); ; - break;} -case 294: -#line 1015 "llgrammar.y" -{ yyval.typeexpr = makeFunctionNode (yyvsp[-3].typeexpr, yyvsp[-1].paramlist); ; - break;} -case 295: -#line 1018 "llgrammar.y" -{ yyval.array = makeArrayQualNode (yyvsp[-1].ltok, (termNode)0); ; - break;} -case 296: -#line 1019 "llgrammar.y" -{ yyval.array = makeArrayQualNode (yyvsp[-2].ltok, yyvsp[-1].term); ; - break;} -case 297: -#line 1023 "llgrammar.y" -{ yyval.opform = makeOpFormNode (yyvsp[-5].ltok, OPF_IF, opFormUnion_createMiddle (0), ltoken_undefined); ; - break;} -case 298: -#line 1025 "llgrammar.y" -{ yyval.opform = makeOpFormNode (yyvsp[0].ltok, OPF_ANYOP, opFormUnion_createAnyOp (yyvsp[0].ltok), ltoken_undefined); ; - break;} -case 299: -#line 1027 "llgrammar.y" -{ yyval.opform = makeOpFormNode (yyvsp[-1].ltok, OPF_MANYOP, opFormUnion_createAnyOp (yyvsp[0].ltok), ltoken_undefined); ; - break;} -case 300: -#line 1029 "llgrammar.y" -{ yyval.opform = makeOpFormNode (yyvsp[-1].ltok, OPF_ANYOPM, opFormUnion_createAnyOp (yyvsp[-1].ltok), ltoken_undefined); ; - break;} -case 301: -#line 1031 "llgrammar.y" -{ yyval.opform = makeOpFormNode (yyvsp[-2].ltok, OPF_MANYOPM, - opFormUnion_createAnyOp (yyvsp[-1].ltok), ltoken_undefined); ; - break;} -case 302: -#line 1034 "llgrammar.y" -{ yyval.opform = makeOpFormNode (yyvsp[-2].ltok, OPF_MIDDLE, opFormUnion_createMiddle (yyvsp[-1].count), yyvsp[0].ltok); ; - break;} -case 303: -#line 1036 "llgrammar.y" -{ yyval.opform = makeOpFormNode (yyvsp[-3].ltok, OPF_MMIDDLE, opFormUnion_createMiddle (yyvsp[-1].count), yyvsp[0].ltok); ; - break;} -case 304: -#line 1038 "llgrammar.y" -{ yyval.opform = makeOpFormNode (yyvsp[-3].ltok, OPF_MIDDLEM, opFormUnion_createMiddle (yyvsp[-2].count), yyvsp[-1].ltok); ; - break;} -case 305: -#line 1040 "llgrammar.y" -{ yyval.opform = makeOpFormNode (yyvsp[-3].ltok, OPF_MMIDDLEM, opFormUnion_createMiddle (yyvsp[-2].count), yyvsp[-1].ltok); ; - break;} -case 306: -#line 1042 "llgrammar.y" -{ yyval.opform = makeOpFormNode (yyvsp[-2].ltok, OPF_BMIDDLE, opFormUnion_createMiddle (yyvsp[-1].count), yyvsp[0].ltok); ; - break;} -case 307: -#line 1044 "llgrammar.y" -{ yyval.opform = makeOpFormNode (yyvsp[-3].ltok, OPF_BMIDDLEM, opFormUnion_createMiddle (yyvsp[-2].count), yyvsp[-1].ltok); ; - break;} -case 308: -#line 1052 "llgrammar.y" -{ yyval.opform = makeOpFormNode (yyvsp[-2].ltok, OPF_BMMIDDLE, opFormUnion_createMiddle (yyvsp[-1].count), yyvsp[0].ltok); ; - break;} -case 309: -#line 1054 "llgrammar.y" -{ yyval.opform = makeOpFormNode (yyvsp[-3].ltok, OPF_BMMIDDLEM, opFormUnion_createMiddle (yyvsp[-2].count), yyvsp[-1].ltok); ; - break;} -case 310: -#line 1056 "llgrammar.y" -{ yyval.opform = makeOpFormNode (yyvsp[-1].ltok, OPF_SELECT, - opFormUnion_createAnyOp (yyvsp[0].ltok), ltoken_undefined); ; - break;} -case 311: -#line 1059 "llgrammar.y" -{ yyval.opform = makeOpFormNode (yyvsp[-1].ltok, OPF_MAP, - opFormUnion_createAnyOp (yyvsp[0].ltok), ltoken_undefined); ; - break;} -case 312: -#line 1062 "llgrammar.y" -{ yyval.opform = makeOpFormNode (yyvsp[-2].ltok, OPF_MSELECT, - opFormUnion_createAnyOp (yyvsp[0].ltok), ltoken_undefined); ; - break;} -case 313: -#line 1065 "llgrammar.y" -{ yyval.opform = makeOpFormNode (yyvsp[-2].ltok, OPF_MMAP, - opFormUnion_createAnyOp (yyvsp[0].ltok), ltoken_undefined); ; - break;} -case 321: -#line 1082 "llgrammar.y" -{ yyval.count = 0; ; - break;} -case 323: -#line 1086 "llgrammar.y" -{ yyval.count = 1; ; - break;} -case 324: -#line 1087 "llgrammar.y" -{ yyval.count = yyvsp[-2].count + 1; ; - break;} -case 327: -#line 1094 "llgrammar.y" -{ yyval.signature = makesigNode (yyvsp[-3].ltok, yyvsp[-2].ltokenList, yyvsp[0].ltok); ; - break;} -case 328: -#line 1097 "llgrammar.y" -{ yyval.ltokenList = ltokenList_new (); ; - break;} -case 330: -#line 1101 "llgrammar.y" -{ yyval.ltokenList = ltokenList_singleton (yyvsp[0].ltok); ; - break;} -case 331: -#line 1102 "llgrammar.y" -{ yyval.ltokenList = ltokenList_push (yyvsp[-2].ltokenList, yyvsp[0].ltok); ; - break;} -case 332: -#line 1105 "llgrammar.y" -{ yyval.lclpredicate = makeLclPredicateNode (ltoken_undefined, yyvsp[0].term, LPD_PLAIN);; - break;} -case 333: -#line 1108 "llgrammar.y" -{ yyval.term = checkSort (yyvsp[0].term); ; - break;} -case 334: -#line 1115 "llgrammar.y" -{ yyval.term = makeIfTermNode (yyvsp[-5].ltok,yyvsp[-4].term,yyvsp[-3].ltok,yyvsp[-2].term,yyvsp[-1].ltok,yyvsp[0].term); ; - break;} -case 336: -#line 1117 "llgrammar.y" -{ yyval.term = makeInfixTermNode (yyvsp[-2].term, yyvsp[-1].ltok, yyvsp[0].term); ; - break;} -case 338: -#line 1123 "llgrammar.y" -{ checkLclPredicate (yyvsp[-2].ltok, yyvsp[-1].lclpredicate); yyval.term = makeQuantifiedTermNode (yyvsp[-3].quantifiers, yyvsp[-2].ltok, yyvsp[-1].lclpredicate->predicate, yyvsp[0].ltok); - symtable_exitScope (g_symtab); - ; - break;} -case 339: -#line 1127 "llgrammar.y" -{ yyval.term = makeInfixTermNode (yyvsp[-2].term, yyvsp[-1].ltok, yyvsp[0].term);; - break;} -case 340: -#line 1129 "llgrammar.y" -{ yyval.term = makeInfixTermNode (yyvsp[-2].term, yyvsp[-1].ltok, yyvsp[0].term);; - break;} -case 342: -#line 1133 "llgrammar.y" -{ yyval.term = makePostfixTermNode (yyvsp[-1].term, yyvsp[0].ltokenList); ; - break;} -case 343: -#line 1134 "llgrammar.y" -{ yyval.term = CollapseInfixTermNode (yyvsp[-1].term, yyvsp[0].termlist); ; - break;} -case 347: -#line 1142 "llgrammar.y" -{ yyval.term = makePrefixTermNode (yyvsp[-1].ltok, yyvsp[0].term); ; - break;} -case 348: -#line 1145 "llgrammar.y" -{ yyval.ltokenList = ltokenList_singleton (yyvsp[0].ltok); ; - break;} -case 349: -#line 1146 "llgrammar.y" -{ yyval.ltokenList = ltokenList_push (yyvsp[-1].ltokenList, yyvsp[0].ltok); ; - break;} -case 350: -#line 1149 "llgrammar.y" -{ yyval.termlist = pushInfixOpPartNode (termNodeList_new (), yyvsp[-1].ltok, yyvsp[0].term); ; - break;} -case 351: -#line 1150 "llgrammar.y" -{ yyval.termlist = pushInfixOpPartNode (yyvsp[-2].termlist, yyvsp[-1].ltok, yyvsp[0].term); ; - break;} -case 353: -#line 1154 "llgrammar.y" -{ yyval.term = computePossibleSorts (yyvsp[0].term); ; - break;} -case 354: -#line 1155 "llgrammar.y" -{ yyval.term = updateMatchedNode ((termNode)0, yyvsp[-1].term, yyvsp[0].term); ; - break;} -case 355: -#line 1156 "llgrammar.y" -{ yyval.term = updateMatchedNode (yyvsp[-1].term, yyvsp[0].term, (termNode)0); ; - break;} -case 356: -#line 1157 "llgrammar.y" -{ yyval.term = updateMatchedNode (yyvsp[-2].term, yyvsp[-1].term, yyvsp[0].term); ; - break;} -case 357: -#line 1158 "llgrammar.y" -{ yyval.term = computePossibleSorts (yyvsp[0].term); ; - break;} -case 358: -#line 1159 "llgrammar.y" -{ yyval.term = updateSqBracketedNode ((termNode)0, yyvsp[-1].term, yyvsp[0].term); ; - break;} -case 359: -#line 1162 "llgrammar.y" -{ yyval.term = yyvsp[-2].term; yyval.term->sort = sort_lookupName (ltoken_getText (yyvsp[0].ltok)); ; - break;} -case 361: -#line 1167 "llgrammar.y" -{ yyval.term = makeSqBracketedNode (yyvsp[-4].ltok, yyvsp[-3].termlist, yyvsp[-2].ltok); - yyval.term->given = sort_lookupName (ltoken_getText (yyvsp[0].ltok)); ; - break;} -case 362: -#line 1170 "llgrammar.y" -{ yyval.term = makeSqBracketedNode (yyvsp[-2].ltok, yyvsp[-1].termlist, yyvsp[0].ltok); ; - break;} -case 363: -#line 1172 "llgrammar.y" -{ yyval.term = makeSqBracketedNode (yyvsp[-3].ltok, termNodeList_new (), yyvsp[-2].ltok); - yyval.term->given = sort_lookupName (ltoken_getText (yyvsp[0].ltok)); - ; - break;} -case 364: -#line 1176 "llgrammar.y" -{ yyval.term = makeSqBracketedNode (yyvsp[-1].ltok, termNodeList_new (), yyvsp[0].ltok); ; - break;} -case 365: -#line 1179 "llgrammar.y" -{ yyval.term = makeMatchedNode (yyvsp[-2].ltok, yyvsp[-1].termlist, yyvsp[0].ltok); ; - break;} -case 366: -#line 1180 "llgrammar.y" -{ yyval.term = makeMatchedNode (yyvsp[-1].ltok, termNodeList_new (), yyvsp[0].ltok); ; - break;} -case 367: -#line 1183 "llgrammar.y" -{ yyval.termlist = termNodeList_push (termNodeList_new (), yyvsp[0].term); ; - break;} -case 368: -#line 1184 "llgrammar.y" -{ yyval.termlist = termNodeList_push (yyvsp[-2].termlist, yyvsp[0].term); ; - break;} -case 369: -#line 1188 "llgrammar.y" -{ yyval.term = yyvsp[-1].term; yyval.term->wrapped = yyval.term->wrapped + 1; ; - break;} -case 370: -#line 1190 "llgrammar.y" -{ yyval.term = makeSimpleTermNode (yyvsp[0].ltok); ; - break;} -case 371: -#line 1192 "llgrammar.y" -{ yyval.term = makeOpCallTermNode (yyvsp[-3].ltok, yyvsp[-2].ltok, yyvsp[-1].termlist, yyvsp[0].ltok); ; - break;} -case 373: -#line 1195 "llgrammar.y" -{ yyval.term = makePostfixTermNode2 (yyvsp[-1].term, yyvsp[0].ltok); ; - break;} -case 374: -#line 1197 "llgrammar.y" -{ ltoken_markOwned (yyvsp[0].ltok); yyval.term = makeSelectTermNode (yyvsp[-2].term, yyvsp[-1].ltok, yyvsp[0].ltok); ; - break;} -case 375: -#line 1199 "llgrammar.y" -{ ltoken_markOwned (yyvsp[0].ltok); yyval.term = makeMapTermNode (yyvsp[-2].term, yyvsp[-1].ltok, yyvsp[0].ltok); ; - break;} -case 376: -#line 1201 "llgrammar.y" -{ yyval.term = updateSqBracketedNode (yyvsp[-2].term, makeSqBracketedNode (yyvsp[-1].ltok, termNodeList_new (), yyvsp[0].ltok), - (termNode)0); ; - break;} -case 377: -#line 1204 "llgrammar.y" -{ yyval.term = updateSqBracketedNode (yyvsp[-3].term, makeSqBracketedNode (yyvsp[-2].ltok, yyvsp[-1].termlist, yyvsp[0].ltok), (termNode)0); ; - break;} -case 378: -#line 1206 "llgrammar.y" -{ yyval.term = yyvsp[-2].term; yyval.term->given = sort_lookupName (ltoken_getText (yyvsp[0].ltok)); ; - break;} -case 379: -#line 1209 "llgrammar.y" -{ yyval.termlist = termNodeList_push (termNodeList_new (), yyvsp[0].term); ; - break;} -case 380: -#line 1210 "llgrammar.y" -{ yyval.termlist = termNodeList_push (yyvsp[-2].termlist, yyvsp[0].term); ; - break;} -case 386: -#line 1220 "llgrammar.y" -{ yyval.term = makeSimpleTermNode (yyvsp[0].ltok); ; - break;} -case 387: -#line 1221 "llgrammar.y" -{ yyval.term = makeOpCallTermNode (yyvsp[-3].ltok, yyvsp[-2].ltok, yyvsp[-1].termlist, yyvsp[0].ltok); ; - break;} -case 388: -#line 1222 "llgrammar.y" -{ yyval.term = makeUnchangedTermNode1 (yyvsp[-3].ltok, yyvsp[-1].ltok); ; - break;} -case 389: -#line 1223 "llgrammar.y" -{ yyval.term = makeUnchangedTermNode2 (yyvsp[-3].ltok, yyvsp[-1].storereflist); ; - break;} -case 390: -#line 1225 "llgrammar.y" -{ termNodeList x = termNodeList_new (); - termNodeList_addh (x, yyvsp[-1].term); - yyval.term = makeOpCallTermNode (yyvsp[-3].ltok, yyvsp[-2].ltok, x, yyvsp[0].ltok); - ; - break;} -case 391: -#line 1230 "llgrammar.y" -{ termNodeList x = termNodeList_new (); - termNodeList_addh (x, yyvsp[-3].term); - termNodeList_addh (x, yyvsp[-1].term); - yyval.term = makeOpCallTermNode (yyvsp[-5].ltok, yyvsp[-4].ltok, x, yyvsp[0].ltok); - ; - break;} -case 392: -#line 1235 "llgrammar.y" -{ yyval.term = makeSizeofTermNode (yyvsp[-3].ltok, yyvsp[-1].lcltypespec); ; - break;} -case 393: -#line 1245 "llgrammar.y" -{ yyval.term = makeLiteralTermNode (yyvsp[0].ltok, sort_int); ; - break;} -case 394: -#line 1246 "llgrammar.y" -{ yyval.term = makeLiteralTermNode (yyvsp[0].ltok, sort_cstring); ; - break;} -case 395: -#line 1247 "llgrammar.y" -{ yyval.term = makeLiteralTermNode (yyvsp[0].ltok, sort_char); ; - break;} -case 396: -#line 1248 "llgrammar.y" -{ yyval.term = makeLiteralTermNode (yyvsp[0].ltok, sort_double); ; - break;} -case 397: -#line 1252 "llgrammar.y" -{ yyval.quantifiers = quantifierNodeList_add (quantifierNodeList_new (), yyvsp[0].quantifier); ; - break;} -case 398: -#line 1254 "llgrammar.y" -{ yyval.quantifiers = quantifierNodeList_add (yyvsp[-1].quantifiers, yyvsp[0].quantifier); ; - break;} -case 399: -#line 1257 "llgrammar.y" -{ scopeInfo si = (scopeInfo) dmalloc (sizeof (*si)); - si->kind = SPE_QUANT; - symtable_enterScope (g_symtab, si); ; - break;} -case 400: -#line 1261 "llgrammar.y" -{ yyval.quantifier = makeQuantifierNode (yyvsp[0].vars, yyvsp[-2].ltok); ; - break;} -case 401: -#line 1264 "llgrammar.y" -{ yyval.vars = varNodeList_add (varNodeList_new (), yyvsp[0].var); ; - break;} -case 402: -#line 1265 "llgrammar.y" -{ yyval.vars = varNodeList_add (yyvsp[-2].vars, yyvsp[0].var); ; - break;} -case 403: -#line 1268 "llgrammar.y" -{ yyval.var = makeVarNode (yyvsp[-2].ltok, FALSE, yyvsp[0].lcltypespec); ; - break;} -case 404: -#line 1269 "llgrammar.y" -{ yyval.var = makeVarNode (yyvsp[-3].ltok, TRUE, yyvsp[0].lcltypespec); ; - break;} -} - /* the action file gets copied in in place of this dollarsign */ -#line 543 "/usr/lib/bison.simple" - - yyvsp -= yylen; - yyssp -= yylen; -#ifdef YYLSP_NEEDED - yylsp -= yylen; -#endif - -#if YYDEBUG != 0 - if (yydebug) - { - short *ssp1 = yyss - 1; - fprintf (stderr, "state stack now"); - while (ssp1 != yyssp) - fprintf (stderr, " %d", *++ssp1); - fprintf (stderr, "\n"); - } -#endif - - *++yyvsp = yyval; - -#ifdef YYLSP_NEEDED - yylsp++; - if (yylen == 0) - { - yylsp->first_line = yylloc.first_line; - yylsp->first_column = yylloc.first_column; - yylsp->last_line = (yylsp-1)->last_line; - yylsp->last_column = (yylsp-1)->last_column; - yylsp->text = 0; - } - else - { - yylsp->last_line = (yylsp+yylen-1)->last_line; - yylsp->last_column = (yylsp+yylen-1)->last_column; - } -#endif - - /* Now "shift" the result of the reduction. - Determine what state that goes to, - based on the state we popped back to - and the rule number reduced by. */ - - yyn = yyr1[yyn]; - - yystate = yypgoto[yyn - YYNTBASE] + *yyssp; - if (yystate >= 0 && yystate <= YYLAST && yycheck[yystate] == *yyssp) - yystate = yytable[yystate]; - else - yystate = yydefgoto[yyn - YYNTBASE]; - - goto yynewstate; - -yyerrlab: /* here on detecting error */ - - if (! yyerrstatus) - /* If not already recovering from an error, report this error. */ - { - ++yynerrs; - -#ifdef YYERROR_VERBOSE - yyn = yypact[yystate]; - - if (yyn > YYFLAG && yyn < YYLAST) - { - int size = 0; - char *msg; - int x, count; - - count = 0; - /* Start X at -yyn if nec to avoid negative indexes in yycheck. */ - for (x = (yyn < 0 ? -yyn : 0); - x < (sizeof(yytname) / sizeof(char *)); x++) - if (yycheck[x + yyn] == x) - size += strlen(yytname[x]) + 15, count++; - msg = (char *) malloc(size + 15); - if (msg != 0) - { - strcpy(msg, "parse error"); - - if (count < 5) - { - count = 0; - for (x = (yyn < 0 ? -yyn : 0); - x < (sizeof(yytname) / sizeof(char *)); x++) - if (yycheck[x + yyn] == x) - { - strcat(msg, count == 0 ? ", expecting `" : " or `"); - strcat(msg, yytname[x]); - strcat(msg, "'"); - count++; - } - } - yyerror(msg); - free(msg); - } - else - yyerror ("parse error; also virtual memory exceeded"); - } - else -#endif /* YYERROR_VERBOSE */ - yyerror("parse error"); - } - - goto yyerrlab1; -yyerrlab1: /* here on error raised explicitly by an action */ - - if (yyerrstatus == 3) - { - /* if just tried and failed to reuse lookahead token after an error, discard it. */ - - /* return failure if at end of input */ - if (yychar == YYEOF) - YYABORT; - -#if YYDEBUG != 0 - if (yydebug) - fprintf(stderr, "Discarding token %d (%s).\n", yychar, yytname[yychar1]); -#endif - - yychar = YYEMPTY; - } - - /* Else will try to reuse lookahead token - after shifting the error token. */ - - yyerrstatus = 3; /* Each real token shifted decrements this */ - - goto yyerrhandle; - -yyerrdefault: /* current state does not do anything special for the error token. */ - -#if 0 - /* This is wrong; only states that explicitly want error tokens - should shift them. */ - yyn = yydefact[yystate]; /* If its default is to accept any token, ok. Otherwise pop it.*/ - if (yyn) goto yydefault; -#endif - -yyerrpop: /* pop the current state because it cannot handle the error token */ - - if (yyssp == yyss) YYABORT; - yyvsp--; - yystate = *--yyssp; -#ifdef YYLSP_NEEDED - yylsp--; -#endif - -#if YYDEBUG != 0 - if (yydebug) - { - short *ssp1 = yyss - 1; - fprintf (stderr, "Error: state stack now"); - while (ssp1 != yyssp) - fprintf (stderr, " %d", *++ssp1); - fprintf (stderr, "\n"); - } -#endif - -yyerrhandle: - - yyn = yypact[yystate]; - if (yyn == YYFLAG) - goto yyerrdefault; - - yyn += YYTERROR; - if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != YYTERROR) - goto yyerrdefault; - - yyn = yytable[yyn]; - if (yyn < 0) - { - if (yyn == YYFLAG) - goto yyerrpop; - yyn = -yyn; - goto yyreduce; - } - else if (yyn == 0) - goto yyerrpop; - - if (yyn == YYFINAL) - YYACCEPT; - -#if YYDEBUG != 0 - if (yydebug) - fprintf(stderr, "Shifting error token, "); -#endif - - *++yyvsp = yylval; -#ifdef YYLSP_NEEDED - *++yylsp = yylloc; -#endif - - yystate = yyn; - goto yynewstate; - - yyacceptlab: - /* YYACCEPT comes here. */ - if (yyfree_stacks) - { - free (yyss); - free (yyvs); -#ifdef YYLSP_NEEDED - free (yyls); -#endif - } - return 0; - - yyabortlab: - /* YYABORT comes here. */ - if (yyfree_stacks) - { - free (yyss); - free (yyvs); -#ifdef YYLSP_NEEDED - free (yyls); -#endif - } - return 1; -} -#line 1284 "llgrammar.y" - - -# include "bison.reset" - -/* -** yytext is set in lex scanner -** extern YYSTYPE yylval; -** yylval is defined by code generated by bison -*/ - -void ylerror (char *s) -{ - /* - ** This resetting of the left context is very important when multiple - ** files are to be parsed. We do not want failures to propagate. - ** Lex/Yacc does not reset the flags when the parsing goes bad. - ** BEGIN 0; - **/ - - /*@-mustfree@*/ - lclfatalerror (yllval.ltok, - message ("%s: Token code: %s, Token String: %s", - cstring_fromChars (s), - ltoken_unparseCodeName (yllval.ltok), - ltoken_getRawString (yllval.ltok))); - /*@=mustfree@*/ -} - -static void yyprint (FILE *f, int t, YYSTYPE value) -{ - fprintf (f, " type: %d (%s)", t, - cstring_toCharsSafe (ltoken_getRawString (value.ltok))); -} - - - - - - - diff --git a/src/llgrammar.tab.c b/src/llgrammar.tab.c deleted file mode 100644 index 0b3c623..0000000 --- a/src/llgrammar.tab.c +++ /dev/null @@ -1,3856 +0,0 @@ - -/* A Bison parser, made from llgrammar.y - by GNU Bison version 1.28 */ - -#define YYBISON 1 /* Identify Bison output. */ - -#define yyparse ylparse -#define yylex yllex -#define yyerror ylerror -#define yylval yllval -#define yychar ylchar -#define yydebug yldebug -#define yynerrs ylnerrs -#define simpleOp 257 -#define PREFIX_OP 258 -#define POSTFIX_OP 259 -#define LLT_MULOP 260 -#define LLT_SEMI 261 -#define LLT_VERTICALBAR 262 -#define ITERATION_OP 263 -#define LLT_LPAR 264 -#define LLT_LBRACKET 265 -#define selectSym 266 -#define LLT_IF_THEN_ELSE 267 -#define logicalOp 268 -#define eqSepSym 269 -#define equationSym 270 -#define commentSym 271 -#define LLT_WHITESPACE 272 -#define LLT_EOL 273 -#define LLT_TYPEDEF_NAME 274 -#define quantifierSym 275 -#define openSym 276 -#define closeSym 277 -#define sepSym 278 -#define simpleId 279 -#define mapSym 280 -#define markerSym 281 -#define preSym 282 -#define postSym 283 -#define anySym 284 -#define LLT_COLON 285 -#define LLT_COMMA 286 -#define LLT_EQUALS 287 -#define LLT_LBRACE 288 -#define LLT_RBRACE 289 -#define LLT_RBRACKET 290 -#define LLT_RPAR 291 -#define LLT_QUOTE 292 -#define eqOp 293 -#define LLT_CCHAR 294 -#define LLT_CFLOAT 295 -#define LLT_CINTEGER 296 -#define LLT_LCSTRING 297 -#define LLT_ALL 298 -#define LLT_ANYTHING 299 -#define LLT_BE 300 -#define LLT_BODY 301 -#define LLT_CLAIMS 302 -#define LLT_CHECKS 303 -#define LLT_CONSTANT 304 -#define LLT_ELSE 305 -#define LLT_ENSURES 306 -#define LLT_FOR 307 -#define LLT_FRESH 308 -#define LLT_IF 309 -#define LLT_IMMUTABLE 310 -#define LLT_IMPORTS 311 -#define LLT_CONSTRAINT 312 -#define LLT_ISSUB 313 -#define LLT_LET 314 -#define LLT_MODIFIES 315 -#define LLT_MUTABLE 316 -#define LLT_NOTHING 317 -#define LLT_INTERNAL 318 -#define LLT_FILESYS 319 -#define LLT_OBJ 320 -#define LLT_OUT 321 -#define LLT_SEF 322 -#define LLT_ONLY 323 -#define LLT_PARTIAL 324 -#define LLT_OWNED 325 -#define LLT_DEPENDENT 326 -#define LLT_KEEP 327 -#define LLT_KEPT 328 -#define LLT_TEMP 329 -#define LLT_SHARED 330 -#define LLT_UNIQUE 331 -#define LLT_UNUSED 332 -#define LLT_EXITS 333 -#define LLT_MAYEXIT 334 -#define LLT_NEVEREXIT 335 -#define LLT_TRUEEXIT 336 -#define LLT_FALSEEXIT 337 -#define LLT_UNDEF 338 -#define LLT_KILLED 339 -#define LLT_CHECKMOD 340 -#define LLT_CHECKED 341 -#define LLT_UNCHECKED 342 -#define LLT_CHECKEDSTRICT 343 -#define LLT_TRUENULL 344 -#define LLT_FALSENULL 345 -#define LLT_LNULL 346 -#define LLT_LNOTNULL 347 -#define LLT_RETURNED 348 -#define LLT_OBSERVER 349 -#define LLT_EXPOSED 350 -#define LLT_REFCOUNTED 351 -#define LLT_REFS 352 -#define LLT_RELNULL 353 -#define LLT_RELDEF 354 -#define LLT_KILLREF 355 -#define LLT_NULLTERMINATED 356 -#define LLT_TEMPREF 357 -#define LLT_NEWREF 358 -#define LLT_PRIVATE 359 -#define LLT_REQUIRES 360 -#define LLT_RESULT 361 -#define LLT_SIZEOF 362 -#define LLT_SPEC 363 -#define LLT_TAGGEDUNION 364 -#define LLT_THEN 365 -#define LLT_TYPE 366 -#define LLT_TYPEDEF 367 -#define LLT_UNCHANGED 368 -#define LLT_USES 369 -#define LLT_CHAR 370 -#define LLT_CONST 371 -#define LLT_DOUBLE 372 -#define LLT_ENUM 373 -#define LLT_FLOAT 374 -#define LLT_INT 375 -#define LLT_ITER 376 -#define LLT_YIELD 377 -#define LLT_LONG 378 -#define LLT_SHORT 379 -#define LLT_SIGNED 380 -#define LLT_UNKNOWN 381 -#define LLT_STRUCT 382 -#define LLT_TELIPSIS 383 -#define LLT_UNION 384 -#define LLT_UNSIGNED 385 -#define LLT_VOID 386 -#define LLT_VOLATILE 387 -#define LLT_PRINTFLIKE 388 -#define LLT_SCANFLIKE 389 -#define LLT_MESSAGELIKE 390 - -#line 36 "llgrammar.y" - - -# include "lclintMacros.nf" -# include "llbasic.h" -# include "lclscan.h" -# include "checking.h" -# include "lslparse.h" -# include "lh.h" -# include "usymtab_interface.h" - -/*@-noparams@*/ -static /*@unused@*/ void yyprint (); -/*@=noparams@*/ - -/*@-redecl@*/ -void ylerror (char *) /*@modifies *g_msgstream@*/ ; -/*@=redecl@*/ - -bool g_inTypeDef = FALSE; - -/*@constant int YYDEBUG;@*/ -# define YYDEBUG 1 - -/*@notfunction@*/ -# define YYPRINT(file, type, value) yyprint (file, type, value) - -/* -** This is necessary, or else when the bison-generated code #include's malloc.h, -** there will be a parse error. -** -** Unfortunately, it means the error checking on malloc, etc. is lost for allocations -** in bison-generated files under Win32. -*/ - -# ifdef WIN32 -# undef malloc -# undef calloc -# undef realloc -# endif - - -#line 78 "llgrammar.y" -typedef union -{ - ltoken ltok; /* a leaf is also an ltoken */ - qual typequal; - unsigned int count; - /*@only@*/ ltokenList ltokenList; - /*@only@*/ abstDeclaratorNode abstDecl; - /*@only@*/ declaratorNode declare; - /*@only@*/ declaratorNodeList declarelist; - /*@only@*/ typeExpr typeexpr; - /*@only@*/ arrayQualNode array; - /*@only@*/ quantifierNode quantifier; - /*@only@*/ quantifierNodeList quantifiers; - /*@only@*/ varNode var; - /*@only@*/ varNodeList vars; - /*@only@*/ storeRefNode storeref; - /*@only@*/ storeRefNodeList storereflist; - /*@only@*/ termNode term; - /*@only@*/ termNodeList termlist; - /*@only@*/ programNode program; - /*@only@*/ stmtNode stmt; - /*@only@*/ claimNode claim; - /*@only@*/ typeNode type; - /*@only@*/ iterNode iter; - /*@only@*/ fcnNode fcn; - /*@only@*/ fcnNodeList fcns; - /*@only@*/ letDeclNode letdecl; - /*@only@*/ letDeclNodeList letdecls; - /*@only@*/ lclPredicateNode lclpredicate; - /*@only@*/ modifyNode modify; - /*@only@*/ paramNode param; - /*@only@*/ paramNodeList paramlist; - /*@only@*/ declaratorInvNodeList declaratorinvs; - /*@only@*/ declaratorInvNode declaratorinv; - /*@only@*/ abstBodyNode abstbody; - /*@only@*/ abstractNode abstract; - /*@only@*/ exposedNode exposed; - /* taggedUnionNode taggedunion; */ - /*@only@*/ globalList globals; - /*@only@*/ constDeclarationNode constdeclaration; - /*@only@*/ varDeclarationNode vardeclaration; - /*@only@*/ varDeclarationNodeList vardeclarationlist; - /*@only@*/ initDeclNodeList initdecls; - /*@only@*/ initDeclNode initdecl; - /*@only@*/ stDeclNodeList structdecls; - /*@only@*/ stDeclNode structdecl; - /*@only@*/ strOrUnionNode structorunion; - /*@only@*/ enumSpecNode enumspec; - /*@only@*/ lclTypeSpecNode lcltypespec; - /*@only@*/ typeNameNode typname; - /*@only@*/ opFormNode opform; - /*@only@*/ sigNode signature; - /*@only@*/ nameNode name; - /*@only@*/ typeNameNodeList namelist; - /*@only@*/ replaceNode replace; - /*@only@*/ replaceNodeList replacelist; - /*@only@*/ renamingNode renaming; - /*@only@*/ traitRefNode traitref; - /*@only@*/ traitRefNodeList traitreflist; - /*@only@*/ importNode import; - /*@only@*/ importNodeList importlist; - /*@only@*/ interfaceNode iface; - /*@only@*/ interfaceNodeList interfacelist; - /*@only@*/ CTypesNode ctypes; -} YYSTYPE; -#ifndef YYDEBUG -#define YYDEBUG 1 -#endif - -#include - -#ifndef __cplusplus -#ifndef __STDC__ -#define const -#endif -#endif - - - -#define YYFINAL 684 -#define YYFLAG -32768 -#define YYNTBASE 137 - -#define YYTRANSLATE(x) ((unsigned)(x) <= 390 ? yytranslate[x] : 291) - -static const short 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, 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 -}; - -#if YYDEBUG != 0 -static const short yyprhs[] = { 0, - 0, 1, 5, 6, 9, 11, 13, 14, 17, 20, - 21, 24, 26, 28, 30, 34, 38, 40, 42, 44, - 46, 48, 50, 57, 58, 60, 62, 66, 69, 71, - 72, 76, 78, 80, 82, 84, 89, 93, 98, 103, - 105, 107, 109, 111, 113, 114, 128, 129, 144, 145, - 159, 164, 165, 166, 173, 174, 175, 183, 184, 185, - 193, 194, 195, 202, 203, 204, 211, 214, 217, 219, - 223, 225, 229, 231, 233, 237, 239, 241, 245, 247, - 252, 256, 263, 265, 269, 271, 273, 277, 279, 283, - 285, 289, 293, 297, 302, 304, 306, 308, 310, 312, - 316, 318, 322, 323, 326, 330, 333, 336, 337, 340, - 345, 346, 350, 352, 356, 362, 366, 368, 369, 373, - 374, 378, 379, 383, 387, 391, 393, 397, 399, 401, - 404, 406, 408, 409, 413, 414, 418, 419, 421, 423, - 425, 429, 431, 435, 436, 441, 447, 449, 453, 456, - 460, 464, 469, 473, 479, 486, 488, 492, 494, 496, - 499, 502, 506, 510, 514, 519, 521, 525, 530, 534, - 535, 538, 539, 541, 542, 549, 551, 555, 556, 560, - 561, 565, 567, 569, 571, 573, 575, 577, 579, 581, - 583, 585, 587, 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, 675, 681, 683, 686, 688, - 691, 692, 699, 700, 707, 710, 713, 714, 716, 718, - 721, 725, 727, 731, 732, 734, 741, 744, 746, 750, - 752, 754, 756, 760, 763, 766, 770, 775, 777, 781, - 784, 787, 791, 796, 798, 801, 804, 808, 813, 816, - 819, 822, 825, 829, 831, 832, 834, 838, 841, 843, - 845, 848, 852, 856, 861, 864, 868, 875, 877, 880, - 883, 887, 891, 896, 901, 907, 911, 916, 921, 927, - 930, 933, 937, 941, 943, 945, 947, 949, 951, 953, - 955, 956, 958, 960, 964, 966, 968, 973, 974, 976, - 978, 982, 984, 986, 993, 995, 999, 1001, 1006, 1010, - 1014, 1016, 1019, 1022, 1024, 1026, 1028, 1031, 1033, 1036, - 1039, 1043, 1045, 1047, 1050, 1053, 1057, 1059, 1062, 1066, - 1068, 1074, 1078, 1083, 1086, 1090, 1093, 1095, 1099, 1103, - 1105, 1110, 1112, 1115, 1119, 1123, 1127, 1132, 1136, 1138, - 1142, 1144, 1146, 1148, 1150, 1152, 1154, 1159, 1164, 1169, - 1174, 1181, 1186, 1188, 1190, 1192, 1194, 1196, 1199, 1200, - 1204, 1206, 1210, 1214, 1219, 1221, 1223, 1225, 1227, 1229, - 1231, 1233, 1235 -}; - -static const short yyrhs[] = { -1, - 139, 138, 141, 0, 0, 139, 140, 0, 144, 0, - 145, 0, 0, 146, 142, 0, 151, 142, 0, 0, - 142, 143, 0, 146, 0, 151, 0, 145, 0, 57, - 175, 7, 0, 115, 179, 7, 0, 154, 0, 155, - 0, 156, 0, 158, 0, 161, 0, 147, 0, 122, - 285, 10, 148, 37, 7, 0, 0, 149, 0, 150, - 0, 149, 32, 150, 0, 123, 244, 0, 244, 0, - 0, 109, 152, 153, 0, 154, 0, 155, 0, 156, - 0, 158, 0, 50, 227, 189, 7, 0, 227, 189, - 7, 0, 117, 227, 189, 7, 0, 133, 227, 189, - 7, 0, 163, 0, 172, 0, 134, 0, 135, 0, - 136, 0, 0, 227, 240, 191, 159, 34, 193, 195, - 199, 200, 201, 204, 205, 35, 0, 0, 157, 227, - 240, 191, 160, 34, 193, 195, 199, 200, 201, 204, - 205, 35, 0, 0, 48, 287, 10, 206, 37, 191, - 162, 34, 195, 200, 209, 204, 35, 0, 48, 284, - 287, 7, 0, 0, 0, 62, 164, 112, 20, 165, - 214, 0, 0, 0, 62, 166, 97, 112, 20, 167, - 214, 0, 0, 0, 97, 62, 168, 112, 20, 169, - 214, 0, 0, 0, 56, 170, 112, 20, 171, 214, - 0, 0, 0, 113, 227, 173, 219, 174, 7, 0, - 230, 7, 0, 238, 7, 0, 176, 0, 175, 32, - 176, 0, 178, 0, 3, 178, 3, 0, 43, 0, - 178, 0, 177, 32, 178, 0, 283, 0, 180, 0, - 179, 32, 180, 0, 289, 0, 289, 10, 182, 37, - 0, 10, 181, 37, 0, 10, 181, 37, 10, 182, - 37, 0, 289, 0, 181, 32, 289, 0, 184, 0, - 183, 0, 183, 32, 184, 0, 245, 0, 183, 32, - 245, 0, 185, 0, 184, 32, 185, 0, 245, 53, - 223, 0, 245, 53, 186, 0, 245, 53, 186, 256, - 0, 290, 0, 249, 0, 188, 0, 260, 0, 190, - 0, 189, 32, 190, 0, 240, 0, 240, 33, 187, - 0, 0, 191, 192, 0, 227, 189, 7, 0, 64, - 7, 0, 65, 7, 0, 0, 193, 194, 0, 105, - 227, 189, 7, 0, 0, 60, 196, 7, 0, 197, - 0, 196, 32, 197, 0, 285, 31, 198, 46, 260, - 0, 285, 46, 260, 0, 227, 0, 0, 49, 259, - 7, 0, 0, 106, 259, 7, 0, 0, 61, 63, - 7, 0, 61, 45, 7, 0, 61, 202, 7, 0, - 203, 0, 202, 32, 203, 0, 260, 0, 228, 0, - 66, 228, 0, 64, 0, 65, 0, 0, 52, 259, - 7, 0, 0, 48, 259, 7, 0, 0, 207, 0, - 208, 0, 129, 0, 208, 32, 129, 0, 244, 0, - 208, 32, 244, 0, 0, 47, 34, 210, 35, 0, - 47, 34, 210, 7, 35, 0, 211, 0, 10, 210, - 37, 0, 210, 6, 0, 210, 8, 210, 0, 210, - 7, 210, 0, 284, 10, 212, 37, 0, 284, 10, - 37, 0, 285, 33, 284, 10, 37, 0, 285, 33, - 284, 10, 212, 37, 0, 213, 0, 212, 32, 213, - 0, 277, 0, 285, 0, 3, 213, 0, 213, 3, - 0, 213, 3, 213, 0, 10, 213, 37, 0, 284, - 10, 37, 0, 284, 10, 212, 37, 0, 7, 0, - 34, 215, 35, 0, 34, 177, 35, 7, 0, 34, - 35, 7, 0, 0, 215, 158, 0, 0, 217, 0, - 0, 58, 218, 279, 10, 259, 37, 0, 220, 0, - 219, 32, 220, 0, 0, 240, 221, 222, 0, 0, - 34, 216, 35, 0, 132, 0, 116, 0, 118, 0, - 120, 0, 121, 0, 124, 0, 125, 0, 126, 0, - 131, 0, 127, 0, 223, 0, 224, 223, 0, 20, - 0, 224, 0, 67, 0, 78, 0, 68, 0, 69, - 0, 71, 0, 72, 0, 73, 0, 74, 0, 95, - 0, 79, 0, 80, 0, 82, 0, 83, 0, 81, - 0, 75, 0, 76, 0, 77, 0, 87, 0, 88, - 0, 89, 0, 90, 0, 91, 0, 99, 0, 100, - 0, 97, 0, 98, 0, 104, 0, 101, 0, 92, - 0, 93, 0, 94, 0, 96, 0, 70, 0, 102, - 0, 84, 0, 85, 0, 225, 0, 230, 0, 238, - 0, 226, 227, 0, 8, 228, 31, 228, 8, 0, - 227, 0, 227, 229, 0, 6, 0, 229, 6, 0, - 0, 128, 233, 231, 34, 234, 35, 0, 0, 130, - 233, 232, 34, 234, 35, 0, 128, 286, 0, 130, - 286, 0, 0, 286, 0, 235, 0, 234, 235, 0, - 227, 236, 7, 0, 240, 0, 236, 32, 240, 0, - 0, 32, 0, 119, 233, 34, 239, 237, 35, 0, - 119, 286, 0, 25, 0, 239, 32, 25, 0, 242, - 0, 241, 0, 285, 0, 10, 241, 37, 0, 6, - 241, 0, 241, 248, 0, 241, 10, 37, 0, 241, - 10, 207, 37, 0, 20, 0, 10, 242, 37, 0, - 6, 242, 0, 242, 248, 0, 242, 10, 37, 0, - 242, 10, 207, 37, 0, 20, 0, 6, 243, 0, - 243, 248, 0, 243, 10, 37, 0, 243, 10, 207, - 37, 0, 227, 243, 0, 227, 241, 0, 227, 246, - 0, 227, 246, 0, 66, 227, 246, 0, 249, 0, - 0, 247, 0, 10, 247, 37, 0, 6, 247, 0, - 6, 0, 248, 0, 247, 248, 0, 247, 10, 37, - 0, 10, 207, 37, 0, 247, 10, 207, 37, 0, - 11, 36, 0, 11, 188, 36, 0, 55, 27, 111, - 27, 51, 27, 0, 252, 0, 27, 252, 0, 252, - 27, 0, 27, 252, 27, 0, 250, 253, 251, 0, - 27, 250, 253, 251, 0, 250, 253, 251, 27, 0, - 27, 250, 253, 251, 27, 0, 11, 253, 36, 0, - 11, 253, 36, 27, 0, 27, 11, 253, 36, 0, - 27, 11, 253, 36, 27, 0, 12, 283, 0, 26, - 283, 0, 27, 12, 283, 0, 27, 26, 283, 0, - 22, 0, 34, 0, 23, 0, 35, 0, 264, 0, - 14, 0, 39, 0, 0, 254, 0, 27, 0, 254, - 255, 27, 0, 32, 0, 24, 0, 31, 257, 26, - 288, 0, 0, 258, 0, 288, 0, 258, 32, 288, - 0, 260, 0, 261, 0, 55, 261, 111, 261, 51, - 261, 0, 262, 0, 261, 14, 261, 0, 263, 0, - 278, 10, 259, 37, 0, 263, 39, 263, 0, 263, - 33, 263, 0, 265, 0, 268, 266, 0, 268, 267, - 0, 3, 0, 6, 0, 268, 0, 264, 265, 0, - 264, 0, 266, 264, 0, 264, 268, 0, 267, 264, - 268, 0, 273, 0, 269, 0, 269, 273, 0, 273, - 269, 0, 273, 269, 273, 0, 270, 0, 270, 273, - 0, 271, 31, 288, 0, 271, 0, 11, 272, 36, - 31, 288, 0, 11, 272, 36, 0, 11, 36, 31, - 288, 0, 11, 36, 0, 250, 272, 251, 0, 250, - 251, 0, 260, 0, 272, 255, 260, 0, 10, 261, - 37, 0, 285, 0, 290, 10, 274, 37, 0, 276, - 0, 273, 275, 0, 273, 12, 283, 0, 273, 26, - 283, 0, 273, 11, 36, 0, 273, 11, 274, 36, - 0, 273, 31, 288, 0, 261, 0, 274, 32, 261, - 0, 28, 0, 29, 0, 30, 0, 38, 0, 277, - 0, 107, 0, 54, 10, 274, 37, 0, 114, 10, - 44, 37, 0, 114, 10, 202, 37, 0, 108, 10, - 260, 37, 0, 59, 10, 260, 32, 260, 37, 0, - 108, 10, 227, 37, 0, 42, 0, 43, 0, 40, - 0, 41, 0, 279, 0, 278, 279, 0, 0, 21, - 280, 281, 0, 282, 0, 281, 32, 282, 0, 285, - 31, 198, 0, 285, 31, 66, 198, 0, 25, 0, - 20, 0, 25, 0, 25, 0, 283, 0, 283, 0, - 283, 0, 283, 0, 283, 0 -}; - -#endif - -#if YYDEBUG != 0 -static const short yyrline[] = { 0, - 383, 384, 387, 388, 391, 392, 395, 396, 397, 400, - 401, 404, 405, 406, 409, 415, 419, 421, 423, 425, - 427, 429, 433, 437, 438, 441, 443, 447, 448, 451, - 452, 455, 457, 459, 461, 465, 469, 471, 473, 477, - 478, 481, 482, 483, 486, 487, 494, 496, 507, 509, - 512, 516, 516, 517, 518, 518, 520, 521, 522, 523, - 524, 524, 525, 528, 529, 530, 531, 533, 549, 551, - 555, 556, 558, 561, 562, 565, 569, 571, 575, 577, - 579, 581, 585, 586, 589, 591, 593, 596, 598, 601, - 603, 606, 607, 608, 612, 613, 615, 617, 620, 622, - 626, 627, 630, 632, 636, 637, 638, 641, 642, 645, - 649, 650, 653, 654, 657, 658, 660, 663, 664, 667, - 668, 671, 672, 673, 674, 677, 678, 681, 682, 683, - 684, 685, 688, 689, 692, 693, 696, 697, 700, 701, - 702, 705, 706, 709, 710, 711, 714, 715, 718, 723, - 729, 737, 739, 741, 743, 747, 748, 751, 752, 753, - 754, 755, 756, 757, 759, 763, 764, 765, 766, 769, - 770, 773, 774, 777, 777, 786, 787, 791, 792, 795, - 796, 799, 800, 801, 802, 803, 804, 805, 806, 807, - 808, 816, 817, 822, 824, 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, 868, 870, 872, 874, 876, 885, 886, 891, 892, - 895, 897, 899, 901, 903, 905, 909, 910, 913, 914, - 919, 922, 924, 928, 929, 932, 934, 938, 939, 949, - 950, 953, 954, 955, 956, 957, 958, 961, 962, 963, - 964, 965, 966, 975, 976, 977, 978, 979, 985, 986, - 987, 997, 998, 999, 1004, 1005, 1008, 1009, 1010, 1011, - 1012, 1013, 1014, 1015, 1018, 1019, 1022, 1024, 1026, 1028, - 1030, 1033, 1035, 1037, 1039, 1041, 1043, 1051, 1053, 1055, - 1058, 1061, 1064, 1069, 1070, 1073, 1074, 1077, 1078, 1079, - 1082, 1083, 1086, 1087, 1090, 1091, 1094, 1097, 1098, 1101, - 1102, 1105, 1108, 1114, 1116, 1117, 1120, 1121, 1126, 1128, - 1132, 1133, 1134, 1137, 1138, 1141, 1142, 1145, 1146, 1149, - 1150, 1153, 1154, 1155, 1156, 1157, 1158, 1159, 1162, 1163, - 1166, 1169, 1171, 1175, 1179, 1180, 1183, 1184, 1187, 1189, - 1191, 1193, 1194, 1196, 1198, 1200, 1203, 1205, 1209, 1210, - 1213, 1214, 1215, 1216, 1219, 1220, 1221, 1222, 1223, 1224, - 1229, 1235, 1245, 1246, 1247, 1248, 1251, 1253, 1257, 1261, - 1264, 1265, 1268, 1269, 1272, 1273, 1276, 1277, 1278, 1279, - 1280, 1281, 1282 -}; -#endif - - -#if YYDEBUG != 0 || defined (YYERROR_VERBOSE) - -static const char * const yytname[] = { "$","error","$undefined.","simpleOp", -"PREFIX_OP","POSTFIX_OP","LLT_MULOP","LLT_SEMI","LLT_VERTICALBAR","ITERATION_OP", -"LLT_LPAR","LLT_LBRACKET","selectSym","LLT_IF_THEN_ELSE","logicalOp","eqSepSym", -"equationSym","commentSym","LLT_WHITESPACE","LLT_EOL","LLT_TYPEDEF_NAME","quantifierSym", -"openSym","closeSym","sepSym","simpleId","mapSym","markerSym","preSym","postSym", -"anySym","LLT_COLON","LLT_COMMA","LLT_EQUALS","LLT_LBRACE","LLT_RBRACE","LLT_RBRACKET", -"LLT_RPAR","LLT_QUOTE","eqOp","LLT_CCHAR","LLT_CFLOAT","LLT_CINTEGER","LLT_LCSTRING", -"LLT_ALL","LLT_ANYTHING","LLT_BE","LLT_BODY","LLT_CLAIMS","LLT_CHECKS","LLT_CONSTANT", -"LLT_ELSE","LLT_ENSURES","LLT_FOR","LLT_FRESH","LLT_IF","LLT_IMMUTABLE","LLT_IMPORTS", -"LLT_CONSTRAINT","LLT_ISSUB","LLT_LET","LLT_MODIFIES","LLT_MUTABLE","LLT_NOTHING", -"LLT_INTERNAL","LLT_FILESYS","LLT_OBJ","LLT_OUT","LLT_SEF","LLT_ONLY","LLT_PARTIAL", -"LLT_OWNED","LLT_DEPENDENT","LLT_KEEP","LLT_KEPT","LLT_TEMP","LLT_SHARED","LLT_UNIQUE", -"LLT_UNUSED","LLT_EXITS","LLT_MAYEXIT","LLT_NEVEREXIT","LLT_TRUEEXIT","LLT_FALSEEXIT", -"LLT_UNDEF","LLT_KILLED","LLT_CHECKMOD","LLT_CHECKED","LLT_UNCHECKED","LLT_CHECKEDSTRICT", -"LLT_TRUENULL","LLT_FALSENULL","LLT_LNULL","LLT_LNOTNULL","LLT_RETURNED","LLT_OBSERVER", -"LLT_EXPOSED","LLT_REFCOUNTED","LLT_REFS","LLT_RELNULL","LLT_RELDEF","LLT_KILLREF", -"LLT_NULLTERMINATED","LLT_TEMPREF","LLT_NEWREF","LLT_PRIVATE","LLT_REQUIRES", -"LLT_RESULT","LLT_SIZEOF","LLT_SPEC","LLT_TAGGEDUNION","LLT_THEN","LLT_TYPE", -"LLT_TYPEDEF","LLT_UNCHANGED","LLT_USES","LLT_CHAR","LLT_CONST","LLT_DOUBLE", -"LLT_ENUM","LLT_FLOAT","LLT_INT","LLT_ITER","LLT_YIELD","LLT_LONG","LLT_SHORT", -"LLT_SIGNED","LLT_UNKNOWN","LLT_STRUCT","LLT_TELIPSIS","LLT_UNION","LLT_UNSIGNED", -"LLT_VOID","LLT_VOLATILE","LLT_PRINTFLIKE","LLT_SCANFLIKE","LLT_MESSAGELIKE", -"interface","@1","externals","external","optDeclarations","declarations","declaration", -"imports","uses","export","iter","iterParamList","realIterParamList","iterParam", -"private","@2","private2","constDeclaration","varDeclaration","type","special", -"fcn","@3","@4","claim","@5","abstract","@6","@7","@8","@9","@10","@11","@12", -"@13","exposed","@14","@15","importNameList","importName","interfaceNameList", -"interfaceName","traitRefNodeList","traitRef","traitIdList","renaming","nameList", -"replaceNodeList","replace","name","initializer","constLclExpr","initDecls", -"initDecl","globals","globalDecl","privateInits","privateInit","optLetDecl", -"beDeclList","beDecl","sortSpec","optChecks","optRequire","optModify","storeRefList", -"storeRef","optEnsure","optClaim","optParamList","realParamList","paramList", -"optBody","callExpr","stmt","valueList","value","abstBody","fcns","optTypeInv", -"typeInv","@16","declaratorInvs","declaratorInv","@17","optExposedBody","CType", -"CTypes","typeSpecifier","specialQualifier","lclTypeSpec","lclType","pointers", -"structOrUnionSpec","@18","@19","optTagId","structDecls","structDecl","declaratorList", -"optCOMMA","enumSpec","enumeratorList","declarator","notype_decl","after_type_decl", -"parameter_decl","param","typeName","optAbstDeclarator","abstDeclarator","arrayQual", -"opForm","open","close","anyOp","middle","placeList","separator","signature", -"domain","sortList","lclPredicate","term","term0","equalityTerm","simpleOpTerm", -"simpleOp2","prefixOpTerm","postfixOps","infixOpPart","secondary","bracketed", -"sqBracketed","matched","args","primary","termList","stateFcn","lclPrimary", -"cLiteral","quantifiers","quantifier","@20","quantifiedList","quantified","simpleIdOrTypedefName", -"fcnId","varId","tagId","claimId","sortId","traitId","opId", NULL -}; -#endif - -static const short yyr1[] = { 0, - 138, 137, 139, 139, 140, 140, 141, 141, 141, 142, - 142, 143, 143, 143, 144, 145, 146, 146, 146, 146, - 146, 146, 147, 148, 148, 149, 149, 150, 150, 152, - 151, 153, 153, 153, 153, 154, 155, 155, 155, 156, - 156, 157, 157, 157, 159, 158, 160, 158, 162, 161, - 161, 164, 165, 163, 166, 167, 163, 168, 169, 163, - 170, 171, 163, 173, 174, 172, 172, 172, 175, 175, - 176, 176, 176, 177, 177, 178, 179, 179, 180, 180, - 180, 180, 181, 181, 182, 182, 182, 183, 183, 184, - 184, 185, 185, 185, 186, 186, 187, 188, 189, 189, - 190, 190, 191, 191, 192, 192, 192, 193, 193, 194, - 195, 195, 196, 196, 197, 197, 198, 199, 199, 200, - 200, 201, 201, 201, 201, 202, 202, 203, 203, 203, - 203, 203, 204, 204, 205, 205, 206, 206, 207, 207, - 207, 208, 208, 209, 209, 209, 210, 210, 210, 210, - 210, 211, 211, 211, 211, 212, 212, 213, 213, 213, - 213, 213, 213, 213, 213, 214, 214, 214, 214, 215, - 215, 216, 216, 218, 217, 219, 219, 221, 220, 222, - 222, 223, 223, 223, 223, 223, 223, 223, 223, 223, - 223, 224, 224, 225, 225, 226, 226, 226, 226, 226, - 226, 226, 226, 226, 226, 226, 226, 226, 226, 226, - 226, 226, 226, 226, 226, 226, 226, 226, 226, 226, - 226, 226, 226, 226, 226, 226, 226, 226, 226, 226, - 226, 227, 227, 227, 227, 227, 228, 228, 229, 229, - 231, 230, 232, 230, 230, 230, 233, 233, 234, 234, - 235, 236, 236, 237, 237, 238, 238, 239, 239, 240, - 240, 241, 241, 241, 241, 241, 241, 242, 242, 242, - 242, 242, 242, 243, 243, 243, 243, 243, 244, 244, - 244, 245, 245, 245, 246, 246, 247, 247, 247, 247, - 247, 247, 247, 247, 248, 248, 249, 249, 249, 249, - 249, 249, 249, 249, 249, 249, 249, 249, 249, 249, - 249, 249, 249, 250, 250, 251, 251, 252, 252, 252, - 253, 253, 254, 254, 255, 255, 256, 257, 257, 258, - 258, 259, 260, 261, 261, 261, 262, 262, 262, 262, - 263, 263, 263, 264, 264, 265, 265, 266, 266, 267, - 267, 268, 268, 268, 268, 268, 268, 268, 269, 269, - 270, 270, 270, 270, 271, 271, 272, 272, 273, 273, - 273, 273, 273, 273, 273, 273, 273, 273, 274, 274, - 275, 275, 275, 275, 276, 276, 276, 276, 276, 276, - 276, 276, 277, 277, 277, 277, 278, 278, 280, 279, - 281, 281, 282, 282, 283, 283, 284, 285, 286, 287, - 288, 289, 290 -}; - -static const short yyr2[] = { 0, - 0, 3, 0, 2, 1, 1, 0, 2, 2, 0, - 2, 1, 1, 1, 3, 3, 1, 1, 1, 1, - 1, 1, 6, 0, 1, 1, 3, 2, 1, 0, - 3, 1, 1, 1, 1, 4, 3, 4, 4, 1, - 1, 1, 1, 1, 0, 13, 0, 14, 0, 13, - 4, 0, 0, 6, 0, 0, 7, 0, 0, 7, - 0, 0, 6, 0, 0, 6, 2, 2, 1, 3, - 1, 3, 1, 1, 3, 1, 1, 3, 1, 4, - 3, 6, 1, 3, 1, 1, 3, 1, 3, 1, - 3, 3, 3, 4, 1, 1, 1, 1, 1, 3, - 1, 3, 0, 2, 3, 2, 2, 0, 2, 4, - 0, 3, 1, 3, 5, 3, 1, 0, 3, 0, - 3, 0, 3, 3, 3, 1, 3, 1, 1, 2, - 1, 1, 0, 3, 0, 3, 0, 1, 1, 1, - 3, 1, 3, 0, 4, 5, 1, 3, 2, 3, - 3, 4, 3, 5, 6, 1, 3, 1, 1, 2, - 2, 3, 3, 3, 4, 1, 3, 4, 3, 0, - 2, 0, 1, 0, 6, 1, 3, 0, 3, 0, - 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 2, 5, 1, 2, 1, 2, - 0, 6, 0, 6, 2, 2, 0, 1, 1, 2, - 3, 1, 3, 0, 1, 6, 2, 1, 3, 1, - 1, 1, 3, 2, 2, 3, 4, 1, 3, 2, - 2, 3, 4, 1, 2, 2, 3, 4, 2, 2, - 2, 2, 3, 1, 0, 1, 3, 2, 1, 1, - 2, 3, 3, 4, 2, 3, 6, 1, 2, 2, - 3, 3, 4, 4, 5, 3, 4, 4, 5, 2, - 2, 3, 3, 1, 1, 1, 1, 1, 1, 1, - 0, 1, 1, 3, 1, 1, 4, 0, 1, 1, - 3, 1, 1, 6, 1, 3, 1, 4, 3, 3, - 1, 2, 2, 1, 1, 1, 2, 1, 2, 2, - 3, 1, 1, 2, 2, 3, 1, 2, 3, 1, - 5, 3, 4, 2, 3, 2, 1, 3, 3, 1, - 4, 1, 2, 3, 3, 3, 4, 3, 1, 3, - 1, 1, 1, 1, 1, 1, 4, 4, 4, 4, - 6, 4, 1, 1, 1, 1, 1, 2, 0, 3, - 1, 3, 3, 4, 1, 1, 1, 1, 1, 1, - 1, 1, 1 -}; - -static const short yydefact[] = { 3, - 1, 0, 0, 7, 4, 5, 6, 0, 406, 405, - 73, 0, 69, 71, 76, 0, 0, 77, 412, 79, - 0, 194, 0, 0, 61, 52, 196, 198, 199, 228, - 200, 201, 202, 203, 210, 211, 212, 197, 205, 206, - 209, 207, 208, 230, 231, 213, 214, 215, 216, 217, - 224, 225, 226, 204, 227, 220, 221, 218, 219, 223, - 229, 222, 30, 0, 183, 0, 184, 247, 185, 186, - 0, 187, 188, 189, 191, 247, 247, 190, 182, 0, - 42, 43, 44, 2, 10, 22, 10, 17, 18, 19, - 0, 20, 21, 40, 41, 192, 195, 232, 0, 0, - 233, 234, 0, 15, 0, 0, 83, 16, 0, 0, - 220, 237, 0, 233, 234, 407, 410, 0, 0, 0, - 0, 0, 0, 58, 0, 64, 0, 0, 409, 257, - 408, 0, 241, 245, 243, 246, 0, 8, 9, 0, - 193, 235, 0, 0, 268, 0, 99, 103, 261, 260, - 262, 67, 68, 72, 70, 0, 81, 78, 344, 345, - 321, 0, 319, 314, 0, 0, 315, 320, 0, 0, - 0, 86, 85, 90, 285, 88, 284, 321, 298, 318, - 239, 238, 0, 0, 137, 0, 101, 0, 0, 0, - 0, 31, 32, 33, 34, 35, 0, 0, 0, 24, - 0, 0, 0, 11, 14, 12, 13, 103, 264, 270, - 0, 0, 37, 0, 0, 45, 0, 0, 265, 0, - 271, 84, 0, 323, 0, 322, 310, 311, 321, 0, - 0, 321, 299, 0, 285, 80, 0, 0, 289, 0, - 282, 286, 290, 0, 0, 300, 240, 0, 51, 140, - 0, 138, 139, 285, 142, 36, 62, 53, 0, 0, - 65, 176, 178, 38, 258, 254, 0, 0, 25, 26, - 29, 0, 0, 39, 47, 263, 269, 100, 0, 0, - 399, 408, 395, 396, 393, 394, 0, 0, 0, 386, - 0, 0, 102, 97, 0, 98, 333, 335, 337, 0, - 341, 346, 353, 357, 360, 352, 372, 385, 0, 397, - 413, 370, 0, 0, 0, 0, 104, 0, 266, 0, - 295, 0, 272, 0, 0, 306, 326, 325, 0, 0, - 312, 313, 0, 301, 0, 283, 87, 89, 91, 0, - 288, 0, 0, 0, 291, 93, 92, 96, 95, 316, - 317, 302, 236, 103, 0, 289, 0, 274, 280, 279, - 281, 0, 0, 56, 59, 0, 0, 180, 255, 0, - 28, 0, 0, 0, 0, 249, 0, 0, 0, 364, - 367, 0, 0, 0, 0, 0, 0, 0, 366, 0, - 0, 0, 0, 347, 346, 348, 342, 343, 354, 358, - 0, 0, 0, 0, 381, 382, 383, 0, 384, 355, - 373, 0, 398, 0, 106, 107, 108, 0, 267, 296, - 273, 82, 307, 324, 308, 303, 0, 293, 287, 292, - 0, 328, 94, 304, 49, 141, 143, 275, 289, 0, - 276, 166, 170, 63, 54, 0, 0, 177, 66, 172, - 179, 259, 256, 23, 27, 0, 252, 242, 250, 244, - 108, 369, 0, 362, 0, 400, 401, 0, 379, 0, - 0, 0, 194, 0, 0, 0, 131, 132, 0, 0, - 126, 129, 128, 365, 336, 340, 339, 350, 349, 0, - 411, 359, 376, 0, 374, 375, 378, 356, 0, 332, - 0, 111, 105, 309, 305, 0, 294, 0, 329, 330, - 0, 277, 0, 0, 0, 74, 0, 57, 60, 174, - 0, 173, 251, 0, 111, 363, 0, 368, 0, 0, - 0, 387, 0, 0, 392, 390, 388, 130, 0, 389, - 351, 377, 338, 371, 0, 0, 109, 118, 297, 0, - 0, 111, 278, 169, 0, 0, 167, 171, 0, 0, - 181, 253, 118, 361, 402, 0, 403, 117, 380, 0, - 0, 127, 0, 113, 0, 0, 0, 120, 327, 331, - 120, 75, 168, 103, 0, 120, 404, 334, 391, 112, - 0, 0, 0, 0, 0, 0, 122, 144, 0, 122, - 114, 0, 116, 110, 119, 0, 0, 133, 0, 133, - 0, 133, 0, 121, 0, 0, 0, 0, 135, 0, - 0, 175, 135, 115, 124, 123, 125, 0, 0, 0, - 0, 408, 0, 147, 0, 0, 50, 0, 134, 0, - 46, 0, 149, 0, 0, 145, 0, 0, 48, 136, - 0, 148, 146, 151, 150, 0, 0, 153, 0, 156, - 158, 0, 159, 407, 0, 160, 0, 0, 152, 161, - 0, 0, 163, 157, 162, 164, 0, 154, 0, 165, - 155, 0, 0, 0 -}; - -static const short yydefgoto[] = { 682, - 4, 1, 5, 84, 138, 204, 6, 205, 206, 86, - 268, 269, 270, 207, 125, 192, 88, 89, 90, 91, - 92, 316, 378, 93, 511, 94, 122, 363, 123, 446, - 191, 447, 121, 362, 95, 197, 367, 12, 13, 515, - 14, 17, 18, 106, 171, 172, 173, 174, 346, 293, - 294, 146, 147, 216, 317, 502, 547, 548, 573, 574, - 567, 578, 597, 608, 480, 481, 619, 630, 251, 342, - 253, 610, 654, 634, 659, 660, 444, 517, 521, 522, - 560, 261, 262, 368, 451, 96, 97, 98, 99, 254, - 482, 182, 114, 201, 202, 128, 375, 376, 456, 370, - 115, 266, 187, 149, 150, 360, 255, 176, 241, 242, - 243, 177, 295, 352, 179, 225, 226, 465, 433, 508, - 509, 499, 500, 297, 298, 299, 300, 301, 397, 398, - 302, 303, 304, 305, 382, 306, 470, 411, 307, 308, - 309, 310, 383, 466, 467, 311, 662, 312, 130, 119, - 492, 20, 313 -}; - -static const short yypact[] = {-32768, - -25, 136, 368, 1350,-32768,-32768,-32768, 181,-32768,-32768, --32768, 94,-32768,-32768,-32768, 181, 110,-32768,-32768, 33, - 2903,-32768, 182, 2903,-32768, 17,-32768,-32768,-32768,-32768, --32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, --32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, --32768,-32768,-32768,-32768,-32768, -11,-32768,-32768,-32768,-32768, --32768,-32768,-32768, 2903,-32768, 2903,-32768, 181,-32768,-32768, - 108,-32768,-32768,-32768,-32768, 181, 181,-32768,-32768, 2903, --32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, - 2903,-32768,-32768,-32768,-32768,-32768, 399,-32768, 2903, 408, - 155, 192, 205,-32768, 136, 204,-32768,-32768, 368, 1152, --32768, 233, 223,-32768,-32768, 266,-32768, 181, 305, 408, - 211, 235, 264,-32768, 1445,-32768, 408, 339,-32768, 347, --32768, 377,-32768, 347,-32768, 347, 408, 1247, 1247, 408, --32768,-32768, 408, 408,-32768, 196,-32768, 259, 322, 409, --32768,-32768,-32768,-32768,-32768, 181, 387,-32768,-32768,-32768, - 386, 181,-32768,-32768, 181, 534,-32768,-32768, 403, 2903, - 410, 445, 453,-32768, 360, 439,-32768, 386, 474,-32768, --32768, 496, 2903, 497, 2319, 239, 470, 486, 492, 401, - 404,-32768,-32768,-32768,-32768,-32768, 408, 282, 493, 2414, - 488, 494, 288,-32768,-32768,-32768,-32768,-32768, 322, 409, - 121, 141,-32768, 408, 3200, 1836, 1933, 3059,-32768, 2030, --32768,-32768, 1152,-32768, 499, 122,-32768,-32768, 386, 181, - 181, 386, 502, 421, 360,-32768, 1152, 1152, 360, 1741, --32768, 454,-32768, 328, 80,-32768,-32768, 525,-32768,-32768, - 504,-32768, 507, 380,-32768,-32768,-32768,-32768, 522, 524, - 515,-32768,-32768,-32768,-32768, 518, 2903, 514, 520,-32768, --32768, 2903, 2903,-32768, 1836,-32768,-32768,-32768, 3200, 3109, --32768, 266,-32768,-32768,-32768,-32768, 544, 3200, 545,-32768, - 549, 551,-32768,-32768, 3033,-32768, 550,-32768, 114, 3226, --32768, 374, 382, 382, 535, 193,-32768,-32768, 273,-32768, --32768,-32768, 555, 560, 562, 536,-32768, 408,-32768, 537, --32768, 539,-32768, 540, 541, 552,-32768,-32768, 553, 547, --32768,-32768, 80,-32768, 554,-32768, 453, 439,-32768, 439, - 454, 548, 177, 2127,-32768, 556,-32768,-32768,-32768,-32768, --32768, 557,-32768,-32768, 2509, 380, 1644,-32768, 322, 469, --32768, 47, 47,-32768,-32768, 408, 564, 538, 561, 559, --32768, 569, 2414, 408, 2611,-32768, 2713, 558, 36, 565, --32768, 293, 108, 3200, 10, 3200, 1022, 762,-32768, 220, - 3200, 3226, 3226,-32768,-32768, 268, 374, 374, 275, 275, - 181, 3150, 181, 181,-32768,-32768,-32768, 181,-32768, 382, --32768, 3200,-32768, 3200,-32768,-32768,-32768, 314,-32768,-32768, --32768,-32768,-32768,-32768, 563, 568, 566,-32768,-32768,-32768, - 573, 181,-32768,-32768, 1836,-32768,-32768, 469, 354, 2224, --32768,-32768, 165,-32768,-32768, 47, 47,-32768,-32768, 530, --32768,-32768,-32768,-32768,-32768, 317,-32768,-32768,-32768,-32768, --32768,-32768, 181, 567, 3200, 570,-32768, 572, 550, 362, - 3200, 579, 581, 575, 577, 578,-32768,-32768, 2903, 384, --32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, 268, --32768,-32768,-32768, 157,-32768,-32768,-32768, 275, 583,-32768, - 397, -8,-32768,-32768,-32768, 574,-32768, 590, 591,-32768, - 571,-32768, 587, 592, 363,-32768, 1547,-32768,-32768,-32768, - 594,-32768,-32768, 408, -8,-32768, 181,-32768, 108, 2808, - 3200,-32768, 28, 3200,-32768,-32768,-32768,-32768, 892,-32768, --32768,-32768,-32768,-32768, 108, 2903,-32768, 582,-32768, 181, - 181, 576,-32768,-32768, 181, 593,-32768,-32768, 408, 605, --32768,-32768, 582,-32768,-32768, 2903,-32768,-32768, 550, 3200, - 600,-32768, 331,-32768, 103, 408, 3200, 521,-32768,-32768, - 521,-32768,-32768,-32768, 629, 521,-32768, 550,-32768,-32768, - 108, 2903, 3200, 336, 634, 3200, 584, 597, 3200, 584, --32768, 601,-32768,-32768,-32768, 639, 632, 596, 615, 596, - 613, 596, 3200,-32768, 644, 648, 337, 3200, 608, 49, - 623,-32768, 608,-32768,-32768,-32768,-32768, 652, 3200, 625, - 49, 651, 50,-32768, 653, 631,-32768, 627,-32768, 658, --32768, 63,-32768, 272, 49,-32768, 208, 642,-32768,-32768, - 49,-32768,-32768, 660,-32768, 222, 222,-32768, 419, 666, --32768, 661,-32768,-32768, 668,-32768, 41, 222,-32768, 316, - 432, 468,-32768, 666,-32768,-32768, 426,-32768, 430,-32768, --32768, 670, 676,-32768 -}; - -static const short yypgoto[] = {-32768, --32768,-32768,-32768,-32768, 595,-32768,-32768, 678, 677,-32768, --32768,-32768, 307, 679,-32768,-32768, 610, 612, 616,-32768, - -121,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, --32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, 580,-32768, - -6,-32768, 585,-32768, 461,-32768, 451, 452,-32768,-32768, - 471, -108, 478, -188,-32768, 232,-32768, -458,-32768, 127, - -473, 175, -169, 142, 137, 206, -206, 120,-32768, -180, --32768,-32768, -507,-32768, -190, -230, -318,-32768,-32768,-32768, --32768,-32768, 381,-32768,-32768, -89,-32768,-32768,-32768, -3, - -18,-32768, 32,-32768,-32768, 407, 476, 68,-32768,-32768, - 56,-32768, -93, -127, 344, 398, -187, 257, -182, -213, - -101, 511, 30, -267, 603, -137,-32768, 586,-32768,-32768, --32768, -531, -204, -254,-32768, 105, -46, 466,-32768,-32768, - -278, 455,-32768,-32768, 472, -265, -205,-32768,-32768, -372, --32768, -303,-32768,-32768, 242, 7, -23, -38, 423, 656, - -377, 19, 531 -}; - - -#define YYLAST 3340 - - -static const short yytable[] = { 118, - 100, 103, 113, 196, 252, 413, 148, 141, 15, 19, - 296, 186, 271, 296, 15, 209, 211, 112, 198, 275, - 120, 395, 19, 391, 379, 341, 343, 389, 203, 117, - 497, 2, 132, 385, 107, 101, 320, 399, 400, 324, - 245, 391, 110, 670, 445, 595, 208, 219, 221, 391, - 124, 545, 336, 442, 510, 643, 644, 645, 631, 102, - 126, 151, 127, 180, 606, 426, 563, 611, 643, 651, - 645, 361, 462, 632, 129, 381, 137, 673, 570, 371, - 443, 151, 129, 129, 646, 526, 628, 140, 151, 3, - 381, 330, 587, 581, 333, 142, 546, 640, 151, 652, - 104, 151, 350, 263, 151, 151, 175, 219, 221, 219, - 221, 15, 633, -55, 351, 19, 108, 488, 602, 180, - 471, 100, 484, 642, 117, 105, 359, 518, 519, 469, - 217, 218, 131, 592, 100, 100, 485, 655, 8, 178, - 345, 109, 341, 343, 498, 327, 392, 469, 593, 564, - 220, 218, 393, 328, 347, 9, 101, 276, 151, 469, - 10, 152, 19, 431, 248, 435, 235, 437, 227, 101, - 101, 228, 579, 580, 222, 151, 180, 277, 11, 112, - 102, 472, 475, 483, 9, 271, 344, 218, 531, 10, - 180, 180, 542, 102, 102, 232, 494, 180, 153, 514, - 9, 9, 213, 402, 403, 10, 116, 154, 501, 418, - 656, 541, 318, 429, 164, 151, 533, 657, 404, 175, - 405, 406, 407, 408, 656, 341, 167, 214, 209, 211, - 409, 657, 632, 175, 175, 156, 331, 332, 181, 345, - 157, 345, 350, 327, 658, 256, 632, 283, 284, 285, - 286, 328, 178, 183, 351, 396, 585, 219, 441, 513, - 528, 283, 284, 285, 286, -101, 178, 178, 374, 374, - 214, 318, 263, 178, 661, -405, 569, 279, 280, 151, - 457, 631, 412, 661, 661, 402, 403, 9, 264, 164, - -101, 215, 282, 281, 274, 661, 632, 661, 661, 661, - 404, 167, 405, 406, 407, 408, 653, 283, 284, 285, - 286, 209, 409, 214, 185, 588, 327, 151, 151, 214, - 503, 287, 188, 523, 328, 657, 289, 151, 464, 571, - 159, 217, 218, 160, 483, 151, 441, 590, 161, 162, - 632, 163, 604, 627, 468, 214, 189, 9, 524, 164, - 489, 490, 10, 165, 166, 283, 284, 285, 286, 439, - 190, 167, 591, 357, 218, 239, 168, 214, 539, 240, - 218, 374, 199, 374, 290, 291, 159, 16, 131, 160, - -248, 292, 169, 474, 112, 356, 200, 9, 603, 357, - 218, 279, 10, 531, 555, 558, 223, 556, 532, 358, - 151, 9, 483, 621, 131, 623, 282, 491, 624, 495, - 496, 598, 224, 143, 491, 539, 600, 144, 220, 218, - 540, 283, 284, 285, 286, 666, 667, 145, 531, 234, - 562, 318, 131, 544, 656, 287, 516, 674, 491, 675, - 289, 657, 459, 65, 459, 67, 236, 69, 70, 15, - 668, 72, 73, 74, 75, 669, 632, 668, 78, 79, - 538, 668, 680, 344, 218, 584, 681, 594, 676, 491, - 656, 283, 284, 285, 286, 112, 237, 657, 440, 218, - 677, 679, 133, 135, 238, 151, 210, 212, 290, 291, - 468, 244, 632, 338, 340, 292, 486, 487, 134, 136, - 246, 247, 215, 249, 678, 257, 575, 283, 284, 285, - 286, 258, 259, 559, 65, 260, 67, 265, 69, 70, - 151, 272, 72, 73, 74, 75, 568, 273, 334, 78, - 79, 335, 353, 491, 326, 112, 159, 151, 355, 160, - 354, 364, 576, 365, 229, 230, 366, 163, 582, 369, - 372, 373, 575, 384, 386, 164, 491, 491, 387, 231, - 388, 15, 568, 391, 414, 401, 415, 167, 416, 417, - 449, 450, 168, 419, 420, 454, 421, 422, 423, 424, - 427, 636, 425, 434, 428, 452, 432, 520, 568, 504, - -406, 461, 636, 453, 505, 463, 635, 527, 554, 583, - 549, 529, 530, 112, 552, 636, 636, 635, 663, 507, - 534, 535, 636, 536, 537, 550, 506, 663, 663, 543, - 635, 635, 551, 553, 665, 281, 596, 635, 561, 663, - 577, 663, 663, 663, 159, 545, 589, 160, 599, 21, - 605, 279, 280, 609, 607, 614, 613, 618, 620, 622, - 625, 473, 281, 164, 626, 629, 282, 637, 639, 641, - -407, 649, 647, 648, 650, 167, 664, 645, 670, 683, - 671, 283, 284, 285, 286, 684, 615, 672, 7, 455, - 85, 139, 87, 325, 155, 287, 288, 337, 322, 339, - 289, 278, 525, 158, 616, 477, 478, 479, 27, 28, - 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, - 39, 40, 41, 42, 43, 44, 45, 601, 46, 47, - 48, 49, 50, 51, 52, 53, 54, 55, 111, 57, - 58, 59, 60, 61, 193, 62, 194, 586, 290, 291, - 195, 612, 638, 617, 572, 292, 448, 65, 377, 67, - 68, 69, 70, 438, 348, 72, 73, 74, 75, 76, - 410, 77, 78, 79, 159, 394, 390, 160, 233, 21, - 565, 279, 280, 184, 349, 0, 0, 0, 0, 0, - 0, 473, 281, 164, 0, 0, 282, 0, 0, 0, - 0, 0, 0, 0, 0, 167, 0, 0, 0, 0, - 0, 283, 284, 285, 286, 476, 0, 0, 0, 0, - 0, 329, 0, 0, 0, 287, 288, 0, 0, 0, - 289, 0, 0, 0, 0, 477, 478, 479, 27, 28, - 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, - 39, 40, 41, 42, 43, 44, 45, 0, 46, 47, - 48, 49, 50, 51, 52, 53, 54, 55, 111, 57, - 58, 59, 60, 61, 0, 62, 0, 0, 290, 291, - 0, 0, 0, 0, 0, 292, 0, 65, 0, 67, - 68, 69, 70, 0, 0, 72, 73, 74, 75, 76, - 0, 77, 78, 79, 159, 0, 0, 160, 0, 21, - 0, 279, 280, 0, 0, 0, 0, 0, 0, 0, - 0, 473, 281, 164, 0, 0, 282, 0, 0, 0, - 0, 0, 0, 0, 0, 167, 0, 0, 0, 0, - 0, 283, 284, 285, 286, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 287, 288, 0, 0, 0, - 289, 0, 0, 0, 0, 477, 478, 479, 27, 28, - 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, - 39, 40, 41, 42, 43, 44, 45, 0, 46, 47, - 48, 49, 50, 51, 52, 53, 54, 55, 111, 57, - 58, 59, 60, 61, 0, 62, 0, 0, 290, 291, - 0, 0, 0, 0, 0, 292, 0, 65, 0, 67, - 68, 69, 70, 0, 0, 72, 73, 74, 75, 76, - 0, 77, 78, 79, 159, 0, 0, 160, 0, 21, - 0, 279, 280, 0, 0, 0, 0, 0, 0, 0, - 0, 473, 281, 164, 0, 0, 282, 0, 0, 0, - 0, 0, 0, 0, 0, 167, 0, 0, 0, 0, - 0, 283, 284, 285, 286, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 287, 288, 0, 0, 0, - 289, 0, 0, 0, 0, 0, 0, 0, 27, 28, - 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, - 39, 40, 41, 42, 43, 44, 45, 0, 46, 47, - 48, 49, 50, 51, 52, 53, 54, 55, 111, 57, - 58, 59, 60, 61, 0, 62, 0, 0, 290, 291, - 0, 0, 0, 0, 0, 292, 0, 65, 0, 67, - 68, 69, 70, 0, 0, 72, 73, 74, 75, 76, - 0, 77, 78, 79, 159, 0, 0, 160, 0, 21, - 0, 0, 161, 162, 0, 163, 0, 0, 0, 0, - 0, 22, 0, 164, 0, 0, 0, 165, 166, 0, - 0, 0, 0, 0, 0, 167, 0, 0, 0, 0, - 168, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 169, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 170, 27, 28, - 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, - 39, 40, 41, 42, 43, 44, 45, 0, 46, 47, - 48, 49, 50, 51, 52, 53, 54, 55, 111, 57, - 58, 59, 60, 61, 21, 62, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 22, 65, 0, 67, - 68, 69, 70, 0, 0, 72, 73, 74, 75, 76, - 0, 77, 78, 79, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 23, 0, 24, 0, 0, 0, - 0, 0, 25, 0, 0, 0, 0, 0, 26, 0, - 0, 0, 0, 27, 28, 29, 30, 31, 32, 33, - 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, - 44, 45, 0, 46, 47, 48, 49, 50, 51, 52, - 53, 54, 55, 56, 57, 58, 59, 60, 61, 0, - 62, 0, 0, 0, 0, 63, 0, 21, 0, 64, - 0, 3, 65, 66, 67, 68, 69, 70, 71, 22, - 72, 73, 74, 75, 76, 0, 77, 78, 79, 80, - 81, 82, 83, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 23, 0, 24, - 0, 0, 0, 0, 0, 25, 0, 0, 0, 0, - 0, 26, 0, 0, 0, 0, 27, 28, 29, 30, - 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, - 41, 42, 43, 44, 45, 0, 46, 47, 48, 49, - 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, - 60, 61, 21, 62, 0, 0, 0, 0, 63, 0, - 0, 0, 64, 0, 22, 65, 66, 67, 68, 69, - 70, 71, 0, 72, 73, 74, 75, 76, 0, 77, - 78, 79, 80, 81, 82, 83, 0, 0, 0, 0, - 0, 0, 0, 0, 24, 0, 0, 0, 0, 0, - 25, 0, 0, 0, 0, 0, 26, 0, 0, 0, - 0, 27, 28, 29, 30, 31, 32, 33, 34, 35, - 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, - 0, 46, 47, 48, 49, 50, 51, 52, 53, 54, - 55, 56, 57, 58, 59, 60, 61, 0, 62, 0, - 0, 0, 0, 0, 21, 0, 0, 64, 0, 0, - 65, 66, 67, 68, 69, 70, 22, 0, 72, 73, - 74, 75, 76, 0, 77, 78, 79, 80, 81, 82, - 83, 557, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 27, 28, 29, 30, 31, 32, 33, - 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, - 44, 45, 0, 46, 47, 48, 49, 50, 51, 52, - 53, 54, 55, 111, 57, 58, 59, 60, 61, 439, - 62, 21, 0, 357, 218, 0, 0, 0, 0, 0, - 0, 0, 65, 22, 67, 68, 69, 70, 131, 0, - 72, 73, 74, 75, 76, 0, 77, 78, 79, 0, - 81, 82, 83, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, - 37, 38, 39, 40, 41, 42, 43, 44, 45, 0, - 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, - 111, 57, 58, 59, 60, 61, 239, 62, 21, 0, - 240, 218, 0, 0, 0, 0, 0, 0, 0, 65, - 22, 67, 68, 69, 70, 0, 0, 72, 73, 74, - 75, 76, 250, 77, 78, 79, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 27, 28, 29, - 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, - 40, 41, 42, 43, 44, 45, 0, 46, 47, 48, - 49, 50, 51, 52, 53, 54, 55, 111, 57, 58, - 59, 60, 61, 21, 62, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 22, 65, 0, 67, 68, - 69, 70, 0, 0, 72, 73, 74, 75, 76, 250, - 77, 78, 79, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 314, - 315, 0, 27, 28, 29, 30, 31, 32, 33, 34, - 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, - 45, 0, 46, 47, 48, 49, 50, 51, 52, 53, - 54, 55, 111, 57, 58, 59, 60, 61, 0, 62, - 21, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 65, 22, 67, 68, 69, 70, 0, 0, 72, - 73, 74, 75, 76, 0, 77, 78, 79, 0, 319, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 27, - 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, - 38, 39, 40, 41, 42, 43, 44, 45, 0, 46, - 47, 48, 49, 50, 51, 52, 53, 54, 55, 111, - 57, 58, 59, 60, 61, 0, 62, 21, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 65, 22, - 67, 68, 69, 70, 0, 0, 72, 73, 74, 75, - 76, 250, 77, 78, 79, 0, 323, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 27, 28, 29, 30, - 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, - 41, 42, 43, 44, 45, 0, 46, 47, 48, 49, - 50, 51, 52, 53, 54, 55, 111, 57, 58, 59, - 60, 61, 0, 62, 21, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 65, 22, 67, 68, 69, - 70, 0, 0, 72, 73, 74, 75, 76, 250, 77, - 78, 79, 0, 430, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 27, 28, 29, 30, 31, 32, 33, - 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, - 44, 45, 0, 46, 47, 48, 49, 50, 51, 52, - 53, 54, 55, 111, 57, 58, 59, 60, 61, 0, - 62, 21, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 65, 22, 67, 68, 69, 70, 0, 0, - 72, 73, 74, 75, 76, 250, 77, 78, 79, 0, - 512, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, - 37, 38, 39, 40, 41, 42, 43, 44, 45, 0, - 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, - 111, 57, 58, 59, 60, 61, 21, 62, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 22, 65, - 0, 67, 68, 69, 70, 0, 0, 72, 73, 74, - 75, 76, 250, 77, 78, 79, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 27, 28, 29, 30, 31, - 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, - 42, 43, 44, 45, 0, 46, 47, 48, 49, 50, - 51, 52, 53, 54, 55, 111, 57, 58, 59, 60, - 61, 21, 62, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 22, 65, 0, 67, 68, 69, 70, - 0, 0, 72, 73, 74, 75, 76, 250, 77, 78, - 79, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, - 37, 38, 39, 40, 41, 42, 43, 44, 45, 0, - 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, - 111, 57, 58, 59, 60, 61, 21, 62, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 22, 65, - 0, 67, 68, 69, 70, 0, 267, 72, 73, 74, - 75, 76, 0, 77, 78, 79, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 27, 28, 29, 30, 31, - 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, - 42, 43, 44, 45, 0, 46, 47, 48, 49, 50, - 51, 52, 53, 54, 55, 111, 57, 58, 59, 60, - 61, 0, 62, 0, 0, 0, 0, 0, 21, 0, - 0, 0, 0, 0, 65, 0, 67, 68, 69, 70, - 22, 0, 72, 73, 74, 75, 76, 436, 77, 78, - 79, 0, 0, 0, 0, 458, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 27, 28, 29, - 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, - 40, 41, 42, 43, 44, 45, 0, 46, 47, 48, - 49, 50, 51, 52, 53, 54, 55, 111, 57, 58, - 59, 60, 61, 0, 62, 0, 0, 0, 0, 0, - 21, 0, 0, 0, 0, 0, 65, 0, 67, 68, - 69, 70, 22, 0, 72, 73, 74, 75, 76, 0, - 77, 78, 79, 0, 0, 0, 0, 460, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 27, - 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, - 38, 39, 40, 41, 42, 43, 44, 45, 0, 46, - 47, 48, 49, 50, 51, 52, 53, 54, 55, 111, - 57, 58, 59, 60, 61, 21, 62, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 22, 65, 0, - 67, 68, 69, 70, 0, 0, 72, 73, 74, 75, - 76, 0, 77, 78, 79, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 566, 27, 28, 29, 30, 31, 32, - 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, - 43, 44, 45, 0, 46, 47, 48, 49, 50, 51, - 52, 53, 54, 55, 111, 57, 58, 59, 60, 61, - 21, 62, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 22, 65, 0, 67, 68, 69, 70, 0, - 0, 72, 73, 74, 75, 76, 0, 77, 78, 79, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 27, - 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, - 38, 39, 40, 41, 42, 43, 44, 45, 0, 46, - 47, 48, 49, 50, 51, 52, 53, 54, 55, 111, - 57, 58, 59, 60, 61, 0, 62, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 65, 0, - 67, 68, 69, 70, 0, 0, 72, 73, 74, 75, - 76, 0, 77, 78, 79, 159, 0, 0, 160, 0, - 0, 0, 279, 280, 0, 0, 0, 0, 0, 0, - 0, 0, 9, 281, 164, 350, 0, 282, 0, 0, - 0, 159, 0, 0, 160, 0, 167, 351, 279, 280, - 0, 0, 283, 284, 285, 286, 0, 0, 9, 281, - 164, 0, 0, 282, 0, 0, 287, 288, 0, 0, - 0, 289, 167, 0, 321, 0, 0, 0, 283, 284, - 285, 286, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 159, 287, 288, 160, 0, 0, 289, 279, 280, - 0, 0, 0, 0, 0, 0, 0, 0, 9, 281, - 164, 0, 0, 282, 0, 0, 0, 0, 0, 290, - 291, 0, 167, 0, 380, 0, 292, 0, 283, 284, - 285, 286, 159, 0, 0, 160, 0, 0, 0, 279, - 280, 0, 287, 288, 0, 290, 291, 289, 0, 9, - 281, 164, 292, 0, 282, 0, 0, 0, 0, 0, - 0, 0, 0, 167, 0, 493, 0, 0, 0, 283, - 284, 285, 286, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 159, 287, 288, 160, 0, 0, 289, 279, - 280, 0, 0, 0, 0, 290, 291, 0, 0, 9, - 281, 164, 292, 0, 282, 0, 0, 0, 159, 0, - 0, 160, 0, 167, 0, 279, 280, 0, 0, 283, - 284, 285, 286, 0, 0, 9, 0, 164, 0, 0, - 282, 0, 0, 287, 288, 0, 290, 291, 289, 167, - 0, 0, 0, 292, 0, 283, 284, 285, 286, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 287, - 0, 0, 0, 0, 289, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 290, 291, 0, 0, - 0, 0, 0, 292, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 290, 291, 0, 0, 0, 0, 0, 292 -}; - -static const short yycheck[] = { 23, - 4, 8, 21, 125, 185, 309, 100, 97, 2, 3, - 215, 120, 200, 218, 8, 143, 144, 21, 127, 208, - 24, 300, 16, 14, 279, 239, 240, 295, 137, 23, - 408, 57, 71, 288, 16, 4, 217, 303, 304, 220, - 178, 14, 10, 3, 363, 577, 140, 149, 150, 14, - 62, 60, 235, 7, 432, 6, 7, 8, 10, 4, - 64, 100, 66, 110, 596, 333, 525, 599, 6, 7, - 8, 254, 37, 25, 68, 280, 80, 37, 51, 267, - 34, 120, 76, 77, 35, 463, 618, 91, 127, 115, - 295, 229, 566, 552, 232, 99, 105, 629, 137, 37, - 7, 140, 23, 197, 143, 144, 110, 209, 210, 211, - 212, 105, 620, 97, 35, 109, 7, 396, 592, 166, - 111, 125, 390, 631, 118, 32, 254, 446, 447, 384, - 10, 11, 25, 31, 138, 139, 391, 645, 3, 110, - 242, 32, 356, 357, 410, 24, 33, 402, 46, 527, - 10, 11, 39, 32, 244, 20, 125, 37, 197, 414, - 25, 7, 156, 344, 183, 354, 170, 355, 162, 138, - 139, 165, 550, 551, 156, 214, 223, 37, 43, 183, - 125, 386, 387, 388, 20, 373, 10, 11, 32, 25, - 237, 238, 36, 138, 139, 166, 402, 244, 7, 35, - 20, 20, 7, 11, 12, 25, 25, 3, 414, 318, - 3, 490, 216, 37, 22, 254, 471, 10, 26, 223, - 28, 29, 30, 31, 3, 439, 34, 32, 356, 357, - 38, 10, 25, 237, 238, 32, 230, 231, 6, 341, - 37, 343, 23, 24, 37, 7, 25, 40, 41, 42, - 43, 32, 223, 31, 35, 302, 560, 359, 360, 440, - 465, 40, 41, 42, 43, 7, 237, 238, 272, 273, - 32, 275, 366, 244, 647, 10, 531, 10, 11, 318, - 374, 10, 10, 656, 657, 11, 12, 20, 7, 22, - 32, 33, 25, 21, 7, 668, 25, 670, 671, 672, - 26, 34, 28, 29, 30, 31, 35, 40, 41, 42, - 43, 439, 38, 32, 10, 570, 24, 356, 357, 32, - 7, 54, 112, 7, 32, 10, 59, 366, 36, 534, - 3, 10, 11, 6, 539, 374, 438, 7, 11, 12, - 25, 14, 7, 7, 383, 32, 112, 20, 32, 22, - 397, 398, 25, 26, 27, 40, 41, 42, 43, 6, - 97, 34, 32, 10, 11, 6, 39, 32, 32, 10, - 11, 375, 34, 377, 107, 108, 3, 10, 25, 6, - 34, 114, 55, 387, 388, 6, 10, 20, 593, 10, - 11, 10, 25, 32, 32, 517, 10, 35, 37, 20, - 439, 20, 607, 610, 25, 612, 25, 401, 613, 403, - 404, 581, 27, 6, 408, 32, 586, 10, 10, 11, - 37, 40, 41, 42, 43, 656, 657, 20, 32, 27, - 524, 435, 25, 37, 3, 54, 443, 668, 432, 670, - 59, 10, 375, 116, 377, 118, 37, 120, 121, 443, - 32, 124, 125, 126, 127, 37, 25, 32, 131, 132, - 479, 32, 37, 10, 11, 559, 37, 576, 37, 463, - 3, 40, 41, 42, 43, 479, 32, 10, 10, 11, - 671, 672, 76, 77, 32, 524, 143, 144, 107, 108, - 529, 53, 25, 237, 238, 114, 392, 393, 76, 77, - 27, 6, 33, 7, 37, 20, 545, 40, 41, 42, - 43, 20, 112, 517, 116, 112, 118, 25, 120, 121, - 559, 34, 124, 125, 126, 127, 530, 34, 27, 131, - 132, 111, 8, 527, 36, 539, 3, 576, 32, 6, - 37, 20, 546, 20, 11, 12, 32, 14, 555, 32, - 37, 32, 591, 10, 10, 22, 550, 551, 10, 26, - 10, 555, 566, 14, 10, 31, 7, 34, 7, 34, - 7, 34, 39, 37, 36, 7, 37, 37, 27, 27, - 27, 620, 36, 27, 37, 25, 31, 58, 592, 27, - 10, 34, 631, 35, 27, 31, 620, 31, 7, 7, - 27, 32, 31, 607, 34, 644, 645, 631, 647, 37, - 32, 37, 651, 37, 37, 26, 51, 656, 657, 37, - 644, 645, 32, 37, 648, 21, 106, 651, 35, 668, - 49, 670, 671, 672, 3, 60, 37, 6, 10, 8, - 7, 10, 11, 47, 61, 7, 46, 52, 34, 37, - 7, 20, 21, 22, 7, 48, 25, 35, 7, 35, - 10, 35, 10, 33, 7, 34, 25, 8, 3, 0, - 10, 40, 41, 42, 43, 0, 45, 10, 1, 373, - 4, 87, 4, 223, 105, 54, 55, 237, 218, 238, - 59, 214, 461, 109, 63, 64, 65, 66, 67, 68, - 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, - 79, 80, 81, 82, 83, 84, 85, 591, 87, 88, - 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, - 99, 100, 101, 102, 125, 104, 125, 563, 107, 108, - 125, 600, 623, 607, 539, 114, 366, 116, 273, 118, - 119, 120, 121, 356, 244, 124, 125, 126, 127, 128, - 306, 130, 131, 132, 3, 300, 295, 6, 166, 8, - 529, 10, 11, 118, 244, -1, -1, -1, -1, -1, - -1, 20, 21, 22, -1, -1, 25, -1, -1, -1, - -1, -1, -1, -1, -1, 34, -1, -1, -1, -1, - -1, 40, 41, 42, 43, 44, -1, -1, -1, -1, - -1, 226, -1, -1, -1, 54, 55, -1, -1, -1, - 59, -1, -1, -1, -1, 64, 65, 66, 67, 68, - 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, - 79, 80, 81, 82, 83, 84, 85, -1, 87, 88, - 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, - 99, 100, 101, 102, -1, 104, -1, -1, 107, 108, - -1, -1, -1, -1, -1, 114, -1, 116, -1, 118, - 119, 120, 121, -1, -1, 124, 125, 126, 127, 128, - -1, 130, 131, 132, 3, -1, -1, 6, -1, 8, - -1, 10, 11, -1, -1, -1, -1, -1, -1, -1, - -1, 20, 21, 22, -1, -1, 25, -1, -1, -1, - -1, -1, -1, -1, -1, 34, -1, -1, -1, -1, - -1, 40, 41, 42, 43, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, 54, 55, -1, -1, -1, - 59, -1, -1, -1, -1, 64, 65, 66, 67, 68, - 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, - 79, 80, 81, 82, 83, 84, 85, -1, 87, 88, - 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, - 99, 100, 101, 102, -1, 104, -1, -1, 107, 108, - -1, -1, -1, -1, -1, 114, -1, 116, -1, 118, - 119, 120, 121, -1, -1, 124, 125, 126, 127, 128, - -1, 130, 131, 132, 3, -1, -1, 6, -1, 8, - -1, 10, 11, -1, -1, -1, -1, -1, -1, -1, - -1, 20, 21, 22, -1, -1, 25, -1, -1, -1, - -1, -1, -1, -1, -1, 34, -1, -1, -1, -1, - -1, 40, 41, 42, 43, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, 54, 55, -1, -1, -1, - 59, -1, -1, -1, -1, -1, -1, -1, 67, 68, - 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, - 79, 80, 81, 82, 83, 84, 85, -1, 87, 88, - 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, - 99, 100, 101, 102, -1, 104, -1, -1, 107, 108, - -1, -1, -1, -1, -1, 114, -1, 116, -1, 118, - 119, 120, 121, -1, -1, 124, 125, 126, 127, 128, - -1, 130, 131, 132, 3, -1, -1, 6, -1, 8, - -1, -1, 11, 12, -1, 14, -1, -1, -1, -1, - -1, 20, -1, 22, -1, -1, -1, 26, 27, -1, - -1, -1, -1, -1, -1, 34, -1, -1, -1, -1, - 39, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, 55, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, 66, 67, 68, - 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, - 79, 80, 81, 82, 83, 84, 85, -1, 87, 88, - 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, - 99, 100, 101, 102, 8, 104, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, 20, 116, -1, 118, - 119, 120, 121, -1, -1, 124, 125, 126, 127, 128, - -1, 130, 131, 132, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 48, -1, 50, -1, -1, -1, - -1, -1, 56, -1, -1, -1, -1, -1, 62, -1, - -1, -1, -1, 67, 68, 69, 70, 71, 72, 73, - 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, - 84, 85, -1, 87, 88, 89, 90, 91, 92, 93, - 94, 95, 96, 97, 98, 99, 100, 101, 102, -1, - 104, -1, -1, -1, -1, 109, -1, 8, -1, 113, - -1, 115, 116, 117, 118, 119, 120, 121, 122, 20, - 124, 125, 126, 127, 128, -1, 130, 131, 132, 133, - 134, 135, 136, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, 48, -1, 50, - -1, -1, -1, -1, -1, 56, -1, -1, -1, -1, - -1, 62, -1, -1, -1, -1, 67, 68, 69, 70, - 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, - 81, 82, 83, 84, 85, -1, 87, 88, 89, 90, - 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, - 101, 102, 8, 104, -1, -1, -1, -1, 109, -1, - -1, -1, 113, -1, 20, 116, 117, 118, 119, 120, - 121, 122, -1, 124, 125, 126, 127, 128, -1, 130, - 131, 132, 133, 134, 135, 136, -1, -1, -1, -1, - -1, -1, -1, -1, 50, -1, -1, -1, -1, -1, - 56, -1, -1, -1, -1, -1, 62, -1, -1, -1, - -1, 67, 68, 69, 70, 71, 72, 73, 74, 75, - 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, - -1, 87, 88, 89, 90, 91, 92, 93, 94, 95, - 96, 97, 98, 99, 100, 101, 102, -1, 104, -1, - -1, -1, -1, -1, 8, -1, -1, 113, -1, -1, - 116, 117, 118, 119, 120, 121, 20, -1, 124, 125, - 126, 127, 128, -1, 130, 131, 132, 133, 134, 135, - 136, 35, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, 67, 68, 69, 70, 71, 72, 73, - 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, - 84, 85, -1, 87, 88, 89, 90, 91, 92, 93, - 94, 95, 96, 97, 98, 99, 100, 101, 102, 6, - 104, 8, -1, 10, 11, -1, -1, -1, -1, -1, - -1, -1, 116, 20, 118, 119, 120, 121, 25, -1, - 124, 125, 126, 127, 128, -1, 130, 131, 132, -1, - 134, 135, 136, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, - 77, 78, 79, 80, 81, 82, 83, 84, 85, -1, - 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, - 97, 98, 99, 100, 101, 102, 6, 104, 8, -1, - 10, 11, -1, -1, -1, -1, -1, -1, -1, 116, - 20, 118, 119, 120, 121, -1, -1, 124, 125, 126, - 127, 128, 129, 130, 131, 132, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, 67, 68, 69, - 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, - 80, 81, 82, 83, 84, 85, -1, 87, 88, 89, - 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, - 100, 101, 102, 8, 104, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, 20, 116, -1, 118, 119, - 120, 121, -1, -1, 124, 125, 126, 127, 128, 129, - 130, 131, 132, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, 64, - 65, -1, 67, 68, 69, 70, 71, 72, 73, 74, - 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, - 85, -1, 87, 88, 89, 90, 91, 92, 93, 94, - 95, 96, 97, 98, 99, 100, 101, 102, -1, 104, - 8, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, 116, 20, 118, 119, 120, 121, -1, -1, 124, - 125, 126, 127, 128, -1, 130, 131, 132, -1, 37, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, 67, - 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, - 78, 79, 80, 81, 82, 83, 84, 85, -1, 87, - 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, - 98, 99, 100, 101, 102, -1, 104, 8, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, 116, 20, - 118, 119, 120, 121, -1, -1, 124, 125, 126, 127, - 128, 129, 130, 131, 132, -1, 37, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, 67, 68, 69, 70, - 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, - 81, 82, 83, 84, 85, -1, 87, 88, 89, 90, - 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, - 101, 102, -1, 104, 8, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, 116, 20, 118, 119, 120, - 121, -1, -1, 124, 125, 126, 127, 128, 129, 130, - 131, 132, -1, 37, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, 67, 68, 69, 70, 71, 72, 73, - 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, - 84, 85, -1, 87, 88, 89, 90, 91, 92, 93, - 94, 95, 96, 97, 98, 99, 100, 101, 102, -1, - 104, 8, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, 116, 20, 118, 119, 120, 121, -1, -1, - 124, 125, 126, 127, 128, 129, 130, 131, 132, -1, - 37, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, - 77, 78, 79, 80, 81, 82, 83, 84, 85, -1, - 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, - 97, 98, 99, 100, 101, 102, 8, 104, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, 20, 116, - -1, 118, 119, 120, 121, -1, -1, 124, 125, 126, - 127, 128, 129, 130, 131, 132, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, 67, 68, 69, 70, 71, - 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, - 82, 83, 84, 85, -1, 87, 88, 89, 90, 91, - 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, - 102, 8, 104, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, 20, 116, -1, 118, 119, 120, 121, - -1, -1, 124, 125, 126, 127, 128, 129, 130, 131, - 132, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, - 77, 78, 79, 80, 81, 82, 83, 84, 85, -1, - 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, - 97, 98, 99, 100, 101, 102, 8, 104, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, 20, 116, - -1, 118, 119, 120, 121, -1, 123, 124, 125, 126, - 127, 128, -1, 130, 131, 132, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, 67, 68, 69, 70, 71, - 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, - 82, 83, 84, 85, -1, 87, 88, 89, 90, 91, - 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, - 102, -1, 104, -1, -1, -1, -1, -1, 8, -1, - -1, -1, -1, -1, 116, -1, 118, 119, 120, 121, - 20, -1, 124, 125, 126, 127, 128, 129, 130, 131, - 132, -1, -1, -1, -1, 35, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, 67, 68, 69, - 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, - 80, 81, 82, 83, 84, 85, -1, 87, 88, 89, - 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, - 100, 101, 102, -1, 104, -1, -1, -1, -1, -1, - 8, -1, -1, -1, -1, -1, 116, -1, 118, 119, - 120, 121, 20, -1, 124, 125, 126, 127, 128, -1, - 130, 131, 132, -1, -1, -1, -1, 35, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, 67, - 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, - 78, 79, 80, 81, 82, 83, 84, 85, -1, 87, - 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, - 98, 99, 100, 101, 102, 8, 104, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, 20, 116, -1, - 118, 119, 120, 121, -1, -1, 124, 125, 126, 127, - 128, -1, 130, 131, 132, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, 66, 67, 68, 69, 70, 71, 72, - 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, - 83, 84, 85, -1, 87, 88, 89, 90, 91, 92, - 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, - 8, 104, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, 20, 116, -1, 118, 119, 120, 121, -1, - -1, 124, 125, 126, 127, 128, -1, 130, 131, 132, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, 67, - 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, - 78, 79, 80, 81, 82, 83, 84, 85, -1, 87, - 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, - 98, 99, 100, 101, 102, -1, 104, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, 116, -1, - 118, 119, 120, 121, -1, -1, 124, 125, 126, 127, - 128, -1, 130, 131, 132, 3, -1, -1, 6, -1, - -1, -1, 10, 11, -1, -1, -1, -1, -1, -1, - -1, -1, 20, 21, 22, 23, -1, 25, -1, -1, - -1, 3, -1, -1, 6, -1, 34, 35, 10, 11, - -1, -1, 40, 41, 42, 43, -1, -1, 20, 21, - 22, -1, -1, 25, -1, -1, 54, 55, -1, -1, - -1, 59, 34, -1, 36, -1, -1, -1, 40, 41, - 42, 43, -1, -1, -1, -1, -1, -1, -1, -1, - -1, 3, 54, 55, 6, -1, -1, 59, 10, 11, - -1, -1, -1, -1, -1, -1, -1, -1, 20, 21, - 22, -1, -1, 25, -1, -1, -1, -1, -1, 107, - 108, -1, 34, -1, 36, -1, 114, -1, 40, 41, - 42, 43, 3, -1, -1, 6, -1, -1, -1, 10, - 11, -1, 54, 55, -1, 107, 108, 59, -1, 20, - 21, 22, 114, -1, 25, -1, -1, -1, -1, -1, - -1, -1, -1, 34, -1, 36, -1, -1, -1, 40, - 41, 42, 43, -1, -1, -1, -1, -1, -1, -1, - -1, -1, 3, 54, 55, 6, -1, -1, 59, 10, - 11, -1, -1, -1, -1, 107, 108, -1, -1, 20, - 21, 22, 114, -1, 25, -1, -1, -1, 3, -1, - -1, 6, -1, 34, -1, 10, 11, -1, -1, 40, - 41, 42, 43, -1, -1, 20, -1, 22, -1, -1, - 25, -1, -1, 54, 55, -1, 107, 108, 59, 34, - -1, -1, -1, 114, -1, 40, 41, 42, 43, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, 54, - -1, -1, -1, -1, 59, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, 107, 108, -1, -1, - -1, -1, -1, 114, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, 107, 108, -1, -1, -1, -1, -1, 114 -}; -/* -*-C-*- Note some compilers choke on comments on `#line' lines. */ -#line 3 "/usr/lib/bison.simple" -/* This file comes from bison-1.28. */ - -/* Skeleton output parser for bison, - Copyright (C) 1984, 1989, 1990 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 2, 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, write to the Free Software - Foundation, Inc., 59 Temple Place - Suite 330, - Boston, MA 02111-1307, USA. */ - -/* As a special exception, when this file is copied by Bison into a - Bison output file, you may use that output file without restriction. - This special exception was added by the Free Software Foundation - in version 1.24 of Bison. */ - -/* This is the parser code that is written into each bison parser - when the %semantic_parser declaration is not specified in the grammar. - It was written by Richard Stallman by simplifying the hairy parser - used when %semantic_parser is specified. */ - -#ifndef YYSTACK_USE_ALLOCA -#ifdef alloca -#define YYSTACK_USE_ALLOCA -#else /* alloca not defined */ -#ifdef __GNUC__ -#define YYSTACK_USE_ALLOCA -#define alloca __builtin_alloca -#else /* not GNU C. */ -#if (!defined (__STDC__) && defined (sparc)) || defined (__sparc__) || defined (__sparc) || defined (__sgi) || (defined (__sun) && defined (__i386)) -#define YYSTACK_USE_ALLOCA -#include -#else /* not sparc */ -/* We think this test detects Watcom and Microsoft C. */ -/* This used to test MSDOS, but that is a bad idea - since that symbol is in the user namespace. */ -#if (defined (_MSDOS) || defined (_MSDOS_)) && !defined (__TURBOC__) -#if 0 /* No need for malloc.h, which pollutes the namespace; - instead, just don't use alloca. */ -#include -#endif -#else /* not MSDOS, or __TURBOC__ */ -#if defined(_AIX) -/* I don't know what this was needed for, but it pollutes the namespace. - So I turned it off. rms, 2 May 1997. */ -/* #include */ - #pragma alloca -#define YYSTACK_USE_ALLOCA -#else /* not MSDOS, or __TURBOC__, or _AIX */ -#if 0 -#ifdef __hpux /* haible@ilog.fr says this works for HPUX 9.05 and up, - and on HPUX 10. Eventually we can turn this on. */ -#define YYSTACK_USE_ALLOCA -#define alloca __builtin_alloca -#endif /* __hpux */ -#endif -#endif /* not _AIX */ -#endif /* not MSDOS, or __TURBOC__ */ -#endif /* not sparc */ -#endif /* not GNU C */ -#endif /* alloca not defined */ -#endif /* YYSTACK_USE_ALLOCA not defined */ - -#ifdef YYSTACK_USE_ALLOCA -#define YYSTACK_ALLOC alloca -#else -#define YYSTACK_ALLOC malloc -#endif - -/* Note: there must be only one dollar sign in this file. - It is replaced by the list of actions, each action - as one case of the switch. */ - -#define yyerrok (yyerrstatus = 0) -#define yyclearin (yychar = YYEMPTY) -#define YYEMPTY -2 -#define YYEOF 0 -#define YYACCEPT goto yyacceptlab -#define YYABORT goto yyabortlab -#define YYERROR goto yyerrlab1 -/* Like YYERROR except do call yyerror. - This remains here temporarily to ease the - transition to the new meaning of YYERROR, for GCC. - Once GCC version 2 has supplanted version 1, this can go. */ -#define YYFAIL goto yyerrlab -#define YYRECOVERING() (!!yyerrstatus) -#define YYBACKUP(token, value) \ -do \ - if (yychar == YYEMPTY && yylen == 1) \ - { yychar = (token), yylval = (value); \ - yychar1 = YYTRANSLATE (yychar); \ - YYPOPSTACK; \ - goto yybackup; \ - } \ - else \ - { yyerror ("syntax error: cannot back up"); YYERROR; } \ -while (0) - -#define YYTERROR 1 -#define YYERRCODE 256 - -#ifndef YYPURE -#define YYLEX yylex() -#endif - -#ifdef YYPURE -#ifdef YYLSP_NEEDED -#ifdef YYLEX_PARAM -#define YYLEX yylex(&yylval, &yylloc, YYLEX_PARAM) -#else -#define YYLEX yylex(&yylval, &yylloc) -#endif -#else /* not YYLSP_NEEDED */ -#ifdef YYLEX_PARAM -#define YYLEX yylex(&yylval, YYLEX_PARAM) -#else -#define YYLEX yylex(&yylval) -#endif -#endif /* not YYLSP_NEEDED */ -#endif - -/* If nonreentrant, generate the variables here */ - -#ifndef YYPURE - -int yychar; /* the lookahead symbol */ -YYSTYPE yylval; /* the semantic value of the */ - /* lookahead symbol */ - -#ifdef YYLSP_NEEDED -YYLTYPE yylloc; /* location data for the lookahead */ - /* symbol */ -#endif - -int yynerrs; /* number of parse errors so far */ -#endif /* not YYPURE */ - -#if YYDEBUG != 0 -int yydebug; /* nonzero means print parse trace */ -/* Since this is uninitialized, it does not stop multiple parsers - from coexisting. */ -#endif - -/* YYINITDEPTH indicates the initial size of the parser's stacks */ - -#ifndef YYINITDEPTH -#define YYINITDEPTH 200 -#endif - -/* YYMAXDEPTH is the maximum size the stacks can grow to - (effective only if the built-in stack extension method is used). */ - -#if YYMAXDEPTH == 0 -#undef YYMAXDEPTH -#endif - -#ifndef YYMAXDEPTH -#define YYMAXDEPTH 10000 -#endif - -/* Define __yy_memcpy. Note that the size argument - should be passed with type unsigned int, because that is what the non-GCC - definitions require. With GCC, __builtin_memcpy takes an arg - of type size_t, but it can handle unsigned int. */ - -#if __GNUC__ > 1 /* GNU C and GNU C++ define this. */ -#define __yy_memcpy(TO,FROM,COUNT) __builtin_memcpy(TO,FROM,COUNT) -#else /* not GNU C or C++ */ -#ifndef __cplusplus - -/* This is the most reliable way to avoid incompatibilities - in available built-in functions on various systems. */ -static void -__yy_memcpy (to, from, count) - char *to; - char *from; - unsigned int count; -{ - register char *f = from; - register char *t = to; - register int i = count; - - while (i-- > 0) - *t++ = *f++; -} - -#else /* __cplusplus */ - -/* This is the most reliable way to avoid incompatibilities - in available built-in functions on various systems. */ -static void -__yy_memcpy (char *to, char *from, unsigned int count) -{ - register char *t = to; - register char *f = from; - register int i = count; - - while (i-- > 0) - *t++ = *f++; -} - -#endif -#endif - -#line 217 "/usr/lib/bison.simple" - -/* The user can define YYPARSE_PARAM as the name of an argument to be passed - into yyparse. The argument should have type void *. - It should actually point to an object. - Grammar actions can access the variable by casting it - to the proper pointer type. */ - -#ifdef YYPARSE_PARAM -#ifdef __cplusplus -#define YYPARSE_PARAM_ARG void *YYPARSE_PARAM -#define YYPARSE_PARAM_DECL -#else /* not __cplusplus */ -#define YYPARSE_PARAM_ARG YYPARSE_PARAM -#define YYPARSE_PARAM_DECL void *YYPARSE_PARAM; -#endif /* not __cplusplus */ -#else /* not YYPARSE_PARAM */ -#define YYPARSE_PARAM_ARG -#define YYPARSE_PARAM_DECL -#endif /* not YYPARSE_PARAM */ - -/* Prevent warning if -Wstrict-prototypes. */ -#ifdef __GNUC__ -#ifdef YYPARSE_PARAM -int yyparse (void *); -#else -int yyparse (void); -#endif -#endif - -int -yyparse(YYPARSE_PARAM_ARG) - YYPARSE_PARAM_DECL -{ - register int yystate; - register int yyn; - register short *yyssp; - register YYSTYPE *yyvsp; - int yyerrstatus; /* number of tokens to shift before error messages enabled */ - int yychar1 = 0; /* lookahead token as an internal (translated) token number */ - - short yyssa[YYINITDEPTH]; /* the state stack */ - YYSTYPE yyvsa[YYINITDEPTH]; /* the semantic value stack */ - - short *yyss = yyssa; /* refer to the stacks thru separate pointers */ - YYSTYPE *yyvs = yyvsa; /* to allow yyoverflow to reallocate them elsewhere */ - -#ifdef YYLSP_NEEDED - YYLTYPE yylsa[YYINITDEPTH]; /* the location stack */ - YYLTYPE *yyls = yylsa; - YYLTYPE *yylsp; - -#define YYPOPSTACK (yyvsp--, yyssp--, yylsp--) -#else -#define YYPOPSTACK (yyvsp--, yyssp--) -#endif - - int yystacksize = YYINITDEPTH; - int yyfree_stacks = 0; - -#ifdef YYPURE - int yychar; - YYSTYPE yylval; - int yynerrs; -#ifdef YYLSP_NEEDED - YYLTYPE yylloc; -#endif -#endif - - YYSTYPE yyval; /* the variable used to return */ - /* semantic values from the action */ - /* routines */ - - int yylen; - -#if YYDEBUG != 0 - if (yydebug) - fprintf(stderr, "Starting parse\n"); -#endif - - yystate = 0; - yyerrstatus = 0; - yynerrs = 0; - yychar = YYEMPTY; /* Cause a token to be read. */ - - /* Initialize stack pointers. - Waste one element of value and location stack - so that they stay on the same level as the state stack. - The wasted elements are never initialized. */ - - yyssp = yyss - 1; - yyvsp = yyvs; -#ifdef YYLSP_NEEDED - yylsp = yyls; -#endif - -/* Push a new state, which is found in yystate . */ -/* In all cases, when you get here, the value and location stacks - have just been pushed. so pushing a state here evens the stacks. */ -yynewstate: - - *++yyssp = yystate; - - if (yyssp >= yyss + yystacksize - 1) - { - /* Give user a chance to reallocate the stack */ - /* Use copies of these so that the &'s don't force the real ones into memory. */ - YYSTYPE *yyvs1 = yyvs; - short *yyss1 = yyss; -#ifdef YYLSP_NEEDED - YYLTYPE *yyls1 = yyls; -#endif - - /* Get the current used size of the three stacks, in elements. */ - int size = yyssp - yyss + 1; - -#ifdef yyoverflow - /* Each stack pointer address is followed by the size of - the data in use in that stack, in bytes. */ -#ifdef YYLSP_NEEDED - /* This used to be a conditional around just the two extra args, - but that might be undefined if yyoverflow is a macro. */ - yyoverflow("parser stack overflow", - &yyss1, size * sizeof (*yyssp), - &yyvs1, size * sizeof (*yyvsp), - &yyls1, size * sizeof (*yylsp), - &yystacksize); -#else - yyoverflow("parser stack overflow", - &yyss1, size * sizeof (*yyssp), - &yyvs1, size * sizeof (*yyvsp), - &yystacksize); -#endif - - yyss = yyss1; yyvs = yyvs1; -#ifdef YYLSP_NEEDED - yyls = yyls1; -#endif -#else /* no yyoverflow */ - /* Extend the stack our own way. */ - if (yystacksize >= YYMAXDEPTH) - { - yyerror("parser stack overflow"); - if (yyfree_stacks) - { - free (yyss); - free (yyvs); -#ifdef YYLSP_NEEDED - free (yyls); -#endif - } - return 2; - } - yystacksize *= 2; - if (yystacksize > YYMAXDEPTH) - yystacksize = YYMAXDEPTH; -#ifndef YYSTACK_USE_ALLOCA - yyfree_stacks = 1; -#endif - yyss = (short *) YYSTACK_ALLOC (yystacksize * sizeof (*yyssp)); - __yy_memcpy ((char *)yyss, (char *)yyss1, - size * (unsigned int) sizeof (*yyssp)); - yyvs = (YYSTYPE *) YYSTACK_ALLOC (yystacksize * sizeof (*yyvsp)); - __yy_memcpy ((char *)yyvs, (char *)yyvs1, - size * (unsigned int) sizeof (*yyvsp)); -#ifdef YYLSP_NEEDED - yyls = (YYLTYPE *) YYSTACK_ALLOC (yystacksize * sizeof (*yylsp)); - __yy_memcpy ((char *)yyls, (char *)yyls1, - size * (unsigned int) sizeof (*yylsp)); -#endif -#endif /* no yyoverflow */ - - yyssp = yyss + size - 1; - yyvsp = yyvs + size - 1; -#ifdef YYLSP_NEEDED - yylsp = yyls + size - 1; -#endif - -#if YYDEBUG != 0 - if (yydebug) - fprintf(stderr, "Stack size increased to %d\n", yystacksize); -#endif - - if (yyssp >= yyss + yystacksize - 1) - YYABORT; - } - -#if YYDEBUG != 0 - if (yydebug) - fprintf(stderr, "Entering state %d\n", yystate); -#endif - - goto yybackup; - yybackup: - -/* Do appropriate processing given the current state. */ -/* Read a lookahead token if we need one and don't already have one. */ -/* yyresume: */ - - /* First try to decide what to do without reference to lookahead token. */ - - yyn = yypact[yystate]; - if (yyn == YYFLAG) - goto yydefault; - - /* Not known => get a lookahead token if don't already have one. */ - - /* yychar is either YYEMPTY or YYEOF - or a valid token in external form. */ - - if (yychar == YYEMPTY) - { -#if YYDEBUG != 0 - if (yydebug) - fprintf(stderr, "Reading a token: "); -#endif - yychar = YYLEX; - } - - /* Convert token to internal form (in yychar1) for indexing tables with */ - - if (yychar <= 0) /* This means end of input. */ - { - yychar1 = 0; - yychar = YYEOF; /* Don't call YYLEX any more */ - -#if YYDEBUG != 0 - if (yydebug) - fprintf(stderr, "Now at end of input.\n"); -#endif - } - else - { - yychar1 = YYTRANSLATE(yychar); - -#if YYDEBUG != 0 - if (yydebug) - { - fprintf (stderr, "Next token is %d (%s", yychar, yytname[yychar1]); - /* Give the individual parser a way to print the precise meaning - of a token, for further debugging info. */ -#ifdef YYPRINT - YYPRINT (stderr, yychar, yylval); -#endif - fprintf (stderr, ")\n"); - } -#endif - } - - yyn += yychar1; - if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != yychar1) - goto yydefault; - - yyn = yytable[yyn]; - - /* yyn is what to do for this token type in this state. - Negative => reduce, -yyn is rule number. - Positive => shift, yyn is new state. - New state is final state => don't bother to shift, - just return success. - 0, or most negative number => error. */ - - if (yyn < 0) - { - if (yyn == YYFLAG) - goto yyerrlab; - yyn = -yyn; - goto yyreduce; - } - else if (yyn == 0) - goto yyerrlab; - - if (yyn == YYFINAL) - YYACCEPT; - - /* Shift the lookahead token. */ - -#if YYDEBUG != 0 - if (yydebug) - fprintf(stderr, "Shifting token %d (%s), ", yychar, yytname[yychar1]); -#endif - - /* Discard the token being shifted unless it is eof. */ - if (yychar != YYEOF) - yychar = YYEMPTY; - - *++yyvsp = yylval; -#ifdef YYLSP_NEEDED - *++yylsp = yylloc; -#endif - - /* count tokens shifted since error; after three, turn off error status. */ - if (yyerrstatus) yyerrstatus--; - - yystate = yyn; - goto yynewstate; - -/* Do the default action for the current state. */ -yydefault: - - yyn = yydefact[yystate]; - if (yyn == 0) - goto yyerrlab; - -/* Do a reduction. yyn is the number of a rule to reduce with. */ -yyreduce: - yylen = yyr2[yyn]; - if (yylen > 0) - yyval = yyvsp[1-yylen]; /* implement default value of the action */ - -#if YYDEBUG != 0 - if (yydebug) - { - int i; - - fprintf (stderr, "Reducing via rule %d (line %d), ", - yyn, yyrline[yyn]); - - /* Print the symbols being reduced, and their result. */ - for (i = yyprhs[yyn]; yyrhs[i] > 0; i++) - fprintf (stderr, "%s ", yytname[yyrhs[i]]); - fprintf (stderr, " -> %s\n", yytname[yyr1[yyn]]); - } -#endif - - - switch (yyn) { - -case 1: -#line 383 "llgrammar.y" -{ lhExternals (yyvsp[0].interfacelist); ; - break;} -case 2: -#line 384 "llgrammar.y" -{ interfaceNodeList_free (yyvsp[-2].interfacelist); interfaceNodeList_free (yyvsp[0].interfacelist); ; - break;} -case 3: -#line 387 "llgrammar.y" -{ yyval.interfacelist = interfaceNodeList_new (); ; - break;} -case 4: -#line 388 "llgrammar.y" -{ yyval.interfacelist = interfaceNodeList_addh (yyvsp[-1].interfacelist, yyvsp[0].iface);; - break;} -case 7: -#line 395 "llgrammar.y" -{ yyval.interfacelist = interfaceNodeList_new (); ; - break;} -case 8: -#line 396 "llgrammar.y" -{ yyval.interfacelist = consInterfaceNode (yyvsp[-1].iface, yyvsp[0].interfacelist);; - break;} -case 9: -#line 397 "llgrammar.y" -{ yyval.interfacelist = consInterfaceNode (yyvsp[-1].iface, yyvsp[0].interfacelist);; - break;} -case 10: -#line 400 "llgrammar.y" -{ yyval.interfacelist = interfaceNodeList_new (); ; - break;} -case 11: -#line 401 "llgrammar.y" -{ yyval.interfacelist = interfaceNodeList_addh (yyvsp[-1].interfacelist, yyvsp[0].iface);; - break;} -case 15: -#line 410 "llgrammar.y" -{ yyval.iface = makeInterfaceNodeImports (yyvsp[-1].importlist); - /* assume subspecs are already processed, symbol table info in external file */ - ; - break;} -case 16: -#line 416 "llgrammar.y" -{ yyval.iface = makeInterfaceNodeUses (yyvsp[-1].traitreflist); readlsignatures (yyval.iface);; - break;} -case 17: -#line 420 "llgrammar.y" -{ declareConstant (yyvsp[0].constdeclaration); yyval.iface = interfaceNode_makeConst (yyvsp[0].constdeclaration); ; - break;} -case 18: -#line 422 "llgrammar.y" -{ declareVar (yyvsp[0].vardeclaration); yyval.iface = interfaceNode_makeVar (yyvsp[0].vardeclaration); ; - break;} -case 19: -#line 424 "llgrammar.y" -{ declareType (yyvsp[0].type); yyval.iface = interfaceNode_makeType (yyvsp[0].type); ; - break;} -case 20: -#line 426 "llgrammar.y" -{ declareFcn (yyvsp[0].fcn, typeId_invalid); yyval.iface = interfaceNode_makeFcn (yyvsp[0].fcn); ; - break;} -case 21: -#line 428 "llgrammar.y" -{ yyval.iface = interfaceNode_makeClaim (yyvsp[0].claim); ; - break;} -case 22: -#line 430 "llgrammar.y" -{ declareIter (yyvsp[0].iter); yyval.iface = interfaceNode_makeIter (yyvsp[0].iter); ; - break;} -case 23: -#line 434 "llgrammar.y" -{ yyval.iter = makeIterNode (yyvsp[-4].ltok, yyvsp[-2].paramlist); ; - break;} -case 24: -#line 437 "llgrammar.y" -{ yyval.paramlist = paramNodeList_new (); ; - break;} -case 25: -#line 438 "llgrammar.y" -{ yyval.paramlist = yyvsp[0].paramlist; ; - break;} -case 26: -#line 442 "llgrammar.y" -{ yyval.paramlist = paramNodeList_add (paramNodeList_new (), yyvsp[0].param); ; - break;} -case 27: -#line 444 "llgrammar.y" -{ yyval.paramlist = paramNodeList_add (yyvsp[-2].paramlist,yyvsp[0].param); ; - break;} -case 28: -#line 447 "llgrammar.y" -{ yyval.param = markYieldParamNode (yyvsp[0].param); ; - break;} -case 29: -#line 448 "llgrammar.y" -{ yyval.param = yyvsp[0].param; ; - break;} -case 30: -#line 451 "llgrammar.y" -{ symtable_export (g_symtab, FALSE); ; - break;} -case 31: -#line 452 "llgrammar.y" -{ yyval.iface = yyvsp[0].iface; symtable_export (g_symtab, TRUE); ; - break;} -case 32: -#line 456 "llgrammar.y" -{ declarePrivConstant (yyvsp[0].constdeclaration); yyval.iface = interfaceNode_makePrivConst (yyvsp[0].constdeclaration); ; - break;} -case 33: -#line 458 "llgrammar.y" -{ declarePrivVar (yyvsp[0].vardeclaration); yyval.iface = interfaceNode_makePrivVar (yyvsp[0].vardeclaration); ; - break;} -case 34: -#line 460 "llgrammar.y" -{ declarePrivType (yyvsp[0].type); yyval.iface = interfaceNode_makePrivType (yyvsp[0].type); ; - break;} -case 35: -#line 462 "llgrammar.y" -{ declarePrivFcn (yyvsp[0].fcn, typeId_invalid); yyval.iface = interfaceNode_makePrivFcn (yyvsp[0].fcn); ; - break;} -case 36: -#line 466 "llgrammar.y" -{ yyval.constdeclaration = makeConstDeclarationNode (yyvsp[-2].lcltypespec, yyvsp[-1].initdecls); ; - break;} -case 37: -#line 470 "llgrammar.y" -{ yyval.vardeclaration = makeVarDeclarationNode (yyvsp[-2].lcltypespec, yyvsp[-1].initdecls, FALSE, FALSE); yyval.vardeclaration->qualifier = QLF_NONE; ; - break;} -case 38: -#line 472 "llgrammar.y" -{ yyval.vardeclaration = makeVarDeclarationNode (yyvsp[-2].lcltypespec, yyvsp[-1].initdecls, FALSE, FALSE); yyval.vardeclaration->qualifier = QLF_CONST; ; - break;} -case 39: -#line 474 "llgrammar.y" -{ yyval.vardeclaration = makeVarDeclarationNode (yyvsp[-2].lcltypespec, yyvsp[-1].initdecls, FALSE, FALSE); yyval.vardeclaration->qualifier = QLF_VOLATILE; ; - break;} -case 40: -#line 477 "llgrammar.y" -{ yyval.type = makeAbstractTypeNode (yyvsp[0].abstract); ; - break;} -case 41: -#line 478 "llgrammar.y" -{ yyval.type = makeExposedTypeNode (yyvsp[0].exposed); ; - break;} -case 42: -#line 481 "llgrammar.y" -{ yyval.typequal = qual_createPrintfLike (); ; - break;} -case 43: -#line 482 "llgrammar.y" -{ yyval.typequal = qual_createScanfLike (); ; - break;} -case 44: -#line 483 "llgrammar.y" -{ yyval.typequal = qual_createMessageLike (); ; - break;} -case 45: -#line 486 "llgrammar.y" -{ enteringFcnScope (yyvsp[-2].lcltypespec, yyvsp[-1].declare, yyvsp[0].globals); ; - break;} -case 46: -#line 488 "llgrammar.y" -{ yyval.fcn = makeFcnNode (qual_createUnknown (), yyvsp[-12].lcltypespec, yyvsp[-11].declare, yyvsp[-10].globals, yyvsp[-7].vardeclarationlist, yyvsp[-6].letdecls, - yyvsp[-5].lclpredicate, yyvsp[-4].lclpredicate, yyvsp[-3].modify, yyvsp[-2].lclpredicate, yyvsp[-1].lclpredicate); - /* type, declarator, glovbls, privateinits, - lets, checks, requires, modifies, ensures, claims */ - symtable_exitScope (g_symtab); - ; - break;} -case 47: -#line 494 "llgrammar.y" -{ enteringFcnScope (yyvsp[-2].lcltypespec, yyvsp[-1].declare, yyvsp[0].globals); ; - break;} -case 48: -#line 498 "llgrammar.y" -{ yyval.fcn = makeFcnNode (yyvsp[-13].typequal, yyvsp[-12].lcltypespec, yyvsp[-11].declare, yyvsp[-10].globals, yyvsp[-7].vardeclarationlist, - yyvsp[-6].letdecls, yyvsp[-5].lclpredicate, yyvsp[-4].lclpredicate, yyvsp[-3].modify, yyvsp[-2].lclpredicate, yyvsp[-1].lclpredicate); - /* type, declarator, glovbls, privateinits, - lets, checks, requires, modifies, ensures, claims */ - symtable_exitScope (g_symtab); - ; - break;} -case 49: -#line 508 "llgrammar.y" -{ enteringClaimScope (yyvsp[-2].paramlist, yyvsp[0].globals); ; - break;} -case 50: -#line 510 "llgrammar.y" -{ yyval.claim = makeClaimNode (yyvsp[-11].ltok, yyvsp[-9].paramlist, yyvsp[-7].globals, yyvsp[-4].letdecls, yyvsp[-3].lclpredicate, yyvsp[-2].program, yyvsp[-1].lclpredicate); - symtable_exitScope (g_symtab); ; - break;} -case 51: -#line 513 "llgrammar.y" -{ yyval.claim = (claimNode) 0; ; - break;} -case 52: -#line 516 "llgrammar.y" -{g_inTypeDef = TRUE; ; - break;} -case 53: -#line 516 "llgrammar.y" -{g_inTypeDef = FALSE; ; - break;} -case 54: -#line 517 "llgrammar.y" -{ yyval.abstract = makeAbstractNode (yyvsp[-5].ltok, yyvsp[-2].ltok, TRUE, FALSE, yyvsp[0].abstbody); ; - break;} -case 55: -#line 518 "llgrammar.y" -{g_inTypeDef = TRUE; ; - break;} -case 56: -#line 519 "llgrammar.y" -{g_inTypeDef = FALSE; ; - break;} -case 57: -#line 520 "llgrammar.y" -{ yyval.abstract = makeAbstractNode (yyvsp[-6].ltok, yyvsp[-2].ltok, TRUE, TRUE, yyvsp[0].abstbody); ; - break;} -case 58: -#line 521 "llgrammar.y" -{g_inTypeDef = TRUE; ; - break;} -case 59: -#line 522 "llgrammar.y" -{g_inTypeDef = FALSE; ; - break;} -case 60: -#line 523 "llgrammar.y" -{ yyval.abstract = makeAbstractNode (yyvsp[-5].ltok, yyvsp[-2].ltok, TRUE, TRUE, yyvsp[0].abstbody); ; - break;} -case 61: -#line 524 "llgrammar.y" -{g_inTypeDef = TRUE; ; - break;} -case 62: -#line 524 "llgrammar.y" -{g_inTypeDef = FALSE; ; - break;} -case 63: -#line 525 "llgrammar.y" -{ yyval.abstract = makeAbstractNode (yyvsp[-5].ltok, yyvsp[-2].ltok, FALSE, FALSE, yyvsp[0].abstbody); ; - break;} -case 64: -#line 528 "llgrammar.y" -{ g_inTypeDef = TRUE; setExposedType (yyvsp[0].lcltypespec); ; - break;} -case 65: -#line 529 "llgrammar.y" -{ g_inTypeDef = FALSE; ; - break;} -case 66: -#line 530 "llgrammar.y" -{ yyval.exposed = makeExposedNode (yyvsp[-5].ltok, yyvsp[-4].lcltypespec, yyvsp[-2].declaratorinvs); /* to support mutually recursive types */ ; - break;} -case 67: -#line 532 "llgrammar.y" -{ yyval.exposed = makeExposedNode (yyvsp[0].ltok, makeLclTypeSpecNodeSU (yyvsp[-1].structorunion), declaratorInvNodeList_new ()); ; - break;} -case 68: -#line 534 "llgrammar.y" -{ yyval.exposed = makeExposedNode (yyvsp[0].ltok, makeLclTypeSpecNodeEnum (yyvsp[-1].enumspec), declaratorInvNodeList_new ()); ; - break;} -case 69: -#line 550 "llgrammar.y" -{ yyval.importlist = importNodeList_add (importNodeList_new (), yyvsp[0].import); ; - break;} -case 70: -#line 552 "llgrammar.y" -{ yyval.importlist = importNodeList_add (yyvsp[-2].importlist, yyvsp[0].import); ; - break;} -case 71: -#line 555 "llgrammar.y" -{ yyval.import = importNode_makePlain (yyvsp[0].ltok); ; - break;} -case 72: -#line 557 "llgrammar.y" -{ checkBrackets (yyvsp[-2].ltok, yyvsp[0].ltok); yyval.import = importNode_makeBracketed (yyvsp[-1].ltok); ; - break;} -case 73: -#line 558 "llgrammar.y" -{ yyval.import = importNode_makeQuoted (yyvsp[0].ltok); ; - break;} -case 74: -#line 561 "llgrammar.y" -{ yyval.ltokenList = ltokenList_singleton (yyvsp[0].ltok); ; - break;} -case 75: -#line 562 "llgrammar.y" -{ yyval.ltokenList = ltokenList_push (yyvsp[-2].ltokenList, yyvsp[0].ltok); ; - break;} -case 77: -#line 570 "llgrammar.y" -{ yyval.traitreflist = traitRefNodeList_add (traitRefNodeList_new (), yyvsp[0].traitref); ; - break;} -case 78: -#line 572 "llgrammar.y" -{ yyval.traitreflist = traitRefNodeList_add (yyvsp[-2].traitreflist, yyvsp[0].traitref); ; - break;} -case 79: -#line 576 "llgrammar.y" -{ yyval.traitref = makeTraitRefNode (ltokenList_singleton (yyvsp[0].ltok), (renamingNode)0); ; - break;} -case 80: -#line 578 "llgrammar.y" -{ yyval.traitref = makeTraitRefNode (ltokenList_singleton (yyvsp[-3].ltok), yyvsp[-1].renaming); ; - break;} -case 81: -#line 580 "llgrammar.y" -{ yyval.traitref = makeTraitRefNode (yyvsp[-1].ltokenList, (renamingNode)0); ; - break;} -case 82: -#line 582 "llgrammar.y" -{ yyval.traitref = makeTraitRefNode (yyvsp[-4].ltokenList, yyvsp[-1].renaming); ; - break;} -case 83: -#line 585 "llgrammar.y" -{ yyval.ltokenList = ltokenList_singleton (yyvsp[0].ltok); ; - break;} -case 84: -#line 586 "llgrammar.y" -{ yyval.ltokenList = ltokenList_push (yyvsp[-2].ltokenList, yyvsp[0].ltok); ; - break;} -case 85: -#line 590 "llgrammar.y" -{ yyval.renaming = makeRenamingNode (typeNameNodeList_new (), yyvsp[0].replacelist); ; - break;} -case 86: -#line 592 "llgrammar.y" -{ yyval.renaming = makeRenamingNode (yyvsp[0].namelist, replaceNodeList_new ()); ; - break;} -case 87: -#line 593 "llgrammar.y" -{ yyval.renaming = makeRenamingNode (yyvsp[-2].namelist, yyvsp[0].replacelist); ; - break;} -case 88: -#line 597 "llgrammar.y" -{ yyval.namelist = typeNameNodeList_add (typeNameNodeList_new (), yyvsp[0].typname); ; - break;} -case 89: -#line 598 "llgrammar.y" -{ yyval.namelist = typeNameNodeList_add (yyvsp[-2].namelist, yyvsp[0].typname); ; - break;} -case 90: -#line 602 "llgrammar.y" -{ yyval.replacelist = replaceNodeList_add (replaceNodeList_new (), yyvsp[0].replace); ; - break;} -case 91: -#line 603 "llgrammar.y" -{ yyval.replacelist = replaceNodeList_add (yyvsp[-2].replacelist, yyvsp[0].replace); ; - break;} -case 92: -#line 606 "llgrammar.y" -{ yyval.replace = makeReplaceNode (yyvsp[-1].ltok, yyvsp[-2].typname, TRUE, yyvsp[0].ltok, NULL, NULL); ; - break;} -case 93: -#line 607 "llgrammar.y" -{ yyval.replace = makeReplaceNameNode (yyvsp[-1].ltok, yyvsp[-2].typname, yyvsp[0].name); ; - break;} -case 94: -#line 608 "llgrammar.y" -{ yyval.replace = makeReplaceNode (yyvsp[-2].ltok, yyvsp[-3].typname, FALSE, ltoken_undefined, - yyvsp[-1].name, yyvsp[0].signature); ; - break;} -case 95: -#line 612 "llgrammar.y" -{ yyval.name = makeNameNodeId (yyvsp[0].ltok); ; - break;} -case 96: -#line 613 "llgrammar.y" -{ yyval.name = makeNameNodeForm (yyvsp[0].opform); ; - break;} -case 99: -#line 621 "llgrammar.y" -{ yyval.initdecls = initDeclNodeList_add (initDeclNodeList_new (), yyvsp[0].initdecl); ; - break;} -case 100: -#line 623 "llgrammar.y" -{ yyval.initdecls = initDeclNodeList_add (yyvsp[-2].initdecls, yyvsp[0].initdecl); ; - break;} -case 101: -#line 626 "llgrammar.y" -{ yyval.initdecl = makeInitDeclNode (yyvsp[0].declare, (termNode)0); ; - break;} -case 102: -#line 627 "llgrammar.y" -{ yyval.initdecl = makeInitDeclNode (yyvsp[-2].declare, yyvsp[0].term); ; - break;} -case 103: -#line 631 "llgrammar.y" -{ yyval.globals = varDeclarationNodeList_new (); ; - break;} -case 104: -#line 633 "llgrammar.y" -{ varDeclarationNodeList_addh (yyvsp[-1].globals, yyvsp[0].vardeclaration); yyval.globals = yyvsp[-1].globals; ; - break;} -case 105: -#line 636 "llgrammar.y" -{ yyval.vardeclaration = makeVarDeclarationNode (yyvsp[-2].lcltypespec, yyvsp[-1].initdecls, TRUE, FALSE); ; - break;} -case 106: -#line 637 "llgrammar.y" -{ yyval.vardeclaration = makeInternalStateNode (); ; - break;} -case 107: -#line 638 "llgrammar.y" -{ yyval.vardeclaration = makeFileSystemNode (); ; - break;} -case 108: -#line 641 "llgrammar.y" -{ yyval.vardeclarationlist = varDeclarationNodeList_new (); ; - break;} -case 109: -#line 642 "llgrammar.y" -{ varDeclarationNodeList_addh (yyvsp[-1].vardeclarationlist, yyvsp[0].vardeclaration); yyval.vardeclarationlist = yyvsp[-1].vardeclarationlist; ; - break;} -case 110: -#line 646 "llgrammar.y" -{ yyval.vardeclaration = makeVarDeclarationNode (yyvsp[-2].lcltypespec, yyvsp[-1].initdecls, FALSE, TRUE); ; - break;} -case 111: -#line 649 "llgrammar.y" -{ yyval.letdecls = letDeclNodeList_new (); ; - break;} -case 112: -#line 650 "llgrammar.y" -{ yyval.letdecls = yyvsp[-1].letdecls; ; - break;} -case 113: -#line 653 "llgrammar.y" -{ yyval.letdecls = letDeclNodeList_add (letDeclNodeList_new (), yyvsp[0].letdecl); ; - break;} -case 114: -#line 654 "llgrammar.y" -{ yyval.letdecls = letDeclNodeList_add (yyvsp[-2].letdecls, yyvsp[0].letdecl); ; - break;} -case 115: -#line 657 "llgrammar.y" -{ yyval.letdecl = makeLetDeclNode (yyvsp[-4].ltok, yyvsp[-2].lcltypespec, yyvsp[0].term); ; - break;} -case 116: -#line 658 "llgrammar.y" -{ yyval.letdecl = makeLetDeclNode (yyvsp[-2].ltok, (lclTypeSpecNode)0, yyvsp[0].term); ; - break;} -case 118: -#line 663 "llgrammar.y" -{ yyval.lclpredicate = (lclPredicateNode)0; ; - break;} -case 119: -#line 664 "llgrammar.y" -{ checkLclPredicate (yyvsp[-2].ltok, yyvsp[-1].lclpredicate); yyval.lclpredicate = makeChecksNode (yyvsp[-2].ltok, yyvsp[-1].lclpredicate); ; - break;} -case 120: -#line 667 "llgrammar.y" -{ yyval.lclpredicate = (lclPredicateNode)0; ; - break;} -case 121: -#line 668 "llgrammar.y" -{ checkLclPredicate (yyvsp[-2].ltok, yyvsp[-1].lclpredicate); yyval.lclpredicate = makeRequiresNode (yyvsp[-2].ltok, yyvsp[-1].lclpredicate);; - break;} -case 122: -#line 671 "llgrammar.y" -{ yyval.modify = (modifyNode)0; ; - break;} -case 123: -#line 672 "llgrammar.y" -{ yyval.modify = makeModifyNodeSpecial (yyvsp[-2].ltok, TRUE); ; - break;} -case 124: -#line 673 "llgrammar.y" -{ yyval.modify = makeModifyNodeSpecial (yyvsp[-2].ltok, FALSE); ; - break;} -case 125: -#line 674 "llgrammar.y" -{ yyval.modify = makeModifyNodeRef (yyvsp[-2].ltok, yyvsp[-1].storereflist); ; - break;} -case 126: -#line 677 "llgrammar.y" -{ yyval.storereflist = storeRefNodeList_add (storeRefNodeList_new (), yyvsp[0].storeref); ; - break;} -case 127: -#line 678 "llgrammar.y" -{ yyval.storereflist = storeRefNodeList_add (yyvsp[-2].storereflist, yyvsp[0].storeref); ; - break;} -case 128: -#line 681 "llgrammar.y" -{ yyval.storeref = makeStoreRefNodeTerm (yyvsp[0].term); ; - break;} -case 129: -#line 682 "llgrammar.y" -{ yyval.storeref = makeStoreRefNodeType (yyvsp[0].lcltypespec, FALSE); ; - break;} -case 130: -#line 683 "llgrammar.y" -{ yyval.storeref = makeStoreRefNodeType (yyvsp[0].lcltypespec, TRUE); ; - break;} -case 131: -#line 684 "llgrammar.y" -{ yyval.storeref = makeStoreRefNodeInternal (); ; - break;} -case 132: -#line 685 "llgrammar.y" -{ yyval.storeref = makeStoreRefNodeSystem (); ; - break;} -case 133: -#line 688 "llgrammar.y" -{ yyval.lclpredicate = (lclPredicateNode)0; ; - break;} -case 134: -#line 689 "llgrammar.y" -{ checkLclPredicate (yyvsp[-2].ltok, yyvsp[-1].lclpredicate); yyval.lclpredicate = makeEnsuresNode (yyvsp[-2].ltok, yyvsp[-1].lclpredicate);; - break;} -case 135: -#line 692 "llgrammar.y" -{ yyval.lclpredicate = (lclPredicateNode)0; ; - break;} -case 136: -#line 693 "llgrammar.y" -{ checkLclPredicate (yyvsp[-2].ltok, yyvsp[-1].lclpredicate); yyval.lclpredicate = makeIntraClaimNode (yyvsp[-2].ltok, yyvsp[-1].lclpredicate);; - break;} -case 137: -#line 696 "llgrammar.y" -{ yyval.paramlist = paramNodeList_new (); ; - break;} -case 138: -#line 697 "llgrammar.y" -{ yyval.paramlist = yyvsp[0].paramlist; ; - break;} -case 140: -#line 701 "llgrammar.y" -{ yyval.paramlist = paramNodeList_add (paramNodeList_new (), paramNode_elipsis ()); ; - break;} -case 141: -#line 702 "llgrammar.y" -{ yyval.paramlist = paramNodeList_add (yyvsp[-2].paramlist, paramNode_elipsis ()); ; - break;} -case 142: -#line 705 "llgrammar.y" -{ yyval.paramlist = paramNodeList_single (yyvsp[0].param); ; - break;} -case 143: -#line 706 "llgrammar.y" -{ yyval.paramlist = paramNodeList_add (yyvsp[-2].paramlist, yyvsp[0].param); ; - break;} -case 144: -#line 709 "llgrammar.y" -{ yyval.program = (programNode)0; ; - break;} -case 145: -#line 710 "llgrammar.y" -{ yyval.program = yyvsp[-1].program; ; - break;} -case 146: -#line 711 "llgrammar.y" -{ yyval.program = yyvsp[-2].program; ; - break;} -case 147: -#line 714 "llgrammar.y" -{ yyval.program = makeProgramNode (yyvsp[0].stmt); ; - break;} -case 148: -#line 717 "llgrammar.y" -{ yyval.program = yyvsp[-1].program; yyval.program->wrapped = yyval.program->wrapped + 1; ; - break;} -case 149: -#line 719 "llgrammar.y" -{ programNodeList x = programNodeList_new (); - programNodeList_addh (x, yyvsp[-1].program); - yyval.program = makeProgramNodeAction (x, ACT_ITER); - ; - break;} -case 150: -#line 724 "llgrammar.y" -{ programNodeList x = programNodeList_new (); - programNodeList_addh (x, yyvsp[-2].program); - programNodeList_addh (x, yyvsp[0].program); - yyval.program = makeProgramNodeAction (x, ACT_ALTERNATE); - ; - break;} -case 151: -#line 730 "llgrammar.y" -{ programNodeList x = programNodeList_new (); - programNodeList_addh (x, yyvsp[-2].program); - programNodeList_addh (x, yyvsp[0].program); - yyval.program = makeProgramNodeAction (x, ACT_SEQUENCE); - ; - break;} -case 152: -#line 738 "llgrammar.y" -{ yyval.stmt = makeStmtNode (ltoken_undefined, yyvsp[-3].ltok, yyvsp[-1].termlist); ; - break;} -case 153: -#line 740 "llgrammar.y" -{ yyval.stmt = makeStmtNode (ltoken_undefined, yyvsp[-2].ltok, termNodeList_new ()); ; - break;} -case 154: -#line 742 "llgrammar.y" -{ yyval.stmt = makeStmtNode (yyvsp[-4].ltok, yyvsp[-2].ltok, termNodeList_new ()); ; - break;} -case 155: -#line 744 "llgrammar.y" -{ yyval.stmt = makeStmtNode (yyvsp[-5].ltok, yyvsp[-3].ltok, yyvsp[-1].termlist); ; - break;} -case 156: -#line 747 "llgrammar.y" -{ yyval.termlist = termNodeList_push (termNodeList_new (), yyvsp[0].term); ; - break;} -case 157: -#line 748 "llgrammar.y" -{ yyval.termlist = termNodeList_push (yyvsp[-2].termlist, yyvsp[0].term); ; - break;} -case 159: -#line 752 "llgrammar.y" -{ yyval.term = makeSimpleTermNode (yyvsp[0].ltok); ; - break;} -case 160: -#line 753 "llgrammar.y" -{ yyval.term = makePrefixTermNode (yyvsp[-1].ltok, yyvsp[0].term); ; - break;} -case 161: -#line 754 "llgrammar.y" -{ yyval.term = makePostfixTermNode2 (yyvsp[-1].term, yyvsp[0].ltok); ; - break;} -case 162: -#line 755 "llgrammar.y" -{ yyval.term = makeInfixTermNode (yyvsp[-2].term, yyvsp[-1].ltok, yyvsp[0].term); ; - break;} -case 163: -#line 756 "llgrammar.y" -{ yyval.term = yyvsp[-1].term; yyval.term->wrapped = yyval.term->wrapped + 1; ; - break;} -case 164: -#line 758 "llgrammar.y" -{ yyval.term = makeOpCallTermNode (yyvsp[-2].ltok, yyvsp[-1].ltok, termNodeList_new (), yyvsp[0].ltok); ; - break;} -case 165: -#line 760 "llgrammar.y" -{ yyval.term = makeOpCallTermNode (yyvsp[-3].ltok, yyvsp[-2].ltok, yyvsp[-1].termlist, yyvsp[0].ltok); ; - break;} -case 166: -#line 763 "llgrammar.y" -{ yyval.abstbody = (abstBodyNode)0; ; - break;} -case 167: -#line 764 "llgrammar.y" -{ yyval.abstbody = makeAbstBodyNode (yyvsp[-2].ltok, yyvsp[-1].fcns); ; - break;} -case 168: -#line 765 "llgrammar.y" -{ yyval.abstbody = makeAbstBodyNode2 (yyvsp[-3].ltok, yyvsp[-2].ltokenList); ; - break;} -case 169: -#line 766 "llgrammar.y" -{ yyval.abstbody = (abstBodyNode)0; ; - break;} -case 170: -#line 769 "llgrammar.y" -{ yyval.fcns = fcnNodeList_new (); ; - break;} -case 171: -#line 770 "llgrammar.y" -{ yyval.fcns = fcnNodeList_add (yyvsp[-1].fcns, yyvsp[0].fcn); ; - break;} -case 172: -#line 773 "llgrammar.y" -{ yyval.lclpredicate = (lclPredicateNode)0; ; - break;} -case 174: -#line 777 "llgrammar.y" -{ g_inTypeDef = FALSE; ; - break;} -case 175: -#line 778 "llgrammar.y" -{ yyvsp[-1].lclpredicate->tok = yyvsp[-5].ltok; yyvsp[-1].lclpredicate->kind = LPD_CONSTRAINT; - checkLclPredicate (yyvsp[-5].ltok, yyvsp[-1].lclpredicate); - yyval.lclpredicate = yyvsp[-1].lclpredicate; - symtable_exitScope (g_symtab); - g_inTypeDef = TRUE; - ; - break;} -case 176: -#line 786 "llgrammar.y" -{ yyval.declaratorinvs = declaratorInvNodeList_add (declaratorInvNodeList_new (), yyvsp[0].declaratorinv); ; - break;} -case 177: -#line 788 "llgrammar.y" -{ yyval.declaratorinvs = declaratorInvNodeList_add (yyvsp[-2].declaratorinvs, yyvsp[0].declaratorinv); ; - break;} -case 178: -#line 791 "llgrammar.y" -{ declareForwardType (yyvsp[0].declare); ; - break;} -case 179: -#line 792 "llgrammar.y" -{ yyval.declaratorinv = makeDeclaratorInvNode (yyvsp[-2].declare, yyvsp[0].abstbody); ; - break;} -case 180: -#line 795 "llgrammar.y" -{ yyval.abstbody = (abstBodyNode)0; ; - break;} -case 181: -#line 796 "llgrammar.y" -{ yyval.abstbody = makeExposedBodyNode (yyvsp[-2].ltok, yyvsp[-1].lclpredicate); ; - break;} -case 182: -#line 799 "llgrammar.y" -{ yyval.ltok = yyvsp[0].ltok; ltoken_setIntField (yyval.ltok, fixBits (TS_VOID, 0)); ; - break;} -case 183: -#line 800 "llgrammar.y" -{ yyval.ltok = yyvsp[0].ltok; ltoken_setIntField (yyval.ltok, fixBits (TS_CHAR, 0)); ; - break;} -case 184: -#line 801 "llgrammar.y" -{ yyval.ltok = yyvsp[0].ltok; ltoken_setIntField (yyval.ltok, fixBits (TS_DOUBLE, 0)); ; - break;} -case 185: -#line 802 "llgrammar.y" -{ yyval.ltok = yyvsp[0].ltok; ltoken_setIntField (yyval.ltok, fixBits (TS_FLOAT, 0)); ; - break;} -case 186: -#line 803 "llgrammar.y" -{ yyval.ltok = yyvsp[0].ltok; ltoken_setIntField (yyval.ltok, fixBits (TS_INT, 0)); ; - break;} -case 187: -#line 804 "llgrammar.y" -{ yyval.ltok = yyvsp[0].ltok; ltoken_setIntField (yyval.ltok, fixBits (TS_LONG, 0)); ; - break;} -case 188: -#line 805 "llgrammar.y" -{ yyval.ltok = yyvsp[0].ltok; ltoken_setIntField (yyval.ltok, fixBits (TS_SHORT, 0)); ; - break;} -case 189: -#line 806 "llgrammar.y" -{ yyval.ltok = yyvsp[0].ltok; ltoken_setIntField (yyval.ltok, fixBits (TS_SIGNED, 0)); ; - break;} -case 190: -#line 807 "llgrammar.y" -{ yyval.ltok = yyvsp[0].ltok; ltoken_setIntField (yyval.ltok, fixBits (TS_UNSIGNED, 0)); ; - break;} -case 191: -#line 808 "llgrammar.y" -{ yyval.ltok = yyvsp[0].ltok; ltoken_setIntField (yyval.ltok, fixBits (TS_UNKNOWN, 0)); ; - break;} -case 192: -#line 816 "llgrammar.y" -{ yyval.ctypes = makeCTypesNode ((CTypesNode)0, yyvsp[0].ltok); ; - break;} -case 193: -#line 817 "llgrammar.y" -{ yyval.ctypes = makeCTypesNode (yyvsp[-1].ctypes, yyvsp[0].ltok); ; - break;} -case 194: -#line 823 "llgrammar.y" -{ yyval.ctypes = makeTypeSpecifier (yyvsp[0].ltok); ; - break;} -case 195: -#line 825 "llgrammar.y" -{ yyval.ctypes = yyvsp[0].ctypes; yyval.ctypes->sort = sort_lookupName (lclctype_toSort (yyvsp[0].ctypes->intfield)); ; - break;} -case 196: -#line 830 "llgrammar.y" -{ yyval.typequal = qual_createOut (); ; - break;} -case 197: -#line 831 "llgrammar.y" -{ yyval.typequal = qual_createUnused (); ; - break;} -case 198: -#line 832 "llgrammar.y" -{ yyval.typequal = qual_createSef (); ; - break;} -case 199: -#line 833 "llgrammar.y" -{ yyval.typequal = qual_createOnly (); ; - break;} -case 200: -#line 834 "llgrammar.y" -{ yyval.typequal = qual_createOwned (); ; - break;} -case 201: -#line 835 "llgrammar.y" -{ yyval.typequal = qual_createDependent (); ; - break;} -case 202: -#line 836 "llgrammar.y" -{ yyval.typequal = qual_createKeep (); ; - break;} -case 203: -#line 837 "llgrammar.y" -{ yyval.typequal = qual_createKept (); ; - break;} -case 204: -#line 838 "llgrammar.y" -{ yyval.typequal = qual_createObserver (); ; - break;} -case 205: -#line 839 "llgrammar.y" -{ yyval.typequal = qual_createExits (); ; - break;} -case 206: -#line 840 "llgrammar.y" -{ yyval.typequal = qual_createMayExit (); ; - break;} -case 207: -#line 841 "llgrammar.y" -{ yyval.typequal = qual_createTrueExit (); ; - break;} -case 208: -#line 842 "llgrammar.y" -{ yyval.typequal = qual_createFalseExit (); ; - break;} -case 209: -#line 843 "llgrammar.y" -{ yyval.typequal = qual_createNeverExit (); ; - break;} -case 210: -#line 844 "llgrammar.y" -{ yyval.typequal = qual_createOnly (); ; - break;} -case 211: -#line 845 "llgrammar.y" -{ yyval.typequal = qual_createShared (); ; - break;} -case 212: -#line 846 "llgrammar.y" -{ yyval.typequal = qual_createUnique (); ; - break;} -case 213: -#line 847 "llgrammar.y" -{ yyval.typequal = qual_createChecked (); ; - break;} -case 214: -#line 848 "llgrammar.y" -{ yyval.typequal = qual_createUnchecked (); ; - break;} -case 215: -#line 849 "llgrammar.y" -{ yyval.typequal = qual_createCheckedStrict (); ; - break;} -case 216: -#line 850 "llgrammar.y" -{ yyval.typequal = qual_createTrueNull (); ; - break;} -case 217: -#line 851 "llgrammar.y" -{ yyval.typequal = qual_createFalseNull (); ; - break;} -case 218: -#line 852 "llgrammar.y" -{ yyval.typequal = qual_createRelNull (); ; - break;} -case 219: -#line 853 "llgrammar.y" -{ yyval.typequal = qual_createRelDef (); ; - break;} -case 220: -#line 854 "llgrammar.y" -{ yyval.typequal = qual_createRefCounted (); ; - break;} -case 221: -#line 855 "llgrammar.y" -{ yyval.typequal = qual_createRefs (); ; - break;} -case 222: -#line 856 "llgrammar.y" -{ yyval.typequal = qual_createNewRef (); ; - break;} -case 223: -#line 857 "llgrammar.y" -{ yyval.typequal = qual_createKillRef (); ; - break;} -case 224: -#line 858 "llgrammar.y" -{ yyval.typequal = qual_createNull (); ; - break;} -case 225: -#line 859 "llgrammar.y" -{ yyval.typequal = qual_createNotNull (); ; - break;} -case 226: -#line 860 "llgrammar.y" -{ yyval.typequal = qual_createReturned (); ; - break;} -case 227: -#line 861 "llgrammar.y" -{ yyval.typequal = qual_createExposed (); ; - break;} -case 228: -#line 862 "llgrammar.y" -{ yyval.typequal = qual_createPartial (); ; - break;} -case 229: -#line 863 "llgrammar.y" -{ yyval.typequal = qual_createNullTerminated () ; ; - break;} -case 230: -#line 864 "llgrammar.y" -{ yyval.typequal = qual_createUndef (); ; - break;} -case 231: -#line 865 "llgrammar.y" -{ yyval.typequal = qual_createKilled (); ; - break;} -case 232: -#line 869 "llgrammar.y" -{ yyval.lcltypespec = makeLclTypeSpecNodeType (yyvsp[0].ctypes); ; - break;} -case 233: -#line 871 "llgrammar.y" -{ yyval.lcltypespec = makeLclTypeSpecNodeSU (yyvsp[0].structorunion); ; - break;} -case 234: -#line 873 "llgrammar.y" -{ yyval.lcltypespec = makeLclTypeSpecNodeEnum (yyvsp[0].enumspec); ; - break;} -case 235: -#line 875 "llgrammar.y" -{ yyval.lcltypespec = lclTypeSpecNode_addQual (yyvsp[0].lcltypespec, yyvsp[-1].typequal); ; - break;} -case 236: -#line 877 "llgrammar.y" -{ yyval.lcltypespec = makeLclTypeSpecNodeConj (yyvsp[-3].lcltypespec, yyvsp[-1].lcltypespec); ; - break;} -case 238: -#line 887 "llgrammar.y" -{ llassert (lclTypeSpecNode_isDefined (yyvsp[-1].lcltypespec)); - yyvsp[-1].lcltypespec->pointers = yyvsp[0].count; yyval.lcltypespec = yyvsp[-1].lcltypespec; ; - break;} -case 239: -#line 891 "llgrammar.y" -{ yyval.count = 1; ; - break;} -case 240: -#line 892 "llgrammar.y" -{ yyval.count = yyvsp[-1].count + 1; ; - break;} -case 241: -#line 896 "llgrammar.y" -{ (void) checkAndEnterTag (TAG_FWDSTRUCT, ltoken_copy (yyvsp[0].ltok)); ; - break;} -case 242: -#line 898 "llgrammar.y" -{ yyval.structorunion = makestrOrUnionNode (yyvsp[-5].ltok, SU_STRUCT, yyvsp[-4].ltok, yyvsp[-1].structdecls); ; - break;} -case 243: -#line 900 "llgrammar.y" -{ (void) checkAndEnterTag (TAG_FWDUNION, ltoken_copy (yyvsp[0].ltok)); ; - break;} -case 244: -#line 902 "llgrammar.y" -{ yyval.structorunion = makestrOrUnionNode (yyvsp[-5].ltok, SU_UNION, yyvsp[-4].ltok, yyvsp[-1].structdecls); ; - break;} -case 245: -#line 904 "llgrammar.y" -{ yyval.structorunion = makeForwardstrOrUnionNode (yyvsp[-1].ltok, SU_STRUCT, yyvsp[0].ltok); ; - break;} -case 246: -#line 906 "llgrammar.y" -{ yyval.structorunion = makeForwardstrOrUnionNode (yyvsp[-1].ltok, SU_UNION, yyvsp[0].ltok); ; - break;} -case 247: -#line 909 "llgrammar.y" -{ yyval.ltok = ltoken_undefined; ; - break;} -case 249: -#line 913 "llgrammar.y" -{ yyval.structdecls = stDeclNodeList_add (stDeclNodeList_new (), yyvsp[0].structdecl); ; - break;} -case 250: -#line 914 "llgrammar.y" -{ yyval.structdecls = stDeclNodeList_add (yyvsp[-1].structdecls, yyvsp[0].structdecl); ; - break;} -case 251: -#line 919 "llgrammar.y" -{ yyval.structdecl = makestDeclNode (yyvsp[-2].lcltypespec, yyvsp[-1].declarelist); ; - break;} -case 252: -#line 923 "llgrammar.y" -{ yyval.declarelist = declaratorNodeList_add (declaratorNodeList_new (), yyvsp[0].declare); ; - break;} -case 253: -#line 925 "llgrammar.y" -{ yyval.declarelist = declaratorNodeList_add (yyvsp[-2].declarelist, yyvsp[0].declare); ; - break;} -case 254: -#line 928 "llgrammar.y" -{ ; ; - break;} -case 255: -#line 929 "llgrammar.y" -{ ; ; - break;} -case 256: -#line 933 "llgrammar.y" -{ yyval.enumspec = makeEnumSpecNode (yyvsp[-5].ltok, yyvsp[-4].ltok, yyvsp[-2].ltokenList); ; - break;} -case 257: -#line 935 "llgrammar.y" -{ yyval.enumspec = makeEnumSpecNode2 (yyvsp[-1].ltok, yyvsp[0].ltok); ; - break;} -case 258: -#line 938 "llgrammar.y" -{ yyval.ltokenList = ltokenList_singleton (yyvsp[0].ltok); ; - break;} -case 259: -#line 939 "llgrammar.y" -{ yyval.ltokenList = ltokenList_push (yyvsp[-2].ltokenList, yyvsp[0].ltok); ; - break;} -case 260: -#line 949 "llgrammar.y" -{ yyval.declare = makeDeclaratorNode (yyvsp[0].typeexpr); ; - break;} -case 261: -#line 950 "llgrammar.y" -{ yyval.declare = makeDeclaratorNode (yyvsp[0].typeexpr); ; - break;} -case 262: -#line 953 "llgrammar.y" -{ yyval.typeexpr = makeTypeExpr (yyvsp[0].ltok); ; - break;} -case 263: -#line 954 "llgrammar.y" -{ yyval.typeexpr = yyvsp[-1].typeexpr; yyval.typeexpr->wrapped = yyval.typeexpr->wrapped + 1; ; - break;} -case 264: -#line 955 "llgrammar.y" -{ yyval.typeexpr = makePointerNode (yyvsp[-1].ltok, yyvsp[0].typeexpr); ; - break;} -case 265: -#line 956 "llgrammar.y" -{ yyval.typeexpr = makeArrayNode (yyvsp[-1].typeexpr, yyvsp[0].array); ; - break;} -case 266: -#line 957 "llgrammar.y" -{ yyval.typeexpr = makeFunctionNode (yyvsp[-2].typeexpr, paramNodeList_new ()); ; - break;} -case 267: -#line 958 "llgrammar.y" -{ yyval.typeexpr = makeFunctionNode (yyvsp[-3].typeexpr, yyvsp[-1].paramlist); ; - break;} -case 268: -#line 961 "llgrammar.y" -{ yyval.typeexpr = makeTypeExpr (yyvsp[0].ltok); ; - break;} -case 269: -#line 962 "llgrammar.y" -{ yyval.typeexpr = yyvsp[-1].typeexpr; yyval.typeexpr->wrapped = yyval.typeexpr->wrapped + 1; ; - break;} -case 270: -#line 963 "llgrammar.y" -{ yyval.typeexpr = makePointerNode (yyvsp[-1].ltok, yyvsp[0].typeexpr); ; - break;} -case 271: -#line 964 "llgrammar.y" -{ yyval.typeexpr = makeArrayNode (yyvsp[-1].typeexpr, yyvsp[0].array); ; - break;} -case 272: -#line 965 "llgrammar.y" -{ yyval.typeexpr = makeFunctionNode (yyvsp[-2].typeexpr, paramNodeList_new ()); ; - break;} -case 273: -#line 966 "llgrammar.y" -{ yyval.typeexpr = makeFunctionNode (yyvsp[-3].typeexpr, yyvsp[-1].paramlist); ; - break;} -case 274: -#line 975 "llgrammar.y" -{ yyval.typeexpr = makeTypeExpr (yyvsp[0].ltok); ; - break;} -case 275: -#line 976 "llgrammar.y" -{ yyval.typeexpr = makePointerNode (yyvsp[-1].ltok, yyvsp[0].typeexpr); ; - break;} -case 276: -#line 977 "llgrammar.y" -{ yyval.typeexpr = makeArrayNode (yyvsp[-1].typeexpr, yyvsp[0].array); ; - break;} -case 277: -#line 978 "llgrammar.y" -{ yyval.typeexpr = makeFunctionNode (yyvsp[-2].typeexpr, paramNodeList_new ()); ; - break;} -case 278: -#line 979 "llgrammar.y" -{ yyval.typeexpr = makeFunctionNode (yyvsp[-3].typeexpr, yyvsp[-1].paramlist); ; - break;} -case 279: -#line 985 "llgrammar.y" -{ yyval.param = makeParamNode (yyvsp[-1].lcltypespec, yyvsp[0].typeexpr); ; - break;} -case 280: -#line 986 "llgrammar.y" -{ yyval.param = makeParamNode (yyvsp[-1].lcltypespec, yyvsp[0].typeexpr); ; - break;} -case 281: -#line 987 "llgrammar.y" -{ yyval.param = makeParamNode (yyvsp[-1].lcltypespec, yyvsp[0].abstDecl); ; - break;} -case 282: -#line 997 "llgrammar.y" -{ yyval.typname = makeTypeNameNode (FALSE, yyvsp[-1].lcltypespec, yyvsp[0].abstDecl); ; - break;} -case 283: -#line 998 "llgrammar.y" -{ yyval.typname = makeTypeNameNode (TRUE, yyvsp[-1].lcltypespec, yyvsp[0].abstDecl); ; - break;} -case 284: -#line 999 "llgrammar.y" -{ yyval.typname = makeTypeNameNodeOp (yyvsp[0].opform); ; - break;} -case 285: -#line 1004 "llgrammar.y" -{ yyval.abstDecl = (abstDeclaratorNode)0; ; - break;} -case 286: -#line 1005 "llgrammar.y" -{ yyval.abstDecl = (abstDeclaratorNode)yyvsp[0].typeexpr; ; - break;} -case 287: -#line 1008 "llgrammar.y" -{ yyval.typeexpr = yyvsp[-1].typeexpr; yyval.typeexpr->wrapped = yyval.typeexpr->wrapped + 1; ; - break;} -case 288: -#line 1009 "llgrammar.y" -{ yyval.typeexpr = makePointerNode (yyvsp[-1].ltok, yyvsp[0].typeexpr); ; - break;} -case 289: -#line 1010 "llgrammar.y" -{ yyval.typeexpr = makePointerNode (yyvsp[0].ltok, (typeExpr)0); ; - break;} -case 290: -#line 1011 "llgrammar.y" -{ yyval.typeexpr = makeArrayNode ((typeExpr)0, yyvsp[0].array); ; - break;} -case 291: -#line 1012 "llgrammar.y" -{ yyval.typeexpr = makeArrayNode (yyvsp[-1].typeexpr, yyvsp[0].array); ; - break;} -case 292: -#line 1013 "llgrammar.y" -{ yyval.typeexpr = makeFunctionNode (yyvsp[-2].typeexpr, paramNodeList_new ()); ; - break;} -case 293: -#line 1014 "llgrammar.y" -{ yyval.typeexpr = makeFunctionNode ((typeExpr)0, yyvsp[-1].paramlist); ; - break;} -case 294: -#line 1015 "llgrammar.y" -{ yyval.typeexpr = makeFunctionNode (yyvsp[-3].typeexpr, yyvsp[-1].paramlist); ; - break;} -case 295: -#line 1018 "llgrammar.y" -{ yyval.array = makeArrayQualNode (yyvsp[-1].ltok, (termNode)0); ; - break;} -case 296: -#line 1019 "llgrammar.y" -{ yyval.array = makeArrayQualNode (yyvsp[-2].ltok, yyvsp[-1].term); ; - break;} -case 297: -#line 1023 "llgrammar.y" -{ yyval.opform = makeOpFormNode (yyvsp[-5].ltok, OPF_IF, opFormUnion_createMiddle (0), ltoken_undefined); ; - break;} -case 298: -#line 1025 "llgrammar.y" -{ yyval.opform = makeOpFormNode (yyvsp[0].ltok, OPF_ANYOP, opFormUnion_createAnyOp (yyvsp[0].ltok), ltoken_undefined); ; - break;} -case 299: -#line 1027 "llgrammar.y" -{ yyval.opform = makeOpFormNode (yyvsp[-1].ltok, OPF_MANYOP, opFormUnion_createAnyOp (yyvsp[0].ltok), ltoken_undefined); ; - break;} -case 300: -#line 1029 "llgrammar.y" -{ yyval.opform = makeOpFormNode (yyvsp[-1].ltok, OPF_ANYOPM, opFormUnion_createAnyOp (yyvsp[-1].ltok), ltoken_undefined); ; - break;} -case 301: -#line 1031 "llgrammar.y" -{ yyval.opform = makeOpFormNode (yyvsp[-2].ltok, OPF_MANYOPM, - opFormUnion_createAnyOp (yyvsp[-1].ltok), ltoken_undefined); ; - break;} -case 302: -#line 1034 "llgrammar.y" -{ yyval.opform = makeOpFormNode (yyvsp[-2].ltok, OPF_MIDDLE, opFormUnion_createMiddle (yyvsp[-1].count), yyvsp[0].ltok); ; - break;} -case 303: -#line 1036 "llgrammar.y" -{ yyval.opform = makeOpFormNode (yyvsp[-3].ltok, OPF_MMIDDLE, opFormUnion_createMiddle (yyvsp[-1].count), yyvsp[0].ltok); ; - break;} -case 304: -#line 1038 "llgrammar.y" -{ yyval.opform = makeOpFormNode (yyvsp[-3].ltok, OPF_MIDDLEM, opFormUnion_createMiddle (yyvsp[-2].count), yyvsp[-1].ltok); ; - break;} -case 305: -#line 1040 "llgrammar.y" -{ yyval.opform = makeOpFormNode (yyvsp[-3].ltok, OPF_MMIDDLEM, opFormUnion_createMiddle (yyvsp[-2].count), yyvsp[-1].ltok); ; - break;} -case 306: -#line 1042 "llgrammar.y" -{ yyval.opform = makeOpFormNode (yyvsp[-2].ltok, OPF_BMIDDLE, opFormUnion_createMiddle (yyvsp[-1].count), yyvsp[0].ltok); ; - break;} -case 307: -#line 1044 "llgrammar.y" -{ yyval.opform = makeOpFormNode (yyvsp[-3].ltok, OPF_BMIDDLEM, opFormUnion_createMiddle (yyvsp[-2].count), yyvsp[-1].ltok); ; - break;} -case 308: -#line 1052 "llgrammar.y" -{ yyval.opform = makeOpFormNode (yyvsp[-2].ltok, OPF_BMMIDDLE, opFormUnion_createMiddle (yyvsp[-1].count), yyvsp[0].ltok); ; - break;} -case 309: -#line 1054 "llgrammar.y" -{ yyval.opform = makeOpFormNode (yyvsp[-3].ltok, OPF_BMMIDDLEM, opFormUnion_createMiddle (yyvsp[-2].count), yyvsp[-1].ltok); ; - break;} -case 310: -#line 1056 "llgrammar.y" -{ yyval.opform = makeOpFormNode (yyvsp[-1].ltok, OPF_SELECT, - opFormUnion_createAnyOp (yyvsp[0].ltok), ltoken_undefined); ; - break;} -case 311: -#line 1059 "llgrammar.y" -{ yyval.opform = makeOpFormNode (yyvsp[-1].ltok, OPF_MAP, - opFormUnion_createAnyOp (yyvsp[0].ltok), ltoken_undefined); ; - break;} -case 312: -#line 1062 "llgrammar.y" -{ yyval.opform = makeOpFormNode (yyvsp[-2].ltok, OPF_MSELECT, - opFormUnion_createAnyOp (yyvsp[0].ltok), ltoken_undefined); ; - break;} -case 313: -#line 1065 "llgrammar.y" -{ yyval.opform = makeOpFormNode (yyvsp[-2].ltok, OPF_MMAP, - opFormUnion_createAnyOp (yyvsp[0].ltok), ltoken_undefined); ; - break;} -case 321: -#line 1082 "llgrammar.y" -{ yyval.count = 0; ; - break;} -case 323: -#line 1086 "llgrammar.y" -{ yyval.count = 1; ; - break;} -case 324: -#line 1087 "llgrammar.y" -{ yyval.count = yyvsp[-2].count + 1; ; - break;} -case 327: -#line 1094 "llgrammar.y" -{ yyval.signature = makesigNode (yyvsp[-3].ltok, yyvsp[-2].ltokenList, yyvsp[0].ltok); ; - break;} -case 328: -#line 1097 "llgrammar.y" -{ yyval.ltokenList = ltokenList_new (); ; - break;} -case 330: -#line 1101 "llgrammar.y" -{ yyval.ltokenList = ltokenList_singleton (yyvsp[0].ltok); ; - break;} -case 331: -#line 1102 "llgrammar.y" -{ yyval.ltokenList = ltokenList_push (yyvsp[-2].ltokenList, yyvsp[0].ltok); ; - break;} -case 332: -#line 1105 "llgrammar.y" -{ yyval.lclpredicate = makeLclPredicateNode (ltoken_undefined, yyvsp[0].term, LPD_PLAIN);; - break;} -case 333: -#line 1108 "llgrammar.y" -{ yyval.term = checkSort (yyvsp[0].term); ; - break;} -case 334: -#line 1115 "llgrammar.y" -{ yyval.term = makeIfTermNode (yyvsp[-5].ltok,yyvsp[-4].term,yyvsp[-3].ltok,yyvsp[-2].term,yyvsp[-1].ltok,yyvsp[0].term); ; - break;} -case 336: -#line 1117 "llgrammar.y" -{ yyval.term = makeInfixTermNode (yyvsp[-2].term, yyvsp[-1].ltok, yyvsp[0].term); ; - break;} -case 338: -#line 1123 "llgrammar.y" -{ checkLclPredicate (yyvsp[-2].ltok, yyvsp[-1].lclpredicate); yyval.term = makeQuantifiedTermNode (yyvsp[-3].quantifiers, yyvsp[-2].ltok, yyvsp[-1].lclpredicate->predicate, yyvsp[0].ltok); - symtable_exitScope (g_symtab); - ; - break;} -case 339: -#line 1127 "llgrammar.y" -{ yyval.term = makeInfixTermNode (yyvsp[-2].term, yyvsp[-1].ltok, yyvsp[0].term);; - break;} -case 340: -#line 1129 "llgrammar.y" -{ yyval.term = makeInfixTermNode (yyvsp[-2].term, yyvsp[-1].ltok, yyvsp[0].term);; - break;} -case 342: -#line 1133 "llgrammar.y" -{ yyval.term = makePostfixTermNode (yyvsp[-1].term, yyvsp[0].ltokenList); ; - break;} -case 343: -#line 1134 "llgrammar.y" -{ yyval.term = CollapseInfixTermNode (yyvsp[-1].term, yyvsp[0].termlist); ; - break;} -case 347: -#line 1142 "llgrammar.y" -{ yyval.term = makePrefixTermNode (yyvsp[-1].ltok, yyvsp[0].term); ; - break;} -case 348: -#line 1145 "llgrammar.y" -{ yyval.ltokenList = ltokenList_singleton (yyvsp[0].ltok); ; - break;} -case 349: -#line 1146 "llgrammar.y" -{ yyval.ltokenList = ltokenList_push (yyvsp[-1].ltokenList, yyvsp[0].ltok); ; - break;} -case 350: -#line 1149 "llgrammar.y" -{ yyval.termlist = pushInfixOpPartNode (termNodeList_new (), yyvsp[-1].ltok, yyvsp[0].term); ; - break;} -case 351: -#line 1150 "llgrammar.y" -{ yyval.termlist = pushInfixOpPartNode (yyvsp[-2].termlist, yyvsp[-1].ltok, yyvsp[0].term); ; - break;} -case 353: -#line 1154 "llgrammar.y" -{ yyval.term = computePossibleSorts (yyvsp[0].term); ; - break;} -case 354: -#line 1155 "llgrammar.y" -{ yyval.term = updateMatchedNode ((termNode)0, yyvsp[-1].term, yyvsp[0].term); ; - break;} -case 355: -#line 1156 "llgrammar.y" -{ yyval.term = updateMatchedNode (yyvsp[-1].term, yyvsp[0].term, (termNode)0); ; - break;} -case 356: -#line 1157 "llgrammar.y" -{ yyval.term = updateMatchedNode (yyvsp[-2].term, yyvsp[-1].term, yyvsp[0].term); ; - break;} -case 357: -#line 1158 "llgrammar.y" -{ yyval.term = computePossibleSorts (yyvsp[0].term); ; - break;} -case 358: -#line 1159 "llgrammar.y" -{ yyval.term = updateSqBracketedNode ((termNode)0, yyvsp[-1].term, yyvsp[0].term); ; - break;} -case 359: -#line 1162 "llgrammar.y" -{ yyval.term = yyvsp[-2].term; yyval.term->sort = sort_lookupName (ltoken_getText (yyvsp[0].ltok)); ; - break;} -case 361: -#line 1167 "llgrammar.y" -{ yyval.term = makeSqBracketedNode (yyvsp[-4].ltok, yyvsp[-3].termlist, yyvsp[-2].ltok); - yyval.term->given = sort_lookupName (ltoken_getText (yyvsp[0].ltok)); ; - break;} -case 362: -#line 1170 "llgrammar.y" -{ yyval.term = makeSqBracketedNode (yyvsp[-2].ltok, yyvsp[-1].termlist, yyvsp[0].ltok); ; - break;} -case 363: -#line 1172 "llgrammar.y" -{ yyval.term = makeSqBracketedNode (yyvsp[-3].ltok, termNodeList_new (), yyvsp[-2].ltok); - yyval.term->given = sort_lookupName (ltoken_getText (yyvsp[0].ltok)); - ; - break;} -case 364: -#line 1176 "llgrammar.y" -{ yyval.term = makeSqBracketedNode (yyvsp[-1].ltok, termNodeList_new (), yyvsp[0].ltok); ; - break;} -case 365: -#line 1179 "llgrammar.y" -{ yyval.term = makeMatchedNode (yyvsp[-2].ltok, yyvsp[-1].termlist, yyvsp[0].ltok); ; - break;} -case 366: -#line 1180 "llgrammar.y" -{ yyval.term = makeMatchedNode (yyvsp[-1].ltok, termNodeList_new (), yyvsp[0].ltok); ; - break;} -case 367: -#line 1183 "llgrammar.y" -{ yyval.termlist = termNodeList_push (termNodeList_new (), yyvsp[0].term); ; - break;} -case 368: -#line 1184 "llgrammar.y" -{ yyval.termlist = termNodeList_push (yyvsp[-2].termlist, yyvsp[0].term); ; - break;} -case 369: -#line 1188 "llgrammar.y" -{ yyval.term = yyvsp[-1].term; yyval.term->wrapped = yyval.term->wrapped + 1; ; - break;} -case 370: -#line 1190 "llgrammar.y" -{ yyval.term = makeSimpleTermNode (yyvsp[0].ltok); ; - break;} -case 371: -#line 1192 "llgrammar.y" -{ yyval.term = makeOpCallTermNode (yyvsp[-3].ltok, yyvsp[-2].ltok, yyvsp[-1].termlist, yyvsp[0].ltok); ; - break;} -case 373: -#line 1195 "llgrammar.y" -{ yyval.term = makePostfixTermNode2 (yyvsp[-1].term, yyvsp[0].ltok); ; - break;} -case 374: -#line 1197 "llgrammar.y" -{ ltoken_markOwned (yyvsp[0].ltok); yyval.term = makeSelectTermNode (yyvsp[-2].term, yyvsp[-1].ltok, yyvsp[0].ltok); ; - break;} -case 375: -#line 1199 "llgrammar.y" -{ ltoken_markOwned (yyvsp[0].ltok); yyval.term = makeMapTermNode (yyvsp[-2].term, yyvsp[-1].ltok, yyvsp[0].ltok); ; - break;} -case 376: -#line 1201 "llgrammar.y" -{ yyval.term = updateSqBracketedNode (yyvsp[-2].term, makeSqBracketedNode (yyvsp[-1].ltok, termNodeList_new (), yyvsp[0].ltok), - (termNode)0); ; - break;} -case 377: -#line 1204 "llgrammar.y" -{ yyval.term = updateSqBracketedNode (yyvsp[-3].term, makeSqBracketedNode (yyvsp[-2].ltok, yyvsp[-1].termlist, yyvsp[0].ltok), (termNode)0); ; - break;} -case 378: -#line 1206 "llgrammar.y" -{ yyval.term = yyvsp[-2].term; yyval.term->given = sort_lookupName (ltoken_getText (yyvsp[0].ltok)); ; - break;} -case 379: -#line 1209 "llgrammar.y" -{ yyval.termlist = termNodeList_push (termNodeList_new (), yyvsp[0].term); ; - break;} -case 380: -#line 1210 "llgrammar.y" -{ yyval.termlist = termNodeList_push (yyvsp[-2].termlist, yyvsp[0].term); ; - break;} -case 386: -#line 1220 "llgrammar.y" -{ yyval.term = makeSimpleTermNode (yyvsp[0].ltok); ; - break;} -case 387: -#line 1221 "llgrammar.y" -{ yyval.term = makeOpCallTermNode (yyvsp[-3].ltok, yyvsp[-2].ltok, yyvsp[-1].termlist, yyvsp[0].ltok); ; - break;} -case 388: -#line 1222 "llgrammar.y" -{ yyval.term = makeUnchangedTermNode1 (yyvsp[-3].ltok, yyvsp[-1].ltok); ; - break;} -case 389: -#line 1223 "llgrammar.y" -{ yyval.term = makeUnchangedTermNode2 (yyvsp[-3].ltok, yyvsp[-1].storereflist); ; - break;} -case 390: -#line 1225 "llgrammar.y" -{ termNodeList x = termNodeList_new (); - termNodeList_addh (x, yyvsp[-1].term); - yyval.term = makeOpCallTermNode (yyvsp[-3].ltok, yyvsp[-2].ltok, x, yyvsp[0].ltok); - ; - break;} -case 391: -#line 1230 "llgrammar.y" -{ termNodeList x = termNodeList_new (); - termNodeList_addh (x, yyvsp[-3].term); - termNodeList_addh (x, yyvsp[-1].term); - yyval.term = makeOpCallTermNode (yyvsp[-5].ltok, yyvsp[-4].ltok, x, yyvsp[0].ltok); - ; - break;} -case 392: -#line 1235 "llgrammar.y" -{ yyval.term = makeSizeofTermNode (yyvsp[-3].ltok, yyvsp[-1].lcltypespec); ; - break;} -case 393: -#line 1245 "llgrammar.y" -{ yyval.term = makeLiteralTermNode (yyvsp[0].ltok, sort_int); ; - break;} -case 394: -#line 1246 "llgrammar.y" -{ yyval.term = makeLiteralTermNode (yyvsp[0].ltok, sort_cstring); ; - break;} -case 395: -#line 1247 "llgrammar.y" -{ yyval.term = makeLiteralTermNode (yyvsp[0].ltok, sort_char); ; - break;} -case 396: -#line 1248 "llgrammar.y" -{ yyval.term = makeLiteralTermNode (yyvsp[0].ltok, sort_double); ; - break;} -case 397: -#line 1252 "llgrammar.y" -{ yyval.quantifiers = quantifierNodeList_add (quantifierNodeList_new (), yyvsp[0].quantifier); ; - break;} -case 398: -#line 1254 "llgrammar.y" -{ yyval.quantifiers = quantifierNodeList_add (yyvsp[-1].quantifiers, yyvsp[0].quantifier); ; - break;} -case 399: -#line 1257 "llgrammar.y" -{ scopeInfo si = (scopeInfo) dmalloc (sizeof (*si)); - si->kind = SPE_QUANT; - symtable_enterScope (g_symtab, si); ; - break;} -case 400: -#line 1261 "llgrammar.y" -{ yyval.quantifier = makeQuantifierNode (yyvsp[0].vars, yyvsp[-2].ltok); ; - break;} -case 401: -#line 1264 "llgrammar.y" -{ yyval.vars = varNodeList_add (varNodeList_new (), yyvsp[0].var); ; - break;} -case 402: -#line 1265 "llgrammar.y" -{ yyval.vars = varNodeList_add (yyvsp[-2].vars, yyvsp[0].var); ; - break;} -case 403: -#line 1268 "llgrammar.y" -{ yyval.var = makeVarNode (yyvsp[-2].ltok, FALSE, yyvsp[0].lcltypespec); ; - break;} -case 404: -#line 1269 "llgrammar.y" -{ yyval.var = makeVarNode (yyvsp[-3].ltok, TRUE, yyvsp[0].lcltypespec); ; - break;} -} - /* the action file gets copied in in place of this dollarsign */ -#line 543 "/usr/lib/bison.simple" - - yyvsp -= yylen; - yyssp -= yylen; -#ifdef YYLSP_NEEDED - yylsp -= yylen; -#endif - -#if YYDEBUG != 0 - if (yydebug) - { - short *ssp1 = yyss - 1; - fprintf (stderr, "state stack now"); - while (ssp1 != yyssp) - fprintf (stderr, " %d", *++ssp1); - fprintf (stderr, "\n"); - } -#endif - - *++yyvsp = yyval; - -#ifdef YYLSP_NEEDED - yylsp++; - if (yylen == 0) - { - yylsp->first_line = yylloc.first_line; - yylsp->first_column = yylloc.first_column; - yylsp->last_line = (yylsp-1)->last_line; - yylsp->last_column = (yylsp-1)->last_column; - yylsp->text = 0; - } - else - { - yylsp->last_line = (yylsp+yylen-1)->last_line; - yylsp->last_column = (yylsp+yylen-1)->last_column; - } -#endif - - /* Now "shift" the result of the reduction. - Determine what state that goes to, - based on the state we popped back to - and the rule number reduced by. */ - - yyn = yyr1[yyn]; - - yystate = yypgoto[yyn - YYNTBASE] + *yyssp; - if (yystate >= 0 && yystate <= YYLAST && yycheck[yystate] == *yyssp) - yystate = yytable[yystate]; - else - yystate = yydefgoto[yyn - YYNTBASE]; - - goto yynewstate; - -yyerrlab: /* here on detecting error */ - - if (! yyerrstatus) - /* If not already recovering from an error, report this error. */ - { - ++yynerrs; - -#ifdef YYERROR_VERBOSE - yyn = yypact[yystate]; - - if (yyn > YYFLAG && yyn < YYLAST) - { - int size = 0; - char *msg; - int x, count; - - count = 0; - /* Start X at -yyn if nec to avoid negative indexes in yycheck. */ - for (x = (yyn < 0 ? -yyn : 0); - x < (sizeof(yytname) / sizeof(char *)); x++) - if (yycheck[x + yyn] == x) - size += strlen(yytname[x]) + 15, count++; - msg = (char *) malloc(size + 15); - if (msg != 0) - { - strcpy(msg, "parse error"); - - if (count < 5) - { - count = 0; - for (x = (yyn < 0 ? -yyn : 0); - x < (sizeof(yytname) / sizeof(char *)); x++) - if (yycheck[x + yyn] == x) - { - strcat(msg, count == 0 ? ", expecting `" : " or `"); - strcat(msg, yytname[x]); - strcat(msg, "'"); - count++; - } - } - yyerror(msg); - free(msg); - } - else - yyerror ("parse error; also virtual memory exceeded"); - } - else -#endif /* YYERROR_VERBOSE */ - yyerror("parse error"); - } - - goto yyerrlab1; -yyerrlab1: /* here on error raised explicitly by an action */ - - if (yyerrstatus == 3) - { - /* if just tried and failed to reuse lookahead token after an error, discard it. */ - - /* return failure if at end of input */ - if (yychar == YYEOF) - YYABORT; - -#if YYDEBUG != 0 - if (yydebug) - fprintf(stderr, "Discarding token %d (%s).\n", yychar, yytname[yychar1]); -#endif - - yychar = YYEMPTY; - } - - /* Else will try to reuse lookahead token - after shifting the error token. */ - - yyerrstatus = 3; /* Each real token shifted decrements this */ - - goto yyerrhandle; - -yyerrdefault: /* current state does not do anything special for the error token. */ - -#if 0 - /* This is wrong; only states that explicitly want error tokens - should shift them. */ - yyn = yydefact[yystate]; /* If its default is to accept any token, ok. Otherwise pop it.*/ - if (yyn) goto yydefault; -#endif - -yyerrpop: /* pop the current state because it cannot handle the error token */ - - if (yyssp == yyss) YYABORT; - yyvsp--; - yystate = *--yyssp; -#ifdef YYLSP_NEEDED - yylsp--; -#endif - -#if YYDEBUG != 0 - if (yydebug) - { - short *ssp1 = yyss - 1; - fprintf (stderr, "Error: state stack now"); - while (ssp1 != yyssp) - fprintf (stderr, " %d", *++ssp1); - fprintf (stderr, "\n"); - } -#endif - -yyerrhandle: - - yyn = yypact[yystate]; - if (yyn == YYFLAG) - goto yyerrdefault; - - yyn += YYTERROR; - if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != YYTERROR) - goto yyerrdefault; - - yyn = yytable[yyn]; - if (yyn < 0) - { - if (yyn == YYFLAG) - goto yyerrpop; - yyn = -yyn; - goto yyreduce; - } - else if (yyn == 0) - goto yyerrpop; - - if (yyn == YYFINAL) - YYACCEPT; - -#if YYDEBUG != 0 - if (yydebug) - fprintf(stderr, "Shifting error token, "); -#endif - - *++yyvsp = yylval; -#ifdef YYLSP_NEEDED - *++yylsp = yylloc; -#endif - - yystate = yyn; - goto yynewstate; - - yyacceptlab: - /* YYACCEPT comes here. */ - if (yyfree_stacks) - { - free (yyss); - free (yyvs); -#ifdef YYLSP_NEEDED - free (yyls); -#endif - } - return 0; - - yyabortlab: - /* YYABORT comes here. */ - if (yyfree_stacks) - { - free (yyss); - free (yyvs); -#ifdef YYLSP_NEEDED - free (yyls); -#endif - } - return 1; -} -#line 1284 "llgrammar.y" - - -# include "bison.reset" - -/* -** yytext is set in lex scanner -** extern YYSTYPE yylval; -** yylval is defined by code generated by bison -*/ - -void ylerror (char *s) -{ - /* - ** This resetting of the left context is very important when multiple - ** files are to be parsed. We do not want failures to propagate. - ** Lex/Yacc does not reset the flags when the parsing goes bad. - ** BEGIN 0; - **/ - - /*@-mustfree@*/ - lclfatalerror (yllval.ltok, - message ("%s: Token code: %s, Token String: %s", - cstring_fromChars (s), - ltoken_unparseCodeName (yllval.ltok), - ltoken_getRawString (yllval.ltok))); - /*@=mustfree@*/ -} - -static void yyprint (FILE *f, int t, YYSTYPE value) -{ - fprintf (f, " type: %d (%s)", t, - cstring_toCharsSafe (ltoken_getRawString (value.ltok))); -} - - - - - - - diff --git a/src/llgrammar.tab.h b/src/llgrammar.tab.h deleted file mode 100644 index 499fc17..0000000 --- a/src/llgrammar.tab.h +++ /dev/null @@ -1,202 +0,0 @@ -typedef union -{ - ltoken ltok; /* a leaf is also an ltoken */ - qual typequal; - unsigned int count; - /*@only@*/ ltokenList ltokenList; - /*@only@*/ abstDeclaratorNode abstDecl; - /*@only@*/ declaratorNode declare; - /*@only@*/ declaratorNodeList declarelist; - /*@only@*/ typeExpr typeexpr; - /*@only@*/ arrayQualNode array; - /*@only@*/ quantifierNode quantifier; - /*@only@*/ quantifierNodeList quantifiers; - /*@only@*/ varNode var; - /*@only@*/ varNodeList vars; - /*@only@*/ storeRefNode storeref; - /*@only@*/ storeRefNodeList storereflist; - /*@only@*/ termNode term; - /*@only@*/ termNodeList termlist; - /*@only@*/ programNode program; - /*@only@*/ stmtNode stmt; - /*@only@*/ claimNode claim; - /*@only@*/ typeNode type; - /*@only@*/ iterNode iter; - /*@only@*/ fcnNode fcn; - /*@only@*/ fcnNodeList fcns; - /*@only@*/ letDeclNode letdecl; - /*@only@*/ letDeclNodeList letdecls; - /*@only@*/ lclPredicateNode lclpredicate; - /*@only@*/ modifyNode modify; - /*@only@*/ paramNode param; - /*@only@*/ paramNodeList paramlist; - /*@only@*/ declaratorInvNodeList declaratorinvs; - /*@only@*/ declaratorInvNode declaratorinv; - /*@only@*/ abstBodyNode abstbody; - /*@only@*/ abstractNode abstract; - /*@only@*/ exposedNode exposed; - /* taggedUnionNode taggedunion; */ - /*@only@*/ globalList globals; - /*@only@*/ constDeclarationNode constdeclaration; - /*@only@*/ varDeclarationNode vardeclaration; - /*@only@*/ varDeclarationNodeList vardeclarationlist; - /*@only@*/ initDeclNodeList initdecls; - /*@only@*/ initDeclNode initdecl; - /*@only@*/ stDeclNodeList structdecls; - /*@only@*/ stDeclNode structdecl; - /*@only@*/ strOrUnionNode structorunion; - /*@only@*/ enumSpecNode enumspec; - /*@only@*/ lclTypeSpecNode lcltypespec; - /*@only@*/ typeNameNode typname; - /*@only@*/ opFormNode opform; - /*@only@*/ sigNode signature; - /*@only@*/ nameNode name; - /*@only@*/ typeNameNodeList namelist; - /*@only@*/ replaceNode replace; - /*@only@*/ replaceNodeList replacelist; - /*@only@*/ renamingNode renaming; - /*@only@*/ traitRefNode traitref; - /*@only@*/ traitRefNodeList traitreflist; - /*@only@*/ importNode import; - /*@only@*/ importNodeList importlist; - /*@only@*/ interfaceNode iface; - /*@only@*/ interfaceNodeList interfacelist; - /*@only@*/ CTypesNode ctypes; -} YYSTYPE; -#define simpleOp 257 -#define PREFIX_OP 258 -#define POSTFIX_OP 259 -#define LLT_MULOP 260 -#define LLT_SEMI 261 -#define LLT_VERTICALBAR 262 -#define ITERATION_OP 263 -#define LLT_LPAR 264 -#define LLT_LBRACKET 265 -#define selectSym 266 -#define LLT_IF_THEN_ELSE 267 -#define logicalOp 268 -#define eqSepSym 269 -#define equationSym 270 -#define commentSym 271 -#define LLT_WHITESPACE 272 -#define LLT_EOL 273 -#define LLT_TYPEDEF_NAME 274 -#define quantifierSym 275 -#define openSym 276 -#define closeSym 277 -#define sepSym 278 -#define simpleId 279 -#define mapSym 280 -#define markerSym 281 -#define preSym 282 -#define postSym 283 -#define anySym 284 -#define LLT_COLON 285 -#define LLT_COMMA 286 -#define LLT_EQUALS 287 -#define LLT_LBRACE 288 -#define LLT_RBRACE 289 -#define LLT_RBRACKET 290 -#define LLT_RPAR 291 -#define LLT_QUOTE 292 -#define eqOp 293 -#define LLT_CCHAR 294 -#define LLT_CFLOAT 295 -#define LLT_CINTEGER 296 -#define LLT_LCSTRING 297 -#define LLT_ALL 298 -#define LLT_ANYTHING 299 -#define LLT_BE 300 -#define LLT_BODY 301 -#define LLT_CLAIMS 302 -#define LLT_CHECKS 303 -#define LLT_CONSTANT 304 -#define LLT_ELSE 305 -#define LLT_ENSURES 306 -#define LLT_FOR 307 -#define LLT_FRESH 308 -#define LLT_IF 309 -#define LLT_IMMUTABLE 310 -#define LLT_IMPORTS 311 -#define LLT_CONSTRAINT 312 -#define LLT_ISSUB 313 -#define LLT_LET 314 -#define LLT_MODIFIES 315 -#define LLT_MUTABLE 316 -#define LLT_NOTHING 317 -#define LLT_INTERNAL 318 -#define LLT_FILESYS 319 -#define LLT_OBJ 320 -#define LLT_OUT 321 -#define LLT_SEF 322 -#define LLT_ONLY 323 -#define LLT_PARTIAL 324 -#define LLT_OWNED 325 -#define LLT_DEPENDENT 326 -#define LLT_KEEP 327 -#define LLT_KEPT 328 -#define LLT_TEMP 329 -#define LLT_SHARED 330 -#define LLT_UNIQUE 331 -#define LLT_UNUSED 332 -#define LLT_EXITS 333 -#define LLT_MAYEXIT 334 -#define LLT_NEVEREXIT 335 -#define LLT_TRUEEXIT 336 -#define LLT_FALSEEXIT 337 -#define LLT_UNDEF 338 -#define LLT_KILLED 339 -#define LLT_CHECKMOD 340 -#define LLT_CHECKED 341 -#define LLT_UNCHECKED 342 -#define LLT_CHECKEDSTRICT 343 -#define LLT_TRUENULL 344 -#define LLT_FALSENULL 345 -#define LLT_LNULL 346 -#define LLT_LNOTNULL 347 -#define LLT_RETURNED 348 -#define LLT_OBSERVER 349 -#define LLT_EXPOSED 350 -#define LLT_REFCOUNTED 351 -#define LLT_REFS 352 -#define LLT_RELNULL 353 -#define LLT_RELDEF 354 -#define LLT_KILLREF 355 -#define LLT_NULLTERMINATED 356 -#define LLT_TEMPREF 357 -#define LLT_NEWREF 358 -#define LLT_PRIVATE 359 -#define LLT_REQUIRES 360 -#define LLT_RESULT 361 -#define LLT_SIZEOF 362 -#define LLT_SPEC 363 -#define LLT_TAGGEDUNION 364 -#define LLT_THEN 365 -#define LLT_TYPE 366 -#define LLT_TYPEDEF 367 -#define LLT_UNCHANGED 368 -#define LLT_USES 369 -#define LLT_CHAR 370 -#define LLT_CONST 371 -#define LLT_DOUBLE 372 -#define LLT_ENUM 373 -#define LLT_FLOAT 374 -#define LLT_INT 375 -#define LLT_ITER 376 -#define LLT_YIELD 377 -#define LLT_LONG 378 -#define LLT_SHORT 379 -#define LLT_SIGNED 380 -#define LLT_UNKNOWN 381 -#define LLT_STRUCT 382 -#define LLT_TELIPSIS 383 -#define LLT_UNION 384 -#define LLT_UNSIGNED 385 -#define LLT_VOID 386 -#define LLT_VOLATILE 387 -#define LLT_PRINTFLIKE 388 -#define LLT_SCANFLIKE 389 -#define LLT_MESSAGELIKE 390 - - -extern YYSTYPE yllval; diff --git a/src/signature.c b/src/signature.c deleted file mode 100644 index 35f650b..0000000 --- a/src/signature.c +++ /dev/null @@ -1,1323 +0,0 @@ -/* -** Inserted at beginning of c files generated by bison -** REMEMBER: Change bison.reset too. -*/ - -/*@-allmacros@*/ -/*@+boolint@*/ -/*@+charint@*/ -/*@-macroparams@*/ -/*@-macroundef@*/ -/*@-unreachable@*/ -/*@-macrospec@*/ -/*@-varuse@*/ -/*@+ignorequals@*/ -/*@-macrostmt@*/ -/*@-noeffect@*/ -/*@-shadow@*/ -/*@-exitarg@*/ -/*@-macroredef@*/ -/*@-uniondef@*/ -/*@-compdef@*/ -/*@-matchfields@*/ -/*@-exportlocal@*/ -/*@-evalorderuncon@*/ -/*@-exportheader@*/ -/*@-typeuse@*/ -/*@-redecl@*/ -/*@-redef@*/ -/*@-noparams@*/ -/*@-ansireserved@*/ -/*@-fielduse@*/ -/*@-ifblock@*/ -/*@-elseifcomplete@*/ -/*@-whileblock@*/ -/*@-forblock@*/ -/*@-branchstate@*/ -/*@-readonlytrans@*/ -/*@-namechecks@*/ -/*@-usedef@*/ -/*@-systemunrecog@*/ -/*@-dependenttrans@*/ -/*@-unqualifiedtrans@*/ -/*@-nullassign@*/ - -/* < end of bison.head > */ - - -/* A Bison parser, made from signature.y - by GNU Bison version 1.28 */ - -#define YYBISON 1 /* Identify Bison output. */ - -#define yyparse lslparse -#define yylex lsllex -#define yyerror lslerror -#define yylval lsllval -#define yychar lslchar -#define yydebug lsldebug -#define yynerrs lslnerrs -#define LST_SIMPLEID 257 -#define LST_LOGICALOP 258 -#define LST_EQOP 259 -#define LST_SIMPLEOP 260 -#define LST_MAPSYM 261 -#define LST_FIELDMAPSYM 262 -#define LST_MARKERSYM 263 -#define LST_ifTOKEN 264 -#define LST_thenTOKEN 265 -#define LST_elseTOKEN 266 -#define LST_LBRACKET 267 -#define LST_RBRACKET 268 -#define LST_SELECTSYM 269 -#define LST_SEPSYM 270 -#define LST_OPENSYM 271 -#define LST_CLOSESYM 272 -#define LST_COLON 273 -#define LST_COMMA 274 -#define LST_EOL 275 -#define LST_COMMENTSYM 276 -#define LST_WHITESPACE 277 -#define LST_QUANTIFIERSYM 278 -#define LST_EQUATIONSYM 279 -#define LST_EQSEPSYM 280 -#define LST_COMPOSESYM 281 -#define LST_LPAR 282 -#define LST_RPAR 283 -#define LST_assertsTOKEN 284 -#define LST_assumesTOKEN 285 -#define LST_byTOKEN 286 -#define LST_convertsTOKEN 287 -#define LST_enumerationTOKEN 288 -#define LST_equationsTOKEN 289 -#define LST_exemptingTOKEN 290 -#define LST_forTOKEN 291 -#define LST_generatedTOKEN 292 -#define LST_impliesTOKEN 293 -#define LST_includesTOKEN 294 -#define LST_introducesTOKEN 295 -#define LST_ofTOKEN 296 -#define LST_partitionedTOKEN 297 -#define LST_traitTOKEN 298 -#define LST_tupleTOKEN 299 -#define LST_unionTOKEN 300 -#define LST_BADTOKEN 301 - -#line 36 "signature.y" - - -# include "bison.reset" - -# include -# include "lclintMacros.nf" -# include "llbasic.h" -# include "lslparse.h" -# include "signature.h" - -void lslerror (char *); -/*@dependent@*/ /*@null@*/ lslOp importedlslOp; - -/*@-noparams@*/ /* Can't list params since YYSTYPE isn't defined yet. */ -static void yyprint (/*FILE *p_file, int p_type, YYSTYPE p_value */); -/*@=noparams@*/ - -# define YYPRINT(file, type, value) yyprint (file, type, value) - -# define YYDEBUG 1 - -# include "bison.head" - - -#line 73 "signature.y" -typedef union { - ltoken ltok; /* a leaf is also an ltoken */ - unsigned int count; - /*@only@*/ ltokenList ltokenList; - /*@only@*/ opFormNode opform; - /*@owned@*/ sigNode signature; - /*@only@*/ nameNode name; - /*@owned@*/ lslOp operator; - /*@only@*/ lslOpList operators; -} YYSTYPE; -#ifndef YYDEBUG -#define YYDEBUG 1 -#endif - -#include - -#ifndef __cplusplus -#ifndef __STDC__ -#define const -#endif -#endif - - - -#define YYFINAL 62 -#define YYFLAG -32768 -#define YYNTBASE 48 - -#define YYTRANSLATE(x) ((unsigned)(x) <= 301 ? yytranslate[x] : 62) - -static const char 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, 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 -}; - -#if YYDEBUG != 0 -static const short yyprhs[] = { 0, - 0, 2, 4, 7, 11, 13, 15, 22, 24, 27, - 30, 34, 38, 43, 48, 54, 58, 63, 68, 74, - 77, 81, 85, 87, 89, 91, 92, 94, 96, 100, - 102, 104, 108, 109, 111, 113, 117, 119 -}; - -static const short yyrhs[] = { 49, - 0, 50, 0, 49, 50, 0, 51, 19, 57, 0, - 61, 0, 52, 0, 10, 9, 11, 9, 12, 9, - 0, 53, 0, 9, 53, 0, 53, 9, 0, 9, - 53, 9, 0, 17, 54, 18, 0, 9, 17, 54, - 18, 0, 17, 54, 18, 9, 0, 9, 17, 54, - 18, 9, 0, 13, 54, 14, 0, 9, 13, 54, - 14, 0, 13, 54, 14, 9, 0, 9, 13, 54, - 14, 9, 0, 15, 3, 0, 9, 15, 3, 0, - 9, 8, 3, 0, 6, 0, 4, 0, 5, 0, - 0, 55, 0, 9, 0, 55, 56, 9, 0, 20, - 0, 16, 0, 58, 7, 60, 0, 0, 59, 0, - 60, 0, 59, 20, 60, 0, 3, 0, 3, 0 -}; - -#endif - -#if YYDEBUG != 0 -static const short yyrline[] = { 0, - 139, 141, 146, 150, 156, 158, 162, 164, 166, 168, - 170, 172, 174, 176, 178, 181, 184, 187, 190, 193, - 196, 201, 206, 208, 210, 213, 215, 218, 220, 223, - 225, 228, 231, 233, 236, 238, 241, 247 -}; -#endif - - -#if YYDEBUG != 0 || defined (YYERROR_VERBOSE) - -static const char * const yytname[] = { "$","error","$undefined.","LST_SIMPLEID", -"LST_LOGICALOP","LST_EQOP","LST_SIMPLEOP","LST_MAPSYM","LST_FIELDMAPSYM","LST_MARKERSYM", -"LST_ifTOKEN","LST_thenTOKEN","LST_elseTOKEN","LST_LBRACKET","LST_RBRACKET", -"LST_SELECTSYM","LST_SEPSYM","LST_OPENSYM","LST_CLOSESYM","LST_COLON","LST_COMMA", -"LST_EOL","LST_COMMENTSYM","LST_WHITESPACE","LST_QUANTIFIERSYM","LST_EQUATIONSYM", -"LST_EQSEPSYM","LST_COMPOSESYM","LST_LPAR","LST_RPAR","LST_assertsTOKEN","LST_assumesTOKEN", -"LST_byTOKEN","LST_convertsTOKEN","LST_enumerationTOKEN","LST_equationsTOKEN", -"LST_exemptingTOKEN","LST_forTOKEN","LST_generatedTOKEN","LST_impliesTOKEN", -"LST_includesTOKEN","LST_introducesTOKEN","LST_ofTOKEN","LST_partitionedTOKEN", -"LST_traitTOKEN","LST_tupleTOKEN","LST_unionTOKEN","LST_BADTOKEN","top","operatorList", -"operator","name","opForm","anyOp","middle","placeList","separator","signature", -"domain","sortList","sortId","opId", NULL -}; -#endif - -static const short yyr1[] = { 0, - 48, 49, 49, 50, 51, 51, 52, 52, 52, 52, - 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, - 52, 52, 53, 53, 53, 54, 54, 55, 55, 56, - 56, 57, 58, 58, 59, 59, 60, 61 -}; - -static const short yyr2[] = { 0, - 1, 1, 2, 3, 1, 1, 6, 1, 2, 2, - 3, 3, 4, 4, 5, 3, 4, 4, 5, 2, - 3, 3, 1, 1, 1, 0, 1, 1, 3, 1, - 1, 3, 0, 1, 1, 3, 1, 1 -}; - -static const short yydefact[] = { 0, - 38, 24, 25, 23, 0, 0, 26, 0, 26, 1, - 2, 0, 6, 8, 5, 0, 26, 0, 26, 9, - 0, 28, 0, 27, 20, 0, 3, 33, 10, 22, - 0, 21, 0, 11, 0, 16, 31, 30, 0, 12, - 37, 4, 0, 34, 35, 17, 13, 0, 18, 29, - 14, 0, 0, 19, 15, 0, 32, 36, 7, 0, - 0, 0 -}; - -static const short yydefgoto[] = { 60, - 10, 11, 12, 13, 14, 23, 24, 39, 42, 43, - 44, 45, 15 -}; - -static const short yypact[] = { -3, --32768,-32768,-32768,-32768, 11, -4, 0, 8, 0, -3, --32768, -1,-32768, 13,-32768, 17, 0, 22, 0, 18, - 20,-32768, 19, -12,-32768, 14,-32768, 31,-32768,-32768, - 21,-32768, 23,-32768, 27, 28,-32768,-32768, 29, 30, --32768,-32768, 33, 24,-32768, 34, 36, 35,-32768,-32768, --32768, 31, 31,-32768,-32768, 37,-32768,-32768,-32768, 42, - 48,-32768 -}; - -static const short yypgoto[] = {-32768, --32768, 39,-32768,-32768, 45, 4,-32768,-32768,-32768,-32768, --32768, -23,-32768 -}; - - -#define YYLAST 50 - - -static const short yytable[] = { 1, - 2, 3, 4, 37, 21, 5, 6, 38, 22, 7, - 25, 8, 26, 9, 2, 3, 4, 28, 16, 30, - 31, 29, 33, 17, 32, 18, 34, 19, 57, 58, - 35, 40, 36, 41, 46, 48, 49, 50, 51, 52, - 47, 61, 54, 53, 55, 59, 56, 62, 27, 20 -}; - -static const short yycheck[] = { 3, - 4, 5, 6, 16, 9, 9, 10, 20, 9, 13, - 3, 15, 9, 17, 4, 5, 6, 19, 8, 3, - 17, 9, 19, 13, 3, 15, 9, 17, 52, 53, - 11, 18, 14, 3, 14, 9, 9, 9, 9, 7, - 18, 0, 9, 20, 9, 9, 12, 0, 10, 5 -}; -#define YYPURE 1 - -/* -*-C-*- Note some compilers choke on comments on `#line' lines. */ -#line 3 "/usr/lib/bison.simple" -/* This file comes from bison-1.28. */ - -/* Skeleton output parser for bison, - Copyright (C) 1984, 1989, 1990 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 2, 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, write to the Free Software - Foundation, Inc., 59 Temple Place - Suite 330, - Boston, MA 02111-1307, USA. */ - -/* As a special exception, when this file is copied by Bison into a - Bison output file, you may use that output file without restriction. - This special exception was added by the Free Software Foundation - in version 1.24 of Bison. */ - -/* This is the parser code that is written into each bison parser - when the %semantic_parser declaration is not specified in the grammar. - It was written by Richard Stallman by simplifying the hairy parser - used when %semantic_parser is specified. */ - -#ifndef YYSTACK_USE_ALLOCA -#ifdef alloca -#define YYSTACK_USE_ALLOCA -#else /* alloca not defined */ -#ifdef __GNUC__ -#define YYSTACK_USE_ALLOCA -#define alloca __builtin_alloca -#else /* not GNU C. */ -#if (!defined (__STDC__) && defined (sparc)) || defined (__sparc__) || defined (__sparc) || defined (__sgi) || (defined (__sun) && defined (__i386)) -#define YYSTACK_USE_ALLOCA -#include -#else /* not sparc */ -/* We think this test detects Watcom and Microsoft C. */ -/* This used to test MSDOS, but that is a bad idea - since that symbol is in the user namespace. */ -#if (defined (_MSDOS) || defined (_MSDOS_)) && !defined (__TURBOC__) -#if 0 /* No need for malloc.h, which pollutes the namespace; - instead, just don't use alloca. */ -#include -#endif -#else /* not MSDOS, or __TURBOC__ */ -#if defined(_AIX) -/* I don't know what this was needed for, but it pollutes the namespace. - So I turned it off. rms, 2 May 1997. */ -/* #include */ - #pragma alloca -#define YYSTACK_USE_ALLOCA -#else /* not MSDOS, or __TURBOC__, or _AIX */ -#if 0 -#ifdef __hpux /* haible@ilog.fr says this works for HPUX 9.05 and up, - and on HPUX 10. Eventually we can turn this on. */ -#define YYSTACK_USE_ALLOCA -#define alloca __builtin_alloca -#endif /* __hpux */ -#endif -#endif /* not _AIX */ -#endif /* not MSDOS, or __TURBOC__ */ -#endif /* not sparc */ -#endif /* not GNU C */ -#endif /* alloca not defined */ -#endif /* YYSTACK_USE_ALLOCA not defined */ - -#ifdef YYSTACK_USE_ALLOCA -#define YYSTACK_ALLOC alloca -#else -#define YYSTACK_ALLOC malloc -#endif - -/* Note: there must be only one dollar sign in this file. - It is replaced by the list of actions, each action - as one case of the switch. */ - -#define yyerrok (yyerrstatus = 0) -#define yyclearin (yychar = YYEMPTY) -#define YYEMPTY -2 -#define YYEOF 0 -#define YYACCEPT goto yyacceptlab -#define YYABORT goto yyabortlab -#define YYERROR goto yyerrlab1 -/* Like YYERROR except do call yyerror. - This remains here temporarily to ease the - transition to the new meaning of YYERROR, for GCC. - Once GCC version 2 has supplanted version 1, this can go. */ -#define YYFAIL goto yyerrlab -#define YYRECOVERING() (!!yyerrstatus) -#define YYBACKUP(token, value) \ -do \ - if (yychar == YYEMPTY && yylen == 1) \ - { yychar = (token), yylval = (value); \ - yychar1 = YYTRANSLATE (yychar); \ - YYPOPSTACK; \ - goto yybackup; \ - } \ - else \ - { yyerror ("syntax error: cannot back up"); YYERROR; } \ -while (0) - -#define YYTERROR 1 -#define YYERRCODE 256 - -#ifndef YYPURE -#define YYLEX yylex() -#endif - -#ifdef YYPURE -#ifdef YYLSP_NEEDED -#ifdef YYLEX_PARAM -#define YYLEX yylex(&yylval, &yylloc, YYLEX_PARAM) -#else -#define YYLEX yylex(&yylval, &yylloc) -#endif -#else /* not YYLSP_NEEDED */ -#ifdef YYLEX_PARAM -#define YYLEX yylex(&yylval, YYLEX_PARAM) -#else -#define YYLEX yylex(&yylval) -#endif -#endif /* not YYLSP_NEEDED */ -#endif - -/* If nonreentrant, generate the variables here */ - -#ifndef YYPURE - -int yychar; /* the lookahead symbol */ -YYSTYPE yylval; /* the semantic value of the */ - /* lookahead symbol */ - -#ifdef YYLSP_NEEDED -YYLTYPE yylloc; /* location data for the lookahead */ - /* symbol */ -#endif - -int yynerrs; /* number of parse errors so far */ -#endif /* not YYPURE */ - -#if YYDEBUG != 0 -int yydebug; /* nonzero means print parse trace */ -/* Since this is uninitialized, it does not stop multiple parsers - from coexisting. */ -#endif - -/* YYINITDEPTH indicates the initial size of the parser's stacks */ - -#ifndef YYINITDEPTH -#define YYINITDEPTH 200 -#endif - -/* YYMAXDEPTH is the maximum size the stacks can grow to - (effective only if the built-in stack extension method is used). */ - -#if YYMAXDEPTH == 0 -#undef YYMAXDEPTH -#endif - -#ifndef YYMAXDEPTH -#define YYMAXDEPTH 10000 -#endif - -/* Define __yy_memcpy. Note that the size argument - should be passed with type unsigned int, because that is what the non-GCC - definitions require. With GCC, __builtin_memcpy takes an arg - of type size_t, but it can handle unsigned int. */ - -#if __GNUC__ > 1 /* GNU C and GNU C++ define this. */ -#define __yy_memcpy(TO,FROM,COUNT) __builtin_memcpy(TO,FROM,COUNT) -#else /* not GNU C or C++ */ -#ifndef __cplusplus - -/* This is the most reliable way to avoid incompatibilities - in available built-in functions on various systems. */ -static void -__yy_memcpy (to, from, count) - char *to; - char *from; - unsigned int count; -{ - register char *f = from; - register char *t = to; - register int i = count; - - while (i-- > 0) - *t++ = *f++; -} - -#else /* __cplusplus */ - -/* This is the most reliable way to avoid incompatibilities - in available built-in functions on various systems. */ -static void -__yy_memcpy (char *to, char *from, unsigned int count) -{ - register char *t = to; - register char *f = from; - register int i = count; - - while (i-- > 0) - *t++ = *f++; -} - -#endif -#endif - -#line 217 "/usr/lib/bison.simple" - -/* The user can define YYPARSE_PARAM as the name of an argument to be passed - into yyparse. The argument should have type void *. - It should actually point to an object. - Grammar actions can access the variable by casting it - to the proper pointer type. */ - -#ifdef YYPARSE_PARAM -#ifdef __cplusplus -#define YYPARSE_PARAM_ARG void *YYPARSE_PARAM -#define YYPARSE_PARAM_DECL -#else /* not __cplusplus */ -#define YYPARSE_PARAM_ARG YYPARSE_PARAM -#define YYPARSE_PARAM_DECL void *YYPARSE_PARAM; -#endif /* not __cplusplus */ -#else /* not YYPARSE_PARAM */ -#define YYPARSE_PARAM_ARG -#define YYPARSE_PARAM_DECL -#endif /* not YYPARSE_PARAM */ - -/* Prevent warning if -Wstrict-prototypes. */ -#ifdef __GNUC__ -#ifdef YYPARSE_PARAM -int yyparse (void *); -#else -int yyparse (void); -#endif -#endif - -int -yyparse(YYPARSE_PARAM_ARG) - YYPARSE_PARAM_DECL -{ - register int yystate; - register int yyn; - register short *yyssp; - register YYSTYPE *yyvsp; - int yyerrstatus; /* number of tokens to shift before error messages enabled */ - int yychar1 = 0; /* lookahead token as an internal (translated) token number */ - - short yyssa[YYINITDEPTH]; /* the state stack */ - YYSTYPE yyvsa[YYINITDEPTH]; /* the semantic value stack */ - - short *yyss = yyssa; /* refer to the stacks thru separate pointers */ - YYSTYPE *yyvs = yyvsa; /* to allow yyoverflow to reallocate them elsewhere */ - -#ifdef YYLSP_NEEDED - YYLTYPE yylsa[YYINITDEPTH]; /* the location stack */ - YYLTYPE *yyls = yylsa; - YYLTYPE *yylsp; - -#define YYPOPSTACK (yyvsp--, yyssp--, yylsp--) -#else -#define YYPOPSTACK (yyvsp--, yyssp--) -#endif - - int yystacksize = YYINITDEPTH; - int yyfree_stacks = 0; - -#ifdef YYPURE - int yychar; - YYSTYPE yylval; - int yynerrs; -#ifdef YYLSP_NEEDED - YYLTYPE yylloc; -#endif -#endif - - YYSTYPE yyval; /* the variable used to return */ - /* semantic values from the action */ - /* routines */ - - int yylen; - -#if YYDEBUG != 0 - if (yydebug) - fprintf(stderr, "Starting parse\n"); -#endif - - yystate = 0; - yyerrstatus = 0; - yynerrs = 0; - yychar = YYEMPTY; /* Cause a token to be read. */ - - /* Initialize stack pointers. - Waste one element of value and location stack - so that they stay on the same level as the state stack. - The wasted elements are never initialized. */ - - yyssp = yyss - 1; - yyvsp = yyvs; -#ifdef YYLSP_NEEDED - yylsp = yyls; -#endif - -/* Push a new state, which is found in yystate . */ -/* In all cases, when you get here, the value and location stacks - have just been pushed. so pushing a state here evens the stacks. */ -yynewstate: - - *++yyssp = yystate; - - if (yyssp >= yyss + yystacksize - 1) - { - /* Give user a chance to reallocate the stack */ - /* Use copies of these so that the &'s don't force the real ones into memory. */ - YYSTYPE *yyvs1 = yyvs; - short *yyss1 = yyss; -#ifdef YYLSP_NEEDED - YYLTYPE *yyls1 = yyls; -#endif - - /* Get the current used size of the three stacks, in elements. */ - int size = yyssp - yyss + 1; - -#ifdef yyoverflow - /* Each stack pointer address is followed by the size of - the data in use in that stack, in bytes. */ -#ifdef YYLSP_NEEDED - /* This used to be a conditional around just the two extra args, - but that might be undefined if yyoverflow is a macro. */ - yyoverflow("parser stack overflow", - &yyss1, size * sizeof (*yyssp), - &yyvs1, size * sizeof (*yyvsp), - &yyls1, size * sizeof (*yylsp), - &yystacksize); -#else - yyoverflow("parser stack overflow", - &yyss1, size * sizeof (*yyssp), - &yyvs1, size * sizeof (*yyvsp), - &yystacksize); -#endif - - yyss = yyss1; yyvs = yyvs1; -#ifdef YYLSP_NEEDED - yyls = yyls1; -#endif -#else /* no yyoverflow */ - /* Extend the stack our own way. */ - if (yystacksize >= YYMAXDEPTH) - { - yyerror("parser stack overflow"); - if (yyfree_stacks) - { - free (yyss); - free (yyvs); -#ifdef YYLSP_NEEDED - free (yyls); -#endif - } - return 2; - } - yystacksize *= 2; - if (yystacksize > YYMAXDEPTH) - yystacksize = YYMAXDEPTH; -#ifndef YYSTACK_USE_ALLOCA - yyfree_stacks = 1; -#endif - yyss = (short *) YYSTACK_ALLOC (yystacksize * sizeof (*yyssp)); - __yy_memcpy ((char *)yyss, (char *)yyss1, - size * (unsigned int) sizeof (*yyssp)); - yyvs = (YYSTYPE *) YYSTACK_ALLOC (yystacksize * sizeof (*yyvsp)); - __yy_memcpy ((char *)yyvs, (char *)yyvs1, - size * (unsigned int) sizeof (*yyvsp)); -#ifdef YYLSP_NEEDED - yyls = (YYLTYPE *) YYSTACK_ALLOC (yystacksize * sizeof (*yylsp)); - __yy_memcpy ((char *)yyls, (char *)yyls1, - size * (unsigned int) sizeof (*yylsp)); -#endif -#endif /* no yyoverflow */ - - yyssp = yyss + size - 1; - yyvsp = yyvs + size - 1; -#ifdef YYLSP_NEEDED - yylsp = yyls + size - 1; -#endif - -#if YYDEBUG != 0 - if (yydebug) - fprintf(stderr, "Stack size increased to %d\n", yystacksize); -#endif - - if (yyssp >= yyss + yystacksize - 1) - YYABORT; - } - -#if YYDEBUG != 0 - if (yydebug) - fprintf(stderr, "Entering state %d\n", yystate); -#endif - - goto yybackup; - yybackup: - -/* Do appropriate processing given the current state. */ -/* Read a lookahead token if we need one and don't already have one. */ -/* yyresume: */ - - /* First try to decide what to do without reference to lookahead token. */ - - yyn = yypact[yystate]; - if (yyn == YYFLAG) - goto yydefault; - - /* Not known => get a lookahead token if don't already have one. */ - - /* yychar is either YYEMPTY or YYEOF - or a valid token in external form. */ - - if (yychar == YYEMPTY) - { -#if YYDEBUG != 0 - if (yydebug) - fprintf(stderr, "Reading a token: "); -#endif - yychar = YYLEX; - } - - /* Convert token to internal form (in yychar1) for indexing tables with */ - - if (yychar <= 0) /* This means end of input. */ - { - yychar1 = 0; - yychar = YYEOF; /* Don't call YYLEX any more */ - -#if YYDEBUG != 0 - if (yydebug) - fprintf(stderr, "Now at end of input.\n"); -#endif - } - else - { - yychar1 = YYTRANSLATE(yychar); - -#if YYDEBUG != 0 - if (yydebug) - { - fprintf (stderr, "Next token is %d (%s", yychar, yytname[yychar1]); - /* Give the individual parser a way to print the precise meaning - of a token, for further debugging info. */ -#ifdef YYPRINT - YYPRINT (stderr, yychar, yylval); -#endif - fprintf (stderr, ")\n"); - } -#endif - } - - yyn += yychar1; - if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != yychar1) - goto yydefault; - - yyn = yytable[yyn]; - - /* yyn is what to do for this token type in this state. - Negative => reduce, -yyn is rule number. - Positive => shift, yyn is new state. - New state is final state => don't bother to shift, - just return success. - 0, or most negative number => error. */ - - if (yyn < 0) - { - if (yyn == YYFLAG) - goto yyerrlab; - yyn = -yyn; - goto yyreduce; - } - else if (yyn == 0) - goto yyerrlab; - - if (yyn == YYFINAL) - YYACCEPT; - - /* Shift the lookahead token. */ - -#if YYDEBUG != 0 - if (yydebug) - fprintf(stderr, "Shifting token %d (%s), ", yychar, yytname[yychar1]); -#endif - - /* Discard the token being shifted unless it is eof. */ - if (yychar != YYEOF) - yychar = YYEMPTY; - - *++yyvsp = yylval; -#ifdef YYLSP_NEEDED - *++yylsp = yylloc; -#endif - - /* count tokens shifted since error; after three, turn off error status. */ - if (yyerrstatus) yyerrstatus--; - - yystate = yyn; - goto yynewstate; - -/* Do the default action for the current state. */ -yydefault: - - yyn = yydefact[yystate]; - if (yyn == 0) - goto yyerrlab; - -/* Do a reduction. yyn is the number of a rule to reduce with. */ -yyreduce: - yylen = yyr2[yyn]; - if (yylen > 0) - yyval = yyvsp[1-yylen]; /* implement default value of the action */ - -#if YYDEBUG != 0 - if (yydebug) - { - int i; - - fprintf (stderr, "Reducing via rule %d (line %d), ", - yyn, yyrline[yyn]); - - /* Print the symbols being reduced, and their result. */ - for (i = yyprhs[yyn]; yyrhs[i] > 0; i++) - fprintf (stderr, "%s ", yytname[yyrhs[i]]); - fprintf (stderr, " -> %s\n", yytname[yyr1[yyn]]); - } -#endif - - - switch (yyn) { - -case 1: -#line 139 "signature.y" -{ lslOpList_free (yyvsp[0].operators); ; - break;} -case 2: -#line 142 "signature.y" -{ lslOpList x = lslOpList_new (); - g_importedlslOp = yyvsp[0].operator; - lslOpList_add (x, yyvsp[0].operator); - yyval.operators = x; ; - break;} -case 3: -#line 147 "signature.y" -{ lslOpList_add (yyvsp[-1].operators, yyvsp[0].operator); - yyval.operators = yyvsp[-1].operators; ; - break;} -case 4: -#line 151 "signature.y" -{ yyval.operator = makelslOpNode (yyvsp[-2].name, yyvsp[0].signature); ; - break;} -case 5: -#line 157 "signature.y" -{ yyval.name = makeNameNodeId (yyvsp[0].ltok); ; - break;} -case 6: -#line 159 "signature.y" -{ yyval.name = makeNameNodeForm (yyvsp[0].opform); ; - break;} -case 7: -#line 163 "signature.y" -{ yyval.opform = makeOpFormNode (yyvsp[-5].ltok, OPF_IF, opFormUnion_createMiddle (0), ltoken_undefined); ; - break;} -case 8: -#line 165 "signature.y" -{ yyval.opform = makeOpFormNode (yyvsp[0].ltok, OPF_ANYOP, opFormUnion_createAnyOp (yyvsp[0].ltok), ltoken_undefined); ; - break;} -case 9: -#line 167 "signature.y" -{ yyval.opform = makeOpFormNode (yyvsp[-1].ltok, OPF_MANYOP, opFormUnion_createAnyOp (yyvsp[0].ltok), ltoken_undefined); ; - break;} -case 10: -#line 169 "signature.y" -{ yyval.opform = makeOpFormNode (yyvsp[-1].ltok, OPF_ANYOPM, opFormUnion_createAnyOp (yyvsp[-1].ltok), ltoken_undefined); ; - break;} -case 11: -#line 171 "signature.y" -{ yyval.opform = makeOpFormNode (yyvsp[-2].ltok, OPF_MANYOPM, opFormUnion_createAnyOp (yyvsp[-1].ltok), ltoken_undefined); ; - break;} -case 12: -#line 173 "signature.y" -{ yyval.opform = makeOpFormNode (yyvsp[-2].ltok, OPF_MIDDLE, opFormUnion_createMiddle (yyvsp[-1].count), yyvsp[0].ltok); ; - break;} -case 13: -#line 175 "signature.y" -{ yyval.opform = makeOpFormNode (yyvsp[-2].ltok, OPF_MMIDDLE, opFormUnion_createMiddle (yyvsp[-1].count), yyvsp[0].ltok); ; - break;} -case 14: -#line 177 "signature.y" -{ yyval.opform = makeOpFormNode (yyvsp[-3].ltok, OPF_MIDDLEM, opFormUnion_createMiddle (yyvsp[-2].count), yyvsp[-1].ltok); ; - break;} -case 15: -#line 179 "signature.y" -{ yyval.opform = makeOpFormNode (yyvsp[-3].ltok, OPF_MMIDDLEM, - opFormUnion_createMiddle (yyvsp[-2].count), yyvsp[-1].ltok); ; - break;} -case 16: -#line 182 "signature.y" -{ yyval.opform = makeOpFormNode (yyvsp[-2].ltok, OPF_BMIDDLE, - opFormUnion_createMiddle (yyvsp[-1].count), yyvsp[0].ltok); ; - break;} -case 17: -#line 185 "signature.y" -{ yyval.opform = makeOpFormNode (yyvsp[-2].ltok, OPF_BMMIDDLE, - opFormUnion_createMiddle (yyvsp[-1].count), yyvsp[0].ltok); ; - break;} -case 18: -#line 188 "signature.y" -{ yyval.opform = makeOpFormNode (yyvsp[-3].ltok, OPF_BMIDDLEM, - opFormUnion_createMiddle (yyvsp[-2].count), yyvsp[-1].ltok); ; - break;} -case 19: -#line 191 "signature.y" -{ yyval.opform = makeOpFormNode (yyvsp[-3].ltok, OPF_BMMIDDLEM, - opFormUnion_createMiddle (yyvsp[-2].count), yyvsp[-1].ltok); ; - break;} -case 20: -#line 194 "signature.y" -{ yyval.opform = makeOpFormNode (yyvsp[-1].ltok, OPF_SELECT, - opFormUnion_createAnyOp (yyvsp[0].ltok), ltoken_undefined); ; - break;} -case 21: -#line 197 "signature.y" -{ yyval.opform = makeOpFormNode (yyvsp[-2].ltok, OPF_MSELECT, - opFormUnion_createAnyOp (yyvsp[0].ltok), ltoken_undefined); ; - break;} -case 22: -#line 202 "signature.y" -{ yyval.opform = makeOpFormNode (yyvsp[-2].ltok, OPF_MMAP, - opFormUnion_createAnyOp (yyvsp[0].ltok), ltoken_undefined); ; - break;} -case 23: -#line 207 "signature.y" -{ yyval.ltok = yyvsp[0].ltok; ; - break;} -case 24: -#line 209 "signature.y" -{ yyval.ltok = yyvsp[0].ltok; ; - break;} -case 25: -#line 211 "signature.y" -{ yyval.ltok = yyvsp[0].ltok; ; - break;} -case 26: -#line 214 "signature.y" -{ yyval.count = 0; ; - break;} -case 27: -#line 216 "signature.y" -{ yyval.count = yyvsp[0].count; ; - break;} -case 28: -#line 219 "signature.y" -{ yyval.count = 1; ; - break;} -case 29: -#line 221 "signature.y" -{ yyval.count = yyvsp[-2].count + 1; ; - break;} -case 30: -#line 224 "signature.y" -{ yyval.ltok = yyvsp[0].ltok; ; - break;} -case 31: -#line 226 "signature.y" -{ yyval.ltok = yyvsp[0].ltok; ; - break;} -case 32: -#line 229 "signature.y" -{ yyval.signature = makesigNode (yyvsp[-1].ltok, yyvsp[-2].ltokenList, yyvsp[0].ltok); ; - break;} -case 33: -#line 232 "signature.y" -{ yyval.ltokenList = ltokenList_new (); ; - break;} -case 34: -#line 234 "signature.y" -{ yyval.ltokenList = yyvsp[0].ltokenList; ; - break;} -case 35: -#line 237 "signature.y" -{ yyval.ltokenList = ltokenList_singleton (yyvsp[0].ltok); ; - break;} -case 36: -#line 239 "signature.y" -{ yyval.ltokenList = ltokenList_push (yyvsp[-2].ltokenList, yyvsp[0].ltok); ; - break;} -case 37: -#line 242 "signature.y" -{ - yyval.ltok = yyvsp[0].ltok; - ltoken_setText (yyval.ltok, processTraitSortId (ltoken_getText (yyvsp[0].ltok))); - ; - break;} -case 38: -#line 248 "signature.y" -{ yyval.ltok = yyvsp[0].ltok; ; - break;} -} - /* the action file gets copied in in place of this dollarsign */ -#line 543 "/usr/lib/bison.simple" - - yyvsp -= yylen; - yyssp -= yylen; -#ifdef YYLSP_NEEDED - yylsp -= yylen; -#endif - -#if YYDEBUG != 0 - if (yydebug) - { - short *ssp1 = yyss - 1; - fprintf (stderr, "state stack now"); - while (ssp1 != yyssp) - fprintf (stderr, " %d", *++ssp1); - fprintf (stderr, "\n"); - } -#endif - - *++yyvsp = yyval; - -#ifdef YYLSP_NEEDED - yylsp++; - if (yylen == 0) - { - yylsp->first_line = yylloc.first_line; - yylsp->first_column = yylloc.first_column; - yylsp->last_line = (yylsp-1)->last_line; - yylsp->last_column = (yylsp-1)->last_column; - yylsp->text = 0; - } - else - { - yylsp->last_line = (yylsp+yylen-1)->last_line; - yylsp->last_column = (yylsp+yylen-1)->last_column; - } -#endif - - /* Now "shift" the result of the reduction. - Determine what state that goes to, - based on the state we popped back to - and the rule number reduced by. */ - - yyn = yyr1[yyn]; - - yystate = yypgoto[yyn - YYNTBASE] + *yyssp; - if (yystate >= 0 && yystate <= YYLAST && yycheck[yystate] == *yyssp) - yystate = yytable[yystate]; - else - yystate = yydefgoto[yyn - YYNTBASE]; - - goto yynewstate; - -yyerrlab: /* here on detecting error */ - - if (! yyerrstatus) - /* If not already recovering from an error, report this error. */ - { - ++yynerrs; - -#ifdef YYERROR_VERBOSE - yyn = yypact[yystate]; - - if (yyn > YYFLAG && yyn < YYLAST) - { - int size = 0; - char *msg; - int x, count; - - count = 0; - /* Start X at -yyn if nec to avoid negative indexes in yycheck. */ - for (x = (yyn < 0 ? -yyn : 0); - x < (sizeof(yytname) / sizeof(char *)); x++) - if (yycheck[x + yyn] == x) - size += strlen(yytname[x]) + 15, count++; - msg = (char *) malloc(size + 15); - if (msg != 0) - { - strcpy(msg, "parse error"); - - if (count < 5) - { - count = 0; - for (x = (yyn < 0 ? -yyn : 0); - x < (sizeof(yytname) / sizeof(char *)); x++) - if (yycheck[x + yyn] == x) - { - strcat(msg, count == 0 ? ", expecting `" : " or `"); - strcat(msg, yytname[x]); - strcat(msg, "'"); - count++; - } - } - yyerror(msg); - free(msg); - } - else - yyerror ("parse error; also virtual memory exceeded"); - } - else -#endif /* YYERROR_VERBOSE */ - yyerror("parse error"); - } - - goto yyerrlab1; -yyerrlab1: /* here on error raised explicitly by an action */ - - if (yyerrstatus == 3) - { - /* if just tried and failed to reuse lookahead token after an error, discard it. */ - - /* return failure if at end of input */ - if (yychar == YYEOF) - YYABORT; - -#if YYDEBUG != 0 - if (yydebug) - fprintf(stderr, "Discarding token %d (%s).\n", yychar, yytname[yychar1]); -#endif - - yychar = YYEMPTY; - } - - /* Else will try to reuse lookahead token - after shifting the error token. */ - - yyerrstatus = 3; /* Each real token shifted decrements this */ - - goto yyerrhandle; - -yyerrdefault: /* current state does not do anything special for the error token. */ - -#if 0 - /* This is wrong; only states that explicitly want error tokens - should shift them. */ - yyn = yydefact[yystate]; /* If its default is to accept any token, ok. Otherwise pop it.*/ - if (yyn) goto yydefault; -#endif - -yyerrpop: /* pop the current state because it cannot handle the error token */ - - if (yyssp == yyss) YYABORT; - yyvsp--; - yystate = *--yyssp; -#ifdef YYLSP_NEEDED - yylsp--; -#endif - -#if YYDEBUG != 0 - if (yydebug) - { - short *ssp1 = yyss - 1; - fprintf (stderr, "Error: state stack now"); - while (ssp1 != yyssp) - fprintf (stderr, " %d", *++ssp1); - fprintf (stderr, "\n"); - } -#endif - -yyerrhandle: - - yyn = yypact[yystate]; - if (yyn == YYFLAG) - goto yyerrdefault; - - yyn += YYTERROR; - if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != YYTERROR) - goto yyerrdefault; - - yyn = yytable[yyn]; - if (yyn < 0) - { - if (yyn == YYFLAG) - goto yyerrpop; - yyn = -yyn; - goto yyreduce; - } - else if (yyn == 0) - goto yyerrpop; - - if (yyn == YYFINAL) - YYACCEPT; - -#if YYDEBUG != 0 - if (yydebug) - fprintf(stderr, "Shifting error token, "); -#endif - - *++yyvsp = yylval; -#ifdef YYLSP_NEEDED - *++yylsp = yylloc; -#endif - - yystate = yyn; - goto yynewstate; - - yyacceptlab: - /* YYACCEPT comes here. */ - if (yyfree_stacks) - { - free (yyss); - free (yyvs); -#ifdef YYLSP_NEEDED - free (yyls); -#endif - } - return 0; - - yyabortlab: - /* YYABORT comes here. */ - if (yyfree_stacks) - { - free (yyss); - free (yyvs); -#ifdef YYLSP_NEEDED - free (yyls); -#endif - } - return 1; -} -#line 249 "signature.y" - - -# include "bison.reset" - -extern char *yytext; - -void lslerror (char *s) -{ - llfatalbug - (cstring_makeLiteral - ("There has been a problem parsing an LSL signature. This is believed to " - "result from a problem with gcc version 2.95 optimizations, " - "but it has not been confirmed. Please try rebuidling LCLint " - "without the -O option.")); - -} - -static void yyprint (FILE *file, int type, YYSTYPE value) -{ - fprintf (file, " (%u:%u type: %d; text: %s) ", - ltoken_getLine (value.ltok), - ltoken_getCol (value.ltok), - type, - ltoken_getRawTextChars (value.ltok)); -} - -extern void PrintToken (ltoken tok) { - char *codStr; - - switch (ltoken_getCode (tok)) - { - case NOTTOKEN: codStr = "*** NOTTOKEN ***"; break; - case LST_QUANTIFIERSYM: codStr = "QUANTIFIERSYM"; break; - case LST_LOGICALOP: codStr = "LOGICALOP: "; break; - case LST_SELECTSYM: codStr = "LST_SELECTSYM"; break; - case LST_OPENSYM: codStr = "LST_OPENSYM"; break; - case LST_SEPSYM: codStr = "SEPSYM"; break; - case LST_CLOSESYM: codStr = "LST_CLOSESYM"; break; - case LST_SIMPLEID: codStr = "LST_SIMPLEID"; break; - case LST_MAPSYM: codStr = "MAPSYM"; break; - case LST_MARKERSYM: codStr = "LST_MARKERSYM"; break; - case LST_COMMENTSYM: codStr = "COMMENTSYM"; break; - case LST_SIMPLEOP: codStr = "SIMPLEOP"; break; - case LST_COLON: codStr = "LST_COLON"; break; - case LST_COMMA: codStr = "COMMA"; break; - case LST_LBRACKET: codStr = "LST_LBRACKET"; break; - case LST_LPAR: codStr = "LST_LPAR"; break; - case LST_RBRACKET: codStr = "LST_RBRACKET"; break; - case LST_RPAR: codStr = "LST_RPAR"; break; - case LST_EQOP: codStr = "LST_EQOP"; break; - case LST_WHITESPACE: codStr = "WHITESPACE,"; break; - case LST_EOL: codStr = "LST_EOL"; break; - case LST_elseTOKEN: codStr = "elseTOKEN"; break; - case LST_ifTOKEN: codStr = "ifTOKEN"; break; - case LST_thenTOKEN: codStr = "thenTOKEN"; break; - case LST_BADTOKEN: codStr = "*** BADTOKEN ***"; break; - case LEOFTOKEN: /* can't reach LEOFTOKEN easily */ - codStr = "LEOFTOKEN"; break; - default: - codStr = "*** invalid token code ***"; - break; - } /* end switch */ - - /* only used for debugging */ - printf ("%u:%u: Token Code (%u): %s", - ltoken_getLine (tok), ltoken_getCol (tok), - ltoken_getCode (tok), codStr); - if (ltoken_getRawText (tok) != 0) - { - printf (", Token String (%lu): %s\n", - ltoken_getRawText (tok), ltoken_getRawTextChars (tok)); - } - else printf ("\n"); -} - - - - diff --git a/src/signature.tab.c b/src/signature.tab.c deleted file mode 100644 index da2a947..0000000 --- a/src/signature.tab.c +++ /dev/null @@ -1,1277 +0,0 @@ - -/* A Bison parser, made from signature.y - by GNU Bison version 1.28 */ - -#define YYBISON 1 /* Identify Bison output. */ - -#define yyparse lslparse -#define yylex lsllex -#define yyerror lslerror -#define yylval lsllval -#define yychar lslchar -#define yydebug lsldebug -#define yynerrs lslnerrs -#define LST_SIMPLEID 257 -#define LST_LOGICALOP 258 -#define LST_EQOP 259 -#define LST_SIMPLEOP 260 -#define LST_MAPSYM 261 -#define LST_FIELDMAPSYM 262 -#define LST_MARKERSYM 263 -#define LST_ifTOKEN 264 -#define LST_thenTOKEN 265 -#define LST_elseTOKEN 266 -#define LST_LBRACKET 267 -#define LST_RBRACKET 268 -#define LST_SELECTSYM 269 -#define LST_SEPSYM 270 -#define LST_OPENSYM 271 -#define LST_CLOSESYM 272 -#define LST_COLON 273 -#define LST_COMMA 274 -#define LST_EOL 275 -#define LST_COMMENTSYM 276 -#define LST_WHITESPACE 277 -#define LST_QUANTIFIERSYM 278 -#define LST_EQUATIONSYM 279 -#define LST_EQSEPSYM 280 -#define LST_COMPOSESYM 281 -#define LST_LPAR 282 -#define LST_RPAR 283 -#define LST_assertsTOKEN 284 -#define LST_assumesTOKEN 285 -#define LST_byTOKEN 286 -#define LST_convertsTOKEN 287 -#define LST_enumerationTOKEN 288 -#define LST_equationsTOKEN 289 -#define LST_exemptingTOKEN 290 -#define LST_forTOKEN 291 -#define LST_generatedTOKEN 292 -#define LST_impliesTOKEN 293 -#define LST_includesTOKEN 294 -#define LST_introducesTOKEN 295 -#define LST_ofTOKEN 296 -#define LST_partitionedTOKEN 297 -#define LST_traitTOKEN 298 -#define LST_tupleTOKEN 299 -#define LST_unionTOKEN 300 -#define LST_BADTOKEN 301 - -#line 36 "signature.y" - - -# include "bison.reset" - -# include -# include "lclintMacros.nf" -# include "llbasic.h" -# include "lslparse.h" -# include "signature.h" - -void lslerror (char *); -/*@dependent@*/ /*@null@*/ lslOp importedlslOp; - -/*@-noparams@*/ /* Can't list params since YYSTYPE isn't defined yet. */ -static void yyprint (/*FILE *p_file, int p_type, YYSTYPE p_value */); -/*@=noparams@*/ - -# define YYPRINT(file, type, value) yyprint (file, type, value) - -# define YYDEBUG 1 - -# include "bison.head" - - -#line 73 "signature.y" -typedef union { - ltoken ltok; /* a leaf is also an ltoken */ - unsigned int count; - /*@only@*/ ltokenList ltokenList; - /*@only@*/ opFormNode opform; - /*@owned@*/ sigNode signature; - /*@only@*/ nameNode name; - /*@owned@*/ lslOp operator; - /*@only@*/ lslOpList operators; -} YYSTYPE; -#ifndef YYDEBUG -#define YYDEBUG 1 -#endif - -#include - -#ifndef __cplusplus -#ifndef __STDC__ -#define const -#endif -#endif - - - -#define YYFINAL 62 -#define YYFLAG -32768 -#define YYNTBASE 48 - -#define YYTRANSLATE(x) ((unsigned)(x) <= 301 ? yytranslate[x] : 62) - -static const char 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, 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 -}; - -#if YYDEBUG != 0 -static const short yyprhs[] = { 0, - 0, 2, 4, 7, 11, 13, 15, 22, 24, 27, - 30, 34, 38, 43, 48, 54, 58, 63, 68, 74, - 77, 81, 85, 87, 89, 91, 92, 94, 96, 100, - 102, 104, 108, 109, 111, 113, 117, 119 -}; - -static const short yyrhs[] = { 49, - 0, 50, 0, 49, 50, 0, 51, 19, 57, 0, - 61, 0, 52, 0, 10, 9, 11, 9, 12, 9, - 0, 53, 0, 9, 53, 0, 53, 9, 0, 9, - 53, 9, 0, 17, 54, 18, 0, 9, 17, 54, - 18, 0, 17, 54, 18, 9, 0, 9, 17, 54, - 18, 9, 0, 13, 54, 14, 0, 9, 13, 54, - 14, 0, 13, 54, 14, 9, 0, 9, 13, 54, - 14, 9, 0, 15, 3, 0, 9, 15, 3, 0, - 9, 8, 3, 0, 6, 0, 4, 0, 5, 0, - 0, 55, 0, 9, 0, 55, 56, 9, 0, 20, - 0, 16, 0, 58, 7, 60, 0, 0, 59, 0, - 60, 0, 59, 20, 60, 0, 3, 0, 3, 0 -}; - -#endif - -#if YYDEBUG != 0 -static const short yyrline[] = { 0, - 139, 141, 146, 150, 156, 158, 162, 164, 166, 168, - 170, 172, 174, 176, 178, 181, 184, 187, 190, 193, - 196, 201, 206, 208, 210, 213, 215, 218, 220, 223, - 225, 228, 231, 233, 236, 238, 241, 247 -}; -#endif - - -#if YYDEBUG != 0 || defined (YYERROR_VERBOSE) - -static const char * const yytname[] = { "$","error","$undefined.","LST_SIMPLEID", -"LST_LOGICALOP","LST_EQOP","LST_SIMPLEOP","LST_MAPSYM","LST_FIELDMAPSYM","LST_MARKERSYM", -"LST_ifTOKEN","LST_thenTOKEN","LST_elseTOKEN","LST_LBRACKET","LST_RBRACKET", -"LST_SELECTSYM","LST_SEPSYM","LST_OPENSYM","LST_CLOSESYM","LST_COLON","LST_COMMA", -"LST_EOL","LST_COMMENTSYM","LST_WHITESPACE","LST_QUANTIFIERSYM","LST_EQUATIONSYM", -"LST_EQSEPSYM","LST_COMPOSESYM","LST_LPAR","LST_RPAR","LST_assertsTOKEN","LST_assumesTOKEN", -"LST_byTOKEN","LST_convertsTOKEN","LST_enumerationTOKEN","LST_equationsTOKEN", -"LST_exemptingTOKEN","LST_forTOKEN","LST_generatedTOKEN","LST_impliesTOKEN", -"LST_includesTOKEN","LST_introducesTOKEN","LST_ofTOKEN","LST_partitionedTOKEN", -"LST_traitTOKEN","LST_tupleTOKEN","LST_unionTOKEN","LST_BADTOKEN","top","operatorList", -"operator","name","opForm","anyOp","middle","placeList","separator","signature", -"domain","sortList","sortId","opId", NULL -}; -#endif - -static const short yyr1[] = { 0, - 48, 49, 49, 50, 51, 51, 52, 52, 52, 52, - 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, - 52, 52, 53, 53, 53, 54, 54, 55, 55, 56, - 56, 57, 58, 58, 59, 59, 60, 61 -}; - -static const short yyr2[] = { 0, - 1, 1, 2, 3, 1, 1, 6, 1, 2, 2, - 3, 3, 4, 4, 5, 3, 4, 4, 5, 2, - 3, 3, 1, 1, 1, 0, 1, 1, 3, 1, - 1, 3, 0, 1, 1, 3, 1, 1 -}; - -static const short yydefact[] = { 0, - 38, 24, 25, 23, 0, 0, 26, 0, 26, 1, - 2, 0, 6, 8, 5, 0, 26, 0, 26, 9, - 0, 28, 0, 27, 20, 0, 3, 33, 10, 22, - 0, 21, 0, 11, 0, 16, 31, 30, 0, 12, - 37, 4, 0, 34, 35, 17, 13, 0, 18, 29, - 14, 0, 0, 19, 15, 0, 32, 36, 7, 0, - 0, 0 -}; - -static const short yydefgoto[] = { 60, - 10, 11, 12, 13, 14, 23, 24, 39, 42, 43, - 44, 45, 15 -}; - -static const short yypact[] = { -3, --32768,-32768,-32768,-32768, 11, -4, 0, 8, 0, -3, --32768, -1,-32768, 13,-32768, 17, 0, 22, 0, 18, - 20,-32768, 19, -12,-32768, 14,-32768, 31,-32768,-32768, - 21,-32768, 23,-32768, 27, 28,-32768,-32768, 29, 30, --32768,-32768, 33, 24,-32768, 34, 36, 35,-32768,-32768, --32768, 31, 31,-32768,-32768, 37,-32768,-32768,-32768, 42, - 48,-32768 -}; - -static const short yypgoto[] = {-32768, --32768, 39,-32768,-32768, 45, 4,-32768,-32768,-32768,-32768, --32768, -23,-32768 -}; - - -#define YYLAST 50 - - -static const short yytable[] = { 1, - 2, 3, 4, 37, 21, 5, 6, 38, 22, 7, - 25, 8, 26, 9, 2, 3, 4, 28, 16, 30, - 31, 29, 33, 17, 32, 18, 34, 19, 57, 58, - 35, 40, 36, 41, 46, 48, 49, 50, 51, 52, - 47, 61, 54, 53, 55, 59, 56, 62, 27, 20 -}; - -static const short yycheck[] = { 3, - 4, 5, 6, 16, 9, 9, 10, 20, 9, 13, - 3, 15, 9, 17, 4, 5, 6, 19, 8, 3, - 17, 9, 19, 13, 3, 15, 9, 17, 52, 53, - 11, 18, 14, 3, 14, 9, 9, 9, 9, 7, - 18, 0, 9, 20, 9, 9, 12, 0, 10, 5 -}; -#define YYPURE 1 - -/* -*-C-*- Note some compilers choke on comments on `#line' lines. */ -#line 3 "/usr/lib/bison.simple" -/* This file comes from bison-1.28. */ - -/* Skeleton output parser for bison, - Copyright (C) 1984, 1989, 1990 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 2, 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, write to the Free Software - Foundation, Inc., 59 Temple Place - Suite 330, - Boston, MA 02111-1307, USA. */ - -/* As a special exception, when this file is copied by Bison into a - Bison output file, you may use that output file without restriction. - This special exception was added by the Free Software Foundation - in version 1.24 of Bison. */ - -/* This is the parser code that is written into each bison parser - when the %semantic_parser declaration is not specified in the grammar. - It was written by Richard Stallman by simplifying the hairy parser - used when %semantic_parser is specified. */ - -#ifndef YYSTACK_USE_ALLOCA -#ifdef alloca -#define YYSTACK_USE_ALLOCA -#else /* alloca not defined */ -#ifdef __GNUC__ -#define YYSTACK_USE_ALLOCA -#define alloca __builtin_alloca -#else /* not GNU C. */ -#if (!defined (__STDC__) && defined (sparc)) || defined (__sparc__) || defined (__sparc) || defined (__sgi) || (defined (__sun) && defined (__i386)) -#define YYSTACK_USE_ALLOCA -#include -#else /* not sparc */ -/* We think this test detects Watcom and Microsoft C. */ -/* This used to test MSDOS, but that is a bad idea - since that symbol is in the user namespace. */ -#if (defined (_MSDOS) || defined (_MSDOS_)) && !defined (__TURBOC__) -#if 0 /* No need for malloc.h, which pollutes the namespace; - instead, just don't use alloca. */ -#include -#endif -#else /* not MSDOS, or __TURBOC__ */ -#if defined(_AIX) -/* I don't know what this was needed for, but it pollutes the namespace. - So I turned it off. rms, 2 May 1997. */ -/* #include */ - #pragma alloca -#define YYSTACK_USE_ALLOCA -#else /* not MSDOS, or __TURBOC__, or _AIX */ -#if 0 -#ifdef __hpux /* haible@ilog.fr says this works for HPUX 9.05 and up, - and on HPUX 10. Eventually we can turn this on. */ -#define YYSTACK_USE_ALLOCA -#define alloca __builtin_alloca -#endif /* __hpux */ -#endif -#endif /* not _AIX */ -#endif /* not MSDOS, or __TURBOC__ */ -#endif /* not sparc */ -#endif /* not GNU C */ -#endif /* alloca not defined */ -#endif /* YYSTACK_USE_ALLOCA not defined */ - -#ifdef YYSTACK_USE_ALLOCA -#define YYSTACK_ALLOC alloca -#else -#define YYSTACK_ALLOC malloc -#endif - -/* Note: there must be only one dollar sign in this file. - It is replaced by the list of actions, each action - as one case of the switch. */ - -#define yyerrok (yyerrstatus = 0) -#define yyclearin (yychar = YYEMPTY) -#define YYEMPTY -2 -#define YYEOF 0 -#define YYACCEPT goto yyacceptlab -#define YYABORT goto yyabortlab -#define YYERROR goto yyerrlab1 -/* Like YYERROR except do call yyerror. - This remains here temporarily to ease the - transition to the new meaning of YYERROR, for GCC. - Once GCC version 2 has supplanted version 1, this can go. */ -#define YYFAIL goto yyerrlab -#define YYRECOVERING() (!!yyerrstatus) -#define YYBACKUP(token, value) \ -do \ - if (yychar == YYEMPTY && yylen == 1) \ - { yychar = (token), yylval = (value); \ - yychar1 = YYTRANSLATE (yychar); \ - YYPOPSTACK; \ - goto yybackup; \ - } \ - else \ - { yyerror ("syntax error: cannot back up"); YYERROR; } \ -while (0) - -#define YYTERROR 1 -#define YYERRCODE 256 - -#ifndef YYPURE -#define YYLEX yylex() -#endif - -#ifdef YYPURE -#ifdef YYLSP_NEEDED -#ifdef YYLEX_PARAM -#define YYLEX yylex(&yylval, &yylloc, YYLEX_PARAM) -#else -#define YYLEX yylex(&yylval, &yylloc) -#endif -#else /* not YYLSP_NEEDED */ -#ifdef YYLEX_PARAM -#define YYLEX yylex(&yylval, YYLEX_PARAM) -#else -#define YYLEX yylex(&yylval) -#endif -#endif /* not YYLSP_NEEDED */ -#endif - -/* If nonreentrant, generate the variables here */ - -#ifndef YYPURE - -int yychar; /* the lookahead symbol */ -YYSTYPE yylval; /* the semantic value of the */ - /* lookahead symbol */ - -#ifdef YYLSP_NEEDED -YYLTYPE yylloc; /* location data for the lookahead */ - /* symbol */ -#endif - -int yynerrs; /* number of parse errors so far */ -#endif /* not YYPURE */ - -#if YYDEBUG != 0 -int yydebug; /* nonzero means print parse trace */ -/* Since this is uninitialized, it does not stop multiple parsers - from coexisting. */ -#endif - -/* YYINITDEPTH indicates the initial size of the parser's stacks */ - -#ifndef YYINITDEPTH -#define YYINITDEPTH 200 -#endif - -/* YYMAXDEPTH is the maximum size the stacks can grow to - (effective only if the built-in stack extension method is used). */ - -#if YYMAXDEPTH == 0 -#undef YYMAXDEPTH -#endif - -#ifndef YYMAXDEPTH -#define YYMAXDEPTH 10000 -#endif - -/* Define __yy_memcpy. Note that the size argument - should be passed with type unsigned int, because that is what the non-GCC - definitions require. With GCC, __builtin_memcpy takes an arg - of type size_t, but it can handle unsigned int. */ - -#if __GNUC__ > 1 /* GNU C and GNU C++ define this. */ -#define __yy_memcpy(TO,FROM,COUNT) __builtin_memcpy(TO,FROM,COUNT) -#else /* not GNU C or C++ */ -#ifndef __cplusplus - -/* This is the most reliable way to avoid incompatibilities - in available built-in functions on various systems. */ -static void -__yy_memcpy (to, from, count) - char *to; - char *from; - unsigned int count; -{ - register char *f = from; - register char *t = to; - register int i = count; - - while (i-- > 0) - *t++ = *f++; -} - -#else /* __cplusplus */ - -/* This is the most reliable way to avoid incompatibilities - in available built-in functions on various systems. */ -static void -__yy_memcpy (char *to, char *from, unsigned int count) -{ - register char *t = to; - register char *f = from; - register int i = count; - - while (i-- > 0) - *t++ = *f++; -} - -#endif -#endif - -#line 217 "/usr/lib/bison.simple" - -/* The user can define YYPARSE_PARAM as the name of an argument to be passed - into yyparse. The argument should have type void *. - It should actually point to an object. - Grammar actions can access the variable by casting it - to the proper pointer type. */ - -#ifdef YYPARSE_PARAM -#ifdef __cplusplus -#define YYPARSE_PARAM_ARG void *YYPARSE_PARAM -#define YYPARSE_PARAM_DECL -#else /* not __cplusplus */ -#define YYPARSE_PARAM_ARG YYPARSE_PARAM -#define YYPARSE_PARAM_DECL void *YYPARSE_PARAM; -#endif /* not __cplusplus */ -#else /* not YYPARSE_PARAM */ -#define YYPARSE_PARAM_ARG -#define YYPARSE_PARAM_DECL -#endif /* not YYPARSE_PARAM */ - -/* Prevent warning if -Wstrict-prototypes. */ -#ifdef __GNUC__ -#ifdef YYPARSE_PARAM -int yyparse (void *); -#else -int yyparse (void); -#endif -#endif - -int -yyparse(YYPARSE_PARAM_ARG) - YYPARSE_PARAM_DECL -{ - register int yystate; - register int yyn; - register short *yyssp; - register YYSTYPE *yyvsp; - int yyerrstatus; /* number of tokens to shift before error messages enabled */ - int yychar1 = 0; /* lookahead token as an internal (translated) token number */ - - short yyssa[YYINITDEPTH]; /* the state stack */ - YYSTYPE yyvsa[YYINITDEPTH]; /* the semantic value stack */ - - short *yyss = yyssa; /* refer to the stacks thru separate pointers */ - YYSTYPE *yyvs = yyvsa; /* to allow yyoverflow to reallocate them elsewhere */ - -#ifdef YYLSP_NEEDED - YYLTYPE yylsa[YYINITDEPTH]; /* the location stack */ - YYLTYPE *yyls = yylsa; - YYLTYPE *yylsp; - -#define YYPOPSTACK (yyvsp--, yyssp--, yylsp--) -#else -#define YYPOPSTACK (yyvsp--, yyssp--) -#endif - - int yystacksize = YYINITDEPTH; - int yyfree_stacks = 0; - -#ifdef YYPURE - int yychar; - YYSTYPE yylval; - int yynerrs; -#ifdef YYLSP_NEEDED - YYLTYPE yylloc; -#endif -#endif - - YYSTYPE yyval; /* the variable used to return */ - /* semantic values from the action */ - /* routines */ - - int yylen; - -#if YYDEBUG != 0 - if (yydebug) - fprintf(stderr, "Starting parse\n"); -#endif - - yystate = 0; - yyerrstatus = 0; - yynerrs = 0; - yychar = YYEMPTY; /* Cause a token to be read. */ - - /* Initialize stack pointers. - Waste one element of value and location stack - so that they stay on the same level as the state stack. - The wasted elements are never initialized. */ - - yyssp = yyss - 1; - yyvsp = yyvs; -#ifdef YYLSP_NEEDED - yylsp = yyls; -#endif - -/* Push a new state, which is found in yystate . */ -/* In all cases, when you get here, the value and location stacks - have just been pushed. so pushing a state here evens the stacks. */ -yynewstate: - - *++yyssp = yystate; - - if (yyssp >= yyss + yystacksize - 1) - { - /* Give user a chance to reallocate the stack */ - /* Use copies of these so that the &'s don't force the real ones into memory. */ - YYSTYPE *yyvs1 = yyvs; - short *yyss1 = yyss; -#ifdef YYLSP_NEEDED - YYLTYPE *yyls1 = yyls; -#endif - - /* Get the current used size of the three stacks, in elements. */ - int size = yyssp - yyss + 1; - -#ifdef yyoverflow - /* Each stack pointer address is followed by the size of - the data in use in that stack, in bytes. */ -#ifdef YYLSP_NEEDED - /* This used to be a conditional around just the two extra args, - but that might be undefined if yyoverflow is a macro. */ - yyoverflow("parser stack overflow", - &yyss1, size * sizeof (*yyssp), - &yyvs1, size * sizeof (*yyvsp), - &yyls1, size * sizeof (*yylsp), - &yystacksize); -#else - yyoverflow("parser stack overflow", - &yyss1, size * sizeof (*yyssp), - &yyvs1, size * sizeof (*yyvsp), - &yystacksize); -#endif - - yyss = yyss1; yyvs = yyvs1; -#ifdef YYLSP_NEEDED - yyls = yyls1; -#endif -#else /* no yyoverflow */ - /* Extend the stack our own way. */ - if (yystacksize >= YYMAXDEPTH) - { - yyerror("parser stack overflow"); - if (yyfree_stacks) - { - free (yyss); - free (yyvs); -#ifdef YYLSP_NEEDED - free (yyls); -#endif - } - return 2; - } - yystacksize *= 2; - if (yystacksize > YYMAXDEPTH) - yystacksize = YYMAXDEPTH; -#ifndef YYSTACK_USE_ALLOCA - yyfree_stacks = 1; -#endif - yyss = (short *) YYSTACK_ALLOC (yystacksize * sizeof (*yyssp)); - __yy_memcpy ((char *)yyss, (char *)yyss1, - size * (unsigned int) sizeof (*yyssp)); - yyvs = (YYSTYPE *) YYSTACK_ALLOC (yystacksize * sizeof (*yyvsp)); - __yy_memcpy ((char *)yyvs, (char *)yyvs1, - size * (unsigned int) sizeof (*yyvsp)); -#ifdef YYLSP_NEEDED - yyls = (YYLTYPE *) YYSTACK_ALLOC (yystacksize * sizeof (*yylsp)); - __yy_memcpy ((char *)yyls, (char *)yyls1, - size * (unsigned int) sizeof (*yylsp)); -#endif -#endif /* no yyoverflow */ - - yyssp = yyss + size - 1; - yyvsp = yyvs + size - 1; -#ifdef YYLSP_NEEDED - yylsp = yyls + size - 1; -#endif - -#if YYDEBUG != 0 - if (yydebug) - fprintf(stderr, "Stack size increased to %d\n", yystacksize); -#endif - - if (yyssp >= yyss + yystacksize - 1) - YYABORT; - } - -#if YYDEBUG != 0 - if (yydebug) - fprintf(stderr, "Entering state %d\n", yystate); -#endif - - goto yybackup; - yybackup: - -/* Do appropriate processing given the current state. */ -/* Read a lookahead token if we need one and don't already have one. */ -/* yyresume: */ - - /* First try to decide what to do without reference to lookahead token. */ - - yyn = yypact[yystate]; - if (yyn == YYFLAG) - goto yydefault; - - /* Not known => get a lookahead token if don't already have one. */ - - /* yychar is either YYEMPTY or YYEOF - or a valid token in external form. */ - - if (yychar == YYEMPTY) - { -#if YYDEBUG != 0 - if (yydebug) - fprintf(stderr, "Reading a token: "); -#endif - yychar = YYLEX; - } - - /* Convert token to internal form (in yychar1) for indexing tables with */ - - if (yychar <= 0) /* This means end of input. */ - { - yychar1 = 0; - yychar = YYEOF; /* Don't call YYLEX any more */ - -#if YYDEBUG != 0 - if (yydebug) - fprintf(stderr, "Now at end of input.\n"); -#endif - } - else - { - yychar1 = YYTRANSLATE(yychar); - -#if YYDEBUG != 0 - if (yydebug) - { - fprintf (stderr, "Next token is %d (%s", yychar, yytname[yychar1]); - /* Give the individual parser a way to print the precise meaning - of a token, for further debugging info. */ -#ifdef YYPRINT - YYPRINT (stderr, yychar, yylval); -#endif - fprintf (stderr, ")\n"); - } -#endif - } - - yyn += yychar1; - if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != yychar1) - goto yydefault; - - yyn = yytable[yyn]; - - /* yyn is what to do for this token type in this state. - Negative => reduce, -yyn is rule number. - Positive => shift, yyn is new state. - New state is final state => don't bother to shift, - just return success. - 0, or most negative number => error. */ - - if (yyn < 0) - { - if (yyn == YYFLAG) - goto yyerrlab; - yyn = -yyn; - goto yyreduce; - } - else if (yyn == 0) - goto yyerrlab; - - if (yyn == YYFINAL) - YYACCEPT; - - /* Shift the lookahead token. */ - -#if YYDEBUG != 0 - if (yydebug) - fprintf(stderr, "Shifting token %d (%s), ", yychar, yytname[yychar1]); -#endif - - /* Discard the token being shifted unless it is eof. */ - if (yychar != YYEOF) - yychar = YYEMPTY; - - *++yyvsp = yylval; -#ifdef YYLSP_NEEDED - *++yylsp = yylloc; -#endif - - /* count tokens shifted since error; after three, turn off error status. */ - if (yyerrstatus) yyerrstatus--; - - yystate = yyn; - goto yynewstate; - -/* Do the default action for the current state. */ -yydefault: - - yyn = yydefact[yystate]; - if (yyn == 0) - goto yyerrlab; - -/* Do a reduction. yyn is the number of a rule to reduce with. */ -yyreduce: - yylen = yyr2[yyn]; - if (yylen > 0) - yyval = yyvsp[1-yylen]; /* implement default value of the action */ - -#if YYDEBUG != 0 - if (yydebug) - { - int i; - - fprintf (stderr, "Reducing via rule %d (line %d), ", - yyn, yyrline[yyn]); - - /* Print the symbols being reduced, and their result. */ - for (i = yyprhs[yyn]; yyrhs[i] > 0; i++) - fprintf (stderr, "%s ", yytname[yyrhs[i]]); - fprintf (stderr, " -> %s\n", yytname[yyr1[yyn]]); - } -#endif - - - switch (yyn) { - -case 1: -#line 139 "signature.y" -{ lslOpList_free (yyvsp[0].operators); ; - break;} -case 2: -#line 142 "signature.y" -{ lslOpList x = lslOpList_new (); - g_importedlslOp = yyvsp[0].operator; - lslOpList_add (x, yyvsp[0].operator); - yyval.operators = x; ; - break;} -case 3: -#line 147 "signature.y" -{ lslOpList_add (yyvsp[-1].operators, yyvsp[0].operator); - yyval.operators = yyvsp[-1].operators; ; - break;} -case 4: -#line 151 "signature.y" -{ yyval.operator = makelslOpNode (yyvsp[-2].name, yyvsp[0].signature); ; - break;} -case 5: -#line 157 "signature.y" -{ yyval.name = makeNameNodeId (yyvsp[0].ltok); ; - break;} -case 6: -#line 159 "signature.y" -{ yyval.name = makeNameNodeForm (yyvsp[0].opform); ; - break;} -case 7: -#line 163 "signature.y" -{ yyval.opform = makeOpFormNode (yyvsp[-5].ltok, OPF_IF, opFormUnion_createMiddle (0), ltoken_undefined); ; - break;} -case 8: -#line 165 "signature.y" -{ yyval.opform = makeOpFormNode (yyvsp[0].ltok, OPF_ANYOP, opFormUnion_createAnyOp (yyvsp[0].ltok), ltoken_undefined); ; - break;} -case 9: -#line 167 "signature.y" -{ yyval.opform = makeOpFormNode (yyvsp[-1].ltok, OPF_MANYOP, opFormUnion_createAnyOp (yyvsp[0].ltok), ltoken_undefined); ; - break;} -case 10: -#line 169 "signature.y" -{ yyval.opform = makeOpFormNode (yyvsp[-1].ltok, OPF_ANYOPM, opFormUnion_createAnyOp (yyvsp[-1].ltok), ltoken_undefined); ; - break;} -case 11: -#line 171 "signature.y" -{ yyval.opform = makeOpFormNode (yyvsp[-2].ltok, OPF_MANYOPM, opFormUnion_createAnyOp (yyvsp[-1].ltok), ltoken_undefined); ; - break;} -case 12: -#line 173 "signature.y" -{ yyval.opform = makeOpFormNode (yyvsp[-2].ltok, OPF_MIDDLE, opFormUnion_createMiddle (yyvsp[-1].count), yyvsp[0].ltok); ; - break;} -case 13: -#line 175 "signature.y" -{ yyval.opform = makeOpFormNode (yyvsp[-2].ltok, OPF_MMIDDLE, opFormUnion_createMiddle (yyvsp[-1].count), yyvsp[0].ltok); ; - break;} -case 14: -#line 177 "signature.y" -{ yyval.opform = makeOpFormNode (yyvsp[-3].ltok, OPF_MIDDLEM, opFormUnion_createMiddle (yyvsp[-2].count), yyvsp[-1].ltok); ; - break;} -case 15: -#line 179 "signature.y" -{ yyval.opform = makeOpFormNode (yyvsp[-3].ltok, OPF_MMIDDLEM, - opFormUnion_createMiddle (yyvsp[-2].count), yyvsp[-1].ltok); ; - break;} -case 16: -#line 182 "signature.y" -{ yyval.opform = makeOpFormNode (yyvsp[-2].ltok, OPF_BMIDDLE, - opFormUnion_createMiddle (yyvsp[-1].count), yyvsp[0].ltok); ; - break;} -case 17: -#line 185 "signature.y" -{ yyval.opform = makeOpFormNode (yyvsp[-2].ltok, OPF_BMMIDDLE, - opFormUnion_createMiddle (yyvsp[-1].count), yyvsp[0].ltok); ; - break;} -case 18: -#line 188 "signature.y" -{ yyval.opform = makeOpFormNode (yyvsp[-3].ltok, OPF_BMIDDLEM, - opFormUnion_createMiddle (yyvsp[-2].count), yyvsp[-1].ltok); ; - break;} -case 19: -#line 191 "signature.y" -{ yyval.opform = makeOpFormNode (yyvsp[-3].ltok, OPF_BMMIDDLEM, - opFormUnion_createMiddle (yyvsp[-2].count), yyvsp[-1].ltok); ; - break;} -case 20: -#line 194 "signature.y" -{ yyval.opform = makeOpFormNode (yyvsp[-1].ltok, OPF_SELECT, - opFormUnion_createAnyOp (yyvsp[0].ltok), ltoken_undefined); ; - break;} -case 21: -#line 197 "signature.y" -{ yyval.opform = makeOpFormNode (yyvsp[-2].ltok, OPF_MSELECT, - opFormUnion_createAnyOp (yyvsp[0].ltok), ltoken_undefined); ; - break;} -case 22: -#line 202 "signature.y" -{ yyval.opform = makeOpFormNode (yyvsp[-2].ltok, OPF_MMAP, - opFormUnion_createAnyOp (yyvsp[0].ltok), ltoken_undefined); ; - break;} -case 23: -#line 207 "signature.y" -{ yyval.ltok = yyvsp[0].ltok; ; - break;} -case 24: -#line 209 "signature.y" -{ yyval.ltok = yyvsp[0].ltok; ; - break;} -case 25: -#line 211 "signature.y" -{ yyval.ltok = yyvsp[0].ltok; ; - break;} -case 26: -#line 214 "signature.y" -{ yyval.count = 0; ; - break;} -case 27: -#line 216 "signature.y" -{ yyval.count = yyvsp[0].count; ; - break;} -case 28: -#line 219 "signature.y" -{ yyval.count = 1; ; - break;} -case 29: -#line 221 "signature.y" -{ yyval.count = yyvsp[-2].count + 1; ; - break;} -case 30: -#line 224 "signature.y" -{ yyval.ltok = yyvsp[0].ltok; ; - break;} -case 31: -#line 226 "signature.y" -{ yyval.ltok = yyvsp[0].ltok; ; - break;} -case 32: -#line 229 "signature.y" -{ yyval.signature = makesigNode (yyvsp[-1].ltok, yyvsp[-2].ltokenList, yyvsp[0].ltok); ; - break;} -case 33: -#line 232 "signature.y" -{ yyval.ltokenList = ltokenList_new (); ; - break;} -case 34: -#line 234 "signature.y" -{ yyval.ltokenList = yyvsp[0].ltokenList; ; - break;} -case 35: -#line 237 "signature.y" -{ yyval.ltokenList = ltokenList_singleton (yyvsp[0].ltok); ; - break;} -case 36: -#line 239 "signature.y" -{ yyval.ltokenList = ltokenList_push (yyvsp[-2].ltokenList, yyvsp[0].ltok); ; - break;} -case 37: -#line 242 "signature.y" -{ - yyval.ltok = yyvsp[0].ltok; - ltoken_setText (yyval.ltok, processTraitSortId (ltoken_getText (yyvsp[0].ltok))); - ; - break;} -case 38: -#line 248 "signature.y" -{ yyval.ltok = yyvsp[0].ltok; ; - break;} -} - /* the action file gets copied in in place of this dollarsign */ -#line 543 "/usr/lib/bison.simple" - - yyvsp -= yylen; - yyssp -= yylen; -#ifdef YYLSP_NEEDED - yylsp -= yylen; -#endif - -#if YYDEBUG != 0 - if (yydebug) - { - short *ssp1 = yyss - 1; - fprintf (stderr, "state stack now"); - while (ssp1 != yyssp) - fprintf (stderr, " %d", *++ssp1); - fprintf (stderr, "\n"); - } -#endif - - *++yyvsp = yyval; - -#ifdef YYLSP_NEEDED - yylsp++; - if (yylen == 0) - { - yylsp->first_line = yylloc.first_line; - yylsp->first_column = yylloc.first_column; - yylsp->last_line = (yylsp-1)->last_line; - yylsp->last_column = (yylsp-1)->last_column; - yylsp->text = 0; - } - else - { - yylsp->last_line = (yylsp+yylen-1)->last_line; - yylsp->last_column = (yylsp+yylen-1)->last_column; - } -#endif - - /* Now "shift" the result of the reduction. - Determine what state that goes to, - based on the state we popped back to - and the rule number reduced by. */ - - yyn = yyr1[yyn]; - - yystate = yypgoto[yyn - YYNTBASE] + *yyssp; - if (yystate >= 0 && yystate <= YYLAST && yycheck[yystate] == *yyssp) - yystate = yytable[yystate]; - else - yystate = yydefgoto[yyn - YYNTBASE]; - - goto yynewstate; - -yyerrlab: /* here on detecting error */ - - if (! yyerrstatus) - /* If not already recovering from an error, report this error. */ - { - ++yynerrs; - -#ifdef YYERROR_VERBOSE - yyn = yypact[yystate]; - - if (yyn > YYFLAG && yyn < YYLAST) - { - int size = 0; - char *msg; - int x, count; - - count = 0; - /* Start X at -yyn if nec to avoid negative indexes in yycheck. */ - for (x = (yyn < 0 ? -yyn : 0); - x < (sizeof(yytname) / sizeof(char *)); x++) - if (yycheck[x + yyn] == x) - size += strlen(yytname[x]) + 15, count++; - msg = (char *) malloc(size + 15); - if (msg != 0) - { - strcpy(msg, "parse error"); - - if (count < 5) - { - count = 0; - for (x = (yyn < 0 ? -yyn : 0); - x < (sizeof(yytname) / sizeof(char *)); x++) - if (yycheck[x + yyn] == x) - { - strcat(msg, count == 0 ? ", expecting `" : " or `"); - strcat(msg, yytname[x]); - strcat(msg, "'"); - count++; - } - } - yyerror(msg); - free(msg); - } - else - yyerror ("parse error; also virtual memory exceeded"); - } - else -#endif /* YYERROR_VERBOSE */ - yyerror("parse error"); - } - - goto yyerrlab1; -yyerrlab1: /* here on error raised explicitly by an action */ - - if (yyerrstatus == 3) - { - /* if just tried and failed to reuse lookahead token after an error, discard it. */ - - /* return failure if at end of input */ - if (yychar == YYEOF) - YYABORT; - -#if YYDEBUG != 0 - if (yydebug) - fprintf(stderr, "Discarding token %d (%s).\n", yychar, yytname[yychar1]); -#endif - - yychar = YYEMPTY; - } - - /* Else will try to reuse lookahead token - after shifting the error token. */ - - yyerrstatus = 3; /* Each real token shifted decrements this */ - - goto yyerrhandle; - -yyerrdefault: /* current state does not do anything special for the error token. */ - -#if 0 - /* This is wrong; only states that explicitly want error tokens - should shift them. */ - yyn = yydefact[yystate]; /* If its default is to accept any token, ok. Otherwise pop it.*/ - if (yyn) goto yydefault; -#endif - -yyerrpop: /* pop the current state because it cannot handle the error token */ - - if (yyssp == yyss) YYABORT; - yyvsp--; - yystate = *--yyssp; -#ifdef YYLSP_NEEDED - yylsp--; -#endif - -#if YYDEBUG != 0 - if (yydebug) - { - short *ssp1 = yyss - 1; - fprintf (stderr, "Error: state stack now"); - while (ssp1 != yyssp) - fprintf (stderr, " %d", *++ssp1); - fprintf (stderr, "\n"); - } -#endif - -yyerrhandle: - - yyn = yypact[yystate]; - if (yyn == YYFLAG) - goto yyerrdefault; - - yyn += YYTERROR; - if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != YYTERROR) - goto yyerrdefault; - - yyn = yytable[yyn]; - if (yyn < 0) - { - if (yyn == YYFLAG) - goto yyerrpop; - yyn = -yyn; - goto yyreduce; - } - else if (yyn == 0) - goto yyerrpop; - - if (yyn == YYFINAL) - YYACCEPT; - -#if YYDEBUG != 0 - if (yydebug) - fprintf(stderr, "Shifting error token, "); -#endif - - *++yyvsp = yylval; -#ifdef YYLSP_NEEDED - *++yylsp = yylloc; -#endif - - yystate = yyn; - goto yynewstate; - - yyacceptlab: - /* YYACCEPT comes here. */ - if (yyfree_stacks) - { - free (yyss); - free (yyvs); -#ifdef YYLSP_NEEDED - free (yyls); -#endif - } - return 0; - - yyabortlab: - /* YYABORT comes here. */ - if (yyfree_stacks) - { - free (yyss); - free (yyvs); -#ifdef YYLSP_NEEDED - free (yyls); -#endif - } - return 1; -} -#line 249 "signature.y" - - -# include "bison.reset" - -extern char *yytext; - -void lslerror (char *s) -{ - llfatalbug - (cstring_makeLiteral - ("There has been a problem parsing an LSL signature. This is believed to " - "result from a problem with gcc version 2.95 optimizations, " - "but it has not been confirmed. Please try rebuidling LCLint " - "without the -O option.")); - -} - -static void yyprint (FILE *file, int type, YYSTYPE value) -{ - fprintf (file, " (%u:%u type: %d; text: %s) ", - ltoken_getLine (value.ltok), - ltoken_getCol (value.ltok), - type, - ltoken_getRawTextChars (value.ltok)); -} - -extern void PrintToken (ltoken tok) { - char *codStr; - - switch (ltoken_getCode (tok)) - { - case NOTTOKEN: codStr = "*** NOTTOKEN ***"; break; - case LST_QUANTIFIERSYM: codStr = "QUANTIFIERSYM"; break; - case LST_LOGICALOP: codStr = "LOGICALOP: "; break; - case LST_SELECTSYM: codStr = "LST_SELECTSYM"; break; - case LST_OPENSYM: codStr = "LST_OPENSYM"; break; - case LST_SEPSYM: codStr = "SEPSYM"; break; - case LST_CLOSESYM: codStr = "LST_CLOSESYM"; break; - case LST_SIMPLEID: codStr = "LST_SIMPLEID"; break; - case LST_MAPSYM: codStr = "MAPSYM"; break; - case LST_MARKERSYM: codStr = "LST_MARKERSYM"; break; - case LST_COMMENTSYM: codStr = "COMMENTSYM"; break; - case LST_SIMPLEOP: codStr = "SIMPLEOP"; break; - case LST_COLON: codStr = "LST_COLON"; break; - case LST_COMMA: codStr = "COMMA"; break; - case LST_LBRACKET: codStr = "LST_LBRACKET"; break; - case LST_LPAR: codStr = "LST_LPAR"; break; - case LST_RBRACKET: codStr = "LST_RBRACKET"; break; - case LST_RPAR: codStr = "LST_RPAR"; break; - case LST_EQOP: codStr = "LST_EQOP"; break; - case LST_WHITESPACE: codStr = "WHITESPACE,"; break; - case LST_EOL: codStr = "LST_EOL"; break; - case LST_elseTOKEN: codStr = "elseTOKEN"; break; - case LST_ifTOKEN: codStr = "ifTOKEN"; break; - case LST_thenTOKEN: codStr = "thenTOKEN"; break; - case LST_BADTOKEN: codStr = "*** BADTOKEN ***"; break; - case LEOFTOKEN: /* can't reach LEOFTOKEN easily */ - codStr = "LEOFTOKEN"; break; - default: - codStr = "*** invalid token code ***"; - break; - } /* end switch */ - - /* only used for debugging */ - printf ("%u:%u: Token Code (%u): %s", - ltoken_getLine (tok), ltoken_getCol (tok), - ltoken_getCode (tok), codStr); - if (ltoken_getRawText (tok) != 0) - { - printf (", Token String (%lu): %s\n", - ltoken_getRawText (tok), ltoken_getRawTextChars (tok)); - } - else printf ("\n"); -} - - - - diff --git a/src/signature.tab.h b/src/signature.tab.h deleted file mode 100644 index e70fb35..0000000 --- a/src/signature.tab.h +++ /dev/null @@ -1,56 +0,0 @@ -typedef union { - ltoken ltok; /* a leaf is also an ltoken */ - unsigned int count; - /*@only@*/ ltokenList ltokenList; - /*@only@*/ opFormNode opform; - /*@owned@*/ sigNode signature; - /*@only@*/ nameNode name; - /*@owned@*/ lslOp operator; - /*@only@*/ lslOpList operators; -} YYSTYPE; -#define LST_SIMPLEID 257 -#define LST_LOGICALOP 258 -#define LST_EQOP 259 -#define LST_SIMPLEOP 260 -#define LST_MAPSYM 261 -#define LST_FIELDMAPSYM 262 -#define LST_MARKERSYM 263 -#define LST_ifTOKEN 264 -#define LST_thenTOKEN 265 -#define LST_elseTOKEN 266 -#define LST_LBRACKET 267 -#define LST_RBRACKET 268 -#define LST_SELECTSYM 269 -#define LST_SEPSYM 270 -#define LST_OPENSYM 271 -#define LST_CLOSESYM 272 -#define LST_COLON 273 -#define LST_COMMA 274 -#define LST_EOL 275 -#define LST_COMMENTSYM 276 -#define LST_WHITESPACE 277 -#define LST_QUANTIFIERSYM 278 -#define LST_EQUATIONSYM 279 -#define LST_EQSEPSYM 280 -#define LST_COMPOSESYM 281 -#define LST_LPAR 282 -#define LST_RPAR 283 -#define LST_assertsTOKEN 284 -#define LST_assumesTOKEN 285 -#define LST_byTOKEN 286 -#define LST_convertsTOKEN 287 -#define LST_enumerationTOKEN 288 -#define LST_equationsTOKEN 289 -#define LST_exemptingTOKEN 290 -#define LST_forTOKEN 291 -#define LST_generatedTOKEN 292 -#define LST_impliesTOKEN 293 -#define LST_includesTOKEN 294 -#define LST_introducesTOKEN 295 -#define LST_ofTOKEN 296 -#define LST_partitionedTOKEN 297 -#define LST_traitTOKEN 298 -#define LST_tupleTOKEN 299 -#define LST_unionTOKEN 300 -#define LST_BADTOKEN 301 - -- 2.45.2