Program: 74844
Project: 74844
Buggy source:
/** 
 * Add to the scene a standard set of transformations that are useful for optimizing efficiency.
 * @param toplevel The composite actor we are generating code for.
 */
public static void addStandardTransforms(CompositeActor toplevel){
  Pack pack=PackManager.v().getPack("String_Node_Str");
  addTransform(pack,"String_Node_Str",WatchDogTimer.v(),"String_Node_Str" + _watchDogTimeout);
  addTransform(pack,"String_Node_Str",ModelTransformer.v(toplevel),"String_Node_Str" + _targetPackage);
  addTransform(pack,"String_Node_Str",InlineDirectorTransformer.v(toplevel),"String_Node_Str" + _targetPackage + "String_Node_Str"+ _outputDirectory);
  addTransform(pack,"String_Node_Str",CommandLineTransformer.v(toplevel),"String_Node_Str" + _targetPackage);
  addTransform(pack,"String_Node_Str",new TransformerAdapter(TypeAssigner.v()));
  addStandardOptimizations(pack,1);
  if (_snapshots) {
    addTransform(pack,"String_Node_Str",JimpleWriter.v(),"String_Node_Str" + _outputDirectory + "String_Node_Str");
    addTransform(pack,"String_Node_Str",ClassWriter.v(),"String_Node_Str" + _outputDirectory + "String_Node_Str");
    addTransform(pack,"String_Node_Str",LibraryUsageReporter.v(),"String_Node_Str" + _outputDirectory + "String_Node_Str");
  }
  addTransform(pack,"String_Node_Str",InvocationBinder.v());
  addTransform(pack,"String_Node_Str",new TransformerAdapter(LocalSplitter.v()));
  addTransform(pack,"String_Node_Str",FieldsForEntitiesTransformer.v(toplevel),"String_Node_Str" + _targetPackage);
  addTransform(pack,"String_Node_Str",new TransformerAdapter(TypeAssigner.v()));
  addTransform(pack,"String_Node_Str",new TransformerAdapter(CastAndInstanceofEliminator.v()));
  addStandardOptimizations(pack,2);
  addTransform(pack,"String_Node_Str",FieldsForAttributesTransformer.v(toplevel),"String_Node_Str" + _targetPackage);
  addTransform(pack,"String_Node_Str",FieldsForPortsTransformer.v(toplevel),"String_Node_Str" + _targetPackage);
  addTransform(pack,"String_Node_Str",new TransformerAdapter(LocalSplitter.v()));
  addTransform(pack,"String_Node_Str",new TransformerAdapter(LocalNameStandardizer.v()));
  addStandardOptimizations(pack,3);
  addTransform(pack,"String_Node_Str",new TransformerAdapter(LocalSplitter.v()));
  addTransform(pack,"String_Node_Str",new TransformerAdapter(TypeAssigner.v()));
  addTransform(pack,"String_Node_Str",InvocationBinder.v());
  addTransform(pack,"String_Node_Str",new TransformerAdapter(CastAndInstanceofEliminator.v()));
  addStandardOptimizations(pack,4);
  addTransform(pack,"String_Node_Str",ReplaceComplexParameters.v(toplevel),"String_Node_Str" + _targetPackage);
  addTransform(pack,"String_Node_Str",ConstructorSpecializer.v(toplevel),"String_Node_Str" + _targetPackage);
  addTransform(pack,"String_Node_Str",new TransformerAdapter(TypeAssigner.v()));
  addTransform(pack,"String_Node_Str",new TransformerAdapter(CastAndInstanceofEliminator.v()));
  addTransform(pack,"String_Node_Str",InlineParameterTransformer.v(toplevel),"String_Node_Str" + _targetPackage);
  addTransform(pack,"String_Node_Str",InlineTokenTransformer.v(toplevel),"String_Node_Str" + _targetPackage);
  addTransform(pack,"String_Node_Str",new TransformerAdapter(LocalSplitter.v()));
  addTransform(pack,"String_Node_Str",new TransformerAdapter(TokenInstanceofEliminator.v()));
  addTransform(pack,"String_Node_Str",new TransformerAdapter(TypeAssigner.v()));
  addTransform(pack,"String_Node_Str",new TransformerAdapter(CopyPropagator.v()));
  addStandardOptimizations(pack,5);
  if (_snapshots) {
    addTransform(pack,"String_Node_Str",JimpleWriter.v(),"String_Node_Str" + _outputDirectory + "String_Node_Str");
    addTransform(pack,"String_Node_Str",ClassWriter.v(),"String_Node_Str" + _outputDirectory + "String_Node_Str");
    addTransform(pack,"String_Node_Str",LibraryUsageReporter.v(),"String_Node_Str" + _outputDirectory + "String_Node_Str");
  }
  addTransform(pack,"String_Node_Str",InlinePortTransformer.v(toplevel),"String_Node_Str" + _targetPackage);
  addTransform(pack,"String_Node_Str",FieldsForAttributesTransformer.v(toplevel),"String_Node_Str" + _targetPackage);
  addTransform(pack,"String_Node_Str",InlineTokenTransformer.v(toplevel),"String_Node_Str" + _targetPackage);
  if (_snapshots) {
    addTransform(pack,"String_Node_Str",JimpleWriter.v(),"String_Node_Str" + _outputDirectory + "String_Node_Str");
    addTransform(pack,"String_Node_Str",ClassWriter.v(),"String_Node_Str" + _outputDirectory + "String_Node_Str");
    addTransform(pack,"String_Node_Str",LibraryUsageReporter.v(),"String_Node_Str" + _outputDirectory + "String_Node_Str");
  }
  addTransform(pack,"String_Node_Str",new TransformerAdapter(LocalSplitter.v()));
  addTransform(pack,"String_Node_Str",new TransformerAdapter(TypeAssigner.v()));
  addTransform(pack,"String_Node_Str",InvocationBinder.v());
  addTransform(pack,"String_Node_Str",NamedObjEqualityEliminator.v(toplevel),"String_Node_Str" + _targetPackage);
  addTransform(pack,"String_Node_Str",new TransformerAdapter(CastAndInstanceofEliminator.v()));
  addTransform(pack,"String_Node_Str",new TransformerAdapter(TypeAssigner.v()));
  addStandardOptimizations(pack,6);
  addTransform(pack,"String_Node_Str",UnreachableMethodRemover.v());
  addTransform(pack,"String_Node_Str",ExceptionEliminator.v(toplevel));
  addTransform(pack,"String_Node_Str",new TransformerAdapter(LocalSplitter.v()));
  addTransform(pack,"String_Node_Str",new TransformerAdapter(CastAndInstanceofEliminator.v()));
  addTransform(pack,"String_Node_Str",new TransformerAdapter(TypeAssigner.v()));
  addTransform(pack,"String_Node_Str",InvocationBinder.v());
  addTransform(pack,"String_Node_Str",NamedObjEliminator.v(toplevel));
  addTransform(pack,"String_Node_Str",UnreachableMethodRemover.v());
  addTransform(pack,"String_Node_Str",new TransformerAdapter(DeadObjectEliminator.v()));
  addTransform(pack,"String_Node_Str",new TransformerAdapter(DeadAssignmentEliminator.v()));
  addTransform(pack,"String_Node_Str",new TransformerAdapter(DeadObjectEliminator.v()));
  addTransform(pack,"String_Node_Str",new TransformerAdapter(DeadAssignmentEliminator.v()));
  addTransform(pack,"String_Node_Str",new TransformerAdapter(DeadObjectEliminator.v()));
  addStandardOptimizations(pack,7);
  if (_snapshots) {
    addTransform(pack,"String_Node_Str",JimpleWriter.v(),"String_Node_Str" + _outputDirectory + "String_Node_Str");
    addTransform(pack,"String_Node_Str",ClassWriter.v(),"String_Node_Str" + _outputDirectory + "String_Node_Str");
    addTransform(pack,"String_Node_Str",LibraryUsageReporter.v(),"String_Node_Str" + _outputDirectory + "String_Node_Str");
  }
  if (_unboxing) {
    addTransform(pack,"String_Node_Str",TokenToNativeTransformer.v(toplevel));
    addStandardOptimizations(pack,8);
    addTransform(pack,"String_Node_Str",UnusedFieldRemover.v());
    addTransform(pack,"String_Node_Str",SideEffectFreeInvocationRemover.v());
    addTransform(pack,"String_Node_Str",ExceptionEliminator.v(toplevel));
    addTransform(pack,"String_Node_Str",new TransformerAdapter(DeadObjectEliminator.v()));
    addStandardOptimizations(pack,9);
    addTransform(pack,"String_Node_Str",SideEffectFreeInvocationRemover.v());
    addTransform(pack,"String_Node_Str",FinalFieldUnfinalizer.v());
    addTransform(pack,"String_Node_Str",UnreachableMethodRemover.v());
    addTransform(pack,"String_Node_Str",new TransformerAdapter(CopyPropagator.v()));
    addTransform(pack,"String_Node_Str",UnusedFieldRemover.v());
    addStandardOptimizations(pack,10);
    addTransform(pack,"String_Node_Str",new TransformerAdapter(DeadObjectEliminator.v()));
    addStandardOptimizations(pack,11);
    addTransform(pack,"String_Node_Str",new TransformerAdapter(DeadObjectEliminator.v()));
    addStandardOptimizations(pack,12);
    addTransform(pack,"String_Node_Str",LibraryUsageReporter.v(),"String_Node_Str" + _outputDirectory + "String_Node_Str"+ "String_Node_Str");
  }
}

