Skip to content

Commit 9623503

Browse files
author
Daniel Kroening
committed
new goto_convert API
1 parent b90c4a3 commit 9623503

File tree

2 files changed

+20
-5
lines changed

2 files changed

+20
-5
lines changed

src/goto-programs/goto_convert_functions.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,16 @@ void goto_convert(
230230
goto_model.symbol_table.swap(symbol_table);
231231
}
232232

233+
void goto_convert(
234+
goto_modelt &goto_model,
235+
message_handlert &message_handler)
236+
{
237+
goto_convert(
238+
goto_model.symbol_table,
239+
goto_model.goto_functions,
240+
message_handler);
241+
}
242+
233243
void goto_convert(
234244
symbol_tablet &symbol_table,
235245
goto_functionst &functions,

src/goto-programs/goto_convert_functions.h

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,25 @@ Date: June 2003
2121
void goto_convert(
2222
symbol_tablet &symbol_table,
2323
goto_functionst &functions,
24-
message_handlert &message_handler);
24+
message_handlert &);
2525

26-
// convert it all!
26+
// confusing, will go away
2727
void goto_convert(
2828
symbol_tablet &symbol_table,
2929
goto_modelt &dest,
30-
message_handlert &message_handler);
30+
message_handlert &);
31+
32+
// convert it all!
33+
void goto_convert(
34+
goto_modelt &,
35+
message_handlert &);
3136

3237
// just convert a specific function
3338
void goto_convert(
3439
const irep_idt &identifier,
3540
symbol_tablet &symbol_table,
3641
goto_functionst &functions,
37-
message_handlert &message_handler);
42+
message_handlert &);
3843

3944
class goto_convert_functionst:public goto_convertt
4045
{
@@ -52,7 +57,7 @@ class goto_convert_functionst:public goto_convertt
5257
protected:
5358
goto_functionst &functions;
5459

55-
static bool hide(const goto_programt &goto_program);
60+
static bool hide(const goto_programt &);
5661

5762
//
5863
// function calls

0 commit comments

Comments
 (0)