14
14
#include < fstream>
15
15
#include < iostream>
16
16
17
- #include < util/cmdline.h>
18
17
#include < util/config.h>
19
18
#include < util/message.h>
20
19
#include < util/object_factory_parameters.h>
20
+ #include < util/options.h>
21
21
#include < util/unicode.h>
22
22
23
23
#include < langapi/mode.h>
30
30
#include " read_goto_binary.h"
31
31
32
32
goto_modelt initialize_goto_model (
33
- const cmdlinet &cmdline ,
33
+ const std::vector<std::string> &files ,
34
34
message_handlert &message_handler,
35
35
const optionst &options)
36
36
{
37
37
messaget msg (message_handler);
38
- const std::vector<std::string> &files=cmdline.args ;
39
38
if (files.empty ())
40
39
{
41
40
throw invalid_command_line_argument_exceptiont (
@@ -124,7 +123,7 @@ goto_modelt initialize_goto_model(
124
123
125
124
bool entry_point_generation_failed=false ;
126
125
127
- if (binaries_provided_start && cmdline. isset (" function" ))
126
+ if (binaries_provided_start && options. is_set (" function" ))
128
127
{
129
128
// Rebuild the entry-point, using the language annotation of the
130
129
// existing __CPROVER_start function:
@@ -139,7 +138,7 @@ goto_modelt initialize_goto_model(
139
138
if (binaries.empty ())
140
139
{
141
140
// Enable/disable stub generation for opaque methods
142
- bool stubs_enabled=cmdline. isset (" generate-opaque-stubs" );
141
+ bool stubs_enabled = options. is_set (" generate-opaque-stubs" );
143
142
language_files.set_should_generate_opaque_method_stubs (stubs_enabled);
144
143
}
145
144
@@ -166,7 +165,7 @@ goto_modelt initialize_goto_model(
166
165
goto_model.goto_functions ,
167
166
message_handler);
168
167
169
- if (cmdline. isset (" validate-goto-model" ))
168
+ if (options. is_set (" validate-goto-model" ))
170
169
{
171
170
goto_model.validate (validation_modet::EXCEPTION);
172
171
}
0 commit comments