decompiler  1.0.0
Public Member Functions | Private Types | Private Attributes | Friends | List of all members
ghidra::ScoreUnionFields::Trial Class Reference

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

Public Member Functions

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

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 ghidra::PcodeOp::getIn().

◆ 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

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