retdec
|
Finds sequences of interesting API calls in a module. More...
#include <api_call_seq_pattern_finder.h>
Public Member Functions | |
virtual const std::string | getId () const override |
Returns the ID of the finder. More... | |
virtual Patterns | findPatterns (ShPtr< Module > module) override |
Finds patterns in the given module and returns them. More... | |
![]() | |
virtual | ~PatternFinder ()=default |
Static Public Member Functions | |
static ShPtr< PatternFinder > | create (ShPtr< ValueAnalysis > va, ShPtr< CallInfoObtainer > cio) |
Creates and returns a new instance of APICallSeqPatternFinder. More... | |
Private Member Functions | |
APICallSeqPatternFinder (ShPtr< ValueAnalysis > va, ShPtr< CallInfoObtainer > cio) | |
Constructs a pattern finder. More... | |
Private Attributes | |
Patterns | foundPatterns |
Patterns to be returned. More... | |
Additional Inherited Members | |
![]() | |
using | Patterns = std::vector< ShPtr< Pattern > > |
A list of patterns. More... | |
![]() | |
PatternFinder (ShPtr< ValueAnalysis > va, ShPtr< CallInfoObtainer > cio) | |
Constructs a pattern finder. More... | |
![]() | |
ShPtr< ValueAnalysis > | va |
Analysis of values. More... | |
ShPtr< CallInfoObtainer > | cio |
The used call info obtainer. More... | |
Finds sequences of interesting API calls in a module.
This finder finds sequences of calls in a module that are considered interesting. For a list of such calls, see initAPICallInfoSeqMap().
Instances of this class have reference object semantics. Use create() to create instances.
|
private |
Constructs a pattern finder.
See PatternFinder::PatternFinder() for more information.
|
static |
Creates and returns a new instance of APICallSeqPatternFinder.
See PatternFinder::PatternFinder() for more information on the parameters and preconditions.
|
overridevirtual |
Finds patterns in the given module and returns them.
The returned patterns are instances of StmtsPattern.
Implements retdec::llvmir2hll::PatternFinder.
|
overridevirtual |
Returns the ID of the finder.
Implements retdec::llvmir2hll::PatternFinder.
|
private |
Patterns to be returned.