Program: 23427
Project: 23427
Buggy source:
private void generateOutputsStructureDefinition(FetchedFile f,FetchedResource r,StructureDefinition sd,Map<String,String> vars,boolean regen) throws Exception {
  if (igpkp.wantGen(r,"String_Node_Str"))   fragmentError("String_Node_Str" + sd.getId() + "String_Node_Str","String_Node_Str",f.getOutputNames());
  if (igpkp.wantGen(r,"String_Node_Str"))   fragmentError("String_Node_Str" + sd.getId() + "String_Node_Str","String_Node_Str",f.getOutputNames());
  StructureDefinitionRenderer sdr=new StructureDefinitionRenderer(context,checkAppendSlash(specPath),sd,Utilities.path(tempDir),igpkp,specMaps);
  if (igpkp.wantGen(r,"String_Node_Str"))   fragment("String_Node_Str" + sd.getId() + "String_Node_Str",sdr.summary(),f.getOutputNames(),r,vars,null);
  if (igpkp.wantGen(r,"String_Node_Str"))   fragment("String_Node_Str" + sd.getId() + "String_Node_Str",sdr.header(),f.getOutputNames(),r,vars,null);
  if (igpkp.wantGen(r,"String_Node_Str"))   fragment("String_Node_Str" + sd.getId() + "String_Node_Str",sdr.diff(igpkp.getDefinitionsName(r)),f.getOutputNames(),r,vars,null);
  if (igpkp.wantGen(r,"String_Node_Str"))   fragment("String_Node_Str" + sd.getId() + "String_Node_Str",sdr.snapshot(igpkp.getDefinitionsName(r)),f.getOutputNames(),r,vars,null);
  if (igpkp.wantGen(r,"String_Node_Str"))   fragmentError("String_Node_Str" + sd.getId() + "String_Node_Str","String_Node_Str",f.getOutputNames());
  if (igpkp.wantGen(r,"String_Node_Str"))   fragmentError("String_Node_Str" + sd.getId() + "String_Node_Str","String_Node_Str",f.getOutputNames());
  if (igpkp.wantGen(r,"String_Node_Str"))   fragmentError("String_Node_Str" + sd.getId() + "String_Node_Str","String_Node_Str",f.getOutputNames());
  if (igpkp.wantGen(r,"String_Node_Str"))   fragmentError("String_Node_Str" + sd.getId() + "String_Node_Str","String_Node_Str",f.getOutputNames());
  if (igpkp.wantGen(r,"String_Node_Str"))   fragment("String_Node_Str" + sd.getId() + "String_Node_Str",sdr.tx(),f.getOutputNames(),r,vars,null);
  if (igpkp.wantGen(r,"String_Node_Str"))   fragment("String_Node_Str" + sd.getId() + "String_Node_Str",sdr.inv(),f.getOutputNames(),r,vars,null);
  if (igpkp.wantGen(r,"String_Node_Str"))   fragment("String_Node_Str" + sd.getId() + "String_Node_Str",sdr.dict(),f.getOutputNames(),r,vars,null);
  if (igpkp.wantGen(r,"String_Node_Str"))   fragment("String_Node_Str" + sd.getId() + "String_Node_Str",sdr.mappings(),f.getOutputNames(),r,vars,null);
  if (igpkp.wantGen(r,"String_Node_Str"))   fragment("String_Node_Str" + sd.getId() + "String_Node_Str",sdr.csvs(),f.getOutputNames(),r,vars,null);
  if (igpkp.wantGen(r,"String_Node_Str"))   fragmentError("String_Node_Str" + sd.getId() + "String_Node_Str","String_Node_Str",f.getOutputNames());
  if (igpkp.wantGen(r,"String_Node_Str"))   fragment("String_Node_Str" + sd.getId(),sdr.exampleList(fileList),f.getOutputNames(),r,vars,null);
  if (!regen && sd.getKind() != StructureDefinitionKind.LOGICAL && igpkp.wantGen(r,"String_Node_Str")) {
    String path=Utilities.path(tempDir,r.getId() + "String_Node_Str");
    f.getOutputNames().add(path);
    new ProfileUtilities(context,errors,igpkp).generateSchematrons(new FileOutputStream(path),sd);
  }
  if (igpkp.wantGen(r,"String_Node_Str"))   fragmentError("String_Node_Str" + sd.getId() + "String_Node_Str","String_Node_Str",f.getOutputNames());
}

