Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Update copyright lines.
[simgrid.git] / src / mc / mc_comm_pattern.hpp
index 8380321..401c68f 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2007-2020. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2007-2021. 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. */
@@ -7,9 +7,7 @@
 #define SIMGRID_MC_COMM_PATTERN_H
 
 #include <vector>
-
-#include "smpi/smpi.h"
-#include "src/mc/mc_state.hpp"
+#include "src/mc/mc_pattern.hpp"
 
 namespace simgrid {
 namespace mc {
@@ -46,26 +44,19 @@ extern XBT_PRIVATE std::vector<std::vector<simgrid::mc::PatternCommunication*>>
 static inline simgrid::mc::CallType MC_get_call_type(const s_smx_simcall* req)
 {
   using simgrid::mc::CallType;
+  using simgrid::simix::Simcall;
   switch (req->call_) {
-    case SIMCALL_COMM_ISEND:
+    case Simcall::COMM_ISEND:
       return CallType::SEND;
-    case SIMCALL_COMM_IRECV:
+    case Simcall::COMM_IRECV:
       return CallType::RECV;
-    case SIMCALL_COMM_WAIT:
+    case Simcall::COMM_WAIT:
       return CallType::WAIT;
-    case SIMCALL_COMM_WAITANY:
+    case Simcall::COMM_WAITANY:
       return CallType::WAITANY;
     default:
       return CallType::NONE;
   }
 }
 
-XBT_PRIVATE void MC_handle_comm_pattern(simgrid::mc::CallType call_type, smx_simcall_t request, int value,
-                                        int backtracking);
-
-XBT_PRIVATE void MC_restore_communications_pattern(simgrid::mc::State* state);
-
-XBT_PRIVATE void MC_state_copy_incomplete_communications_pattern(simgrid::mc::State* state);
-XBT_PRIVATE void MC_state_copy_index_communications_pattern(simgrid::mc::State* state);
-
 #endif