Simplify memory space region representation in analyzer
Analyzer simplifies memory region representation, potentially improving aliasing analysis and fixing thread-local memory space handling.
The GCC analyzer has simplified its representation of memory space regions by replacing five concrete subclasses with a single memory_space_region class. This change reduces code duplication and introduces a more accurate memory_space for thread-local regions, which may enhance aliasing analysis. The frame_region class now directly inherits from region.
In Details
The GCC analyzer's ana::space_region hierarchy has been flattened. Previously, distinct subclasses like globals_region, code_region, stack_region, heap_region, and thread_local_region existed. These are now unified into a single memory_space_region carrying the memory_space as data. frame_region is now a direct child of region. This refactoring may improve alias analysis by correctly identifying memory_space::thread_local_ for thread-local storage.