scala.tools.nsc.backend.icode.analysis.ReachingDefinitions

# ReachingDefinitionsAnalysis

#### class ReachingDefinitionsAnalysis extends DataFlowAnalysis[rdefLattice.type]

Linear Supertypes
DataFlowAnalysis[rdefLattice.type], AnyRef, Any
Type Hierarchy Learn more about scaladoc diagrams
Ordering

1. Alphabetic
2. By inheritance

Inherited

1. ReachingDefinitionsAnalysis
2. DataFlowAnalysis
3. AnyRef
4. Any

Implicitly

1. by any2stringadd
2. by any2stringfmt
3. by any2ArrowAssoc
4. by any2Ensuring

1. Hide All
2. Show all

Learn more about member selection
Visibility

1. Public
2. All

### Instance Constructors

1. #### new ReachingDefinitionsAnalysis()

### Type Members

1. #### type P = Global.icodes.BasicBlock

   A type for program points.

   A type for program points.

   Definition Classes
     ReachingDefinitionsAnalysis → DataFlowAnalysis

### Value Members

1. #### final def !=(arg0: AnyRef): Boolean

   Definition Classes
     AnyRef

2. #### final def !=(arg0: Any): Boolean

   Definition Classes
     Any

3. #### final def ##(): Int

   Definition Classes
     AnyRef → Any

4. #### def +(other: String): String

   Implicit information
     This member is added by an implicit conversion from ReachingDefinitionsAnalysis to StringAdd performed by method any2stringadd in scala.Predef.
   Definition Classes
     StringAdd

5. #### def ->[B](y: B): (ReachingDefinitionsAnalysis, B)

   Implicit information
     This member is added by an implicit conversion from ReachingDefinitionsAnalysis to ArrowAssoc[ReachingDefinitionsAnalysis] performed by method any2ArrowAssoc in scala.Predef.
   Definition Classes
     ArrowAssoc
   Annotations
     @inline()

6. #### final def ==(arg0: AnyRef): Boolean

   Definition Classes
     AnyRef

7. #### final def ==(arg0: Any): Boolean

   Definition Classes
     Any

8. #### final def asInstanceOf[T0]: T0

   Definition Classes
     Any

9. #### def backwardAnalysis(f: (P, Elem) ⇒ Elem): Unit

   .

   ...

   f

     ...

   Definition Classes
     DataFlowAnalysis

10. #### def clone(): AnyRef

    Attributes
      protected[java.lang]
    Definition Classes
      AnyRef
    Annotations
      @throws( ... )

11. #### val drops: Map[Global.icodes.BasicBlock, Int]

12. #### def ensuring(cond: (ReachingDefinitionsAnalysis) ⇒ Boolean, msg: ⇒ Any): ReachingDefinitionsAnalysis

    Implicit information
      This member is added by an implicit conversion from ReachingDefinitionsAnalysis to Ensuring[ReachingDefinitionsAnalysis] performed by method any2Ensuring in scala.Predef.
    Definition Classes
      Ensuring

13. #### def ensuring(cond: (ReachingDefinitionsAnalysis) ⇒ Boolean): ReachingDefinitionsAnalysis

    Implicit information
      This member is added by an implicit conversion from ReachingDefinitionsAnalysis to Ensuring[ReachingDefinitionsAnalysis] performed by method any2Ensuring in scala.Predef.
    Definition Classes
      Ensuring

14. #### def ensuring(cond: Boolean, msg: ⇒ Any): ReachingDefinitionsAnalysis

    Implicit information
      This member is added by an implicit conversion from ReachingDefinitionsAnalysis to Ensuring[ReachingDefinitionsAnalysis] performed by method any2Ensuring in scala.Predef.
    Definition Classes
      Ensuring

15. #### def ensuring(cond: Boolean): ReachingDefinitionsAnalysis

    Implicit information
      This member is added by an implicit conversion from ReachingDefinitionsAnalysis to Ensuring[ReachingDefinitionsAnalysis] performed by method any2Ensuring in scala.Predef.
    Definition Classes
      Ensuring

