Is not required anymore since we don't use autotools anymore.
# Defined if using the GMP multi-precision arithmetic library.
set(CVC4_GMP_IMP ${CVC4_USE_GMP_IMP})
# Define the full name of this package.
-set(PACKAGE_NAME "${PROJECT_NAME}")
+set(CVC4_PACKAGE_NAME "${PROJECT_NAME}")
#define CVC4_RELEASE_STRING "@CVC4_RELEASE_STRING@"
/* Full name of this package. */
-#define PACKAGE_NAME "@PACKAGE_NAME@"
+#define CVC4_PACKAGE_NAME "@CVC4_PACKAGE_NAME@"
/* Define to 1 if CVC4 is built with (optional) GPLed library dependencies. */
#cmakedefine01 CVC4_GPL_DEPS
namespace CVC4 {
string Configuration::getName() {
- return PACKAGE_NAME;
+ return CVC4_PACKAGE_NAME;
}
bool Configuration::isDebugBuild() {
}
string Configuration::getPackageName() {
- return PACKAGE_NAME;
+ return CVC4_PACKAGE_NAME;
}
string Configuration::getVersionString() {
antlr_line_buffered_input.cpp
antlr_line_buffered_input.h
antlr_tracing.h
- antlr_undefines.h
bounded_token_buffer.cpp
bounded_token_buffer.h
bounded_token_factory.cpp
**/
#include "parser/antlr_input.h"
-// We rely on the inclusion of #include <antlr3.h> in "parser/antlr_input.h".
-// This is avoid having to undefine the symbols in <antlr3.h>.
-// See the documentation in "parser/antlr_undefines.h" for more
-// details.
+#include <antlr3.h>
#include <limits.h>
#include <stdint.h>
#ifndef __CVC4__PARSER__ANTLR_INPUT_H
#define __CVC4__PARSER__ANTLR_INPUT_H
-// These headers must be included first. See the documentation
-// in parser/antlr_undefines.h for an explanation.
-// Also while unusual this must also be within the #ifdef guard.
-#include <antlr3.h>
-#include "parser/antlr_undefines.h"
-
#include "cvc4parser_private.h"
+#include <antlr3.h>
#include <iostream>
#include <sstream>
#include <stdexcept>
-// These headers must be the first two included.
-// See the documentation in "parser/antlr_undefines.h" for more details.
#include <antlr3.h>
-#include "parser/antlr_undefines.h"
-
#include <sstream>
#include "parser/antlr_input.h"
** are not split across multiple lines).
**/
-// We rely on the inclusion of #include <antlr3.h> in
-// "parser/antlr_line_buffered_input.h".
-// This is avoid having to undefine the symbols in <antlr3.h>.
-// See the documentation in "parser/antlr_undefines.h" for more
-// details.
-
#include "parser/antlr_line_buffered_input.h"
+#include <antlr3.h>
#include <iostream>
#include <string>
#include <cassert>
** achieve that and stores the lines received so far in a LineBuffer.
**/
-// These headers should be the first two included.
-// See the documentation in "parser/antlr_undefines.h" for more details.
-#include <antlr3.h>
-#include "parser/antlr_undefines.h"
-
#include "cvc4parser_private.h"
#ifndef __CVC4__PARSER__ANTLR_LINE_BUFFERED_INPUT_H
#define __CVC4__PARSER__ANTLR_LINE_BUFFERED_INPUT_H
+#include <antlr3.h>
#include <istream>
#include "parser/line_buffer.h"
+++ /dev/null
-/********************* */
-/*! \file antlr_undefines.h
- ** \verbatim
- ** Top contributors (to current version):
- ** Tim King
- ** This file is part of the CVC4 project.
- ** Copyright (c) 2009-2018 by the authors listed in the file AUTHORS
- ** in the top-level source directory) and their institutional affiliations.
- ** All rights reserved. See the file COPYING in the top-level source
- ** directory for licensing information.\endverbatim
- **
- ** \brief Every usage undefines standard autotools macro names.
- **
- ** This header is very sensitive and it should be understood *in full* before
- ** it is used or *moved* in position relative to other headers.
- **
- ** Including this header runs #undef on the following identifiers:
- ** - PACKAGE_BUGREPORT,
- ** - PACKAGE_NAME
- ** - PACKAGE_STRING
- ** - PACKAGE_TARNAME
- ** - PACKAGE_VERSION
- **
- ** This is to solves a problem caused by antlr and cvc4 both defining these
- ** symbols. This has to do with both packages using autotools in a slightly
- ** dicey way. This was reported by us a long time ago, but most versions
- ** of libantlr are quite old (3.2).
- ** http://www.antlr3.org/pipermail/antlr-interest/2010-March/037859.html
- **
- ** The source of both of these two definitions are given below.
- **
- ** From antlr, the autogenerated antlr lexers and parsers include antlr3.h.
- ** The chain of inclusions is:
- ** Lang{Lexer,Parser}.h -> <antlr3.h> -> <antlr3config.h> -> <antlr3defs.h>
- **
- ** where Lang is in {Smt1,Smt2,Tptp,Cvc}.
- **
- ** From CVC4, the parsers use Debug("...") and other features from
- ** "base/output.h". This is a cvc4_private_library.h header file. This means
- ** the files is usable while building the driver and parsers, but is otherwise
- ** conceptually the same as a cvc4_private.h header. (If that sounds sketchy,
- ** it is sure is! [See src/DESIGN.txt for more details].)
- ** The include chain is then
- ** "base/output.h" -> "cvc4_private_library.h" -> "cvc4_private.h" ->
- ** "cvc4autoconfig.h".
- ** The file cvc4autoconfig.h is autogenerated by autotools and can be found in
- ** builds/<arch>/<target>/cvc4autoconfig.h
- **
- ** Thus a working solution is to include this header immediately after all
- ** locations of #include <antlr3.h>. This includes all autogenerated files.
- ** This potentially has to be repeated so this header should not be guarded.
- **
- ** To ensure that we do not remove cvc4's versions and use antlr's by mistake
- ** #include <antlr3.h> needs to proceed any other includes like
- ** #include "cvc4parser_private.h".
- **
- ** It is worth noting that future version of antlr can both not define these
- ** macros and may generate different code. This is at best a stop gap
- ** solution.
- **
- ** Every location this header is included needs to be documented.
- ** When in doubt do not move this header!
- **/
-
-#undef PACKAGE_BUGREPORT
-#undef PACKAGE_NAME
-#undef PACKAGE_STRING
-#undef PACKAGE_TARNAME
-#undef PACKAGE_VERSION
@lexer::includes {
-// This should come immediately after #include <antlr3.h> in the generated
-// files. See the documentation in "parser/antlr_undefines.h" for more details.
-#include "parser/antlr_undefines.h"
-
/** This suppresses warnings about the redefinition of token symbols between different
* parsers. The redefinitions should be harmless as long as no client: (a) #include's
* the lexer headers for two grammars AND (b) uses the token symbol definitions. */
@parser::includes {
-// This should come immediately after #include <antlr3.h> in the generated
-// files. See the documentation in "parser/antlr_undefines.h" for more details.
-#include "parser/antlr_undefines.h"
-
#include <cassert>
#include <memory>
#include <stdint.h>
** [[ Add file-specific comments here ]]
**/
-// These headers should be the first two included.
-// See the documentation in "parser/antlr_undefines.h" for more details.
-#include <antlr3.h>
-#include "parser/antlr_undefines.h"
-
#include "parser/cvc/cvc_input.h"
+#include <antlr3.h>
+
#include "expr/expr_manager.h"
#include "parser/antlr_input.h"
#include "parser/parser_exception.h"
@lexer::includes {
-// This should come immediately after #include <antlr3.h> in the generated
-// files. See the documentation in "parser/antlr_undefines.h" for more details.
-#include "parser/antlr_undefines.h"
-
/** This suppresses warnings about the redefinition of token symbols between
* different parsers. The redefinitions should be harmless as long as no
* client: (a) #include's the lexer headers for two grammars AND (b) uses the
@parser::includes {
-// This should come immediately after #include <antlr3.h> in the generated
-// files. See the documentation in "parser/antlr_undefines.h" for more details.
-#include "parser/antlr_undefines.h"
-
#include <algorithm>
#include <memory>
#include <stdint.h>
** [[ Add file-specific comments here ]]
**/
-// These headers must be the first two included.
-// See the documentation in "parser/antlr_undefines.h" for more details.
-#include <antlr3.h>
-#include "parser/antlr_undefines.h"
-
#include "parser/smt1/smt1_input.h"
+#include <antlr3.h>
+
#include "expr/expr_manager.h"
#include "parser/input.h"
#include "parser/parser.h"
@lexer::includes {
-// This should come immediately after #include <antlr3.h> in the generated
-// files. See the documentation in "parser/antlr_undefines.h" for more details.
-#include "parser/antlr_undefines.h"
-
/** This suppresses warnings about the redefinition of token symbols between
* different parsers. The redefinitions should be harmless as long as no
* client: (a) #include's the lexer headers for two grammars AND (b) uses the
@parser::includes {
-// This should come immediately after #include <antlr3.h> in the generated
-// files. See the documentation in "parser/antlr_undefines.h" for more details.
-#include "parser/antlr_undefines.h"
-
#include <memory>
#include "parser/parser.h"
** [[ Add file-specific comments here ]]
**/
-// These headers should be the first two included.
-// See the documentation in "parser/antlr_undefines.h" for more details.
-#include <antlr3.h>
-#include "parser/antlr_undefines.h"
-
-
#include "parser/smt2/smt2_input.h"
+#include <antlr3.h>
+
#include "expr/expr_manager.h"
#include "parser/input.h"
#include "parser/parser.h"
** [[ Add file-specific comments here ]]
**/
-// These headers should be the first two included.
-// See the documentation in "parser/antlr_undefines.h" for more details.
-#include <antlr3.h>
-#include "parser/antlr_undefines.h"
-
-
#include "parser/smt2/sygus_input.h"
+#include <antlr3.h>
+
#include "expr/expr_manager.h"
#include "parser/input.h"
#include "parser/parser.h"
@lexer::includes {
-// This should come immediately after #include <antlr3.h> in the generated
-// files. See the documentation in "parser/antlr_undefines.h" for more details.
-#include "parser/antlr_undefines.h"
-
/** This suppresses warnings about the redefinition of token symbols between
* different parsers. The redefinitions should be harmless as long as no
* client: (a) #include's the lexer headers for two grammars AND (b) uses the
@parser::includes {
-// This should come immediately after #include <antlr3.h> in the generated
-// files. See the documentation in "parser/antlr_undefines.h" for more details.
-#include "parser/antlr_undefines.h"
-
#include <memory>
#include "smt/command.h"
** [[ Add file-specific comments here ]]
**/
-// These headers should be the first two included.
-// See the documentation in "parser/antlr_undefines.h" for more details.
-#include <antlr3.h>
-#include "parser/antlr_undefines.h"
-
#include "parser/tptp/tptp_input.h"
+
+#include <antlr3.h>
+
#include "expr/expr_manager.h"
#include "parser/input.h"
#include "parser/parser.h"