Program: 110567
Project: 110567
Buggy source:
private void configureCommonFlags(AndroidResources primaryResources,AndroidAssets primaryAssets,StampedAndroidManifest primaryManifest,List<Artifact> outs,NestedSetBuilder<Artifact> inputs,Builder builder){
  builder.add("String_Node_Str",String.format("String_Node_Str",AndroidDataConverter.rootsToString(primaryResources.getResourceRoots()),AndroidDataConverter.rootsToString(primaryAssets.getAssetRoots()),primaryManifest.getManifest().getExecPathString()));
  inputs.addAll(primaryResources.getResources());
  inputs.add(primaryManifest.getManifest());
  if (!Strings.isNullOrEmpty(sdk.getBuildToolsVersion())) {
    builder.add("String_Node_Str",sdk.getBuildToolsVersion());
  }
  builder.addExecPath("String_Node_Str",sdk.getAndroidJar());
  inputs.add(sdk.getAndroidJar());
  if (isLibrary) {
    builder.add("String_Node_Str").add("String_Node_Str");
  }
  if (rTxtOut != null) {
    builder.addExecPath("String_Node_Str",rTxtOut);
    outs.add(rTxtOut);
  }
  if (symbols != null) {
    builder.addExecPath("String_Node_Str",symbols);
    outs.add(symbols);
  }
  if (sourceJarOut != null) {
    builder.addExecPath("String_Node_Str",sourceJarOut);
    outs.add(sourceJarOut);
  }
  if (proguardOut != null) {
    builder.addExecPath("String_Node_Str",proguardOut);
    outs.add(proguardOut);
  }
  if (mainDexProguardOut != null) {
    builder.addExecPath("String_Node_Str",mainDexProguardOut);
    outs.add(mainDexProguardOut);
  }
  if (manifestOut != null) {
    builder.addExecPath("String_Node_Str",manifestOut);
    outs.add(manifestOut);
  }
  if (mergedResourcesOut != null) {
    builder.addExecPath("String_Node_Str",mergedResourcesOut);
    outs.add(mergedResourcesOut);
  }
  if (apkOut != null) {
    builder.addExecPath("String_Node_Str",apkOut);
    outs.add(apkOut);
  }
  if (resourceFilterFactory.hasConfigurationFilters()) {
    builder.add("String_Node_Str",resourceFilterFactory.getConfigurationFilterString());
  }
  if (resourceFilterFactory.hasDensities()) {
    builder.add("String_Node_Str",resourceFilterFactory.getDensityString());
  }
  if (!uncompressedExtensions.isEmpty()) {
    builder.addAll("String_Node_Str",VectorArg.join("String_Node_Str").each(uncompressedExtensions));
  }
  if (!crunchPng) {
    builder.add("String_Node_Str");
  }
  if (debug) {
    builder.add("String_Node_Str");
  }
  if (versionCode != null) {
    builder.add("String_Node_Str",versionCode);
  }
  if (versionName != null) {
    builder.add("String_Node_Str",versionName);
  }
  if (applicationId != null) {
    builder.add("String_Node_Str",applicationId);
  }
  if (dataBindingInfoZip != null) {
    builder.addExecPath("String_Node_Str",dataBindingInfoZip);
    outs.add(dataBindingInfoZip);
  }
  if (!Strings.isNullOrEmpty(customJavaPackage)) {
    builder.add("String_Node_Str",customJavaPackage);
  }
  if (featureOf != null) {
    builder.addExecPath("String_Node_Str",featureOf);
    inputs.add(featureOf);
  }
  if (featureAfter != null) {
    builder.addExecPath("String_Node_Str",featureAfter);
    inputs.add(featureAfter);
  }
  if (throwOnResourceConflict) {
    builder.add("String_Node_Str");
  }
  if (packageUnderTest != null) {
    builder.add("String_Node_Str",packageUnderTest);
  }
  if (isTestWithResources) {
    builder.add("String_Node_Str");
  }
}

