From 3687f27360215cc6e490119301c1bf1478cf1537 Mon Sep 17 00:00:00 2001 From: Raffi Khatchadourian Date: Wed, 27 Mar 2024 15:34:53 +0000 Subject: [PATCH] More compilation fixes. --- .../ibm/wala/cast/python/ml/test/TestMNISTExamples.java | 8 ++++---- .../cast/python/ml/test/TestPythonMLCallGraphShape.java | 2 +- .../source/com/ibm/wala/cast/python/test/TestAssign.java | 2 +- .../source/com/ibm/wala/cast/python/test/TestCalls.java | 6 +++--- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/com.ibm.wala.cast.python.ml.test/source/com/ibm/wala/cast/python/ml/test/TestMNISTExamples.java b/com.ibm.wala.cast.python.ml.test/source/com/ibm/wala/cast/python/ml/test/TestMNISTExamples.java index e1bb06cd7..81acb83a2 100644 --- a/com.ibm.wala.cast.python.ml.test/source/com/ibm/wala/cast/python/ml/test/TestMNISTExamples.java +++ b/com.ibm.wala.cast.python.ml.test/source/com/ibm/wala/cast/python/ml/test/TestMNISTExamples.java @@ -77,11 +77,11 @@ public void testEx2Tensors() throws IllegalArgumentException, CancelException, I checkTensorOps( Ex2URL, (PropagationCallGraphBuilder cgBuilder, CallGraph CG, TensorTypeAnalysis result) -> { - CAstCallGraphUtil.AVOID_DUMP = false; + CAstCallGraphUtil.AVOID_DUMP.set(false); CAstCallGraphUtil.dumpCG( - (SSAContextInterpreter) cgBuilder.getContextInterpreter(), - cgBuilder.getPointerAnalysis(), - CG); + (SSAContextInterpreter) cgBuilder.getContextInterpreter(), + cgBuilder.getPointerAnalysis(), + CG); String in = "[{[D:Symbolic,?, D:Constant,784] of pixel}]"; String out = "[{[D:Symbolic,?, D:Constant,28, D:Constant,28, D:Constant,1] of pixel}]"; diff --git a/com.ibm.wala.cast.python.ml.test/source/com/ibm/wala/cast/python/ml/test/TestPythonMLCallGraphShape.java b/com.ibm.wala.cast.python.ml.test/source/com/ibm/wala/cast/python/ml/test/TestPythonMLCallGraphShape.java index 0eb911b0d..9f5edc938 100644 --- a/com.ibm.wala.cast.python.ml.test/source/com/ibm/wala/cast/python/ml/test/TestPythonMLCallGraphShape.java +++ b/com.ibm.wala.cast.python.ml.test/source/com/ibm/wala/cast/python/ml/test/TestPythonMLCallGraphShape.java @@ -117,7 +117,7 @@ public static void main(String[] args) CallGraphBuilder builder = E.defaultCallGraphBuilder(); CallGraph CG = builder.makeCallGraph(E.getOptions(), new NullProgressMonitor()); - CAstCallGraphUtil.AVOID_DUMP = false; + CAstCallGraphUtil.AVOID_DUMP.set(false); CAstCallGraphUtil.dumpCG( ((SSAPropagationCallGraphBuilder) builder).getCFAContextInterpreter(), E.getPointerAnalysis(), diff --git a/com.ibm.wala.cast.python.test/source/com/ibm/wala/cast/python/test/TestAssign.java b/com.ibm.wala.cast.python.test/source/com/ibm/wala/cast/python/test/TestAssign.java index c88515e8d..c2dcc9232 100644 --- a/com.ibm.wala.cast.python.test/source/com/ibm/wala/cast/python/test/TestAssign.java +++ b/com.ibm.wala.cast.python.test/source/com/ibm/wala/cast/python/test/TestAssign.java @@ -48,7 +48,7 @@ public void testAssign2() CallGraph CG = B.makeCallGraph(B.getOptions()); verifyGraphAssertions(CG, assertionsAssign2); - CAstCallGraphUtil.AVOID_DUMP = false; + CAstCallGraphUtil.AVOID_DUMP.set(false); CAstCallGraphUtil.dumpCG( (SSAContextInterpreter) B.getContextInterpreter(), B.getPointerAnalysis(), CG); } diff --git a/com.ibm.wala.cast.python.test/source/com/ibm/wala/cast/python/test/TestCalls.java b/com.ibm.wala.cast.python.test/source/com/ibm/wala/cast/python/test/TestCalls.java index c6e6b3645..399c67b80 100644 --- a/com.ibm.wala.cast.python.test/source/com/ibm/wala/cast/python/test/TestCalls.java +++ b/com.ibm.wala.cast.python.test/source/com/ibm/wala/cast/python/test/TestCalls.java @@ -155,7 +155,7 @@ public Void performAnalysis(PropagationCallGraphBuilder builder) throws CancelEx PropagationCallGraphBuilder cgBuilder = (PropagationCallGraphBuilder) e.defaultCallGraphBuilder(); CallGraph CG = cgBuilder.makeCallGraph(cgBuilder.getOptions()); - CAstCallGraphUtil.AVOID_DUMP = false; + CAstCallGraphUtil.AVOID_DUMP.set(false); CAstCallGraphUtil.dumpCG( (SSAContextInterpreter) cgBuilder.getContextInterpreter(), cgBuilder.getPointerAnalysis(), @@ -190,7 +190,7 @@ public Void performAnalysis(PropagationCallGraphBuilder builder) throws CancelEx PropagationCallGraphBuilder cgBuilder = (PropagationCallGraphBuilder) e.defaultCallGraphBuilder(); CallGraph CG = cgBuilder.makeCallGraph(cgBuilder.getOptions()); - CAstCallGraphUtil.AVOID_DUMP = false; + CAstCallGraphUtil.AVOID_DUMP.set(false); CAstCallGraphUtil.dumpCG( (SSAContextInterpreter) cgBuilder.getContextInterpreter(), cgBuilder.getPointerAnalysis(), @@ -228,7 +228,7 @@ public Void performAnalysis(PropagationCallGraphBuilder builder) throws CancelEx PropagationCallGraphBuilder cgBuilder = (PropagationCallGraphBuilder) e.defaultCallGraphBuilder(); CallGraph CG = cgBuilder.makeCallGraph(cgBuilder.getOptions()); - CAstCallGraphUtil.AVOID_DUMP = false; + CAstCallGraphUtil.AVOID_DUMP.set(false); CAstCallGraphUtil.dumpCG( (SSAContextInterpreter) cgBuilder.getContextInterpreter(), cgBuilder.getPointerAnalysis(),