X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/46908fece96be2ff098547565adaf0ef5a7d7b8f..33e7844a7cdc98ec918960430fca80edd3f81863:/src/mc/mc_liveness.c diff --git a/src/mc/mc_liveness.c b/src/mc/mc_liveness.c index 70555b5252..efc9d49cac 100644 --- a/src/mc/mc_liveness.c +++ b/src/mc/mc_liveness.c @@ -73,7 +73,7 @@ int snapshot_compare(mc_snapshot_t s1, mc_snapshot_t s2){ return 1; } } - if(mmalloc_compare_heap(s1->regions[i]->data, s2->regions[i]->data, std_heap)){ + if(mmalloc_compare_heap(s1->regions[i]->data, s2->regions[i]->data)){ if(XBT_LOG_ISENABLED(mc_liveness, xbt_log_priority_debug)){ XBT_DEBUG("Different heap (mmalloc_compare)"); errors++; @@ -141,7 +141,7 @@ int reached(xbt_state_t st){ unsigned int cursor = 0; xbt_propositional_symbol_t ps = NULL; xbt_dynar_foreach(automaton->propositional_symbols, cursor, ps){ - f = ps->function; + f = (int (*)())ps->function; res = (*f)(); xbt_dynar_push_as(prop_ato, int, res); } @@ -367,7 +367,7 @@ void set_pair_reached(xbt_state_t st){ int (*f)(); xbt_dynar_foreach(automaton->propositional_symbols, cursor, ps){ - f = ps->function; + f = (int (*)())ps->function; res = (*f)(); xbt_dynar_push_as(pair->prop_ato, int, res); } @@ -432,7 +432,7 @@ int reached_hash(xbt_state_t st){ int (*f)(); xbt_dynar_foreach(automaton->propositional_symbols, cursor, ps){ - f = ps->function; + f = (int (*)())ps->function; res = (*f)(); xbt_dynar_push_as(prop_ato, int, res); } @@ -506,7 +506,7 @@ void set_pair_reached_hash(xbt_state_t st){ int (*f)(); xbt_dynar_foreach(automaton->propositional_symbols, cursor, ps){ - f = ps->function; + f = (int (*)())ps->function; res = (*f)(); xbt_dynar_push_as(pair->prop_ato, int, res); } @@ -543,7 +543,7 @@ int visited(xbt_state_t st, int sc){ int (*f)(); xbt_dynar_foreach(automaton->propositional_symbols, cursor, ps){ - f = ps->function; + f = (int (*)())ps->function; res = (*f)(); xbt_dynar_push_as(prop_ato, int, res); } @@ -618,7 +618,7 @@ int visited_hash(xbt_state_t st, int sc){ int (*f)(); xbt_dynar_foreach(automaton->propositional_symbols, cursor, ps){ - f = ps->function; + f = (int (*)())ps->function; res = (*f)(); xbt_dynar_push_as(prop_ato, int, res); } @@ -696,7 +696,7 @@ void set_pair_visited_hash(xbt_state_t st, int sc){ int (*f)(); xbt_dynar_foreach(automaton->propositional_symbols, cursor, ps){ - f = ps->function; + f = (int (*)())ps->function; res = (*f)(); xbt_dynar_push_as(pair->prop_ato, int, res); } @@ -730,7 +730,7 @@ void set_pair_visited(xbt_state_t st, int sc){ int (*f)(); xbt_dynar_foreach(automaton->propositional_symbols, cursor, ps){ - f = ps->function; + f = (int (*)())ps->function; res = (*f)(); xbt_dynar_push_as(pair->prop_ato, int, res); } @@ -776,7 +776,7 @@ int MC_automaton_evaluate_label(xbt_exp_label_t l){ int (*f)(); xbt_dynar_foreach(automaton->propositional_symbols, cursor, p){ if(strcmp(p->pred, l->u.predicat) == 0){ - f = p->function; + f = (int (*)())p->function; return (*f)(); } }