CompoundInterval copy(Register r){
  CompoundInterval result=new CompoundInterval(r);
  for (Iterator<BasicInterval> i=iterator(); i.hasNext(); ) {
    BasicInterval b=i.next();
    result.add(b);
  }
  return result;
}

CompoundInterval copy ( Register r ) { CompoundInterval result = new CompoundInterval ( r ) ; for ( Iterator < BasicInterval > i = iterator ( ) ; i . hasNext ( ) ; ) { BasicInterval b = i . next ( ) ; result . add ( b ) ; } return result ; }
copies the ranges from this interval into a new interval associated with a register .
