Program: 73876
Project: 73876
Buggy source:
public double _getWCET() throws IllegalActionException {
  double wcet=0;
  double actorFrequency=0;
  double actorWCET=0;
  int actorCount=0;
  CodeGeneratorHelper directorHelper;
  for (  Actor actor : (List<Actor>)((TypedCompositeActor)this.getContainer()).deepEntityList()) {
    actorCount++;
    Attribute frequency=((Entity)actor).getAttribute("String_Node_Str");
    ptolemy.actor.Director dd=actor.getDirector();
    Attribute WCET=((Entity)actor).getAttribute("String_Node_Str");
    if (!(actor instanceof ptolemy.domains.giotto.lib.GiottoError)) {
      if (actor instanceof CompositeActor) {
        if (_debugging) {
          _debug("String_Node_Str");
        }
        Director dir=actor.getDirector();
        System.out.println(dir.getFullName());
        if (dir == null) {
          if (_debugging) {
            _debug("String_Node_Str");
          }
        }
 else {
          double dummyWCET=0.0011;
          Attribute dirWCET=dir.getAttribute("String_Node_Str");
          if (dirWCET != null) {
            dummyWCET=((DoubleToken)((Variable)dirWCET).getToken()).doubleValue();
          }
          if (_debugging) {
            _debug("String_Node_Str" + actor.getFullName() + "String_Node_Str"+ dummyWCET);
          }
          wcet+=dummyWCET;
        }
      }
 else {
        if (WCET == null) {
          actorWCET=0.0011;
        }
 else {
          actorWCET=((DoubleToken)((Variable)WCET).getToken()).doubleValue();
        }
        if (frequency == null) {
          actorFrequency=1;
        }
 else {
          actorFrequency=((IntToken)((Variable)frequency).getToken()).intValue();
        }
        wcet+=(actorFrequency * actorWCET);
      }
    }
    if (_debugging) {
      _debug("String_Node_Str" + actor.getFullName() + "String_Node_Str"+ wcet);
    }
    System.out.println("String_Node_Str" + actor.getFullName() + "String_Node_Str"+ wcet);
  }
  if (_debugging) {
    _debug("String_Node_Str" + actorCount);
  }
  return wcet;
}

Fixed version (ground truth):
public double _getWCET() throws IllegalActionException {
  double wcet=0;
  double actorFrequency=0;
  double actorWCET=0;
  int actorCount=0;
  CodeGeneratorHelper directorHelper;
  for (  Actor actor : (List<Actor>)((TypedCompositeActor)this.getContainer()).deepEntityList()) {
    actorCount++;
    Attribute frequency=((Entity)actor).getAttribute("String_Node_Str");
    ptolemy.actor.Director dd=actor.getDirector();
    Attribute WCET=((Entity)actor).getAttribute("String_Node_Str");
    if (!(actor instanceof ptolemy.domains.giotto.lib.GiottoError)) {
      if (actor instanceof CompositeActor) {
        if (_debugging) {
        }
        Director dir=actor.getDirector();
        if (_debugging) {
        }
        if (dir == null) {
          if (_debugging) {
          }
        }
 else {
          double dummyWCET=0.0011;
          Attribute dirWCET=dir.getAttribute("String_Node_Str");
          if (dirWCET != null) {
            dummyWCET=((DoubleToken)((Variable)dirWCET).getToken()).doubleValue();
          }
          if (_debugging) {
          }
          wcet+=dummyWCET;
        }
      }
 else {
        if (WCET == null) {
          actorWCET=0.0;
        }
 else {
          try {
            actorWCET=((DoubleToken)((Variable)WCET).getToken()).doubleValue();
          }
 catch (          Exception e2) {
            actorWCET=((IntToken)((Variable)WCET).getToken()).intValue();
          }
        }
        if (frequency == null) {
          actorFrequency=1;
        }
 else {
          actorFrequency=((IntToken)((Variable)frequency).getToken()).intValue();
        }
        wcet+=(actorFrequency * actorWCET);
      }
    }
    if (_debugging) {
    }
  }
  return wcet;
}