Program: 6533
Project: 6533
Buggy source:
private void toStringHelper(StringBuffer tmp,int tabCount,long visability){
  if (null != this.getNested(visability) && this.getNested(visability).size() > 0) {
    for (    CppClass f : this.getNested(visability)) {
      f.toString(tmp,tabCount);
      tmp.append(Cpp.newline);
    }
    tmp.append(Cpp.newline);
  }
  if (null != this.getStructsUnions(visability) && this.getStructsUnions(visability).size() > 0) {
    for (    CStructBase c : this.getStructsUnions(visability)) {
      tmp.append(c.toString() + Cpp.newline);
    }
  }
  if (null != this.getEnums(visability) && this.getEnums(visability).size() > 0) {
    for (    CEnum e : this.getEnums(visability)) {
      tmp.append(e.toString() + Cpp.newline);
    }
  }
  if (null != this.getConstructors(visability) && this.getConstructors(visability).size() > 0) {
    for (    CppConstructor c : this.getConstructors(visability)) {
      tmp.append(c.getSignature() + "String_Node_Str" + Cpp.newline);
    }
  }
  if (null != this.getDestructors(visability) && this.getDestructors(visability).size() > 0) {
    for (    CppDestructor d : this.getDestructors(visability)) {
      tmp.append("String_Node_Str" + d.getSignature() + "String_Node_Str"+ Cpp.newline);
    }
    tmp.append(Cpp.newline);
  }
  if (null != this.getFuns(visability) && this.getFuns(visability).size() > 0) {
    for (    CppFun f : this.getFuns(visability)) {
      tmp.append(f.getSignature() + "String_Node_Str" + Cpp.newline);
    }
    tmp.append(Cpp.newline);
  }
  if (null != this.getVars(visability) && this.getVars(visability).size() > 0) {
    for (    CppVar v : this.getVars(visability)) {
      tmp.append(v.toString() + "String_Node_Str" + Cpp.newline);
    }
    tmp.append(Cpp.newline);
  }
}

Fixed version (ground truth):
private void toStringHelper(StringBuffer tmp,int tabCount,long visability){
  if (null != this.getNested(visability) && this.getNested(visability).size() > 0) {
    for (    CppClass c : this.getNested(visability)) {
      c.toString(tmp,tabCount);
    }
    tmp.append(Cpp.newline);
  }
  if (null != this.getStructsUnions(visability) && this.getStructsUnions(visability).size() > 0) {
    for (    CStructBase c : this.getStructsUnions(visability)) {
      tmp.append(c.toString() + Cpp.newline);
    }
  }
  if (null != this.getEnums(visability) && this.getEnums(visability).size() > 0) {
    for (    CEnum e : this.getEnums(visability)) {
      tmp.append(e.toString() + Cpp.newline);
    }
  }
  if (null != this.getConstructors(visability) && this.getConstructors(visability).size() > 0) {
    for (    CppConstructor c : this.getConstructors(visability)) {
      tmp.append(c.getSignature() + "String_Node_Str" + Cpp.newline);
    }
  }
  if (null != this.getDestructors(visability) && this.getDestructors(visability).size() > 0) {
    for (    CppDestructor d : this.getDestructors(visability)) {
      tmp.append("String_Node_Str" + d.getSignature() + "String_Node_Str"+ Cpp.newline);
    }
    tmp.append(Cpp.newline);
  }
  if (null != this.getFuns(visability) && this.getFuns(visability).size() > 0) {
    for (    CppFun f : this.getFuns(visability)) {
      tmp.append(f.getSignature() + "String_Node_Str" + Cpp.newline);
    }
    tmp.append(Cpp.newline);
  }
  if (null != this.getVars(visability) && this.getVars(visability).size() > 0) {
    for (    CppVar v : this.getVars(visability)) {
      tmp.append(v.toString() + "String_Node_Str" + Cpp.newline);
    }
    tmp.append(Cpp.newline);
  }
}