Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
this is a hpp header
authorMartin Quinson <martin.quinson@loria.fr>
Sun, 16 Jul 2017 19:32:40 +0000 (21:32 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Sun, 16 Jul 2017 19:32:40 +0000 (21:32 +0200)
src/mc/VisitedState.cpp
src/mc/checker/CommunicationDeterminismChecker.hpp
src/mc/checker/simgrid_mc.cpp
src/mc/mc_comm_pattern.cpp
src/mc/mc_comm_pattern.hpp [moved from src/mc/mc_comm_pattern.h with 78% similarity]
src/mc/mc_global.cpp
src/mc/mc_state.cpp
tools/cmake/DefinePackages.cmake

index 017e9f2..308a584 100644 (file)
@@ -14,7 +14,7 @@
 #include "xbt/sysdep.h"
 
 #include "src/mc/VisitedState.hpp"
-#include "src/mc/mc_comm_pattern.h"
+#include "src/mc/mc_comm_pattern.hpp"
 #include "src/mc/mc_private.h"
 #include "src/mc/mc_smx.h"
 #include "src/mc/remote/RemoteClient.hpp"
index aa07b43..951ceb4 100644 (file)
@@ -1,5 +1,4 @@
-/* Copyright (c) 2016. The SimGrid Team.
- * All rights reserved.                                                     */
+/* Copyright (c) 2016-2017. The SimGrid Team. All rights reserved.          */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
@@ -11,7 +10,7 @@
 
 #include "src/mc/VisitedState.hpp"
 #include "src/mc/checker/Checker.hpp"
-#include "src/mc/mc_comm_pattern.h"
+#include "src/mc/mc_comm_pattern.hpp"
 #include "src/mc/mc_forward.hpp"
 
 #ifndef SIMGRID_MC_COMMUNICATION_DETERMINISM_CHECKER_HPP
index e9af0b5..ffcff71 100644 (file)
@@ -22,7 +22,7 @@
 #include "src/mc/Session.hpp"
 #include "src/mc/checker/Checker.hpp"
 #include "src/mc/mc_base.h"
-#include "src/mc/mc_comm_pattern.h"
+#include "src/mc/mc_comm_pattern.hpp"
 #include "src/mc/mc_exit.h"
 #include "src/mc/mc_private.h"
 #include "src/mc/mc_safety.h"
index 25021c4..3f3d1bd 100644 (file)
@@ -9,10 +9,10 @@
 #include "xbt/sysdep.h"
 #include <xbt/dynar.hpp>
 
-#include "src/mc/mc_comm_pattern.h"
+#include "src/mc/checker/CommunicationDeterminismChecker.hpp"
+#include "src/mc/mc_comm_pattern.hpp"
 #include "src/mc/mc_smx.h"
 #include "src/mc/mc_xbt.hpp"
-#include "src/mc/checker/CommunicationDeterminismChecker.hpp"
 
 using simgrid::mc::remote;
 
similarity index 78%
rename from src/mc/mc_comm_pattern.h
rename to src/mc/mc_comm_pattern.hpp
index b5ac841..0d99b67 100644 (file)
@@ -20,7 +20,6 @@ struct PatternCommunicationList {
   unsigned int index_comm = 0;
   std::vector<std::unique_ptr<simgrid::mc::PatternCommunication>> list;
 };
-
 }
 }
 
@@ -57,21 +56,22 @@ typedef enum {
 
 static inline e_mc_call_type_t MC_get_call_type(smx_simcall_t req)
 {
-  switch(req->call) {
-  case SIMCALL_COMM_ISEND:
-    return MC_CALL_TYPE_SEND;
-  case SIMCALL_COMM_IRECV:
-    return MC_CALL_TYPE_RECV;
-  case SIMCALL_COMM_WAIT:
-    return MC_CALL_TYPE_WAIT;
-  case SIMCALL_COMM_WAITANY:
-    return MC_CALL_TYPE_WAITANY;
-  default:
-    return MC_CALL_TYPE_NONE;
+  switch (req->call) {
+    case SIMCALL_COMM_ISEND:
+      return MC_CALL_TYPE_SEND;
+    case SIMCALL_COMM_IRECV:
+      return MC_CALL_TYPE_RECV;
+    case SIMCALL_COMM_WAIT:
+      return MC_CALL_TYPE_WAIT;
+    case SIMCALL_COMM_WAITANY:
+      return MC_CALL_TYPE_WAITANY;
+    default:
+      return MC_CALL_TYPE_NONE;
   }
 }
 
-XBT_PRIVATE void MC_handle_comm_pattern(e_mc_call_type_t call_type, smx_simcall_t request, int value, xbt_dynar_t current_pattern, int backtracking);
+XBT_PRIVATE void MC_handle_comm_pattern(e_mc_call_type_t call_type, smx_simcall_t request, int value,
+                                        xbt_dynar_t current_pattern, int backtracking);
 
 XBT_PRIVATE void MC_restore_communications_pattern(simgrid::mc::State* state);
 
index 8713d54..07eeace 100644 (file)
 #include "src/simix/ActorImpl.hpp"
 
 #if SIMGRID_HAVE_MC
-#include <libunwind.h>
-#include "src/mc/mc_comm_pattern.h"
+#include "src/mc/checker/Checker.hpp"
+#include "src/mc/mc_comm_pattern.hpp"
+#include "src/mc/mc_private.h"
 #include "src/mc/mc_request.h"
 #include "src/mc/mc_safety.h"
+#include "src/mc/mc_smx.h"
 #include "src/mc/mc_snapshot.h"
-#include "src/mc/mc_private.h"
 #include "src/mc/mc_unw.h"
-#include "src/mc/mc_smx.h"
-#include "src/mc/checker/Checker.hpp"
+#include <libunwind.h>
 #endif
 
 #include "src/mc/Transition.hpp"
index f606492..f37e793 100644 (file)
 #include "xbt/log.h"
 #include "xbt/sysdep.h"
 
-#include "src/simix/smx_private.h"
-#include "src/mc/mc_state.h"
-#include "src/mc/mc_request.h"
+#include "src/mc/Transition.hpp"
+#include "src/mc/mc_comm_pattern.hpp"
 #include "src/mc/mc_private.h"
-#include "src/mc/mc_comm_pattern.h"
+#include "src/mc/mc_request.h"
 #include "src/mc/mc_smx.h"
+#include "src/mc/mc_state.h"
 #include "src/mc/mc_xbt.hpp"
-#include "src/mc/Transition.hpp"
+#include "src/simix/smx_private.h"
 
 using simgrid::mc::remote;
 
index 52445fd..ca88375 100644 (file)
@@ -610,8 +610,8 @@ set(MC_SRC
   src/mc/mc_snapshot.h
   src/mc/mc_snapshot.cpp
   src/mc/mc_page_snapshot.cpp
-  src/mc/mc_comm_pattern.h
   src/mc/mc_comm_pattern.cpp
+  src/mc/mc_comm_pattern.hpp
   src/mc/compare.cpp
   src/mc/mc_dwarf.hpp
   src/mc/mc_dwarf.cpp