From 7c4a214cf3ce2facf4c98cd3bd347562c66f10a6 Mon Sep 17 00:00:00 2001 From: Mathias Preiner Date: Mon, 21 Jun 2021 10:11:16 -0700 Subject: [PATCH] Make CaDiCaL a required dependency. (#6761) Since the new BV solver is enabled by default and uses CaDiCaL (and optionally CryptoMiniSat) we make CaDiCaL a required dependency. --- CMakeLists.txt | 7 +------ NEWS | 1 + configure.sh | 8 -------- src/CMakeLists.txt | 6 +++--- src/base/configuration.cpp | 19 ++++++++----------- src/base/configuration.h | 2 -- src/base/configuration_private.h | 6 ------ src/options/options_handler.cpp | 10 ---------- src/options/options_handler.h | 19 ------------------- src/prop/cadical.cpp | 4 ---- src/prop/cadical.h | 3 --- src/prop/sat_solver_factory.cpp | 4 ---- .../regress0/bv/eager-inc-cadical.smt2 | 1 - 13 files changed, 13 insertions(+), 77 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b29585f3b..3780b0b5b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -118,7 +118,6 @@ option(ENABLE_PROFILING "Enable support for gprof profiling") # > allows to detect if set by user (default: IGNORE) # > only necessary for options set for ENABLE_BEST cvc5_option(USE_ABC "Use ABC for AIG bit-blasting") -cvc5_option(USE_CADICAL "Use CaDiCaL SAT solver") cvc5_option(USE_CLN "Use CLN instead of GMP") cvc5_option(USE_CRYPTOMINISAT "Use CryptoMiniSat SAT solver") cvc5_option(USE_GLPK "Use GLPK simplex solver") @@ -417,10 +416,7 @@ if(USE_ABC) add_definitions(-DCVC5_USE_ABC ${ABC_ARCH_FLAGS}) endif() -if(USE_CADICAL) - find_package(CaDiCaL REQUIRED) - add_definitions(-DCVC5_USE_CADICAL) -endif() +find_package(CaDiCaL REQUIRED) if(USE_CLN) set(GPL_LIBS "${GPL_LIBS} cln") @@ -651,7 +647,6 @@ print_config("Java bindings " ${BUILD_BINDINGS_JAVA}) print_config("Python2 " ${USE_PYTHON2}) message("") print_config("ABC " ${USE_ABC}) -print_config("CaDiCaL " ${USE_CADICAL}) print_config("CryptoMiniSat " ${USE_CRYPTOMINISAT}) print_config("GLPK " ${USE_GLPK}) print_config("Kissat " ${USE_KISSAT}) diff --git a/NEWS b/NEWS index 1943d7f00..8e0ace2cf 100644 --- a/NEWS +++ b/NEWS @@ -4,6 +4,7 @@ Changes since CVC4 1.8 ====================== New Features: +* CaDiCaL is now a required dependency. * 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 diff --git a/configure.sh b/configure.sh index 25203f8a6..4ba153a75 100755 --- a/configure.sh +++ b/configure.sh @@ -59,7 +59,6 @@ The following flags enable optional packages (disable with --no-