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.CBRANCHop. 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 opof 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 aBlockFlowrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbranch()Returns the value of thebranchrecord component.Create an entry flow to the given blockfinal booleanIndicates whether some other object is "equal to" this one.from()Returns the value of thefromrecord component.final inthashCode()Returns a hash code value for this object.to()Returns the value of thetorecord component.final StringtoString()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 aBlockFlowrecord 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 thefromrecord component.- Returns:
- the value of the
fromrecord component
-
to
Returns the value of thetorecord component.- Returns:
- the value of the
torecord component
-
branch
Returns the value of thebranchrecord component.- Returns:
- the value of the
branchrecord component
-