Program: 76371
Project: 76371
Buggy source:
/** 
 * @exception IllegalActionException If there are problems
 * @exception IllegalStateException If there are problems
 * @exception NameDuplicationException If there are problems
 */
public void makeConnections() throws IllegalActionException {
  TypedIOPort reqOut=(TypedIOPort)_controller.getPort("String_Node_Str");
  TypedIOPort reqIn=(TypedIOPort)_controller.getPort("String_Node_Str");
  TypedIOPort contendOut=(TypedIOPort)_controller.getPort("String_Node_Str");
  TypedIOPort contendIn=(TypedIOPort)_controller.getPort("String_Node_Str");
  TypedIOPort _alarmOut=(TypedIOPort)_alarm.getPort("String_Node_Str");
  TypedIOPort _alarmIn=(TypedIOPort)_alarm.getPort("String_Node_Str");
  TypedIOPort memOut=(TypedIOPort)_memory.getPort("String_Node_Str");
  TypedIOPort memIn=(TypedIOPort)_memory.getPort("String_Node_Str");
  TypedIOPort p1_ReqOut=(TypedIOPort)_proc1.getPort("String_Node_Str");
  TypedIOPort p2_ReqOut=(TypedIOPort)_proc2.getPort("String_Node_Str");
  TypedIOPort p3_ReqOut=(TypedIOPort)_proc3.getPort("String_Node_Str");
  TypedIOPort p1_ReqIn=(TypedIOPort)_proc1.getPort("String_Node_Str");
  TypedIOPort p2_ReqIn=(TypedIOPort)_proc2.getPort("String_Node_Str");
  TypedIOPort p3_ReqIn=(TypedIOPort)_proc3.getPort("String_Node_Str");
  TypedIOPort p1_MemOut=(TypedIOPort)_proc1.getPort("String_Node_Str");
  TypedIOPort p2_MemOut=(TypedIOPort)_proc2.getPort("String_Node_Str");
  TypedIOPort p3_MemOut=(TypedIOPort)_proc3.getPort("String_Node_Str");
  TypedIOPort p1_MemIn=(TypedIOPort)_proc1.getPort("String_Node_Str");
  TypedIOPort p2_MemIn=(TypedIOPort)_proc2.getPort("String_Node_Str");
  TypedIOPort p3_MemIn=(TypedIOPort)_proc3.getPort("String_Node_Str");
  TypedIORelation inReqs, outReqs, reads, writes, outContends, inContends;
  inReqs=(TypedIORelation)_topLevelActor.connect(reqIn,p1_ReqOut);
  inReqs=(TypedIORelation)_topLevelActor.connect(reqIn,p2_ReqOut);
  inReqs=(TypedIORelation)_topLevelActor.connect(reqIn,p3_ReqOut);
  outContends=(TypedIORelation)_topLevelActor.connect(contendOut,_alarmIn);
  inContends=(TypedIORelation)_topLevelActor.connect(contendIn,_alarmOut);
  outReqs=(TypedIORelation)_topLevelActor.connect(reqOut,p1_ReqIn);
  outReqs=(TypedIORelation)_topLevelActor.connect(reqOut,p2_ReqIn);
  outReqs=(TypedIORelation)_topLevelActor.connect(reqOut,p3_ReqIn);
  reads=(TypedIORelation)_topLevelActor.connect(memOut,p1_MemIn);
  reads=(TypedIORelation)_topLevelActor.connect(memOut,p2_MemIn);
  reads=(TypedIORelation)_topLevelActor.connect(memOut,p3_MemIn);
  writes=(TypedIORelation)_topLevelActor.connect(memIn,p1_MemOut);
  writes=(TypedIORelation)_topLevelActor.connect(memIn,p2_MemOut);
  writes=(TypedIORelation)_topLevelActor.connect(memIn,p3_MemOut);
  System.out.println();
  System.out.println();
  System.out.println();
}

Fixed version (ground truth):
/** 
 * Instantiate all ports in the model and connect them as appropriate.
 * @exception IllegalActionException If there are problems
 */
public void makeConnections() throws IllegalActionException {
  TypedIOPort reqOut=(TypedIOPort)_controller.getPort("String_Node_Str");
  TypedIOPort reqIn=(TypedIOPort)_controller.getPort("String_Node_Str");
  TypedIOPort contendOut=(TypedIOPort)_controller.getPort("String_Node_Str");
  TypedIOPort contendIn=(TypedIOPort)_controller.getPort("String_Node_Str");
  TypedIOPort _alarmOut=(TypedIOPort)_alarm.getPort("String_Node_Str");
  TypedIOPort _alarmIn=(TypedIOPort)_alarm.getPort("String_Node_Str");
  TypedIOPort memOut=(TypedIOPort)_memory.getPort("String_Node_Str");
  TypedIOPort memIn=(TypedIOPort)_memory.getPort("String_Node_Str");
  TypedIOPort p1_ReqOut=(TypedIOPort)_proc1.getPort("String_Node_Str");
  TypedIOPort p2_ReqOut=(TypedIOPort)_proc2.getPort("String_Node_Str");
  TypedIOPort p3_ReqOut=(TypedIOPort)_proc3.getPort("String_Node_Str");
  TypedIOPort p1_ReqIn=(TypedIOPort)_proc1.getPort("String_Node_Str");
  TypedIOPort p2_ReqIn=(TypedIOPort)_proc2.getPort("String_Node_Str");
  TypedIOPort p3_ReqIn=(TypedIOPort)_proc3.getPort("String_Node_Str");
  TypedIOPort p1_MemOut=(TypedIOPort)_proc1.getPort("String_Node_Str");
  TypedIOPort p2_MemOut=(TypedIOPort)_proc2.getPort("String_Node_Str");
  TypedIOPort p3_MemOut=(TypedIOPort)_proc3.getPort("String_Node_Str");
  TypedIOPort p1_MemIn=(TypedIOPort)_proc1.getPort("String_Node_Str");
  TypedIOPort p2_MemIn=(TypedIOPort)_proc2.getPort("String_Node_Str");
  TypedIOPort p3_MemIn=(TypedIOPort)_proc3.getPort("String_Node_Str");
  TypedIORelation inReqs, outReqs, reads, writes, outContends, inContends;
  inReqs=(TypedIORelation)_topLevelActor.connect(reqIn,p1_ReqOut);
  inReqs=(TypedIORelation)_topLevelActor.connect(reqIn,p2_ReqOut);
  inReqs=(TypedIORelation)_topLevelActor.connect(reqIn,p3_ReqOut);
  outContends=(TypedIORelation)_topLevelActor.connect(contendOut,_alarmIn);
  inContends=(TypedIORelation)_topLevelActor.connect(contendIn,_alarmOut);
  outReqs=(TypedIORelation)_topLevelActor.connect(reqOut,p1_ReqIn);
  outReqs=(TypedIORelation)_topLevelActor.connect(reqOut,p2_ReqIn);
  outReqs=(TypedIORelation)_topLevelActor.connect(reqOut,p3_ReqIn);
  reads=(TypedIORelation)_topLevelActor.connect(memOut,p1_MemIn);
  reads=(TypedIORelation)_topLevelActor.connect(memOut,p2_MemIn);
  reads=(TypedIORelation)_topLevelActor.connect(memOut,p3_MemIn);
  writes=(TypedIORelation)_topLevelActor.connect(memIn,p1_MemOut);
  writes=(TypedIORelation)_topLevelActor.connect(memIn,p2_MemOut);
  writes=(TypedIORelation)_topLevelActor.connect(memIn,p3_MemOut);
  System.out.println();
  System.out.println();
  System.out.println();
}