From: Aina Niemetz Date: Wed, 16 Jun 2021 21:04:09 +0000 (-0700) Subject: Make symfpu a required dependency. (#6749) X-Git-Tag: cvc5-1.0.0~1593 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b8d09076cfeb124bfaa6e1c3f0f37e3df1b1b516;p=cvc5.git Make symfpu a required dependency. (#6749) --- diff --git a/CMakeLists.txt b/CMakeLists.txt index b555c7bdc..b29585f3b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -128,7 +128,6 @@ cvc5_option(USE_EDITLINE "Use Editline for better interactive support") # > for options where we don't need to detect if set by user (default: OFF) option(USE_POLY "Use LibPoly for polynomial arithmetic") option(USE_COCOA "Use CoCoALib for further polynomial operations") -option(USE_SYMFPU "Use SymFPU for floating point support") option(USE_PYTHON2 "Force Python 2 (deprecated)") # Custom install directories for dependencies @@ -476,13 +475,7 @@ if(USE_EDITLINE) endif() endif() -if(USE_SYMFPU) - find_package(SymFPU REQUIRED) - add_definitions(-DCVC5_USE_SYMFPU) - set(CVC5_USE_SYMFPU 1) -else() - set(CVC5_USE_SYMFPU 0) -endif() +find_package(SymFPU REQUIRED) if(GPL_LIBS) if(NOT ENABLE_GPL) @@ -673,7 +666,6 @@ else() print_config("MP library " "gmp") endif() print_config("Editline " ${USE_EDITLINE}) -print_config("SymFPU " ${USE_SYMFPU}) message("") print_config("Api docs " ${BUILD_DOCS}) message("") diff --git a/INSTALL.md b/INSTALL.md index 41f770288..1a9c03476 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -57,6 +57,7 @@ minimum versions; more recent versions should be compatible. - [GMP v6.1 (GNU Multi-Precision arithmetic library)](https://gmplib.org) - [ANTLR 3.4](http://www.antlr3.org/) - [Java >= 1.6](https://www.java.com) +- [SymFPU](https://github.com/martin-cs/symfpu/tree/CVC4) ### ANTLR 3.4 parser generator @@ -74,8 +75,6 @@ cross-compile, or you want to build cvc5 statically but the distribution does not ship static libraries, cvc5 builds GMP automatically when `--auto-download` is given. -## Optional Dependencies - ### SymFPU (Support for the Theory of Floating Point Numbers) [SymFPU](https://github.com/martin-cs/symfpu/tree/CVC4) @@ -83,7 +82,8 @@ is an implementation of SMT-LIB/IEEE-754 floating-point operations in terms of bit-vector operations. It is required for supporting the theory of floating-point numbers and can be downloaded and built automatically. -Configure cvc5 with `configure.sh --symfpu` to build with this dependency. + +## Optional Dependencies ### CaDiCaL (Optional SAT solver) diff --git a/NEWS b/NEWS index 60a70a6c5..1943d7f00 100644 --- a/NEWS +++ b/NEWS @@ -4,6 +4,7 @@ Changes since CVC4 1.8 ====================== New Features: +* SymFPU is now a required dependency. * New unsat-core production modes based on the new proof infrastructure (`--unsat-cores-mode=sat-proof`) and on the solving-under-assumption feature of Minisat (`--unsat-cores-mode=assumptions`). The mode based on SAT diff --git a/configure.sh b/configure.sh index 487bbcb5a..25203f8a6 100755 --- a/configure.sh +++ b/configure.sh @@ -64,7 +64,6 @@ The following flags enable optional packages (disable with --no-