private boolean noTrailInstructions(BlockNode block){
  IContainer curContainer=block;
  for (  IRegion region : regionStack) {
    if (region instanceof IBranchRegion) {
      curContainer=region;
      continue;
    }
    List<IContainer> subBlocks=region.getSubBlocks();
    if (!subBlocks.isEmpty()) {
      ListIterator<IContainer> itSubBlock=subBlocks.listIterator(subBlocks.size());
      while (itSubBlock.hasPrevious()) {
        IContainer subBlock=itSubBlock.previous();
        if (subBlock == curContainer) {
          break;
        }
 else         if (!isEmpty(subBlock)) {
          return false;
        }
      }
    }
    curContainer=region;
  }
  return true;
}

private boolean noTrailInstructions ( BlockNode block ) { IContainer curContainer = block ; for ( IRegion region : regionStack ) { if ( region instanceof IBranchRegion ) { curContainer = region ; continue ; } List < IContainer > subBlocks = region . getSubBlocks ( ) ; if ( ! subBlocks . isEmpty ( ) ) { ListIterator < IContainer > itSubBlock = subBlocks . listIterator ( subBlocks . size ( ) ) ; while ( itSubBlock . hasPrevious ( ) ) { IContainer subBlock = itSubBlock . previous ( ) ; if ( subBlock == curContainer ) { break ; } else if ( ! isEmpty ( subBlock ) ) { return false ; } } } curContainer = region ; } return true ; }
check that there are no code after this block in regions structure
