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

Method build

src/main/java/pascal/taie/ir/IRBuildHelper.java:143–150  ·  view source on GitHub ↗

Builds an IR with given Stmts. This method sets the indexes of given Stmts, so client code does not need to set the indexes. @param stmts statements of the IR being built.

(List<Stmt> stmts)

Source from the content-addressed store, hash-verified

141 * @param stmts statements of the IR being built.
142 */
143 public IR build(List<Stmt> stmts) {
144 int i = 0;
145 for (Stmt stmt : stmts) {
146 stmt.setIndex(i++);
147 }
148 return new DefaultIR(method, thisVar, params, returnVars,
149 vars, stmts, List.of());
150 }
151
152 private Var newVar(String name, Type type) {
153 Var var = new Var(method, name, type, varCounter++);

Callers 6

buildEmptyMethod · 0.95
initModelsMethod · 0.95
storeStaticFieldMethod · 0.95
invokeVirtualMethodMethod · 0.95
allocateObjectMethod · 0.95
allocateArrayMethod · 0.95

Calls 2

setIndexMethod · 0.65
ofMethod · 0.65

Tested by

no test coverage detected