4 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(mc_liveness, mc,
5 "Logging specific to algorithms for liveness properties verification");
7 xbt_fifo_t reached_pairs;
8 xbt_dynar_t visited_pairs;
9 xbt_dynar_t visited_pairs_hash;
10 xbt_dynar_t successors;
12 int snapshot_compare(mc_snapshot_t s1, mc_snapshot_t s2){
15 if(s1->num_reg != s2->num_reg){
16 //XBT_DEBUG("Different num_reg (s1 = %d, s2 = %d)", s1->num_reg, s2->num_reg);
22 for(i=0 ; i< s1->num_reg ; i++){
24 if(s1->regions[i]->type != s2->regions[i]->type){
25 //XBT_DEBUG("Different type of region");
29 switch(s1->regions[i]->type){
31 if(s1->regions[i]->size != s2->regions[i]->size){
32 //XBT_DEBUG("Different size of heap (s1 = %Zu, s2 = %Zu)", s1->regions[i]->size, s2->regions[i]->size);
35 if(s1->regions[i]->start_addr != s2->regions[i]->start_addr){
36 //XBT_DEBUG("Different start addr of heap (s1 = %p, s2 = %p)", s1->regions[i]->start_addr, s2->regions[i]->start_addr);
39 if(mmalloc_compare_heap(s1->regions[i]->data, s2->regions[i]->data)){
40 //XBT_DEBUG("Different heap (mmalloc_compare)");
45 if(s1->regions[i]->size != s2->regions[i]->size){
46 //XBT_DEBUG("Different size of libsimgrid (s1 = %Zu, s2 = %Zu)", s1->regions[i]->size, s2->regions[i]->size);
49 if(s1->regions[i]->start_addr != s2->regions[i]->start_addr){
50 //XBT_DEBUG("Different start addr of libsimgrid (s1 = %p, s2 = %p)", s1->regions[i]->start_addr, s2->regions[i]->start_addr);
53 if(memcmp(s1->regions[i]->data, s2->regions[i]->data, s1->regions[i]->size) != 0){
54 //XBT_DEBUG("Different memcmp for data in libsimgrid");
59 if(s1->regions[i]->size != s2->regions[i]->size){
60 //XBT_DEBUG("Different size of program (s1 = %Zu, s2 = %Zu)", s1->regions[i]->size, s2->regions[i]->size);
63 if(s1->regions[i]->start_addr != s2->regions[i]->start_addr){
64 //XBT_DEBUG("Different start addr of program (s1 = %p, s2 = %p)", s1->regions[i]->start_addr, s2->regions[i]->start_addr);
67 if(memcmp(s1->regions[i]->data, s2->regions[i]->data, s1->regions[i]->size) != 0){
68 //XBT_DEBUG("Different memcmp for data in program");
73 if(s1->regions[i]->size != s2->regions[i]->size){
74 //XBT_DEBUG("Different size of stack (s1 = %Zu, s2 = %Zu)", s1->regions[i]->size, s2->regions[i]->size);
77 if(s1->regions[i]->start_addr != s2->regions[i]->start_addr){
78 //XBT_DEBUG("Different start addr of stack (s1 = %p, s2 = %p)", s1->regions[i]->start_addr, s2->regions[i]->start_addr);
81 if(memcmp(s1->regions[i]->data, s2->regions[i]->data, s1->regions[i]->size) != 0){
82 //XBT_DEBUG("Different memcmp for data in stack");
91 int reached(xbt_state_t st){
94 if(xbt_fifo_size(reached_pairs) == 0){
102 mc_snapshot_t sn = xbt_new0(s_mc_snapshot_t, 1);
103 MC_take_snapshot_liveness(sn);
105 xbt_dynar_t prop_ato = xbt_dynar_new(sizeof(int), NULL);
109 /* Get values of propositional symbols */
110 unsigned int cursor = 0;
111 xbt_propositional_symbol_t ps = NULL;
112 xbt_dynar_foreach(automaton->propositional_symbols, cursor, ps){
115 xbt_dynar_push_as(prop_ato, int, res);
119 xbt_fifo_item_t item = xbt_fifo_get_first_item(reached_pairs);
120 mc_pair_reached_t pair_test = NULL;
123 while(i < xbt_fifo_size(reached_pairs) && item != NULL){
125 pair_test = (mc_pair_reached_t) xbt_fifo_get_item_content(item);
127 if(pair_test != NULL){
128 if(automaton_state_compare(pair_test->automaton_state, st) == 0){
129 if(propositional_symbols_compare_value(pair_test->prop_ato, prop_ato) == 0){
130 if(snapshot_compare(sn, pair_test->system_state) == 0){
132 MC_free_snapshot(sn);
133 xbt_dynar_reset(prop_ato);
142 item = xbt_fifo_get_next_item(item);
148 MC_free_snapshot(sn);
149 xbt_dynar_reset(prop_ato);
157 void set_pair_reached(xbt_state_t st){
162 mc_pair_reached_t pair = NULL;
163 pair = xbt_new0(s_mc_pair_reached_t, 1);
164 pair->automaton_state = st;
165 pair->prop_ato = xbt_dynar_new(sizeof(int), NULL);
166 pair->system_state = xbt_new0(s_mc_snapshot_t, 1);
167 MC_take_snapshot_liveness(pair->system_state);
169 /* Get values of propositional symbols */
170 unsigned int cursor = 0;
171 xbt_propositional_symbol_t ps = NULL;
175 xbt_dynar_foreach(automaton->propositional_symbols, cursor, ps){
178 xbt_dynar_push_as(pair->prop_ato, int, res);
181 xbt_fifo_unshift(reached_pairs, pair);
187 int visited(xbt_state_t st, int sc){
190 if(xbt_dynar_is_empty(visited_pairs)){
198 mc_snapshot_t sn = xbt_new0(s_mc_snapshot_t, 1);
199 MC_take_snapshot_liveness(sn);
201 xbt_dynar_t prop_ato = xbt_dynar_new(sizeof(int), NULL);
203 /* Get values of propositional symbols */
204 unsigned int cursor = 0;
205 xbt_propositional_symbol_t ps = NULL;
209 xbt_dynar_foreach(automaton->propositional_symbols, cursor, ps){
212 xbt_dynar_push_as(prop_ato, int, res);
216 mc_pair_visited_t pair_test = NULL;
218 xbt_dynar_foreach(visited_pairs_hash, cursor, pair_test){
219 if(pair_test->search_cycle == sc) {
220 if(automaton_state_compare(pair_test->automaton_state, st) == 0){
221 if(propositional_symbols_compare_value(pair_test->prop_ato, prop_ato) == 0){
222 if(snapshot_compare(pair_test->system_state, sn) == 0){
224 MC_free_snapshot(sn);
225 xbt_dynar_reset(prop_ato);
240 MC_free_snapshot(sn);
241 xbt_dynar_reset(prop_ato);
250 int visited_hash(xbt_state_t st, int sc){
253 if(xbt_dynar_is_empty(visited_pairs_hash)){
261 mc_snapshot_t sn = xbt_new0(s_mc_snapshot_t, 1);
262 MC_take_snapshot_liveness(sn);
266 xbt_dynar_t prop_ato = xbt_dynar_new(sizeof(int), NULL);
268 /* Get values of propositional symbols */
269 unsigned int cursor = 0;
270 xbt_propositional_symbol_t ps = NULL;
274 xbt_dynar_foreach(automaton->propositional_symbols, cursor, ps){
277 xbt_dynar_push_as(prop_ato, int, res);
280 mc_pair_visited_hash_t pair_test = NULL;
285 xbt_dynar_foreach(visited_pairs_hash, cursor, pair_test){
286 if(pair_test->search_cycle == sc) {
287 if(automaton_state_compare(pair_test->automaton_state, st) == 0){
288 if(propositional_symbols_compare_value(pair_test->prop_ato, prop_ato) == 0){
289 for(j=0 ; j< sn->num_reg ; j++){
290 if(xbt_dict_get_or_null_ext(pair_test->hash_regions, sn->regions[j]->data, sn->regions[j]->size) == NULL){
294 if(region_diff == 0){
295 MC_free_snapshot(sn);
296 xbt_dynar_reset(prop_ato);
307 MC_free_snapshot(sn);
308 xbt_dynar_reset(prop_ato);
316 void set_pair_visited_hash(xbt_state_t st, int sc){
318 //if(!visited_hash(st, sc)){
322 mc_snapshot_t sn = xbt_new0(s_mc_snapshot_t, 1);
323 MC_take_snapshot_liveness(sn);
325 mc_pair_visited_hash_t pair = NULL;
326 pair = xbt_new0(s_mc_pair_visited_hash_t, 1);
327 pair->automaton_state = st;
328 pair->prop_ato = xbt_dynar_new(sizeof(int), NULL);
329 pair->search_cycle = sc;
330 pair->hash_regions = xbt_dict_new();
334 for(i=0 ; i< sn->num_reg ; i++){
335 switch(sn->regions[i]->type){
337 xbt_dict_set_ext(pair->hash_regions, sn->regions[i]->data, sn->regions[i]->size, "heap", NULL);
340 xbt_dict_set_ext(pair->hash_regions, sn->regions[i]->data, sn->regions[i]->size, "libsimgrid", NULL);
343 xbt_dict_set_ext(pair->hash_regions, sn->regions[i]->data, sn->regions[i]->size, "prog", NULL);
348 /* Get values of propositional symbols */
349 unsigned int cursor = 0;
350 xbt_propositional_symbol_t ps = NULL;
354 xbt_dynar_foreach(automaton->propositional_symbols, cursor, ps){
357 xbt_dynar_push_as(pair->prop_ato, int, res);
360 xbt_dynar_push(visited_pairs_hash, &pair);
362 MC_free_snapshot(sn);
371 void set_pair_visited(xbt_state_t st, int sc){
376 mc_pair_visited_t pair = NULL;
377 pair = xbt_new0(s_mc_pair_visited_t, 1);
378 pair->automaton_state = st;
379 pair->prop_ato = xbt_dynar_new(sizeof(int), NULL);
380 pair->search_cycle = sc;
381 pair->system_state = xbt_new0(s_mc_snapshot_t, 1);
382 MC_take_snapshot_liveness(pair->system_state);
385 /* Get values of propositional symbols */
386 unsigned int cursor = 0;
387 xbt_propositional_symbol_t ps = NULL;
391 xbt_dynar_foreach(automaton->propositional_symbols, cursor, ps){
394 xbt_dynar_push_as(pair->prop_ato, int, res);
397 xbt_dynar_push(visited_pairs_hash, &pair);
404 void MC_pair_delete(mc_pair_t pair){
405 xbt_free(pair->graph_state->proc_status);
406 xbt_free(pair->graph_state);
412 int MC_automaton_evaluate_label(xbt_exp_label_t l){
416 int left_res = MC_automaton_evaluate_label(l->u.or_and.left_exp);
417 int right_res = MC_automaton_evaluate_label(l->u.or_and.right_exp);
418 return (left_res || right_res);
422 int left_res = MC_automaton_evaluate_label(l->u.or_and.left_exp);
423 int right_res = MC_automaton_evaluate_label(l->u.or_and.right_exp);
424 return (left_res && right_res);
428 int res = MC_automaton_evaluate_label(l->u.exp_not);
433 unsigned int cursor = 0;
434 xbt_propositional_symbol_t p = NULL;
436 xbt_dynar_foreach(automaton->propositional_symbols, cursor, p){
437 if(strcmp(p->pred, l->u.predicat) == 0){
458 /********************* Double-DFS stateless *******************/
460 void MC_pair_stateless_delete(mc_pair_stateless_t pair){
461 xbt_free(pair->graph_state->proc_status);
462 xbt_free(pair->graph_state);
466 mc_pair_stateless_t new_pair_stateless(mc_state_t sg, xbt_state_t st, int r){
467 mc_pair_stateless_t p = NULL;
468 p = xbt_new0(s_mc_pair_stateless_t, 1);
469 p->automaton_state = st;
472 mc_stats_pair->expanded_pairs++;
476 void MC_ddfs_stateless_init(){
478 XBT_DEBUG("**************************************************");
479 XBT_DEBUG("Double-DFS stateless init");
480 XBT_DEBUG("**************************************************");
482 mc_pair_stateless_t mc_initial_pair = NULL;
483 mc_state_t initial_graph_state = NULL;
484 smx_process_t process;
486 MC_wait_for_requests();
490 initial_graph_state = MC_state_pair_new();
491 xbt_swag_foreach(process, simix_global->process_list){
492 if(MC_process_is_enabled(process)){
493 MC_state_interleave_process(initial_graph_state, process);
497 reached_pairs = xbt_fifo_new();
498 //visited_pairs = xbt_dynar_new(sizeof(mc_pair_visited_t), NULL);
499 visited_pairs_hash = xbt_dynar_new(sizeof(mc_pair_visited_hash_t), NULL);
500 successors = xbt_dynar_new(sizeof(mc_pair_stateless_t), NULL);
502 /* Save the initial state */
503 initial_snapshot_liveness = xbt_new0(s_mc_snapshot_t, 1);
504 MC_take_snapshot_to_restore_liveness(initial_snapshot_liveness);
508 unsigned int cursor = 0;
511 xbt_dynar_foreach(automaton->states, cursor, state){
512 if(state->type == -1){
515 mc_initial_pair = new_pair_stateless(initial_graph_state, state, MC_state_interleave_size(initial_graph_state));
516 xbt_fifo_unshift(mc_stack_liveness_stateless, mc_initial_pair);
520 MC_restore_snapshot(initial_snapshot_liveness);
524 MC_ddfs_stateless(0);
527 if(state->type == 2){
530 mc_initial_pair = new_pair_stateless(initial_graph_state, state, MC_state_interleave_size(initial_graph_state));
531 xbt_fifo_unshift(mc_stack_liveness_stateless, mc_initial_pair);
534 set_pair_reached(state);
537 MC_restore_snapshot(initial_snapshot_liveness);
541 MC_ddfs_stateless(1);
550 void MC_ddfs_stateless(int search_cycle){
552 smx_process_t process;
553 mc_pair_stateless_t current_pair = NULL;
555 if(xbt_fifo_size(mc_stack_liveness_stateless) == 0)
559 /* Get current pair */
560 current_pair = (mc_pair_stateless_t)xbt_fifo_get_item_content(xbt_fifo_get_first_item(mc_stack_liveness_stateless));
562 /* Update current state in buchi automaton */
563 automaton->current_state = current_pair->automaton_state;
566 XBT_DEBUG("********************* ( Depth = %d, search_cycle = %d )", xbt_fifo_size(mc_stack_liveness_stateless), search_cycle);
567 XBT_DEBUG("Pair : graph=%p, automaton=%p(%s), %u interleave", current_pair->graph_state, current_pair->automaton_state, current_pair->automaton_state->id, MC_state_interleave_size(current_pair->graph_state));
569 mc_stats_pair->visited_pairs++;
574 mc_state_t next_graph_state = NULL;
575 smx_req_t req = NULL;
578 xbt_transition_t transition_succ;
579 unsigned int cursor = 0;
582 mc_pair_stateless_t next_pair = NULL;
583 mc_pair_stateless_t pair_succ;
585 if(xbt_fifo_size(mc_stack_liveness_stateless) < MAX_DEPTH_LIVENESS){
587 //set_pair_visited(current_pair->automaton_state, search_cycle);
588 set_pair_visited_hash(current_pair->automaton_state, search_cycle);
590 //XBT_DEBUG("Visited pairs : %d", xbt_fifo_size(visited_pairs));
591 XBT_DEBUG("Visited pairs : %lu", xbt_dynar_length(visited_pairs_hash));
593 if(current_pair->requests > 0){
595 while((req = MC_state_get_request(current_pair->graph_state, &value)) != NULL){
597 /* Debug information */
598 if(XBT_LOG_ISENABLED(mc_liveness, xbt_log_priority_debug)){
599 req_str = MC_request_to_string(req, value);
600 XBT_DEBUG("Execute: %s", req_str);
604 MC_state_set_executed_request(current_pair->graph_state, req, value);
606 /* Answer the request */
607 SIMIX_request_pre(req, value);
609 /* Wait for requests (schedules processes) */
610 MC_wait_for_requests();
615 /* Create the new expanded graph_state */
616 next_graph_state = MC_state_pair_new();
618 /* Get enabled process and insert it in the interleave set of the next graph_state */
619 xbt_swag_foreach(process, simix_global->process_list){
620 if(MC_process_is_enabled(process)){
621 MC_state_interleave_process(next_graph_state, process);
625 xbt_dynar_reset(successors);
631 xbt_dynar_foreach(current_pair->automaton_state->out, cursor, transition_succ){
633 res = MC_automaton_evaluate_label(transition_succ->label);
635 if(res == 1){ // enabled transition in automaton
637 next_pair = new_pair_stateless(next_graph_state, transition_succ->dst, MC_state_interleave_size(next_graph_state));
638 xbt_dynar_push(successors, &next_pair);
646 xbt_dynar_foreach(current_pair->automaton_state->out, cursor, transition_succ){
648 res = MC_automaton_evaluate_label(transition_succ->label);
650 if(res == 2){ // true transition in automaton
652 next_pair = new_pair_stateless(next_graph_state, transition_succ->dst, MC_state_interleave_size(next_graph_state));
653 xbt_dynar_push(successors, &next_pair);
661 xbt_dynar_foreach(successors, cursor, pair_succ){
663 //if(!visited(pair_succ->automaton_state, search_cycle)){
664 if(!visited_hash(pair_succ->automaton_state, search_cycle)){
666 if(search_cycle == 1){
668 if((pair_succ->automaton_state->type == 1) || (pair_succ->automaton_state->type == 2)){
670 if(reached(pair_succ->automaton_state) == 1){
672 XBT_DEBUG("Next pair (depth = %d, %d interleave) already reached !", xbt_fifo_size(mc_stack_liveness_stateless) + 1, MC_state_interleave_size(pair_succ->graph_state));
674 XBT_INFO("*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*");
675 XBT_INFO("| ACCEPTANCE CYCLE |");
676 XBT_INFO("*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*");
677 XBT_INFO("Counter-example that violates formula :");
678 MC_show_stack_liveness_stateless(mc_stack_liveness_stateless);
679 MC_dump_stack_liveness_stateless(mc_stack_liveness_stateless);
680 MC_print_statistics_pairs(mc_stats_pair);
685 XBT_DEBUG("Next pair (depth =%d) -> Acceptance pair : graph=%p, automaton=%p(%s)", xbt_fifo_size(mc_stack_liveness_stateless) + 1, pair_succ->graph_state, pair_succ->automaton_state, pair_succ->automaton_state->id);
687 set_pair_reached(pair_succ->automaton_state);
689 XBT_DEBUG("Reached pairs : %d", xbt_fifo_size(reached_pairs));
697 if(((pair_succ->automaton_state->type == 1) || (pair_succ->automaton_state->type == 2))){
699 XBT_DEBUG("Next pair (depth =%d) -> Acceptance pair : graph=%p, automaton=%p(%s)", xbt_fifo_size(mc_stack_liveness_stateless) + 1, pair_succ->graph_state, pair_succ->automaton_state, pair_succ->automaton_state->id);
701 set_pair_reached(pair_succ->automaton_state);
705 XBT_DEBUG("Reached pairs : %d", xbt_fifo_size(reached_pairs));
712 xbt_fifo_unshift(mc_stack_liveness_stateless, pair_succ);
715 MC_ddfs_stateless(search_cycle);
717 /* Restore system before checking others successors */
718 if(cursor != (xbt_dynar_length(successors) - 1))
719 MC_replay_liveness(mc_stack_liveness_stateless, 1);
723 XBT_DEBUG("Next pair already visited");
725 if(search_cycle == 1){
727 if((pair_succ->automaton_state->type == 1) || (pair_succ->automaton_state->type == 2)){
729 if(reached(pair_succ->automaton_state) == 1){
731 XBT_DEBUG("Next pair (depth = %d, %d interleave) already reached !", xbt_fifo_size(mc_stack_liveness_stateless) + 1, MC_state_interleave_size(pair_succ->graph_state));
733 XBT_INFO("*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*");
734 XBT_INFO("| ACCEPTANCE CYCLE |");
735 XBT_INFO("*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*");
736 XBT_INFO("Counter-example that violates formula :");
737 MC_show_stack_liveness_stateless(mc_stack_liveness_stateless);
738 MC_dump_stack_liveness_stateless(mc_stack_liveness_stateless);
739 MC_print_statistics_pairs(mc_stats_pair);
750 if(MC_state_interleave_size(current_pair->graph_state) > 0){
751 XBT_DEBUG("Backtracking to depth %u", xbt_fifo_size(mc_stack_liveness_stateless));
752 MC_replay_liveness(mc_stack_liveness_stateless, 0);
757 }else{ /*No request to execute, search evolution in Büchi automaton */
761 /* Create the new expanded graph_state */
762 next_graph_state = MC_state_pair_new();
764 xbt_dynar_reset(successors);
770 xbt_dynar_foreach(current_pair->automaton_state->out, cursor, transition_succ){
772 res = MC_automaton_evaluate_label(transition_succ->label);
774 if(res == 1){ // enabled transition in automaton
776 next_pair = new_pair_stateless(next_graph_state, transition_succ->dst, MC_state_interleave_size(next_graph_state));
777 xbt_dynar_push(successors, &next_pair);
785 xbt_dynar_foreach(current_pair->automaton_state->out, cursor, transition_succ){
787 res = MC_automaton_evaluate_label(transition_succ->label);
789 if(res == 2){ // true transition in automaton
791 next_pair = new_pair_stateless(next_graph_state, transition_succ->dst, MC_state_interleave_size(next_graph_state));
792 xbt_dynar_push(successors, &next_pair);
800 xbt_dynar_foreach(successors, cursor, pair_succ){
802 //if(!visited(pair_succ->automaton_state, search_cycle)){
803 if(!visited_hash(pair_succ->automaton_state, search_cycle)){
805 if(search_cycle == 1){
807 if((pair_succ->automaton_state->type == 1) || (pair_succ->automaton_state->type == 2)){
809 if(reached(pair_succ->automaton_state) == 1){
811 XBT_DEBUG("Next pair (depth = %d) already reached !", xbt_fifo_size(mc_stack_liveness_stateless) + 1);
813 XBT_INFO("*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*");
814 XBT_INFO("| ACCEPTANCE CYCLE |");
815 XBT_INFO("*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*");
816 XBT_INFO("Counter-example that violates formula :");
817 MC_show_stack_liveness_stateless(mc_stack_liveness_stateless);
818 MC_dump_stack_liveness_stateless(mc_stack_liveness_stateless);
819 MC_print_statistics_pairs(mc_stats_pair);
824 XBT_DEBUG("Next pair (depth =%d) -> Acceptance pair : graph=%p, automaton=%p(%s)", xbt_fifo_size(mc_stack_liveness_stateless) + 1, pair_succ->graph_state, pair_succ->automaton_state, pair_succ->automaton_state->id);
826 set_pair_reached(pair_succ->automaton_state);
828 XBT_DEBUG("Reached pairs : %d", xbt_fifo_size(reached_pairs));
836 if(((pair_succ->automaton_state->type == 1) || (pair_succ->automaton_state->type == 2))){
838 set_pair_reached(pair_succ->automaton_state);
842 XBT_DEBUG("Reached pairs : %d", xbt_fifo_size(reached_pairs));
849 xbt_fifo_unshift(mc_stack_liveness_stateless, pair_succ);
852 MC_ddfs_stateless(search_cycle);
854 /* Restore system before checking others successors */
855 if(cursor != xbt_dynar_length(successors) - 1)
856 MC_replay_liveness(mc_stack_liveness_stateless, 1);
860 XBT_DEBUG("Next pair already visited");
862 if(search_cycle == 1){
864 if((pair_succ->automaton_state->type == 1) || (pair_succ->automaton_state->type == 2)){
866 if(reached(pair_succ->automaton_state) == 1){
868 XBT_DEBUG("Next pair (depth = %d, %d interleave) already reached !", xbt_fifo_size(mc_stack_liveness_stateless) + 1, MC_state_interleave_size(pair_succ->graph_state));
870 XBT_INFO("*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*");
871 XBT_INFO("| ACCEPTANCE CYCLE |");
872 XBT_INFO("*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*");
873 XBT_INFO("Counter-example that violates formula :");
874 MC_show_stack_liveness_stateless(mc_stack_liveness_stateless);
875 MC_dump_stack_liveness_stateless(mc_stack_liveness_stateless);
876 MC_print_statistics_pairs(mc_stats_pair);
892 XBT_DEBUG("Max depth reached");
896 if(xbt_fifo_size(mc_stack_liveness_stateless) == MAX_DEPTH_LIVENESS ){
897 XBT_DEBUG("Pair (graph=%p, automaton =%p, search_cycle = %u, depth = %d) shifted in stack, maximum depth reached", current_pair->graph_state, current_pair->automaton_state, search_cycle, xbt_fifo_size(mc_stack_liveness_stateless) );
899 XBT_DEBUG("Pair (graph=%p, automaton =%p, search_cycle = %u, depth = %d) shifted in stack", current_pair->graph_state, current_pair->automaton_state, search_cycle, xbt_fifo_size(mc_stack_liveness_stateless) );
904 xbt_fifo_shift(mc_stack_liveness_stateless);
905 if((current_pair->automaton_state->type == 1) || (current_pair->automaton_state->type == 2)){
906 xbt_fifo_shift(reached_pairs);