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 the PcodeOp.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 the target 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 Details

  • Method Details

    • entry

      Create an entry flow to the given block
      Parameters:
      to - the block to which execution flows
      Returns:
      the flow
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • from

      Returns the value of the from record component.
      Returns:
      the value of the from record component
    • to

      Returns the value of the to record component.
      Returns:
      the value of the to record component
    • branch

      public JitPassage.IntBranch branch()
      Returns the value of the branch record component.
      Returns:
      the value of the branch record component