- if (current_pair->fragment1 != -1) {
- this->equals_to1_(current_pair->block1, current_pair->fragment1) =
- make_heap_area(current_pair->block2, current_pair->fragment2);
- this->equals_to2_(current_pair->block2, current_pair->fragment2) =
- make_heap_area(current_pair->block1, current_pair->fragment1);
+ if ((*current_pair)[0].fragment != -1) {
+ this->equals_to1_((*current_pair)[0].block, (*current_pair)[0].fragment) =
+ simgrid::mc::HeapArea((*current_pair)[1].block, (*current_pair)[1].fragment);
+ this->equals_to2_((*current_pair)[1].block, (*current_pair)[1].fragment) =
+ simgrid::mc::HeapArea((*current_pair)[0].block, (*current_pair)[0].fragment);