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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddecodeHeader(Decoder decoder) protected voidencodeHeader(Encoder encoder) Encode basic attributes to stream.intMethods inherited from class ghidra.program.model.pcode.BlockGraph
addBlock, addEdge, decode, decodeBody, encodeBody, getBlock, getSize, setIndices, transferObjectRefMethods 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:PcodeBlockEncode basic attributes to stream. Assume this block's element is already started.- Overrides:
encodeHeaderin classPcodeBlock- Parameters:
encoder- is the stream encoder- Throws:
IOException- for errors writing to the underlying stream
-
decodeHeader
- Overrides:
decodeHeaderin classPcodeBlock- Throws:
DecoderException
-