54 : decision_procedure_ptr(
std::move(p))
59 std::unique_ptr<decision_proceduret>
p1,
60 std::unique_ptr<propt>
p2)
61 : prop_ptr(
std::move(
p2)), decision_procedure_ptr(
std::move(
p1))
66 std::unique_ptr<decision_proceduret>
p1,
67 std::unique_ptr<std::ofstream>
p2)
68 : ofstream_ptr(
std::move(
p2)), decision_procedure_ptr(
std::move(
p1))
75 return *decision_procedure_ptr;
107 log.
warning() <<
"cannot set solver time limit on "
118 std::unique_ptr<decision_proceduret> p)
120 decision_procedure_ptr = std::move(p);
125 prop_ptr = std::move(p);
130 ofstream_ptr = std::move(p);
185template <
typename SatcheckT>
186static std::unique_ptr<SatcheckT>
195 std::unique_ptr<solver_hardnesst> solver_hardness =
204 <<
"Configured solver does not support --write-solver-stats-to. "
227 bool get_array_constraints =
274 std::unique_ptr<propt> prop = [
this]() -> std::unique_ptr<propt> {
287 info.prop = prop.get();
292 info.max_node_refinement =
302 std::move(decision_procedure), std::move(prop));
308std::unique_ptr<solver_factoryt::solvert>
315 info.prop = prop.get();
319 info.max_node_refinement =
328 std::move(decision_procedure), std::move(prop));
331std::unique_ptr<solver_factoryt::solvert>
343std::unique_ptr<solver_factoryt::solvert>
355 "required filename not provided",
357 "provide a filename with --outfile");
374 else if(filename ==
"-")
401 "failed to open file: " + filename,
"--outfile");
425 "the chosen solver does not support beautification",
"--beautify");
438 "the chosen solver does not support incremental solving",
444 "the chosen solver does not support incremental solving",
"--cover");
449 "the chosen solver does not support incremental solving",
450 "--incremental-loop");
Abstraction Refinement Loop.
virtual xmlt output_xml(const namespacet &ns, const goto_functionst &goto_functions) const
Output the abstract states for the whole program as XML.
message_handlert & message_handler
ait supplies three of the four components needed: an abstract interpreter (in this case handling func...
virtual std::string decision_procedure_text() const =0
Return a textual description of the decision procedure.
Thrown when users pass incorrect command line arguments, for example passing no files to analysis or ...
Class that provides messages with a built-in verbosity 'level'.
mstreamt & warning() const
A namespacet is essentially one or two symbol tables bound together, to allow for symbol lookups in t...
unsigned int get_unsigned_int_option(const std::string &option) const
bool is_set(const std::string &option) const
N.B. opts.is_set("foo") does not imply opts.get_bool_option("foo")
bool get_bool_option(const std::string &option) const
const std::string get_option(const std::string &option) const
signed int get_signed_int_option(const std::string &option) const
void set_decision_procedure(std::unique_ptr< decision_proceduret > p)
decision_proceduret & decision_procedure() const
stack_decision_proceduret & stack_decision_procedure() const
void set_ofstream(std::unique_ptr< std::ofstream > p)
void set_prop(std::unique_ptr< propt > p)
message_handlert & message_handler
std::unique_ptr< solvert > get_external_sat()
std::unique_ptr< solvert > get_default()
solver_factoryt(const optionst &_options, const namespacet &_ns, message_handlert &_message_handler, bool _output_xml_in_refinement)
Note: The solver returned will hold a reference to the namespace ns.
std::unique_ptr< solvert > get_dimacs()
void no_incremental_check()
void set_decision_procedure_time_limit(decision_proceduret &decision_procedure)
Sets the timeout of decision_procedure if the solver-time-limit option has a positive value (in secon...
std::unique_ptr< solvert > get_string_refinement()
the string refinement adds to the bit vector refinement specifications for functions from the Java st...
std::unique_ptr< solvert > get_smt2(smt2_dect::solvert solver)
const bool output_xml_in_refinement
smt2_dect::solvert get_smt2_solver_type() const
Uses the options to pick an SMT 2.0 solver.
virtual std::unique_ptr< solvert > get_solver()
Returns a solvert object.
std::unique_ptr< solvert > get_incremental_smt2(std::string solver_command)
std::unique_ptr< solvert > get_bv_refinement()
Allows calling an external SAT solver to allow faster integration of newer SAT solvers.
Decision procedure with incremental SMT2 solving.
int solver(std::istream &in)
static std::unique_ptr< SatcheckT > make_satcheck_prop(message_handlert &message_handler, const optionst &options)
Solver capability to set resource limits.
#define PRECONDITION(CONDITION)
#define INVARIANT(CONDITION, REASON)
This macro uses the wrapper function 'invariant_violated_string'.
Decision procedure with incremental solving with contexts and assumptions.
String support via creating string constraints and progressively instantiating the universal constrai...
#define DEFAULT_MAX_NB_REFINEMENT
string_refinementt constructor arguments
std::wstring widen(const char *s)
const char * CBMC_VERSION