Class DebugAbstractionTree

java.lang.Object
soot.jimple.infoflow.util.DebugAbstractionTree

public final class DebugAbstractionTree extends Object
Creates a Graphviz/dot graph of a Abstraction tree. Contains the abstractions as well as its predecessors an neighbors
Author:
Marc Miltenberger
  • Method Details

    • createDotGraph

      public static String createDotGraph(Abstraction absStart, boolean printNeighbors)
      Creates a dot graph with indices as labels for the abstractions (otherwise, it would be way too large). The correspondence is printed to log.
      Parameters:
      absStart - start abstraction of the tree (root)
      printNeighbors - whether to print neighbors
      Returns:
      the dot graph
    • createDotGraph

      public static String createDotGraph(Abstraction absStart, boolean printNeighbors, boolean verbose)
      Creates a dot graph with indices as labels for the abstractions (otherwise, it would be way too large). The correspondence is printed to log.
      Parameters:
      absStart - start abstraction of the tree (root)
      printNeighbors - whether to print neighbors
      verbose - whether to print the access path and statement
      Returns:
      the dot graph
    • countNodes

      public static long countNodes(Abstraction abs)
      Counts the nodes in an abstraction graph
      Parameters:
      abs - abstraction to start with
      Returns:
      number of nodes in the graph