Skip to content

Commit

Permalink
Re-enable old function signatures for test-gen compat
Browse files Browse the repository at this point in the history
  • Loading branch information
reuk committed Sep 14, 2017
1 parent 63c9a1e commit 1264b4d
Show file tree
Hide file tree
Showing 7 changed files with 50 additions and 4 deletions.
9 changes: 7 additions & 2 deletions src/analyses/call_graph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,14 @@ call_grapht::call_grapht()
{
}

call_grapht::call_grapht(const goto_modelt &goto_model)
call_grapht::call_grapht(const goto_modelt &goto_model):
call_grapht(goto_model.goto_functions)
{
forall_goto_functions(f_it, goto_model.goto_functions)
}

call_grapht::call_grapht(const goto_functionst &goto_functions)
{
forall_goto_functions(f_it, goto_functions)
{
const goto_programt &body=f_it->second.body;
add(f_it->first, body);
Expand Down
1 change: 1 addition & 0 deletions src/analyses/call_graph.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class call_grapht
public:
call_grapht();
explicit call_grapht(const goto_modelt &);
explicit call_grapht(const goto_functionst &);

void output_dot(std::ostream &out) const;
void output(std::ostream &out) const;
Expand Down
6 changes: 6 additions & 0 deletions src/goto-instrument/nondet_static.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ Date: November 2011
#define CPROVER_GOTO_INSTRUMENT_NONDET_STATIC_H

class goto_modelt;
class namespacet;
class goto_functionst;

void nondet_static(
const namespacet &ns,
goto_functionst &goto_functions);

void nondet_static(goto_modelt &);

Expand Down
17 changes: 15 additions & 2 deletions src/goto-programs/remove_static_init_loops.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,19 @@ void remove_static_init_loops(
optionst &options,
message_handlert &msg)
{
remove_static_init_loopst remove_loops(goto_model.symbol_table);
remove_loops.unwind_enum_static(goto_model.goto_functions, options, msg);
remove_static_init_loops(
goto_model.symbol_table,
goto_model.goto_functions,
options,
msg);
}

void remove_static_init_loops(
const symbol_tablet &symbol_table,
const goto_functionst &goto_functions,
optionst &options,
message_handlert &msg)
{
remove_static_init_loopst remove_loops(symbol_table);
remove_loops.unwind_enum_static(goto_functions, options, msg);
}
8 changes: 8 additions & 0 deletions src/goto-programs/remove_static_init_loops.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,18 @@ Author: Daniel Kroening, [email protected]
#include <util/symbol_table.h>

class goto_modelt;
class symbol_tablet;
class goto_functionst;

void remove_static_init_loops(
const goto_modelt &,
optionst &,
message_handlert &);

void remove_static_init_loops(
const symbol_tablet &symbol_table,
const goto_functionst &goto_functions,
optionst &,
message_handlert &);

#endif // CPROVER_GOTO_PROGRAMS_REMOVE_STATIC_INIT_LOOPS_H
6 changes: 6 additions & 0 deletions src/goto-programs/show_goto_functions.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,19 @@ Author: Peter Schrammel

class namespacet;
class goto_modelt;
class goto_functionst;

#define OPT_SHOW_GOTO_FUNCTIONS \
"(show-goto-functions)"

#define HELP_SHOW_GOTO_FUNCTIONS \
" --show-goto-functions show goto program\n"

void show_goto_functions(
const namespacet &ns,
ui_message_handlert::uit ui,
const goto_functionst &goto_functions);

void show_goto_functions(
const goto_modelt &,
ui_message_handlert::uit ui);
Expand Down
7 changes: 7 additions & 0 deletions src/goto-programs/show_properties.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,16 @@ Author: Daniel Kroening, [email protected]

class namespacet;
class goto_modelt;
class symbol_tablet;
class goto_functionst;

void show_properties(
const goto_modelt &,
ui_message_handlert::uit ui);

void show_properties(
const namespacet &ns,
ui_message_handlert::uit ui,
const goto_functionst &goto_functions);

#endif // CPROVER_GOTO_PROGRAMS_SHOW_PROPERTIES_H

0 comments on commit 1264b4d

Please sign in to comment.