CBMC
solver_factory.cpp File Reference

Solver Factory. More...

+ Include dependency graph for solver_factory.cpp:

Go to the source code of this file.

Functions

static void emit_solver_warning (message_handlert &message_handler, const std::string &solver)
 Emit a warning for non-existent solver solver via message_handler. More...
 
template<typename SatcheckT >
static std::enable_if< !std::is_base_of< hardness_collectort, SatcheckT >::value, std::unique_ptr< SatcheckT > >::type make_satcheck_prop (message_handlert &message_handler, const optionst &options)
 
template<typename SatcheckT >
static std::enable_if< std::is_base_of< hardness_collectort, SatcheckT >::value, std::unique_ptr< SatcheckT > >::type make_satcheck_prop (message_handlert &message_handler, const optionst &options)
 
static std::unique_ptr< proptget_sat_solver (message_handlert &message_handler, const optionst &options)
 
std::unique_ptr< std::ofstream > open_outfile_and_check (const std::string &filename, message_handlert &message_handler, const std::string &arg_name)
 
static void parse_sat_options (const cmdlinet &cmdline, optionst &options)
 
static void parse_smt2_options (const cmdlinet &cmdline, optionst &options)
 
void parse_solver_options (const cmdlinet &cmdline, optionst &options)
 Parse solver-related command-line parameters in cmdline and set corresponding values in options. More...
 

Detailed Description

Solver Factory.

Definition in file solver_factory.cpp.

Function Documentation

◆ emit_solver_warning()

static void emit_solver_warning ( message_handlert message_handler,
const std::string &  solver 
)
static

Emit a warning for non-existent solver solver via message_handler.

Definition at line 158 of file solver_factory.cpp.

◆ get_sat_solver()

static std::unique_ptr<propt> get_sat_solver ( message_handlert message_handler,
const optionst options 
)
static

Definition at line 203 of file solver_factory.cpp.

◆ make_satcheck_prop() [1/2]

template<typename SatcheckT >
static std::enable_if< !std::is_base_of<hardness_collectort, SatcheckT>::value, std::unique_ptr<SatcheckT> >::type make_satcheck_prop ( message_handlert message_handler,
const optionst options 
)
static

Definition at line 172 of file solver_factory.cpp.

◆ make_satcheck_prop() [2/2]

template<typename SatcheckT >
static std::enable_if< std::is_base_of<hardness_collectort, SatcheckT>::value, std::unique_ptr<SatcheckT> >::type make_satcheck_prop ( message_handlert message_handler,
const optionst options 
)
static

Definition at line 189 of file solver_factory.cpp.

◆ open_outfile_and_check()

std::unique_ptr<std::ofstream> open_outfile_and_check ( const std::string &  filename,
message_handlert message_handler,
const std::string &  arg_name 
)

Definition at line 429 of file solver_factory.cpp.

◆ parse_sat_options()

static void parse_sat_options ( const cmdlinet cmdline,
optionst options 
)
static

Definition at line 594 of file solver_factory.cpp.

◆ parse_smt2_options()

static void parse_smt2_options ( const cmdlinet cmdline,
optionst options 
)
static

Definition at line 611 of file solver_factory.cpp.

◆ parse_solver_options()

void parse_solver_options ( const cmdlinet cmdline,
optionst options 
)

Parse solver-related command-line parameters in cmdline and set corresponding values in options.

Definition at line 691 of file solver_factory.cpp.