work.hpp 330 B

12345678910111213141516171819202122
  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. if(not cut(S)){
  9. print_Semigroup(S);
  10. treat(S,res);
  11. Semigroup* root=stack.pushed();
  12. cout<<"root = "<<root<<endl;
  13. *root=S;
  14. walk(stack,res);
  15. }
  16. }
  17. #endif