retdec
cli_pattern_finder_runner.h
Go to the documentation of this file.
1 
7 #ifndef RETDEC_LLVMIR2HLL_PATTERN_PATTERN_FINDER_RUNNERS_CLI_PATTERN_FINDER_RUNNER_H
8 #define RETDEC_LLVMIR2HLL_PATTERN_PATTERN_FINDER_RUNNERS_CLI_PATTERN_FINDER_RUNNER_H
9 
10 #include <vector>
11 
13 #include "retdec/utils/io/log.h"
14 
15 namespace retdec {
16 namespace llvmir2hll {
17 
26 public:
28 
29 private:
32  const PatternFinder::Patterns &foundPatterns) override;
33 
34  void printPatternInfo(const ShPtr<Pattern> &p);
35 
36 private:
39 };
40 
41 } // namespace llvmir2hll
42 } // namespace retdec
43 
44 #endif
Runner of pattern finders for the command line interface (CLI).
Definition: cli_pattern_finder_runner.h:25
virtual void doActionsBeforePatternFinderRuns(ShPtr< PatternFinder > pf) override
Prints a sub-phase saying that the given finder is run.
Definition: cli_pattern_finder_runner.cpp:38
utils::io::Logger & os
Output stream, into which the patterns will be emitted.
Definition: cli_pattern_finder_runner.h:38
CLIPatternFinderRunner(utils::io::Logger &os)
Constructs a runner of pattern finders.
Definition: cli_pattern_finder_runner.cpp:30
void printPatternInfo(const ShPtr< Pattern > &p)
Prints information about the given pattern.
Definition: cli_pattern_finder_runner.cpp:56
virtual void doActionsAfterPatternFinderHasRun(ShPtr< PatternFinder > pf, const PatternFinder::Patterns &foundPatterns) override
Prints the found patterns of the given finder.
Definition: cli_pattern_finder_runner.cpp:46
A base class for all runners of pattern finders.
Definition: pattern_finder_runner.h:28
std::vector< ShPtr< Pattern > > Patterns
A list of patterns.
Definition: pattern_finder.h:41
Provides Logger inteface that is used for logging events during decompilation.
Definition: logger.h:22
A library providing API for working with back-end IR.
std::shared_ptr< T > ShPtr
An alias for a shared pointer.
Definition: smart_ptr.h:18
Definition: archive_wrapper.h:19
A base class for all runners of pattern finders.