1 |
|
/** \file |
2 |
|
* This C source file was generated by $ANTLR version 3.4 |
3 |
|
* |
4 |
|
* - From the grammar source file : /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g |
5 |
|
* - On : 2021-09-08 01:05:25 |
6 |
|
* - for the parser : Smt2ParserParser |
7 |
|
* |
8 |
|
* Editing it, at least manually, is not wise. |
9 |
|
* |
10 |
|
* C language generator and runtime by Jim Idle, jimi|hereisanat|idle|dotgoeshere|ws. |
11 |
|
* |
12 |
|
* |
13 |
|
*/ |
14 |
|
// [The "BSD license"] |
15 |
|
// Copyright (c) 2005-2009 Jim Idle, Temporal Wave LLC |
16 |
|
// http://www.temporal-wave.com |
17 |
|
// http://www.linkedin.com/in/jimidle |
18 |
|
// |
19 |
|
// All rights reserved. |
20 |
|
// |
21 |
|
// Redistribution and use in source and binary forms, with or without |
22 |
|
// modification, are permitted provided that the following conditions |
23 |
|
// are met: |
24 |
|
// 1. Redistributions of source code must retain the above copyright |
25 |
|
// notice, this list of conditions and the following disclaimer. |
26 |
|
// 2. Redistributions in binary form must reproduce the above copyright |
27 |
|
// notice, this list of conditions and the following disclaimer in the |
28 |
|
// documentation and/or other materials provided with the distribution. |
29 |
|
// 3. The name of the author may not be used to endorse or promote products |
30 |
|
// derived from this software without specific prior written permission. |
31 |
|
// |
32 |
|
// THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR |
33 |
|
// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES |
34 |
|
// OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. |
35 |
|
// IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, |
36 |
|
// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT |
37 |
|
// NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
38 |
|
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
39 |
|
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
40 |
|
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
41 |
|
// THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
42 |
|
|
43 |
|
|
44 |
|
/* ============================================================================= |
45 |
|
* This is what the grammar programmer asked us to put at the top of every file. |
46 |
|
*/ |
47 |
|
|
48 |
|
/* **************************************************************************** |
49 |
|
* This file is part of the cvc5 project. |
50 |
|
* |
51 |
|
* Copyright (c) 2009-2021 by the authors listed in the file AUTHORS |
52 |
|
* in the top-level source directory and their institutional affiliations. |
53 |
|
* All rights reserved. See the file COPYING in the top-level source |
54 |
|
* directory for licensing information. |
55 |
|
* **************************************************************************** |
56 |
|
*/ |
57 |
|
|
58 |
|
/* End of Header action. |
59 |
|
* ============================================================================= |
60 |
|
*/ |
61 |
|
|
62 |
|
/* ----------------------------------------- |
63 |
|
* Include the ANTLR3 generated header file. |
64 |
|
*/ |
65 |
|
#include "Smt2Parser.h" |
66 |
|
|
67 |
|
|
68 |
|
#include <set> |
69 |
|
#include <sstream> |
70 |
|
#include <string> |
71 |
|
#include <unordered_set> |
72 |
|
#include <vector> |
73 |
|
|
74 |
|
#include "api/cpp/cvc5.h" |
75 |
|
#include "base/output.h" |
76 |
|
#include "options/set_language.h" |
77 |
|
#include "parser/antlr_input.h" |
78 |
|
#include "parser/parser.h" |
79 |
|
#include "parser/smt2/smt2.h" |
80 |
|
#include "util/floatingpoint_size.h" |
81 |
|
#include "util/hash.h" |
82 |
|
|
83 |
|
using namespace cvc5; |
84 |
|
using namespace cvc5::parser; |
85 |
|
|
86 |
|
/* These need to be macros so they can refer to the PARSER macro, which |
87 |
|
* will be defined by ANTLR *after* this section. (If they were functions, |
88 |
|
* PARSER would be undefined.) */ |
89 |
|
#undef PARSER_STATE |
90 |
|
#define PARSER_STATE ((Smt2*)PARSER->super) |
91 |
|
#undef SOLVER |
92 |
|
#define SOLVER PARSER_STATE->getSolver() |
93 |
|
#undef SYM_MAN |
94 |
|
#define SYM_MAN PARSER_STATE->getSymbolManager() |
95 |
|
#undef MK_TERM |
96 |
|
#define MK_TERM SOLVER->mkTerm |
97 |
|
#define UNSUPPORTED PARSER_STATE->unimplementedFeature |
98 |
|
|
99 |
|
|
100 |
|
/* ----------------------------------------- */ |
101 |
|
|
102 |
|
|
103 |
|
|
104 |
|
|
105 |
|
|
106 |
|
/* MACROS that hide the C interface implementations from the |
107 |
|
* generated code, which makes it a little more understandable to the human eye. |
108 |
|
* I am very much against using C pre-processor macros for function calls and bits |
109 |
|
* of code as you cannot see what is happening when single stepping in debuggers |
110 |
|
* and so on. The exception (in my book at least) is for generated code, where you are |
111 |
|
* not maintaining it, but may wish to read and understand it. If you single step it, you know that input() |
112 |
|
* hides some indirect calls, but is always referring to the input stream. This is |
113 |
|
* probably more readable than ctx->input->istream->input(snarfle0->blarg) and allows me to rejig |
114 |
|
* the runtime interfaces without changing the generated code too often, without |
115 |
|
* confusing the reader of the generated output, who may not wish to know the gory |
116 |
|
* details of the interface inheritance. |
117 |
|
*/ |
118 |
|
|
119 |
|
#define CTX ctx |
120 |
|
|
121 |
|
/* Aids in accessing scopes for grammar programmers |
122 |
|
*/ |
123 |
|
#undef SCOPE_TYPE |
124 |
|
#undef SCOPE_STACK |
125 |
|
#undef SCOPE_TOP |
126 |
|
#define SCOPE_TYPE(scope) pSmt2Parser_##scope##_SCOPE |
127 |
|
#define SCOPE_STACK(scope) pSmt2Parser_##scope##Stack |
128 |
|
#define SCOPE_TOP(scope) ctx->pSmt2Parser_##scope##Top |
129 |
|
#define SCOPE_SIZE(scope) ctx->pSmt2Parser_##scope##Stack_limit |
130 |
|
#define SCOPE_INSTANCE(scope, i) (ctx->SCOPE_STACK(scope)->get(ctx->SCOPE_STACK(scope),i)) |
131 |
|
|
132 |
|
/* Macros for accessing things in the parser |
133 |
|
*/ |
134 |
|
|
135 |
|
#undef PARSER |
136 |
|
#undef RECOGNIZER |
137 |
|
#undef HAVEPARSEDRULE |
138 |
|
#undef MEMOIZE |
139 |
|
#undef INPUT |
140 |
|
#undef STRSTREAM |
141 |
|
#undef HASEXCEPTION |
142 |
|
#undef EXCEPTION |
143 |
|
#undef MATCHT |
144 |
|
#undef MATCHANYT |
145 |
|
#undef FOLLOWSTACK |
146 |
|
#undef FOLLOWPUSH |
147 |
|
#undef FOLLOWPOP |
148 |
|
#undef PRECOVER |
149 |
|
#undef PREPORTERROR |
150 |
|
#undef LA |
151 |
|
#undef LT |
152 |
|
#undef CONSTRUCTEX |
153 |
|
#undef CONSUME |
154 |
|
#undef MARK |
155 |
|
#undef REWIND |
156 |
|
#undef REWINDLAST |
157 |
|
#undef PERRORRECOVERY |
158 |
|
#undef HASFAILED |
159 |
|
#undef FAILEDFLAG |
160 |
|
#undef RECOVERFROMMISMATCHEDSET |
161 |
|
#undef RECOVERFROMMISMATCHEDELEMENT |
162 |
|
#undef INDEX |
163 |
|
#undef ADAPTOR |
164 |
|
#undef SEEK |
165 |
|
#undef RULEMEMO |
166 |
|
#undef DBG |
167 |
|
|
168 |
|
#define PARSER ctx->pParser |
169 |
|
#define RECOGNIZER PARSER->rec |
170 |
|
#define PSRSTATE RECOGNIZER->state |
171 |
|
#define HAVEPARSEDRULE(r) RECOGNIZER->alreadyParsedRule(RECOGNIZER, r) |
172 |
|
#define MEMOIZE(ri,si) RECOGNIZER->memoize(RECOGNIZER, ri, si) |
173 |
|
#define INPUT PARSER->tstream |
174 |
|
#define STRSTREAM INPUT |
175 |
|
#define ISTREAM INPUT->istream |
176 |
|
#define INDEX() ISTREAM->index(INPUT->istream) |
177 |
|
#define HASEXCEPTION() (PSRSTATE->error == ANTLR3_TRUE) |
178 |
|
#define EXCEPTION PSRSTATE->exception |
179 |
|
#define MATCHT(t, fs) RECOGNIZER->match(RECOGNIZER, t, fs) |
180 |
|
#define MATCHANYT() RECOGNIZER->matchAny(RECOGNIZER) |
181 |
|
#define FOLLOWSTACK PSRSTATE->following |
182 |
|
#ifdef SKIP_FOLLOW_SETS |
183 |
|
#define FOLLOWPUSH(x) |
184 |
|
#define FOLLOWPOP() |
185 |
|
#else |
186 |
|
#define FOLLOWPUSH(x) FOLLOWSTACK->push(FOLLOWSTACK, ((void *)(&(x))), NULL) |
187 |
|
#define FOLLOWPOP() FOLLOWSTACK->pop(FOLLOWSTACK) |
188 |
|
#endif |
189 |
|
#define PRECOVER() RECOGNIZER->recover(RECOGNIZER) |
190 |
|
#define PREPORTERROR() RECOGNIZER->reportError(RECOGNIZER) |
191 |
|
#define LA(n) INPUT->istream->_LA(ISTREAM, n) |
192 |
|
#define LT(n) INPUT->_LT(INPUT, n) |
193 |
|
#define CONSTRUCTEX() RECOGNIZER->exConstruct(RECOGNIZER) |
194 |
|
#define CONSUME() ISTREAM->consume(ISTREAM) |
195 |
|
#define MARK() ISTREAM->mark(ISTREAM) |
196 |
|
#define REWIND(m) ISTREAM->rewind(ISTREAM, m) |
197 |
|
#define REWINDLAST() ISTREAM->rewindLast(ISTREAM) |
198 |
|
#define SEEK(n) ISTREAM->seek(ISTREAM, n) |
199 |
|
#define PERRORRECOVERY PSRSTATE->errorRecovery |
200 |
|
#define FAILEDFLAG PSRSTATE->failed |
201 |
|
#define HASFAILED() (FAILEDFLAG == ANTLR3_TRUE) |
202 |
|
#define BACKTRACKING PSRSTATE->backtracking |
203 |
|
#define RECOVERFROMMISMATCHEDSET(s) RECOGNIZER->recoverFromMismatchedSet(RECOGNIZER, s) |
204 |
|
#define RECOVERFROMMISMATCHEDELEMENT(e) RECOGNIZER->recoverFromMismatchedElement(RECOGNIZER, s) |
205 |
|
#define ADAPTOR ctx->adaptor |
206 |
|
#define RULEMEMO PSRSTATE->ruleMemo |
207 |
|
#define DBG RECOGNIZER->debugger |
208 |
|
|
209 |
|
|
210 |
|
#define TOKTEXT(tok, txt) tok, (pANTLR3_UINT8)txt |
211 |
|
|
212 |
|
/* The 4 tokens defined below may well clash with your own #defines or token types. If so |
213 |
|
* then for the present you must use different names for your defines as these are hard coded |
214 |
|
* in the code generator. It would be better not to use such names internally, and maybe |
215 |
|
* we can change this in a forthcoming release. I deliberately do not #undef these |
216 |
|
* here as this will at least give you a redefined error somewhere if they clash. |
217 |
|
*/ |
218 |
|
#define UP ANTLR3_TOKEN_UP |
219 |
|
#define DOWN ANTLR3_TOKEN_DOWN |
220 |
|
#define EOR ANTLR3_TOKEN_EOR |
221 |
|
#define INVALID ANTLR3_TOKEN_INVALID |
222 |
|
|
223 |
|
|
224 |
|
/* ============================================================================= |
225 |
|
* Functions to create and destroy scopes. First come the rule scopes, followed |
226 |
|
* by the global declared scopes. |
227 |
|
*/ |
228 |
|
|
229 |
|
|
230 |
|
|
231 |
|
/* ============================================================================= */ |
232 |
|
|
233 |
|
/* ============================================================================= |
234 |
|
* Start of recognizer |
235 |
|
*/ |
236 |
|
|
237 |
|
|
238 |
|
/** \brief Table of all token names in symbolic order, mainly used for |
239 |
|
* error reporting. |
240 |
|
*/ |
241 |
|
pANTLR3_UINT8 Smt2ParserTokenNames[105+4] |
242 |
|
= { |
243 |
|
(pANTLR3_UINT8) "<invalid>", /* String to print to indicate an invalid token */ |
244 |
|
(pANTLR3_UINT8) "<EOR>", |
245 |
|
(pANTLR3_UINT8) "<DOWN>", |
246 |
|
(pANTLR3_UINT8) "<UP>", |
247 |
|
(pANTLR3_UINT8) "ALPHA", |
248 |
|
(pANTLR3_UINT8) "ASSERT_TOK", |
249 |
|
(pANTLR3_UINT8) "AS_TOK", |
250 |
|
(pANTLR3_UINT8) "ATTRIBUTE_INST_ADD_TO_POOL_TOK", |
251 |
|
(pANTLR3_UINT8) "ATTRIBUTE_INST_LEVEL", |
252 |
|
(pANTLR3_UINT8) "ATTRIBUTE_NAMED_TOK", |
253 |
|
(pANTLR3_UINT8) "ATTRIBUTE_NO_PATTERN_TOK", |
254 |
|
(pANTLR3_UINT8) "ATTRIBUTE_PATTERN_TOK", |
255 |
|
(pANTLR3_UINT8) "ATTRIBUTE_POOL_TOK", |
256 |
|
(pANTLR3_UINT8) "ATTRIBUTE_QUANTIFIER_ID_TOK", |
257 |
|
(pANTLR3_UINT8) "ATTRIBUTE_SKOLEM_ADD_TO_POOL_TOK", |
258 |
|
(pANTLR3_UINT8) "ATTRIBUTE_TOK", |
259 |
|
(pANTLR3_UINT8) "BINARY_LITERAL", |
260 |
|
(pANTLR3_UINT8) "BLOCK_MODEL_TOK", |
261 |
|
(pANTLR3_UINT8) "BLOCK_MODEL_VALUES_TOK", |
262 |
|
(pANTLR3_UINT8) "CHAR_TOK", |
263 |
|
(pANTLR3_UINT8) "CHECK_SAT_ASSUMING_TOK", |
264 |
|
(pANTLR3_UINT8) "CHECK_SAT_TOK", |
265 |
|
(pANTLR3_UINT8) "CHECK_SYNTH_TOK", |
266 |
|
(pANTLR3_UINT8) "COMMENT", |
267 |
|
(pANTLR3_UINT8) "COMPREHENSION_TOK", |
268 |
|
(pANTLR3_UINT8) "CONSTRAINT_TOK", |
269 |
|
(pANTLR3_UINT8) "CONST_TOK", |
270 |
|
(pANTLR3_UINT8) "DECIMAL_LITERAL", |
271 |
|
(pANTLR3_UINT8) "DECLARE_CODATATYPES_2_5_TOK", |
272 |
|
(pANTLR3_UINT8) "DECLARE_CODATATYPES_TOK", |
273 |
|
(pANTLR3_UINT8) "DECLARE_CODATATYPE_TOK", |
274 |
|
(pANTLR3_UINT8) "DECLARE_CONST_TOK", |
275 |
|
(pANTLR3_UINT8) "DECLARE_DATATYPES_2_5_TOK", |
276 |
|
(pANTLR3_UINT8) "DECLARE_DATATYPES_TOK", |
277 |
|
(pANTLR3_UINT8) "DECLARE_DATATYPE_TOK", |
278 |
|
(pANTLR3_UINT8) "DECLARE_FUNS_TOK", |
279 |
|
(pANTLR3_UINT8) "DECLARE_FUN_TOK", |
280 |
|
(pANTLR3_UINT8) "DECLARE_HEAP", |
281 |
|
(pANTLR3_UINT8) "DECLARE_POOL", |
282 |
|
(pANTLR3_UINT8) "DECLARE_PREDS_TOK", |
283 |
|
(pANTLR3_UINT8) "DECLARE_SORTS_TOK", |
284 |
|
(pANTLR3_UINT8) "DECLARE_SORT_TOK", |
285 |
|
(pANTLR3_UINT8) "DECLARE_VAR_TOK", |
286 |
|
(pANTLR3_UINT8) "DEFINE_CONST_TOK", |
287 |
|
(pANTLR3_UINT8) "DEFINE_FUNS_REC_TOK", |
288 |
|
(pANTLR3_UINT8) "DEFINE_FUN_REC_TOK", |
289 |
|
(pANTLR3_UINT8) "DEFINE_FUN_TOK", |
290 |
|
(pANTLR3_UINT8) "DEFINE_SORT_TOK", |
291 |
|
(pANTLR3_UINT8) "DEFINE_TOK", |
292 |
|
(pANTLR3_UINT8) "DIGIT", |
293 |
|
(pANTLR3_UINT8) "ECHO_TOK", |
294 |
|
(pANTLR3_UINT8) "EMP_TOK", |
295 |
|
(pANTLR3_UINT8) "EXISTS_TOK", |
296 |
|
(pANTLR3_UINT8) "EXIT_TOK", |
297 |
|
(pANTLR3_UINT8) "FORALL_TOK", |
298 |
|
(pANTLR3_UINT8) "GET_ABDUCT_TOK", |
299 |
|
(pANTLR3_UINT8) "GET_ASSERTIONS_TOK", |
300 |
|
(pANTLR3_UINT8) "GET_ASSIGNMENT_TOK", |
301 |
|
(pANTLR3_UINT8) "GET_INFO_TOK", |
302 |
|
(pANTLR3_UINT8) "GET_INTERPOL_TOK", |
303 |
|
(pANTLR3_UINT8) "GET_MODEL_TOK", |
304 |
|
(pANTLR3_UINT8) "GET_OPTION_TOK", |
305 |
|
(pANTLR3_UINT8) "GET_PROOF_TOK", |
306 |
|
(pANTLR3_UINT8) "GET_QE_DISJUNCT_TOK", |
307 |
|
(pANTLR3_UINT8) "GET_QE_TOK", |
308 |
|
(pANTLR3_UINT8) "GET_UNSAT_ASSUMPTIONS_TOK", |
309 |
|
(pANTLR3_UINT8) "GET_UNSAT_CORE_TOK", |
310 |
|
(pANTLR3_UINT8) "GET_VALUE_TOK", |
311 |
|
(pANTLR3_UINT8) "HEX_DIGIT", |
312 |
|
(pANTLR3_UINT8) "HEX_LITERAL", |
313 |
|
(pANTLR3_UINT8) "HO_ARROW_TOK", |
314 |
|
(pANTLR3_UINT8) "HO_LAMBDA_TOK", |
315 |
|
(pANTLR3_UINT8) "INCLUDE_TOK", |
316 |
|
(pANTLR3_UINT8) "INDEX_TOK", |
317 |
|
(pANTLR3_UINT8) "INTEGER_LITERAL", |
318 |
|
(pANTLR3_UINT8) "INV_CONSTRAINT_TOK", |
319 |
|
(pANTLR3_UINT8) "KEYWORD", |
320 |
|
(pANTLR3_UINT8) "LET_TOK", |
321 |
|
(pANTLR3_UINT8) "LPAREN_TOK", |
322 |
|
(pANTLR3_UINT8) "MATCH_TOK", |
323 |
|
(pANTLR3_UINT8) "NUMERAL", |
324 |
|
(pANTLR3_UINT8) "PAR_TOK", |
325 |
|
(pANTLR3_UINT8) "POP_TOK", |
326 |
|
(pANTLR3_UINT8) "PUSH_TOK", |
327 |
|
(pANTLR3_UINT8) "QUOTED_SYMBOL", |
328 |
|
(pANTLR3_UINT8) "RESET_ASSERTIONS_TOK", |
329 |
|
(pANTLR3_UINT8) "RESET_TOK", |
330 |
|
(pANTLR3_UINT8) "RPAREN_TOK", |
331 |
|
(pANTLR3_UINT8) "SET_FEATURE_TOK", |
332 |
|
(pANTLR3_UINT8) "SET_INFO_TOK", |
333 |
|
(pANTLR3_UINT8) "SET_LOGIC_TOK", |
334 |
|
(pANTLR3_UINT8) "SET_OPTION_TOK", |
335 |
|
(pANTLR3_UINT8) "SIMPLE_SYMBOL", |
336 |
|
(pANTLR3_UINT8) "SIMPLIFY_TOK", |
337 |
|
(pANTLR3_UINT8) "STRING_LITERAL", |
338 |
|
(pANTLR3_UINT8) "SYGUS_CONSTANT_TOK", |
339 |
|
(pANTLR3_UINT8) "SYGUS_VARIABLE_TOK", |
340 |
|
(pANTLR3_UINT8) "SYMBOL_CHAR", |
341 |
|
(pANTLR3_UINT8) "SYMBOL_CHAR_NOUNDERSCORE_NOATTRIBUTE", |
342 |
|
(pANTLR3_UINT8) "SYNTH_FUN_TOK", |
343 |
|
(pANTLR3_UINT8) "SYNTH_INV_TOK", |
344 |
|
(pANTLR3_UINT8) "TESTER_TOK", |
345 |
|
(pANTLR3_UINT8) "TUPLE_CONST_TOK", |
346 |
|
(pANTLR3_UINT8) "TUPLE_PROJECT_TOK", |
347 |
|
(pANTLR3_UINT8) "TUPLE_SEL_TOK", |
348 |
|
(pANTLR3_UINT8) "UNTERMINATED_QUOTED_SYMBOL", |
349 |
|
(pANTLR3_UINT8) "UPDATE_TOK", |
350 |
|
(pANTLR3_UINT8) "WHITESPACE", |
351 |
|
(pANTLR3_UINT8) "'\\\\'" |
352 |
|
}; |
353 |
|
|
354 |
|
|
355 |
|
|
356 |
|
// Forward declare the locally static matching functions we have generated. |
357 |
|
// |
358 |
|
static |
359 |
|
cvc5::api::Term |
360 |
|
parseExpr (pSmt2Parser ctx); |
361 |
|
static |
362 |
|
cvc5::Command* |
363 |
|
parseCommand (pSmt2Parser ctx); |
364 |
|
static |
365 |
|
cvc5::Command* |
366 |
|
parseSygus (pSmt2Parser ctx); |
367 |
|
static |
368 |
|
void |
369 |
|
command (pSmt2Parser ctx, std::unique_ptr<cvc5::Command>* cmd); |
370 |
|
static |
371 |
|
std::unique_ptr<cvc5::Command> |
372 |
|
sygusCommand (pSmt2Parser ctx); |
373 |
|
static |
374 |
|
void |
375 |
|
sygusGrammar (pSmt2Parser ctx, cvc5::api::Grammar*& ret, const std::vector<cvc5::api::Term>& sygusVars, const std::string& fun); |
376 |
|
static |
377 |
|
void |
378 |
|
setInfoInternal (pSmt2Parser ctx, std::unique_ptr<cvc5::Command>* cmd); |
379 |
|
static |
380 |
|
void |
381 |
|
setOptionInternal (pSmt2Parser ctx, std::unique_ptr<cvc5::Command>* cmd); |
382 |
|
static |
383 |
|
void |
384 |
|
smt25Command (pSmt2Parser ctx, std::unique_ptr<cvc5::Command>* cmd); |
385 |
|
static |
386 |
|
void |
387 |
|
extendedCommand (pSmt2Parser ctx, std::unique_ptr<cvc5::Command>* cmd); |
388 |
|
static |
389 |
|
void |
390 |
|
datatypeDefCommand (pSmt2Parser ctx, bool isCo, std::unique_ptr<cvc5::Command>* cmd); |
391 |
|
static |
392 |
|
void |
393 |
|
datatypesDefCommand (pSmt2Parser ctx, bool isCo, std::unique_ptr<cvc5::Command>* cmd); |
394 |
|
static |
395 |
|
void |
396 |
|
datatypesDef (pSmt2Parser ctx, bool isCo, const std::vector<std::string>& dnames, const std::vector<int>& arities, std::unique_ptr<cvc5::Command>* cmd); |
397 |
|
static |
398 |
|
void |
399 |
|
simpleSymbolicExprNoKeyword (pSmt2Parser ctx, std::string& s); |
400 |
|
static |
401 |
|
void |
402 |
|
keyword (pSmt2Parser ctx, std::string& s); |
403 |
|
static |
404 |
|
void |
405 |
|
simpleSymbolicExpr (pSmt2Parser ctx, std::string& s); |
406 |
|
static |
407 |
|
void |
408 |
|
symbolicExpr (pSmt2Parser ctx, cvc5::api::Term& sexpr); |
409 |
|
static |
410 |
|
void |
411 |
|
term (pSmt2Parser ctx, cvc5::api::Term& expr, cvc5::api::Term& expr2); |
412 |
|
static |
413 |
|
void |
414 |
|
termNonVariable (pSmt2Parser ctx, cvc5::api::Term& expr, cvc5::api::Term& expr2); |
415 |
|
static |
416 |
|
void |
417 |
|
qualIdentifier (pSmt2Parser ctx, cvc5::ParseOp& p); |
418 |
|
static |
419 |
|
void |
420 |
|
identifier (pSmt2Parser ctx, cvc5::ParseOp& p); |
421 |
|
static |
422 |
|
void |
423 |
|
termAtomic (pSmt2Parser ctx, cvc5::api::Term& atomTerm); |
424 |
|
static |
425 |
|
void |
426 |
|
attribute (pSmt2Parser ctx, cvc5::api::Term& expr, cvc5::api::Term& retExpr); |
427 |
|
static |
428 |
|
void |
429 |
|
termList (pSmt2Parser ctx, std::vector<cvc5::api::Term>& formulas, cvc5::api::Term& expr); |
430 |
|
static |
431 |
|
void |
432 |
|
str (pSmt2Parser ctx, std::string& s, bool fsmtlib); |
433 |
|
static |
434 |
|
void |
435 |
|
quantOp (pSmt2Parser ctx, cvc5::api::Kind& kind); |
436 |
|
static |
437 |
|
void |
438 |
|
functionName (pSmt2Parser ctx, std::string& name, cvc5::parser::DeclarationCheck check); |
439 |
|
static |
440 |
|
void |
441 |
|
sortList (pSmt2Parser ctx, std::vector<cvc5::api::Sort>& sorts); |
442 |
|
static |
443 |
|
void |
444 |
|
nonemptySortList (pSmt2Parser ctx, std::vector<cvc5::api::Sort>& sorts); |
445 |
|
static |
446 |
|
void |
447 |
|
sortedVarList (pSmt2Parser ctx, std::vector<std::pair<std::string, cvc5::api::Sort> >& sortedVars); |
448 |
|
static |
449 |
|
void |
450 |
|
boundVarList (pSmt2Parser ctx, cvc5::api::Term& expr); |
451 |
|
static |
452 |
|
void |
453 |
|
sortName (pSmt2Parser ctx, std::string& name, cvc5::parser::DeclarationCheck check); |
454 |
|
static |
455 |
|
void |
456 |
|
sortSymbol (pSmt2Parser ctx, cvc5::api::Sort& t, cvc5::parser::DeclarationCheck check); |
457 |
|
static |
458 |
|
void |
459 |
|
symbolList (pSmt2Parser ctx, std::vector<std::string>& names, cvc5::parser::DeclarationCheck check, cvc5::parser::SymbolType type); |
460 |
|
static |
461 |
|
void |
462 |
|
symbol (pSmt2Parser ctx, std::string& id, cvc5::parser::DeclarationCheck check, cvc5::parser::SymbolType type); |
463 |
|
static |
464 |
|
void |
465 |
|
nonemptyNumeralList (pSmt2Parser ctx, std::vector<uint64_t>& numerals); |
466 |
|
static |
467 |
|
void |
468 |
|
datatypeDef (pSmt2Parser ctx, bool isCo, std::vector<cvc5::api::DatatypeDecl>& datatypes, std::vector< cvc5::api::Sort >& params); |
469 |
|
static |
470 |
|
void |
471 |
|
constructorDef (pSmt2Parser ctx, cvc5::api::DatatypeDecl& type); |
472 |
|
static |
473 |
|
void |
474 |
|
selector (pSmt2Parser ctx, cvc5::api::DatatypeConstructorDecl& ctor); |
475 |
|
static void Smt2ParserFree(pSmt2Parser ctx); |
476 |
|
static void Smt2ParserReset (pSmt2Parser ctx); |
477 |
|
|
478 |
|
/* For use in tree output where we are accumulating rule labels via label += ruleRef |
479 |
|
* we need a function that knows how to free a return scope when the list is destroyed. |
480 |
|
* We cannot just use ANTLR3_FREE because in debug tracking mode, this is a macro. |
481 |
|
*/ |
482 |
|
static void ANTLR3_CDECL freeScope(void * scope) |
483 |
|
{ |
484 |
|
ANTLR3_FREE(scope); |
485 |
|
} |
486 |
|
|
487 |
|
/** \brief Name of the grammar file that generated this code |
488 |
|
*/ |
489 |
|
static const char fileName[] = "/barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g"; |
490 |
|
|
491 |
|
/** \brief Return the name of the grammar file that generated this code. |
492 |
|
*/ |
493 |
|
static const char * getGrammarFileName() |
494 |
|
{ |
495 |
|
return fileName; |
496 |
|
} |
497 |
|
/** \brief Create a new Smt2Parser parser and return a context for it. |
498 |
|
* |
499 |
|
* \param[in] instream Pointer to an input stream interface. |
500 |
|
* |
501 |
|
* \return Pointer to new parser context upon success. |
502 |
|
*/ |
503 |
|
ANTLR3_API pSmt2Parser |
504 |
5476 |
Smt2ParserNew (pANTLR3_COMMON_TOKEN_STREAM instream) |
505 |
|
{ |
506 |
|
// See if we can create a new parser with the standard constructor |
507 |
|
// |
508 |
5476 |
return Smt2ParserNewSSD(instream, NULL); |
509 |
|
} |
510 |
|
|
511 |
|
/** \brief Create a new Smt2Parser parser and return a context for it. |
512 |
|
* |
513 |
|
* \param[in] instream Pointer to an input stream interface. |
514 |
|
* |
515 |
|
* \return Pointer to new parser context upon success. |
516 |
|
*/ |
517 |
|
ANTLR3_API pSmt2Parser |
518 |
5476 |
Smt2ParserNewSSD (pANTLR3_COMMON_TOKEN_STREAM instream, pANTLR3_RECOGNIZER_SHARED_STATE state) |
519 |
|
{ |
520 |
|
pSmt2Parser ctx; /* Context structure we will build and return */ |
521 |
|
|
522 |
5476 |
ctx = (pSmt2Parser) ANTLR3_CALLOC(1, sizeof(Smt2Parser)); |
523 |
|
|
524 |
5476 |
if (ctx == NULL) |
525 |
|
{ |
526 |
|
// Failed to allocate memory for parser context |
527 |
|
// |
528 |
|
return NULL; |
529 |
|
} |
530 |
|
|
531 |
|
/* ------------------------------------------------------------------- |
532 |
|
* Memory for basic structure is allocated, now to fill in |
533 |
|
* the base ANTLR3 structures. We initialize the function pointers |
534 |
|
* for the standard ANTLR3 parser function set, but upon return |
535 |
|
* from here, the programmer may set the pointers to provide custom |
536 |
|
* implementations of each function. |
537 |
|
* |
538 |
|
* We don't use the macros defined in Smt2Parser.h here, in order that you can get a sense |
539 |
|
* of what goes where. |
540 |
|
*/ |
541 |
|
|
542 |
|
/* Create a base parser/recognizer, using the supplied token stream |
543 |
|
*/ |
544 |
5476 |
ctx->pParser = antlr3ParserNewStream(ANTLR3_SIZE_HINT, instream->tstream, state); |
545 |
|
/* Install the implementation of our Smt2Parser interface |
546 |
|
*/ |
547 |
5476 |
ctx->parseExpr = parseExpr; |
548 |
5476 |
ctx->parseCommand = parseCommand; |
549 |
5476 |
ctx->parseSygus = parseSygus; |
550 |
5476 |
ctx->command = command; |
551 |
5476 |
ctx->sygusCommand = sygusCommand; |
552 |
5476 |
ctx->sygusGrammar = sygusGrammar; |
553 |
5476 |
ctx->setInfoInternal = setInfoInternal; |
554 |
5476 |
ctx->setOptionInternal = setOptionInternal; |
555 |
5476 |
ctx->smt25Command = smt25Command; |
556 |
5476 |
ctx->extendedCommand = extendedCommand; |
557 |
5476 |
ctx->datatypeDefCommand = datatypeDefCommand; |
558 |
5476 |
ctx->datatypesDefCommand = datatypesDefCommand; |
559 |
5476 |
ctx->datatypesDef = datatypesDef; |
560 |
5476 |
ctx->simpleSymbolicExprNoKeyword = simpleSymbolicExprNoKeyword; |
561 |
5476 |
ctx->keyword = keyword; |
562 |
5476 |
ctx->simpleSymbolicExpr = simpleSymbolicExpr; |
563 |
5476 |
ctx->symbolicExpr = symbolicExpr; |
564 |
5476 |
ctx->term = term; |
565 |
5476 |
ctx->termNonVariable = termNonVariable; |
566 |
5476 |
ctx->qualIdentifier = qualIdentifier; |
567 |
5476 |
ctx->identifier = identifier; |
568 |
5476 |
ctx->termAtomic = termAtomic; |
569 |
5476 |
ctx->attribute = attribute; |
570 |
5476 |
ctx->termList = termList; |
571 |
5476 |
ctx->str = str; |
572 |
5476 |
ctx->quantOp = quantOp; |
573 |
5476 |
ctx->functionName = functionName; |
574 |
5476 |
ctx->sortList = sortList; |
575 |
5476 |
ctx->nonemptySortList = nonemptySortList; |
576 |
5476 |
ctx->sortedVarList = sortedVarList; |
577 |
5476 |
ctx->boundVarList = boundVarList; |
578 |
5476 |
ctx->sortName = sortName; |
579 |
5476 |
ctx->sortSymbol = sortSymbol; |
580 |
5476 |
ctx->symbolList = symbolList; |
581 |
5476 |
ctx->symbol = symbol; |
582 |
5476 |
ctx->nonemptyNumeralList = nonemptyNumeralList; |
583 |
5476 |
ctx->datatypeDef = datatypeDef; |
584 |
5476 |
ctx->constructorDef = constructorDef; |
585 |
5476 |
ctx->selector = selector; |
586 |
5476 |
ctx->free = Smt2ParserFree; |
587 |
5476 |
ctx->reset = Smt2ParserReset; |
588 |
5476 |
ctx->getGrammarFileName = getGrammarFileName; |
589 |
|
|
590 |
|
/* Install the scope pushing methods. |
591 |
|
*/ |
592 |
|
|
593 |
|
/* Install the token table |
594 |
|
*/ |
595 |
5476 |
PSRSTATE->tokenNames = Smt2ParserTokenNames; |
596 |
|
|
597 |
|
|
598 |
|
/* Return the newly built parser to the caller |
599 |
|
*/ |
600 |
5476 |
return ctx; |
601 |
|
} |
602 |
|
|
603 |
|
static void |
604 |
|
Smt2ParserReset (pSmt2Parser ctx) |
605 |
|
{ |
606 |
|
RECOGNIZER->reset(RECOGNIZER); |
607 |
|
} |
608 |
|
|
609 |
|
/** Free the parser resources |
610 |
|
*/ |
611 |
|
static void |
612 |
5476 |
Smt2ParserFree(pSmt2Parser ctx) |
613 |
|
{ |
614 |
|
/* Free any scope memory |
615 |
|
*/ |
616 |
|
|
617 |
|
// Free this parser |
618 |
|
// |
619 |
5476 |
ctx->pParser->free(ctx->pParser); |
620 |
|
|
621 |
|
|
622 |
5476 |
ANTLR3_FREE(ctx); |
623 |
|
|
624 |
|
/* Everything is released, so we can return |
625 |
|
*/ |
626 |
5476 |
return; |
627 |
|
} |
628 |
|
|
629 |
|
/** Return token names used by this |
630 |
|
parser |
631 |
|
|
632 |
|
* |
633 |
|
* The returned pointer is used as an index into the token names table (using the token |
634 |
|
* number as the index). |
635 |
|
* |
636 |
|
* \return Pointer to first char * in the table. |
637 |
|
*/ |
638 |
|
static pANTLR3_UINT8 *getTokenNames() |
639 |
|
{ |
640 |
|
return Smt2ParserTokenNames; |
641 |
|
} |
642 |
|
|
643 |
|
|
644 |
|
/* Declare the bitsets |
645 |
|
*/ |
646 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_term_in_parseExpr117 */ |
647 |
|
static ANTLR3_BITWORD FOLLOW_term_in_parseExpr117_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
648 |
|
static ANTLR3_BITSET_LIST FOLLOW_term_in_parseExpr117 = { FOLLOW_term_in_parseExpr117_bits, 1 }; |
649 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_EOF_in_parseExpr124 */ |
650 |
|
static ANTLR3_BITWORD FOLLOW_EOF_in_parseExpr124_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
651 |
|
static ANTLR3_BITSET_LIST FOLLOW_EOF_in_parseExpr124 = { FOLLOW_EOF_in_parseExpr124_bits, 1 }; |
652 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_LPAREN_TOK_in_parseCommand153 */ |
653 |
|
static ANTLR3_BITWORD FOLLOW_LPAREN_TOK_in_parseCommand153_bits[] = { ANTLR3_UINT64_LIT(0xFFA5FBFEE0360020), ANTLR3_UINT64_LIT(0x000000003E6C000F) }; |
654 |
|
static ANTLR3_BITSET_LIST FOLLOW_LPAREN_TOK_in_parseCommand153 = { FOLLOW_LPAREN_TOK_in_parseCommand153_bits, 2 }; |
655 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_command_in_parseCommand155 */ |
656 |
|
static ANTLR3_BITWORD FOLLOW_command_in_parseCommand155_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000800000) }; |
657 |
|
static ANTLR3_BITSET_LIST FOLLOW_command_in_parseCommand155 = { FOLLOW_command_in_parseCommand155_bits, 2 }; |
658 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_RPAREN_TOK_in_parseCommand158 */ |
659 |
|
static ANTLR3_BITWORD FOLLOW_RPAREN_TOK_in_parseCommand158_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
660 |
|
static ANTLR3_BITSET_LIST FOLLOW_RPAREN_TOK_in_parseCommand158 = { FOLLOW_RPAREN_TOK_in_parseCommand158_bits, 1 }; |
661 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_LPAREN_TOK_in_parseCommand171 */ |
662 |
|
static ANTLR3_BITWORD FOLLOW_LPAREN_TOK_in_parseCommand171_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000000100) }; |
663 |
|
static ANTLR3_BITSET_LIST FOLLOW_LPAREN_TOK_in_parseCommand171 = { FOLLOW_LPAREN_TOK_in_parseCommand171_bits, 2 }; |
664 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_INCLUDE_TOK_in_parseCommand173 */ |
665 |
|
static ANTLR3_BITWORD FOLLOW_INCLUDE_TOK_in_parseCommand173_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000040000000) }; |
666 |
|
static ANTLR3_BITSET_LIST FOLLOW_INCLUDE_TOK_in_parseCommand173 = { FOLLOW_INCLUDE_TOK_in_parseCommand173_bits, 2 }; |
667 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_str_in_parseCommand175 */ |
668 |
|
static ANTLR3_BITWORD FOLLOW_str_in_parseCommand175_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000800000) }; |
669 |
|
static ANTLR3_BITSET_LIST FOLLOW_str_in_parseCommand175 = { FOLLOW_str_in_parseCommand175_bits, 2 }; |
670 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_RPAREN_TOK_in_parseCommand178 */ |
671 |
|
static ANTLR3_BITWORD FOLLOW_RPAREN_TOK_in_parseCommand178_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
672 |
|
static ANTLR3_BITSET_LIST FOLLOW_RPAREN_TOK_in_parseCommand178 = { FOLLOW_RPAREN_TOK_in_parseCommand178_bits, 1 }; |
673 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_EOF_in_parseCommand191 */ |
674 |
|
static ANTLR3_BITWORD FOLLOW_EOF_in_parseCommand191_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
675 |
|
static ANTLR3_BITSET_LIST FOLLOW_EOF_in_parseCommand191 = { FOLLOW_EOF_in_parseCommand191_bits, 1 }; |
676 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_LPAREN_TOK_in_parseSygus220 */ |
677 |
|
static ANTLR3_BITWORD FOLLOW_LPAREN_TOK_in_parseSygus220_bits[] = { ANTLR3_UINT64_LIT(0xFFA5FFFEE2760020), ANTLR3_UINT64_LIT(0x000000183F6C080F) }; |
678 |
|
static ANTLR3_BITSET_LIST FOLLOW_LPAREN_TOK_in_parseSygus220 = { FOLLOW_LPAREN_TOK_in_parseSygus220_bits, 2 }; |
679 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_sygusCommand_in_parseSygus224 */ |
680 |
|
static ANTLR3_BITWORD FOLLOW_sygusCommand_in_parseSygus224_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000800000) }; |
681 |
|
static ANTLR3_BITSET_LIST FOLLOW_sygusCommand_in_parseSygus224 = { FOLLOW_sygusCommand_in_parseSygus224_bits, 2 }; |
682 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_RPAREN_TOK_in_parseSygus226 */ |
683 |
|
static ANTLR3_BITWORD FOLLOW_RPAREN_TOK_in_parseSygus226_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
684 |
|
static ANTLR3_BITSET_LIST FOLLOW_RPAREN_TOK_in_parseSygus226 = { FOLLOW_RPAREN_TOK_in_parseSygus226_bits, 1 }; |
685 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_EOF_in_parseSygus232 */ |
686 |
|
static ANTLR3_BITWORD FOLLOW_EOF_in_parseSygus232_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
687 |
|
static ANTLR3_BITSET_LIST FOLLOW_EOF_in_parseSygus232 = { FOLLOW_EOF_in_parseSygus232_bits, 1 }; |
688 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_SET_LOGIC_TOK_in_command260 */ |
689 |
|
static ANTLR3_BITWORD FOLLOW_SET_LOGIC_TOK_in_command260_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000020010100000) }; |
690 |
|
static ANTLR3_BITSET_LIST FOLLOW_SET_LOGIC_TOK_in_command260 = { FOLLOW_SET_LOGIC_TOK_in_command260_bits, 2 }; |
691 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_symbol_in_command262 */ |
692 |
|
static ANTLR3_BITWORD FOLLOW_symbol_in_command262_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
693 |
|
static ANTLR3_BITSET_LIST FOLLOW_symbol_in_command262 = { FOLLOW_symbol_in_command262_bits, 1 }; |
694 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_SET_INFO_TOK_in_command281 */ |
695 |
|
static ANTLR3_BITWORD FOLLOW_SET_INFO_TOK_in_command281_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000001000) }; |
696 |
|
static ANTLR3_BITSET_LIST FOLLOW_SET_INFO_TOK_in_command281 = { FOLLOW_SET_INFO_TOK_in_command281_bits, 2 }; |
697 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_setInfoInternal_in_command283 */ |
698 |
|
static ANTLR3_BITWORD FOLLOW_setInfoInternal_in_command283_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
699 |
|
static ANTLR3_BITSET_LIST FOLLOW_setInfoInternal_in_command283 = { FOLLOW_setInfoInternal_in_command283_bits, 1 }; |
700 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_GET_INFO_TOK_in_command296 */ |
701 |
|
static ANTLR3_BITWORD FOLLOW_GET_INFO_TOK_in_command296_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000001000) }; |
702 |
|
static ANTLR3_BITSET_LIST FOLLOW_GET_INFO_TOK_in_command296 = { FOLLOW_GET_INFO_TOK_in_command296_bits, 2 }; |
703 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_KEYWORD_in_command298 */ |
704 |
|
static ANTLR3_BITWORD FOLLOW_KEYWORD_in_command298_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
705 |
|
static ANTLR3_BITSET_LIST FOLLOW_KEYWORD_in_command298 = { FOLLOW_KEYWORD_in_command298_bits, 1 }; |
706 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_SET_OPTION_TOK_in_command316 */ |
707 |
|
static ANTLR3_BITWORD FOLLOW_SET_OPTION_TOK_in_command316_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000001000) }; |
708 |
|
static ANTLR3_BITSET_LIST FOLLOW_SET_OPTION_TOK_in_command316 = { FOLLOW_SET_OPTION_TOK_in_command316_bits, 2 }; |
709 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_setOptionInternal_in_command318 */ |
710 |
|
static ANTLR3_BITWORD FOLLOW_setOptionInternal_in_command318_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
711 |
|
static ANTLR3_BITSET_LIST FOLLOW_setOptionInternal_in_command318 = { FOLLOW_setOptionInternal_in_command318_bits, 1 }; |
712 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_GET_OPTION_TOK_in_command331 */ |
713 |
|
static ANTLR3_BITWORD FOLLOW_GET_OPTION_TOK_in_command331_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000001000) }; |
714 |
|
static ANTLR3_BITSET_LIST FOLLOW_GET_OPTION_TOK_in_command331 = { FOLLOW_GET_OPTION_TOK_in_command331_bits, 2 }; |
715 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_KEYWORD_in_command333 */ |
716 |
|
static ANTLR3_BITWORD FOLLOW_KEYWORD_in_command333_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
717 |
|
static ANTLR3_BITSET_LIST FOLLOW_KEYWORD_in_command333 = { FOLLOW_KEYWORD_in_command333_bits, 1 }; |
718 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_DECLARE_SORT_TOK_in_command351 */ |
719 |
|
static ANTLR3_BITWORD FOLLOW_DECLARE_SORT_TOK_in_command351_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000020010100000) }; |
720 |
|
static ANTLR3_BITSET_LIST FOLLOW_DECLARE_SORT_TOK_in_command351 = { FOLLOW_DECLARE_SORT_TOK_in_command351_bits, 2 }; |
721 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_symbol_in_command363 */ |
722 |
|
static ANTLR3_BITWORD FOLLOW_symbol_in_command363_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000000400) }; |
723 |
|
static ANTLR3_BITSET_LIST FOLLOW_symbol_in_command363 = { FOLLOW_symbol_in_command363_bits, 2 }; |
724 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_INTEGER_LITERAL_in_command378 */ |
725 |
|
static ANTLR3_BITWORD FOLLOW_INTEGER_LITERAL_in_command378_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
726 |
|
static ANTLR3_BITSET_LIST FOLLOW_INTEGER_LITERAL_in_command378 = { FOLLOW_INTEGER_LITERAL_in_command378_bits, 1 }; |
727 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_DEFINE_SORT_TOK_in_command396 */ |
728 |
|
static ANTLR3_BITWORD FOLLOW_DEFINE_SORT_TOK_in_command396_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000020010100000) }; |
729 |
|
static ANTLR3_BITSET_LIST FOLLOW_DEFINE_SORT_TOK_in_command396 = { FOLLOW_DEFINE_SORT_TOK_in_command396_bits, 2 }; |
730 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_symbol_in_command404 */ |
731 |
|
static ANTLR3_BITWORD FOLLOW_symbol_in_command404_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000004000) }; |
732 |
|
static ANTLR3_BITSET_LIST FOLLOW_symbol_in_command404 = { FOLLOW_symbol_in_command404_bits, 2 }; |
733 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_LPAREN_TOK_in_command417 */ |
734 |
|
static ANTLR3_BITWORD FOLLOW_LPAREN_TOK_in_command417_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000020010900000) }; |
735 |
|
static ANTLR3_BITSET_LIST FOLLOW_LPAREN_TOK_in_command417 = { FOLLOW_LPAREN_TOK_in_command417_bits, 2 }; |
736 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_symbolList_in_command419 */ |
737 |
|
static ANTLR3_BITWORD FOLLOW_symbolList_in_command419_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000800000) }; |
738 |
|
static ANTLR3_BITSET_LIST FOLLOW_symbolList_in_command419 = { FOLLOW_symbolList_in_command419_bits, 2 }; |
739 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_RPAREN_TOK_in_command422 */ |
740 |
|
static ANTLR3_BITWORD FOLLOW_RPAREN_TOK_in_command422_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000020010104000) }; |
741 |
|
static ANTLR3_BITSET_LIST FOLLOW_RPAREN_TOK_in_command422 = { FOLLOW_RPAREN_TOK_in_command422_bits, 2 }; |
742 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_sortSymbol_in_command434 */ |
743 |
|
static ANTLR3_BITWORD FOLLOW_sortSymbol_in_command434_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
744 |
|
static ANTLR3_BITSET_LIST FOLLOW_sortSymbol_in_command434 = { FOLLOW_sortSymbol_in_command434_bits, 1 }; |
745 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_DECLARE_FUN_TOK_in_command453 */ |
746 |
|
static ANTLR3_BITWORD FOLLOW_DECLARE_FUN_TOK_in_command453_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000020010100000) }; |
747 |
|
static ANTLR3_BITSET_LIST FOLLOW_DECLARE_FUN_TOK_in_command453 = { FOLLOW_DECLARE_FUN_TOK_in_command453_bits, 2 }; |
748 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_symbol_in_command461 */ |
749 |
|
static ANTLR3_BITWORD FOLLOW_symbol_in_command461_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000004000) }; |
750 |
|
static ANTLR3_BITSET_LIST FOLLOW_symbol_in_command461 = { FOLLOW_symbol_in_command461_bits, 2 }; |
751 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_LPAREN_TOK_in_command474 */ |
752 |
|
static ANTLR3_BITWORD FOLLOW_LPAREN_TOK_in_command474_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000020010904000) }; |
753 |
|
static ANTLR3_BITSET_LIST FOLLOW_LPAREN_TOK_in_command474 = { FOLLOW_LPAREN_TOK_in_command474_bits, 2 }; |
754 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_sortList_in_command476 */ |
755 |
|
static ANTLR3_BITWORD FOLLOW_sortList_in_command476_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000800000) }; |
756 |
|
static ANTLR3_BITSET_LIST FOLLOW_sortList_in_command476 = { FOLLOW_sortList_in_command476_bits, 2 }; |
757 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_RPAREN_TOK_in_command479 */ |
758 |
|
static ANTLR3_BITWORD FOLLOW_RPAREN_TOK_in_command479_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000020010104000) }; |
759 |
|
static ANTLR3_BITSET_LIST FOLLOW_RPAREN_TOK_in_command479 = { FOLLOW_RPAREN_TOK_in_command479_bits, 2 }; |
760 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_sortSymbol_in_command485 */ |
761 |
|
static ANTLR3_BITWORD FOLLOW_sortSymbol_in_command485_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
762 |
|
static ANTLR3_BITSET_LIST FOLLOW_sortSymbol_in_command485 = { FOLLOW_sortSymbol_in_command485_bits, 1 }; |
763 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_DEFINE_FUN_TOK_in_command504 */ |
764 |
|
static ANTLR3_BITWORD FOLLOW_DEFINE_FUN_TOK_in_command504_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000020010100000) }; |
765 |
|
static ANTLR3_BITSET_LIST FOLLOW_DEFINE_FUN_TOK_in_command504 = { FOLLOW_DEFINE_FUN_TOK_in_command504_bits, 2 }; |
766 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_symbol_in_command512 */ |
767 |
|
static ANTLR3_BITWORD FOLLOW_symbol_in_command512_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000004000) }; |
768 |
|
static ANTLR3_BITSET_LIST FOLLOW_symbol_in_command512 = { FOLLOW_symbol_in_command512_bits, 2 }; |
769 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_LPAREN_TOK_in_command525 */ |
770 |
|
static ANTLR3_BITWORD FOLLOW_LPAREN_TOK_in_command525_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000804000) }; |
771 |
|
static ANTLR3_BITSET_LIST FOLLOW_LPAREN_TOK_in_command525 = { FOLLOW_LPAREN_TOK_in_command525_bits, 2 }; |
772 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_sortedVarList_in_command527 */ |
773 |
|
static ANTLR3_BITWORD FOLLOW_sortedVarList_in_command527_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000800000) }; |
774 |
|
static ANTLR3_BITSET_LIST FOLLOW_sortedVarList_in_command527 = { FOLLOW_sortedVarList_in_command527_bits, 2 }; |
775 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_RPAREN_TOK_in_command530 */ |
776 |
|
static ANTLR3_BITWORD FOLLOW_RPAREN_TOK_in_command530_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000020010104000) }; |
777 |
|
static ANTLR3_BITSET_LIST FOLLOW_RPAREN_TOK_in_command530 = { FOLLOW_RPAREN_TOK_in_command530_bits, 2 }; |
778 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_sortSymbol_in_command536 */ |
779 |
|
static ANTLR3_BITWORD FOLLOW_sortSymbol_in_command536_bits[] = { ANTLR3_UINT64_LIT(0x0000000008010000), ANTLR3_UINT64_LIT(0x0000024050104420) }; |
780 |
|
static ANTLR3_BITSET_LIST FOLLOW_sortSymbol_in_command536 = { FOLLOW_sortSymbol_in_command536_bits, 2 }; |
781 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_term_in_command549 */ |
782 |
|
static ANTLR3_BITWORD FOLLOW_term_in_command549_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
783 |
|
static ANTLR3_BITSET_LIST FOLLOW_term_in_command549 = { FOLLOW_term_in_command549_bits, 1 }; |
784 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_DECLARE_DATATYPE_TOK_in_command562 */ |
785 |
|
static ANTLR3_BITWORD FOLLOW_DECLARE_DATATYPE_TOK_in_command562_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000020010100000) }; |
786 |
|
static ANTLR3_BITSET_LIST FOLLOW_DECLARE_DATATYPE_TOK_in_command562 = { FOLLOW_DECLARE_DATATYPE_TOK_in_command562_bits, 2 }; |
787 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_datatypeDefCommand_in_command564 */ |
788 |
|
static ANTLR3_BITWORD FOLLOW_datatypeDefCommand_in_command564_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
789 |
|
static ANTLR3_BITSET_LIST FOLLOW_datatypeDefCommand_in_command564 = { FOLLOW_datatypeDefCommand_in_command564_bits, 1 }; |
790 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_DECLARE_DATATYPES_TOK_in_command571 */ |
791 |
|
static ANTLR3_BITWORD FOLLOW_DECLARE_DATATYPES_TOK_in_command571_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000004000) }; |
792 |
|
static ANTLR3_BITSET_LIST FOLLOW_DECLARE_DATATYPES_TOK_in_command571 = { FOLLOW_DECLARE_DATATYPES_TOK_in_command571_bits, 2 }; |
793 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_datatypesDefCommand_in_command573 */ |
794 |
|
static ANTLR3_BITWORD FOLLOW_datatypesDefCommand_in_command573_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
795 |
|
static ANTLR3_BITSET_LIST FOLLOW_datatypesDefCommand_in_command573 = { FOLLOW_datatypesDefCommand_in_command573_bits, 1 }; |
796 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_GET_VALUE_TOK_in_command586 */ |
797 |
|
static ANTLR3_BITWORD FOLLOW_GET_VALUE_TOK_in_command586_bits[] = { ANTLR3_UINT64_LIT(0xFFFFFFFFFFFFFFF0), ANTLR3_UINT64_LIT(0x00001FFFFFFFFFFF) }; |
798 |
|
static ANTLR3_BITSET_LIST FOLLOW_GET_VALUE_TOK_in_command586 = { FOLLOW_GET_VALUE_TOK_in_command586_bits, 2 }; |
799 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_LPAREN_TOK_in_command596 */ |
800 |
|
static ANTLR3_BITWORD FOLLOW_LPAREN_TOK_in_command596_bits[] = { ANTLR3_UINT64_LIT(0x0000000008010000), ANTLR3_UINT64_LIT(0x0000024050104420) }; |
801 |
|
static ANTLR3_BITSET_LIST FOLLOW_LPAREN_TOK_in_command596 = { FOLLOW_LPAREN_TOK_in_command596_bits, 2 }; |
802 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_termList_in_command598 */ |
803 |
|
static ANTLR3_BITWORD FOLLOW_termList_in_command598_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000800000) }; |
804 |
|
static ANTLR3_BITSET_LIST FOLLOW_termList_in_command598 = { FOLLOW_termList_in_command598_bits, 2 }; |
805 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_RPAREN_TOK_in_command601 */ |
806 |
|
static ANTLR3_BITWORD FOLLOW_RPAREN_TOK_in_command601_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
807 |
|
static ANTLR3_BITSET_LIST FOLLOW_RPAREN_TOK_in_command601 = { FOLLOW_RPAREN_TOK_in_command601_bits, 1 }; |
808 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_set_in_command617 */ |
809 |
|
static ANTLR3_BITWORD FOLLOW_set_in_command617_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
810 |
|
static ANTLR3_BITSET_LIST FOLLOW_set_in_command617 = { FOLLOW_set_in_command617_bits, 1 }; |
811 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_GET_ASSIGNMENT_TOK_in_command644 */ |
812 |
|
static ANTLR3_BITWORD FOLLOW_GET_ASSIGNMENT_TOK_in_command644_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
813 |
|
static ANTLR3_BITSET_LIST FOLLOW_GET_ASSIGNMENT_TOK_in_command644 = { FOLLOW_GET_ASSIGNMENT_TOK_in_command644_bits, 1 }; |
814 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_ASSERT_TOK_in_command664 */ |
815 |
|
static ANTLR3_BITWORD FOLLOW_ASSERT_TOK_in_command664_bits[] = { ANTLR3_UINT64_LIT(0x0000000008010000), ANTLR3_UINT64_LIT(0x0000024050104420) }; |
816 |
|
static ANTLR3_BITSET_LIST FOLLOW_ASSERT_TOK_in_command664 = { FOLLOW_ASSERT_TOK_in_command664_bits, 2 }; |
817 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_term_in_command678 */ |
818 |
|
static ANTLR3_BITWORD FOLLOW_term_in_command678_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
819 |
|
static ANTLR3_BITSET_LIST FOLLOW_term_in_command678 = { FOLLOW_term_in_command678_bits, 1 }; |
820 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_CHECK_SAT_TOK_in_command697 */ |
821 |
|
static ANTLR3_BITWORD FOLLOW_CHECK_SAT_TOK_in_command697_bits[] = { ANTLR3_UINT64_LIT(0x0000000008010002), ANTLR3_UINT64_LIT(0x0000024050104420) }; |
822 |
|
static ANTLR3_BITSET_LIST FOLLOW_CHECK_SAT_TOK_in_command697 = { FOLLOW_CHECK_SAT_TOK_in_command697_bits, 2 }; |
823 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_term_in_command713 */ |
824 |
|
static ANTLR3_BITWORD FOLLOW_term_in_command713_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
825 |
|
static ANTLR3_BITSET_LIST FOLLOW_term_in_command713 = { FOLLOW_term_in_command713_bits, 1 }; |
826 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_CHECK_SAT_ASSUMING_TOK_in_command754 */ |
827 |
|
static ANTLR3_BITWORD FOLLOW_CHECK_SAT_ASSUMING_TOK_in_command754_bits[] = { ANTLR3_UINT64_LIT(0xFFFFFFFFFFFFFFF0), ANTLR3_UINT64_LIT(0x00001FFFFFFFFFFF) }; |
828 |
|
static ANTLR3_BITSET_LIST FOLLOW_CHECK_SAT_ASSUMING_TOK_in_command754 = { FOLLOW_CHECK_SAT_ASSUMING_TOK_in_command754_bits, 2 }; |
829 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_LPAREN_TOK_in_command764 */ |
830 |
|
static ANTLR3_BITWORD FOLLOW_LPAREN_TOK_in_command764_bits[] = { ANTLR3_UINT64_LIT(0x0000000008010000), ANTLR3_UINT64_LIT(0x0000024050104420) }; |
831 |
|
static ANTLR3_BITSET_LIST FOLLOW_LPAREN_TOK_in_command764 = { FOLLOW_LPAREN_TOK_in_command764_bits, 2 }; |
832 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_termList_in_command766 */ |
833 |
|
static ANTLR3_BITWORD FOLLOW_termList_in_command766_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000800000) }; |
834 |
|
static ANTLR3_BITSET_LIST FOLLOW_termList_in_command766 = { FOLLOW_termList_in_command766_bits, 2 }; |
835 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_RPAREN_TOK_in_command769 */ |
836 |
|
static ANTLR3_BITWORD FOLLOW_RPAREN_TOK_in_command769_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
837 |
|
static ANTLR3_BITSET_LIST FOLLOW_RPAREN_TOK_in_command769 = { FOLLOW_RPAREN_TOK_in_command769_bits, 1 }; |
838 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_set_in_command785 */ |
839 |
|
static ANTLR3_BITWORD FOLLOW_set_in_command785_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
840 |
|
static ANTLR3_BITSET_LIST FOLLOW_set_in_command785 = { FOLLOW_set_in_command785_bits, 1 }; |
841 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_GET_ASSERTIONS_TOK_in_command812 */ |
842 |
|
static ANTLR3_BITWORD FOLLOW_GET_ASSERTIONS_TOK_in_command812_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
843 |
|
static ANTLR3_BITSET_LIST FOLLOW_GET_ASSERTIONS_TOK_in_command812 = { FOLLOW_GET_ASSERTIONS_TOK_in_command812_bits, 1 }; |
844 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_GET_PROOF_TOK_in_command832 */ |
845 |
|
static ANTLR3_BITWORD FOLLOW_GET_PROOF_TOK_in_command832_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
846 |
|
static ANTLR3_BITSET_LIST FOLLOW_GET_PROOF_TOK_in_command832 = { FOLLOW_GET_PROOF_TOK_in_command832_bits, 1 }; |
847 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_GET_UNSAT_ASSUMPTIONS_TOK_in_command852 */ |
848 |
|
static ANTLR3_BITWORD FOLLOW_GET_UNSAT_ASSUMPTIONS_TOK_in_command852_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
849 |
|
static ANTLR3_BITSET_LIST FOLLOW_GET_UNSAT_ASSUMPTIONS_TOK_in_command852 = { FOLLOW_GET_UNSAT_ASSUMPTIONS_TOK_in_command852_bits, 1 }; |
850 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_GET_UNSAT_CORE_TOK_in_command872 */ |
851 |
|
static ANTLR3_BITWORD FOLLOW_GET_UNSAT_CORE_TOK_in_command872_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
852 |
|
static ANTLR3_BITSET_LIST FOLLOW_GET_UNSAT_CORE_TOK_in_command872 = { FOLLOW_GET_UNSAT_CORE_TOK_in_command872_bits, 1 }; |
853 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_PUSH_TOK_in_command892 */ |
854 |
|
static ANTLR3_BITWORD FOLLOW_PUSH_TOK_in_command892_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002), ANTLR3_UINT64_LIT(0x0000000000000400) }; |
855 |
|
static ANTLR3_BITSET_LIST FOLLOW_PUSH_TOK_in_command892 = { FOLLOW_PUSH_TOK_in_command892_bits, 2 }; |
856 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_INTEGER_LITERAL_in_command910 */ |
857 |
|
static ANTLR3_BITWORD FOLLOW_INTEGER_LITERAL_in_command910_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
858 |
|
static ANTLR3_BITSET_LIST FOLLOW_INTEGER_LITERAL_in_command910 = { FOLLOW_INTEGER_LITERAL_in_command910_bits, 1 }; |
859 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_POP_TOK_in_command934 */ |
860 |
|
static ANTLR3_BITWORD FOLLOW_POP_TOK_in_command934_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002), ANTLR3_UINT64_LIT(0x0000000000000400) }; |
861 |
|
static ANTLR3_BITSET_LIST FOLLOW_POP_TOK_in_command934 = { FOLLOW_POP_TOK_in_command934_bits, 2 }; |
862 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_INTEGER_LITERAL_in_command952 */ |
863 |
|
static ANTLR3_BITWORD FOLLOW_INTEGER_LITERAL_in_command952_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
864 |
|
static ANTLR3_BITSET_LIST FOLLOW_INTEGER_LITERAL_in_command952 = { FOLLOW_INTEGER_LITERAL_in_command952_bits, 1 }; |
865 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_EXIT_TOK_in_command986 */ |
866 |
|
static ANTLR3_BITWORD FOLLOW_EXIT_TOK_in_command986_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
867 |
|
static ANTLR3_BITSET_LIST FOLLOW_EXIT_TOK_in_command986 = { FOLLOW_EXIT_TOK_in_command986_bits, 1 }; |
868 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_smt25Command_in_command1005 */ |
869 |
|
static ANTLR3_BITWORD FOLLOW_smt25Command_in_command1005_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
870 |
|
static ANTLR3_BITSET_LIST FOLLOW_smt25Command_in_command1005 = { FOLLOW_smt25Command_in_command1005_bits, 1 }; |
871 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_extendedCommand_in_command1019 */ |
872 |
|
static ANTLR3_BITWORD FOLLOW_extendedCommand_in_command1019_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
873 |
|
static ANTLR3_BITSET_LIST FOLLOW_extendedCommand_in_command1019 = { FOLLOW_extendedCommand_in_command1019_bits, 1 }; |
874 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_SIMPLE_SYMBOL_in_command1039 */ |
875 |
|
static ANTLR3_BITWORD FOLLOW_SIMPLE_SYMBOL_in_command1039_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
876 |
|
static ANTLR3_BITSET_LIST FOLLOW_SIMPLE_SYMBOL_in_command1039 = { FOLLOW_SIMPLE_SYMBOL_in_command1039_bits, 1 }; |
877 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_DECLARE_VAR_TOK_in_sygusCommand1073 */ |
878 |
|
static ANTLR3_BITWORD FOLLOW_DECLARE_VAR_TOK_in_sygusCommand1073_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000020010100000) }; |
879 |
|
static ANTLR3_BITSET_LIST FOLLOW_DECLARE_VAR_TOK_in_sygusCommand1073 = { FOLLOW_DECLARE_VAR_TOK_in_sygusCommand1073_bits, 2 }; |
880 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_symbol_in_sygusCommand1081 */ |
881 |
|
static ANTLR3_BITWORD FOLLOW_symbol_in_sygusCommand1081_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000020010104000) }; |
882 |
|
static ANTLR3_BITSET_LIST FOLLOW_symbol_in_sygusCommand1081 = { FOLLOW_symbol_in_sygusCommand1081_bits, 2 }; |
883 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_sortSymbol_in_sygusCommand1094 */ |
884 |
|
static ANTLR3_BITWORD FOLLOW_sortSymbol_in_sygusCommand1094_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
885 |
|
static ANTLR3_BITSET_LIST FOLLOW_sortSymbol_in_sygusCommand1094 = { FOLLOW_sortSymbol_in_sygusCommand1094_bits, 1 }; |
886 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_SYNTH_FUN_TOK_in_sygusCommand1115 */ |
887 |
|
static ANTLR3_BITWORD FOLLOW_SYNTH_FUN_TOK_in_sygusCommand1115_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000020010100000) }; |
888 |
|
static ANTLR3_BITSET_LIST FOLLOW_SYNTH_FUN_TOK_in_sygusCommand1115 = { FOLLOW_SYNTH_FUN_TOK_in_sygusCommand1115_bits, 2 }; |
889 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_SYNTH_INV_TOK_in_sygusCommand1127 */ |
890 |
|
static ANTLR3_BITWORD FOLLOW_SYNTH_INV_TOK_in_sygusCommand1127_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000020010100000) }; |
891 |
|
static ANTLR3_BITSET_LIST FOLLOW_SYNTH_INV_TOK_in_sygusCommand1127 = { FOLLOW_SYNTH_INV_TOK_in_sygusCommand1127_bits, 2 }; |
892 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_symbol_in_sygusCommand1147 */ |
893 |
|
static ANTLR3_BITWORD FOLLOW_symbol_in_sygusCommand1147_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000004000) }; |
894 |
|
static ANTLR3_BITSET_LIST FOLLOW_symbol_in_sygusCommand1147 = { FOLLOW_symbol_in_sygusCommand1147_bits, 2 }; |
895 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_LPAREN_TOK_in_sygusCommand1154 */ |
896 |
|
static ANTLR3_BITWORD FOLLOW_LPAREN_TOK_in_sygusCommand1154_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000804000) }; |
897 |
|
static ANTLR3_BITSET_LIST FOLLOW_LPAREN_TOK_in_sygusCommand1154 = { FOLLOW_LPAREN_TOK_in_sygusCommand1154_bits, 2 }; |
898 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_sortedVarList_in_sygusCommand1156 */ |
899 |
|
static ANTLR3_BITWORD FOLLOW_sortedVarList_in_sygusCommand1156_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000800000) }; |
900 |
|
static ANTLR3_BITSET_LIST FOLLOW_sortedVarList_in_sygusCommand1156 = { FOLLOW_sortedVarList_in_sygusCommand1156_bits, 2 }; |
901 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_RPAREN_TOK_in_sygusCommand1159 */ |
902 |
|
static ANTLR3_BITWORD FOLLOW_RPAREN_TOK_in_sygusCommand1159_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002), ANTLR3_UINT64_LIT(0x0000020010104000) }; |
903 |
|
static ANTLR3_BITSET_LIST FOLLOW_RPAREN_TOK_in_sygusCommand1159 = { FOLLOW_RPAREN_TOK_in_sygusCommand1159_bits, 2 }; |
904 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_sortSymbol_in_sygusCommand1167 */ |
905 |
|
static ANTLR3_BITWORD FOLLOW_sortSymbol_in_sygusCommand1167_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002), ANTLR3_UINT64_LIT(0x0000000000004000) }; |
906 |
|
static ANTLR3_BITSET_LIST FOLLOW_sortSymbol_in_sygusCommand1167 = { FOLLOW_sortSymbol_in_sygusCommand1167_bits, 2 }; |
907 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_sygusGrammar_in_sygusCommand1219 */ |
908 |
|
static ANTLR3_BITWORD FOLLOW_sygusGrammar_in_sygusCommand1219_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
909 |
|
static ANTLR3_BITSET_LIST FOLLOW_sygusGrammar_in_sygusCommand1219 = { FOLLOW_sygusGrammar_in_sygusCommand1219_bits, 1 }; |
910 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_CONSTRAINT_TOK_in_sygusCommand1245 */ |
911 |
|
static ANTLR3_BITWORD FOLLOW_CONSTRAINT_TOK_in_sygusCommand1245_bits[] = { ANTLR3_UINT64_LIT(0x0000000008010000), ANTLR3_UINT64_LIT(0x0000024050104420) }; |
912 |
|
static ANTLR3_BITSET_LIST FOLLOW_CONSTRAINT_TOK_in_sygusCommand1245 = { FOLLOW_CONSTRAINT_TOK_in_sygusCommand1245_bits, 2 }; |
913 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_term_in_sygusCommand1253 */ |
914 |
|
static ANTLR3_BITWORD FOLLOW_term_in_sygusCommand1253_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
915 |
|
static ANTLR3_BITSET_LIST FOLLOW_term_in_sygusCommand1253 = { FOLLOW_term_in_sygusCommand1253_bits, 1 }; |
916 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_INV_CONSTRAINT_TOK_in_sygusCommand1272 */ |
917 |
|
static ANTLR3_BITWORD FOLLOW_INV_CONSTRAINT_TOK_in_sygusCommand1272_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000020010100000) }; |
918 |
|
static ANTLR3_BITSET_LIST FOLLOW_INV_CONSTRAINT_TOK_in_sygusCommand1272 = { FOLLOW_INV_CONSTRAINT_TOK_in_sygusCommand1272_bits, 2 }; |
919 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_symbol_in_sygusCommand1280 */ |
920 |
|
static ANTLR3_BITWORD FOLLOW_symbol_in_sygusCommand1280_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002), ANTLR3_UINT64_LIT(0x0000020010100000) }; |
921 |
|
static ANTLR3_BITSET_LIST FOLLOW_symbol_in_sygusCommand1280 = { FOLLOW_symbol_in_sygusCommand1280_bits, 2 }; |
922 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_CHECK_SYNTH_TOK_in_sygusCommand1304 */ |
923 |
|
static ANTLR3_BITWORD FOLLOW_CHECK_SYNTH_TOK_in_sygusCommand1304_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
924 |
|
static ANTLR3_BITSET_LIST FOLLOW_CHECK_SYNTH_TOK_in_sygusCommand1304 = { FOLLOW_CHECK_SYNTH_TOK_in_sygusCommand1304_bits, 1 }; |
925 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_SET_FEATURE_TOK_in_sygusCommand1322 */ |
926 |
|
static ANTLR3_BITWORD FOLLOW_SET_FEATURE_TOK_in_sygusCommand1322_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000001000) }; |
927 |
|
static ANTLR3_BITSET_LIST FOLLOW_SET_FEATURE_TOK_in_sygusCommand1322 = { FOLLOW_SET_FEATURE_TOK_in_sygusCommand1322_bits, 2 }; |
928 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_keyword_in_sygusCommand1324 */ |
929 |
|
static ANTLR3_BITWORD FOLLOW_keyword_in_sygusCommand1324_bits[] = { ANTLR3_UINT64_LIT(0x7724F21208310020), ANTLR3_UINT64_LIT(0x000002007E7C542E) }; |
930 |
|
static ANTLR3_BITSET_LIST FOLLOW_keyword_in_sygusCommand1324 = { FOLLOW_keyword_in_sygusCommand1324_bits, 2 }; |
931 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_symbolicExpr_in_sygusCommand1327 */ |
932 |
|
static ANTLR3_BITWORD FOLLOW_symbolicExpr_in_sygusCommand1327_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
933 |
|
static ANTLR3_BITSET_LIST FOLLOW_symbolicExpr_in_sygusCommand1327 = { FOLLOW_symbolicExpr_in_sygusCommand1327_bits, 1 }; |
934 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_command_in_sygusCommand1340 */ |
935 |
|
static ANTLR3_BITWORD FOLLOW_command_in_sygusCommand1340_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
936 |
|
static ANTLR3_BITSET_LIST FOLLOW_command_in_sygusCommand1340 = { FOLLOW_command_in_sygusCommand1340_bits, 1 }; |
937 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_LPAREN_TOK_in_sygusGrammar1368 */ |
938 |
|
static ANTLR3_BITWORD FOLLOW_LPAREN_TOK_in_sygusGrammar1368_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000804000) }; |
939 |
|
static ANTLR3_BITSET_LIST FOLLOW_LPAREN_TOK_in_sygusGrammar1368 = { FOLLOW_LPAREN_TOK_in_sygusGrammar1368_bits, 2 }; |
940 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_LPAREN_TOK_in_sygusGrammar1383 */ |
941 |
|
static ANTLR3_BITWORD FOLLOW_LPAREN_TOK_in_sygusGrammar1383_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000020010100000) }; |
942 |
|
static ANTLR3_BITSET_LIST FOLLOW_LPAREN_TOK_in_sygusGrammar1383 = { FOLLOW_LPAREN_TOK_in_sygusGrammar1383_bits, 2 }; |
943 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_symbol_in_sygusGrammar1385 */ |
944 |
|
static ANTLR3_BITWORD FOLLOW_symbol_in_sygusGrammar1385_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000020010104000) }; |
945 |
|
static ANTLR3_BITSET_LIST FOLLOW_symbol_in_sygusGrammar1385 = { FOLLOW_symbol_in_sygusGrammar1385_bits, 2 }; |
946 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_sortSymbol_in_sygusGrammar1392 */ |
947 |
|
static ANTLR3_BITWORD FOLLOW_sortSymbol_in_sygusGrammar1392_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000804000) }; |
948 |
|
static ANTLR3_BITSET_LIST FOLLOW_sortSymbol_in_sygusGrammar1392 = { FOLLOW_sortSymbol_in_sygusGrammar1392_bits, 2 }; |
949 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_LPAREN_TOK_in_sygusGrammar1417 */ |
950 |
|
static ANTLR3_BITWORD FOLLOW_LPAREN_TOK_in_sygusGrammar1417_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000804000) }; |
951 |
|
static ANTLR3_BITSET_LIST FOLLOW_LPAREN_TOK_in_sygusGrammar1417 = { FOLLOW_LPAREN_TOK_in_sygusGrammar1417_bits, 2 }; |
952 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_RPAREN_TOK_in_sygusGrammar1433 */ |
953 |
|
static ANTLR3_BITWORD FOLLOW_RPAREN_TOK_in_sygusGrammar1433_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000804000) }; |
954 |
|
static ANTLR3_BITSET_LIST FOLLOW_RPAREN_TOK_in_sygusGrammar1433 = { FOLLOW_RPAREN_TOK_in_sygusGrammar1433_bits, 2 }; |
955 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_RPAREN_TOK_in_sygusGrammar1450 */ |
956 |
|
static ANTLR3_BITWORD FOLLOW_RPAREN_TOK_in_sygusGrammar1450_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000004000) }; |
957 |
|
static ANTLR3_BITSET_LIST FOLLOW_RPAREN_TOK_in_sygusGrammar1450 = { FOLLOW_RPAREN_TOK_in_sygusGrammar1450_bits, 2 }; |
958 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_LPAREN_TOK_in_sygusGrammar1461 */ |
959 |
|
static ANTLR3_BITWORD FOLLOW_LPAREN_TOK_in_sygusGrammar1461_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000004000) }; |
960 |
|
static ANTLR3_BITSET_LIST FOLLOW_LPAREN_TOK_in_sygusGrammar1461 = { FOLLOW_LPAREN_TOK_in_sygusGrammar1461_bits, 2 }; |
961 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_LPAREN_TOK_in_sygusGrammar1471 */ |
962 |
|
static ANTLR3_BITWORD FOLLOW_LPAREN_TOK_in_sygusGrammar1471_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000020010100000) }; |
963 |
|
static ANTLR3_BITSET_LIST FOLLOW_LPAREN_TOK_in_sygusGrammar1471 = { FOLLOW_LPAREN_TOK_in_sygusGrammar1471_bits, 2 }; |
964 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_symbol_in_sygusGrammar1477 */ |
965 |
|
static ANTLR3_BITWORD FOLLOW_symbol_in_sygusGrammar1477_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000020010104000) }; |
966 |
|
static ANTLR3_BITSET_LIST FOLLOW_symbol_in_sygusGrammar1477 = { FOLLOW_symbol_in_sygusGrammar1477_bits, 2 }; |
967 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_sortSymbol_in_sygusGrammar1480 */ |
968 |
|
static ANTLR3_BITWORD FOLLOW_sortSymbol_in_sygusGrammar1480_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000004000) }; |
969 |
|
static ANTLR3_BITSET_LIST FOLLOW_sortSymbol_in_sygusGrammar1480 = { FOLLOW_sortSymbol_in_sygusGrammar1480_bits, 2 }; |
970 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_LPAREN_TOK_in_sygusGrammar1493 */ |
971 |
|
static ANTLR3_BITWORD FOLLOW_LPAREN_TOK_in_sygusGrammar1493_bits[] = { ANTLR3_UINT64_LIT(0x0000000008010000), ANTLR3_UINT64_LIT(0x0000024050104420) }; |
972 |
|
static ANTLR3_BITSET_LIST FOLLOW_LPAREN_TOK_in_sygusGrammar1493 = { FOLLOW_LPAREN_TOK_in_sygusGrammar1493_bits, 2 }; |
973 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_term_in_sygusGrammar1507 */ |
974 |
|
static ANTLR3_BITWORD FOLLOW_term_in_sygusGrammar1507_bits[] = { ANTLR3_UINT64_LIT(0x0000000008010000), ANTLR3_UINT64_LIT(0x0000024050904420) }; |
975 |
|
static ANTLR3_BITSET_LIST FOLLOW_term_in_sygusGrammar1507 = { FOLLOW_term_in_sygusGrammar1507_bits, 2 }; |
976 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_LPAREN_TOK_in_sygusGrammar1520 */ |
977 |
|
static ANTLR3_BITWORD FOLLOW_LPAREN_TOK_in_sygusGrammar1520_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000080000000) }; |
978 |
|
static ANTLR3_BITSET_LIST FOLLOW_LPAREN_TOK_in_sygusGrammar1520 = { FOLLOW_LPAREN_TOK_in_sygusGrammar1520_bits, 2 }; |
979 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_SYGUS_CONSTANT_TOK_in_sygusGrammar1522 */ |
980 |
|
static ANTLR3_BITWORD FOLLOW_SYGUS_CONSTANT_TOK_in_sygusGrammar1522_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000020010104000) }; |
981 |
|
static ANTLR3_BITSET_LIST FOLLOW_SYGUS_CONSTANT_TOK_in_sygusGrammar1522 = { FOLLOW_SYGUS_CONSTANT_TOK_in_sygusGrammar1522_bits, 2 }; |
982 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_sortSymbol_in_sygusGrammar1524 */ |
983 |
|
static ANTLR3_BITWORD FOLLOW_sortSymbol_in_sygusGrammar1524_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000800000) }; |
984 |
|
static ANTLR3_BITSET_LIST FOLLOW_sortSymbol_in_sygusGrammar1524 = { FOLLOW_sortSymbol_in_sygusGrammar1524_bits, 2 }; |
985 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_RPAREN_TOK_in_sygusGrammar1527 */ |
986 |
|
static ANTLR3_BITWORD FOLLOW_RPAREN_TOK_in_sygusGrammar1527_bits[] = { ANTLR3_UINT64_LIT(0x0000000008010000), ANTLR3_UINT64_LIT(0x0000024050904420) }; |
987 |
|
static ANTLR3_BITSET_LIST FOLLOW_RPAREN_TOK_in_sygusGrammar1527 = { FOLLOW_RPAREN_TOK_in_sygusGrammar1527_bits, 2 }; |
988 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_LPAREN_TOK_in_sygusGrammar1539 */ |
989 |
|
static ANTLR3_BITWORD FOLLOW_LPAREN_TOK_in_sygusGrammar1539_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000100000000) }; |
990 |
|
static ANTLR3_BITSET_LIST FOLLOW_LPAREN_TOK_in_sygusGrammar1539 = { FOLLOW_LPAREN_TOK_in_sygusGrammar1539_bits, 2 }; |
991 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_SYGUS_VARIABLE_TOK_in_sygusGrammar1541 */ |
992 |
|
static ANTLR3_BITWORD FOLLOW_SYGUS_VARIABLE_TOK_in_sygusGrammar1541_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000020010104000) }; |
993 |
|
static ANTLR3_BITSET_LIST FOLLOW_SYGUS_VARIABLE_TOK_in_sygusGrammar1541 = { FOLLOW_SYGUS_VARIABLE_TOK_in_sygusGrammar1541_bits, 2 }; |
994 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_sortSymbol_in_sygusGrammar1543 */ |
995 |
|
static ANTLR3_BITWORD FOLLOW_sortSymbol_in_sygusGrammar1543_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000800000) }; |
996 |
|
static ANTLR3_BITSET_LIST FOLLOW_sortSymbol_in_sygusGrammar1543 = { FOLLOW_sortSymbol_in_sygusGrammar1543_bits, 2 }; |
997 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_RPAREN_TOK_in_sygusGrammar1546 */ |
998 |
|
static ANTLR3_BITWORD FOLLOW_RPAREN_TOK_in_sygusGrammar1546_bits[] = { ANTLR3_UINT64_LIT(0x0000000008010000), ANTLR3_UINT64_LIT(0x0000024050904420) }; |
999 |
|
static ANTLR3_BITSET_LIST FOLLOW_RPAREN_TOK_in_sygusGrammar1546 = { FOLLOW_RPAREN_TOK_in_sygusGrammar1546_bits, 2 }; |
1000 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_RPAREN_TOK_in_sygusGrammar1561 */ |
1001 |
|
static ANTLR3_BITWORD FOLLOW_RPAREN_TOK_in_sygusGrammar1561_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000800000) }; |
1002 |
|
static ANTLR3_BITSET_LIST FOLLOW_RPAREN_TOK_in_sygusGrammar1561 = { FOLLOW_RPAREN_TOK_in_sygusGrammar1561_bits, 2 }; |
1003 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_RPAREN_TOK_in_sygusGrammar1567 */ |
1004 |
|
static ANTLR3_BITWORD FOLLOW_RPAREN_TOK_in_sygusGrammar1567_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000804000) }; |
1005 |
|
static ANTLR3_BITSET_LIST FOLLOW_RPAREN_TOK_in_sygusGrammar1567 = { FOLLOW_RPAREN_TOK_in_sygusGrammar1567_bits, 2 }; |
1006 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_RPAREN_TOK_in_sygusGrammar1582 */ |
1007 |
|
static ANTLR3_BITWORD FOLLOW_RPAREN_TOK_in_sygusGrammar1582_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
1008 |
|
static ANTLR3_BITSET_LIST FOLLOW_RPAREN_TOK_in_sygusGrammar1582 = { FOLLOW_RPAREN_TOK_in_sygusGrammar1582_bits, 1 }; |
1009 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_KEYWORD_in_setInfoInternal1603 */ |
1010 |
|
static ANTLR3_BITWORD FOLLOW_KEYWORD_in_setInfoInternal1603_bits[] = { ANTLR3_UINT64_LIT(0x7724F21208310020), ANTLR3_UINT64_LIT(0x000002007E7C542E) }; |
1011 |
|
static ANTLR3_BITSET_LIST FOLLOW_KEYWORD_in_setInfoInternal1603 = { FOLLOW_KEYWORD_in_setInfoInternal1603_bits, 2 }; |
1012 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_symbolicExpr_in_setInfoInternal1605 */ |
1013 |
|
static ANTLR3_BITWORD FOLLOW_symbolicExpr_in_setInfoInternal1605_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
1014 |
|
static ANTLR3_BITSET_LIST FOLLOW_symbolicExpr_in_setInfoInternal1605 = { FOLLOW_symbolicExpr_in_setInfoInternal1605_bits, 1 }; |
1015 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_keyword_in_setOptionInternal1631 */ |
1016 |
|
static ANTLR3_BITWORD FOLLOW_keyword_in_setOptionInternal1631_bits[] = { ANTLR3_UINT64_LIT(0x7724F21208310020), ANTLR3_UINT64_LIT(0x000002007E7C542E) }; |
1017 |
|
static ANTLR3_BITSET_LIST FOLLOW_keyword_in_setOptionInternal1631 = { FOLLOW_keyword_in_setOptionInternal1631_bits, 2 }; |
1018 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_symbolicExpr_in_setOptionInternal1634 */ |
1019 |
|
static ANTLR3_BITWORD FOLLOW_symbolicExpr_in_setOptionInternal1634_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
1020 |
|
static ANTLR3_BITSET_LIST FOLLOW_symbolicExpr_in_setOptionInternal1634 = { FOLLOW_symbolicExpr_in_setOptionInternal1634_bits, 1 }; |
1021 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_DECLARE_CONST_TOK_in_smt25Command1666 */ |
1022 |
|
static ANTLR3_BITWORD FOLLOW_DECLARE_CONST_TOK_in_smt25Command1666_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000020010100000) }; |
1023 |
|
static ANTLR3_BITSET_LIST FOLLOW_DECLARE_CONST_TOK_in_smt25Command1666 = { FOLLOW_DECLARE_CONST_TOK_in_smt25Command1666_bits, 2 }; |
1024 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_symbol_in_smt25Command1674 */ |
1025 |
|
static ANTLR3_BITWORD FOLLOW_symbol_in_smt25Command1674_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000020010104000) }; |
1026 |
|
static ANTLR3_BITSET_LIST FOLLOW_symbol_in_smt25Command1674 = { FOLLOW_symbol_in_smt25Command1674_bits, 2 }; |
1027 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_sortSymbol_in_smt25Command1687 */ |
1028 |
|
static ANTLR3_BITWORD FOLLOW_sortSymbol_in_smt25Command1687_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
1029 |
|
static ANTLR3_BITSET_LIST FOLLOW_sortSymbol_in_smt25Command1687 = { FOLLOW_sortSymbol_in_smt25Command1687_bits, 1 }; |
1030 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_GET_MODEL_TOK_in_smt25Command1707 */ |
1031 |
|
static ANTLR3_BITWORD FOLLOW_GET_MODEL_TOK_in_smt25Command1707_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
1032 |
|
static ANTLR3_BITSET_LIST FOLLOW_GET_MODEL_TOK_in_smt25Command1707 = { FOLLOW_GET_MODEL_TOK_in_smt25Command1707_bits, 1 }; |
1033 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_ECHO_TOK_in_smt25Command1728 */ |
1034 |
|
static ANTLR3_BITWORD FOLLOW_ECHO_TOK_in_smt25Command1728_bits[] = { ANTLR3_UINT64_LIT(0x7724F21208310022), ANTLR3_UINT64_LIT(0x000002007E7C142E) }; |
1035 |
|
static ANTLR3_BITSET_LIST FOLLOW_ECHO_TOK_in_smt25Command1728 = { FOLLOW_ECHO_TOK_in_smt25Command1728_bits, 2 }; |
1036 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_simpleSymbolicExpr_in_smt25Command1736 */ |
1037 |
|
static ANTLR3_BITWORD FOLLOW_simpleSymbolicExpr_in_smt25Command1736_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
1038 |
|
static ANTLR3_BITSET_LIST FOLLOW_simpleSymbolicExpr_in_smt25Command1736 = { FOLLOW_simpleSymbolicExpr_in_smt25Command1736_bits, 1 }; |
1039 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_RESET_TOK_in_smt25Command1772 */ |
1040 |
|
static ANTLR3_BITWORD FOLLOW_RESET_TOK_in_smt25Command1772_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
1041 |
|
static ANTLR3_BITSET_LIST FOLLOW_RESET_TOK_in_smt25Command1772 = { FOLLOW_RESET_TOK_in_smt25Command1772_bits, 1 }; |
1042 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_RESET_ASSERTIONS_TOK_in_smt25Command1790 */ |
1043 |
|
static ANTLR3_BITWORD FOLLOW_RESET_ASSERTIONS_TOK_in_smt25Command1790_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
1044 |
|
static ANTLR3_BITSET_LIST FOLLOW_RESET_ASSERTIONS_TOK_in_smt25Command1790 = { FOLLOW_RESET_ASSERTIONS_TOK_in_smt25Command1790_bits, 1 }; |
1045 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_DEFINE_FUN_REC_TOK_in_smt25Command1802 */ |
1046 |
|
static ANTLR3_BITWORD FOLLOW_DEFINE_FUN_REC_TOK_in_smt25Command1802_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000020010100000) }; |
1047 |
|
static ANTLR3_BITSET_LIST FOLLOW_DEFINE_FUN_REC_TOK_in_smt25Command1802 = { FOLLOW_DEFINE_FUN_REC_TOK_in_smt25Command1802_bits, 2 }; |
1048 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_symbol_in_smt25Command1814 */ |
1049 |
|
static ANTLR3_BITWORD FOLLOW_symbol_in_smt25Command1814_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000004000) }; |
1050 |
|
static ANTLR3_BITSET_LIST FOLLOW_symbol_in_smt25Command1814 = { FOLLOW_symbol_in_smt25Command1814_bits, 2 }; |
1051 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_LPAREN_TOK_in_smt25Command1827 */ |
1052 |
|
static ANTLR3_BITWORD FOLLOW_LPAREN_TOK_in_smt25Command1827_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000804000) }; |
1053 |
|
static ANTLR3_BITSET_LIST FOLLOW_LPAREN_TOK_in_smt25Command1827 = { FOLLOW_LPAREN_TOK_in_smt25Command1827_bits, 2 }; |
1054 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_sortedVarList_in_smt25Command1829 */ |
1055 |
|
static ANTLR3_BITWORD FOLLOW_sortedVarList_in_smt25Command1829_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000800000) }; |
1056 |
|
static ANTLR3_BITSET_LIST FOLLOW_sortedVarList_in_smt25Command1829 = { FOLLOW_sortedVarList_in_smt25Command1829_bits, 2 }; |
1057 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_RPAREN_TOK_in_smt25Command1832 */ |
1058 |
|
static ANTLR3_BITWORD FOLLOW_RPAREN_TOK_in_smt25Command1832_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000020010104000) }; |
1059 |
|
static ANTLR3_BITSET_LIST FOLLOW_RPAREN_TOK_in_smt25Command1832 = { FOLLOW_RPAREN_TOK_in_smt25Command1832_bits, 2 }; |
1060 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_sortSymbol_in_smt25Command1838 */ |
1061 |
|
static ANTLR3_BITWORD FOLLOW_sortSymbol_in_smt25Command1838_bits[] = { ANTLR3_UINT64_LIT(0x0000000008010000), ANTLR3_UINT64_LIT(0x0000024050104420) }; |
1062 |
|
static ANTLR3_BITSET_LIST FOLLOW_sortSymbol_in_smt25Command1838 = { FOLLOW_sortSymbol_in_smt25Command1838_bits, 2 }; |
1063 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_term_in_smt25Command1851 */ |
1064 |
|
static ANTLR3_BITWORD FOLLOW_term_in_smt25Command1851_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
1065 |
|
static ANTLR3_BITSET_LIST FOLLOW_term_in_smt25Command1851 = { FOLLOW_term_in_smt25Command1851_bits, 1 }; |
1066 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_DEFINE_FUNS_REC_TOK_in_smt25Command1864 */ |
1067 |
|
static ANTLR3_BITWORD FOLLOW_DEFINE_FUNS_REC_TOK_in_smt25Command1864_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000004000) }; |
1068 |
|
static ANTLR3_BITSET_LIST FOLLOW_DEFINE_FUNS_REC_TOK_in_smt25Command1864 = { FOLLOW_DEFINE_FUNS_REC_TOK_in_smt25Command1864_bits, 2 }; |
1069 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_LPAREN_TOK_in_smt25Command1876 */ |
1070 |
|
static ANTLR3_BITWORD FOLLOW_LPAREN_TOK_in_smt25Command1876_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000004000) }; |
1071 |
|
static ANTLR3_BITSET_LIST FOLLOW_LPAREN_TOK_in_smt25Command1876 = { FOLLOW_LPAREN_TOK_in_smt25Command1876_bits, 2 }; |
1072 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_LPAREN_TOK_in_smt25Command1884 */ |
1073 |
|
static ANTLR3_BITWORD FOLLOW_LPAREN_TOK_in_smt25Command1884_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000020010100000) }; |
1074 |
|
static ANTLR3_BITSET_LIST FOLLOW_LPAREN_TOK_in_smt25Command1884 = { FOLLOW_LPAREN_TOK_in_smt25Command1884_bits, 2 }; |
1075 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_symbol_in_smt25Command1892 */ |
1076 |
|
static ANTLR3_BITWORD FOLLOW_symbol_in_smt25Command1892_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000004000) }; |
1077 |
|
static ANTLR3_BITSET_LIST FOLLOW_symbol_in_smt25Command1892 = { FOLLOW_symbol_in_smt25Command1892_bits, 2 }; |
1078 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_LPAREN_TOK_in_smt25Command1909 */ |
1079 |
|
static ANTLR3_BITWORD FOLLOW_LPAREN_TOK_in_smt25Command1909_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000804000) }; |
1080 |
|
static ANTLR3_BITSET_LIST FOLLOW_LPAREN_TOK_in_smt25Command1909 = { FOLLOW_LPAREN_TOK_in_smt25Command1909_bits, 2 }; |
1081 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_sortedVarList_in_smt25Command1911 */ |
1082 |
|
static ANTLR3_BITWORD FOLLOW_sortedVarList_in_smt25Command1911_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000800000) }; |
1083 |
|
static ANTLR3_BITSET_LIST FOLLOW_sortedVarList_in_smt25Command1911 = { FOLLOW_sortedVarList_in_smt25Command1911_bits, 2 }; |
1084 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_RPAREN_TOK_in_smt25Command1914 */ |
1085 |
|
static ANTLR3_BITWORD FOLLOW_RPAREN_TOK_in_smt25Command1914_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000020010104000) }; |
1086 |
|
static ANTLR3_BITSET_LIST FOLLOW_RPAREN_TOK_in_smt25Command1914 = { FOLLOW_RPAREN_TOK_in_smt25Command1914_bits, 2 }; |
1087 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_sortSymbol_in_smt25Command1922 */ |
1088 |
|
static ANTLR3_BITWORD FOLLOW_sortSymbol_in_smt25Command1922_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000800000) }; |
1089 |
|
static ANTLR3_BITSET_LIST FOLLOW_sortSymbol_in_smt25Command1922 = { FOLLOW_sortSymbol_in_smt25Command1922_bits, 2 }; |
1090 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_RPAREN_TOK_in_smt25Command1939 */ |
1091 |
|
static ANTLR3_BITWORD FOLLOW_RPAREN_TOK_in_smt25Command1939_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000804000) }; |
1092 |
|
static ANTLR3_BITSET_LIST FOLLOW_RPAREN_TOK_in_smt25Command1939 = { FOLLOW_RPAREN_TOK_in_smt25Command1939_bits, 2 }; |
1093 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_RPAREN_TOK_in_smt25Command1952 */ |
1094 |
|
static ANTLR3_BITWORD FOLLOW_RPAREN_TOK_in_smt25Command1952_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000004000) }; |
1095 |
|
static ANTLR3_BITSET_LIST FOLLOW_RPAREN_TOK_in_smt25Command1952 = { FOLLOW_RPAREN_TOK_in_smt25Command1952_bits, 2 }; |
1096 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_LPAREN_TOK_in_smt25Command1958 */ |
1097 |
|
static ANTLR3_BITWORD FOLLOW_LPAREN_TOK_in_smt25Command1958_bits[] = { ANTLR3_UINT64_LIT(0x0000000008010000), ANTLR3_UINT64_LIT(0x0000024050104420) }; |
1098 |
|
static ANTLR3_BITSET_LIST FOLLOW_LPAREN_TOK_in_smt25Command1958 = { FOLLOW_LPAREN_TOK_in_smt25Command1958_bits, 2 }; |
1099 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_term_in_smt25Command1976 */ |
1100 |
|
static ANTLR3_BITWORD FOLLOW_term_in_smt25Command1976_bits[] = { ANTLR3_UINT64_LIT(0x0000000008010000), ANTLR3_UINT64_LIT(0x0000024050904420) }; |
1101 |
|
static ANTLR3_BITSET_LIST FOLLOW_term_in_smt25Command1976 = { FOLLOW_term_in_smt25Command1976_bits, 2 }; |
1102 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_RPAREN_TOK_in_smt25Command1996 */ |
1103 |
|
static ANTLR3_BITWORD FOLLOW_RPAREN_TOK_in_smt25Command1996_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
1104 |
|
static ANTLR3_BITSET_LIST FOLLOW_RPAREN_TOK_in_smt25Command1996 = { FOLLOW_RPAREN_TOK_in_smt25Command1996_bits, 1 }; |
1105 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_DECLARE_CODATATYPE_TOK_in_extendedCommand2027 */ |
1106 |
|
static ANTLR3_BITWORD FOLLOW_DECLARE_CODATATYPE_TOK_in_extendedCommand2027_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000020010100000) }; |
1107 |
|
static ANTLR3_BITSET_LIST FOLLOW_DECLARE_CODATATYPE_TOK_in_extendedCommand2027 = { FOLLOW_DECLARE_CODATATYPE_TOK_in_extendedCommand2027_bits, 2 }; |
1108 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_datatypeDefCommand_in_extendedCommand2029 */ |
1109 |
|
static ANTLR3_BITWORD FOLLOW_datatypeDefCommand_in_extendedCommand2029_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
1110 |
|
static ANTLR3_BITSET_LIST FOLLOW_datatypeDefCommand_in_extendedCommand2029 = { FOLLOW_datatypeDefCommand_in_extendedCommand2029_bits, 1 }; |
1111 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_DECLARE_CODATATYPES_TOK_in_extendedCommand2036 */ |
1112 |
|
static ANTLR3_BITWORD FOLLOW_DECLARE_CODATATYPES_TOK_in_extendedCommand2036_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000004000) }; |
1113 |
|
static ANTLR3_BITSET_LIST FOLLOW_DECLARE_CODATATYPES_TOK_in_extendedCommand2036 = { FOLLOW_DECLARE_CODATATYPES_TOK_in_extendedCommand2036_bits, 2 }; |
1114 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_datatypesDefCommand_in_extendedCommand2038 */ |
1115 |
|
static ANTLR3_BITWORD FOLLOW_datatypesDefCommand_in_extendedCommand2038_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
1116 |
|
static ANTLR3_BITSET_LIST FOLLOW_datatypesDefCommand_in_extendedCommand2038 = { FOLLOW_datatypesDefCommand_in_extendedCommand2038_bits, 1 }; |
1117 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_DECLARE_SORTS_TOK_in_extendedCommand2053 */ |
1118 |
|
static ANTLR3_BITWORD FOLLOW_DECLARE_SORTS_TOK_in_extendedCommand2053_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000004000) }; |
1119 |
|
static ANTLR3_BITSET_LIST FOLLOW_DECLARE_SORTS_TOK_in_extendedCommand2053 = { FOLLOW_DECLARE_SORTS_TOK_in_extendedCommand2053_bits, 2 }; |
1120 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_LPAREN_TOK_in_extendedCommand2065 */ |
1121 |
|
static ANTLR3_BITWORD FOLLOW_LPAREN_TOK_in_extendedCommand2065_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000020010100000) }; |
1122 |
|
static ANTLR3_BITSET_LIST FOLLOW_LPAREN_TOK_in_extendedCommand2065 = { FOLLOW_LPAREN_TOK_in_extendedCommand2065_bits, 2 }; |
1123 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_symbol_in_extendedCommand2073 */ |
1124 |
|
static ANTLR3_BITWORD FOLLOW_symbol_in_extendedCommand2073_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000020010900000) }; |
1125 |
|
static ANTLR3_BITSET_LIST FOLLOW_symbol_in_extendedCommand2073 = { FOLLOW_symbol_in_extendedCommand2073_bits, 2 }; |
1126 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_RPAREN_TOK_in_extendedCommand2095 */ |
1127 |
|
static ANTLR3_BITWORD FOLLOW_RPAREN_TOK_in_extendedCommand2095_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
1128 |
|
static ANTLR3_BITSET_LIST FOLLOW_RPAREN_TOK_in_extendedCommand2095 = { FOLLOW_RPAREN_TOK_in_extendedCommand2095_bits, 1 }; |
1129 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_DECLARE_FUNS_TOK_in_extendedCommand2108 */ |
1130 |
|
static ANTLR3_BITWORD FOLLOW_DECLARE_FUNS_TOK_in_extendedCommand2108_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000004000) }; |
1131 |
|
static ANTLR3_BITSET_LIST FOLLOW_DECLARE_FUNS_TOK_in_extendedCommand2108 = { FOLLOW_DECLARE_FUNS_TOK_in_extendedCommand2108_bits, 2 }; |
1132 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_LPAREN_TOK_in_extendedCommand2122 */ |
1133 |
|
static ANTLR3_BITWORD FOLLOW_LPAREN_TOK_in_extendedCommand2122_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000004000) }; |
1134 |
|
static ANTLR3_BITSET_LIST FOLLOW_LPAREN_TOK_in_extendedCommand2122 = { FOLLOW_LPAREN_TOK_in_extendedCommand2122_bits, 2 }; |
1135 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_LPAREN_TOK_in_extendedCommand2130 */ |
1136 |
|
static ANTLR3_BITWORD FOLLOW_LPAREN_TOK_in_extendedCommand2130_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000020010100000) }; |
1137 |
|
static ANTLR3_BITSET_LIST FOLLOW_LPAREN_TOK_in_extendedCommand2130 = { FOLLOW_LPAREN_TOK_in_extendedCommand2130_bits, 2 }; |
1138 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_symbol_in_extendedCommand2132 */ |
1139 |
|
static ANTLR3_BITWORD FOLLOW_symbol_in_extendedCommand2132_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000020010104000) }; |
1140 |
|
static ANTLR3_BITSET_LIST FOLLOW_symbol_in_extendedCommand2132 = { FOLLOW_symbol_in_extendedCommand2132_bits, 2 }; |
1141 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_nonemptySortList_in_extendedCommand2149 */ |
1142 |
|
static ANTLR3_BITWORD FOLLOW_nonemptySortList_in_extendedCommand2149_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000800000) }; |
1143 |
|
static ANTLR3_BITSET_LIST FOLLOW_nonemptySortList_in_extendedCommand2149 = { FOLLOW_nonemptySortList_in_extendedCommand2149_bits, 2 }; |
1144 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_RPAREN_TOK_in_extendedCommand2152 */ |
1145 |
|
static ANTLR3_BITWORD FOLLOW_RPAREN_TOK_in_extendedCommand2152_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000804000) }; |
1146 |
|
static ANTLR3_BITSET_LIST FOLLOW_RPAREN_TOK_in_extendedCommand2152 = { FOLLOW_RPAREN_TOK_in_extendedCommand2152_bits, 2 }; |
1147 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_RPAREN_TOK_in_extendedCommand2173 */ |
1148 |
|
static ANTLR3_BITWORD FOLLOW_RPAREN_TOK_in_extendedCommand2173_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
1149 |
|
static ANTLR3_BITSET_LIST FOLLOW_RPAREN_TOK_in_extendedCommand2173 = { FOLLOW_RPAREN_TOK_in_extendedCommand2173_bits, 1 }; |
1150 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_DECLARE_PREDS_TOK_in_extendedCommand2185 */ |
1151 |
|
static ANTLR3_BITWORD FOLLOW_DECLARE_PREDS_TOK_in_extendedCommand2185_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000004000) }; |
1152 |
|
static ANTLR3_BITSET_LIST FOLLOW_DECLARE_PREDS_TOK_in_extendedCommand2185 = { FOLLOW_DECLARE_PREDS_TOK_in_extendedCommand2185_bits, 2 }; |
1153 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_LPAREN_TOK_in_extendedCommand2199 */ |
1154 |
|
static ANTLR3_BITWORD FOLLOW_LPAREN_TOK_in_extendedCommand2199_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000004000) }; |
1155 |
|
static ANTLR3_BITSET_LIST FOLLOW_LPAREN_TOK_in_extendedCommand2199 = { FOLLOW_LPAREN_TOK_in_extendedCommand2199_bits, 2 }; |
1156 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_LPAREN_TOK_in_extendedCommand2207 */ |
1157 |
|
static ANTLR3_BITWORD FOLLOW_LPAREN_TOK_in_extendedCommand2207_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000020010100000) }; |
1158 |
|
static ANTLR3_BITSET_LIST FOLLOW_LPAREN_TOK_in_extendedCommand2207 = { FOLLOW_LPAREN_TOK_in_extendedCommand2207_bits, 2 }; |
1159 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_symbol_in_extendedCommand2209 */ |
1160 |
|
static ANTLR3_BITWORD FOLLOW_symbol_in_extendedCommand2209_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000020010904000) }; |
1161 |
|
static ANTLR3_BITSET_LIST FOLLOW_symbol_in_extendedCommand2209 = { FOLLOW_symbol_in_extendedCommand2209_bits, 2 }; |
1162 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_sortList_in_extendedCommand2226 */ |
1163 |
|
static ANTLR3_BITWORD FOLLOW_sortList_in_extendedCommand2226_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000800000) }; |
1164 |
|
static ANTLR3_BITSET_LIST FOLLOW_sortList_in_extendedCommand2226 = { FOLLOW_sortList_in_extendedCommand2226_bits, 2 }; |
1165 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_RPAREN_TOK_in_extendedCommand2229 */ |
1166 |
|
static ANTLR3_BITWORD FOLLOW_RPAREN_TOK_in_extendedCommand2229_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000804000) }; |
1167 |
|
static ANTLR3_BITSET_LIST FOLLOW_RPAREN_TOK_in_extendedCommand2229 = { FOLLOW_RPAREN_TOK_in_extendedCommand2229_bits, 2 }; |
1168 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_RPAREN_TOK_in_extendedCommand2250 */ |
1169 |
|
static ANTLR3_BITWORD FOLLOW_RPAREN_TOK_in_extendedCommand2250_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
1170 |
|
static ANTLR3_BITSET_LIST FOLLOW_RPAREN_TOK_in_extendedCommand2250 = { FOLLOW_RPAREN_TOK_in_extendedCommand2250_bits, 1 }; |
1171 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_DEFINE_TOK_in_extendedCommand2263 */ |
1172 |
|
static ANTLR3_BITWORD FOLLOW_DEFINE_TOK_in_extendedCommand2263_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000020010104000) }; |
1173 |
|
static ANTLR3_BITSET_LIST FOLLOW_DEFINE_TOK_in_extendedCommand2263 = { FOLLOW_DEFINE_TOK_in_extendedCommand2263_bits, 2 }; |
1174 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_symbol_in_extendedCommand2280 */ |
1175 |
|
static ANTLR3_BITWORD FOLLOW_symbol_in_extendedCommand2280_bits[] = { ANTLR3_UINT64_LIT(0x0000000008010000), ANTLR3_UINT64_LIT(0x0000024050104420) }; |
1176 |
|
static ANTLR3_BITSET_LIST FOLLOW_symbol_in_extendedCommand2280 = { FOLLOW_symbol_in_extendedCommand2280_bits, 2 }; |
1177 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_term_in_extendedCommand2297 */ |
1178 |
|
static ANTLR3_BITWORD FOLLOW_term_in_extendedCommand2297_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
1179 |
|
static ANTLR3_BITSET_LIST FOLLOW_term_in_extendedCommand2297 = { FOLLOW_term_in_extendedCommand2297_bits, 1 }; |
1180 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_LPAREN_TOK_in_extendedCommand2321 */ |
1181 |
|
static ANTLR3_BITWORD FOLLOW_LPAREN_TOK_in_extendedCommand2321_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000020010100000) }; |
1182 |
|
static ANTLR3_BITSET_LIST FOLLOW_LPAREN_TOK_in_extendedCommand2321 = { FOLLOW_LPAREN_TOK_in_extendedCommand2321_bits, 2 }; |
1183 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_symbol_in_extendedCommand2329 */ |
1184 |
|
static ANTLR3_BITWORD FOLLOW_symbol_in_extendedCommand2329_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000804000) }; |
1185 |
|
static ANTLR3_BITSET_LIST FOLLOW_symbol_in_extendedCommand2329 = { FOLLOW_symbol_in_extendedCommand2329_bits, 2 }; |
1186 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_sortedVarList_in_extendedCommand2346 */ |
1187 |
|
static ANTLR3_BITWORD FOLLOW_sortedVarList_in_extendedCommand2346_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000800000) }; |
1188 |
|
static ANTLR3_BITSET_LIST FOLLOW_sortedVarList_in_extendedCommand2346 = { FOLLOW_sortedVarList_in_extendedCommand2346_bits, 2 }; |
1189 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_RPAREN_TOK_in_extendedCommand2349 */ |
1190 |
|
static ANTLR3_BITWORD FOLLOW_RPAREN_TOK_in_extendedCommand2349_bits[] = { ANTLR3_UINT64_LIT(0x0000000008010000), ANTLR3_UINT64_LIT(0x0000024050104420) }; |
1191 |
|
static ANTLR3_BITSET_LIST FOLLOW_RPAREN_TOK_in_extendedCommand2349 = { FOLLOW_RPAREN_TOK_in_extendedCommand2349_bits, 2 }; |
1192 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_term_in_extendedCommand2365 */ |
1193 |
|
static ANTLR3_BITWORD FOLLOW_term_in_extendedCommand2365_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
1194 |
|
static ANTLR3_BITSET_LIST FOLLOW_term_in_extendedCommand2365 = { FOLLOW_term_in_extendedCommand2365_bits, 1 }; |
1195 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_DEFINE_CONST_TOK_in_extendedCommand2391 */ |
1196 |
|
static ANTLR3_BITWORD FOLLOW_DEFINE_CONST_TOK_in_extendedCommand2391_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000020010100000) }; |
1197 |
|
static ANTLR3_BITSET_LIST FOLLOW_DEFINE_CONST_TOK_in_extendedCommand2391 = { FOLLOW_DEFINE_CONST_TOK_in_extendedCommand2391_bits, 2 }; |
1198 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_symbol_in_extendedCommand2399 */ |
1199 |
|
static ANTLR3_BITWORD FOLLOW_symbol_in_extendedCommand2399_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000020010104000) }; |
1200 |
|
static ANTLR3_BITSET_LIST FOLLOW_symbol_in_extendedCommand2399 = { FOLLOW_symbol_in_extendedCommand2399_bits, 2 }; |
1201 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_sortSymbol_in_extendedCommand2412 */ |
1202 |
|
static ANTLR3_BITWORD FOLLOW_sortSymbol_in_extendedCommand2412_bits[] = { ANTLR3_UINT64_LIT(0x0000000008010000), ANTLR3_UINT64_LIT(0x0000024050104420) }; |
1203 |
|
static ANTLR3_BITSET_LIST FOLLOW_sortSymbol_in_extendedCommand2412 = { FOLLOW_sortSymbol_in_extendedCommand2412_bits, 2 }; |
1204 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_term_in_extendedCommand2419 */ |
1205 |
|
static ANTLR3_BITWORD FOLLOW_term_in_extendedCommand2419_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
1206 |
|
static ANTLR3_BITSET_LIST FOLLOW_term_in_extendedCommand2419 = { FOLLOW_term_in_extendedCommand2419_bits, 1 }; |
1207 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_SIMPLIFY_TOK_in_extendedCommand2433 */ |
1208 |
|
static ANTLR3_BITWORD FOLLOW_SIMPLIFY_TOK_in_extendedCommand2433_bits[] = { ANTLR3_UINT64_LIT(0x0000000008010000), ANTLR3_UINT64_LIT(0x0000024050104420) }; |
1209 |
|
static ANTLR3_BITSET_LIST FOLLOW_SIMPLIFY_TOK_in_extendedCommand2433 = { FOLLOW_SIMPLIFY_TOK_in_extendedCommand2433_bits, 2 }; |
1210 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_term_in_extendedCommand2441 */ |
1211 |
|
static ANTLR3_BITWORD FOLLOW_term_in_extendedCommand2441_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
1212 |
|
static ANTLR3_BITSET_LIST FOLLOW_term_in_extendedCommand2441 = { FOLLOW_term_in_extendedCommand2441_bits, 1 }; |
1213 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_GET_QE_TOK_in_extendedCommand2454 */ |
1214 |
|
static ANTLR3_BITWORD FOLLOW_GET_QE_TOK_in_extendedCommand2454_bits[] = { ANTLR3_UINT64_LIT(0x0000000008010000), ANTLR3_UINT64_LIT(0x0000024050104420) }; |
1215 |
|
static ANTLR3_BITSET_LIST FOLLOW_GET_QE_TOK_in_extendedCommand2454 = { FOLLOW_GET_QE_TOK_in_extendedCommand2454_bits, 2 }; |
1216 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_term_in_extendedCommand2462 */ |
1217 |
|
static ANTLR3_BITWORD FOLLOW_term_in_extendedCommand2462_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
1218 |
|
static ANTLR3_BITSET_LIST FOLLOW_term_in_extendedCommand2462 = { FOLLOW_term_in_extendedCommand2462_bits, 1 }; |
1219 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_GET_QE_DISJUNCT_TOK_in_extendedCommand2475 */ |
1220 |
|
static ANTLR3_BITWORD FOLLOW_GET_QE_DISJUNCT_TOK_in_extendedCommand2475_bits[] = { ANTLR3_UINT64_LIT(0x0000000008010000), ANTLR3_UINT64_LIT(0x0000024050104420) }; |
1221 |
|
static ANTLR3_BITSET_LIST FOLLOW_GET_QE_DISJUNCT_TOK_in_extendedCommand2475 = { FOLLOW_GET_QE_DISJUNCT_TOK_in_extendedCommand2475_bits, 2 }; |
1222 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_term_in_extendedCommand2483 */ |
1223 |
|
static ANTLR3_BITWORD FOLLOW_term_in_extendedCommand2483_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
1224 |
|
static ANTLR3_BITSET_LIST FOLLOW_term_in_extendedCommand2483 = { FOLLOW_term_in_extendedCommand2483_bits, 1 }; |
1225 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_GET_ABDUCT_TOK_in_extendedCommand2496 */ |
1226 |
|
static ANTLR3_BITWORD FOLLOW_GET_ABDUCT_TOK_in_extendedCommand2496_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000020010100000) }; |
1227 |
|
static ANTLR3_BITSET_LIST FOLLOW_GET_ABDUCT_TOK_in_extendedCommand2496 = { FOLLOW_GET_ABDUCT_TOK_in_extendedCommand2496_bits, 2 }; |
1228 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_symbol_in_extendedCommand2504 */ |
1229 |
|
static ANTLR3_BITWORD FOLLOW_symbol_in_extendedCommand2504_bits[] = { ANTLR3_UINT64_LIT(0x0000000008010000), ANTLR3_UINT64_LIT(0x0000024050104420) }; |
1230 |
|
static ANTLR3_BITSET_LIST FOLLOW_symbol_in_extendedCommand2504 = { FOLLOW_symbol_in_extendedCommand2504_bits, 2 }; |
1231 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_term_in_extendedCommand2511 */ |
1232 |
|
static ANTLR3_BITWORD FOLLOW_term_in_extendedCommand2511_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002), ANTLR3_UINT64_LIT(0x0000000000004000) }; |
1233 |
|
static ANTLR3_BITSET_LIST FOLLOW_term_in_extendedCommand2511 = { FOLLOW_term_in_extendedCommand2511_bits, 2 }; |
1234 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_sygusGrammar_in_extendedCommand2526 */ |
1235 |
|
static ANTLR3_BITWORD FOLLOW_sygusGrammar_in_extendedCommand2526_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
1236 |
|
static ANTLR3_BITSET_LIST FOLLOW_sygusGrammar_in_extendedCommand2526 = { FOLLOW_sygusGrammar_in_extendedCommand2526_bits, 1 }; |
1237 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_GET_INTERPOL_TOK_in_extendedCommand2546 */ |
1238 |
|
static ANTLR3_BITWORD FOLLOW_GET_INTERPOL_TOK_in_extendedCommand2546_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000020010100000) }; |
1239 |
|
static ANTLR3_BITSET_LIST FOLLOW_GET_INTERPOL_TOK_in_extendedCommand2546 = { FOLLOW_GET_INTERPOL_TOK_in_extendedCommand2546_bits, 2 }; |
1240 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_symbol_in_extendedCommand2554 */ |
1241 |
|
static ANTLR3_BITWORD FOLLOW_symbol_in_extendedCommand2554_bits[] = { ANTLR3_UINT64_LIT(0x0000000008010000), ANTLR3_UINT64_LIT(0x0000024050104420) }; |
1242 |
|
static ANTLR3_BITSET_LIST FOLLOW_symbol_in_extendedCommand2554 = { FOLLOW_symbol_in_extendedCommand2554_bits, 2 }; |
1243 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_term_in_extendedCommand2561 */ |
1244 |
|
static ANTLR3_BITWORD FOLLOW_term_in_extendedCommand2561_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002), ANTLR3_UINT64_LIT(0x0000000000004000) }; |
1245 |
|
static ANTLR3_BITSET_LIST FOLLOW_term_in_extendedCommand2561 = { FOLLOW_term_in_extendedCommand2561_bits, 2 }; |
1246 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_sygusGrammar_in_extendedCommand2576 */ |
1247 |
|
static ANTLR3_BITWORD FOLLOW_sygusGrammar_in_extendedCommand2576_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
1248 |
|
static ANTLR3_BITSET_LIST FOLLOW_sygusGrammar_in_extendedCommand2576 = { FOLLOW_sygusGrammar_in_extendedCommand2576_bits, 1 }; |
1249 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_DECLARE_HEAP_in_extendedCommand2596 */ |
1250 |
|
static ANTLR3_BITWORD FOLLOW_DECLARE_HEAP_in_extendedCommand2596_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000004000) }; |
1251 |
|
static ANTLR3_BITSET_LIST FOLLOW_DECLARE_HEAP_in_extendedCommand2596 = { FOLLOW_DECLARE_HEAP_in_extendedCommand2596_bits, 2 }; |
1252 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_LPAREN_TOK_in_extendedCommand2598 */ |
1253 |
|
static ANTLR3_BITWORD FOLLOW_LPAREN_TOK_in_extendedCommand2598_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000020010104000) }; |
1254 |
|
static ANTLR3_BITSET_LIST FOLLOW_LPAREN_TOK_in_extendedCommand2598 = { FOLLOW_LPAREN_TOK_in_extendedCommand2598_bits, 2 }; |
1255 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_sortSymbol_in_extendedCommand2604 */ |
1256 |
|
static ANTLR3_BITWORD FOLLOW_sortSymbol_in_extendedCommand2604_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000020010104000) }; |
1257 |
|
static ANTLR3_BITSET_LIST FOLLOW_sortSymbol_in_extendedCommand2604 = { FOLLOW_sortSymbol_in_extendedCommand2604_bits, 2 }; |
1258 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_sortSymbol_in_extendedCommand2611 */ |
1259 |
|
static ANTLR3_BITWORD FOLLOW_sortSymbol_in_extendedCommand2611_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000800000) }; |
1260 |
|
static ANTLR3_BITSET_LIST FOLLOW_sortSymbol_in_extendedCommand2611 = { FOLLOW_sortSymbol_in_extendedCommand2611_bits, 2 }; |
1261 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_RPAREN_TOK_in_extendedCommand2624 */ |
1262 |
|
static ANTLR3_BITWORD FOLLOW_RPAREN_TOK_in_extendedCommand2624_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
1263 |
|
static ANTLR3_BITSET_LIST FOLLOW_RPAREN_TOK_in_extendedCommand2624 = { FOLLOW_RPAREN_TOK_in_extendedCommand2624_bits, 1 }; |
1264 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_DECLARE_POOL_in_extendedCommand2630 */ |
1265 |
|
static ANTLR3_BITWORD FOLLOW_DECLARE_POOL_in_extendedCommand2630_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000020010100000) }; |
1266 |
|
static ANTLR3_BITSET_LIST FOLLOW_DECLARE_POOL_in_extendedCommand2630 = { FOLLOW_DECLARE_POOL_in_extendedCommand2630_bits, 2 }; |
1267 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_symbol_in_extendedCommand2638 */ |
1268 |
|
static ANTLR3_BITWORD FOLLOW_symbol_in_extendedCommand2638_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000020010104000) }; |
1269 |
|
static ANTLR3_BITSET_LIST FOLLOW_symbol_in_extendedCommand2638 = { FOLLOW_symbol_in_extendedCommand2638_bits, 2 }; |
1270 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_sortSymbol_in_extendedCommand2651 */ |
1271 |
|
static ANTLR3_BITWORD FOLLOW_sortSymbol_in_extendedCommand2651_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000004000) }; |
1272 |
|
static ANTLR3_BITSET_LIST FOLLOW_sortSymbol_in_extendedCommand2651 = { FOLLOW_sortSymbol_in_extendedCommand2651_bits, 2 }; |
1273 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_LPAREN_TOK_in_extendedCommand2658 */ |
1274 |
|
static ANTLR3_BITWORD FOLLOW_LPAREN_TOK_in_extendedCommand2658_bits[] = { ANTLR3_UINT64_LIT(0x0000000008010000), ANTLR3_UINT64_LIT(0x0000024050904420) }; |
1275 |
|
static ANTLR3_BITSET_LIST FOLLOW_LPAREN_TOK_in_extendedCommand2658 = { FOLLOW_LPAREN_TOK_in_extendedCommand2658_bits, 2 }; |
1276 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_term_in_extendedCommand2666 */ |
1277 |
|
static ANTLR3_BITWORD FOLLOW_term_in_extendedCommand2666_bits[] = { ANTLR3_UINT64_LIT(0x0000000008010000), ANTLR3_UINT64_LIT(0x0000024050904420) }; |
1278 |
|
static ANTLR3_BITSET_LIST FOLLOW_term_in_extendedCommand2666 = { FOLLOW_term_in_extendedCommand2666_bits, 2 }; |
1279 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_RPAREN_TOK_in_extendedCommand2684 */ |
1280 |
|
static ANTLR3_BITWORD FOLLOW_RPAREN_TOK_in_extendedCommand2684_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
1281 |
|
static ANTLR3_BITSET_LIST FOLLOW_RPAREN_TOK_in_extendedCommand2684 = { FOLLOW_RPAREN_TOK_in_extendedCommand2684_bits, 1 }; |
1282 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_BLOCK_MODEL_TOK_in_extendedCommand2696 */ |
1283 |
|
static ANTLR3_BITWORD FOLLOW_BLOCK_MODEL_TOK_in_extendedCommand2696_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
1284 |
|
static ANTLR3_BITSET_LIST FOLLOW_BLOCK_MODEL_TOK_in_extendedCommand2696 = { FOLLOW_BLOCK_MODEL_TOK_in_extendedCommand2696_bits, 1 }; |
1285 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_BLOCK_MODEL_VALUES_TOK_in_extendedCommand2711 */ |
1286 |
|
static ANTLR3_BITWORD FOLLOW_BLOCK_MODEL_VALUES_TOK_in_extendedCommand2711_bits[] = { ANTLR3_UINT64_LIT(0xFFFFFFFFFFFFFFF0), ANTLR3_UINT64_LIT(0x00001FFFFFFFFFFF) }; |
1287 |
|
static ANTLR3_BITSET_LIST FOLLOW_BLOCK_MODEL_VALUES_TOK_in_extendedCommand2711 = { FOLLOW_BLOCK_MODEL_VALUES_TOK_in_extendedCommand2711_bits, 2 }; |
1288 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_LPAREN_TOK_in_extendedCommand2721 */ |
1289 |
|
static ANTLR3_BITWORD FOLLOW_LPAREN_TOK_in_extendedCommand2721_bits[] = { ANTLR3_UINT64_LIT(0x0000000008010000), ANTLR3_UINT64_LIT(0x0000024050104420) }; |
1290 |
|
static ANTLR3_BITSET_LIST FOLLOW_LPAREN_TOK_in_extendedCommand2721 = { FOLLOW_LPAREN_TOK_in_extendedCommand2721_bits, 2 }; |
1291 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_termList_in_extendedCommand2723 */ |
1292 |
|
static ANTLR3_BITWORD FOLLOW_termList_in_extendedCommand2723_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000800000) }; |
1293 |
|
static ANTLR3_BITSET_LIST FOLLOW_termList_in_extendedCommand2723 = { FOLLOW_termList_in_extendedCommand2723_bits, 2 }; |
1294 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_RPAREN_TOK_in_extendedCommand2726 */ |
1295 |
|
static ANTLR3_BITWORD FOLLOW_RPAREN_TOK_in_extendedCommand2726_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
1296 |
|
static ANTLR3_BITSET_LIST FOLLOW_RPAREN_TOK_in_extendedCommand2726 = { FOLLOW_RPAREN_TOK_in_extendedCommand2726_bits, 1 }; |
1297 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_set_in_extendedCommand2742 */ |
1298 |
|
static ANTLR3_BITWORD FOLLOW_set_in_extendedCommand2742_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
1299 |
|
static ANTLR3_BITSET_LIST FOLLOW_set_in_extendedCommand2742 = { FOLLOW_set_in_extendedCommand2742_bits, 1 }; |
1300 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_symbol_in_datatypeDefCommand2778 */ |
1301 |
|
static ANTLR3_BITWORD FOLLOW_symbol_in_datatypeDefCommand2778_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000004000) }; |
1302 |
|
static ANTLR3_BITSET_LIST FOLLOW_symbol_in_datatypeDefCommand2778 = { FOLLOW_symbol_in_datatypeDefCommand2778_bits, 2 }; |
1303 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_datatypesDef_in_datatypeDefCommand2785 */ |
1304 |
|
static ANTLR3_BITWORD FOLLOW_datatypesDef_in_datatypeDefCommand2785_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
1305 |
|
static ANTLR3_BITSET_LIST FOLLOW_datatypesDef_in_datatypeDefCommand2785 = { FOLLOW_datatypesDef_in_datatypeDefCommand2785_bits, 1 }; |
1306 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_LPAREN_TOK_in_datatypesDefCommand2808 */ |
1307 |
|
static ANTLR3_BITWORD FOLLOW_LPAREN_TOK_in_datatypesDefCommand2808_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000804000) }; |
1308 |
|
static ANTLR3_BITSET_LIST FOLLOW_LPAREN_TOK_in_datatypesDefCommand2808 = { FOLLOW_LPAREN_TOK_in_datatypesDefCommand2808_bits, 2 }; |
1309 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_LPAREN_TOK_in_datatypesDefCommand2816 */ |
1310 |
|
static ANTLR3_BITWORD FOLLOW_LPAREN_TOK_in_datatypesDefCommand2816_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000020010100000) }; |
1311 |
|
static ANTLR3_BITSET_LIST FOLLOW_LPAREN_TOK_in_datatypesDefCommand2816 = { FOLLOW_LPAREN_TOK_in_datatypesDefCommand2816_bits, 2 }; |
1312 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_symbol_in_datatypesDefCommand2818 */ |
1313 |
|
static ANTLR3_BITWORD FOLLOW_symbol_in_datatypesDefCommand2818_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000000400) }; |
1314 |
|
static ANTLR3_BITSET_LIST FOLLOW_symbol_in_datatypesDefCommand2818 = { FOLLOW_symbol_in_datatypesDefCommand2818_bits, 2 }; |
1315 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_INTEGER_LITERAL_in_datatypesDefCommand2823 */ |
1316 |
|
static ANTLR3_BITWORD FOLLOW_INTEGER_LITERAL_in_datatypesDefCommand2823_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000800000) }; |
1317 |
|
static ANTLR3_BITSET_LIST FOLLOW_INTEGER_LITERAL_in_datatypesDefCommand2823 = { FOLLOW_INTEGER_LITERAL_in_datatypesDefCommand2823_bits, 2 }; |
1318 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_RPAREN_TOK_in_datatypesDefCommand2825 */ |
1319 |
|
static ANTLR3_BITWORD FOLLOW_RPAREN_TOK_in_datatypesDefCommand2825_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000804000) }; |
1320 |
|
static ANTLR3_BITSET_LIST FOLLOW_RPAREN_TOK_in_datatypesDefCommand2825 = { FOLLOW_RPAREN_TOK_in_datatypesDefCommand2825_bits, 2 }; |
1321 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_RPAREN_TOK_in_datatypesDefCommand2840 */ |
1322 |
|
static ANTLR3_BITWORD FOLLOW_RPAREN_TOK_in_datatypesDefCommand2840_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000004000) }; |
1323 |
|
static ANTLR3_BITSET_LIST FOLLOW_RPAREN_TOK_in_datatypesDefCommand2840 = { FOLLOW_RPAREN_TOK_in_datatypesDefCommand2840_bits, 2 }; |
1324 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_LPAREN_TOK_in_datatypesDefCommand2844 */ |
1325 |
|
static ANTLR3_BITWORD FOLLOW_LPAREN_TOK_in_datatypesDefCommand2844_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000004000) }; |
1326 |
|
static ANTLR3_BITSET_LIST FOLLOW_LPAREN_TOK_in_datatypesDefCommand2844 = { FOLLOW_LPAREN_TOK_in_datatypesDefCommand2844_bits, 2 }; |
1327 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_datatypesDef_in_datatypesDefCommand2848 */ |
1328 |
|
static ANTLR3_BITWORD FOLLOW_datatypesDef_in_datatypesDefCommand2848_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000800000) }; |
1329 |
|
static ANTLR3_BITSET_LIST FOLLOW_datatypesDef_in_datatypesDefCommand2848 = { FOLLOW_datatypesDef_in_datatypesDefCommand2848_bits, 2 }; |
1330 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_RPAREN_TOK_in_datatypesDefCommand2853 */ |
1331 |
|
static ANTLR3_BITWORD FOLLOW_RPAREN_TOK_in_datatypesDefCommand2853_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
1332 |
|
static ANTLR3_BITSET_LIST FOLLOW_RPAREN_TOK_in_datatypesDefCommand2853 = { FOLLOW_RPAREN_TOK_in_datatypesDefCommand2853_bits, 1 }; |
1333 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_LPAREN_TOK_in_datatypesDef2882 */ |
1334 |
|
static ANTLR3_BITWORD FOLLOW_LPAREN_TOK_in_datatypesDef2882_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000024000) }; |
1335 |
|
static ANTLR3_BITSET_LIST FOLLOW_LPAREN_TOK_in_datatypesDef2882 = { FOLLOW_LPAREN_TOK_in_datatypesDef2882_bits, 2 }; |
1336 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_PAR_TOK_in_datatypesDef2892 */ |
1337 |
|
static ANTLR3_BITWORD FOLLOW_PAR_TOK_in_datatypesDef2892_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000004000) }; |
1338 |
|
static ANTLR3_BITSET_LIST FOLLOW_PAR_TOK_in_datatypesDef2892 = { FOLLOW_PAR_TOK_in_datatypesDef2892_bits, 2 }; |
1339 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_LPAREN_TOK_in_datatypesDef2896 */ |
1340 |
|
static ANTLR3_BITWORD FOLLOW_LPAREN_TOK_in_datatypesDef2896_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000020010900000) }; |
1341 |
|
static ANTLR3_BITSET_LIST FOLLOW_LPAREN_TOK_in_datatypesDef2896 = { FOLLOW_LPAREN_TOK_in_datatypesDef2896_bits, 2 }; |
1342 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_symbol_in_datatypesDef2906 */ |
1343 |
|
static ANTLR3_BITWORD FOLLOW_symbol_in_datatypesDef2906_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000020010900000) }; |
1344 |
|
static ANTLR3_BITSET_LIST FOLLOW_symbol_in_datatypesDef2906 = { FOLLOW_symbol_in_datatypesDef2906_bits, 2 }; |
1345 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_RPAREN_TOK_in_datatypesDef2934 */ |
1346 |
|
static ANTLR3_BITWORD FOLLOW_RPAREN_TOK_in_datatypesDef2934_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000004000) }; |
1347 |
|
static ANTLR3_BITSET_LIST FOLLOW_RPAREN_TOK_in_datatypesDef2934 = { FOLLOW_RPAREN_TOK_in_datatypesDef2934_bits, 2 }; |
1348 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_LPAREN_TOK_in_datatypesDef2944 */ |
1349 |
|
static ANTLR3_BITWORD FOLLOW_LPAREN_TOK_in_datatypesDef2944_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000004000) }; |
1350 |
|
static ANTLR3_BITSET_LIST FOLLOW_LPAREN_TOK_in_datatypesDef2944 = { FOLLOW_LPAREN_TOK_in_datatypesDef2944_bits, 2 }; |
1351 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_LPAREN_TOK_in_datatypesDef2954 */ |
1352 |
|
static ANTLR3_BITWORD FOLLOW_LPAREN_TOK_in_datatypesDef2954_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000020010100000) }; |
1353 |
|
static ANTLR3_BITSET_LIST FOLLOW_LPAREN_TOK_in_datatypesDef2954 = { FOLLOW_LPAREN_TOK_in_datatypesDef2954_bits, 2 }; |
1354 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_constructorDef_in_datatypesDef2956 */ |
1355 |
|
static ANTLR3_BITWORD FOLLOW_constructorDef_in_datatypesDef2956_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000800000) }; |
1356 |
|
static ANTLR3_BITSET_LIST FOLLOW_constructorDef_in_datatypesDef2956 = { FOLLOW_constructorDef_in_datatypesDef2956_bits, 2 }; |
1357 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_RPAREN_TOK_in_datatypesDef2959 */ |
1358 |
|
static ANTLR3_BITWORD FOLLOW_RPAREN_TOK_in_datatypesDef2959_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000804000) }; |
1359 |
|
static ANTLR3_BITSET_LIST FOLLOW_RPAREN_TOK_in_datatypesDef2959 = { FOLLOW_RPAREN_TOK_in_datatypesDef2959_bits, 2 }; |
1360 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_RPAREN_TOK_in_datatypesDef2970 */ |
1361 |
|
static ANTLR3_BITWORD FOLLOW_RPAREN_TOK_in_datatypesDef2970_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000800000) }; |
1362 |
|
static ANTLR3_BITSET_LIST FOLLOW_RPAREN_TOK_in_datatypesDef2970 = { FOLLOW_RPAREN_TOK_in_datatypesDef2970_bits, 2 }; |
1363 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_LPAREN_TOK_in_datatypesDef2990 */ |
1364 |
|
static ANTLR3_BITWORD FOLLOW_LPAREN_TOK_in_datatypesDef2990_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000020010100000) }; |
1365 |
|
static ANTLR3_BITSET_LIST FOLLOW_LPAREN_TOK_in_datatypesDef2990 = { FOLLOW_LPAREN_TOK_in_datatypesDef2990_bits, 2 }; |
1366 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_constructorDef_in_datatypesDef2992 */ |
1367 |
|
static ANTLR3_BITWORD FOLLOW_constructorDef_in_datatypesDef2992_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000800000) }; |
1368 |
|
static ANTLR3_BITSET_LIST FOLLOW_constructorDef_in_datatypesDef2992 = { FOLLOW_constructorDef_in_datatypesDef2992_bits, 2 }; |
1369 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_RPAREN_TOK_in_datatypesDef2995 */ |
1370 |
|
static ANTLR3_BITWORD FOLLOW_RPAREN_TOK_in_datatypesDef2995_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000804000) }; |
1371 |
|
static ANTLR3_BITSET_LIST FOLLOW_RPAREN_TOK_in_datatypesDef2995 = { FOLLOW_RPAREN_TOK_in_datatypesDef2995_bits, 2 }; |
1372 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_RPAREN_TOK_in_datatypesDef3010 */ |
1373 |
|
static ANTLR3_BITWORD FOLLOW_RPAREN_TOK_in_datatypesDef3010_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002), ANTLR3_UINT64_LIT(0x0000000000004000) }; |
1374 |
|
static ANTLR3_BITSET_LIST FOLLOW_RPAREN_TOK_in_datatypesDef3010 = { FOLLOW_RPAREN_TOK_in_datatypesDef3010_bits, 2 }; |
1375 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_INTEGER_LITERAL_in_simpleSymbolicExprNoKeyword3035 */ |
1376 |
|
static ANTLR3_BITWORD FOLLOW_INTEGER_LITERAL_in_simpleSymbolicExprNoKeyword3035_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
1377 |
|
static ANTLR3_BITSET_LIST FOLLOW_INTEGER_LITERAL_in_simpleSymbolicExprNoKeyword3035 = { FOLLOW_INTEGER_LITERAL_in_simpleSymbolicExprNoKeyword3035_bits, 1 }; |
1378 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_DECIMAL_LITERAL_in_simpleSymbolicExprNoKeyword3047 */ |
1379 |
|
static ANTLR3_BITWORD FOLLOW_DECIMAL_LITERAL_in_simpleSymbolicExprNoKeyword3047_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
1380 |
|
static ANTLR3_BITSET_LIST FOLLOW_DECIMAL_LITERAL_in_simpleSymbolicExprNoKeyword3047 = { FOLLOW_DECIMAL_LITERAL_in_simpleSymbolicExprNoKeyword3047_bits, 1 }; |
1381 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_HEX_LITERAL_in_simpleSymbolicExprNoKeyword3059 */ |
1382 |
|
static ANTLR3_BITWORD FOLLOW_HEX_LITERAL_in_simpleSymbolicExprNoKeyword3059_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
1383 |
|
static ANTLR3_BITSET_LIST FOLLOW_HEX_LITERAL_in_simpleSymbolicExprNoKeyword3059 = { FOLLOW_HEX_LITERAL_in_simpleSymbolicExprNoKeyword3059_bits, 1 }; |
1384 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_BINARY_LITERAL_in_simpleSymbolicExprNoKeyword3071 */ |
1385 |
|
static ANTLR3_BITWORD FOLLOW_BINARY_LITERAL_in_simpleSymbolicExprNoKeyword3071_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
1386 |
|
static ANTLR3_BITSET_LIST FOLLOW_BINARY_LITERAL_in_simpleSymbolicExprNoKeyword3071 = { FOLLOW_BINARY_LITERAL_in_simpleSymbolicExprNoKeyword3071_bits, 1 }; |
1387 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_str_in_simpleSymbolicExprNoKeyword3083 */ |
1388 |
|
static ANTLR3_BITWORD FOLLOW_str_in_simpleSymbolicExprNoKeyword3083_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
1389 |
|
static ANTLR3_BITSET_LIST FOLLOW_str_in_simpleSymbolicExprNoKeyword3083 = { FOLLOW_str_in_simpleSymbolicExprNoKeyword3083_bits, 1 }; |
1390 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_symbol_in_simpleSymbolicExprNoKeyword3090 */ |
1391 |
|
static ANTLR3_BITWORD FOLLOW_symbol_in_simpleSymbolicExprNoKeyword3090_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
1392 |
|
static ANTLR3_BITSET_LIST FOLLOW_symbol_in_simpleSymbolicExprNoKeyword3090 = { FOLLOW_symbol_in_simpleSymbolicExprNoKeyword3090_bits, 1 }; |
1393 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_set_in_simpleSymbolicExprNoKeyword3099 */ |
1394 |
|
static ANTLR3_BITWORD FOLLOW_set_in_simpleSymbolicExprNoKeyword3099_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
1395 |
|
static ANTLR3_BITSET_LIST FOLLOW_set_in_simpleSymbolicExprNoKeyword3099 = { FOLLOW_set_in_simpleSymbolicExprNoKeyword3099_bits, 1 }; |
1396 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_KEYWORD_in_keyword3297 */ |
1397 |
|
static ANTLR3_BITWORD FOLLOW_KEYWORD_in_keyword3297_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
1398 |
|
static ANTLR3_BITSET_LIST FOLLOW_KEYWORD_in_keyword3297 = { FOLLOW_KEYWORD_in_keyword3297_bits, 1 }; |
1399 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_simpleSymbolicExprNoKeyword_in_simpleSymbolicExpr3317 */ |
1400 |
|
static ANTLR3_BITWORD FOLLOW_simpleSymbolicExprNoKeyword_in_simpleSymbolicExpr3317_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
1401 |
|
static ANTLR3_BITSET_LIST FOLLOW_simpleSymbolicExprNoKeyword_in_simpleSymbolicExpr3317 = { FOLLOW_simpleSymbolicExprNoKeyword_in_simpleSymbolicExpr3317_bits, 1 }; |
1402 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_KEYWORD_in_simpleSymbolicExpr3324 */ |
1403 |
|
static ANTLR3_BITWORD FOLLOW_KEYWORD_in_simpleSymbolicExpr3324_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
1404 |
|
static ANTLR3_BITSET_LIST FOLLOW_KEYWORD_in_simpleSymbolicExpr3324 = { FOLLOW_KEYWORD_in_simpleSymbolicExpr3324_bits, 1 }; |
1405 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_simpleSymbolicExpr_in_symbolicExpr3345 */ |
1406 |
|
static ANTLR3_BITWORD FOLLOW_simpleSymbolicExpr_in_symbolicExpr3345_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
1407 |
|
static ANTLR3_BITSET_LIST FOLLOW_simpleSymbolicExpr_in_symbolicExpr3345 = { FOLLOW_simpleSymbolicExpr_in_symbolicExpr3345_bits, 1 }; |
1408 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_LPAREN_TOK_in_symbolicExpr3358 */ |
1409 |
|
static ANTLR3_BITWORD FOLLOW_LPAREN_TOK_in_symbolicExpr3358_bits[] = { ANTLR3_UINT64_LIT(0x7724F21208310020), ANTLR3_UINT64_LIT(0x000002007EFC542E) }; |
1410 |
|
static ANTLR3_BITSET_LIST FOLLOW_LPAREN_TOK_in_symbolicExpr3358 = { FOLLOW_LPAREN_TOK_in_symbolicExpr3358_bits, 2 }; |
1411 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_symbolicExpr_in_symbolicExpr3366 */ |
1412 |
|
static ANTLR3_BITWORD FOLLOW_symbolicExpr_in_symbolicExpr3366_bits[] = { ANTLR3_UINT64_LIT(0x7724F21208310020), ANTLR3_UINT64_LIT(0x000002007EFC542E) }; |
1413 |
|
static ANTLR3_BITSET_LIST FOLLOW_symbolicExpr_in_symbolicExpr3366 = { FOLLOW_symbolicExpr_in_symbolicExpr3366_bits, 2 }; |
1414 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_RPAREN_TOK_in_symbolicExpr3374 */ |
1415 |
|
static ANTLR3_BITWORD FOLLOW_RPAREN_TOK_in_symbolicExpr3374_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
1416 |
|
static ANTLR3_BITSET_LIST FOLLOW_RPAREN_TOK_in_symbolicExpr3374 = { FOLLOW_RPAREN_TOK_in_symbolicExpr3374_bits, 1 }; |
1417 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_termNonVariable_in_term3399 */ |
1418 |
|
static ANTLR3_BITWORD FOLLOW_termNonVariable_in_term3399_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
1419 |
|
static ANTLR3_BITSET_LIST FOLLOW_termNonVariable_in_term3399 = { FOLLOW_termNonVariable_in_term3399_bits, 1 }; |
1420 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_qualIdentifier_in_term3411 */ |
1421 |
|
static ANTLR3_BITWORD FOLLOW_qualIdentifier_in_term3411_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
1422 |
|
static ANTLR3_BITSET_LIST FOLLOW_qualIdentifier_in_term3411 = { FOLLOW_qualIdentifier_in_term3411_bits, 1 }; |
1423 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_LPAREN_TOK_in_termNonVariable3439 */ |
1424 |
|
static ANTLR3_BITWORD FOLLOW_LPAREN_TOK_in_termNonVariable3439_bits[] = { ANTLR3_UINT64_LIT(0x0050000000000000) }; |
1425 |
|
static ANTLR3_BITSET_LIST FOLLOW_LPAREN_TOK_in_termNonVariable3439 = { FOLLOW_LPAREN_TOK_in_termNonVariable3439_bits, 1 }; |
1426 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_quantOp_in_termNonVariable3441 */ |
1427 |
|
static ANTLR3_BITWORD FOLLOW_quantOp_in_termNonVariable3441_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000004000) }; |
1428 |
|
static ANTLR3_BITSET_LIST FOLLOW_quantOp_in_termNonVariable3441 = { FOLLOW_quantOp_in_termNonVariable3441_bits, 2 }; |
1429 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_boundVarList_in_termNonVariable3454 */ |
1430 |
|
static ANTLR3_BITWORD FOLLOW_boundVarList_in_termNonVariable3454_bits[] = { ANTLR3_UINT64_LIT(0x0000000008010000), ANTLR3_UINT64_LIT(0x0000024050104420) }; |
1431 |
|
static ANTLR3_BITSET_LIST FOLLOW_boundVarList_in_termNonVariable3454 = { FOLLOW_boundVarList_in_termNonVariable3454_bits, 2 }; |
1432 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_term_in_termNonVariable3461 */ |
1433 |
|
static ANTLR3_BITWORD FOLLOW_term_in_termNonVariable3461_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000800000) }; |
1434 |
|
static ANTLR3_BITSET_LIST FOLLOW_term_in_termNonVariable3461 = { FOLLOW_term_in_termNonVariable3461_bits, 2 }; |
1435 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_RPAREN_TOK_in_termNonVariable3464 */ |
1436 |
|
static ANTLR3_BITWORD FOLLOW_RPAREN_TOK_in_termNonVariable3464_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
1437 |
|
static ANTLR3_BITSET_LIST FOLLOW_RPAREN_TOK_in_termNonVariable3464 = { FOLLOW_RPAREN_TOK_in_termNonVariable3464_bits, 1 }; |
1438 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_LPAREN_TOK_in_termNonVariable3476 */ |
1439 |
|
static ANTLR3_BITWORD FOLLOW_LPAREN_TOK_in_termNonVariable3476_bits[] = { ANTLR3_UINT64_LIT(0x0000000001000000) }; |
1440 |
|
static ANTLR3_BITSET_LIST FOLLOW_LPAREN_TOK_in_termNonVariable3476 = { FOLLOW_LPAREN_TOK_in_termNonVariable3476_bits, 1 }; |
1441 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_COMPREHENSION_TOK_in_termNonVariable3478 */ |
1442 |
|
static ANTLR3_BITWORD FOLLOW_COMPREHENSION_TOK_in_termNonVariable3478_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000004000) }; |
1443 |
|
static ANTLR3_BITSET_LIST FOLLOW_COMPREHENSION_TOK_in_termNonVariable3478 = { FOLLOW_COMPREHENSION_TOK_in_termNonVariable3478_bits, 2 }; |
1444 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_boundVarList_in_termNonVariable3490 */ |
1445 |
|
static ANTLR3_BITWORD FOLLOW_boundVarList_in_termNonVariable3490_bits[] = { ANTLR3_UINT64_LIT(0x0000000008010000), ANTLR3_UINT64_LIT(0x0000024050104420) }; |
1446 |
|
static ANTLR3_BITSET_LIST FOLLOW_boundVarList_in_termNonVariable3490 = { FOLLOW_boundVarList_in_termNonVariable3490_bits, 2 }; |
1447 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_term_in_termNonVariable3503 */ |
1448 |
|
static ANTLR3_BITWORD FOLLOW_term_in_termNonVariable3503_bits[] = { ANTLR3_UINT64_LIT(0x0000000008010000), ANTLR3_UINT64_LIT(0x0000024050104420) }; |
1449 |
|
static ANTLR3_BITSET_LIST FOLLOW_term_in_termNonVariable3503 = { FOLLOW_term_in_termNonVariable3503_bits, 2 }; |
1450 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_term_in_termNonVariable3512 */ |
1451 |
|
static ANTLR3_BITWORD FOLLOW_term_in_termNonVariable3512_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000800000) }; |
1452 |
|
static ANTLR3_BITSET_LIST FOLLOW_term_in_termNonVariable3512 = { FOLLOW_term_in_termNonVariable3512_bits, 2 }; |
1453 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_RPAREN_TOK_in_termNonVariable3521 */ |
1454 |
|
static ANTLR3_BITWORD FOLLOW_RPAREN_TOK_in_termNonVariable3521_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
1455 |
|
static ANTLR3_BITSET_LIST FOLLOW_RPAREN_TOK_in_termNonVariable3521 = { FOLLOW_RPAREN_TOK_in_termNonVariable3521_bits, 1 }; |
1456 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_LPAREN_TOK_in_termNonVariable3527 */ |
1457 |
|
static ANTLR3_BITWORD FOLLOW_LPAREN_TOK_in_termNonVariable3527_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000020010104000) }; |
1458 |
|
static ANTLR3_BITSET_LIST FOLLOW_LPAREN_TOK_in_termNonVariable3527 = { FOLLOW_LPAREN_TOK_in_termNonVariable3527_bits, 2 }; |
1459 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_qualIdentifier_in_termNonVariable3529 */ |
1460 |
|
static ANTLR3_BITWORD FOLLOW_qualIdentifier_in_termNonVariable3529_bits[] = { ANTLR3_UINT64_LIT(0x0000000008010000), ANTLR3_UINT64_LIT(0x0000024050104420) }; |
1461 |
|
static ANTLR3_BITSET_LIST FOLLOW_qualIdentifier_in_termNonVariable3529 = { FOLLOW_qualIdentifier_in_termNonVariable3529_bits, 2 }; |
1462 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_termList_in_termNonVariable3536 */ |
1463 |
|
static ANTLR3_BITWORD FOLLOW_termList_in_termNonVariable3536_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000800000) }; |
1464 |
|
static ANTLR3_BITSET_LIST FOLLOW_termList_in_termNonVariable3536 = { FOLLOW_termList_in_termNonVariable3536_bits, 2 }; |
1465 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_RPAREN_TOK_in_termNonVariable3539 */ |
1466 |
|
static ANTLR3_BITWORD FOLLOW_RPAREN_TOK_in_termNonVariable3539_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
1467 |
|
static ANTLR3_BITSET_LIST FOLLOW_RPAREN_TOK_in_termNonVariable3539 = { FOLLOW_RPAREN_TOK_in_termNonVariable3539_bits, 1 }; |
1468 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_LPAREN_TOK_in_termNonVariable3557 */ |
1469 |
|
static ANTLR3_BITWORD FOLLOW_LPAREN_TOK_in_termNonVariable3557_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000002000) }; |
1470 |
|
static ANTLR3_BITSET_LIST FOLLOW_LPAREN_TOK_in_termNonVariable3557 = { FOLLOW_LPAREN_TOK_in_termNonVariable3557_bits, 2 }; |
1471 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_LET_TOK_in_termNonVariable3566 */ |
1472 |
|
static ANTLR3_BITWORD FOLLOW_LET_TOK_in_termNonVariable3566_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000004000) }; |
1473 |
|
static ANTLR3_BITSET_LIST FOLLOW_LET_TOK_in_termNonVariable3566 = { FOLLOW_LET_TOK_in_termNonVariable3566_bits, 2 }; |
1474 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_LPAREN_TOK_in_termNonVariable3568 */ |
1475 |
|
static ANTLR3_BITWORD FOLLOW_LPAREN_TOK_in_termNonVariable3568_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000004000) }; |
1476 |
|
static ANTLR3_BITSET_LIST FOLLOW_LPAREN_TOK_in_termNonVariable3568 = { FOLLOW_LPAREN_TOK_in_termNonVariable3568_bits, 2 }; |
1477 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_LPAREN_TOK_in_termNonVariable3586 */ |
1478 |
|
static ANTLR3_BITWORD FOLLOW_LPAREN_TOK_in_termNonVariable3586_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000020010100000) }; |
1479 |
|
static ANTLR3_BITSET_LIST FOLLOW_LPAREN_TOK_in_termNonVariable3586 = { FOLLOW_LPAREN_TOK_in_termNonVariable3586_bits, 2 }; |
1480 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_symbol_in_termNonVariable3588 */ |
1481 |
|
static ANTLR3_BITWORD FOLLOW_symbol_in_termNonVariable3588_bits[] = { ANTLR3_UINT64_LIT(0x0000000008010000), ANTLR3_UINT64_LIT(0x0000024050104420) }; |
1482 |
|
static ANTLR3_BITSET_LIST FOLLOW_symbol_in_termNonVariable3588 = { FOLLOW_symbol_in_termNonVariable3588_bits, 2 }; |
1483 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_term_in_termNonVariable3599 */ |
1484 |
|
static ANTLR3_BITWORD FOLLOW_term_in_termNonVariable3599_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000800000) }; |
1485 |
|
static ANTLR3_BITSET_LIST FOLLOW_term_in_termNonVariable3599 = { FOLLOW_term_in_termNonVariable3599_bits, 2 }; |
1486 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_RPAREN_TOK_in_termNonVariable3610 */ |
1487 |
|
static ANTLR3_BITWORD FOLLOW_RPAREN_TOK_in_termNonVariable3610_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000804000) }; |
1488 |
|
static ANTLR3_BITSET_LIST FOLLOW_RPAREN_TOK_in_termNonVariable3610 = { FOLLOW_RPAREN_TOK_in_termNonVariable3610_bits, 2 }; |
1489 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_RPAREN_TOK_in_termNonVariable3653 */ |
1490 |
|
static ANTLR3_BITWORD FOLLOW_RPAREN_TOK_in_termNonVariable3653_bits[] = { ANTLR3_UINT64_LIT(0x0000000008010000), ANTLR3_UINT64_LIT(0x0000024050104420) }; |
1491 |
|
static ANTLR3_BITSET_LIST FOLLOW_RPAREN_TOK_in_termNonVariable3653 = { FOLLOW_RPAREN_TOK_in_termNonVariable3653_bits, 2 }; |
1492 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_term_in_termNonVariable3659 */ |
1493 |
|
static ANTLR3_BITWORD FOLLOW_term_in_termNonVariable3659_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000800000) }; |
1494 |
|
static ANTLR3_BITSET_LIST FOLLOW_term_in_termNonVariable3659 = { FOLLOW_term_in_termNonVariable3659_bits, 2 }; |
1495 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_RPAREN_TOK_in_termNonVariable3666 */ |
1496 |
|
static ANTLR3_BITWORD FOLLOW_RPAREN_TOK_in_termNonVariable3666_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
1497 |
|
static ANTLR3_BITSET_LIST FOLLOW_RPAREN_TOK_in_termNonVariable3666 = { FOLLOW_RPAREN_TOK_in_termNonVariable3666_bits, 1 }; |
1498 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_LPAREN_TOK_in_termNonVariable3684 */ |
1499 |
|
static ANTLR3_BITWORD FOLLOW_LPAREN_TOK_in_termNonVariable3684_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000008000) }; |
1500 |
|
static ANTLR3_BITSET_LIST FOLLOW_LPAREN_TOK_in_termNonVariable3684 = { FOLLOW_LPAREN_TOK_in_termNonVariable3684_bits, 2 }; |
1501 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_MATCH_TOK_in_termNonVariable3686 */ |
1502 |
|
static ANTLR3_BITWORD FOLLOW_MATCH_TOK_in_termNonVariable3686_bits[] = { ANTLR3_UINT64_LIT(0x0000000008010000), ANTLR3_UINT64_LIT(0x0000024050104420) }; |
1503 |
|
static ANTLR3_BITSET_LIST FOLLOW_MATCH_TOK_in_termNonVariable3686 = { FOLLOW_MATCH_TOK_in_termNonVariable3686_bits, 2 }; |
1504 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_term_in_termNonVariable3688 */ |
1505 |
|
static ANTLR3_BITWORD FOLLOW_term_in_termNonVariable3688_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000004000) }; |
1506 |
|
static ANTLR3_BITSET_LIST FOLLOW_term_in_termNonVariable3688 = { FOLLOW_term_in_termNonVariable3688_bits, 2 }; |
1507 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_LPAREN_TOK_in_termNonVariable3697 */ |
1508 |
|
static ANTLR3_BITWORD FOLLOW_LPAREN_TOK_in_termNonVariable3697_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000004000) }; |
1509 |
|
static ANTLR3_BITSET_LIST FOLLOW_LPAREN_TOK_in_termNonVariable3697 = { FOLLOW_LPAREN_TOK_in_termNonVariable3697_bits, 2 }; |
1510 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_LPAREN_TOK_in_termNonVariable3718 */ |
1511 |
|
static ANTLR3_BITWORD FOLLOW_LPAREN_TOK_in_termNonVariable3718_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000004000) }; |
1512 |
|
static ANTLR3_BITSET_LIST FOLLOW_LPAREN_TOK_in_termNonVariable3718 = { FOLLOW_LPAREN_TOK_in_termNonVariable3718_bits, 2 }; |
1513 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_LPAREN_TOK_in_termNonVariable3720 */ |
1514 |
|
static ANTLR3_BITWORD FOLLOW_LPAREN_TOK_in_termNonVariable3720_bits[] = { ANTLR3_UINT64_LIT(0x0000000008010000), ANTLR3_UINT64_LIT(0x0000024050104420) }; |
1515 |
|
static ANTLR3_BITSET_LIST FOLLOW_LPAREN_TOK_in_termNonVariable3720 = { FOLLOW_LPAREN_TOK_in_termNonVariable3720_bits, 2 }; |
1516 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_term_in_termNonVariable3722 */ |
1517 |
|
static ANTLR3_BITWORD FOLLOW_term_in_termNonVariable3722_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000020010900000) }; |
1518 |
|
static ANTLR3_BITSET_LIST FOLLOW_term_in_termNonVariable3722 = { FOLLOW_term_in_termNonVariable3722_bits, 2 }; |
1519 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_symbol_in_termNonVariable3746 */ |
1520 |
|
static ANTLR3_BITWORD FOLLOW_symbol_in_termNonVariable3746_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000020010900000) }; |
1521 |
|
static ANTLR3_BITSET_LIST FOLLOW_symbol_in_termNonVariable3746 = { FOLLOW_symbol_in_termNonVariable3746_bits, 2 }; |
1522 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_RPAREN_TOK_in_termNonVariable3770 */ |
1523 |
|
static ANTLR3_BITWORD FOLLOW_RPAREN_TOK_in_termNonVariable3770_bits[] = { ANTLR3_UINT64_LIT(0x0000000008010000), ANTLR3_UINT64_LIT(0x0000024050104420) }; |
1524 |
|
static ANTLR3_BITSET_LIST FOLLOW_RPAREN_TOK_in_termNonVariable3770 = { FOLLOW_RPAREN_TOK_in_termNonVariable3770_bits, 2 }; |
1525 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_term_in_termNonVariable3772 */ |
1526 |
|
static ANTLR3_BITWORD FOLLOW_term_in_termNonVariable3772_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000800000) }; |
1527 |
|
static ANTLR3_BITSET_LIST FOLLOW_term_in_termNonVariable3772 = { FOLLOW_term_in_termNonVariable3772_bits, 2 }; |
1528 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_RPAREN_TOK_in_termNonVariable3785 */ |
1529 |
|
static ANTLR3_BITWORD FOLLOW_RPAREN_TOK_in_termNonVariable3785_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000804000) }; |
1530 |
|
static ANTLR3_BITSET_LIST FOLLOW_RPAREN_TOK_in_termNonVariable3785 = { FOLLOW_RPAREN_TOK_in_termNonVariable3785_bits, 2 }; |
1531 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_LPAREN_TOK_in_termNonVariable3802 */ |
1532 |
|
static ANTLR3_BITWORD FOLLOW_LPAREN_TOK_in_termNonVariable3802_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000020010100000) }; |
1533 |
|
static ANTLR3_BITSET_LIST FOLLOW_LPAREN_TOK_in_termNonVariable3802 = { FOLLOW_LPAREN_TOK_in_termNonVariable3802_bits, 2 }; |
1534 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_symbol_in_termNonVariable3804 */ |
1535 |
|
static ANTLR3_BITWORD FOLLOW_symbol_in_termNonVariable3804_bits[] = { ANTLR3_UINT64_LIT(0x0000000008010000), ANTLR3_UINT64_LIT(0x0000024050104420) }; |
1536 |
|
static ANTLR3_BITSET_LIST FOLLOW_symbol_in_termNonVariable3804 = { FOLLOW_symbol_in_termNonVariable3804_bits, 2 }; |
1537 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_term_in_termNonVariable3817 */ |
1538 |
|
static ANTLR3_BITWORD FOLLOW_term_in_termNonVariable3817_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000800000) }; |
1539 |
|
static ANTLR3_BITSET_LIST FOLLOW_term_in_termNonVariable3817 = { FOLLOW_term_in_termNonVariable3817_bits, 2 }; |
1540 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_RPAREN_TOK_in_termNonVariable3830 */ |
1541 |
|
static ANTLR3_BITWORD FOLLOW_RPAREN_TOK_in_termNonVariable3830_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000804000) }; |
1542 |
|
static ANTLR3_BITSET_LIST FOLLOW_RPAREN_TOK_in_termNonVariable3830 = { FOLLOW_RPAREN_TOK_in_termNonVariable3830_bits, 2 }; |
1543 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_RPAREN_TOK_in_termNonVariable3843 */ |
1544 |
|
static ANTLR3_BITWORD FOLLOW_RPAREN_TOK_in_termNonVariable3843_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000800000) }; |
1545 |
|
static ANTLR3_BITSET_LIST FOLLOW_RPAREN_TOK_in_termNonVariable3843 = { FOLLOW_RPAREN_TOK_in_termNonVariable3843_bits, 2 }; |
1546 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_RPAREN_TOK_in_termNonVariable3845 */ |
1547 |
|
static ANTLR3_BITWORD FOLLOW_RPAREN_TOK_in_termNonVariable3845_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
1548 |
|
static ANTLR3_BITSET_LIST FOLLOW_RPAREN_TOK_in_termNonVariable3845 = { FOLLOW_RPAREN_TOK_in_termNonVariable3845_bits, 1 }; |
1549 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_LPAREN_TOK_in_termNonVariable3861 */ |
1550 |
|
static ANTLR3_BITWORD FOLLOW_LPAREN_TOK_in_termNonVariable3861_bits[] = { ANTLR3_UINT64_LIT(0x0000000000008000) }; |
1551 |
|
static ANTLR3_BITSET_LIST FOLLOW_LPAREN_TOK_in_termNonVariable3861 = { FOLLOW_LPAREN_TOK_in_termNonVariable3861_bits, 1 }; |
1552 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_ATTRIBUTE_TOK_in_termNonVariable3863 */ |
1553 |
|
static ANTLR3_BITWORD FOLLOW_ATTRIBUTE_TOK_in_termNonVariable3863_bits[] = { ANTLR3_UINT64_LIT(0x0000000008010000), ANTLR3_UINT64_LIT(0x0000024050104420) }; |
1554 |
|
static ANTLR3_BITSET_LIST FOLLOW_ATTRIBUTE_TOK_in_termNonVariable3863 = { FOLLOW_ATTRIBUTE_TOK_in_termNonVariable3863_bits, 2 }; |
1555 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_term_in_termNonVariable3865 */ |
1556 |
|
static ANTLR3_BITWORD FOLLOW_term_in_termNonVariable3865_bits[] = { ANTLR3_UINT64_LIT(0x0000000000007F80), ANTLR3_UINT64_LIT(0x0000000000001000) }; |
1557 |
|
static ANTLR3_BITSET_LIST FOLLOW_term_in_termNonVariable3865 = { FOLLOW_term_in_termNonVariable3865_bits, 2 }; |
1558 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_attribute_in_termNonVariable3874 */ |
1559 |
|
static ANTLR3_BITWORD FOLLOW_attribute_in_termNonVariable3874_bits[] = { ANTLR3_UINT64_LIT(0x0000000000007F80), ANTLR3_UINT64_LIT(0x0000000000801000) }; |
1560 |
|
static ANTLR3_BITSET_LIST FOLLOW_attribute_in_termNonVariable3874 = { FOLLOW_attribute_in_termNonVariable3874_bits, 2 }; |
1561 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_RPAREN_TOK_in_termNonVariable3892 */ |
1562 |
|
static ANTLR3_BITWORD FOLLOW_RPAREN_TOK_in_termNonVariable3892_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
1563 |
|
static ANTLR3_BITSET_LIST FOLLOW_RPAREN_TOK_in_termNonVariable3892 = { FOLLOW_RPAREN_TOK_in_termNonVariable3892_bits, 1 }; |
1564 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_LPAREN_TOK_in_termNonVariable3910 */ |
1565 |
|
static ANTLR3_BITWORD FOLLOW_LPAREN_TOK_in_termNonVariable3910_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000000080) }; |
1566 |
|
static ANTLR3_BITSET_LIST FOLLOW_LPAREN_TOK_in_termNonVariable3910 = { FOLLOW_LPAREN_TOK_in_termNonVariable3910_bits, 2 }; |
1567 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_HO_LAMBDA_TOK_in_termNonVariable3912 */ |
1568 |
|
static ANTLR3_BITWORD FOLLOW_HO_LAMBDA_TOK_in_termNonVariable3912_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000004000) }; |
1569 |
|
static ANTLR3_BITSET_LIST FOLLOW_HO_LAMBDA_TOK_in_termNonVariable3912 = { FOLLOW_HO_LAMBDA_TOK_in_termNonVariable3912_bits, 2 }; |
1570 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_boundVarList_in_termNonVariable3924 */ |
1571 |
|
static ANTLR3_BITWORD FOLLOW_boundVarList_in_termNonVariable3924_bits[] = { ANTLR3_UINT64_LIT(0x0000000008010000), ANTLR3_UINT64_LIT(0x0000024050104420) }; |
1572 |
|
static ANTLR3_BITSET_LIST FOLLOW_boundVarList_in_termNonVariable3924 = { FOLLOW_boundVarList_in_termNonVariable3924_bits, 2 }; |
1573 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_term_in_termNonVariable3931 */ |
1574 |
|
static ANTLR3_BITWORD FOLLOW_term_in_termNonVariable3931_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000800000) }; |
1575 |
|
static ANTLR3_BITSET_LIST FOLLOW_term_in_termNonVariable3931 = { FOLLOW_term_in_termNonVariable3931_bits, 2 }; |
1576 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_RPAREN_TOK_in_termNonVariable3934 */ |
1577 |
|
static ANTLR3_BITWORD FOLLOW_RPAREN_TOK_in_termNonVariable3934_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
1578 |
|
static ANTLR3_BITSET_LIST FOLLOW_RPAREN_TOK_in_termNonVariable3934 = { FOLLOW_RPAREN_TOK_in_termNonVariable3934_bits, 1 }; |
1579 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_LPAREN_TOK_in_termNonVariable3946 */ |
1580 |
|
static ANTLR3_BITWORD FOLLOW_LPAREN_TOK_in_termNonVariable3946_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000004000000000) }; |
1581 |
|
static ANTLR3_BITSET_LIST FOLLOW_LPAREN_TOK_in_termNonVariable3946 = { FOLLOW_LPAREN_TOK_in_termNonVariable3946_bits, 2 }; |
1582 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_TUPLE_CONST_TOK_in_termNonVariable3948 */ |
1583 |
|
static ANTLR3_BITWORD FOLLOW_TUPLE_CONST_TOK_in_termNonVariable3948_bits[] = { ANTLR3_UINT64_LIT(0x0000000008010000), ANTLR3_UINT64_LIT(0x0000024050104420) }; |
1584 |
|
static ANTLR3_BITSET_LIST FOLLOW_TUPLE_CONST_TOK_in_termNonVariable3948 = { FOLLOW_TUPLE_CONST_TOK_in_termNonVariable3948_bits, 2 }; |
1585 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_termList_in_termNonVariable3950 */ |
1586 |
|
static ANTLR3_BITWORD FOLLOW_termList_in_termNonVariable3950_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000800000) }; |
1587 |
|
static ANTLR3_BITSET_LIST FOLLOW_termList_in_termNonVariable3950 = { FOLLOW_termList_in_termNonVariable3950_bits, 2 }; |
1588 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_RPAREN_TOK_in_termNonVariable3953 */ |
1589 |
|
static ANTLR3_BITWORD FOLLOW_RPAREN_TOK_in_termNonVariable3953_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
1590 |
|
static ANTLR3_BITSET_LIST FOLLOW_RPAREN_TOK_in_termNonVariable3953 = { FOLLOW_RPAREN_TOK_in_termNonVariable3953_bits, 1 }; |
1591 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_LPAREN_TOK_in_termNonVariable3963 */ |
1592 |
|
static ANTLR3_BITWORD FOLLOW_LPAREN_TOK_in_termNonVariable3963_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000008000000000) }; |
1593 |
|
static ANTLR3_BITSET_LIST FOLLOW_LPAREN_TOK_in_termNonVariable3963 = { FOLLOW_LPAREN_TOK_in_termNonVariable3963_bits, 2 }; |
1594 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_TUPLE_PROJECT_TOK_in_termNonVariable3965 */ |
1595 |
|
static ANTLR3_BITWORD FOLLOW_TUPLE_PROJECT_TOK_in_termNonVariable3965_bits[] = { ANTLR3_UINT64_LIT(0x0000000008010000), ANTLR3_UINT64_LIT(0x0000024050104420) }; |
1596 |
|
static ANTLR3_BITSET_LIST FOLLOW_TUPLE_PROJECT_TOK_in_termNonVariable3965 = { FOLLOW_TUPLE_PROJECT_TOK_in_termNonVariable3965_bits, 2 }; |
1597 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_term_in_termNonVariable3967 */ |
1598 |
|
static ANTLR3_BITWORD FOLLOW_term_in_termNonVariable3967_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000800000) }; |
1599 |
|
static ANTLR3_BITSET_LIST FOLLOW_term_in_termNonVariable3967 = { FOLLOW_term_in_termNonVariable3967_bits, 2 }; |
1600 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_RPAREN_TOK_in_termNonVariable3970 */ |
1601 |
|
static ANTLR3_BITWORD FOLLOW_RPAREN_TOK_in_termNonVariable3970_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
1602 |
|
static ANTLR3_BITSET_LIST FOLLOW_RPAREN_TOK_in_termNonVariable3970 = { FOLLOW_RPAREN_TOK_in_termNonVariable3970_bits, 1 }; |
1603 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_termAtomic_in_termNonVariable3986 */ |
1604 |
|
static ANTLR3_BITWORD FOLLOW_termAtomic_in_termNonVariable3986_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
1605 |
|
static ANTLR3_BITSET_LIST FOLLOW_termAtomic_in_termNonVariable3986 = { FOLLOW_termAtomic_in_termNonVariable3986_bits, 1 }; |
1606 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_identifier_in_qualIdentifier4009 */ |
1607 |
|
static ANTLR3_BITWORD FOLLOW_identifier_in_qualIdentifier4009_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
1608 |
|
static ANTLR3_BITSET_LIST FOLLOW_identifier_in_qualIdentifier4009 = { FOLLOW_identifier_in_qualIdentifier4009_bits, 1 }; |
1609 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_LPAREN_TOK_in_qualIdentifier4016 */ |
1610 |
|
static ANTLR3_BITWORD FOLLOW_LPAREN_TOK_in_qualIdentifier4016_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000040) }; |
1611 |
|
static ANTLR3_BITSET_LIST FOLLOW_LPAREN_TOK_in_qualIdentifier4016 = { FOLLOW_LPAREN_TOK_in_qualIdentifier4016_bits, 1 }; |
1612 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_AS_TOK_in_qualIdentifier4018 */ |
1613 |
|
static ANTLR3_BITWORD FOLLOW_AS_TOK_in_qualIdentifier4018_bits[] = { ANTLR3_UINT64_LIT(0x0000000004000000), ANTLR3_UINT64_LIT(0x0000020010104000) }; |
1614 |
|
static ANTLR3_BITSET_LIST FOLLOW_AS_TOK_in_qualIdentifier4018 = { FOLLOW_AS_TOK_in_qualIdentifier4018_bits, 2 }; |
1615 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_CONST_TOK_in_qualIdentifier4026 */ |
1616 |
|
static ANTLR3_BITWORD FOLLOW_CONST_TOK_in_qualIdentifier4026_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000020010104000) }; |
1617 |
|
static ANTLR3_BITSET_LIST FOLLOW_CONST_TOK_in_qualIdentifier4026 = { FOLLOW_CONST_TOK_in_qualIdentifier4026_bits, 2 }; |
1618 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_sortSymbol_in_qualIdentifier4028 */ |
1619 |
|
static ANTLR3_BITWORD FOLLOW_sortSymbol_in_qualIdentifier4028_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000800000) }; |
1620 |
|
static ANTLR3_BITSET_LIST FOLLOW_sortSymbol_in_qualIdentifier4028 = { FOLLOW_sortSymbol_in_qualIdentifier4028_bits, 2 }; |
1621 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_identifier_in_qualIdentifier4045 */ |
1622 |
|
static ANTLR3_BITWORD FOLLOW_identifier_in_qualIdentifier4045_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000020010104000) }; |
1623 |
|
static ANTLR3_BITSET_LIST FOLLOW_identifier_in_qualIdentifier4045 = { FOLLOW_identifier_in_qualIdentifier4045_bits, 2 }; |
1624 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_sortSymbol_in_qualIdentifier4054 */ |
1625 |
|
static ANTLR3_BITWORD FOLLOW_sortSymbol_in_qualIdentifier4054_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000800000) }; |
1626 |
|
static ANTLR3_BITSET_LIST FOLLOW_sortSymbol_in_qualIdentifier4054 = { FOLLOW_sortSymbol_in_qualIdentifier4054_bits, 2 }; |
1627 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_RPAREN_TOK_in_qualIdentifier4075 */ |
1628 |
|
static ANTLR3_BITWORD FOLLOW_RPAREN_TOK_in_qualIdentifier4075_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
1629 |
|
static ANTLR3_BITSET_LIST FOLLOW_RPAREN_TOK_in_qualIdentifier4075 = { FOLLOW_RPAREN_TOK_in_qualIdentifier4075_bits, 1 }; |
1630 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_functionName_in_identifier4094 */ |
1631 |
|
static ANTLR3_BITWORD FOLLOW_functionName_in_identifier4094_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
1632 |
|
static ANTLR3_BITSET_LIST FOLLOW_functionName_in_identifier4094 = { FOLLOW_functionName_in_identifier4094_bits, 1 }; |
1633 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_LPAREN_TOK_in_identifier4106 */ |
1634 |
|
static ANTLR3_BITWORD FOLLOW_LPAREN_TOK_in_identifier4106_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000000200) }; |
1635 |
|
static ANTLR3_BITSET_LIST FOLLOW_LPAREN_TOK_in_identifier4106 = { FOLLOW_LPAREN_TOK_in_identifier4106_bits, 2 }; |
1636 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_INDEX_TOK_in_identifier4108 */ |
1637 |
|
static ANTLR3_BITWORD FOLLOW_INDEX_TOK_in_identifier4108_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x000005A010000000) }; |
1638 |
|
static ANTLR3_BITSET_LIST FOLLOW_INDEX_TOK_in_identifier4108 = { FOLLOW_INDEX_TOK_in_identifier4108_bits, 2 }; |
1639 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_TESTER_TOK_in_identifier4116 */ |
1640 |
|
static ANTLR3_BITWORD FOLLOW_TESTER_TOK_in_identifier4116_bits[] = { ANTLR3_UINT64_LIT(0x0000000008010000), ANTLR3_UINT64_LIT(0x0000024050104420) }; |
1641 |
|
static ANTLR3_BITSET_LIST FOLLOW_TESTER_TOK_in_identifier4116 = { FOLLOW_TESTER_TOK_in_identifier4116_bits, 2 }; |
1642 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_term_in_identifier4118 */ |
1643 |
|
static ANTLR3_BITWORD FOLLOW_term_in_identifier4118_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000800000) }; |
1644 |
|
static ANTLR3_BITSET_LIST FOLLOW_term_in_identifier4118 = { FOLLOW_term_in_identifier4118_bits, 2 }; |
1645 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_UPDATE_TOK_in_identifier4135 */ |
1646 |
|
static ANTLR3_BITWORD FOLLOW_UPDATE_TOK_in_identifier4135_bits[] = { ANTLR3_UINT64_LIT(0x0000000008010000), ANTLR3_UINT64_LIT(0x0000024050104420) }; |
1647 |
|
static ANTLR3_BITSET_LIST FOLLOW_UPDATE_TOK_in_identifier4135 = { FOLLOW_UPDATE_TOK_in_identifier4135_bits, 2 }; |
1648 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_term_in_identifier4137 */ |
1649 |
|
static ANTLR3_BITWORD FOLLOW_term_in_identifier4137_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000800000) }; |
1650 |
|
static ANTLR3_BITSET_LIST FOLLOW_term_in_identifier4137 = { FOLLOW_term_in_identifier4137_bits, 2 }; |
1651 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_TUPLE_SEL_TOK_in_identifier4154 */ |
1652 |
|
static ANTLR3_BITWORD FOLLOW_TUPLE_SEL_TOK_in_identifier4154_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000000400) }; |
1653 |
|
static ANTLR3_BITSET_LIST FOLLOW_TUPLE_SEL_TOK_in_identifier4154 = { FOLLOW_TUPLE_SEL_TOK_in_identifier4154_bits, 2 }; |
1654 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_INTEGER_LITERAL_in_identifier4158 */ |
1655 |
|
static ANTLR3_BITWORD FOLLOW_INTEGER_LITERAL_in_identifier4158_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000800000) }; |
1656 |
|
static ANTLR3_BITSET_LIST FOLLOW_INTEGER_LITERAL_in_identifier4158 = { FOLLOW_INTEGER_LITERAL_in_identifier4158_bits, 2 }; |
1657 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_TUPLE_PROJECT_TOK_in_identifier4174 */ |
1658 |
|
static ANTLR3_BITWORD FOLLOW_TUPLE_PROJECT_TOK_in_identifier4174_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000000400) }; |
1659 |
|
static ANTLR3_BITSET_LIST FOLLOW_TUPLE_PROJECT_TOK_in_identifier4174 = { FOLLOW_TUPLE_PROJECT_TOK_in_identifier4174_bits, 2 }; |
1660 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_nonemptyNumeralList_in_identifier4176 */ |
1661 |
|
static ANTLR3_BITWORD FOLLOW_nonemptyNumeralList_in_identifier4176_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000800000) }; |
1662 |
|
static ANTLR3_BITSET_LIST FOLLOW_nonemptyNumeralList_in_identifier4176 = { FOLLOW_nonemptyNumeralList_in_identifier4176_bits, 2 }; |
1663 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_SIMPLE_SYMBOL_in_identifier4195 */ |
1664 |
|
static ANTLR3_BITWORD FOLLOW_SIMPLE_SYMBOL_in_identifier4195_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000000400) }; |
1665 |
|
static ANTLR3_BITSET_LIST FOLLOW_SIMPLE_SYMBOL_in_identifier4195 = { FOLLOW_SIMPLE_SYMBOL_in_identifier4195_bits, 2 }; |
1666 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_nonemptyNumeralList_in_identifier4197 */ |
1667 |
|
static ANTLR3_BITWORD FOLLOW_nonemptyNumeralList_in_identifier4197_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000800000) }; |
1668 |
|
static ANTLR3_BITSET_LIST FOLLOW_nonemptyNumeralList_in_identifier4197 = { FOLLOW_nonemptyNumeralList_in_identifier4197_bits, 2 }; |
1669 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_RPAREN_TOK_in_identifier4218 */ |
1670 |
|
static ANTLR3_BITWORD FOLLOW_RPAREN_TOK_in_identifier4218_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
1671 |
|
static ANTLR3_BITSET_LIST FOLLOW_RPAREN_TOK_in_identifier4218 = { FOLLOW_RPAREN_TOK_in_identifier4218_bits, 1 }; |
1672 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_INTEGER_LITERAL_in_termAtomic4245 */ |
1673 |
|
static ANTLR3_BITWORD FOLLOW_INTEGER_LITERAL_in_termAtomic4245_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
1674 |
|
static ANTLR3_BITSET_LIST FOLLOW_INTEGER_LITERAL_in_termAtomic4245 = { FOLLOW_INTEGER_LITERAL_in_termAtomic4245_bits, 1 }; |
1675 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_DECIMAL_LITERAL_in_termAtomic4257 */ |
1676 |
|
static ANTLR3_BITWORD FOLLOW_DECIMAL_LITERAL_in_termAtomic4257_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
1677 |
|
static ANTLR3_BITSET_LIST FOLLOW_DECIMAL_LITERAL_in_termAtomic4257 = { FOLLOW_DECIMAL_LITERAL_in_termAtomic4257_bits, 1 }; |
1678 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_LPAREN_TOK_in_termAtomic4276 */ |
1679 |
|
static ANTLR3_BITWORD FOLLOW_LPAREN_TOK_in_termAtomic4276_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000000200) }; |
1680 |
|
static ANTLR3_BITSET_LIST FOLLOW_LPAREN_TOK_in_termAtomic4276 = { FOLLOW_LPAREN_TOK_in_termAtomic4276_bits, 2 }; |
1681 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_INDEX_TOK_in_termAtomic4278 */ |
1682 |
|
static ANTLR3_BITWORD FOLLOW_INDEX_TOK_in_termAtomic4278_bits[] = { ANTLR3_UINT64_LIT(0x0008000000080000), ANTLR3_UINT64_LIT(0x0000000010000000) }; |
1683 |
|
static ANTLR3_BITSET_LIST FOLLOW_INDEX_TOK_in_termAtomic4278 = { FOLLOW_INDEX_TOK_in_termAtomic4278_bits, 2 }; |
1684 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_EMP_TOK_in_termAtomic4286 */ |
1685 |
|
static ANTLR3_BITWORD FOLLOW_EMP_TOK_in_termAtomic4286_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000020010104000) }; |
1686 |
|
static ANTLR3_BITSET_LIST FOLLOW_EMP_TOK_in_termAtomic4286 = { FOLLOW_EMP_TOK_in_termAtomic4286_bits, 2 }; |
1687 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_sortSymbol_in_termAtomic4294 */ |
1688 |
|
static ANTLR3_BITWORD FOLLOW_sortSymbol_in_termAtomic4294_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000020010104000) }; |
1689 |
|
static ANTLR3_BITSET_LIST FOLLOW_sortSymbol_in_termAtomic4294 = { FOLLOW_sortSymbol_in_termAtomic4294_bits, 2 }; |
1690 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_sortSymbol_in_termAtomic4303 */ |
1691 |
|
static ANTLR3_BITWORD FOLLOW_sortSymbol_in_termAtomic4303_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000800000) }; |
1692 |
|
static ANTLR3_BITSET_LIST FOLLOW_sortSymbol_in_termAtomic4303 = { FOLLOW_sortSymbol_in_termAtomic4303_bits, 2 }; |
1693 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_CHAR_TOK_in_termAtomic4320 */ |
1694 |
|
static ANTLR3_BITWORD FOLLOW_CHAR_TOK_in_termAtomic4320_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000000020) }; |
1695 |
|
static ANTLR3_BITSET_LIST FOLLOW_CHAR_TOK_in_termAtomic4320 = { FOLLOW_CHAR_TOK_in_termAtomic4320_bits, 2 }; |
1696 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_HEX_LITERAL_in_termAtomic4322 */ |
1697 |
|
static ANTLR3_BITWORD FOLLOW_HEX_LITERAL_in_termAtomic4322_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000800000) }; |
1698 |
|
static ANTLR3_BITSET_LIST FOLLOW_HEX_LITERAL_in_termAtomic4322 = { FOLLOW_HEX_LITERAL_in_termAtomic4322_bits, 2 }; |
1699 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_SIMPLE_SYMBOL_in_termAtomic4341 */ |
1700 |
|
static ANTLR3_BITWORD FOLLOW_SIMPLE_SYMBOL_in_termAtomic4341_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000000400) }; |
1701 |
|
static ANTLR3_BITSET_LIST FOLLOW_SIMPLE_SYMBOL_in_termAtomic4341 = { FOLLOW_SIMPLE_SYMBOL_in_termAtomic4341_bits, 2 }; |
1702 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_nonemptyNumeralList_in_termAtomic4343 */ |
1703 |
|
static ANTLR3_BITWORD FOLLOW_nonemptyNumeralList_in_termAtomic4343_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000800000) }; |
1704 |
|
static ANTLR3_BITSET_LIST FOLLOW_nonemptyNumeralList_in_termAtomic4343 = { FOLLOW_nonemptyNumeralList_in_termAtomic4343_bits, 2 }; |
1705 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_RPAREN_TOK_in_termAtomic4364 */ |
1706 |
|
static ANTLR3_BITWORD FOLLOW_RPAREN_TOK_in_termAtomic4364_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
1707 |
|
static ANTLR3_BITSET_LIST FOLLOW_RPAREN_TOK_in_termAtomic4364 = { FOLLOW_RPAREN_TOK_in_termAtomic4364_bits, 1 }; |
1708 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_HEX_LITERAL_in_termAtomic4374 */ |
1709 |
|
static ANTLR3_BITWORD FOLLOW_HEX_LITERAL_in_termAtomic4374_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
1710 |
|
static ANTLR3_BITSET_LIST FOLLOW_HEX_LITERAL_in_termAtomic4374 = { FOLLOW_HEX_LITERAL_in_termAtomic4374_bits, 1 }; |
1711 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_BINARY_LITERAL_in_termAtomic4386 */ |
1712 |
|
static ANTLR3_BITWORD FOLLOW_BINARY_LITERAL_in_termAtomic4386_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
1713 |
|
static ANTLR3_BITSET_LIST FOLLOW_BINARY_LITERAL_in_termAtomic4386 = { FOLLOW_BINARY_LITERAL_in_termAtomic4386_bits, 1 }; |
1714 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_str_in_termAtomic4402 */ |
1715 |
|
static ANTLR3_BITWORD FOLLOW_str_in_termAtomic4402_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
1716 |
|
static ANTLR3_BITSET_LIST FOLLOW_str_in_termAtomic4402 = { FOLLOW_str_in_termAtomic4402_bits, 1 }; |
1717 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_TUPLE_CONST_TOK_in_termAtomic4419 */ |
1718 |
|
static ANTLR3_BITWORD FOLLOW_TUPLE_CONST_TOK_in_termAtomic4419_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
1719 |
|
static ANTLR3_BITSET_LIST FOLLOW_TUPLE_CONST_TOK_in_termAtomic4419 = { FOLLOW_TUPLE_CONST_TOK_in_termAtomic4419_bits, 1 }; |
1720 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_KEYWORD_in_attribute4446 */ |
1721 |
|
static ANTLR3_BITWORD FOLLOW_KEYWORD_in_attribute4446_bits[] = { ANTLR3_UINT64_LIT(0x7724F21208310022), ANTLR3_UINT64_LIT(0x000002007E7C042E) }; |
1722 |
|
static ANTLR3_BITSET_LIST FOLLOW_KEYWORD_in_attribute4446 = { FOLLOW_KEYWORD_in_attribute4446_bits, 2 }; |
1723 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_simpleSymbolicExprNoKeyword_in_attribute4450 */ |
1724 |
|
static ANTLR3_BITWORD FOLLOW_simpleSymbolicExprNoKeyword_in_attribute4450_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
1725 |
|
static ANTLR3_BITSET_LIST FOLLOW_simpleSymbolicExprNoKeyword_in_attribute4450 = { FOLLOW_simpleSymbolicExprNoKeyword_in_attribute4450_bits, 1 }; |
1726 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_ATTRIBUTE_PATTERN_TOK_in_attribute4468 */ |
1727 |
|
static ANTLR3_BITWORD FOLLOW_ATTRIBUTE_PATTERN_TOK_in_attribute4468_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000004000) }; |
1728 |
|
static ANTLR3_BITSET_LIST FOLLOW_ATTRIBUTE_PATTERN_TOK_in_attribute4468 = { FOLLOW_ATTRIBUTE_PATTERN_TOK_in_attribute4468_bits, 2 }; |
1729 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_ATTRIBUTE_POOL_TOK_in_attribute4480 */ |
1730 |
|
static ANTLR3_BITWORD FOLLOW_ATTRIBUTE_POOL_TOK_in_attribute4480_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000004000) }; |
1731 |
|
static ANTLR3_BITSET_LIST FOLLOW_ATTRIBUTE_POOL_TOK_in_attribute4480 = { FOLLOW_ATTRIBUTE_POOL_TOK_in_attribute4480_bits, 2 }; |
1732 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_ATTRIBUTE_INST_ADD_TO_POOL_TOK_in_attribute4493 */ |
1733 |
|
static ANTLR3_BITWORD FOLLOW_ATTRIBUTE_INST_ADD_TO_POOL_TOK_in_attribute4493_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000004000) }; |
1734 |
|
static ANTLR3_BITSET_LIST FOLLOW_ATTRIBUTE_INST_ADD_TO_POOL_TOK_in_attribute4493 = { FOLLOW_ATTRIBUTE_INST_ADD_TO_POOL_TOK_in_attribute4493_bits, 2 }; |
1735 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_ATTRIBUTE_SKOLEM_ADD_TO_POOL_TOK_in_attribute4506 */ |
1736 |
|
static ANTLR3_BITWORD FOLLOW_ATTRIBUTE_SKOLEM_ADD_TO_POOL_TOK_in_attribute4506_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000004000) }; |
1737 |
|
static ANTLR3_BITSET_LIST FOLLOW_ATTRIBUTE_SKOLEM_ADD_TO_POOL_TOK_in_attribute4506 = { FOLLOW_ATTRIBUTE_SKOLEM_ADD_TO_POOL_TOK_in_attribute4506_bits, 2 }; |
1738 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_LPAREN_TOK_in_attribute4520 */ |
1739 |
|
static ANTLR3_BITWORD FOLLOW_LPAREN_TOK_in_attribute4520_bits[] = { ANTLR3_UINT64_LIT(0x0000000008010000), ANTLR3_UINT64_LIT(0x0000024050104420) }; |
1740 |
|
static ANTLR3_BITSET_LIST FOLLOW_LPAREN_TOK_in_attribute4520 = { FOLLOW_LPAREN_TOK_in_attribute4520_bits, 2 }; |
1741 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_term_in_attribute4528 */ |
1742 |
|
static ANTLR3_BITWORD FOLLOW_term_in_attribute4528_bits[] = { ANTLR3_UINT64_LIT(0x0000000008010000), ANTLR3_UINT64_LIT(0x0000024050904420) }; |
1743 |
|
static ANTLR3_BITSET_LIST FOLLOW_term_in_attribute4528 = { FOLLOW_term_in_attribute4528_bits, 2 }; |
1744 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_RPAREN_TOK_in_attribute4546 */ |
1745 |
|
static ANTLR3_BITWORD FOLLOW_RPAREN_TOK_in_attribute4546_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
1746 |
|
static ANTLR3_BITSET_LIST FOLLOW_RPAREN_TOK_in_attribute4546 = { FOLLOW_RPAREN_TOK_in_attribute4546_bits, 1 }; |
1747 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_ATTRIBUTE_NO_PATTERN_TOK_in_attribute4558 */ |
1748 |
|
static ANTLR3_BITWORD FOLLOW_ATTRIBUTE_NO_PATTERN_TOK_in_attribute4558_bits[] = { ANTLR3_UINT64_LIT(0x0000000008010000), ANTLR3_UINT64_LIT(0x0000024050104420) }; |
1749 |
|
static ANTLR3_BITSET_LIST FOLLOW_ATTRIBUTE_NO_PATTERN_TOK_in_attribute4558 = { FOLLOW_ATTRIBUTE_NO_PATTERN_TOK_in_attribute4558_bits, 2 }; |
1750 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_term_in_attribute4560 */ |
1751 |
|
static ANTLR3_BITWORD FOLLOW_term_in_attribute4560_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
1752 |
|
static ANTLR3_BITSET_LIST FOLLOW_term_in_attribute4560 = { FOLLOW_term_in_attribute4560_bits, 1 }; |
1753 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_ATTRIBUTE_INST_LEVEL_in_attribute4577 */ |
1754 |
|
static ANTLR3_BITWORD FOLLOW_ATTRIBUTE_INST_LEVEL_in_attribute4577_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000000400) }; |
1755 |
|
static ANTLR3_BITSET_LIST FOLLOW_ATTRIBUTE_INST_LEVEL_in_attribute4577 = { FOLLOW_ATTRIBUTE_INST_LEVEL_in_attribute4577_bits, 2 }; |
1756 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_INTEGER_LITERAL_in_attribute4581 */ |
1757 |
|
static ANTLR3_BITWORD FOLLOW_INTEGER_LITERAL_in_attribute4581_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
1758 |
|
static ANTLR3_BITSET_LIST FOLLOW_INTEGER_LITERAL_in_attribute4581 = { FOLLOW_INTEGER_LITERAL_in_attribute4581_bits, 1 }; |
1759 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_ATTRIBUTE_QUANTIFIER_ID_TOK_in_attribute4597 */ |
1760 |
|
static ANTLR3_BITWORD FOLLOW_ATTRIBUTE_QUANTIFIER_ID_TOK_in_attribute4597_bits[] = { ANTLR3_UINT64_LIT(0x7724F21208310020), ANTLR3_UINT64_LIT(0x000002007E7C542E) }; |
1761 |
|
static ANTLR3_BITSET_LIST FOLLOW_ATTRIBUTE_QUANTIFIER_ID_TOK_in_attribute4597 = { FOLLOW_ATTRIBUTE_QUANTIFIER_ID_TOK_in_attribute4597_bits, 2 }; |
1762 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_symbolicExpr_in_attribute4601 */ |
1763 |
|
static ANTLR3_BITWORD FOLLOW_symbolicExpr_in_attribute4601_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
1764 |
|
static ANTLR3_BITSET_LIST FOLLOW_symbolicExpr_in_attribute4601 = { FOLLOW_symbolicExpr_in_attribute4601_bits, 1 }; |
1765 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_ATTRIBUTE_NAMED_TOK_in_attribute4614 */ |
1766 |
|
static ANTLR3_BITWORD FOLLOW_ATTRIBUTE_NAMED_TOK_in_attribute4614_bits[] = { ANTLR3_UINT64_LIT(0x7724F21208310020), ANTLR3_UINT64_LIT(0x000002007E7C542E) }; |
1767 |
|
static ANTLR3_BITSET_LIST FOLLOW_ATTRIBUTE_NAMED_TOK_in_attribute4614 = { FOLLOW_ATTRIBUTE_NAMED_TOK_in_attribute4614_bits, 2 }; |
1768 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_symbolicExpr_in_attribute4616 */ |
1769 |
|
static ANTLR3_BITWORD FOLLOW_symbolicExpr_in_attribute4616_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
1770 |
|
static ANTLR3_BITSET_LIST FOLLOW_symbolicExpr_in_attribute4616 = { FOLLOW_symbolicExpr_in_attribute4616_bits, 1 }; |
1771 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_term_in_termList4648 */ |
1772 |
|
static ANTLR3_BITWORD FOLLOW_term_in_termList4648_bits[] = { ANTLR3_UINT64_LIT(0x0000000008010002), ANTLR3_UINT64_LIT(0x0000024050104420) }; |
1773 |
|
static ANTLR3_BITSET_LIST FOLLOW_term_in_termList4648 = { FOLLOW_term_in_termList4648_bits, 2 }; |
1774 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_STRING_LITERAL_in_str4670 */ |
1775 |
|
static ANTLR3_BITWORD FOLLOW_STRING_LITERAL_in_str4670_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
1776 |
|
static ANTLR3_BITSET_LIST FOLLOW_STRING_LITERAL_in_str4670 = { FOLLOW_STRING_LITERAL_in_str4670_bits, 1 }; |
1777 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_EXISTS_TOK_in_quantOp4695 */ |
1778 |
|
static ANTLR3_BITWORD FOLLOW_EXISTS_TOK_in_quantOp4695_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
1779 |
|
static ANTLR3_BITSET_LIST FOLLOW_EXISTS_TOK_in_quantOp4695 = { FOLLOW_EXISTS_TOK_in_quantOp4695_bits, 1 }; |
1780 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_FORALL_TOK_in_quantOp4706 */ |
1781 |
|
static ANTLR3_BITWORD FOLLOW_FORALL_TOK_in_quantOp4706_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
1782 |
|
static ANTLR3_BITSET_LIST FOLLOW_FORALL_TOK_in_quantOp4706 = { FOLLOW_FORALL_TOK_in_quantOp4706_bits, 1 }; |
1783 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_symbol_in_functionName4727 */ |
1784 |
|
static ANTLR3_BITWORD FOLLOW_symbol_in_functionName4727_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
1785 |
|
static ANTLR3_BITSET_LIST FOLLOW_symbol_in_functionName4727 = { FOLLOW_symbol_in_functionName4727_bits, 1 }; |
1786 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_sortSymbol_in_sortList4751 */ |
1787 |
|
static ANTLR3_BITWORD FOLLOW_sortSymbol_in_sortList4751_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002), ANTLR3_UINT64_LIT(0x0000020010104000) }; |
1788 |
|
static ANTLR3_BITSET_LIST FOLLOW_sortSymbol_in_sortList4751 = { FOLLOW_sortSymbol_in_sortList4751_bits, 2 }; |
1789 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_sortSymbol_in_nonemptySortList4778 */ |
1790 |
|
static ANTLR3_BITWORD FOLLOW_sortSymbol_in_nonemptySortList4778_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002), ANTLR3_UINT64_LIT(0x0000020010104000) }; |
1791 |
|
static ANTLR3_BITSET_LIST FOLLOW_sortSymbol_in_nonemptySortList4778 = { FOLLOW_sortSymbol_in_nonemptySortList4778_bits, 2 }; |
1792 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_LPAREN_TOK_in_sortedVarList4807 */ |
1793 |
|
static ANTLR3_BITWORD FOLLOW_LPAREN_TOK_in_sortedVarList4807_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000020010100000) }; |
1794 |
|
static ANTLR3_BITSET_LIST FOLLOW_LPAREN_TOK_in_sortedVarList4807 = { FOLLOW_LPAREN_TOK_in_sortedVarList4807_bits, 2 }; |
1795 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_symbol_in_sortedVarList4809 */ |
1796 |
|
static ANTLR3_BITWORD FOLLOW_symbol_in_sortedVarList4809_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000020010104000) }; |
1797 |
|
static ANTLR3_BITSET_LIST FOLLOW_symbol_in_sortedVarList4809 = { FOLLOW_symbol_in_sortedVarList4809_bits, 2 }; |
1798 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_sortSymbol_in_sortedVarList4818 */ |
1799 |
|
static ANTLR3_BITWORD FOLLOW_sortSymbol_in_sortedVarList4818_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000800000) }; |
1800 |
|
static ANTLR3_BITSET_LIST FOLLOW_sortSymbol_in_sortedVarList4818 = { FOLLOW_sortSymbol_in_sortedVarList4818_bits, 2 }; |
1801 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_RPAREN_TOK_in_sortedVarList4821 */ |
1802 |
|
static ANTLR3_BITWORD FOLLOW_RPAREN_TOK_in_sortedVarList4821_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002), ANTLR3_UINT64_LIT(0x0000000000004000) }; |
1803 |
|
static ANTLR3_BITSET_LIST FOLLOW_RPAREN_TOK_in_sortedVarList4821 = { FOLLOW_RPAREN_TOK_in_sortedVarList4821_bits, 2 }; |
1804 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_LPAREN_TOK_in_boundVarList4856 */ |
1805 |
|
static ANTLR3_BITWORD FOLLOW_LPAREN_TOK_in_boundVarList4856_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000804000) }; |
1806 |
|
static ANTLR3_BITSET_LIST FOLLOW_LPAREN_TOK_in_boundVarList4856 = { FOLLOW_LPAREN_TOK_in_boundVarList4856_bits, 2 }; |
1807 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_sortedVarList_in_boundVarList4858 */ |
1808 |
|
static ANTLR3_BITWORD FOLLOW_sortedVarList_in_boundVarList4858_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000800000) }; |
1809 |
|
static ANTLR3_BITSET_LIST FOLLOW_sortedVarList_in_boundVarList4858 = { FOLLOW_sortedVarList_in_boundVarList4858_bits, 2 }; |
1810 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_RPAREN_TOK_in_boundVarList4861 */ |
1811 |
|
static ANTLR3_BITWORD FOLLOW_RPAREN_TOK_in_boundVarList4861_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
1812 |
|
static ANTLR3_BITSET_LIST FOLLOW_RPAREN_TOK_in_boundVarList4861 = { FOLLOW_RPAREN_TOK_in_boundVarList4861_bits, 1 }; |
1813 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_symbol_in_sortName4881 */ |
1814 |
|
static ANTLR3_BITWORD FOLLOW_symbol_in_sortName4881_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
1815 |
|
static ANTLR3_BITSET_LIST FOLLOW_symbol_in_sortName4881 = { FOLLOW_symbol_in_sortName4881_bits, 1 }; |
1816 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_sortName_in_sortSymbol4901 */ |
1817 |
|
static ANTLR3_BITWORD FOLLOW_sortName_in_sortSymbol4901_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
1818 |
|
static ANTLR3_BITSET_LIST FOLLOW_sortName_in_sortSymbol4901 = { FOLLOW_sortName_in_sortSymbol4901_bits, 1 }; |
1819 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_LPAREN_TOK_in_sortSymbol4914 */ |
1820 |
|
static ANTLR3_BITWORD FOLLOW_LPAREN_TOK_in_sortSymbol4914_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000020010100200) }; |
1821 |
|
static ANTLR3_BITSET_LIST FOLLOW_LPAREN_TOK_in_sortSymbol4914 = { FOLLOW_LPAREN_TOK_in_sortSymbol4914_bits, 2 }; |
1822 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_INDEX_TOK_in_sortSymbol4917 */ |
1823 |
|
static ANTLR3_BITWORD FOLLOW_INDEX_TOK_in_sortSymbol4917_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000020010100000) }; |
1824 |
|
static ANTLR3_BITSET_LIST FOLLOW_INDEX_TOK_in_sortSymbol4917 = { FOLLOW_INDEX_TOK_in_sortSymbol4917_bits, 2 }; |
1825 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_symbol_in_sortSymbol4930 */ |
1826 |
|
static ANTLR3_BITWORD FOLLOW_symbol_in_sortSymbol4930_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000020010904400) }; |
1827 |
|
static ANTLR3_BITSET_LIST FOLLOW_symbol_in_sortSymbol4930 = { FOLLOW_symbol_in_sortSymbol4930_bits, 2 }; |
1828 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_nonemptyNumeralList_in_sortSymbol4939 */ |
1829 |
|
static ANTLR3_BITWORD FOLLOW_nonemptyNumeralList_in_sortSymbol4939_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000800000) }; |
1830 |
|
static ANTLR3_BITSET_LIST FOLLOW_nonemptyNumeralList_in_sortSymbol4939 = { FOLLOW_nonemptyNumeralList_in_sortSymbol4939_bits, 2 }; |
1831 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_sortList_in_sortSymbol4956 */ |
1832 |
|
static ANTLR3_BITWORD FOLLOW_sortList_in_sortSymbol4956_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000800000) }; |
1833 |
|
static ANTLR3_BITSET_LIST FOLLOW_sortList_in_sortSymbol4956 = { FOLLOW_sortList_in_sortSymbol4956_bits, 2 }; |
1834 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_RPAREN_TOK_in_sortSymbol4973 */ |
1835 |
|
static ANTLR3_BITWORD FOLLOW_RPAREN_TOK_in_sortSymbol4973_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
1836 |
|
static ANTLR3_BITSET_LIST FOLLOW_RPAREN_TOK_in_sortSymbol4973 = { FOLLOW_RPAREN_TOK_in_sortSymbol4973_bits, 1 }; |
1837 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_LPAREN_TOK_in_sortSymbol4979 */ |
1838 |
|
static ANTLR3_BITWORD FOLLOW_LPAREN_TOK_in_sortSymbol4979_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000000040) }; |
1839 |
|
static ANTLR3_BITSET_LIST FOLLOW_LPAREN_TOK_in_sortSymbol4979 = { FOLLOW_LPAREN_TOK_in_sortSymbol4979_bits, 2 }; |
1840 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_HO_ARROW_TOK_in_sortSymbol4981 */ |
1841 |
|
static ANTLR3_BITWORD FOLLOW_HO_ARROW_TOK_in_sortSymbol4981_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000020010904000) }; |
1842 |
|
static ANTLR3_BITSET_LIST FOLLOW_HO_ARROW_TOK_in_sortSymbol4981 = { FOLLOW_HO_ARROW_TOK_in_sortSymbol4981_bits, 2 }; |
1843 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_sortList_in_sortSymbol4983 */ |
1844 |
|
static ANTLR3_BITWORD FOLLOW_sortList_in_sortSymbol4983_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000800000) }; |
1845 |
|
static ANTLR3_BITSET_LIST FOLLOW_sortList_in_sortSymbol4983 = { FOLLOW_sortList_in_sortSymbol4983_bits, 2 }; |
1846 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_RPAREN_TOK_in_sortSymbol4986 */ |
1847 |
|
static ANTLR3_BITWORD FOLLOW_RPAREN_TOK_in_sortSymbol4986_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
1848 |
|
static ANTLR3_BITSET_LIST FOLLOW_RPAREN_TOK_in_sortSymbol4986 = { FOLLOW_RPAREN_TOK_in_sortSymbol4986_bits, 1 }; |
1849 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_symbol_in_symbolList5015 */ |
1850 |
|
static ANTLR3_BITWORD FOLLOW_symbol_in_symbolList5015_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002), ANTLR3_UINT64_LIT(0x0000020010100000) }; |
1851 |
|
static ANTLR3_BITSET_LIST FOLLOW_symbol_in_symbolList5015 = { FOLLOW_symbol_in_symbolList5015_bits, 2 }; |
1852 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_SIMPLE_SYMBOL_in_symbol5037 */ |
1853 |
|
static ANTLR3_BITWORD FOLLOW_SIMPLE_SYMBOL_in_symbol5037_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
1854 |
|
static ANTLR3_BITSET_LIST FOLLOW_SIMPLE_SYMBOL_in_symbol5037 = { FOLLOW_SIMPLE_SYMBOL_in_symbol5037_bits, 1 }; |
1855 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_QUOTED_SYMBOL_in_symbol5049 */ |
1856 |
|
static ANTLR3_BITWORD FOLLOW_QUOTED_SYMBOL_in_symbol5049_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
1857 |
|
static ANTLR3_BITSET_LIST FOLLOW_QUOTED_SYMBOL_in_symbol5049 = { FOLLOW_QUOTED_SYMBOL_in_symbol5049_bits, 1 }; |
1858 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_UNTERMINATED_QUOTED_SYMBOL_in_symbol5061 */ |
1859 |
|
static ANTLR3_BITWORD FOLLOW_UNTERMINATED_QUOTED_SYMBOL_in_symbol5061_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000100000000000) }; |
1860 |
|
static ANTLR3_BITSET_LIST FOLLOW_UNTERMINATED_QUOTED_SYMBOL_in_symbol5061 = { FOLLOW_UNTERMINATED_QUOTED_SYMBOL_in_symbol5061_bits, 2 }; |
1861 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_EOF_in_symbol5069 */ |
1862 |
|
static ANTLR3_BITWORD FOLLOW_EOF_in_symbol5069_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
1863 |
|
static ANTLR3_BITSET_LIST FOLLOW_EOF_in_symbol5069 = { FOLLOW_EOF_in_symbol5069_bits, 1 }; |
1864 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_108_in_symbol5085 */ |
1865 |
|
static ANTLR3_BITWORD FOLLOW_108_in_symbol5085_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
1866 |
|
static ANTLR3_BITSET_LIST FOLLOW_108_in_symbol5085 = { FOLLOW_108_in_symbol5085_bits, 1 }; |
1867 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_INTEGER_LITERAL_in_nonemptyNumeralList5117 */ |
1868 |
|
static ANTLR3_BITWORD FOLLOW_INTEGER_LITERAL_in_nonemptyNumeralList5117_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002), ANTLR3_UINT64_LIT(0x0000000000000400) }; |
1869 |
|
static ANTLR3_BITSET_LIST FOLLOW_INTEGER_LITERAL_in_nonemptyNumeralList5117 = { FOLLOW_INTEGER_LITERAL_in_nonemptyNumeralList5117_bits, 2 }; |
1870 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_symbol_in_datatypeDef5159 */ |
1871 |
|
static ANTLR3_BITWORD FOLLOW_symbol_in_datatypeDef5159_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000004000) }; |
1872 |
|
static ANTLR3_BITSET_LIST FOLLOW_symbol_in_datatypeDef5159 = { FOLLOW_symbol_in_datatypeDef5159_bits, 2 }; |
1873 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_LPAREN_TOK_in_datatypeDef5176 */ |
1874 |
|
static ANTLR3_BITWORD FOLLOW_LPAREN_TOK_in_datatypeDef5176_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000020010100000) }; |
1875 |
|
static ANTLR3_BITSET_LIST FOLLOW_LPAREN_TOK_in_datatypeDef5176 = { FOLLOW_LPAREN_TOK_in_datatypeDef5176_bits, 2 }; |
1876 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_constructorDef_in_datatypeDef5178 */ |
1877 |
|
static ANTLR3_BITWORD FOLLOW_constructorDef_in_datatypeDef5178_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000800000) }; |
1878 |
|
static ANTLR3_BITSET_LIST FOLLOW_constructorDef_in_datatypeDef5178 = { FOLLOW_constructorDef_in_datatypeDef5178_bits, 2 }; |
1879 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_RPAREN_TOK_in_datatypeDef5181 */ |
1880 |
|
static ANTLR3_BITWORD FOLLOW_RPAREN_TOK_in_datatypeDef5181_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002), ANTLR3_UINT64_LIT(0x0000000000004000) }; |
1881 |
|
static ANTLR3_BITSET_LIST FOLLOW_RPAREN_TOK_in_datatypeDef5181 = { FOLLOW_RPAREN_TOK_in_datatypeDef5181_bits, 2 }; |
1882 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_symbol_in_constructorDef5211 */ |
1883 |
|
static ANTLR3_BITWORD FOLLOW_symbol_in_constructorDef5211_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002), ANTLR3_UINT64_LIT(0x0000000000004000) }; |
1884 |
|
static ANTLR3_BITSET_LIST FOLLOW_symbol_in_constructorDef5211 = { FOLLOW_symbol_in_constructorDef5211_bits, 2 }; |
1885 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_LPAREN_TOK_in_constructorDef5226 */ |
1886 |
|
static ANTLR3_BITWORD FOLLOW_LPAREN_TOK_in_constructorDef5226_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000020010100000) }; |
1887 |
|
static ANTLR3_BITSET_LIST FOLLOW_LPAREN_TOK_in_constructorDef5226 = { FOLLOW_LPAREN_TOK_in_constructorDef5226_bits, 2 }; |
1888 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_selector_in_constructorDef5228 */ |
1889 |
|
static ANTLR3_BITWORD FOLLOW_selector_in_constructorDef5228_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000000000800000) }; |
1890 |
|
static ANTLR3_BITSET_LIST FOLLOW_selector_in_constructorDef5228 = { FOLLOW_selector_in_constructorDef5228_bits, 2 }; |
1891 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_RPAREN_TOK_in_constructorDef5231 */ |
1892 |
|
static ANTLR3_BITWORD FOLLOW_RPAREN_TOK_in_constructorDef5231_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002), ANTLR3_UINT64_LIT(0x0000000000004000) }; |
1893 |
|
static ANTLR3_BITSET_LIST FOLLOW_RPAREN_TOK_in_constructorDef5231 = { FOLLOW_RPAREN_TOK_in_constructorDef5231_bits, 2 }; |
1894 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_symbol_in_selector5259 */ |
1895 |
|
static ANTLR3_BITWORD FOLLOW_symbol_in_selector5259_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000000), ANTLR3_UINT64_LIT(0x0000020010104000) }; |
1896 |
|
static ANTLR3_BITSET_LIST FOLLOW_symbol_in_selector5259 = { FOLLOW_symbol_in_selector5259_bits, 2 }; |
1897 |
|
/** Bitset defining follow set for error recovery in rule state: FOLLOW_sortSymbol_in_selector5262 */ |
1898 |
|
static ANTLR3_BITWORD FOLLOW_sortSymbol_in_selector5262_bits[] = { ANTLR3_UINT64_LIT(0x0000000000000002) }; |
1899 |
|
static ANTLR3_BITSET_LIST FOLLOW_sortSymbol_in_selector5262 = { FOLLOW_sortSymbol_in_selector5262_bits, 1 }; |
1900 |
|
|
1901 |
|
|
1902 |
|
/* ============================================== |
1903 |
|
* Parsing rules |
1904 |
|
*/ |
1905 |
|
/** |
1906 |
|
* $ANTLR start parseExpr |
1907 |
|
* /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:138:1: parseExpr returns [cvc5::api::Term expr = cvc5::api::Term()] : ( term[expr, expr2] | EOF ); |
1908 |
|
*/ |
1909 |
|
static cvc5::api::Term |
1910 |
116 |
parseExpr(pSmt2Parser ctx) |
1911 |
|
{ |
1912 |
116 |
cvc5::api::Term expr; |
1913 |
|
|
1914 |
|
|
1915 |
|
|
1916 |
232 |
cvc5::api::Term expr2; |
1917 |
|
|
1918 |
|
/* Initialize rule variables |
1919 |
|
*/ |
1920 |
116 |
expr = cvc5::api::Term(); |
1921 |
|
|
1922 |
|
|
1923 |
|
{ |
1924 |
|
{ |
1925 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:142:3: ( term[expr, expr2] | EOF ) |
1926 |
|
|
1927 |
|
ANTLR3_UINT32 alt1; |
1928 |
|
|
1929 |
116 |
alt1=2; |
1930 |
|
|
1931 |
116 |
switch ( LA(1) ) |
1932 |
|
{ |
1933 |
69 |
case BINARY_LITERAL: |
1934 |
|
case DECIMAL_LITERAL: |
1935 |
|
case HEX_LITERAL: |
1936 |
|
case INTEGER_LITERAL: |
1937 |
|
case LPAREN_TOK: |
1938 |
|
case QUOTED_SYMBOL: |
1939 |
|
case SIMPLE_SYMBOL: |
1940 |
|
case STRING_LITERAL: |
1941 |
|
case TUPLE_CONST_TOK: |
1942 |
|
case UNTERMINATED_QUOTED_SYMBOL: |
1943 |
|
{ |
1944 |
69 |
alt1=1; |
1945 |
|
} |
1946 |
69 |
break; |
1947 |
37 |
case EOF: |
1948 |
|
{ |
1949 |
37 |
alt1=2; |
1950 |
|
} |
1951 |
37 |
break; |
1952 |
|
|
1953 |
|
default: |
1954 |
|
CONSTRUCTEX(); |
1955 |
|
EXCEPTION->type = ANTLR3_NO_VIABLE_ALT_EXCEPTION; |
1956 |
|
EXCEPTION->message = (void *)""; |
1957 |
|
EXCEPTION->decisionNum = 1; |
1958 |
|
EXCEPTION->state = 0; |
1959 |
|
|
1960 |
|
|
1961 |
|
goto ruleparseExprEx; |
1962 |
|
|
1963 |
|
} |
1964 |
|
|
1965 |
106 |
switch (alt1) |
1966 |
|
{ |
1967 |
69 |
case 1: |
1968 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:142:5: term[expr, expr2] |
1969 |
|
{ |
1970 |
69 |
FOLLOWPUSH(FOLLOW_term_in_parseExpr117); |
1971 |
69 |
term(ctx, expr, expr2); |
1972 |
|
|
1973 |
37 |
FOLLOWPOP(); |
1974 |
37 |
if (HASEXCEPTION()) |
1975 |
|
{ |
1976 |
|
goto ruleparseExprEx; |
1977 |
|
} |
1978 |
|
|
1979 |
|
|
1980 |
|
} |
1981 |
37 |
break; |
1982 |
37 |
case 2: |
1983 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:143:5: EOF |
1984 |
|
{ |
1985 |
37 |
MATCHT(EOF, &FOLLOW_EOF_in_parseExpr124); |
1986 |
37 |
if (HASEXCEPTION()) |
1987 |
|
{ |
1988 |
|
goto ruleparseExprEx; |
1989 |
|
} |
1990 |
|
|
1991 |
|
|
1992 |
|
} |
1993 |
37 |
break; |
1994 |
|
|
1995 |
|
} |
1996 |
|
} |
1997 |
|
} |
1998 |
|
|
1999 |
|
// This is where rules clean up and exit |
2000 |
|
// |
2001 |
74 |
goto ruleparseExprEx; /* Prevent compiler warnings */ |
2002 |
74 |
ruleparseExprEx: ; |
2003 |
|
|
2004 |
74 |
if (HASEXCEPTION()) |
2005 |
|
{ |
2006 |
|
PREPORTERROR(); |
2007 |
|
PRECOVER(); |
2008 |
|
} |
2009 |
148 |
return expr; |
2010 |
|
} |
2011 |
|
/* $ANTLR end parseExpr */ |
2012 |
|
|
2013 |
|
/** |
2014 |
|
* $ANTLR start parseCommand |
2015 |
|
* /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:150:1: parseCommand returns [cvc5::Command* cmd_return = NULL] : ( LPAREN_TOK command[&cmd] RPAREN_TOK | LPAREN_TOK INCLUDE_TOK str[name,true] RPAREN_TOK | EOF ); |
2016 |
|
*/ |
2017 |
|
static cvc5::Command* |
2018 |
275182 |
parseCommand(pSmt2Parser ctx) |
2019 |
|
{ |
2020 |
|
cvc5::Command* cmd_return; |
2021 |
|
|
2022 |
|
|
2023 |
|
|
2024 |
550364 |
std::unique_ptr<cvc5::Command> cmd; |
2025 |
550364 |
std::string name; |
2026 |
|
|
2027 |
|
/* Initialize rule variables |
2028 |
|
*/ |
2029 |
275182 |
cmd_return = NULL; |
2030 |
|
|
2031 |
|
|
2032 |
|
{ |
2033 |
|
{ |
2034 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:158:3: ( LPAREN_TOK command[&cmd] RPAREN_TOK | LPAREN_TOK INCLUDE_TOK str[name,true] RPAREN_TOK | EOF ) |
2035 |
|
|
2036 |
|
ANTLR3_UINT32 alt2; |
2037 |
|
|
2038 |
275182 |
alt2=3; |
2039 |
|
|
2040 |
275182 |
switch ( LA(1) ) |
2041 |
|
{ |
2042 |
270768 |
case LPAREN_TOK: |
2043 |
|
{ |
2044 |
270768 |
switch ( LA(2) ) |
2045 |
|
{ |
2046 |
|
case INCLUDE_TOK: |
2047 |
|
{ |
2048 |
|
alt2=2; |
2049 |
|
} |
2050 |
|
break; |
2051 |
270768 |
case ASSERT_TOK: |
2052 |
|
case BLOCK_MODEL_TOK: |
2053 |
|
case BLOCK_MODEL_VALUES_TOK: |
2054 |
|
case CHECK_SAT_ASSUMING_TOK: |
2055 |
|
case CHECK_SAT_TOK: |
2056 |
|
case DECLARE_CODATATYPES_TOK: |
2057 |
|
case DECLARE_CODATATYPE_TOK: |
2058 |
|
case DECLARE_CONST_TOK: |
2059 |
|
case DECLARE_DATATYPES_TOK: |
2060 |
|
case DECLARE_DATATYPE_TOK: |
2061 |
|
case DECLARE_FUNS_TOK: |
2062 |
|
case DECLARE_FUN_TOK: |
2063 |
|
case DECLARE_HEAP: |
2064 |
|
case DECLARE_POOL: |
2065 |
|
case DECLARE_PREDS_TOK: |
2066 |
|
case DECLARE_SORTS_TOK: |
2067 |
|
case DECLARE_SORT_TOK: |
2068 |
|
case DEFINE_CONST_TOK: |
2069 |
|
case DEFINE_FUNS_REC_TOK: |
2070 |
|
case DEFINE_FUN_REC_TOK: |
2071 |
|
case DEFINE_FUN_TOK: |
2072 |
|
case DEFINE_SORT_TOK: |
2073 |
|
case DEFINE_TOK: |
2074 |
|
case ECHO_TOK: |
2075 |
|
case EXIT_TOK: |
2076 |
|
case GET_ABDUCT_TOK: |
2077 |
|
case GET_ASSERTIONS_TOK: |
2078 |
|
case GET_ASSIGNMENT_TOK: |
2079 |
|
case GET_INFO_TOK: |
2080 |
|
case GET_INTERPOL_TOK: |
2081 |
|
case GET_MODEL_TOK: |
2082 |
|
case GET_OPTION_TOK: |
2083 |
|
case GET_PROOF_TOK: |
2084 |
|
case GET_QE_DISJUNCT_TOK: |
2085 |
|
case GET_QE_TOK: |
2086 |
|
case GET_UNSAT_ASSUMPTIONS_TOK: |
2087 |
|
case GET_UNSAT_CORE_TOK: |
2088 |
|
case GET_VALUE_TOK: |
2089 |
|
case POP_TOK: |
2090 |
|
case PUSH_TOK: |
2091 |
|
case RESET_ASSERTIONS_TOK: |
2092 |
|
case RESET_TOK: |
2093 |
|
case SET_INFO_TOK: |
2094 |
|
case SET_LOGIC_TOK: |
2095 |
|
case SET_OPTION_TOK: |
2096 |
|
case SIMPLE_SYMBOL: |
2097 |
|
case SIMPLIFY_TOK: |
2098 |
|
{ |
2099 |
270768 |
alt2=1; |
2100 |
|
} |
2101 |
270768 |
break; |
2102 |
|
|
2103 |
|
default: |
2104 |
|
CONSTRUCTEX(); |
2105 |
|
EXCEPTION->type = ANTLR3_NO_VIABLE_ALT_EXCEPTION; |
2106 |
|
EXCEPTION->message = (void *)""; |
2107 |
|
EXCEPTION->decisionNum = 2; |
2108 |
|
EXCEPTION->state = 1; |
2109 |
|
|
2110 |
|
|
2111 |
|
goto ruleparseCommandEx; |
2112 |
|
|
2113 |
|
} |
2114 |
|
|
2115 |
|
} |
2116 |
270768 |
break; |
2117 |
4414 |
case EOF: |
2118 |
|
{ |
2119 |
4414 |
alt2=3; |
2120 |
|
} |
2121 |
4414 |
break; |
2122 |
|
|
2123 |
|
default: |
2124 |
|
CONSTRUCTEX(); |
2125 |
|
EXCEPTION->type = ANTLR3_NO_VIABLE_ALT_EXCEPTION; |
2126 |
|
EXCEPTION->message = (void *)""; |
2127 |
|
EXCEPTION->decisionNum = 2; |
2128 |
|
EXCEPTION->state = 0; |
2129 |
|
|
2130 |
|
|
2131 |
|
goto ruleparseCommandEx; |
2132 |
|
|
2133 |
|
} |
2134 |
|
|
2135 |
275182 |
switch (alt2) |
2136 |
|
{ |
2137 |
270768 |
case 1: |
2138 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:158:5: LPAREN_TOK command[&cmd] RPAREN_TOK |
2139 |
|
{ |
2140 |
270768 |
MATCHT(LPAREN_TOK, &FOLLOW_LPAREN_TOK_in_parseCommand153); |
2141 |
270768 |
if (HASEXCEPTION()) |
2142 |
|
{ |
2143 |
|
goto ruleparseCommandEx; |
2144 |
|
} |
2145 |
|
|
2146 |
|
|
2147 |
270768 |
FOLLOWPUSH(FOLLOW_command_in_parseCommand155); |
2148 |
270768 |
command(ctx, &cmd); |
2149 |
|
|
2150 |
270738 |
FOLLOWPOP(); |
2151 |
270738 |
if (HASEXCEPTION()) |
2152 |
|
{ |
2153 |
|
goto ruleparseCommandEx; |
2154 |
|
} |
2155 |
|
|
2156 |
|
|
2157 |
270738 |
MATCHT(RPAREN_TOK, &FOLLOW_RPAREN_TOK_in_parseCommand158); |
2158 |
270738 |
if (HASEXCEPTION()) |
2159 |
|
{ |
2160 |
2 |
goto ruleparseCommandEx; |
2161 |
|
} |
2162 |
|
|
2163 |
|
|
2164 |
|
} |
2165 |
270736 |
break; |
2166 |
|
case 2: |
2167 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:163:5: LPAREN_TOK INCLUDE_TOK str[name,true] RPAREN_TOK |
2168 |
|
{ |
2169 |
|
MATCHT(LPAREN_TOK, &FOLLOW_LPAREN_TOK_in_parseCommand171); |
2170 |
|
if (HASEXCEPTION()) |
2171 |
|
{ |
2172 |
|
goto ruleparseCommandEx; |
2173 |
|
} |
2174 |
|
|
2175 |
|
|
2176 |
|
MATCHT(INCLUDE_TOK, &FOLLOW_INCLUDE_TOK_in_parseCommand173); |
2177 |
|
if (HASEXCEPTION()) |
2178 |
|
{ |
2179 |
|
goto ruleparseCommandEx; |
2180 |
|
} |
2181 |
|
|
2182 |
|
|
2183 |
|
FOLLOWPUSH(FOLLOW_str_in_parseCommand175); |
2184 |
|
str(ctx, name, true); |
2185 |
|
|
2186 |
|
FOLLOWPOP(); |
2187 |
|
if (HASEXCEPTION()) |
2188 |
|
{ |
2189 |
|
goto ruleparseCommandEx; |
2190 |
|
} |
2191 |
|
|
2192 |
|
|
2193 |
|
MATCHT(RPAREN_TOK, &FOLLOW_RPAREN_TOK_in_parseCommand178); |
2194 |
|
if (HASEXCEPTION()) |
2195 |
|
{ |
2196 |
|
goto ruleparseCommandEx; |
2197 |
|
} |
2198 |
|
|
2199 |
|
|
2200 |
|
{ |
2201 |
|
if(!PARSER_STATE->canIncludeFile()) { |
2202 |
|
PARSER_STATE->parseError("include-file feature was disabled for this " |
2203 |
|
"run."); |
2204 |
|
} |
2205 |
|
if(PARSER_STATE->strictModeEnabled()) { |
2206 |
|
PARSER_STATE->parseError("Extended commands are not permitted while " |
2207 |
|
"operating in strict compliance mode."); |
2208 |
|
} |
2209 |
|
PARSER_STATE->includeFile(name); |
2210 |
|
// The command of the included file will be produced at the next |
2211 |
|
// parseCommand() call |
2212 |
|
cmd.reset(new EmptyCommand("include::" + name)); |
2213 |
|
|
2214 |
|
} |
2215 |
|
|
2216 |
|
|
2217 |
|
} |
2218 |
|
break; |
2219 |
4414 |
case 3: |
2220 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:178:5: EOF |
2221 |
|
{ |
2222 |
4414 |
MATCHT(EOF, &FOLLOW_EOF_in_parseCommand191); |
2223 |
4414 |
if (HASEXCEPTION()) |
2224 |
|
{ |
2225 |
|
goto ruleparseCommandEx; |
2226 |
|
} |
2227 |
|
|
2228 |
|
|
2229 |
|
} |
2230 |
4414 |
break; |
2231 |
|
|
2232 |
|
} |
2233 |
|
} |
2234 |
|
} |
2235 |
|
|
2236 |
|
// This is where rules clean up and exit |
2237 |
|
// |
2238 |
275150 |
goto ruleparseCommandEx; /* Prevent compiler warnings */ |
2239 |
275152 |
ruleparseCommandEx: ; |
2240 |
|
|
2241 |
275152 |
if (HASEXCEPTION()) |
2242 |
|
{ |
2243 |
2 |
PREPORTERROR(); |
2244 |
|
PRECOVER(); |
2245 |
|
} |
2246 |
|
else |
2247 |
|
{ |
2248 |
|
{ |
2249 |
|
|
2250 |
275150 |
cmd_return = cmd.release(); |
2251 |
|
|
2252 |
|
} |
2253 |
|
} |
2254 |
|
|
2255 |
|
|
2256 |
550300 |
return cmd_return; |
2257 |
|
} |
2258 |
|
/* $ANTLR end parseCommand */ |
2259 |
|
|
2260 |
|
/** |
2261 |
|
* $ANTLR start parseSygus |
2262 |
|
* /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:186:1: parseSygus returns [cvc5::Command* cmd_return = NULL] : ( LPAREN_TOK cmd= sygusCommand RPAREN_TOK | EOF ); |
2263 |
|
*/ |
2264 |
|
static cvc5::Command* |
2265 |
2198 |
parseSygus(pSmt2Parser ctx) |
2266 |
|
{ |
2267 |
|
cvc5::Command* cmd_return; |
2268 |
|
|
2269 |
|
|
2270 |
|
|
2271 |
4396 |
std::string name; |
2272 |
|
|
2273 |
4396 |
std::unique_ptr<cvc5::Command> cmd; |
2274 |
|
#undef RETURN_TYPE_cmd |
2275 |
|
#define RETURN_TYPE_cmd std::unique_ptr<cvc5::Command> |
2276 |
|
|
2277 |
|
/* Initialize rule variables |
2278 |
|
*/ |
2279 |
2198 |
cmd_return = NULL; |
2280 |
|
|
2281 |
|
|
2282 |
|
{ |
2283 |
|
{ |
2284 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:193:3: ( LPAREN_TOK cmd= sygusCommand RPAREN_TOK | EOF ) |
2285 |
|
|
2286 |
|
ANTLR3_UINT32 alt3; |
2287 |
|
|
2288 |
2198 |
alt3=2; |
2289 |
|
|
2290 |
2198 |
switch ( LA(1) ) |
2291 |
|
{ |
2292 |
2013 |
case LPAREN_TOK: |
2293 |
|
{ |
2294 |
2013 |
alt3=1; |
2295 |
|
} |
2296 |
2013 |
break; |
2297 |
185 |
case EOF: |
2298 |
|
{ |
2299 |
185 |
alt3=2; |
2300 |
|
} |
2301 |
185 |
break; |
2302 |
|
|
2303 |
|
default: |
2304 |
|
CONSTRUCTEX(); |
2305 |
|
EXCEPTION->type = ANTLR3_NO_VIABLE_ALT_EXCEPTION; |
2306 |
|
EXCEPTION->message = (void *)""; |
2307 |
|
EXCEPTION->decisionNum = 3; |
2308 |
|
EXCEPTION->state = 0; |
2309 |
|
|
2310 |
|
|
2311 |
|
goto ruleparseSygusEx; |
2312 |
|
|
2313 |
|
} |
2314 |
|
|
2315 |
2198 |
switch (alt3) |
2316 |
|
{ |
2317 |
2013 |
case 1: |
2318 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:193:5: LPAREN_TOK cmd= sygusCommand RPAREN_TOK |
2319 |
|
{ |
2320 |
2013 |
MATCHT(LPAREN_TOK, &FOLLOW_LPAREN_TOK_in_parseSygus220); |
2321 |
2013 |
if (HASEXCEPTION()) |
2322 |
|
{ |
2323 |
|
goto ruleparseSygusEx; |
2324 |
|
} |
2325 |
|
|
2326 |
|
|
2327 |
2013 |
FOLLOWPUSH(FOLLOW_sygusCommand_in_parseSygus224); |
2328 |
2013 |
cmd=sygusCommand(ctx); |
2329 |
|
|
2330 |
2011 |
FOLLOWPOP(); |
2331 |
2011 |
if (HASEXCEPTION()) |
2332 |
|
{ |
2333 |
|
goto ruleparseSygusEx; |
2334 |
|
} |
2335 |
|
|
2336 |
|
|
2337 |
2011 |
MATCHT(RPAREN_TOK, &FOLLOW_RPAREN_TOK_in_parseSygus226); |
2338 |
2011 |
if (HASEXCEPTION()) |
2339 |
|
{ |
2340 |
|
goto ruleparseSygusEx; |
2341 |
|
} |
2342 |
|
|
2343 |
|
|
2344 |
|
} |
2345 |
2011 |
break; |
2346 |
185 |
case 2: |
2347 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:194:5: EOF |
2348 |
|
{ |
2349 |
185 |
MATCHT(EOF, &FOLLOW_EOF_in_parseSygus232); |
2350 |
185 |
if (HASEXCEPTION()) |
2351 |
|
{ |
2352 |
|
goto ruleparseSygusEx; |
2353 |
|
} |
2354 |
|
|
2355 |
|
|
2356 |
|
} |
2357 |
185 |
break; |
2358 |
|
|
2359 |
|
} |
2360 |
|
} |
2361 |
|
} |
2362 |
|
|
2363 |
|
// This is where rules clean up and exit |
2364 |
|
// |
2365 |
2196 |
goto ruleparseSygusEx; /* Prevent compiler warnings */ |
2366 |
2196 |
ruleparseSygusEx: ; |
2367 |
|
|
2368 |
2196 |
if (HASEXCEPTION()) |
2369 |
|
{ |
2370 |
|
PREPORTERROR(); |
2371 |
|
PRECOVER(); |
2372 |
|
} |
2373 |
|
else |
2374 |
|
{ |
2375 |
|
{ |
2376 |
|
|
2377 |
2196 |
cmd_return = cmd.release(); |
2378 |
|
|
2379 |
|
} |
2380 |
|
} |
2381 |
|
|
2382 |
|
|
2383 |
4392 |
return cmd_return; |
2384 |
|
} |
2385 |
|
/* $ANTLR end parseSygus */ |
2386 |
|
|
2387 |
|
/** |
2388 |
|
* $ANTLR start command |
2389 |
|
* /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:201:1: command[std::unique_ptr<cvc5::Command>* cmd] : ( SET_LOGIC_TOK symbol[name,CHECK_NONE,SYM_SORT] | SET_INFO_TOK setInfoInternal[cmd] | GET_INFO_TOK KEYWORD | SET_OPTION_TOK setOptionInternal[cmd] | GET_OPTION_TOK KEYWORD | DECLARE_SORT_TOK symbol[name,CHECK_UNDECLARED,SYM_SORT] n= INTEGER_LITERAL | DEFINE_SORT_TOK symbol[name,CHECK_UNDECLARED,SYM_SORT] LPAREN_TOK symbolList[names,CHECK_NONE,SYM_SORT] RPAREN_TOK sortSymbol[t,CHECK_DECLARED] | DECLARE_FUN_TOK symbol[name,CHECK_NONE,SYM_VARIABLE] LPAREN_TOK sortList[sorts] RPAREN_TOK sortSymbol[t,CHECK_DECLARED] | DEFINE_FUN_TOK symbol[name,CHECK_UNDECLARED,SYM_VARIABLE] LPAREN_TOK sortedVarList[sortedVarNames] RPAREN_TOK sortSymbol[t,CHECK_DECLARED] term[expr, expr2] | DECLARE_DATATYPE_TOK datatypeDefCommand[false, cmd] | DECLARE_DATATYPES_TOK datatypesDefCommand[false, cmd] | GET_VALUE_TOK ( LPAREN_TOK termList[terms,expr] RPAREN_TOK |~ LPAREN_TOK ) | GET_ASSIGNMENT_TOK | ASSERT_TOK term[expr, expr2] | CHECK_SAT_TOK ( term[expr, expr2] |) | CHECK_SAT_ASSUMING_TOK ( LPAREN_TOK termList[terms,expr] RPAREN_TOK |~ LPAREN_TOK ) | GET_ASSERTIONS_TOK | GET_PROOF_TOK | GET_UNSAT_ASSUMPTIONS_TOK | GET_UNSAT_CORE_TOK | PUSH_TOK (k= INTEGER_LITERAL |) | POP_TOK (k= INTEGER_LITERAL |) | EXIT_TOK | smt25Command[cmd] | extendedCommand[cmd] | SIMPLE_SYMBOL ); |
2390 |
|
*/ |
2391 |
|
static void |
2392 |
271375 |
command(pSmt2Parser ctx, std::unique_ptr<cvc5::Command>* cmd) |
2393 |
|
{ |
2394 |
|
|
2395 |
542750 |
std::string name; |
2396 |
542750 |
std::vector<std::string> names; |
2397 |
542750 |
cvc5::api::Term expr, expr2; |
2398 |
542750 |
cvc5::api::Sort t; |
2399 |
542750 |
std::vector<cvc5::api::Term> terms; |
2400 |
542750 |
std::vector<api::Sort> sorts; |
2401 |
542750 |
std::vector<std::pair<std::string, cvc5::api::Sort> > sortedVarNames; |
2402 |
542750 |
std::vector<cvc5::api::Term> flattenVars; |
2403 |
|
|
2404 |
|
pANTLR3_COMMON_TOKEN n; |
2405 |
|
pANTLR3_COMMON_TOKEN k; |
2406 |
|
pANTLR3_COMMON_TOKEN KEYWORD1; |
2407 |
|
pANTLR3_COMMON_TOKEN KEYWORD2; |
2408 |
|
pANTLR3_COMMON_TOKEN SIMPLE_SYMBOL3; |
2409 |
|
|
2410 |
|
/* Initialize rule variables |
2411 |
|
*/ |
2412 |
|
|
2413 |
271375 |
n = NULL; |
2414 |
271375 |
k = NULL; |
2415 |
271375 |
KEYWORD1 = NULL; |
2416 |
271375 |
KEYWORD2 = NULL; |
2417 |
271375 |
SIMPLE_SYMBOL3 = NULL; |
2418 |
|
|
2419 |
|
{ |
2420 |
|
{ |
2421 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:212:3: ( SET_LOGIC_TOK symbol[name,CHECK_NONE,SYM_SORT] | SET_INFO_TOK setInfoInternal[cmd] | GET_INFO_TOK KEYWORD | SET_OPTION_TOK setOptionInternal[cmd] | GET_OPTION_TOK KEYWORD | DECLARE_SORT_TOK symbol[name,CHECK_UNDECLARED,SYM_SORT] n= INTEGER_LITERAL | DEFINE_SORT_TOK symbol[name,CHECK_UNDECLARED,SYM_SORT] LPAREN_TOK symbolList[names,CHECK_NONE,SYM_SORT] RPAREN_TOK sortSymbol[t,CHECK_DECLARED] | DECLARE_FUN_TOK symbol[name,CHECK_NONE,SYM_VARIABLE] LPAREN_TOK sortList[sorts] RPAREN_TOK sortSymbol[t,CHECK_DECLARED] | DEFINE_FUN_TOK symbol[name,CHECK_UNDECLARED,SYM_VARIABLE] LPAREN_TOK sortedVarList[sortedVarNames] RPAREN_TOK sortSymbol[t,CHECK_DECLARED] term[expr, expr2] | DECLARE_DATATYPE_TOK datatypeDefCommand[false, cmd] | DECLARE_DATATYPES_TOK datatypesDefCommand[false, cmd] | GET_VALUE_TOK ( LPAREN_TOK termList[terms,expr] RPAREN_TOK |~ LPAREN_TOK ) | GET_ASSIGNMENT_TOK | ASSERT_TOK term[expr, expr2] | CHECK_SAT_TOK ( term[expr, expr2] |) | CHECK_SAT_ASSUMING_TOK ( LPAREN_TOK termList[terms,expr] RPAREN_TOK |~ LPAREN_TOK ) | GET_ASSERTIONS_TOK | GET_PROOF_TOK | GET_UNSAT_ASSUMPTIONS_TOK | GET_UNSAT_CORE_TOK | PUSH_TOK (k= INTEGER_LITERAL |) | POP_TOK (k= INTEGER_LITERAL |) | EXIT_TOK | smt25Command[cmd] | extendedCommand[cmd] | SIMPLE_SYMBOL ) |
2422 |
|
|
2423 |
|
ANTLR3_UINT32 alt9; |
2424 |
|
|
2425 |
271375 |
alt9=26; |
2426 |
|
|
2427 |
271375 |
switch ( LA(1) ) |
2428 |
|
{ |
2429 |
5323 |
case SET_LOGIC_TOK: |
2430 |
|
{ |
2431 |
5323 |
alt9=1; |
2432 |
|
} |
2433 |
5323 |
break; |
2434 |
5658 |
case SET_INFO_TOK: |
2435 |
|
{ |
2436 |
5658 |
alt9=2; |
2437 |
|
} |
2438 |
5658 |
break; |
2439 |
20 |
case GET_INFO_TOK: |
2440 |
|
{ |
2441 |
20 |
alt9=3; |
2442 |
|
} |
2443 |
20 |
break; |
2444 |
1812 |
case SET_OPTION_TOK: |
2445 |
|
{ |
2446 |
1812 |
alt9=4; |
2447 |
|
} |
2448 |
1812 |
break; |
2449 |
41 |
case GET_OPTION_TOK: |
2450 |
|
{ |
2451 |
41 |
alt9=5; |
2452 |
|
} |
2453 |
41 |
break; |
2454 |
3698 |
case DECLARE_SORT_TOK: |
2455 |
|
{ |
2456 |
3698 |
alt9=6; |
2457 |
|
} |
2458 |
3698 |
break; |
2459 |
206 |
case DEFINE_SORT_TOK: |
2460 |
|
{ |
2461 |
206 |
alt9=7; |
2462 |
|
} |
2463 |
206 |
break; |
2464 |
162337 |
case DECLARE_FUN_TOK: |
2465 |
|
{ |
2466 |
162337 |
alt9=8; |
2467 |
|
} |
2468 |
162337 |
break; |
2469 |
1996 |
case DEFINE_FUN_TOK: |
2470 |
|
{ |
2471 |
1996 |
alt9=9; |
2472 |
|
} |
2473 |
1996 |
break; |
2474 |
144 |
case DECLARE_DATATYPE_TOK: |
2475 |
|
{ |
2476 |
144 |
alt9=10; |
2477 |
|
} |
2478 |
144 |
break; |
2479 |
754 |
case DECLARE_DATATYPES_TOK: |
2480 |
|
{ |
2481 |
754 |
alt9=11; |
2482 |
|
} |
2483 |
754 |
break; |
2484 |
58 |
case GET_VALUE_TOK: |
2485 |
|
{ |
2486 |
58 |
alt9=12; |
2487 |
|
} |
2488 |
58 |
break; |
2489 |
10 |
case GET_ASSIGNMENT_TOK: |
2490 |
|
{ |
2491 |
10 |
alt9=13; |
2492 |
|
} |
2493 |
10 |
break; |
2494 |
70306 |
case ASSERT_TOK: |
2495 |
|
{ |
2496 |
70306 |
alt9=14; |
2497 |
|
} |
2498 |
70306 |
break; |
2499 |
8717 |
case CHECK_SAT_TOK: |
2500 |
|
{ |
2501 |
8717 |
alt9=15; |
2502 |
|
} |
2503 |
8717 |
break; |
2504 |
994 |
case CHECK_SAT_ASSUMING_TOK: |
2505 |
|
{ |
2506 |
994 |
alt9=16; |
2507 |
|
} |
2508 |
994 |
break; |
2509 |
|
case GET_ASSERTIONS_TOK: |
2510 |
|
{ |
2511 |
|
alt9=17; |
2512 |
|
} |
2513 |
|
break; |
2514 |
1 |
case GET_PROOF_TOK: |
2515 |
|
{ |
2516 |
1 |
alt9=18; |
2517 |
|
} |
2518 |
1 |
break; |
2519 |
11 |
case GET_UNSAT_ASSUMPTIONS_TOK: |
2520 |
|
{ |
2521 |
11 |
alt9=19; |
2522 |
|
} |
2523 |
11 |
break; |
2524 |
11 |
case GET_UNSAT_CORE_TOK: |
2525 |
|
{ |
2526 |
11 |
alt9=20; |
2527 |
|
} |
2528 |
11 |
break; |
2529 |
3162 |
case PUSH_TOK: |
2530 |
|
{ |
2531 |
3162 |
alt9=21; |
2532 |
|
} |
2533 |
3162 |
break; |
2534 |
2557 |
case POP_TOK: |
2535 |
|
{ |
2536 |
2557 |
alt9=22; |
2537 |
|
} |
2538 |
2557 |
break; |
2539 |
734 |
case EXIT_TOK: |
2540 |
|
{ |
2541 |
734 |
alt9=23; |
2542 |
|
} |
2543 |
734 |
break; |
2544 |
2642 |
case DECLARE_CONST_TOK: |
2545 |
|
case DEFINE_FUNS_REC_TOK: |
2546 |
|
case DEFINE_FUN_REC_TOK: |
2547 |
|
case ECHO_TOK: |
2548 |
|
case GET_MODEL_TOK: |
2549 |
|
case RESET_ASSERTIONS_TOK: |
2550 |
|
case RESET_TOK: |
2551 |
|
{ |
2552 |
2642 |
alt9=24; |
2553 |
|
} |
2554 |
2642 |
break; |
2555 |
183 |
case BLOCK_MODEL_TOK: |
2556 |
|
case BLOCK_MODEL_VALUES_TOK: |
2557 |
|
case DECLARE_CODATATYPES_TOK: |
2558 |
|
case DECLARE_CODATATYPE_TOK: |
2559 |
|
case DECLARE_FUNS_TOK: |
2560 |
|
case DECLARE_HEAP: |
2561 |
|
case DECLARE_POOL: |
2562 |
|
case DECLARE_PREDS_TOK: |
2563 |
|
case DECLARE_SORTS_TOK: |
2564 |
|
case DEFINE_CONST_TOK: |
2565 |
|
case DEFINE_TOK: |
2566 |
|
case GET_ABDUCT_TOK: |
2567 |
|
case GET_INTERPOL_TOK: |
2568 |
|
case GET_QE_DISJUNCT_TOK: |
2569 |
|
case GET_QE_TOK: |
2570 |
|
case SIMPLIFY_TOK: |
2571 |
|
{ |
2572 |
183 |
alt9=25; |
2573 |
|
} |
2574 |
183 |
break; |
2575 |
|
case SIMPLE_SYMBOL: |
2576 |
|
{ |
2577 |
|
alt9=26; |
2578 |
|
} |
2579 |
|
break; |
2580 |
|
|
2581 |
|
default: |
2582 |
|
CONSTRUCTEX(); |
2583 |
|
EXCEPTION->type = ANTLR3_NO_VIABLE_ALT_EXCEPTION; |
2584 |
|
EXCEPTION->message = (void *)""; |
2585 |
|
EXCEPTION->decisionNum = 9; |
2586 |
|
EXCEPTION->state = 0; |
2587 |
|
|
2588 |
|
|
2589 |
|
goto rulecommandEx; |
2590 |
|
|
2591 |
|
} |
2592 |
|
|
2593 |
271375 |
switch (alt9) |
2594 |
|
{ |
2595 |
5323 |
case 1: |
2596 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:213:5: SET_LOGIC_TOK symbol[name,CHECK_NONE,SYM_SORT] |
2597 |
|
{ |
2598 |
5323 |
MATCHT(SET_LOGIC_TOK, &FOLLOW_SET_LOGIC_TOK_in_command260); |
2599 |
5323 |
if (HASEXCEPTION()) |
2600 |
|
{ |
2601 |
|
goto rulecommandEx; |
2602 |
|
} |
2603 |
|
|
2604 |
|
|
2605 |
5323 |
FOLLOWPUSH(FOLLOW_symbol_in_command262); |
2606 |
5323 |
symbol(ctx, name, CHECK_NONE, SYM_SORT); |
2607 |
|
|
2608 |
5323 |
FOLLOWPOP(); |
2609 |
5323 |
if (HASEXCEPTION()) |
2610 |
|
{ |
2611 |
|
goto rulecommandEx; |
2612 |
|
} |
2613 |
|
|
2614 |
|
|
2615 |
|
{ |
2616 |
|
|
2617 |
5324 |
cmd->reset(PARSER_STATE->setLogic(name)); |
2618 |
|
|
2619 |
|
} |
2620 |
|
|
2621 |
|
|
2622 |
|
} |
2623 |
5322 |
break; |
2624 |
5658 |
case 2: |
2625 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:218:5: SET_INFO_TOK setInfoInternal[cmd] |
2626 |
|
{ |
2627 |
5658 |
MATCHT(SET_INFO_TOK, &FOLLOW_SET_INFO_TOK_in_command281); |
2628 |
5658 |
if (HASEXCEPTION()) |
2629 |
|
{ |
2630 |
|
goto rulecommandEx; |
2631 |
|
} |
2632 |
|
|
2633 |
|
|
2634 |
5658 |
FOLLOWPUSH(FOLLOW_setInfoInternal_in_command283); |
2635 |
5658 |
setInfoInternal(ctx, cmd); |
2636 |
|
|
2637 |
5658 |
FOLLOWPOP(); |
2638 |
5658 |
if (HASEXCEPTION()) |
2639 |
|
{ |
2640 |
|
goto rulecommandEx; |
2641 |
|
} |
2642 |
|
|
2643 |
|
|
2644 |
|
} |
2645 |
5658 |
break; |
2646 |
20 |
case 3: |
2647 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:220:5: GET_INFO_TOK KEYWORD |
2648 |
|
{ |
2649 |
20 |
MATCHT(GET_INFO_TOK, &FOLLOW_GET_INFO_TOK_in_command296); |
2650 |
20 |
if (HASEXCEPTION()) |
2651 |
|
{ |
2652 |
|
goto rulecommandEx; |
2653 |
|
} |
2654 |
|
|
2655 |
|
|
2656 |
20 |
KEYWORD1 = (pANTLR3_COMMON_TOKEN) MATCHT(KEYWORD, &FOLLOW_KEYWORD_in_command298); |
2657 |
20 |
if (HASEXCEPTION()) |
2658 |
|
{ |
2659 |
|
goto rulecommandEx; |
2660 |
|
} |
2661 |
|
|
2662 |
|
|
2663 |
|
{ |
2664 |
80 |
cmd->reset(new GetInfoCommand( |
2665 |
60 |
AntlrInput::tokenText(KEYWORD1).c_str() + 1)); |
2666 |
|
|
2667 |
|
} |
2668 |
|
|
2669 |
|
|
2670 |
|
} |
2671 |
20 |
break; |
2672 |
1812 |
case 4: |
2673 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:225:5: SET_OPTION_TOK setOptionInternal[cmd] |
2674 |
|
{ |
2675 |
1812 |
MATCHT(SET_OPTION_TOK, &FOLLOW_SET_OPTION_TOK_in_command316); |
2676 |
1812 |
if (HASEXCEPTION()) |
2677 |
|
{ |
2678 |
|
goto rulecommandEx; |
2679 |
|
} |
2680 |
|
|
2681 |
|
|
2682 |
1812 |
FOLLOWPUSH(FOLLOW_setOptionInternal_in_command318); |
2683 |
1812 |
setOptionInternal(ctx, cmd); |
2684 |
|
|
2685 |
1812 |
FOLLOWPOP(); |
2686 |
1812 |
if (HASEXCEPTION()) |
2687 |
|
{ |
2688 |
|
goto rulecommandEx; |
2689 |
|
} |
2690 |
|
|
2691 |
|
|
2692 |
|
} |
2693 |
1812 |
break; |
2694 |
41 |
case 5: |
2695 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:227:5: GET_OPTION_TOK KEYWORD |
2696 |
|
{ |
2697 |
41 |
MATCHT(GET_OPTION_TOK, &FOLLOW_GET_OPTION_TOK_in_command331); |
2698 |
41 |
if (HASEXCEPTION()) |
2699 |
|
{ |
2700 |
|
goto rulecommandEx; |
2701 |
|
} |
2702 |
|
|
2703 |
|
|
2704 |
41 |
KEYWORD2 = (pANTLR3_COMMON_TOKEN) MATCHT(KEYWORD, &FOLLOW_KEYWORD_in_command333); |
2705 |
41 |
if (HASEXCEPTION()) |
2706 |
|
{ |
2707 |
|
goto rulecommandEx; |
2708 |
|
} |
2709 |
|
|
2710 |
|
|
2711 |
|
{ |
2712 |
164 |
cmd->reset(new GetOptionCommand( |
2713 |
123 |
AntlrInput::tokenText(KEYWORD2).c_str() + 1)); |
2714 |
|
|
2715 |
|
} |
2716 |
|
|
2717 |
|
|
2718 |
|
} |
2719 |
41 |
break; |
2720 |
3698 |
case 6: |
2721 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:232:5: DECLARE_SORT_TOK symbol[name,CHECK_UNDECLARED,SYM_SORT] n= INTEGER_LITERAL |
2722 |
|
{ |
2723 |
3698 |
MATCHT(DECLARE_SORT_TOK, &FOLLOW_DECLARE_SORT_TOK_in_command351); |
2724 |
3698 |
if (HASEXCEPTION()) |
2725 |
|
{ |
2726 |
|
goto rulecommandEx; |
2727 |
|
} |
2728 |
|
|
2729 |
|
|
2730 |
|
{ |
2731 |
|
|
2732 |
3698 |
PARSER_STATE->checkThatLogicIsSet(); |
2733 |
3698 |
PARSER_STATE->checkLogicAllowsFreeSorts(); |
2734 |
|
|
2735 |
|
} |
2736 |
|
|
2737 |
|
|
2738 |
3698 |
FOLLOWPUSH(FOLLOW_symbol_in_command363); |
2739 |
3698 |
symbol(ctx, name, CHECK_UNDECLARED, SYM_SORT); |
2740 |
|
|
2741 |
3696 |
FOLLOWPOP(); |
2742 |
3696 |
if (HASEXCEPTION()) |
2743 |
|
{ |
2744 |
|
goto rulecommandEx; |
2745 |
|
} |
2746 |
|
|
2747 |
|
|
2748 |
|
{ |
2749 |
3696 |
PARSER_STATE->checkUserSymbol(name); |
2750 |
|
} |
2751 |
|
|
2752 |
|
|
2753 |
3696 |
n = (pANTLR3_COMMON_TOKEN) MATCHT(INTEGER_LITERAL, &FOLLOW_INTEGER_LITERAL_in_command378); |
2754 |
3696 |
if (HASEXCEPTION()) |
2755 |
|
{ |
2756 |
2 |
goto rulecommandEx; |
2757 |
|
} |
2758 |
|
|
2759 |
|
|
2760 |
|
{ |
2761 |
7388 |
Debug("parser") << "declare sort: '" << name |
2762 |
3694 |
<< "' arity=" << n << std::endl; |
2763 |
3694 |
unsigned arity = AntlrInput::tokenToUnsigned(n); |
2764 |
3694 |
if(arity == 0) { |
2765 |
7342 |
api::Sort type = PARSER_STATE->mkSort(name); |
2766 |
3671 |
cmd->reset(new DeclareSortCommand(name, 0, type)); |
2767 |
|
} else { |
2768 |
46 |
api::Sort type = PARSER_STATE->mkSortConstructor(name, arity); |
2769 |
23 |
cmd->reset(new DeclareSortCommand(name, arity, type)); |
2770 |
|
} |
2771 |
|
|
2772 |
|
} |
2773 |
|
|
2774 |
|
|
2775 |
|
} |
2776 |
3694 |
break; |
2777 |
206 |
case 7: |
2778 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:252:5: DEFINE_SORT_TOK symbol[name,CHECK_UNDECLARED,SYM_SORT] LPAREN_TOK symbolList[names,CHECK_NONE,SYM_SORT] RPAREN_TOK sortSymbol[t,CHECK_DECLARED] |
2779 |
|
{ |
2780 |
206 |
MATCHT(DEFINE_SORT_TOK, &FOLLOW_DEFINE_SORT_TOK_in_command396); |
2781 |
206 |
if (HASEXCEPTION()) |
2782 |
|
{ |
2783 |
|
goto rulecommandEx; |
2784 |
|
} |
2785 |
|
|
2786 |
|
|
2787 |
|
{ |
2788 |
206 |
PARSER_STATE->checkThatLogicIsSet(); |
2789 |
|
} |
2790 |
|
|
2791 |
|
|
2792 |
206 |
FOLLOWPUSH(FOLLOW_symbol_in_command404); |
2793 |
206 |
symbol(ctx, name, CHECK_UNDECLARED, SYM_SORT); |
2794 |
|
|
2795 |
206 |
FOLLOWPOP(); |
2796 |
206 |
if (HASEXCEPTION()) |
2797 |
|
{ |
2798 |
|
goto rulecommandEx; |
2799 |
|
} |
2800 |
|
|
2801 |
|
|
2802 |
|
{ |
2803 |
206 |
PARSER_STATE->checkUserSymbol(name); |
2804 |
|
} |
2805 |
|
|
2806 |
|
|
2807 |
206 |
MATCHT(LPAREN_TOK, &FOLLOW_LPAREN_TOK_in_command417); |
2808 |
206 |
if (HASEXCEPTION()) |
2809 |
|
{ |
2810 |
|
goto rulecommandEx; |
2811 |
|
} |
2812 |
|
|
2813 |
|
|
2814 |
206 |
FOLLOWPUSH(FOLLOW_symbolList_in_command419); |
2815 |
206 |
symbolList(ctx, names, CHECK_NONE, SYM_SORT); |
2816 |
|
|
2817 |
206 |
FOLLOWPOP(); |
2818 |
206 |
if (HASEXCEPTION()) |
2819 |
|
{ |
2820 |
|
goto rulecommandEx; |
2821 |
|
} |
2822 |
|
|
2823 |
|
|
2824 |
206 |
MATCHT(RPAREN_TOK, &FOLLOW_RPAREN_TOK_in_command422); |
2825 |
206 |
if (HASEXCEPTION()) |
2826 |
|
{ |
2827 |
|
goto rulecommandEx; |
2828 |
|
} |
2829 |
|
|
2830 |
|
|
2831 |
|
{ |
2832 |
206 |
PARSER_STATE->pushScope(); |
2833 |
208 |
for(std::vector<std::string>::const_iterator i = names.begin(), |
2834 |
206 |
iend = names.end(); |
2835 |
208 |
i != iend; |
2836 |
|
++i) { |
2837 |
2 |
sorts.push_back(PARSER_STATE->mkSort(*i)); |
2838 |
|
} |
2839 |
|
|
2840 |
|
} |
2841 |
|
|
2842 |
|
|
2843 |
206 |
FOLLOWPUSH(FOLLOW_sortSymbol_in_command434); |
2844 |
206 |
sortSymbol(ctx, t, CHECK_DECLARED); |
2845 |
|
|
2846 |
206 |
FOLLOWPOP(); |
2847 |
206 |
if (HASEXCEPTION()) |
2848 |
|
{ |
2849 |
|
goto rulecommandEx; |
2850 |
|
} |
2851 |
|
|
2852 |
|
|
2853 |
|
{ |
2854 |
206 |
PARSER_STATE->popScope(); |
2855 |
|
// Do NOT call mkSort, since that creates a new sort! |
2856 |
|
// This name is not its own distinct sort, it's an alias. |
2857 |
206 |
PARSER_STATE->defineParameterizedType(name, sorts, t); |
2858 |
206 |
cmd->reset(new DefineSortCommand(name, sorts, t)); |
2859 |
|
|
2860 |
|
} |
2861 |
|
|
2862 |
|
|
2863 |
|
} |
2864 |
206 |
break; |
2865 |
162337 |
case 8: |
2866 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:272:5: DECLARE_FUN_TOK symbol[name,CHECK_NONE,SYM_VARIABLE] LPAREN_TOK sortList[sorts] RPAREN_TOK sortSymbol[t,CHECK_DECLARED] |
2867 |
|
{ |
2868 |
162337 |
MATCHT(DECLARE_FUN_TOK, &FOLLOW_DECLARE_FUN_TOK_in_command453); |
2869 |
162337 |
if (HASEXCEPTION()) |
2870 |
|
{ |
2871 |
|
goto rulecommandEx; |
2872 |
|
} |
2873 |
|
|
2874 |
|
|
2875 |
|
{ |
2876 |
162337 |
PARSER_STATE->checkThatLogicIsSet(); |
2877 |
|
} |
2878 |
|
|
2879 |
|
|
2880 |
162335 |
FOLLOWPUSH(FOLLOW_symbol_in_command461); |
2881 |
162335 |
symbol(ctx, name, CHECK_NONE, SYM_VARIABLE); |
2882 |
|
|
2883 |
162335 |
FOLLOWPOP(); |
2884 |
162335 |
if (HASEXCEPTION()) |
2885 |
|
{ |
2886 |
|
goto rulecommandEx; |
2887 |
|
} |
2888 |
|
|
2889 |
|
|
2890 |
|
{ |
2891 |
162335 |
PARSER_STATE->checkUserSymbol(name); |
2892 |
|
} |
2893 |
|
|
2894 |
|
|
2895 |
162333 |
MATCHT(LPAREN_TOK, &FOLLOW_LPAREN_TOK_in_command474); |
2896 |
162333 |
if (HASEXCEPTION()) |
2897 |
|
{ |
2898 |
2 |
goto rulecommandEx; |
2899 |
|
} |
2900 |
|
|
2901 |
|
|
2902 |
162331 |
FOLLOWPUSH(FOLLOW_sortList_in_command476); |
2903 |
162331 |
sortList(ctx, sorts); |
2904 |
|
|
2905 |
162330 |
FOLLOWPOP(); |
2906 |
162330 |
if (HASEXCEPTION()) |
2907 |
|
{ |
2908 |
|
goto rulecommandEx; |
2909 |
|
} |
2910 |
|
|
2911 |
|
|
2912 |
162330 |
MATCHT(RPAREN_TOK, &FOLLOW_RPAREN_TOK_in_command479); |
2913 |
162330 |
if (HASEXCEPTION()) |
2914 |
|
{ |
2915 |
|
goto rulecommandEx; |
2916 |
|
} |
2917 |
|
|
2918 |
|
|
2919 |
162330 |
FOLLOWPUSH(FOLLOW_sortSymbol_in_command485); |
2920 |
162330 |
sortSymbol(ctx, t, CHECK_DECLARED); |
2921 |
|
|
2922 |
162329 |
FOLLOWPOP(); |
2923 |
162329 |
if (HASEXCEPTION()) |
2924 |
|
{ |
2925 |
|
goto rulecommandEx; |
2926 |
|
} |
2927 |
|
|
2928 |
|
|
2929 |
|
{ |
2930 |
162329 |
Debug("parser") << "declare fun: '" << name << "'" << std::endl; |
2931 |
162329 |
if( !sorts.empty() ) { |
2932 |
14400 |
t = PARSER_STATE->mkFlatFunctionType(sorts, t); |
2933 |
|
} |
2934 |
162329 |
if(t.isFunction()) |
2935 |
|
{ |
2936 |
14411 |
PARSER_STATE->checkLogicAllowsFunctions(); |
2937 |
|
} |
2938 |
|
// we allow overloading for function declarations |
2939 |
162329 |
if( PARSER_STATE->sygus() ) |
2940 |
|
{ |
2941 |
|
PARSER_STATE->parseErrorLogic("declare-fun are not allowed in sygus " |
2942 |
|
"version 2.0"); |
2943 |
|
} |
2944 |
|
else |
2945 |
|
{ |
2946 |
|
api::Term func = |
2947 |
324658 |
PARSER_STATE->bindVar(name, t, false, true); |
2948 |
162329 |
cmd->reset(new DeclareFunctionCommand(name, func, t)); |
2949 |
|
} |
2950 |
|
|
2951 |
|
} |
2952 |
|
|
2953 |
|
|
2954 |
|
} |
2955 |
162329 |
break; |
2956 |
1996 |
case 9: |
2957 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:299:5: DEFINE_FUN_TOK symbol[name,CHECK_UNDECLARED,SYM_VARIABLE] LPAREN_TOK sortedVarList[sortedVarNames] RPAREN_TOK sortSymbol[t,CHECK_DECLARED] term[expr, expr2] |
2958 |
|
{ |
2959 |
1996 |
MATCHT(DEFINE_FUN_TOK, &FOLLOW_DEFINE_FUN_TOK_in_command504); |
2960 |
1996 |
if (HASEXCEPTION()) |
2961 |
|
{ |
2962 |
|
goto rulecommandEx; |
2963 |
|
} |
2964 |
|
|
2965 |
|
|
2966 |
|
{ |
2967 |
1996 |
PARSER_STATE->checkThatLogicIsSet(); |
2968 |
|
} |
2969 |
|
|
2970 |
|
|
2971 |
1996 |
FOLLOWPUSH(FOLLOW_symbol_in_command512); |
2972 |
1996 |
symbol(ctx, name, CHECK_UNDECLARED, SYM_VARIABLE); |
2973 |
|
|
2974 |
1996 |
FOLLOWPOP(); |
2975 |
1996 |
if (HASEXCEPTION()) |
2976 |
|
{ |
2977 |
|
goto rulecommandEx; |
2978 |
|
} |
2979 |
|
|
2980 |
|
|
2981 |
|
{ |
2982 |
1996 |
PARSER_STATE->checkUserSymbol(name); |
2983 |
|
} |
2984 |
|
|
2985 |
|
|
2986 |
1996 |
MATCHT(LPAREN_TOK, &FOLLOW_LPAREN_TOK_in_command525); |
2987 |
1996 |
if (HASEXCEPTION()) |
2988 |
|
{ |
2989 |
|
goto rulecommandEx; |
2990 |
|
} |
2991 |
|
|
2992 |
|
|
2993 |
1996 |
FOLLOWPUSH(FOLLOW_sortedVarList_in_command527); |
2994 |
1996 |
sortedVarList(ctx, sortedVarNames); |
2995 |
|
|
2996 |
1996 |
FOLLOWPOP(); |
2997 |
1996 |
if (HASEXCEPTION()) |
2998 |
|
{ |
2999 |
|
goto rulecommandEx; |
3000 |
|
} |
3001 |
|
|
3002 |
|
|
3003 |
1996 |
MATCHT(RPAREN_TOK, &FOLLOW_RPAREN_TOK_in_command530); |
3004 |
1996 |
if (HASEXCEPTION()) |
3005 |
|
{ |
3006 |
|
goto rulecommandEx; |
3007 |
|
} |
3008 |
|
|
3009 |
|
|
3010 |
1996 |
FOLLOWPUSH(FOLLOW_sortSymbol_in_command536); |
3011 |
1996 |
sortSymbol(ctx, t, CHECK_DECLARED); |
3012 |
|
|
3013 |
1996 |
FOLLOWPOP(); |
3014 |
1996 |
if (HASEXCEPTION()) |
3015 |
|
{ |
3016 |
|
goto rulecommandEx; |
3017 |
|
} |
3018 |
|
|
3019 |
|
|
3020 |
|
{ |
3021 |
|
/* add variables to parser state before parsing term */ |
3022 |
1996 |
Debug("parser") << "define fun: '" << name << "'" << std::endl; |
3023 |
1996 |
if( sortedVarNames.size() > 0 ) { |
3024 |
1200 |
sorts.reserve(sortedVarNames.size()); |
3025 |
2915 |
for(std::vector<std::pair<std::string, api::Sort> >::const_iterator i = |
3026 |
1200 |
sortedVarNames.begin(), iend = sortedVarNames.end(); |
3027 |
4115 |
i != iend; |
3028 |
|
++i) { |
3029 |
2915 |
sorts.push_back((*i).second); |
3030 |
|
} |
3031 |
|
} |
3032 |
|
|
3033 |
1996 |
t = PARSER_STATE->mkFlatFunctionType(sorts, t, flattenVars); |
3034 |
1996 |
if (sortedVarNames.size() > 0) |
3035 |
|
{ |
3036 |
1200 |
PARSER_STATE->pushScope(); |
3037 |
|
} |
3038 |
1996 |
terms = PARSER_STATE->bindBoundVars(sortedVarNames); |
3039 |
|
|
3040 |
|
} |
3041 |
|
|
3042 |
|
|
3043 |
1996 |
FOLLOWPUSH(FOLLOW_term_in_command549); |
3044 |
1996 |
term(ctx, expr, expr2); |
3045 |
|
|
3046 |
1995 |
FOLLOWPOP(); |
3047 |
1995 |
if (HASEXCEPTION()) |
3048 |
|
{ |
3049 |
|
goto rulecommandEx; |
3050 |
|
} |
3051 |
|
|
3052 |
|
|
3053 |
|
{ |
3054 |
|
|
3055 |
1995 |
if( !flattenVars.empty() ){ |
3056 |
|
// if this function has any implicit variables flattenVars, |
3057 |
|
// we apply the body of the definition to the flatten vars |
3058 |
3 |
expr = PARSER_STATE->mkHoApply(expr, flattenVars); |
3059 |
3 |
terms.insert(terms.end(), flattenVars.begin(), flattenVars.end()); |
3060 |
|
} |
3061 |
1995 |
if (sortedVarNames.size() > 0) |
3062 |
|
{ |
3063 |
1199 |
PARSER_STATE->popScope(); |
3064 |
|
} |
3065 |
|
// declare the name down here (while parsing term, signature |
3066 |
|
// must not be extended with the name itself; no recursion |
3067 |
|
// permitted) |
3068 |
|
// we allow overloading for function definitions |
3069 |
3990 |
api::Term func = PARSER_STATE->bindVar(name, t, false, true); |
3070 |
3990 |
cmd->reset(new DefineFunctionCommand( |
3071 |
1995 |
name, func, terms, expr, SYM_MAN->getGlobalDeclarations())); |
3072 |
|
|
3073 |
1995 |
} |
3074 |
|
|
3075 |
|
|
3076 |
|
} |
3077 |
1995 |
break; |
3078 |
144 |
case 10: |
3079 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:343:5: DECLARE_DATATYPE_TOK datatypeDefCommand[false, cmd] |
3080 |
|
{ |
3081 |
144 |
MATCHT(DECLARE_DATATYPE_TOK, &FOLLOW_DECLARE_DATATYPE_TOK_in_command562); |
3082 |
144 |
if (HASEXCEPTION()) |
3083 |
|
{ |
3084 |
|
goto rulecommandEx; |
3085 |
|
} |
3086 |
|
|
3087 |
|
|
3088 |
144 |
FOLLOWPUSH(FOLLOW_datatypeDefCommand_in_command564); |
3089 |
144 |
datatypeDefCommand(ctx, false, cmd); |
3090 |
|
|
3091 |
144 |
FOLLOWPOP(); |
3092 |
144 |
if (HASEXCEPTION()) |
3093 |
|
{ |
3094 |
|
goto rulecommandEx; |
3095 |
|
} |
3096 |
|
|
3097 |
|
|
3098 |
|
} |
3099 |
144 |
break; |
3100 |
754 |
case 11: |
3101 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:344:5: DECLARE_DATATYPES_TOK datatypesDefCommand[false, cmd] |
3102 |
|
{ |
3103 |
754 |
MATCHT(DECLARE_DATATYPES_TOK, &FOLLOW_DECLARE_DATATYPES_TOK_in_command571); |
3104 |
754 |
if (HASEXCEPTION()) |
3105 |
|
{ |
3106 |
|
goto rulecommandEx; |
3107 |
|
} |
3108 |
|
|
3109 |
|
|
3110 |
754 |
FOLLOWPUSH(FOLLOW_datatypesDefCommand_in_command573); |
3111 |
754 |
datatypesDefCommand(ctx, false, cmd); |
3112 |
|
|
3113 |
754 |
FOLLOWPOP(); |
3114 |
754 |
if (HASEXCEPTION()) |
3115 |
|
{ |
3116 |
|
goto rulecommandEx; |
3117 |
|
} |
3118 |
|
|
3119 |
|
|
3120 |
|
} |
3121 |
754 |
break; |
3122 |
58 |
case 12: |
3123 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:346:5: GET_VALUE_TOK ( LPAREN_TOK termList[terms,expr] RPAREN_TOK |~ LPAREN_TOK ) |
3124 |
|
{ |
3125 |
58 |
MATCHT(GET_VALUE_TOK, &FOLLOW_GET_VALUE_TOK_in_command586); |
3126 |
58 |
if (HASEXCEPTION()) |
3127 |
|
{ |
3128 |
|
goto rulecommandEx; |
3129 |
|
} |
3130 |
|
|
3131 |
|
|
3132 |
|
{ |
3133 |
58 |
PARSER_STATE->checkThatLogicIsSet(); |
3134 |
|
} |
3135 |
|
|
3136 |
|
|
3137 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:347:5: ( LPAREN_TOK termList[terms,expr] RPAREN_TOK |~ LPAREN_TOK ) |
3138 |
|
{ |
3139 |
58 |
int alt4=2; |
3140 |
58 |
switch ( LA(1) ) |
3141 |
|
{ |
3142 |
58 |
case LPAREN_TOK: |
3143 |
|
{ |
3144 |
58 |
alt4=1; |
3145 |
|
} |
3146 |
58 |
break; |
3147 |
|
case ALPHA: |
3148 |
|
case ASSERT_TOK: |
3149 |
|
case AS_TOK: |
3150 |
|
case ATTRIBUTE_INST_ADD_TO_POOL_TOK: |
3151 |
|
case ATTRIBUTE_INST_LEVEL: |
3152 |
|
case ATTRIBUTE_NAMED_TOK: |
3153 |
|
case ATTRIBUTE_NO_PATTERN_TOK: |
3154 |
|
case ATTRIBUTE_PATTERN_TOK: |
3155 |
|
case ATTRIBUTE_POOL_TOK: |
3156 |
|
case ATTRIBUTE_QUANTIFIER_ID_TOK: |
3157 |
|
case ATTRIBUTE_SKOLEM_ADD_TO_POOL_TOK: |
3158 |
|
case ATTRIBUTE_TOK: |
3159 |
|
case BINARY_LITERAL: |
3160 |
|
case BLOCK_MODEL_TOK: |
3161 |
|
case BLOCK_MODEL_VALUES_TOK: |
3162 |
|
case CHAR_TOK: |
3163 |
|
case CHECK_SAT_ASSUMING_TOK: |
3164 |
|
case CHECK_SAT_TOK: |
3165 |
|
case CHECK_SYNTH_TOK: |
3166 |
|
case COMMENT: |
3167 |
|
case COMPREHENSION_TOK: |
3168 |
|
case CONSTRAINT_TOK: |
3169 |
|
case CONST_TOK: |
3170 |
|
case DECIMAL_LITERAL: |
3171 |
|
case DECLARE_CODATATYPES_2_5_TOK: |
3172 |
|
case DECLARE_CODATATYPES_TOK: |
3173 |
|
case DECLARE_CODATATYPE_TOK: |
3174 |
|
case DECLARE_CONST_TOK: |
3175 |
|
case DECLARE_DATATYPES_2_5_TOK: |
3176 |
|
case DECLARE_DATATYPES_TOK: |
3177 |
|
case DECLARE_DATATYPE_TOK: |
3178 |
|
case DECLARE_FUNS_TOK: |
3179 |
|
case DECLARE_FUN_TOK: |
3180 |
|
case DECLARE_HEAP: |
3181 |
|
case DECLARE_POOL: |
3182 |
|
case DECLARE_PREDS_TOK: |
3183 |
|
case DECLARE_SORTS_TOK: |
3184 |
|
case DECLARE_SORT_TOK: |
3185 |
|
case DECLARE_VAR_TOK: |
3186 |
|
case DEFINE_CONST_TOK: |
3187 |
|
case DEFINE_FUNS_REC_TOK: |
3188 |
|
case DEFINE_FUN_REC_TOK: |
3189 |
|
case DEFINE_FUN_TOK: |
3190 |
|
case DEFINE_SORT_TOK: |
3191 |
|
case DEFINE_TOK: |
3192 |
|
case DIGIT: |
3193 |
|
case ECHO_TOK: |
3194 |
|
case EMP_TOK: |
3195 |
|
case EXISTS_TOK: |
3196 |
|
case EXIT_TOK: |
3197 |
|
case FORALL_TOK: |
3198 |
|
case GET_ABDUCT_TOK: |
3199 |
|
case GET_ASSERTIONS_TOK: |
3200 |
|
case GET_ASSIGNMENT_TOK: |
3201 |
|
case GET_INFO_TOK: |
3202 |
|
case GET_INTERPOL_TOK: |
3203 |
|
case GET_MODEL_TOK: |
3204 |
|
case GET_OPTION_TOK: |
3205 |
|
case GET_PROOF_TOK: |
3206 |
|
case GET_QE_DISJUNCT_TOK: |
3207 |
|
case GET_QE_TOK: |
3208 |
|
case GET_UNSAT_ASSUMPTIONS_TOK: |
3209 |
|
case GET_UNSAT_CORE_TOK: |
3210 |
|
case GET_VALUE_TOK: |
3211 |
|
case HEX_DIGIT: |
3212 |
|
case HEX_LITERAL: |
3213 |
|
case HO_ARROW_TOK: |
3214 |
|
case HO_LAMBDA_TOK: |
3215 |
|
case INCLUDE_TOK: |
3216 |
|
case INDEX_TOK: |
3217 |
|
case INTEGER_LITERAL: |
3218 |
|
case INV_CONSTRAINT_TOK: |
3219 |
|
case KEYWORD: |
3220 |
|
case LET_TOK: |
3221 |
|
case MATCH_TOK: |
3222 |
|
case NUMERAL: |
3223 |
|
case PAR_TOK: |
3224 |
|
case POP_TOK: |
3225 |
|
case PUSH_TOK: |
3226 |
|
case QUOTED_SYMBOL: |
3227 |
|
case RESET_ASSERTIONS_TOK: |
3228 |
|
case RESET_TOK: |
3229 |
|
case RPAREN_TOK: |
3230 |
|
case SET_FEATURE_TOK: |
3231 |
|
case SET_INFO_TOK: |
3232 |
|
case SET_LOGIC_TOK: |
3233 |
|
case SET_OPTION_TOK: |
3234 |
|
case SIMPLE_SYMBOL: |
3235 |
|
case SIMPLIFY_TOK: |
3236 |
|
case STRING_LITERAL: |
3237 |
|
case SYGUS_CONSTANT_TOK: |
3238 |
|
case SYGUS_VARIABLE_TOK: |
3239 |
|
case SYMBOL_CHAR: |
3240 |
|
case SYMBOL_CHAR_NOUNDERSCORE_NOATTRIBUTE: |
3241 |
|
case SYNTH_FUN_TOK: |
3242 |
|
case SYNTH_INV_TOK: |
3243 |
|
case TESTER_TOK: |
3244 |
|
case TUPLE_CONST_TOK: |
3245 |
|
case TUPLE_PROJECT_TOK: |
3246 |
|
case TUPLE_SEL_TOK: |
3247 |
|
case UNTERMINATED_QUOTED_SYMBOL: |
3248 |
|
case UPDATE_TOK: |
3249 |
|
case WHITESPACE: |
3250 |
|
case 108: |
3251 |
|
{ |
3252 |
|
alt4=2; |
3253 |
|
} |
3254 |
|
break; |
3255 |
|
|
3256 |
|
default: |
3257 |
|
CONSTRUCTEX(); |
3258 |
|
EXCEPTION->type = ANTLR3_NO_VIABLE_ALT_EXCEPTION; |
3259 |
|
EXCEPTION->message = (void *)""; |
3260 |
|
EXCEPTION->decisionNum = 4; |
3261 |
|
EXCEPTION->state = 0; |
3262 |
|
|
3263 |
|
|
3264 |
|
goto rulecommandEx; |
3265 |
|
|
3266 |
|
} |
3267 |
|
|
3268 |
58 |
switch (alt4) |
3269 |
|
{ |
3270 |
58 |
case 1: |
3271 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:347:7: LPAREN_TOK termList[terms,expr] RPAREN_TOK |
3272 |
|
{ |
3273 |
58 |
MATCHT(LPAREN_TOK, &FOLLOW_LPAREN_TOK_in_command596); |
3274 |
58 |
if (HASEXCEPTION()) |
3275 |
|
{ |
3276 |
|
goto rulecommandEx; |
3277 |
|
} |
3278 |
|
|
3279 |
|
|
3280 |
58 |
FOLLOWPUSH(FOLLOW_termList_in_command598); |
3281 |
58 |
termList(ctx, terms, expr); |
3282 |
|
|
3283 |
58 |
FOLLOWPOP(); |
3284 |
58 |
if (HASEXCEPTION()) |
3285 |
|
{ |
3286 |
|
goto rulecommandEx; |
3287 |
|
} |
3288 |
|
|
3289 |
|
|
3290 |
58 |
MATCHT(RPAREN_TOK, &FOLLOW_RPAREN_TOK_in_command601); |
3291 |
58 |
if (HASEXCEPTION()) |
3292 |
|
{ |
3293 |
|
goto rulecommandEx; |
3294 |
|
} |
3295 |
|
|
3296 |
|
|
3297 |
|
{ |
3298 |
58 |
cmd->reset(new GetValueCommand(terms)); |
3299 |
|
} |
3300 |
|
|
3301 |
|
|
3302 |
|
} |
3303 |
58 |
break; |
3304 |
|
case 2: |
3305 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:349:7: ~ LPAREN_TOK |
3306 |
|
{ |
3307 |
|
if ( ((LA(1) >= ALPHA) && (LA(1) <= LET_TOK)) || ((LA(1) >= MATCH_TOK) && (LA(1) <= 108)) ) |
3308 |
|
{ |
3309 |
|
CONSUME(); |
3310 |
|
PERRORRECOVERY=ANTLR3_FALSE; |
3311 |
|
} |
3312 |
|
else |
3313 |
|
{ |
3314 |
|
CONSTRUCTEX(); |
3315 |
|
EXCEPTION->type = ANTLR3_MISMATCHED_SET_EXCEPTION; |
3316 |
|
EXCEPTION->name = (void *)ANTLR3_MISMATCHED_SET_NAME; |
3317 |
|
EXCEPTION->expectingSet = NULL; |
3318 |
|
|
3319 |
|
goto rulecommandEx; |
3320 |
|
} |
3321 |
|
|
3322 |
|
|
3323 |
|
{ |
3324 |
|
PARSER_STATE->parseError("The get-value command expects a list of " |
3325 |
|
"terms. Perhaps you forgot a pair of " |
3326 |
|
"parentheses?"); |
3327 |
|
|
3328 |
|
} |
3329 |
|
|
3330 |
|
|
3331 |
|
} |
3332 |
|
break; |
3333 |
|
|
3334 |
|
} |
3335 |
|
} |
3336 |
|
|
3337 |
|
} |
3338 |
58 |
break; |
3339 |
10 |
case 13: |
3340 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:356:5: GET_ASSIGNMENT_TOK |
3341 |
|
{ |
3342 |
10 |
MATCHT(GET_ASSIGNMENT_TOK, &FOLLOW_GET_ASSIGNMENT_TOK_in_command644); |
3343 |
10 |
if (HASEXCEPTION()) |
3344 |
|
{ |
3345 |
|
goto rulecommandEx; |
3346 |
|
} |
3347 |
|
|
3348 |
|
|
3349 |
|
{ |
3350 |
10 |
PARSER_STATE->checkThatLogicIsSet(); |
3351 |
|
} |
3352 |
|
|
3353 |
|
|
3354 |
|
{ |
3355 |
10 |
cmd->reset(new GetAssignmentCommand()); |
3356 |
|
} |
3357 |
|
|
3358 |
|
|
3359 |
|
} |
3360 |
10 |
break; |
3361 |
70306 |
case 14: |
3362 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:359:5: ASSERT_TOK term[expr, expr2] |
3363 |
|
{ |
3364 |
70306 |
MATCHT(ASSERT_TOK, &FOLLOW_ASSERT_TOK_in_command664); |
3365 |
70306 |
if (HASEXCEPTION()) |
3366 |
|
{ |
3367 |
|
goto rulecommandEx; |
3368 |
|
} |
3369 |
|
|
3370 |
|
|
3371 |
|
{ |
3372 |
70306 |
PARSER_STATE->checkThatLogicIsSet(); |
3373 |
|
} |
3374 |
|
|
3375 |
|
|
3376 |
|
{ |
3377 |
70304 |
PARSER_STATE->clearLastNamedTerm(); |
3378 |
|
} |
3379 |
|
|
3380 |
|
|
3381 |
70304 |
FOLLOWPUSH(FOLLOW_term_in_command678); |
3382 |
70304 |
term(ctx, expr, expr2); |
3383 |
|
|
3384 |
70296 |
FOLLOWPOP(); |
3385 |
70296 |
if (HASEXCEPTION()) |
3386 |
|
{ |
3387 |
|
goto rulecommandEx; |
3388 |
|
} |
3389 |
|
|
3390 |
|
|
3391 |
|
{ |
3392 |
70296 |
cmd->reset(new AssertCommand(expr)); |
3393 |
70296 |
if (PARSER_STATE->lastNamedTerm().first == expr) |
3394 |
|
{ |
3395 |
|
// set the expression name, if there was a named term |
3396 |
|
std::pair<api::Term, std::string> namedTerm = |
3397 |
9286 |
PARSER_STATE->lastNamedTerm(); |
3398 |
4643 |
SYM_MAN->setExpressionName(namedTerm.first, namedTerm.second, true); |
3399 |
|
} |
3400 |
|
|
3401 |
|
} |
3402 |
|
|
3403 |
|
|
3404 |
|
} |
3405 |
70296 |
break; |
3406 |
8717 |
case 15: |
3407 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:372:5: CHECK_SAT_TOK ( term[expr, expr2] |) |
3408 |
|
{ |
3409 |
8717 |
MATCHT(CHECK_SAT_TOK, &FOLLOW_CHECK_SAT_TOK_in_command697); |
3410 |
8717 |
if (HASEXCEPTION()) |
3411 |
|
{ |
3412 |
|
goto rulecommandEx; |
3413 |
|
} |
3414 |
|
|
3415 |
|
|
3416 |
|
{ |
3417 |
8717 |
PARSER_STATE->checkThatLogicIsSet(); |
3418 |
|
} |
3419 |
|
|
3420 |
|
|
3421 |
|
{ |
3422 |
8717 |
if( PARSER_STATE->sygus() ){ |
3423 |
|
PARSER_STATE->parseError("Sygus does not support check-sat command."); |
3424 |
|
} |
3425 |
|
|
3426 |
|
} |
3427 |
|
|
3428 |
|
|
3429 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:377:5: ( term[expr, expr2] |) |
3430 |
|
{ |
3431 |
8717 |
int alt5=2; |
3432 |
8717 |
switch ( LA(1) ) |
3433 |
|
{ |
3434 |
11 |
case BINARY_LITERAL: |
3435 |
|
case DECIMAL_LITERAL: |
3436 |
|
case HEX_LITERAL: |
3437 |
|
case INTEGER_LITERAL: |
3438 |
|
case LPAREN_TOK: |
3439 |
|
case QUOTED_SYMBOL: |
3440 |
|
case SIMPLE_SYMBOL: |
3441 |
|
case STRING_LITERAL: |
3442 |
|
case TUPLE_CONST_TOK: |
3443 |
|
case UNTERMINATED_QUOTED_SYMBOL: |
3444 |
|
{ |
3445 |
11 |
alt5=1; |
3446 |
|
} |
3447 |
11 |
break; |
3448 |
8706 |
case RPAREN_TOK: |
3449 |
|
{ |
3450 |
8706 |
alt5=2; |
3451 |
|
} |
3452 |
8706 |
break; |
3453 |
|
|
3454 |
|
default: |
3455 |
|
CONSTRUCTEX(); |
3456 |
|
EXCEPTION->type = ANTLR3_NO_VIABLE_ALT_EXCEPTION; |
3457 |
|
EXCEPTION->message = (void *)""; |
3458 |
|
EXCEPTION->decisionNum = 5; |
3459 |
|
EXCEPTION->state = 0; |
3460 |
|
|
3461 |
|
|
3462 |
|
goto rulecommandEx; |
3463 |
|
|
3464 |
|
} |
3465 |
|
|
3466 |
8717 |
switch (alt5) |
3467 |
|
{ |
3468 |
11 |
case 1: |
3469 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:377:7: term[expr, expr2] |
3470 |
|
{ |
3471 |
11 |
FOLLOWPUSH(FOLLOW_term_in_command713); |
3472 |
11 |
term(ctx, expr, expr2); |
3473 |
|
|
3474 |
11 |
FOLLOWPOP(); |
3475 |
11 |
if (HASEXCEPTION()) |
3476 |
|
{ |
3477 |
|
goto rulecommandEx; |
3478 |
|
} |
3479 |
|
|
3480 |
|
|
3481 |
|
{ |
3482 |
11 |
if(PARSER_STATE->strictModeEnabled()) { |
3483 |
4 |
PARSER_STATE->parseError( |
3484 |
|
"Extended commands (such as check-sat with an argument) are not " |
3485 |
|
"permitted while operating in strict compliance mode."); |
3486 |
|
} |
3487 |
|
|
3488 |
|
} |
3489 |
|
|
3490 |
|
|
3491 |
|
} |
3492 |
9 |
break; |
3493 |
8706 |
case 2: |
3494 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:384:7: |
3495 |
|
{ |
3496 |
|
{ |
3497 |
8706 |
expr = api::Term(); |
3498 |
|
} |
3499 |
|
|
3500 |
|
|
3501 |
|
} |
3502 |
8706 |
break; |
3503 |
|
|
3504 |
|
} |
3505 |
|
} |
3506 |
|
|
3507 |
|
{ |
3508 |
8715 |
cmd->reset(new CheckSatCommand(expr)); |
3509 |
|
} |
3510 |
|
|
3511 |
|
|
3512 |
|
} |
3513 |
8715 |
break; |
3514 |
994 |
case 16: |
3515 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:388:5: CHECK_SAT_ASSUMING_TOK ( LPAREN_TOK termList[terms,expr] RPAREN_TOK |~ LPAREN_TOK ) |
3516 |
|
{ |
3517 |
994 |
MATCHT(CHECK_SAT_ASSUMING_TOK, &FOLLOW_CHECK_SAT_ASSUMING_TOK_in_command754); |
3518 |
994 |
if (HASEXCEPTION()) |
3519 |
|
{ |
3520 |
|
goto rulecommandEx; |
3521 |
|
} |
3522 |
|
|
3523 |
|
|
3524 |
|
{ |
3525 |
994 |
PARSER_STATE->checkThatLogicIsSet(); |
3526 |
|
} |
3527 |
|
|
3528 |
|
|
3529 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:389:5: ( LPAREN_TOK termList[terms,expr] RPAREN_TOK |~ LPAREN_TOK ) |
3530 |
|
{ |
3531 |
994 |
int alt6=2; |
3532 |
994 |
switch ( LA(1) ) |
3533 |
|
{ |
3534 |
994 |
case LPAREN_TOK: |
3535 |
|
{ |
3536 |
994 |
alt6=1; |
3537 |
|
} |
3538 |
994 |
break; |
3539 |
|
case ALPHA: |
3540 |
|
case ASSERT_TOK: |
3541 |
|
case AS_TOK: |
3542 |
|
case ATTRIBUTE_INST_ADD_TO_POOL_TOK: |
3543 |
|
case ATTRIBUTE_INST_LEVEL: |
3544 |
|
case ATTRIBUTE_NAMED_TOK: |
3545 |
|
case ATTRIBUTE_NO_PATTERN_TOK: |
3546 |
|
case ATTRIBUTE_PATTERN_TOK: |
3547 |
|
case ATTRIBUTE_POOL_TOK: |
3548 |
|
case ATTRIBUTE_QUANTIFIER_ID_TOK: |
3549 |
|
case ATTRIBUTE_SKOLEM_ADD_TO_POOL_TOK: |
3550 |
|
case ATTRIBUTE_TOK: |
3551 |
|
case BINARY_LITERAL: |
3552 |
|
case BLOCK_MODEL_TOK: |
3553 |
|
case BLOCK_MODEL_VALUES_TOK: |
3554 |
|
case CHAR_TOK: |
3555 |
|
case CHECK_SAT_ASSUMING_TOK: |
3556 |
|
case CHECK_SAT_TOK: |
3557 |
|
case CHECK_SYNTH_TOK: |
3558 |
|
case COMMENT: |
3559 |
|
case COMPREHENSION_TOK: |
3560 |
|
case CONSTRAINT_TOK: |
3561 |
|
case CONST_TOK: |
3562 |
|
case DECIMAL_LITERAL: |
3563 |
|
case DECLARE_CODATATYPES_2_5_TOK: |
3564 |
|
case DECLARE_CODATATYPES_TOK: |
3565 |
|
case DECLARE_CODATATYPE_TOK: |
3566 |
|
case DECLARE_CONST_TOK: |
3567 |
|
case DECLARE_DATATYPES_2_5_TOK: |
3568 |
|
case DECLARE_DATATYPES_TOK: |
3569 |
|
case DECLARE_DATATYPE_TOK: |
3570 |
|
case DECLARE_FUNS_TOK: |
3571 |
|
case DECLARE_FUN_TOK: |
3572 |
|
case DECLARE_HEAP: |
3573 |
|
case DECLARE_POOL: |
3574 |
|
case DECLARE_PREDS_TOK: |
3575 |
|
case DECLARE_SORTS_TOK: |
3576 |
|
case DECLARE_SORT_TOK: |
3577 |
|
case DECLARE_VAR_TOK: |
3578 |
|
case DEFINE_CONST_TOK: |
3579 |
|
case DEFINE_FUNS_REC_TOK: |
3580 |
|
case DEFINE_FUN_REC_TOK: |
3581 |
|
case DEFINE_FUN_TOK: |
3582 |
|
case DEFINE_SORT_TOK: |
3583 |
|
case DEFINE_TOK: |
3584 |
|
case DIGIT: |
3585 |
|
case ECHO_TOK: |
3586 |
|
case EMP_TOK: |
3587 |
|
case EXISTS_TOK: |
3588 |
|
case EXIT_TOK: |
3589 |
|
case FORALL_TOK: |
3590 |
|
case GET_ABDUCT_TOK: |
3591 |
|
case GET_ASSERTIONS_TOK: |
3592 |
|
case GET_ASSIGNMENT_TOK: |
3593 |
|
case GET_INFO_TOK: |
3594 |
|
case GET_INTERPOL_TOK: |
3595 |
|
case GET_MODEL_TOK: |
3596 |
|
case GET_OPTION_TOK: |
3597 |
|
case GET_PROOF_TOK: |
3598 |
|
case GET_QE_DISJUNCT_TOK: |
3599 |
|
case GET_QE_TOK: |
3600 |
|
case GET_UNSAT_ASSUMPTIONS_TOK: |
3601 |
|
case GET_UNSAT_CORE_TOK: |
3602 |
|
case GET_VALUE_TOK: |
3603 |
|
case HEX_DIGIT: |
3604 |
|
case HEX_LITERAL: |
3605 |
|
case HO_ARROW_TOK: |
3606 |
|
case HO_LAMBDA_TOK: |
3607 |
|
case INCLUDE_TOK: |
3608 |
|
case INDEX_TOK: |
3609 |
|
case INTEGER_LITERAL: |
3610 |
|
case INV_CONSTRAINT_TOK: |
3611 |
|
case KEYWORD: |
3612 |
|
case LET_TOK: |
3613 |
|
case MATCH_TOK: |
3614 |
|
case NUMERAL: |
3615 |
|
case PAR_TOK: |
3616 |
|
case POP_TOK: |
3617 |
|
case PUSH_TOK: |
3618 |
|
case QUOTED_SYMBOL: |
3619 |
|
case RESET_ASSERTIONS_TOK: |
3620 |
|
case RESET_TOK: |
3621 |
|
case RPAREN_TOK: |
3622 |
|
case SET_FEATURE_TOK: |
3623 |
|
case SET_INFO_TOK: |
3624 |
|
case SET_LOGIC_TOK: |
3625 |
|
case SET_OPTION_TOK: |
3626 |
|
case SIMPLE_SYMBOL: |
3627 |
|
case SIMPLIFY_TOK: |
3628 |
|
case STRING_LITERAL: |
3629 |
|
case SYGUS_CONSTANT_TOK: |
3630 |
|
case SYGUS_VARIABLE_TOK: |
3631 |
|
case SYMBOL_CHAR: |
3632 |
|
case SYMBOL_CHAR_NOUNDERSCORE_NOATTRIBUTE: |
3633 |
|
case SYNTH_FUN_TOK: |
3634 |
|
case SYNTH_INV_TOK: |
3635 |
|
case TESTER_TOK: |
3636 |
|
case TUPLE_CONST_TOK: |
3637 |
|
case TUPLE_PROJECT_TOK: |
3638 |
|
case TUPLE_SEL_TOK: |
3639 |
|
case UNTERMINATED_QUOTED_SYMBOL: |
3640 |
|
case UPDATE_TOK: |
3641 |
|
case WHITESPACE: |
3642 |
|
case 108: |
3643 |
|
{ |
3644 |
|
alt6=2; |
3645 |
|
} |
3646 |
|
break; |
3647 |
|
|
3648 |
|
default: |
3649 |
|
CONSTRUCTEX(); |
3650 |
|
EXCEPTION->type = ANTLR3_NO_VIABLE_ALT_EXCEPTION; |
3651 |
|
EXCEPTION->message = (void *)""; |
3652 |
|
EXCEPTION->decisionNum = 6; |
3653 |
|
EXCEPTION->state = 0; |
3654 |
|
|
3655 |
|
|
3656 |
|
goto rulecommandEx; |
3657 |
|
|
3658 |
|
} |
3659 |
|
|
3660 |
994 |
switch (alt6) |
3661 |
|
{ |
3662 |
994 |
case 1: |
3663 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:389:7: LPAREN_TOK termList[terms,expr] RPAREN_TOK |
3664 |
|
{ |
3665 |
994 |
MATCHT(LPAREN_TOK, &FOLLOW_LPAREN_TOK_in_command764); |
3666 |
994 |
if (HASEXCEPTION()) |
3667 |
|
{ |
3668 |
|
goto rulecommandEx; |
3669 |
|
} |
3670 |
|
|
3671 |
|
|
3672 |
994 |
FOLLOWPUSH(FOLLOW_termList_in_command766); |
3673 |
994 |
termList(ctx, terms, expr); |
3674 |
|
|
3675 |
991 |
FOLLOWPOP(); |
3676 |
991 |
if (HASEXCEPTION()) |
3677 |
|
{ |
3678 |
|
goto rulecommandEx; |
3679 |
|
} |
3680 |
|
|
3681 |
|
|
3682 |
991 |
MATCHT(RPAREN_TOK, &FOLLOW_RPAREN_TOK_in_command769); |
3683 |
991 |
if (HASEXCEPTION()) |
3684 |
|
{ |
3685 |
|
goto rulecommandEx; |
3686 |
|
} |
3687 |
|
|
3688 |
|
|
3689 |
|
{ |
3690 |
|
|
3691 |
991 |
cmd->reset(new CheckSatAssumingCommand(terms)); |
3692 |
|
|
3693 |
|
} |
3694 |
|
|
3695 |
|
|
3696 |
|
} |
3697 |
991 |
break; |
3698 |
|
case 2: |
3699 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:393:7: ~ LPAREN_TOK |
3700 |
|
{ |
3701 |
|
if ( ((LA(1) >= ALPHA) && (LA(1) <= LET_TOK)) || ((LA(1) >= MATCH_TOK) && (LA(1) <= 108)) ) |
3702 |
|
{ |
3703 |
|
CONSUME(); |
3704 |
|
PERRORRECOVERY=ANTLR3_FALSE; |
3705 |
|
} |
3706 |
|
else |
3707 |
|
{ |
3708 |
|
CONSTRUCTEX(); |
3709 |
|
EXCEPTION->type = ANTLR3_MISMATCHED_SET_EXCEPTION; |
3710 |
|
EXCEPTION->name = (void *)ANTLR3_MISMATCHED_SET_NAME; |
3711 |
|
EXCEPTION->expectingSet = NULL; |
3712 |
|
|
3713 |
|
goto rulecommandEx; |
3714 |
|
} |
3715 |
|
|
3716 |
|
|
3717 |
|
{ |
3718 |
|
PARSER_STATE->parseError("The check-sat-assuming command expects a " |
3719 |
|
"list of terms. Perhaps you forgot a pair of " |
3720 |
|
"parentheses?"); |
3721 |
|
|
3722 |
|
} |
3723 |
|
|
3724 |
|
|
3725 |
|
} |
3726 |
|
break; |
3727 |
|
|
3728 |
|
} |
3729 |
|
} |
3730 |
|
|
3731 |
|
} |
3732 |
991 |
break; |
3733 |
|
case 17: |
3734 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:400:5: GET_ASSERTIONS_TOK |
3735 |
|
{ |
3736 |
|
MATCHT(GET_ASSERTIONS_TOK, &FOLLOW_GET_ASSERTIONS_TOK_in_command812); |
3737 |
|
if (HASEXCEPTION()) |
3738 |
|
{ |
3739 |
|
goto rulecommandEx; |
3740 |
|
} |
3741 |
|
|
3742 |
|
|
3743 |
|
{ |
3744 |
|
PARSER_STATE->checkThatLogicIsSet(); |
3745 |
|
} |
3746 |
|
|
3747 |
|
|
3748 |
|
{ |
3749 |
|
cmd->reset(new GetAssertionsCommand()); |
3750 |
|
} |
3751 |
|
|
3752 |
|
|
3753 |
|
} |
3754 |
|
break; |
3755 |
1 |
case 18: |
3756 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:403:5: GET_PROOF_TOK |
3757 |
|
{ |
3758 |
1 |
MATCHT(GET_PROOF_TOK, &FOLLOW_GET_PROOF_TOK_in_command832); |
3759 |
1 |
if (HASEXCEPTION()) |
3760 |
|
{ |
3761 |
|
goto rulecommandEx; |
3762 |
|
} |
3763 |
|
|
3764 |
|
|
3765 |
|
{ |
3766 |
1 |
PARSER_STATE->checkThatLogicIsSet(); |
3767 |
|
} |
3768 |
|
|
3769 |
|
|
3770 |
|
{ |
3771 |
1 |
cmd->reset(new GetProofCommand()); |
3772 |
|
} |
3773 |
|
|
3774 |
|
|
3775 |
|
} |
3776 |
1 |
break; |
3777 |
11 |
case 19: |
3778 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:406:5: GET_UNSAT_ASSUMPTIONS_TOK |
3779 |
|
{ |
3780 |
11 |
MATCHT(GET_UNSAT_ASSUMPTIONS_TOK, &FOLLOW_GET_UNSAT_ASSUMPTIONS_TOK_in_command852); |
3781 |
11 |
if (HASEXCEPTION()) |
3782 |
|
{ |
3783 |
|
goto rulecommandEx; |
3784 |
|
} |
3785 |
|
|
3786 |
|
|
3787 |
|
{ |
3788 |
11 |
PARSER_STATE->checkThatLogicIsSet(); |
3789 |
|
} |
3790 |
|
|
3791 |
|
|
3792 |
|
{ |
3793 |
11 |
cmd->reset(new GetUnsatAssumptionsCommand); |
3794 |
|
} |
3795 |
|
|
3796 |
|
|
3797 |
|
} |
3798 |
11 |
break; |
3799 |
11 |
case 20: |
3800 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:409:5: GET_UNSAT_CORE_TOK |
3801 |
|
{ |
3802 |
11 |
MATCHT(GET_UNSAT_CORE_TOK, &FOLLOW_GET_UNSAT_CORE_TOK_in_command872); |
3803 |
11 |
if (HASEXCEPTION()) |
3804 |
|
{ |
3805 |
|
goto rulecommandEx; |
3806 |
|
} |
3807 |
|
|
3808 |
|
|
3809 |
|
{ |
3810 |
11 |
PARSER_STATE->checkThatLogicIsSet(); |
3811 |
|
} |
3812 |
|
|
3813 |
|
|
3814 |
|
{ |
3815 |
11 |
cmd->reset(new GetUnsatCoreCommand); |
3816 |
|
} |
3817 |
|
|
3818 |
|
|
3819 |
|
} |
3820 |
11 |
break; |
3821 |
3162 |
case 21: |
3822 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:412:5: PUSH_TOK (k= INTEGER_LITERAL |) |
3823 |
|
{ |
3824 |
3162 |
MATCHT(PUSH_TOK, &FOLLOW_PUSH_TOK_in_command892); |
3825 |
3162 |
if (HASEXCEPTION()) |
3826 |
|
{ |
3827 |
|
goto rulecommandEx; |
3828 |
|
} |
3829 |
|
|
3830 |
|
|
3831 |
|
{ |
3832 |
3162 |
PARSER_STATE->checkThatLogicIsSet(); |
3833 |
|
} |
3834 |
|
|
3835 |
|
|
3836 |
|
{ |
3837 |
3162 |
if( PARSER_STATE->sygus() ){ |
3838 |
|
PARSER_STATE->parseError("Sygus does not support push command."); |
3839 |
|
} |
3840 |
|
|
3841 |
|
} |
3842 |
|
|
3843 |
|
|
3844 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:417:5: (k= INTEGER_LITERAL |) |
3845 |
|
{ |
3846 |
3162 |
int alt7=2; |
3847 |
3162 |
switch ( LA(1) ) |
3848 |
|
{ |
3849 |
2938 |
case INTEGER_LITERAL: |
3850 |
|
{ |
3851 |
2938 |
alt7=1; |
3852 |
|
} |
3853 |
2938 |
break; |
3854 |
224 |
case RPAREN_TOK: |
3855 |
|
{ |
3856 |
224 |
alt7=2; |
3857 |
|
} |
3858 |
224 |
break; |
3859 |
|
|
3860 |
|
default: |
3861 |
|
CONSTRUCTEX(); |
3862 |
|
EXCEPTION->type = ANTLR3_NO_VIABLE_ALT_EXCEPTION; |
3863 |
|
EXCEPTION->message = (void *)""; |
3864 |
|
EXCEPTION->decisionNum = 7; |
3865 |
|
EXCEPTION->state = 0; |
3866 |
|
|
3867 |
|
|
3868 |
|
goto rulecommandEx; |
3869 |
|
|
3870 |
|
} |
3871 |
|
|
3872 |
3162 |
switch (alt7) |
3873 |
|
{ |
3874 |
2938 |
case 1: |
3875 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:417:7: k= INTEGER_LITERAL |
3876 |
|
{ |
3877 |
2938 |
k = (pANTLR3_COMMON_TOKEN) MATCHT(INTEGER_LITERAL, &FOLLOW_INTEGER_LITERAL_in_command910); |
3878 |
2938 |
if (HASEXCEPTION()) |
3879 |
|
{ |
3880 |
|
goto rulecommandEx; |
3881 |
|
} |
3882 |
|
|
3883 |
|
|
3884 |
|
{ |
3885 |
2938 |
unsigned num = AntlrInput::tokenToUnsigned(k); |
3886 |
2938 |
if(num == 0) { |
3887 |
|
cmd->reset(new EmptyCommand()); |
3888 |
2938 |
} else if(num == 1) { |
3889 |
2934 |
PARSER_STATE->pushScope(true); |
3890 |
2934 |
cmd->reset(new PushCommand()); |
3891 |
|
} else { |
3892 |
8 |
std::unique_ptr<CommandSequence> seq(new CommandSequence()); |
3893 |
10 |
do { |
3894 |
14 |
PARSER_STATE->pushScope(true); |
3895 |
14 |
Command* push_cmd = new PushCommand(); |
3896 |
14 |
push_cmd->setMuted(num > 1); |
3897 |
14 |
seq->addCommand(push_cmd); |
3898 |
14 |
--num; |
3899 |
14 |
} while(num > 0); |
3900 |
4 |
cmd->reset(seq.release()); |
3901 |
|
} |
3902 |
|
|
3903 |
|
} |
3904 |
|
|
3905 |
|
|
3906 |
|
} |
3907 |
2938 |
break; |
3908 |
224 |
case 2: |
3909 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:436:7: |
3910 |
|
{ |
3911 |
|
{ |
3912 |
224 |
if(PARSER_STATE->strictModeEnabled()) { |
3913 |
|
PARSER_STATE->parseError( |
3914 |
|
"Strict compliance mode demands an integer to be provided to " |
3915 |
|
"PUSH. Maybe you want (push 1)?"); |
3916 |
|
} else { |
3917 |
224 |
PARSER_STATE->pushScope(true); |
3918 |
224 |
cmd->reset(new PushCommand()); |
3919 |
|
} |
3920 |
|
|
3921 |
|
} |
3922 |
|
|
3923 |
|
|
3924 |
|
} |
3925 |
224 |
break; |
3926 |
|
|
3927 |
|
} |
3928 |
|
} |
3929 |
|
|
3930 |
|
} |
3931 |
3162 |
break; |
3932 |
2557 |
case 22: |
3933 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:445:5: POP_TOK (k= INTEGER_LITERAL |) |
3934 |
|
{ |
3935 |
2557 |
MATCHT(POP_TOK, &FOLLOW_POP_TOK_in_command934); |
3936 |
2557 |
if (HASEXCEPTION()) |
3937 |
|
{ |
3938 |
|
goto rulecommandEx; |
3939 |
|
} |
3940 |
|
|
3941 |
|
|
3942 |
|
{ |
3943 |
2557 |
PARSER_STATE->checkThatLogicIsSet(); |
3944 |
|
} |
3945 |
|
|
3946 |
|
|
3947 |
|
{ |
3948 |
2557 |
if( PARSER_STATE->sygus() ){ |
3949 |
|
PARSER_STATE->parseError("Sygus does not support pop command."); |
3950 |
|
} |
3951 |
|
|
3952 |
|
} |
3953 |
|
|
3954 |
|
|
3955 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:450:5: (k= INTEGER_LITERAL |) |
3956 |
|
{ |
3957 |
2557 |
int alt8=2; |
3958 |
2557 |
switch ( LA(1) ) |
3959 |
|
{ |
3960 |
2355 |
case INTEGER_LITERAL: |
3961 |
|
{ |
3962 |
2355 |
alt8=1; |
3963 |
|
} |
3964 |
2355 |
break; |
3965 |
202 |
case RPAREN_TOK: |
3966 |
|
{ |
3967 |
202 |
alt8=2; |
3968 |
|
} |
3969 |
202 |
break; |
3970 |
|
|
3971 |
|
default: |
3972 |
|
CONSTRUCTEX(); |
3973 |
|
EXCEPTION->type = ANTLR3_NO_VIABLE_ALT_EXCEPTION; |
3974 |
|
EXCEPTION->message = (void *)""; |
3975 |
|
EXCEPTION->decisionNum = 8; |
3976 |
|
EXCEPTION->state = 0; |
3977 |
|
|
3978 |
|
|
3979 |
|
goto rulecommandEx; |
3980 |
|
|
3981 |
|
} |
3982 |
|
|
3983 |
2557 |
switch (alt8) |
3984 |
|
{ |
3985 |
2355 |
case 1: |
3986 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:450:7: k= INTEGER_LITERAL |
3987 |
|
{ |
3988 |
2355 |
k = (pANTLR3_COMMON_TOKEN) MATCHT(INTEGER_LITERAL, &FOLLOW_INTEGER_LITERAL_in_command952); |
3989 |
2355 |
if (HASEXCEPTION()) |
3990 |
|
{ |
3991 |
|
goto rulecommandEx; |
3992 |
|
} |
3993 |
|
|
3994 |
|
|
3995 |
|
{ |
3996 |
2355 |
unsigned num = AntlrInput::tokenToUnsigned(k); |
3997 |
2355 |
if(num > PARSER_STATE->scopeLevel()) { |
3998 |
|
PARSER_STATE->parseError("Attempted to pop above the top stack " |
3999 |
|
"frame."); |
4000 |
|
} |
4001 |
2355 |
if(num == 0) { |
4002 |
64 |
cmd->reset(new EmptyCommand()); |
4003 |
2291 |
} else if(num == 1) { |
4004 |
2199 |
PARSER_STATE->popScope(); |
4005 |
2199 |
cmd->reset(new PopCommand()); |
4006 |
|
} else { |
4007 |
184 |
std::unique_ptr<CommandSequence> seq(new CommandSequence()); |
4008 |
156 |
do { |
4009 |
248 |
PARSER_STATE->popScope(); |
4010 |
248 |
Command* pop_command = new PopCommand(); |
4011 |
248 |
pop_command->setMuted(num > 1); |
4012 |
248 |
seq->addCommand(pop_command); |
4013 |
248 |
--num; |
4014 |
248 |
} while(num > 0); |
4015 |
92 |
cmd->reset(seq.release()); |
4016 |
|
} |
4017 |
|
|
4018 |
|
} |
4019 |
|
|
4020 |
|
|
4021 |
|
} |
4022 |
2355 |
break; |
4023 |
202 |
case 2: |
4024 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:473:7: |
4025 |
|
{ |
4026 |
|
{ |
4027 |
202 |
if(PARSER_STATE->strictModeEnabled()) { |
4028 |
|
PARSER_STATE->parseError( |
4029 |
|
"Strict compliance mode demands an integer to be provided to POP." |
4030 |
|
"Maybe you want (pop 1)?"); |
4031 |
|
} else { |
4032 |
202 |
PARSER_STATE->popScope(); |
4033 |
202 |
cmd->reset(new PopCommand()); |
4034 |
|
} |
4035 |
|
|
4036 |
|
} |
4037 |
|
|
4038 |
|
|
4039 |
|
} |
4040 |
202 |
break; |
4041 |
|
|
4042 |
|
} |
4043 |
|
} |
4044 |
|
|
4045 |
|
} |
4046 |
2557 |
break; |
4047 |
734 |
case 23: |
4048 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:484:5: EXIT_TOK |
4049 |
|
{ |
4050 |
734 |
MATCHT(EXIT_TOK, &FOLLOW_EXIT_TOK_in_command986); |
4051 |
734 |
if (HASEXCEPTION()) |
4052 |
|
{ |
4053 |
|
goto rulecommandEx; |
4054 |
|
} |
4055 |
|
|
4056 |
|
|
4057 |
|
{ |
4058 |
734 |
cmd->reset(new QuitCommand()); |
4059 |
|
} |
4060 |
|
|
4061 |
|
|
4062 |
|
} |
4063 |
734 |
break; |
4064 |
2642 |
case 24: |
4065 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:488:5: smt25Command[cmd] |
4066 |
|
{ |
4067 |
2642 |
FOLLOWPUSH(FOLLOW_smt25Command_in_command1005); |
4068 |
2642 |
smt25Command(ctx, cmd); |
4069 |
|
|
4070 |
2642 |
FOLLOWPOP(); |
4071 |
2642 |
if (HASEXCEPTION()) |
4072 |
|
{ |
4073 |
|
goto rulecommandEx; |
4074 |
|
} |
4075 |
|
|
4076 |
|
|
4077 |
|
} |
4078 |
2642 |
break; |
4079 |
183 |
case 25: |
4080 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:491:5: extendedCommand[cmd] |
4081 |
|
{ |
4082 |
183 |
FOLLOWPUSH(FOLLOW_extendedCommand_in_command1019); |
4083 |
183 |
extendedCommand(ctx, cmd); |
4084 |
|
|
4085 |
182 |
FOLLOWPOP(); |
4086 |
182 |
if (HASEXCEPTION()) |
4087 |
|
{ |
4088 |
|
goto rulecommandEx; |
4089 |
|
} |
4090 |
|
|
4091 |
|
|
4092 |
|
{ |
4093 |
182 |
if(PARSER_STATE->strictModeEnabled()) { |
4094 |
|
PARSER_STATE->parseError( |
4095 |
|
"Extended commands are not permitted while operating in strict " |
4096 |
|
"compliance mode."); |
4097 |
|
} |
4098 |
|
|
4099 |
|
} |
4100 |
|
|
4101 |
|
|
4102 |
|
} |
4103 |
182 |
break; |
4104 |
|
case 26: |
4105 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:500:5: SIMPLE_SYMBOL |
4106 |
|
{ |
4107 |
|
SIMPLE_SYMBOL3 = (pANTLR3_COMMON_TOKEN) MATCHT(SIMPLE_SYMBOL, &FOLLOW_SIMPLE_SYMBOL_in_command1039); |
4108 |
|
if (HASEXCEPTION()) |
4109 |
|
{ |
4110 |
|
goto rulecommandEx; |
4111 |
|
} |
4112 |
|
|
4113 |
|
|
4114 |
|
{ |
4115 |
|
std::string id = AntlrInput::tokenText(SIMPLE_SYMBOL3); |
4116 |
|
if(id == "benchmark") { |
4117 |
|
PARSER_STATE->parseError( |
4118 |
|
"In SMT-LIBv2 mode, but got something that looks like SMT-LIBv1, " |
4119 |
|
"which is not supported anymore."); |
4120 |
|
} else { |
4121 |
|
PARSER_STATE->parseError("expected SMT-LIBv2 command, got `" + id + |
4122 |
|
"'."); |
4123 |
|
} |
4124 |
|
|
4125 |
|
} |
4126 |
|
|
4127 |
|
|
4128 |
|
} |
4129 |
|
break; |
4130 |
|
|
4131 |
|
} |
4132 |
|
} |
4133 |
|
} |
4134 |
|
|
4135 |
|
// This is where rules clean up and exit |
4136 |
|
// |
4137 |
271345 |
goto rulecommandEx; /* Prevent compiler warnings */ |
4138 |
271349 |
rulecommandEx: ; |
4139 |
|
|
4140 |
271349 |
if (HASEXCEPTION()) |
4141 |
|
{ |
4142 |
4 |
PREPORTERROR(); |
4143 |
|
PRECOVER(); |
4144 |
|
} |
4145 |
542690 |
return ; |
4146 |
|
} |
4147 |
|
/* $ANTLR end command */ |
4148 |
|
|
4149 |
|
/** |
4150 |
|
* $ANTLR start sygusCommand |
4151 |
|
* /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:513:1: sygusCommand returns [std::unique_ptr<cvc5::Command> cmd] : ( DECLARE_VAR_TOK symbol[name,CHECK_UNDECLARED,SYM_VARIABLE] sortSymbol[t,CHECK_DECLARED] | ( SYNTH_FUN_TOK | SYNTH_INV_TOK ) symbol[name,CHECK_UNDECLARED,SYM_VARIABLE] LPAREN_TOK sortedVarList[sortedVarNames] RPAREN_TOK ( sortSymbol[range,CHECK_DECLARED] )? ( sygusGrammar[grammar, sygusVars, name] )? | CONSTRAINT_TOK term[expr, expr2] | INV_CONSTRAINT_TOK ( symbol[name,CHECK_NONE,SYM_VARIABLE] )+ | CHECK_SYNTH_TOK | SET_FEATURE_TOK keyword[name] symbolicExpr[expr] | command[&cmd] ); |
4152 |
|
*/ |
4153 |
|
static std::unique_ptr<cvc5::Command> |
4154 |
2013 |
sygusCommand(pSmt2Parser ctx) |
4155 |
|
{ |
4156 |
2013 |
std::unique_ptr<cvc5::Command> cmd; |
4157 |
|
|
4158 |
|
|
4159 |
|
|
4160 |
4026 |
cvc5::api::Term expr, expr2, fun; |
4161 |
4026 |
cvc5::api::Sort t, range; |
4162 |
4026 |
std::vector<std::string> names; |
4163 |
4026 |
std::vector<std::pair<std::string, cvc5::api::Sort> > sortedVarNames; |
4164 |
4026 |
std::vector<cvc5::api::Term> sygusVars; |
4165 |
4026 |
std::string name; |
4166 |
|
bool isInv; |
4167 |
2013 |
cvc5::api::Grammar* grammar = nullptr; |
4168 |
|
|
4169 |
|
/* Initialize rule variables |
4170 |
|
*/ |
4171 |
|
|
4172 |
|
{ |
4173 |
|
{ |
4174 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:524:3: ( DECLARE_VAR_TOK symbol[name,CHECK_UNDECLARED,SYM_VARIABLE] sortSymbol[t,CHECK_DECLARED] | ( SYNTH_FUN_TOK | SYNTH_INV_TOK ) symbol[name,CHECK_UNDECLARED,SYM_VARIABLE] LPAREN_TOK sortedVarList[sortedVarNames] RPAREN_TOK ( sortSymbol[range,CHECK_DECLARED] )? ( sygusGrammar[grammar, sygusVars, name] )? | CONSTRAINT_TOK term[expr, expr2] | INV_CONSTRAINT_TOK ( symbol[name,CHECK_NONE,SYM_VARIABLE] )+ | CHECK_SYNTH_TOK | SET_FEATURE_TOK keyword[name] symbolicExpr[expr] | command[&cmd] ) |
4175 |
|
|
4176 |
|
ANTLR3_UINT32 alt14; |
4177 |
|
|
4178 |
2013 |
alt14=7; |
4179 |
|
|
4180 |
2013 |
switch ( LA(1) ) |
4181 |
|
{ |
4182 |
303 |
case DECLARE_VAR_TOK: |
4183 |
|
{ |
4184 |
303 |
alt14=1; |
4185 |
|
} |
4186 |
303 |
break; |
4187 |
288 |
case SYNTH_FUN_TOK: |
4188 |
|
case SYNTH_INV_TOK: |
4189 |
|
{ |
4190 |
288 |
alt14=2; |
4191 |
|
} |
4192 |
288 |
break; |
4193 |
606 |
case CONSTRAINT_TOK: |
4194 |
|
{ |
4195 |
606 |
alt14=3; |
4196 |
|
} |
4197 |
606 |
break; |
4198 |
14 |
case INV_CONSTRAINT_TOK: |
4199 |
|
{ |
4200 |
14 |
alt14=4; |
4201 |
|
} |
4202 |
14 |
break; |
4203 |
193 |
case CHECK_SYNTH_TOK: |
4204 |
|
{ |
4205 |
193 |
alt14=5; |
4206 |
|
} |
4207 |
193 |
break; |
4208 |
2 |
case SET_FEATURE_TOK: |
4209 |
|
{ |
4210 |
2 |
alt14=6; |
4211 |
|
} |
4212 |
2 |
break; |
4213 |
607 |
case ASSERT_TOK: |
4214 |
|
case BLOCK_MODEL_TOK: |
4215 |
|
case BLOCK_MODEL_VALUES_TOK: |
4216 |
|
case CHECK_SAT_ASSUMING_TOK: |
4217 |
|
case CHECK_SAT_TOK: |
4218 |
|
case DECLARE_CODATATYPES_TOK: |
4219 |
|
case DECLARE_CODATATYPE_TOK: |
4220 |
|
case DECLARE_CONST_TOK: |
4221 |
|
case DECLARE_DATATYPES_TOK: |
4222 |
|
case DECLARE_DATATYPE_TOK: |
4223 |
|
case DECLARE_FUNS_TOK: |
4224 |
|
case DECLARE_FUN_TOK: |
4225 |
|
case DECLARE_HEAP: |
4226 |
|
case DECLARE_POOL: |
4227 |
|
case DECLARE_PREDS_TOK: |
4228 |
|
case DECLARE_SORTS_TOK: |
4229 |
|
case DECLARE_SORT_TOK: |
4230 |
|
case DEFINE_CONST_TOK: |
4231 |
|
case DEFINE_FUNS_REC_TOK: |
4232 |
|
case DEFINE_FUN_REC_TOK: |
4233 |
|
case DEFINE_FUN_TOK: |
4234 |
|
case DEFINE_SORT_TOK: |
4235 |
|
case DEFINE_TOK: |
4236 |
|
case ECHO_TOK: |
4237 |
|
case EXIT_TOK: |
4238 |
|
case GET_ABDUCT_TOK: |
4239 |
|
case GET_ASSERTIONS_TOK: |
4240 |
|
case GET_ASSIGNMENT_TOK: |
4241 |
|
case GET_INFO_TOK: |
4242 |
|
case GET_INTERPOL_TOK: |
4243 |
|
case GET_MODEL_TOK: |
4244 |
|
case GET_OPTION_TOK: |
4245 |
|
case GET_PROOF_TOK: |
4246 |
|
case GET_QE_DISJUNCT_TOK: |
4247 |
|
case GET_QE_TOK: |
4248 |
|
case GET_UNSAT_ASSUMPTIONS_TOK: |
4249 |
|
case GET_UNSAT_CORE_TOK: |
4250 |
|
case GET_VALUE_TOK: |
4251 |
|
case POP_TOK: |
4252 |
|
case PUSH_TOK: |
4253 |
|
case RESET_ASSERTIONS_TOK: |
4254 |
|
case RESET_TOK: |
4255 |
|
case SET_INFO_TOK: |
4256 |
|
case SET_LOGIC_TOK: |
4257 |
|
case SET_OPTION_TOK: |
4258 |
|
case SIMPLE_SYMBOL: |
4259 |
|
case SIMPLIFY_TOK: |
4260 |
|
{ |
4261 |
607 |
alt14=7; |
4262 |
|
} |
4263 |
607 |
break; |
4264 |
|
|
4265 |
|
default: |
4266 |
|
CONSTRUCTEX(); |
4267 |
|
EXCEPTION->type = ANTLR3_NO_VIABLE_ALT_EXCEPTION; |
4268 |
|
EXCEPTION->message = (void *)""; |
4269 |
|
EXCEPTION->decisionNum = 14; |
4270 |
|
EXCEPTION->state = 0; |
4271 |
|
|
4272 |
|
|
4273 |
|
goto rulesygusCommandEx; |
4274 |
|
|
4275 |
|
} |
4276 |
|
|
4277 |
2013 |
switch (alt14) |
4278 |
|
{ |
4279 |
303 |
case 1: |
4280 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:525:5: DECLARE_VAR_TOK symbol[name,CHECK_UNDECLARED,SYM_VARIABLE] sortSymbol[t,CHECK_DECLARED] |
4281 |
|
{ |
4282 |
303 |
MATCHT(DECLARE_VAR_TOK, &FOLLOW_DECLARE_VAR_TOK_in_sygusCommand1073); |
4283 |
303 |
if (HASEXCEPTION()) |
4284 |
|
{ |
4285 |
|
goto rulesygusCommandEx; |
4286 |
|
} |
4287 |
|
|
4288 |
|
|
4289 |
|
{ |
4290 |
303 |
PARSER_STATE->checkThatLogicIsSet(); |
4291 |
|
} |
4292 |
|
|
4293 |
|
|
4294 |
303 |
FOLLOWPUSH(FOLLOW_symbol_in_sygusCommand1081); |
4295 |
303 |
symbol(ctx, name, CHECK_UNDECLARED, SYM_VARIABLE); |
4296 |
|
|
4297 |
303 |
FOLLOWPOP(); |
4298 |
303 |
if (HASEXCEPTION()) |
4299 |
|
{ |
4300 |
|
goto rulesygusCommandEx; |
4301 |
|
} |
4302 |
|
|
4303 |
|
|
4304 |
|
{ |
4305 |
303 |
PARSER_STATE->checkUserSymbol(name); |
4306 |
|
} |
4307 |
|
|
4308 |
|
|
4309 |
303 |
FOLLOWPUSH(FOLLOW_sortSymbol_in_sygusCommand1094); |
4310 |
303 |
sortSymbol(ctx, t, CHECK_DECLARED); |
4311 |
|
|
4312 |
303 |
FOLLOWPOP(); |
4313 |
303 |
if (HASEXCEPTION()) |
4314 |
|
{ |
4315 |
|
goto rulesygusCommandEx; |
4316 |
|
} |
4317 |
|
|
4318 |
|
|
4319 |
|
{ |
4320 |
|
|
4321 |
606 |
api::Term var = SOLVER->mkSygusVar(t, name); |
4322 |
303 |
PARSER_STATE->defineVar(name, var); |
4323 |
303 |
cmd.reset(new DeclareSygusVarCommand(name, var, t)); |
4324 |
|
|
4325 |
303 |
} |
4326 |
|
|
4327 |
|
|
4328 |
|
} |
4329 |
303 |
break; |
4330 |
288 |
case 2: |
4331 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:535:5: ( SYNTH_FUN_TOK | SYNTH_INV_TOK ) symbol[name,CHECK_UNDECLARED,SYM_VARIABLE] LPAREN_TOK sortedVarList[sortedVarNames] RPAREN_TOK ( sortSymbol[range,CHECK_DECLARED] )? ( sygusGrammar[grammar, sygusVars, name] )? |
4332 |
|
{ |
4333 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:535:5: ( SYNTH_FUN_TOK | SYNTH_INV_TOK ) |
4334 |
|
{ |
4335 |
288 |
int alt10=2; |
4336 |
288 |
switch ( LA(1) ) |
4337 |
|
{ |
4338 |
274 |
case SYNTH_FUN_TOK: |
4339 |
|
{ |
4340 |
274 |
alt10=1; |
4341 |
|
} |
4342 |
274 |
break; |
4343 |
14 |
case SYNTH_INV_TOK: |
4344 |
|
{ |
4345 |
14 |
alt10=2; |
4346 |
|
} |
4347 |
14 |
break; |
4348 |
|
|
4349 |
|
default: |
4350 |
|
CONSTRUCTEX(); |
4351 |
|
EXCEPTION->type = ANTLR3_NO_VIABLE_ALT_EXCEPTION; |
4352 |
|
EXCEPTION->message = (void *)""; |
4353 |
|
EXCEPTION->decisionNum = 10; |
4354 |
|
EXCEPTION->state = 0; |
4355 |
|
|
4356 |
|
|
4357 |
|
goto rulesygusCommandEx; |
4358 |
|
|
4359 |
|
} |
4360 |
|
|
4361 |
288 |
switch (alt10) |
4362 |
|
{ |
4363 |
274 |
case 1: |
4364 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:535:7: SYNTH_FUN_TOK |
4365 |
|
{ |
4366 |
274 |
MATCHT(SYNTH_FUN_TOK, &FOLLOW_SYNTH_FUN_TOK_in_sygusCommand1115); |
4367 |
274 |
if (HASEXCEPTION()) |
4368 |
|
{ |
4369 |
|
goto rulesygusCommandEx; |
4370 |
|
} |
4371 |
|
|
4372 |
|
|
4373 |
|
{ |
4374 |
274 |
isInv = false; |
4375 |
|
} |
4376 |
|
|
4377 |
|
|
4378 |
|
} |
4379 |
274 |
break; |
4380 |
14 |
case 2: |
4381 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:536:9: SYNTH_INV_TOK |
4382 |
|
{ |
4383 |
14 |
MATCHT(SYNTH_INV_TOK, &FOLLOW_SYNTH_INV_TOK_in_sygusCommand1127); |
4384 |
14 |
if (HASEXCEPTION()) |
4385 |
|
{ |
4386 |
|
goto rulesygusCommandEx; |
4387 |
|
} |
4388 |
|
|
4389 |
|
|
4390 |
|
{ |
4391 |
14 |
isInv = true; range = SOLVER->getBooleanSort(); |
4392 |
|
} |
4393 |
|
|
4394 |
|
|
4395 |
|
} |
4396 |
14 |
break; |
4397 |
|
|
4398 |
|
} |
4399 |
|
} |
4400 |
|
|
4401 |
|
{ |
4402 |
288 |
PARSER_STATE->checkThatLogicIsSet(); |
4403 |
|
} |
4404 |
|
|
4405 |
|
|
4406 |
288 |
FOLLOWPUSH(FOLLOW_symbol_in_sygusCommand1147); |
4407 |
288 |
symbol(ctx, name, CHECK_UNDECLARED, SYM_VARIABLE); |
4408 |
|
|
4409 |
288 |
FOLLOWPOP(); |
4410 |
288 |
if (HASEXCEPTION()) |
4411 |
|
{ |
4412 |
|
goto rulesygusCommandEx; |
4413 |
|
} |
4414 |
|
|
4415 |
|
|
4416 |
288 |
MATCHT(LPAREN_TOK, &FOLLOW_LPAREN_TOK_in_sygusCommand1154); |
4417 |
288 |
if (HASEXCEPTION()) |
4418 |
|
{ |
4419 |
|
goto rulesygusCommandEx; |
4420 |
|
} |
4421 |
|
|
4422 |
|
|
4423 |
288 |
FOLLOWPUSH(FOLLOW_sortedVarList_in_sygusCommand1156); |
4424 |
288 |
sortedVarList(ctx, sortedVarNames); |
4425 |
|
|
4426 |
288 |
FOLLOWPOP(); |
4427 |
288 |
if (HASEXCEPTION()) |
4428 |
|
{ |
4429 |
|
goto rulesygusCommandEx; |
4430 |
|
} |
4431 |
|
|
4432 |
|
|
4433 |
288 |
MATCHT(RPAREN_TOK, &FOLLOW_RPAREN_TOK_in_sygusCommand1159); |
4434 |
288 |
if (HASEXCEPTION()) |
4435 |
|
{ |
4436 |
|
goto rulesygusCommandEx; |
4437 |
|
} |
4438 |
|
|
4439 |
|
|
4440 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:541:5: ( sortSymbol[range,CHECK_DECLARED] )? |
4441 |
|
{ |
4442 |
288 |
int alt11=2; |
4443 |
288 |
switch ( LA(1) ) |
4444 |
|
{ |
4445 |
245 |
case QUOTED_SYMBOL: |
4446 |
|
case SIMPLE_SYMBOL: |
4447 |
|
case UNTERMINATED_QUOTED_SYMBOL: |
4448 |
|
{ |
4449 |
245 |
alt11=1; |
4450 |
|
} |
4451 |
245 |
break; |
4452 |
29 |
case LPAREN_TOK: |
4453 |
|
{ |
4454 |
29 |
switch ( LA(2) ) |
4455 |
|
{ |
4456 |
29 |
case HO_ARROW_TOK: |
4457 |
|
case INDEX_TOK: |
4458 |
|
case QUOTED_SYMBOL: |
4459 |
|
case SIMPLE_SYMBOL: |
4460 |
|
case UNTERMINATED_QUOTED_SYMBOL: |
4461 |
|
{ |
4462 |
29 |
alt11=1; |
4463 |
|
} |
4464 |
29 |
break; |
4465 |
|
} |
4466 |
|
|
4467 |
|
} |
4468 |
29 |
break; |
4469 |
|
} |
4470 |
|
|
4471 |
288 |
switch (alt11) |
4472 |
|
{ |
4473 |
274 |
case 1: |
4474 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:541:7: sortSymbol[range,CHECK_DECLARED] |
4475 |
|
{ |
4476 |
274 |
FOLLOWPUSH(FOLLOW_sortSymbol_in_sygusCommand1167); |
4477 |
274 |
sortSymbol(ctx, range, CHECK_DECLARED); |
4478 |
|
|
4479 |
274 |
FOLLOWPOP(); |
4480 |
274 |
if (HASEXCEPTION()) |
4481 |
|
{ |
4482 |
|
goto rulesygusCommandEx; |
4483 |
|
} |
4484 |
|
|
4485 |
|
|
4486 |
|
} |
4487 |
274 |
break; |
4488 |
|
|
4489 |
|
} |
4490 |
|
} |
4491 |
|
|
4492 |
|
{ |
4493 |
|
|
4494 |
288 |
PARSER_STATE->pushScope(); |
4495 |
288 |
sygusVars = PARSER_STATE->bindBoundVars(sortedVarNames); |
4496 |
|
|
4497 |
|
} |
4498 |
|
|
4499 |
|
|
4500 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:546:5: ( sygusGrammar[grammar, sygusVars, name] )? |
4501 |
|
{ |
4502 |
288 |
int alt12=2; |
4503 |
288 |
switch ( LA(1) ) |
4504 |
|
{ |
4505 |
148 |
case LPAREN_TOK: |
4506 |
|
{ |
4507 |
148 |
alt12=1; |
4508 |
|
} |
4509 |
148 |
break; |
4510 |
|
} |
4511 |
|
|
4512 |
288 |
switch (alt12) |
4513 |
|
{ |
4514 |
148 |
case 1: |
4515 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:551:7: sygusGrammar[grammar, sygusVars, name] |
4516 |
|
{ |
4517 |
148 |
FOLLOWPUSH(FOLLOW_sygusGrammar_in_sygusCommand1219); |
4518 |
148 |
sygusGrammar(ctx, grammar, sygusVars, name); |
4519 |
|
|
4520 |
147 |
FOLLOWPOP(); |
4521 |
147 |
if (HASEXCEPTION()) |
4522 |
|
{ |
4523 |
|
goto rulesygusCommandEx; |
4524 |
|
} |
4525 |
|
|
4526 |
|
|
4527 |
|
} |
4528 |
147 |
break; |
4529 |
|
|
4530 |
|
} |
4531 |
|
} |
4532 |
|
|
4533 |
|
{ |
4534 |
|
|
4535 |
287 |
Debug("parser-sygus") << "Define synth fun : " << name << std::endl; |
4536 |
|
|
4537 |
847 |
fun = isInv ? (grammar == nullptr |
4538 |
14 |
? SOLVER->synthInv(name, sygusVars) |
4539 |
|
: SOLVER->synthInv(name, sygusVars, *grammar)) |
4540 |
273 |
: (grammar == nullptr |
4541 |
126 |
? SOLVER->synthFun(name, sygusVars, range) |
4542 |
147 |
: SOLVER->synthFun(name, sygusVars, range, *grammar)); |
4543 |
|
|
4544 |
287 |
Debug("parser-sygus") << "...read synth fun " << name << std::endl; |
4545 |
287 |
PARSER_STATE->popScope(); |
4546 |
|
// we do not allow overloading for synth fun |
4547 |
287 |
PARSER_STATE->defineVar(name, fun); |
4548 |
574 |
cmd = std::unique_ptr<Command>( |
4549 |
287 |
new SynthFunCommand(name, fun, sygusVars, range, isInv, grammar)); |
4550 |
|
|
4551 |
|
} |
4552 |
|
|
4553 |
|
|
4554 |
|
} |
4555 |
287 |
break; |
4556 |
606 |
case 3: |
4557 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:571:5: CONSTRAINT_TOK term[expr, expr2] |
4558 |
|
{ |
4559 |
606 |
MATCHT(CONSTRAINT_TOK, &FOLLOW_CONSTRAINT_TOK_in_sygusCommand1245); |
4560 |
606 |
if (HASEXCEPTION()) |
4561 |
|
{ |
4562 |
|
goto rulesygusCommandEx; |
4563 |
|
} |
4564 |
|
|
4565 |
|
|
4566 |
|
{ |
4567 |
|
|
4568 |
606 |
PARSER_STATE->checkThatLogicIsSet(); |
4569 |
606 |
Debug("parser-sygus") << "Sygus : define sygus funs..." << std::endl; |
4570 |
606 |
Debug("parser-sygus") << "Sygus : read constraint..." << std::endl; |
4571 |
|
|
4572 |
|
} |
4573 |
|
|
4574 |
|
|
4575 |
606 |
FOLLOWPUSH(FOLLOW_term_in_sygusCommand1253); |
4576 |
606 |
term(ctx, expr, expr2); |
4577 |
|
|
4578 |
605 |
FOLLOWPOP(); |
4579 |
605 |
if (HASEXCEPTION()) |
4580 |
|
{ |
4581 |
|
goto rulesygusCommandEx; |
4582 |
|
} |
4583 |
|
|
4584 |
|
|
4585 |
|
{ |
4586 |
605 |
Debug("parser-sygus") << "...read constraint " << expr << std::endl; |
4587 |
605 |
cmd.reset(new SygusConstraintCommand(expr)); |
4588 |
|
|
4589 |
|
} |
4590 |
|
|
4591 |
|
|
4592 |
|
} |
4593 |
605 |
break; |
4594 |
14 |
case 4: |
4595 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:581:5: INV_CONSTRAINT_TOK ( symbol[name,CHECK_NONE,SYM_VARIABLE] )+ |
4596 |
|
{ |
4597 |
14 |
MATCHT(INV_CONSTRAINT_TOK, &FOLLOW_INV_CONSTRAINT_TOK_in_sygusCommand1272); |
4598 |
14 |
if (HASEXCEPTION()) |
4599 |
|
{ |
4600 |
|
goto rulesygusCommandEx; |
4601 |
|
} |
4602 |
|
|
4603 |
|
|
4604 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:582:5: ( symbol[name,CHECK_NONE,SYM_VARIABLE] )+ |
4605 |
|
{ |
4606 |
14 |
int cnt13=0; |
4607 |
|
|
4608 |
|
for (;;) |
4609 |
|
{ |
4610 |
70 |
int alt13=2; |
4611 |
70 |
switch ( LA(1) ) |
4612 |
|
{ |
4613 |
56 |
case QUOTED_SYMBOL: |
4614 |
|
case SIMPLE_SYMBOL: |
4615 |
|
case UNTERMINATED_QUOTED_SYMBOL: |
4616 |
|
{ |
4617 |
56 |
alt13=1; |
4618 |
|
} |
4619 |
56 |
break; |
4620 |
|
|
4621 |
|
} |
4622 |
|
|
4623 |
70 |
switch (alt13) |
4624 |
|
{ |
4625 |
56 |
case 1: |
4626 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:582:7: symbol[name,CHECK_NONE,SYM_VARIABLE] |
4627 |
|
{ |
4628 |
56 |
FOLLOWPUSH(FOLLOW_symbol_in_sygusCommand1280); |
4629 |
56 |
symbol(ctx, name, CHECK_NONE, SYM_VARIABLE); |
4630 |
|
|
4631 |
56 |
FOLLOWPOP(); |
4632 |
56 |
if (HASEXCEPTION()) |
4633 |
|
{ |
4634 |
|
goto rulesygusCommandEx; |
4635 |
|
} |
4636 |
|
|
4637 |
|
|
4638 |
|
{ |
4639 |
56 |
names.push_back(name); |
4640 |
|
} |
4641 |
|
|
4642 |
|
|
4643 |
|
} |
4644 |
56 |
break; |
4645 |
|
|
4646 |
14 |
default: |
4647 |
|
|
4648 |
14 |
if ( cnt13 >= 1 ) |
4649 |
|
{ |
4650 |
14 |
goto loop13; |
4651 |
|
} |
4652 |
|
/* mismatchedSetEx() |
4653 |
|
*/ |
4654 |
|
CONSTRUCTEX(); |
4655 |
|
EXCEPTION->type = ANTLR3_EARLY_EXIT_EXCEPTION; |
4656 |
|
EXCEPTION->name = (void *)ANTLR3_EARLY_EXIT_NAME; |
4657 |
|
|
4658 |
|
|
4659 |
|
goto rulesygusCommandEx; |
4660 |
|
} |
4661 |
56 |
cnt13++; |
4662 |
56 |
} |
4663 |
14 |
loop13: ; /* Jump to here if this rule does not match */ |
4664 |
|
} |
4665 |
|
|
4666 |
|
{ |
4667 |
|
|
4668 |
14 |
cmd = PARSER_STATE->invConstraint(names); |
4669 |
|
|
4670 |
|
} |
4671 |
|
|
4672 |
|
|
4673 |
|
} |
4674 |
14 |
break; |
4675 |
193 |
case 5: |
4676 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:587:5: CHECK_SYNTH_TOK |
4677 |
|
{ |
4678 |
193 |
MATCHT(CHECK_SYNTH_TOK, &FOLLOW_CHECK_SYNTH_TOK_in_sygusCommand1304); |
4679 |
193 |
if (HASEXCEPTION()) |
4680 |
|
{ |
4681 |
|
goto rulesygusCommandEx; |
4682 |
|
} |
4683 |
|
|
4684 |
|
|
4685 |
|
{ |
4686 |
|
|
4687 |
193 |
PARSER_STATE->checkThatLogicIsSet(); |
4688 |
193 |
cmd.reset(new CheckSynthCommand()); |
4689 |
|
|
4690 |
|
} |
4691 |
|
|
4692 |
|
|
4693 |
|
} |
4694 |
193 |
break; |
4695 |
2 |
case 6: |
4696 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:593:5: SET_FEATURE_TOK keyword[name] symbolicExpr[expr] |
4697 |
|
{ |
4698 |
2 |
MATCHT(SET_FEATURE_TOK, &FOLLOW_SET_FEATURE_TOK_in_sygusCommand1322); |
4699 |
2 |
if (HASEXCEPTION()) |
4700 |
|
{ |
4701 |
|
goto rulesygusCommandEx; |
4702 |
|
} |
4703 |
|
|
4704 |
|
|
4705 |
2 |
FOLLOWPUSH(FOLLOW_keyword_in_sygusCommand1324); |
4706 |
2 |
keyword(ctx, name); |
4707 |
|
|
4708 |
2 |
FOLLOWPOP(); |
4709 |
2 |
if (HASEXCEPTION()) |
4710 |
|
{ |
4711 |
|
goto rulesygusCommandEx; |
4712 |
|
} |
4713 |
|
|
4714 |
|
|
4715 |
2 |
FOLLOWPUSH(FOLLOW_symbolicExpr_in_sygusCommand1327); |
4716 |
2 |
symbolicExpr(ctx, expr); |
4717 |
|
|
4718 |
2 |
FOLLOWPOP(); |
4719 |
2 |
if (HASEXCEPTION()) |
4720 |
|
{ |
4721 |
|
goto rulesygusCommandEx; |
4722 |
|
} |
4723 |
|
|
4724 |
|
|
4725 |
|
{ |
4726 |
|
|
4727 |
2 |
PARSER_STATE->checkThatLogicIsSet(); |
4728 |
|
// ":grammars" is defined in the SyGuS version 2.1 standard and is by |
4729 |
|
// default supported, all other features are not. |
4730 |
2 |
if (name != ":grammars") |
4731 |
|
{ |
4732 |
2 |
std::stringstream ss; |
4733 |
1 |
ss << "SyGuS feature " << name << " not currently supported"; |
4734 |
1 |
PARSER_STATE->warning(ss.str()); |
4735 |
|
} |
4736 |
2 |
cmd.reset(new EmptyCommand()); |
4737 |
|
|
4738 |
|
} |
4739 |
|
|
4740 |
|
|
4741 |
|
} |
4742 |
2 |
break; |
4743 |
607 |
case 7: |
4744 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:606:5: command[&cmd] |
4745 |
|
{ |
4746 |
607 |
FOLLOWPUSH(FOLLOW_command_in_sygusCommand1340); |
4747 |
607 |
command(ctx, &cmd); |
4748 |
|
|
4749 |
607 |
FOLLOWPOP(); |
4750 |
607 |
if (HASEXCEPTION()) |
4751 |
|
{ |
4752 |
|
goto rulesygusCommandEx; |
4753 |
|
} |
4754 |
|
|
4755 |
|
|
4756 |
|
} |
4757 |
607 |
break; |
4758 |
|
|
4759 |
|
} |
4760 |
|
} |
4761 |
|
} |
4762 |
|
|
4763 |
|
// This is where rules clean up and exit |
4764 |
|
// |
4765 |
2011 |
goto rulesygusCommandEx; /* Prevent compiler warnings */ |
4766 |
2011 |
rulesygusCommandEx: ; |
4767 |
|
|
4768 |
2011 |
if (HASEXCEPTION()) |
4769 |
|
{ |
4770 |
|
PREPORTERROR(); |
4771 |
|
PRECOVER(); |
4772 |
|
} |
4773 |
4022 |
return cmd; |
4774 |
|
} |
4775 |
|
/* $ANTLR end sygusCommand */ |
4776 |
|
|
4777 |
|
/** |
4778 |
|
* $ANTLR start sygusGrammar |
4779 |
|
* /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:619:1: sygusGrammar[cvc5::api::Grammar*& ret,\n const std::vector<cvc5::api::Term>& sygusVars,\n const std::string& fun] : LPAREN_TOK ( LPAREN_TOK symbol[name,CHECK_NONE,SYM_VARIABLE] sortSymbol[t,CHECK_DECLARED] ( LPAREN_TOK | RPAREN_TOK ) )* RPAREN_TOK LPAREN_TOK ( LPAREN_TOK symbol[name, CHECK_DECLARED, SYM_VARIABLE] sortSymbol[t, CHECK_DECLARED] LPAREN_TOK ( term[e,e2] | LPAREN_TOK SYGUS_CONSTANT_TOK sortSymbol[t, CHECK_DECLARED] RPAREN_TOK | LPAREN_TOK SYGUS_VARIABLE_TOK sortSymbol[t, CHECK_DECLARED] RPAREN_TOK )+ RPAREN_TOK RPAREN_TOK )+ RPAREN_TOK ; |
4780 |
|
*/ |
4781 |
|
static void |
4782 |
153 |
sygusGrammar(pSmt2Parser ctx, cvc5::api::Grammar*& ret, const std::vector<cvc5::api::Term>& sygusVars, const std::string& fun) |
4783 |
|
{ |
4784 |
|
|
4785 |
|
// the pre-declaration |
4786 |
306 |
std::vector<std::pair<std::string, cvc5::api::Sort>> sortedVarNames; |
4787 |
|
// non-terminal symbols of the grammar |
4788 |
306 |
std::vector<cvc5::api::Term> ntSyms; |
4789 |
306 |
cvc5::api::Sort t; |
4790 |
306 |
std::string name; |
4791 |
306 |
cvc5::api::Term e, e2; |
4792 |
153 |
unsigned dtProcessed = 0; |
4793 |
|
|
4794 |
|
/* Initialize rule variables |
4795 |
|
*/ |
4796 |
|
|
4797 |
|
{ |
4798 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:633:3: ( LPAREN_TOK ( LPAREN_TOK symbol[name,CHECK_NONE,SYM_VARIABLE] sortSymbol[t,CHECK_DECLARED] ( LPAREN_TOK | RPAREN_TOK ) )* RPAREN_TOK LPAREN_TOK ( LPAREN_TOK symbol[name, CHECK_DECLARED, SYM_VARIABLE] sortSymbol[t, CHECK_DECLARED] LPAREN_TOK ( term[e,e2] | LPAREN_TOK SYGUS_CONSTANT_TOK sortSymbol[t, CHECK_DECLARED] RPAREN_TOK | LPAREN_TOK SYGUS_VARIABLE_TOK sortSymbol[t, CHECK_DECLARED] RPAREN_TOK )+ RPAREN_TOK RPAREN_TOK )+ RPAREN_TOK ) |
4799 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:635:3: LPAREN_TOK ( LPAREN_TOK symbol[name,CHECK_NONE,SYM_VARIABLE] sortSymbol[t,CHECK_DECLARED] ( LPAREN_TOK | RPAREN_TOK ) )* RPAREN_TOK LPAREN_TOK ( LPAREN_TOK symbol[name, CHECK_DECLARED, SYM_VARIABLE] sortSymbol[t, CHECK_DECLARED] LPAREN_TOK ( term[e,e2] | LPAREN_TOK SYGUS_CONSTANT_TOK sortSymbol[t, CHECK_DECLARED] RPAREN_TOK | LPAREN_TOK SYGUS_VARIABLE_TOK sortSymbol[t, CHECK_DECLARED] RPAREN_TOK )+ RPAREN_TOK RPAREN_TOK )+ RPAREN_TOK |
4800 |
|
{ |
4801 |
153 |
MATCHT(LPAREN_TOK, &FOLLOW_LPAREN_TOK_in_sygusGrammar1368); |
4802 |
153 |
if (HASEXCEPTION()) |
4803 |
|
{ |
4804 |
|
goto rulesygusGrammarEx; |
4805 |
|
} |
4806 |
|
|
4807 |
|
|
4808 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:639:3: ( LPAREN_TOK symbol[name,CHECK_NONE,SYM_VARIABLE] sortSymbol[t,CHECK_DECLARED] ( LPAREN_TOK | RPAREN_TOK ) )* |
4809 |
|
|
4810 |
|
for (;;) |
4811 |
|
{ |
4812 |
513 |
int alt16=2; |
4813 |
513 |
switch ( LA(1) ) |
4814 |
|
{ |
4815 |
360 |
case LPAREN_TOK: |
4816 |
|
{ |
4817 |
360 |
alt16=1; |
4818 |
|
} |
4819 |
360 |
break; |
4820 |
|
|
4821 |
|
} |
4822 |
|
|
4823 |
513 |
switch (alt16) |
4824 |
|
{ |
4825 |
360 |
case 1: |
4826 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:639:5: LPAREN_TOK symbol[name,CHECK_NONE,SYM_VARIABLE] sortSymbol[t,CHECK_DECLARED] ( LPAREN_TOK | RPAREN_TOK ) |
4827 |
|
{ |
4828 |
360 |
MATCHT(LPAREN_TOK, &FOLLOW_LPAREN_TOK_in_sygusGrammar1383); |
4829 |
360 |
if (HASEXCEPTION()) |
4830 |
|
{ |
4831 |
|
goto rulesygusGrammarEx; |
4832 |
|
} |
4833 |
|
|
4834 |
|
|
4835 |
360 |
FOLLOWPUSH(FOLLOW_symbol_in_sygusGrammar1385); |
4836 |
360 |
symbol(ctx, name, CHECK_NONE, SYM_VARIABLE); |
4837 |
|
|
4838 |
360 |
FOLLOWPOP(); |
4839 |
360 |
if (HASEXCEPTION()) |
4840 |
|
{ |
4841 |
|
goto rulesygusGrammarEx; |
4842 |
|
} |
4843 |
|
|
4844 |
|
|
4845 |
360 |
FOLLOWPUSH(FOLLOW_sortSymbol_in_sygusGrammar1392); |
4846 |
360 |
sortSymbol(ctx, t, CHECK_DECLARED); |
4847 |
|
|
4848 |
360 |
FOLLOWPOP(); |
4849 |
360 |
if (HASEXCEPTION()) |
4850 |
|
{ |
4851 |
|
goto rulesygusGrammarEx; |
4852 |
|
} |
4853 |
|
|
4854 |
|
|
4855 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:640:34: ( LPAREN_TOK | RPAREN_TOK ) |
4856 |
|
{ |
4857 |
360 |
int alt15=2; |
4858 |
360 |
switch ( LA(1) ) |
4859 |
|
{ |
4860 |
|
case LPAREN_TOK: |
4861 |
|
{ |
4862 |
|
alt15=1; |
4863 |
|
} |
4864 |
|
break; |
4865 |
360 |
case RPAREN_TOK: |
4866 |
|
{ |
4867 |
360 |
alt15=2; |
4868 |
|
} |
4869 |
360 |
break; |
4870 |
|
|
4871 |
|
default: |
4872 |
|
CONSTRUCTEX(); |
4873 |
|
EXCEPTION->type = ANTLR3_NO_VIABLE_ALT_EXCEPTION; |
4874 |
|
EXCEPTION->message = (void *)""; |
4875 |
|
EXCEPTION->decisionNum = 15; |
4876 |
|
EXCEPTION->state = 0; |
4877 |
|
|
4878 |
|
|
4879 |
|
goto rulesygusGrammarEx; |
4880 |
|
|
4881 |
|
} |
4882 |
|
|
4883 |
360 |
switch (alt15) |
4884 |
|
{ |
4885 |
|
case 1: |
4886 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:643:7: LPAREN_TOK |
4887 |
|
{ |
4888 |
|
MATCHT(LPAREN_TOK, &FOLLOW_LPAREN_TOK_in_sygusGrammar1417); |
4889 |
|
if (HASEXCEPTION()) |
4890 |
|
{ |
4891 |
|
goto rulesygusGrammarEx; |
4892 |
|
} |
4893 |
|
|
4894 |
|
|
4895 |
|
{ |
4896 |
|
|
4897 |
|
std::stringstream sse; |
4898 |
|
if (sortedVarNames.empty()) |
4899 |
|
{ |
4900 |
|
sse << "The expected SyGuS language is version 2.0, whereas the " |
4901 |
|
<< "input appears to be SyGuS version 1.0 format. The version " |
4902 |
|
<< "2.0 format requires a predeclaration of the non-terminal " |
4903 |
|
<< "symbols of the grammar to be given prior to the definition " |
4904 |
|
<< "of the grammar. See https://sygus.org/language/ for details " |
4905 |
|
<< "and examples. cvc5 versions past 1.8 do not support SyGuS " |
4906 |
|
<< "version 1.0."; |
4907 |
|
} |
4908 |
|
else |
4909 |
|
{ |
4910 |
|
// an unknown syntax error |
4911 |
|
sse << "Unexpected syntax for SyGuS predeclaration."; |
4912 |
|
} |
4913 |
|
PARSER_STATE->parseError(sse.str().c_str()); |
4914 |
|
|
4915 |
|
} |
4916 |
|
|
4917 |
|
|
4918 |
|
} |
4919 |
|
break; |
4920 |
360 |
case 2: |
4921 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:663:7: RPAREN_TOK |
4922 |
|
{ |
4923 |
360 |
MATCHT(RPAREN_TOK, &FOLLOW_RPAREN_TOK_in_sygusGrammar1433); |
4924 |
360 |
if (HASEXCEPTION()) |
4925 |
|
{ |
4926 |
|
goto rulesygusGrammarEx; |
4927 |
|
} |
4928 |
|
|
4929 |
|
|
4930 |
|
} |
4931 |
360 |
break; |
4932 |
|
|
4933 |
|
} |
4934 |
|
} |
4935 |
|
|
4936 |
|
{ |
4937 |
360 |
sortedVarNames.push_back(make_pair(name, t)); |
4938 |
|
} |
4939 |
|
|
4940 |
|
|
4941 |
|
} |
4942 |
360 |
break; |
4943 |
|
|
4944 |
153 |
default: |
4945 |
153 |
goto loop16; /* break out of the loop */ |
4946 |
|
break; |
4947 |
|
} |
4948 |
360 |
} |
4949 |
153 |
loop16: ; /* Jump out to here if this rule does not match */ |
4950 |
|
|
4951 |
|
|
4952 |
153 |
MATCHT(RPAREN_TOK, &FOLLOW_RPAREN_TOK_in_sygusGrammar1450); |
4953 |
153 |
if (HASEXCEPTION()) |
4954 |
|
{ |
4955 |
|
goto rulesygusGrammarEx; |
4956 |
|
} |
4957 |
|
|
4958 |
|
|
4959 |
|
{ |
4960 |
|
|
4961 |
|
// non-terminal symbols in the pre-declaration are locally scoped |
4962 |
153 |
PARSER_STATE->pushScope(); |
4963 |
513 |
for (std::pair<std::string, api::Sort>& i : sortedVarNames) |
4964 |
|
{ |
4965 |
360 |
PARSER_STATE->checkDeclaration(name, CHECK_UNDECLARED, SYM_SORT); |
4966 |
|
// make the non-terminal symbol, which will be parsed as an ordinary |
4967 |
|
// free variable. |
4968 |
720 |
api::Term nts = PARSER_STATE->bindBoundVar(i.first, i.second); |
4969 |
360 |
ntSyms.push_back(nts); |
4970 |
|
} |
4971 |
153 |
ret = PARSER_STATE->mkGrammar(sygusVars, ntSyms); |
4972 |
|
|
4973 |
|
} |
4974 |
|
|
4975 |
|
|
4976 |
153 |
MATCHT(LPAREN_TOK, &FOLLOW_LPAREN_TOK_in_sygusGrammar1461); |
4977 |
153 |
if (HASEXCEPTION()) |
4978 |
|
{ |
4979 |
|
goto rulesygusGrammarEx; |
4980 |
|
} |
4981 |
|
|
4982 |
|
|
4983 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:682:3: ( LPAREN_TOK symbol[name, CHECK_DECLARED, SYM_VARIABLE] sortSymbol[t, CHECK_DECLARED] LPAREN_TOK ( term[e,e2] | LPAREN_TOK SYGUS_CONSTANT_TOK sortSymbol[t, CHECK_DECLARED] RPAREN_TOK | LPAREN_TOK SYGUS_VARIABLE_TOK sortSymbol[t, CHECK_DECLARED] RPAREN_TOK )+ RPAREN_TOK RPAREN_TOK )+ |
4984 |
|
{ |
4985 |
153 |
int cnt18=0; |
4986 |
|
|
4987 |
|
for (;;) |
4988 |
|
{ |
4989 |
510 |
int alt18=2; |
4990 |
510 |
switch ( LA(1) ) |
4991 |
|
{ |
4992 |
358 |
case LPAREN_TOK: |
4993 |
|
{ |
4994 |
358 |
alt18=1; |
4995 |
|
} |
4996 |
358 |
break; |
4997 |
|
|
4998 |
|
} |
4999 |
|
|
5000 |
510 |
switch (alt18) |
5001 |
|
{ |
5002 |
358 |
case 1: |
5003 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:683:5: LPAREN_TOK symbol[name, CHECK_DECLARED, SYM_VARIABLE] sortSymbol[t, CHECK_DECLARED] LPAREN_TOK ( term[e,e2] | LPAREN_TOK SYGUS_CONSTANT_TOK sortSymbol[t, CHECK_DECLARED] RPAREN_TOK | LPAREN_TOK SYGUS_VARIABLE_TOK sortSymbol[t, CHECK_DECLARED] RPAREN_TOK )+ RPAREN_TOK RPAREN_TOK |
5004 |
|
{ |
5005 |
358 |
MATCHT(LPAREN_TOK, &FOLLOW_LPAREN_TOK_in_sygusGrammar1471); |
5006 |
358 |
if (HASEXCEPTION()) |
5007 |
|
{ |
5008 |
|
goto rulesygusGrammarEx; |
5009 |
|
} |
5010 |
|
|
5011 |
|
|
5012 |
358 |
FOLLOWPUSH(FOLLOW_symbol_in_sygusGrammar1477); |
5013 |
358 |
symbol(ctx, name, CHECK_DECLARED, SYM_VARIABLE); |
5014 |
|
|
5015 |
358 |
FOLLOWPOP(); |
5016 |
358 |
if (HASEXCEPTION()) |
5017 |
|
{ |
5018 |
|
goto rulesygusGrammarEx; |
5019 |
|
} |
5020 |
|
|
5021 |
|
|
5022 |
358 |
FOLLOWPUSH(FOLLOW_sortSymbol_in_sygusGrammar1480); |
5023 |
358 |
sortSymbol(ctx, t, CHECK_DECLARED); |
5024 |
|
|
5025 |
358 |
FOLLOWPOP(); |
5026 |
358 |
if (HASEXCEPTION()) |
5027 |
|
{ |
5028 |
|
goto rulesygusGrammarEx; |
5029 |
|
} |
5030 |
|
|
5031 |
|
|
5032 |
|
{ |
5033 |
|
|
5034 |
|
// check that it matches sortedVarNames |
5035 |
358 |
if (sortedVarNames[dtProcessed].first != name) |
5036 |
|
{ |
5037 |
|
std::stringstream sse; |
5038 |
|
sse << "Grouped rule listing " << name |
5039 |
|
<< " does not match the name (in order) from the predeclaration (" |
5040 |
|
<< sortedVarNames[dtProcessed].first << ")." << std::endl; |
5041 |
|
PARSER_STATE->parseError(sse.str().c_str()); |
5042 |
|
} |
5043 |
358 |
if (sortedVarNames[dtProcessed].second != t) |
5044 |
|
{ |
5045 |
|
std::stringstream sse; |
5046 |
|
sse << "Type for grouped rule listing " << name |
5047 |
|
<< " does not match the type (in order) from the predeclaration (" |
5048 |
|
<< sortedVarNames[dtProcessed].second << ")." << std::endl; |
5049 |
|
PARSER_STATE->parseError(sse.str().c_str()); |
5050 |
|
} |
5051 |
|
|
5052 |
|
} |
5053 |
|
|
5054 |
|
|
5055 |
358 |
MATCHT(LPAREN_TOK, &FOLLOW_LPAREN_TOK_in_sygusGrammar1493); |
5056 |
358 |
if (HASEXCEPTION()) |
5057 |
|
{ |
5058 |
|
goto rulesygusGrammarEx; |
5059 |
|
} |
5060 |
|
|
5061 |
|
|
5062 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:705:5: ( term[e,e2] | LPAREN_TOK SYGUS_CONSTANT_TOK sortSymbol[t, CHECK_DECLARED] RPAREN_TOK | LPAREN_TOK SYGUS_VARIABLE_TOK sortSymbol[t, CHECK_DECLARED] RPAREN_TOK )+ |
5063 |
|
{ |
5064 |
358 |
int cnt17=0; |
5065 |
|
|
5066 |
|
for (;;) |
5067 |
|
{ |
5068 |
1872 |
int alt17=4; |
5069 |
1872 |
switch ( LA(1) ) |
5070 |
|
{ |
5071 |
878 |
case LPAREN_TOK: |
5072 |
|
{ |
5073 |
878 |
switch ( LA(2) ) |
5074 |
|
{ |
5075 |
853 |
case AS_TOK: |
5076 |
|
case ATTRIBUTE_TOK: |
5077 |
|
case COMPREHENSION_TOK: |
5078 |
|
case EXISTS_TOK: |
5079 |
|
case FORALL_TOK: |
5080 |
|
case HO_LAMBDA_TOK: |
5081 |
|
case INDEX_TOK: |
5082 |
|
case LET_TOK: |
5083 |
|
case LPAREN_TOK: |
5084 |
|
case MATCH_TOK: |
5085 |
|
case QUOTED_SYMBOL: |
5086 |
|
case SIMPLE_SYMBOL: |
5087 |
|
case TUPLE_CONST_TOK: |
5088 |
|
case TUPLE_PROJECT_TOK: |
5089 |
|
case UNTERMINATED_QUOTED_SYMBOL: |
5090 |
|
{ |
5091 |
853 |
alt17=1; |
5092 |
|
} |
5093 |
853 |
break; |
5094 |
15 |
case SYGUS_CONSTANT_TOK: |
5095 |
|
{ |
5096 |
15 |
alt17=2; |
5097 |
|
} |
5098 |
15 |
break; |
5099 |
10 |
case SYGUS_VARIABLE_TOK: |
5100 |
|
{ |
5101 |
10 |
alt17=3; |
5102 |
|
} |
5103 |
10 |
break; |
5104 |
|
|
5105 |
|
} |
5106 |
|
|
5107 |
|
} |
5108 |
878 |
break; |
5109 |
637 |
case BINARY_LITERAL: |
5110 |
|
case DECIMAL_LITERAL: |
5111 |
|
case HEX_LITERAL: |
5112 |
|
case INTEGER_LITERAL: |
5113 |
|
case QUOTED_SYMBOL: |
5114 |
|
case SIMPLE_SYMBOL: |
5115 |
|
case STRING_LITERAL: |
5116 |
|
case TUPLE_CONST_TOK: |
5117 |
|
case UNTERMINATED_QUOTED_SYMBOL: |
5118 |
|
{ |
5119 |
637 |
alt17=1; |
5120 |
|
} |
5121 |
637 |
break; |
5122 |
|
|
5123 |
|
} |
5124 |
|
|
5125 |
1872 |
switch (alt17) |
5126 |
|
{ |
5127 |
1490 |
case 1: |
5128 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:706:7: term[e,e2] |
5129 |
|
{ |
5130 |
1490 |
FOLLOWPUSH(FOLLOW_term_in_sygusGrammar1507); |
5131 |
1490 |
term(ctx, e, e2); |
5132 |
|
|
5133 |
1489 |
FOLLOWPOP(); |
5134 |
1489 |
if (HASEXCEPTION()) |
5135 |
|
{ |
5136 |
|
goto rulesygusGrammarEx; |
5137 |
|
} |
5138 |
|
|
5139 |
|
|
5140 |
|
{ |
5141 |
|
|
5142 |
|
// add term as constructor to datatype |
5143 |
1489 |
ret->addRule(ntSyms[dtProcessed], e); |
5144 |
|
|
5145 |
|
} |
5146 |
|
|
5147 |
|
|
5148 |
|
} |
5149 |
1489 |
break; |
5150 |
15 |
case 2: |
5151 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:710:9: LPAREN_TOK SYGUS_CONSTANT_TOK sortSymbol[t, CHECK_DECLARED] RPAREN_TOK |
5152 |
|
{ |
5153 |
15 |
MATCHT(LPAREN_TOK, &FOLLOW_LPAREN_TOK_in_sygusGrammar1520); |
5154 |
15 |
if (HASEXCEPTION()) |
5155 |
|
{ |
5156 |
|
goto rulesygusGrammarEx; |
5157 |
|
} |
5158 |
|
|
5159 |
|
|
5160 |
15 |
MATCHT(SYGUS_CONSTANT_TOK, &FOLLOW_SYGUS_CONSTANT_TOK_in_sygusGrammar1522); |
5161 |
15 |
if (HASEXCEPTION()) |
5162 |
|
{ |
5163 |
|
goto rulesygusGrammarEx; |
5164 |
|
} |
5165 |
|
|
5166 |
|
|
5167 |
15 |
FOLLOWPUSH(FOLLOW_sortSymbol_in_sygusGrammar1524); |
5168 |
15 |
sortSymbol(ctx, t, CHECK_DECLARED); |
5169 |
|
|
5170 |
15 |
FOLLOWPOP(); |
5171 |
15 |
if (HASEXCEPTION()) |
5172 |
|
{ |
5173 |
|
goto rulesygusGrammarEx; |
5174 |
|
} |
5175 |
|
|
5176 |
|
|
5177 |
15 |
MATCHT(RPAREN_TOK, &FOLLOW_RPAREN_TOK_in_sygusGrammar1527); |
5178 |
15 |
if (HASEXCEPTION()) |
5179 |
|
{ |
5180 |
|
goto rulesygusGrammarEx; |
5181 |
|
} |
5182 |
|
|
5183 |
|
|
5184 |
|
{ |
5185 |
|
|
5186 |
|
// allow constants in datatype for ntSyms[dtProcessed] |
5187 |
15 |
ret->addAnyConstant(ntSyms[dtProcessed]); |
5188 |
|
|
5189 |
|
} |
5190 |
|
|
5191 |
|
|
5192 |
|
} |
5193 |
15 |
break; |
5194 |
10 |
case 3: |
5195 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:714:9: LPAREN_TOK SYGUS_VARIABLE_TOK sortSymbol[t, CHECK_DECLARED] RPAREN_TOK |
5196 |
|
{ |
5197 |
10 |
MATCHT(LPAREN_TOK, &FOLLOW_LPAREN_TOK_in_sygusGrammar1539); |
5198 |
10 |
if (HASEXCEPTION()) |
5199 |
|
{ |
5200 |
|
goto rulesygusGrammarEx; |
5201 |
|
} |
5202 |
|
|
5203 |
|
|
5204 |
10 |
MATCHT(SYGUS_VARIABLE_TOK, &FOLLOW_SYGUS_VARIABLE_TOK_in_sygusGrammar1541); |
5205 |
10 |
if (HASEXCEPTION()) |
5206 |
|
{ |
5207 |
|
goto rulesygusGrammarEx; |
5208 |
|
} |
5209 |
|
|
5210 |
|
|
5211 |
10 |
FOLLOWPUSH(FOLLOW_sortSymbol_in_sygusGrammar1543); |
5212 |
10 |
sortSymbol(ctx, t, CHECK_DECLARED); |
5213 |
|
|
5214 |
10 |
FOLLOWPOP(); |
5215 |
10 |
if (HASEXCEPTION()) |
5216 |
|
{ |
5217 |
|
goto rulesygusGrammarEx; |
5218 |
|
} |
5219 |
|
|
5220 |
|
|
5221 |
10 |
MATCHT(RPAREN_TOK, &FOLLOW_RPAREN_TOK_in_sygusGrammar1546); |
5222 |
10 |
if (HASEXCEPTION()) |
5223 |
|
{ |
5224 |
|
goto rulesygusGrammarEx; |
5225 |
|
} |
5226 |
|
|
5227 |
|
|
5228 |
|
{ |
5229 |
|
|
5230 |
|
// add variable constructors to datatype |
5231 |
10 |
ret->addAnyVariable(ntSyms[dtProcessed]); |
5232 |
|
|
5233 |
|
} |
5234 |
|
|
5235 |
|
|
5236 |
|
} |
5237 |
10 |
break; |
5238 |
|
|
5239 |
357 |
default: |
5240 |
|
|
5241 |
357 |
if ( cnt17 >= 1 ) |
5242 |
|
{ |
5243 |
357 |
goto loop17; |
5244 |
|
} |
5245 |
|
/* mismatchedSetEx() |
5246 |
|
*/ |
5247 |
|
CONSTRUCTEX(); |
5248 |
|
EXCEPTION->type = ANTLR3_EARLY_EXIT_EXCEPTION; |
5249 |
|
EXCEPTION->name = (void *)ANTLR3_EARLY_EXIT_NAME; |
5250 |
|
|
5251 |
|
|
5252 |
|
goto rulesygusGrammarEx; |
5253 |
|
} |
5254 |
1514 |
cnt17++; |
5255 |
1514 |
} |
5256 |
357 |
loop17: ; /* Jump to here if this rule does not match */ |
5257 |
|
} |
5258 |
|
|
5259 |
357 |
MATCHT(RPAREN_TOK, &FOLLOW_RPAREN_TOK_in_sygusGrammar1561); |
5260 |
357 |
if (HASEXCEPTION()) |
5261 |
|
{ |
5262 |
|
goto rulesygusGrammarEx; |
5263 |
|
} |
5264 |
|
|
5265 |
|
|
5266 |
357 |
MATCHT(RPAREN_TOK, &FOLLOW_RPAREN_TOK_in_sygusGrammar1567); |
5267 |
357 |
if (HASEXCEPTION()) |
5268 |
|
{ |
5269 |
|
goto rulesygusGrammarEx; |
5270 |
|
} |
5271 |
|
|
5272 |
|
|
5273 |
|
{ |
5274 |
|
|
5275 |
357 |
dtProcessed++; |
5276 |
|
|
5277 |
|
} |
5278 |
|
|
5279 |
|
|
5280 |
|
} |
5281 |
357 |
break; |
5282 |
|
|
5283 |
152 |
default: |
5284 |
|
|
5285 |
152 |
if ( cnt18 >= 1 ) |
5286 |
|
{ |
5287 |
152 |
goto loop18; |
5288 |
|
} |
5289 |
|
/* mismatchedSetEx() |
5290 |
|
*/ |
5291 |
|
CONSTRUCTEX(); |
5292 |
|
EXCEPTION->type = ANTLR3_EARLY_EXIT_EXCEPTION; |
5293 |
|
EXCEPTION->name = (void *)ANTLR3_EARLY_EXIT_NAME; |
5294 |
|
|
5295 |
|
|
5296 |
|
goto rulesygusGrammarEx; |
5297 |
|
} |
5298 |
357 |
cnt18++; |
5299 |
357 |
} |
5300 |
152 |
loop18: ; /* Jump to here if this rule does not match */ |
5301 |
|
} |
5302 |
|
|
5303 |
152 |
MATCHT(RPAREN_TOK, &FOLLOW_RPAREN_TOK_in_sygusGrammar1582); |
5304 |
152 |
if (HASEXCEPTION()) |
5305 |
|
{ |
5306 |
|
goto rulesygusGrammarEx; |
5307 |
|
} |
5308 |
|
|
5309 |
|
|
5310 |
|
{ |
5311 |
|
|
5312 |
|
// pop scope from the pre-declaration |
5313 |
152 |
PARSER_STATE->popScope(); |
5314 |
|
|
5315 |
|
} |
5316 |
|
|
5317 |
|
|
5318 |
|
} |
5319 |
|
|
5320 |
|
} |
5321 |
|
|
5322 |
|
// This is where rules clean up and exit |
5323 |
|
// |
5324 |
152 |
goto rulesygusGrammarEx; /* Prevent compiler warnings */ |
5325 |
152 |
rulesygusGrammarEx: ; |
5326 |
|
|
5327 |
152 |
if (HASEXCEPTION()) |
5328 |
|
{ |
5329 |
|
PREPORTERROR(); |
5330 |
|
PRECOVER(); |
5331 |
|
} |
5332 |
304 |
return ; |
5333 |
|
} |
5334 |
|
/* $ANTLR end sygusGrammar */ |
5335 |
|
|
5336 |
|
/** |
5337 |
|
* $ANTLR start setInfoInternal |
5338 |
|
* /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:732:1: setInfoInternal[std::unique_ptr<cvc5::Command>* cmd] : KEYWORD symbolicExpr[sexpr] ; |
5339 |
|
*/ |
5340 |
|
static void |
5341 |
5658 |
setInfoInternal(pSmt2Parser ctx, std::unique_ptr<cvc5::Command>* cmd) |
5342 |
|
{ |
5343 |
|
|
5344 |
11316 |
std::string name; |
5345 |
11316 |
api::Term sexpr; |
5346 |
|
|
5347 |
|
pANTLR3_COMMON_TOKEN KEYWORD4; |
5348 |
|
|
5349 |
|
/* Initialize rule variables |
5350 |
|
*/ |
5351 |
|
|
5352 |
5658 |
KEYWORD4 = NULL; |
5353 |
|
|
5354 |
|
{ |
5355 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:737:3: ( KEYWORD symbolicExpr[sexpr] ) |
5356 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:737:5: KEYWORD symbolicExpr[sexpr] |
5357 |
|
{ |
5358 |
5658 |
KEYWORD4 = (pANTLR3_COMMON_TOKEN) MATCHT(KEYWORD, &FOLLOW_KEYWORD_in_setInfoInternal1603); |
5359 |
5658 |
if (HASEXCEPTION()) |
5360 |
|
{ |
5361 |
|
goto rulesetInfoInternalEx; |
5362 |
|
} |
5363 |
|
|
5364 |
|
|
5365 |
5658 |
FOLLOWPUSH(FOLLOW_symbolicExpr_in_setInfoInternal1605); |
5366 |
5658 |
symbolicExpr(ctx, sexpr); |
5367 |
|
|
5368 |
5658 |
FOLLOWPOP(); |
5369 |
5658 |
if (HASEXCEPTION()) |
5370 |
|
{ |
5371 |
|
goto rulesetInfoInternalEx; |
5372 |
|
} |
5373 |
|
|
5374 |
|
|
5375 |
|
{ |
5376 |
5658 |
name = AntlrInput::tokenText(KEYWORD4); |
5377 |
5658 |
cmd->reset(new SetInfoCommand(name.c_str() + 1, sexprToString(sexpr))); |
5378 |
|
|
5379 |
|
} |
5380 |
|
|
5381 |
|
|
5382 |
|
} |
5383 |
|
|
5384 |
|
} |
5385 |
|
|
5386 |
|
// This is where rules clean up and exit |
5387 |
|
// |
5388 |
5658 |
goto rulesetInfoInternalEx; /* Prevent compiler warnings */ |
5389 |
5658 |
rulesetInfoInternalEx: ; |
5390 |
|
|
5391 |
5658 |
if (HASEXCEPTION()) |
5392 |
|
{ |
5393 |
|
PREPORTERROR(); |
5394 |
|
PRECOVER(); |
5395 |
|
} |
5396 |
11316 |
return ; |
5397 |
|
} |
5398 |
|
/* $ANTLR end setInfoInternal */ |
5399 |
|
|
5400 |
|
/** |
5401 |
|
* $ANTLR start setOptionInternal |
5402 |
|
* /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:743:1: setOptionInternal[std::unique_ptr<cvc5::Command>* cmd] : keyword[name] symbolicExpr[sexpr] ; |
5403 |
|
*/ |
5404 |
|
static void |
5405 |
1812 |
setOptionInternal(pSmt2Parser ctx, std::unique_ptr<cvc5::Command>* cmd) |
5406 |
|
{ |
5407 |
|
/* Initialize rule variables |
5408 |
|
*/ |
5409 |
|
|
5410 |
|
|
5411 |
3624 |
std::string name; |
5412 |
3624 |
api::Term sexpr; |
5413 |
|
|
5414 |
|
{ |
5415 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:748:3: ( keyword[name] symbolicExpr[sexpr] ) |
5416 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:748:5: keyword[name] symbolicExpr[sexpr] |
5417 |
|
{ |
5418 |
1812 |
FOLLOWPUSH(FOLLOW_keyword_in_setOptionInternal1631); |
5419 |
1812 |
keyword(ctx, name); |
5420 |
|
|
5421 |
1812 |
FOLLOWPOP(); |
5422 |
1812 |
if (HASEXCEPTION()) |
5423 |
|
{ |
5424 |
|
goto rulesetOptionInternalEx; |
5425 |
|
} |
5426 |
|
|
5427 |
|
|
5428 |
1812 |
FOLLOWPUSH(FOLLOW_symbolicExpr_in_setOptionInternal1634); |
5429 |
1812 |
symbolicExpr(ctx, sexpr); |
5430 |
|
|
5431 |
1812 |
FOLLOWPOP(); |
5432 |
1812 |
if (HASEXCEPTION()) |
5433 |
|
{ |
5434 |
|
goto rulesetOptionInternalEx; |
5435 |
|
} |
5436 |
|
|
5437 |
|
|
5438 |
|
{ |
5439 |
1812 |
cmd->reset(new SetOptionCommand(name.c_str() + 1, sexprToString(sexpr))); |
5440 |
|
// Ugly that this changes the state of the parser; but |
5441 |
|
// global-declarations affects parsing, so we can't hold off |
5442 |
|
// on this until some SmtEngine eventually (if ever) executes it. |
5443 |
1812 |
if(name == ":global-declarations") |
5444 |
|
{ |
5445 |
19 |
SYM_MAN->setGlobalDeclarations(sexprToString(sexpr) == "true"); |
5446 |
|
} |
5447 |
|
|
5448 |
|
} |
5449 |
|
|
5450 |
|
|
5451 |
|
} |
5452 |
|
|
5453 |
|
} |
5454 |
|
|
5455 |
|
// This is where rules clean up and exit |
5456 |
|
// |
5457 |
1812 |
goto rulesetOptionInternalEx; /* Prevent compiler warnings */ |
5458 |
1812 |
rulesetOptionInternalEx: ; |
5459 |
|
|
5460 |
1812 |
if (HASEXCEPTION()) |
5461 |
|
{ |
5462 |
|
PREPORTERROR(); |
5463 |
|
PRECOVER(); |
5464 |
|
} |
5465 |
3624 |
return ; |
5466 |
|
} |
5467 |
|
/* $ANTLR end setOptionInternal */ |
5468 |
|
|
5469 |
|
/** |
5470 |
|
* $ANTLR start smt25Command |
5471 |
|
* /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:760:1: smt25Command[std::unique_ptr<cvc5::Command>* cmd] : ( DECLARE_CONST_TOK symbol[name,CHECK_NONE,SYM_VARIABLE] sortSymbol[t,CHECK_DECLARED] | GET_MODEL_TOK | ECHO_TOK ( simpleSymbolicExpr[s] |) | RESET_TOK | RESET_ASSERTIONS_TOK | DEFINE_FUN_REC_TOK symbol[fname,CHECK_NONE,SYM_VARIABLE] LPAREN_TOK sortedVarList[sortedVarNames] RPAREN_TOK sortSymbol[t,CHECK_DECLARED] term[expr, expr2] | DEFINE_FUNS_REC_TOK LPAREN_TOK ( LPAREN_TOK symbol[fname,CHECK_UNDECLARED,SYM_VARIABLE] LPAREN_TOK sortedVarList[sortedVarNames] RPAREN_TOK sortSymbol[t,CHECK_DECLARED] RPAREN_TOK )+ RPAREN_TOK LPAREN_TOK ( term[expr,expr2] )+ RPAREN_TOK ); |
5472 |
|
*/ |
5473 |
|
static void |
5474 |
2642 |
smt25Command(pSmt2Parser ctx, std::unique_ptr<cvc5::Command>* cmd) |
5475 |
|
{ |
5476 |
|
|
5477 |
5284 |
std::string name; |
5478 |
5284 |
std::string fname; |
5479 |
5284 |
cvc5::api::Term expr, expr2; |
5480 |
5284 |
std::vector<std::pair<std::string, cvc5::api::Sort> > sortedVarNames; |
5481 |
5284 |
std::string s; |
5482 |
5284 |
cvc5::api::Sort t; |
5483 |
5284 |
cvc5::api::Term func; |
5484 |
5284 |
std::vector<cvc5::api::Term> bvs; |
5485 |
|
std::vector<std::vector<std::pair<std::string, cvc5::api::Sort>>> |
5486 |
5284 |
sortedVarNamesList; |
5487 |
5284 |
std::vector<std::vector<cvc5::api::Term>> flattenVarsList; |
5488 |
5284 |
std::vector<std::vector<cvc5::api::Term>> formals; |
5489 |
5284 |
std::vector<cvc5::api::Term> funcs; |
5490 |
5284 |
std::vector<cvc5::api::Term> func_defs; |
5491 |
5284 |
cvc5::api::Term aexpr; |
5492 |
5284 |
std::unique_ptr<cvc5::CommandSequence> seq; |
5493 |
5284 |
std::vector<api::Sort> sorts; |
5494 |
5284 |
std::vector<cvc5::api::Term> flattenVars; |
5495 |
|
|
5496 |
|
/* Initialize rule variables |
5497 |
|
*/ |
5498 |
|
|
5499 |
|
{ |
5500 |
|
{ |
5501 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:782:3: ( DECLARE_CONST_TOK symbol[name,CHECK_NONE,SYM_VARIABLE] sortSymbol[t,CHECK_DECLARED] | GET_MODEL_TOK | ECHO_TOK ( simpleSymbolicExpr[s] |) | RESET_TOK | RESET_ASSERTIONS_TOK | DEFINE_FUN_REC_TOK symbol[fname,CHECK_NONE,SYM_VARIABLE] LPAREN_TOK sortedVarList[sortedVarNames] RPAREN_TOK sortSymbol[t,CHECK_DECLARED] term[expr, expr2] | DEFINE_FUNS_REC_TOK LPAREN_TOK ( LPAREN_TOK symbol[fname,CHECK_UNDECLARED,SYM_VARIABLE] LPAREN_TOK sortedVarList[sortedVarNames] RPAREN_TOK sortSymbol[t,CHECK_DECLARED] RPAREN_TOK )+ RPAREN_TOK LPAREN_TOK ( term[expr,expr2] )+ RPAREN_TOK ) |
5502 |
|
|
5503 |
|
ANTLR3_UINT32 alt22; |
5504 |
|
|
5505 |
2642 |
alt22=7; |
5506 |
|
|
5507 |
2642 |
switch ( LA(1) ) |
5508 |
|
{ |
5509 |
2435 |
case DECLARE_CONST_TOK: |
5510 |
|
{ |
5511 |
2435 |
alt22=1; |
5512 |
|
} |
5513 |
2435 |
break; |
5514 |
13 |
case GET_MODEL_TOK: |
5515 |
|
{ |
5516 |
13 |
alt22=2; |
5517 |
|
} |
5518 |
13 |
break; |
5519 |
9 |
case ECHO_TOK: |
5520 |
|
{ |
5521 |
9 |
alt22=3; |
5522 |
|
} |
5523 |
9 |
break; |
5524 |
41 |
case RESET_TOK: |
5525 |
|
{ |
5526 |
41 |
alt22=4; |
5527 |
|
} |
5528 |
41 |
break; |
5529 |
36 |
case RESET_ASSERTIONS_TOK: |
5530 |
|
{ |
5531 |
36 |
alt22=5; |
5532 |
|
} |
5533 |
36 |
break; |
5534 |
76 |
case DEFINE_FUN_REC_TOK: |
5535 |
|
{ |
5536 |
76 |
alt22=6; |
5537 |
|
} |
5538 |
76 |
break; |
5539 |
32 |
case DEFINE_FUNS_REC_TOK: |
5540 |
|
{ |
5541 |
32 |
alt22=7; |
5542 |
|
} |
5543 |
32 |
break; |
5544 |
|
|
5545 |
|
default: |
5546 |
|
CONSTRUCTEX(); |
5547 |
|
EXCEPTION->type = ANTLR3_NO_VIABLE_ALT_EXCEPTION; |
5548 |
|
EXCEPTION->message = (void *)""; |
5549 |
|
EXCEPTION->decisionNum = 22; |
5550 |
|
EXCEPTION->state = 0; |
5551 |
|
|
5552 |
|
|
5553 |
|
goto rulesmt25CommandEx; |
5554 |
|
|
5555 |
|
} |
5556 |
|
|
5557 |
2642 |
switch (alt22) |
5558 |
|
{ |
5559 |
2435 |
case 1: |
5560 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:782:5: DECLARE_CONST_TOK symbol[name,CHECK_NONE,SYM_VARIABLE] sortSymbol[t,CHECK_DECLARED] |
5561 |
|
{ |
5562 |
2435 |
MATCHT(DECLARE_CONST_TOK, &FOLLOW_DECLARE_CONST_TOK_in_smt25Command1666); |
5563 |
2435 |
if (HASEXCEPTION()) |
5564 |
|
{ |
5565 |
|
goto rulesmt25CommandEx; |
5566 |
|
} |
5567 |
|
|
5568 |
|
|
5569 |
|
{ |
5570 |
2435 |
PARSER_STATE->checkThatLogicIsSet(); |
5571 |
|
} |
5572 |
|
|
5573 |
|
|
5574 |
2435 |
FOLLOWPUSH(FOLLOW_symbol_in_smt25Command1674); |
5575 |
2435 |
symbol(ctx, name, CHECK_NONE, SYM_VARIABLE); |
5576 |
|
|
5577 |
2435 |
FOLLOWPOP(); |
5578 |
2435 |
if (HASEXCEPTION()) |
5579 |
|
{ |
5580 |
|
goto rulesmt25CommandEx; |
5581 |
|
} |
5582 |
|
|
5583 |
|
|
5584 |
|
{ |
5585 |
2435 |
PARSER_STATE->checkUserSymbol(name); |
5586 |
|
} |
5587 |
|
|
5588 |
|
|
5589 |
2435 |
FOLLOWPUSH(FOLLOW_sortSymbol_in_smt25Command1687); |
5590 |
2435 |
sortSymbol(ctx, t, CHECK_DECLARED); |
5591 |
|
|
5592 |
2435 |
FOLLOWPOP(); |
5593 |
2435 |
if (HASEXCEPTION()) |
5594 |
|
{ |
5595 |
|
goto rulesmt25CommandEx; |
5596 |
|
} |
5597 |
|
|
5598 |
|
|
5599 |
|
{ |
5600 |
|
// allow overloading here |
5601 |
|
api::Term c = |
5602 |
4870 |
PARSER_STATE->bindVar(name, t, false, true); |
5603 |
2435 |
cmd->reset(new DeclareFunctionCommand(name, c, t)); |
5604 |
2435 |
} |
5605 |
|
|
5606 |
|
|
5607 |
|
} |
5608 |
2435 |
break; |
5609 |
13 |
case 2: |
5610 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:792:5: GET_MODEL_TOK |
5611 |
|
{ |
5612 |
13 |
MATCHT(GET_MODEL_TOK, &FOLLOW_GET_MODEL_TOK_in_smt25Command1707); |
5613 |
13 |
if (HASEXCEPTION()) |
5614 |
|
{ |
5615 |
|
goto rulesmt25CommandEx; |
5616 |
|
} |
5617 |
|
|
5618 |
|
|
5619 |
|
{ |
5620 |
13 |
PARSER_STATE->checkThatLogicIsSet(); |
5621 |
|
} |
5622 |
|
|
5623 |
|
|
5624 |
|
{ |
5625 |
13 |
cmd->reset(new GetModelCommand()); |
5626 |
|
} |
5627 |
|
|
5628 |
|
|
5629 |
|
} |
5630 |
13 |
break; |
5631 |
9 |
case 3: |
5632 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:796:5: ECHO_TOK ( simpleSymbolicExpr[s] |) |
5633 |
|
{ |
5634 |
9 |
MATCHT(ECHO_TOK, &FOLLOW_ECHO_TOK_in_smt25Command1728); |
5635 |
9 |
if (HASEXCEPTION()) |
5636 |
|
{ |
5637 |
|
goto rulesmt25CommandEx; |
5638 |
|
} |
5639 |
|
|
5640 |
|
|
5641 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:797:5: ( simpleSymbolicExpr[s] |) |
5642 |
|
{ |
5643 |
9 |
int alt19=2; |
5644 |
9 |
switch ( LA(1) ) |
5645 |
|
{ |
5646 |
9 |
case ASSERT_TOK: |
5647 |
|
case BINARY_LITERAL: |
5648 |
|
case CHECK_SAT_ASSUMING_TOK: |
5649 |
|
case CHECK_SAT_TOK: |
5650 |
|
case DECIMAL_LITERAL: |
5651 |
|
case DECLARE_DATATYPES_TOK: |
5652 |
|
case DECLARE_FUN_TOK: |
5653 |
|
case DECLARE_SORT_TOK: |
5654 |
|
case DEFINE_FUNS_REC_TOK: |
5655 |
|
case DEFINE_FUN_REC_TOK: |
5656 |
|
case DEFINE_FUN_TOK: |
5657 |
|
case DEFINE_SORT_TOK: |
5658 |
|
case ECHO_TOK: |
5659 |
|
case EXIT_TOK: |
5660 |
|
case GET_ASSERTIONS_TOK: |
5661 |
|
case GET_ASSIGNMENT_TOK: |
5662 |
|
case GET_INFO_TOK: |
5663 |
|
case GET_MODEL_TOK: |
5664 |
|
case GET_OPTION_TOK: |
5665 |
|
case GET_PROOF_TOK: |
5666 |
|
case GET_UNSAT_ASSUMPTIONS_TOK: |
5667 |
|
case GET_UNSAT_CORE_TOK: |
5668 |
|
case GET_VALUE_TOK: |
5669 |
|
case HEX_LITERAL: |
5670 |
|
case INTEGER_LITERAL: |
5671 |
|
case KEYWORD: |
5672 |
|
case POP_TOK: |
5673 |
|
case PUSH_TOK: |
5674 |
|
case QUOTED_SYMBOL: |
5675 |
|
case RESET_ASSERTIONS_TOK: |
5676 |
|
case RESET_TOK: |
5677 |
|
case SET_INFO_TOK: |
5678 |
|
case SET_LOGIC_TOK: |
5679 |
|
case SET_OPTION_TOK: |
5680 |
|
case SIMPLE_SYMBOL: |
5681 |
|
case SIMPLIFY_TOK: |
5682 |
|
case STRING_LITERAL: |
5683 |
|
case UNTERMINATED_QUOTED_SYMBOL: |
5684 |
|
{ |
5685 |
9 |
alt19=1; |
5686 |
|
} |
5687 |
9 |
break; |
5688 |
|
case RPAREN_TOK: |
5689 |
|
{ |
5690 |
|
alt19=2; |
5691 |
|
} |
5692 |
|
break; |
5693 |
|
|
5694 |
|
default: |
5695 |
|
CONSTRUCTEX(); |
5696 |
|
EXCEPTION->type = ANTLR3_NO_VIABLE_ALT_EXCEPTION; |
5697 |
|
EXCEPTION->message = (void *)""; |
5698 |
|
EXCEPTION->decisionNum = 19; |
5699 |
|
EXCEPTION->state = 0; |
5700 |
|
|
5701 |
|
|
5702 |
|
goto rulesmt25CommandEx; |
5703 |
|
|
5704 |
|
} |
5705 |
|
|
5706 |
9 |
switch (alt19) |
5707 |
|
{ |
5708 |
9 |
case 1: |
5709 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:797:7: simpleSymbolicExpr[s] |
5710 |
|
{ |
5711 |
9 |
FOLLOWPUSH(FOLLOW_simpleSymbolicExpr_in_smt25Command1736); |
5712 |
9 |
simpleSymbolicExpr(ctx, s); |
5713 |
|
|
5714 |
9 |
FOLLOWPOP(); |
5715 |
9 |
if (HASEXCEPTION()) |
5716 |
|
{ |
5717 |
|
goto rulesmt25CommandEx; |
5718 |
|
} |
5719 |
|
|
5720 |
|
|
5721 |
|
{ |
5722 |
9 |
cmd->reset(new EchoCommand(s)); |
5723 |
|
} |
5724 |
|
|
5725 |
|
|
5726 |
|
} |
5727 |
9 |
break; |
5728 |
|
case 2: |
5729 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:799:7: |
5730 |
|
{ |
5731 |
|
{ |
5732 |
|
cmd->reset(new EchoCommand()); |
5733 |
|
} |
5734 |
|
|
5735 |
|
|
5736 |
|
} |
5737 |
|
break; |
5738 |
|
|
5739 |
|
} |
5740 |
|
} |
5741 |
|
|
5742 |
|
} |
5743 |
9 |
break; |
5744 |
41 |
case 4: |
5745 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:804:5: RESET_TOK |
5746 |
|
{ |
5747 |
41 |
MATCHT(RESET_TOK, &FOLLOW_RESET_TOK_in_smt25Command1772); |
5748 |
41 |
if (HASEXCEPTION()) |
5749 |
|
{ |
5750 |
|
goto rulesmt25CommandEx; |
5751 |
|
} |
5752 |
|
|
5753 |
|
|
5754 |
|
{ |
5755 |
|
|
5756 |
41 |
cmd->reset(new ResetCommand()); |
5757 |
|
// reset the state of the parser, which is independent of the symbol |
5758 |
|
// manager |
5759 |
41 |
PARSER_STATE->reset(); |
5760 |
|
|
5761 |
|
} |
5762 |
|
|
5763 |
|
|
5764 |
|
} |
5765 |
41 |
break; |
5766 |
36 |
case 5: |
5767 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:813:5: RESET_ASSERTIONS_TOK |
5768 |
|
{ |
5769 |
36 |
MATCHT(RESET_ASSERTIONS_TOK, &FOLLOW_RESET_ASSERTIONS_TOK_in_smt25Command1790); |
5770 |
36 |
if (HASEXCEPTION()) |
5771 |
|
{ |
5772 |
|
goto rulesmt25CommandEx; |
5773 |
|
} |
5774 |
|
|
5775 |
|
|
5776 |
|
{ |
5777 |
36 |
cmd->reset(new ResetAssertionsCommand()); |
5778 |
|
|
5779 |
|
} |
5780 |
|
|
5781 |
|
|
5782 |
|
} |
5783 |
36 |
break; |
5784 |
76 |
case 6: |
5785 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:816:5: DEFINE_FUN_REC_TOK symbol[fname,CHECK_NONE,SYM_VARIABLE] LPAREN_TOK sortedVarList[sortedVarNames] RPAREN_TOK sortSymbol[t,CHECK_DECLARED] term[expr, expr2] |
5786 |
|
{ |
5787 |
76 |
MATCHT(DEFINE_FUN_REC_TOK, &FOLLOW_DEFINE_FUN_REC_TOK_in_smt25Command1802); |
5788 |
76 |
if (HASEXCEPTION()) |
5789 |
|
{ |
5790 |
|
goto rulesmt25CommandEx; |
5791 |
|
} |
5792 |
|
|
5793 |
|
|
5794 |
|
{ |
5795 |
76 |
PARSER_STATE->checkThatLogicIsSet(); |
5796 |
|
} |
5797 |
|
|
5798 |
|
|
5799 |
76 |
FOLLOWPUSH(FOLLOW_symbol_in_smt25Command1814); |
5800 |
76 |
symbol(ctx, fname, CHECK_NONE, SYM_VARIABLE); |
5801 |
|
|
5802 |
76 |
FOLLOWPOP(); |
5803 |
76 |
if (HASEXCEPTION()) |
5804 |
|
{ |
5805 |
|
goto rulesmt25CommandEx; |
5806 |
|
} |
5807 |
|
|
5808 |
|
|
5809 |
|
{ |
5810 |
76 |
PARSER_STATE->checkUserSymbol(fname); |
5811 |
|
} |
5812 |
|
|
5813 |
|
|
5814 |
76 |
MATCHT(LPAREN_TOK, &FOLLOW_LPAREN_TOK_in_smt25Command1827); |
5815 |
76 |
if (HASEXCEPTION()) |
5816 |
|
{ |
5817 |
|
goto rulesmt25CommandEx; |
5818 |
|
} |
5819 |
|
|
5820 |
|
|
5821 |
76 |
FOLLOWPUSH(FOLLOW_sortedVarList_in_smt25Command1829); |
5822 |
76 |
sortedVarList(ctx, sortedVarNames); |
5823 |
|
|
5824 |
76 |
FOLLOWPOP(); |
5825 |
76 |
if (HASEXCEPTION()) |
5826 |
|
{ |
5827 |
|
goto rulesmt25CommandEx; |
5828 |
|
} |
5829 |
|
|
5830 |
|
|
5831 |
76 |
MATCHT(RPAREN_TOK, &FOLLOW_RPAREN_TOK_in_smt25Command1832); |
5832 |
76 |
if (HASEXCEPTION()) |
5833 |
|
{ |
5834 |
|
goto rulesmt25CommandEx; |
5835 |
|
} |
5836 |
|
|
5837 |
|
|
5838 |
76 |
FOLLOWPUSH(FOLLOW_sortSymbol_in_smt25Command1838); |
5839 |
76 |
sortSymbol(ctx, t, CHECK_DECLARED); |
5840 |
|
|
5841 |
76 |
FOLLOWPOP(); |
5842 |
76 |
if (HASEXCEPTION()) |
5843 |
|
{ |
5844 |
|
goto rulesmt25CommandEx; |
5845 |
|
} |
5846 |
|
|
5847 |
|
|
5848 |
|
{ |
5849 |
|
|
5850 |
76 |
func = |
5851 |
152 |
PARSER_STATE->bindDefineFunRec(fname, sortedVarNames, t, flattenVars); |
5852 |
76 |
PARSER_STATE->pushDefineFunRecScope( |
5853 |
|
sortedVarNames, func, flattenVars, bvs); |
5854 |
|
|
5855 |
|
} |
5856 |
|
|
5857 |
|
|
5858 |
76 |
FOLLOWPUSH(FOLLOW_term_in_smt25Command1851); |
5859 |
76 |
term(ctx, expr, expr2); |
5860 |
|
|
5861 |
76 |
FOLLOWPOP(); |
5862 |
76 |
if (HASEXCEPTION()) |
5863 |
|
{ |
5864 |
|
goto rulesmt25CommandEx; |
5865 |
|
} |
5866 |
|
|
5867 |
|
|
5868 |
|
{ |
5869 |
76 |
PARSER_STATE->popScope(); |
5870 |
76 |
if( !flattenVars.empty() ){ |
5871 |
|
expr = PARSER_STATE->mkHoApply( expr, flattenVars ); |
5872 |
|
} |
5873 |
152 |
cmd->reset(new DefineFunctionRecCommand( |
5874 |
76 |
func, bvs, expr, SYM_MAN->getGlobalDeclarations())); |
5875 |
|
|
5876 |
|
} |
5877 |
|
|
5878 |
|
|
5879 |
|
} |
5880 |
76 |
break; |
5881 |
32 |
case 7: |
5882 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:836:5: DEFINE_FUNS_REC_TOK LPAREN_TOK ( LPAREN_TOK symbol[fname,CHECK_UNDECLARED,SYM_VARIABLE] LPAREN_TOK sortedVarList[sortedVarNames] RPAREN_TOK sortSymbol[t,CHECK_DECLARED] RPAREN_TOK )+ RPAREN_TOK LPAREN_TOK ( term[expr,expr2] )+ RPAREN_TOK |
5883 |
|
{ |
5884 |
32 |
MATCHT(DEFINE_FUNS_REC_TOK, &FOLLOW_DEFINE_FUNS_REC_TOK_in_smt25Command1864); |
5885 |
32 |
if (HASEXCEPTION()) |
5886 |
|
{ |
5887 |
|
goto rulesmt25CommandEx; |
5888 |
|
} |
5889 |
|
|
5890 |
|
|
5891 |
|
{ |
5892 |
32 |
PARSER_STATE->checkThatLogicIsSet(); |
5893 |
|
} |
5894 |
|
|
5895 |
|
|
5896 |
32 |
MATCHT(LPAREN_TOK, &FOLLOW_LPAREN_TOK_in_smt25Command1876); |
5897 |
32 |
if (HASEXCEPTION()) |
5898 |
|
{ |
5899 |
|
goto rulesmt25CommandEx; |
5900 |
|
} |
5901 |
|
|
5902 |
|
|
5903 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:839:5: ( LPAREN_TOK symbol[fname,CHECK_UNDECLARED,SYM_VARIABLE] LPAREN_TOK sortedVarList[sortedVarNames] RPAREN_TOK sortSymbol[t,CHECK_DECLARED] RPAREN_TOK )+ |
5904 |
|
{ |
5905 |
32 |
int cnt20=0; |
5906 |
|
|
5907 |
|
for (;;) |
5908 |
|
{ |
5909 |
106 |
int alt20=2; |
5910 |
106 |
switch ( LA(1) ) |
5911 |
|
{ |
5912 |
74 |
case LPAREN_TOK: |
5913 |
|
{ |
5914 |
74 |
alt20=1; |
5915 |
|
} |
5916 |
74 |
break; |
5917 |
|
|
5918 |
|
} |
5919 |
|
|
5920 |
106 |
switch (alt20) |
5921 |
|
{ |
5922 |
74 |
case 1: |
5923 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:839:7: LPAREN_TOK symbol[fname,CHECK_UNDECLARED,SYM_VARIABLE] LPAREN_TOK sortedVarList[sortedVarNames] RPAREN_TOK sortSymbol[t,CHECK_DECLARED] RPAREN_TOK |
5924 |
|
{ |
5925 |
74 |
MATCHT(LPAREN_TOK, &FOLLOW_LPAREN_TOK_in_smt25Command1884); |
5926 |
74 |
if (HASEXCEPTION()) |
5927 |
|
{ |
5928 |
|
goto rulesmt25CommandEx; |
5929 |
|
} |
5930 |
|
|
5931 |
|
|
5932 |
74 |
FOLLOWPUSH(FOLLOW_symbol_in_smt25Command1892); |
5933 |
74 |
symbol(ctx, fname, CHECK_UNDECLARED, SYM_VARIABLE); |
5934 |
|
|
5935 |
74 |
FOLLOWPOP(); |
5936 |
74 |
if (HASEXCEPTION()) |
5937 |
|
{ |
5938 |
|
goto rulesmt25CommandEx; |
5939 |
|
} |
5940 |
|
|
5941 |
|
|
5942 |
|
{ |
5943 |
74 |
PARSER_STATE->checkUserSymbol(fname); |
5944 |
|
} |
5945 |
|
|
5946 |
|
|
5947 |
74 |
MATCHT(LPAREN_TOK, &FOLLOW_LPAREN_TOK_in_smt25Command1909); |
5948 |
74 |
if (HASEXCEPTION()) |
5949 |
|
{ |
5950 |
|
goto rulesmt25CommandEx; |
5951 |
|
} |
5952 |
|
|
5953 |
|
|
5954 |
74 |
FOLLOWPUSH(FOLLOW_sortedVarList_in_smt25Command1911); |
5955 |
74 |
sortedVarList(ctx, sortedVarNames); |
5956 |
|
|
5957 |
74 |
FOLLOWPOP(); |
5958 |
74 |
if (HASEXCEPTION()) |
5959 |
|
{ |
5960 |
|
goto rulesmt25CommandEx; |
5961 |
|
} |
5962 |
|
|
5963 |
|
|
5964 |
74 |
MATCHT(RPAREN_TOK, &FOLLOW_RPAREN_TOK_in_smt25Command1914); |
5965 |
74 |
if (HASEXCEPTION()) |
5966 |
|
{ |
5967 |
|
goto rulesmt25CommandEx; |
5968 |
|
} |
5969 |
|
|
5970 |
|
|
5971 |
74 |
FOLLOWPUSH(FOLLOW_sortSymbol_in_smt25Command1922); |
5972 |
74 |
sortSymbol(ctx, t, CHECK_DECLARED); |
5973 |
|
|
5974 |
74 |
FOLLOWPOP(); |
5975 |
74 |
if (HASEXCEPTION()) |
5976 |
|
{ |
5977 |
|
goto rulesmt25CommandEx; |
5978 |
|
} |
5979 |
|
|
5980 |
|
|
5981 |
|
{ |
5982 |
|
|
5983 |
74 |
flattenVars.clear(); |
5984 |
74 |
func = PARSER_STATE->bindDefineFunRec( |
5985 |
|
fname, sortedVarNames, t, flattenVars); |
5986 |
74 |
funcs.push_back( func ); |
5987 |
|
|
5988 |
|
// add to lists (need to remember for when parsing the bodies) |
5989 |
74 |
sortedVarNamesList.push_back( sortedVarNames ); |
5990 |
74 |
flattenVarsList.push_back( flattenVars ); |
5991 |
|
|
5992 |
|
// set up parsing the next variable list block |
5993 |
74 |
sortedVarNames.clear(); |
5994 |
74 |
flattenVars.clear(); |
5995 |
|
|
5996 |
|
} |
5997 |
|
|
5998 |
|
|
5999 |
74 |
MATCHT(RPAREN_TOK, &FOLLOW_RPAREN_TOK_in_smt25Command1939); |
6000 |
74 |
if (HASEXCEPTION()) |
6001 |
|
{ |
6002 |
|
goto rulesmt25CommandEx; |
6003 |
|
} |
6004 |
|
|
6005 |
|
|
6006 |
|
} |
6007 |
74 |
break; |
6008 |
|
|
6009 |
32 |
default: |
6010 |
|
|
6011 |
32 |
if ( cnt20 >= 1 ) |
6012 |
|
{ |
6013 |
32 |
goto loop20; |
6014 |
|
} |
6015 |
|
/* mismatchedSetEx() |
6016 |
|
*/ |
6017 |
|
CONSTRUCTEX(); |
6018 |
|
EXCEPTION->type = ANTLR3_EARLY_EXIT_EXCEPTION; |
6019 |
|
EXCEPTION->name = (void *)ANTLR3_EARLY_EXIT_NAME; |
6020 |
|
|
6021 |
|
|
6022 |
|
goto rulesmt25CommandEx; |
6023 |
|
} |
6024 |
74 |
cnt20++; |
6025 |
74 |
} |
6026 |
32 |
loop20: ; /* Jump to here if this rule does not match */ |
6027 |
|
} |
6028 |
|
|
6029 |
32 |
MATCHT(RPAREN_TOK, &FOLLOW_RPAREN_TOK_in_smt25Command1952); |
6030 |
32 |
if (HASEXCEPTION()) |
6031 |
|
{ |
6032 |
|
goto rulesmt25CommandEx; |
6033 |
|
} |
6034 |
|
|
6035 |
|
|
6036 |
32 |
MATCHT(LPAREN_TOK, &FOLLOW_LPAREN_TOK_in_smt25Command1958); |
6037 |
32 |
if (HASEXCEPTION()) |
6038 |
|
{ |
6039 |
|
goto rulesmt25CommandEx; |
6040 |
|
} |
6041 |
|
|
6042 |
|
|
6043 |
|
{ |
6044 |
|
|
6045 |
|
//set up the first scope |
6046 |
32 |
if( sortedVarNamesList.empty() ){ |
6047 |
|
PARSER_STATE->parseError("Must define at least one function in " |
6048 |
|
"define-funs-rec"); |
6049 |
|
} |
6050 |
32 |
bvs.clear(); |
6051 |
64 |
PARSER_STATE->pushDefineFunRecScope( sortedVarNamesList[0], funcs[0], |
6052 |
32 |
flattenVarsList[0], bvs); |
6053 |
|
|
6054 |
|
} |
6055 |
|
|
6056 |
|
|
6057 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:872:5: ( term[expr,expr2] )+ |
6058 |
|
{ |
6059 |
32 |
int cnt21=0; |
6060 |
|
|
6061 |
|
for (;;) |
6062 |
|
{ |
6063 |
106 |
int alt21=2; |
6064 |
106 |
switch ( LA(1) ) |
6065 |
|
{ |
6066 |
74 |
case BINARY_LITERAL: |
6067 |
|
case DECIMAL_LITERAL: |
6068 |
|
case HEX_LITERAL: |
6069 |
|
case INTEGER_LITERAL: |
6070 |
|
case LPAREN_TOK: |
6071 |
|
case QUOTED_SYMBOL: |
6072 |
|
case SIMPLE_SYMBOL: |
6073 |
|
case STRING_LITERAL: |
6074 |
|
case TUPLE_CONST_TOK: |
6075 |
|
case UNTERMINATED_QUOTED_SYMBOL: |
6076 |
|
{ |
6077 |
74 |
alt21=1; |
6078 |
|
} |
6079 |
74 |
break; |
6080 |
|
|
6081 |
|
} |
6082 |
|
|
6083 |
106 |
switch (alt21) |
6084 |
|
{ |
6085 |
74 |
case 1: |
6086 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:873:5: term[expr,expr2] |
6087 |
|
{ |
6088 |
74 |
FOLLOWPUSH(FOLLOW_term_in_smt25Command1976); |
6089 |
74 |
term(ctx, expr, expr2); |
6090 |
|
|
6091 |
74 |
FOLLOWPOP(); |
6092 |
74 |
if (HASEXCEPTION()) |
6093 |
|
{ |
6094 |
|
goto rulesmt25CommandEx; |
6095 |
|
} |
6096 |
|
|
6097 |
|
|
6098 |
|
{ |
6099 |
|
|
6100 |
74 |
unsigned j = func_defs.size(); |
6101 |
74 |
if( !flattenVarsList[j].empty() ){ |
6102 |
|
expr = PARSER_STATE->mkHoApply( expr, flattenVarsList[j] ); |
6103 |
|
} |
6104 |
74 |
func_defs.push_back( expr ); |
6105 |
74 |
formals.push_back(bvs); |
6106 |
74 |
j++; |
6107 |
|
//set up the next scope |
6108 |
74 |
PARSER_STATE->popScope(); |
6109 |
74 |
if( func_defs.size()<funcs.size() ){ |
6110 |
42 |
bvs.clear(); |
6111 |
84 |
PARSER_STATE->pushDefineFunRecScope( sortedVarNamesList[j], funcs[j], |
6112 |
42 |
flattenVarsList[j], bvs); |
6113 |
|
} |
6114 |
|
|
6115 |
|
} |
6116 |
|
|
6117 |
|
|
6118 |
|
} |
6119 |
74 |
break; |
6120 |
|
|
6121 |
32 |
default: |
6122 |
|
|
6123 |
32 |
if ( cnt21 >= 1 ) |
6124 |
|
{ |
6125 |
32 |
goto loop21; |
6126 |
|
} |
6127 |
|
/* mismatchedSetEx() |
6128 |
|
*/ |
6129 |
|
CONSTRUCTEX(); |
6130 |
|
EXCEPTION->type = ANTLR3_EARLY_EXIT_EXCEPTION; |
6131 |
|
EXCEPTION->name = (void *)ANTLR3_EARLY_EXIT_NAME; |
6132 |
|
|
6133 |
|
|
6134 |
|
goto rulesmt25CommandEx; |
6135 |
|
} |
6136 |
74 |
cnt21++; |
6137 |
74 |
} |
6138 |
32 |
loop21: ; /* Jump to here if this rule does not match */ |
6139 |
|
} |
6140 |
|
|
6141 |
32 |
MATCHT(RPAREN_TOK, &FOLLOW_RPAREN_TOK_in_smt25Command1996); |
6142 |
32 |
if (HASEXCEPTION()) |
6143 |
|
{ |
6144 |
|
goto rulesmt25CommandEx; |
6145 |
|
} |
6146 |
|
|
6147 |
|
|
6148 |
|
{ |
6149 |
32 |
if( funcs.size()!=func_defs.size() ){ |
6150 |
|
PARSER_STATE->parseError(std::string( |
6151 |
|
"Number of functions defined does not match number listed in " |
6152 |
|
"define-funs-rec")); |
6153 |
|
} |
6154 |
32 |
cmd->reset(new DefineFunctionRecCommand( |
6155 |
32 |
funcs, formals, func_defs, SYM_MAN->getGlobalDeclarations())); |
6156 |
|
|
6157 |
|
} |
6158 |
|
|
6159 |
|
|
6160 |
|
} |
6161 |
32 |
break; |
6162 |
|
|
6163 |
|
} |
6164 |
|
} |
6165 |
|
} |
6166 |
|
|
6167 |
|
// This is where rules clean up and exit |
6168 |
|
// |
6169 |
2642 |
goto rulesmt25CommandEx; /* Prevent compiler warnings */ |
6170 |
2642 |
rulesmt25CommandEx: ; |
6171 |
|
|
6172 |
2642 |
if (HASEXCEPTION()) |
6173 |
|
{ |
6174 |
|
PREPORTERROR(); |
6175 |
|
PRECOVER(); |
6176 |
|
} |
6177 |
5284 |
return ; |
6178 |
|
} |
6179 |
|
/* $ANTLR end smt25Command */ |
6180 |
|
|
6181 |
|
/** |
6182 |
|
* $ANTLR start extendedCommand |
6183 |
|
* /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:902:1: extendedCommand[std::unique_ptr<cvc5::Command>* cmd] : ( DECLARE_CODATATYPE_TOK datatypeDefCommand[true, cmd] | DECLARE_CODATATYPES_TOK datatypesDefCommand[true, cmd] | DECLARE_SORTS_TOK LPAREN_TOK ( symbol[name,CHECK_UNDECLARED,SYM_SORT] )+ RPAREN_TOK | DECLARE_FUNS_TOK LPAREN_TOK ( LPAREN_TOK symbol[name,CHECK_UNDECLARED,SYM_VARIABLE] nonemptySortList[sorts] RPAREN_TOK )+ RPAREN_TOK | DECLARE_PREDS_TOK LPAREN_TOK ( LPAREN_TOK symbol[name,CHECK_UNDECLARED,SYM_VARIABLE] sortList[sorts] RPAREN_TOK )+ RPAREN_TOK | DEFINE_TOK ( symbol[name,CHECK_UNDECLARED,SYM_VARIABLE] term[e,e2] | LPAREN_TOK symbol[name,CHECK_UNDECLARED,SYM_VARIABLE] sortedVarList[sortedVarNames] RPAREN_TOK term[e,e2] ) | DEFINE_CONST_TOK symbol[name,CHECK_UNDECLARED,SYM_VARIABLE] sortSymbol[t,CHECK_DECLARED] term[e, e2] | SIMPLIFY_TOK term[e,e2] | GET_QE_TOK term[e,e2] | GET_QE_DISJUNCT_TOK term[e,e2] | GET_ABDUCT_TOK symbol[name,CHECK_UNDECLARED,SYM_VARIABLE] term[e,e2] ( sygusGrammar[g, terms, name] )? | GET_INTERPOL_TOK symbol[name,CHECK_UNDECLARED,SYM_VARIABLE] term[e,e2] ( sygusGrammar[g, terms, name] )? | DECLARE_HEAP LPAREN_TOK sortSymbol[t, CHECK_DECLARED] sortSymbol[s, CHECK_DECLARED] RPAREN_TOK | DECLARE_POOL symbol[name,CHECK_NONE,SYM_VARIABLE] sortSymbol[t,CHECK_DECLARED] LPAREN_TOK ( term[e, e2] )* RPAREN_TOK | BLOCK_MODEL_TOK | BLOCK_MODEL_VALUES_TOK ( LPAREN_TOK termList[terms,e] RPAREN_TOK |~ LPAREN_TOK ) ); |
6184 |
|
*/ |
6185 |
|
static void |
6186 |
183 |
extendedCommand(pSmt2Parser ctx, std::unique_ptr<cvc5::Command>* cmd) |
6187 |
|
{ |
6188 |
|
|
6189 |
366 |
std::vector<api::DatatypeDecl> dts; |
6190 |
366 |
cvc5::api::Term e, e2; |
6191 |
366 |
cvc5::api::Sort t, s; |
6192 |
366 |
std::string name; |
6193 |
366 |
std::vector<std::string> names; |
6194 |
366 |
std::vector<cvc5::api::Term> terms; |
6195 |
366 |
std::vector<api::Sort> sorts; |
6196 |
366 |
std::vector<std::pair<std::string, cvc5::api::Sort> > sortedVarNames; |
6197 |
366 |
std::unique_ptr<cvc5::CommandSequence> seq; |
6198 |
183 |
api::Grammar* g = nullptr; |
6199 |
|
|
6200 |
|
/* Initialize rule variables |
6201 |
|
*/ |
6202 |
|
|
6203 |
|
{ |
6204 |
|
{ |
6205 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:917:3: ( DECLARE_CODATATYPE_TOK datatypeDefCommand[true, cmd] | DECLARE_CODATATYPES_TOK datatypesDefCommand[true, cmd] | DECLARE_SORTS_TOK LPAREN_TOK ( symbol[name,CHECK_UNDECLARED,SYM_SORT] )+ RPAREN_TOK | DECLARE_FUNS_TOK LPAREN_TOK ( LPAREN_TOK symbol[name,CHECK_UNDECLARED,SYM_VARIABLE] nonemptySortList[sorts] RPAREN_TOK )+ RPAREN_TOK | DECLARE_PREDS_TOK LPAREN_TOK ( LPAREN_TOK symbol[name,CHECK_UNDECLARED,SYM_VARIABLE] sortList[sorts] RPAREN_TOK )+ RPAREN_TOK | DEFINE_TOK ( symbol[name,CHECK_UNDECLARED,SYM_VARIABLE] term[e,e2] | LPAREN_TOK symbol[name,CHECK_UNDECLARED,SYM_VARIABLE] sortedVarList[sortedVarNames] RPAREN_TOK term[e,e2] ) | DEFINE_CONST_TOK symbol[name,CHECK_UNDECLARED,SYM_VARIABLE] sortSymbol[t,CHECK_DECLARED] term[e, e2] | SIMPLIFY_TOK term[e,e2] | GET_QE_TOK term[e,e2] | GET_QE_DISJUNCT_TOK term[e,e2] | GET_ABDUCT_TOK symbol[name,CHECK_UNDECLARED,SYM_VARIABLE] term[e,e2] ( sygusGrammar[g, terms, name] )? | GET_INTERPOL_TOK symbol[name,CHECK_UNDECLARED,SYM_VARIABLE] term[e,e2] ( sygusGrammar[g, terms, name] )? | DECLARE_HEAP LPAREN_TOK sortSymbol[t, CHECK_DECLARED] sortSymbol[s, CHECK_DECLARED] RPAREN_TOK | DECLARE_POOL symbol[name,CHECK_NONE,SYM_VARIABLE] sortSymbol[t,CHECK_DECLARED] LPAREN_TOK ( term[e, e2] )* RPAREN_TOK | BLOCK_MODEL_TOK | BLOCK_MODEL_VALUES_TOK ( LPAREN_TOK termList[terms,e] RPAREN_TOK |~ LPAREN_TOK ) ) |
6206 |
|
|
6207 |
|
ANTLR3_UINT32 alt31; |
6208 |
|
|
6209 |
183 |
alt31=16; |
6210 |
|
|
6211 |
183 |
switch ( LA(1) ) |
6212 |
|
{ |
6213 |
2 |
case DECLARE_CODATATYPE_TOK: |
6214 |
|
{ |
6215 |
2 |
alt31=1; |
6216 |
|
} |
6217 |
2 |
break; |
6218 |
22 |
case DECLARE_CODATATYPES_TOK: |
6219 |
|
{ |
6220 |
22 |
alt31=2; |
6221 |
|
} |
6222 |
22 |
break; |
6223 |
|
case DECLARE_SORTS_TOK: |
6224 |
|
{ |
6225 |
|
alt31=3; |
6226 |
|
} |
6227 |
|
break; |
6228 |
2 |
case DECLARE_FUNS_TOK: |
6229 |
|
{ |
6230 |
2 |
alt31=4; |
6231 |
|
} |
6232 |
2 |
break; |
6233 |
|
case DECLARE_PREDS_TOK: |
6234 |
|
{ |
6235 |
|
alt31=5; |
6236 |
|
} |
6237 |
|
break; |
6238 |
8 |
case DEFINE_TOK: |
6239 |
|
{ |
6240 |
8 |
alt31=6; |
6241 |
|
} |
6242 |
8 |
break; |
6243 |
8 |
case DEFINE_CONST_TOK: |
6244 |
|
{ |
6245 |
8 |
alt31=7; |
6246 |
|
} |
6247 |
8 |
break; |
6248 |
1 |
case SIMPLIFY_TOK: |
6249 |
|
{ |
6250 |
1 |
alt31=8; |
6251 |
|
} |
6252 |
1 |
break; |
6253 |
7 |
case GET_QE_TOK: |
6254 |
|
{ |
6255 |
7 |
alt31=9; |
6256 |
|
} |
6257 |
7 |
break; |
6258 |
1 |
case GET_QE_DISJUNCT_TOK: |
6259 |
|
{ |
6260 |
1 |
alt31=10; |
6261 |
|
} |
6262 |
1 |
break; |
6263 |
12 |
case GET_ABDUCT_TOK: |
6264 |
|
{ |
6265 |
12 |
alt31=11; |
6266 |
|
} |
6267 |
12 |
break; |
6268 |
8 |
case GET_INTERPOL_TOK: |
6269 |
|
{ |
6270 |
8 |
alt31=12; |
6271 |
|
} |
6272 |
8 |
break; |
6273 |
87 |
case DECLARE_HEAP: |
6274 |
|
{ |
6275 |
87 |
alt31=13; |
6276 |
|
} |
6277 |
87 |
break; |
6278 |
3 |
case DECLARE_POOL: |
6279 |
|
{ |
6280 |
3 |
alt31=14; |
6281 |
|
} |
6282 |
3 |
break; |
6283 |
14 |
case BLOCK_MODEL_TOK: |
6284 |
|
{ |
6285 |
14 |
alt31=15; |
6286 |
|
} |
6287 |
14 |
break; |
6288 |
8 |
case BLOCK_MODEL_VALUES_TOK: |
6289 |
|
{ |
6290 |
8 |
alt31=16; |
6291 |
|
} |
6292 |
8 |
break; |
6293 |
|
|
6294 |
|
default: |
6295 |
|
CONSTRUCTEX(); |
6296 |
|
EXCEPTION->type = ANTLR3_NO_VIABLE_ALT_EXCEPTION; |
6297 |
|
EXCEPTION->message = (void *)""; |
6298 |
|
EXCEPTION->decisionNum = 31; |
6299 |
|
EXCEPTION->state = 0; |
6300 |
|
|
6301 |
|
|
6302 |
|
goto ruleextendedCommandEx; |
6303 |
|
|
6304 |
|
} |
6305 |
|
|
6306 |
183 |
switch (alt31) |
6307 |
|
{ |
6308 |
2 |
case 1: |
6309 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:917:5: DECLARE_CODATATYPE_TOK datatypeDefCommand[true, cmd] |
6310 |
|
{ |
6311 |
2 |
MATCHT(DECLARE_CODATATYPE_TOK, &FOLLOW_DECLARE_CODATATYPE_TOK_in_extendedCommand2027); |
6312 |
2 |
if (HASEXCEPTION()) |
6313 |
|
{ |
6314 |
|
goto ruleextendedCommandEx; |
6315 |
|
} |
6316 |
|
|
6317 |
|
|
6318 |
2 |
FOLLOWPUSH(FOLLOW_datatypeDefCommand_in_extendedCommand2029); |
6319 |
2 |
datatypeDefCommand(ctx, true, cmd); |
6320 |
|
|
6321 |
2 |
FOLLOWPOP(); |
6322 |
2 |
if (HASEXCEPTION()) |
6323 |
|
{ |
6324 |
|
goto ruleextendedCommandEx; |
6325 |
|
} |
6326 |
|
|
6327 |
|
|
6328 |
|
} |
6329 |
2 |
break; |
6330 |
22 |
case 2: |
6331 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:918:5: DECLARE_CODATATYPES_TOK datatypesDefCommand[true, cmd] |
6332 |
|
{ |
6333 |
22 |
MATCHT(DECLARE_CODATATYPES_TOK, &FOLLOW_DECLARE_CODATATYPES_TOK_in_extendedCommand2036); |
6334 |
22 |
if (HASEXCEPTION()) |
6335 |
|
{ |
6336 |
|
goto ruleextendedCommandEx; |
6337 |
|
} |
6338 |
|
|
6339 |
|
|
6340 |
22 |
FOLLOWPUSH(FOLLOW_datatypesDefCommand_in_extendedCommand2038); |
6341 |
22 |
datatypesDefCommand(ctx, true, cmd); |
6342 |
|
|
6343 |
22 |
FOLLOWPOP(); |
6344 |
22 |
if (HASEXCEPTION()) |
6345 |
|
{ |
6346 |
|
goto ruleextendedCommandEx; |
6347 |
|
} |
6348 |
|
|
6349 |
|
|
6350 |
|
} |
6351 |
22 |
break; |
6352 |
|
case 3: |
6353 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:922:5: DECLARE_SORTS_TOK LPAREN_TOK ( symbol[name,CHECK_UNDECLARED,SYM_SORT] )+ RPAREN_TOK |
6354 |
|
{ |
6355 |
|
MATCHT(DECLARE_SORTS_TOK, &FOLLOW_DECLARE_SORTS_TOK_in_extendedCommand2053); |
6356 |
|
if (HASEXCEPTION()) |
6357 |
|
{ |
6358 |
|
goto ruleextendedCommandEx; |
6359 |
|
} |
6360 |
|
|
6361 |
|
|
6362 |
|
{ |
6363 |
|
|
6364 |
|
PARSER_STATE->checkThatLogicIsSet(); |
6365 |
|
PARSER_STATE->checkLogicAllowsFreeSorts(); |
6366 |
|
seq.reset(new cvc5::CommandSequence()); |
6367 |
|
|
6368 |
|
} |
6369 |
|
|
6370 |
|
|
6371 |
|
MATCHT(LPAREN_TOK, &FOLLOW_LPAREN_TOK_in_extendedCommand2065); |
6372 |
|
if (HASEXCEPTION()) |
6373 |
|
{ |
6374 |
|
goto ruleextendedCommandEx; |
6375 |
|
} |
6376 |
|
|
6377 |
|
|
6378 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:929:5: ( symbol[name,CHECK_UNDECLARED,SYM_SORT] )+ |
6379 |
|
{ |
6380 |
|
int cnt23=0; |
6381 |
|
|
6382 |
|
for (;;) |
6383 |
|
{ |
6384 |
|
int alt23=2; |
6385 |
|
switch ( LA(1) ) |
6386 |
|
{ |
6387 |
|
case QUOTED_SYMBOL: |
6388 |
|
case SIMPLE_SYMBOL: |
6389 |
|
case UNTERMINATED_QUOTED_SYMBOL: |
6390 |
|
{ |
6391 |
|
alt23=1; |
6392 |
|
} |
6393 |
|
break; |
6394 |
|
|
6395 |
|
} |
6396 |
|
|
6397 |
|
switch (alt23) |
6398 |
|
{ |
6399 |
|
case 1: |
6400 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:929:7: symbol[name,CHECK_UNDECLARED,SYM_SORT] |
6401 |
|
{ |
6402 |
|
FOLLOWPUSH(FOLLOW_symbol_in_extendedCommand2073); |
6403 |
|
symbol(ctx, name, CHECK_UNDECLARED, SYM_SORT); |
6404 |
|
|
6405 |
|
FOLLOWPOP(); |
6406 |
|
if (HASEXCEPTION()) |
6407 |
|
{ |
6408 |
|
goto ruleextendedCommandEx; |
6409 |
|
} |
6410 |
|
|
6411 |
|
|
6412 |
|
{ |
6413 |
|
PARSER_STATE->checkUserSymbol(name); |
6414 |
|
api::Sort type = PARSER_STATE->mkSort(name); |
6415 |
|
seq->addCommand(new DeclareSortCommand(name, 0, type)); |
6416 |
|
|
6417 |
|
} |
6418 |
|
|
6419 |
|
|
6420 |
|
} |
6421 |
|
break; |
6422 |
|
|
6423 |
|
default: |
6424 |
|
|
6425 |
|
if ( cnt23 >= 1 ) |
6426 |
|
{ |
6427 |
|
goto loop23; |
6428 |
|
} |
6429 |
|
/* mismatchedSetEx() |
6430 |
|
*/ |
6431 |
|
CONSTRUCTEX(); |
6432 |
|
EXCEPTION->type = ANTLR3_EARLY_EXIT_EXCEPTION; |
6433 |
|
EXCEPTION->name = (void *)ANTLR3_EARLY_EXIT_NAME; |
6434 |
|
|
6435 |
|
|
6436 |
|
goto ruleextendedCommandEx; |
6437 |
|
} |
6438 |
|
cnt23++; |
6439 |
|
} |
6440 |
|
loop23: ; /* Jump to here if this rule does not match */ |
6441 |
|
} |
6442 |
|
|
6443 |
|
MATCHT(RPAREN_TOK, &FOLLOW_RPAREN_TOK_in_extendedCommand2095); |
6444 |
|
if (HASEXCEPTION()) |
6445 |
|
{ |
6446 |
|
goto ruleextendedCommandEx; |
6447 |
|
} |
6448 |
|
|
6449 |
|
|
6450 |
|
{ |
6451 |
|
cmd->reset(seq.release()); |
6452 |
|
} |
6453 |
|
|
6454 |
|
|
6455 |
|
} |
6456 |
|
break; |
6457 |
2 |
case 4: |
6458 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:938:5: DECLARE_FUNS_TOK LPAREN_TOK ( LPAREN_TOK symbol[name,CHECK_UNDECLARED,SYM_VARIABLE] nonemptySortList[sorts] RPAREN_TOK )+ RPAREN_TOK |
6459 |
|
{ |
6460 |
2 |
MATCHT(DECLARE_FUNS_TOK, &FOLLOW_DECLARE_FUNS_TOK_in_extendedCommand2108); |
6461 |
2 |
if (HASEXCEPTION()) |
6462 |
|
{ |
6463 |
|
goto ruleextendedCommandEx; |
6464 |
|
} |
6465 |
|
|
6466 |
|
|
6467 |
|
{ |
6468 |
2 |
PARSER_STATE->checkThatLogicIsSet(); |
6469 |
|
} |
6470 |
|
|
6471 |
|
|
6472 |
|
{ |
6473 |
2 |
seq.reset(new cvc5::CommandSequence()); |
6474 |
|
} |
6475 |
|
|
6476 |
|
|
6477 |
2 |
MATCHT(LPAREN_TOK, &FOLLOW_LPAREN_TOK_in_extendedCommand2122); |
6478 |
2 |
if (HASEXCEPTION()) |
6479 |
|
{ |
6480 |
|
goto ruleextendedCommandEx; |
6481 |
|
} |
6482 |
|
|
6483 |
|
|
6484 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:941:5: ( LPAREN_TOK symbol[name,CHECK_UNDECLARED,SYM_VARIABLE] nonemptySortList[sorts] RPAREN_TOK )+ |
6485 |
|
{ |
6486 |
2 |
int cnt24=0; |
6487 |
|
|
6488 |
|
for (;;) |
6489 |
|
{ |
6490 |
6 |
int alt24=2; |
6491 |
6 |
switch ( LA(1) ) |
6492 |
|
{ |
6493 |
4 |
case LPAREN_TOK: |
6494 |
|
{ |
6495 |
4 |
alt24=1; |
6496 |
|
} |
6497 |
4 |
break; |
6498 |
|
|
6499 |
|
} |
6500 |
|
|
6501 |
6 |
switch (alt24) |
6502 |
|
{ |
6503 |
4 |
case 1: |
6504 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:941:7: LPAREN_TOK symbol[name,CHECK_UNDECLARED,SYM_VARIABLE] nonemptySortList[sorts] RPAREN_TOK |
6505 |
|
{ |
6506 |
4 |
MATCHT(LPAREN_TOK, &FOLLOW_LPAREN_TOK_in_extendedCommand2130); |
6507 |
4 |
if (HASEXCEPTION()) |
6508 |
|
{ |
6509 |
|
goto ruleextendedCommandEx; |
6510 |
|
} |
6511 |
|
|
6512 |
|
|
6513 |
4 |
FOLLOWPUSH(FOLLOW_symbol_in_extendedCommand2132); |
6514 |
4 |
symbol(ctx, name, CHECK_UNDECLARED, SYM_VARIABLE); |
6515 |
|
|
6516 |
4 |
FOLLOWPOP(); |
6517 |
4 |
if (HASEXCEPTION()) |
6518 |
|
{ |
6519 |
|
goto ruleextendedCommandEx; |
6520 |
|
} |
6521 |
|
|
6522 |
|
|
6523 |
|
{ |
6524 |
4 |
PARSER_STATE->checkUserSymbol(name); |
6525 |
|
} |
6526 |
|
|
6527 |
|
|
6528 |
4 |
FOLLOWPUSH(FOLLOW_nonemptySortList_in_extendedCommand2149); |
6529 |
4 |
nonemptySortList(ctx, sorts); |
6530 |
|
|
6531 |
4 |
FOLLOWPOP(); |
6532 |
4 |
if (HASEXCEPTION()) |
6533 |
|
{ |
6534 |
|
goto ruleextendedCommandEx; |
6535 |
|
} |
6536 |
|
|
6537 |
|
|
6538 |
4 |
MATCHT(RPAREN_TOK, &FOLLOW_RPAREN_TOK_in_extendedCommand2152); |
6539 |
4 |
if (HASEXCEPTION()) |
6540 |
|
{ |
6541 |
|
goto ruleextendedCommandEx; |
6542 |
|
} |
6543 |
|
|
6544 |
|
|
6545 |
|
{ |
6546 |
8 |
api::Sort tt; |
6547 |
4 |
if(sorts.size() > 1) { |
6548 |
|
PARSER_STATE->checkLogicAllowsFunctions(); |
6549 |
|
// must flatten |
6550 |
|
api::Sort range = sorts.back(); |
6551 |
|
sorts.pop_back(); |
6552 |
|
tt = PARSER_STATE->mkFlatFunctionType(sorts, range); |
6553 |
|
} else { |
6554 |
4 |
tt = sorts[0]; |
6555 |
|
} |
6556 |
|
// allow overloading |
6557 |
|
api::Term func = |
6558 |
8 |
PARSER_STATE->bindVar(name, tt, false, true); |
6559 |
4 |
seq->addCommand(new DeclareFunctionCommand(name, func, tt)); |
6560 |
4 |
sorts.clear(); |
6561 |
|
|
6562 |
4 |
} |
6563 |
|
|
6564 |
|
|
6565 |
|
} |
6566 |
4 |
break; |
6567 |
|
|
6568 |
2 |
default: |
6569 |
|
|
6570 |
2 |
if ( cnt24 >= 1 ) |
6571 |
|
{ |
6572 |
2 |
goto loop24; |
6573 |
|
} |
6574 |
|
/* mismatchedSetEx() |
6575 |
|
*/ |
6576 |
|
CONSTRUCTEX(); |
6577 |
|
EXCEPTION->type = ANTLR3_EARLY_EXIT_EXCEPTION; |
6578 |
|
EXCEPTION->name = (void *)ANTLR3_EARLY_EXIT_NAME; |
6579 |
|
|
6580 |
|
|
6581 |
|
goto ruleextendedCommandEx; |
6582 |
|
} |
6583 |
4 |
cnt24++; |
6584 |
4 |
} |
6585 |
2 |
loop24: ; /* Jump to here if this rule does not match */ |
6586 |
|
} |
6587 |
|
|
6588 |
2 |
MATCHT(RPAREN_TOK, &FOLLOW_RPAREN_TOK_in_extendedCommand2173); |
6589 |
2 |
if (HASEXCEPTION()) |
6590 |
|
{ |
6591 |
|
goto ruleextendedCommandEx; |
6592 |
|
} |
6593 |
|
|
6594 |
|
|
6595 |
|
{ |
6596 |
2 |
cmd->reset(seq.release()); |
6597 |
|
} |
6598 |
|
|
6599 |
|
|
6600 |
|
} |
6601 |
2 |
break; |
6602 |
|
case 5: |
6603 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:963:5: DECLARE_PREDS_TOK LPAREN_TOK ( LPAREN_TOK symbol[name,CHECK_UNDECLARED,SYM_VARIABLE] sortList[sorts] RPAREN_TOK )+ RPAREN_TOK |
6604 |
|
{ |
6605 |
|
MATCHT(DECLARE_PREDS_TOK, &FOLLOW_DECLARE_PREDS_TOK_in_extendedCommand2185); |
6606 |
|
if (HASEXCEPTION()) |
6607 |
|
{ |
6608 |
|
goto ruleextendedCommandEx; |
6609 |
|
} |
6610 |
|
|
6611 |
|
|
6612 |
|
{ |
6613 |
|
PARSER_STATE->checkThatLogicIsSet(); |
6614 |
|
} |
6615 |
|
|
6616 |
|
|
6617 |
|
{ |
6618 |
|
seq.reset(new cvc5::CommandSequence()); |
6619 |
|
} |
6620 |
|
|
6621 |
|
|
6622 |
|
MATCHT(LPAREN_TOK, &FOLLOW_LPAREN_TOK_in_extendedCommand2199); |
6623 |
|
if (HASEXCEPTION()) |
6624 |
|
{ |
6625 |
|
goto ruleextendedCommandEx; |
6626 |
|
} |
6627 |
|
|
6628 |
|
|
6629 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:966:5: ( LPAREN_TOK symbol[name,CHECK_UNDECLARED,SYM_VARIABLE] sortList[sorts] RPAREN_TOK )+ |
6630 |
|
{ |
6631 |
|
int cnt25=0; |
6632 |
|
|
6633 |
|
for (;;) |
6634 |
|
{ |
6635 |
|
int alt25=2; |
6636 |
|
switch ( LA(1) ) |
6637 |
|
{ |
6638 |
|
case LPAREN_TOK: |
6639 |
|
{ |
6640 |
|
alt25=1; |
6641 |
|
} |
6642 |
|
break; |
6643 |
|
|
6644 |
|
} |
6645 |
|
|
6646 |
|
switch (alt25) |
6647 |
|
{ |
6648 |
|
case 1: |
6649 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:966:7: LPAREN_TOK symbol[name,CHECK_UNDECLARED,SYM_VARIABLE] sortList[sorts] RPAREN_TOK |
6650 |
|
{ |
6651 |
|
MATCHT(LPAREN_TOK, &FOLLOW_LPAREN_TOK_in_extendedCommand2207); |
6652 |
|
if (HASEXCEPTION()) |
6653 |
|
{ |
6654 |
|
goto ruleextendedCommandEx; |
6655 |
|
} |
6656 |
|
|
6657 |
|
|
6658 |
|
FOLLOWPUSH(FOLLOW_symbol_in_extendedCommand2209); |
6659 |
|
symbol(ctx, name, CHECK_UNDECLARED, SYM_VARIABLE); |
6660 |
|
|
6661 |
|
FOLLOWPOP(); |
6662 |
|
if (HASEXCEPTION()) |
6663 |
|
{ |
6664 |
|
goto ruleextendedCommandEx; |
6665 |
|
} |
6666 |
|
|
6667 |
|
|
6668 |
|
{ |
6669 |
|
PARSER_STATE->checkUserSymbol(name); |
6670 |
|
} |
6671 |
|
|
6672 |
|
|
6673 |
|
FOLLOWPUSH(FOLLOW_sortList_in_extendedCommand2226); |
6674 |
|
sortList(ctx, sorts); |
6675 |
|
|
6676 |
|
FOLLOWPOP(); |
6677 |
|
if (HASEXCEPTION()) |
6678 |
|
{ |
6679 |
|
goto ruleextendedCommandEx; |
6680 |
|
} |
6681 |
|
|
6682 |
|
|
6683 |
|
MATCHT(RPAREN_TOK, &FOLLOW_RPAREN_TOK_in_extendedCommand2229); |
6684 |
|
if (HASEXCEPTION()) |
6685 |
|
{ |
6686 |
|
goto ruleextendedCommandEx; |
6687 |
|
} |
6688 |
|
|
6689 |
|
|
6690 |
|
{ |
6691 |
|
t = SOLVER->getBooleanSort(); |
6692 |
|
if(sorts.size() > 0) { |
6693 |
|
PARSER_STATE->checkLogicAllowsFunctions(); |
6694 |
|
t = SOLVER->mkFunctionSort(sorts, t); |
6695 |
|
} |
6696 |
|
// allow overloading |
6697 |
|
api::Term func = |
6698 |
|
PARSER_STATE->bindVar(name, t, false, true); |
6699 |
|
seq->addCommand(new DeclareFunctionCommand(name, func, t)); |
6700 |
|
sorts.clear(); |
6701 |
|
|
6702 |
|
} |
6703 |
|
|
6704 |
|
|
6705 |
|
} |
6706 |
|
break; |
6707 |
|
|
6708 |
|
default: |
6709 |
|
|
6710 |
|
if ( cnt25 >= 1 ) |
6711 |
|
{ |
6712 |
|
goto loop25; |
6713 |
|
} |
6714 |
|
/* mismatchedSetEx() |
6715 |
|
*/ |
6716 |
|
CONSTRUCTEX(); |
6717 |
|
EXCEPTION->type = ANTLR3_EARLY_EXIT_EXCEPTION; |
6718 |
|
EXCEPTION->name = (void *)ANTLR3_EARLY_EXIT_NAME; |
6719 |
|
|
6720 |
|
|
6721 |
|
goto ruleextendedCommandEx; |
6722 |
|
} |
6723 |
|
cnt25++; |
6724 |
|
} |
6725 |
|
loop25: ; /* Jump to here if this rule does not match */ |
6726 |
|
} |
6727 |
|
|
6728 |
|
MATCHT(RPAREN_TOK, &FOLLOW_RPAREN_TOK_in_extendedCommand2250); |
6729 |
|
if (HASEXCEPTION()) |
6730 |
|
{ |
6731 |
|
goto ruleextendedCommandEx; |
6732 |
|
} |
6733 |
|
|
6734 |
|
|
6735 |
|
{ |
6736 |
|
cmd->reset(seq.release()); |
6737 |
|
} |
6738 |
|
|
6739 |
|
|
6740 |
|
} |
6741 |
|
break; |
6742 |
8 |
case 6: |
6743 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:984:5: DEFINE_TOK ( symbol[name,CHECK_UNDECLARED,SYM_VARIABLE] term[e,e2] | LPAREN_TOK symbol[name,CHECK_UNDECLARED,SYM_VARIABLE] sortedVarList[sortedVarNames] RPAREN_TOK term[e,e2] ) |
6744 |
|
{ |
6745 |
8 |
MATCHT(DEFINE_TOK, &FOLLOW_DEFINE_TOK_in_extendedCommand2263); |
6746 |
8 |
if (HASEXCEPTION()) |
6747 |
|
{ |
6748 |
|
goto ruleextendedCommandEx; |
6749 |
|
} |
6750 |
|
|
6751 |
|
|
6752 |
|
{ |
6753 |
8 |
PARSER_STATE->checkThatLogicIsSet(); |
6754 |
|
} |
6755 |
|
|
6756 |
|
|
6757 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:985:5: ( symbol[name,CHECK_UNDECLARED,SYM_VARIABLE] term[e,e2] | LPAREN_TOK symbol[name,CHECK_UNDECLARED,SYM_VARIABLE] sortedVarList[sortedVarNames] RPAREN_TOK term[e,e2] ) |
6758 |
|
{ |
6759 |
8 |
int alt26=2; |
6760 |
8 |
switch ( LA(1) ) |
6761 |
|
{ |
6762 |
5 |
case QUOTED_SYMBOL: |
6763 |
|
case SIMPLE_SYMBOL: |
6764 |
|
case UNTERMINATED_QUOTED_SYMBOL: |
6765 |
|
{ |
6766 |
5 |
alt26=1; |
6767 |
|
} |
6768 |
5 |
break; |
6769 |
3 |
case LPAREN_TOK: |
6770 |
|
{ |
6771 |
3 |
alt26=2; |
6772 |
|
} |
6773 |
3 |
break; |
6774 |
|
|
6775 |
|
default: |
6776 |
|
CONSTRUCTEX(); |
6777 |
|
EXCEPTION->type = ANTLR3_NO_VIABLE_ALT_EXCEPTION; |
6778 |
|
EXCEPTION->message = (void *)""; |
6779 |
|
EXCEPTION->decisionNum = 26; |
6780 |
|
EXCEPTION->state = 0; |
6781 |
|
|
6782 |
|
|
6783 |
|
goto ruleextendedCommandEx; |
6784 |
|
|
6785 |
|
} |
6786 |
|
|
6787 |
8 |
switch (alt26) |
6788 |
|
{ |
6789 |
5 |
case 1: |
6790 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:986:7: symbol[name,CHECK_UNDECLARED,SYM_VARIABLE] term[e,e2] |
6791 |
|
{ |
6792 |
5 |
FOLLOWPUSH(FOLLOW_symbol_in_extendedCommand2280); |
6793 |
5 |
symbol(ctx, name, CHECK_UNDECLARED, SYM_VARIABLE); |
6794 |
|
|
6795 |
5 |
FOLLOWPOP(); |
6796 |
5 |
if (HASEXCEPTION()) |
6797 |
|
{ |
6798 |
|
goto ruleextendedCommandEx; |
6799 |
|
} |
6800 |
|
|
6801 |
|
|
6802 |
|
{ |
6803 |
5 |
PARSER_STATE->checkUserSymbol(name); |
6804 |
|
} |
6805 |
|
|
6806 |
|
|
6807 |
5 |
FOLLOWPUSH(FOLLOW_term_in_extendedCommand2297); |
6808 |
5 |
term(ctx, e, e2); |
6809 |
|
|
6810 |
5 |
FOLLOWPOP(); |
6811 |
5 |
if (HASEXCEPTION()) |
6812 |
|
{ |
6813 |
|
goto ruleextendedCommandEx; |
6814 |
|
} |
6815 |
|
|
6816 |
|
|
6817 |
|
{ |
6818 |
|
|
6819 |
10 |
api::Term func = PARSER_STATE->bindVar(name, e.getSort()); |
6820 |
10 |
cmd->reset(new DefineFunctionCommand( |
6821 |
5 |
name, func, e, SYM_MAN->getGlobalDeclarations())); |
6822 |
|
|
6823 |
5 |
} |
6824 |
|
|
6825 |
|
|
6826 |
|
} |
6827 |
5 |
break; |
6828 |
3 |
case 2: |
6829 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:995:7: LPAREN_TOK symbol[name,CHECK_UNDECLARED,SYM_VARIABLE] sortedVarList[sortedVarNames] RPAREN_TOK term[e,e2] |
6830 |
|
{ |
6831 |
3 |
MATCHT(LPAREN_TOK, &FOLLOW_LPAREN_TOK_in_extendedCommand2321); |
6832 |
3 |
if (HASEXCEPTION()) |
6833 |
|
{ |
6834 |
|
goto ruleextendedCommandEx; |
6835 |
|
} |
6836 |
|
|
6837 |
|
|
6838 |
3 |
FOLLOWPUSH(FOLLOW_symbol_in_extendedCommand2329); |
6839 |
3 |
symbol(ctx, name, CHECK_UNDECLARED, SYM_VARIABLE); |
6840 |
|
|
6841 |
3 |
FOLLOWPOP(); |
6842 |
3 |
if (HASEXCEPTION()) |
6843 |
|
{ |
6844 |
|
goto ruleextendedCommandEx; |
6845 |
|
} |
6846 |
|
|
6847 |
|
|
6848 |
|
{ |
6849 |
3 |
PARSER_STATE->checkUserSymbol(name); |
6850 |
|
} |
6851 |
|
|
6852 |
|
|
6853 |
3 |
FOLLOWPUSH(FOLLOW_sortedVarList_in_extendedCommand2346); |
6854 |
3 |
sortedVarList(ctx, sortedVarNames); |
6855 |
|
|
6856 |
3 |
FOLLOWPOP(); |
6857 |
3 |
if (HASEXCEPTION()) |
6858 |
|
{ |
6859 |
|
goto ruleextendedCommandEx; |
6860 |
|
} |
6861 |
|
|
6862 |
|
|
6863 |
3 |
MATCHT(RPAREN_TOK, &FOLLOW_RPAREN_TOK_in_extendedCommand2349); |
6864 |
3 |
if (HASEXCEPTION()) |
6865 |
|
{ |
6866 |
|
goto ruleextendedCommandEx; |
6867 |
|
} |
6868 |
|
|
6869 |
|
|
6870 |
|
{ |
6871 |
|
/* add variables to parser state before parsing term */ |
6872 |
3 |
Debug("parser") << "define fun: '" << name << "'" << std::endl; |
6873 |
3 |
PARSER_STATE->pushScope(); |
6874 |
3 |
terms = PARSER_STATE->bindBoundVars(sortedVarNames); |
6875 |
|
|
6876 |
|
} |
6877 |
|
|
6878 |
|
|
6879 |
3 |
FOLLOWPUSH(FOLLOW_term_in_extendedCommand2365); |
6880 |
3 |
term(ctx, e, e2); |
6881 |
|
|
6882 |
3 |
FOLLOWPOP(); |
6883 |
3 |
if (HASEXCEPTION()) |
6884 |
|
{ |
6885 |
|
goto ruleextendedCommandEx; |
6886 |
|
} |
6887 |
|
|
6888 |
|
|
6889 |
|
{ |
6890 |
|
|
6891 |
3 |
PARSER_STATE->popScope(); |
6892 |
|
// declare the name down here (while parsing term, signature |
6893 |
|
// must not be extended with the name itself; no recursion |
6894 |
|
// permitted) |
6895 |
6 |
api::Sort tt = e.getSort(); |
6896 |
3 |
if( sortedVarNames.size() > 0 ) { |
6897 |
3 |
sorts.reserve(sortedVarNames.size()); |
6898 |
3 |
for(std::vector<std::pair<std::string, api::Sort> >::const_iterator |
6899 |
3 |
i = sortedVarNames.begin(), iend = sortedVarNames.end(); |
6900 |
6 |
i != iend; ++i) { |
6901 |
3 |
sorts.push_back((*i).second); |
6902 |
|
} |
6903 |
3 |
tt = SOLVER->mkFunctionSort(sorts, tt); |
6904 |
|
} |
6905 |
6 |
api::Term func = PARSER_STATE->bindVar(name, tt); |
6906 |
6 |
cmd->reset(new DefineFunctionCommand( |
6907 |
3 |
name, func, terms, e, SYM_MAN->getGlobalDeclarations())); |
6908 |
|
|
6909 |
3 |
} |
6910 |
|
|
6911 |
|
|
6912 |
|
} |
6913 |
3 |
break; |
6914 |
|
|
6915 |
|
} |
6916 |
|
} |
6917 |
|
|
6918 |
|
} |
6919 |
8 |
break; |
6920 |
8 |
case 7: |
6921 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1026:5: DEFINE_CONST_TOK symbol[name,CHECK_UNDECLARED,SYM_VARIABLE] sortSymbol[t,CHECK_DECLARED] term[e, e2] |
6922 |
|
{ |
6923 |
8 |
MATCHT(DEFINE_CONST_TOK, &FOLLOW_DEFINE_CONST_TOK_in_extendedCommand2391); |
6924 |
8 |
if (HASEXCEPTION()) |
6925 |
|
{ |
6926 |
|
goto ruleextendedCommandEx; |
6927 |
|
} |
6928 |
|
|
6929 |
|
|
6930 |
|
{ |
6931 |
8 |
PARSER_STATE->checkThatLogicIsSet(); |
6932 |
|
} |
6933 |
|
|
6934 |
|
|
6935 |
8 |
FOLLOWPUSH(FOLLOW_symbol_in_extendedCommand2399); |
6936 |
8 |
symbol(ctx, name, CHECK_UNDECLARED, SYM_VARIABLE); |
6937 |
|
|
6938 |
8 |
FOLLOWPOP(); |
6939 |
8 |
if (HASEXCEPTION()) |
6940 |
|
{ |
6941 |
|
goto ruleextendedCommandEx; |
6942 |
|
} |
6943 |
|
|
6944 |
|
|
6945 |
|
{ |
6946 |
8 |
PARSER_STATE->checkUserSymbol(name); |
6947 |
|
} |
6948 |
|
|
6949 |
|
|
6950 |
8 |
FOLLOWPUSH(FOLLOW_sortSymbol_in_extendedCommand2412); |
6951 |
8 |
sortSymbol(ctx, t, CHECK_DECLARED); |
6952 |
|
|
6953 |
8 |
FOLLOWPOP(); |
6954 |
8 |
if (HASEXCEPTION()) |
6955 |
|
{ |
6956 |
|
goto ruleextendedCommandEx; |
6957 |
|
} |
6958 |
|
|
6959 |
|
|
6960 |
8 |
FOLLOWPUSH(FOLLOW_term_in_extendedCommand2419); |
6961 |
8 |
term(ctx, e, e2); |
6962 |
|
|
6963 |
8 |
FOLLOWPOP(); |
6964 |
8 |
if (HASEXCEPTION()) |
6965 |
|
{ |
6966 |
|
goto ruleextendedCommandEx; |
6967 |
|
} |
6968 |
|
|
6969 |
|
|
6970 |
|
{ |
6971 |
|
|
6972 |
|
// declare the name down here (while parsing term, signature |
6973 |
|
// must not be extended with the name itself; no recursion |
6974 |
|
// permitted) |
6975 |
16 |
api::Term func = PARSER_STATE->bindVar(name, t); |
6976 |
16 |
cmd->reset(new DefineFunctionCommand( |
6977 |
8 |
name, func, terms, e, SYM_MAN->getGlobalDeclarations())); |
6978 |
|
|
6979 |
8 |
} |
6980 |
|
|
6981 |
|
|
6982 |
|
} |
6983 |
8 |
break; |
6984 |
1 |
case 8: |
6985 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1040:5: SIMPLIFY_TOK term[e,e2] |
6986 |
|
{ |
6987 |
1 |
MATCHT(SIMPLIFY_TOK, &FOLLOW_SIMPLIFY_TOK_in_extendedCommand2433); |
6988 |
1 |
if (HASEXCEPTION()) |
6989 |
|
{ |
6990 |
|
goto ruleextendedCommandEx; |
6991 |
|
} |
6992 |
|
|
6993 |
|
|
6994 |
|
{ |
6995 |
1 |
PARSER_STATE->checkThatLogicIsSet(); |
6996 |
|
} |
6997 |
|
|
6998 |
|
|
6999 |
1 |
FOLLOWPUSH(FOLLOW_term_in_extendedCommand2441); |
7000 |
1 |
term(ctx, e, e2); |
7001 |
|
|
7002 |
|
FOLLOWPOP(); |
7003 |
|
if (HASEXCEPTION()) |
7004 |
|
{ |
7005 |
|
goto ruleextendedCommandEx; |
7006 |
|
} |
7007 |
|
|
7008 |
|
|
7009 |
|
{ |
7010 |
|
cmd->reset(new SimplifyCommand(e)); |
7011 |
|
} |
7012 |
|
|
7013 |
|
|
7014 |
|
} |
7015 |
|
break; |
7016 |
7 |
case 9: |
7017 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1043:5: GET_QE_TOK term[e,e2] |
7018 |
|
{ |
7019 |
7 |
MATCHT(GET_QE_TOK, &FOLLOW_GET_QE_TOK_in_extendedCommand2454); |
7020 |
7 |
if (HASEXCEPTION()) |
7021 |
|
{ |
7022 |
|
goto ruleextendedCommandEx; |
7023 |
|
} |
7024 |
|
|
7025 |
|
|
7026 |
|
{ |
7027 |
7 |
PARSER_STATE->checkThatLogicIsSet(); |
7028 |
|
} |
7029 |
|
|
7030 |
|
|
7031 |
7 |
FOLLOWPUSH(FOLLOW_term_in_extendedCommand2462); |
7032 |
7 |
term(ctx, e, e2); |
7033 |
|
|
7034 |
7 |
FOLLOWPOP(); |
7035 |
7 |
if (HASEXCEPTION()) |
7036 |
|
{ |
7037 |
|
goto ruleextendedCommandEx; |
7038 |
|
} |
7039 |
|
|
7040 |
|
|
7041 |
|
{ |
7042 |
7 |
cmd->reset(new GetQuantifierEliminationCommand(e, true)); |
7043 |
|
} |
7044 |
|
|
7045 |
|
|
7046 |
|
} |
7047 |
7 |
break; |
7048 |
1 |
case 10: |
7049 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1046:5: GET_QE_DISJUNCT_TOK term[e,e2] |
7050 |
|
{ |
7051 |
1 |
MATCHT(GET_QE_DISJUNCT_TOK, &FOLLOW_GET_QE_DISJUNCT_TOK_in_extendedCommand2475); |
7052 |
1 |
if (HASEXCEPTION()) |
7053 |
|
{ |
7054 |
|
goto ruleextendedCommandEx; |
7055 |
|
} |
7056 |
|
|
7057 |
|
|
7058 |
|
{ |
7059 |
1 |
PARSER_STATE->checkThatLogicIsSet(); |
7060 |
|
} |
7061 |
|
|
7062 |
|
|
7063 |
1 |
FOLLOWPUSH(FOLLOW_term_in_extendedCommand2483); |
7064 |
1 |
term(ctx, e, e2); |
7065 |
|
|
7066 |
1 |
FOLLOWPOP(); |
7067 |
1 |
if (HASEXCEPTION()) |
7068 |
|
{ |
7069 |
|
goto ruleextendedCommandEx; |
7070 |
|
} |
7071 |
|
|
7072 |
|
|
7073 |
|
{ |
7074 |
1 |
cmd->reset(new GetQuantifierEliminationCommand(e, false)); |
7075 |
|
} |
7076 |
|
|
7077 |
|
|
7078 |
|
} |
7079 |
1 |
break; |
7080 |
12 |
case 11: |
7081 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1049:5: GET_ABDUCT_TOK symbol[name,CHECK_UNDECLARED,SYM_VARIABLE] term[e,e2] ( sygusGrammar[g, terms, name] )? |
7082 |
|
{ |
7083 |
12 |
MATCHT(GET_ABDUCT_TOK, &FOLLOW_GET_ABDUCT_TOK_in_extendedCommand2496); |
7084 |
12 |
if (HASEXCEPTION()) |
7085 |
|
{ |
7086 |
|
goto ruleextendedCommandEx; |
7087 |
|
} |
7088 |
|
|
7089 |
|
|
7090 |
|
{ |
7091 |
|
|
7092 |
12 |
PARSER_STATE->checkThatLogicIsSet(); |
7093 |
|
|
7094 |
|
} |
7095 |
|
|
7096 |
|
|
7097 |
12 |
FOLLOWPUSH(FOLLOW_symbol_in_extendedCommand2504); |
7098 |
12 |
symbol(ctx, name, CHECK_UNDECLARED, SYM_VARIABLE); |
7099 |
|
|
7100 |
12 |
FOLLOWPOP(); |
7101 |
12 |
if (HASEXCEPTION()) |
7102 |
|
{ |
7103 |
|
goto ruleextendedCommandEx; |
7104 |
|
} |
7105 |
|
|
7106 |
|
|
7107 |
12 |
FOLLOWPUSH(FOLLOW_term_in_extendedCommand2511); |
7108 |
12 |
term(ctx, e, e2); |
7109 |
|
|
7110 |
12 |
FOLLOWPOP(); |
7111 |
12 |
if (HASEXCEPTION()) |
7112 |
|
{ |
7113 |
|
goto ruleextendedCommandEx; |
7114 |
|
} |
7115 |
|
|
7116 |
|
|
7117 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1054:5: ( sygusGrammar[g, terms, name] )? |
7118 |
|
{ |
7119 |
12 |
int alt27=2; |
7120 |
12 |
switch ( LA(1) ) |
7121 |
|
{ |
7122 |
4 |
case LPAREN_TOK: |
7123 |
|
{ |
7124 |
4 |
alt27=1; |
7125 |
|
} |
7126 |
4 |
break; |
7127 |
|
} |
7128 |
|
|
7129 |
12 |
switch (alt27) |
7130 |
|
{ |
7131 |
4 |
case 1: |
7132 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1055:7: sygusGrammar[g, terms, name] |
7133 |
|
{ |
7134 |
4 |
FOLLOWPUSH(FOLLOW_sygusGrammar_in_extendedCommand2526); |
7135 |
4 |
sygusGrammar(ctx, g, terms, name); |
7136 |
|
|
7137 |
4 |
FOLLOWPOP(); |
7138 |
4 |
if (HASEXCEPTION()) |
7139 |
|
{ |
7140 |
|
goto ruleextendedCommandEx; |
7141 |
|
} |
7142 |
|
|
7143 |
|
|
7144 |
|
} |
7145 |
4 |
break; |
7146 |
|
|
7147 |
|
} |
7148 |
|
} |
7149 |
|
|
7150 |
|
{ |
7151 |
|
|
7152 |
12 |
cmd->reset(new GetAbductCommand(name, e, g)); |
7153 |
|
|
7154 |
|
} |
7155 |
|
|
7156 |
|
|
7157 |
|
} |
7158 |
12 |
break; |
7159 |
8 |
case 12: |
7160 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1060:5: GET_INTERPOL_TOK symbol[name,CHECK_UNDECLARED,SYM_VARIABLE] term[e,e2] ( sygusGrammar[g, terms, name] )? |
7161 |
|
{ |
7162 |
8 |
MATCHT(GET_INTERPOL_TOK, &FOLLOW_GET_INTERPOL_TOK_in_extendedCommand2546); |
7163 |
8 |
if (HASEXCEPTION()) |
7164 |
|
{ |
7165 |
|
goto ruleextendedCommandEx; |
7166 |
|
} |
7167 |
|
|
7168 |
|
|
7169 |
|
{ |
7170 |
|
|
7171 |
8 |
PARSER_STATE->checkThatLogicIsSet(); |
7172 |
|
|
7173 |
|
} |
7174 |
|
|
7175 |
|
|
7176 |
8 |
FOLLOWPUSH(FOLLOW_symbol_in_extendedCommand2554); |
7177 |
8 |
symbol(ctx, name, CHECK_UNDECLARED, SYM_VARIABLE); |
7178 |
|
|
7179 |
8 |
FOLLOWPOP(); |
7180 |
8 |
if (HASEXCEPTION()) |
7181 |
|
{ |
7182 |
|
goto ruleextendedCommandEx; |
7183 |
|
} |
7184 |
|
|
7185 |
|
|
7186 |
8 |
FOLLOWPUSH(FOLLOW_term_in_extendedCommand2561); |
7187 |
8 |
term(ctx, e, e2); |
7188 |
|
|
7189 |
8 |
FOLLOWPOP(); |
7190 |
8 |
if (HASEXCEPTION()) |
7191 |
|
{ |
7192 |
|
goto ruleextendedCommandEx; |
7193 |
|
} |
7194 |
|
|
7195 |
|
|
7196 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1065:5: ( sygusGrammar[g, terms, name] )? |
7197 |
|
{ |
7198 |
8 |
int alt28=2; |
7199 |
8 |
switch ( LA(1) ) |
7200 |
|
{ |
7201 |
1 |
case LPAREN_TOK: |
7202 |
|
{ |
7203 |
1 |
alt28=1; |
7204 |
|
} |
7205 |
1 |
break; |
7206 |
|
} |
7207 |
|
|
7208 |
8 |
switch (alt28) |
7209 |
|
{ |
7210 |
1 |
case 1: |
7211 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1066:7: sygusGrammar[g, terms, name] |
7212 |
|
{ |
7213 |
1 |
FOLLOWPUSH(FOLLOW_sygusGrammar_in_extendedCommand2576); |
7214 |
1 |
sygusGrammar(ctx, g, terms, name); |
7215 |
|
|
7216 |
1 |
FOLLOWPOP(); |
7217 |
1 |
if (HASEXCEPTION()) |
7218 |
|
{ |
7219 |
|
goto ruleextendedCommandEx; |
7220 |
|
} |
7221 |
|
|
7222 |
|
|
7223 |
|
} |
7224 |
1 |
break; |
7225 |
|
|
7226 |
|
} |
7227 |
|
} |
7228 |
|
|
7229 |
|
{ |
7230 |
|
|
7231 |
8 |
cmd->reset(new GetInterpolCommand(name, e, g)); |
7232 |
|
|
7233 |
|
} |
7234 |
|
|
7235 |
|
|
7236 |
|
} |
7237 |
8 |
break; |
7238 |
87 |
case 13: |
7239 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1071:5: DECLARE_HEAP LPAREN_TOK sortSymbol[t, CHECK_DECLARED] sortSymbol[s, CHECK_DECLARED] RPAREN_TOK |
7240 |
|
{ |
7241 |
87 |
MATCHT(DECLARE_HEAP, &FOLLOW_DECLARE_HEAP_in_extendedCommand2596); |
7242 |
87 |
if (HASEXCEPTION()) |
7243 |
|
{ |
7244 |
|
goto ruleextendedCommandEx; |
7245 |
|
} |
7246 |
|
|
7247 |
|
|
7248 |
87 |
MATCHT(LPAREN_TOK, &FOLLOW_LPAREN_TOK_in_extendedCommand2598); |
7249 |
87 |
if (HASEXCEPTION()) |
7250 |
|
{ |
7251 |
|
goto ruleextendedCommandEx; |
7252 |
|
} |
7253 |
|
|
7254 |
|
|
7255 |
87 |
FOLLOWPUSH(FOLLOW_sortSymbol_in_extendedCommand2604); |
7256 |
87 |
sortSymbol(ctx, t, CHECK_DECLARED); |
7257 |
|
|
7258 |
87 |
FOLLOWPOP(); |
7259 |
87 |
if (HASEXCEPTION()) |
7260 |
|
{ |
7261 |
|
goto ruleextendedCommandEx; |
7262 |
|
} |
7263 |
|
|
7264 |
|
|
7265 |
87 |
FOLLOWPUSH(FOLLOW_sortSymbol_in_extendedCommand2611); |
7266 |
87 |
sortSymbol(ctx, s, CHECK_DECLARED); |
7267 |
|
|
7268 |
87 |
FOLLOWPOP(); |
7269 |
87 |
if (HASEXCEPTION()) |
7270 |
|
{ |
7271 |
|
goto ruleextendedCommandEx; |
7272 |
|
} |
7273 |
|
|
7274 |
|
|
7275 |
|
{ |
7276 |
87 |
cmd->reset(new DeclareHeapCommand(t, s)); |
7277 |
|
} |
7278 |
|
|
7279 |
|
|
7280 |
87 |
MATCHT(RPAREN_TOK, &FOLLOW_RPAREN_TOK_in_extendedCommand2624); |
7281 |
87 |
if (HASEXCEPTION()) |
7282 |
|
{ |
7283 |
|
goto ruleextendedCommandEx; |
7284 |
|
} |
7285 |
|
|
7286 |
|
|
7287 |
|
} |
7288 |
87 |
break; |
7289 |
3 |
case 14: |
7290 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1076:5: DECLARE_POOL symbol[name,CHECK_NONE,SYM_VARIABLE] sortSymbol[t,CHECK_DECLARED] LPAREN_TOK ( term[e, e2] )* RPAREN_TOK |
7291 |
|
{ |
7292 |
3 |
MATCHT(DECLARE_POOL, &FOLLOW_DECLARE_POOL_in_extendedCommand2630); |
7293 |
3 |
if (HASEXCEPTION()) |
7294 |
|
{ |
7295 |
|
goto ruleextendedCommandEx; |
7296 |
|
} |
7297 |
|
|
7298 |
|
|
7299 |
|
{ |
7300 |
3 |
PARSER_STATE->checkThatLogicIsSet(); |
7301 |
|
} |
7302 |
|
|
7303 |
|
|
7304 |
3 |
FOLLOWPUSH(FOLLOW_symbol_in_extendedCommand2638); |
7305 |
3 |
symbol(ctx, name, CHECK_NONE, SYM_VARIABLE); |
7306 |
|
|
7307 |
3 |
FOLLOWPOP(); |
7308 |
3 |
if (HASEXCEPTION()) |
7309 |
|
{ |
7310 |
|
goto ruleextendedCommandEx; |
7311 |
|
} |
7312 |
|
|
7313 |
|
|
7314 |
|
{ |
7315 |
3 |
PARSER_STATE->checkUserSymbol(name); |
7316 |
|
} |
7317 |
|
|
7318 |
|
|
7319 |
3 |
FOLLOWPUSH(FOLLOW_sortSymbol_in_extendedCommand2651); |
7320 |
3 |
sortSymbol(ctx, t, CHECK_DECLARED); |
7321 |
|
|
7322 |
3 |
FOLLOWPOP(); |
7323 |
3 |
if (HASEXCEPTION()) |
7324 |
|
{ |
7325 |
|
goto ruleextendedCommandEx; |
7326 |
|
} |
7327 |
|
|
7328 |
|
|
7329 |
3 |
MATCHT(LPAREN_TOK, &FOLLOW_LPAREN_TOK_in_extendedCommand2658); |
7330 |
3 |
if (HASEXCEPTION()) |
7331 |
|
{ |
7332 |
|
goto ruleextendedCommandEx; |
7333 |
|
} |
7334 |
|
|
7335 |
|
|
7336 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1081:5: ( term[e, e2] )* |
7337 |
|
|
7338 |
|
for (;;) |
7339 |
|
{ |
7340 |
3 |
int alt29=2; |
7341 |
3 |
switch ( LA(1) ) |
7342 |
|
{ |
7343 |
|
case BINARY_LITERAL: |
7344 |
|
case DECIMAL_LITERAL: |
7345 |
|
case HEX_LITERAL: |
7346 |
|
case INTEGER_LITERAL: |
7347 |
|
case LPAREN_TOK: |
7348 |
|
case QUOTED_SYMBOL: |
7349 |
|
case SIMPLE_SYMBOL: |
7350 |
|
case STRING_LITERAL: |
7351 |
|
case TUPLE_CONST_TOK: |
7352 |
|
case UNTERMINATED_QUOTED_SYMBOL: |
7353 |
|
{ |
7354 |
|
alt29=1; |
7355 |
|
} |
7356 |
|
break; |
7357 |
|
|
7358 |
|
} |
7359 |
|
|
7360 |
3 |
switch (alt29) |
7361 |
|
{ |
7362 |
|
case 1: |
7363 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1081:7: term[e, e2] |
7364 |
|
{ |
7365 |
|
FOLLOWPUSH(FOLLOW_term_in_extendedCommand2666); |
7366 |
|
term(ctx, e, e2); |
7367 |
|
|
7368 |
|
FOLLOWPOP(); |
7369 |
|
if (HASEXCEPTION()) |
7370 |
|
{ |
7371 |
|
goto ruleextendedCommandEx; |
7372 |
|
} |
7373 |
|
|
7374 |
|
|
7375 |
|
{ |
7376 |
|
terms.push_back( e ); |
7377 |
|
} |
7378 |
|
|
7379 |
|
|
7380 |
|
} |
7381 |
|
break; |
7382 |
|
|
7383 |
3 |
default: |
7384 |
3 |
goto loop29; /* break out of the loop */ |
7385 |
|
break; |
7386 |
|
} |
7387 |
|
} |
7388 |
3 |
loop29: ; /* Jump out to here if this rule does not match */ |
7389 |
|
|
7390 |
|
|
7391 |
3 |
MATCHT(RPAREN_TOK, &FOLLOW_RPAREN_TOK_in_extendedCommand2684); |
7392 |
3 |
if (HASEXCEPTION()) |
7393 |
|
{ |
7394 |
|
goto ruleextendedCommandEx; |
7395 |
|
} |
7396 |
|
|
7397 |
|
|
7398 |
|
{ |
7399 |
3 |
Debug("parser") << "declare pool: '" << name << "'" << std::endl; |
7400 |
6 |
api::Term pool = SOLVER->declarePool(name, t, terms); |
7401 |
3 |
PARSER_STATE->defineVar(name, pool); |
7402 |
3 |
cmd->reset(new DeclarePoolCommand(name, pool, t, terms)); |
7403 |
|
|
7404 |
3 |
} |
7405 |
|
|
7406 |
|
|
7407 |
|
} |
7408 |
3 |
break; |
7409 |
14 |
case 15: |
7410 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1089:5: BLOCK_MODEL_TOK |
7411 |
|
{ |
7412 |
14 |
MATCHT(BLOCK_MODEL_TOK, &FOLLOW_BLOCK_MODEL_TOK_in_extendedCommand2696); |
7413 |
14 |
if (HASEXCEPTION()) |
7414 |
|
{ |
7415 |
|
goto ruleextendedCommandEx; |
7416 |
|
} |
7417 |
|
|
7418 |
|
|
7419 |
|
{ |
7420 |
14 |
PARSER_STATE->checkThatLogicIsSet(); |
7421 |
|
} |
7422 |
|
|
7423 |
|
|
7424 |
|
{ |
7425 |
14 |
cmd->reset(new BlockModelCommand()); |
7426 |
|
} |
7427 |
|
|
7428 |
|
|
7429 |
|
} |
7430 |
14 |
break; |
7431 |
8 |
case 16: |
7432 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1092:5: BLOCK_MODEL_VALUES_TOK ( LPAREN_TOK termList[terms,e] RPAREN_TOK |~ LPAREN_TOK ) |
7433 |
|
{ |
7434 |
8 |
MATCHT(BLOCK_MODEL_VALUES_TOK, &FOLLOW_BLOCK_MODEL_VALUES_TOK_in_extendedCommand2711); |
7435 |
8 |
if (HASEXCEPTION()) |
7436 |
|
{ |
7437 |
|
goto ruleextendedCommandEx; |
7438 |
|
} |
7439 |
|
|
7440 |
|
|
7441 |
|
{ |
7442 |
8 |
PARSER_STATE->checkThatLogicIsSet(); |
7443 |
|
} |
7444 |
|
|
7445 |
|
|
7446 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1093:5: ( LPAREN_TOK termList[terms,e] RPAREN_TOK |~ LPAREN_TOK ) |
7447 |
|
{ |
7448 |
8 |
int alt30=2; |
7449 |
8 |
switch ( LA(1) ) |
7450 |
|
{ |
7451 |
8 |
case LPAREN_TOK: |
7452 |
|
{ |
7453 |
8 |
alt30=1; |
7454 |
|
} |
7455 |
8 |
break; |
7456 |
|
case ALPHA: |
7457 |
|
case ASSERT_TOK: |
7458 |
|
case AS_TOK: |
7459 |
|
case ATTRIBUTE_INST_ADD_TO_POOL_TOK: |
7460 |
|
case ATTRIBUTE_INST_LEVEL: |
7461 |
|
case ATTRIBUTE_NAMED_TOK: |
7462 |
|
case ATTRIBUTE_NO_PATTERN_TOK: |
7463 |
|
case ATTRIBUTE_PATTERN_TOK: |
7464 |
|
case ATTRIBUTE_POOL_TOK: |
7465 |
|
case ATTRIBUTE_QUANTIFIER_ID_TOK: |
7466 |
|
case ATTRIBUTE_SKOLEM_ADD_TO_POOL_TOK: |
7467 |
|
case ATTRIBUTE_TOK: |
7468 |
|
case BINARY_LITERAL: |
7469 |
|
case BLOCK_MODEL_TOK: |
7470 |
|
case BLOCK_MODEL_VALUES_TOK: |
7471 |
|
case CHAR_TOK: |
7472 |
|
case CHECK_SAT_ASSUMING_TOK: |
7473 |
|
case CHECK_SAT_TOK: |
7474 |
|
case CHECK_SYNTH_TOK: |
7475 |
|
case COMMENT: |
7476 |
|
case COMPREHENSION_TOK: |
7477 |
|
case CONSTRAINT_TOK: |
7478 |
|
case CONST_TOK: |
7479 |
|
case DECIMAL_LITERAL: |
7480 |
|
case DECLARE_CODATATYPES_2_5_TOK: |
7481 |
|
case DECLARE_CODATATYPES_TOK: |
7482 |
|
case DECLARE_CODATATYPE_TOK: |
7483 |
|
case DECLARE_CONST_TOK: |
7484 |
|
case DECLARE_DATATYPES_2_5_TOK: |
7485 |
|
case DECLARE_DATATYPES_TOK: |
7486 |
|
case DECLARE_DATATYPE_TOK: |
7487 |
|
case DECLARE_FUNS_TOK: |
7488 |
|
case DECLARE_FUN_TOK: |
7489 |
|
case DECLARE_HEAP: |
7490 |
|
case DECLARE_POOL: |
7491 |
|
case DECLARE_PREDS_TOK: |
7492 |
|
case DECLARE_SORTS_TOK: |
7493 |
|
case DECLARE_SORT_TOK: |
7494 |
|
case DECLARE_VAR_TOK: |
7495 |
|
case DEFINE_CONST_TOK: |
7496 |
|
case DEFINE_FUNS_REC_TOK: |
7497 |
|
case DEFINE_FUN_REC_TOK: |
7498 |
|
case DEFINE_FUN_TOK: |
7499 |
|
case DEFINE_SORT_TOK: |
7500 |
|
case DEFINE_TOK: |
7501 |
|
case DIGIT: |
7502 |
|
case ECHO_TOK: |
7503 |
|
case EMP_TOK: |
7504 |
|
case EXISTS_TOK: |
7505 |
|
case EXIT_TOK: |
7506 |
|
case FORALL_TOK: |
7507 |
|
case GET_ABDUCT_TOK: |
7508 |
|
case GET_ASSERTIONS_TOK: |
7509 |
|
case GET_ASSIGNMENT_TOK: |
7510 |
|
case GET_INFO_TOK: |
7511 |
|
case GET_INTERPOL_TOK: |
7512 |
|
case GET_MODEL_TOK: |
7513 |
|
case GET_OPTION_TOK: |
7514 |
|
case GET_PROOF_TOK: |
7515 |
|
case GET_QE_DISJUNCT_TOK: |
7516 |
|
case GET_QE_TOK: |
7517 |
|
case GET_UNSAT_ASSUMPTIONS_TOK: |
7518 |
|
case GET_UNSAT_CORE_TOK: |
7519 |
|
case GET_VALUE_TOK: |
7520 |
|
case HEX_DIGIT: |
7521 |
|
case HEX_LITERAL: |
7522 |
|
case HO_ARROW_TOK: |
7523 |
|
case HO_LAMBDA_TOK: |
7524 |
|
case INCLUDE_TOK: |
7525 |
|
case INDEX_TOK: |
7526 |
|
case INTEGER_LITERAL: |
7527 |
|
case INV_CONSTRAINT_TOK: |
7528 |
|
case KEYWORD: |
7529 |
|
case LET_TOK: |
7530 |
|
case MATCH_TOK: |
7531 |
|
case NUMERAL: |
7532 |
|
case PAR_TOK: |
7533 |
|
case POP_TOK: |
7534 |
|
case PUSH_TOK: |
7535 |
|
case QUOTED_SYMBOL: |
7536 |
|
case RESET_ASSERTIONS_TOK: |
7537 |
|
case RESET_TOK: |
7538 |
|
case RPAREN_TOK: |
7539 |
|
case SET_FEATURE_TOK: |
7540 |
|
case SET_INFO_TOK: |
7541 |
|
case SET_LOGIC_TOK: |
7542 |
|
case SET_OPTION_TOK: |
7543 |
|
case SIMPLE_SYMBOL: |
7544 |
|
case SIMPLIFY_TOK: |
7545 |
|
case STRING_LITERAL: |
7546 |
|
case SYGUS_CONSTANT_TOK: |
7547 |
|
case SYGUS_VARIABLE_TOK: |
7548 |
|
case SYMBOL_CHAR: |
7549 |
|
case SYMBOL_CHAR_NOUNDERSCORE_NOATTRIBUTE: |
7550 |
|
case SYNTH_FUN_TOK: |
7551 |
|
case SYNTH_INV_TOK: |
7552 |
|
case TESTER_TOK: |
7553 |
|
case TUPLE_CONST_TOK: |
7554 |
|
case TUPLE_PROJECT_TOK: |
7555 |
|
case TUPLE_SEL_TOK: |
7556 |
|
case UNTERMINATED_QUOTED_SYMBOL: |
7557 |
|
case UPDATE_TOK: |
7558 |
|
case WHITESPACE: |
7559 |
|
case 108: |
7560 |
|
{ |
7561 |
|
alt30=2; |
7562 |
|
} |
7563 |
|
break; |
7564 |
|
|
7565 |
|
default: |
7566 |
|
CONSTRUCTEX(); |
7567 |
|
EXCEPTION->type = ANTLR3_NO_VIABLE_ALT_EXCEPTION; |
7568 |
|
EXCEPTION->message = (void *)""; |
7569 |
|
EXCEPTION->decisionNum = 30; |
7570 |
|
EXCEPTION->state = 0; |
7571 |
|
|
7572 |
|
|
7573 |
|
goto ruleextendedCommandEx; |
7574 |
|
|
7575 |
|
} |
7576 |
|
|
7577 |
8 |
switch (alt30) |
7578 |
|
{ |
7579 |
8 |
case 1: |
7580 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1093:7: LPAREN_TOK termList[terms,e] RPAREN_TOK |
7581 |
|
{ |
7582 |
8 |
MATCHT(LPAREN_TOK, &FOLLOW_LPAREN_TOK_in_extendedCommand2721); |
7583 |
8 |
if (HASEXCEPTION()) |
7584 |
|
{ |
7585 |
|
goto ruleextendedCommandEx; |
7586 |
|
} |
7587 |
|
|
7588 |
|
|
7589 |
8 |
FOLLOWPUSH(FOLLOW_termList_in_extendedCommand2723); |
7590 |
8 |
termList(ctx, terms, e); |
7591 |
|
|
7592 |
8 |
FOLLOWPOP(); |
7593 |
8 |
if (HASEXCEPTION()) |
7594 |
|
{ |
7595 |
|
goto ruleextendedCommandEx; |
7596 |
|
} |
7597 |
|
|
7598 |
|
|
7599 |
8 |
MATCHT(RPAREN_TOK, &FOLLOW_RPAREN_TOK_in_extendedCommand2726); |
7600 |
8 |
if (HASEXCEPTION()) |
7601 |
|
{ |
7602 |
|
goto ruleextendedCommandEx; |
7603 |
|
} |
7604 |
|
|
7605 |
|
|
7606 |
|
{ |
7607 |
8 |
cmd->reset(new BlockModelValuesCommand(terms)); |
7608 |
|
} |
7609 |
|
|
7610 |
|
|
7611 |
|
} |
7612 |
8 |
break; |
7613 |
|
case 2: |
7614 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1095:7: ~ LPAREN_TOK |
7615 |
|
{ |
7616 |
|
if ( ((LA(1) >= ALPHA) && (LA(1) <= LET_TOK)) || ((LA(1) >= MATCH_TOK) && (LA(1) <= 108)) ) |
7617 |
|
{ |
7618 |
|
CONSUME(); |
7619 |
|
PERRORRECOVERY=ANTLR3_FALSE; |
7620 |
|
} |
7621 |
|
else |
7622 |
|
{ |
7623 |
|
CONSTRUCTEX(); |
7624 |
|
EXCEPTION->type = ANTLR3_MISMATCHED_SET_EXCEPTION; |
7625 |
|
EXCEPTION->name = (void *)ANTLR3_MISMATCHED_SET_NAME; |
7626 |
|
EXCEPTION->expectingSet = NULL; |
7627 |
|
|
7628 |
|
goto ruleextendedCommandEx; |
7629 |
|
} |
7630 |
|
|
7631 |
|
|
7632 |
|
{ |
7633 |
|
PARSER_STATE->parseError("The block-model-value command expects a list " |
7634 |
|
"of terms. Perhaps you forgot a pair of " |
7635 |
|
"parentheses?"); |
7636 |
|
|
7637 |
|
} |
7638 |
|
|
7639 |
|
|
7640 |
|
} |
7641 |
|
break; |
7642 |
|
|
7643 |
|
} |
7644 |
|
} |
7645 |
|
|
7646 |
|
} |
7647 |
8 |
break; |
7648 |
|
|
7649 |
|
} |
7650 |
|
} |
7651 |
|
} |
7652 |
|
|
7653 |
|
// This is where rules clean up and exit |
7654 |
|
// |
7655 |
182 |
goto ruleextendedCommandEx; /* Prevent compiler warnings */ |
7656 |
182 |
ruleextendedCommandEx: ; |
7657 |
|
|
7658 |
182 |
if (HASEXCEPTION()) |
7659 |
|
{ |
7660 |
|
PREPORTERROR(); |
7661 |
|
PRECOVER(); |
7662 |
|
} |
7663 |
364 |
return ; |
7664 |
|
} |
7665 |
|
/* $ANTLR end extendedCommand */ |
7666 |
|
|
7667 |
|
/** |
7668 |
|
* $ANTLR start datatypeDefCommand |
7669 |
|
* /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1103:1: datatypeDefCommand[bool isCo, std::unique_ptr<cvc5::Command>* cmd] : symbol[name,CHECK_UNDECLARED,SYM_SORT] datatypesDef[isCo, dnames, arities, cmd] ; |
7670 |
|
*/ |
7671 |
|
static void |
7672 |
146 |
datatypeDefCommand(pSmt2Parser ctx, bool isCo, std::unique_ptr<cvc5::Command>* cmd) |
7673 |
|
{ |
7674 |
|
|
7675 |
292 |
std::vector<api::DatatypeDecl> dts; |
7676 |
292 |
std::string name; |
7677 |
292 |
std::vector<std::string> dnames; |
7678 |
292 |
std::vector<int> arities; |
7679 |
|
|
7680 |
|
/* Initialize rule variables |
7681 |
|
*/ |
7682 |
|
|
7683 |
|
{ |
7684 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1110:2: ( symbol[name,CHECK_UNDECLARED,SYM_SORT] datatypesDef[isCo, dnames, arities, cmd] ) |
7685 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1110:4: symbol[name,CHECK_UNDECLARED,SYM_SORT] datatypesDef[isCo, dnames, arities, cmd] |
7686 |
|
{ |
7687 |
|
{ |
7688 |
146 |
PARSER_STATE->checkThatLogicIsSet(); |
7689 |
|
} |
7690 |
|
|
7691 |
|
|
7692 |
146 |
FOLLOWPUSH(FOLLOW_symbol_in_datatypeDefCommand2778); |
7693 |
146 |
symbol(ctx, name, CHECK_UNDECLARED, SYM_SORT); |
7694 |
|
|
7695 |
146 |
FOLLOWPOP(); |
7696 |
146 |
if (HASEXCEPTION()) |
7697 |
|
{ |
7698 |
|
goto ruledatatypeDefCommandEx; |
7699 |
|
} |
7700 |
|
|
7701 |
|
|
7702 |
|
{ |
7703 |
|
|
7704 |
146 |
dnames.push_back(name); |
7705 |
146 |
arities.push_back(-1); |
7706 |
|
|
7707 |
|
} |
7708 |
|
|
7709 |
|
|
7710 |
146 |
FOLLOWPUSH(FOLLOW_datatypesDef_in_datatypeDefCommand2785); |
7711 |
146 |
datatypesDef(ctx, isCo, dnames, arities, cmd); |
7712 |
|
|
7713 |
146 |
FOLLOWPOP(); |
7714 |
146 |
if (HASEXCEPTION()) |
7715 |
|
{ |
7716 |
|
goto ruledatatypeDefCommandEx; |
7717 |
|
} |
7718 |
|
|
7719 |
|
|
7720 |
|
} |
7721 |
|
|
7722 |
|
} |
7723 |
|
|
7724 |
|
// This is where rules clean up and exit |
7725 |
|
// |
7726 |
146 |
goto ruledatatypeDefCommandEx; /* Prevent compiler warnings */ |
7727 |
146 |
ruledatatypeDefCommandEx: ; |
7728 |
|
|
7729 |
146 |
if (HASEXCEPTION()) |
7730 |
|
{ |
7731 |
|
PREPORTERROR(); |
7732 |
|
PRECOVER(); |
7733 |
|
} |
7734 |
292 |
return ; |
7735 |
|
} |
7736 |
|
/* $ANTLR end datatypeDefCommand */ |
7737 |
|
|
7738 |
|
/** |
7739 |
|
* $ANTLR start datatypesDefCommand |
7740 |
|
* /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1119:1: datatypesDefCommand[bool isCo, std::unique_ptr<cvc5::Command>* cmd] : LPAREN_TOK ( LPAREN_TOK symbol[name,CHECK_UNDECLARED,SYM_SORT] n= INTEGER_LITERAL RPAREN_TOK )* RPAREN_TOK LPAREN_TOK datatypesDef[isCo, dnames, arities, cmd] RPAREN_TOK ; |
7741 |
|
*/ |
7742 |
|
static void |
7743 |
776 |
datatypesDefCommand(pSmt2Parser ctx, bool isCo, std::unique_ptr<cvc5::Command>* cmd) |
7744 |
|
{ |
7745 |
|
|
7746 |
1552 |
std::vector<api::DatatypeDecl> dts; |
7747 |
1552 |
std::string name; |
7748 |
1552 |
std::vector<std::string> dnames; |
7749 |
1552 |
std::vector<int> arities; |
7750 |
|
|
7751 |
|
pANTLR3_COMMON_TOKEN n; |
7752 |
|
|
7753 |
|
/* Initialize rule variables |
7754 |
|
*/ |
7755 |
|
|
7756 |
776 |
n = NULL; |
7757 |
|
|
7758 |
|
{ |
7759 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1126:3: ( LPAREN_TOK ( LPAREN_TOK symbol[name,CHECK_UNDECLARED,SYM_SORT] n= INTEGER_LITERAL RPAREN_TOK )* RPAREN_TOK LPAREN_TOK datatypesDef[isCo, dnames, arities, cmd] RPAREN_TOK ) |
7760 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1126:5: LPAREN_TOK ( LPAREN_TOK symbol[name,CHECK_UNDECLARED,SYM_SORT] n= INTEGER_LITERAL RPAREN_TOK )* RPAREN_TOK LPAREN_TOK datatypesDef[isCo, dnames, arities, cmd] RPAREN_TOK |
7761 |
|
{ |
7762 |
|
{ |
7763 |
776 |
PARSER_STATE->checkThatLogicIsSet(); |
7764 |
|
} |
7765 |
|
|
7766 |
|
|
7767 |
776 |
MATCHT(LPAREN_TOK, &FOLLOW_LPAREN_TOK_in_datatypesDefCommand2808); |
7768 |
776 |
if (HASEXCEPTION()) |
7769 |
|
{ |
7770 |
|
goto ruledatatypesDefCommandEx; |
7771 |
|
} |
7772 |
|
|
7773 |
|
|
7774 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1128:3: ( LPAREN_TOK symbol[name,CHECK_UNDECLARED,SYM_SORT] n= INTEGER_LITERAL RPAREN_TOK )* |
7775 |
|
|
7776 |
|
for (;;) |
7777 |
|
{ |
7778 |
1827 |
int alt32=2; |
7779 |
1827 |
switch ( LA(1) ) |
7780 |
|
{ |
7781 |
1051 |
case LPAREN_TOK: |
7782 |
|
{ |
7783 |
1051 |
alt32=1; |
7784 |
|
} |
7785 |
1051 |
break; |
7786 |
|
|
7787 |
|
} |
7788 |
|
|
7789 |
1827 |
switch (alt32) |
7790 |
|
{ |
7791 |
1051 |
case 1: |
7792 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1128:5: LPAREN_TOK symbol[name,CHECK_UNDECLARED,SYM_SORT] n= INTEGER_LITERAL RPAREN_TOK |
7793 |
|
{ |
7794 |
1051 |
MATCHT(LPAREN_TOK, &FOLLOW_LPAREN_TOK_in_datatypesDefCommand2816); |
7795 |
1051 |
if (HASEXCEPTION()) |
7796 |
|
{ |
7797 |
|
goto ruledatatypesDefCommandEx; |
7798 |
|
} |
7799 |
|
|
7800 |
|
|
7801 |
1051 |
FOLLOWPUSH(FOLLOW_symbol_in_datatypesDefCommand2818); |
7802 |
1051 |
symbol(ctx, name, CHECK_UNDECLARED, SYM_SORT); |
7803 |
|
|
7804 |
1051 |
FOLLOWPOP(); |
7805 |
1051 |
if (HASEXCEPTION()) |
7806 |
|
{ |
7807 |
|
goto ruledatatypesDefCommandEx; |
7808 |
|
} |
7809 |
|
|
7810 |
|
|
7811 |
1051 |
n = (pANTLR3_COMMON_TOKEN) MATCHT(INTEGER_LITERAL, &FOLLOW_INTEGER_LITERAL_in_datatypesDefCommand2823); |
7812 |
1051 |
if (HASEXCEPTION()) |
7813 |
|
{ |
7814 |
|
goto ruledatatypesDefCommandEx; |
7815 |
|
} |
7816 |
|
|
7817 |
|
|
7818 |
1051 |
MATCHT(RPAREN_TOK, &FOLLOW_RPAREN_TOK_in_datatypesDefCommand2825); |
7819 |
1051 |
if (HASEXCEPTION()) |
7820 |
|
{ |
7821 |
|
goto ruledatatypesDefCommandEx; |
7822 |
|
} |
7823 |
|
|
7824 |
|
|
7825 |
|
{ |
7826 |
1051 |
unsigned arity = AntlrInput::tokenToUnsigned(n); |
7827 |
1051 |
Debug("parser-dt") << "Datatype : " << name << ", arity = " << arity << std::endl; |
7828 |
1051 |
dnames.push_back(name); |
7829 |
1051 |
arities.push_back( static_cast<int>(arity) ); |
7830 |
|
|
7831 |
1051 |
} |
7832 |
|
|
7833 |
|
|
7834 |
|
} |
7835 |
1051 |
break; |
7836 |
|
|
7837 |
776 |
default: |
7838 |
776 |
goto loop32; /* break out of the loop */ |
7839 |
|
break; |
7840 |
|
} |
7841 |
1051 |
} |
7842 |
776 |
loop32: ; /* Jump out to here if this rule does not match */ |
7843 |
|
|
7844 |
|
|
7845 |
776 |
MATCHT(RPAREN_TOK, &FOLLOW_RPAREN_TOK_in_datatypesDefCommand2840); |
7846 |
776 |
if (HASEXCEPTION()) |
7847 |
|
{ |
7848 |
|
goto ruledatatypesDefCommandEx; |
7849 |
|
} |
7850 |
|
|
7851 |
|
|
7852 |
776 |
MATCHT(LPAREN_TOK, &FOLLOW_LPAREN_TOK_in_datatypesDefCommand2844); |
7853 |
776 |
if (HASEXCEPTION()) |
7854 |
|
{ |
7855 |
|
goto ruledatatypesDefCommandEx; |
7856 |
|
} |
7857 |
|
|
7858 |
|
|
7859 |
776 |
FOLLOWPUSH(FOLLOW_datatypesDef_in_datatypesDefCommand2848); |
7860 |
776 |
datatypesDef(ctx, isCo, dnames, arities, cmd); |
7861 |
|
|
7862 |
776 |
FOLLOWPOP(); |
7863 |
776 |
if (HASEXCEPTION()) |
7864 |
|
{ |
7865 |
|
goto ruledatatypesDefCommandEx; |
7866 |
|
} |
7867 |
|
|
7868 |
|
|
7869 |
776 |
MATCHT(RPAREN_TOK, &FOLLOW_RPAREN_TOK_in_datatypesDefCommand2853); |
7870 |
776 |
if (HASEXCEPTION()) |
7871 |
|
{ |
7872 |
|
goto ruledatatypesDefCommandEx; |
7873 |
|
} |
7874 |
|
|
7875 |
|
|
7876 |
|
} |
7877 |
|
|
7878 |
|
} |
7879 |
|
|
7880 |
|
// This is where rules clean up and exit |
7881 |
|
// |
7882 |
776 |
goto ruledatatypesDefCommandEx; /* Prevent compiler warnings */ |
7883 |
776 |
ruledatatypesDefCommandEx: ; |
7884 |
|
|
7885 |
776 |
if (HASEXCEPTION()) |
7886 |
|
{ |
7887 |
|
PREPORTERROR(); |
7888 |
|
PRECOVER(); |
7889 |
|
} |
7890 |
1552 |
return ; |
7891 |
|
} |
7892 |
|
/* $ANTLR end datatypesDefCommand */ |
7893 |
|
|
7894 |
|
/** |
7895 |
|
* $ANTLR start datatypesDef |
7896 |
|
* /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1149:1: datatypesDef[bool isCo,\n const std::vector<std::string>& dnames,\n const std::vector<int>& arities,\n std::unique_ptr<cvc5::Command>* cmd] : ( LPAREN_TOK ( PAR_TOK LPAREN_TOK ( symbol[name,CHECK_UNDECLARED,SYM_SORT] )* RPAREN_TOK LPAREN_TOK ( LPAREN_TOK constructorDef[dts.back()] RPAREN_TOK )+ RPAREN_TOK | ( LPAREN_TOK constructorDef[dts.back()] RPAREN_TOK )+ ) RPAREN_TOK )+ ; |
7897 |
|
*/ |
7898 |
|
static void |
7899 |
922 |
datatypesDef(pSmt2Parser ctx, bool isCo, const std::vector<std::string>& dnames, const std::vector<int>& arities, std::unique_ptr<cvc5::Command>* cmd) |
7900 |
|
{ |
7901 |
|
|
7902 |
1844 |
std::vector<api::DatatypeDecl> dts; |
7903 |
1844 |
std::string name; |
7904 |
1844 |
std::vector<api::Sort> params; |
7905 |
|
|
7906 |
|
/* Initialize rule variables |
7907 |
|
*/ |
7908 |
|
|
7909 |
|
{ |
7910 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1158:3: ( ( LPAREN_TOK ( PAR_TOK LPAREN_TOK ( symbol[name,CHECK_UNDECLARED,SYM_SORT] )* RPAREN_TOK LPAREN_TOK ( LPAREN_TOK constructorDef[dts.back()] RPAREN_TOK )+ RPAREN_TOK | ( LPAREN_TOK constructorDef[dts.back()] RPAREN_TOK )+ ) RPAREN_TOK )+ ) |
7911 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1158:5: ( LPAREN_TOK ( PAR_TOK LPAREN_TOK ( symbol[name,CHECK_UNDECLARED,SYM_SORT] )* RPAREN_TOK LPAREN_TOK ( LPAREN_TOK constructorDef[dts.back()] RPAREN_TOK )+ RPAREN_TOK | ( LPAREN_TOK constructorDef[dts.back()] RPAREN_TOK )+ ) RPAREN_TOK )+ |
7912 |
|
{ |
7913 |
|
{ |
7914 |
922 |
PARSER_STATE->pushScope(); |
7915 |
|
// Declare the datatypes that are currently being defined as unresolved |
7916 |
|
// types. If we do not know the arity of the datatype yet, we wait to |
7917 |
|
// define it until parsing the preamble of its body, which may optionally |
7918 |
|
// involve `par`. This is limited to the case of single datatypes defined |
7919 |
|
// via declare-datatype, and hence no datatype body is parsed without |
7920 |
|
// having all types declared. This ensures we can parse datatypes with |
7921 |
|
// nested recursion, e.g. datatypes D having a subfield type |
7922 |
|
// (Array Int D). |
7923 |
2119 |
for (unsigned i=0, dsize=dnames.size(); i<dsize; i++) |
7924 |
|
{ |
7925 |
1197 |
if( arities[i]<0 ) |
7926 |
|
{ |
7927 |
|
// do not know the arity yet |
7928 |
146 |
continue; |
7929 |
|
} |
7930 |
1051 |
unsigned arity = static_cast<unsigned>(arities[i]); |
7931 |
1051 |
PARSER_STATE->mkUnresolvedType(dnames[i], arity); |
7932 |
|
} |
7933 |
|
|
7934 |
|
} |
7935 |
|
|
7936 |
|
|
7937 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1178:5: ( LPAREN_TOK ( PAR_TOK LPAREN_TOK ( symbol[name,CHECK_UNDECLARED,SYM_SORT] )* RPAREN_TOK LPAREN_TOK ( LPAREN_TOK constructorDef[dts.back()] RPAREN_TOK )+ RPAREN_TOK | ( LPAREN_TOK constructorDef[dts.back()] RPAREN_TOK )+ ) RPAREN_TOK )+ |
7938 |
|
{ |
7939 |
922 |
int cnt37=0; |
7940 |
|
|
7941 |
|
for (;;) |
7942 |
|
{ |
7943 |
2119 |
int alt37=2; |
7944 |
2119 |
switch ( LA(1) ) |
7945 |
|
{ |
7946 |
1197 |
case LPAREN_TOK: |
7947 |
|
{ |
7948 |
1197 |
alt37=1; |
7949 |
|
} |
7950 |
1197 |
break; |
7951 |
|
|
7952 |
|
} |
7953 |
|
|
7954 |
2119 |
switch (alt37) |
7955 |
|
{ |
7956 |
1197 |
case 1: |
7957 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1178:7: LPAREN_TOK ( PAR_TOK LPAREN_TOK ( symbol[name,CHECK_UNDECLARED,SYM_SORT] )* RPAREN_TOK LPAREN_TOK ( LPAREN_TOK constructorDef[dts.back()] RPAREN_TOK )+ RPAREN_TOK | ( LPAREN_TOK constructorDef[dts.back()] RPAREN_TOK )+ ) RPAREN_TOK |
7958 |
|
{ |
7959 |
1197 |
MATCHT(LPAREN_TOK, &FOLLOW_LPAREN_TOK_in_datatypesDef2882); |
7960 |
1197 |
if (HASEXCEPTION()) |
7961 |
|
{ |
7962 |
|
goto ruledatatypesDefEx; |
7963 |
|
} |
7964 |
|
|
7965 |
|
|
7966 |
|
{ |
7967 |
|
|
7968 |
1197 |
params.clear(); |
7969 |
1197 |
Debug("parser-dt") << "Processing datatype #" << dts.size() << std::endl; |
7970 |
1197 |
if( dts.size()>=dnames.size() ){ |
7971 |
|
PARSER_STATE->parseError("Too many datatypes defined in this block."); |
7972 |
|
} |
7973 |
|
|
7974 |
|
} |
7975 |
|
|
7976 |
|
|
7977 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1185:5: ( PAR_TOK LPAREN_TOK ( symbol[name,CHECK_UNDECLARED,SYM_SORT] )* RPAREN_TOK LPAREN_TOK ( LPAREN_TOK constructorDef[dts.back()] RPAREN_TOK )+ RPAREN_TOK | ( LPAREN_TOK constructorDef[dts.back()] RPAREN_TOK )+ ) |
7978 |
|
{ |
7979 |
1197 |
int alt36=2; |
7980 |
1197 |
switch ( LA(1) ) |
7981 |
|
{ |
7982 |
42 |
case PAR_TOK: |
7983 |
|
{ |
7984 |
42 |
alt36=1; |
7985 |
|
} |
7986 |
42 |
break; |
7987 |
1155 |
case LPAREN_TOK: |
7988 |
|
{ |
7989 |
1155 |
alt36=2; |
7990 |
|
} |
7991 |
1155 |
break; |
7992 |
|
|
7993 |
|
default: |
7994 |
|
CONSTRUCTEX(); |
7995 |
|
EXCEPTION->type = ANTLR3_NO_VIABLE_ALT_EXCEPTION; |
7996 |
|
EXCEPTION->message = (void *)""; |
7997 |
|
EXCEPTION->decisionNum = 36; |
7998 |
|
EXCEPTION->state = 0; |
7999 |
|
|
8000 |
|
|
8001 |
|
goto ruledatatypesDefEx; |
8002 |
|
|
8003 |
|
} |
8004 |
|
|
8005 |
1197 |
switch (alt36) |
8006 |
|
{ |
8007 |
42 |
case 1: |
8008 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1185:7: PAR_TOK LPAREN_TOK ( symbol[name,CHECK_UNDECLARED,SYM_SORT] )* RPAREN_TOK LPAREN_TOK ( LPAREN_TOK constructorDef[dts.back()] RPAREN_TOK )+ RPAREN_TOK |
8009 |
|
{ |
8010 |
42 |
MATCHT(PAR_TOK, &FOLLOW_PAR_TOK_in_datatypesDef2892); |
8011 |
42 |
if (HASEXCEPTION()) |
8012 |
|
{ |
8013 |
|
goto ruledatatypesDefEx; |
8014 |
|
} |
8015 |
|
|
8016 |
|
|
8017 |
|
{ |
8018 |
42 |
PARSER_STATE->pushScope(); |
8019 |
|
} |
8020 |
|
|
8021 |
|
|
8022 |
42 |
MATCHT(LPAREN_TOK, &FOLLOW_LPAREN_TOK_in_datatypesDef2896); |
8023 |
42 |
if (HASEXCEPTION()) |
8024 |
|
{ |
8025 |
|
goto ruledatatypesDefEx; |
8026 |
|
} |
8027 |
|
|
8028 |
|
|
8029 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1186:7: ( symbol[name,CHECK_UNDECLARED,SYM_SORT] )* |
8030 |
|
|
8031 |
|
for (;;) |
8032 |
|
{ |
8033 |
98 |
int alt33=2; |
8034 |
98 |
switch ( LA(1) ) |
8035 |
|
{ |
8036 |
56 |
case QUOTED_SYMBOL: |
8037 |
|
case SIMPLE_SYMBOL: |
8038 |
|
case UNTERMINATED_QUOTED_SYMBOL: |
8039 |
|
{ |
8040 |
56 |
alt33=1; |
8041 |
|
} |
8042 |
56 |
break; |
8043 |
|
|
8044 |
|
} |
8045 |
|
|
8046 |
98 |
switch (alt33) |
8047 |
|
{ |
8048 |
56 |
case 1: |
8049 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1186:9: symbol[name,CHECK_UNDECLARED,SYM_SORT] |
8050 |
|
{ |
8051 |
56 |
FOLLOWPUSH(FOLLOW_symbol_in_datatypesDef2906); |
8052 |
56 |
symbol(ctx, name, CHECK_UNDECLARED, SYM_SORT); |
8053 |
|
|
8054 |
56 |
FOLLOWPOP(); |
8055 |
56 |
if (HASEXCEPTION()) |
8056 |
|
{ |
8057 |
|
goto ruledatatypesDefEx; |
8058 |
|
} |
8059 |
|
|
8060 |
|
|
8061 |
|
{ |
8062 |
|
|
8063 |
56 |
params.push_back( PARSER_STATE->mkSort(name)); |
8064 |
|
} |
8065 |
|
|
8066 |
|
|
8067 |
|
} |
8068 |
56 |
break; |
8069 |
|
|
8070 |
42 |
default: |
8071 |
42 |
goto loop33; /* break out of the loop */ |
8072 |
|
break; |
8073 |
|
} |
8074 |
56 |
} |
8075 |
42 |
loop33: ; /* Jump out to here if this rule does not match */ |
8076 |
|
|
8077 |
|
|
8078 |
42 |
MATCHT(RPAREN_TOK, &FOLLOW_RPAREN_TOK_in_datatypesDef2934); |
8079 |
42 |
if (HASEXCEPTION()) |
8080 |
|
{ |
8081 |
|
goto ruledatatypesDefEx; |
8082 |
|
} |
8083 |
|
|
8084 |
|
|
8085 |
|
{ |
8086 |
|
|
8087 |
|
// if the arity was fixed by prelude and is not equal to the number of parameters |
8088 |
42 |
if( arities[dts.size()]>=0 && static_cast<int>(params.size())!=arities[dts.size()] ){ |
8089 |
|
PARSER_STATE->parseError("Wrong number of parameters for datatype."); |
8090 |
|
} |
8091 |
42 |
if (arities[dts.size()]<0) |
8092 |
|
{ |
8093 |
|
// now declare it as an unresolved type |
8094 |
10 |
PARSER_STATE->mkUnresolvedType(dnames[dts.size()], params.size()); |
8095 |
|
} |
8096 |
42 |
Debug("parser-dt") << params.size() << " parameters for " << dnames[dts.size()] << std::endl; |
8097 |
42 |
dts.push_back(SOLVER->mkDatatypeDecl(dnames[dts.size()], params, isCo)); |
8098 |
|
|
8099 |
|
} |
8100 |
|
|
8101 |
|
|
8102 |
42 |
MATCHT(LPAREN_TOK, &FOLLOW_LPAREN_TOK_in_datatypesDef2944); |
8103 |
42 |
if (HASEXCEPTION()) |
8104 |
|
{ |
8105 |
|
goto ruledatatypesDefEx; |
8106 |
|
} |
8107 |
|
|
8108 |
|
|
8109 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1204:7: ( LPAREN_TOK constructorDef[dts.back()] RPAREN_TOK )+ |
8110 |
|
{ |
8111 |
42 |
int cnt34=0; |
8112 |
|
|
8113 |
|
for (;;) |
8114 |
|
{ |
8115 |
102 |
int alt34=2; |
8116 |
102 |
switch ( LA(1) ) |
8117 |
|
{ |
8118 |
60 |
case LPAREN_TOK: |
8119 |
|
{ |
8120 |
60 |
alt34=1; |
8121 |
|
} |
8122 |
60 |
break; |
8123 |
|
|
8124 |
|
} |
8125 |
|
|
8126 |
102 |
switch (alt34) |
8127 |
|
{ |
8128 |
60 |
case 1: |
8129 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1204:9: LPAREN_TOK constructorDef[dts.back()] RPAREN_TOK |
8130 |
|
{ |
8131 |
60 |
MATCHT(LPAREN_TOK, &FOLLOW_LPAREN_TOK_in_datatypesDef2954); |
8132 |
60 |
if (HASEXCEPTION()) |
8133 |
|
{ |
8134 |
|
goto ruledatatypesDefEx; |
8135 |
|
} |
8136 |
|
|
8137 |
|
|
8138 |
60 |
FOLLOWPUSH(FOLLOW_constructorDef_in_datatypesDef2956); |
8139 |
60 |
constructorDef(ctx, dts.back()); |
8140 |
|
|
8141 |
60 |
FOLLOWPOP(); |
8142 |
60 |
if (HASEXCEPTION()) |
8143 |
|
{ |
8144 |
|
goto ruledatatypesDefEx; |
8145 |
|
} |
8146 |
|
|
8147 |
|
|
8148 |
60 |
MATCHT(RPAREN_TOK, &FOLLOW_RPAREN_TOK_in_datatypesDef2959); |
8149 |
60 |
if (HASEXCEPTION()) |
8150 |
|
{ |
8151 |
|
goto ruledatatypesDefEx; |
8152 |
|
} |
8153 |
|
|
8154 |
|
|
8155 |
|
} |
8156 |
60 |
break; |
8157 |
|
|
8158 |
42 |
default: |
8159 |
|
|
8160 |
42 |
if ( cnt34 >= 1 ) |
8161 |
|
{ |
8162 |
42 |
goto loop34; |
8163 |
|
} |
8164 |
|
/* mismatchedSetEx() |
8165 |
|
*/ |
8166 |
|
CONSTRUCTEX(); |
8167 |
|
EXCEPTION->type = ANTLR3_EARLY_EXIT_EXCEPTION; |
8168 |
|
EXCEPTION->name = (void *)ANTLR3_EARLY_EXIT_NAME; |
8169 |
|
|
8170 |
|
|
8171 |
|
goto ruledatatypesDefEx; |
8172 |
|
} |
8173 |
60 |
cnt34++; |
8174 |
60 |
} |
8175 |
42 |
loop34: ; /* Jump to here if this rule does not match */ |
8176 |
|
} |
8177 |
|
|
8178 |
42 |
MATCHT(RPAREN_TOK, &FOLLOW_RPAREN_TOK_in_datatypesDef2970); |
8179 |
42 |
if (HASEXCEPTION()) |
8180 |
|
{ |
8181 |
|
goto ruledatatypesDefEx; |
8182 |
|
} |
8183 |
|
|
8184 |
|
|
8185 |
|
{ |
8186 |
42 |
PARSER_STATE->popScope(); |
8187 |
|
} |
8188 |
|
|
8189 |
|
|
8190 |
|
} |
8191 |
42 |
break; |
8192 |
1155 |
case 2: |
8193 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1206:7: ( LPAREN_TOK constructorDef[dts.back()] RPAREN_TOK )+ |
8194 |
|
{ |
8195 |
|
{ |
8196 |
|
// if the arity was fixed by prelude and is not equal to 0 |
8197 |
1155 |
if( arities[dts.size()]>0 ){ |
8198 |
|
PARSER_STATE->parseError("No parameters given for datatype."); |
8199 |
|
} |
8200 |
1155 |
else if (arities[dts.size()]<0) |
8201 |
|
{ |
8202 |
|
// now declare it as an unresolved type |
8203 |
136 |
PARSER_STATE->mkUnresolvedType(dnames[dts.size()], 0); |
8204 |
|
} |
8205 |
1155 |
Debug("parser-dt") << params.size() << " parameters for " << dnames[dts.size()] << std::endl; |
8206 |
1155 |
dts.push_back(SOLVER->mkDatatypeDecl(dnames[dts.size()], |
8207 |
|
params, |
8208 |
|
isCo)); |
8209 |
|
|
8210 |
|
} |
8211 |
|
|
8212 |
|
|
8213 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1220:7: ( LPAREN_TOK constructorDef[dts.back()] RPAREN_TOK )+ |
8214 |
|
{ |
8215 |
1155 |
int cnt35=0; |
8216 |
|
|
8217 |
|
for (;;) |
8218 |
|
{ |
8219 |
3288 |
int alt35=2; |
8220 |
3288 |
switch ( LA(1) ) |
8221 |
|
{ |
8222 |
2133 |
case LPAREN_TOK: |
8223 |
|
{ |
8224 |
2133 |
alt35=1; |
8225 |
|
} |
8226 |
2133 |
break; |
8227 |
|
|
8228 |
|
} |
8229 |
|
|
8230 |
3288 |
switch (alt35) |
8231 |
|
{ |
8232 |
2133 |
case 1: |
8233 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1220:9: LPAREN_TOK constructorDef[dts.back()] RPAREN_TOK |
8234 |
|
{ |
8235 |
2133 |
MATCHT(LPAREN_TOK, &FOLLOW_LPAREN_TOK_in_datatypesDef2990); |
8236 |
2133 |
if (HASEXCEPTION()) |
8237 |
|
{ |
8238 |
|
goto ruledatatypesDefEx; |
8239 |
|
} |
8240 |
|
|
8241 |
|
|
8242 |
2133 |
FOLLOWPUSH(FOLLOW_constructorDef_in_datatypesDef2992); |
8243 |
2133 |
constructorDef(ctx, dts.back()); |
8244 |
|
|
8245 |
2133 |
FOLLOWPOP(); |
8246 |
2133 |
if (HASEXCEPTION()) |
8247 |
|
{ |
8248 |
|
goto ruledatatypesDefEx; |
8249 |
|
} |
8250 |
|
|
8251 |
|
|
8252 |
2133 |
MATCHT(RPAREN_TOK, &FOLLOW_RPAREN_TOK_in_datatypesDef2995); |
8253 |
2133 |
if (HASEXCEPTION()) |
8254 |
|
{ |
8255 |
|
goto ruledatatypesDefEx; |
8256 |
|
} |
8257 |
|
|
8258 |
|
|
8259 |
|
} |
8260 |
2133 |
break; |
8261 |
|
|
8262 |
1155 |
default: |
8263 |
|
|
8264 |
1155 |
if ( cnt35 >= 1 ) |
8265 |
|
{ |
8266 |
1155 |
goto loop35; |
8267 |
|
} |
8268 |
|
/* mismatchedSetEx() |
8269 |
|
*/ |
8270 |
|
CONSTRUCTEX(); |
8271 |
|
EXCEPTION->type = ANTLR3_EARLY_EXIT_EXCEPTION; |
8272 |
|
EXCEPTION->name = (void *)ANTLR3_EARLY_EXIT_NAME; |
8273 |
|
|
8274 |
|
|
8275 |
|
goto ruledatatypesDefEx; |
8276 |
|
} |
8277 |
2133 |
cnt35++; |
8278 |
2133 |
} |
8279 |
1155 |
loop35: ; /* Jump to here if this rule does not match */ |
8280 |
|
} |
8281 |
|
|
8282 |
|
} |
8283 |
1155 |
break; |
8284 |
|
|
8285 |
|
} |
8286 |
|
} |
8287 |
|
|
8288 |
1197 |
MATCHT(RPAREN_TOK, &FOLLOW_RPAREN_TOK_in_datatypesDef3010); |
8289 |
1197 |
if (HASEXCEPTION()) |
8290 |
|
{ |
8291 |
|
goto ruledatatypesDefEx; |
8292 |
1197 |
} |
8293 |
|
|
8294 |
|
|
8295 |
|
} |
8296 |
1197 |
break; |
8297 |
|
|
8298 |
922 |
default: |
8299 |
|
|
8300 |
922 |
if ( cnt37 >= 1 ) |
8301 |
|
{ |
8302 |
922 |
goto loop37; |
8303 |
|
} |
8304 |
|
/* mismatchedSetEx() |
8305 |
|
*/ |
8306 |
|
CONSTRUCTEX(); |
8307 |
|
EXCEPTION->type = ANTLR3_EARLY_EXIT_EXCEPTION; |
8308 |
|
EXCEPTION->name = (void *)ANTLR3_EARLY_EXIT_NAME; |
8309 |
|
|
8310 |
|
|
8311 |
|
goto ruledatatypesDefEx; |
8312 |
|
} |
8313 |
1197 |
cnt37++; |
8314 |
1197 |
} |
8315 |
922 |
loop37: ; /* Jump to here if this rule does not match */ |
8316 |
|
} |
8317 |
|
|
8318 |
|
{ |
8319 |
|
|
8320 |
922 |
if (dts.size() != dnames.size()) |
8321 |
|
{ |
8322 |
|
PARSER_STATE->parseError("Wrong number of datatypes provided."); |
8323 |
|
} |
8324 |
922 |
PARSER_STATE->popScope(); |
8325 |
1844 |
cmd->reset(new DatatypeDeclarationCommand( |
8326 |
2766 |
PARSER_STATE->bindMutualDatatypeTypes(dts, true))); |
8327 |
|
|
8328 |
|
} |
8329 |
|
|
8330 |
|
|
8331 |
|
} |
8332 |
|
|
8333 |
|
} |
8334 |
|
|
8335 |
|
// This is where rules clean up and exit |
8336 |
|
// |
8337 |
922 |
goto ruledatatypesDefEx; /* Prevent compiler warnings */ |
8338 |
922 |
ruledatatypesDefEx: ; |
8339 |
|
|
8340 |
922 |
if (HASEXCEPTION()) |
8341 |
|
{ |
8342 |
|
PREPORTERROR(); |
8343 |
|
PRECOVER(); |
8344 |
|
} |
8345 |
1844 |
return ; |
8346 |
|
} |
8347 |
|
/* $ANTLR end datatypesDef */ |
8348 |
|
|
8349 |
|
/** |
8350 |
|
* $ANTLR start simpleSymbolicExprNoKeyword |
8351 |
|
* /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1235:1: simpleSymbolicExprNoKeyword[std::string& s] : ( INTEGER_LITERAL | DECIMAL_LITERAL | HEX_LITERAL | BINARY_LITERAL | str[s,false] | symbol[s,CHECK_NONE,SYM_SORT] |tok= ( ASSERT_TOK | CHECK_SAT_TOK | CHECK_SAT_ASSUMING_TOK | DECLARE_FUN_TOK | DECLARE_SORT_TOK | DEFINE_FUN_TOK | DEFINE_FUN_REC_TOK | DEFINE_FUNS_REC_TOK | DEFINE_SORT_TOK | GET_VALUE_TOK | GET_ASSIGNMENT_TOK | GET_ASSERTIONS_TOK | GET_PROOF_TOK | GET_UNSAT_ASSUMPTIONS_TOK | GET_UNSAT_CORE_TOK | EXIT_TOK | RESET_TOK | RESET_ASSERTIONS_TOK | SET_LOGIC_TOK | SET_INFO_TOK | GET_INFO_TOK | SET_OPTION_TOK | GET_OPTION_TOK | PUSH_TOK | POP_TOK | DECLARE_DATATYPES_TOK | GET_MODEL_TOK | ECHO_TOK | SIMPLIFY_TOK ) ); |
8352 |
|
*/ |
8353 |
|
static void |
8354 |
12532 |
simpleSymbolicExprNoKeyword(pSmt2Parser ctx, std::string& s) |
8355 |
|
{ |
8356 |
|
pANTLR3_COMMON_TOKEN tok; |
8357 |
|
pANTLR3_COMMON_TOKEN INTEGER_LITERAL5; |
8358 |
|
pANTLR3_COMMON_TOKEN DECIMAL_LITERAL6; |
8359 |
|
pANTLR3_COMMON_TOKEN HEX_LITERAL7; |
8360 |
|
pANTLR3_COMMON_TOKEN BINARY_LITERAL8; |
8361 |
|
|
8362 |
|
/* Initialize rule variables |
8363 |
|
*/ |
8364 |
|
|
8365 |
12532 |
tok = NULL; |
8366 |
12532 |
INTEGER_LITERAL5 = NULL; |
8367 |
12532 |
DECIMAL_LITERAL6 = NULL; |
8368 |
12532 |
HEX_LITERAL7 = NULL; |
8369 |
12532 |
BINARY_LITERAL8 = NULL; |
8370 |
|
|
8371 |
|
{ |
8372 |
|
{ |
8373 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1236:3: ( INTEGER_LITERAL | DECIMAL_LITERAL | HEX_LITERAL | BINARY_LITERAL | str[s,false] | symbol[s,CHECK_NONE,SYM_SORT] |tok= ( ASSERT_TOK | CHECK_SAT_TOK | CHECK_SAT_ASSUMING_TOK | DECLARE_FUN_TOK | DECLARE_SORT_TOK | DEFINE_FUN_TOK | DEFINE_FUN_REC_TOK | DEFINE_FUNS_REC_TOK | DEFINE_SORT_TOK | GET_VALUE_TOK | GET_ASSIGNMENT_TOK | GET_ASSERTIONS_TOK | GET_PROOF_TOK | GET_UNSAT_ASSUMPTIONS_TOK | GET_UNSAT_CORE_TOK | EXIT_TOK | RESET_TOK | RESET_ASSERTIONS_TOK | SET_LOGIC_TOK | SET_INFO_TOK | GET_INFO_TOK | SET_OPTION_TOK | GET_OPTION_TOK | PUSH_TOK | POP_TOK | DECLARE_DATATYPES_TOK | GET_MODEL_TOK | ECHO_TOK | SIMPLIFY_TOK ) ) |
8374 |
|
|
8375 |
|
ANTLR3_UINT32 alt38; |
8376 |
|
|
8377 |
12532 |
alt38=7; |
8378 |
|
|
8379 |
12532 |
switch ( LA(1) ) |
8380 |
|
{ |
8381 |
29 |
case INTEGER_LITERAL: |
8382 |
|
{ |
8383 |
29 |
alt38=1; |
8384 |
|
} |
8385 |
29 |
break; |
8386 |
691 |
case DECIMAL_LITERAL: |
8387 |
|
{ |
8388 |
691 |
alt38=2; |
8389 |
|
} |
8390 |
691 |
break; |
8391 |
|
case HEX_LITERAL: |
8392 |
|
{ |
8393 |
|
alt38=3; |
8394 |
|
} |
8395 |
|
break; |
8396 |
|
case BINARY_LITERAL: |
8397 |
|
{ |
8398 |
|
alt38=4; |
8399 |
|
} |
8400 |
|
break; |
8401 |
1016 |
case STRING_LITERAL: |
8402 |
|
{ |
8403 |
1016 |
alt38=5; |
8404 |
|
} |
8405 |
1016 |
break; |
8406 |
10794 |
case QUOTED_SYMBOL: |
8407 |
|
case SIMPLE_SYMBOL: |
8408 |
|
case UNTERMINATED_QUOTED_SYMBOL: |
8409 |
|
{ |
8410 |
10794 |
alt38=6; |
8411 |
|
} |
8412 |
10794 |
break; |
8413 |
2 |
case ASSERT_TOK: |
8414 |
|
case CHECK_SAT_ASSUMING_TOK: |
8415 |
|
case CHECK_SAT_TOK: |
8416 |
|
case DECLARE_DATATYPES_TOK: |
8417 |
|
case DECLARE_FUN_TOK: |
8418 |
|
case DECLARE_SORT_TOK: |
8419 |
|
case DEFINE_FUNS_REC_TOK: |
8420 |
|
case DEFINE_FUN_REC_TOK: |
8421 |
|
case DEFINE_FUN_TOK: |
8422 |
|
case DEFINE_SORT_TOK: |
8423 |
|
case ECHO_TOK: |
8424 |
|
case EXIT_TOK: |
8425 |
|
case GET_ASSERTIONS_TOK: |
8426 |
|
case GET_ASSIGNMENT_TOK: |
8427 |
|
case GET_INFO_TOK: |
8428 |
|
case GET_MODEL_TOK: |
8429 |
|
case GET_OPTION_TOK: |
8430 |
|
case GET_PROOF_TOK: |
8431 |
|
case GET_UNSAT_ASSUMPTIONS_TOK: |
8432 |
|
case GET_UNSAT_CORE_TOK: |
8433 |
|
case GET_VALUE_TOK: |
8434 |
|
case POP_TOK: |
8435 |
|
case PUSH_TOK: |
8436 |
|
case RESET_ASSERTIONS_TOK: |
8437 |
|
case RESET_TOK: |
8438 |
|
case SET_INFO_TOK: |
8439 |
|
case SET_LOGIC_TOK: |
8440 |
|
case SET_OPTION_TOK: |
8441 |
|
case SIMPLIFY_TOK: |
8442 |
|
{ |
8443 |
2 |
alt38=7; |
8444 |
|
} |
8445 |
2 |
break; |
8446 |
|
|
8447 |
|
default: |
8448 |
|
CONSTRUCTEX(); |
8449 |
|
EXCEPTION->type = ANTLR3_NO_VIABLE_ALT_EXCEPTION; |
8450 |
|
EXCEPTION->message = (void *)""; |
8451 |
|
EXCEPTION->decisionNum = 38; |
8452 |
|
EXCEPTION->state = 0; |
8453 |
|
|
8454 |
|
|
8455 |
|
goto rulesimpleSymbolicExprNoKeywordEx; |
8456 |
|
|
8457 |
|
} |
8458 |
|
|
8459 |
12532 |
switch (alt38) |
8460 |
|
{ |
8461 |
29 |
case 1: |
8462 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1236:5: INTEGER_LITERAL |
8463 |
|
{ |
8464 |
29 |
INTEGER_LITERAL5 = (pANTLR3_COMMON_TOKEN) MATCHT(INTEGER_LITERAL, &FOLLOW_INTEGER_LITERAL_in_simpleSymbolicExprNoKeyword3035); |
8465 |
29 |
if (HASEXCEPTION()) |
8466 |
|
{ |
8467 |
|
goto rulesimpleSymbolicExprNoKeywordEx; |
8468 |
|
} |
8469 |
|
|
8470 |
|
|
8471 |
|
{ |
8472 |
29 |
s = AntlrInput::tokenText(INTEGER_LITERAL5); |
8473 |
|
} |
8474 |
|
|
8475 |
|
|
8476 |
|
} |
8477 |
29 |
break; |
8478 |
691 |
case 2: |
8479 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1238:5: DECIMAL_LITERAL |
8480 |
|
{ |
8481 |
691 |
DECIMAL_LITERAL6 = (pANTLR3_COMMON_TOKEN) MATCHT(DECIMAL_LITERAL, &FOLLOW_DECIMAL_LITERAL_in_simpleSymbolicExprNoKeyword3047); |
8482 |
691 |
if (HASEXCEPTION()) |
8483 |
|
{ |
8484 |
|
goto rulesimpleSymbolicExprNoKeywordEx; |
8485 |
|
} |
8486 |
|
|
8487 |
|
|
8488 |
|
{ |
8489 |
691 |
s = AntlrInput::tokenText(DECIMAL_LITERAL6); |
8490 |
|
} |
8491 |
|
|
8492 |
|
|
8493 |
|
} |
8494 |
691 |
break; |
8495 |
|
case 3: |
8496 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1240:5: HEX_LITERAL |
8497 |
|
{ |
8498 |
|
HEX_LITERAL7 = (pANTLR3_COMMON_TOKEN) MATCHT(HEX_LITERAL, &FOLLOW_HEX_LITERAL_in_simpleSymbolicExprNoKeyword3059); |
8499 |
|
if (HASEXCEPTION()) |
8500 |
|
{ |
8501 |
|
goto rulesimpleSymbolicExprNoKeywordEx; |
8502 |
|
} |
8503 |
|
|
8504 |
|
|
8505 |
|
{ |
8506 |
|
s = AntlrInput::tokenText(HEX_LITERAL7); |
8507 |
|
} |
8508 |
|
|
8509 |
|
|
8510 |
|
} |
8511 |
|
break; |
8512 |
|
case 4: |
8513 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1242:5: BINARY_LITERAL |
8514 |
|
{ |
8515 |
|
BINARY_LITERAL8 = (pANTLR3_COMMON_TOKEN) MATCHT(BINARY_LITERAL, &FOLLOW_BINARY_LITERAL_in_simpleSymbolicExprNoKeyword3071); |
8516 |
|
if (HASEXCEPTION()) |
8517 |
|
{ |
8518 |
|
goto rulesimpleSymbolicExprNoKeywordEx; |
8519 |
|
} |
8520 |
|
|
8521 |
|
|
8522 |
|
{ |
8523 |
|
s = AntlrInput::tokenText(BINARY_LITERAL8); |
8524 |
|
} |
8525 |
|
|
8526 |
|
|
8527 |
|
} |
8528 |
|
break; |
8529 |
1016 |
case 5: |
8530 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1244:5: str[s,false] |
8531 |
|
{ |
8532 |
1016 |
FOLLOWPUSH(FOLLOW_str_in_simpleSymbolicExprNoKeyword3083); |
8533 |
1016 |
str(ctx, s, false); |
8534 |
|
|
8535 |
1016 |
FOLLOWPOP(); |
8536 |
1016 |
if (HASEXCEPTION()) |
8537 |
|
{ |
8538 |
|
goto rulesimpleSymbolicExprNoKeywordEx; |
8539 |
|
} |
8540 |
|
|
8541 |
|
|
8542 |
|
} |
8543 |
1016 |
break; |
8544 |
10794 |
case 6: |
8545 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1245:5: symbol[s,CHECK_NONE,SYM_SORT] |
8546 |
|
{ |
8547 |
10794 |
FOLLOWPUSH(FOLLOW_symbol_in_simpleSymbolicExprNoKeyword3090); |
8548 |
10794 |
symbol(ctx, s, CHECK_NONE, SYM_SORT); |
8549 |
|
|
8550 |
10794 |
FOLLOWPOP(); |
8551 |
10794 |
if (HASEXCEPTION()) |
8552 |
|
{ |
8553 |
|
goto rulesimpleSymbolicExprNoKeywordEx; |
8554 |
|
} |
8555 |
|
|
8556 |
|
|
8557 |
|
} |
8558 |
10794 |
break; |
8559 |
2 |
case 7: |
8560 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1246:5: tok= ( ASSERT_TOK | CHECK_SAT_TOK | CHECK_SAT_ASSUMING_TOK | DECLARE_FUN_TOK | DECLARE_SORT_TOK | DEFINE_FUN_TOK | DEFINE_FUN_REC_TOK | DEFINE_FUNS_REC_TOK | DEFINE_SORT_TOK | GET_VALUE_TOK | GET_ASSIGNMENT_TOK | GET_ASSERTIONS_TOK | GET_PROOF_TOK | GET_UNSAT_ASSUMPTIONS_TOK | GET_UNSAT_CORE_TOK | EXIT_TOK | RESET_TOK | RESET_ASSERTIONS_TOK | SET_LOGIC_TOK | SET_INFO_TOK | GET_INFO_TOK | SET_OPTION_TOK | GET_OPTION_TOK | PUSH_TOK | POP_TOK | DECLARE_DATATYPES_TOK | GET_MODEL_TOK | ECHO_TOK | SIMPLIFY_TOK ) |
8561 |
|
{ |
8562 |
2 |
tok=(pANTLR3_COMMON_TOKEN)LT(1); |
8563 |
|
|
8564 |
2 |
if ( LA(1) == ASSERT_TOK || ((LA(1) >= CHECK_SAT_ASSUMING_TOK) && (LA(1) <= CHECK_SAT_TOK)) || LA(1) == DECLARE_DATATYPES_TOK || LA(1) == DECLARE_FUN_TOK || LA(1) == DECLARE_SORT_TOK || ((LA(1) >= DEFINE_FUNS_REC_TOK) && (LA(1) <= DEFINE_SORT_TOK)) || LA(1) == ECHO_TOK || LA(1) == EXIT_TOK || ((LA(1) >= GET_ASSERTIONS_TOK) && (LA(1) <= GET_INFO_TOK)) || ((LA(1) >= GET_MODEL_TOK) && (LA(1) <= GET_PROOF_TOK)) || ((LA(1) >= GET_UNSAT_ASSUMPTIONS_TOK) && (LA(1) <= GET_VALUE_TOK)) || ((LA(1) >= POP_TOK) && (LA(1) <= PUSH_TOK)) || ((LA(1) >= RESET_ASSERTIONS_TOK) && (LA(1) <= RESET_TOK)) || ((LA(1) >= SET_INFO_TOK) && (LA(1) <= SET_OPTION_TOK)) || LA(1) == SIMPLIFY_TOK ) |
8565 |
|
{ |
8566 |
2 |
CONSUME(); |
8567 |
2 |
PERRORRECOVERY=ANTLR3_FALSE; |
8568 |
|
} |
8569 |
|
else |
8570 |
|
{ |
8571 |
|
CONSTRUCTEX(); |
8572 |
|
EXCEPTION->type = ANTLR3_MISMATCHED_SET_EXCEPTION; |
8573 |
|
EXCEPTION->name = (void *)ANTLR3_MISMATCHED_SET_NAME; |
8574 |
|
EXCEPTION->expectingSet = NULL; |
8575 |
|
|
8576 |
|
goto rulesimpleSymbolicExprNoKeywordEx; |
8577 |
|
} |
8578 |
|
|
8579 |
|
|
8580 |
|
{ |
8581 |
2 |
s = AntlrInput::tokenText(tok); |
8582 |
|
} |
8583 |
|
|
8584 |
|
|
8585 |
|
} |
8586 |
2 |
break; |
8587 |
|
|
8588 |
|
} |
8589 |
|
} |
8590 |
|
} |
8591 |
|
|
8592 |
|
// This is where rules clean up and exit |
8593 |
|
// |
8594 |
12532 |
goto rulesimpleSymbolicExprNoKeywordEx; /* Prevent compiler warnings */ |
8595 |
12532 |
rulesimpleSymbolicExprNoKeywordEx: ; |
8596 |
|
|
8597 |
12532 |
if (HASEXCEPTION()) |
8598 |
|
{ |
8599 |
|
PREPORTERROR(); |
8600 |
|
PRECOVER(); |
8601 |
|
} |
8602 |
12532 |
return ; |
8603 |
|
} |
8604 |
|
/* $ANTLR end simpleSymbolicExprNoKeyword */ |
8605 |
|
|
8606 |
|
/** |
8607 |
|
* $ANTLR start keyword |
8608 |
|
* /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1258:1: keyword[std::string& s] : KEYWORD ; |
8609 |
|
*/ |
8610 |
|
static void |
8611 |
1814 |
keyword(pSmt2Parser ctx, std::string& s) |
8612 |
|
{ |
8613 |
|
pANTLR3_COMMON_TOKEN KEYWORD9; |
8614 |
|
|
8615 |
|
/* Initialize rule variables |
8616 |
|
*/ |
8617 |
|
|
8618 |
1814 |
KEYWORD9 = NULL; |
8619 |
|
|
8620 |
|
{ |
8621 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1259:3: ( KEYWORD ) |
8622 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1259:5: KEYWORD |
8623 |
|
{ |
8624 |
1814 |
KEYWORD9 = (pANTLR3_COMMON_TOKEN) MATCHT(KEYWORD, &FOLLOW_KEYWORD_in_keyword3297); |
8625 |
1814 |
if (HASEXCEPTION()) |
8626 |
|
{ |
8627 |
|
goto rulekeywordEx; |
8628 |
|
} |
8629 |
|
|
8630 |
|
|
8631 |
|
{ |
8632 |
1814 |
s = AntlrInput::tokenText(KEYWORD9); |
8633 |
|
} |
8634 |
|
|
8635 |
|
|
8636 |
|
} |
8637 |
|
|
8638 |
|
} |
8639 |
|
|
8640 |
|
// This is where rules clean up and exit |
8641 |
|
// |
8642 |
1814 |
goto rulekeywordEx; /* Prevent compiler warnings */ |
8643 |
1814 |
rulekeywordEx: ; |
8644 |
|
|
8645 |
1814 |
if (HASEXCEPTION()) |
8646 |
|
{ |
8647 |
|
PREPORTERROR(); |
8648 |
|
PRECOVER(); |
8649 |
|
} |
8650 |
1814 |
return ; |
8651 |
|
} |
8652 |
|
/* $ANTLR end keyword */ |
8653 |
|
|
8654 |
|
/** |
8655 |
|
* $ANTLR start simpleSymbolicExpr |
8656 |
|
* /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1263:1: simpleSymbolicExpr[std::string& s] : ( simpleSymbolicExprNoKeyword[s] | KEYWORD ); |
8657 |
|
*/ |
8658 |
|
static void |
8659 |
12377 |
simpleSymbolicExpr(pSmt2Parser ctx, std::string& s) |
8660 |
|
{ |
8661 |
|
pANTLR3_COMMON_TOKEN KEYWORD10; |
8662 |
|
|
8663 |
|
/* Initialize rule variables |
8664 |
|
*/ |
8665 |
|
|
8666 |
12377 |
KEYWORD10 = NULL; |
8667 |
|
|
8668 |
|
{ |
8669 |
|
{ |
8670 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1264:3: ( simpleSymbolicExprNoKeyword[s] | KEYWORD ) |
8671 |
|
|
8672 |
|
ANTLR3_UINT32 alt39; |
8673 |
|
|
8674 |
12377 |
alt39=2; |
8675 |
|
|
8676 |
12377 |
switch ( LA(1) ) |
8677 |
|
{ |
8678 |
12371 |
case ASSERT_TOK: |
8679 |
|
case BINARY_LITERAL: |
8680 |
|
case CHECK_SAT_ASSUMING_TOK: |
8681 |
|
case CHECK_SAT_TOK: |
8682 |
|
case DECIMAL_LITERAL: |
8683 |
|
case DECLARE_DATATYPES_TOK: |
8684 |
|
case DECLARE_FUN_TOK: |
8685 |
|
case DECLARE_SORT_TOK: |
8686 |
|
case DEFINE_FUNS_REC_TOK: |
8687 |
|
case DEFINE_FUN_REC_TOK: |
8688 |
|
case DEFINE_FUN_TOK: |
8689 |
|
case DEFINE_SORT_TOK: |
8690 |
|
case ECHO_TOK: |
8691 |
|
case EXIT_TOK: |
8692 |
|
case GET_ASSERTIONS_TOK: |
8693 |
|
case GET_ASSIGNMENT_TOK: |
8694 |
|
case GET_INFO_TOK: |
8695 |
|
case GET_MODEL_TOK: |
8696 |
|
case GET_OPTION_TOK: |
8697 |
|
case GET_PROOF_TOK: |
8698 |
|
case GET_UNSAT_ASSUMPTIONS_TOK: |
8699 |
|
case GET_UNSAT_CORE_TOK: |
8700 |
|
case GET_VALUE_TOK: |
8701 |
|
case HEX_LITERAL: |
8702 |
|
case INTEGER_LITERAL: |
8703 |
|
case POP_TOK: |
8704 |
|
case PUSH_TOK: |
8705 |
|
case QUOTED_SYMBOL: |
8706 |
|
case RESET_ASSERTIONS_TOK: |
8707 |
|
case RESET_TOK: |
8708 |
|
case SET_INFO_TOK: |
8709 |
|
case SET_LOGIC_TOK: |
8710 |
|
case SET_OPTION_TOK: |
8711 |
|
case SIMPLE_SYMBOL: |
8712 |
|
case SIMPLIFY_TOK: |
8713 |
|
case STRING_LITERAL: |
8714 |
|
case UNTERMINATED_QUOTED_SYMBOL: |
8715 |
|
{ |
8716 |
12371 |
alt39=1; |
8717 |
|
} |
8718 |
12371 |
break; |
8719 |
6 |
case KEYWORD: |
8720 |
|
{ |
8721 |
6 |
alt39=2; |
8722 |
|
} |
8723 |
6 |
break; |
8724 |
|
|
8725 |
|
default: |
8726 |
|
CONSTRUCTEX(); |
8727 |
|
EXCEPTION->type = ANTLR3_NO_VIABLE_ALT_EXCEPTION; |
8728 |
|
EXCEPTION->message = (void *)""; |
8729 |
|
EXCEPTION->decisionNum = 39; |
8730 |
|
EXCEPTION->state = 0; |
8731 |
|
|
8732 |
|
|
8733 |
|
goto rulesimpleSymbolicExprEx; |
8734 |
|
|
8735 |
|
} |
8736 |
|
|
8737 |
12377 |
switch (alt39) |
8738 |
|
{ |
8739 |
12371 |
case 1: |
8740 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1264:5: simpleSymbolicExprNoKeyword[s] |
8741 |
|
{ |
8742 |
12371 |
FOLLOWPUSH(FOLLOW_simpleSymbolicExprNoKeyword_in_simpleSymbolicExpr3317); |
8743 |
12371 |
simpleSymbolicExprNoKeyword(ctx, s); |
8744 |
|
|
8745 |
12371 |
FOLLOWPOP(); |
8746 |
12371 |
if (HASEXCEPTION()) |
8747 |
|
{ |
8748 |
|
goto rulesimpleSymbolicExprEx; |
8749 |
|
} |
8750 |
|
|
8751 |
|
|
8752 |
|
} |
8753 |
12371 |
break; |
8754 |
6 |
case 2: |
8755 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1265:5: KEYWORD |
8756 |
|
{ |
8757 |
6 |
KEYWORD10 = (pANTLR3_COMMON_TOKEN) MATCHT(KEYWORD, &FOLLOW_KEYWORD_in_simpleSymbolicExpr3324); |
8758 |
6 |
if (HASEXCEPTION()) |
8759 |
|
{ |
8760 |
|
goto rulesimpleSymbolicExprEx; |
8761 |
|
} |
8762 |
|
|
8763 |
|
|
8764 |
|
{ |
8765 |
6 |
s = AntlrInput::tokenText(KEYWORD10); |
8766 |
|
} |
8767 |
|
|
8768 |
|
|
8769 |
|
} |
8770 |
6 |
break; |
8771 |
|
|
8772 |
|
} |
8773 |
|
} |
8774 |
|
} |
8775 |
|
|
8776 |
|
// This is where rules clean up and exit |
8777 |
|
// |
8778 |
12377 |
goto rulesimpleSymbolicExprEx; /* Prevent compiler warnings */ |
8779 |
12377 |
rulesimpleSymbolicExprEx: ; |
8780 |
|
|
8781 |
12377 |
if (HASEXCEPTION()) |
8782 |
|
{ |
8783 |
|
PREPORTERROR(); |
8784 |
|
PRECOVER(); |
8785 |
|
} |
8786 |
12377 |
return ; |
8787 |
|
} |
8788 |
|
/* $ANTLR end simpleSymbolicExpr */ |
8789 |
|
|
8790 |
|
/** |
8791 |
|
* $ANTLR start symbolicExpr |
8792 |
|
* /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1268:1: symbolicExpr[cvc5::api::Term& sexpr] : ( simpleSymbolicExpr[s] | LPAREN_TOK ( symbolicExpr[sexpr] )* RPAREN_TOK ); |
8793 |
|
*/ |
8794 |
|
static void |
8795 |
12373 |
symbolicExpr(pSmt2Parser ctx, cvc5::api::Term& sexpr) |
8796 |
|
{ |
8797 |
|
|
8798 |
24746 |
std::string s; |
8799 |
24746 |
std::vector<api::Term> children; |
8800 |
|
|
8801 |
|
/* Initialize rule variables |
8802 |
|
*/ |
8803 |
|
|
8804 |
|
{ |
8805 |
|
{ |
8806 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1273:3: ( simpleSymbolicExpr[s] | LPAREN_TOK ( symbolicExpr[sexpr] )* RPAREN_TOK ) |
8807 |
|
|
8808 |
|
ANTLR3_UINT32 alt41; |
8809 |
|
|
8810 |
12373 |
alt41=2; |
8811 |
|
|
8812 |
12373 |
switch ( LA(1) ) |
8813 |
|
{ |
8814 |
12368 |
case ASSERT_TOK: |
8815 |
|
case BINARY_LITERAL: |
8816 |
|
case CHECK_SAT_ASSUMING_TOK: |
8817 |
|
case CHECK_SAT_TOK: |
8818 |
|
case DECIMAL_LITERAL: |
8819 |
|
case DECLARE_DATATYPES_TOK: |
8820 |
|
case DECLARE_FUN_TOK: |
8821 |
|
case DECLARE_SORT_TOK: |
8822 |
|
case DEFINE_FUNS_REC_TOK: |
8823 |
|
case DEFINE_FUN_REC_TOK: |
8824 |
|
case DEFINE_FUN_TOK: |
8825 |
|
case DEFINE_SORT_TOK: |
8826 |
|
case ECHO_TOK: |
8827 |
|
case EXIT_TOK: |
8828 |
|
case GET_ASSERTIONS_TOK: |
8829 |
|
case GET_ASSIGNMENT_TOK: |
8830 |
|
case GET_INFO_TOK: |
8831 |
|
case GET_MODEL_TOK: |
8832 |
|
case GET_OPTION_TOK: |
8833 |
|
case GET_PROOF_TOK: |
8834 |
|
case GET_UNSAT_ASSUMPTIONS_TOK: |
8835 |
|
case GET_UNSAT_CORE_TOK: |
8836 |
|
case GET_VALUE_TOK: |
8837 |
|
case HEX_LITERAL: |
8838 |
|
case INTEGER_LITERAL: |
8839 |
|
case KEYWORD: |
8840 |
|
case POP_TOK: |
8841 |
|
case PUSH_TOK: |
8842 |
|
case QUOTED_SYMBOL: |
8843 |
|
case RESET_ASSERTIONS_TOK: |
8844 |
|
case RESET_TOK: |
8845 |
|
case SET_INFO_TOK: |
8846 |
|
case SET_LOGIC_TOK: |
8847 |
|
case SET_OPTION_TOK: |
8848 |
|
case SIMPLE_SYMBOL: |
8849 |
|
case SIMPLIFY_TOK: |
8850 |
|
case STRING_LITERAL: |
8851 |
|
case UNTERMINATED_QUOTED_SYMBOL: |
8852 |
|
{ |
8853 |
12368 |
alt41=1; |
8854 |
|
} |
8855 |
12368 |
break; |
8856 |
5 |
case LPAREN_TOK: |
8857 |
|
{ |
8858 |
5 |
alt41=2; |
8859 |
|
} |
8860 |
5 |
break; |
8861 |
|
|
8862 |
|
default: |
8863 |
|
CONSTRUCTEX(); |
8864 |
|
EXCEPTION->type = ANTLR3_NO_VIABLE_ALT_EXCEPTION; |
8865 |
|
EXCEPTION->message = (void *)""; |
8866 |
|
EXCEPTION->decisionNum = 41; |
8867 |
|
EXCEPTION->state = 0; |
8868 |
|
|
8869 |
|
|
8870 |
|
goto rulesymbolicExprEx; |
8871 |
|
|
8872 |
|
} |
8873 |
|
|
8874 |
12373 |
switch (alt41) |
8875 |
|
{ |
8876 |
12368 |
case 1: |
8877 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1273:5: simpleSymbolicExpr[s] |
8878 |
|
{ |
8879 |
12368 |
FOLLOWPUSH(FOLLOW_simpleSymbolicExpr_in_symbolicExpr3345); |
8880 |
12368 |
simpleSymbolicExpr(ctx, s); |
8881 |
|
|
8882 |
12368 |
FOLLOWPOP(); |
8883 |
12368 |
if (HASEXCEPTION()) |
8884 |
|
{ |
8885 |
|
goto rulesymbolicExprEx; |
8886 |
|
} |
8887 |
|
|
8888 |
|
|
8889 |
|
{ |
8890 |
12368 |
sexpr = SOLVER->mkString(PARSER_STATE->processAdHocStringEsc(s)); |
8891 |
|
} |
8892 |
|
|
8893 |
|
|
8894 |
|
} |
8895 |
12368 |
break; |
8896 |
5 |
case 2: |
8897 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1275:5: LPAREN_TOK ( symbolicExpr[sexpr] )* RPAREN_TOK |
8898 |
|
{ |
8899 |
5 |
MATCHT(LPAREN_TOK, &FOLLOW_LPAREN_TOK_in_symbolicExpr3358); |
8900 |
5 |
if (HASEXCEPTION()) |
8901 |
|
{ |
8902 |
|
goto rulesymbolicExprEx; |
8903 |
|
} |
8904 |
|
|
8905 |
|
|
8906 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1276:5: ( symbolicExpr[sexpr] )* |
8907 |
|
|
8908 |
|
for (;;) |
8909 |
|
{ |
8910 |
19 |
int alt40=2; |
8911 |
19 |
switch ( LA(1) ) |
8912 |
|
{ |
8913 |
14 |
case ASSERT_TOK: |
8914 |
|
case BINARY_LITERAL: |
8915 |
|
case CHECK_SAT_ASSUMING_TOK: |
8916 |
|
case CHECK_SAT_TOK: |
8917 |
|
case DECIMAL_LITERAL: |
8918 |
|
case DECLARE_DATATYPES_TOK: |
8919 |
|
case DECLARE_FUN_TOK: |
8920 |
|
case DECLARE_SORT_TOK: |
8921 |
|
case DEFINE_FUNS_REC_TOK: |
8922 |
|
case DEFINE_FUN_REC_TOK: |
8923 |
|
case DEFINE_FUN_TOK: |
8924 |
|
case DEFINE_SORT_TOK: |
8925 |
|
case ECHO_TOK: |
8926 |
|
case EXIT_TOK: |
8927 |
|
case GET_ASSERTIONS_TOK: |
8928 |
|
case GET_ASSIGNMENT_TOK: |
8929 |
|
case GET_INFO_TOK: |
8930 |
|
case GET_MODEL_TOK: |
8931 |
|
case GET_OPTION_TOK: |
8932 |
|
case GET_PROOF_TOK: |
8933 |
|
case GET_UNSAT_ASSUMPTIONS_TOK: |
8934 |
|
case GET_UNSAT_CORE_TOK: |
8935 |
|
case GET_VALUE_TOK: |
8936 |
|
case HEX_LITERAL: |
8937 |
|
case INTEGER_LITERAL: |
8938 |
|
case KEYWORD: |
8939 |
|
case LPAREN_TOK: |
8940 |
|
case POP_TOK: |
8941 |
|
case PUSH_TOK: |
8942 |
|
case QUOTED_SYMBOL: |
8943 |
|
case RESET_ASSERTIONS_TOK: |
8944 |
|
case RESET_TOK: |
8945 |
|
case SET_INFO_TOK: |
8946 |
|
case SET_LOGIC_TOK: |
8947 |
|
case SET_OPTION_TOK: |
8948 |
|
case SIMPLE_SYMBOL: |
8949 |
|
case SIMPLIFY_TOK: |
8950 |
|
case STRING_LITERAL: |
8951 |
|
case UNTERMINATED_QUOTED_SYMBOL: |
8952 |
|
{ |
8953 |
14 |
alt40=1; |
8954 |
|
} |
8955 |
14 |
break; |
8956 |
|
|
8957 |
|
} |
8958 |
|
|
8959 |
19 |
switch (alt40) |
8960 |
|
{ |
8961 |
14 |
case 1: |
8962 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1276:7: symbolicExpr[sexpr] |
8963 |
|
{ |
8964 |
14 |
FOLLOWPUSH(FOLLOW_symbolicExpr_in_symbolicExpr3366); |
8965 |
14 |
symbolicExpr(ctx, sexpr); |
8966 |
|
|
8967 |
14 |
FOLLOWPOP(); |
8968 |
14 |
if (HASEXCEPTION()) |
8969 |
|
{ |
8970 |
|
goto rulesymbolicExprEx; |
8971 |
|
} |
8972 |
|
|
8973 |
|
|
8974 |
|
{ |
8975 |
14 |
children.push_back(sexpr); |
8976 |
|
} |
8977 |
|
|
8978 |
|
|
8979 |
|
} |
8980 |
14 |
break; |
8981 |
|
|
8982 |
5 |
default: |
8983 |
5 |
goto loop40; /* break out of the loop */ |
8984 |
|
break; |
8985 |
|
} |
8986 |
14 |
} |
8987 |
5 |
loop40: ; /* Jump out to here if this rule does not match */ |
8988 |
|
|
8989 |
|
|
8990 |
5 |
MATCHT(RPAREN_TOK, &FOLLOW_RPAREN_TOK_in_symbolicExpr3374); |
8991 |
5 |
if (HASEXCEPTION()) |
8992 |
|
{ |
8993 |
|
goto rulesymbolicExprEx; |
8994 |
|
} |
8995 |
|
|
8996 |
|
|
8997 |
|
{ |
8998 |
5 |
sexpr = SOLVER->mkTerm(cvc5::api::SEXPR, children); |
8999 |
|
} |
9000 |
|
|
9001 |
|
|
9002 |
|
} |
9003 |
5 |
break; |
9004 |
|
|
9005 |
|
} |
9006 |
|
} |
9007 |
|
} |
9008 |
|
|
9009 |
|
// This is where rules clean up and exit |
9010 |
|
// |
9011 |
12373 |
goto rulesymbolicExprEx; /* Prevent compiler warnings */ |
9012 |
12373 |
rulesymbolicExprEx: ; |
9013 |
|
|
9014 |
12373 |
if (HASEXCEPTION()) |
9015 |
|
{ |
9016 |
|
PREPORTERROR(); |
9017 |
|
PRECOVER(); |
9018 |
|
} |
9019 |
24746 |
return ; |
9020 |
|
} |
9021 |
|
/* $ANTLR end symbolicExpr */ |
9022 |
|
|
9023 |
|
/** |
9024 |
|
* $ANTLR start term |
9025 |
|
* /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1284:1: term[cvc5::api::Term& expr, cvc5::api::Term& expr2] : ( termNonVariable[expr, expr2] | qualIdentifier[p] ); |
9026 |
|
*/ |
9027 |
|
static void |
9028 |
7365755 |
term(pSmt2Parser ctx, cvc5::api::Term& expr, cvc5::api::Term& expr2) |
9029 |
|
{ |
9030 |
|
/* Initialize rule variables |
9031 |
|
*/ |
9032 |
|
|
9033 |
|
|
9034 |
7365755 |
api::Kind kind = api::NULL_EXPR; |
9035 |
14731510 |
cvc5::api::Term f; |
9036 |
14731510 |
std::string name; |
9037 |
14731510 |
cvc5::api::Sort type; |
9038 |
14731510 |
ParseOp p; |
9039 |
|
|
9040 |
|
{ |
9041 |
|
{ |
9042 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1292:3: ( termNonVariable[expr, expr2] | qualIdentifier[p] ) |
9043 |
|
|
9044 |
|
ANTLR3_UINT32 alt42; |
9045 |
|
|
9046 |
7365755 |
alt42=2; |
9047 |
|
|
9048 |
7365755 |
switch ( LA(1) ) |
9049 |
|
{ |
9050 |
3487470 |
case LPAREN_TOK: |
9051 |
|
{ |
9052 |
3487470 |
switch ( LA(2) ) |
9053 |
|
{ |
9054 |
3398052 |
case ATTRIBUTE_TOK: |
9055 |
|
case COMPREHENSION_TOK: |
9056 |
|
case EXISTS_TOK: |
9057 |
|
case FORALL_TOK: |
9058 |
|
case HO_LAMBDA_TOK: |
9059 |
|
case LET_TOK: |
9060 |
|
case LPAREN_TOK: |
9061 |
|
case MATCH_TOK: |
9062 |
|
case QUOTED_SYMBOL: |
9063 |
|
case SIMPLE_SYMBOL: |
9064 |
|
case TUPLE_CONST_TOK: |
9065 |
|
case TUPLE_PROJECT_TOK: |
9066 |
|
case UNTERMINATED_QUOTED_SYMBOL: |
9067 |
|
{ |
9068 |
3398052 |
alt42=1; |
9069 |
|
} |
9070 |
3398052 |
break; |
9071 |
89130 |
case INDEX_TOK: |
9072 |
|
{ |
9073 |
89130 |
alt42=1; |
9074 |
|
} |
9075 |
89130 |
break; |
9076 |
288 |
case AS_TOK: |
9077 |
|
{ |
9078 |
288 |
alt42=2; |
9079 |
|
} |
9080 |
288 |
break; |
9081 |
|
|
9082 |
|
default: |
9083 |
|
CONSTRUCTEX(); |
9084 |
|
EXCEPTION->type = ANTLR3_NO_VIABLE_ALT_EXCEPTION; |
9085 |
|
EXCEPTION->message = (void *)""; |
9086 |
|
EXCEPTION->decisionNum = 42; |
9087 |
|
EXCEPTION->state = 1; |
9088 |
|
|
9089 |
|
|
9090 |
|
goto ruletermEx; |
9091 |
|
|
9092 |
|
} |
9093 |
|
|
9094 |
|
} |
9095 |
3487470 |
break; |
9096 |
393698 |
case BINARY_LITERAL: |
9097 |
|
case DECIMAL_LITERAL: |
9098 |
|
case HEX_LITERAL: |
9099 |
|
case INTEGER_LITERAL: |
9100 |
|
case STRING_LITERAL: |
9101 |
|
case TUPLE_CONST_TOK: |
9102 |
|
{ |
9103 |
393698 |
alt42=1; |
9104 |
|
} |
9105 |
393698 |
break; |
9106 |
3484585 |
case QUOTED_SYMBOL: |
9107 |
|
case SIMPLE_SYMBOL: |
9108 |
|
case UNTERMINATED_QUOTED_SYMBOL: |
9109 |
|
{ |
9110 |
3484585 |
alt42=2; |
9111 |
|
} |
9112 |
3484585 |
break; |
9113 |
|
|
9114 |
2 |
default: |
9115 |
2 |
CONSTRUCTEX(); |
9116 |
2 |
EXCEPTION->type = ANTLR3_NO_VIABLE_ALT_EXCEPTION; |
9117 |
2 |
EXCEPTION->message = (void *)""; |
9118 |
2 |
EXCEPTION->decisionNum = 42; |
9119 |
2 |
EXCEPTION->state = 0; |
9120 |
|
|
9121 |
|
|
9122 |
2 |
goto ruletermEx; |
9123 |
|
|
9124 |
|
} |
9125 |
|
|
9126 |
7365753 |
switch (alt42) |
9127 |
|
{ |
9128 |
3880880 |
case 1: |
9129 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1292:3: termNonVariable[expr, expr2] |
9130 |
|
{ |
9131 |
3880880 |
FOLLOWPUSH(FOLLOW_termNonVariable_in_term3399); |
9132 |
3880880 |
termNonVariable(ctx, expr, expr2); |
9133 |
|
|
9134 |
3880820 |
FOLLOWPOP(); |
9135 |
3880820 |
if (HASEXCEPTION()) |
9136 |
|
{ |
9137 |
|
goto ruletermEx; |
9138 |
|
} |
9139 |
|
|
9140 |
|
|
9141 |
|
} |
9142 |
3880820 |
break; |
9143 |
3484873 |
case 2: |
9144 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1296:5: qualIdentifier[p] |
9145 |
|
{ |
9146 |
3484873 |
FOLLOWPUSH(FOLLOW_qualIdentifier_in_term3411); |
9147 |
3484873 |
qualIdentifier(ctx, p); |
9148 |
|
|
9149 |
3484873 |
FOLLOWPOP(); |
9150 |
3484873 |
if (HASEXCEPTION()) |
9151 |
|
{ |
9152 |
|
goto ruletermEx; |
9153 |
|
} |
9154 |
|
|
9155 |
|
|
9156 |
|
{ |
9157 |
|
|
9158 |
3484873 |
expr = PARSER_STATE->parseOpToExpr(p); |
9159 |
|
|
9160 |
|
} |
9161 |
|
|
9162 |
|
|
9163 |
|
} |
9164 |
3484864 |
break; |
9165 |
|
|
9166 |
|
} |
9167 |
|
} |
9168 |
|
} |
9169 |
|
|
9170 |
|
// This is where rules clean up and exit |
9171 |
|
// |
9172 |
7365684 |
goto ruletermEx; /* Prevent compiler warnings */ |
9173 |
7365686 |
ruletermEx: ; |
9174 |
|
|
9175 |
7365686 |
if (HASEXCEPTION()) |
9176 |
|
{ |
9177 |
2 |
PREPORTERROR(); |
9178 |
|
PRECOVER(); |
9179 |
|
} |
9180 |
14731368 |
return ; |
9181 |
|
} |
9182 |
|
/* $ANTLR end term */ |
9183 |
|
|
9184 |
|
/** |
9185 |
|
* $ANTLR start termNonVariable |
9186 |
|
* /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1307:1: termNonVariable[cvc5::api::Term& expr, cvc5::api::Term& expr2] : ( LPAREN_TOK quantOp[kind] boundVarList[bvl] term[f, f2] RPAREN_TOK | LPAREN_TOK COMPREHENSION_TOK boundVarList[bvl] term[f, f2] term[f, f2] RPAREN_TOK | LPAREN_TOK qualIdentifier[p] termList[args,expr] RPAREN_TOK | LPAREN_TOK LET_TOK LPAREN_TOK ( LPAREN_TOK symbol[name,CHECK_NONE,SYM_VARIABLE] term[expr, f2] RPAREN_TOK )+ RPAREN_TOK term[expr, f2] RPAREN_TOK | LPAREN_TOK MATCH_TOK term[expr, f2] LPAREN_TOK ( LPAREN_TOK LPAREN_TOK term[f, f2] ( symbol[name,CHECK_NONE,SYM_VARIABLE] )* RPAREN_TOK term[f3, f2] RPAREN_TOK | LPAREN_TOK symbol[name,CHECK_NONE,SYM_VARIABLE] term[f3, f2] RPAREN_TOK )+ RPAREN_TOK RPAREN_TOK | LPAREN_TOK ATTRIBUTE_TOK term[expr, f2] ( attribute[expr, attexpr] )+ RPAREN_TOK | LPAREN_TOK HO_LAMBDA_TOK boundVarList[bvl] term[f, f2] RPAREN_TOK | LPAREN_TOK TUPLE_CONST_TOK termList[args,expr] RPAREN_TOK | LPAREN_TOK TUPLE_PROJECT_TOK term[expr,expr2] RPAREN_TOK | termAtomic[atomTerm] ); |
9187 |
|
*/ |
9188 |
|
static void |
9189 |
3880880 |
termNonVariable(pSmt2Parser ctx, cvc5::api::Term& expr, cvc5::api::Term& expr2) |
9190 |
|
{ |
9191 |
|
/* Initialize rule variables |
9192 |
|
*/ |
9193 |
|
|
9194 |
|
|
9195 |
3880880 |
Debug("parser") << "term: " << AntlrInput::tokenText(LT(1)) << std::endl; |
9196 |
3880880 |
api::Kind kind = api::NULL_EXPR; |
9197 |
7761760 |
std::string name; |
9198 |
7761760 |
std::vector<cvc5::api::Term> args; |
9199 |
7761760 |
std::vector< std::pair<std::string, cvc5::api::Sort> > sortedVarNames; |
9200 |
7761760 |
cvc5::api::Term bvl; |
9201 |
7761760 |
cvc5::api::Term f, f2, f3; |
9202 |
7761760 |
std::string attr; |
9203 |
7761760 |
cvc5::api::Term attexpr; |
9204 |
7761760 |
std::vector<cvc5::api::Term> patexprs; |
9205 |
7761760 |
std::vector<cvc5::api::Term> matchcases; |
9206 |
7761760 |
std::unordered_set<std::string> names; |
9207 |
7761760 |
std::vector< std::pair<std::string, cvc5::api::Term> > binders; |
9208 |
7761760 |
cvc5::api::Sort type; |
9209 |
7761760 |
cvc5::api::Sort type2; |
9210 |
7761760 |
api::Term atomTerm; |
9211 |
7761760 |
ParseOp p; |
9212 |
7761760 |
std::vector<api::Sort> argTypes; |
9213 |
|
|
9214 |
|
{ |
9215 |
|
{ |
9216 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1328:3: ( LPAREN_TOK quantOp[kind] boundVarList[bvl] term[f, f2] RPAREN_TOK | LPAREN_TOK COMPREHENSION_TOK boundVarList[bvl] term[f, f2] term[f, f2] RPAREN_TOK | LPAREN_TOK qualIdentifier[p] termList[args,expr] RPAREN_TOK | LPAREN_TOK LET_TOK LPAREN_TOK ( LPAREN_TOK symbol[name,CHECK_NONE,SYM_VARIABLE] term[expr, f2] RPAREN_TOK )+ RPAREN_TOK term[expr, f2] RPAREN_TOK | LPAREN_TOK MATCH_TOK term[expr, f2] LPAREN_TOK ( LPAREN_TOK LPAREN_TOK term[f, f2] ( symbol[name,CHECK_NONE,SYM_VARIABLE] )* RPAREN_TOK term[f3, f2] RPAREN_TOK | LPAREN_TOK symbol[name,CHECK_NONE,SYM_VARIABLE] term[f3, f2] RPAREN_TOK )+ RPAREN_TOK RPAREN_TOK | LPAREN_TOK ATTRIBUTE_TOK term[expr, f2] ( attribute[expr, attexpr] )+ RPAREN_TOK | LPAREN_TOK HO_LAMBDA_TOK boundVarList[bvl] term[f, f2] RPAREN_TOK | LPAREN_TOK TUPLE_CONST_TOK termList[args,expr] RPAREN_TOK | LPAREN_TOK TUPLE_PROJECT_TOK term[expr,expr2] RPAREN_TOK | termAtomic[atomTerm] ) |
9217 |
|
|
9218 |
|
ANTLR3_UINT32 alt47; |
9219 |
|
|
9220 |
3880880 |
alt47=10; |
9221 |
|
|
9222 |
3880880 |
switch ( LA(1) ) |
9223 |
|
{ |
9224 |
3487182 |
case LPAREN_TOK: |
9225 |
|
{ |
9226 |
3487182 |
switch ( LA(2) ) |
9227 |
|
{ |
9228 |
18 |
case COMPREHENSION_TOK: |
9229 |
|
{ |
9230 |
18 |
alt47=2; |
9231 |
|
} |
9232 |
18 |
break; |
9233 |
67034 |
case LET_TOK: |
9234 |
|
{ |
9235 |
67034 |
alt47=4; |
9236 |
|
} |
9237 |
67034 |
break; |
9238 |
13 |
case MATCH_TOK: |
9239 |
|
{ |
9240 |
13 |
alt47=5; |
9241 |
|
} |
9242 |
13 |
break; |
9243 |
8171 |
case ATTRIBUTE_TOK: |
9244 |
|
{ |
9245 |
8171 |
alt47=6; |
9246 |
|
} |
9247 |
8171 |
break; |
9248 |
30 |
case HO_LAMBDA_TOK: |
9249 |
|
{ |
9250 |
30 |
alt47=7; |
9251 |
|
} |
9252 |
30 |
break; |
9253 |
50 |
case TUPLE_CONST_TOK: |
9254 |
|
{ |
9255 |
50 |
alt47=8; |
9256 |
|
} |
9257 |
50 |
break; |
9258 |
2 |
case TUPLE_PROJECT_TOK: |
9259 |
|
{ |
9260 |
2 |
alt47=9; |
9261 |
|
} |
9262 |
2 |
break; |
9263 |
89130 |
case INDEX_TOK: |
9264 |
|
{ |
9265 |
89130 |
alt47=10; |
9266 |
|
} |
9267 |
89130 |
break; |
9268 |
27933 |
case EXISTS_TOK: |
9269 |
|
case FORALL_TOK: |
9270 |
|
{ |
9271 |
27933 |
alt47=1; |
9272 |
|
} |
9273 |
27933 |
break; |
9274 |
3294801 |
case LPAREN_TOK: |
9275 |
|
case QUOTED_SYMBOL: |
9276 |
|
case SIMPLE_SYMBOL: |
9277 |
|
case UNTERMINATED_QUOTED_SYMBOL: |
9278 |
|
{ |
9279 |
3294801 |
alt47=3; |
9280 |
|
} |
9281 |
3294801 |
break; |
9282 |
|
|
9283 |
|
default: |
9284 |
|
CONSTRUCTEX(); |
9285 |
|
EXCEPTION->type = ANTLR3_NO_VIABLE_ALT_EXCEPTION; |
9286 |
|
EXCEPTION->message = (void *)""; |
9287 |
|
EXCEPTION->decisionNum = 47; |
9288 |
|
EXCEPTION->state = 1; |
9289 |
|
|
9290 |
|
|
9291 |
|
goto ruletermNonVariableEx; |
9292 |
|
|
9293 |
|
} |
9294 |
|
|
9295 |
|
} |
9296 |
3487182 |
break; |
9297 |
393698 |
case BINARY_LITERAL: |
9298 |
|
case DECIMAL_LITERAL: |
9299 |
|
case HEX_LITERAL: |
9300 |
|
case INTEGER_LITERAL: |
9301 |
|
case STRING_LITERAL: |
9302 |
|
case TUPLE_CONST_TOK: |
9303 |
|
{ |
9304 |
393698 |
alt47=10; |
9305 |
|
} |
9306 |
393698 |
break; |
9307 |
|
|
9308 |
|
default: |
9309 |
|
CONSTRUCTEX(); |
9310 |
|
EXCEPTION->type = ANTLR3_NO_VIABLE_ALT_EXCEPTION; |
9311 |
|
EXCEPTION->message = (void *)""; |
9312 |
|
EXCEPTION->decisionNum = 47; |
9313 |
|
EXCEPTION->state = 0; |
9314 |
|
|
9315 |
|
|
9316 |
|
goto ruletermNonVariableEx; |
9317 |
|
|
9318 |
|
} |
9319 |
|
|
9320 |
3880880 |
switch (alt47) |
9321 |
|
{ |
9322 |
27933 |
case 1: |
9323 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1328:5: LPAREN_TOK quantOp[kind] boundVarList[bvl] term[f, f2] RPAREN_TOK |
9324 |
|
{ |
9325 |
27933 |
MATCHT(LPAREN_TOK, &FOLLOW_LPAREN_TOK_in_termNonVariable3439); |
9326 |
27933 |
if (HASEXCEPTION()) |
9327 |
|
{ |
9328 |
|
goto ruletermNonVariableEx; |
9329 |
|
} |
9330 |
|
|
9331 |
|
|
9332 |
27933 |
FOLLOWPUSH(FOLLOW_quantOp_in_termNonVariable3441); |
9333 |
27933 |
quantOp(ctx, kind); |
9334 |
|
|
9335 |
27933 |
FOLLOWPOP(); |
9336 |
27933 |
if (HASEXCEPTION()) |
9337 |
|
{ |
9338 |
|
goto ruletermNonVariableEx; |
9339 |
|
} |
9340 |
|
|
9341 |
|
|
9342 |
|
{ |
9343 |
|
|
9344 |
27933 |
if (!PARSER_STATE->isTheoryEnabled(theory::THEORY_QUANTIFIERS)) |
9345 |
|
{ |
9346 |
2 |
PARSER_STATE->parseError("Quantifier used in non-quantified logic."); |
9347 |
|
} |
9348 |
27932 |
PARSER_STATE->pushScope(); |
9349 |
|
|
9350 |
|
} |
9351 |
|
|
9352 |
|
|
9353 |
27932 |
FOLLOWPUSH(FOLLOW_boundVarList_in_termNonVariable3454); |
9354 |
27932 |
boundVarList(ctx, bvl); |
9355 |
|
|
9356 |
27931 |
FOLLOWPOP(); |
9357 |
27931 |
if (HASEXCEPTION()) |
9358 |
|
{ |
9359 |
|
goto ruletermNonVariableEx; |
9360 |
|
} |
9361 |
|
|
9362 |
|
|
9363 |
27931 |
FOLLOWPUSH(FOLLOW_term_in_termNonVariable3461); |
9364 |
27931 |
term(ctx, f, f2); |
9365 |
|
|
9366 |
27931 |
FOLLOWPOP(); |
9367 |
27931 |
if (HASEXCEPTION()) |
9368 |
|
{ |
9369 |
|
goto ruletermNonVariableEx; |
9370 |
|
} |
9371 |
|
|
9372 |
|
|
9373 |
27931 |
MATCHT(RPAREN_TOK, &FOLLOW_RPAREN_TOK_in_termNonVariable3464); |
9374 |
27931 |
if (HASEXCEPTION()) |
9375 |
|
{ |
9376 |
|
goto ruletermNonVariableEx; |
9377 |
|
} |
9378 |
|
|
9379 |
|
|
9380 |
|
{ |
9381 |
|
|
9382 |
27931 |
args.push_back(bvl); |
9383 |
|
|
9384 |
27931 |
PARSER_STATE->popScope(); |
9385 |
27931 |
args.push_back(f); |
9386 |
27931 |
if(! f2.isNull()){ |
9387 |
3451 |
args.push_back(f2); |
9388 |
|
} |
9389 |
27931 |
expr = MK_TERM(kind, args); |
9390 |
|
|
9391 |
|
} |
9392 |
|
|
9393 |
|
|
9394 |
|
} |
9395 |
27931 |
break; |
9396 |
18 |
case 2: |
9397 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1348:5: LPAREN_TOK COMPREHENSION_TOK boundVarList[bvl] term[f, f2] term[f, f2] RPAREN_TOK |
9398 |
|
{ |
9399 |
18 |
MATCHT(LPAREN_TOK, &FOLLOW_LPAREN_TOK_in_termNonVariable3476); |
9400 |
18 |
if (HASEXCEPTION()) |
9401 |
|
{ |
9402 |
|
goto ruletermNonVariableEx; |
9403 |
|
} |
9404 |
|
|
9405 |
|
|
9406 |
18 |
MATCHT(COMPREHENSION_TOK, &FOLLOW_COMPREHENSION_TOK_in_termNonVariable3478); |
9407 |
18 |
if (HASEXCEPTION()) |
9408 |
|
{ |
9409 |
|
goto ruletermNonVariableEx; |
9410 |
|
} |
9411 |
|
|
9412 |
|
|
9413 |
|
{ |
9414 |
18 |
PARSER_STATE->pushScope(); |
9415 |
|
} |
9416 |
|
|
9417 |
|
|
9418 |
18 |
FOLLOWPUSH(FOLLOW_boundVarList_in_termNonVariable3490); |
9419 |
18 |
boundVarList(ctx, bvl); |
9420 |
|
|
9421 |
18 |
FOLLOWPOP(); |
9422 |
18 |
if (HASEXCEPTION()) |
9423 |
|
{ |
9424 |
|
goto ruletermNonVariableEx; |
9425 |
|
} |
9426 |
|
|
9427 |
|
|
9428 |
|
{ |
9429 |
|
|
9430 |
18 |
args.push_back(bvl); |
9431 |
|
|
9432 |
|
} |
9433 |
|
|
9434 |
|
|
9435 |
18 |
FOLLOWPUSH(FOLLOW_term_in_termNonVariable3503); |
9436 |
18 |
term(ctx, f, f2); |
9437 |
|
|
9438 |
18 |
FOLLOWPOP(); |
9439 |
18 |
if (HASEXCEPTION()) |
9440 |
|
{ |
9441 |
|
goto ruletermNonVariableEx; |
9442 |
|
} |
9443 |
|
|
9444 |
|
|
9445 |
|
{ |
9446 |
18 |
args.push_back(f); |
9447 |
|
} |
9448 |
|
|
9449 |
|
|
9450 |
18 |
FOLLOWPUSH(FOLLOW_term_in_termNonVariable3512); |
9451 |
18 |
term(ctx, f, f2); |
9452 |
|
|
9453 |
18 |
FOLLOWPOP(); |
9454 |
18 |
if (HASEXCEPTION()) |
9455 |
|
{ |
9456 |
|
goto ruletermNonVariableEx; |
9457 |
|
} |
9458 |
|
|
9459 |
|
|
9460 |
|
{ |
9461 |
|
|
9462 |
18 |
args.push_back(f); |
9463 |
18 |
expr = MK_TERM(api::COMPREHENSION, args); |
9464 |
|
|
9465 |
|
} |
9466 |
|
|
9467 |
|
|
9468 |
18 |
MATCHT(RPAREN_TOK, &FOLLOW_RPAREN_TOK_in_termNonVariable3521); |
9469 |
18 |
if (HASEXCEPTION()) |
9470 |
|
{ |
9471 |
|
goto ruletermNonVariableEx; |
9472 |
|
} |
9473 |
|
|
9474 |
|
|
9475 |
|
} |
9476 |
18 |
break; |
9477 |
3294801 |
case 3: |
9478 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1360:5: LPAREN_TOK qualIdentifier[p] termList[args,expr] RPAREN_TOK |
9479 |
|
{ |
9480 |
3294801 |
MATCHT(LPAREN_TOK, &FOLLOW_LPAREN_TOK_in_termNonVariable3527); |
9481 |
3294801 |
if (HASEXCEPTION()) |
9482 |
|
{ |
9483 |
|
goto ruletermNonVariableEx; |
9484 |
|
} |
9485 |
|
|
9486 |
|
|
9487 |
3294801 |
FOLLOWPUSH(FOLLOW_qualIdentifier_in_termNonVariable3529); |
9488 |
3294801 |
qualIdentifier(ctx, p); |
9489 |
|
|
9490 |
3294800 |
FOLLOWPOP(); |
9491 |
3294800 |
if (HASEXCEPTION()) |
9492 |
|
{ |
9493 |
|
goto ruletermNonVariableEx; |
9494 |
|
} |
9495 |
|
|
9496 |
|
|
9497 |
3294800 |
FOLLOWPUSH(FOLLOW_termList_in_termNonVariable3536); |
9498 |
3294800 |
termList(ctx, args, expr); |
9499 |
|
|
9500 |
3294772 |
FOLLOWPOP(); |
9501 |
3294772 |
if (HASEXCEPTION()) |
9502 |
|
{ |
9503 |
|
goto ruletermNonVariableEx; |
9504 |
|
} |
9505 |
|
|
9506 |
|
|
9507 |
3294772 |
MATCHT(RPAREN_TOK, &FOLLOW_RPAREN_TOK_in_termNonVariable3539); |
9508 |
3294772 |
if (HASEXCEPTION()) |
9509 |
|
{ |
9510 |
2 |
goto ruletermNonVariableEx; |
9511 |
|
} |
9512 |
|
|
9513 |
|
|
9514 |
|
{ |
9515 |
|
|
9516 |
3294770 |
expr = PARSER_STATE->applyParseOp(p, args); |
9517 |
|
|
9518 |
|
} |
9519 |
|
|
9520 |
|
|
9521 |
|
} |
9522 |
3294744 |
break; |
9523 |
67034 |
case 4: |
9524 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1366:5: LPAREN_TOK LET_TOK LPAREN_TOK ( LPAREN_TOK symbol[name,CHECK_NONE,SYM_VARIABLE] term[expr, f2] RPAREN_TOK )+ RPAREN_TOK term[expr, f2] RPAREN_TOK |
9525 |
|
{ |
9526 |
67034 |
MATCHT(LPAREN_TOK, &FOLLOW_LPAREN_TOK_in_termNonVariable3557); |
9527 |
67034 |
if (HASEXCEPTION()) |
9528 |
|
{ |
9529 |
|
goto ruletermNonVariableEx; |
9530 |
|
} |
9531 |
|
|
9532 |
|
|
9533 |
67034 |
MATCHT(LET_TOK, &FOLLOW_LET_TOK_in_termNonVariable3566); |
9534 |
67034 |
if (HASEXCEPTION()) |
9535 |
|
{ |
9536 |
|
goto ruletermNonVariableEx; |
9537 |
|
} |
9538 |
|
|
9539 |
|
|
9540 |
67034 |
MATCHT(LPAREN_TOK, &FOLLOW_LPAREN_TOK_in_termNonVariable3568); |
9541 |
67034 |
if (HASEXCEPTION()) |
9542 |
|
{ |
9543 |
|
goto ruletermNonVariableEx; |
9544 |
|
} |
9545 |
|
|
9546 |
|
|
9547 |
|
{ |
9548 |
67034 |
PARSER_STATE->pushScope(); |
9549 |
|
} |
9550 |
|
|
9551 |
|
|
9552 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1369:7: ( LPAREN_TOK symbol[name,CHECK_NONE,SYM_VARIABLE] term[expr, f2] RPAREN_TOK )+ |
9553 |
|
{ |
9554 |
67034 |
int cnt43=0; |
9555 |
|
|
9556 |
|
for (;;) |
9557 |
|
{ |
9558 |
151054 |
int alt43=2; |
9559 |
151054 |
switch ( LA(1) ) |
9560 |
|
{ |
9561 |
84020 |
case LPAREN_TOK: |
9562 |
|
{ |
9563 |
84020 |
alt43=1; |
9564 |
|
} |
9565 |
84020 |
break; |
9566 |
|
|
9567 |
|
} |
9568 |
|
|
9569 |
151054 |
switch (alt43) |
9570 |
|
{ |
9571 |
84020 |
case 1: |
9572 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1369:9: LPAREN_TOK symbol[name,CHECK_NONE,SYM_VARIABLE] term[expr, f2] RPAREN_TOK |
9573 |
|
{ |
9574 |
84020 |
MATCHT(LPAREN_TOK, &FOLLOW_LPAREN_TOK_in_termNonVariable3586); |
9575 |
84020 |
if (HASEXCEPTION()) |
9576 |
|
{ |
9577 |
|
goto ruletermNonVariableEx; |
9578 |
|
} |
9579 |
|
|
9580 |
|
|
9581 |
84020 |
FOLLOWPUSH(FOLLOW_symbol_in_termNonVariable3588); |
9582 |
84020 |
symbol(ctx, name, CHECK_NONE, SYM_VARIABLE); |
9583 |
|
|
9584 |
84020 |
FOLLOWPOP(); |
9585 |
84020 |
if (HASEXCEPTION()) |
9586 |
|
{ |
9587 |
|
goto ruletermNonVariableEx; |
9588 |
|
} |
9589 |
|
|
9590 |
|
|
9591 |
84020 |
FOLLOWPUSH(FOLLOW_term_in_termNonVariable3599); |
9592 |
84020 |
term(ctx, expr, f2); |
9593 |
|
|
9594 |
84020 |
FOLLOWPOP(); |
9595 |
84020 |
if (HASEXCEPTION()) |
9596 |
|
{ |
9597 |
|
goto ruletermNonVariableEx; |
9598 |
|
} |
9599 |
|
|
9600 |
|
|
9601 |
84020 |
MATCHT(RPAREN_TOK, &FOLLOW_RPAREN_TOK_in_termNonVariable3610); |
9602 |
84020 |
if (HASEXCEPTION()) |
9603 |
|
{ |
9604 |
|
goto ruletermNonVariableEx; |
9605 |
|
} |
9606 |
|
|
9607 |
|
|
9608 |
|
{ |
9609 |
84020 |
if(names.count(name) == 1) { |
9610 |
|
std::stringstream ss; |
9611 |
|
ss << "warning: symbol `" << name << "' bound multiple times by let;" |
9612 |
|
<< " the last binding will be used, shadowing earlier ones"; |
9613 |
|
PARSER_STATE->warning(ss.str()); |
9614 |
|
} else { |
9615 |
84020 |
names.insert(name); |
9616 |
|
} |
9617 |
84020 |
binders.push_back(std::make_pair(name, expr)); |
9618 |
|
} |
9619 |
|
|
9620 |
|
|
9621 |
|
} |
9622 |
84020 |
break; |
9623 |
|
|
9624 |
67034 |
default: |
9625 |
|
|
9626 |
67034 |
if ( cnt43 >= 1 ) |
9627 |
|
{ |
9628 |
67034 |
goto loop43; |
9629 |
|
} |
9630 |
|
/* mismatchedSetEx() |
9631 |
|
*/ |
9632 |
|
CONSTRUCTEX(); |
9633 |
|
EXCEPTION->type = ANTLR3_EARLY_EXIT_EXCEPTION; |
9634 |
|
EXCEPTION->name = (void *)ANTLR3_EARLY_EXIT_NAME; |
9635 |
|
|
9636 |
|
|
9637 |
|
goto ruletermNonVariableEx; |
9638 |
|
} |
9639 |
84020 |
cnt43++; |
9640 |
84020 |
} |
9641 |
67034 |
loop43: ; /* Jump to here if this rule does not match */ |
9642 |
|
} |
9643 |
|
|
9644 |
|
{ |
9645 |
|
// now implement these bindings |
9646 |
151054 |
for (const std::pair<std::string, api::Term>& binder : binders) |
9647 |
|
{ |
9648 |
|
{ |
9649 |
84020 |
PARSER_STATE->defineVar(binder.first, binder.second); |
9650 |
|
} |
9651 |
|
} |
9652 |
|
|
9653 |
|
} |
9654 |
|
|
9655 |
|
|
9656 |
67034 |
MATCHT(RPAREN_TOK, &FOLLOW_RPAREN_TOK_in_termNonVariable3653); |
9657 |
67034 |
if (HASEXCEPTION()) |
9658 |
|
{ |
9659 |
|
goto ruletermNonVariableEx; |
9660 |
|
} |
9661 |
|
|
9662 |
|
|
9663 |
67034 |
FOLLOWPUSH(FOLLOW_term_in_termNonVariable3659); |
9664 |
67034 |
term(ctx, expr, f2); |
9665 |
|
|
9666 |
67034 |
FOLLOWPOP(); |
9667 |
67034 |
if (HASEXCEPTION()) |
9668 |
|
{ |
9669 |
|
goto ruletermNonVariableEx; |
9670 |
|
} |
9671 |
|
|
9672 |
|
|
9673 |
67034 |
MATCHT(RPAREN_TOK, &FOLLOW_RPAREN_TOK_in_termNonVariable3666); |
9674 |
67034 |
if (HASEXCEPTION()) |
9675 |
|
{ |
9676 |
|
goto ruletermNonVariableEx; |
9677 |
|
} |
9678 |
|
|
9679 |
|
|
9680 |
|
{ |
9681 |
67034 |
PARSER_STATE->popScope(); |
9682 |
|
} |
9683 |
|
|
9684 |
|
|
9685 |
|
} |
9686 |
67034 |
break; |
9687 |
13 |
case 5: |
9688 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1396:5: LPAREN_TOK MATCH_TOK term[expr, f2] LPAREN_TOK ( LPAREN_TOK LPAREN_TOK term[f, f2] ( symbol[name,CHECK_NONE,SYM_VARIABLE] )* RPAREN_TOK term[f3, f2] RPAREN_TOK | LPAREN_TOK symbol[name,CHECK_NONE,SYM_VARIABLE] term[f3, f2] RPAREN_TOK )+ RPAREN_TOK RPAREN_TOK |
9689 |
|
{ |
9690 |
13 |
MATCHT(LPAREN_TOK, &FOLLOW_LPAREN_TOK_in_termNonVariable3684); |
9691 |
13 |
if (HASEXCEPTION()) |
9692 |
|
{ |
9693 |
|
goto ruletermNonVariableEx; |
9694 |
|
} |
9695 |
|
|
9696 |
|
|
9697 |
13 |
MATCHT(MATCH_TOK, &FOLLOW_MATCH_TOK_in_termNonVariable3686); |
9698 |
13 |
if (HASEXCEPTION()) |
9699 |
|
{ |
9700 |
|
goto ruletermNonVariableEx; |
9701 |
|
} |
9702 |
|
|
9703 |
|
|
9704 |
13 |
FOLLOWPUSH(FOLLOW_term_in_termNonVariable3688); |
9705 |
13 |
term(ctx, expr, f2); |
9706 |
|
|
9707 |
13 |
FOLLOWPOP(); |
9708 |
13 |
if (HASEXCEPTION()) |
9709 |
|
{ |
9710 |
|
goto ruletermNonVariableEx; |
9711 |
|
} |
9712 |
|
|
9713 |
|
|
9714 |
|
{ |
9715 |
|
|
9716 |
13 |
if( !expr.getSort().isDatatype() ){ |
9717 |
|
PARSER_STATE->parseError("Cannot match on non-datatype term."); |
9718 |
|
} |
9719 |
|
|
9720 |
|
} |
9721 |
|
|
9722 |
|
|
9723 |
13 |
MATCHT(LPAREN_TOK, &FOLLOW_LPAREN_TOK_in_termNonVariable3697); |
9724 |
13 |
if (HASEXCEPTION()) |
9725 |
|
{ |
9726 |
|
goto ruletermNonVariableEx; |
9727 |
|
} |
9728 |
|
|
9729 |
|
|
9730 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1402:5: ( LPAREN_TOK LPAREN_TOK term[f, f2] ( symbol[name,CHECK_NONE,SYM_VARIABLE] )* RPAREN_TOK term[f3, f2] RPAREN_TOK | LPAREN_TOK symbol[name,CHECK_NONE,SYM_VARIABLE] term[f3, f2] RPAREN_TOK )+ |
9731 |
|
{ |
9732 |
13 |
int cnt45=0; |
9733 |
|
|
9734 |
|
for (;;) |
9735 |
|
{ |
9736 |
46 |
int alt45=3; |
9737 |
46 |
switch ( LA(1) ) |
9738 |
|
{ |
9739 |
33 |
case LPAREN_TOK: |
9740 |
|
{ |
9741 |
33 |
switch ( LA(2) ) |
9742 |
|
{ |
9743 |
7 |
case LPAREN_TOK: |
9744 |
|
{ |
9745 |
7 |
alt45=1; |
9746 |
|
} |
9747 |
7 |
break; |
9748 |
26 |
case QUOTED_SYMBOL: |
9749 |
|
case SIMPLE_SYMBOL: |
9750 |
|
case UNTERMINATED_QUOTED_SYMBOL: |
9751 |
|
{ |
9752 |
26 |
alt45=2; |
9753 |
|
} |
9754 |
26 |
break; |
9755 |
|
|
9756 |
|
} |
9757 |
|
|
9758 |
|
} |
9759 |
33 |
break; |
9760 |
|
|
9761 |
|
} |
9762 |
|
|
9763 |
46 |
switch (alt45) |
9764 |
|
{ |
9765 |
7 |
case 1: |
9766 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1404:7: LPAREN_TOK LPAREN_TOK term[f, f2] ( symbol[name,CHECK_NONE,SYM_VARIABLE] )* RPAREN_TOK term[f3, f2] RPAREN_TOK |
9767 |
|
{ |
9768 |
7 |
MATCHT(LPAREN_TOK, &FOLLOW_LPAREN_TOK_in_termNonVariable3718); |
9769 |
7 |
if (HASEXCEPTION()) |
9770 |
|
{ |
9771 |
|
goto ruletermNonVariableEx; |
9772 |
|
} |
9773 |
|
|
9774 |
|
|
9775 |
7 |
MATCHT(LPAREN_TOK, &FOLLOW_LPAREN_TOK_in_termNonVariable3720); |
9776 |
7 |
if (HASEXCEPTION()) |
9777 |
|
{ |
9778 |
|
goto ruletermNonVariableEx; |
9779 |
|
} |
9780 |
|
|
9781 |
|
|
9782 |
7 |
FOLLOWPUSH(FOLLOW_term_in_termNonVariable3722); |
9783 |
7 |
term(ctx, f, f2); |
9784 |
|
|
9785 |
7 |
FOLLOWPOP(); |
9786 |
7 |
if (HASEXCEPTION()) |
9787 |
|
{ |
9788 |
|
goto ruletermNonVariableEx; |
9789 |
|
} |
9790 |
|
|
9791 |
|
|
9792 |
|
{ |
9793 |
|
|
9794 |
7 |
args.clear(); |
9795 |
7 |
PARSER_STATE->pushScope(); |
9796 |
|
// f should be a constructor |
9797 |
7 |
type = f.getSort(); |
9798 |
7 |
Debug("parser-dt") << "Pattern head : " << f << " " << type << std::endl; |
9799 |
7 |
if (!type.isConstructor()) |
9800 |
|
{ |
9801 |
|
PARSER_STATE->parseError("Pattern must be application of a constructor or a variable."); |
9802 |
|
} |
9803 |
14 |
api::Datatype dt = type.getConstructorCodomainSort().getDatatype(); |
9804 |
7 |
if (dt.isParametric()) |
9805 |
|
{ |
9806 |
|
// lookup constructor by name |
9807 |
4 |
api::DatatypeConstructor dc = dt.getConstructor(f.toString()); |
9808 |
4 |
api::Term scons = dc.getSpecializedConstructorTerm(expr.getSort()); |
9809 |
|
// take the type of the specialized constructor instead |
9810 |
2 |
type = scons.getSort(); |
9811 |
|
} |
9812 |
7 |
argTypes = type.getConstructorDomainSorts(); |
9813 |
|
|
9814 |
|
} |
9815 |
|
|
9816 |
|
|
9817 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1426:9: ( symbol[name,CHECK_NONE,SYM_VARIABLE] )* |
9818 |
|
|
9819 |
|
for (;;) |
9820 |
|
{ |
9821 |
21 |
int alt44=2; |
9822 |
21 |
switch ( LA(1) ) |
9823 |
|
{ |
9824 |
14 |
case QUOTED_SYMBOL: |
9825 |
|
case SIMPLE_SYMBOL: |
9826 |
|
case UNTERMINATED_QUOTED_SYMBOL: |
9827 |
|
{ |
9828 |
14 |
alt44=1; |
9829 |
|
} |
9830 |
14 |
break; |
9831 |
|
|
9832 |
|
} |
9833 |
|
|
9834 |
21 |
switch (alt44) |
9835 |
|
{ |
9836 |
14 |
case 1: |
9837 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1426:11: symbol[name,CHECK_NONE,SYM_VARIABLE] |
9838 |
|
{ |
9839 |
14 |
FOLLOWPUSH(FOLLOW_symbol_in_termNonVariable3746); |
9840 |
14 |
symbol(ctx, name, CHECK_NONE, SYM_VARIABLE); |
9841 |
|
|
9842 |
14 |
FOLLOWPOP(); |
9843 |
14 |
if (HASEXCEPTION()) |
9844 |
|
{ |
9845 |
|
goto ruletermNonVariableEx; |
9846 |
|
} |
9847 |
|
|
9848 |
|
|
9849 |
|
{ |
9850 |
|
|
9851 |
14 |
if (args.size() >= argTypes.size()) |
9852 |
|
{ |
9853 |
|
PARSER_STATE->parseError("Too many arguments for pattern."); |
9854 |
|
} |
9855 |
|
//make of proper type |
9856 |
28 |
api::Term arg = PARSER_STATE->bindBoundVar(name, argTypes[args.size()]); |
9857 |
14 |
args.push_back( arg ); |
9858 |
|
|
9859 |
14 |
} |
9860 |
|
|
9861 |
|
|
9862 |
|
} |
9863 |
14 |
break; |
9864 |
|
|
9865 |
7 |
default: |
9866 |
7 |
goto loop44; /* break out of the loop */ |
9867 |
|
break; |
9868 |
|
} |
9869 |
14 |
} |
9870 |
7 |
loop44: ; /* Jump out to here if this rule does not match */ |
9871 |
|
|
9872 |
|
|
9873 |
7 |
MATCHT(RPAREN_TOK, &FOLLOW_RPAREN_TOK_in_termNonVariable3770); |
9874 |
7 |
if (HASEXCEPTION()) |
9875 |
|
{ |
9876 |
|
goto ruletermNonVariableEx; |
9877 |
|
} |
9878 |
|
|
9879 |
|
|
9880 |
7 |
FOLLOWPUSH(FOLLOW_term_in_termNonVariable3772); |
9881 |
7 |
term(ctx, f3, f2); |
9882 |
|
|
9883 |
7 |
FOLLOWPOP(); |
9884 |
7 |
if (HASEXCEPTION()) |
9885 |
|
{ |
9886 |
|
goto ruletermNonVariableEx; |
9887 |
|
} |
9888 |
|
|
9889 |
|
|
9890 |
|
{ |
9891 |
|
|
9892 |
|
// make the match case |
9893 |
14 |
std::vector<cvc5::api::Term> cargs; |
9894 |
7 |
cargs.push_back(f); |
9895 |
7 |
cargs.insert(cargs.end(),args.begin(),args.end()); |
9896 |
14 |
api::Term c = MK_TERM(api::APPLY_CONSTRUCTOR,cargs); |
9897 |
14 |
api::Term bvla = MK_TERM(api::BOUND_VAR_LIST,args); |
9898 |
14 |
api::Term mc = MK_TERM(api::MATCH_BIND_CASE, bvla, c, f3); |
9899 |
7 |
matchcases.push_back(mc); |
9900 |
|
// now, pop the scope |
9901 |
7 |
PARSER_STATE->popScope(); |
9902 |
|
|
9903 |
|
} |
9904 |
|
|
9905 |
|
|
9906 |
7 |
MATCHT(RPAREN_TOK, &FOLLOW_RPAREN_TOK_in_termNonVariable3785); |
9907 |
7 |
if (HASEXCEPTION()) |
9908 |
|
{ |
9909 |
|
goto ruletermNonVariableEx; |
9910 |
7 |
} |
9911 |
|
|
9912 |
|
|
9913 |
|
} |
9914 |
7 |
break; |
9915 |
26 |
case 2: |
9916 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1450:9: LPAREN_TOK symbol[name,CHECK_NONE,SYM_VARIABLE] term[f3, f2] RPAREN_TOK |
9917 |
|
{ |
9918 |
26 |
MATCHT(LPAREN_TOK, &FOLLOW_LPAREN_TOK_in_termNonVariable3802); |
9919 |
26 |
if (HASEXCEPTION()) |
9920 |
|
{ |
9921 |
|
goto ruletermNonVariableEx; |
9922 |
|
} |
9923 |
|
|
9924 |
|
|
9925 |
26 |
FOLLOWPUSH(FOLLOW_symbol_in_termNonVariable3804); |
9926 |
26 |
symbol(ctx, name, CHECK_NONE, SYM_VARIABLE); |
9927 |
|
|
9928 |
26 |
FOLLOWPOP(); |
9929 |
26 |
if (HASEXCEPTION()) |
9930 |
|
{ |
9931 |
|
goto ruletermNonVariableEx; |
9932 |
|
} |
9933 |
|
|
9934 |
|
|
9935 |
|
{ |
9936 |
|
|
9937 |
26 |
if (PARSER_STATE->isDeclared(name,SYM_VARIABLE)) |
9938 |
|
{ |
9939 |
23 |
f = PARSER_STATE->getVariable(name); |
9940 |
23 |
type = f.getSort(); |
9941 |
92 |
if (!type.isConstructor() || |
9942 |
69 |
!type.getConstructorDomainSorts().empty()) |
9943 |
|
{ |
9944 |
|
PARSER_STATE->parseError("Must apply constructors of arity greater than 0 to arguments in pattern."); |
9945 |
|
} |
9946 |
|
// make nullary constructor application |
9947 |
23 |
f = MK_TERM(api::APPLY_CONSTRUCTOR, f); |
9948 |
|
} |
9949 |
|
else |
9950 |
|
{ |
9951 |
|
// it has the type of the head expr |
9952 |
3 |
f = PARSER_STATE->bindBoundVar(name, expr.getSort()); |
9953 |
|
} |
9954 |
|
|
9955 |
|
} |
9956 |
|
|
9957 |
|
|
9958 |
26 |
FOLLOWPUSH(FOLLOW_term_in_termNonVariable3817); |
9959 |
26 |
term(ctx, f3, f2); |
9960 |
|
|
9961 |
26 |
FOLLOWPOP(); |
9962 |
26 |
if (HASEXCEPTION()) |
9963 |
|
{ |
9964 |
|
goto ruletermNonVariableEx; |
9965 |
|
} |
9966 |
|
|
9967 |
|
|
9968 |
|
{ |
9969 |
|
|
9970 |
52 |
api::Term mc; |
9971 |
26 |
if (f.getKind() == api::VARIABLE) |
9972 |
|
{ |
9973 |
6 |
api::Term bvlf = MK_TERM(api::BOUND_VAR_LIST, f); |
9974 |
3 |
mc = MK_TERM(api::MATCH_BIND_CASE, bvlf, f, f3); |
9975 |
|
} |
9976 |
|
else |
9977 |
|
{ |
9978 |
23 |
mc = MK_TERM(api::MATCH_CASE, f, f3); |
9979 |
|
} |
9980 |
26 |
matchcases.push_back(mc); |
9981 |
|
|
9982 |
|
} |
9983 |
|
|
9984 |
|
|
9985 |
26 |
MATCHT(RPAREN_TOK, &FOLLOW_RPAREN_TOK_in_termNonVariable3830); |
9986 |
26 |
if (HASEXCEPTION()) |
9987 |
|
{ |
9988 |
|
goto ruletermNonVariableEx; |
9989 |
26 |
} |
9990 |
|
|
9991 |
|
|
9992 |
|
} |
9993 |
26 |
break; |
9994 |
|
|
9995 |
13 |
default: |
9996 |
|
|
9997 |
13 |
if ( cnt45 >= 1 ) |
9998 |
|
{ |
9999 |
13 |
goto loop45; |
10000 |
|
} |
10001 |
|
/* mismatchedSetEx() |
10002 |
|
*/ |
10003 |
|
CONSTRUCTEX(); |
10004 |
|
EXCEPTION->type = ANTLR3_EARLY_EXIT_EXCEPTION; |
10005 |
|
EXCEPTION->name = (void *)ANTLR3_EARLY_EXIT_NAME; |
10006 |
|
|
10007 |
|
|
10008 |
|
goto ruletermNonVariableEx; |
10009 |
|
} |
10010 |
33 |
cnt45++; |
10011 |
33 |
} |
10012 |
13 |
loop45: ; /* Jump to here if this rule does not match */ |
10013 |
|
} |
10014 |
|
|
10015 |
13 |
MATCHT(RPAREN_TOK, &FOLLOW_RPAREN_TOK_in_termNonVariable3843); |
10016 |
13 |
if (HASEXCEPTION()) |
10017 |
|
{ |
10018 |
|
goto ruletermNonVariableEx; |
10019 |
|
} |
10020 |
|
|
10021 |
|
|
10022 |
13 |
MATCHT(RPAREN_TOK, &FOLLOW_RPAREN_TOK_in_termNonVariable3845); |
10023 |
13 |
if (HASEXCEPTION()) |
10024 |
|
{ |
10025 |
|
goto ruletermNonVariableEx; |
10026 |
|
} |
10027 |
|
|
10028 |
|
|
10029 |
|
{ |
10030 |
|
|
10031 |
|
//now, make the match |
10032 |
13 |
if (matchcases.empty()) |
10033 |
|
{ |
10034 |
|
PARSER_STATE->parseError("Must have at least one case in match."); |
10035 |
|
} |
10036 |
26 |
std::vector<api::Term> mchildren; |
10037 |
13 |
mchildren.push_back(expr); |
10038 |
13 |
mchildren.insert(mchildren.end(), matchcases.begin(), matchcases.end()); |
10039 |
13 |
expr = MK_TERM(api::MATCH, mchildren); |
10040 |
|
|
10041 |
13 |
} |
10042 |
|
|
10043 |
|
|
10044 |
|
} |
10045 |
13 |
break; |
10046 |
8171 |
case 6: |
10047 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1497:5: LPAREN_TOK ATTRIBUTE_TOK term[expr, f2] ( attribute[expr, attexpr] )+ RPAREN_TOK |
10048 |
|
{ |
10049 |
8171 |
MATCHT(LPAREN_TOK, &FOLLOW_LPAREN_TOK_in_termNonVariable3861); |
10050 |
8171 |
if (HASEXCEPTION()) |
10051 |
|
{ |
10052 |
|
goto ruletermNonVariableEx; |
10053 |
|
} |
10054 |
|
|
10055 |
|
|
10056 |
8171 |
MATCHT(ATTRIBUTE_TOK, &FOLLOW_ATTRIBUTE_TOK_in_termNonVariable3863); |
10057 |
8171 |
if (HASEXCEPTION()) |
10058 |
|
{ |
10059 |
|
goto ruletermNonVariableEx; |
10060 |
|
} |
10061 |
|
|
10062 |
|
|
10063 |
8171 |
FOLLOWPUSH(FOLLOW_term_in_termNonVariable3865); |
10064 |
8171 |
term(ctx, expr, f2); |
10065 |
|
|
10066 |
8171 |
FOLLOWPOP(); |
10067 |
8171 |
if (HASEXCEPTION()) |
10068 |
|
{ |
10069 |
|
goto ruletermNonVariableEx; |
10070 |
|
} |
10071 |
|
|
10072 |
|
|
10073 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1498:5: ( attribute[expr, attexpr] )+ |
10074 |
|
{ |
10075 |
8171 |
int cnt46=0; |
10076 |
|
|
10077 |
|
for (;;) |
10078 |
|
{ |
10079 |
16705 |
int alt46=2; |
10080 |
16705 |
switch ( LA(1) ) |
10081 |
|
{ |
10082 |
8535 |
case ATTRIBUTE_INST_ADD_TO_POOL_TOK: |
10083 |
|
case ATTRIBUTE_INST_LEVEL: |
10084 |
|
case ATTRIBUTE_NAMED_TOK: |
10085 |
|
case ATTRIBUTE_NO_PATTERN_TOK: |
10086 |
|
case ATTRIBUTE_PATTERN_TOK: |
10087 |
|
case ATTRIBUTE_POOL_TOK: |
10088 |
|
case ATTRIBUTE_QUANTIFIER_ID_TOK: |
10089 |
|
case ATTRIBUTE_SKOLEM_ADD_TO_POOL_TOK: |
10090 |
|
case KEYWORD: |
10091 |
|
{ |
10092 |
8535 |
alt46=1; |
10093 |
|
} |
10094 |
8535 |
break; |
10095 |
|
|
10096 |
|
} |
10097 |
|
|
10098 |
16705 |
switch (alt46) |
10099 |
|
{ |
10100 |
8535 |
case 1: |
10101 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1498:7: attribute[expr, attexpr] |
10102 |
|
{ |
10103 |
8535 |
FOLLOWPUSH(FOLLOW_attribute_in_termNonVariable3874); |
10104 |
8535 |
attribute(ctx, expr, attexpr); |
10105 |
|
|
10106 |
8534 |
FOLLOWPOP(); |
10107 |
8534 |
if (HASEXCEPTION()) |
10108 |
|
{ |
10109 |
|
goto ruletermNonVariableEx; |
10110 |
|
} |
10111 |
|
|
10112 |
|
|
10113 |
|
{ |
10114 |
8534 |
if( ! attexpr.isNull()) { |
10115 |
3824 |
patexprs.push_back( attexpr ); |
10116 |
|
} |
10117 |
|
|
10118 |
|
} |
10119 |
|
|
10120 |
|
|
10121 |
|
} |
10122 |
8534 |
break; |
10123 |
|
|
10124 |
8170 |
default: |
10125 |
|
|
10126 |
8170 |
if ( cnt46 >= 1 ) |
10127 |
|
{ |
10128 |
8170 |
goto loop46; |
10129 |
|
} |
10130 |
|
/* mismatchedSetEx() |
10131 |
|
*/ |
10132 |
|
CONSTRUCTEX(); |
10133 |
|
EXCEPTION->type = ANTLR3_EARLY_EXIT_EXCEPTION; |
10134 |
|
EXCEPTION->name = (void *)ANTLR3_EARLY_EXIT_NAME; |
10135 |
|
|
10136 |
|
|
10137 |
|
goto ruletermNonVariableEx; |
10138 |
|
} |
10139 |
8534 |
cnt46++; |
10140 |
8534 |
} |
10141 |
8170 |
loop46: ; /* Jump to here if this rule does not match */ |
10142 |
|
} |
10143 |
|
|
10144 |
8170 |
MATCHT(RPAREN_TOK, &FOLLOW_RPAREN_TOK_in_termNonVariable3892); |
10145 |
8170 |
if (HASEXCEPTION()) |
10146 |
|
{ |
10147 |
|
goto ruletermNonVariableEx; |
10148 |
|
} |
10149 |
|
|
10150 |
|
|
10151 |
|
{ |
10152 |
|
|
10153 |
8170 |
if(! patexprs.empty()) { |
10154 |
3460 |
if( !f2.isNull() && f2.getKind()==api::INST_PATTERN_LIST ){ |
10155 |
18 |
for( size_t i=0; i<f2.getNumChildren(); i++ ){ |
10156 |
9 |
patexprs.push_back( f2[i] ); |
10157 |
|
} |
10158 |
|
} |
10159 |
3460 |
expr2 = MK_TERM(api::INST_PATTERN_LIST, patexprs); |
10160 |
|
} else { |
10161 |
4710 |
expr2 = f2; |
10162 |
|
} |
10163 |
|
|
10164 |
|
} |
10165 |
|
|
10166 |
|
|
10167 |
|
} |
10168 |
8170 |
break; |
10169 |
30 |
case 7: |
10170 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1517:5: LPAREN_TOK HO_LAMBDA_TOK boundVarList[bvl] term[f, f2] RPAREN_TOK |
10171 |
|
{ |
10172 |
30 |
MATCHT(LPAREN_TOK, &FOLLOW_LPAREN_TOK_in_termNonVariable3910); |
10173 |
30 |
if (HASEXCEPTION()) |
10174 |
|
{ |
10175 |
|
goto ruletermNonVariableEx; |
10176 |
|
} |
10177 |
|
|
10178 |
|
|
10179 |
30 |
MATCHT(HO_LAMBDA_TOK, &FOLLOW_HO_LAMBDA_TOK_in_termNonVariable3912); |
10180 |
30 |
if (HASEXCEPTION()) |
10181 |
|
{ |
10182 |
|
goto ruletermNonVariableEx; |
10183 |
|
} |
10184 |
|
|
10185 |
|
|
10186 |
|
{ |
10187 |
30 |
PARSER_STATE->pushScope(); |
10188 |
|
} |
10189 |
|
|
10190 |
|
|
10191 |
30 |
FOLLOWPUSH(FOLLOW_boundVarList_in_termNonVariable3924); |
10192 |
30 |
boundVarList(ctx, bvl); |
10193 |
|
|
10194 |
30 |
FOLLOWPOP(); |
10195 |
30 |
if (HASEXCEPTION()) |
10196 |
|
{ |
10197 |
|
goto ruletermNonVariableEx; |
10198 |
|
} |
10199 |
|
|
10200 |
|
|
10201 |
30 |
FOLLOWPUSH(FOLLOW_term_in_termNonVariable3931); |
10202 |
30 |
term(ctx, f, f2); |
10203 |
|
|
10204 |
30 |
FOLLOWPOP(); |
10205 |
30 |
if (HASEXCEPTION()) |
10206 |
|
{ |
10207 |
|
goto ruletermNonVariableEx; |
10208 |
|
} |
10209 |
|
|
10210 |
|
|
10211 |
30 |
MATCHT(RPAREN_TOK, &FOLLOW_RPAREN_TOK_in_termNonVariable3934); |
10212 |
30 |
if (HASEXCEPTION()) |
10213 |
|
{ |
10214 |
|
goto ruletermNonVariableEx; |
10215 |
|
} |
10216 |
|
|
10217 |
|
|
10218 |
|
{ |
10219 |
|
|
10220 |
30 |
args.push_back(bvl); |
10221 |
30 |
args.push_back(f); |
10222 |
30 |
PARSER_STATE->popScope(); |
10223 |
30 |
expr = MK_TERM(api::LAMBDA, args); |
10224 |
|
|
10225 |
|
} |
10226 |
|
|
10227 |
|
|
10228 |
|
} |
10229 |
30 |
break; |
10230 |
50 |
case 8: |
10231 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1527:5: LPAREN_TOK TUPLE_CONST_TOK termList[args,expr] RPAREN_TOK |
10232 |
|
{ |
10233 |
50 |
MATCHT(LPAREN_TOK, &FOLLOW_LPAREN_TOK_in_termNonVariable3946); |
10234 |
50 |
if (HASEXCEPTION()) |
10235 |
|
{ |
10236 |
|
goto ruletermNonVariableEx; |
10237 |
|
} |
10238 |
|
|
10239 |
|
|
10240 |
50 |
MATCHT(TUPLE_CONST_TOK, &FOLLOW_TUPLE_CONST_TOK_in_termNonVariable3948); |
10241 |
50 |
if (HASEXCEPTION()) |
10242 |
|
{ |
10243 |
|
goto ruletermNonVariableEx; |
10244 |
|
} |
10245 |
|
|
10246 |
|
|
10247 |
50 |
FOLLOWPUSH(FOLLOW_termList_in_termNonVariable3950); |
10248 |
50 |
termList(ctx, args, expr); |
10249 |
|
|
10250 |
50 |
FOLLOWPOP(); |
10251 |
50 |
if (HASEXCEPTION()) |
10252 |
|
{ |
10253 |
|
goto ruletermNonVariableEx; |
10254 |
|
} |
10255 |
|
|
10256 |
|
|
10257 |
50 |
MATCHT(RPAREN_TOK, &FOLLOW_RPAREN_TOK_in_termNonVariable3953); |
10258 |
50 |
if (HASEXCEPTION()) |
10259 |
|
{ |
10260 |
|
goto ruletermNonVariableEx; |
10261 |
|
} |
10262 |
|
|
10263 |
|
|
10264 |
|
{ |
10265 |
|
|
10266 |
100 |
std::vector<api::Sort> sorts; |
10267 |
100 |
std::vector<api::Term> terms; |
10268 |
156 |
for (const api::Term& arg : args) |
10269 |
|
{ |
10270 |
106 |
sorts.emplace_back(arg.getSort()); |
10271 |
106 |
terms.emplace_back(arg); |
10272 |
|
} |
10273 |
50 |
expr = SOLVER->mkTuple(sorts, terms); |
10274 |
|
|
10275 |
50 |
} |
10276 |
|
|
10277 |
|
|
10278 |
|
} |
10279 |
50 |
break; |
10280 |
2 |
case 9: |
10281 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1538:5: LPAREN_TOK TUPLE_PROJECT_TOK term[expr,expr2] RPAREN_TOK |
10282 |
|
{ |
10283 |
2 |
MATCHT(LPAREN_TOK, &FOLLOW_LPAREN_TOK_in_termNonVariable3963); |
10284 |
2 |
if (HASEXCEPTION()) |
10285 |
|
{ |
10286 |
|
goto ruletermNonVariableEx; |
10287 |
|
} |
10288 |
|
|
10289 |
|
|
10290 |
2 |
MATCHT(TUPLE_PROJECT_TOK, &FOLLOW_TUPLE_PROJECT_TOK_in_termNonVariable3965); |
10291 |
2 |
if (HASEXCEPTION()) |
10292 |
|
{ |
10293 |
|
goto ruletermNonVariableEx; |
10294 |
|
} |
10295 |
|
|
10296 |
|
|
10297 |
2 |
FOLLOWPUSH(FOLLOW_term_in_termNonVariable3967); |
10298 |
2 |
term(ctx, expr, expr2); |
10299 |
|
|
10300 |
2 |
FOLLOWPOP(); |
10301 |
2 |
if (HASEXCEPTION()) |
10302 |
|
{ |
10303 |
|
goto ruletermNonVariableEx; |
10304 |
|
} |
10305 |
|
|
10306 |
|
|
10307 |
2 |
MATCHT(RPAREN_TOK, &FOLLOW_RPAREN_TOK_in_termNonVariable3970); |
10308 |
2 |
if (HASEXCEPTION()) |
10309 |
|
{ |
10310 |
|
goto ruletermNonVariableEx; |
10311 |
|
} |
10312 |
|
|
10313 |
|
|
10314 |
|
{ |
10315 |
|
|
10316 |
4 |
std::vector<uint32_t> indices; |
10317 |
4 |
api::Op op = SOLVER->mkOp(api::TUPLE_PROJECT, indices); |
10318 |
2 |
expr = SOLVER->mkTerm(op, expr); |
10319 |
|
|
10320 |
2 |
} |
10321 |
|
|
10322 |
|
|
10323 |
|
} |
10324 |
2 |
break; |
10325 |
482828 |
case 10: |
10326 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1545:5: termAtomic[atomTerm] |
10327 |
|
{ |
10328 |
482828 |
FOLLOWPUSH(FOLLOW_termAtomic_in_termNonVariable3986); |
10329 |
482828 |
termAtomic(ctx, atomTerm); |
10330 |
|
|
10331 |
482828 |
FOLLOWPOP(); |
10332 |
482828 |
if (HASEXCEPTION()) |
10333 |
|
{ |
10334 |
|
goto ruletermNonVariableEx; |
10335 |
|
} |
10336 |
|
|
10337 |
|
|
10338 |
|
{ |
10339 |
482828 |
expr = atomTerm; |
10340 |
|
} |
10341 |
|
|
10342 |
|
|
10343 |
|
} |
10344 |
482828 |
break; |
10345 |
|
|
10346 |
|
} |
10347 |
|
} |
10348 |
|
} |
10349 |
|
|
10350 |
|
// This is where rules clean up and exit |
10351 |
|
// |
10352 |
3880820 |
goto ruletermNonVariableEx; /* Prevent compiler warnings */ |
10353 |
3880822 |
ruletermNonVariableEx: ; |
10354 |
|
|
10355 |
3880822 |
if (HASEXCEPTION()) |
10356 |
|
{ |
10357 |
2 |
PREPORTERROR(); |
10358 |
|
PRECOVER(); |
10359 |
|
} |
10360 |
7761640 |
return ; |
10361 |
|
} |
10362 |
|
/* $ANTLR end termNonVariable */ |
10363 |
|
|
10364 |
|
/** |
10365 |
|
* $ANTLR start qualIdentifier |
10366 |
|
* /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1599:1: qualIdentifier[cvc5::ParseOp& p] : ( identifier[p] | LPAREN_TOK AS_TOK ( CONST_TOK sortSymbol[type, CHECK_DECLARED] | identifier[p] sortSymbol[type, CHECK_DECLARED] ) RPAREN_TOK ); |
10367 |
|
*/ |
10368 |
|
static void |
10369 |
6779674 |
qualIdentifier(pSmt2Parser ctx, cvc5::ParseOp& p) |
10370 |
|
{ |
10371 |
|
/* Initialize rule variables |
10372 |
|
*/ |
10373 |
|
|
10374 |
|
|
10375 |
|
api::Kind k; |
10376 |
13559348 |
std::string baseName; |
10377 |
13559348 |
cvc5::api::Term f; |
10378 |
13559348 |
cvc5::api::Sort type; |
10379 |
|
|
10380 |
|
{ |
10381 |
|
{ |
10382 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1606:3: ( identifier[p] | LPAREN_TOK AS_TOK ( CONST_TOK sortSymbol[type, CHECK_DECLARED] | identifier[p] sortSymbol[type, CHECK_DECLARED] ) RPAREN_TOK ) |
10383 |
|
|
10384 |
|
ANTLR3_UINT32 alt49; |
10385 |
|
|
10386 |
6779674 |
alt49=2; |
10387 |
|
|
10388 |
6779674 |
switch ( LA(1) ) |
10389 |
|
{ |
10390 |
6701462 |
case QUOTED_SYMBOL: |
10391 |
|
case SIMPLE_SYMBOL: |
10392 |
|
case UNTERMINATED_QUOTED_SYMBOL: |
10393 |
|
{ |
10394 |
6701462 |
alt49=1; |
10395 |
|
} |
10396 |
6701462 |
break; |
10397 |
78212 |
case LPAREN_TOK: |
10398 |
|
{ |
10399 |
78212 |
switch ( LA(2) ) |
10400 |
|
{ |
10401 |
77857 |
case INDEX_TOK: |
10402 |
|
{ |
10403 |
77857 |
alt49=1; |
10404 |
|
} |
10405 |
77857 |
break; |
10406 |
355 |
case AS_TOK: |
10407 |
|
{ |
10408 |
355 |
alt49=2; |
10409 |
|
} |
10410 |
355 |
break; |
10411 |
|
|
10412 |
|
default: |
10413 |
|
CONSTRUCTEX(); |
10414 |
|
EXCEPTION->type = ANTLR3_NO_VIABLE_ALT_EXCEPTION; |
10415 |
|
EXCEPTION->message = (void *)""; |
10416 |
|
EXCEPTION->decisionNum = 49; |
10417 |
|
EXCEPTION->state = 4; |
10418 |
|
|
10419 |
|
|
10420 |
|
goto rulequalIdentifierEx; |
10421 |
|
|
10422 |
|
} |
10423 |
|
|
10424 |
|
} |
10425 |
78212 |
break; |
10426 |
|
|
10427 |
|
default: |
10428 |
|
CONSTRUCTEX(); |
10429 |
|
EXCEPTION->type = ANTLR3_NO_VIABLE_ALT_EXCEPTION; |
10430 |
|
EXCEPTION->message = (void *)""; |
10431 |
|
EXCEPTION->decisionNum = 49; |
10432 |
|
EXCEPTION->state = 0; |
10433 |
|
|
10434 |
|
|
10435 |
|
goto rulequalIdentifierEx; |
10436 |
|
|
10437 |
|
} |
10438 |
|
|
10439 |
6779674 |
switch (alt49) |
10440 |
|
{ |
10441 |
6779319 |
case 1: |
10442 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1606:3: identifier[p] |
10443 |
|
{ |
10444 |
6779319 |
FOLLOWPUSH(FOLLOW_identifier_in_qualIdentifier4009); |
10445 |
6779319 |
identifier(ctx, p); |
10446 |
|
|
10447 |
6779318 |
FOLLOWPOP(); |
10448 |
6779318 |
if (HASEXCEPTION()) |
10449 |
|
{ |
10450 |
|
goto rulequalIdentifierEx; |
10451 |
|
} |
10452 |
|
|
10453 |
|
|
10454 |
|
} |
10455 |
6779318 |
break; |
10456 |
355 |
case 2: |
10457 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1607:5: LPAREN_TOK AS_TOK ( CONST_TOK sortSymbol[type, CHECK_DECLARED] | identifier[p] sortSymbol[type, CHECK_DECLARED] ) RPAREN_TOK |
10458 |
|
{ |
10459 |
355 |
MATCHT(LPAREN_TOK, &FOLLOW_LPAREN_TOK_in_qualIdentifier4016); |
10460 |
355 |
if (HASEXCEPTION()) |
10461 |
|
{ |
10462 |
|
goto rulequalIdentifierEx; |
10463 |
|
} |
10464 |
|
|
10465 |
|
|
10466 |
355 |
MATCHT(AS_TOK, &FOLLOW_AS_TOK_in_qualIdentifier4018); |
10467 |
355 |
if (HASEXCEPTION()) |
10468 |
|
{ |
10469 |
|
goto rulequalIdentifierEx; |
10470 |
|
} |
10471 |
|
|
10472 |
|
|
10473 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1608:5: ( CONST_TOK sortSymbol[type, CHECK_DECLARED] | identifier[p] sortSymbol[type, CHECK_DECLARED] ) |
10474 |
|
{ |
10475 |
355 |
int alt48=2; |
10476 |
355 |
switch ( LA(1) ) |
10477 |
|
{ |
10478 |
65 |
case CONST_TOK: |
10479 |
|
{ |
10480 |
65 |
alt48=1; |
10481 |
|
} |
10482 |
65 |
break; |
10483 |
290 |
case LPAREN_TOK: |
10484 |
|
case QUOTED_SYMBOL: |
10485 |
|
case SIMPLE_SYMBOL: |
10486 |
|
case UNTERMINATED_QUOTED_SYMBOL: |
10487 |
|
{ |
10488 |
290 |
alt48=2; |
10489 |
|
} |
10490 |
290 |
break; |
10491 |
|
|
10492 |
|
default: |
10493 |
|
CONSTRUCTEX(); |
10494 |
|
EXCEPTION->type = ANTLR3_NO_VIABLE_ALT_EXCEPTION; |
10495 |
|
EXCEPTION->message = (void *)""; |
10496 |
|
EXCEPTION->decisionNum = 48; |
10497 |
|
EXCEPTION->state = 0; |
10498 |
|
|
10499 |
|
|
10500 |
|
goto rulequalIdentifierEx; |
10501 |
|
|
10502 |
|
} |
10503 |
|
|
10504 |
355 |
switch (alt48) |
10505 |
|
{ |
10506 |
65 |
case 1: |
10507 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1608:7: CONST_TOK sortSymbol[type, CHECK_DECLARED] |
10508 |
|
{ |
10509 |
65 |
MATCHT(CONST_TOK, &FOLLOW_CONST_TOK_in_qualIdentifier4026); |
10510 |
65 |
if (HASEXCEPTION()) |
10511 |
|
{ |
10512 |
|
goto rulequalIdentifierEx; |
10513 |
|
} |
10514 |
|
|
10515 |
|
|
10516 |
65 |
FOLLOWPUSH(FOLLOW_sortSymbol_in_qualIdentifier4028); |
10517 |
65 |
sortSymbol(ctx, type, CHECK_DECLARED); |
10518 |
|
|
10519 |
65 |
FOLLOWPOP(); |
10520 |
65 |
if (HASEXCEPTION()) |
10521 |
|
{ |
10522 |
|
goto rulequalIdentifierEx; |
10523 |
|
} |
10524 |
|
|
10525 |
|
|
10526 |
|
{ |
10527 |
|
|
10528 |
65 |
p.d_kind = api::CONST_ARRAY; |
10529 |
65 |
PARSER_STATE->parseOpApplyTypeAscription(p, type); |
10530 |
|
|
10531 |
|
} |
10532 |
|
|
10533 |
|
|
10534 |
|
} |
10535 |
65 |
break; |
10536 |
290 |
case 2: |
10537 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1613:7: identifier[p] sortSymbol[type, CHECK_DECLARED] |
10538 |
|
{ |
10539 |
290 |
FOLLOWPUSH(FOLLOW_identifier_in_qualIdentifier4045); |
10540 |
290 |
identifier(ctx, p); |
10541 |
|
|
10542 |
290 |
FOLLOWPOP(); |
10543 |
290 |
if (HASEXCEPTION()) |
10544 |
|
{ |
10545 |
|
goto rulequalIdentifierEx; |
10546 |
|
} |
10547 |
|
|
10548 |
|
|
10549 |
290 |
FOLLOWPUSH(FOLLOW_sortSymbol_in_qualIdentifier4054); |
10550 |
290 |
sortSymbol(ctx, type, CHECK_DECLARED); |
10551 |
|
|
10552 |
290 |
FOLLOWPOP(); |
10553 |
290 |
if (HASEXCEPTION()) |
10554 |
|
{ |
10555 |
|
goto rulequalIdentifierEx; |
10556 |
|
} |
10557 |
|
|
10558 |
|
|
10559 |
|
{ |
10560 |
|
|
10561 |
290 |
PARSER_STATE->parseOpApplyTypeAscription(p, type); |
10562 |
|
|
10563 |
|
} |
10564 |
|
|
10565 |
|
|
10566 |
|
} |
10567 |
290 |
break; |
10568 |
|
|
10569 |
|
} |
10570 |
|
} |
10571 |
|
|
10572 |
355 |
MATCHT(RPAREN_TOK, &FOLLOW_RPAREN_TOK_in_qualIdentifier4075); |
10573 |
355 |
if (HASEXCEPTION()) |
10574 |
|
{ |
10575 |
|
goto rulequalIdentifierEx; |
10576 |
355 |
} |
10577 |
|
|
10578 |
|
|
10579 |
|
} |
10580 |
355 |
break; |
10581 |
|
|
10582 |
|
} |
10583 |
|
} |
10584 |
|
} |
10585 |
|
|
10586 |
|
// This is where rules clean up and exit |
10587 |
|
// |
10588 |
6779673 |
goto rulequalIdentifierEx; /* Prevent compiler warnings */ |
10589 |
6779673 |
rulequalIdentifierEx: ; |
10590 |
|
|
10591 |
6779673 |
if (HASEXCEPTION()) |
10592 |
|
{ |
10593 |
|
PREPORTERROR(); |
10594 |
|
PRECOVER(); |
10595 |
|
} |
10596 |
13559346 |
return ; |
10597 |
|
} |
10598 |
|
/* $ANTLR end qualIdentifier */ |
10599 |
|
|
10600 |
|
/** |
10601 |
|
* $ANTLR start identifier |
10602 |
|
* /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1630:1: identifier[cvc5::ParseOp& p] : ( functionName[p.d_name, CHECK_NONE] | LPAREN_TOK INDEX_TOK ( TESTER_TOK term[f, f2] | UPDATE_TOK term[f, f2] | TUPLE_SEL_TOK m= INTEGER_LITERAL | TUPLE_PROJECT_TOK nonemptyNumeralList[numerals] |sym= SIMPLE_SYMBOL nonemptyNumeralList[numerals] ) RPAREN_TOK ); |
10603 |
|
*/ |
10604 |
|
static void |
10605 |
6779609 |
identifier(pSmt2Parser ctx, cvc5::ParseOp& p) |
10606 |
|
{ |
10607 |
|
pANTLR3_COMMON_TOKEN m; |
10608 |
|
pANTLR3_COMMON_TOKEN sym; |
10609 |
|
|
10610 |
|
/* Initialize rule variables |
10611 |
|
*/ |
10612 |
|
|
10613 |
|
|
10614 |
13559218 |
cvc5::api::Term f; |
10615 |
13559218 |
cvc5::api::Term f2; |
10616 |
13559218 |
std::vector<uint64_t> numerals; |
10617 |
|
|
10618 |
6779609 |
m = NULL; |
10619 |
6779609 |
sym = NULL; |
10620 |
|
|
10621 |
|
{ |
10622 |
|
{ |
10623 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1636:3: ( functionName[p.d_name, CHECK_NONE] | LPAREN_TOK INDEX_TOK ( TESTER_TOK term[f, f2] | UPDATE_TOK term[f, f2] | TUPLE_SEL_TOK m= INTEGER_LITERAL | TUPLE_PROJECT_TOK nonemptyNumeralList[numerals] |sym= SIMPLE_SYMBOL nonemptyNumeralList[numerals] ) RPAREN_TOK ) |
10624 |
|
|
10625 |
|
ANTLR3_UINT32 alt51; |
10626 |
|
|
10627 |
6779609 |
alt51=2; |
10628 |
|
|
10629 |
6779609 |
switch ( LA(1) ) |
10630 |
|
{ |
10631 |
6701752 |
case QUOTED_SYMBOL: |
10632 |
|
case SIMPLE_SYMBOL: |
10633 |
|
case UNTERMINATED_QUOTED_SYMBOL: |
10634 |
|
{ |
10635 |
6701752 |
alt51=1; |
10636 |
|
} |
10637 |
6701752 |
break; |
10638 |
77857 |
case LPAREN_TOK: |
10639 |
|
{ |
10640 |
77857 |
alt51=2; |
10641 |
|
} |
10642 |
77857 |
break; |
10643 |
|
|
10644 |
|
default: |
10645 |
|
CONSTRUCTEX(); |
10646 |
|
EXCEPTION->type = ANTLR3_NO_VIABLE_ALT_EXCEPTION; |
10647 |
|
EXCEPTION->message = (void *)""; |
10648 |
|
EXCEPTION->decisionNum = 51; |
10649 |
|
EXCEPTION->state = 0; |
10650 |
|
|
10651 |
|
|
10652 |
|
goto ruleidentifierEx; |
10653 |
|
|
10654 |
|
} |
10655 |
|
|
10656 |
6779609 |
switch (alt51) |
10657 |
|
{ |
10658 |
6701752 |
case 1: |
10659 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1636:3: functionName[p.d_name, CHECK_NONE] |
10660 |
|
{ |
10661 |
6701752 |
FOLLOWPUSH(FOLLOW_functionName_in_identifier4094); |
10662 |
6701752 |
functionName(ctx, p.d_name, CHECK_NONE); |
10663 |
|
|
10664 |
6701752 |
FOLLOWPOP(); |
10665 |
6701752 |
if (HASEXCEPTION()) |
10666 |
|
{ |
10667 |
|
goto ruleidentifierEx; |
10668 |
|
} |
10669 |
|
|
10670 |
|
|
10671 |
|
} |
10672 |
6701752 |
break; |
10673 |
77857 |
case 2: |
10674 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1640:5: LPAREN_TOK INDEX_TOK ( TESTER_TOK term[f, f2] | UPDATE_TOK term[f, f2] | TUPLE_SEL_TOK m= INTEGER_LITERAL | TUPLE_PROJECT_TOK nonemptyNumeralList[numerals] |sym= SIMPLE_SYMBOL nonemptyNumeralList[numerals] ) RPAREN_TOK |
10675 |
|
{ |
10676 |
77857 |
MATCHT(LPAREN_TOK, &FOLLOW_LPAREN_TOK_in_identifier4106); |
10677 |
77857 |
if (HASEXCEPTION()) |
10678 |
|
{ |
10679 |
|
goto ruleidentifierEx; |
10680 |
|
} |
10681 |
|
|
10682 |
|
|
10683 |
77857 |
MATCHT(INDEX_TOK, &FOLLOW_INDEX_TOK_in_identifier4108); |
10684 |
77857 |
if (HASEXCEPTION()) |
10685 |
|
{ |
10686 |
|
goto ruleidentifierEx; |
10687 |
|
} |
10688 |
|
|
10689 |
|
|
10690 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1641:5: ( TESTER_TOK term[f, f2] | UPDATE_TOK term[f, f2] | TUPLE_SEL_TOK m= INTEGER_LITERAL | TUPLE_PROJECT_TOK nonemptyNumeralList[numerals] |sym= SIMPLE_SYMBOL nonemptyNumeralList[numerals] ) |
10691 |
|
{ |
10692 |
77857 |
int alt50=5; |
10693 |
77857 |
switch ( LA(1) ) |
10694 |
|
{ |
10695 |
1414 |
case TESTER_TOK: |
10696 |
|
{ |
10697 |
1414 |
alt50=1; |
10698 |
|
} |
10699 |
1414 |
break; |
10700 |
8 |
case UPDATE_TOK: |
10701 |
|
{ |
10702 |
8 |
alt50=2; |
10703 |
|
} |
10704 |
8 |
break; |
10705 |
4 |
case TUPLE_SEL_TOK: |
10706 |
|
{ |
10707 |
4 |
alt50=3; |
10708 |
|
} |
10709 |
4 |
break; |
10710 |
2 |
case TUPLE_PROJECT_TOK: |
10711 |
|
{ |
10712 |
2 |
alt50=4; |
10713 |
|
} |
10714 |
2 |
break; |
10715 |
76429 |
case SIMPLE_SYMBOL: |
10716 |
|
{ |
10717 |
76429 |
alt50=5; |
10718 |
|
} |
10719 |
76429 |
break; |
10720 |
|
|
10721 |
|
default: |
10722 |
|
CONSTRUCTEX(); |
10723 |
|
EXCEPTION->type = ANTLR3_NO_VIABLE_ALT_EXCEPTION; |
10724 |
|
EXCEPTION->message = (void *)""; |
10725 |
|
EXCEPTION->decisionNum = 50; |
10726 |
|
EXCEPTION->state = 0; |
10727 |
|
|
10728 |
|
|
10729 |
|
goto ruleidentifierEx; |
10730 |
|
|
10731 |
|
} |
10732 |
|
|
10733 |
77857 |
switch (alt50) |
10734 |
|
{ |
10735 |
1414 |
case 1: |
10736 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1641:7: TESTER_TOK term[f, f2] |
10737 |
|
{ |
10738 |
1414 |
MATCHT(TESTER_TOK, &FOLLOW_TESTER_TOK_in_identifier4116); |
10739 |
1414 |
if (HASEXCEPTION()) |
10740 |
|
{ |
10741 |
|
goto ruleidentifierEx; |
10742 |
|
} |
10743 |
|
|
10744 |
|
|
10745 |
1414 |
FOLLOWPUSH(FOLLOW_term_in_identifier4118); |
10746 |
1414 |
term(ctx, f, f2); |
10747 |
|
|
10748 |
1414 |
FOLLOWPOP(); |
10749 |
1414 |
if (HASEXCEPTION()) |
10750 |
|
{ |
10751 |
|
goto ruleidentifierEx; |
10752 |
|
} |
10753 |
|
|
10754 |
|
|
10755 |
|
{ |
10756 |
|
|
10757 |
1414 |
if (f.getKind() == api::APPLY_CONSTRUCTOR && f.getNumChildren() == 1) |
10758 |
|
{ |
10759 |
|
// for nullary constructors, must get the operator |
10760 |
396 |
f = f[0]; |
10761 |
|
} |
10762 |
1414 |
if (!f.getSort().isConstructor()) |
10763 |
|
{ |
10764 |
|
PARSER_STATE->parseError( |
10765 |
|
"Bad syntax for test (_ is X), X must be a constructor."); |
10766 |
|
} |
10767 |
|
// get the datatype that f belongs to |
10768 |
2828 |
api::Sort sf = f.getSort().getConstructorCodomainSort(); |
10769 |
2828 |
api::Datatype d = sf.getDatatype(); |
10770 |
|
// lookup by name |
10771 |
2828 |
api::DatatypeConstructor dc = d.getConstructor(f.toString()); |
10772 |
1414 |
p.d_expr = dc.getTesterTerm(); |
10773 |
|
|
10774 |
1414 |
} |
10775 |
|
|
10776 |
|
|
10777 |
|
} |
10778 |
1414 |
break; |
10779 |
8 |
case 2: |
10780 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1660:7: UPDATE_TOK term[f, f2] |
10781 |
|
{ |
10782 |
8 |
MATCHT(UPDATE_TOK, &FOLLOW_UPDATE_TOK_in_identifier4135); |
10783 |
8 |
if (HASEXCEPTION()) |
10784 |
|
{ |
10785 |
|
goto ruleidentifierEx; |
10786 |
|
} |
10787 |
|
|
10788 |
|
|
10789 |
8 |
FOLLOWPUSH(FOLLOW_term_in_identifier4137); |
10790 |
8 |
term(ctx, f, f2); |
10791 |
|
|
10792 |
8 |
FOLLOWPOP(); |
10793 |
8 |
if (HASEXCEPTION()) |
10794 |
|
{ |
10795 |
|
goto ruleidentifierEx; |
10796 |
|
} |
10797 |
|
|
10798 |
|
|
10799 |
|
{ |
10800 |
|
|
10801 |
8 |
if (!f.getSort().isSelector()) |
10802 |
|
{ |
10803 |
|
PARSER_STATE->parseError( |
10804 |
|
"Bad syntax for test (_ update X), X must be a selector."); |
10805 |
|
} |
10806 |
16 |
std::string sname = f.toString(); |
10807 |
|
// get the datatype that f belongs to |
10808 |
16 |
api::Sort sf = f.getSort().getSelectorDomainSort(); |
10809 |
16 |
api::Datatype d = sf.getDatatype(); |
10810 |
|
// find the selector |
10811 |
16 |
api::DatatypeSelector ds = d.getSelector(f.toString()); |
10812 |
|
// get the updater term |
10813 |
8 |
p.d_expr = ds.getUpdaterTerm(); |
10814 |
|
|
10815 |
8 |
} |
10816 |
|
|
10817 |
|
|
10818 |
|
} |
10819 |
8 |
break; |
10820 |
4 |
case 3: |
10821 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1676:7: TUPLE_SEL_TOK m= INTEGER_LITERAL |
10822 |
|
{ |
10823 |
4 |
MATCHT(TUPLE_SEL_TOK, &FOLLOW_TUPLE_SEL_TOK_in_identifier4154); |
10824 |
4 |
if (HASEXCEPTION()) |
10825 |
|
{ |
10826 |
|
goto ruleidentifierEx; |
10827 |
|
} |
10828 |
|
|
10829 |
|
|
10830 |
4 |
m = (pANTLR3_COMMON_TOKEN) MATCHT(INTEGER_LITERAL, &FOLLOW_INTEGER_LITERAL_in_identifier4158); |
10831 |
4 |
if (HASEXCEPTION()) |
10832 |
|
{ |
10833 |
|
goto ruleidentifierEx; |
10834 |
|
} |
10835 |
|
|
10836 |
|
|
10837 |
|
{ |
10838 |
|
|
10839 |
|
// we adopt a special syntax (_ tupSel n) |
10840 |
4 |
p.d_kind = api::APPLY_SELECTOR; |
10841 |
|
// put m in expr so that the caller can deal with this case |
10842 |
4 |
p.d_expr = SOLVER->mkInteger(AntlrInput::tokenToUnsigned(m)); |
10843 |
|
|
10844 |
|
} |
10845 |
|
|
10846 |
|
|
10847 |
|
} |
10848 |
4 |
break; |
10849 |
2 |
case 4: |
10850 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1683:7: TUPLE_PROJECT_TOK nonemptyNumeralList[numerals] |
10851 |
|
{ |
10852 |
2 |
MATCHT(TUPLE_PROJECT_TOK, &FOLLOW_TUPLE_PROJECT_TOK_in_identifier4174); |
10853 |
2 |
if (HASEXCEPTION()) |
10854 |
|
{ |
10855 |
|
goto ruleidentifierEx; |
10856 |
|
} |
10857 |
|
|
10858 |
|
|
10859 |
2 |
FOLLOWPUSH(FOLLOW_nonemptyNumeralList_in_identifier4176); |
10860 |
2 |
nonemptyNumeralList(ctx, numerals); |
10861 |
|
|
10862 |
2 |
FOLLOWPOP(); |
10863 |
2 |
if (HASEXCEPTION()) |
10864 |
|
{ |
10865 |
|
goto ruleidentifierEx; |
10866 |
|
} |
10867 |
|
|
10868 |
|
|
10869 |
|
{ |
10870 |
|
|
10871 |
|
// we adopt a special syntax (_ tuple_project i_1 ... i_n) where |
10872 |
|
// i_1, ..., i_n are numerals |
10873 |
2 |
p.d_kind = api::TUPLE_PROJECT; |
10874 |
4 |
std::vector<uint32_t> indices(numerals.size()); |
10875 |
6 |
for(size_t i = 0; i < numerals.size(); ++i) |
10876 |
|
{ |
10877 |
|
// convert uint64_t to uint32_t |
10878 |
4 |
indices[i] = numerals[i]; |
10879 |
|
} |
10880 |
2 |
p.d_op = SOLVER->mkOp(api::TUPLE_PROJECT, indices); |
10881 |
|
|
10882 |
2 |
} |
10883 |
|
|
10884 |
|
|
10885 |
|
} |
10886 |
2 |
break; |
10887 |
76429 |
case 5: |
10888 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1696:7: sym= SIMPLE_SYMBOL nonemptyNumeralList[numerals] |
10889 |
|
{ |
10890 |
76429 |
sym = (pANTLR3_COMMON_TOKEN) MATCHT(SIMPLE_SYMBOL, &FOLLOW_SIMPLE_SYMBOL_in_identifier4195); |
10891 |
76429 |
if (HASEXCEPTION()) |
10892 |
|
{ |
10893 |
|
goto ruleidentifierEx; |
10894 |
|
} |
10895 |
|
|
10896 |
|
|
10897 |
76429 |
FOLLOWPUSH(FOLLOW_nonemptyNumeralList_in_identifier4197); |
10898 |
76429 |
nonemptyNumeralList(ctx, numerals); |
10899 |
|
|
10900 |
76429 |
FOLLOWPOP(); |
10901 |
76429 |
if (HASEXCEPTION()) |
10902 |
|
{ |
10903 |
|
goto ruleidentifierEx; |
10904 |
|
} |
10905 |
|
|
10906 |
|
|
10907 |
|
{ |
10908 |
|
|
10909 |
76430 |
p.d_op = PARSER_STATE->mkIndexedOp(AntlrInput::tokenText(sym), numerals); |
10910 |
|
|
10911 |
|
} |
10912 |
|
|
10913 |
|
|
10914 |
|
} |
10915 |
76428 |
break; |
10916 |
|
|
10917 |
|
} |
10918 |
|
} |
10919 |
|
|
10920 |
77856 |
MATCHT(RPAREN_TOK, &FOLLOW_RPAREN_TOK_in_identifier4218); |
10921 |
77856 |
if (HASEXCEPTION()) |
10922 |
|
{ |
10923 |
|
goto ruleidentifierEx; |
10924 |
77856 |
} |
10925 |
|
|
10926 |
|
|
10927 |
|
} |
10928 |
77856 |
break; |
10929 |
|
|
10930 |
|
} |
10931 |
|
} |
10932 |
|
} |
10933 |
|
|
10934 |
|
// This is where rules clean up and exit |
10935 |
|
// |
10936 |
6779608 |
goto ruleidentifierEx; /* Prevent compiler warnings */ |
10937 |
6779608 |
ruleidentifierEx: ; |
10938 |
|
|
10939 |
6779608 |
if (HASEXCEPTION()) |
10940 |
|
{ |
10941 |
|
PREPORTERROR(); |
10942 |
|
PRECOVER(); |
10943 |
|
} |
10944 |
13559216 |
return ; |
10945 |
|
} |
10946 |
|
/* $ANTLR end identifier */ |
10947 |
|
|
10948 |
|
/** |
10949 |
|
* $ANTLR start termAtomic |
10950 |
|
* /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1708:1: termAtomic[cvc5::api::Term& atomTerm] : ( INTEGER_LITERAL | DECIMAL_LITERAL | LPAREN_TOK INDEX_TOK ( EMP_TOK sortSymbol[type,CHECK_DECLARED] sortSymbol[type2,CHECK_DECLARED] | CHAR_TOK HEX_LITERAL |sym= SIMPLE_SYMBOL nonemptyNumeralList[numerals] ) RPAREN_TOK | HEX_LITERAL | BINARY_LITERAL | str[s,false] | TUPLE_CONST_TOK ); |
10951 |
|
*/ |
10952 |
|
static void |
10953 |
482828 |
termAtomic(pSmt2Parser ctx, cvc5::api::Term& atomTerm) |
10954 |
|
{ |
10955 |
|
pANTLR3_COMMON_TOKEN sym; |
10956 |
|
pANTLR3_COMMON_TOKEN INTEGER_LITERAL11; |
10957 |
|
pANTLR3_COMMON_TOKEN DECIMAL_LITERAL12; |
10958 |
|
pANTLR3_COMMON_TOKEN HEX_LITERAL13; |
10959 |
|
pANTLR3_COMMON_TOKEN HEX_LITERAL14; |
10960 |
|
pANTLR3_COMMON_TOKEN BINARY_LITERAL15; |
10961 |
|
|
10962 |
|
/* Initialize rule variables |
10963 |
|
*/ |
10964 |
|
|
10965 |
|
|
10966 |
965656 |
cvc5::api::Sort type; |
10967 |
965656 |
cvc5::api::Sort type2; |
10968 |
965656 |
std::string s; |
10969 |
965656 |
std::vector<uint64_t> numerals; |
10970 |
|
|
10971 |
482828 |
sym = NULL; |
10972 |
482828 |
INTEGER_LITERAL11 = NULL; |
10973 |
482828 |
DECIMAL_LITERAL12 = NULL; |
10974 |
482828 |
HEX_LITERAL13 = NULL; |
10975 |
482828 |
HEX_LITERAL14 = NULL; |
10976 |
482828 |
BINARY_LITERAL15 = NULL; |
10977 |
|
|
10978 |
|
{ |
10979 |
|
{ |
10980 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1716:3: ( INTEGER_LITERAL | DECIMAL_LITERAL | LPAREN_TOK INDEX_TOK ( EMP_TOK sortSymbol[type,CHECK_DECLARED] sortSymbol[type2,CHECK_DECLARED] | CHAR_TOK HEX_LITERAL |sym= SIMPLE_SYMBOL nonemptyNumeralList[numerals] ) RPAREN_TOK | HEX_LITERAL | BINARY_LITERAL | str[s,false] | TUPLE_CONST_TOK ) |
10981 |
|
|
10982 |
|
ANTLR3_UINT32 alt53; |
10983 |
|
|
10984 |
482828 |
alt53=7; |
10985 |
|
|
10986 |
482828 |
switch ( LA(1) ) |
10987 |
|
{ |
10988 |
356987 |
case INTEGER_LITERAL: |
10989 |
|
{ |
10990 |
356987 |
alt53=1; |
10991 |
|
} |
10992 |
356987 |
break; |
10993 |
22220 |
case DECIMAL_LITERAL: |
10994 |
|
{ |
10995 |
22220 |
alt53=2; |
10996 |
|
} |
10997 |
22220 |
break; |
10998 |
89130 |
case LPAREN_TOK: |
10999 |
|
{ |
11000 |
89130 |
alt53=3; |
11001 |
|
} |
11002 |
89130 |
break; |
11003 |
4358 |
case HEX_LITERAL: |
11004 |
|
{ |
11005 |
4358 |
alt53=4; |
11006 |
|
} |
11007 |
4358 |
break; |
11008 |
961 |
case BINARY_LITERAL: |
11009 |
|
{ |
11010 |
961 |
alt53=5; |
11011 |
|
} |
11012 |
961 |
break; |
11013 |
9167 |
case STRING_LITERAL: |
11014 |
|
{ |
11015 |
9167 |
alt53=6; |
11016 |
|
} |
11017 |
9167 |
break; |
11018 |
5 |
case TUPLE_CONST_TOK: |
11019 |
|
{ |
11020 |
5 |
alt53=7; |
11021 |
|
} |
11022 |
5 |
break; |
11023 |
|
|
11024 |
|
default: |
11025 |
|
CONSTRUCTEX(); |
11026 |
|
EXCEPTION->type = ANTLR3_NO_VIABLE_ALT_EXCEPTION; |
11027 |
|
EXCEPTION->message = (void *)""; |
11028 |
|
EXCEPTION->decisionNum = 53; |
11029 |
|
EXCEPTION->state = 0; |
11030 |
|
|
11031 |
|
|
11032 |
|
goto ruletermAtomicEx; |
11033 |
|
|
11034 |
|
} |
11035 |
|
|
11036 |
482828 |
switch (alt53) |
11037 |
|
{ |
11038 |
356987 |
case 1: |
11039 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1716:5: INTEGER_LITERAL |
11040 |
|
{ |
11041 |
356987 |
INTEGER_LITERAL11 = (pANTLR3_COMMON_TOKEN) MATCHT(INTEGER_LITERAL, &FOLLOW_INTEGER_LITERAL_in_termAtomic4245); |
11042 |
356987 |
if (HASEXCEPTION()) |
11043 |
|
{ |
11044 |
|
goto ruletermAtomicEx; |
11045 |
|
} |
11046 |
|
|
11047 |
|
|
11048 |
|
{ |
11049 |
|
|
11050 |
713974 |
std::string intStr = AntlrInput::tokenText(INTEGER_LITERAL11); |
11051 |
356987 |
atomTerm = SOLVER->mkInteger(intStr); |
11052 |
|
|
11053 |
356987 |
} |
11054 |
|
|
11055 |
|
|
11056 |
|
} |
11057 |
356987 |
break; |
11058 |
22220 |
case 2: |
11059 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1721:5: DECIMAL_LITERAL |
11060 |
|
{ |
11061 |
22220 |
DECIMAL_LITERAL12 = (pANTLR3_COMMON_TOKEN) MATCHT(DECIMAL_LITERAL, &FOLLOW_DECIMAL_LITERAL_in_termAtomic4257); |
11062 |
22220 |
if (HASEXCEPTION()) |
11063 |
|
{ |
11064 |
|
goto ruletermAtomicEx; |
11065 |
|
} |
11066 |
|
|
11067 |
|
|
11068 |
|
{ |
11069 |
|
|
11070 |
44440 |
std::string realStr = AntlrInput::tokenText(DECIMAL_LITERAL12); |
11071 |
44440 |
atomTerm = SOLVER->ensureTermSort(SOLVER->mkReal(realStr), |
11072 |
44440 |
SOLVER->getRealSort()); |
11073 |
|
|
11074 |
22220 |
} |
11075 |
|
|
11076 |
|
|
11077 |
|
} |
11078 |
22220 |
break; |
11079 |
89130 |
case 3: |
11080 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1730:5: LPAREN_TOK INDEX_TOK ( EMP_TOK sortSymbol[type,CHECK_DECLARED] sortSymbol[type2,CHECK_DECLARED] | CHAR_TOK HEX_LITERAL |sym= SIMPLE_SYMBOL nonemptyNumeralList[numerals] ) RPAREN_TOK |
11081 |
|
{ |
11082 |
89130 |
MATCHT(LPAREN_TOK, &FOLLOW_LPAREN_TOK_in_termAtomic4276); |
11083 |
89130 |
if (HASEXCEPTION()) |
11084 |
|
{ |
11085 |
|
goto ruletermAtomicEx; |
11086 |
|
} |
11087 |
|
|
11088 |
|
|
11089 |
89130 |
MATCHT(INDEX_TOK, &FOLLOW_INDEX_TOK_in_termAtomic4278); |
11090 |
89130 |
if (HASEXCEPTION()) |
11091 |
|
{ |
11092 |
|
goto ruletermAtomicEx; |
11093 |
|
} |
11094 |
|
|
11095 |
|
|
11096 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1731:5: ( EMP_TOK sortSymbol[type,CHECK_DECLARED] sortSymbol[type2,CHECK_DECLARED] | CHAR_TOK HEX_LITERAL |sym= SIMPLE_SYMBOL nonemptyNumeralList[numerals] ) |
11097 |
|
{ |
11098 |
89130 |
int alt52=3; |
11099 |
89130 |
switch ( LA(1) ) |
11100 |
|
{ |
11101 |
49 |
case EMP_TOK: |
11102 |
|
{ |
11103 |
49 |
alt52=1; |
11104 |
|
} |
11105 |
49 |
break; |
11106 |
8 |
case CHAR_TOK: |
11107 |
|
{ |
11108 |
8 |
alt52=2; |
11109 |
|
} |
11110 |
8 |
break; |
11111 |
89073 |
case SIMPLE_SYMBOL: |
11112 |
|
{ |
11113 |
89073 |
alt52=3; |
11114 |
|
} |
11115 |
89073 |
break; |
11116 |
|
|
11117 |
|
default: |
11118 |
|
CONSTRUCTEX(); |
11119 |
|
EXCEPTION->type = ANTLR3_NO_VIABLE_ALT_EXCEPTION; |
11120 |
|
EXCEPTION->message = (void *)""; |
11121 |
|
EXCEPTION->decisionNum = 52; |
11122 |
|
EXCEPTION->state = 0; |
11123 |
|
|
11124 |
|
|
11125 |
|
goto ruletermAtomicEx; |
11126 |
|
|
11127 |
|
} |
11128 |
|
|
11129 |
89130 |
switch (alt52) |
11130 |
|
{ |
11131 |
49 |
case 1: |
11132 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1731:7: EMP_TOK sortSymbol[type,CHECK_DECLARED] sortSymbol[type2,CHECK_DECLARED] |
11133 |
|
{ |
11134 |
49 |
MATCHT(EMP_TOK, &FOLLOW_EMP_TOK_in_termAtomic4286); |
11135 |
49 |
if (HASEXCEPTION()) |
11136 |
|
{ |
11137 |
|
goto ruletermAtomicEx; |
11138 |
|
} |
11139 |
|
|
11140 |
|
|
11141 |
49 |
FOLLOWPUSH(FOLLOW_sortSymbol_in_termAtomic4294); |
11142 |
49 |
sortSymbol(ctx, type, CHECK_DECLARED); |
11143 |
|
|
11144 |
49 |
FOLLOWPOP(); |
11145 |
49 |
if (HASEXCEPTION()) |
11146 |
|
{ |
11147 |
|
goto ruletermAtomicEx; |
11148 |
|
} |
11149 |
|
|
11150 |
|
|
11151 |
49 |
FOLLOWPUSH(FOLLOW_sortSymbol_in_termAtomic4303); |
11152 |
49 |
sortSymbol(ctx, type2, CHECK_DECLARED); |
11153 |
|
|
11154 |
49 |
FOLLOWPOP(); |
11155 |
49 |
if (HASEXCEPTION()) |
11156 |
|
{ |
11157 |
|
goto ruletermAtomicEx; |
11158 |
|
} |
11159 |
|
|
11160 |
|
|
11161 |
|
{ |
11162 |
|
|
11163 |
|
// Empty heap constant in seperation logic |
11164 |
98 |
api::Term v1 = SOLVER->mkConst(api::Sort(type), "_emp1"); |
11165 |
98 |
api::Term v2 = SOLVER->mkConst(api::Sort(type2), "_emp2"); |
11166 |
49 |
atomTerm = SOLVER->mkTerm(api::SEP_EMP, v1, v2); |
11167 |
|
|
11168 |
49 |
} |
11169 |
|
|
11170 |
|
|
11171 |
|
} |
11172 |
49 |
break; |
11173 |
8 |
case 2: |
11174 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1740:7: CHAR_TOK HEX_LITERAL |
11175 |
|
{ |
11176 |
8 |
MATCHT(CHAR_TOK, &FOLLOW_CHAR_TOK_in_termAtomic4320); |
11177 |
8 |
if (HASEXCEPTION()) |
11178 |
|
{ |
11179 |
|
goto ruletermAtomicEx; |
11180 |
|
} |
11181 |
|
|
11182 |
|
|
11183 |
8 |
HEX_LITERAL13 = (pANTLR3_COMMON_TOKEN) MATCHT(HEX_LITERAL, &FOLLOW_HEX_LITERAL_in_termAtomic4322); |
11184 |
8 |
if (HASEXCEPTION()) |
11185 |
|
{ |
11186 |
|
goto ruletermAtomicEx; |
11187 |
|
} |
11188 |
|
|
11189 |
|
|
11190 |
|
{ |
11191 |
|
|
11192 |
16 |
std::string hexStr = AntlrInput::tokenTextSubstr(HEX_LITERAL13, 2); |
11193 |
8 |
atomTerm = PARSER_STATE->mkCharConstant(hexStr); |
11194 |
|
|
11195 |
8 |
} |
11196 |
|
|
11197 |
|
|
11198 |
|
} |
11199 |
8 |
break; |
11200 |
89073 |
case 3: |
11201 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1745:7: sym= SIMPLE_SYMBOL nonemptyNumeralList[numerals] |
11202 |
|
{ |
11203 |
89073 |
sym = (pANTLR3_COMMON_TOKEN) MATCHT(SIMPLE_SYMBOL, &FOLLOW_SIMPLE_SYMBOL_in_termAtomic4341); |
11204 |
89073 |
if (HASEXCEPTION()) |
11205 |
|
{ |
11206 |
|
goto ruletermAtomicEx; |
11207 |
|
} |
11208 |
|
|
11209 |
|
|
11210 |
89073 |
FOLLOWPUSH(FOLLOW_nonemptyNumeralList_in_termAtomic4343); |
11211 |
89073 |
nonemptyNumeralList(ctx, numerals); |
11212 |
|
|
11213 |
89073 |
FOLLOWPOP(); |
11214 |
89073 |
if (HASEXCEPTION()) |
11215 |
|
{ |
11216 |
|
goto ruletermAtomicEx; |
11217 |
|
} |
11218 |
|
|
11219 |
|
|
11220 |
|
{ |
11221 |
|
|
11222 |
89073 |
atomTerm = |
11223 |
178146 |
PARSER_STATE->mkIndexedConstant(AntlrInput::tokenText(sym), |
11224 |
|
numerals); |
11225 |
|
|
11226 |
|
} |
11227 |
|
|
11228 |
|
|
11229 |
|
} |
11230 |
89073 |
break; |
11231 |
|
|
11232 |
|
} |
11233 |
|
} |
11234 |
|
|
11235 |
89130 |
MATCHT(RPAREN_TOK, &FOLLOW_RPAREN_TOK_in_termAtomic4364); |
11236 |
89130 |
if (HASEXCEPTION()) |
11237 |
|
{ |
11238 |
|
goto ruletermAtomicEx; |
11239 |
89130 |
} |
11240 |
|
|
11241 |
|
|
11242 |
|
} |
11243 |
89130 |
break; |
11244 |
4358 |
case 4: |
11245 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1755:5: HEX_LITERAL |
11246 |
|
{ |
11247 |
4358 |
HEX_LITERAL14 = (pANTLR3_COMMON_TOKEN) MATCHT(HEX_LITERAL, &FOLLOW_HEX_LITERAL_in_termAtomic4374); |
11248 |
4358 |
if (HASEXCEPTION()) |
11249 |
|
{ |
11250 |
|
goto ruletermAtomicEx; |
11251 |
|
} |
11252 |
|
|
11253 |
|
|
11254 |
|
{ |
11255 |
|
|
11256 |
4358 |
Assert(AntlrInput::tokenText(HEX_LITERAL14).find("#x") == 0); |
11257 |
8716 |
std::string hexStr = AntlrInput::tokenTextSubstr(HEX_LITERAL14, 2); |
11258 |
4358 |
atomTerm = SOLVER->mkBitVector(hexStr.size() * 4, hexStr, 16); |
11259 |
|
|
11260 |
4358 |
} |
11261 |
|
|
11262 |
|
|
11263 |
|
} |
11264 |
4358 |
break; |
11265 |
961 |
case 5: |
11266 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1761:5: BINARY_LITERAL |
11267 |
|
{ |
11268 |
961 |
BINARY_LITERAL15 = (pANTLR3_COMMON_TOKEN) MATCHT(BINARY_LITERAL, &FOLLOW_BINARY_LITERAL_in_termAtomic4386); |
11269 |
961 |
if (HASEXCEPTION()) |
11270 |
|
{ |
11271 |
|
goto ruletermAtomicEx; |
11272 |
|
} |
11273 |
|
|
11274 |
|
|
11275 |
|
{ |
11276 |
|
|
11277 |
961 |
Assert(AntlrInput::tokenText(BINARY_LITERAL15).find("#b") == 0); |
11278 |
1922 |
std::string binStr = AntlrInput::tokenTextSubstr(BINARY_LITERAL15, 2); |
11279 |
961 |
atomTerm = SOLVER->mkBitVector(binStr.size(), binStr, 2); |
11280 |
|
|
11281 |
961 |
} |
11282 |
|
|
11283 |
|
|
11284 |
|
} |
11285 |
961 |
break; |
11286 |
9167 |
case 6: |
11287 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1769:5: str[s,false] |
11288 |
|
{ |
11289 |
9167 |
FOLLOWPUSH(FOLLOW_str_in_termAtomic4402); |
11290 |
9167 |
str(ctx, s, false); |
11291 |
|
|
11292 |
9167 |
FOLLOWPOP(); |
11293 |
9167 |
if (HASEXCEPTION()) |
11294 |
|
{ |
11295 |
|
goto ruletermAtomicEx; |
11296 |
|
} |
11297 |
|
|
11298 |
|
|
11299 |
|
{ |
11300 |
9167 |
atomTerm = PARSER_STATE->mkStringConstant(s); |
11301 |
|
} |
11302 |
|
|
11303 |
|
|
11304 |
|
} |
11305 |
9167 |
break; |
11306 |
5 |
case 7: |
11307 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1774:5: TUPLE_CONST_TOK |
11308 |
|
{ |
11309 |
5 |
MATCHT(TUPLE_CONST_TOK, &FOLLOW_TUPLE_CONST_TOK_in_termAtomic4419); |
11310 |
5 |
if (HASEXCEPTION()) |
11311 |
|
{ |
11312 |
|
goto ruletermAtomicEx; |
11313 |
|
} |
11314 |
|
|
11315 |
|
|
11316 |
|
{ |
11317 |
|
|
11318 |
10 |
atomTerm = SOLVER->mkTuple(std::vector<api::Sort>(), |
11319 |
10 |
std::vector<api::Term>()); |
11320 |
|
|
11321 |
|
} |
11322 |
|
|
11323 |
|
|
11324 |
|
} |
11325 |
5 |
break; |
11326 |
|
|
11327 |
|
} |
11328 |
|
} |
11329 |
|
} |
11330 |
|
|
11331 |
|
// This is where rules clean up and exit |
11332 |
|
// |
11333 |
482828 |
goto ruletermAtomicEx; /* Prevent compiler warnings */ |
11334 |
482828 |
ruletermAtomicEx: ; |
11335 |
|
|
11336 |
482828 |
if (HASEXCEPTION()) |
11337 |
|
{ |
11338 |
|
PREPORTERROR(); |
11339 |
|
PRECOVER(); |
11340 |
|
} |
11341 |
965656 |
return ; |
11342 |
|
} |
11343 |
|
/* $ANTLR end termAtomic */ |
11344 |
|
|
11345 |
|
/** |
11346 |
|
* $ANTLR start attribute |
11347 |
|
* /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1784:1: attribute[cvc5::api::Term& expr, cvc5::api::Term& retExpr] : ( KEYWORD ( simpleSymbolicExprNoKeyword[s] )? | ( ATTRIBUTE_PATTERN_TOK | ATTRIBUTE_POOL_TOK | ATTRIBUTE_INST_ADD_TO_POOL_TOK | ATTRIBUTE_SKOLEM_ADD_TO_POOL_TOK ) LPAREN_TOK ( term[patexpr, e2] )+ RPAREN_TOK | ATTRIBUTE_NO_PATTERN_TOK term[patexpr, e2] |tok= ( ATTRIBUTE_INST_LEVEL ) INTEGER_LITERAL |tok= ( ATTRIBUTE_QUANTIFIER_ID_TOK ) symbolicExpr[sexpr] | ATTRIBUTE_NAMED_TOK symbolicExpr[sexpr] ); |
11348 |
|
*/ |
11349 |
|
static void |
11350 |
8535 |
attribute(pSmt2Parser ctx, cvc5::api::Term& expr, cvc5::api::Term& retExpr) |
11351 |
|
{ |
11352 |
|
pANTLR3_COMMON_TOKEN tok; |
11353 |
|
pANTLR3_COMMON_TOKEN KEYWORD16; |
11354 |
|
pANTLR3_COMMON_TOKEN INTEGER_LITERAL17; |
11355 |
|
|
11356 |
|
/* Initialize rule variables |
11357 |
|
*/ |
11358 |
|
|
11359 |
|
|
11360 |
17070 |
api::Term sexpr; |
11361 |
17070 |
std::string s; |
11362 |
17070 |
cvc5::api::Term patexpr; |
11363 |
17070 |
std::vector<cvc5::api::Term> patexprs; |
11364 |
17070 |
cvc5::api::Term e2; |
11365 |
8535 |
bool hasValue = false; |
11366 |
|
api::Kind k; |
11367 |
|
|
11368 |
8535 |
tok = NULL; |
11369 |
8535 |
KEYWORD16 = NULL; |
11370 |
8535 |
INTEGER_LITERAL17 = NULL; |
11371 |
|
|
11372 |
|
{ |
11373 |
|
{ |
11374 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1794:3: ( KEYWORD ( simpleSymbolicExprNoKeyword[s] )? | ( ATTRIBUTE_PATTERN_TOK | ATTRIBUTE_POOL_TOK | ATTRIBUTE_INST_ADD_TO_POOL_TOK | ATTRIBUTE_SKOLEM_ADD_TO_POOL_TOK ) LPAREN_TOK ( term[patexpr, e2] )+ RPAREN_TOK | ATTRIBUTE_NO_PATTERN_TOK term[patexpr, e2] |tok= ( ATTRIBUTE_INST_LEVEL ) INTEGER_LITERAL |tok= ( ATTRIBUTE_QUANTIFIER_ID_TOK ) symbolicExpr[sexpr] | ATTRIBUTE_NAMED_TOK symbolicExpr[sexpr] ) |
11375 |
|
|
11376 |
|
ANTLR3_UINT32 alt57; |
11377 |
|
|
11378 |
8535 |
alt57=6; |
11379 |
|
|
11380 |
8535 |
switch ( LA(1) ) |
11381 |
|
{ |
11382 |
161 |
case KEYWORD: |
11383 |
|
{ |
11384 |
161 |
alt57=1; |
11385 |
|
} |
11386 |
161 |
break; |
11387 |
3479 |
case ATTRIBUTE_INST_ADD_TO_POOL_TOK: |
11388 |
|
case ATTRIBUTE_PATTERN_TOK: |
11389 |
|
case ATTRIBUTE_POOL_TOK: |
11390 |
|
case ATTRIBUTE_SKOLEM_ADD_TO_POOL_TOK: |
11391 |
|
{ |
11392 |
3479 |
alt57=2; |
11393 |
|
} |
11394 |
3479 |
break; |
11395 |
8 |
case ATTRIBUTE_NO_PATTERN_TOK: |
11396 |
|
{ |
11397 |
8 |
alt57=3; |
11398 |
|
} |
11399 |
8 |
break; |
11400 |
|
case ATTRIBUTE_INST_LEVEL: |
11401 |
|
{ |
11402 |
|
alt57=4; |
11403 |
|
} |
11404 |
|
break; |
11405 |
214 |
case ATTRIBUTE_QUANTIFIER_ID_TOK: |
11406 |
|
{ |
11407 |
214 |
alt57=5; |
11408 |
|
} |
11409 |
214 |
break; |
11410 |
4673 |
case ATTRIBUTE_NAMED_TOK: |
11411 |
|
{ |
11412 |
4673 |
alt57=6; |
11413 |
|
} |
11414 |
4673 |
break; |
11415 |
|
|
11416 |
|
default: |
11417 |
|
CONSTRUCTEX(); |
11418 |
|
EXCEPTION->type = ANTLR3_NO_VIABLE_ALT_EXCEPTION; |
11419 |
|
EXCEPTION->message = (void *)""; |
11420 |
|
EXCEPTION->decisionNum = 57; |
11421 |
|
EXCEPTION->state = 0; |
11422 |
|
|
11423 |
|
|
11424 |
|
goto ruleattributeEx; |
11425 |
|
|
11426 |
|
} |
11427 |
|
|
11428 |
8535 |
switch (alt57) |
11429 |
|
{ |
11430 |
161 |
case 1: |
11431 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1794:5: KEYWORD ( simpleSymbolicExprNoKeyword[s] )? |
11432 |
|
{ |
11433 |
161 |
KEYWORD16 = (pANTLR3_COMMON_TOKEN) MATCHT(KEYWORD, &FOLLOW_KEYWORD_in_attribute4446); |
11434 |
161 |
if (HASEXCEPTION()) |
11435 |
|
{ |
11436 |
|
goto ruleattributeEx; |
11437 |
|
} |
11438 |
|
|
11439 |
|
|
11440 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1794:13: ( simpleSymbolicExprNoKeyword[s] )? |
11441 |
|
{ |
11442 |
161 |
int alt54=2; |
11443 |
161 |
switch ( LA(1) ) |
11444 |
|
{ |
11445 |
161 |
case ASSERT_TOK: |
11446 |
|
case BINARY_LITERAL: |
11447 |
|
case CHECK_SAT_ASSUMING_TOK: |
11448 |
|
case CHECK_SAT_TOK: |
11449 |
|
case DECIMAL_LITERAL: |
11450 |
|
case DECLARE_DATATYPES_TOK: |
11451 |
|
case DECLARE_FUN_TOK: |
11452 |
|
case DECLARE_SORT_TOK: |
11453 |
|
case DEFINE_FUNS_REC_TOK: |
11454 |
|
case DEFINE_FUN_REC_TOK: |
11455 |
|
case DEFINE_FUN_TOK: |
11456 |
|
case DEFINE_SORT_TOK: |
11457 |
|
case ECHO_TOK: |
11458 |
|
case EXIT_TOK: |
11459 |
|
case GET_ASSERTIONS_TOK: |
11460 |
|
case GET_ASSIGNMENT_TOK: |
11461 |
|
case GET_INFO_TOK: |
11462 |
|
case GET_MODEL_TOK: |
11463 |
|
case GET_OPTION_TOK: |
11464 |
|
case GET_PROOF_TOK: |
11465 |
|
case GET_UNSAT_ASSUMPTIONS_TOK: |
11466 |
|
case GET_UNSAT_CORE_TOK: |
11467 |
|
case GET_VALUE_TOK: |
11468 |
|
case HEX_LITERAL: |
11469 |
|
case INTEGER_LITERAL: |
11470 |
|
case POP_TOK: |
11471 |
|
case PUSH_TOK: |
11472 |
|
case QUOTED_SYMBOL: |
11473 |
|
case RESET_ASSERTIONS_TOK: |
11474 |
|
case RESET_TOK: |
11475 |
|
case SET_INFO_TOK: |
11476 |
|
case SET_LOGIC_TOK: |
11477 |
|
case SET_OPTION_TOK: |
11478 |
|
case SIMPLE_SYMBOL: |
11479 |
|
case SIMPLIFY_TOK: |
11480 |
|
case STRING_LITERAL: |
11481 |
|
case UNTERMINATED_QUOTED_SYMBOL: |
11482 |
|
{ |
11483 |
161 |
alt54=1; |
11484 |
|
} |
11485 |
161 |
break; |
11486 |
|
} |
11487 |
|
|
11488 |
161 |
switch (alt54) |
11489 |
|
{ |
11490 |
161 |
case 1: |
11491 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1794:15: simpleSymbolicExprNoKeyword[s] |
11492 |
|
{ |
11493 |
161 |
FOLLOWPUSH(FOLLOW_simpleSymbolicExprNoKeyword_in_attribute4450); |
11494 |
161 |
simpleSymbolicExprNoKeyword(ctx, s); |
11495 |
|
|
11496 |
161 |
FOLLOWPOP(); |
11497 |
161 |
if (HASEXCEPTION()) |
11498 |
|
{ |
11499 |
|
goto ruleattributeEx; |
11500 |
|
} |
11501 |
|
|
11502 |
|
|
11503 |
|
{ |
11504 |
161 |
hasValue = true; |
11505 |
|
} |
11506 |
|
|
11507 |
|
|
11508 |
|
} |
11509 |
161 |
break; |
11510 |
|
|
11511 |
|
} |
11512 |
|
} |
11513 |
|
|
11514 |
|
{ |
11515 |
|
|
11516 |
161 |
PARSER_STATE->attributeNotSupported(AntlrInput::tokenText(KEYWORD16)); |
11517 |
|
|
11518 |
|
} |
11519 |
|
|
11520 |
|
|
11521 |
|
} |
11522 |
161 |
break; |
11523 |
3479 |
case 2: |
11524 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1798:5: ( ATTRIBUTE_PATTERN_TOK | ATTRIBUTE_POOL_TOK | ATTRIBUTE_INST_ADD_TO_POOL_TOK | ATTRIBUTE_SKOLEM_ADD_TO_POOL_TOK ) LPAREN_TOK ( term[patexpr, e2] )+ RPAREN_TOK |
11525 |
|
{ |
11526 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1798:5: ( ATTRIBUTE_PATTERN_TOK | ATTRIBUTE_POOL_TOK | ATTRIBUTE_INST_ADD_TO_POOL_TOK | ATTRIBUTE_SKOLEM_ADD_TO_POOL_TOK ) |
11527 |
|
{ |
11528 |
3479 |
int alt55=4; |
11529 |
3479 |
switch ( LA(1) ) |
11530 |
|
{ |
11531 |
3467 |
case ATTRIBUTE_PATTERN_TOK: |
11532 |
|
{ |
11533 |
3467 |
alt55=1; |
11534 |
|
} |
11535 |
3467 |
break; |
11536 |
6 |
case ATTRIBUTE_POOL_TOK: |
11537 |
|
{ |
11538 |
6 |
alt55=2; |
11539 |
|
} |
11540 |
6 |
break; |
11541 |
|
case ATTRIBUTE_INST_ADD_TO_POOL_TOK: |
11542 |
|
{ |
11543 |
|
alt55=3; |
11544 |
|
} |
11545 |
|
break; |
11546 |
6 |
case ATTRIBUTE_SKOLEM_ADD_TO_POOL_TOK: |
11547 |
|
{ |
11548 |
6 |
alt55=4; |
11549 |
|
} |
11550 |
6 |
break; |
11551 |
|
|
11552 |
|
default: |
11553 |
|
CONSTRUCTEX(); |
11554 |
|
EXCEPTION->type = ANTLR3_NO_VIABLE_ALT_EXCEPTION; |
11555 |
|
EXCEPTION->message = (void *)""; |
11556 |
|
EXCEPTION->decisionNum = 55; |
11557 |
|
EXCEPTION->state = 0; |
11558 |
|
|
11559 |
|
|
11560 |
|
goto ruleattributeEx; |
11561 |
|
|
11562 |
|
} |
11563 |
|
|
11564 |
3479 |
switch (alt55) |
11565 |
|
{ |
11566 |
3467 |
case 1: |
11567 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1798:7: ATTRIBUTE_PATTERN_TOK |
11568 |
|
{ |
11569 |
3467 |
MATCHT(ATTRIBUTE_PATTERN_TOK, &FOLLOW_ATTRIBUTE_PATTERN_TOK_in_attribute4468); |
11570 |
3467 |
if (HASEXCEPTION()) |
11571 |
|
{ |
11572 |
|
goto ruleattributeEx; |
11573 |
|
} |
11574 |
|
|
11575 |
|
|
11576 |
|
{ |
11577 |
3467 |
k = api::INST_PATTERN; |
11578 |
|
} |
11579 |
|
|
11580 |
|
|
11581 |
|
} |
11582 |
3467 |
break; |
11583 |
6 |
case 2: |
11584 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1799:7: ATTRIBUTE_POOL_TOK |
11585 |
|
{ |
11586 |
6 |
MATCHT(ATTRIBUTE_POOL_TOK, &FOLLOW_ATTRIBUTE_POOL_TOK_in_attribute4480); |
11587 |
6 |
if (HASEXCEPTION()) |
11588 |
|
{ |
11589 |
|
goto ruleattributeEx; |
11590 |
|
} |
11591 |
|
|
11592 |
|
|
11593 |
|
{ |
11594 |
6 |
k = api::INST_POOL; |
11595 |
|
} |
11596 |
|
|
11597 |
|
|
11598 |
|
} |
11599 |
6 |
break; |
11600 |
|
case 3: |
11601 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1800:7: ATTRIBUTE_INST_ADD_TO_POOL_TOK |
11602 |
|
{ |
11603 |
|
MATCHT(ATTRIBUTE_INST_ADD_TO_POOL_TOK, &FOLLOW_ATTRIBUTE_INST_ADD_TO_POOL_TOK_in_attribute4493); |
11604 |
|
if (HASEXCEPTION()) |
11605 |
|
{ |
11606 |
|
goto ruleattributeEx; |
11607 |
|
} |
11608 |
|
|
11609 |
|
|
11610 |
|
{ |
11611 |
|
k = api::INST_ADD_TO_POOL; |
11612 |
|
} |
11613 |
|
|
11614 |
|
|
11615 |
|
} |
11616 |
|
break; |
11617 |
6 |
case 4: |
11618 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1801:7: ATTRIBUTE_SKOLEM_ADD_TO_POOL_TOK |
11619 |
|
{ |
11620 |
6 |
MATCHT(ATTRIBUTE_SKOLEM_ADD_TO_POOL_TOK, &FOLLOW_ATTRIBUTE_SKOLEM_ADD_TO_POOL_TOK_in_attribute4506); |
11621 |
6 |
if (HASEXCEPTION()) |
11622 |
|
{ |
11623 |
|
goto ruleattributeEx; |
11624 |
|
} |
11625 |
|
|
11626 |
|
|
11627 |
|
{ |
11628 |
6 |
k = api::SKOLEM_ADD_TO_POOL; |
11629 |
|
} |
11630 |
|
|
11631 |
|
|
11632 |
|
} |
11633 |
6 |
break; |
11634 |
|
|
11635 |
|
} |
11636 |
|
} |
11637 |
|
|
11638 |
3479 |
MATCHT(LPAREN_TOK, &FOLLOW_LPAREN_TOK_in_attribute4520); |
11639 |
3479 |
if (HASEXCEPTION()) |
11640 |
|
{ |
11641 |
|
goto ruleattributeEx; |
11642 |
|
} |
11643 |
|
|
11644 |
|
|
11645 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1804:5: ( term[patexpr, e2] )+ |
11646 |
|
{ |
11647 |
3479 |
int cnt56=0; |
11648 |
|
|
11649 |
|
for (;;) |
11650 |
|
{ |
11651 |
7174 |
int alt56=2; |
11652 |
7174 |
switch ( LA(1) ) |
11653 |
|
{ |
11654 |
3695 |
case BINARY_LITERAL: |
11655 |
|
case DECIMAL_LITERAL: |
11656 |
|
case HEX_LITERAL: |
11657 |
|
case INTEGER_LITERAL: |
11658 |
|
case LPAREN_TOK: |
11659 |
|
case QUOTED_SYMBOL: |
11660 |
|
case SIMPLE_SYMBOL: |
11661 |
|
case STRING_LITERAL: |
11662 |
|
case TUPLE_CONST_TOK: |
11663 |
|
case UNTERMINATED_QUOTED_SYMBOL: |
11664 |
|
{ |
11665 |
3695 |
alt56=1; |
11666 |
|
} |
11667 |
3695 |
break; |
11668 |
|
|
11669 |
|
} |
11670 |
|
|
11671 |
7174 |
switch (alt56) |
11672 |
|
{ |
11673 |
3695 |
case 1: |
11674 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1804:7: term[patexpr, e2] |
11675 |
|
{ |
11676 |
3695 |
FOLLOWPUSH(FOLLOW_term_in_attribute4528); |
11677 |
3695 |
term(ctx, patexpr, e2); |
11678 |
|
|
11679 |
3695 |
FOLLOWPOP(); |
11680 |
3695 |
if (HASEXCEPTION()) |
11681 |
|
{ |
11682 |
|
goto ruleattributeEx; |
11683 |
|
} |
11684 |
|
|
11685 |
|
|
11686 |
|
{ |
11687 |
3695 |
patexprs.push_back( patexpr ); |
11688 |
|
} |
11689 |
|
|
11690 |
|
|
11691 |
|
} |
11692 |
3695 |
break; |
11693 |
|
|
11694 |
3479 |
default: |
11695 |
|
|
11696 |
3479 |
if ( cnt56 >= 1 ) |
11697 |
|
{ |
11698 |
3479 |
goto loop56; |
11699 |
|
} |
11700 |
|
/* mismatchedSetEx() |
11701 |
|
*/ |
11702 |
|
CONSTRUCTEX(); |
11703 |
|
EXCEPTION->type = ANTLR3_EARLY_EXIT_EXCEPTION; |
11704 |
|
EXCEPTION->name = (void *)ANTLR3_EARLY_EXIT_NAME; |
11705 |
|
|
11706 |
|
|
11707 |
|
goto ruleattributeEx; |
11708 |
|
} |
11709 |
3695 |
cnt56++; |
11710 |
3695 |
} |
11711 |
3479 |
loop56: ; /* Jump to here if this rule does not match */ |
11712 |
|
} |
11713 |
|
|
11714 |
3479 |
MATCHT(RPAREN_TOK, &FOLLOW_RPAREN_TOK_in_attribute4546); |
11715 |
3479 |
if (HASEXCEPTION()) |
11716 |
|
{ |
11717 |
|
goto ruleattributeEx; |
11718 |
|
} |
11719 |
|
|
11720 |
|
|
11721 |
|
{ |
11722 |
|
|
11723 |
3479 |
retExpr = MK_TERM(k, patexprs); |
11724 |
|
|
11725 |
|
} |
11726 |
|
|
11727 |
|
|
11728 |
|
} |
11729 |
3479 |
break; |
11730 |
8 |
case 3: |
11731 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1810:5: ATTRIBUTE_NO_PATTERN_TOK term[patexpr, e2] |
11732 |
|
{ |
11733 |
8 |
MATCHT(ATTRIBUTE_NO_PATTERN_TOK, &FOLLOW_ATTRIBUTE_NO_PATTERN_TOK_in_attribute4558); |
11734 |
8 |
if (HASEXCEPTION()) |
11735 |
|
{ |
11736 |
|
goto ruleattributeEx; |
11737 |
|
} |
11738 |
|
|
11739 |
|
|
11740 |
8 |
FOLLOWPUSH(FOLLOW_term_in_attribute4560); |
11741 |
8 |
term(ctx, patexpr, e2); |
11742 |
|
|
11743 |
8 |
FOLLOWPOP(); |
11744 |
8 |
if (HASEXCEPTION()) |
11745 |
|
{ |
11746 |
|
goto ruleattributeEx; |
11747 |
|
} |
11748 |
|
|
11749 |
|
|
11750 |
|
{ |
11751 |
|
|
11752 |
8 |
retExpr = MK_TERM(api::INST_NO_PATTERN, patexpr); |
11753 |
|
|
11754 |
|
} |
11755 |
|
|
11756 |
|
|
11757 |
|
} |
11758 |
8 |
break; |
11759 |
|
case 4: |
11760 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1814:5: tok= ( ATTRIBUTE_INST_LEVEL ) INTEGER_LITERAL |
11761 |
|
{ |
11762 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1814:9: ( ATTRIBUTE_INST_LEVEL ) |
11763 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1814:11: ATTRIBUTE_INST_LEVEL |
11764 |
|
{ |
11765 |
|
MATCHT(ATTRIBUTE_INST_LEVEL, &FOLLOW_ATTRIBUTE_INST_LEVEL_in_attribute4577); |
11766 |
|
if (HASEXCEPTION()) |
11767 |
|
{ |
11768 |
|
goto ruleattributeEx; |
11769 |
|
} |
11770 |
|
|
11771 |
|
|
11772 |
|
} |
11773 |
|
|
11774 |
|
|
11775 |
|
INTEGER_LITERAL17 = (pANTLR3_COMMON_TOKEN) MATCHT(INTEGER_LITERAL, &FOLLOW_INTEGER_LITERAL_in_attribute4581); |
11776 |
|
if (HASEXCEPTION()) |
11777 |
|
{ |
11778 |
|
goto ruleattributeEx; |
11779 |
|
} |
11780 |
|
|
11781 |
|
|
11782 |
|
{ |
11783 |
|
|
11784 |
|
std::stringstream sIntLit; |
11785 |
|
sIntLit << INTEGER_LITERAL17; |
11786 |
|
api::Term keyword = SOLVER->mkString("quant-inst-max-level"); |
11787 |
|
api::Term n = SOLVER->mkInteger(sIntLit.str()); |
11788 |
|
retExpr = MK_TERM(api::INST_ATTRIBUTE, keyword, n); |
11789 |
|
|
11790 |
|
} |
11791 |
|
|
11792 |
|
|
11793 |
|
} |
11794 |
|
break; |
11795 |
214 |
case 5: |
11796 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1822:5: tok= ( ATTRIBUTE_QUANTIFIER_ID_TOK ) symbolicExpr[sexpr] |
11797 |
|
{ |
11798 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1822:9: ( ATTRIBUTE_QUANTIFIER_ID_TOK ) |
11799 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1822:11: ATTRIBUTE_QUANTIFIER_ID_TOK |
11800 |
|
{ |
11801 |
214 |
MATCHT(ATTRIBUTE_QUANTIFIER_ID_TOK, &FOLLOW_ATTRIBUTE_QUANTIFIER_ID_TOK_in_attribute4597); |
11802 |
214 |
if (HASEXCEPTION()) |
11803 |
|
{ |
11804 |
|
goto ruleattributeEx; |
11805 |
|
} |
11806 |
|
|
11807 |
|
|
11808 |
|
} |
11809 |
|
|
11810 |
|
|
11811 |
214 |
FOLLOWPUSH(FOLLOW_symbolicExpr_in_attribute4601); |
11812 |
214 |
symbolicExpr(ctx, sexpr); |
11813 |
|
|
11814 |
214 |
FOLLOWPOP(); |
11815 |
214 |
if (HASEXCEPTION()) |
11816 |
|
{ |
11817 |
|
goto ruleattributeEx; |
11818 |
|
} |
11819 |
|
|
11820 |
|
|
11821 |
|
{ |
11822 |
|
|
11823 |
428 |
api::Term keyword = SOLVER->mkString("qid"); |
11824 |
428 |
api::Term name = SOLVER->mkString(sexprToString(sexpr)); |
11825 |
214 |
retExpr = MK_TERM(api::INST_ATTRIBUTE, keyword, name); |
11826 |
|
|
11827 |
214 |
} |
11828 |
|
|
11829 |
|
|
11830 |
|
} |
11831 |
214 |
break; |
11832 |
4673 |
case 6: |
11833 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1828:5: ATTRIBUTE_NAMED_TOK symbolicExpr[sexpr] |
11834 |
|
{ |
11835 |
4673 |
MATCHT(ATTRIBUTE_NAMED_TOK, &FOLLOW_ATTRIBUTE_NAMED_TOK_in_attribute4614); |
11836 |
4673 |
if (HASEXCEPTION()) |
11837 |
|
{ |
11838 |
|
goto ruleattributeEx; |
11839 |
|
} |
11840 |
|
|
11841 |
|
|
11842 |
4673 |
FOLLOWPUSH(FOLLOW_symbolicExpr_in_attribute4616); |
11843 |
4673 |
symbolicExpr(ctx, sexpr); |
11844 |
|
|
11845 |
4673 |
FOLLOWPOP(); |
11846 |
4673 |
if (HASEXCEPTION()) |
11847 |
|
{ |
11848 |
|
goto ruleattributeEx; |
11849 |
|
} |
11850 |
|
|
11851 |
|
|
11852 |
|
{ |
11853 |
|
|
11854 |
|
// notify that expression was given a name |
11855 |
4674 |
PARSER_STATE->notifyNamedExpression(expr, sexprToString(sexpr)); |
11856 |
|
|
11857 |
|
} |
11858 |
|
|
11859 |
|
|
11860 |
|
} |
11861 |
4672 |
break; |
11862 |
|
|
11863 |
|
} |
11864 |
|
} |
11865 |
|
} |
11866 |
|
|
11867 |
|
// This is where rules clean up and exit |
11868 |
|
// |
11869 |
8534 |
goto ruleattributeEx; /* Prevent compiler warnings */ |
11870 |
8534 |
ruleattributeEx: ; |
11871 |
|
|
11872 |
8534 |
if (HASEXCEPTION()) |
11873 |
|
{ |
11874 |
|
PREPORTERROR(); |
11875 |
|
PRECOVER(); |
11876 |
|
} |
11877 |
17068 |
return ; |
11878 |
|
} |
11879 |
|
/* $ANTLR end attribute */ |
11880 |
|
|
11881 |
|
/** |
11882 |
|
* $ANTLR start termList |
11883 |
|
* /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1843:1: termList[std::vector<cvc5::api::Term>& formulas, cvc5::api::Term& expr] : ( term[expr, expr2] )+ ; |
11884 |
|
*/ |
11885 |
|
static void |
11886 |
3295910 |
termList(pSmt2Parser ctx, std::vector<cvc5::api::Term>& formulas, cvc5::api::Term& expr) |
11887 |
|
{ |
11888 |
|
|
11889 |
6591820 |
cvc5::api::Term expr2; |
11890 |
|
|
11891 |
|
/* Initialize rule variables |
11892 |
|
*/ |
11893 |
|
|
11894 |
|
{ |
11895 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1847:3: ( ( term[expr, expr2] )+ ) |
11896 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1847:5: ( term[expr, expr2] )+ |
11897 |
|
{ |
11898 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1847:5: ( term[expr, expr2] )+ |
11899 |
|
{ |
11900 |
3295910 |
int cnt58=0; |
11901 |
|
|
11902 |
|
for (;;) |
11903 |
|
{ |
11904 |
10394565 |
int alt58=2; |
11905 |
10394565 |
switch ( LA(1) ) |
11906 |
|
{ |
11907 |
7098682 |
case BINARY_LITERAL: |
11908 |
|
case DECIMAL_LITERAL: |
11909 |
|
case HEX_LITERAL: |
11910 |
|
case INTEGER_LITERAL: |
11911 |
|
case LPAREN_TOK: |
11912 |
|
case QUOTED_SYMBOL: |
11913 |
|
case SIMPLE_SYMBOL: |
11914 |
|
case STRING_LITERAL: |
11915 |
|
case TUPLE_CONST_TOK: |
11916 |
|
case UNTERMINATED_QUOTED_SYMBOL: |
11917 |
|
{ |
11918 |
7098682 |
alt58=1; |
11919 |
|
} |
11920 |
7098682 |
break; |
11921 |
|
|
11922 |
|
} |
11923 |
|
|
11924 |
10394563 |
switch (alt58) |
11925 |
|
{ |
11926 |
7098682 |
case 1: |
11927 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1847:7: term[expr, expr2] |
11928 |
|
{ |
11929 |
7098682 |
FOLLOWPUSH(FOLLOW_term_in_termList4648); |
11930 |
7098682 |
term(ctx, expr, expr2); |
11931 |
|
|
11932 |
7098655 |
FOLLOWPOP(); |
11933 |
7098655 |
if (HASEXCEPTION()) |
11934 |
|
{ |
11935 |
|
goto ruletermListEx; |
11936 |
|
} |
11937 |
|
|
11938 |
|
|
11939 |
|
{ |
11940 |
7098655 |
formulas.push_back(expr); |
11941 |
|
} |
11942 |
|
|
11943 |
|
|
11944 |
|
} |
11945 |
7098655 |
break; |
11946 |
|
|
11947 |
3295881 |
default: |
11948 |
|
|
11949 |
3295881 |
if ( cnt58 >= 1 ) |
11950 |
|
{ |
11951 |
3295879 |
goto loop58; |
11952 |
|
} |
11953 |
|
/* mismatchedSetEx() |
11954 |
|
*/ |
11955 |
2 |
CONSTRUCTEX(); |
11956 |
2 |
EXCEPTION->type = ANTLR3_EARLY_EXIT_EXCEPTION; |
11957 |
2 |
EXCEPTION->name = (void *)ANTLR3_EARLY_EXIT_NAME; |
11958 |
|
|
11959 |
|
|
11960 |
2 |
goto ruletermListEx; |
11961 |
|
} |
11962 |
7098655 |
cnt58++; |
11963 |
7098655 |
} |
11964 |
3295879 |
loop58: ; /* Jump to here if this rule does not match */ |
11965 |
|
} |
11966 |
|
|
11967 |
|
} |
11968 |
|
|
11969 |
|
} |
11970 |
|
|
11971 |
|
// This is where rules clean up and exit |
11972 |
|
// |
11973 |
3295879 |
goto ruletermListEx; /* Prevent compiler warnings */ |
11974 |
3295881 |
ruletermListEx: ; |
11975 |
|
|
11976 |
3295881 |
if (HASEXCEPTION()) |
11977 |
|
{ |
11978 |
2 |
PREPORTERROR(); |
11979 |
|
PRECOVER(); |
11980 |
|
} |
11981 |
6591758 |
return ; |
11982 |
|
} |
11983 |
|
/* $ANTLR end termList */ |
11984 |
|
|
11985 |
|
/** |
11986 |
|
* $ANTLR start str |
11987 |
|
* /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1853:1: str[std::string& s, bool fsmtlib] : STRING_LITERAL ; |
11988 |
|
*/ |
11989 |
|
static void |
11990 |
10183 |
str(pSmt2Parser ctx, std::string& s, bool fsmtlib) |
11991 |
|
{ |
11992 |
|
pANTLR3_COMMON_TOKEN STRING_LITERAL18; |
11993 |
|
|
11994 |
|
/* Initialize rule variables |
11995 |
|
*/ |
11996 |
|
|
11997 |
10183 |
STRING_LITERAL18 = NULL; |
11998 |
|
|
11999 |
|
{ |
12000 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1854:3: ( STRING_LITERAL ) |
12001 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1854:5: STRING_LITERAL |
12002 |
|
{ |
12003 |
10183 |
STRING_LITERAL18 = (pANTLR3_COMMON_TOKEN) MATCHT(STRING_LITERAL, &FOLLOW_STRING_LITERAL_in_str4670); |
12004 |
10183 |
if (HASEXCEPTION()) |
12005 |
|
{ |
12006 |
|
goto rulestrEx; |
12007 |
|
} |
12008 |
|
|
12009 |
|
|
12010 |
|
{ |
12011 |
|
|
12012 |
10183 |
s = AntlrInput::tokenText(STRING_LITERAL18); |
12013 |
|
/* strip off the quotes */ |
12014 |
10183 |
s = s.substr(1, s.size() - 2); |
12015 |
62602 |
for (size_t i = 0; i < s.size(); i++) |
12016 |
|
{ |
12017 |
52419 |
if ((unsigned)s[i] > 127 && !isprint(s[i])) |
12018 |
|
{ |
12019 |
|
PARSER_STATE->parseError( |
12020 |
|
"Extended/unprintable characters are not " |
12021 |
|
"part of SMT-LIB, and they must be encoded " |
12022 |
|
"as escape sequences"); |
12023 |
|
} |
12024 |
|
} |
12025 |
10183 |
if (fsmtlib || PARSER_STATE->escapeDupDblQuote()) |
12026 |
|
{ |
12027 |
10183 |
char* p_orig = strdup(s.c_str()); |
12028 |
10183 |
char *p = p_orig, *q = p_orig; |
12029 |
114977 |
while (*q != '\0') |
12030 |
|
{ |
12031 |
52397 |
if (PARSER_STATE->escapeDupDblQuote() && *q == '"') |
12032 |
|
{ |
12033 |
|
// Handle SMT-LIB >=2.5 standard escape '""'. |
12034 |
22 |
++q; |
12035 |
22 |
Assert(*q == '"'); |
12036 |
|
} |
12037 |
52375 |
else if (!PARSER_STATE->escapeDupDblQuote() && *q == '\\') |
12038 |
|
{ |
12039 |
|
++q; |
12040 |
|
// Handle SMT-LIB 2.0 standard escapes '\\' and '\"'. |
12041 |
|
if (*q != '\\' && *q != '"') |
12042 |
|
{ |
12043 |
|
Assert(*q != '\0'); |
12044 |
|
*p++ = '\\'; |
12045 |
|
} |
12046 |
|
} |
12047 |
52397 |
*p++ = *q++; |
12048 |
|
} |
12049 |
10183 |
*p = '\0'; |
12050 |
10183 |
s = p_orig; |
12051 |
10183 |
free(p_orig); |
12052 |
|
} |
12053 |
|
|
12054 |
|
} |
12055 |
|
|
12056 |
|
|
12057 |
|
} |
12058 |
|
|
12059 |
|
} |
12060 |
|
|
12061 |
|
// This is where rules clean up and exit |
12062 |
|
// |
12063 |
10183 |
goto rulestrEx; /* Prevent compiler warnings */ |
12064 |
10183 |
rulestrEx: ; |
12065 |
|
|
12066 |
10183 |
if (HASEXCEPTION()) |
12067 |
|
{ |
12068 |
|
PREPORTERROR(); |
12069 |
|
PRECOVER(); |
12070 |
|
} |
12071 |
10183 |
return ; |
12072 |
|
} |
12073 |
|
/* $ANTLR end str */ |
12074 |
|
|
12075 |
|
/** |
12076 |
|
* $ANTLR start quantOp |
12077 |
|
* /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1900:1: quantOp[cvc5::api::Kind& kind] : ( EXISTS_TOK | FORALL_TOK ); |
12078 |
|
*/ |
12079 |
|
static void |
12080 |
27933 |
quantOp(pSmt2Parser ctx, cvc5::api::Kind& kind) |
12081 |
|
{ |
12082 |
|
/* Initialize rule variables |
12083 |
|
*/ |
12084 |
|
|
12085 |
|
|
12086 |
27933 |
Debug("parser") << "quant: " << AntlrInput::tokenText(LT(1)) << std::endl; |
12087 |
|
|
12088 |
|
{ |
12089 |
|
{ |
12090 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1904:3: ( EXISTS_TOK | FORALL_TOK ) |
12091 |
|
|
12092 |
|
ANTLR3_UINT32 alt59; |
12093 |
|
|
12094 |
27933 |
alt59=2; |
12095 |
|
|
12096 |
27933 |
switch ( LA(1) ) |
12097 |
|
{ |
12098 |
2035 |
case EXISTS_TOK: |
12099 |
|
{ |
12100 |
2035 |
alt59=1; |
12101 |
|
} |
12102 |
2035 |
break; |
12103 |
25898 |
case FORALL_TOK: |
12104 |
|
{ |
12105 |
25898 |
alt59=2; |
12106 |
|
} |
12107 |
25898 |
break; |
12108 |
|
|
12109 |
|
default: |
12110 |
|
CONSTRUCTEX(); |
12111 |
|
EXCEPTION->type = ANTLR3_NO_VIABLE_ALT_EXCEPTION; |
12112 |
|
EXCEPTION->message = (void *)""; |
12113 |
|
EXCEPTION->decisionNum = 59; |
12114 |
|
EXCEPTION->state = 0; |
12115 |
|
|
12116 |
|
|
12117 |
|
goto rulequantOpEx; |
12118 |
|
|
12119 |
|
} |
12120 |
|
|
12121 |
27933 |
switch (alt59) |
12122 |
|
{ |
12123 |
2035 |
case 1: |
12124 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1904:5: EXISTS_TOK |
12125 |
|
{ |
12126 |
2035 |
MATCHT(EXISTS_TOK, &FOLLOW_EXISTS_TOK_in_quantOp4695); |
12127 |
2035 |
if (HASEXCEPTION()) |
12128 |
|
{ |
12129 |
|
goto rulequantOpEx; |
12130 |
|
} |
12131 |
|
|
12132 |
|
|
12133 |
|
{ |
12134 |
2035 |
kind= api::EXISTS; |
12135 |
|
} |
12136 |
|
|
12137 |
|
|
12138 |
|
} |
12139 |
2035 |
break; |
12140 |
25898 |
case 2: |
12141 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1905:5: FORALL_TOK |
12142 |
|
{ |
12143 |
25898 |
MATCHT(FORALL_TOK, &FOLLOW_FORALL_TOK_in_quantOp4706); |
12144 |
25898 |
if (HASEXCEPTION()) |
12145 |
|
{ |
12146 |
|
goto rulequantOpEx; |
12147 |
|
} |
12148 |
|
|
12149 |
|
|
12150 |
|
{ |
12151 |
25898 |
kind= api::FORALL; |
12152 |
|
} |
12153 |
|
|
12154 |
|
|
12155 |
|
} |
12156 |
25898 |
break; |
12157 |
|
|
12158 |
|
} |
12159 |
|
} |
12160 |
|
} |
12161 |
|
|
12162 |
|
// This is where rules clean up and exit |
12163 |
|
// |
12164 |
27933 |
goto rulequantOpEx; /* Prevent compiler warnings */ |
12165 |
27933 |
rulequantOpEx: ; |
12166 |
|
|
12167 |
27933 |
if (HASEXCEPTION()) |
12168 |
|
{ |
12169 |
|
PREPORTERROR(); |
12170 |
|
PRECOVER(); |
12171 |
|
} |
12172 |
27933 |
return ; |
12173 |
|
} |
12174 |
|
/* $ANTLR end quantOp */ |
12175 |
|
|
12176 |
|
/** |
12177 |
|
* $ANTLR start functionName |
12178 |
|
* /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1912:1: functionName[std::string& name, cvc5::parser::DeclarationCheck check] : symbol[name,check,SYM_VARIABLE] ; |
12179 |
|
*/ |
12180 |
|
static void |
12181 |
6701752 |
functionName(pSmt2Parser ctx, std::string& name, cvc5::parser::DeclarationCheck check) |
12182 |
|
{ |
12183 |
|
/* Initialize rule variables |
12184 |
|
*/ |
12185 |
|
|
12186 |
|
{ |
12187 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1913:3: ( symbol[name,check,SYM_VARIABLE] ) |
12188 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1913:5: symbol[name,check,SYM_VARIABLE] |
12189 |
|
{ |
12190 |
6701752 |
FOLLOWPUSH(FOLLOW_symbol_in_functionName4727); |
12191 |
6701752 |
symbol(ctx, name, check, SYM_VARIABLE); |
12192 |
|
|
12193 |
6701752 |
FOLLOWPOP(); |
12194 |
6701752 |
if (HASEXCEPTION()) |
12195 |
|
{ |
12196 |
|
goto rulefunctionNameEx; |
12197 |
|
} |
12198 |
|
|
12199 |
|
|
12200 |
|
} |
12201 |
|
|
12202 |
|
} |
12203 |
|
|
12204 |
|
// This is where rules clean up and exit |
12205 |
|
// |
12206 |
6701752 |
goto rulefunctionNameEx; /* Prevent compiler warnings */ |
12207 |
6701752 |
rulefunctionNameEx: ; |
12208 |
|
|
12209 |
6701752 |
if (HASEXCEPTION()) |
12210 |
|
{ |
12211 |
|
PREPORTERROR(); |
12212 |
|
PRECOVER(); |
12213 |
|
} |
12214 |
6701752 |
return ; |
12215 |
|
} |
12216 |
|
/* $ANTLR end functionName */ |
12217 |
|
|
12218 |
|
/** |
12219 |
|
* $ANTLR start sortList |
12220 |
|
* /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1920:1: sortList[std::vector<cvc5::api::Sort>& sorts] : ( sortSymbol[t,CHECK_DECLARED] )* ; |
12221 |
|
*/ |
12222 |
|
static void |
12223 |
167338 |
sortList(pSmt2Parser ctx, std::vector<cvc5::api::Sort>& sorts) |
12224 |
|
{ |
12225 |
|
|
12226 |
334676 |
cvc5::api::Sort t; |
12227 |
|
|
12228 |
|
/* Initialize rule variables |
12229 |
|
*/ |
12230 |
|
|
12231 |
|
{ |
12232 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1924:3: ( ( sortSymbol[t,CHECK_DECLARED] )* ) |
12233 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1924:5: ( sortSymbol[t,CHECK_DECLARED] )* |
12234 |
|
{ |
12235 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1924:5: ( sortSymbol[t,CHECK_DECLARED] )* |
12236 |
|
|
12237 |
|
for (;;) |
12238 |
|
{ |
12239 |
231456 |
int alt60=2; |
12240 |
231456 |
switch ( LA(1) ) |
12241 |
|
{ |
12242 |
64119 |
case LPAREN_TOK: |
12243 |
|
case QUOTED_SYMBOL: |
12244 |
|
case SIMPLE_SYMBOL: |
12245 |
|
case UNTERMINATED_QUOTED_SYMBOL: |
12246 |
|
{ |
12247 |
64119 |
alt60=1; |
12248 |
|
} |
12249 |
64119 |
break; |
12250 |
|
|
12251 |
|
} |
12252 |
|
|
12253 |
231456 |
switch (alt60) |
12254 |
|
{ |
12255 |
64119 |
case 1: |
12256 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1924:7: sortSymbol[t,CHECK_DECLARED] |
12257 |
|
{ |
12258 |
64119 |
FOLLOWPUSH(FOLLOW_sortSymbol_in_sortList4751); |
12259 |
64119 |
sortSymbol(ctx, t, CHECK_DECLARED); |
12260 |
|
|
12261 |
64118 |
FOLLOWPOP(); |
12262 |
64118 |
if (HASEXCEPTION()) |
12263 |
|
{ |
12264 |
|
goto rulesortListEx; |
12265 |
|
} |
12266 |
|
|
12267 |
|
|
12268 |
|
{ |
12269 |
64118 |
sorts.push_back(t); |
12270 |
|
} |
12271 |
|
|
12272 |
|
|
12273 |
|
} |
12274 |
64118 |
break; |
12275 |
|
|
12276 |
167337 |
default: |
12277 |
167337 |
goto loop60; /* break out of the loop */ |
12278 |
|
break; |
12279 |
|
} |
12280 |
64118 |
} |
12281 |
167337 |
loop60: ; /* Jump out to here if this rule does not match */ |
12282 |
|
|
12283 |
|
|
12284 |
|
} |
12285 |
|
|
12286 |
|
} |
12287 |
|
|
12288 |
|
// This is where rules clean up and exit |
12289 |
|
// |
12290 |
167337 |
goto rulesortListEx; /* Prevent compiler warnings */ |
12291 |
167337 |
rulesortListEx: ; |
12292 |
|
|
12293 |
167337 |
if (HASEXCEPTION()) |
12294 |
|
{ |
12295 |
|
PREPORTERROR(); |
12296 |
|
PRECOVER(); |
12297 |
|
} |
12298 |
334674 |
return ; |
12299 |
|
} |
12300 |
|
/* $ANTLR end sortList */ |
12301 |
|
|
12302 |
|
/** |
12303 |
|
* $ANTLR start nonemptySortList |
12304 |
|
* /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1927:1: nonemptySortList[std::vector<cvc5::api::Sort>& sorts] : ( sortSymbol[t,CHECK_DECLARED] )+ ; |
12305 |
|
*/ |
12306 |
|
static void |
12307 |
4 |
nonemptySortList(pSmt2Parser ctx, std::vector<cvc5::api::Sort>& sorts) |
12308 |
|
{ |
12309 |
|
|
12310 |
8 |
cvc5::api::Sort t; |
12311 |
|
|
12312 |
|
/* Initialize rule variables |
12313 |
|
*/ |
12314 |
|
|
12315 |
|
{ |
12316 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1931:3: ( ( sortSymbol[t,CHECK_DECLARED] )+ ) |
12317 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1931:5: ( sortSymbol[t,CHECK_DECLARED] )+ |
12318 |
|
{ |
12319 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1931:5: ( sortSymbol[t,CHECK_DECLARED] )+ |
12320 |
|
{ |
12321 |
4 |
int cnt61=0; |
12322 |
|
|
12323 |
|
for (;;) |
12324 |
|
{ |
12325 |
8 |
int alt61=2; |
12326 |
8 |
switch ( LA(1) ) |
12327 |
|
{ |
12328 |
4 |
case LPAREN_TOK: |
12329 |
|
case QUOTED_SYMBOL: |
12330 |
|
case SIMPLE_SYMBOL: |
12331 |
|
case UNTERMINATED_QUOTED_SYMBOL: |
12332 |
|
{ |
12333 |
4 |
alt61=1; |
12334 |
|
} |
12335 |
4 |
break; |
12336 |
|
|
12337 |
|
} |
12338 |
|
|
12339 |
8 |
switch (alt61) |
12340 |
|
{ |
12341 |
4 |
case 1: |
12342 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1931:7: sortSymbol[t,CHECK_DECLARED] |
12343 |
|
{ |
12344 |
4 |
FOLLOWPUSH(FOLLOW_sortSymbol_in_nonemptySortList4778); |
12345 |
4 |
sortSymbol(ctx, t, CHECK_DECLARED); |
12346 |
|
|
12347 |
4 |
FOLLOWPOP(); |
12348 |
4 |
if (HASEXCEPTION()) |
12349 |
|
{ |
12350 |
|
goto rulenonemptySortListEx; |
12351 |
|
} |
12352 |
|
|
12353 |
|
|
12354 |
|
{ |
12355 |
4 |
sorts.push_back(t); |
12356 |
|
} |
12357 |
|
|
12358 |
|
|
12359 |
|
} |
12360 |
4 |
break; |
12361 |
|
|
12362 |
4 |
default: |
12363 |
|
|
12364 |
4 |
if ( cnt61 >= 1 ) |
12365 |
|
{ |
12366 |
4 |
goto loop61; |
12367 |
|
} |
12368 |
|
/* mismatchedSetEx() |
12369 |
|
*/ |
12370 |
|
CONSTRUCTEX(); |
12371 |
|
EXCEPTION->type = ANTLR3_EARLY_EXIT_EXCEPTION; |
12372 |
|
EXCEPTION->name = (void *)ANTLR3_EARLY_EXIT_NAME; |
12373 |
|
|
12374 |
|
|
12375 |
|
goto rulenonemptySortListEx; |
12376 |
|
} |
12377 |
4 |
cnt61++; |
12378 |
4 |
} |
12379 |
4 |
loop61: ; /* Jump to here if this rule does not match */ |
12380 |
|
} |
12381 |
|
|
12382 |
|
} |
12383 |
|
|
12384 |
|
} |
12385 |
|
|
12386 |
|
// This is where rules clean up and exit |
12387 |
|
// |
12388 |
4 |
goto rulenonemptySortListEx; /* Prevent compiler warnings */ |
12389 |
4 |
rulenonemptySortListEx: ; |
12390 |
|
|
12391 |
4 |
if (HASEXCEPTION()) |
12392 |
|
{ |
12393 |
|
PREPORTERROR(); |
12394 |
|
PRECOVER(); |
12395 |
|
} |
12396 |
8 |
return ; |
12397 |
|
} |
12398 |
|
/* $ANTLR end nonemptySortList */ |
12399 |
|
|
12400 |
|
/** |
12401 |
|
* $ANTLR start sortedVarList |
12402 |
|
* /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1938:1: sortedVarList[std::vector<std::pair<std::string, cvc5::api::Sort> >& sortedVars] : ( LPAREN_TOK symbol[name,CHECK_NONE,SYM_VARIABLE] sortSymbol[t,CHECK_DECLARED] RPAREN_TOK )* ; |
12403 |
|
*/ |
12404 |
|
static void |
12405 |
30417 |
sortedVarList(pSmt2Parser ctx, std::vector<std::pair<std::string, cvc5::api::Sort> >& sortedVars) |
12406 |
|
{ |
12407 |
|
|
12408 |
60834 |
std::string name; |
12409 |
60834 |
cvc5::api::Sort t; |
12410 |
|
|
12411 |
|
/* Initialize rule variables |
12412 |
|
*/ |
12413 |
|
|
12414 |
|
{ |
12415 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1943:3: ( ( LPAREN_TOK symbol[name,CHECK_NONE,SYM_VARIABLE] sortSymbol[t,CHECK_DECLARED] RPAREN_TOK )* ) |
12416 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1943:5: ( LPAREN_TOK symbol[name,CHECK_NONE,SYM_VARIABLE] sortSymbol[t,CHECK_DECLARED] RPAREN_TOK )* |
12417 |
|
{ |
12418 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1943:5: ( LPAREN_TOK symbol[name,CHECK_NONE,SYM_VARIABLE] sortSymbol[t,CHECK_DECLARED] RPAREN_TOK )* |
12419 |
|
|
12420 |
|
for (;;) |
12421 |
|
{ |
12422 |
84145 |
int alt62=2; |
12423 |
84145 |
switch ( LA(1) ) |
12424 |
|
{ |
12425 |
53729 |
case LPAREN_TOK: |
12426 |
|
{ |
12427 |
53729 |
alt62=1; |
12428 |
|
} |
12429 |
53729 |
break; |
12430 |
|
|
12431 |
|
} |
12432 |
|
|
12433 |
84145 |
switch (alt62) |
12434 |
|
{ |
12435 |
53729 |
case 1: |
12436 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1943:7: LPAREN_TOK symbol[name,CHECK_NONE,SYM_VARIABLE] sortSymbol[t,CHECK_DECLARED] RPAREN_TOK |
12437 |
|
{ |
12438 |
53729 |
MATCHT(LPAREN_TOK, &FOLLOW_LPAREN_TOK_in_sortedVarList4807); |
12439 |
53729 |
if (HASEXCEPTION()) |
12440 |
|
{ |
12441 |
|
goto rulesortedVarListEx; |
12442 |
|
} |
12443 |
|
|
12444 |
|
|
12445 |
53729 |
FOLLOWPUSH(FOLLOW_symbol_in_sortedVarList4809); |
12446 |
53729 |
symbol(ctx, name, CHECK_NONE, SYM_VARIABLE); |
12447 |
|
|
12448 |
53729 |
FOLLOWPOP(); |
12449 |
53729 |
if (HASEXCEPTION()) |
12450 |
|
{ |
12451 |
|
goto rulesortedVarListEx; |
12452 |
|
} |
12453 |
|
|
12454 |
|
|
12455 |
53729 |
FOLLOWPUSH(FOLLOW_sortSymbol_in_sortedVarList4818); |
12456 |
53729 |
sortSymbol(ctx, t, CHECK_DECLARED); |
12457 |
|
|
12458 |
53728 |
FOLLOWPOP(); |
12459 |
53728 |
if (HASEXCEPTION()) |
12460 |
|
{ |
12461 |
|
goto rulesortedVarListEx; |
12462 |
|
} |
12463 |
|
|
12464 |
|
|
12465 |
53728 |
MATCHT(RPAREN_TOK, &FOLLOW_RPAREN_TOK_in_sortedVarList4821); |
12466 |
53728 |
if (HASEXCEPTION()) |
12467 |
|
{ |
12468 |
|
goto rulesortedVarListEx; |
12469 |
|
} |
12470 |
|
|
12471 |
|
|
12472 |
|
{ |
12473 |
53728 |
sortedVars.push_back(make_pair(name, t)); |
12474 |
|
} |
12475 |
|
|
12476 |
|
|
12477 |
|
} |
12478 |
53728 |
break; |
12479 |
|
|
12480 |
30416 |
default: |
12481 |
30416 |
goto loop62; /* break out of the loop */ |
12482 |
|
break; |
12483 |
|
} |
12484 |
53728 |
} |
12485 |
30416 |
loop62: ; /* Jump out to here if this rule does not match */ |
12486 |
|
|
12487 |
|
|
12488 |
|
} |
12489 |
|
|
12490 |
|
} |
12491 |
|
|
12492 |
|
// This is where rules clean up and exit |
12493 |
|
// |
12494 |
30416 |
goto rulesortedVarListEx; /* Prevent compiler warnings */ |
12495 |
30416 |
rulesortedVarListEx: ; |
12496 |
|
|
12497 |
30416 |
if (HASEXCEPTION()) |
12498 |
|
{ |
12499 |
|
PREPORTERROR(); |
12500 |
|
PRECOVER(); |
12501 |
|
} |
12502 |
60832 |
return ; |
12503 |
|
} |
12504 |
|
/* $ANTLR end sortedVarList */ |
12505 |
|
|
12506 |
|
/** |
12507 |
|
* $ANTLR start boundVarList |
12508 |
|
* /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1953:1: boundVarList[cvc5::api::Term& expr] : LPAREN_TOK sortedVarList[sortedVarNames] RPAREN_TOK ; |
12509 |
|
*/ |
12510 |
|
static void |
12511 |
27980 |
boundVarList(pSmt2Parser ctx, cvc5::api::Term& expr) |
12512 |
|
{ |
12513 |
|
|
12514 |
55960 |
std::vector<std::pair<std::string, cvc5::api::Sort>> sortedVarNames; |
12515 |
|
|
12516 |
|
/* Initialize rule variables |
12517 |
|
*/ |
12518 |
|
|
12519 |
|
{ |
12520 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1957:2: ( LPAREN_TOK sortedVarList[sortedVarNames] RPAREN_TOK ) |
12521 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1957:4: LPAREN_TOK sortedVarList[sortedVarNames] RPAREN_TOK |
12522 |
|
{ |
12523 |
27980 |
MATCHT(LPAREN_TOK, &FOLLOW_LPAREN_TOK_in_boundVarList4856); |
12524 |
27980 |
if (HASEXCEPTION()) |
12525 |
|
{ |
12526 |
|
goto ruleboundVarListEx; |
12527 |
|
} |
12528 |
|
|
12529 |
|
|
12530 |
27980 |
FOLLOWPUSH(FOLLOW_sortedVarList_in_boundVarList4858); |
12531 |
27980 |
sortedVarList(ctx, sortedVarNames); |
12532 |
|
|
12533 |
27979 |
FOLLOWPOP(); |
12534 |
27979 |
if (HASEXCEPTION()) |
12535 |
|
{ |
12536 |
|
goto ruleboundVarListEx; |
12537 |
|
} |
12538 |
|
|
12539 |
|
|
12540 |
27979 |
MATCHT(RPAREN_TOK, &FOLLOW_RPAREN_TOK_in_boundVarList4861); |
12541 |
27979 |
if (HASEXCEPTION()) |
12542 |
|
{ |
12543 |
|
goto ruleboundVarListEx; |
12544 |
|
} |
12545 |
|
|
12546 |
|
|
12547 |
|
{ |
12548 |
|
|
12549 |
|
std::vector<cvc5::api::Term> args = |
12550 |
55958 |
PARSER_STATE->bindBoundVars(sortedVarNames); |
12551 |
27979 |
expr = MK_TERM(api::BOUND_VAR_LIST, args); |
12552 |
|
|
12553 |
|
} |
12554 |
|
|
12555 |
|
|
12556 |
|
} |
12557 |
|
|
12558 |
|
} |
12559 |
|
|
12560 |
|
// This is where rules clean up and exit |
12561 |
|
// |
12562 |
27979 |
goto ruleboundVarListEx; /* Prevent compiler warnings */ |
12563 |
27979 |
ruleboundVarListEx: ; |
12564 |
|
|
12565 |
27979 |
if (HASEXCEPTION()) |
12566 |
|
{ |
12567 |
|
PREPORTERROR(); |
12568 |
|
PRECOVER(); |
12569 |
|
} |
12570 |
55958 |
return ; |
12571 |
|
} |
12572 |
|
/* $ANTLR end boundVarList */ |
12573 |
|
|
12574 |
|
/** |
12575 |
|
* $ANTLR start sortName |
12576 |
|
* /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1969:1: sortName[std::string& name, cvc5::parser::DeclarationCheck check] : symbol[name,check,SYM_SORT] ; |
12577 |
|
*/ |
12578 |
|
static void |
12579 |
267791 |
sortName(pSmt2Parser ctx, std::string& name, cvc5::parser::DeclarationCheck check) |
12580 |
|
{ |
12581 |
|
/* Initialize rule variables |
12582 |
|
*/ |
12583 |
|
|
12584 |
|
{ |
12585 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1970:3: ( symbol[name,check,SYM_SORT] ) |
12586 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1970:5: symbol[name,check,SYM_SORT] |
12587 |
|
{ |
12588 |
267791 |
FOLLOWPUSH(FOLLOW_symbol_in_sortName4881); |
12589 |
267791 |
symbol(ctx, name, check, SYM_SORT); |
12590 |
|
|
12591 |
267791 |
FOLLOWPOP(); |
12592 |
267791 |
if (HASEXCEPTION()) |
12593 |
|
{ |
12594 |
|
goto rulesortNameEx; |
12595 |
|
} |
12596 |
|
|
12597 |
|
|
12598 |
|
} |
12599 |
|
|
12600 |
|
} |
12601 |
|
|
12602 |
|
// This is where rules clean up and exit |
12603 |
|
// |
12604 |
267791 |
goto rulesortNameEx; /* Prevent compiler warnings */ |
12605 |
267791 |
rulesortNameEx: ; |
12606 |
|
|
12607 |
267791 |
if (HASEXCEPTION()) |
12608 |
|
{ |
12609 |
|
PREPORTERROR(); |
12610 |
|
PRECOVER(); |
12611 |
|
} |
12612 |
267791 |
return ; |
12613 |
|
} |
12614 |
|
/* $ANTLR end sortName */ |
12615 |
|
|
12616 |
|
/** |
12617 |
|
* $ANTLR start sortSymbol |
12618 |
|
* /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1973:1: sortSymbol[cvc5::api::Sort& t, cvc5::parser::DeclarationCheck check] : ( sortName[name,CHECK_NONE] | LPAREN_TOK ( INDEX_TOK |) symbol[name,CHECK_NONE,SYM_SORT] ( nonemptyNumeralList[numerals] | sortList[args] ) RPAREN_TOK | LPAREN_TOK HO_ARROW_TOK sortList[args] RPAREN_TOK ); |
12619 |
|
*/ |
12620 |
|
static void |
12621 |
289320 |
sortSymbol(pSmt2Parser ctx, cvc5::api::Sort& t, cvc5::parser::DeclarationCheck check) |
12622 |
|
{ |
12623 |
|
|
12624 |
578640 |
std::string name; |
12625 |
578640 |
std::vector<cvc5::api::Sort> args; |
12626 |
578640 |
std::vector<uint64_t> numerals; |
12627 |
289320 |
bool indexed = false; |
12628 |
|
|
12629 |
|
/* Initialize rule variables |
12630 |
|
*/ |
12631 |
|
|
12632 |
|
{ |
12633 |
|
{ |
12634 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1980:3: ( sortName[name,CHECK_NONE] | LPAREN_TOK ( INDEX_TOK |) symbol[name,CHECK_NONE,SYM_SORT] ( nonemptyNumeralList[numerals] | sortList[args] ) RPAREN_TOK | LPAREN_TOK HO_ARROW_TOK sortList[args] RPAREN_TOK ) |
12635 |
|
|
12636 |
|
ANTLR3_UINT32 alt65; |
12637 |
|
|
12638 |
289320 |
alt65=3; |
12639 |
|
|
12640 |
289320 |
switch ( LA(1) ) |
12641 |
|
{ |
12642 |
267791 |
case QUOTED_SYMBOL: |
12643 |
|
case SIMPLE_SYMBOL: |
12644 |
|
case UNTERMINATED_QUOTED_SYMBOL: |
12645 |
|
{ |
12646 |
267791 |
alt65=1; |
12647 |
|
} |
12648 |
267791 |
break; |
12649 |
21529 |
case LPAREN_TOK: |
12650 |
|
{ |
12651 |
21529 |
switch ( LA(2) ) |
12652 |
|
{ |
12653 |
943 |
case HO_ARROW_TOK: |
12654 |
|
{ |
12655 |
943 |
alt65=3; |
12656 |
|
} |
12657 |
943 |
break; |
12658 |
20586 |
case INDEX_TOK: |
12659 |
|
case QUOTED_SYMBOL: |
12660 |
|
case SIMPLE_SYMBOL: |
12661 |
|
case UNTERMINATED_QUOTED_SYMBOL: |
12662 |
|
{ |
12663 |
20586 |
alt65=2; |
12664 |
|
} |
12665 |
20586 |
break; |
12666 |
|
|
12667 |
|
default: |
12668 |
|
CONSTRUCTEX(); |
12669 |
|
EXCEPTION->type = ANTLR3_NO_VIABLE_ALT_EXCEPTION; |
12670 |
|
EXCEPTION->message = (void *)""; |
12671 |
|
EXCEPTION->decisionNum = 65; |
12672 |
|
EXCEPTION->state = 4; |
12673 |
|
|
12674 |
|
|
12675 |
|
goto rulesortSymbolEx; |
12676 |
|
|
12677 |
|
} |
12678 |
|
|
12679 |
|
} |
12680 |
21529 |
break; |
12681 |
|
|
12682 |
|
default: |
12683 |
|
CONSTRUCTEX(); |
12684 |
|
EXCEPTION->type = ANTLR3_NO_VIABLE_ALT_EXCEPTION; |
12685 |
|
EXCEPTION->message = (void *)""; |
12686 |
|
EXCEPTION->decisionNum = 65; |
12687 |
|
EXCEPTION->state = 0; |
12688 |
|
|
12689 |
|
|
12690 |
|
goto rulesortSymbolEx; |
12691 |
|
|
12692 |
|
} |
12693 |
|
|
12694 |
289320 |
switch (alt65) |
12695 |
|
{ |
12696 |
267791 |
case 1: |
12697 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1980:5: sortName[name,CHECK_NONE] |
12698 |
|
{ |
12699 |
267791 |
FOLLOWPUSH(FOLLOW_sortName_in_sortSymbol4901); |
12700 |
267791 |
sortName(ctx, name, CHECK_NONE); |
12701 |
|
|
12702 |
267791 |
FOLLOWPOP(); |
12703 |
267791 |
if (HASEXCEPTION()) |
12704 |
|
{ |
12705 |
|
goto rulesortSymbolEx; |
12706 |
|
} |
12707 |
|
|
12708 |
|
|
12709 |
|
{ |
12710 |
|
|
12711 |
267791 |
if(check == CHECK_DECLARED || PARSER_STATE->isDeclared(name, SYM_SORT)) { |
12712 |
267791 |
t = PARSER_STATE->getSort(name); |
12713 |
|
} else { |
12714 |
|
t = PARSER_STATE->mkUnresolvedType(name); |
12715 |
|
} |
12716 |
|
|
12717 |
|
} |
12718 |
|
|
12719 |
|
|
12720 |
|
} |
12721 |
267790 |
break; |
12722 |
20586 |
case 2: |
12723 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1988:5: LPAREN_TOK ( INDEX_TOK |) symbol[name,CHECK_NONE,SYM_SORT] ( nonemptyNumeralList[numerals] | sortList[args] ) RPAREN_TOK |
12724 |
|
{ |
12725 |
20586 |
MATCHT(LPAREN_TOK, &FOLLOW_LPAREN_TOK_in_sortSymbol4914); |
12726 |
20586 |
if (HASEXCEPTION()) |
12727 |
|
{ |
12728 |
|
goto rulesortSymbolEx; |
12729 |
|
} |
12730 |
|
|
12731 |
|
|
12732 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1988:16: ( INDEX_TOK |) |
12733 |
|
{ |
12734 |
20586 |
int alt63=2; |
12735 |
20586 |
switch ( LA(1) ) |
12736 |
|
{ |
12737 |
16522 |
case INDEX_TOK: |
12738 |
|
{ |
12739 |
16522 |
alt63=1; |
12740 |
|
} |
12741 |
16522 |
break; |
12742 |
4064 |
case QUOTED_SYMBOL: |
12743 |
|
case SIMPLE_SYMBOL: |
12744 |
|
case UNTERMINATED_QUOTED_SYMBOL: |
12745 |
|
{ |
12746 |
4064 |
alt63=2; |
12747 |
|
} |
12748 |
4064 |
break; |
12749 |
|
|
12750 |
|
default: |
12751 |
|
CONSTRUCTEX(); |
12752 |
|
EXCEPTION->type = ANTLR3_NO_VIABLE_ALT_EXCEPTION; |
12753 |
|
EXCEPTION->message = (void *)""; |
12754 |
|
EXCEPTION->decisionNum = 63; |
12755 |
|
EXCEPTION->state = 0; |
12756 |
|
|
12757 |
|
|
12758 |
|
goto rulesortSymbolEx; |
12759 |
|
|
12760 |
|
} |
12761 |
|
|
12762 |
20586 |
switch (alt63) |
12763 |
|
{ |
12764 |
16522 |
case 1: |
12765 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1988:17: INDEX_TOK |
12766 |
|
{ |
12767 |
16522 |
MATCHT(INDEX_TOK, &FOLLOW_INDEX_TOK_in_sortSymbol4917); |
12768 |
16522 |
if (HASEXCEPTION()) |
12769 |
|
{ |
12770 |
|
goto rulesortSymbolEx; |
12771 |
|
} |
12772 |
|
|
12773 |
|
|
12774 |
|
{ |
12775 |
16522 |
indexed = true; |
12776 |
|
} |
12777 |
|
|
12778 |
|
|
12779 |
|
} |
12780 |
16522 |
break; |
12781 |
4064 |
case 2: |
12782 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1988:47: |
12783 |
|
{ |
12784 |
|
{ |
12785 |
4064 |
indexed = false; |
12786 |
|
} |
12787 |
|
|
12788 |
|
|
12789 |
|
} |
12790 |
4064 |
break; |
12791 |
|
|
12792 |
|
} |
12793 |
|
} |
12794 |
|
|
12795 |
20586 |
FOLLOWPUSH(FOLLOW_symbol_in_sortSymbol4930); |
12796 |
20586 |
symbol(ctx, name, CHECK_NONE, SYM_SORT); |
12797 |
|
|
12798 |
20586 |
FOLLOWPOP(); |
12799 |
20586 |
if (HASEXCEPTION()) |
12800 |
|
{ |
12801 |
|
goto rulesortSymbolEx; |
12802 |
|
} |
12803 |
|
|
12804 |
|
|
12805 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1990:5: ( nonemptyNumeralList[numerals] | sortList[args] ) |
12806 |
|
{ |
12807 |
20586 |
int alt64=2; |
12808 |
20586 |
switch ( LA(1) ) |
12809 |
|
{ |
12810 |
16522 |
case INTEGER_LITERAL: |
12811 |
|
{ |
12812 |
16522 |
alt64=1; |
12813 |
|
} |
12814 |
16522 |
break; |
12815 |
4064 |
case LPAREN_TOK: |
12816 |
|
case QUOTED_SYMBOL: |
12817 |
|
case RPAREN_TOK: |
12818 |
|
case SIMPLE_SYMBOL: |
12819 |
|
case UNTERMINATED_QUOTED_SYMBOL: |
12820 |
|
{ |
12821 |
4064 |
alt64=2; |
12822 |
|
} |
12823 |
4064 |
break; |
12824 |
|
|
12825 |
|
default: |
12826 |
|
CONSTRUCTEX(); |
12827 |
|
EXCEPTION->type = ANTLR3_NO_VIABLE_ALT_EXCEPTION; |
12828 |
|
EXCEPTION->message = (void *)""; |
12829 |
|
EXCEPTION->decisionNum = 64; |
12830 |
|
EXCEPTION->state = 0; |
12831 |
|
|
12832 |
|
|
12833 |
|
goto rulesortSymbolEx; |
12834 |
|
|
12835 |
|
} |
12836 |
|
|
12837 |
20586 |
switch (alt64) |
12838 |
|
{ |
12839 |
16522 |
case 1: |
12840 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:1990:7: nonemptyNumeralList[numerals] |
12841 |
|
{ |
12842 |
16522 |
FOLLOWPUSH(FOLLOW_nonemptyNumeralList_in_sortSymbol4939); |
12843 |
16522 |
nonemptyNumeralList(ctx, numerals); |
12844 |
|
|
12845 |
16522 |
FOLLOWPOP(); |
12846 |
16522 |
if (HASEXCEPTION()) |
12847 |
|
{ |
12848 |
|
goto rulesortSymbolEx; |
12849 |
|
} |
12850 |
|
|
12851 |
|
|
12852 |
|
{ |
12853 |
|
|
12854 |
16522 |
if (!indexed) |
12855 |
|
{ |
12856 |
|
std::stringstream ss; |
12857 |
|
ss << "SMT-LIB requires use of an indexed sort here, e.g. (_ " << name |
12858 |
|
<< " ...)"; |
12859 |
|
PARSER_STATE->parseError(ss.str()); |
12860 |
|
} |
12861 |
16522 |
if( name == "BitVec" ) { |
12862 |
16379 |
if( numerals.size() != 1 ) { |
12863 |
|
PARSER_STATE->parseError("Illegal bitvector type."); |
12864 |
|
} |
12865 |
16379 |
if(numerals.front() == 0) { |
12866 |
|
PARSER_STATE->parseError("Illegal bitvector size: 0"); |
12867 |
|
} |
12868 |
16379 |
t = SOLVER->mkBitVectorSort(numerals.front()); |
12869 |
143 |
} else if ( name == "FloatingPoint" ) { |
12870 |
143 |
if( numerals.size() != 2 ) { |
12871 |
|
PARSER_STATE->parseError("Illegal floating-point type."); |
12872 |
|
} |
12873 |
143 |
if(!validExponentSize(numerals[0])) { |
12874 |
|
PARSER_STATE->parseError("Illegal floating-point exponent size"); |
12875 |
|
} |
12876 |
143 |
if(!validSignificandSize(numerals[1])) { |
12877 |
|
PARSER_STATE->parseError("Illegal floating-point significand size"); |
12878 |
|
} |
12879 |
143 |
t = SOLVER->mkFloatingPointSort(numerals[0],numerals[1]); |
12880 |
|
} else { |
12881 |
|
std::stringstream ss; |
12882 |
|
ss << "unknown indexed sort symbol `" << name << "'"; |
12883 |
|
PARSER_STATE->parseError(ss.str()); |
12884 |
|
} |
12885 |
|
|
12886 |
|
} |
12887 |
|
|
12888 |
|
|
12889 |
|
} |
12890 |
16522 |
break; |
12891 |
4064 |
case 2: |
12892 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:2024:7: sortList[args] |
12893 |
|
{ |
12894 |
4064 |
FOLLOWPUSH(FOLLOW_sortList_in_sortSymbol4956); |
12895 |
4064 |
sortList(ctx, args); |
12896 |
|
|
12897 |
4064 |
FOLLOWPOP(); |
12898 |
4064 |
if (HASEXCEPTION()) |
12899 |
|
{ |
12900 |
|
goto rulesortSymbolEx; |
12901 |
|
} |
12902 |
|
|
12903 |
|
|
12904 |
|
{ |
12905 |
4064 |
if( indexed ) { |
12906 |
|
std::stringstream ss; |
12907 |
|
ss << "Unexpected use of indexing operator `_' before `" << name |
12908 |
|
<< "', try leaving it out"; |
12909 |
|
PARSER_STATE->parseError(ss.str()); |
12910 |
|
} |
12911 |
4064 |
if(args.empty()) { |
12912 |
|
PARSER_STATE->parseError("Extra parentheses around sort name not " |
12913 |
|
"permitted in SMT-LIB"); |
12914 |
6265 |
} else if(name == "Array" && |
12915 |
2201 |
PARSER_STATE->isTheoryEnabled(theory::THEORY_ARRAYS) ) { |
12916 |
2199 |
if(args.size() != 2) { |
12917 |
|
PARSER_STATE->parseError("Illegal array type."); |
12918 |
|
} |
12919 |
2199 |
t = SOLVER->mkArraySort( args[0], args[1] ); |
12920 |
2916 |
} else if(name == "Set" && |
12921 |
1051 |
PARSER_STATE->isTheoryEnabled(theory::THEORY_SETS) ) { |
12922 |
979 |
if(args.size() != 1) { |
12923 |
|
PARSER_STATE->parseError("Illegal set type."); |
12924 |
|
} |
12925 |
979 |
t = SOLVER->mkSetSort( args[0] ); |
12926 |
|
} |
12927 |
968 |
else if(name == "Bag" && |
12928 |
82 |
PARSER_STATE->isTheoryEnabled(theory::THEORY_BAGS) ) { |
12929 |
82 |
if(args.size() != 1) { |
12930 |
|
PARSER_STATE->parseError("Illegal bag type."); |
12931 |
|
} |
12932 |
82 |
t = SOLVER->mkBagSort( args[0] ); |
12933 |
|
} |
12934 |
1020 |
else if(name == "Seq" && !PARSER_STATE->strictModeEnabled() && |
12935 |
216 |
PARSER_STATE->isTheoryEnabled(theory::THEORY_STRINGS) ) { |
12936 |
216 |
if(args.size() != 1) { |
12937 |
|
PARSER_STATE->parseError("Illegal sequence type."); |
12938 |
|
} |
12939 |
216 |
t = SOLVER->mkSequenceSort( args[0] ); |
12940 |
588 |
} else if (name == "Tuple" && !PARSER_STATE->strictModeEnabled()) { |
12941 |
36 |
t = SOLVER->mkTupleSort(args); |
12942 |
574 |
} else if(check == CHECK_DECLARED || |
12943 |
22 |
PARSER_STATE->isDeclared(name, SYM_SORT)) { |
12944 |
552 |
t = PARSER_STATE->getSort(name, args); |
12945 |
|
} else { |
12946 |
|
// make unresolved type |
12947 |
|
if(args.empty()) { |
12948 |
|
t = PARSER_STATE->mkUnresolvedType(name); |
12949 |
|
Debug("parser-param") << "param: make unres type " << name |
12950 |
|
<< std::endl; |
12951 |
|
} else { |
12952 |
|
t = PARSER_STATE->mkUnresolvedTypeConstructor(name,args); |
12953 |
|
t = t.instantiate( args ); |
12954 |
|
Debug("parser-param") |
12955 |
|
<< "param: make unres param type " << name << " " << args.size() |
12956 |
|
<< " " << PARSER_STATE->getArity( name ) << std::endl; |
12957 |
|
} |
12958 |
|
} |
12959 |
|
|
12960 |
|
} |
12961 |
|
|
12962 |
|
|
12963 |
|
} |
12964 |
4062 |
break; |
12965 |
|
|
12966 |
|
} |
12967 |
|
} |
12968 |
|
|
12969 |
20584 |
MATCHT(RPAREN_TOK, &FOLLOW_RPAREN_TOK_in_sortSymbol4973); |
12970 |
20584 |
if (HASEXCEPTION()) |
12971 |
|
{ |
12972 |
|
goto rulesortSymbolEx; |
12973 |
20584 |
} |
12974 |
|
|
12975 |
|
|
12976 |
|
} |
12977 |
20584 |
break; |
12978 |
943 |
case 3: |
12979 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:2081:5: LPAREN_TOK HO_ARROW_TOK sortList[args] RPAREN_TOK |
12980 |
|
{ |
12981 |
943 |
MATCHT(LPAREN_TOK, &FOLLOW_LPAREN_TOK_in_sortSymbol4979); |
12982 |
943 |
if (HASEXCEPTION()) |
12983 |
|
{ |
12984 |
|
goto rulesortSymbolEx; |
12985 |
|
} |
12986 |
|
|
12987 |
|
|
12988 |
943 |
MATCHT(HO_ARROW_TOK, &FOLLOW_HO_ARROW_TOK_in_sortSymbol4981); |
12989 |
943 |
if (HASEXCEPTION()) |
12990 |
|
{ |
12991 |
|
goto rulesortSymbolEx; |
12992 |
|
} |
12993 |
|
|
12994 |
|
|
12995 |
943 |
FOLLOWPUSH(FOLLOW_sortList_in_sortSymbol4983); |
12996 |
943 |
sortList(ctx, args); |
12997 |
|
|
12998 |
943 |
FOLLOWPOP(); |
12999 |
943 |
if (HASEXCEPTION()) |
13000 |
|
{ |
13001 |
|
goto rulesortSymbolEx; |
13002 |
|
} |
13003 |
|
|
13004 |
|
|
13005 |
943 |
MATCHT(RPAREN_TOK, &FOLLOW_RPAREN_TOK_in_sortSymbol4986); |
13006 |
943 |
if (HASEXCEPTION()) |
13007 |
|
{ |
13008 |
|
goto rulesortSymbolEx; |
13009 |
|
} |
13010 |
|
|
13011 |
|
|
13012 |
|
{ |
13013 |
|
|
13014 |
943 |
if(args.size()<2) { |
13015 |
|
PARSER_STATE->parseError("Arrow types must have at least 2 arguments"); |
13016 |
|
} |
13017 |
|
//flatten the type |
13018 |
1886 |
api::Sort rangeType = args.back(); |
13019 |
943 |
args.pop_back(); |
13020 |
943 |
t = PARSER_STATE->mkFlatFunctionType( args, rangeType ); |
13021 |
|
|
13022 |
943 |
} |
13023 |
|
|
13024 |
|
|
13025 |
|
} |
13026 |
943 |
break; |
13027 |
|
|
13028 |
|
} |
13029 |
|
} |
13030 |
|
} |
13031 |
|
|
13032 |
|
// This is where rules clean up and exit |
13033 |
|
// |
13034 |
289317 |
goto rulesortSymbolEx; /* Prevent compiler warnings */ |
13035 |
289317 |
rulesortSymbolEx: ; |
13036 |
|
|
13037 |
289317 |
if (HASEXCEPTION()) |
13038 |
|
{ |
13039 |
|
PREPORTERROR(); |
13040 |
|
PRECOVER(); |
13041 |
|
} |
13042 |
578634 |
return ; |
13043 |
|
} |
13044 |
|
/* $ANTLR end sortSymbol */ |
13045 |
|
|
13046 |
|
/** |
13047 |
|
* $ANTLR start symbolList |
13048 |
|
* /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:2097:1: symbolList[std::vector<std::string>& names,\n cvc5::parser::DeclarationCheck check,\n cvc5::parser::SymbolType type] : ( symbol[id,check,type] )* ; |
13049 |
|
*/ |
13050 |
|
static void |
13051 |
206 |
symbolList(pSmt2Parser ctx, std::vector<std::string>& names, cvc5::parser::DeclarationCheck check, cvc5::parser::SymbolType type) |
13052 |
|
{ |
13053 |
|
|
13054 |
412 |
std::string id; |
13055 |
|
|
13056 |
|
/* Initialize rule variables |
13057 |
|
*/ |
13058 |
|
|
13059 |
|
{ |
13060 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:2103:3: ( ( symbol[id,check,type] )* ) |
13061 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:2103:5: ( symbol[id,check,type] )* |
13062 |
|
{ |
13063 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:2103:5: ( symbol[id,check,type] )* |
13064 |
|
|
13065 |
|
for (;;) |
13066 |
|
{ |
13067 |
208 |
int alt66=2; |
13068 |
208 |
switch ( LA(1) ) |
13069 |
|
{ |
13070 |
2 |
case QUOTED_SYMBOL: |
13071 |
|
case SIMPLE_SYMBOL: |
13072 |
|
case UNTERMINATED_QUOTED_SYMBOL: |
13073 |
|
{ |
13074 |
2 |
alt66=1; |
13075 |
|
} |
13076 |
2 |
break; |
13077 |
|
|
13078 |
|
} |
13079 |
|
|
13080 |
208 |
switch (alt66) |
13081 |
|
{ |
13082 |
2 |
case 1: |
13083 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:2103:7: symbol[id,check,type] |
13084 |
|
{ |
13085 |
2 |
FOLLOWPUSH(FOLLOW_symbol_in_symbolList5015); |
13086 |
2 |
symbol(ctx, id, check, type); |
13087 |
|
|
13088 |
2 |
FOLLOWPOP(); |
13089 |
2 |
if (HASEXCEPTION()) |
13090 |
|
{ |
13091 |
|
goto rulesymbolListEx; |
13092 |
|
} |
13093 |
|
|
13094 |
|
|
13095 |
|
{ |
13096 |
2 |
names.push_back(id); |
13097 |
|
} |
13098 |
|
|
13099 |
|
|
13100 |
|
} |
13101 |
2 |
break; |
13102 |
|
|
13103 |
206 |
default: |
13104 |
206 |
goto loop66; /* break out of the loop */ |
13105 |
|
break; |
13106 |
|
} |
13107 |
2 |
} |
13108 |
206 |
loop66: ; /* Jump out to here if this rule does not match */ |
13109 |
|
|
13110 |
|
|
13111 |
|
} |
13112 |
|
|
13113 |
|
} |
13114 |
|
|
13115 |
|
// This is where rules clean up and exit |
13116 |
|
// |
13117 |
206 |
goto rulesymbolListEx; /* Prevent compiler warnings */ |
13118 |
206 |
rulesymbolListEx: ; |
13119 |
|
|
13120 |
206 |
if (HASEXCEPTION()) |
13121 |
|
{ |
13122 |
|
PREPORTERROR(); |
13123 |
|
PRECOVER(); |
13124 |
|
} |
13125 |
412 |
return ; |
13126 |
|
} |
13127 |
|
/* $ANTLR end symbolList */ |
13128 |
|
|
13129 |
|
/** |
13130 |
|
* $ANTLR start symbol |
13131 |
|
* /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:2112:1: symbol[std::string& id,\n cvc5::parser::DeclarationCheck check,\n cvc5::parser::SymbolType type] : ( SIMPLE_SYMBOL | QUOTED_SYMBOL | UNTERMINATED_QUOTED_SYMBOL ( EOF | '\\\\' ) ); |
13132 |
|
*/ |
13133 |
|
static void |
13134 |
7322104 |
symbol(pSmt2Parser ctx, std::string& id, cvc5::parser::DeclarationCheck check, cvc5::parser::SymbolType type) |
13135 |
|
{ |
13136 |
|
pANTLR3_COMMON_TOKEN SIMPLE_SYMBOL19; |
13137 |
|
pANTLR3_COMMON_TOKEN QUOTED_SYMBOL20; |
13138 |
|
|
13139 |
|
/* Initialize rule variables |
13140 |
|
*/ |
13141 |
|
|
13142 |
7322104 |
SIMPLE_SYMBOL19 = NULL; |
13143 |
7322104 |
QUOTED_SYMBOL20 = NULL; |
13144 |
|
|
13145 |
|
{ |
13146 |
|
{ |
13147 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:2115:3: ( SIMPLE_SYMBOL | QUOTED_SYMBOL | UNTERMINATED_QUOTED_SYMBOL ( EOF | '\\\\' ) ) |
13148 |
|
|
13149 |
|
ANTLR3_UINT32 alt68; |
13150 |
|
|
13151 |
7322104 |
alt68=3; |
13152 |
|
|
13153 |
7322104 |
switch ( LA(1) ) |
13154 |
|
{ |
13155 |
7318697 |
case SIMPLE_SYMBOL: |
13156 |
|
{ |
13157 |
7318697 |
alt68=1; |
13158 |
|
} |
13159 |
7318697 |
break; |
13160 |
3407 |
case QUOTED_SYMBOL: |
13161 |
|
{ |
13162 |
3407 |
alt68=2; |
13163 |
|
} |
13164 |
3407 |
break; |
13165 |
|
case UNTERMINATED_QUOTED_SYMBOL: |
13166 |
|
{ |
13167 |
|
alt68=3; |
13168 |
|
} |
13169 |
|
break; |
13170 |
|
|
13171 |
|
default: |
13172 |
|
CONSTRUCTEX(); |
13173 |
|
EXCEPTION->type = ANTLR3_NO_VIABLE_ALT_EXCEPTION; |
13174 |
|
EXCEPTION->message = (void *)""; |
13175 |
|
EXCEPTION->decisionNum = 68; |
13176 |
|
EXCEPTION->state = 0; |
13177 |
|
|
13178 |
|
|
13179 |
|
goto rulesymbolEx; |
13180 |
|
|
13181 |
|
} |
13182 |
|
|
13183 |
7322104 |
switch (alt68) |
13184 |
|
{ |
13185 |
7318697 |
case 1: |
13186 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:2115:5: SIMPLE_SYMBOL |
13187 |
|
{ |
13188 |
7318697 |
SIMPLE_SYMBOL19 = (pANTLR3_COMMON_TOKEN) MATCHT(SIMPLE_SYMBOL, &FOLLOW_SIMPLE_SYMBOL_in_symbol5037); |
13189 |
7318697 |
if (HASEXCEPTION()) |
13190 |
|
{ |
13191 |
|
goto rulesymbolEx; |
13192 |
|
} |
13193 |
|
|
13194 |
|
|
13195 |
|
{ |
13196 |
7318697 |
id = AntlrInput::tokenText(SIMPLE_SYMBOL19); |
13197 |
7318697 |
if(!PARSER_STATE->isAbstractValue(id)) { |
13198 |
|
// if an abstract value, SmtEngine handles declaration |
13199 |
7318687 |
PARSER_STATE->checkDeclaration(id, check, type); |
13200 |
|
} |
13201 |
|
|
13202 |
|
} |
13203 |
|
|
13204 |
|
|
13205 |
|
} |
13206 |
7318695 |
break; |
13207 |
3407 |
case 2: |
13208 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:2122:5: QUOTED_SYMBOL |
13209 |
|
{ |
13210 |
3407 |
QUOTED_SYMBOL20 = (pANTLR3_COMMON_TOKEN) MATCHT(QUOTED_SYMBOL, &FOLLOW_QUOTED_SYMBOL_in_symbol5049); |
13211 |
3407 |
if (HASEXCEPTION()) |
13212 |
|
{ |
13213 |
|
goto rulesymbolEx; |
13214 |
|
} |
13215 |
|
|
13216 |
|
|
13217 |
|
{ |
13218 |
3407 |
id = AntlrInput::tokenText(QUOTED_SYMBOL20); |
13219 |
|
/* strip off the quotes */ |
13220 |
3407 |
id = id.substr(1, id.size() - 2); |
13221 |
3407 |
if(!PARSER_STATE->isAbstractValue(id)) { |
13222 |
|
// if an abstract value, SmtEngine handles declaration |
13223 |
3407 |
PARSER_STATE->checkDeclaration(id, check, type); |
13224 |
|
} |
13225 |
|
|
13226 |
|
} |
13227 |
|
|
13228 |
|
|
13229 |
|
} |
13230 |
3407 |
break; |
13231 |
|
case 3: |
13232 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:2131:5: UNTERMINATED_QUOTED_SYMBOL ( EOF | '\\\\' ) |
13233 |
|
{ |
13234 |
|
MATCHT(UNTERMINATED_QUOTED_SYMBOL, &FOLLOW_UNTERMINATED_QUOTED_SYMBOL_in_symbol5061); |
13235 |
|
if (HASEXCEPTION()) |
13236 |
|
{ |
13237 |
|
goto rulesymbolEx; |
13238 |
|
} |
13239 |
|
|
13240 |
|
|
13241 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:2132:5: ( EOF | '\\\\' ) |
13242 |
|
{ |
13243 |
|
int alt67=2; |
13244 |
|
switch ( LA(1) ) |
13245 |
|
{ |
13246 |
|
case EOF: |
13247 |
|
{ |
13248 |
|
alt67=1; |
13249 |
|
} |
13250 |
|
break; |
13251 |
|
case 108: |
13252 |
|
{ |
13253 |
|
alt67=2; |
13254 |
|
} |
13255 |
|
break; |
13256 |
|
|
13257 |
|
default: |
13258 |
|
CONSTRUCTEX(); |
13259 |
|
EXCEPTION->type = ANTLR3_NO_VIABLE_ALT_EXCEPTION; |
13260 |
|
EXCEPTION->message = (void *)""; |
13261 |
|
EXCEPTION->decisionNum = 67; |
13262 |
|
EXCEPTION->state = 0; |
13263 |
|
|
13264 |
|
|
13265 |
|
goto rulesymbolEx; |
13266 |
|
|
13267 |
|
} |
13268 |
|
|
13269 |
|
switch (alt67) |
13270 |
|
{ |
13271 |
|
case 1: |
13272 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:2132:7: EOF |
13273 |
|
{ |
13274 |
|
MATCHT(EOF, &FOLLOW_EOF_in_symbol5069); |
13275 |
|
if (HASEXCEPTION()) |
13276 |
|
{ |
13277 |
|
goto rulesymbolEx; |
13278 |
|
} |
13279 |
|
|
13280 |
|
|
13281 |
|
{ |
13282 |
|
PARSER_STATE->unexpectedEOF("unterminated |quoted| symbol"); |
13283 |
|
} |
13284 |
|
|
13285 |
|
|
13286 |
|
} |
13287 |
|
break; |
13288 |
|
case 2: |
13289 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:2134:7: '\\\\' |
13290 |
|
{ |
13291 |
|
MATCHT(108, &FOLLOW_108_in_symbol5085); |
13292 |
|
if (HASEXCEPTION()) |
13293 |
|
{ |
13294 |
|
goto rulesymbolEx; |
13295 |
|
} |
13296 |
|
|
13297 |
|
|
13298 |
|
{ |
13299 |
|
PARSER_STATE->unexpectedEOF("backslash not permitted in |quoted| " |
13300 |
|
"symbol"); |
13301 |
|
} |
13302 |
|
|
13303 |
|
|
13304 |
|
} |
13305 |
|
break; |
13306 |
|
|
13307 |
|
} |
13308 |
|
} |
13309 |
|
|
13310 |
|
} |
13311 |
|
break; |
13312 |
|
|
13313 |
|
} |
13314 |
|
} |
13315 |
|
} |
13316 |
|
|
13317 |
|
// This is where rules clean up and exit |
13318 |
|
// |
13319 |
7322102 |
goto rulesymbolEx; /* Prevent compiler warnings */ |
13320 |
7322102 |
rulesymbolEx: ; |
13321 |
|
|
13322 |
7322102 |
if (HASEXCEPTION()) |
13323 |
|
{ |
13324 |
|
PREPORTERROR(); |
13325 |
|
PRECOVER(); |
13326 |
|
} |
13327 |
7322102 |
return ; |
13328 |
|
} |
13329 |
|
/* $ANTLR end symbol */ |
13330 |
|
|
13331 |
|
/** |
13332 |
|
* $ANTLR start nonemptyNumeralList |
13333 |
|
* /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:2144:1: nonemptyNumeralList[std::vector<uint64_t>& numerals] : ( INTEGER_LITERAL )+ ; |
13334 |
|
*/ |
13335 |
|
static void |
13336 |
182026 |
nonemptyNumeralList(pSmt2Parser ctx, std::vector<uint64_t>& numerals) |
13337 |
|
{ |
13338 |
|
pANTLR3_COMMON_TOKEN INTEGER_LITERAL21; |
13339 |
|
|
13340 |
|
/* Initialize rule variables |
13341 |
|
*/ |
13342 |
|
|
13343 |
182026 |
INTEGER_LITERAL21 = NULL; |
13344 |
|
|
13345 |
|
{ |
13346 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:2145:3: ( ( INTEGER_LITERAL )+ ) |
13347 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:2145:5: ( INTEGER_LITERAL )+ |
13348 |
|
{ |
13349 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:2145:5: ( INTEGER_LITERAL )+ |
13350 |
|
{ |
13351 |
182026 |
int cnt69=0; |
13352 |
|
|
13353 |
|
for (;;) |
13354 |
|
{ |
13355 |
376469 |
int alt69=2; |
13356 |
376469 |
switch ( LA(1) ) |
13357 |
|
{ |
13358 |
194443 |
case INTEGER_LITERAL: |
13359 |
|
{ |
13360 |
194443 |
alt69=1; |
13361 |
|
} |
13362 |
194443 |
break; |
13363 |
|
|
13364 |
|
} |
13365 |
|
|
13366 |
376469 |
switch (alt69) |
13367 |
|
{ |
13368 |
194443 |
case 1: |
13369 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:2145:7: INTEGER_LITERAL |
13370 |
|
{ |
13371 |
194443 |
INTEGER_LITERAL21 = (pANTLR3_COMMON_TOKEN) MATCHT(INTEGER_LITERAL, &FOLLOW_INTEGER_LITERAL_in_nonemptyNumeralList5117); |
13372 |
194443 |
if (HASEXCEPTION()) |
13373 |
|
{ |
13374 |
|
goto rulenonemptyNumeralListEx; |
13375 |
|
} |
13376 |
|
|
13377 |
|
|
13378 |
|
{ |
13379 |
194443 |
numerals.push_back(AntlrInput::tokenToUnsigned(INTEGER_LITERAL21)); |
13380 |
|
} |
13381 |
|
|
13382 |
|
|
13383 |
|
} |
13384 |
194443 |
break; |
13385 |
|
|
13386 |
182026 |
default: |
13387 |
|
|
13388 |
182026 |
if ( cnt69 >= 1 ) |
13389 |
|
{ |
13390 |
182026 |
goto loop69; |
13391 |
|
} |
13392 |
|
/* mismatchedSetEx() |
13393 |
|
*/ |
13394 |
|
CONSTRUCTEX(); |
13395 |
|
EXCEPTION->type = ANTLR3_EARLY_EXIT_EXCEPTION; |
13396 |
|
EXCEPTION->name = (void *)ANTLR3_EARLY_EXIT_NAME; |
13397 |
|
|
13398 |
|
|
13399 |
|
goto rulenonemptyNumeralListEx; |
13400 |
|
} |
13401 |
194443 |
cnt69++; |
13402 |
194443 |
} |
13403 |
182026 |
loop69: ; /* Jump to here if this rule does not match */ |
13404 |
|
} |
13405 |
|
|
13406 |
|
} |
13407 |
|
|
13408 |
|
} |
13409 |
|
|
13410 |
|
// This is where rules clean up and exit |
13411 |
|
// |
13412 |
182026 |
goto rulenonemptyNumeralListEx; /* Prevent compiler warnings */ |
13413 |
182026 |
rulenonemptyNumeralListEx: ; |
13414 |
|
|
13415 |
182026 |
if (HASEXCEPTION()) |
13416 |
|
{ |
13417 |
|
PREPORTERROR(); |
13418 |
|
PRECOVER(); |
13419 |
|
} |
13420 |
182026 |
return ; |
13421 |
|
} |
13422 |
|
/* $ANTLR end nonemptyNumeralList */ |
13423 |
|
|
13424 |
|
/** |
13425 |
|
* $ANTLR start datatypeDef |
13426 |
|
* /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:2153:1: datatypeDef[bool isCo, std::vector<cvc5::api::DatatypeDecl>& datatypes,\n std::vector< cvc5::api::Sort >& params] : symbol[id,CHECK_NONE,SYM_SORT] ( LPAREN_TOK constructorDef[datatypes.back()] RPAREN_TOK )+ ; |
13427 |
|
*/ |
13428 |
|
static void |
13429 |
|
datatypeDef(pSmt2Parser ctx, bool isCo, std::vector<cvc5::api::DatatypeDecl>& datatypes, std::vector< cvc5::api::Sort >& params) |
13430 |
|
{ |
13431 |
|
/* Initialize rule variables |
13432 |
|
*/ |
13433 |
|
|
13434 |
|
|
13435 |
|
std::string id; |
13436 |
|
|
13437 |
|
{ |
13438 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:2162:3: ( symbol[id,CHECK_NONE,SYM_SORT] ( LPAREN_TOK constructorDef[datatypes.back()] RPAREN_TOK )+ ) |
13439 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:2162:5: symbol[id,CHECK_NONE,SYM_SORT] ( LPAREN_TOK constructorDef[datatypes.back()] RPAREN_TOK )+ |
13440 |
|
{ |
13441 |
|
FOLLOWPUSH(FOLLOW_symbol_in_datatypeDef5159); |
13442 |
|
symbol(ctx, id, CHECK_NONE, SYM_SORT); |
13443 |
|
|
13444 |
|
FOLLOWPOP(); |
13445 |
|
if (HASEXCEPTION()) |
13446 |
|
{ |
13447 |
|
goto ruledatatypeDefEx; |
13448 |
|
} |
13449 |
|
|
13450 |
|
|
13451 |
|
{ |
13452 |
|
PARSER_STATE->pushScope(); |
13453 |
|
} |
13454 |
|
|
13455 |
|
|
13456 |
|
{ |
13457 |
|
|
13458 |
|
datatypes.push_back(SOLVER->mkDatatypeDecl(id, params, isCo)); |
13459 |
|
|
13460 |
|
} |
13461 |
|
|
13462 |
|
|
13463 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:2166:5: ( LPAREN_TOK constructorDef[datatypes.back()] RPAREN_TOK )+ |
13464 |
|
{ |
13465 |
|
int cnt70=0; |
13466 |
|
|
13467 |
|
for (;;) |
13468 |
|
{ |
13469 |
|
int alt70=2; |
13470 |
|
switch ( LA(1) ) |
13471 |
|
{ |
13472 |
|
case LPAREN_TOK: |
13473 |
|
{ |
13474 |
|
alt70=1; |
13475 |
|
} |
13476 |
|
break; |
13477 |
|
|
13478 |
|
} |
13479 |
|
|
13480 |
|
switch (alt70) |
13481 |
|
{ |
13482 |
|
case 1: |
13483 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:2166:7: LPAREN_TOK constructorDef[datatypes.back()] RPAREN_TOK |
13484 |
|
{ |
13485 |
|
MATCHT(LPAREN_TOK, &FOLLOW_LPAREN_TOK_in_datatypeDef5176); |
13486 |
|
if (HASEXCEPTION()) |
13487 |
|
{ |
13488 |
|
goto ruledatatypeDefEx; |
13489 |
|
} |
13490 |
|
|
13491 |
|
|
13492 |
|
FOLLOWPUSH(FOLLOW_constructorDef_in_datatypeDef5178); |
13493 |
|
constructorDef(ctx, datatypes.back()); |
13494 |
|
|
13495 |
|
FOLLOWPOP(); |
13496 |
|
if (HASEXCEPTION()) |
13497 |
|
{ |
13498 |
|
goto ruledatatypeDefEx; |
13499 |
|
} |
13500 |
|
|
13501 |
|
|
13502 |
|
MATCHT(RPAREN_TOK, &FOLLOW_RPAREN_TOK_in_datatypeDef5181); |
13503 |
|
if (HASEXCEPTION()) |
13504 |
|
{ |
13505 |
|
goto ruledatatypeDefEx; |
13506 |
|
} |
13507 |
|
|
13508 |
|
|
13509 |
|
} |
13510 |
|
break; |
13511 |
|
|
13512 |
|
default: |
13513 |
|
|
13514 |
|
if ( cnt70 >= 1 ) |
13515 |
|
{ |
13516 |
|
goto loop70; |
13517 |
|
} |
13518 |
|
/* mismatchedSetEx() |
13519 |
|
*/ |
13520 |
|
CONSTRUCTEX(); |
13521 |
|
EXCEPTION->type = ANTLR3_EARLY_EXIT_EXCEPTION; |
13522 |
|
EXCEPTION->name = (void *)ANTLR3_EARLY_EXIT_NAME; |
13523 |
|
|
13524 |
|
|
13525 |
|
goto ruledatatypeDefEx; |
13526 |
|
} |
13527 |
|
cnt70++; |
13528 |
|
} |
13529 |
|
loop70: ; /* Jump to here if this rule does not match */ |
13530 |
|
} |
13531 |
|
|
13532 |
|
{ |
13533 |
|
PARSER_STATE->popScope(); |
13534 |
|
} |
13535 |
|
|
13536 |
|
|
13537 |
|
} |
13538 |
|
|
13539 |
|
} |
13540 |
|
|
13541 |
|
// This is where rules clean up and exit |
13542 |
|
// |
13543 |
|
goto ruledatatypeDefEx; /* Prevent compiler warnings */ |
13544 |
|
ruledatatypeDefEx: ; |
13545 |
|
|
13546 |
|
if (HASEXCEPTION()) |
13547 |
|
{ |
13548 |
|
PREPORTERROR(); |
13549 |
|
PRECOVER(); |
13550 |
|
} |
13551 |
|
return ; |
13552 |
|
} |
13553 |
|
/* $ANTLR end datatypeDef */ |
13554 |
|
|
13555 |
|
/** |
13556 |
|
* $ANTLR start constructorDef |
13557 |
|
* /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:2173:1: constructorDef[cvc5::api::DatatypeDecl& type] : symbol[id,CHECK_NONE,SYM_VARIABLE] ( LPAREN_TOK selector[*ctor] RPAREN_TOK )* ; |
13558 |
|
*/ |
13559 |
|
static void |
13560 |
2193 |
constructorDef(pSmt2Parser ctx, cvc5::api::DatatypeDecl& type) |
13561 |
|
{ |
13562 |
|
/* Initialize rule variables |
13563 |
|
*/ |
13564 |
|
|
13565 |
|
|
13566 |
4386 |
std::string id; |
13567 |
2193 |
cvc5::api::DatatypeConstructorDecl* ctor = NULL; |
13568 |
|
|
13569 |
|
{ |
13570 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:2178:3: ( symbol[id,CHECK_NONE,SYM_VARIABLE] ( LPAREN_TOK selector[*ctor] RPAREN_TOK )* ) |
13571 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:2178:5: symbol[id,CHECK_NONE,SYM_VARIABLE] ( LPAREN_TOK selector[*ctor] RPAREN_TOK )* |
13572 |
|
{ |
13573 |
2193 |
FOLLOWPUSH(FOLLOW_symbol_in_constructorDef5211); |
13574 |
2193 |
symbol(ctx, id, CHECK_NONE, SYM_VARIABLE); |
13575 |
|
|
13576 |
2193 |
FOLLOWPOP(); |
13577 |
2193 |
if (HASEXCEPTION()) |
13578 |
|
{ |
13579 |
|
goto ruleconstructorDefEx; |
13580 |
|
} |
13581 |
|
|
13582 |
|
|
13583 |
|
{ |
13584 |
|
|
13585 |
2193 |
ctor = new api::DatatypeConstructorDecl( |
13586 |
2193 |
SOLVER->mkDatatypeConstructorDecl(id)); |
13587 |
|
|
13588 |
|
} |
13589 |
|
|
13590 |
|
|
13591 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:2183:5: ( LPAREN_TOK selector[*ctor] RPAREN_TOK )* |
13592 |
|
|
13593 |
|
for (;;) |
13594 |
|
{ |
13595 |
4586 |
int alt71=2; |
13596 |
4586 |
switch ( LA(1) ) |
13597 |
|
{ |
13598 |
2393 |
case LPAREN_TOK: |
13599 |
|
{ |
13600 |
2393 |
alt71=1; |
13601 |
|
} |
13602 |
2393 |
break; |
13603 |
|
|
13604 |
|
} |
13605 |
|
|
13606 |
4586 |
switch (alt71) |
13607 |
|
{ |
13608 |
2393 |
case 1: |
13609 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:2183:7: LPAREN_TOK selector[*ctor] RPAREN_TOK |
13610 |
|
{ |
13611 |
2393 |
MATCHT(LPAREN_TOK, &FOLLOW_LPAREN_TOK_in_constructorDef5226); |
13612 |
2393 |
if (HASEXCEPTION()) |
13613 |
|
{ |
13614 |
|
goto ruleconstructorDefEx; |
13615 |
|
} |
13616 |
|
|
13617 |
|
|
13618 |
2393 |
FOLLOWPUSH(FOLLOW_selector_in_constructorDef5228); |
13619 |
2393 |
selector(ctx, *ctor); |
13620 |
|
|
13621 |
2393 |
FOLLOWPOP(); |
13622 |
2393 |
if (HASEXCEPTION()) |
13623 |
|
{ |
13624 |
|
goto ruleconstructorDefEx; |
13625 |
|
} |
13626 |
|
|
13627 |
|
|
13628 |
2393 |
MATCHT(RPAREN_TOK, &FOLLOW_RPAREN_TOK_in_constructorDef5231); |
13629 |
2393 |
if (HASEXCEPTION()) |
13630 |
|
{ |
13631 |
|
goto ruleconstructorDefEx; |
13632 |
|
} |
13633 |
|
|
13634 |
|
|
13635 |
|
} |
13636 |
2393 |
break; |
13637 |
|
|
13638 |
2193 |
default: |
13639 |
2193 |
goto loop71; /* break out of the loop */ |
13640 |
|
break; |
13641 |
|
} |
13642 |
2393 |
} |
13643 |
2193 |
loop71: ; /* Jump out to here if this rule does not match */ |
13644 |
|
|
13645 |
|
|
13646 |
|
{ |
13647 |
|
// make the constructor |
13648 |
2193 |
type.addConstructor(*ctor); |
13649 |
2193 |
Debug("parser-idt") << "constructor: " << id.c_str() << std::endl; |
13650 |
2193 |
delete ctor; |
13651 |
|
|
13652 |
|
} |
13653 |
|
|
13654 |
|
|
13655 |
|
} |
13656 |
|
|
13657 |
|
} |
13658 |
|
|
13659 |
|
// This is where rules clean up and exit |
13660 |
|
// |
13661 |
2193 |
goto ruleconstructorDefEx; /* Prevent compiler warnings */ |
13662 |
2193 |
ruleconstructorDefEx: ; |
13663 |
|
|
13664 |
2193 |
if (HASEXCEPTION()) |
13665 |
|
{ |
13666 |
|
PREPORTERROR(); |
13667 |
|
PRECOVER(); |
13668 |
|
} |
13669 |
4386 |
return ; |
13670 |
|
} |
13671 |
|
/* $ANTLR end constructorDef */ |
13672 |
|
|
13673 |
|
/** |
13674 |
|
* $ANTLR start selector |
13675 |
|
* /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:2191:1: selector[cvc5::api::DatatypeConstructorDecl& ctor] : symbol[id,CHECK_NONE,SYM_SORT] sortSymbol[t,CHECK_NONE] ; |
13676 |
|
*/ |
13677 |
|
static void |
13678 |
2393 |
selector(pSmt2Parser ctx, cvc5::api::DatatypeConstructorDecl& ctor) |
13679 |
|
{ |
13680 |
|
/* Initialize rule variables |
13681 |
|
*/ |
13682 |
|
|
13683 |
|
|
13684 |
4786 |
std::string id; |
13685 |
4786 |
cvc5::api::Sort t, t2; |
13686 |
|
|
13687 |
|
{ |
13688 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:2196:3: ( symbol[id,CHECK_NONE,SYM_SORT] sortSymbol[t,CHECK_NONE] ) |
13689 |
|
// /barrett/scratch/cvc4-nightly/src/cvc5-2021-09-08/src/parser/smt2/Smt2.g:2196:5: symbol[id,CHECK_NONE,SYM_SORT] sortSymbol[t,CHECK_NONE] |
13690 |
|
{ |
13691 |
2393 |
FOLLOWPUSH(FOLLOW_symbol_in_selector5259); |
13692 |
2393 |
symbol(ctx, id, CHECK_NONE, SYM_SORT); |
13693 |
|
|
13694 |
2393 |
FOLLOWPOP(); |
13695 |
2393 |
if (HASEXCEPTION()) |
13696 |
|
{ |
13697 |
|
goto ruleselectorEx; |
13698 |
|
} |
13699 |
|
|
13700 |
|
|
13701 |
2393 |
FOLLOWPUSH(FOLLOW_sortSymbol_in_selector5262); |
13702 |
2393 |
sortSymbol(ctx, t, CHECK_NONE); |
13703 |
|
|
13704 |
2393 |
FOLLOWPOP(); |
13705 |
2393 |
if (HASEXCEPTION()) |
13706 |
|
{ |
13707 |
|
goto ruleselectorEx; |
13708 |
|
} |
13709 |
|
|
13710 |
|
|
13711 |
|
{ |
13712 |
|
|
13713 |
2393 |
ctor.addSelector(id, t); |
13714 |
4786 |
Debug("parser-idt") << "selector: " << id.c_str() |
13715 |
2393 |
<< " of type " << t << std::endl; |
13716 |
|
|
13717 |
|
} |
13718 |
|
|
13719 |
|
|
13720 |
|
} |
13721 |
|
|
13722 |
|
} |
13723 |
|
|
13724 |
|
// This is where rules clean up and exit |
13725 |
|
// |
13726 |
2393 |
goto ruleselectorEx; /* Prevent compiler warnings */ |
13727 |
2393 |
ruleselectorEx: ; |
13728 |
|
|
13729 |
2393 |
if (HASEXCEPTION()) |
13730 |
|
{ |
13731 |
|
PREPORTERROR(); |
13732 |
|
PRECOVER(); |
13733 |
|
} |
13734 |
4786 |
return ; |
13735 |
29484 |
} |
13736 |
|
/* $ANTLR end selector */ |
13737 |
|
/* End of parsing rules |
13738 |
|
* ============================================== |
13739 |
|
*/ |
13740 |
|
|
13741 |
|
/* ============================================== |
13742 |
|
* Syntactic predicates |
13743 |
|
*/ |
13744 |
|
/* End of syntactic predicates |
13745 |
|
* ============================================== |
13746 |
|
*/ |
13747 |
|
|
13748 |
|
|
13749 |
|
|
13750 |
|
|
13751 |
|
|
13752 |
|
|
13753 |
|
/* End of code |
13754 |
|
* ============================================================================= |
13755 |
|
*/ |