Skip to content

Commit d895844

Browse files
smowtonpeterschrammel
authored andcommitted
Call get_language_options from get_goto_model
1 parent 554f796 commit d895844

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

src/goto-analyzer/goto_analyzer_parse_options.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ int goto_analyzer_parse_optionst::doit()
215215

216216
goto_model.set_message_handler(get_message_handler());
217217

218-
if(goto_model(cmdline.args))
218+
if(goto_model(cmdline))
219219
return 6;
220220

221221
if(process_goto_program(options))

src/goto-programs/get_goto_model.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,9 @@ Function: get_goto_modelt::operator()
3232
3333
\*******************************************************************/
3434

35-
bool get_goto_modelt::operator()(const std::vector<std::string> &files)
35+
bool get_goto_modelt::operator()(const cmdlinet &_cmdline)
3636
{
37+
const std::vector<std::string> &files=_cmdline.args;
3738
if(files.empty())
3839
{
3940
error() << "Please provide a program" << eom;
@@ -92,6 +93,7 @@ bool get_goto_modelt::operator()(const std::vector<std::string> &files)
9293

9394
languaget &language=*lf.language;
9495
language.set_message_handler(get_message_handler());
96+
language.get_language_options(_cmdline);
9597

9698
status() << "Parsing " << filename << eom;
9799

src/goto-programs/get_goto_model.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,15 @@ Author: Daniel Kroening, [email protected]
1010
#define CPROVER_GOTO_PROGRAMS_GET_GOTO_MODEL_H
1111

1212
#include <util/message.h>
13+
#include <util/cmdline.h>
1314

1415
#include "goto_model.h"
1516

1617
class get_goto_modelt:public goto_modelt, public messaget
1718
{
1819
public:
1920
get_goto_modelt() : generate_start_function(true) {}
20-
bool operator()(const std::vector<std::string> &);
21+
bool operator()(const cmdlinet &);
2122
bool generate_start_function;
2223
};
2324

src/symex/symex_parse_options.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ int symex_parse_optionst::doit()
177177

178178
goto_model.set_message_handler(get_message_handler());
179179

180-
if(goto_model(cmdline.args))
180+
if(goto_model(cmdline))
181181
return 6;
182182

183183
if(process_goto_program(options))

0 commit comments

Comments
 (0)