From: Marion Guthmuller Date: Wed, 13 Mar 2013 16:07:17 +0000 (+0100) Subject: model-checker : ignore mc_time for heap comparison and global variables comparison X-Git-Tag: v3_9_90~442 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/de98b9c28c8701c88411c154c5711a8a7210c602 model-checker : ignore mc_time for heap comparison and global variables comparison --- diff --git a/src/mc/mc_global.c b/src/mc/mc_global.c index b74447e645..b04debeb25 100644 --- a/src/mc/mc_global.c +++ b/src/mc/mc_global.c @@ -169,13 +169,6 @@ void MC_init(){ int raw_mem_set = (mmalloc_get_current_heap() == raw_heap); - mc_time = xbt_new0(double, simix_process_maxpid); - - /* mc_time refers to clock for each process -> ignore it for heap comparison */ - int i; - for(i = 0; i ignore it for heap comparison */ + MC_ignore_heap(mc_time, simix_process_maxpid * sizeof(double)); + /* Initialize the data structures that must be persistent across every iteration of the model-checker (in RAW memory) */ @@ -306,6 +303,11 @@ void MC_modelcheck_liveness(){ int raw_mem_set = (mmalloc_get_current_heap() == raw_heap); MC_init(); + + mc_time = xbt_new0(double, simix_process_maxpid); + + /* mc_time refers to clock for each process -> ignore it for heap comparison */ + MC_ignore_heap(mc_time, simix_process_maxpid * sizeof(double)); MC_SET_RAW_MEM;