Program: 92435
Project: 92435
Buggy source:
/** 
 * @param args
 */
@SuppressWarnings("String_Node_Str") public static void main(String[] args){
  final String TRACE_PATH="String_Node_Str";
  final boolean USE_TEXT=false;
  final int LOOP_COUNT=1;
  Long nbEvent=0L;
  Vector<Double> benchs=new Vector<Double>();
  CTFTrace trace=null;
  long start, stop;
  for (int loops=0; loops < LOOP_COUNT; loops++) {
    try {
      nbEvent=0L;
      trace=new CTFTrace(TRACE_PATH);
    }
 catch (    CTFReaderException e) {
    }
    long prev=-1;
    start=System.nanoTime();
    if (USE_TEXT) {
      System.out.println("String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
    }
    if (trace != null) {
      CTFTraceReader traceReader=new CTFTraceReader(trace);
      start=System.nanoTime();
      while (traceReader.hasMoreEvents()) {
        EventDefinition ed=traceReader.getCurrentEventDef();
        nbEvent++;
        if (prev == traceReader.getIndex()) {
          System.out.println("String_Node_Str" + prev);
        }
        prev=traceReader.getIndex();
        if (USE_TEXT) {
          String output=formatDate(ed.timestamp + trace.getOffset());
          System.out.println(traceReader.getIndex() + "String_Node_Str" + output+ "String_Node_Str"+ ed.getDeclaration().getName()+ "String_Node_Str"+ ed.getCPU());
        }
        traceReader.advance();
      }
    }
    stop=System.nanoTime();
    System.out.print('.');
    double time=(stop - start) / (double)nbEvent;
    benchs.add(time);
  }
  System.out.println("String_Node_Str");
  double avg=0;
  for (  Double val : benchs) {
    avg+=val;
  }
  avg/=benchs.size();
  System.out.println("String_Node_Str" + nbEvent + "String_Node_Str"+ avg+ "String_Node_Str");
  for (  Double val : benchs) {
    System.out.print(val);
    System.out.print("String_Node_Str");
  }
  testSeekIndex(trace);
  testSeekIndex(trace);
}

Fixed version (ground truth):
/** 
 * @param args
 */
@SuppressWarnings("String_Node_Str") public static void main(String[] args){
  final String TRACE_PATH="String_Node_Str";
  final boolean USE_TEXT=true;
  final int LOOP_COUNT=1;
  Long nbEvent=0L;
  Vector<Double> benchs=new Vector<Double>();
  CTFTrace trace=null;
  long start, stop;
  for (int loops=0; loops < LOOP_COUNT; loops++) {
    try {
      nbEvent=0L;
      trace=new CTFTrace(TRACE_PATH);
    }
 catch (    CTFReaderException e) {
    }
    long prev=-1;
    start=System.nanoTime();
    if (USE_TEXT) {
      System.out.println("String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str");
    }
    if (trace != null) {
      CTFTraceReader traceReader=new CTFTraceReader(trace);
      start=System.nanoTime();
      while (traceReader.hasMoreEvents()) {
        EventDefinition ed=traceReader.getCurrentEventDef();
        nbEvent++;
        if (prev == traceReader.getIndex()) {
          System.out.println("String_Node_Str" + prev);
        }
        prev=traceReader.getIndex();
        if (USE_TEXT) {
          String output=formatDate(ed.timestamp + trace.getOffset());
          System.out.println(traceReader.getIndex() + "String_Node_Str" + output+ "String_Node_Str"+ ed.getDeclaration().getName()+ "String_Node_Str"+ ed.getCPU()+ ed.getFields().toString());
        }
        traceReader.advance();
      }
    }
    stop=System.nanoTime();
    System.out.print('.');
    double time=(stop - start) / (double)nbEvent;
    benchs.add(time);
  }
  System.out.println("String_Node_Str");
  double avg=0;
  for (  Double val : benchs) {
    avg+=val;
  }
  avg/=benchs.size();
  System.out.println("String_Node_Str" + nbEvent + "String_Node_Str"+ avg+ "String_Node_Str");
  for (  Double val : benchs) {
    System.out.print(val);
    System.out.print("String_Node_Str");
  }
  testSeekIndex(trace);
  testSeekIndex(trace);
}