Package ghidra.program.model.correlate
Class InstructHash
java.lang.Object
ghidra.program.model.correlate.InstructHash
This class is the container for hashing information about a particular instruction, including all the
n-grams it is currently involved in within the HashStore.
-
Field Summary
Modifier and TypeFieldDescriptionprotected Block
protected int
protected Instruction
protected boolean
protected Hash[]
-
Constructor Summary
ConstructorDescriptionInstructHash
(Instruction inst, Block bl, int ind) Build an (unmatched) Instruction, associating it with its position in the basic block -
Method Summary
Modifier and TypeMethodDescriptionboolean
allUnknown
(int length) If the -length- instructions, starting with this, are all unmatched, return true;protected void
clearNGrams
(int sz) Clear out the n-gram array to an uninitialized listprotected void
Clear out structures associated with the main sortgetBlock()
-
Field Details
-
isMatched
protected boolean isMatched -
index
protected int index -
block
-
instruction
-
nGrams
-
hashEntries
-
-
Constructor Details
-
InstructHash
Build an (unmatched) Instruction, associating it with its position in the basic block- Parameters:
inst
- is the underlying instructionbl
- is the basic-blockind
- is the index within the block
-
-
Method Details
-
getBlock
- Returns:
- the containing basic block
-
allUnknown
public boolean allUnknown(int length) If the -length- instructions, starting with this, are all unmatched, return true;- Parameters:
length
- is number of instructions to check- Returns:
- true if all checked instructions are unmatched
-
clearSort
protected void clearSort()Clear out structures associated with the main sort -
clearNGrams
protected void clearNGrams(int sz) Clear out the n-gram array to an uninitialized list- Parameters:
sz
- is the size of the uninitialized list
-