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 2
2
3
3
#include " options.h"
4
4
5
+ #include < util/cmdline.h>
5
6
#include < util/make_unique.h>
6
7
#include < util/options.h>
7
8
9
+ #include < ansi-c/goto_check_c.h>
10
+ #include < goto-checker/solver_factory.h>
11
+
8
12
api_optionst api_optionst::create ()
9
13
{
10
14
return api_optionst{};
@@ -16,9 +20,22 @@ api_optionst &api_optionst::simplify(bool on)
16
20
return *this ;
17
21
}
18
22
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
+
19
36
std::unique_ptr<optionst> api_optionst::to_engine_options () const
20
37
{
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;
24
41
}
You can’t perform that action at this time.
0 commit comments