Class KDepthToken
- java.lang.Object
-
- it.unive.lisa.interprocedural.context.KDepthToken
-
- All Implemented Interfaces:
ContextSensitivityToken,it.unive.lisa.interprocedural.ScopeId
public class KDepthToken extends java.lang.Object implements ContextSensitivityToken
A context sensitive token representing an entire call chain up to a fixed lengthk, specified in the singleton creation (getSingleton(int)).
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)static KDepthTokengetSingleton(int k)Return an empty token.inthashCode()booleanisStartingId()ContextSensitivityTokenpush(it.unive.lisa.program.cfg.statement.call.CFGCall c)ContextSensitivityTokenstartingId()java.lang.StringtoString()
-
-
-
Method Detail
-
getSingleton
public static KDepthToken getSingleton(int k)
Return an empty token.- Parameters:
k- the maximum depth- Returns:
- an empty token
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
startingId
public ContextSensitivityToken startingId()
- Specified by:
startingIdin interfaceContextSensitivityToken- Specified by:
startingIdin interfaceit.unive.lisa.interprocedural.ScopeId
-
isStartingId
public boolean isStartingId()
- Specified by:
isStartingIdin interfaceit.unive.lisa.interprocedural.ScopeId
-
push
public ContextSensitivityToken push(it.unive.lisa.program.cfg.statement.call.CFGCall c)
- Specified by:
pushin interfaceContextSensitivityToken- Specified by:
pushin interfaceit.unive.lisa.interprocedural.ScopeId
-
-