Allow loading Z3 dynamically at runtime.

This commit is contained in:
Daniel Kirchner
2020-12-10 16:47:47 +01:00
parent fe79a27a0a
commit 7308abc084
16 changed files with 298 additions and 15 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ SMTPortfolio::SMTPortfolio(
{
m_solvers.emplace_back(make_unique<SMTLib2Interface>(move(_smtlib2Responses), move(_smtCallback), m_queryTimeout));
#ifdef HAVE_Z3
if (_enabledSolvers.z3)
if (_enabledSolvers.z3 && Z3Interface::available())
m_solvers.emplace_back(make_unique<Z3Interface>(m_queryTimeout));
#endif
#ifdef HAVE_CVC4