Fixed version (ground truth):
/** 
 * Add to the scene a standard set of transformations that are useful for optimizing efficiency.
 * @param toplevel The composite actor we are generating code for.
 */
public static void addStandardTransforms(CompositeActor toplevel){
  Pack pack=PackManager.v().getPack("String_Node_Str");
  addTransform(pack,"String_Node_Str",WatchDogTimer.v(),"String_Node_Str" + _watchDogTimeout);
  addTransform(pack,"String_Node_Str",ModelTransformer.v(toplevel),"String_Node_Str" + _targetPackage);
  addTransform(pack,"String_Node_Str",InlineDirectorTransformer.v(toplevel),"String_Node_Str" + _targetPackage + "String_Node_Str"+ _outputDirectory);
  addTransform(pack,"String_Node_Str",CommandLineTransformer.v(toplevel),"String_Node_Str" + _targetPackage);
  addTransform(pack,"String_Node_Str",new TransformerAdapter(TypeAssigner.v()));
  addStandardOptimizations(pack,1);
  if (_snapshots) {
    addTransform(pack,"String_Node_Str",JimpleWriter.v(),"String_Node_Str" + _outputDirectory + "String_Node_Str");
    addTransform(pack,"String_Node_Str",ClassWriter.v(),"String_Node_Str" + _outputDirectory + "String_Node_Str");
    addTransform(pack,"String_Node_Str",LibraryUsageReporter.v(),"String_Node_Str" + _outputDirectory + "String_Node_Str");
  }
  addTransform(pack,"String_Node_Str",InvocationBinder.v());
  addTransform(pack,"String_Node_Str",new TransformerAdapter(LocalSplitter.v()));
  addTransform(pack,"String_Node_Str",FieldsForEntitiesTransformer.v(toplevel),"String_Node_Str" + _targetPackage);
  addTransform(pack,"String_Node_Str",new TransformerAdapter(TypeAssigner.v()));
  addTransform(pack,"String_Node_Str",new TransformerAdapter(CastAndInstanceofEliminator.v()));
  addStandardOptimizations(pack,2);
  addTransform(pack,"String_Node_Str",FieldsForAttributesTransformer.v(toplevel),"String_Node_Str" + _targetPackage);
  addTransform(pack,"String_Node_Str",FieldsForPortsTransformer.v(toplevel),"String_Node_Str" + _targetPackage);
  addTransform(pack,"String_Node_Str",new TransformerAdapter(LocalSplitter.v()));
  addTransform(pack,"String_Node_Str",new TransformerAdapter(LocalNameStandardizer.v()));
  addStandardOptimizations(pack,3);
  addTransform(pack,"String_Node_Str",new TransformerAdapter(LocalSplitter.v()));
  addTransform(pack,"String_Node_Str",new TransformerAdapter(TypeAssigner.v()));
  addTransform(pack,"String_Node_Str",InvocationBinder.v());
  addTransform(pack,"String_Node_Str",new TransformerAdapter(CastAndInstanceofEliminator.v()));
  addStandardOptimizations(pack,4);
  addTransform(pack,"String_Node_Str",ReplaceComplexParameters.v(toplevel),"String_Node_Str" + _targetPackage);
  addTransform(pack,"String_Node_Str",ConstructorSpecializer.v(toplevel),"String_Node_Str" + _targetPackage);
  addTransform(pack,"String_Node_Str",new TransformerAdapter(TypeAssigner.v()));
  addTransform(pack,"String_Node_Str",new TransformerAdapter(CastAndInstanceofEliminator.v()));
  addTransform(pack,"String_Node_Str",InlineParameterTransformer.v(toplevel),"String_Node_Str" + _targetPackage);
  addTransform(pack,"String_Node_Str",InlineTokenTransformer.v(toplevel),"String_Node_Str" + _targetPackage);
  addTransform(pack,"String_Node_Str",new TransformerAdapter(LocalSplitter.v()));
  addTransform(pack,"String_Node_Str",new TransformerAdapter(TokenInstanceofEliminator.v()));
  addTransform(pack,"String_Node_Str",new TransformerAdapter(TypeAssigner.v()));
  addTransform(pack,"String_Node_Str",new TransformerAdapter(CopyPropagator.v()));
  addStandardOptimizations(pack,5);
  if (_snapshots) {
    addTransform(pack,"String_Node_Str",JimpleWriter.v(),"String_Node_Str" + _outputDirectory + "String_Node_Str");
    addTransform(pack,"String_Node_Str",ClassWriter.v(),"String_Node_Str" + _outputDirectory + "String_Node_Str");
    addTransform(pack,"String_Node_Str",LibraryUsageReporter.v(),"String_Node_Str" + _outputDirectory + "String_Node_Str");
  }
  addTransform(pack,"String_Node_Str",InlinePortTransformer.v(toplevel),"String_Node_Str" + _targetPackage);
  addTransform(pack,"String_Node_Str",FieldsForAttributesTransformer.v(toplevel),"String_Node_Str" + _targetPackage);
  addTransform(pack,"String_Node_Str",InlineTokenTransformer.v(toplevel),"String_Node_Str" + _targetPackage);
  if (_snapshots) {
    addTransform(pack,"String_Node_Str",JimpleWriter.v(),"String_Node_Str" + _outputDirectory + "String_Node_Str");
    addTransform(pack,"String_Node_Str",ClassWriter.v(),"String_Node_Str" + _outputDirectory + "String_Node_Str");
    addTransform(pack,"String_Node_Str",LibraryUsageReporter.v(),"String_Node_Str" + _outputDirectory + "String_Node_Str");
  }
  addTransform(pack,"String_Node_Str",new TransformerAdapter(LocalSplitter.v()));
  addTransform(pack,"String_Node_Str",new TransformerAdapter(TypeAssigner.v()));
  addTransform(pack,"String_Node_Str",InvocationBinder.v());
  addTransform(pack,"String_Node_Str",NamedObjEqualityEliminator.v(toplevel),"String_Node_Str" + _targetPackage);
  addTransform(pack,"String_Node_Str",new TransformerAdapter(CastAndInstanceofEliminator.v()));
  addTransform(pack,"String_Node_Str",new TransformerAdapter(TypeAssigner.v()));
  addStandardOptimizations(pack,6);
  addTransform(pack,"String_Node_Str",UnreachableMethodRemover.v());
  addTransform(pack,"String_Node_Str",ExceptionEliminator.v(toplevel));
  addTransform(pack,"String_Node_Str",new TransformerAdapter(LocalSplitter.v()));
  addTransform(pack,"String_Node_Str",new TransformerAdapter(CastAndInstanceofEliminator.v()));
  addTransform(pack,"String_Node_Str",new TransformerAdapter(TypeAssigner.v()));
  addTransform(pack,"String_Node_Str",InvocationBinder.v());
  addTransform(pack,"String_Node_Str",NamedObjEliminator.v(toplevel));
  addTransform(pack,"String_Node_Str",UnreachableMethodRemover.v());
  addTransform(pack,"String_Node_Str",new TransformerAdapter(DeadObjectEliminator.v()));
  addTransform(pack,"String_Node_Str",new TransformerAdapter(DeadAssignmentEliminator.v()));
  addTransform(pack,"String_Node_Str",new TransformerAdapter(DeadObjectEliminator.v()));
  addTransform(pack,"String_Node_Str",new TransformerAdapter(DeadAssignmentEliminator.v()));
  addTransform(pack,"String_Node_Str",new TransformerAdapter(DeadObjectEliminator.v()));
  addStandardOptimizations(pack,7);
  if (_snapshots) {
    addTransform(pack,"String_Node_Str",JimpleWriter.v(),"String_Node_Str" + _outputDirectory + "String_Node_Str");
    addTransform(pack,"String_Node_Str",ClassWriter.v(),"String_Node_Str" + _outputDirectory + "String_Node_Str");
    addTransform(pack,"String_Node_Str",LibraryUsageReporter.v(),"String_Node_Str" + _outputDirectory + "String_Node_Str");
  }
  if (_unboxing) {
    addTransform(pack,"String_Node_Str",TokenToNativeTransformer.v(toplevel));
    addStandardOptimizations(pack,8);
    addTransform(pack,"String_Node_Str",UnusedFieldRemover.v());
    addTransform(pack,"String_Node_Str",SideEffectFreeInvocationRemover.v());
    addTransform(pack,"String_Node_Str",ExceptionEliminator.v(toplevel));
    addTransform(pack,"String_Node_Str",new TransformerAdapter(DeadObjectEliminator.v()));
    addStandardOptimizations(pack,9);
    addTransform(pack,"String_Node_Str",SideEffectFreeInvocationRemover.v());
    addTransform(pack,"String_Node_Str",FinalFieldUnfinalizer.v());
    addTransform(pack,"String_Node_Str",UnreachableMethodRemover.v());
    addTransform(pack,"String_Node_Str",new TransformerAdapter(CopyPropagator.v()));
    addTransform(pack,"String_Node_Str",UnusedFieldRemover.v());
    addStandardOptimizations(pack,10);
    addTransform(pack,"String_Node_Str",new TransformerAdapter(DeadObjectEliminator.v()));
    addStandardOptimizations(pack,11);
    addTransform(pack,"String_Node_Str",new TransformerAdapter(DeadObjectEliminator.v()));
    addStandardOptimizations(pack,12);
    addTransform(pack,"String_Node_Str",new TransformerAdapter(DeadObjectEliminator.v()));
    addStandardOptimizations(pack,13);
    addTransform(pack,"String_Node_Str",LibraryUsageReporter.v(),"String_Node_Str" + _outputDirectory + "String_Node_Str"+ "String_Node_Str");
  }
}