![]() |
HAL
|
#include <types.h>
Public Member Functions | |
SolverResult () | |
Default constructor (required for Result<T> initialization) More... | |
bool | is (const SolverResultType &type) const |
bool | is_sat () const |
bool | is_unsat () const |
bool | is_unknown () const |
Static Public Member Functions | |
static SolverResult | Sat (const std::optional< Model > &model={}) |
static SolverResult | UnSat () |
static SolverResult | Unknown () |
Public Attributes | |
SolverResultType | type |
Result type of the SMT query. More... | |
std::optional< Model > | model |
The (optional) model that is only available if type == SMT::ResultType::Sat and model generation is enabled. More... | |
Friends | |
std::ostream & | operator<< (std::ostream &out, const SolverResult &result) |
|
inline |
bool hal::SMT::SolverResult::is | ( | const SolverResultType & | type | ) | const |
Checks whether the result is of a specific type.
[in] | type | - The type to check. |
true
in case result matches the given type, false
otherwise. Definition at line 314 of file types.cpp.
References type.
Referenced by is_sat(), is_unknown(), is_unsat(), and hal::smt_init().
bool hal::SMT::SolverResult::is_sat | ( | ) | const |
Checks whether the result is satisfiable.
true
in case result is satisfiable, false
otherwise. Definition at line 319 of file types.cpp.
References is(), and hal::SMT::Sat.
Referenced by hal::smt_init().
bool hal::SMT::SolverResult::is_unknown | ( | ) | const |
Checks whether the result is unknown.
true
in case result is unknown, false
otherwise. Definition at line 329 of file types.cpp.
References is(), and hal::SMT::Unknown.
Referenced by hal::smt_init().
bool hal::SMT::SolverResult::is_unsat | ( | ) | const |
Checks whether the result is unsatisfiable.
true
in case result is unsatisfiable, false
otherwise. Definition at line 324 of file types.cpp.
References is(), and hal::SMT::UnSat.
Referenced by hal::smt_init().
|
static |
Creates a satisfiable result with an optional model.
[in] | model | - Optional model for satisfiable formula. |
Definition at line 299 of file types.cpp.
References model, hal::SMT::Sat, and SolverResult().
Referenced by hal::smt_init().
|
static |
Creates an unknown result.
Definition at line 309 of file types.cpp.
References SolverResult(), and hal::SMT::Unknown.
Referenced by hal::smt_init().
|
static |
Creates an unsatisfiable result.
Definition at line 304 of file types.cpp.
References SolverResult(), and hal::SMT::UnSat.
Referenced by hal::smt_init().
|
friend |
std::optional<Model> hal::SMT::SolverResult::model |
The (optional) model that is only available if type == SMT::ResultType::Sat
and model generation is enabled.
Definition at line 305 of file types.h.
Referenced by Sat(), and hal::smt_init().
SolverResultType hal::SMT::SolverResult::type |