public class ModRef extends Object
| Modifier and Type | Class and Description |
|---|---|
protected static class |
ModRef.ModVisitor<H extends ExtendedHeapModel> |
protected static class |
ModRef.RefVisitor<H extends ExtendedHeapModel> |
| Modifier | Constructor and Description |
|---|---|
protected |
ModRef() |
| Modifier and Type | Method and Description |
|---|---|
Map<CGNode,com.ibm.wala.util.intset.OrdinalSet<PointerKey>> |
computeMod(CallGraph cg,
PointerAnalysis<InstanceKey> pa)
For each call graph node, what heap locations (as determined by a heap model) may it write, including its callees transitively
|
Map<CGNode,com.ibm.wala.util.intset.OrdinalSet<PointerKey>> |
computeMod(CallGraph cg,
PointerAnalysis<InstanceKey> pa,
HeapExclusions heapExclude)
For each call graph node, what heap locations (as determined by a heap model) may it write, including its callees transitively
|
Map<CGNode,com.ibm.wala.util.intset.OrdinalSet<PointerKey>> |
computeRef(CallGraph cg,
PointerAnalysis<InstanceKey> pa)
For each call graph node, what heap locations (as determined by a heap model) may it read, including its callees transitively
|
Map<CGNode,com.ibm.wala.util.intset.OrdinalSet<PointerKey>> |
computeRef(CallGraph cg,
PointerAnalysis<InstanceKey> pa,
HeapExclusions heapExclude)
For each call graph node, what heap locations (as determined by a heap model) may it read, including its callees transitively
|
Set<PointerKey> |
getMod(CGNode n,
ExtendedHeapModel h,
PointerAnalysis<InstanceKey> pa,
SSAInstruction s,
HeapExclusions hexcl)
Compute the set of
PointerKeys that represent pointers that instruction s may write to. |
Set<PointerKey> |
getMod(CGNode n,
ExtendedHeapModel h,
PointerAnalysis<InstanceKey> pa,
SSAInstruction s,
HeapExclusions hexcl,
boolean ignoreAllocHeapDefs)
Compute the set of
PointerKeys that represent pointers that instruction s may write to. |
Set<PointerKey> |
getRef(CGNode n,
ExtendedHeapModel h,
PointerAnalysis<InstanceKey> pa,
SSAInstruction s,
HeapExclusions hexcl)
Compute the set of
PointerKeys that represent pointers that instruction s may read. |
static ModRef |
make() |
ExtendedHeapModel |
makeHeapModel(PointerAnalysis<InstanceKey> pa) |
protected ModRef.ModVisitor |
makeModVisitor(CGNode n,
Collection<PointerKey> result,
PointerAnalysis<InstanceKey> pa,
ExtendedHeapModel h) |
protected ModRef.ModVisitor |
makeModVisitor(CGNode n,
Collection<PointerKey> result,
PointerAnalysis<InstanceKey> pa,
ExtendedHeapModel h,
boolean ignoreAllocHeapDefs) |
protected ModRef.RefVisitor |
makeRefVisitor(CGNode n,
Collection<PointerKey> result,
PointerAnalysis<InstanceKey> pa,
ExtendedHeapModel h) |
public static ModRef make()
public Map<CGNode,com.ibm.wala.util.intset.OrdinalSet<PointerKey>> computeMod(CallGraph cg, PointerAnalysis<InstanceKey> pa, HeapExclusions heapExclude)
IllegalArgumentException - if cg is nullpublic Map<CGNode,com.ibm.wala.util.intset.OrdinalSet<PointerKey>> computeRef(CallGraph cg, PointerAnalysis<InstanceKey> pa, HeapExclusions heapExclude)
IllegalArgumentException - if cg is nullpublic Map<CGNode,com.ibm.wala.util.intset.OrdinalSet<PointerKey>> computeMod(CallGraph cg, PointerAnalysis<InstanceKey> pa)
public Map<CGNode,com.ibm.wala.util.intset.OrdinalSet<PointerKey>> computeRef(CallGraph cg, PointerAnalysis<InstanceKey> pa)
public ExtendedHeapModel makeHeapModel(PointerAnalysis<InstanceKey> pa)
protected ModRef.ModVisitor makeModVisitor(CGNode n, Collection<PointerKey> result, PointerAnalysis<InstanceKey> pa, ExtendedHeapModel h)
protected ModRef.ModVisitor makeModVisitor(CGNode n, Collection<PointerKey> result, PointerAnalysis<InstanceKey> pa, ExtendedHeapModel h, boolean ignoreAllocHeapDefs)
public Set<PointerKey> getMod(CGNode n, ExtendedHeapModel h, PointerAnalysis<InstanceKey> pa, SSAInstruction s, HeapExclusions hexcl)
PointerKeys that represent pointers that instruction s may write to.public Set<PointerKey> getMod(CGNode n, ExtendedHeapModel h, PointerAnalysis<InstanceKey> pa, SSAInstruction s, HeapExclusions hexcl, boolean ignoreAllocHeapDefs)
PointerKeys that represent pointers that instruction s may write to.protected ModRef.RefVisitor makeRefVisitor(CGNode n, Collection<PointerKey> result, PointerAnalysis<InstanceKey> pa, ExtendedHeapModel h)
public Set<PointerKey> getRef(CGNode n, ExtendedHeapModel h, PointerAnalysis<InstanceKey> pa, SSAInstruction s, HeapExclusions hexcl)
PointerKeys that represent pointers that instruction s may read.Copyright © 2015. All rights reserved.