endif()
#-----------------------------------------------------------------------------#
-# Set options for best configuration
-
-if(ENABLE_BEST)
- cvc4_set_option(USE_ABC ON)
- cvc4_set_option(USE_CADICAL ON)
- cvc4_set_option(USE_CLN ON)
- cvc4_set_option(USE_CRYPTOMINISAT ON)
- cvc4_set_option(USE_GLPK ON)
- cvc4_set_option(USE_EDITLINE ON)
-endif()
# Only enable unit testing if assertions are enabled. Otherwise, unit tests
# that expect AssertionException to be thrown will fail.
message("")
print_config("GPL :" ENABLE_GPL)
print_config("Best configuration :" ENABLE_BEST)
-print_config("Optimization level :" OPTIMIZATION_LEVEL)
message("")
print_config("Assertions :" ENABLE_ASSERTIONS)
print_config("Debug symbols :" ENABLE_DEBUG_SYMBOLS)
print_config("LFSC :" USE_LFSC)
print_config("LibPoly :" USE_POLY)
message("")
-print_config("BUILD_LIB_ONLY :" BUILD_LIB_ONLY)
+print_config("Build libcvc4 only :" BUILD_LIB_ONLY)
if(CVC4_USE_CLN_IMP)
message("MP library : cln")
## directory for licensing information.
##
add_definitions(-DCVC4_DEBUG)
-set(CVC4_DEBUG 1)
add_check_c_cxx_flag("-fno-inline")
-set(OPTIMIZATION_LEVEL 0)
-add_c_cxx_flag("-Og")
+set(OPTIMIZATION_LEVEL "g")
# enable_debug_symbols=yes
cvc4_set_option(ENABLE_DEBUG_SYMBOLS ON)
# enable_statistics=yes
--static-binary statically link against system libraries
(must be disabled for static macOS builds) [default=yes]
--proofs support for proof generation
- --optimized optimize the build
--debug-symbols include debug symbols
--valgrind Valgrind instrumentation
--debug-context-mm use the debug context memory manager
abc=default
asan=default
assertions=default
-best=default
cadical=default
cln=default
comp_inc=default
poly=default
muzzle=default
ninja=default
-optimized=default
profiling=default
proofs=default
python2=default
--assertions) assertions=ON;;
--no-assertions) assertions=OFF;;
- --best) best=ON;;
- --no-best) best=OFF;;
+ # Best configuration
+ --best)
+ abc=ON
+ cadical=ON
+ cln=ON
+ cryptominisat=ON
+ glpk=ON
+ editline=ON
+ ;;
--prefix) die "missing argument to $1 (try -h)" ;;
--prefix=*)
--muzzle) muzzle=ON;;
--no-muzzle) muzzle=OFF;;
- --optimized) optimized=ON;;
- --no-optimized) optimized=OFF;;
-
--proofs) proofs=ON;;
--no-proofs) proofs=OFF;;
&& cmake_opts="$cmake_opts -DENABLE_TSAN=$tsan"
[ $assertions != default ] \
&& cmake_opts="$cmake_opts -DENABLE_ASSERTIONS=$assertions"
-[ $best != default ] \
- && cmake_opts="$cmake_opts -DENABLE_BEST=$best"
[ $comp_inc != default ] \
&& cmake_opts="$cmake_opts -DENABLE_COMP_INC_TRACK=$comp_inc"
[ $coverage != default ] \
[ $ninja != default ] && cmake_opts="$cmake_opts -G Ninja"
[ $muzzle != default ] \
&& cmake_opts="$cmake_opts -DENABLE_MUZZLE=$muzzle"
-[ $optimized != default ] \
- && cmake_opts="$cmake_opts -DENABLE_OPTIMIZED=$optimized"
[ $proofs != default ] \
&& cmake_opts="$cmake_opts -DENABLE_PROOFS=$proofs"
[ $shared != default ] \
TEST_F(TestNodeBlackNode, dtor)
{
/* No access to internals? Only test that this is crash free. */
- Node* n;
+ Node* n = nullptr;
ASSERT_NO_FATAL_FAILURE(n = new Node());
- delete n;
+ if (n)
+ {
+ delete n;
+ }
}
/* operator== */