From 4d8433496a430d38f5632b3c09f9daf47253d55f Mon Sep 17 00:00:00 2001
From: Jan Travnicek <Jan.Travnicek@fit.cvut.cz>
Date: Sun, 21 Sep 2014 11:15:24 +0200
Subject: [PATCH] fix parsing Automata

---
 alib2data/src/automaton/AutomatonFromXMLParser.cpp | 4 ++--
 alib2data/src/automaton/AutomatonToXMLComposer.cpp | 6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/alib2data/src/automaton/AutomatonFromXMLParser.cpp b/alib2data/src/automaton/AutomatonFromXMLParser.cpp
index 0e0a5564b0..16ed26b1cb 100644
--- a/alib2data/src/automaton/AutomatonFromXMLParser.cpp
+++ b/alib2data/src/automaton/AutomatonFromXMLParser.cpp
@@ -311,8 +311,8 @@ VisiblyPushdownNPDA AutomatonFromXMLParser::parseVisiblyPushdownNPDA(std::list<s
 	VisiblyPushdownNPDA automaton(bottomOfTheStackSymbol);
 	automaton.setStates(states);
 	automaton.setCallInputSymbols(callInputSymbols);
-	automaton.setReturnInputSymbols(callInputSymbols);
-	automaton.setLocalInputSymbols(callInputSymbols);
+	automaton.setReturnInputSymbols(returnInputSymbols);
+	automaton.setLocalInputSymbols(localInputSymbols);
 	automaton.setReturnInputSymbols(returnInputSymbols);
 	automaton.setLocalInputSymbols(localInputSymbols);
 	automaton.setStackSymbols(stackSymbols);
diff --git a/alib2data/src/automaton/AutomatonToXMLComposer.cpp b/alib2data/src/automaton/AutomatonToXMLComposer.cpp
index 1cd4bb121d..b2ec696611 100644
--- a/alib2data/src/automaton/AutomatonToXMLComposer.cpp
+++ b/alib2data/src/automaton/AutomatonToXMLComposer.cpp
@@ -310,7 +310,7 @@ void AutomatonToXMLComposer::composeTransitions(std::list<sax::Token>& out, cons
 			composeTransitionTo(out, target.first);
 			composeTransitionSinglePush(out, target.second);
 
-			out.push_back(sax::Token("calltransition", sax::Token::TokenType::END_ELEMENT));
+			out.push_back(sax::Token("callTransition", sax::Token::TokenType::END_ELEMENT));
 		}
 	}
 	for(const auto& transition : automaton.getReturnTransitions()) {
@@ -322,7 +322,7 @@ void AutomatonToXMLComposer::composeTransitions(std::list<sax::Token>& out, cons
 			composeTransitionSinglePop(out, std::get<2>(transition.first));
 			composeTransitionTo(out, target);
 
-			out.push_back(sax::Token("returntransition", sax::Token::TokenType::END_ELEMENT));
+			out.push_back(sax::Token("returnTransition", sax::Token::TokenType::END_ELEMENT));
 		}
 	}
 	for(const auto& transition : automaton.getLocalTransitions()) {
@@ -333,7 +333,7 @@ void AutomatonToXMLComposer::composeTransitions(std::list<sax::Token>& out, cons
 			composeTransitionInputSymbol(out, transition.first.second);
 			composeTransitionTo(out, target);
 
-			out.push_back(sax::Token("localtransition", sax::Token::TokenType::END_ELEMENT));
+			out.push_back(sax::Token("localTransition", sax::Token::TokenType::END_ELEMENT));
 		}
 	}
 
-- 
GitLab