DocumentCode :
753217
Title :
Context sensitive symbolic pointer analysis
Author :
Zhu, Jianwen ; Calman, Silvian
Author_Institution :
Dept. of Electr. & Comput. Eng., Univ. of Toronto, Ont., Canada
Volume :
24
Issue :
4
fYear :
2005
fDate :
4/1/2005 12:00:00 AM
Firstpage :
516
Lastpage :
531
Abstract :
One of the bottlenecks in the recent movement of hardware synthesis from behavioral C programs is the difficulty in reasoning about runtime pointer values at compile time. The pointer analysis problem has been investigated in the compiler community for two decades and has yielded efficient, polynomial time algorithms for context-insensitive (CI) analysis. However, at the accuracy level for which hardware synthesis is desired, namely context and flow sensitive analysis, the time and space complexity of the best algorithms reported grow exponentially with program size. In this paper, we propose a new analysis technology to combat the inefficiency encountered in traditional algorithms. The key idea is to implicitly encode the pointer-to relation in the Boolean domain by Bryant´s binary decision diagram, thereby capturing the procedure transfer function completely, compactly and canonically. With symbolic transfer functions, we can establish a common framework to perform both CI and context-sensitive (CS) pointer analysis efficiently. In addition, we propose a symbolic representation of the invocation graph, which can otherwise be exponentially large. In contrast to the classical frameworks, where CS point-to information of a procedure has to be obtained by the application of its transfer function exponentially many times, our method can obtain point-to information of all contexts in a single application. Our experimental evaluation on a wide range of C benchmarks indicates that our CS pointer analysis can be made almost as fast as its CI counterpart.
Keywords :
Boolean algebra; binary decision diagrams; computational complexity; high level synthesis; behavioral C programs; binary decision diagram; call graph construction; compile time; context sensitive symbolic pointer analysis; flow sensitive analysis; hardware synthesis; high-level synthesis; invocation graph; polynomial time algorithms; runtime pointer values; space complexity; symbolic representation; symbolic transfer functions; time complexity; transfer function; Algorithm design and analysis; Boolean functions; Computer languages; Data structures; Hardware; Polynomials; Runtime; Space technology; System-on-a-chip; Transfer functions; Binary decision diagrams (BDDs); call graph construction; high-level synthesis; pointer analysis;
fLanguage :
English
Journal_Title :
Computer-Aided Design of Integrated Circuits and Systems, IEEE Transactions on
Publisher :
ieee
ISSN :
0278-0070
Type :
jour
DOI :
10.1109/TCAD.2005.844092
Filename :
1411931
Link To Document :
بازگشت