Package ghidra.pcode.emu.jit.analysis
Record Class JitControlFlowModel.BlockFlow
java.lang.Object
java.lang.Record
ghidra.pcode.emu.jit.analysis.JitControlFlowModel.BlockFlow
- Record Components:
from
- the block from which execution flows. In the case of a non-fall-through branch, the block should end with the branching p-code op. For conditional fall-through, it should end with thePcodeOp.CBRANCH
op. For unconditional fall-through, it could end with any op having fall through.to
- the block to which execution flows. The block must start with thetarget op
of the branch.branch
- the branch effecting the flow of execution
- Enclosing class:
JitControlFlowModel
public static record JitControlFlowModel.BlockFlow(JitControlFlowModel.JitBlock from, JitControlFlowModel.JitBlock to, JitPassage.IntBranch branch)
extends Record
A flow from one block to another
This is just a wrapper around an JitPassage.IntBranch
that allows us to quickly identify what
two blocks it connects. Note that to connect two blocks in the passage, the branch must by
definition be an JitPassage.IntBranch
.
If this flow represents entry into the passage, then from()
and branch()
may be null
-
Constructor Summary
ConstructorsConstructorDescriptionBlockFlow
(JitControlFlowModel.JitBlock from, JitControlFlowModel.JitBlock to, JitPassage.IntBranch branch) Creates an instance of aBlockFlow
record class. -
Method Summary
Modifier and TypeMethodDescriptionbranch()
Returns the value of thebranch
record component.Create an entry flow to the given blockfinal boolean
Indicates whether some other object is "equal to" this one.from()
Returns the value of thefrom
record component.final int
hashCode()
Returns a hash code value for this object.to()
Returns the value of theto
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
BlockFlow
public BlockFlow(JitControlFlowModel.JitBlock from, JitControlFlowModel.JitBlock to, JitPassage.IntBranch branch) Creates an instance of aBlockFlow
record class.
-
-
Method Details
-
entry
Create an entry flow to the given block- Parameters:
to
- the block to which execution flows- Returns:
- the flow
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
from
Returns the value of thefrom
record component.- Returns:
- the value of the
from
record component
-
to
Returns the value of theto
record component.- Returns:
- the value of the
to
record component
-
branch
Returns the value of thebranch
record component.- Returns:
- the value of the
branch
record component
-