Program: 66746
Project: 66746
Buggy source:
public TableDefinition buildBRANCHA_LEAFATable(){
  TableDefinition table=new TableDefinition();
  table.setName("String_Node_Str");
  FieldDefinition fieldLEAFB_ID=new FieldDefinition();
  fieldLEAFB_ID.setName("String_Node_Str");
  fieldLEAFB_ID.setTypeName("String_Node_Str");
  fieldLEAFB_ID.setSize(0);
  fieldLEAFB_ID.setSubSize(0);
  fieldLEAFB_ID.setIsPrimaryKey(true);
  fieldLEAFB_ID.setIsIdentity(false);
  fieldLEAFB_ID.setUnique(false);
  fieldLEAFB_ID.setShouldAllowNull(true);
  table.addField(fieldLEAFB_ID);
  FieldDefinition fieldBRANCHB_ID=new FieldDefinition();
  fieldBRANCHB_ID.setName("String_Node_Str");
  fieldBRANCHB_ID.setTypeName("String_Node_Str");
  fieldBRANCHB_ID.setSize(0);
  fieldBRANCHB_ID.setSubSize(0);
  fieldBRANCHB_ID.setIsPrimaryKey(true);
  fieldBRANCHB_ID.setIsIdentity(false);
  fieldBRANCHB_ID.setUnique(false);
  fieldBRANCHB_ID.setShouldAllowNull(true);
  table.addField(fieldBRANCHB_ID);
  ForeignKeyConstraint foreignKeyBRANCHA_LEAFA_LEAFA=new ForeignKeyConstraint();
  foreignKeyBRANCHA_LEAFA_LEAFA.setName("String_Node_Str");
  foreignKeyBRANCHA_LEAFA_LEAFA.setTargetTable("String_Node_Str");
  foreignKeyBRANCHA_LEAFA_LEAFA.addSourceField("String_Node_Str");
  foreignKeyBRANCHA_LEAFA_LEAFA.addTargetField("String_Node_Str");
  table.addForeignKeyConstraint(foreignKeyBRANCHA_LEAFA_LEAFA);
  ForeignKeyConstraint foreignKeyBRANCHA_LEAFA_BRANCHA2=new ForeignKeyConstraint();
  foreignKeyBRANCHA_LEAFA_BRANCHA2.setName("String_Node_Str");
  foreignKeyBRANCHA_LEAFA_BRANCHA2.setTargetTable("String_Node_Str");
  foreignKeyBRANCHA_LEAFA_BRANCHA2.addSourceField("String_Node_Str");
  foreignKeyBRANCHA_LEAFA_BRANCHA2.addTargetField("String_Node_Str");
  table.addForeignKeyConstraint(foreignKeyBRANCHA_LEAFA_BRANCHA2);
  return table;
}

Fixed version (ground truth):
public TableDefinition buildBRANCHA_LEAFATable(){
  TableDefinition table=new TableDefinition();
  table.setName("String_Node_Str");
  FieldDefinition fieldLEAFB_ID=new FieldDefinition();
  fieldLEAFB_ID.setName("String_Node_Str");
  fieldLEAFB_ID.setTypeName("String_Node_Str");
  fieldLEAFB_ID.setSize(0);
  fieldLEAFB_ID.setSubSize(0);
  fieldLEAFB_ID.setIsPrimaryKey(true);
  fieldLEAFB_ID.setIsIdentity(false);
  fieldLEAFB_ID.setUnique(false);
  fieldLEAFB_ID.setShouldAllowNull(false);
  table.addField(fieldLEAFB_ID);
  FieldDefinition fieldBRANCHB_ID=new FieldDefinition();
  fieldBRANCHB_ID.setName("String_Node_Str");
  fieldBRANCHB_ID.setTypeName("String_Node_Str");
  fieldBRANCHB_ID.setSize(0);
  fieldBRANCHB_ID.setSubSize(0);
  fieldBRANCHB_ID.setIsPrimaryKey(true);
  fieldBRANCHB_ID.setIsIdentity(false);
  fieldBRANCHB_ID.setUnique(false);
  fieldBRANCHB_ID.setShouldAllowNull(false);
  table.addField(fieldBRANCHB_ID);
  ForeignKeyConstraint foreignKeyBRANCHA_LEAFA_LEAFA=new ForeignKeyConstraint();
  foreignKeyBRANCHA_LEAFA_LEAFA.setName("String_Node_Str");
  foreignKeyBRANCHA_LEAFA_LEAFA.setTargetTable("String_Node_Str");
  foreignKeyBRANCHA_LEAFA_LEAFA.addSourceField("String_Node_Str");
  foreignKeyBRANCHA_LEAFA_LEAFA.addTargetField("String_Node_Str");
  table.addForeignKeyConstraint(foreignKeyBRANCHA_LEAFA_LEAFA);
  ForeignKeyConstraint foreignKeyBRANCHA_LEAFA_BRANCHA2=new ForeignKeyConstraint();
  foreignKeyBRANCHA_LEAFA_BRANCHA2.setName("String_Node_Str");
  foreignKeyBRANCHA_LEAFA_BRANCHA2.setTargetTable("String_Node_Str");
  foreignKeyBRANCHA_LEAFA_BRANCHA2.addSourceField("String_Node_Str");
  foreignKeyBRANCHA_LEAFA_BRANCHA2.addTargetField("String_Node_Str");
  table.addForeignKeyConstraint(foreignKeyBRANCHA_LEAFA_BRANCHA2);
  return table;
}