From 465332a64bce200ef12c8c3ae6b53bec57767415 Mon Sep 17 00:00:00 2001 From: Marion Guthmuller Date: Wed, 16 Jan 2013 14:20:24 +0100 Subject: [PATCH] model-checker : minor fix in dpor algorithm --- src/mc/mc_dpor.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/mc/mc_dpor.c b/src/mc/mc_dpor.c index 6f1cc3a7da..add3fe70ae 100644 --- a/src/mc/mc_dpor.c +++ b/src/mc/mc_dpor.c @@ -217,7 +217,7 @@ void MC_dpor(void) mc_state_t state = NULL, prev_state = NULL, next_state = NULL, restore_state=NULL; smx_process_t process = NULL; xbt_fifo_item_t item = NULL; - int pos, i; + int pos, i, interleave_size; int interleave_proc[simix_process_maxpid]; while (xbt_fifo_size(mc_stack_safety) > 0) { @@ -379,7 +379,8 @@ void MC_dpor(void) for(i=0; ipid] == 1) MC_state_interleave_process(state, process); } + MC_UNSET_RAW_MEM; XBT_DEBUG("Back-tracking to depth %d", xbt_fifo_size(mc_stack_safety)); - MC_UNSET_RAW_MEM; break; } else { MC_state_delete(state); -- 2.20.1