16. #### final def eq(arg0: AnyRef): Boolean

    Definition Classes
      AnyRef

17. #### def equals(arg0: Any): Boolean

    Definition Classes
      AnyRef → Any

18. #### def finalize(): Unit

    Attributes
      protected[java.lang]
    Definition Classes
      AnyRef
    Annotations
      @throws( classOf[java.lang.Throwable] )

19. #### def findDefs(bb: Global.icodes.BasicBlock, idx: Int, m: Int): List[(Global.icodes.BasicBlock, Int)]

    Return the definitions that produced the topmost 'm' elements on the stack, and that reach the instruction at index 'idx' in basic block 'bb'.

20. #### def findDefs(bb: Global.icodes.BasicBlock, idx: Int, m: Int, depth: Int): List[(Global.icodes.BasicBlock, Int)]

    Return the instructions that produced the 'm' elements on the stack, below given 'depth'.

    Return the instructions that produced the 'm' elements on the stack, below given 'depth'. for instance, findefs(bb, idx, 1, 1) returns the instructions that might have produced the value found below the topmost element of the stack.

21. #### def formatted(fmtstr: String): String

    Implicit information
      This member is added by an implicit conversion from ReachingDefinitionsAnalysis to StringFormat performed by method any2stringfmt in scala.Predef.
    Definition Classes
      StringFormat
    Annotations
      @inline()

22. #### def forwardAnalysis(f: (P, Elem) ⇒ Elem): Unit

    Implements forward dataflow analysis: the transfer function is applied when inputs to a Program point change, to obtain the new output value.

    Implements forward dataflow analysis: the transfer function is applied when inputs to a Program point change, to obtain the new output value.

    f

      the transfer function.

    Definition Classes
      DataFlowAnalysis

23. #### val gen: Map[Global.icodes.BasicBlock, ListSet[(Global.icodes.Local, Global.icodes.BasicBlock, Int)]]

24. #### def genAndKill(b: Global.icodes.BasicBlock): (ListSet[(Global.icodes.Local, Global.icodes.BasicBlock, Int)], ListSet[Global.icodes.Local])

25. #### final def getClass(): Class[_]

    Definition Classes
      AnyRef → Any

26. #### def hashCode(): Int

    Definition Classes
      AnyRef → Any

27. #### val in: Map[P, Elem]

    Definition Classes
      DataFlowAnalysis

28. #### def init(m: Global.icodes.IMethod): Unit

29. #### def init(f: ⇒ Unit): Unit

    Definition Classes
      DataFlowAnalysis

30. #### def interpret(b: Global.icodes.BasicBlock, idx: Int, in: Elem): Elem

    Return the reaching definitions corresponding to the point after idx.

31. #### final def isInstanceOf[T0]: Boolean

    Definition Classes
      Any

32. #### var iterations: Int

    the number of times we iterated before reaching a fixpoint.

    the number of times we iterated before reaching a fixpoint.

    Definition Classes
      DataFlowAnalysis

33. #### val kill: Map[Global.icodes.BasicBlock, ListSet[Global.icodes.Local]]

34. #### val lattice: rdefLattice.type

    Definition Classes
      ReachingDefinitionsAnalysis → DataFlowAnalysis

35. #### var method: Global.icodes.IMethod

36. #### final def ne(arg0: AnyRef): Boolean

    Definition Classes
      AnyRef

37. #### final def notify(): Unit

    Definition Classes
      AnyRef

38. #### final def notifyAll(): Unit

    Definition Classes
      AnyRef

39. #### val out: Map[P, Elem]

    Definition Classes
      DataFlowAnalysis

40. #### val outStack: Map[Global.icodes.BasicBlock, collection.immutable.List[ListSet[(Global.icodes.BasicBlock, Int)]]]

41. #### def reinit(f: ⇒ Unit): Unit

    Reinitialize, but keep the old solutions.

    Reinitialize, but keep the old solutions. Should be used when reanalyzing the same method, after some code transformation.

    Definition Classes
      DataFlowAnalysis

