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_fifo_t visited_pairs;
9 xbt_fifo_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_fifo_size(visited_pairs) == 0){
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 xbt_fifo_item_t item = xbt_fifo_get_first_item(visited_pairs);
217 mc_pair_visited_t pair_test = NULL;
219 while(i < xbt_fifo_size(visited_pairs) && item != NULL){
221 pair_test = (mc_pair_visited_t) xbt_fifo_get_item_content(item);
223 if(pair_test != NULL){
224 if(pair_test->search_cycle == sc) {
225 if(automaton_state_compare(pair_test->automaton_state, st) == 0){
226 if(propositional_symbols_compare_value(pair_test->prop_ato, prop_ato) == 0){
227 if(snapshot_compare(pair_test->system_state, sn) == 0){
229 MC_free_snapshot(sn);
230 xbt_dynar_reset(prop_ato);
243 item = xbt_fifo_get_next_item(item);
250 MC_free_snapshot(sn);
251 xbt_dynar_reset(prop_ato);
260 int visited_hash(xbt_state_t st, int sc){
263 if(xbt_fifo_size(visited_pairs_hash) == 0){
271 mc_snapshot_t sn = xbt_new0(s_mc_snapshot_t, 1);
272 MC_take_snapshot_liveness(sn);
276 xbt_dynar_t prop_ato = xbt_dynar_new(sizeof(int), NULL);
278 /* Get values of propositional symbols */
279 unsigned int cursor = 0;
280 xbt_propositional_symbol_t ps = NULL;
284 xbt_dynar_foreach(automaton->propositional_symbols, cursor, ps){
287 xbt_dynar_push_as(prop_ato, int, res);
290 xbt_fifo_item_t item = xbt_fifo_get_first_item(visited_pairs_hash);
291 mc_pair_visited_hash_t pair_test = NULL;
295 while(i < xbt_fifo_size(visited_pairs_hash) && item != NULL){
297 pair_test = (mc_pair_visited_hash_t) xbt_fifo_get_item_content(item);
299 if(pair_test != NULL){
300 if(pair_test->search_cycle == sc) {
301 if(automaton_state_compare(pair_test->automaton_state, st) == 0){
302 if(propositional_symbols_compare_value(pair_test->prop_ato, prop_ato) == 0){
303 for(j=0 ; j< sn->num_reg ; j++){
304 if(xbt_dict_get_or_null_ext(pair_test->hash_regions, sn->regions[j]->data, sn->regions[j]->size) == NULL){
308 if(region_diff == 0){
309 MC_free_snapshot(sn);
310 xbt_dynar_reset(prop_ato);
320 item = xbt_fifo_get_next_item(item);
327 MC_free_snapshot(sn);
328 xbt_dynar_reset(prop_ato);
336 void set_pair_visited_hash(xbt_state_t st, int sc){
338 if(!visited_hash(st, sc)){
342 mc_snapshot_t sn = xbt_new0(s_mc_snapshot_t, 1);
343 MC_take_snapshot_liveness(sn);
345 mc_pair_visited_hash_t pair = NULL;
346 pair = xbt_new0(s_mc_pair_visited_hash_t, 1);
347 pair->automaton_state = st;
348 pair->prop_ato = xbt_dynar_new(sizeof(int), NULL);
349 pair->search_cycle = sc;
350 pair->hash_regions = xbt_dict_new();
354 for(i=0 ; i< sn->num_reg ; i++){
355 switch(sn->regions[i]->type){
357 xbt_dict_set_ext(pair->hash_regions, sn->regions[i]->data, sn->regions[i]->size, "heap", NULL);
360 xbt_dict_set_ext(pair->hash_regions, sn->regions[i]->data, sn->regions[i]->size, "libsimgrid", NULL);
363 xbt_dict_set_ext(pair->hash_regions, sn->regions[i]->data, sn->regions[i]->size, "prog", NULL);
368 /* Get values of propositional symbols */
369 unsigned int cursor = 0;
370 xbt_propositional_symbol_t ps = NULL;
374 xbt_dynar_foreach(automaton->propositional_symbols, cursor, ps){
377 xbt_dynar_push_as(pair->prop_ato, int, res);
380 xbt_fifo_unshift(visited_pairs_hash, pair);
382 MC_free_snapshot(sn);
391 void set_pair_visited(xbt_state_t st, int sc){
396 mc_pair_visited_t pair = NULL;
397 pair = xbt_new0(s_mc_pair_visited_t, 1);
398 pair->automaton_state = st;
399 pair->prop_ato = xbt_dynar_new(sizeof(int), NULL);
400 pair->search_cycle = sc;
401 pair->system_state = xbt_new0(s_mc_snapshot_t, 1);
402 MC_take_snapshot_liveness(pair->system_state);
405 /* Get values of propositional symbols */
406 unsigned int cursor = 0;
407 xbt_propositional_symbol_t ps = NULL;
411 xbt_dynar_foreach(automaton->propositional_symbols, cursor, ps){
414 xbt_dynar_push_as(pair->prop_ato, int, res);
417 xbt_fifo_unshift(visited_pairs, pair);
424 void MC_pair_delete(mc_pair_t pair){
425 xbt_free(pair->graph_state->proc_status);
426 xbt_free(pair->graph_state);
432 int MC_automaton_evaluate_label(xbt_exp_label_t l){
436 int left_res = MC_automaton_evaluate_label(l->u.or_and.left_exp);
437 int right_res = MC_automaton_evaluate_label(l->u.or_and.right_exp);
438 return (left_res || right_res);
442 int left_res = MC_automaton_evaluate_label(l->u.or_and.left_exp);
443 int right_res = MC_automaton_evaluate_label(l->u.or_and.right_exp);
444 return (left_res && right_res);
448 int res = MC_automaton_evaluate_label(l->u.exp_not);
453 unsigned int cursor = 0;
454 xbt_propositional_symbol_t p = NULL;
456 xbt_dynar_foreach(automaton->propositional_symbols, cursor, p){
457 if(strcmp(p->pred, l->u.predicat) == 0){
478 /********************* Double-DFS stateless *******************/
480 void MC_pair_stateless_delete(mc_pair_stateless_t pair){
481 xbt_free(pair->graph_state->proc_status);
482 xbt_free(pair->graph_state);
486 mc_pair_stateless_t new_pair_stateless(mc_state_t sg, xbt_state_t st, int r){
487 mc_pair_stateless_t p = NULL;
488 p = xbt_new0(s_mc_pair_stateless_t, 1);
489 p->automaton_state = st;
492 mc_stats_pair->expanded_pairs++;
496 void MC_ddfs_stateless_init(){
498 XBT_DEBUG("**************************************************");
499 XBT_DEBUG("Double-DFS stateless init");
500 XBT_DEBUG("**************************************************");
502 mc_pair_stateless_t mc_initial_pair = NULL;
503 mc_state_t initial_graph_state = NULL;
504 smx_process_t process;
506 MC_wait_for_requests();
510 initial_graph_state = MC_state_pair_new();
511 xbt_swag_foreach(process, simix_global->process_list){
512 if(MC_process_is_enabled(process)){
513 MC_state_interleave_process(initial_graph_state, process);
517 reached_pairs = xbt_fifo_new();
518 //visited_pairs = xbt_fifo_new();
519 visited_pairs_hash = xbt_fifo_new();
520 successors = xbt_dynar_new(sizeof(mc_pair_stateless_t), NULL);
522 /* Save the initial state */
523 initial_snapshot_liveness = xbt_new0(s_mc_snapshot_t, 1);
524 MC_take_snapshot_to_restore_liveness(initial_snapshot_liveness);
528 unsigned int cursor = 0;
531 xbt_dynar_foreach(automaton->states, cursor, state){
532 if(state->type == -1){
535 mc_initial_pair = new_pair_stateless(initial_graph_state, state, MC_state_interleave_size(initial_graph_state));
536 xbt_fifo_unshift(mc_stack_liveness_stateless, mc_initial_pair);
540 MC_restore_snapshot(initial_snapshot_liveness);
544 MC_ddfs_stateless(0);
547 if(state->type == 2){
550 mc_initial_pair = new_pair_stateless(initial_graph_state, state, MC_state_interleave_size(initial_graph_state));
551 xbt_fifo_unshift(mc_stack_liveness_stateless, mc_initial_pair);
554 set_pair_reached(state);
557 MC_restore_snapshot(initial_snapshot_liveness);
561 MC_ddfs_stateless(1);
570 void MC_ddfs_stateless(int search_cycle){
572 smx_process_t process;
573 mc_pair_stateless_t current_pair = NULL;
575 if(xbt_fifo_size(mc_stack_liveness_stateless) == 0)
579 /* Get current pair */
580 current_pair = (mc_pair_stateless_t)xbt_fifo_get_item_content(xbt_fifo_get_first_item(mc_stack_liveness_stateless));
582 /* Update current state in buchi automaton */
583 automaton->current_state = current_pair->automaton_state;
586 XBT_DEBUG("********************* ( Depth = %d, search_cycle = %d )", xbt_fifo_size(mc_stack_liveness_stateless), search_cycle);
587 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));
589 mc_stats_pair->visited_pairs++;
594 mc_state_t next_graph_state = NULL;
595 smx_req_t req = NULL;
598 xbt_transition_t transition_succ;
599 unsigned int cursor = 0;
602 mc_pair_stateless_t next_pair = NULL;
603 mc_pair_stateless_t pair_succ;
605 if(xbt_fifo_size(mc_stack_liveness_stateless) < MAX_DEPTH_LIVENESS){
607 //set_pair_visited(current_pair->automaton_state, search_cycle);
608 set_pair_visited_hash(current_pair->automaton_state, search_cycle);
610 //XBT_DEBUG("Visited pairs : %d", xbt_fifo_size(visited_pairs));
611 XBT_DEBUG("Visited pairs : %d", xbt_fifo_size(visited_pairs_hash));
613 if(current_pair->requests > 0){
615 while((req = MC_state_get_request(current_pair->graph_state, &value)) != NULL){
617 /* Debug information */
618 if(XBT_LOG_ISENABLED(mc_liveness, xbt_log_priority_debug)){
619 req_str = MC_request_to_string(req, value);
620 XBT_DEBUG("Execute: %s", req_str);
624 MC_state_set_executed_request(current_pair->graph_state, req, value);
626 /* Answer the request */
627 SIMIX_request_pre(req, value);
629 /* Wait for requests (schedules processes) */
630 MC_wait_for_requests();
635 /* Create the new expanded graph_state */
636 next_graph_state = MC_state_pair_new();
638 /* Get enabled process and insert it in the interleave set of the next graph_state */
639 xbt_swag_foreach(process, simix_global->process_list){
640 if(MC_process_is_enabled(process)){
641 MC_state_interleave_process(next_graph_state, process);
645 xbt_dynar_reset(successors);
651 xbt_dynar_foreach(current_pair->automaton_state->out, cursor, transition_succ){
653 res = MC_automaton_evaluate_label(transition_succ->label);
655 if(res == 1){ // enabled transition in automaton
657 next_pair = new_pair_stateless(next_graph_state, transition_succ->dst, MC_state_interleave_size(next_graph_state));
658 xbt_dynar_push(successors, &next_pair);
666 xbt_dynar_foreach(current_pair->automaton_state->out, cursor, transition_succ){
668 res = MC_automaton_evaluate_label(transition_succ->label);
670 if(res == 2){ // true transition in automaton
672 next_pair = new_pair_stateless(next_graph_state, transition_succ->dst, MC_state_interleave_size(next_graph_state));
673 xbt_dynar_push(successors, &next_pair);
681 xbt_dynar_foreach(successors, cursor, pair_succ){
683 //if(!visited(pair_succ->automaton_state, search_cycle)){
684 if(!visited_hash(pair_succ->automaton_state, search_cycle)){
686 if(search_cycle == 1){
688 if((pair_succ->automaton_state->type == 1) || (pair_succ->automaton_state->type == 2)){
690 if(reached(pair_succ->automaton_state) == 1){
692 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));
694 XBT_INFO("*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*");
695 XBT_INFO("| ACCEPTANCE CYCLE |");
696 XBT_INFO("*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*");
697 XBT_INFO("Counter-example that violates formula :");
698 MC_show_stack_liveness_stateless(mc_stack_liveness_stateless);
699 MC_dump_stack_liveness_stateless(mc_stack_liveness_stateless);
700 MC_print_statistics_pairs(mc_stats_pair);
705 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);
707 set_pair_reached(pair_succ->automaton_state);
709 XBT_DEBUG("Reached pairs : %d", xbt_fifo_size(reached_pairs));
717 if(((pair_succ->automaton_state->type == 1) || (pair_succ->automaton_state->type == 2))){
719 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);
721 set_pair_reached(pair_succ->automaton_state);
725 XBT_DEBUG("Reached pairs : %d", xbt_fifo_size(reached_pairs));
732 xbt_fifo_unshift(mc_stack_liveness_stateless, pair_succ);
735 MC_ddfs_stateless(search_cycle);
737 /* Restore system before checking others successors */
738 if(cursor != (xbt_dynar_length(successors) - 1))
739 MC_replay_liveness(mc_stack_liveness_stateless, 1);
743 XBT_DEBUG("Next pair already visited");
745 if(search_cycle == 1){
747 if((pair_succ->automaton_state->type == 1) || (pair_succ->automaton_state->type == 2)){
749 if(reached(pair_succ->automaton_state) == 1){
751 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));
753 XBT_INFO("*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*");
754 XBT_INFO("| ACCEPTANCE CYCLE |");
755 XBT_INFO("*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*");
756 XBT_INFO("Counter-example that violates formula :");
757 MC_show_stack_liveness_stateless(mc_stack_liveness_stateless);
758 MC_dump_stack_liveness_stateless(mc_stack_liveness_stateless);
759 MC_print_statistics_pairs(mc_stats_pair);
770 if(MC_state_interleave_size(current_pair->graph_state) > 0){
771 XBT_DEBUG("Backtracking to depth %u", xbt_fifo_size(mc_stack_liveness_stateless));
772 MC_replay_liveness(mc_stack_liveness_stateless, 0);
777 }else{ /*No request to execute, search evolution in Büchi automaton */
781 /* Create the new expanded graph_state */
782 next_graph_state = MC_state_pair_new();
784 xbt_dynar_reset(successors);
790 xbt_dynar_foreach(current_pair->automaton_state->out, cursor, transition_succ){
792 res = MC_automaton_evaluate_label(transition_succ->label);
794 if(res == 1){ // enabled transition in automaton
796 next_pair = new_pair_stateless(next_graph_state, transition_succ->dst, MC_state_interleave_size(next_graph_state));
797 xbt_dynar_push(successors, &next_pair);
805 xbt_dynar_foreach(current_pair->automaton_state->out, cursor, transition_succ){
807 res = MC_automaton_evaluate_label(transition_succ->label);
809 if(res == 2){ // true transition in automaton
811 next_pair = new_pair_stateless(next_graph_state, transition_succ->dst, MC_state_interleave_size(next_graph_state));
812 xbt_dynar_push(successors, &next_pair);
820 xbt_dynar_foreach(successors, cursor, pair_succ){
822 //if(!visited(pair_succ->automaton_state, search_cycle)){
823 if(!visited_hash(pair_succ->automaton_state, search_cycle)){
825 if(search_cycle == 1){
827 if((pair_succ->automaton_state->type == 1) || (pair_succ->automaton_state->type == 2)){
829 if(reached(pair_succ->automaton_state) == 1){
831 XBT_DEBUG("Next pair (depth = %d) already reached !", xbt_fifo_size(mc_stack_liveness_stateless) + 1);
833 XBT_INFO("*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*");
834 XBT_INFO("| ACCEPTANCE CYCLE |");
835 XBT_INFO("*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*");
836 XBT_INFO("Counter-example that violates formula :");
837 MC_show_stack_liveness_stateless(mc_stack_liveness_stateless);
838 MC_dump_stack_liveness_stateless(mc_stack_liveness_stateless);
839 MC_print_statistics_pairs(mc_stats_pair);
844 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);
846 set_pair_reached(pair_succ->automaton_state);
848 XBT_DEBUG("Reached pairs : %d", xbt_fifo_size(reached_pairs));
856 if(((pair_succ->automaton_state->type == 1) || (pair_succ->automaton_state->type == 2))){
858 set_pair_reached(pair_succ->automaton_state);
862 XBT_DEBUG("Reached pairs : %d", xbt_fifo_size(reached_pairs));
869 xbt_fifo_unshift(mc_stack_liveness_stateless, pair_succ);
872 MC_ddfs_stateless(search_cycle);
874 /* Restore system before checking others successors */
875 if(cursor != xbt_dynar_length(successors) - 1)
876 MC_replay_liveness(mc_stack_liveness_stateless, 1);
880 XBT_DEBUG("Next pair already visited");
882 if(search_cycle == 1){
884 if((pair_succ->automaton_state->type == 1) || (pair_succ->automaton_state->type == 2)){
886 if(reached(pair_succ->automaton_state) == 1){
888 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));
890 XBT_INFO("*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*");
891 XBT_INFO("| ACCEPTANCE CYCLE |");
892 XBT_INFO("*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*");
893 XBT_INFO("Counter-example that violates formula :");
894 MC_show_stack_liveness_stateless(mc_stack_liveness_stateless);
895 MC_dump_stack_liveness_stateless(mc_stack_liveness_stateless);
896 MC_print_statistics_pairs(mc_stats_pair);
912 XBT_DEBUG("Max depth reached");
916 if(xbt_fifo_size(mc_stack_liveness_stateless) == MAX_DEPTH_LIVENESS ){
917 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) );
919 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) );
924 xbt_fifo_shift(mc_stack_liveness_stateless);
925 if((current_pair->automaton_state->type == 1) || (current_pair->automaton_state->type == 2)){
926 xbt_fifo_shift(reached_pairs);