Program: 149925
Project: 149925
Buggy source:
/** 
 * This method produces a summary report of compilation activities
 * @param explain Explains the metrics used in the report
 */
public static void report(boolean explain){
  VM.sysWrite("String_Node_Str");
  VM.sysWrite("String_Node_Str");
  for (int i=0; i <= name.length - 1; i++) {
    if (totalMethods[i] > 0) {
      VM.sysWrite(name[i]);
      VM.sysWrite(totalMethods[i]);
      VM.sysWrite("String_Node_Str");
      VM.sysWrite(totalCompTime[i]);
      VM.sysWrite("String_Node_Str");
      if (i == JNI_COMPILER) {
        VM.sysWrite("String_Node_Str");
      }
 else {
        VM.sysWrite(Math.exp(totalLogOfRates[i] / totalLogValueMethods[i]),2);
      }
      VM.sysWrite("String_Node_Str");
      if (i != JNI_COMPILER) {
        VM.sysWrite((double)(totalMCLength[i] << ArchitectureSpecific.VM_RegisterConstants.LG_INSTRUCTION_WIDTH) / (double)totalBCLength[i],2);
      }
 else {
        VM.sysWrite("String_Node_Str");
      }
      VM.sysWrite("String_Node_Str");
      VM.sysWrite((double)(totalMCLength[i] << ArchitectureSpecific.VM_RegisterConstants.LG_INSTRUCTION_WIDTH) / 1024,1);
      VM.sysWrite("String_Node_Str");
      if (i != JNI_COMPILER) {
        VM.sysWrite((double)totalBCLength[i] / 1024,1);
      }
 else {
        VM.sysWrite("String_Node_Str");
      }
      VM.sysWrite("String_Node_Str");
    }
  }
  if (explain) {
    VM.sysWrite("String_Node_Str");
    VM.sysWrite("String_Node_Str");
    VM.sysWrite("String_Node_Str");
    VM.sysWrite("String_Node_Str");
    VM.sysWrite("String_Node_Str");
    VM.sysWrite("String_Node_Str");
    VM.sysWrite("String_Node_Str");
  }
  VM_BaselineCompiler.generateBaselineCompilerSubsystemReport(explain);
  if (VM.BuildForAdaptiveSystem) {
    VM_TypeReference theTypeRef=VM_TypeReference.findOrCreate(VM_BootstrapClassLoader.getBootstrapClassLoader(),VM_Atom.findOrCreateAsciiAtom("String_Node_Str"));
    VM_Type theType=theTypeRef.peekResolvedType();
    if (theType != null && theType.asClass().isInitialized()) {
      OPT_OptimizationPlanner.generateOptimizingCompilerSubsystemReport(explain);
    }
 else {
      VM.sysWrite("String_Node_Str");
      VM.sysWrite("String_Node_Str");
    }
  }
}

Fixed version (ground truth):
/** 
 * This method produces a summary report of compilation activities
 * @param explain Explains the metrics used in the report
 */
public static void report(boolean explain){
  VM.sysWrite("String_Node_Str");
  VM.sysWrite("String_Node_Str");
  for (int i=0; i <= name.length - 1; i++) {
    if (totalMethods[i] > 0) {
      VM.sysWrite(name[i]);
      VM.sysWrite(totalMethods[i]);
      VM.sysWrite("String_Node_Str");
      VM.sysWrite(totalCompTime[i]);
      VM.sysWrite("String_Node_Str");
      if (i == JNI_COMPILER) {
        VM.sysWrite("String_Node_Str");
      }
 else {
        VM.sysWrite(Math.exp(totalLogOfRates[i] / totalLogValueMethods[i]),2);
      }
      VM.sysWrite("String_Node_Str");
      if (i != JNI_COMPILER) {
        VM.sysWrite((double)(totalMCLength[i] << ArchitectureSpecific.VM_RegisterConstants.LG_INSTRUCTION_WIDTH) / (double)totalBCLength[i],2);
      }
 else {
        VM.sysWrite("String_Node_Str");
      }
      VM.sysWrite("String_Node_Str");
      VM.sysWrite((double)(totalMCLength[i] << ArchitectureSpecific.VM_RegisterConstants.LG_INSTRUCTION_WIDTH) / 1024,1);
      VM.sysWrite("String_Node_Str");
      if (i != JNI_COMPILER) {
        VM.sysWrite((double)totalBCLength[i] / 1024,1);
      }
 else {
        VM.sysWrite("String_Node_Str");
      }
      VM.sysWrite("String_Node_Str");
    }
  }
  if (explain) {
    VM.sysWrite("String_Node_Str");
    VM.sysWrite("String_Node_Str");
    VM.sysWrite("String_Node_Str");
    VM.sysWrite("String_Node_Str");
    VM.sysWrite("String_Node_Str");
    VM.sysWrite("String_Node_Str");
    VM.sysWrite("String_Node_Str");
  }
  VM_BaselineCompiler.generateBaselineCompilerSubsystemReport(explain);
  if (VM.BuildForAdaptiveSystem) {
    VM_Type theType=VM_TypeReference.OPT_OptimizationPlanner.peekResolvedType();
    if (theType != null && theType.asClass().isInitialized()) {
      OPT_OptimizationPlanner.generateOptimizingCompilerSubsystemReport(explain);
    }
 else {
      VM.sysWrite("String_Node_Str");
      VM.sysWrite("String_Node_Str");
    }
  }
}