Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
model-checker : add informations when log debug enabled
authorMarion Guthmuller <marion.guthmuller@loria.fr>
Thu, 12 Jan 2012 09:55:28 +0000 (10:55 +0100)
committerMarion Guthmuller <marion.guthmuller@loria.fr>
Thu, 12 Jan 2012 09:55:28 +0000 (10:55 +0100)
src/mc/mc_liveness.c

index 01d0124..c0aa52a 100644 (file)
@@ -207,8 +207,14 @@ int reached(xbt_state_t st){
            xbt_free(prop_ato);
            MC_UNSET_RAW_MEM;
            return 1;
+         }else{
+           XBT_DEBUG("Different snapshot");
          }
+       }else{
+         XBT_DEBUG("Different values of propositional symbols");
        }
+      }else{
+       XBT_DEBUG("Different automaton state");
       }
     }
 
@@ -306,11 +312,16 @@ int reached_hash(xbt_state_t st){
            xbt_free(prop_ato);
            MC_UNSET_RAW_MEM;
            return 1;
+         }else{
+           XBT_DEBUG("Different snapshot");
          }
+       }else{
+         XBT_DEBUG("Different values of propositional symbols");
        }
+      }else{
+       XBT_DEBUG("Different automaton state");
       }
-      
-     
+
       region_diff = 0;
     }
     
@@ -407,9 +418,17 @@ int visited(xbt_state_t st, int sc){
                
              return 1;
        
+           }else{
+             XBT_DEBUG("Different snapshot");
            }
+         }else{
+           XBT_DEBUG("Different values of propositional symbols"); 
          }
+       }else{
+         XBT_DEBUG("Different automaton state");
        }
+      }else{
+       XBT_DEBUG("Different value of search_cycle");
       }
     }
 
@@ -479,11 +498,19 @@ int visited_hash(xbt_state_t st, int sc){
              xbt_free(prop_ato);
              MC_UNSET_RAW_MEM;
              return 1;
+           }else{
+             XBT_DEBUG("Different snapshot");
            }
+         }else{
+           XBT_DEBUG("Different values of propositional symbols"); 
          }
+       }else{
+         XBT_DEBUG("Different automaton state");
        }
+      }else{
+       XBT_DEBUG("Different value of search_cycle");
       }
-     
+      
       region_diff = 0;
     }