A cost-effective estimation of uncaught exceptions in Standard ML programs

Cited 7 time in webofscience Cited 0 time in scopus
  • Hit : 529
  • Download : 0
We present a static analysis that detects potential runtime exceptions that are raised and never handled inside Standard ML (SML) programs, This analysis will predict abrupt termination of SML programs, which is SMLs only one "safety hole". Even though SML program's control flow and exception now are in general mutually dependent, analyzing the two flows are safely decoupled. Program's control flow is firstly estimated by simple case analysis of call expressions. Using this call-graph information, program's exception flow is derived as set constraints, whose least model is our analysis result. Both of these two analyses are proven safe and the reasons behind each design decision are discussed. Our implementation of this analysis has been applied to realistic SML programs and shows a promising cost-accuracy performance, For the ML-Lex program, for example, the analysis takes 1.36 s and it reports 3 may-uncaught exceptions. which are exactly the exceptions that can really escape. Our final goal is to make the analysis overhead less than 10% of the compilation time (compiling the ML-Lex takes 6-7 s) and to analyze modules in isolation. (C) 2002 Elsevier Science B.V. All rights reserved.
Publisher
ELSEVIER SCIENCE BV
Issue Date
2002-04
Language
English
Article Type
Article
Citation

THEORETICAL COMPUTER SCIENCE, v.277, no.1-2, pp.185 - 217

ISSN
0304-3975
URI
http://hdl.handle.net/10203/86027
Appears in Collection
RIMS Journal PapersCS-Journal Papers(저널논문)
Files in This Item
There are no files associated with this item.
This item is cited by other documents in WoS
⊙ Detail Information in WoSⓡ Click to see webofscience_button
⊙ Cited 7 items in WoS Click to see citing articles in records_button

qr_code

  • mendeley

    citeulike


rss_1.0 rss_2.0 atom_1.0