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 TypeMethodDescriptionvoidcollectSourceIds(Collection<Integer> sink) voidcollectSourceIds(Collection<Integer> sink, Collection<Integer> exclusions) booleancontainsSourceId(int id) static VarSrcdup(int srcid) booleanintinthashCode()booleanbooleanisPair()special case of merge: 2 elementsbooleanisSlice()booleanspecial case of slice: [0, x)static VarSrcpair(int srcidLo, int srcidHi) static VarSrctoString()static VarSrctruncated(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
-