Packages

c

tip.analysis

ContextSensitiveValueAnalysis

abstract class ContextSensitiveValueAnalysis[C <: CallContext] extends FlowSensitiveAnalysis with ContextSensitiveForwardDependencies[C] with MapLiftLatticeSolver[(C, CfgNode)] with WorklistFixpointPropagationSolver[(C, CfgNode)] with InterprocValueAnalysisMisc[(C, CfgNode)] with CallContextFunctions[C]

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ContextSensitiveValueAnalysis
  2. CallContextFunctions
  3. InterprocValueAnalysisMisc
  4. ValueAnalysisMisc
  5. WorklistFixpointPropagationSolver
  6. WorklistFixpointPropagationFunctions
  7. WorklistFixpointSolverWithReachability
  8. WorklistFixpointSolver
  9. ListSetWorklist
  10. Worklist
  11. MapLiftLatticeSolver
  12. MapLatticeSolver
  13. LatticeSolver
  14. ContextSensitiveForwardDependencies
  15. Dependencies
  16. FlowSensitiveAnalysis
  17. Analysis
  18. AnyRef
  19. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ContextSensitiveValueAnalysis(cfg: InterproceduralProgramCfg)(implicit declData: DeclarationData)

Type Members

  1. type statelatticetype = Lattice

    The type for the abstract state lattice.

    The type for the abstract state lattice.

    Definition Classes
    CallContextFunctions

