public class LockableReferenceAnalysis extends BackwardFlowAnalysis<Unit,soot.jimple.toolkits.thread.synchronization.LocksetFlowInfo>
FlowAnalysis.Flow
filterUnitToAfterFlow, unitToAfterFlow
filterUnitToBeforeFlow, unitToBeforeFlow
Constructor and Description |
---|
LockableReferenceAnalysis(UnitGraph g) |
Modifier and Type | Method and Description |
---|---|
java.lang.Integer |
addFromSubanalysis(soot.jimple.toolkits.thread.synchronization.LocksetFlowInfo outInfo,
LockableReferenceAnalysis la,
Stmt stmt,
Value lock) |
EquivalentValue |
baseFor(Ref ref) |
protected void |
copy(soot.jimple.toolkits.thread.synchronization.LocksetFlowInfo sourceInfo,
soot.jimple.toolkits.thread.synchronization.LocksetFlowInfo destInfo)
Creates a copy of the
source flow object in dest . |
protected void |
flowThrough(soot.jimple.toolkits.thread.synchronization.LocksetFlowInfo inInfo,
Unit u,
soot.jimple.toolkits.thread.synchronization.LocksetFlowInfo outInfo)
Given the merge of the
out sets, compute the in
set for s (or in to out, depending on direction). |
java.util.List<EquivalentValue> |
getLocksetOf(CriticalSectionAwareSideEffectAnalysis tasea,
RWSet contributingRWSet,
soot.jimple.toolkits.thread.synchronization.CriticalSection tn) |
EquivalentValue |
indexFor(Ref ref) |
protected void |
merge(soot.jimple.toolkits.thread.synchronization.LocksetFlowInfo in1,
soot.jimple.toolkits.thread.synchronization.LocksetFlowInfo in2,
soot.jimple.toolkits.thread.synchronization.LocksetFlowInfo out)
Compute the merge of the
in1 and in2 sets, putting the result into out . |
protected soot.jimple.toolkits.thread.synchronization.LocksetFlowInfo |
newInitialFlow()
Returns the flow object corresponding to the initial values for
each graph node.
|
void |
printMsg(java.lang.String msg) |
doAnalysis, isForward
getFlow, getFlowAfter, getFlowBefore, omissible
entryInitialFlow, merge, mergeInto, treatTrapHandlersAsEntries
public LockableReferenceAnalysis(UnitGraph g)
public void printMsg(java.lang.String msg)
public java.util.List<EquivalentValue> getLocksetOf(CriticalSectionAwareSideEffectAnalysis tasea, RWSet contributingRWSet, soot.jimple.toolkits.thread.synchronization.CriticalSection tn)
public EquivalentValue baseFor(Ref ref)
public EquivalentValue indexFor(Ref ref)
protected void merge(soot.jimple.toolkits.thread.synchronization.LocksetFlowInfo in1, soot.jimple.toolkits.thread.synchronization.LocksetFlowInfo in2, soot.jimple.toolkits.thread.synchronization.LocksetFlowInfo out)
AbstractFlowAnalysis
in1
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 AbstractFlowAnalysis<Unit,soot.jimple.toolkits.thread.synchronization.LocksetFlowInfo>
public java.lang.Integer addFromSubanalysis(soot.jimple.toolkits.thread.synchronization.LocksetFlowInfo outInfo, LockableReferenceAnalysis la, Stmt stmt, Value lock)
protected void flowThrough(soot.jimple.toolkits.thread.synchronization.LocksetFlowInfo inInfo, Unit u, soot.jimple.toolkits.thread.synchronization.LocksetFlowInfo outInfo)
FlowAnalysis
out
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 FlowAnalysis<Unit,soot.jimple.toolkits.thread.synchronization.LocksetFlowInfo>
inInfo
- the input flowu
- the current nodeoutInfo
- the returned flowprotected void copy(soot.jimple.toolkits.thread.synchronization.LocksetFlowInfo sourceInfo, soot.jimple.toolkits.thread.synchronization.LocksetFlowInfo destInfo)
AbstractFlowAnalysis
source
flow object in dest
.copy
in class AbstractFlowAnalysis<Unit,soot.jimple.toolkits.thread.synchronization.LocksetFlowInfo>
protected soot.jimple.toolkits.thread.synchronization.LocksetFlowInfo newInitialFlow()
AbstractFlowAnalysis
newInitialFlow
in class AbstractFlowAnalysis<Unit,soot.jimple.toolkits.thread.synchronization.LocksetFlowInfo>