Program: 23080
Project: 23080
Buggy source:
protected void composeStructureDefinitionElements(StructureDefinition element) throws IOException {
  composeDomainResourceElements(element);
  if (element.hasUrlElement()) {
    composeUri("String_Node_Str",element.getUrlElement());
  }
  if (element.hasIdentifier()) {
    for (    Identifier e : element.getIdentifier())     composeIdentifier("String_Node_Str",e);
  }
  if (element.hasVersionElement()) {
    composeString("String_Node_Str",element.getVersionElement());
  }
  if (element.hasNameElement()) {
    composeString("String_Node_Str",element.getNameElement());
  }
  if (element.hasTitleElement()) {
    composeString("String_Node_Str",element.getTitleElement());
  }
  if (element.hasStatusElement())   composeEnumeration("String_Node_Str",element.getStatusElement(),new Enumerations.PublicationStatusEnumFactory());
  if (element.hasExperimentalElement()) {
    composeBoolean("String_Node_Str",element.getExperimentalElement());
  }
  if (element.hasDateElement()) {
    composeDateTime("String_Node_Str",element.getDateElement());
  }
  if (element.hasPublisherElement()) {
    composeString("String_Node_Str",element.getPublisherElement());
  }
  if (element.hasContact()) {
    for (    ContactDetail e : element.getContact())     composeContactDetail("String_Node_Str",e);
  }
  if (element.hasDescriptionElement()) {
    composeMarkdown("String_Node_Str",element.getDescriptionElement());
  }
  if (element.hasUseContext()) {
    for (    UsageContext e : element.getUseContext())     composeUsageContext("String_Node_Str",e);
  }
  if (element.hasJurisdiction()) {
    for (    CodeableConcept e : element.getJurisdiction())     composeCodeableConcept("String_Node_Str",e);
  }
  if (element.hasPurposeElement()) {
    composeMarkdown("String_Node_Str",element.getPurposeElement());
  }
  if (element.hasCopyrightElement()) {
    composeMarkdown("String_Node_Str",element.getCopyrightElement());
  }
  if (element.hasKeyword()) {
    for (    Coding e : element.getKeyword())     composeCoding("String_Node_Str",e);
  }
  if (element.hasFhirVersionElement()) {
    composeId("String_Node_Str",element.getFhirVersionElement());
  }
  if (element.hasMapping()) {
    for (    StructureDefinition.StructureDefinitionMappingComponent e : element.getMapping())     composeStructureDefinitionStructureDefinitionMappingComponent("String_Node_Str",e);
  }
  if (element.hasKindElement())   composeEnumeration("String_Node_Str",element.getKindElement(),new StructureDefinition.StructureDefinitionKindEnumFactory());
  if (element.hasAbstractElement()) {
    composeBoolean("String_Node_Str",element.getAbstractElement());
  }
  if (element.hasContext()) {
    for (    StructureDefinition.StructureDefinitionContextComponent e : element.getContext())     composeStructureDefinitionStructureDefinitionContextComponent("String_Node_Str",e);
  }
  if (element.hasContextInvariant()) {
    for (    StringType e : element.getContextInvariant())     composeString("String_Node_Str",e);
  }
  if (element.hasTypeElement()) {
    composeCode("String_Node_Str",element.getTypeElement());
  }
  if (element.hasBaseDefinitionElement()) {
    composeCanonical("String_Node_Str",element.getBaseDefinitionElement());
  }
  if (element.hasDerivationElement())   composeEnumeration("String_Node_Str",element.getDerivationElement(),new StructureDefinition.TypeDerivationRuleEnumFactory());
  if (element.hasSnapshot()) {
    composeStructureDefinitionStructureDefinitionSnapshotComponent("String_Node_Str",element.getSnapshot());
  }
  if (element.hasDifferential()) {
    composeStructureDefinitionStructureDefinitionDifferentialComponent("String_Node_Str",element.getDifferential());
  }
}

