Skip to content

Commit acfd5cd

Browse files
committed
Honour --sat-solver with refinement
Refinement should not unconditionally use the default solver despite the user specifying `--sat-solver <solver>` on the command line.
1 parent 6e9834c commit acfd5cd

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

src/goto-checker/solver_factory.cpp

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -396,16 +396,7 @@ std::unique_ptr<solver_factoryt::solvert> solver_factoryt::get_external_sat()
396396

397397
std::unique_ptr<solver_factoryt::solvert> solver_factoryt::get_bv_refinement()
398398
{
399-
std::unique_ptr<propt> prop = [this]() -> std::unique_ptr<propt> {
400-
// We offer the option to disable the SAT preprocessor
401-
if(options.get_bool_option("sat-preprocessor"))
402-
{
403-
no_beautification();
404-
return make_satcheck_prop<satcheckt>(message_handler, options);
405-
}
406-
return make_satcheck_prop<satcheck_no_simplifiert>(
407-
message_handler, options);
408-
}();
399+
std::unique_ptr<propt> prop = get_sat_solver(message_handler, options);
409400

410401
bv_refinementt::infot info;
411402
info.ns = &ns;
@@ -435,8 +426,7 @@ solver_factoryt::get_string_refinement()
435426
{
436427
string_refinementt::infot info;
437428
info.ns = &ns;
438-
auto prop =
439-
make_satcheck_prop<satcheck_no_simplifiert>(message_handler, options);
429+
auto prop = get_sat_solver(message_handler, options);
440430
info.prop = prop.get();
441431
info.refinement_bound = DEFAULT_MAX_NB_REFINEMENT;
442432
info.output_xml = output_xml_in_refinement;

0 commit comments

Comments
 (0)