HAL
hal::SMT::Boolector Namespace Reference

Functions

Result< std::string > query_binary_path ()
 Checks whether a Boolector binary is available on the system. More...
 
Result< std::tuple< bool, std::string > > query_binary (const std::string &input, const QueryConfig &config)
 
Result< std::tuple< bool, std::string > > query_library (const std::string &input, const QueryConfig &config)
 

Variables

bool is_linked = false
 

Function Documentation

◆ query_binary()

Result<std::tuple<bool, std::string> > hal::SMT::Boolector::query_binary ( const std::string &  input,
const QueryConfig config 
)

Queries Boolector with an SMT-LIB input and a query configuration.

Parameters
[in]input- SMT-LIB input.
[in]config- SMT query configuration.
Returns
Ok() and status with (0) was_killed (true in case process was killed), and (1) stdout Stdout of Boolector process on success, Err() otherwise

Definition at line 140 of file solver.cpp.

References ERR_APPEND, hal::SMT::QueryConfig::generate_model, hal::input, OK, hal::output, query_binary_path(), and hal::SMT::QueryConfig::timeout_in_seconds.

◆ query_binary_path()

Result<std::string> hal::SMT::Boolector::query_binary_path ( )

Checks whether a Boolector binary is available on the system.

Definition at line 111 of file solver.cpp.

References ERR, and OK.

Referenced by query_binary().

◆ query_library()

Result<std::tuple<bool, std::string> > hal::SMT::Boolector::query_library ( const std::string &  input,
const QueryConfig config 
)

Queries Boolector with an SMT-LIB input and a query configuration.

Parameters
[in]input- SMT-LIB input.
[in]config- SMT query configuration.
Returns
Ok() and status with (0) was_killed (true in case process was killed), and (1) stdout Stdout of Boolector process on success, Err() otherwise

Definition at line 188 of file solver.cpp.

References ERR, hal::input, and UNUSED.

Variable Documentation

◆ is_linked

bool hal::SMT::Boolector::is_linked = false

Definition at line 108 of file solver.cpp.