//不可取的方案
int speedupFactor;

if (condition)
{
   //......代码......
  speedupFactor = someValue;
}
else
{
  //......代码......
  speedupFactor = someValue;
}

//较好的方案,初始化了变量
int speedFactor = ComputeSpeedupFactor();