Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
model-checker : ignore some local variables from simix in MC_init
authorMarion Guthmuller <marion.guthmuller@loria.fr>
Wed, 2 Jan 2013 17:47:08 +0000 (18:47 +0100)
committerMarion Guthmuller <marion.guthmuller@loria.fr>
Wed, 2 Jan 2013 17:47:08 +0000 (18:47 +0100)
src/mc/mc_global.c
src/simix/smx_context_sysv.c

index b1eb80b..b7ed883 100644 (file)
@@ -198,6 +198,9 @@ void MC_init(){
   MC_ignore_stack("_throw_ctx", "*");
   MC_ignore_stack("ctx", "*");
 
   MC_ignore_stack("_throw_ctx", "*");
   MC_ignore_stack("ctx", "*");
 
+  MC_ignore_stack("next_context", "smx_ctx_sysv_suspend_serial");
+  MC_ignore_stack("i", "smx_ctx_sysv_suspend_serial");
+
   if(raw_mem_set)
     MC_SET_RAW_MEM;
 
   if(raw_mem_set)
     MC_SET_RAW_MEM;
 
index 9acbbd1..90e6b84 100644 (file)
@@ -232,11 +232,6 @@ static void smx_ctx_sysv_suspend_serial(smx_context_t context)
   smx_context_t next_context;
   unsigned long int i = sysv_process_index++;
 
   smx_context_t next_context;
   unsigned long int i = sysv_process_index++;
 
-  if(MC_is_active()){
-    MC_ignore_stack("next_context", "smx_ctx_sysv_suspend_serial");
-    MC_ignore_stack("i", "smx_ctx_sysv_suspend_serial");
-  }
-
   if (i < xbt_dynar_length(simix_global->process_to_run)) {
     /* execute the next process */
     XBT_DEBUG("Run next process");
   if (i < xbt_dynar_length(simix_global->process_to_run)) {
     /* execute the next process */
     XBT_DEBUG("Run next process");