idiom1.h 371 B

1234567891011121314151617
  1. #pragma once
  2. #include "idiom.h"
  3. struct Idiom1 : public Idiom
  4. {
  5. protected:
  6. std::vector<iICODE> m_icodes;
  7. int m_min_off;
  8. int checkStkVars (iICODE pIcode);
  9. public:
  10. Idiom1(Function *f) : Idiom(f)
  11. {
  12. }
  13. uint8_t minimum_match_length() {return 1;}
  14. bool match(iICODE picode);
  15. int action();
  16. size_t match_length() {return m_icodes.size();}
  17. };