Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[mc] Sort out FIXMEs and TODOs
authorGabriel Corona <gabriel.corona@loria.fr>
Thu, 7 Apr 2016 12:33:42 +0000 (14:33 +0200)
committerGabriel Corona <gabriel.corona@loria.fr>
Thu, 7 Apr 2016 12:35:55 +0000 (14:35 +0200)
src/mc/RegionSnapshot.hpp
src/mc/mc_base.cpp
src/mc/mc_request.cpp

index 30beff1..7a76d7c 100644 (file)
@@ -29,7 +29,6 @@ enum class RegionType {
   Data = 2
 };
 
-// TODO, use Boost.Variant instead of this
 enum class StorageType {
   NoData = 0,
   Flat = 1,
index cfd63ca..5b7ce3b 100644 (file)
@@ -38,7 +38,6 @@ int MC_random(int min, int max)
   xbt_assert(mc_mode != MC_MODE_SERVER);
   /* TODO, if the MC is disabled we do not really need to make a simcall for
    * this :) */
-  /* FIXME: return mc_current_state->executed_transition->random.value; */
   return simcall_mc_random(min, max);
 }
 
index cc84403..26b9d30 100644 (file)
@@ -101,9 +101,11 @@ bool request_depend_asymmetric(smx_simcall_t r1, smx_simcall_t r2)
   /* FIXME: the following rule assumes that the result of the
    * isend/irecv call is not stored in a buffer used in the
    * test call. */
-  /*if(   (r1->call == SIMCALL_COMM_ISEND || r1->call == SIMCALL_COMM_IRECV)
+#if 0
+  if((r1->call == SIMCALL_COMM_ISEND || r1->call == SIMCALL_COMM_IRECV)
      &&  r2->call == SIMCALL_COMM_TEST)
-     return FALSE; */
+     return FALSE;
+#endif
 
   if (r1->call == SIMCALL_COMM_WAIT
       && (r2->call == SIMCALL_COMM_WAIT || r2->call == SIMCALL_COMM_TEST)