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

Method getIR

src/main/java/pascal/taie/language/classes/JMethod.java:183–196  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

181 }
182
183 public IR getIR() {
184 if (ir == null) {
185 if (isAbstract()) {
186 throw new AnalysisException("Abstract method " + this +
187 " has no method body");
188 }
189 if (isNative()) {
190 ir = World.get().getNativeModel().buildNativeIR(this);
191 } else {
192 ir = World.get().getIRBuilder().buildIR(this);
193 }
194 }
195 return ir;
196 }
197
198 /**
199 * @return the {@link MethodRef} pointing to this method.

Callers 15

testFunctionMethod · 0.95
testInterfaceMethod · 0.95
testMultiStatementMethod · 0.95
testWithArgsMethod · 0.95
testMethod · 0.95
onNewPointsToSetMethod · 0.95
dumpResultMethod · 0.95
compareResultMethod · 0.95
transferCallEdgeMethod · 0.95
onNewCallEdgeMethod · 0.95
addLambdaCallEdgeMethod · 0.95

Calls 7

isAbstractMethod · 0.95
isNativeMethod · 0.95
getMethod · 0.95
getIRBuilderMethod · 0.80
buildNativeIRMethod · 0.65
buildIRMethod · 0.65
getNativeModelMethod · 0.45

Tested by 5

testFunctionMethod · 0.76
testInterfaceMethod · 0.76
testMultiStatementMethod · 0.76
testWithArgsMethod · 0.76
testMethod · 0.76