decompiler 1.0.0
Public Member Functions | Private Attributes | List of all members
ghidra::AddExpression::Term Class Reference

A term in the expression. More...

Public Member Functions

 Term (void)
 Uninitialized constructor.
 
 Term (Varnode *v, uintb c)
 Constructor.
 
bool isEquivalent (const Term &op2) const
 Compare two terms for functional equivalence.
 

Private Attributes

Varnodevn
 The Varnode representing the term.
 
uintb coeff
 Multiplicative coefficient.
 

Detailed Description

A term in the expression.

Member Function Documentation

◆ isEquivalent()

bool ghidra::AddExpression::Term::isEquivalent ( const Term op2) const

Compare two terms for functional equivalence.

The value true is returned if it can be proven that two terms add the same value to their respective expressions.

Parameters
op2is the other term to compare with this
Returns
true if the terms are equivalent

References coeff, and vn.

Referenced by ghidra::AddExpression::isEquivalent().


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