blob: 69fca59e1ab530adaa9efcabf9644e81a9f7fad3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
/********************* */
/*! \file sat_solver_factory.cpp
** \verbatim
** Top contributors (to current version):
** Dejan Jovanovic, Tim King, Liana Hadarean
** This file is part of the CVC4 project.
** Copyright (c) 2009-2017 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 SAT Solver creation facility.
**
** SAT Solver.
**/
#include "prop/sat_solver_factory.h"
#include "prop/bvminisat/bvminisat.h"
#include "prop/cryptominisat.h"
#include "prop/minisat/minisat.h"
namespace CVC4 {
namespace prop {
BVSatSolverInterface* SatSolverFactory::createMinisat(
context::Context* mainSatContext,
StatisticsRegistry* registry,
const std::string& name)
{
return new BVMinisatSatSolver(registry, mainSatContext, name);
}
SatSolver* SatSolverFactory::createCryptoMinisat(StatisticsRegistry* registry,
const std::string& name)
{
#ifdef CVC4_USE_CRYPTOMINISAT
return new CryptoMinisatSolver(registry, name);
#else
Unreachable("CVC4 was not compiled with Cryptominisat support.");
#endif
}
DPLLSatSolverInterface* SatSolverFactory::createDPLLMinisat(
StatisticsRegistry* registry)
{
return new MinisatSatSolver(registry);
}
} // namespace prop
} // namespace CVC4
|