From: jjenista Date: Tue, 1 Feb 2011 00:54:30 +0000 (+0000) Subject: honor the easy request of suppressing output for the disjoint reach pass that is... X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=738e31295d0a9d88ea9ef217760f2c69ab1eb022;p=IRC.git honor the easy request of suppressing output for the disjoint reach pass that is the points-to only pass --- diff --git a/Robust/src/Analysis/Disjoint/DisjointAnalysis.java b/Robust/src/Analysis/Disjoint/DisjointAnalysis.java index d76cdf41..73c7a9c6 100644 --- a/Robust/src/Analysis/Disjoint/DisjointAnalysis.java +++ b/Robust/src/Analysis/Disjoint/DisjointAnalysis.java @@ -511,6 +511,9 @@ public class DisjointAnalysis { static protected Hashtable mapTypeToArrayField; + + protected boolean suppressOutput; + // for controlling DOT file output protected boolean writeFinalDOTs; protected boolean writeAllIncrementalDOTs; @@ -652,6 +655,7 @@ public class DisjointAnalysis { this.arrayReferencees = arrayReferencees; this.sitesToFlag = sitesToFlag; this.rblockRel = rra; + this.suppressOutput = suppressOutput; if( rblockRel != null ) { doEffectsAnalysis = true; @@ -697,7 +701,9 @@ public class DisjointAnalysis { ReachGraph.debugCallSiteVisitCounter = 0; // count visits from 1, is incremented before first visit - + if( suppressOutput ) { + System.out.println( "* Running disjoint reachability analysis with output suppressed! *" ); + } allocateStructures(); @@ -784,7 +790,9 @@ public class DisjointAnalysis { // reachable from the roots that will be analyzed if( state.TASK ) { - System.out.println( "Bamboo mode..." ); + if( !suppressOutput ) { + System.out.println( "Bamboo mode..." ); + } Iterator taskItr = state.getTaskSymbolTable().getDescriptorsIterator(); while( taskItr.hasNext() ) { @@ -798,7 +806,9 @@ public class DisjointAnalysis { } } else { - System.out.println( "Java mode..." ); + if( !suppressOutput ) { + System.out.println( "Java mode..." ); + } // add all methods transitively reachable from the // source's main to set for analysis @@ -887,7 +897,9 @@ public class DisjointAnalysis { // If there is a change detected, add any methods/tasks // that depend on this one to the "to visit" set. - System.out.println( "Analyzing " + d ); + if( !suppressOutput ) { + System.out.println( "Analyzing " + d ); + } if( state.DISJOINTDVISITSTACKEESONTOP ) { assert calleesToEnqueue.isEmpty(); diff --git a/Robust/src/Analysis/OoOJava/OoOJavaAnalysis.java b/Robust/src/Analysis/OoOJava/OoOJavaAnalysis.java index 50e66a72..b498e719 100644 --- a/Robust/src/Analysis/OoOJava/OoOJavaAnalysis.java +++ b/Robust/src/Analysis/OoOJava/OoOJavaAnalysis.java @@ -157,7 +157,6 @@ public class OoOJavaAnalysis { livenessAnalysisBackward(fm); } - /* // 5th pass, use disjointness with NO FLAGGED REGIONS // to compute taints and effects disjointAnalysisTaints = @@ -165,6 +164,7 @@ public class OoOJavaAnalysis { rblockRel, true ); // suppress output--this is an intermediate pass + /* // 6th pass, not available analysis FOR VARIABLES! methItr = descriptorsToAnalyze.iterator(); while (methItr.hasNext()) {