Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
model-checker : remove local variable only if frame name is known
authorMarion Guthmuller <marion.guthmuller@loria.fr>
Tue, 5 Mar 2013 20:31:51 +0000 (21:31 +0100)
committerMarion Guthmuller <marion.guthmuller@loria.fr>
Sat, 16 Mar 2013 17:30:54 +0000 (18:30 +0100)
src/mc/mc_global.c

index c3c6539..d67f00d 100644 (file)
@@ -1027,9 +1027,11 @@ void MC_ignore_stack(const char *var_name, const char *frame_name){
 
   if(mc_local_variables != NULL){
 
-    dw_frame_t frame = xbt_dict_get_or_null(mc_local_variables, frame_name);
-    if(frame != NULL)
-      xbt_dict_remove(frame->variables, var_name);
+    if(strcmp(frame_name, "*") != 0){
+      dw_frame_t frame = xbt_dict_get_or_null(mc_local_variables, frame_name);
+      if(frame != NULL)
+        xbt_dict_remove(frame->variables, var_name);
+    }
 
   }