|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object joeq.Compiler.Analysis.Primitive.PrimitiveMethodSummary
public class PrimitiveMethodSummary
MethodSummary
Nested Class Summary | |
---|---|
static class |
PrimitiveMethodSummary.AccessPath
Encodes an access path. |
static class |
PrimitiveMethodSummary.BuildMethodSummary
Visitor class to build an intramethod summary. |
static class |
PrimitiveMethodSummary.CallSite
Represents a particular call site in a method. |
static class |
PrimitiveMethodSummary.CheckCastNode
A CheckCastNode refers to the result of a CheckCast instruction |
static class |
PrimitiveMethodSummary.ConcreteObjectNode
A ConcreteObjectNode refers to an object that we discovered through reflection. |
static class |
PrimitiveMethodSummary.ConcreteTypeNode
A ConcreteTypeNode refers to an object with a concrete type. |
static class |
PrimitiveMethodSummary.FakeParamNode
|
static class |
PrimitiveMethodSummary.FieldNode
A FieldNode represents the result of a 'load' instruction. |
static class |
PrimitiveMethodSummary.GlobalNode
A GlobalNode stores references to the static variables. |
static interface |
PrimitiveMethodSummary.HeapObject
|
static class |
PrimitiveMethodSummary.InsideEdgeNavigator
Represents a field edge between two nodes. |
static class |
PrimitiveMethodSummary.MethodSummaryBuilder
Helper class to output method summary in dot graph format. |
static class |
PrimitiveMethodSummary.Node
|
static class |
PrimitiveMethodSummary.NodeSet
|
static class |
PrimitiveMethodSummary.OperandToNodeMap
|
static class |
PrimitiveMethodSummary.OutsideNode
An outside node is some node that can be mapped to other nodes. |
static class |
PrimitiveMethodSummary.ParamNode
A ParamNode represents an incoming parameter. |
static class |
PrimitiveMethodSummary.PassedParameter
Represents a particular parameter passed to a particular method call. |
static class |
PrimitiveMethodSummary.PlaceholderNode
A PlaceholderNode is used to signify an object that is out-of-scope. |
static class |
PrimitiveMethodSummary.ReturnedNode
A ReturnedNode represents a return value or thrown exception from a method call. |
static class |
PrimitiveMethodSummary.ReturnValueNode
A ReturnValueNode represents the return value of a method call. |
static class |
PrimitiveMethodSummary.State
Records the state of the intramethod analysis at some point in the method. |
static class |
PrimitiveMethodSummary.ThrownExceptionNode
A ThrownExceptionNode represents the thrown exception of a method call. |
static class |
PrimitiveMethodSummary.UnknownTypeNode
A UnknownTypeNode refers to an object with an unknown type. |
static interface |
PrimitiveMethodSummary.Variable
|
Field Summary | |
---|---|
static boolean |
CACHE_BUILDER
|
static HashMap |
clone_cache
Cache of cloned method summaries. |
static boolean |
DETERMINISTIC
|
static boolean |
DUMP_DOTGRAPH
|
static boolean |
IGNORE_INSTANCE_FIELDS
|
static boolean |
IGNORE_STATIC_FIELDS
|
static PrintStream |
out
|
static boolean |
SPLIT_THREADS
|
static boolean |
SSA
|
static Set |
ssaEntered
|
static Map |
stringNodes2Values
|
static HashMap |
summary_cache
Holds the cache of method summary graphs. |
static boolean |
TRACE_DOT
|
static boolean |
TRACE_INST
|
static boolean |
TRACE_INTER
|
static boolean |
TRACE_INTRA
|
static boolean |
TRACE_REGISTERS
|
static boolean |
UNIFY_ACCESS_PATHS
|
static boolean |
USE_IDENTITY_HASHCODE
|
static boolean |
USE_PARAMETER_MAP
|
static boolean |
VERIFY_ASSERTIONS
|
Constructor Summary | |
---|---|
PrimitiveMethodSummary(PrimitiveMethodSummary.BuildMethodSummary builder,
jq_Method method,
PrimitiveMethodSummary.ParamNode[] param_nodes,
PrimitiveMethodSummary.GlobalNode my_global,
Set methodCalls,
Map callToRVN,
Map callToTEN,
Map castMap,
Set castPredecessors,
Set returned,
Set thrown,
Set passedAsParameters,
Map sync_ops,
Collection string_nodes)
|
|
PrimitiveMethodSummary(PrimitiveMethodSummary.ParamNode[] param_nodes)
|
Method Summary | |
---|---|
static boolean |
addToMultiMap(HashMap mm,
Object from,
Object to)
Utility function to add to a multi map. |
static boolean |
addToMultiMap(HashMap mm,
Object from,
Set to)
Utility function to add to a multi map. |
static void |
clearSummaryCache()
Clear the method summary graph. |
PrimitiveMethodSummary |
copy()
Return a deep copy of this analysis summary. |
void |
dotGraph(BufferedWriter out)
Dumps this method summary as a dot graph. |
static PrimitiveMethodSummary |
fakeCloneMethodSummary(jq_FakeInstanceMethod method)
fake a method summary that simulates the effect of the inherited default clone(). |
static PrimitiveMethodSummary |
fakeMethodSummary(jq_Method method)
|
Set |
getCalls()
Get the set of method calls made by this method. |
Map |
getCastMap()
Get the map of casts. |
PrimitiveMethodSummary.GlobalNode |
getGlobal()
Get the global node for this method. |
jq_Method |
getMethod()
|
Set |
getNodesThatCall(PrimitiveMethodSummary.PassedParameter pp)
Return the set of nodes that are passed as the given parameter. |
void |
getNodesThatCall(PrimitiveMethodSummary.PassedParameter pp,
Set result)
Add all nodes that are passed as the given passed parameter to the given result set. |
Set |
getNodesThatCall(ProgramLocation mc,
int k)
|
int |
getNumOfParams()
Get the number of parameters passed into this method. |
PrimitiveMethodSummary.ParamNode |
getParamNode(int i)
Get the ith parameter node. |
Collection |
getRegisterAtLocation(BasicBlock bb,
Quad q,
RegisterFactory.Register r)
|
Set |
getReturned()
Get the set of returned nodes. |
PrimitiveMethodSummary.ReturnValueNode |
getRVN(ProgramLocation mc)
Get the return value node corresponding to the given method call. |
static PrimitiveMethodSummary |
getSummary(ControlFlowGraph cfg)
Get the method summary for the given CFG. |
static PrimitiveMethodSummary |
getSummary(ControlFlowGraph cfg,
PrimitiveMethodSummary.CallSite cs)
Get the (context-sensitive) method summary for the given control flow graph when called from the given call site. |
static PrimitiveMethodSummary |
getSummary(jq_Method m)
Get the method summary for the given method. |
Collection |
getSyncedVars()
|
PrimitiveMethodSummary.ThrownExceptionNode |
getTEN(ProgramLocation mc)
Get the thrown exception node corresponding to the given method call. |
Set |
getThrown()
Get the set of thrown nodes. |
int |
hashCode()
|
static void |
instantiate(PrimitiveMethodSummary caller,
ProgramLocation mc,
PrimitiveMethodSummary callee,
boolean removeCall)
Instantiate a copy of the callee summary into the caller. |
static boolean |
isNullConstant(PrimitiveMethodSummary.Node node)
|
static void |
main(String[] args)
|
void |
mergeGlobal()
Merge the global node for this method summary with the main global node. |
Iterator |
nodeIterator()
Returns an iteration of all nodes in this summary. |
String |
toString()
Return a string representation of this summary. |
void |
unifyAccessPathEdges(PrimitiveMethodSummary.Node n)
Unify similar access path edges from the given node. |
void |
unifyAccessPaths(Set roots)
Unify similar access paths from the given roots. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static PrintStream out
public static boolean TRACE_INTRA
public static boolean TRACE_INTER
public static boolean TRACE_INST
public static boolean TRACE_DOT
public static final boolean TRACE_REGISTERS
public static final boolean IGNORE_INSTANCE_FIELDS
public static final boolean IGNORE_STATIC_FIELDS
public static final boolean VERIFY_ASSERTIONS
public static boolean SSA
public static final boolean USE_IDENTITY_HASHCODE
public static final boolean DETERMINISTIC
public static final boolean SPLIT_THREADS
public static Set ssaEntered
public static Map stringNodes2Values
public static HashMap summary_cache
public static HashMap clone_cache
public static final boolean USE_PARAMETER_MAP
public static boolean CACHE_BUILDER
public static final boolean UNIFY_ACCESS_PATHS
public static final boolean DUMP_DOTGRAPH
Constructor Detail |
---|
public PrimitiveMethodSummary(PrimitiveMethodSummary.ParamNode[] param_nodes)
public PrimitiveMethodSummary(PrimitiveMethodSummary.BuildMethodSummary builder, jq_Method method, PrimitiveMethodSummary.ParamNode[] param_nodes, PrimitiveMethodSummary.GlobalNode my_global, Set methodCalls, Map callToRVN, Map callToTEN, Map castMap, Set castPredecessors, Set returned, Set thrown, Set passedAsParameters, Map sync_ops, Collection string_nodes)
Method Detail |
---|
public static PrimitiveMethodSummary getSummary(ControlFlowGraph cfg)
cfg
-
public static PrimitiveMethodSummary getSummary(jq_Method m)
public static void clearSummaryCache()
public static PrimitiveMethodSummary getSummary(ControlFlowGraph cfg, PrimitiveMethodSummary.CallSite cs)
cfg
- cs
-
public PrimitiveMethodSummary.GlobalNode getGlobal()
public PrimitiveMethodSummary.ParamNode getParamNode(int i)
public int getNumOfParams()
public Set getCalls()
public void getNodesThatCall(PrimitiveMethodSummary.PassedParameter pp, Set result)
public Set getNodesThatCall(ProgramLocation mc, int k)
public Set getNodesThatCall(PrimitiveMethodSummary.PassedParameter pp)
public void mergeGlobal()
public static boolean addToMultiMap(HashMap mm, Object from, Object to)
public static boolean addToMultiMap(HashMap mm, Object from, Set to)
public PrimitiveMethodSummary copy()
public void unifyAccessPaths(Set roots)
public void unifyAccessPathEdges(PrimitiveMethodSummary.Node n)
public static void instantiate(PrimitiveMethodSummary caller, ProgramLocation mc, PrimitiveMethodSummary callee, boolean removeCall)
public jq_Method getMethod()
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
public Iterator nodeIterator()
public Set getReturned()
public Set getThrown()
public Map getCastMap()
public PrimitiveMethodSummary.ReturnValueNode getRVN(ProgramLocation mc)
public PrimitiveMethodSummary.ThrownExceptionNode getTEN(ProgramLocation mc)
public Collection getSyncedVars()
public void dotGraph(BufferedWriter out) throws IOException
IOException
public static void main(String[] args) throws IOException
IOException
public Collection getRegisterAtLocation(BasicBlock bb, Quad q, RegisterFactory.Register r)
public static PrimitiveMethodSummary fakeMethodSummary(jq_Method method)
public static PrimitiveMethodSummary fakeCloneMethodSummary(jq_FakeInstanceMethod method)
public static boolean isNullConstant(PrimitiveMethodSummary.Node node)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |