/** * Get the predecessor of given instruction within the basic block. * * @param handle * the instruction * @return the instruction's predecessor, or null if the instruction is the * first in the basic block */ public InstructionHandle getPredecessorOf(InstructionHandle handle) { if (VERIFY_INTEGRITY) { if (!containsInstruction(handle)) { throw new IllegalStateException(); } } return handle == firstInstruction ? null : handle.getPrev(); }
/** * Get the successor of given instruction within the basic block. * * @param handle * the instruction * @return the instruction's successor, or null if the instruction is the * last in the basic block */ public @CheckForNull InstructionHandle getSuccessorOf(InstructionHandle handle) { if (VERIFY_INTEGRITY) { if (!containsInstruction(handle)) { throw new IllegalStateException(); } } return handle == lastInstruction ? null : handle.getNext(); }
if (basicBlock.containsInstruction(pei)) {
/** * Get the predecessor of given instruction within the basic block. * * @param handle * the instruction * @return the instruction's predecessor, or null if the instruction is the * first in the basic block */ public InstructionHandle getPredecessorOf(InstructionHandle handle) { if (VERIFY_INTEGRITY) { if (!containsInstruction(handle)) { throw new IllegalStateException(); } } return handle == firstInstruction ? null : handle.getPrev(); }
/** * Get the successor of given instruction within the basic block. * * @param handle * the instruction * @return the instruction's successor, or null if the instruction is the * last in the basic block */ public @CheckForNull InstructionHandle getSuccessorOf(InstructionHandle handle) { if (VERIFY_INTEGRITY) { if (!containsInstruction(handle)) { throw new IllegalStateException(); } } return handle == lastInstruction ? null : handle.getNext(); }
if (basicBlock.containsInstruction(pei)) {