Abstract Value Members

  1. abstract def initialContext: C

    Initial context, for the main function.

    Initial context, for the main function.

    Definition Classes
    CallContextFunctions
  2. abstract def makeCallContext(c: C, n: CfgCallNode, x: Element, f: CfgFunEntryNode): C

    Makes a context for the callee at a function call site.

    Makes a context for the callee at a function call site.

    c

    the caller context

    n

    the current call node

    x

    the callee entry abstract state

    f

    the callee function

    returns

    the context for the callee

    Definition Classes
    CallContextFunctions
  3. abstract val valuelattice: LatticeWithOps

    The lattice of abstract values.

    The lattice of abstract values.

    Definition Classes
    ValueAnalysisMisc

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def add(ns: Set[(C, CfgNode)]): Unit

    Adds a set of items to the worklist.

    Adds a set of items to the worklist.

    Definition Classes
    ListSetWorklistWorklist
  5. def add(n: (C, CfgNode)): Unit

    Adds an item to the worklist.

    Adds an item to the worklist.

    Definition Classes
    ListSetWorklistWorklist
  6. def analyze(): Element

    The analyze function.

  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. val cfg: InterproceduralProgramCfg
  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @IntrinsicCandidate()
  10. implicit val declData: DeclarationData
  11. val declaredVars: Set[ADeclaration]

    Set of declared variables, used by statelattice.

    Set of declared variables, used by statelattice.

    Definition Classes
    ValueAnalysisMisc
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  14. def eval(exp: AExpr, env: Element)(implicit declData: DeclarationData): lattices.LatticeWithOps.Element

    Default implementation of eval.

    Default implementation of eval.

    Definition Classes
    ValueAnalysisMisc
  15. def evalArgs(formalParams: Seq[ADeclaration], actualParams: Seq[AExpr], state: Element): Element

    Abstract evaluation of function arguments.

    Abstract evaluation of function arguments.

    Definition Classes
    InterprocValueAnalysisMisc
  16. val first: Set[(C, CfgNode)]

    Worklist start locations.

  17. def funsub(n: (C, CfgNode), x: Element): Element

    The constraint function for individual elements in the map domain.

    The constraint function for individual elements in the map domain. First computes the join of the incoming elements and then applies the transfer function.

    n

    the current location in the map domain

    x

    the current lattice element for all locations

    returns

    the output sublattice element

    Definition Classes
    MapLatticeSolver
  18. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  19. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  20. def indep(n: (C, CfgNode)): Set[(C, CfgNode)]

    (Not implemented as it is not used by any existing analysis.)

    (Not implemented as it is not used by any existing analysis.)

    n

    an element from the worklist

    returns

    the elements that the given element depends on

    Definition Classes
    ContextSensitiveForwardDependenciesDependencies
  21. def init: Lift

    The initial lattice element at the start locations is "reachable".

    The initial lattice element at the start locations is "reachable".

    Definition Classes
    ContextSensitiveValueAnalysisWorklistFixpointPropagationSolverWorklistFixpointPropagationFunctions
  22. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  23. def join(n: (C, CfgNode), o: Element): Element

    Computes the least upper bound of the incoming elements.

    Computes the least upper bound of the incoming elements.

    Definition Classes
    MapLatticeSolver
  24. val lattice: MapLattice[(C, CfgNode), liftedstatelattice.type]

    The analysis lattice.

  25. val liftedstatelattice: LiftLattice[statelattice.type]

    Lifted state lattice, with new bottom element representing "unreachable".

    Lifted state lattice, with new bottom element representing "unreachable".

    Definition Classes
    ContextSensitiveValueAnalysisInterprocValueAnalysisMisc
  26. def localTransfer(n: CfgNode, s: Element): Element

    Transfer function for state lattice elements.

    Transfer function for state lattice elements.

    Definition Classes
    ValueAnalysisMisc
  27. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  28. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  29. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  30. def outdep(n: (C, CfgNode)): Set[(C, CfgNode)]

    Like InterproceduralForwardDependencies.outdep but returning an empty set for call nodes and function exit nodes, and using the same context as the given pair.

    Like InterproceduralForwardDependencies.outdep but returning an empty set for call nodes and function exit nodes, and using the same context as the given pair.

    n

    an element from the worklist

    returns

    the elements that depend on the given element

    Definition Classes
    ContextSensitiveForwardDependenciesDependencies
  31. def process(n: (C, CfgNode)): Unit

    This method overrides the one from WorklistFixpointSolver.

    This method overrides the one from WorklistFixpointSolver. Called by the worklist solver when a node is visited.

    Definition Classes
    WorklistFixpointPropagationSolverWorklistFixpointSolverWorklist
  32. def propagate(y: Element, m: (C, CfgNode)): Unit

    Propagates lattice element y to node m.

    Propagates lattice element y to node m.

    Definition Classes
    WorklistFixpointPropagationFunctions
  33. val returnEdges: HashMap[(C, CfgFunExitNode), Set[(C, CfgAfterCallNode)]] with MultiMap[(C, CfgFunExitNode), (C, CfgAfterCallNode)]

    Collect (reverse) call edges, such that we don't have to search through the global lattice element to find the relevant call contexts.

  34. def run(first: Set[(C, CfgNode)]): Unit

    Iterates until there is no more work to do.

    Iterates until there is no more work to do.

    first

    the initial contents of the worklist

    Definition Classes
    ListSetWorklistWorklist
  35. val stateAfterNode: Boolean
    Definition Classes
    FlowSensitiveAnalysis
  36. val statelattice: MapLattice[ADeclaration, valuelattice.type]

    The lattice of abstract states.

    The lattice of abstract states.

    Definition Classes
    ValueAnalysisMisc
  37. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  38. def toString(): String
    Definition Classes
    AnyRef → Any
  39. def transfer(n: (C, CfgNode), s: Element): Element

    The transfer function.

    The transfer function.

    Definition Classes
    MapLiftLatticeSolverMapLatticeSolver
  40. def transferUnlifted(n: (C, CfgNode), s: Element): Element

    Transfer function for state lattice elements.

    Transfer function for state lattice elements.

    Definition Classes
    ContextSensitiveValueAnalysisMapLiftLatticeSolver
  41. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  43. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. val x: Element

    The current lattice element.

    The current lattice element.

    Definition Classes
    WorklistFixpointSolver

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated
    Deprecated

Inherited from CallContextFunctions[C]

Inherited from InterprocValueAnalysisMisc[(C, CfgNode)]

Inherited from ValueAnalysisMisc

Inherited from WorklistFixpointSolver[(C, CfgNode)]

Inherited from ListSetWorklist[(C, CfgNode)]

Inherited from Worklist[(C, CfgNode)]

Inherited from MapLiftLatticeSolver[(C, CfgNode)]

Inherited from MapLatticeSolver[(C, CfgNode)]

Inherited from LatticeSolver

Inherited from Dependencies[(C, CfgNode)]

Inherited from FlowSensitiveAnalysis

Inherited from Analysis[Any]

Inherited from AnyRef

Inherited from Any

Ungrouped