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

A class for ordering Varnode terms in an additive expression. More...

#include <coreaction.hh>

Public Member Functions

void collect (void)
 Collect all the terms in the expression. More...
 
void sortTerms (void)
 Sort the terms using additiveCompare()
 

Detailed Description

A class for ordering Varnode terms in an additive expression.

Given the final PcodeOp in a data-flow expression that sums 2 or more Varnode terms, this class collects all the terms then allows sorting of the terms to facilitate constant collapse and factoring simplifications.

Member Function Documentation

◆ collect()

void TermOrder::collect ( void  )

Collect all the terms in the expression.

Assuming root->getOut() is the root of an expression formed with the CPUI_INT_ADD op, collect all the Varnode terms of the expression.


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