continue;
}else{
if(XBT_LOG_ISENABLED(mc_compare, xbt_log_priority_verbose)){
- XBT_VERB("Different global variable in libsimgrid : %s", current_var->name);
+ XBT_VERB("Different global variable in libsimgrid : %s at addresses %p - %p (size = %zu)", current_var->name, (char *)d1+offset, (char *)d2+offset, current_var->size);
}
return 1;
}
return snapshot_compare(s1, s2, NULL, NULL);
}
+int get_heap_region_index(mc_snapshot_t s){
+ int i =0;
+ while(i < s->num_reg){
+ switch(s->regions[i]->type){
+ case 0:
+ return i;
+ break;
+ default:
+ i++;
+ break;
+ }
+ }
+ return -1;
+}
+
int snapshot_compare(mc_snapshot_t s1, mc_snapshot_t s2, mc_comparison_times_t ct1, mc_comparison_times_t ct2){
int raw_mem = (mmalloc_get_current_heap() == raw_heap);