- int res_compare;
- if (type)
- res_compare = compare_heap_area_with_type(state, area1, area2, snapshot1, snapshot2, previous, type, size,
- check_ignore, pointer_level);
- else
- res_compare =
- not heap_area_equal_without_type(state, area1, area2, snapshot1, snapshot2, previous, size, check_ignore);
-
- if (res_compare == 1)
- return res_compare;
+ bool differ =
+ type ? heap_area_differ_with_type(state, area1, area2, snapshot1, snapshot2, previous, type, size, check_ignore,
+ pointer_level)
+ : heap_area_differ_without_type(state, area1, area2, snapshot1, snapshot2, previous, size, check_ignore);
+ if (differ)
+ return true;