decompiler 1.0.0
Public Member Functions | Public Attributes | List of all members
ghidra::ConstructState Struct Reference

A node in a tree of subconstructors. More...

#include <context.hh>

Public Member Functions

 ConstructState (void)
 Construct a node with no children.
 
 ConstructState (int4 numOperands)
 Construct a node with given number of possible children. More...
 
 ~ConstructState (void)
 Destructor.
 

Public Attributes

Constructor * ct
 The matched Constructor.
 
FixedHandle hand
 Resolved Varnode associated with the Constructor.
 
ConstructState ** resolve
 An array of pointers to child nodes.
 
ConstructState * parent
 Pointer to parent node.
 
int4 length
 Length of this instantiation of the constructor.
 
uint4 offset
 Absolute offset (from start of instruction)
 

Detailed Description

A node in a tree of subconstructors.

This knows its position in the tree (parent node, child nodes) and the underlying SLEIGH constructor that was matched. Child nodes correspond to the operands for the specific constructor.

Constructor & Destructor Documentation

◆ ConstructState()

ghidra::ConstructState::ConstructState ( int4  numOperands)

Construct a node with given number of possible children.

The array holding pointers to child nodes is preallocated.

Parameters
numOperandsis maximum number of children this node can have

References ct, length, offset, parent, and resolve.


The documentation for this struct was generated from the following files: