DocumentCode
2056329
Title
Estimating uncaught exceptions in Standard ML programs from type-based equations
Author
Yi, Kwangkeun ; Ryu, Sukyoung ; Pyun, Ki-Hyun
Author_Institution
Dept. of Comput. Sci., Korea Adv. Inst. of Sci. & Technol., Seoul, South Korea
fYear
1996
fDate
21-23 Aug 1996
Firstpage
455
Lastpage
460
Abstract
We present a static analysis that detects potential runtime exceptions that are raised and never handled inside Standard ML (SML) programs. Contrary to our earlier method (Yi, 1994) based on abstract interpretation, where the input program´s control flow is simultaneously computed while our exception analysis progresses, we separate the two phases in a manner similar to conventional data flow analysis. Before the exception analysis begins, we first estimate the input program´s control flow from the type information from SML/NJ compiler. Based on this call-graph structure, exception flow is specified as a set of equations, whose solution is computed using an iterative least fixpoint method. A prototype of this analysis is applied to two realistic SML programs (ML-LEX and OR-SML core) and is 3 or 40 times faster than the earlier method and saves memory by 35 or 65 percent
Keywords
data flow analysis; exception handling; functional languages; functional programming; program compilers; program diagnostics; ML-LEX; OR-SML; SML/NJ compiler; Standard ML programs; abstract interpretation; call-graph structure; data flow analysis; exception analysis; exception flow; functional programming; iterative least fixpoint method; program control flow; prototype; runtime exception detection; static analysis; type information; type-based equations; uncaught exception estimation; Computer science; Data analysis; Data flow computing; Equations; Information analysis; Maximum likelihood estimation; Program processors; Programming profession; Runtime; Safety;
fLanguage
English
Publisher
ieee
Conference_Titel
Computer Software and Applications Conference, 1996. COMPSAC '96., Proceedings of 20th International
Conference_Location
Seoul
ISSN
0730-3157
Print_ISBN
0-8186-7579-9
Type
conf
DOI
10.1109/CMPSAC.1996.544613
Filename
544613
Link To Document