Package ghidra.program.util
Class VariableStorageConflicts
java.lang.Object
ghidra.program.util.VariableStorageConflicts
-
Constructor Summary
ConstructorDescriptionVariableStorageConflicts
(List<Variable> variablesList1, List<Variable> variablesList2, boolean ignoreParamToParamConflicts, TaskMonitor monitor) Construct a VariableStorageConflicts object for the variables contained within two functions. -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
boolean
isConflicted
(Variable var1, Variable var2) Check to see if either var1 or var2 is contained within the conflicted/overlapping set of variables.
-
Constructor Details
-
VariableStorageConflicts
public VariableStorageConflicts(List<Variable> variablesList1, List<Variable> variablesList2, boolean ignoreParamToParamConflicts, TaskMonitor monitor) throws CancelledException Construct a VariableStorageConflicts object for the variables contained within two functions.- Parameters:
variablesList1
-variablesList2
-ignoreParamToParamConflicts
- if true param-to-param overlaps will be ignored unless a param-to-local overlap occurs in which case all params will be pulled in to the overlap. If true, it is assumed that the current overlap iteration was initiated by a parameter overlap check.monitor
-- Throws:
CancelledException
-
-
Method Details
-
getOverlappingVariables
-
hasOverlapConflict
public boolean hasOverlapConflict() -
hasParameterConflict
public boolean hasParameterConflict() -
isConflicted
Check to see if either var1 or var2 is contained within the conflicted/overlapping set of variables. In general, one of the specified variables should be null.- Parameters:
var1
- a variable which corresponds to function1 at time of construction or nullvar2
- a variable which corresponds to function2 at time of construction or null- Returns:
- true if either variable is contained within the conflicted/overlapping set of variables.
-