Program: 75008
Project: 75008
Buggy source:
/** 
 * Invoke a specified number of iterations of this actor. Each iteration updates the state of the actor by adding the value of the <i>step</i> parameter to the state and sending the value of the state to the output. The iteration count is also incremented by the value of <i>count</i>, and if the result is greater than or equal to <i>firingCountLimit</i> then return STOP_ITERATING. <p> This method should be called instead of the usual prefire(), fire(), postfire() methods when this actor is used in a domain that supports vectorized actors.  This leads to more efficient execution.
 * @param count The number of iterations to perform.
 * @return COMPLETED if the actor was successfully iterated thespecified number of times. Otherwise, if the maximum iteration count has been reached, return STOP_ITERATING.
 * @exception IllegalActionException If iterating cannot beperformed.
 */
public int iterate(int count) throws IllegalActionException {
  if (count > _resultArray.length) {
    _resultArray=new Token[count];
  }
  for (int i=0; i < count; i++) {
    _resultArray[i]=_stateToken;
    try {
      step.update();
      _stateToken=_stateToken.add(step.getToken());
    }
 catch (    IllegalActionException ex) {
      throw new InternalErrorException(this,ex,"String_Node_Str" + "String_Node_Str");
    }
  }
  output.send(0,_resultArray,count);
  if (_firingCountLimit != 0) {
    _iterationCount+=count;
    if (_iterationCount >= _firingCountLimit) {
      return STOP_ITERATING;
    }
  }
  return COMPLETED;
}

Fixed version (ground truth):
/** 
 * Invoke a specified number of iterations of this actor. Each iteration updates the state of the actor by adding the value of the <i>step</i> parameter to the state and sending the value of the state to the output. The iteration count is also incremented by the value of <i>count</i>, and if the result is greater than or equal to <i>firingCountLimit</i> then return STOP_ITERATING. <p> This method should be called instead of the usual prefire(), fire(), postfire() methods when this actor is used in a domain that supports vectorized actors.  This leads to more efficient execution.
 * @param count The number of iterations to perform.
 * @return COMPLETED if the actor was successfully iterated thespecified number of times. Otherwise, if the maximum iteration count has been reached, return STOP_ITERATING.
 * @exception IllegalActionException If iterating cannot beperformed.
 */
public int iterate(int count) throws IllegalActionException {
  if (count > _resultArray.length) {
    _resultArray=new Token[count];
  }
  for (int i=0; i < trigger.getWidth(); i++) {
    if (trigger.hasToken(i,count)) {
      trigger.get(i,count);
    }
  }
  for (int i=0; i < count; i++) {
    _resultArray[i]=_stateToken;
    try {
      step.update();
      _stateToken=_stateToken.add(step.getToken());
    }
 catch (    IllegalActionException ex) {
      throw new InternalErrorException(this,ex,"String_Node_Str" + "String_Node_Str");
    }
  }
  output.send(0,_resultArray,count);
  if (_firingCountLimit != 0) {
    _iterationCount+=count;
    if (_iterationCount >= _firingCountLimit) {
      return STOP_ITERATING;
    }
  }
  return COMPLETED;
}