Fixed version (ground truth):
private void configureCommonFlags(AndroidResources primaryResources,AndroidAssets primaryAssets,StampedAndroidManifest primaryManifest,List<Artifact> outs,NestedSetBuilder<Artifact> inputs,Builder builder){
  builder.add("String_Node_Str",String.format("String_Node_Str",AndroidDataConverter.rootsToString(primaryResources.getResourceRoots()),AndroidDataConverter.rootsToString(primaryAssets.getAssetRoots()),primaryManifest.getManifest().getExecPathString()));
  inputs.addAll(primaryResources.getResources());
  inputs.addAll(primaryAssets.getAssets());
  inputs.add(primaryManifest.getManifest());
  if (!Strings.isNullOrEmpty(sdk.getBuildToolsVersion())) {
    builder.add("String_Node_Str",sdk.getBuildToolsVersion());
  }
  builder.addExecPath("String_Node_Str",sdk.getAndroidJar());
  inputs.add(sdk.getAndroidJar());
  if (isLibrary) {
    builder.add("String_Node_Str").add("String_Node_Str");
  }
  if (rTxtOut != null) {
    builder.addExecPath("String_Node_Str",rTxtOut);
    outs.add(rTxtOut);
  }
  if (symbols != null) {
    builder.addExecPath("String_Node_Str",symbols);
    outs.add(symbols);
  }
  if (sourceJarOut != null) {
    builder.addExecPath("String_Node_Str",sourceJarOut);
    outs.add(sourceJarOut);
  }
  if (proguardOut != null) {
    builder.addExecPath("String_Node_Str",proguardOut);
    outs.add(proguardOut);
  }
  if (mainDexProguardOut != null) {
    builder.addExecPath("String_Node_Str",mainDexProguardOut);
    outs.add(mainDexProguardOut);
  }
  if (manifestOut != null) {
    builder.addExecPath("String_Node_Str",manifestOut);
    outs.add(manifestOut);
  }
  if (mergedResourcesOut != null) {
    builder.addExecPath("String_Node_Str",mergedResourcesOut);
    outs.add(mergedResourcesOut);
  }
  if (apkOut != null) {
    builder.addExecPath("String_Node_Str",apkOut);
    outs.add(apkOut);
  }
  if (resourceFilterFactory.hasConfigurationFilters()) {
    builder.add("String_Node_Str",resourceFilterFactory.getConfigurationFilterString());
  }
  if (resourceFilterFactory.hasDensities()) {
    builder.add("String_Node_Str",resourceFilterFactory.getDensityString());
  }
  if (!uncompressedExtensions.isEmpty()) {
    builder.addAll("String_Node_Str",VectorArg.join("String_Node_Str").each(uncompressedExtensions));
  }
  if (!crunchPng) {
    builder.add("String_Node_Str");
  }
  if (debug) {
    builder.add("String_Node_Str");
  }
  if (versionCode != null) {
    builder.add("String_Node_Str",versionCode);
  }
  if (versionName != null) {
    builder.add("String_Node_Str",versionName);
  }
  if (applicationId != null) {
    builder.add("String_Node_Str",applicationId);
  }
  if (dataBindingInfoZip != null) {
    builder.addExecPath("String_Node_Str",dataBindingInfoZip);
    outs.add(dataBindingInfoZip);
  }
  if (!Strings.isNullOrEmpty(customJavaPackage)) {
    builder.add("String_Node_Str",customJavaPackage);
  }
  if (featureOf != null) {
    builder.addExecPath("String_Node_Str",featureOf);
    inputs.add(featureOf);
  }
  if (featureAfter != null) {
    builder.addExecPath("String_Node_Str",featureAfter);
    inputs.add(featureAfter);
  }
  if (throwOnResourceConflict) {
    builder.add("String_Node_Str");
  }
  if (packageUnderTest != null) {
    builder.add("String_Node_Str",packageUnderTest);
  }
  if (isTestWithResources) {
    builder.add("String_Node_Str");
  }
}