/** * @param nextHandle * @return */ private boolean potentialInitialization(InstructionHandle nextHandle) { if (nextHandle == null) return true; Instruction instruction = nextHandle.getInstruction(); if (instruction instanceof ReturnInstruction) return false; if (instruction instanceof IfInstruction) return false; return true; }
@Override public void visitIfInstruction(IfInstruction ins) { isBranch = true; InstructionHandle target = ins.getTarget(); if (target == null) throw new IllegalStateException(); targetList.add(new Target(target, IFCMP_EDGE)); InstructionHandle fallThrough = handle.getNext(); targetList.add(new Target(fallThrough, FALL_THROUGH_EDGE)); }