private void checkInEdgesAreInLoop(BasicBlock block) throws NonRegularLoopException {
  Enumeration<BasicBlock> block_inEdges=block.getIn();
  while (block_inEdges.hasMoreElements()) {
    BasicBlock curEdgeBB=block_inEdges.nextElement();
    if ((!isInLoop(curEdgeBB)) && (block != header)) {
      throw new NonRegularLoopException("Parallelization giving up: edge into a block in the loop from a block outside of the loop, and the block wasn't the loop header" + ((block == exit) ? " (it was the exit block though)" : ""));
    }
  }
}

private void checkInEdgesAreInLoop ( BasicBlock block ) throws NonRegularLoopException { Enumeration < BasicBlock > block_inEdges = block . getIn ( ) ; while ( block_inEdges . hasMoreElements ( ) ) { BasicBlock curEdgeBB = block_inEdges . nextElement ( ) ; if ( ( ! isInLoop ( curEdgeBB ) ) && ( block != header ) ) { throw new NonRegularLoopException ( "Parallelization giving up: edge into a block in the loop from a block outside of the loop, and the block wasn't the loop header" + ( ( block == exit ) ? " (it was the exit block though)" : "" ) ) ; } } }
check the edges into a block are from within the loop
