Package ghidra.program.model.pcode
Class BlockCondition
java.lang.Object
ghidra.program.model.pcode.PcodeBlock
ghidra.program.model.pcode.BlockGraph
ghidra.program.model.pcode.BlockCondition
Block representing and '&&' or '||' control flow path within a conditional expression
possible multiple incoming edges
2 outgoing edges, one for true control flow, one for false control flow
one "initial" condition block, with 2 outgoing edges
one "secondary" condition block, with 2 outgoing edges, exactly 1 incoming edge from "initial"
-
Nested Class Summary
Nested classes/interfaces inherited from class ghidra.program.model.pcode.PcodeBlock
PcodeBlock.BlockEdge
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
decodeHeader
(Decoder decoder) protected void
encodeHeader
(Encoder encoder) Encode basic attributes to stream.int
Methods inherited from class ghidra.program.model.pcode.BlockGraph
addBlock, addEdge, decode, decodeBody, encodeBody, getBlock, getSize, setIndices, transferObjectRef
Methods inherited from class ghidra.program.model.pcode.PcodeBlock
addInEdge, calcDepth, decode, decodeEdges, decodeNextInEdge, decodeNextInEdge, encode, encodeEdges, getFalseOut, getFrontLeaf, getIn, getIndex, getInRevIndex, getInSize, getOut, getOutRevIndex, getOutSize, getParent, getStart, getStop, getTrueOut, getType, nameToType, setIndex, toString, typeToName
-
Constructor Details
-
BlockCondition
public BlockCondition()
-
-
Method Details
-
getOpcode
public int getOpcode() -
encodeHeader
Description copied from class:PcodeBlock
Encode basic attributes to stream. Assume this block's element is already started.- Overrides:
encodeHeader
in classPcodeBlock
- Parameters:
encoder
- is the stream encoder- Throws:
IOException
- for errors writing to the underlying stream
-
decodeHeader
- Overrides:
decodeHeader
in classPcodeBlock
- Throws:
DecoderException
-