Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
model-checker : include MUTEX_LOCK and UNLOCK in dot output
authorMarion Guthmuller <marion.guthmuller@inria.fr>
Wed, 25 Feb 2015 17:37:11 +0000 (18:37 +0100)
committerMarion Guthmuller <marion.guthmuller@inria.fr>
Wed, 25 Feb 2015 17:37:11 +0000 (18:37 +0100)
src/mc/mc_request.c

index ce77485..5b309a3 100644 (file)
@@ -433,7 +433,7 @@ char *MC_request_get_dot_output(smx_simcall_t req, int value)
 
   char *str = NULL, *label = NULL;
   smx_synchro_t act = NULL;
-
+  
   switch (req->call) {
   case SIMCALL_COMM_ISEND:
     if (req->issuer->smx_host)
@@ -530,6 +530,14 @@ char *MC_request_get_dot_output(smx_simcall_t req, int value)
     }
     break;
 
+  case SIMCALL_MUTEX_LOCK:
+    label = bprintf("[(%lu)] Mutex LOCK", req->issuer->pid);
+    break;
+    
+  case SIMCALL_MUTEX_UNLOCK:
+    label = bprintf("[(%lu)] Mutex UNLOCK", req->issuer->pid);
+    break;
+
   case SIMCALL_MC_RANDOM:
     if (req->issuer->smx_host)
       label =