public int borrowSpareRegister(int category){
  int result=spareRegisterBase + borrowedSpareRegisters;
  borrowedSpareRegisters+=category;
  registerCount=Math.max(registerCount,result + category);
  return result;
}

public int borrowSpareRegister ( int category ) { int result = spareRegisterBase + borrowedSpareRegisters ; borrowedSpareRegisters += category ; registerCount = Math . max ( registerCount , result + category ) ; return result ; }
borrows a register to use as a temp . used in the phi removal process . call returnspareregisters ( ) when done .
