Lines Matching refs:graph
284 const auto graph = CallGraph(context.get());
286 const auto& function_in_degree = graph.GetFunctionInDegree();
304 const auto graph = CallGraph(context.get());
307 ASSERT_EQ(graph.GetDirectCallees(2), std::set<uint32_t>({35, 48, 50}));
308 ASSERT_EQ(graph.GetDirectCallees(35), std::set<uint32_t>({}));
309 ASSERT_EQ(graph.GetDirectCallees(48), std::set<uint32_t>({35, 50, 61}));
310 ASSERT_EQ(graph.GetDirectCallees(50), std::set<uint32_t>({35}));
311 ASSERT_EQ(graph.GetDirectCallees(61), std::set<uint32_t>({}));
323 const auto graph = CallGraph(context.get());
326 ASSERT_EQ(graph.GetIndirectCallees(2), std::set<uint32_t>({35, 48, 50, 61}));
327 ASSERT_EQ(graph.GetDirectCallees(35), std::set<uint32_t>({}));
328 ASSERT_EQ(graph.GetDirectCallees(48), std::set<uint32_t>({35, 50, 61}));
329 ASSERT_EQ(graph.GetDirectCallees(50), std::set<uint32_t>({35}));
330 ASSERT_EQ(graph.GetDirectCallees(61), std::set<uint32_t>({}));
342 const auto graph = CallGraph(context.get());
344 const auto& topological_ordering = graph.GetFunctionsInTopologicalOrder();
365 const auto graph = CallGraph(context.get());
369 ASSERT_EQ(graph.GetMaxCallNestingDepth(2), 0);
370 ASSERT_EQ(graph.GetMaxCallNestingDepth(35), 4);
371 ASSERT_EQ(graph.GetMaxCallNestingDepth(48), 0);
372 ASSERT_EQ(graph.GetMaxCallNestingDepth(50), 2);
373 ASSERT_EQ(graph.GetMaxCallNestingDepth(61), 1);