File tree Expand file tree Collapse file tree 1 file changed +20
-3
lines changed
Expand file tree Collapse file tree 1 file changed +20
-3
lines changed Original file line number Diff line number Diff line change 22
33#include " options.h"
44
5+ #include < util/cmdline.h>
56#include < util/make_unique.h>
67#include < util/options.h>
78
9+ #include < ansi-c/goto_check_c.h>
10+ #include < goto-checker/solver_factory.h>
11+
812api_optionst api_optionst::create ()
913{
1014 return api_optionst{};
@@ -16,9 +20,22 @@ api_optionst &api_optionst::simplify(bool on)
1620 return *this ;
1721}
1822
23+ static std::unique_ptr<optionst> make_internal_default_options ()
24+ {
25+ std::unique_ptr<optionst> options = util_make_unique<optionst>();
26+ cmdlinet command_line;
27+ PARSE_OPTIONS_GOTO_CHECK (command_line, (*options));
28+ parse_solver_options (command_line, *options);
29+ options->set_option (" built-in-assertions" , true );
30+ options->set_option (" arrays-uf" , " auto" );
31+ options->set_option (" depth" , UINT32_MAX);
32+ options->set_option (" sat-preprocessor" , true );
33+ return options;
34+ }
35+
1936std::unique_ptr<optionst> api_optionst::to_engine_options () const
2037{
21- optionst engine_options;
22- engine_options. set_option (" simplify" , simplify_enabled);
23- return util_make_unique<optionst>( engine_options) ;
38+ auto engine_options = make_internal_default_options () ;
39+ engine_options-> set_option (" simplify" , simplify_enabled);
40+ return engine_options;
2441}
You can’t perform that action at this time.
0 commit comments