@@ -225,26 +225,30 @@ SCENARIO("call_graph",
225
225
226
226
THEN (" We expect {A,B} to be reachable from {A} in 1 step" )
227
227
{
228
+ call_graph_from_goto_functions.output (std::cout);
229
+ exported.output_dot (std::cout);
228
230
irep_idt function_name = " A" ;
229
231
std::size_t depth = 1 ;
232
+ std::cout<<" functions reachable within 1 step from A\n " ;
230
233
std::set<irep_idt> reachable = get_functions_reachable_within_n_steps (
231
234
exported, function_name, depth);
232
235
REQUIRE (reachable.size () == 2 );
233
236
REQUIRE (reachable.count (" A" ));
234
237
REQUIRE (reachable.count (" B" ));
235
238
}
236
- THEN (" We expect {A, B,C,D} to be reachable from {A} in 2 and 3 steps" )
239
+ THEN (" We expect {B,C,D} to be reachable from {A} in 2 and 3 steps" )
237
240
{
238
241
irep_idt function_name = " A" ;
239
242
std::size_t depth = 2 ;
243
+ std::cout<<" functions reachable within 2 steps from A\n " ;
240
244
std::set<irep_idt> reachable = get_functions_reachable_within_n_steps (
241
245
exported, function_name, depth);
242
246
REQUIRE (reachable.size () == 4 );
243
247
REQUIRE (reachable.count (" A" ));
244
248
REQUIRE (reachable.count (" B" ));
245
249
REQUIRE (reachable.count (" C" ));
246
250
REQUIRE (reachable.count (" D" ));
247
-
251
+ std::cout<< " functions reachable within 3 steps from A \n " ;
248
252
depth = 3 ;
249
253
reachable = get_functions_reachable_within_n_steps (
250
254
exported, function_name, depth);
@@ -257,6 +261,7 @@ SCENARIO("call_graph",
257
261
258
262
THEN (" We expect nothing to be reachable in 0 steps" )
259
263
{
264
+ std::cout<<" functions reachable within 0 steps from A\n " ;
260
265
irep_idt function_name = " A" ;
261
266
std::size_t depth = 0 ;
262
267
std::set<irep_idt> reachable = get_functions_reachable_within_n_steps (
0 commit comments