Hierarchical shape analysis is a technique that is used to discover the shape of the data structures generated by pointer assignments in C programs. The purpose of hierarchical shape analysis is to catch the useful shape information of data structures to guide compilers in further aggressive parallelization or optimization. In this thesis, we implement a hierarchical shape analysis algorithm. The compiler infrastructure Cetus is used to help our implementation. For the tested benchmark programs, the experimental results show that the proposed implementation can successfully obtain the hierarchical shape information.