Program: 6500
Project: 6500
Buggy source:
/** 
 * Generates the .hpp file in the given workspace.
 * @param workspace
 * @throws Exception
 */
private static void createHeader(Workspace workspace) throws Exception {
  headerFile=workspace.getC().getCppHeaderFile(CppEXIStreamGenerator.FILE_NAME);
  headerFile.setComment(new CCommentImpl("String_Node_Str"));
  headerFile.addInclude(CppTypeHelper.FILE_NAME + "String_Node_Str");
  headerFile.addBeforeDirective("String_Node_Str");
  headerFile.addBeforeDirective("String_Node_Str");
  headerFile.addBeforeDirective("String_Node_Str");
  headerFile.addBeforeDirective("String_Node_Str");
  headerFile.addBeforeDirective("String_Node_Str");
  headerFile.addBeforeDirective("String_Node_Str");
  headerFile.add(CppVar.factory.create(Cpp.CONST | Cpp.UNSIGNED | Cpp.CHAR,"String_Node_Str"));
  CStruct streamContext=CStruct.factory.create("String_Node_Str","String_Node_Str",true,CParam.factory.create("String_Node_Str","String_Node_Str"),CParam.factory.create("String_Node_Str","String_Node_Str"));
  streamContext.setComment(new CCommentImpl("String_Node_Str" + "String_Node_Str"));
  headerFile.add(streamContext);
  CStruct ioStream=CStruct.factory.create("String_Node_Str","String_Node_Str",true,CParam.factory.create("String_Node_Str","String_Node_Str"),CParam.factory.create("String_Node_Str","String_Node_Str"));
  ioStream.setComment(new CCommentImpl("String_Node_Str"));
  headerFile.add(ioStream);
  CStruct exiStream=CStruct.factory.create("String_Node_Str","String_Node_Str",true,CParam.factory.create("String_Node_Str","String_Node_Str"),CParam.factory.create("String_Node_Str","String_Node_Str"),CParam.factory.create("String_Node_Str","String_Node_Str"),CParam.factory.create("String_Node_Str","String_Node_Str"),CParam.factory.create("String_Node_Str","String_Node_Str"));
  exiStream.setComment(new CCommentImpl("String_Node_Str"));
  headerFile.add(exiStream);
  headerFile.add(clazz);
  headerFile.addAfterDirective("String_Node_Str");
}

Fixed version (ground truth):
/** 
 * Generates the .hpp file in the given workspace.
 * @param workspace
 * @throws Exception
 */
private static void createHeader(Workspace workspace) throws Exception {
  headerFile=workspace.getC().getCppHeaderFile(CppEXIStreamGenerator.FILE_NAME);
  headerFile.setComment(new CCommentImpl("String_Node_Str"));
  headerFile.addInclude(CppTypeHelper.FILE_NAME + "String_Node_Str");
  headerFile.addBeforeDirective("String_Node_Str");
  headerFile.addBeforeDirective("String_Node_Str");
  headerFile.addBeforeDirective("String_Node_Str");
  headerFile.addBeforeDirective("String_Node_Str");
  headerFile.addBeforeDirective("String_Node_Str");
  headerFile.addBeforeDirective("String_Node_Str");
  headerFile.addBeforeDirective("String_Node_Str");
  headerFile.addBeforeDirective("String_Node_Str");
  headerFile.add(CppTypeDef.factory.create(Cpp.INT,"String_Node_Str"));
  CStruct streamContext=CStruct.factory.create("String_Node_Str","String_Node_Str",true,CParam.factory.create("String_Node_Str","String_Node_Str"),CParam.factory.create("String_Node_Str","String_Node_Str"));
  streamContext.setComment(new CCommentImpl("String_Node_Str" + "String_Node_Str"));
  headerFile.add(streamContext);
  CStruct ioStream=CStruct.factory.create("String_Node_Str","String_Node_Str",true,CParam.factory.create("String_Node_Str","String_Node_Str"),CParam.factory.create("String_Node_Str","String_Node_Str"));
  ioStream.setComment(new CCommentImpl("String_Node_Str"));
  headerFile.add(ioStream);
  CStruct exiStream=CStruct.factory.create("String_Node_Str","String_Node_Str",true,CParam.factory.create("String_Node_Str","String_Node_Str"),CParam.factory.create("String_Node_Str","String_Node_Str"),CParam.factory.create("String_Node_Str","String_Node_Str"),CParam.factory.create("String_Node_Str","String_Node_Str"),CParam.factory.create("String_Node_Str","String_Node_Str"));
  exiStream.setComment(new CCommentImpl("String_Node_Str"));
  headerFile.add(exiStream);
  headerFile.add(clazz);
  headerFile.addAfterDirective("String_Node_Str");
}