42. #### def run(): Unit

    Definition Classes
      ReachingDefinitionsAnalysis → DataFlowAnalysis

43. #### var stat: Boolean

    collect statistics?

    collect statistics?

    Definition Classes
      DataFlowAnalysis

44. #### final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
      AnyRef

45. #### def toString(): String

    Definition Classes
      ReachingDefinitionsAnalysis → AnyRef → Any

46. #### def updateReachingDefinition(b: Global.icodes.BasicBlock, idx: Int, rd: ListSet[(Global.icodes.Local, Global.icodes.BasicBlock, Int)]): ListSet[(Global.icodes.Local, Global.icodes.BasicBlock, Int)]

47. #### val visited: HashSet[P]

    Definition Classes
      DataFlowAnalysis

48. #### final def wait(): Unit

    Definition Classes
      AnyRef
    Annotations
      @throws( ... )

49. #### final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
      AnyRef
    Annotations
      @throws( ... )

50. #### final def wait(arg0: Long): Unit

    Definition Classes
      AnyRef
    Annotations
      @throws( ... )

51. #### val worklist: Set[P]

    Definition Classes
      DataFlowAnalysis

52. #### def →[B](y: B): (ReachingDefinitionsAnalysis, B)

    Implicit information
      This member is added by an implicit conversion from ReachingDefinitionsAnalysis to ArrowAssoc[ReachingDefinitionsAnalysis] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
      ArrowAssoc

### Shadowed Implicit Value Members

1. #### val self: Any

   Implicit information
     This member is added by an implicit conversion from ReachingDefinitionsAnalysis to StringAdd performed by method any2stringadd in scala.Predef.
   Shadowing
     This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
     To access this member you can use a type ascription:

         (reachingDefinitionsAnalysis: StringAdd).self

   Definition Classes
     StringAdd

2. #### val self: Any

   Implicit information
     This member is added by an implicit conversion from ReachingDefinitionsAnalysis to StringFormat performed by method any2stringfmt in scala.Predef.
   Shadowing
     This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
     To access this member you can use a type ascription:

         (reachingDefinitionsAnalysis: StringFormat).self

   Definition Classes
     StringFormat

### Deprecated Value Members

1. #### def x: ReachingDefinitionsAnalysis

   Implicit information
     This member is added by an implicit conversion from ReachingDefinitionsAnalysis to ArrowAssoc[ReachingDefinitionsAnalysis] performed by method any2ArrowAssoc in scala.Predef.
   Shadowing
     This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
     To access this member you can use a type ascription:

         (reachingDefinitionsAnalysis: ArrowAssoc[ReachingDefinitionsAnalysis]).x

   Definition Classes
     ArrowAssoc
   Annotations
     @deprecated
   Deprecated

     (Since version 2.10.0) Use `leftOfArrow`instead``

2. #### def x: ReachingDefinitionsAnalysis

   Implicit information
     This member is added by an implicit conversion from ReachingDefinitionsAnalysis to Ensuring[ReachingDefinitionsAnalysis] performed by method any2Ensuring in scala.Predef.
   Shadowing
     This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
     To access this member you can use a type ascription:

         (reachingDefinitionsAnalysis: Ensuring[ReachingDefinitionsAnalysis]).x

   Definition Classes
     Ensuring
   Annotations
     @deprecated
   Deprecated

     (Since version 2.10.0) Use `resultOfEnsuring`instead``

### Inherited from DataFlowAnalysis[rdefLattice.type]

### Inherited from AnyRef

### Inherited from Any

### Inherited by implicit conversion any2stringadd from ReachingDefinitionsAnalysis to StringAdd

### Inherited by implicit conversion any2stringfmt from ReachingDefinitionsAnalysis to StringFormat

### Inherited by implicit conversion any2ArrowAssoc from ReachingDefinitionsAnalysis to ArrowAssoc[ReachingDefinitionsAnalysis]

### Inherited by implicit conversion any2Ensuring from ReachingDefinitionsAnalysis to Ensuring[ReachingDefinitionsAnalysis]

### Ungrouped