Program: 66742
Project: 66742
Buggy source:
public TableDefinition buildBRANCHB_LEAFBTable(){
  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 foreignKeyBRANCHB_LEAFB_LEAFB=new ForeignKeyConstraint();
  foreignKeyBRANCHB_LEAFB_LEAFB.setName("String_Node_Str");
  foreignKeyBRANCHB_LEAFB_LEAFB.setTargetTable("String_Node_Str");
  foreignKeyBRANCHB_LEAFB_LEAFB.addSourceField("String_Node_Str");
  foreignKeyBRANCHB_LEAFB_LEAFB.addTargetField("String_Node_Str");
  table.addForeignKeyConstraint(foreignKeyBRANCHB_LEAFB_LEAFB);
  ForeignKeyConstraint foreignKeyBRANCHB_LEAFB_BRANCHB2=new ForeignKeyConstraint();
  foreignKeyBRANCHB_LEAFB_BRANCHB2.setName("String_Node_Str");
  foreignKeyBRANCHB_LEAFB_BRANCHB2.setTargetTable("String_Node_Str");
  foreignKeyBRANCHB_LEAFB_BRANCHB2.addSourceField("String_Node_Str");
  foreignKeyBRANCHB_LEAFB_BRANCHB2.addTargetField("String_Node_Str");
  table.addForeignKeyConstraint(foreignKeyBRANCHB_LEAFB_BRANCHB2);
  return table;
}

Fixed version (ground truth):
public TableDefinition buildBRANCHB_LEAFBTable(){
  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 foreignKeyBRANCHB_LEAFB_LEAFB=new ForeignKeyConstraint();
  foreignKeyBRANCHB_LEAFB_LEAFB.setName("String_Node_Str");
  foreignKeyBRANCHB_LEAFB_LEAFB.setTargetTable("String_Node_Str");
  foreignKeyBRANCHB_LEAFB_LEAFB.addSourceField("String_Node_Str");
  foreignKeyBRANCHB_LEAFB_LEAFB.addTargetField("String_Node_Str");
  table.addForeignKeyConstraint(foreignKeyBRANCHB_LEAFB_LEAFB);
  ForeignKeyConstraint foreignKeyBRANCHB_LEAFB_BRANCHB2=new ForeignKeyConstraint();
  foreignKeyBRANCHB_LEAFB_BRANCHB2.setName("String_Node_Str");
  foreignKeyBRANCHB_LEAFB_BRANCHB2.setTargetTable("String_Node_Str");
  foreignKeyBRANCHB_LEAFB_BRANCHB2.addSourceField("String_Node_Str");
  foreignKeyBRANCHB_LEAFB_BRANCHB2.addTargetField("String_Node_Str");
  table.addForeignKeyConstraint(foreignKeyBRANCHB_LEAFB_BRANCHB2);
  return table;
}