Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
model-checker : use new variable _sg_mc_liveness instead of _sg_mc_property_file
authorMarion Guthmuller <marion.guthmuller@inria.fr>
Wed, 4 Jun 2014 15:15:21 +0000 (17:15 +0200)
committerMarion Guthmuller <marion.guthmuller@inria.fr>
Wed, 4 Jun 2014 15:15:21 +0000 (17:15 +0200)
src/mc/mc_compare.c
src/mc/mc_global.c

index 7042a58..69176ea 100644 (file)
@@ -414,17 +414,12 @@ int snapshot_compare(void *state1, void *state2)
   mc_snapshot_t s1, s2;
   int num1, num2;
 
-  if (_sg_mc_property_file && _sg_mc_property_file[0] != '\0') {        /* Liveness MC */
+  if (_sg_mc_liveness) {        /* Liveness MC */
     s1 = ((mc_visited_pair_t) state1)->graph_state->system_state;
     s2 = ((mc_visited_pair_t) state2)->graph_state->system_state;
     num1 = ((mc_visited_pair_t) state1)->num;
     num2 = ((mc_visited_pair_t) state2)->num;
-    /* Firstly compare automaton state */
-    /*if(xbt_automaton_state_compare(((mc_pair_t)state1)->automaton_state, ((mc_pair_t)state2)->automaton_state) != 0)
-       return 1;
-       if(xbt_automaton_propositional_symbols_compare_value(((mc_pair_t)state1)->atomic_propositions, ((mc_pair_t)state2)->atomic_propositions) != 0)
-       return 1; */
-  } else {                      /* Safety MC */
+  } else {                      /* Safety or comm determinism MC */
     s1 = ((mc_visited_state_t) state1)->system_state;
     s2 = ((mc_visited_state_t) state2)->system_state;
     num1 = ((mc_visited_state_t) state1)->num;
index 809f877..a3de319 100644 (file)
@@ -249,8 +249,7 @@ void MC_init()
 
   MC_SET_STD_HEAP;
 
-  if (_sg_mc_visited > 0
-      || (_sg_mc_property_file && _sg_mc_property_file[0] != '\0')) {
+  if (_sg_mc_visited > 0 || _sg_mc_liveness) {
     /* Ignore some variables from xbt/ex.h used by exception e for stacks comparison */
     MC_ignore_local_variable("e", "*");
     MC_ignore_local_variable("__ex_cleanup", "*");