MCPcopy Create free account
hub / github.com/LFYSec/MScan / toLabel

Method toLabel

src/main/java/pascal/taie/analysis/graph/cfg/CFGDumper.java:79–89  ·  view source on GitHub ↗
(N node, CFG<N> cfg)

Source from the content-addressed store, hash-verified

77 }
78
79 public static <N> String toLabel(N node, CFG<N> cfg) {
80 if (cfg.isEntry(node)) {
81 return "Entry" + cfg.getMethod();
82 } else if (cfg.isExit(node)) {
83 return "Exit" + cfg.getMethod();
84 } else {
85 return node instanceof Stmt ?
86 ((Stmt) node).getIndex() + ": " + node.toString().replace("\"", "\\\"") :
87 node.toString();
88 }
89 }
90
91 private static String toDotFileName(CFG<?> cfg) {
92 JMethod m = cfg.getMethod();

Callers 2

toLabelMethod · 0.95
dumpDotFileMethod · 0.95

Calls 5

isEntryMethod · 0.65
getMethodMethod · 0.65
isExitMethod · 0.65
getIndexMethod · 0.65
toStringMethod · 0.65

Tested by

no test coverage detected