()
| 64 | } |
| 65 | |
| 66 | @Test |
| 67 | void testDefUse() { |
| 68 | String main = "DefUse"; |
| 69 | buildWorld(main); |
| 70 | JClass mainClass = World.get().getClassHierarchy().getClass(main); |
| 71 | mainClass.getDeclaredMethods().forEach(m -> { |
| 72 | System.out.println(m); |
| 73 | m.getIR().forEach(stmt -> |
| 74 | System.out.printf("%s, def: %s, uses: %s%n", |
| 75 | stmt, stmt.getDef(), stmt.getUses())); |
| 76 | System.out.println("--------------------"); |
| 77 | }); |
| 78 | } |
| 79 | } |
nothing calls this directly
no test coverage detected