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

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