1
0
This repository has been archived on 2025-03-06. You can view files and clone it, but cannot push or open issues or pull requests.
Jip J. Dekker 6719176975 Squashed 'software/gecode/' changes from 313e87646d..70a1cfa856
70a1cfa856 Add reasoning about why a restart happens
5db96c6afc Add initial version of the 'complete' propagator
3410436fc5 Fix include problems on Linux and Windows
0218f3e7be Remove deprecated restart_count from the variables set on restart
7f4a528ced Fix makefile mistake for LastVal constraint
8a39aee00d Initialise LastVal stored as the minimal in the domain
86707c674e Update STATUS to match the new enum
44d672100f Add support for LastVal from FlatZinc
bd8af2e8f6 Subsume after propagation
2f07e027ab Add LastVal propagator
f05cf9daba Output number of copies
707e30c0f0 Update generated parser files
179ee693cc Add restart_number() builtin (to work around the problem that otherwise we can't implement round robin style search)
04a492da17 Fix restart numbers (didn't count incomplete neighbourhoods)
fbaa3529ec Initial implementation of on_restart
6dd39a73dd Update LICENSE
8f5ea30eba Update LICENSE
4236a2e5ec Use std::vector instead of std::array
c53655d685 Dynamically adjust test batch sizes
37248557b6 Require C++11
cc60ea7cde Minor, remove exraneous newline in changelog
74c5f54b9f Make Region pool thread local
6f04ac3514 Use atomic for propagator identifier
2e0c275b07 Add support for parallel testing
3ada422b76 Refactor, extracted run_test function
787c41b8c4 Refactor, move data and logic into Options
120fc512a7 Refactor, extract run_tests function
85dd87a4af Refactoring: Thread rand through calls in test
cece9da4ef Refactor Assignments operator() to has_more
564410e4ee Refactor Assignment operator++ to next()
e1c84af894 Separate test filtering from running
8558856298 Remove empty statement warnings
a9d8cb64fa Fix compilation errors for CPProfiler support
9ec81a69b2 Add RestartStop
REVERT: 313e87646d Fix include problems on Linux and Windows
REVERT: 358b8ca63b Remove deprecated restart_count from the variables set on restart
REVERT: 83508d5de2 Fix makefile mistake for LastVal constraint
REVERT: 530bbaf107 Initialise LastVal stored as the minimal in the domain
REVERT: 96ba0d3d7e Update STATUS to match the new enum
REVERT: 7d772297f9 Add support for LastVal from FlatZinc
REVERT: 98b0162d75 Subsume after propagation
REVERT: 5cd4552144 Add LastVal propagator
REVERT: 9b80e644b7 Output number of copies
REVERT: aaa5301366 Update generated parser files
REVERT: 6ff4efe6a4 Add restart_number() builtin (to work around the problem that otherwise we can't implement round robin style search)
REVERT: 8bcbec5d6e Fix restart numbers (didn't count incomplete neighbourhoods)
REVERT: 3f63e743b2 Initial implementation of on_restart
REVERT: b6ffa462d1 Update LICENSE
REVERT: ad0621c26c Update LICENSE
REVERT: 93caa97684 Use std::vector instead of std::array
REVERT: 32d6399b35 Dynamically adjust test batch sizes
REVERT: e7f00e9977 Require C++11
REVERT: a5ba8e4282 Minor, remove exraneous newline in changelog
REVERT: b24831354d Make Region pool thread local
REVERT: b1a109ac2e Use atomic for propagator identifier
REVERT: 3d77aaad71 Add support for parallel testing
REVERT: b1b9526049 Refactor, extracted run_test function
REVERT: 85b8a57f65 Refactor, move data and logic into Options
REVERT: d2c1961437 Refactor, extract run_tests function
REVERT: 0236327c75 Refactoring: Thread rand through calls in test
REVERT: ba81289b02 Refactor Assignments operator() to has_more
REVERT: 038a554bd8 Refactor Assignment operator++ to next()
REVERT: f34f125131 Separate test filtering from running
REVERT: cec6336ede Remove empty statement warnings
REVERT: d63e1fc042 Fix compilation errors for CPProfiler support

git-subtree-dir: software/gecode
git-subtree-split: 70a1cfa856d138b0845d2681c46ca16f8507aebf
2021-07-11 16:26:15 +10:00

139 lines
5.6 KiB
C++

/* A Bison parser, made by GNU Bison 3.7.6. */
/* Bison interface for Yacc-like parsers in C
Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2021 Free Software Foundation,
Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>. */
/* As a special exception, you may create a larger work that contains
part or all of the Bison parser skeleton and distribute that work
under terms of your choice, so long as that work isn't itself a
parser generator using the skeleton or a modified version thereof
as a parser skeleton. Alternatively, if you modify or redistribute
the parser skeleton itself, you may (at your option) remove this
special exception, which will cause the skeleton and the resulting
Bison output files to be licensed under the GNU General Public
License without this special exception.
This special exception was added by the Free Software Foundation in
version 2.2 of Bison. */
/* DO NOT RELY ON FEATURES THAT ARE NOT DOCUMENTED in the manual,
especially those whose name start with YY_ or yy_. They are
private implementation details that can be changed or removed. */
#ifndef YY_YY_GECODE_FLATZINC_PARSER_TAB_HPP_INCLUDED
# define YY_YY_GECODE_FLATZINC_PARSER_TAB_HPP_INCLUDED
/* Debug traces. */
#ifndef YYDEBUG
# define YYDEBUG 1
#endif
#if YYDEBUG
extern int yydebug;
#endif
/* Token kinds. */
#ifndef YYTOKENTYPE
# define YYTOKENTYPE
enum yytokentype
{
YYEMPTY = -2,
YYEOF = 0, /* "end of file" */
YYerror = 256, /* error */
YYUNDEF = 257, /* "invalid token" */
FZ_INT_LIT = 258, /* FZ_INT_LIT */
FZ_BOOL_LIT = 259, /* FZ_BOOL_LIT */
FZ_FLOAT_LIT = 260, /* FZ_FLOAT_LIT */
FZ_ID = 261, /* FZ_ID */
FZ_U_ID = 262, /* FZ_U_ID */
FZ_STRING_LIT = 263, /* FZ_STRING_LIT */
FZ_VAR = 264, /* FZ_VAR */
FZ_PAR = 265, /* FZ_PAR */
FZ_ANNOTATION = 266, /* FZ_ANNOTATION */
FZ_ANY = 267, /* FZ_ANY */
FZ_ARRAY = 268, /* FZ_ARRAY */
FZ_BOOL = 269, /* FZ_BOOL */
FZ_CASE = 270, /* FZ_CASE */
FZ_COLONCOLON = 271, /* FZ_COLONCOLON */
FZ_CONSTRAINT = 272, /* FZ_CONSTRAINT */
FZ_DEFAULT = 273, /* FZ_DEFAULT */
FZ_DOTDOT = 274, /* FZ_DOTDOT */
FZ_ELSE = 275, /* FZ_ELSE */
FZ_ELSEIF = 276, /* FZ_ELSEIF */
FZ_ENDIF = 277, /* FZ_ENDIF */
FZ_ENUM = 278, /* FZ_ENUM */
FZ_FLOAT = 279, /* FZ_FLOAT */
FZ_FUNCTION = 280, /* FZ_FUNCTION */
FZ_IF = 281, /* FZ_IF */
FZ_INCLUDE = 282, /* FZ_INCLUDE */
FZ_INT = 283, /* FZ_INT */
FZ_LET = 284, /* FZ_LET */
FZ_MAXIMIZE = 285, /* FZ_MAXIMIZE */
FZ_MINIMIZE = 286, /* FZ_MINIMIZE */
FZ_OF = 287, /* FZ_OF */
FZ_SATISFY = 288, /* FZ_SATISFY */
FZ_OUTPUT = 289, /* FZ_OUTPUT */
FZ_PREDICATE = 290, /* FZ_PREDICATE */
FZ_RECORD = 291, /* FZ_RECORD */
FZ_SET = 292, /* FZ_SET */
FZ_SHOW = 293, /* FZ_SHOW */
FZ_SHOWCOND = 294, /* FZ_SHOWCOND */
FZ_SOLVE = 295, /* FZ_SOLVE */
FZ_STRING = 296, /* FZ_STRING */
FZ_TEST = 297, /* FZ_TEST */
FZ_THEN = 298, /* FZ_THEN */
FZ_TUPLE = 299, /* FZ_TUPLE */
FZ_TYPE = 300, /* FZ_TYPE */
FZ_VARIANT_RECORD = 301, /* FZ_VARIANT_RECORD */
FZ_WHERE = 302 /* FZ_WHERE */
};
typedef enum yytokentype yytoken_kind_t;
#endif
/* Value type. */
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
union YYSTYPE
{
#line 509 "gecode/flatzinc/parser.yxx"
int iValue; char* sValue; bool bValue; double dValue;
std::vector<int>* setValue;
Gecode::FlatZinc::AST::SetLit* setLit;
std::vector<double>* floatSetValue;
std::vector<Gecode::FlatZinc::AST::SetLit>* setValueList;
Gecode::FlatZinc::Option<Gecode::FlatZinc::AST::SetLit* > oSet;
Gecode::FlatZinc::Option<std::pair<double,double>* > oPFloat;
Gecode::FlatZinc::VarSpec* varSpec;
Gecode::FlatZinc::Option<Gecode::FlatZinc::AST::Node*> oArg;
std::vector<Gecode::FlatZinc::VarSpec*>* varSpecVec;
Gecode::FlatZinc::Option<std::vector<Gecode::FlatZinc::VarSpec*>* > oVarSpecVec;
Gecode::FlatZinc::AST::Node* arg;
Gecode::FlatZinc::AST::Array* argVec;
#line 127 "gecode/flatzinc/parser.tab.hpp"
};
typedef union YYSTYPE YYSTYPE;
# define YYSTYPE_IS_TRIVIAL 1
# define YYSTYPE_IS_DECLARED 1
#endif
int yyparse (void *parm);
#endif /* !YY_YY_GECODE_FLATZINC_PARSER_TAB_HPP_INCLUDED */