public class

EEquationMatcher

extends Object
java.lang.Object
   ↳ com.pnfsoftware.jeb.core.units.code.asm.decompiler.ir.compiler.EEquationMatcher

Class Overview

A matcher can be used to check if two IR expressions match two provided templates.

Summary

Public Constructors
EEquationMatcher(INode t0, INode t1)
Public Methods
Map<Integer, Object> getMatchMap()
Upon a successful match, retrieve the map of matches.
boolean isMatch(IEGeneric e0, IEGeneric e1)
Determine whether the provided IR expressions match the templates
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public EEquationMatcher (INode t0, INode t1)

Parameters
t0 first template
t1 second template

Public Methods

public Map<Integer, Object> getMatchMap ()

Upon a successful match, retrieve the map of matches.

Returns
  • template node id to matching IR object

public boolean isMatch (IEGeneric e0, IEGeneric e1)

Determine whether the provided IR expressions match the templates

Parameters
e0 first IR
e1 second IR
Returns
  • true if e0 matches t0 and e1 matches t1, or if e0 matches t1 and e1 matches t0