work.hpp 301 B

123456789101112131415161718192021
  1. #ifndef WORK_HPP
  2. #define WORK_HPP
  3. #include <iostream>
  4. #include "treewalk.hpp"
  5. using namespace std;
  6. void work_on(Semigroup& S,Results& res){
  7. Stack stack;
  8. clear_results(res);
  9. if(not cut(S)){
  10. treat(S,res);
  11. Semigroup* root=stack.pushed();
  12. *root=S;
  13. walk(stack,res);
  14. }
  15. }
  16. #endif