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

Method testIRBuilder

src/test/java/pascal/taie/frontend/soot/IRTest.java:52–64  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50 }
51
52 @Test
53 void testIRBuilder() {
54 targets.forEach(main -> {
55 buildWorld(main);
56 JClass mainClass = World.get().getClassHierarchy().getClass(main);
57 mainClass.getDeclaredMethods()
58 .stream()
59 .sorted(Comparator.comparing(JMethod::toString))
60 .forEach(m ->
61 IRPrinter.print(m.getIR(), System.out));
62 System.out.println("------------------------------\n");
63 });
64 }
65
66 @Test
67 void testDefUse() {

Callers

nothing calls this directly

Calls 10

buildWorldMethod · 0.95
getMethod · 0.95
getDeclaredMethodsMethod · 0.95
printMethod · 0.95
getClassHierarchyMethod · 0.80
streamMethod · 0.80
comparingMethod · 0.80
forEachMethod · 0.65
getClassMethod · 0.65
getIRMethod · 0.65

Tested by

no test coverage detected