Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
model-checker : examples changed
[simgrid.git] / src / mc / mc_liveness.c
1 #include "private.h"
2 #include "unistd.h"
3
4 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(mc_liveness, mc,
5                                 "Logging specific to algorithms for liveness properties verification");
6
7 xbt_dynar_t initial_pairs = NULL;
8 xbt_fifo_t reached_pairs;
9 xbt_fifo_t visited_pairs;
10 xbt_dynar_t successors = NULL;
11 extern mc_snapshot_t initial_snapshot;
12
13 int snapshot_compare(mc_snapshot_t s1, mc_snapshot_t s2){
14
15   XBT_DEBUG("Compare snapshot");
16   
17   if(s1->num_reg != s2->num_reg){
18     XBT_DEBUG("Different num_reg (s1 = %d, s2 = %d)", s1->num_reg, s2->num_reg);
19     return 1;
20   }
21
22   int i;
23   int errors = 0;
24
25   for(i=0 ; i< s1->num_reg ; i++){
26     
27     if(s1->regions[i]->size != s2->regions[i]->size){
28       XBT_DEBUG("Different size of region");
29       return 1;
30     }
31     
32     if(s1->regions[i]->start_addr != s2->regions[i]->start_addr){
33       XBT_DEBUG("Different start addr of region");
34       return 1;
35     }
36     
37     if(s1->regions[i]->type != s2->regions[i]->type){
38       XBT_DEBUG("Different type of region");
39       return 1;
40     }
41
42
43     if(s1->regions[i]->type == 0){ 
44       if(mmalloc_compare_heap(s1->regions[i]->start_addr, s2->regions[i]->start_addr)){
45         XBT_DEBUG("Different heap (mmalloc_compare)");
46         errors++; 
47       }
48     }else{
49       if(memcmp(s1->regions[i]->data, s2->regions[i]->data, s1->regions[i]->size) != 0){
50         XBT_DEBUG("Different memcmp for data in libsimgrid or program");
51         errors++;
52       }
53     }
54     
55     
56   }
57
58   return (errors>0);
59
60 }
61
62 int reached(xbt_automaton_t a, xbt_state_t st, mc_snapshot_t s){
63
64
65   if(xbt_fifo_size(reached_pairs) == 0){
66
67     return 0;
68
69   }else{
70
71     MC_SET_RAW_MEM;
72     
73     xbt_dynar_t prop_ato = xbt_dynar_new(sizeof(int), NULL);
74
75     /* Get values of propositional symbols */
76     unsigned int cursor = 0;
77     xbt_propositional_symbol_t ps = NULL;
78     xbt_dynar_foreach(a->propositional_symbols, cursor, ps){
79       int (*f)() = ps->function;
80       int res = (*f)();
81       xbt_dynar_push_as(prop_ato, int, res);
82     }
83
84
85
86     int i=0;
87     xbt_fifo_item_t item = xbt_fifo_get_first_item(reached_pairs);
88     mc_pair_reached_t pair_test = NULL;
89
90     while(i < xbt_fifo_size(reached_pairs)){
91
92       pair_test = (mc_pair_reached_t) xbt_fifo_get_item_content(item);
93       
94       if(automaton_state_compare(pair_test->automaton_state, st) == 0){
95         if(propositional_symbols_compare_value(pair_test->prop_ato, prop_ato) == 0){
96           if(snapshot_compare(s, pair_test->system_state) == 0){
97             MC_UNSET_RAW_MEM;
98             return 1;
99           }
100         }
101       }
102
103       item = xbt_fifo_get_next_item(item);
104       
105       i++;
106
107     }
108
109     MC_UNSET_RAW_MEM;
110     return 0;
111     
112   }
113 }
114
115 void set_pair_reached(xbt_automaton_t a, xbt_state_t st, mc_snapshot_t sn){
116
117  
118   MC_SET_RAW_MEM;
119   
120   mc_pair_reached_t pair = NULL;
121   pair = xbt_new0(s_mc_pair_reached_t, 1);
122   pair->automaton_state = st;
123   pair->prop_ato = xbt_dynar_new(sizeof(int), NULL);
124   pair->system_state = sn;
125
126   /* Get values of propositional symbols */
127   unsigned int cursor = 0;
128   xbt_propositional_symbol_t ps = NULL;
129   xbt_dynar_foreach(a->propositional_symbols, cursor, ps){
130     int (*f)() = ps->function;
131     int res = (*f)();
132     xbt_dynar_push_as(pair->prop_ato, int, res);
133   }
134   
135   xbt_fifo_unshift(reached_pairs, pair); 
136   
137   MC_UNSET_RAW_MEM;
138   
139   
140 }
141
142 int visited(xbt_automaton_t a, xbt_state_t st, mc_snapshot_t s, int sc){
143
144
145   if(xbt_fifo_size(visited_pairs) == 0){
146
147     return 0;
148
149   }else{
150
151     MC_SET_RAW_MEM;
152     
153     xbt_dynar_t prop_ato = xbt_dynar_new(sizeof(int), NULL);
154
155     /* Get values of propositional symbols */
156     unsigned int cursor = 0;
157     xbt_propositional_symbol_t ps = NULL;
158     xbt_dynar_foreach(a->propositional_symbols, cursor, ps){
159       int (*f)() = ps->function;
160       int res = (*f)();
161       xbt_dynar_push_as(prop_ato, int, res);
162     }
163
164
165
166     int i=0;
167     xbt_fifo_item_t item = xbt_fifo_get_first_item(visited_pairs);
168     mc_pair_visited_t pair_test = NULL;
169
170     while(i < xbt_fifo_size(visited_pairs)){
171
172       pair_test = (mc_pair_visited_t) xbt_fifo_get_item_content(item);
173       
174       if(pair_test->search_cycle == sc) {
175         if(automaton_state_compare(pair_test->automaton_state, st) == 0){
176           if(propositional_symbols_compare_value(pair_test->prop_ato, prop_ato) == 0){
177             if(snapshot_compare(s, pair_test->system_state) == 0){
178               MC_UNSET_RAW_MEM;
179               return 1;
180             }
181           }
182         }
183       }
184
185       item = xbt_fifo_get_next_item(item);
186       
187       i++;
188
189     }
190
191     MC_UNSET_RAW_MEM;
192     return 0;
193     
194   }
195 }
196
197 void set_pair_visited(xbt_automaton_t a, xbt_state_t st, mc_snapshot_t sn, int sc){
198
199  
200   MC_SET_RAW_MEM;
201   
202   mc_pair_visited_t pair = NULL;
203   pair = xbt_new0(s_mc_pair_visited_t, 1);
204   pair->automaton_state = st;
205   pair->prop_ato = xbt_dynar_new(sizeof(int), NULL);
206   pair->system_state = sn;
207   pair->search_cycle = sc;
208
209   /* Get values of propositional symbols */
210   unsigned int cursor = 0;
211   xbt_propositional_symbol_t ps = NULL;
212   xbt_dynar_foreach(a->propositional_symbols, cursor, ps){
213     int (*f)() = ps->function;
214     int res = (*f)();
215     xbt_dynar_push_as(pair->prop_ato, int, res);
216   }
217   
218   xbt_fifo_unshift(visited_pairs, pair); 
219   
220   MC_UNSET_RAW_MEM;
221   
222   
223 }
224
225 void MC_pair_delete(mc_pair_t pair){
226   xbt_free(pair->graph_state->proc_status);
227   xbt_free(pair->graph_state);
228   //xbt_free(pair->automaton_state); -> FIXME : à implémenter
229   xbt_free(pair);
230 }
231
232
233
234 int MC_automaton_evaluate_label(xbt_automaton_t a, xbt_exp_label_t l){
235   
236   switch(l->type){
237   case 0 : {
238     int left_res = MC_automaton_evaluate_label(a, l->u.or_and.left_exp);
239     int right_res = MC_automaton_evaluate_label(a, l->u.or_and.right_exp);
240     return (left_res || right_res);
241     break;
242   }
243   case 1 : {
244     int left_res = MC_automaton_evaluate_label(a, l->u.or_and.left_exp);
245     int right_res = MC_automaton_evaluate_label(a, l->u.or_and.right_exp);
246     return (left_res && right_res);
247     break;
248   }
249   case 2 : {
250     int res = MC_automaton_evaluate_label(a, l->u.exp_not);
251     return (!res);
252     break;
253   }
254   case 3 : { 
255     unsigned int cursor = 0;
256     xbt_propositional_symbol_t p = NULL;
257     xbt_dynar_foreach(a->propositional_symbols, cursor, p){
258       if(strcmp(p->pred, l->u.predicat) == 0){
259         int (*f)() = p->function;
260         return (*f)();
261       }
262     }
263     return -1;
264     break;
265   }
266   case 4 : {
267     return 2;
268     break;
269   }
270   default : 
271     return -1;
272   }
273 }
274
275
276
277
278
279 /********************* Double-DFS stateless *******************/
280
281 void MC_pair_stateless_delete(mc_pair_stateless_t pair){
282   xbt_free(pair->graph_state->proc_status);
283   xbt_free(pair->graph_state);
284   //xbt_free(pair->automaton_state); -> FIXME : à implémenter
285   xbt_free(pair);
286 }
287
288 mc_pair_stateless_t new_pair_stateless(mc_state_t sg, xbt_state_t st, int r){
289   mc_pair_stateless_t p = NULL;
290   p = xbt_new0(s_mc_pair_stateless_t, 1);
291   p->automaton_state = st;
292   p->graph_state = sg;
293   p->requests = r;
294   mc_stats_pair->expanded_pairs++;
295   return p;
296 }
297
298 void MC_ddfs_stateless_init(xbt_automaton_t a, char *prgm){
299
300   XBT_DEBUG("**************************************************");
301   XBT_DEBUG("Double-DFS stateless init");
302   XBT_DEBUG("**************************************************");
303  
304   mc_pair_stateless_t mc_initial_pair = NULL;
305   mc_state_t initial_graph_state = NULL;
306   smx_process_t process; 
307  
308   MC_wait_for_requests();
309
310   MC_SET_RAW_MEM;
311
312   initial_graph_state = MC_state_pair_new();
313   xbt_swag_foreach(process, simix_global->process_list){
314     if(MC_process_is_enabled(process)){
315       MC_state_interleave_process(initial_graph_state, process);
316     }
317   }
318
319   reached_pairs = xbt_fifo_new(); 
320   visited_pairs = xbt_fifo_new();
321   successors = xbt_dynar_new(sizeof(mc_pair_stateless_t), NULL);
322
323   initial_snapshot = xbt_new0(s_mc_snapshot_t, 1);
324   MC_take_snapshot_liveness(initial_snapshot, prgm);
325
326   MC_UNSET_RAW_MEM; 
327
328   unsigned int cursor = 0;
329   xbt_state_t state;
330
331   xbt_dynar_foreach(a->states, cursor, state){
332     if(state->type == -1){
333       
334       MC_SET_RAW_MEM;
335       mc_initial_pair = new_pair_stateless(initial_graph_state, state, MC_state_interleave_size(initial_graph_state));
336       xbt_fifo_unshift(mc_stack_liveness_stateless, mc_initial_pair);
337       MC_UNSET_RAW_MEM;
338       
339       if(cursor != 0){
340         MC_restore_snapshot(initial_snapshot);
341         MC_UNSET_RAW_MEM;
342       }
343
344       MC_ddfs_stateless(a, 0, 0, prgm);
345
346     }else{
347       if(state->type == 2){
348       
349         MC_SET_RAW_MEM;
350         mc_initial_pair = new_pair_stateless(initial_graph_state, state, MC_state_interleave_size(initial_graph_state));
351         xbt_fifo_unshift(mc_stack_liveness_stateless, mc_initial_pair);
352         MC_UNSET_RAW_MEM;
353
354         set_pair_reached(a, state, initial_snapshot);
355         
356         if(cursor != 0){
357           MC_restore_snapshot(initial_snapshot);
358           MC_UNSET_RAW_MEM;
359         }
360         
361         MC_ddfs_stateless(a, 1, 0, prgm);
362         
363       }
364     }
365   } 
366
367 }
368
369
370 void MC_ddfs_stateless(xbt_automaton_t a, int search_cycle, int replay, char *prgm){
371
372   smx_process_t process;
373   mc_pair_stateless_t current_pair = NULL;
374   mc_snapshot_t snapshot = NULL;
375   mc_snapshot_t current_snapshot = NULL;
376
377   if(xbt_fifo_size(mc_stack_liveness_stateless) == 0)
378     return;
379
380   if(replay == 1){
381     MC_replay_liveness(mc_stack_liveness_stateless, 0);
382     current_pair = (mc_pair_stateless_t)xbt_fifo_get_item_content(xbt_fifo_get_first_item(mc_stack_liveness_stateless));
383     xbt_swag_foreach(process, simix_global->process_list){
384       if(MC_process_is_enabled(process)){
385         MC_state_interleave_process(current_pair->graph_state, process);
386       }
387     }
388   }
389
390   /* Get current pair */
391   current_pair = (mc_pair_stateless_t)xbt_fifo_get_item_content(xbt_fifo_get_first_item(mc_stack_liveness_stateless));
392
393   /* Update current state in buchi automaton */
394   a->current_state = current_pair->automaton_state;
395
396  
397   XBT_DEBUG("********************* ( Depth = %d, search_cycle = %d )", xbt_fifo_size(mc_stack_liveness_stateless), search_cycle);
398   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));
399  
400   mc_stats_pair->visited_pairs++;
401
402   int value;
403   mc_state_t next_graph_state = NULL;
404   smx_req_t req = NULL;
405   char *req_str;
406
407   xbt_transition_t transition_succ;
408   unsigned int cursor = 0;
409   int res;
410
411   mc_pair_stateless_t next_pair = NULL;
412   mc_pair_stateless_t pair_succ;
413
414   if(xbt_fifo_size(mc_stack_liveness_stateless) < MAX_DEPTH_LIVENESS){
415
416     MC_SET_RAW_MEM;
417     current_snapshot = xbt_new0(s_mc_snapshot_t, 1);
418     MC_take_snapshot_liveness(current_snapshot, prgm);
419     MC_UNSET_RAW_MEM;
420
421     set_pair_visited(a, current_pair->automaton_state, current_snapshot, search_cycle);
422
423     if(current_pair->requests > 0){
424
425       while((req = MC_state_get_request(current_pair->graph_state, &value)) != NULL){
426    
427         /* Debug information */
428         if(XBT_LOG_ISENABLED(mc_liveness, xbt_log_priority_debug)){
429           req_str = MC_request_to_string(req, value);
430           XBT_DEBUG("Execute: %s", req_str);
431           xbt_free(req_str);
432         }
433
434         MC_state_set_executed_request(current_pair->graph_state, req, value);   
435     
436         /* Answer the request */
437         SIMIX_request_pre(req, value);
438
439         /* Wait for requests (schedules processes) */
440         MC_wait_for_requests();
441
442
443         MC_SET_RAW_MEM;
444
445         /* Create the new expanded graph_state */
446         next_graph_state = MC_state_pair_new();
447
448         /* Get enabled process and insert it in the interleave set of the next graph_state */
449         xbt_swag_foreach(process, simix_global->process_list){
450           if(MC_process_is_enabled(process)){
451             MC_state_interleave_process(next_graph_state, process);
452           }
453         }
454
455         xbt_dynar_reset(successors);
456
457         MC_UNSET_RAW_MEM;
458
459
460         cursor= 0;
461         xbt_dynar_foreach(current_pair->automaton_state->out, cursor, transition_succ){
462
463           res = MC_automaton_evaluate_label(a, transition_succ->label);
464
465           if(res == 1){ // enabled transition in automaton
466             MC_SET_RAW_MEM;
467             next_pair = new_pair_stateless(next_graph_state, transition_succ->dst, MC_state_interleave_size(next_graph_state));
468             xbt_dynar_push(successors, &next_pair);
469             MC_UNSET_RAW_MEM;
470           }
471
472         }
473
474         cursor = 0;
475    
476         xbt_dynar_foreach(current_pair->automaton_state->out, cursor, transition_succ){
477       
478           res = MC_automaton_evaluate_label(a, transition_succ->label);
479         
480           if(res == 2){ // true transition in automaton
481             MC_SET_RAW_MEM;
482             next_pair = new_pair_stateless(next_graph_state, transition_succ->dst, MC_state_interleave_size(next_graph_state));
483             xbt_dynar_push(successors, &next_pair);
484             MC_UNSET_RAW_MEM;
485           }
486
487         }
488
489         cursor = 0; 
490
491         MC_SET_RAW_MEM;
492         snapshot = xbt_new0(s_mc_snapshot_t, 1);
493         MC_take_snapshot_liveness(snapshot, prgm);
494         MC_UNSET_RAW_MEM;
495         
496         xbt_dynar_foreach(successors, cursor, pair_succ){
497
498           if(!visited(a, pair_succ->automaton_state, snapshot, search_cycle)){
499
500             if(search_cycle == 1){
501
502               if((pair_succ->automaton_state->type == 1) || (pair_succ->automaton_state->type == 2)){ 
503                       
504                 if(reached(a, pair_succ->automaton_state, snapshot) == 1){
505
506                   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));
507
508                   XBT_INFO("*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*");
509                   XBT_INFO("|             ACCEPTANCE CYCLE            |");
510                   XBT_INFO("*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*");
511                   XBT_INFO("Counter-example that violates formula :");
512                   MC_show_stack_liveness_stateless(mc_stack_liveness_stateless);
513                   MC_dump_stack_liveness_stateless(mc_stack_liveness_stateless);
514                   MC_print_statistics_pairs(mc_stats_pair);
515                   exit(0);
516
517                 }else{
518
519                   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);
520               
521                   set_pair_reached(a, pair_succ->automaton_state, snapshot); 
522
523                 }
524
525               }
526
527             }else{
528           
529               if(((pair_succ->automaton_state->type == 1) || (pair_succ->automaton_state->type == 2))){
530
531                 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);
532             
533                 set_pair_reached(a, pair_succ->automaton_state, snapshot); 
534               
535                 search_cycle = 1;
536
537               }
538
539             }
540
541             MC_SET_RAW_MEM;
542             xbt_fifo_unshift(mc_stack_liveness_stateless, pair_succ);
543             MC_UNSET_RAW_MEM;
544
545             MC_ddfs_stateless(a, search_cycle, 0, prgm);
546
547             /* Restore system before checking others successors */
548             if(cursor != (xbt_dynar_length(successors) - 1))
549               MC_replay_liveness(mc_stack_liveness_stateless, 1);
550         
551           }else{
552             
553             XBT_DEBUG("Next pair already visited");
554             
555           }
556         }
557
558         if(MC_state_interleave_size(current_pair->graph_state) > 0){
559           XBT_DEBUG("Backtracking to depth %u", xbt_fifo_size(mc_stack_liveness_stateless));
560           MC_replay_liveness(mc_stack_liveness_stateless, 0);
561         }
562       }
563
564  
565     }else{  /*No request to execute, search evolution in Büchi automaton */
566
567       MC_SET_RAW_MEM;
568
569       /* Create the new expanded graph_state */
570       next_graph_state = MC_state_pair_new();
571
572       xbt_dynar_reset(successors);
573
574       MC_UNSET_RAW_MEM;
575
576
577       cursor= 0;
578       xbt_dynar_foreach(current_pair->automaton_state->out, cursor, transition_succ){
579
580         res = MC_automaton_evaluate_label(a, transition_succ->label);
581
582         if(res == 1){ // enabled transition in automaton
583           MC_SET_RAW_MEM;
584           next_pair = new_pair_stateless(next_graph_state, transition_succ->dst, MC_state_interleave_size(next_graph_state));
585           xbt_dynar_push(successors, &next_pair);
586           MC_UNSET_RAW_MEM;
587         }
588
589       }
590
591       cursor = 0;
592    
593       xbt_dynar_foreach(current_pair->automaton_state->out, cursor, transition_succ){
594       
595         res = MC_automaton_evaluate_label(a, transition_succ->label);
596         
597         if(res == 2){ // true transition in automaton
598           MC_SET_RAW_MEM;
599           next_pair = new_pair_stateless(next_graph_state, transition_succ->dst, MC_state_interleave_size(next_graph_state));
600           xbt_dynar_push(successors, &next_pair);
601           MC_UNSET_RAW_MEM;
602         }
603
604       }
605
606       cursor = 0; 
607
608       MC_SET_RAW_MEM;
609       snapshot = xbt_new0(s_mc_snapshot_t, 1);
610       MC_take_snapshot_liveness(snapshot, prgm);
611       MC_UNSET_RAW_MEM;
612      
613       xbt_dynar_foreach(successors, cursor, pair_succ){
614
615         if(!visited(a, pair_succ->automaton_state, snapshot, search_cycle)){
616
617           if(search_cycle == 1){
618
619             if((pair_succ->automaton_state->type == 1) || (pair_succ->automaton_state->type == 2)){ 
620
621               if(reached(a, pair_succ->automaton_state, snapshot) == 1){
622
623                 XBT_DEBUG("Next pair (depth = %d) already reached !", xbt_fifo_size(mc_stack_liveness_stateless) + 1);
624
625                 XBT_INFO("*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*");
626                 XBT_INFO("|             ACCEPTANCE CYCLE            |");
627                 XBT_INFO("*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*");
628                 XBT_INFO("Counter-example that violates formula :");
629                 MC_show_stack_liveness_stateless(mc_stack_liveness_stateless);
630                 MC_dump_stack_liveness_stateless(mc_stack_liveness_stateless);
631                 MC_print_statistics_pairs(mc_stats_pair);
632                 exit(0);
633
634               }else{
635
636                 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);
637               
638                 set_pair_reached(a, pair_succ->automaton_state, snapshot); 
639
640               }
641
642             }
643
644           }else{
645           
646             if(((pair_succ->automaton_state->type == 1) || (pair_succ->automaton_state->type == 2)) && (xbt_fifo_size(mc_stack_liveness_stateless) < (MAX_DEPTH_LIVENESS - 1))){
647
648               set_pair_reached(a, pair_succ->automaton_state, snapshot); 
649                     
650               search_cycle = 1;
651
652             }
653
654           }
655
656           MC_SET_RAW_MEM;
657           xbt_fifo_unshift(mc_stack_liveness_stateless, pair_succ);
658           MC_UNSET_RAW_MEM;
659
660           MC_ddfs_stateless(a, search_cycle, 0, prgm);
661
662           /* Restore system before checking others successors */
663           if(cursor != xbt_dynar_length(successors) - 1)
664             MC_replay_liveness(mc_stack_liveness_stateless, 1);
665
666         }else{
667             
668           XBT_DEBUG("Next pair already visited");
669           
670         }
671       
672       }
673      
674     }
675   
676   }else{
677     
678     XBT_DEBUG("Max depth reached");
679
680   }
681
682   if(xbt_fifo_size(mc_stack_liveness_stateless) == MAX_DEPTH_LIVENESS ){
683     XBT_DEBUG("Pair (graph=%p, automaton =%p, search_cycle = %u) shifted in stack, maximum depth reached", current_pair->graph_state, current_pair->automaton_state, search_cycle);
684   }else{
685     XBT_DEBUG("Pair (graph=%p, automaton =%p, search_cycle = %u) shifted in stack", current_pair->graph_state, current_pair->automaton_state, search_cycle);
686   }
687
688   
689   MC_SET_RAW_MEM;
690   xbt_fifo_shift(mc_stack_liveness_stateless);
691   if((current_pair->automaton_state->type == 1) || (current_pair->automaton_state->type == 2)){
692     xbt_fifo_shift(reached_pairs);
693   }
694   if(snapshot != NULL)
695     MC_free_snapshot(snapshot);
696   MC_pair_stateless_delete(current_pair);
697   MC_UNSET_RAW_MEM;
698   
699
700 }
701