ROSE  0.11.145.0
ModulesMips.h
1 #ifndef ROSE_BinaryAnalysis_Partitioner2_ModulesMips_H
2 #define ROSE_BinaryAnalysis_Partitioner2_ModulesMips_H
3 #include <featureTests.h>
4 #ifdef ROSE_ENABLE_BINARY_ANALYSIS
5 
6 #include <Rose/BinaryAnalysis/Partitioner2/Modules.h>
7 
8 namespace Rose {
9 namespace BinaryAnalysis {
10 namespace Partitioner2 {
11 
13 namespace ModulesMips {
14 
17 protected:
18  FunctionPtr function_;
19 protected:
20  MatchRetAddiu();
21 public:
22  ~MatchRetAddiu();
23 
24 public:
25  static Ptr instance();
26  virtual std::vector<FunctionPtr> functions() const override;
27  virtual bool match(const PartitionerConstPtr&, rose_addr_t anchor) override;
28 };
29 
30 } // namespace
31 } // namespace
32 } // namespace
33 } // namespace
34 
35 #endif
36 #endif
Base class for matching function prologues.
Definition: Modules.h:108
virtual bool match(const PartitionerConstPtr &, rose_addr_t anchor) override
Attempt to match an instruction pattern.
Main namespace for the ROSE library.
Matches a MIPS function prologue that's a return followed by ADDIU instruction.
Definition: ModulesMips.h:16
virtual std::vector< FunctionPtr > functions() const override
Returns the function(s) for the previous successful match.