Program: 6528
Project: 6528
Buggy source:
void generate() throws Exception {
  String className="String_Node_Str";
  CppClass class_CRectangleSimple=CppClass.factory.create(className);
  class_CRectangleSimple.setComment(new CCommentImpl("String_Node_Str"));
  CppTypeGenerator type_int=new CppTypeGenerator(Cpp.INT);
  CppVar var_x=CppVar.factory.create(Cpp.PRIVATE,type_int.toString(),"String_Node_Str","String_Node_Str");
  var_x.setComment(new CCommentImpl("String_Node_Str"));
  CppVar var_y=CppVar.factory.create(Cpp.PRIVATE,type_int.toString(),"String_Node_Str");
  var_y.setComment(new CCommentImpl("String_Node_Str"));
  class_CRectangleSimple.add(var_y);
  class_CRectangleSimple.add(var_x);
  CppVar var_a=CppVar.factory.create(type_int,"String_Node_Str");
  CppVar var_b=CppVar.factory.create(type_int,"String_Node_Str");
  CppFun fun_set_values=CppFun.factory.create(Cpp.VOID,"String_Node_Str",var_a,var_b);
  fun_set_values.appendCode("String_Node_Str");
  fun_set_values.appendCode("String_Node_Str");
  CppConstructor con=CppConstructor.factory.create(var_a,var_b);
  con.appendCode("String_Node_Str");
  class_CRectangleSimple.add(Cpp.PUBLIC,con);
  CppFunCommentImpl comment_fun_set_values=new CppFunCommentImpl("String_Node_Str");
  comment_fun_set_values.addParameter(var_a,"String_Node_Str");
  comment_fun_set_values.addParameter(var_b,"String_Node_Str");
  fun_set_values.setComment(comment_fun_set_values);
  class_CRectangleSimple.add(Cpp.PUBLIC,fun_set_values);
  CppFun fun_area=CppFun.factory.create(type_int,"String_Node_Str");
  CppFunCommentImpl comment_fun_area=new CppFunCommentImpl("String_Node_Str");
  comment_fun_area.setReturnTypeDescription("String_Node_Str");
  fun_area.setComment(comment_fun_area);
  fun_area.appendCode("String_Node_Str");
  class_CRectangleSimple.add(Cpp.PUBLIC,fun_area);
  CppSourceFile file=workspace.getC().getCppSourceFile(className);
  CppSourceFile header=this.workspace.getC().getCppHeaderFile(className);
  file.addInclude(header);
  header.setComment(new CCommentImpl("String_Node_Str"));
  file.addLibInclude("String_Node_Str");
  file.addUsingNamespace("String_Node_Str");
  file.setComment(new CCommentImpl("String_Node_Str"));
  CFun fun_main=CFun.factory.create("String_Node_Str","String_Node_Str",null);
  fun_main.appendCode(className + "String_Node_Str");
  fun_main.appendCode("String_Node_Str");
  fun_main.appendCode("String_Node_Str");
  fun_main.setComment(new CCommentImpl("String_Node_Str"));
  file.add(fun_main);
  header.add(class_CRectangleSimple);
}

Fixed version (ground truth):
void generate() throws Exception {
  String className="String_Node_Str";
  CppClass class_CRectangleSimple=CppClass.factory.create(className);
  class_CRectangleSimple.setComment(new CCommentImpl("String_Node_Str"));
  CppTypeGenerator type_int=new CppTypeGenerator(Cpp.INT);
  CppVar var_x=CppVar.factory.create(Cpp.PRIVATE,type_int.toString(),"String_Node_Str","String_Node_Str");
  var_x.setComment(new CCommentImpl("String_Node_Str"));
  CppVar var_y=CppVar.factory.create(Cpp.PRIVATE,type_int.toString(),"String_Node_Str");
  var_y.setComment(new CCommentImpl("String_Node_Str"));
  class_CRectangleSimple.add(var_y);
  class_CRectangleSimple.add(var_x);
  CppVar var_a=CppVar.factory.create(type_int,"String_Node_Str");
  CppVar var_b=CppVar.factory.create(type_int,"String_Node_Str");
  CppFun fun_set_values=CppFun.factory.create(Cpp.VOID,"String_Node_Str",var_a,var_b);
  fun_set_values.appendCode("String_Node_Str");
  fun_set_values.appendCode("String_Node_Str");
  CppConstructor con=CppConstructor.factory.create(var_a,var_b);
  con.appendCode("String_Node_Str");
  class_CRectangleSimple.add(Cpp.PUBLIC,con);
  CppFunCommentImpl comment_fun_set_values=new CppFunCommentImpl("String_Node_Str");
  comment_fun_set_values.addParameter(var_a,"String_Node_Str");
  comment_fun_set_values.addParameter(var_b,"String_Node_Str");
  fun_set_values.setComment(comment_fun_set_values);
  class_CRectangleSimple.add(Cpp.PUBLIC,fun_set_values);
  CppFun fun_area=CppFun.factory.create(type_int,"String_Node_Str");
  CppFunCommentImpl comment_fun_area=new CppFunCommentImpl("String_Node_Str");
  comment_fun_area.setReturnTypeDescription("String_Node_Str");
  fun_area.setComment(comment_fun_area);
  fun_area.appendCode("String_Node_Str");
  class_CRectangleSimple.add(Cpp.PUBLIC,fun_area);
  CppSourceFile file=this.workspace.getC().getCppSourceFile(className);
  CppSourceFile header=this.workspace.getC().getCppHeaderFile(className);
  file.addInclude(header);
  header.setComment(new CCommentImpl("String_Node_Str"));
  file.addLibInclude("String_Node_Str");
  file.addUsingNamespace("String_Node_Str");
  file.setComment(new CCommentImpl("String_Node_Str"));
  CFun fun_main=CFun.factory.create("String_Node_Str","String_Node_Str",null);
  fun_main.appendCode(className + "String_Node_Str");
  fun_main.appendCode("String_Node_Str");
  fun_main.appendCode("String_Node_Str");
  fun_main.setComment(new CCommentImpl("String_Node_Str"));
  file.add(fun_main);
  header.add(class_CRectangleSimple);
}