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

Method getIndex

src/main/java/pascal/taie/analysis/graph/cfg/StmtCFG.java:50–59  ·  view source on GitHub ↗
(Stmt stmt)

Source from the content-addressed store, hash-verified

48 }
49
50 @Override
51 public int getIndex(Stmt stmt) {
52 if (isEntry(stmt)) {
53 return 0;
54 } else if (isExit(stmt)) {
55 return ir.getStmts().size() + 1;
56 } else {
57 return stmt.getIndex() + 1;
58 }
59 }
60
61 @Override
62 public Stmt getNode(int index) {

Callers

nothing calls this directly

Calls 5

isEntryMethod · 0.65
isExitMethod · 0.65
sizeMethod · 0.65
getStmtsMethod · 0.65
getIndexMethod · 0.65

Tested by

no test coverage detected