Ghidra 11.3.2
Ghidra internal decompiler documentation.
Loading...
Searching...
No Matches
ghidra::ScoreUnionFields::Trial Class Reference

A trial data-type fitted to a specific place in the data-flow. More...

Collaboration diagram for ghidra::ScoreUnionFields::Trial:
[legend]

Public Member Functions

 Trial (PcodeOp *o, int4 slot, Datatype *ct, int4 index, bool isArray)
 Construct a downward trial for a Varnode.
 
 Trial (Varnode *v, Datatype *ct, int4 index, bool isArray)
 Construct an upward trial for a Varnode.
 

Private Types

enum  dir_type { fit_down , fit_up }
 An enumerator to distinguish how an individual trial follows data-flow. More...
 

Private Attributes

Varnodevn
 The Varnode we are testing for data-type fit.
 
PcodeOpop
 The PcodeOp reading the Varnode (or null)
 
int4 inslot
 The slot reading the Varnode (or -1)
 
dir_type direction
 Direction to push fit. 0=down 1=up.
 
bool array
 Field can be accessed as an array.
 
DatatypefitType
 The putative data-type of the Varnode.
 
int4 scoreIndex
 The original field being scored by this trial.
 

Friends

class ScoreUnionFields
 

Detailed Description

A trial data-type fitted to a specific place in the data-flow.

Member Enumeration Documentation

◆ dir_type

An enumerator to distinguish how an individual trial follows data-flow.

Enumerator
fit_down 

Only push the fit down with the data-flow.

fit_up 

Only push the fit up against the data-flow.

Constructor & Destructor Documentation

◆ Trial() [1/2]

ghidra::ScoreUnionFields::Trial::Trial ( PcodeOp o,
int4  slot,
Datatype ct,
int4  index,
bool  isArray 
)
inline

Construct a downward trial for a Varnode.

Parameters
ois the PcodeOp reading the Varnode
slotis the input slot being read
ctis the trial data-type to fit
indexis the scoring index
isArrayis true if the data-type to fit is a pointer to an array

References array, direction, fit_down, fitType, ghidra::PcodeOp::getIn(), inslot, op, scoreIndex, and vn.

◆ Trial() [2/2]

ghidra::ScoreUnionFields::Trial::Trial ( Varnode v,
Datatype ct,
int4  index,
bool  isArray 
)
inline

Construct an upward trial for a Varnode.

Parameters
vis the Varnode to fit
ctis the trial data-type to fit
indexis the scoring index
isArrayis true if the data-type to fit is a pointer to an array

References array, direction, fit_up, fitType, inslot, op, scoreIndex, and vn.


The documentation for this class was generated from the following file: