Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Tweak a bit the dependence function
[simgrid.git] / src / mc / mc_transition.c
index 366e525..e4587a3 100644 (file)
@@ -275,11 +275,14 @@ int MC_transition_depend(mc_transition_t t1, mc_transition_t t2)
   if(t1->process == t2->process) 
     return FALSE;
 
-  if(t1->type == mc_isend && t2->type == mc_irecv)
+  if(t1->type != t2->type)
+    return FALSE;
+  
+/*  if(t1->type == mc_isend && t2->type == mc_irecv)
     return FALSE;
 
   if(t1->type == mc_irecv && t2->type == mc_isend)
-    return FALSE;
+    return FALSE;*/
   
   if(t1->type == mc_random || t2->type == mc_random)
     return FALSE;
@@ -302,6 +305,7 @@ int MC_transition_depend(mc_transition_t t1, mc_transition_t t2)
      && t1->wait.comm->dst_buff != t2->wait.comm->dst_buff
      && t2->wait.comm->dst_buff != t1->wait.comm->src_buff)
     return FALSE;
-
+  
   return TRUE;
 }
\ No newline at end of file