public class LocalMustNotAliasAnalysis extends ForwardFlowAnalysis
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Set<Local> |
locals |
protected static java.lang.Object |
UNKNOWN |
filterUnitToAfterFlow, unitToAfterFlowfilterUnitToBeforeFlow, graph, unitToBeforeFlow| Constructor and Description |
|---|
LocalMustNotAliasAnalysis(UnitGraph g) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
copy(java.lang.Object source,
java.lang.Object dest)
Creates a copy of the
source flow object in dest. |
protected java.lang.Object |
entryInitialFlow()
Returns the initial flow value for entry/exit graph nodes.
|
protected void |
flowThrough(java.lang.Object inValue,
java.lang.Object unit,
java.lang.Object outValue)
Given the merge of the
out sets, compute the in set for s (or in to out, depending on direction). |
boolean |
hasInfoOn(Local l,
Stmt s)
Returns true if this analysis has any information about local l
at statement s (i.e.
|
protected void |
merge(java.lang.Object in1,
java.lang.Object in2,
java.lang.Object o)
Compute the merge of the
in1 and in2 sets, putting the result into out. |
protected java.lang.Object |
newInitialFlow()
Returns the flow object corresponding to the initial values for
each graph node.
|
boolean |
notMayAlias(Local l1,
Stmt s1,
Local l2,
Stmt s2) |
constructWorklist, doAnalysis, isForwardconstructOrderer, getFlowAftergetFlowBefore, merge, mergeInto, treatTrapHandlersAsEntriesprotected static final java.lang.Object UNKNOWN
protected java.util.Set<Local> locals
public LocalMustNotAliasAnalysis(UnitGraph g)
protected void merge(java.lang.Object in1,
java.lang.Object in2,
java.lang.Object o)
AbstractFlowAnalysisin1 and in2 sets, putting the result into out.
The behavior of this function depends on the implementation ( it may be necessary to check whether
in1 and in2 are equal or aliased ).
Used by the doAnalysis method.merge in class AbstractFlowAnalysisprotected void flowThrough(java.lang.Object inValue,
java.lang.Object unit,
java.lang.Object outValue)
FlowAnalysisout sets, compute the in set for s (or in to out, depending on direction).
This function often causes confusion, because the same interface
is used for both forward and backward flow analyses. The first
parameter is always the argument to the flow function (i.e. it
is the "in" set in a forward analysis and the "out" set in a
backward analysis), and the third parameter is always the result
of the flow function (i.e. it is the "out" set in a forward
analysis and the "in" set in a backward analysis).flowThrough in class FlowAnalysisprotected void copy(java.lang.Object source,
java.lang.Object dest)
AbstractFlowAnalysissource flow object in dest.copy in class AbstractFlowAnalysisprotected java.lang.Object entryInitialFlow()
AbstractFlowAnalysisentryInitialFlow in class AbstractFlowAnalysisprotected java.lang.Object newInitialFlow()
AbstractFlowAnalysisnewInitialFlow in class AbstractFlowAnalysispublic boolean hasInfoOn(Local l, Stmt s)
UNKNOWN).
In particular, it is safe to pass in locals/statements that are not
even part of the right method. In those cases false
will be returned.
Permits s to be null, in which case false will be returned.Copyright © 2012-2019 RoboVM AB. All Rights Reserved.