Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Add all flags and times

  • Loading branch information...
commit 2d11215ff2d10aecf02454b23c27f66e1fc5ad2b 1 parent 5b303ae
Etienne Kneuss authored

Showing 1 changed file with 5 additions and 10 deletions. Show diff stats Hide diff stats

  1. 15  src/insane/alias/PointToAnalysis.scala
15  src/insane/alias/PointToAnalysis.scala
@@ -2179,18 +2179,16 @@ trait PointToAnalysis extends PointToGraphsDefs with PointToEnvs with PointToLat
2179 2179
             // Finished analyzing fun
2180 2180
             resultsStats.total += 1
2181 2181
 
  2182
+            val methodFlags = fun.symbol.flagBitsToString(fun.symbol.flags)
  2183
+
2182 2184
             val category = if (cfgAfter.isFlat) {
2183 2185
               if (cfgAfter.isTop) {
2184  
-                resultsStats.top +=1
2185 2186
                 "top"
2186 2187
               } else if (cfgAfter.isBottom) {
2187  
-                resultsStats.bot +=1
2188 2188
                 "bottom"
2189 2189
               } else if (cfgAfter.isPure) {
2190  
-                resultsStats.pure +=1
2191 2190
                 "pure"
2192 2191
               } else {
2193  
-                resultsStats.impure +=1
2194 2192
                 "impure"
2195 2193
               }
2196 2194
             } else {
@@ -2199,22 +2197,19 @@ trait PointToAnalysis extends PointToGraphsDefs with PointToEnvs with PointToLat
2199 2197
 
2200 2198
               condCFG match {
2201 2199
                 case Some(cfg) if cfg.isPure =>
2202  
-                  resultsStats.condPure +=1
2203 2200
                   "condPure"
2204 2201
 
2205 2202
                 case Some(cfg) =>
2206  
-                  resultsStats.condImpure +=1
2207 2203
                   "condImpure"
2208 2204
 
2209 2205
                 case None =>
2210 2206
                   reporter.error("Failed to produce an effect, BLEH")
2211  
-                  resultsStats.condImpure +=1
2212 2207
                   "ERROR"
2213 2208
               }
2214 2209
             }
2215 2210
 
2216 2211
             lastResults.append((fun.symbol, category))
2217  
-            resultsLog.println(category+"\t"+fun.symbol.fullName)
  2212
+            resultsLog.println(category+"\t"+fun.symbol.fullName+"\t"+methodFlags+"\t"+(System.currentTimeMillis() / 1000L))
2218 2213
 
2219 2214
             ptProgressBar.tick
2220 2215
             ptProgressBar.draw()
@@ -2254,7 +2249,7 @@ trait PointToAnalysis extends PointToGraphsDefs with PointToEnvs with PointToLat
2254 2249
       }
2255 2250
 
2256 2251
       // 4) Display/dump results, if asked to
2257  
-      if (!settings.dumpptgraphs.isEmpty) {
  2252
+      if (!settings.dumpptgraphs.isEmpty && settings.isDebug) {
2258 2253
 
2259 2254
         var toDump = allFunctions.values.collect { case f: AbsFunction if settings.dumpPTGraph(safeFullName(f.symbol)) => (f.symbol, f) }
2260 2255
 
@@ -2314,7 +2309,7 @@ trait PointToAnalysis extends PointToGraphsDefs with PointToEnvs with PointToLat
2314 2309
         reporter.msg(" -> Analyzed "+cntSig+" signatures of "+cntFun+" functions")
2315 2310
       }
2316 2311
 
2317  
-      if (!settings.displaypure.isEmpty) {
  2312
+      if (!settings.displaypure.isEmpty && settings.isDebug) {
2318 2313
 
2319 2314
         val columns = Seq(TableColumn("Function Name", Some(80)),
2320 2315
                           TableColumn("Signature", Some(40)),

0 notes on commit 2d11215

Please sign in to comment.
Something went wrong with that request. Please try again.