12 #ifndef CPROVER_GOTO_CHECKER_SOLVER_FACTORY_H
13 #define CPROVER_GOTO_CHECKER_SOLVER_FACTORY_H
34 bool _output_xml_in_refinement);
41 explicit solvert(std::unique_ptr<stack_decision_proceduret> p);
43 std::unique_ptr<stack_decision_proceduret> p1,
44 std::unique_ptr<propt> p2);
46 std::unique_ptr<stack_decision_proceduret> p1,
47 std::unique_ptr<std::ofstream> p2);
48 solvert(std::unique_ptr<boolbvt> p1, std::unique_ptr<propt> p2);
102 "(cvc4)(cvc5)(bitwuzla)(boolector)(yices)(z3)" \
105 "(incremental-smt2-solver):" \
107 "(external-sat-solver):" \
108 "(no-sat-preprocessor)" \
112 "(max-node-refinement):" \
114 "(refine-arithmetic)" \
116 "(dump-smt-formula):" \
117 "(write-solver-stats-to):"
119 #define HELP_SOLVER \
120 " {y--sat-solver} {usolver} \t use specified SAT solver\n" \
121 " {y--external-sat-solver} {ucmd} \t command to invoke SAT solver process\n" \
122 " {y--no-sat-preprocessor} \t disable the SAT solver's simplifier\n" \
123 " {y--dimacs} \t generate CNF in DIMACS format\n" \
124 " {y--beautify} \t beautify the counterexample (greedy heuristic)\n" \
125 " {y--smt1} \t use default SMT1 solver (obsolete)\n" \
126 " {y--smt2} \t use default SMT2 solver (Z3)\n" \
127 " {y--bitwuzla} \t use Bitwuzla\n" \
128 " {y--boolector} \t use Boolector\n" \
129 " {y--cprover-smt2} \t use CPROVER SMT2 solver\n" \
130 " {y--cvc3} \t use CVC3\n" \
131 " {y--cvc4} \t use CVC4\n" \
132 " {y--cvc5} \t use CVC5\n" \
133 " {y--mathsat} \t use MathSAT\n" \
134 " {y--yices} \t use Yices\n" \
135 " {y--z3} \t use Z3\n" \
136 " {y--fpa} \t use theory of floating-point arithmetic\n" \
137 " {y--refine} \t use refinement procedure (experimental)\n" \
138 " {y--refine-arrays} \t use refinement for arrays only\n" \
139 " {y--refine-arithmetic} \t refinement of arithmetic expressions only\n" \
140 " {y--max-node-refinement} \t " \
141 "maximum refinement iterations for arithmetic expressions\n" \
142 " {y--incremental-smt2-solver} {ucmd} \t " \
143 "command to invoke external SMT solver for incremental solving " \
145 " {y--outfile} {ufilename} \t output formula to given file\n" \
146 " {y--dump-smt-formula} {ufilename} \t " \
147 "output smt incremental formula to the given file\n" \
148 " {y--write-solver-stats-to} {ujson-file} \t " \
149 "collect the solver query complexity\n"
A namespacet is essentially one or two symbol tables bound together, to allow for symbol lookups in t...
std::unique_ptr< stack_decision_proceduret > decision_procedure_ptr
std::unique_ptr< propt > prop_ptr
std::unique_ptr< std::ofstream > ofstream_ptr
boolbvt & boolbv_decision_procedure() const
solvert(std::unique_ptr< stack_decision_proceduret > p)
stack_decision_proceduret & decision_procedure() const
std::unique_ptr< boolbvt > decision_procedure_is_boolbvt_ptr
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.
void set_decision_procedure_time_limit(solver_resource_limitst &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_dimacs()
void no_incremental_check()
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 ~solver_factoryt()=default
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()
void solver(std::vector< framet > &frames, const std::unordered_set< symbol_exprt, irep_hash > &address_taken, const solver_optionst &solver_options, const namespacet &ns, std::vector< propertyt > &properties, std::size_t property_index)
void parse_solver_options(const cmdlinet &cmdline, optionst &options)
Parse solver-related command-line parameters in cmdline and set corresponding values in options.