- type = (dw_type_t) xbt_dict_get_or_null(process->binary_info->types, var->type_origin);
- xbt_assert(type->element_count == 6*5*4, "element_count mismatch in test_some_array : %i / %i", type->element_count, 6*5*4);
+ auto i = process->binary_info->types.find(var->type_id);
+ xbt_assert(i != process->binary_info->types.end(), "Missing type");
+ type = &i->second;
+ xbt_assert(type->element_count == 6*5*4,
+ "element_count mismatch in test_some_array : %i / %i",
+ type->element_count, 6*5*4);