work.hpp 280 B

1234567891011121314151617181920
  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. treat(S,res);
  10. Semigroup* root=stack.pushed();
  11. *root=S;
  12. walk(stack,res);
  13. }
  14. }
  15. #endif