MCPcopy Create free account
hub / github.com/AliveToolkit/alive2 / printDot

Method printDot

ir/function.cpp:989–998  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

987}
988
989void CFG::printDot(ostream &os) const {
990 os << "digraph {\n"
991 "\"" << bb_dot_name(f.getBBs()[0]->getName()) << "\" [shape=box];\n";
992
993 for (auto [src, dst, instr] : *this) {
994 os << '"' << bb_dot_name(src.getName()) << "\" -> \""
995 << bb_dot_name(dst.getName()) << "\";\n";
996 }
997 os << "}\n";
998}
999
1000
1001// Relies on Alive's top_sort run during llvm2alive conversion in order to

Callers 1

writeDotMethod · 0.80

Calls 3

bb_dot_nameFunction · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected