From f13ba12a6885b10affde09e30317320769076826 Mon Sep 17 00:00:00 2001
From: Daniel Knorreck <daniel.knorreck@telecom-paristech.fr>
Date: Tue, 18 Oct 2011 07:19:56 +0000
Subject: [PATCH] added Channel names in dot graph

---
 simulators/c++2/src_simulator/definitions.h     | 2 +-
 simulators/c++2/src_simulator/sim/Simulator.cpp | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/simulators/c++2/src_simulator/definitions.h b/simulators/c++2/src_simulator/definitions.h
index 81f9fde9d0..49c4e656fb 100644
--- a/simulators/c++2/src_simulator/definitions.h
+++ b/simulators/c++2/src_simulator/definitions.h
@@ -101,7 +101,7 @@ using std::max;
 //enable recording of transactions
 #define TRANSLIST_ENABLED
 //enable lossy channels
-#define LOSS_ENABLED
+#undef LOSS_ENABLED
 //enables comments on actions/choices in HTML output
 #undef ADD_COMMENTS
 //enable this flag to restore benchmark variables correctly in coverage enhanced simulation
diff --git a/simulators/c++2/src_simulator/sim/Simulator.cpp b/simulators/c++2/src_simulator/sim/Simulator.cpp
index 747367e54b..1e8f0d8c63 100644
--- a/simulators/c++2/src_simulator/sim/Simulator.cpp
+++ b/simulators/c++2/src_simulator/sim/Simulator.cpp
@@ -130,7 +130,7 @@ ID Simulator::schedule2GraphDOT(std::ostream& iDOTFile, std::ostream& iAUTFile,
 		oTransCounter++;
 		iDOTFile << aStartState << " -> " << aEndState << " [label = \"i(" << aCPU->toString() << "__" << aTopElement->getCommand()->getTask()->toString() << "__" << aTopElement->getCommand()->getCommandStr();
 		if (aTopElement->getChannel()!=0){
-			//iDOTFile << "__" << aTopElement->getChannel()->toShortString();
+			iDOTFile << "__" << aTopElement->getChannel()->toShortString();
 		}
 		iDOTFile << "<" << aTopElement->getVirtualLength() << ">)\"]\n";
 		//(20,"i(CPU0__test1__TMLTask_1__wr__test1__ch<4 ,4>)", 24)
-- 
GitLab