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

Method buildIR

src/main/java/pascal/taie/frontend/soot/IRBuilder.java:50–63  ·  view source on GitHub ↗
(JMethod method)

Source from the content-addressed store, hash-verified

48 }
49
50 @Override
51 public IR buildIR(JMethod method) {
52 try {
53 return new MethodIRBuilder(method, converter).build();
54 } catch (RuntimeException e) {
55 if (e.getStackTrace()[0].getClassName().startsWith("soot")) {
56 logger.warn("Soot front failed to build method body for {}," +
57 " constructs an empty IR instead", method);
58 return new IRBuildHelper(method).buildEmpty();
59 } else {
60 throw e;
61 }
62 }
63 }
64
65 /**
66 * Builds IR for all methods in given class hierarchy.

Callers

nothing calls this directly

Implementers 1

CachedIRBuildersrc/main/java/pascal/taie/frontend/cac

Calls 2

buildEmptyMethod · 0.80
buildMethod · 0.65

Tested by

no test coverage detected