Program: 111009
Project: 111009
Buggy source:
private CommandLine linkCommandLine(ExtraLinkArgs extraLinkArgs,ObjcProvider objcProvider,Artifact linkedBinary,Optional<Artifact> dsymBundle,ImmutableList<Artifact> ccLibraries){
  ObjcConfiguration objcConfiguration=ObjcRuleClasses.objcConfiguration(ruleContext);
  CustomCommandLine.Builder commandLine=CustomCommandLine.builder();
  if (objcProvider.is(USES_CPP)) {
    commandLine.addPath(CLANG_PLUSPLUS).add("String_Node_Str");
  }
 else {
    commandLine.addPath(CLANG);
  }
  boolean isTestTarget=TargetUtils.isTestRule(ruleContext.getRule());
  if (objcConfiguration.shouldStripBinary() && !isTestTarget) {
    commandLine.add("String_Node_Str").add("String_Node_Str");
  }
  commandLine.add(IosSdkCommands.commonLinkAndCompileFlagsForClang(objcProvider,objcConfiguration)).add("String_Node_Str").add("String_Node_Str").add("String_Node_Str").add("String_Node_Str").add("String_Node_Str").add(IosSdkCommands.DEFAULT_LINKER_FLAGS).addBeforeEach("String_Node_Str",frameworkNames(objcProvider)).addBeforeEach("String_Node_Str",SdkFramework.names(objcProvider.get(WEAK_SDK_FRAMEWORK))).addExecPath("String_Node_Str",linkedBinary).addExecPaths(objcProvider.get(LIBRARY)).addExecPaths(objcProvider.get(IMPORTED_LIBRARY)).addExecPaths(ccLibraries).add(dylibPaths(objcProvider)).addBeforeEach("String_Node_Str",Artifact.toExecPaths(objcProvider.get(FORCE_LOAD_LIBRARY))).add(extraLinkArgs).build();
  if (ruleContext.getConfiguration().isCodeCoverageEnabled()) {
    commandLine.add(LINKER_COVERAGE_FLAGS);
  }
  if (objcProvider.is(USES_SWIFT)) {
    commandLine.add("String_Node_Str").add(IosSdkCommands.swiftLibDir(objcConfiguration));
  }
  if (objcProvider.is(USES_SWIFT) || objcProvider.is(USES_FRAMEWORKS)) {
    commandLine.add("String_Node_Str").add("String_Node_Str").add("String_Node_Str").add("String_Node_Str");
  }
  if (dsymBundle.isPresent()) {
    commandLine.add("String_Node_Str").addPath(DSYMUTIL).add(linkedBinary.getExecPathString()).addExecPath("String_Node_Str",dsymBundle.get());
  }
  return new SingleArgCommandLine(commandLine.build());
}

Fixed version (ground truth):
private CommandLine linkCommandLine(ExtraLinkArgs extraLinkArgs,ObjcProvider objcProvider,Artifact linkedBinary,Optional<Artifact> dsymBundle,ImmutableList<Artifact> ccLibraries){
  ObjcConfiguration objcConfiguration=ObjcRuleClasses.objcConfiguration(ruleContext);
  CustomCommandLine.Builder commandLine=CustomCommandLine.builder();
  if (objcProvider.is(USES_CPP)) {
    commandLine.addPath(CLANG_PLUSPLUS).add("String_Node_Str");
  }
 else {
    commandLine.addPath(CLANG);
  }
  boolean isTestTarget=TargetUtils.isTestRule(ruleContext.getRule());
  if (objcConfiguration.shouldStripBinary() && !isTestTarget) {
    commandLine.add("String_Node_Str").add("String_Node_Str");
  }
  commandLine.add(IosSdkCommands.commonLinkAndCompileFlagsForClang(objcProvider,objcConfiguration)).add("String_Node_Str").add("String_Node_Str").add("String_Node_Str").add("String_Node_Str").add("String_Node_Str").add(IosSdkCommands.DEFAULT_LINKER_FLAGS).addBeforeEach("String_Node_Str",frameworkNames(objcProvider)).addBeforeEach("String_Node_Str",SdkFramework.names(objcProvider.get(WEAK_SDK_FRAMEWORK))).addExecPath("String_Node_Str",linkedBinary).addExecPaths(objcProvider.get(LIBRARY)).addExecPaths(objcProvider.get(IMPORTED_LIBRARY)).addExecPaths(ccLibraries).add(dylibPaths(objcProvider)).addBeforeEach("String_Node_Str",Artifact.toExecPaths(objcProvider.get(FORCE_LOAD_LIBRARY))).add(extraLinkArgs).build();
  if (ruleContext.getConfiguration().isCodeCoverageEnabled()) {
    commandLine.add(LINKER_COVERAGE_FLAGS);
  }
  if (objcProvider.is(USES_SWIFT)) {
    commandLine.add("String_Node_Str").add(IosSdkCommands.swiftLibDir(objcConfiguration));
  }
  if (objcProvider.is(USES_SWIFT) || objcProvider.is(USES_FRAMEWORKS)) {
    commandLine.add("String_Node_Str").add("String_Node_Str").add("String_Node_Str").add("String_Node_Str");
  }
  if (dsymBundle.isPresent()) {
    PathFragment dsymPath=FileSystemUtils.removeExtension(dsymBundle.get().getExecPath());
    commandLine.add("String_Node_Str").addPath(DSYMUTIL).add(linkedBinary.getExecPathString()).add("String_Node_Str" + dsymPath).add("String_Node_Str" + dsymBundle.get().getShellEscapedExecPathString()).add("String_Node_Str" + dsymPath).add("String_Node_Str");
  }
  return new SingleArgCommandLine(commandLine.build());
}