Class VarSrc
java.lang.Object
com.pnfsoftware.jeb.core.units.code.asm.decompiler.ir.VarSrc
Variable-source object, that is, specify the variable(s) behind a variable-copy. A copy may be a
duplicate, a pair, or a slice.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoid
collectSourceIds
(Collection<Integer> sink) void
collectSourceIds
(Collection<Integer> sink, Collection<Integer> exclusions) boolean
containsSourceId
(int id) static VarSrc
dup
(int srcid) boolean
int
int
hashCode()
boolean
boolean
isPair()
special case of merge: 2 elementsboolean
isSlice()
boolean
special case of slice: [0, x)static VarSrc
pair
(int srcidLo, int srcidHi) static VarSrc
toString()
static VarSrc
truncated
(int srcid, int bitplit)
-
Method Details
-
toString
-
hashCode
public int hashCode() -
equals
-
dup
-
pair
-
slice
-
truncated
-
getSource
-
isDuplicate
public boolean isDuplicate() -
getAsDuplicate
public int getAsDuplicate() -
isPair
public boolean isPair()special case of merge: 2 elements -
getAsPair
- Returns:
- a tuple (src_id_lo, src_id_hi)
-
isSlice
public boolean isSlice() -
getAsSlice
- Returns:
- a tuple (src_id, (bitbegin, bitend))
-
isTruncated
public boolean isTruncated()special case of slice: [0, x) -
getAsTruncated
- Returns:
- a tuple (src_id, bitsize)
-
containsSourceId
public boolean containsSourceId(int id) -
collectSourceIds
-
getSourceIds
-
collectSourceIds
- Parameters:
sink
-exclusions
- optional
-