Program: 66744
Project: 66744
Buggy source:
public TableDefinition buildMACHINESTATE_THREADINFOTable(){
  TableDefinition table=new TableDefinition();
  table.setName("String_Node_Str");
  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);
  FieldDefinition fieldBRANCHBS_ID=new FieldDefinition();
  fieldBRANCHBS_ID.setName("String_Node_Str");
  fieldBRANCHBS_ID.setTypeName("String_Node_Str");
  fieldBRANCHBS_ID.setSize(0);
  fieldBRANCHBS_ID.setSubSize(0);
  fieldBRANCHBS_ID.setIsPrimaryKey(true);
  fieldBRANCHBS_ID.setIsIdentity(false);
  fieldBRANCHBS_ID.setUnique(false);
  fieldBRANCHBS_ID.setShouldAllowNull(true);
  table.addField(fieldBRANCHBS_ID);
  ForeignKeyConstraint foreignKeyM_THREADINFO_THREADINFO=new ForeignKeyConstraint();
  foreignKeyM_THREADINFO_THREADINFO.setName("String_Node_Str");
  foreignKeyM_THREADINFO_THREADINFO.setTargetTable("String_Node_Str");
  foreignKeyM_THREADINFO_THREADINFO.addSourceField("String_Node_Str");
  foreignKeyM_THREADINFO_THREADINFO.addTargetField("String_Node_Str");
  table.addForeignKeyConstraint(foreignKeyM_THREADINFO_THREADINFO);
  ForeignKeyConstraint foreignKeyM_THREADINFO_MACHINESTATE=new ForeignKeyConstraint();
  foreignKeyM_THREADINFO_MACHINESTATE.setName("String_Node_Str");
  foreignKeyM_THREADINFO_MACHINESTATE.setTargetTable("String_Node_Str");
  foreignKeyM_THREADINFO_MACHINESTATE.addSourceField("String_Node_Str");
  foreignKeyM_THREADINFO_MACHINESTATE.addTargetField("String_Node_Str");
  table.addForeignKeyConstraint(foreignKeyM_THREADINFO_MACHINESTATE);
  return table;
}

Fixed version (ground truth):
public TableDefinition buildMACHINESTATE_THREADINFOTable(){
  TableDefinition table=new TableDefinition();
  table.setName("String_Node_Str");
  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);
  FieldDefinition fieldBRANCHBS_ID=new FieldDefinition();
  fieldBRANCHBS_ID.setName("String_Node_Str");
  fieldBRANCHBS_ID.setTypeName("String_Node_Str");
  fieldBRANCHBS_ID.setSize(0);
  fieldBRANCHBS_ID.setSubSize(0);
  fieldBRANCHBS_ID.setIsPrimaryKey(true);
  fieldBRANCHBS_ID.setIsIdentity(false);
  fieldBRANCHBS_ID.setUnique(false);
  fieldBRANCHBS_ID.setShouldAllowNull(false);
  table.addField(fieldBRANCHBS_ID);
  ForeignKeyConstraint foreignKeyM_THREADINFO_THREADINFO=new ForeignKeyConstraint();
  foreignKeyM_THREADINFO_THREADINFO.setName("String_Node_Str");
  foreignKeyM_THREADINFO_THREADINFO.setTargetTable("String_Node_Str");
  foreignKeyM_THREADINFO_THREADINFO.addSourceField("String_Node_Str");
  foreignKeyM_THREADINFO_THREADINFO.addTargetField("String_Node_Str");
  table.addForeignKeyConstraint(foreignKeyM_THREADINFO_THREADINFO);
  ForeignKeyConstraint foreignKeyM_THREADINFO_MACHINESTATE=new ForeignKeyConstraint();
  foreignKeyM_THREADINFO_MACHINESTATE.setName("String_Node_Str");
  foreignKeyM_THREADINFO_MACHINESTATE.setTargetTable("String_Node_Str");
  foreignKeyM_THREADINFO_MACHINESTATE.addSourceField("String_Node_Str");
  foreignKeyM_THREADINFO_MACHINESTATE.addTargetField("String_Node_Str");
  table.addForeignKeyConstraint(foreignKeyM_THREADINFO_MACHINESTATE);
  return table;
}