Program: 75485
Project: 75485
Buggy source:
/** 
 * Construct a transition with the given name contained by the specified entity. The container argument must not be null, or a NullPointerException will be thrown. This transition will use the workspace of the container for synchronization and version counts. If the name argument is null, then the name is set to the empty string.
 * @param container The container.
 * @param name The name of the transition.
 * @exception IllegalActionException If the container is incompatiblewith this transition.
 * @exception NameDuplicationException If the name coincides withany relation already in the container.
 */
public Transition(FSMActor container,String name) throws IllegalActionException, NameDuplicationException {
  super(container,name);
  guardExpression=new StringAttribute(this,"String_Node_Str");
  outputActions=new OutputActionsAttribute(this,"String_Node_Str");
  setActions=new CommitActionsAttribute(this,"String_Node_Str");
  exitAngle=new Parameter(this,"String_Node_Str");
  exitAngle.setVisibility(Settable.NONE);
  exitAngle.setExpression("String_Node_Str");
  exitAngle.setTypeEquals(BaseType.DOUBLE);
  gamma=new Parameter(this,"String_Node_Str");
  gamma.setVisibility(Settable.NONE);
  gamma.setExpression("String_Node_Str");
  gamma.setTypeEquals(BaseType.DOUBLE);
  reset=new Parameter(this,"String_Node_Str");
  reset.setTypeEquals(BaseType.BOOLEAN);
  reset.setToken(BooleanToken.FALSE);
  preemptive=new Parameter(this,"String_Node_Str");
  preemptive.setTypeEquals(BaseType.BOOLEAN);
  preemptive.setToken(BooleanToken.FALSE);
  triggerExpression=new StringAttribute(this,"String_Node_Str");
  triggerExpression.setVisibility(Settable.NONE);
  _guard=new Variable(this,"String_Node_Str");
  _guard.setLazy(true);
  _guard.setTypeEquals(BaseType.BOOLEAN);
  TypedCompositeActor modalModel=(TypedCompositeActor)container.getContainer();
  if (modalModel.getDirector() instanceof HSDirector) {
    _relationList=new RelationList(this,"String_Node_Str");
    _parseTreeEvaluator=new ParseTreeEvaluatorForGuardExpression(_relationList,1e-4);
    _guard.setParseTreeEvaluator((ParseTreeEvaluator)_parseTreeEvaluator);
  }
  _trigger=new Variable(this,"String_Node_Str");
  _trigger.setLazy(true);
  _trigger.setTypeEquals(BaseType.BOOLEAN);
  refinementName=new StringAttribute(this,"String_Node_Str");
}

Fixed version (ground truth):
/** 
 * Construct a transition with the given name contained by the specified entity. The container argument must not be null, or a NullPointerException will be thrown. This transition will use the workspace of the container for synchronization and version counts. If the name argument is null, then the name is set to the empty string.
 * @param container The container.
 * @param name The name of the transition.
 * @exception IllegalActionException If the container is incompatiblewith this transition.
 * @exception NameDuplicationException If the name coincides withany relation already in the container.
 */
public Transition(FSMActor container,String name) throws IllegalActionException, NameDuplicationException {
  super(container,name);
  guardExpression=new StringAttribute(this,"String_Node_Str");
  outputActions=new OutputActionsAttribute(this,"String_Node_Str");
  setActions=new CommitActionsAttribute(this,"String_Node_Str");
  exitAngle=new Parameter(this,"String_Node_Str");
  exitAngle.setVisibility(Settable.NONE);
  exitAngle.setExpression("String_Node_Str");
  exitAngle.setTypeEquals(BaseType.DOUBLE);
  gamma=new Parameter(this,"String_Node_Str");
  gamma.setVisibility(Settable.NONE);
  gamma.setExpression("String_Node_Str");
  gamma.setTypeEquals(BaseType.DOUBLE);
  reset=new Parameter(this,"String_Node_Str");
  reset.setTypeEquals(BaseType.BOOLEAN);
  reset.setToken(BooleanToken.FALSE);
  preemptive=new Parameter(this,"String_Node_Str");
  preemptive.setTypeEquals(BaseType.BOOLEAN);
  preemptive.setToken(BooleanToken.FALSE);
  triggerExpression=new StringAttribute(this,"String_Node_Str");
  triggerExpression.setVisibility(Settable.NONE);
  _guard=new Variable(this,"String_Node_Str");
  _guard.setLazy(true);
  _guard.setTypeEquals(BaseType.BOOLEAN);
  TypedCompositeActor modalModel=(TypedCompositeActor)container.getContainer();
  if (modalModel != null && modalModel.getDirector() instanceof HSDirector) {
    _exeDirectorIsHSDirector=true;
    _relationList=new RelationList(this,"String_Node_Str");
    _parseTreeEvaluator=new ParseTreeEvaluatorForGuardExpression(_relationList,1e-4);
    _guard.setParseTreeEvaluator((ParseTreeEvaluator)_parseTreeEvaluator);
  }
 else {
    _exeDirectorIsHSDirector=false;
  }
  _trigger=new Variable(this,"String_Node_Str");
  _trigger.setLazy(true);
  _trigger.setTypeEquals(BaseType.BOOLEAN);
  refinementName=new StringAttribute(this,"String_Node_Str");
}