![]() |
HAL
|
#include <types.h>
Public Member Functions | |
QueryConfig & | with_solver (SolverType solver) |
QueryConfig & | with_call (SolverCall call) |
QueryConfig & | with_local_solver () |
QueryConfig & | with_remote_solver () |
QueryConfig & | with_model_generation () |
QueryConfig & | without_model_generation () |
QueryConfig & | with_timeout (u64 seconds) |
Public Attributes | |
SolverType | solver = SolverType::Z3 |
The SMT solver identifier. More... | |
SolverCall | call = SolverCall::Binary |
The calling format for the SMT solver. More... | |
bool = true | |
Controls whether the SMT query is performed on a local or a remote machine. More... | |
bool | generate_model = false |
Controls whether the SMT solver should generate a model in case formula is satisfiable. More... | |
u64 | timeout_in_seconds = 10 |
The timeout after which the SMT solver is killed in seconds. More... | |
Friends | |
std::ostream & | operator<< (std::ostream &out, const QueryConfig &config) |
QueryConfig & hal::SMT::QueryConfig::with_call | ( | SolverCall | call | ) |
QueryConfig & hal::SMT::QueryConfig::with_local_solver | ( | ) |
Activates local SMT solver execution.
Definition at line 101 of file types.cpp.
Referenced by hal::smt_init().
QueryConfig & hal::SMT::QueryConfig::with_model_generation | ( | ) |
Indicates that the SMT solver should generate a model in case the formula is satisfiable.
Definition at line 113 of file types.cpp.
References generate_model.
Referenced by hal::smt_init(), and hal::solve_fsm::solve_fsm().
QueryConfig & hal::SMT::QueryConfig::with_remote_solver | ( | ) |
Indicates that the SMT solver runs on a remote machine.
Definition at line 107 of file types.cpp.
Referenced by hal::smt_init().
QueryConfig & hal::SMT::QueryConfig::with_solver | ( | SolverType | solver | ) |
QueryConfig & hal::SMT::QueryConfig::with_timeout | ( | u64 | seconds | ) |
Sets a timeout in seconds that terminates an SMT query after the specified time has passed.
[in] | seconds | - The timeout in seconds. |
Definition at line 125 of file types.cpp.
References timeout_in_seconds.
Referenced by hal::smt_init(), and hal::solve_fsm::solve_fsm().
QueryConfig & hal::SMT::QueryConfig::without_model_generation | ( | ) |
Indicates that the SMT solver should not generate a model.
Definition at line 119 of file types.cpp.
References generate_model.
Referenced by hal::smt_init().
|
friend |
hal::SMT::QueryConfig::bool = true |
SolverCall hal::SMT::QueryConfig::call = SolverCall::Binary |
The calling format for the SMT solver.
Definition at line 69 of file types.h.
Referenced by hal::SMT::Solver::query_local_with_smt2(), and with_call().
bool hal::SMT::QueryConfig::generate_model = false |
Controls whether the SMT solver should generate a model in case formula is satisfiable.
Definition at line 73 of file types.h.
Referenced by hal::SMT::Boolector::query_binary(), hal::SMT::Bitwuzla::query_library(), hal::smt_init(), with_model_generation(), and without_model_generation().
SolverType hal::SMT::QueryConfig::solver = SolverType::Z3 |
The SMT solver identifier.
Definition at line 67 of file types.h.
Referenced by hal::SMT::Solver::query_local_with_smt2(), hal::smt_init(), and with_solver().
u64 hal::SMT::QueryConfig::timeout_in_seconds = 10 |
The timeout after which the SMT solver is killed in seconds.
Definition at line 75 of file types.h.
Referenced by hal::SMT::Z3::query_binary(), hal::SMT::Boolector::query_binary(), hal::smt_init(), and with_timeout().