@@ -56,7 +56,7 @@ SCENARIO("call_graph",
56
56
// void C() { }
57
57
// void D() { }
58
58
59
- symbol_tablet symbol_table ;
59
+ goto_modelt goto_model ;
60
60
code_typet void_function_type;
61
61
62
62
{
@@ -68,7 +68,8 @@ SCENARIO("call_graph",
68
68
calls.move_to_operands (call1);
69
69
calls.move_to_operands (call2);
70
70
71
- symbol_table.add (create_void_function_symbol (" A" , calls));
71
+ goto_model.symbol_table .add (
72
+ create_void_function_symbol (" A" , calls));
72
73
}
73
74
74
75
{
@@ -80,17 +81,19 @@ SCENARIO("call_graph",
80
81
calls.move_to_operands (call1);
81
82
calls.move_to_operands (call2);
82
83
83
- symbol_table.add (create_void_function_symbol (" B" , calls));
84
+ goto_model.symbol_table .add (
85
+ create_void_function_symbol (" B" , calls));
84
86
}
85
87
86
- symbol_table.add (create_void_function_symbol (" C" , code_skipt ()));
87
- symbol_table.add (create_void_function_symbol (" D" , code_skipt ()));
88
+ goto_model.symbol_table .add (
89
+ create_void_function_symbol (" C" , code_skipt ()));
90
+ goto_model.symbol_table .add (
91
+ create_void_function_symbol (" D" , code_skipt ()));
88
92
89
- goto_functionst goto_functions;
90
93
stream_message_handlert msg (std::cout);
91
- goto_convert (symbol_table, goto_functions , msg);
94
+ goto_convert (goto_model , msg);
92
95
93
- call_grapht call_graph_from_goto_functions (goto_functions );
96
+ call_grapht call_graph_from_goto_functions (goto_model );
94
97
95
98
WHEN (" A call graph is constructed from the GOTO functions" )
96
99
{
0 commit comments