Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
msridhar committed Dec 29, 2023
1 parent 48920ae commit ef6c025
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 33 deletions.
10 changes: 4 additions & 6 deletions core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -312,21 +312,19 @@ artifacts.add(collectTestDataJar.name, collectTestData.map { it.destinationDirec

////////////////////////////////////////////////////////////////////////
//
// collect "com.ibm.wala.core.testdata_1.0.0a.jar"
// collect "com.ibm.wala.core.testdata_1.0.0a.jar" for Dalvik tests
//

val collectTestDataA by
val collectTestDataAForDalvik by
tasks.registering(Jar::class) {
archiveFileName = "com.ibm.wala.core.testdata_1.0.0a.jar"
from(compileTestSubjectsJava)
from("classes")
includeEmptyDirs = false
destinationDirectory = layout.buildDirectory.dir(name)
exclude(
// This is an invalid class so don't include it, e.g., it causes D8 to crash
// This is an invalid class so don't include it; it causes D8 to crash
"**/CodeDeleted.class",
// "**/SortingExample.class",
// "**/A.class",
)
}

Expand Down Expand Up @@ -387,7 +385,7 @@ val dalvikTestResources: Configuration by configurations.creating { isCanBeResol

listOf(
collectJLex,
collectTestDataA,
collectTestDataAForDalvik,
downloadJavaCup,
extractBcel,
)
Expand Down
6 changes: 0 additions & 6 deletions dalvik/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -192,12 +192,6 @@ if (isWindows) tasks.named<Test>("test") { exclude("**/droidbench/**") }
else sourceSets.test.configure { resources.srcDir(unpackDroidBench) }

tasks.named<Test>("test") {
if (JavaVersion.current() == JavaVersion.VERSION_21) {
// Disable the task for JDK 21 for now. We have test failures due to a required r8 upgrade
// that introduces some new behaviors we don't expect
// See https://github.com/wala/WALA/issues/1349
// enabled = false
}
maxHeapSize = "800M"

outputs.files(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ private static void test(String mainClass, String javaScopeFile, boolean allowEx
AnalysisScope javaScope = java.fst.getClassHierarchy().getScope();
String javaJarPath = getJavaJar(javaScope);
File androidDex = convertJarToDex(javaJarPath);
System.err.println(androidDex.getAbsolutePath());
Pair<CallGraph, PointerAnalysis<InstanceKey>> android =
makeDalvikCallGraph(null, null, mainClass, androidDex.getAbsolutePath());

Expand Down Expand Up @@ -178,7 +177,6 @@ private static void checkSourceLines(CallGraph java, CallGraph android) {
: "inconsistent debug info: " + ajlines + " " + aalines;
}

@SuppressWarnings("UnusedVariable")
private static boolean checkEdgeDiff(
Pair<CallGraph, PointerAnalysis<InstanceKey>> firstResult,
Set<MethodReference> methodsInFirst,
Expand All @@ -205,25 +203,6 @@ private static boolean checkEdgeDiff(
System.err.println("### " + n.getIR());
}
}

// for (CGNode n : firstResult.fst) {
// System.err.println("### " + n);
// if (n.getIR() != null) {
// System.err.println(n.getIR());

// System.err.println("return: " + android.snd.getPointsToSet(new
// ReturnValueKey(n)));
// System.err.println(
// "exceptions: " + android.snd.getPointsToSet(new ExceptionReturnValueKey(n)));
// for (int i = 1; i < n.getIR().getSymbolTable().getMaxValueNumber(); i++) {
// LocalPointerKey x = new LocalPointerKey(n, i);
// OrdinalSet<InstanceKey> s = android.snd.getPointsToSet(x);
// if (s != null && !s.isEmpty()) {
// System.err.println(i + ": " + s);
// }
// }
// }
// }
}
return fail;
}
Expand Down

0 comments on commit ef6c025

Please sign in to comment.