Skip to content

Commit 4f4cdbb

Browse files
author
kroening
committed
use goto_modelt
git-svn-id: svn+ssh://svn.cprover.org/srv/svn/cbmc/trunk@3906 6afb6bc1-c8e4-404c-8f48-9ae832c5b171
1 parent 02af651 commit 4f4cdbb

File tree

2 files changed

+21
-5
lines changed

2 files changed

+21
-5
lines changed

src/goto-programs/remove_returns.cpp

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,3 +288,21 @@ void remove_returns(
288288
rr(goto_functions);
289289
}
290290

291+
/*******************************************************************\
292+
293+
Function: remove_returns
294+
295+
Inputs:
296+
297+
Outputs:
298+
299+
Purpose: removes returns
300+
301+
\*******************************************************************/
302+
303+
void remove_returns(goto_modelt &goto_model)
304+
{
305+
remove_returnst rr(goto_model.symbol_table);
306+
rr(goto_model.goto_functions);
307+
}
308+

src/goto-programs/remove_returns.h

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,10 @@ Date: September 2009
1111
#ifndef CPROVER_REMOVE_RETURN_VALUES_H
1212
#define CPROVER_REMOVE_RETURN_VALUES_H
1313

14-
#include <goto-programs/goto_functions.h>
14+
#include <goto-programs/goto_model.h>
1515

16-
class symbol_tablet;
16+
void remove_returns(symbol_tablet &, goto_functionst &);
1717

18-
void remove_returns(
19-
symbol_tablet &symbol_table,
20-
goto_functionst &goto_functions);
18+
void remove_returns(goto_modelt &);
2119

2220
#endif

0 commit comments

Comments
 (0)