Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[mc] Misc. comments
authorGabriel Corona <gabriel.corona@loria.fr>
Fri, 8 Apr 2016 09:22:05 +0000 (11:22 +0200)
committerGabriel Corona <gabriel.corona@loria.fr>
Fri, 8 Apr 2016 09:22:05 +0000 (11:22 +0200)
src/mc/Channel.hpp
src/mc/Client.hpp
src/mc/CommunicationDeterminismChecker.cpp
src/mc/mc_base.h
src/mc/mc_smx.cpp

index 61514ad..5ede34f 100644 (file)
 namespace simgrid {
 namespace mc {
 
+/** A channel for exchanging messages between model-checker and model-checked
+ *
+ *  This hides the way the messages are transfered. Currently, they are sent
+ *  over a SOCK_DGRAM socket.
+ */
 class Channel {
   int socket_ = -1;
   template<class M>
index b4f95ca..36a6578 100644 (file)
 namespace simgrid {
 namespace mc {
 
+/** Model-checked-side of the communication protocol
+ *
+ *  Send messages to the model-checker and handles message from it.
+ */
 class XBT_PUBLIC() Client {
 private:
   bool active_ = false;
index 86b26cc..4588869 100644 (file)
@@ -301,7 +301,6 @@ CommunicationDeterminismChecker::~CommunicationDeterminismChecker()
 
 }
 
-// TODO, deduplicate with SafetyChecker
 RecordTrace CommunicationDeterminismChecker::getRecordTrace() // override
 {
   RecordTrace res;
@@ -310,7 +309,6 @@ RecordTrace CommunicationDeterminismChecker::getRecordTrace() // override
   return res;
 }
 
-// TODO, deduplicate with SafetyChecker
 std::vector<std::string> CommunicationDeterminismChecker::getTextualTrace() // override
 {
   std::vector<std::string> trace;
index 516b0ff..fc587fb 100644 (file)
@@ -15,7 +15,7 @@
 namespace simgrid {
 namespace mc {
 
-/** Can this requests can be executed.
+/** Can this requests can be executed?
  *
  *  Most requests are always enabled but WAIT and WAITANY
  *  are not always enabled: a WAIT where the communication does not
index d17f2b0..4a28224 100644 (file)
@@ -164,7 +164,7 @@ const char* MC_smx_process_get_host_name(smx_process_t p)
 
   simgrid::mc::Process* process = &mc_model_checker->process();
 
-  /* Horrible hack to find the offset of the id in the simgrid::s4u::Host.
+  /* HACK, Horrible hack to find the offset of the id in the simgrid::s4u::Host.
 
      Offsetof is not supported for non-POD types but this should
      work in pratice for the targets currently supported by the MC