Skip to content
Snippets Groups Projects
Commit 4ec0d1cd authored by Jan Trávníček's avatar Jan Trávníček
Browse files

normalize Cartesian product based algorithms

parent 1316f85e
No related branches found
No related tags found
No related merge requests found
......@@ -13,7 +13,9 @@ namespace automaton {
namespace transform {
 
automaton::Automaton AutomataIntersectionCartesianProduct::intersection(const automaton::Automaton& first, const automaton::Automaton& second) {
return dispatch(first.getData(), second.getData());
automaton::Automaton res = dispatch(first.getData(), second.getData());
res.normalize ( );
return res;
}
 
auto AutomataIntersectionCartesianProductDFA = AutomataIntersectionCartesianProduct::RegistratorWrapper<automaton::DFA < DefaultSymbolType, std::pair < DefaultStateType, DefaultStateType > >, automaton::DFA < > >(AutomataIntersectionCartesianProduct::intersection);
......
......@@ -14,7 +14,9 @@ namespace automaton {
namespace transform {
 
automaton::Automaton AutomataUnionCartesianProduct::unification(const automaton::Automaton& first, const automaton::Automaton& second) {
return dispatch(first.getData(), second.getData());
automaton::Automaton res = dispatch(first.getData(), second.getData());
res.normalize ( );
return res;
}
 
auto AutomataUnionCartesianProductDFA = AutomataUnionCartesianProduct::RegistratorWrapper<automaton::DFA < DefaultSymbolType, std::pair < DefaultStateType, DefaultStateType > >, automaton::DFA < > >(AutomataUnionCartesianProduct::unification);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment