Ghidra Decompiler Analysis Engine
Public Member Functions | List of all members
StackSolver Class Reference

A class that solves for stack-pointer changes across unknown sub-functions. More...

Public Member Functions

void solve (void)
 Solve the system of equations.
 
void build (const Funcdata &data, AddrSpace *id, int4 spcbase)
 Build the system of equations. More...
 

Detailed Description

A class that solves for stack-pointer changes across unknown sub-functions.

Member Function Documentation

◆ build()

void StackSolver::build ( const Funcdata data,
AddrSpace id,
int4  spcbase 
)

Build the system of equations.

Collect references to the stack-pointer as variables, and examine their defining PcodeOps to determine equations and coefficient.

Parameters
datais the function being analyzed
idis the stack address space
spcbaseis the index, relative to the stack space, of the stack pointer

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