12#include "dlinear/solver/SmtSolver.h"
13#include "dlinear/solver/SmtSolverOutput.h"
14#include "dlinear/util/ArgParser.h"
15#include "dlinear/util/Config.h"
17int main(
int argc,
const char* argv[]) {
21 parser.
Parse(argc, argv);
32 std::cerr <<
"WARNING: Expected " << solver.GetExpected() <<
" but got " << result.
result << std::endl;
36 std::cout <<
"Model correctly satisfies the input" << std::endl;
38 std::cerr <<
"WARNING: Model does not satisfy the input" << std::endl;
Used to parse command line arguments and produce a corresponding Config object to be used throughout ...
void Parse(int argc, const char **argv)
Parse the command line arguments.
Simple dataclass used to store the configuration of the program.
const bool & enforce_check_sat() const
Get read-write access to the enforce_check_sat parameter of the configuration.
const bool & silent() const
Get read-write access to the silent parameter of the configuration.
const bool & verify() const
Get read-write access to the verify parameter of the configuration.
This class provides an easy interface for using the underling solver.
@ UNSOLVED
The solver has not yet been run.
Data struct containing the output of the solver, such as the result of the computation as well as som...
Box complete_model
Model of the result that include the auxilary variables introduced.
int exit_code() const
Exit code of the solver to return to the user.
SmtResult result
Result of the computation.
bool matches_expectation(SmtResult expectation) const
Check if the result of the computation matches the expectation.
bool is_sat() const
Return whether the problem is satisfiable or some variant of it.