Fixed version (ground truth):
private void generateOutputsStructureDefinition(FetchedFile f,FetchedResource r,StructureDefinition sd,Map<String,String> vars,boolean regen) throws Exception {
  if (igpkp.wantGen(r,"String_Node_Str"))   fragmentError("String_Node_Str" + sd.getId() + "String_Node_Str","String_Node_Str",f.getOutputNames());
  if (igpkp.wantGen(r,"String_Node_Str"))   fragmentError("String_Node_Str" + sd.getId() + "String_Node_Str","String_Node_Str",f.getOutputNames());
  StructureDefinitionRenderer sdr=new StructureDefinitionRenderer(context,checkAppendSlash(specPath),sd,Utilities.path(tempDir),igpkp,specMaps);
  if (igpkp.wantGen(r,"String_Node_Str"))   fragment("String_Node_Str" + sd.getId() + "String_Node_Str",sdr.summary(),f.getOutputNames(),r,vars,null);
  if (igpkp.wantGen(r,"String_Node_Str"))   fragment("String_Node_Str" + sd.getId() + "String_Node_Str",sdr.header(),f.getOutputNames(),r,vars,null);
  if (igpkp.wantGen(r,"String_Node_Str"))   fragment("String_Node_Str" + sd.getId() + "String_Node_Str",sdr.diff(igpkp.getDefinitionsName(r)),f.getOutputNames(),r,vars,null);
  if (igpkp.wantGen(r,"String_Node_Str"))   fragment("String_Node_Str" + sd.getId() + "String_Node_Str",sdr.snapshot(igpkp.getDefinitionsName(r)),f.getOutputNames(),r,vars,null);
  if (igpkp.wantGen(r,"String_Node_Str"))   fragmentError("String_Node_Str" + sd.getId() + "String_Node_Str","String_Node_Str",f.getOutputNames());
  if (igpkp.wantGen(r,"String_Node_Str"))   fragmentError("String_Node_Str" + sd.getId() + "String_Node_Str","String_Node_Str",f.getOutputNames());
  if (igpkp.wantGen(r,"String_Node_Str"))   fragmentError("String_Node_Str" + sd.getId() + "String_Node_Str","String_Node_Str",f.getOutputNames());
  if (igpkp.wantGen(r,"String_Node_Str"))   fragmentError("String_Node_Str" + sd.getId() + "String_Node_Str","String_Node_Str",f.getOutputNames());
  if (igpkp.wantGen(r,"String_Node_Str"))   fragment("String_Node_Str" + sd.getId() + "String_Node_Str",sdr.tx(),f.getOutputNames(),r,vars,null);
  if (igpkp.wantGen(r,"String_Node_Str"))   fragment("String_Node_Str" + sd.getId() + "String_Node_Str",sdr.inv(),f.getOutputNames(),r,vars,null);
  if (igpkp.wantGen(r,"String_Node_Str"))   fragment("String_Node_Str" + sd.getId() + "String_Node_Str",sdr.dict(),f.getOutputNames(),r,vars,null);
  if (igpkp.wantGen(r,"String_Node_Str"))   fragment("String_Node_Str" + sd.getId() + "String_Node_Str",sdr.mappings(),f.getOutputNames(),r,vars,null);
  if (igpkp.wantGen(r,"String_Node_Str"))   fragmentError("String_Node_Str" + sd.getId() + "String_Node_Str","String_Node_Str",f.getOutputNames());
  if (igpkp.wantGen(r,"String_Node_Str"))   fragment("String_Node_Str" + sd.getId(),sdr.exampleList(fileList),f.getOutputNames(),r,vars,null);
  if (igpkp.wantGen(r,"String_Node_Str")) {
    String path=Utilities.path(tempDir,r.getId() + "String_Node_Str");
    f.getOutputNames().add(path);
    new ProfileUtilities(context,errors,igpkp).generateCsvs(new FileOutputStream(path),sd);
  }
  if (!regen && sd.getKind() != StructureDefinitionKind.LOGICAL && igpkp.wantGen(r,"String_Node_Str")) {
    String path=Utilities.path(tempDir,r.getId() + "String_Node_Str");
    f.getOutputNames().add(path);
    new ProfileUtilities(context,errors,igpkp).generateSchematrons(new FileOutputStream(path),sd);
  }
  if (igpkp.wantGen(r,"String_Node_Str"))   fragmentError("String_Node_Str" + sd.getId() + "String_Node_Str","String_Node_Str",f.getOutputNames());
}