|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--envgen.analysis.stat.StaticAnalysis
|
+--envgen.analysis.stat.PointsToAnalysisMain
Walks over methods and performs points-to analysis for each unvisited method.
| Field Summary | |
(package private) AnalysisResults |
analysisResults
|
(package private) int |
debug
Set to print debugging messages. |
| Fields inherited from class envgen.analysis.stat.StaticAnalysis |
callGraph, chainLength, dump, packageAnalysis, packageName, unitAnalysis, unitStaticFields, unitTable |
| Constructor Summary | |
PointsToAnalysisMain(java.util.HashMap unitTable,
EnvCallGraph callGraph)
|
|
| Method Summary | |
Assumptions |
acquireAssumptions()
|
void |
analyzeAliases(soot.SootMethod externalMethod,
java.util.HashSet visited)
Interprocedural, flow-sensitive, parameterized alias analysis. |
MultiSet |
getAllPossibleReturns(soot.SootMethod sm)
Builds a table assummming that sm can return
any location of our interest that matches the return type
of the method. |
AnalysisResults |
getPointsToResults()
|
MultiSet |
getReturnLocations(soot.SootMethod externalMethod,
soot.toolkits.graph.CompleteUnitGraph cfg,
PointsToAnalysis alias)
Builds a list of sets of return values for externalMethod. |
void |
performPointsToAnalysis(java.util.List markedMethods)
For each of the methods in the environment records a set of unit data side-effects. |
| Methods inherited from class envgen.analysis.stat.StaticAnalysis |
addField, getCallGraph, getClass, getExtendedLoc, getExtendedLoc, getMappedArg, getMappedLocation, getMappedLocs, getMappedLocs, getMappedPathParam, getMappedPathParam, getMappedPathParam, getMappedReturnLocs, getMappedTopParam, getMappedVals, getStaticFields, getValues, isSingularLoc, isSubType, isUnitSuperType, processRefOrScalarType, processRefType |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
AnalysisResults analysisResults
int debug
| Constructor Detail |
public PointsToAnalysisMain(java.util.HashMap unitTable,
EnvCallGraph callGraph)
| Method Detail |
public Assumptions acquireAssumptions()
acquireAssumptions in interface IApproachpublic void performPointsToAnalysis(java.util.List markedMethods)
public void analyzeAliases(soot.SootMethod externalMethod,
java.util.HashSet visited)
public MultiSet getAllPossibleReturns(soot.SootMethod sm)
sm can return
any location of our interest that matches the return type
of the method.
Is used to resolve cycles in the alias analysis.
public MultiSet getReturnLocations(soot.SootMethod externalMethod,
soot.toolkits.graph.CompleteUnitGraph cfg,
PointsToAnalysis alias)
public AnalysisResults getPointsToResults()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||