Package edu.umd.cs.findbugs.ba.vna
Class MergeTree
java.lang.Object
edu.umd.cs.findbugs.ba.vna.MergeTree
Data structure to keep track of which input ValueNumbers were combined to
produce which other output ValueNumbers.
- Author:
- David Hovemeyer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetInputSet
(ValueNumber output) Get the set of input ValueNumbers which directly contributed to the given output ValueNumber.getTransitiveInputSet
(ValueNumber output) Get the transitive set of input ValueNumbers which contributed (directly or indirectly) to the given output ValueNumber.getTransitiveOutputSet
(int input) void
mapInputToOutput
(ValueNumber input, ValueNumber output) Map an input ValueNumber to an output ValueNumber.
-
Field Details
-
DEBUG
public static final boolean DEBUG
-
-
Constructor Details
-
MergeTree
Constructor.- Parameters:
factory
- the ValueNumberFactory
-
-
Method Details
-
mapInputToOutput
Map an input ValueNumber to an output ValueNumber.- Parameters:
input
- the input ValueNumberoutput
- the output ValueNumber
-
getInputSet
Get the set of input ValueNumbers which directly contributed to the given output ValueNumber.- Parameters:
output
- the output ValueNumber- Returns:
- the set of direct input ValueNumbers
-
getTransitiveInputSet
Get the transitive set of input ValueNumbers which contributed (directly or indirectly) to the given output ValueNumber.- Parameters:
output
- the output ValueNumber- Returns:
- the transitive set of input ValueNumbers
-
getTransitiveOutputSet
-