6 #include <gtest/gtest.h>
12 TEST(ControLFlowGraphTests, test_remove_node)
22 bb0->add_outedge(bb0);
23 bb0->add_outedge(cfg.
exit());
31 EXPECT_EQ(cfg.
nnodes(), 0u);
TEST(ControLFlowGraphTests, test_remove_node)
static BasicBlock * create(ControlFlowGraph &cfg)
static std::string ToAscii(const ControlFlowGraph &controlFlowGraph)
static ControlFlowGraph::iterator remove_node(ControlFlowGraph::iterator &it)
ExitNode * exit() const noexcept
size_t nnodes() const noexcept
Global memory state passed between functions.