Fixed version (ground truth):
protected void composeStructureDefinitionElements(StructureDefinition element) throws IOException {
  composeDomainResourceElements(element);
  if (element.hasUrlElement()) {
    composeUri("String_Node_Str",element.getUrlElement());
  }
  if (element.hasIdentifier()) {
    for (    Identifier e : element.getIdentifier())     composeIdentifier("String_Node_Str",e);
  }
  if (element.hasVersionElement()) {
    composeString("String_Node_Str",element.getVersionElement());
  }
  if (element.hasNameElement()) {
    composeString("String_Node_Str",element.getNameElement());
  }
  if (element.hasTitleElement()) {
    composeString("String_Node_Str",element.getTitleElement());
  }
  if (element.hasStatusElement())   composeEnumeration("String_Node_Str",element.getStatusElement(),new Enumerations.PublicationStatusEnumFactory());
  if (element.hasExperimentalElement()) {
    composeBoolean("String_Node_Str",element.getExperimentalElement());
  }
  if (element.hasDateElement()) {
    composeDateTime("String_Node_Str",element.getDateElement());
  }
  if (element.hasPublisherElement()) {
    composeString("String_Node_Str",element.getPublisherElement());
  }
  if (element.hasContact()) {
    for (    ContactDetail e : element.getContact())     composeContactDetail("String_Node_Str",e);
  }
  if (element.hasDescriptionElement()) {
    composeMarkdown("String_Node_Str",element.getDescriptionElement());
  }
  if (element.hasUseContext()) {
    for (    UsageContext e : element.getUseContext())     composeUsageContext("String_Node_Str",e);
  }
  if (element.hasJurisdiction()) {
    for (    CodeableConcept e : element.getJurisdiction())     composeCodeableConcept("String_Node_Str",e);
  }
  if (element.hasPurposeElement()) {
    composeMarkdown("String_Node_Str",element.getPurposeElement());
  }
  if (element.hasCopyrightElement()) {
    composeMarkdown("String_Node_Str",element.getCopyrightElement());
  }
  if (element.hasKeyword()) {
    for (    Coding e : element.getKeyword())     composeCoding("String_Node_Str",e);
  }
  if (element.hasFhirVersionElement()) {
    composeId("String_Node_Str",element.getFhirVersionElement());
  }
  if (element.hasMapping()) {
    for (    StructureDefinition.StructureDefinitionMappingComponent e : element.getMapping())     composeStructureDefinitionStructureDefinitionMappingComponent("String_Node_Str",e);
  }
  if (element.hasKindElement())   composeEnumeration("String_Node_Str",element.getKindElement(),new StructureDefinition.StructureDefinitionKindEnumFactory());
  if (element.hasAbstractElement()) {
    composeBoolean("String_Node_Str",element.getAbstractElement());
  }
  if (element.hasContext()) {
    for (    StructureDefinition.StructureDefinitionContextComponent e : element.getContext())     composeStructureDefinitionStructureDefinitionContextComponent("String_Node_Str",e);
  }
  if (element.hasContextInvariant()) {
    for (    StringType e : element.getContextInvariant())     composeString("String_Node_Str",e);
  }
  if (element.hasTypeElement()) {
    composeUri("String_Node_Str",element.getTypeElement());
  }
  if (element.hasBaseDefinitionElement()) {
    composeCanonical("String_Node_Str",element.getBaseDefinitionElement());
  }
  if (element.hasDerivationElement())   composeEnumeration("String_Node_Str",element.getDerivationElement(),new StructureDefinition.TypeDerivationRuleEnumFactory());
  if (element.hasSnapshot()) {
    composeStructureDefinitionStructureDefinitionSnapshotComponent("String_Node_Str",element.getSnapshot());
  }
  if (element.hasDifferential()) {
    composeStructureDefinitionStructureDefinitionDifferentialComponent("String_Node_Str",element.getDifferential());
  }
}