public final boolean isExceptionHandlerEquivalent(BasicBlock other){
  if (exceptionHandlers != other.exceptionHandlers) {
    Enumeration<BasicBlock> e1=getExceptionHandlers();
    Enumeration<BasicBlock> e2=other.getExceptionHandlers();
    while (e1.hasMoreElements()) {
      if (!e2.hasMoreElements())       return false;
      if (e1.nextElement() != e2.nextElement())       return false;
    }
    if (e2.hasMoreElements())     return false;
  }
  return true;
}

public final boolean isExceptionHandlerEquivalent ( BasicBlock other ) { if ( exceptionHandlers != other . exceptionHandlers ) { Enumeration < BasicBlock > e1 = getExceptionHandlers ( ) ; Enumeration < BasicBlock > e2 = other . getExceptionHandlers ( ) ; while ( e1 . hasMoreElements ( ) ) { if ( ! e2 . hasMoreElements ( ) ) return false ; if ( e1 . nextElement ( ) != e2 . nextElement ( ) ) return false ; } if ( e2 . hasMoreElements ( ) ) return false ; } return true ; }
compare the in scope exception handlers of two blocks .
