Augmenting Programs with Analysis Results Adrian Prantl Institut f

Reviews
Shared by: Fittington Fit
Stats
views:
0
rating:
not rated
reviews:
0
posted:
5/6/2009
language:
English
pages:
0
Augmenting Programs with Analysis Results∗ Adrian Prantl Institut f¨r Computersprachen u Technische Universit¨t Wien, Austria a adrian@complang.tuwien.ac.at Abstract In this talk, we propose a new storage method for the results of a static program analysis. Instead of attaching the analysis results to the control-flow graph, we automatically transform the program into a augmented version that uses assert-statements to explicitly check the analyzed properties at runtime. This transformation opens up multiple applications: • Automatic testing of the analysis implementation: This can be done dynamically, by generating an encompassing main function that executes the program with sensible input data. As a more expensive but complete alternative, this step can also be done statically via model checking. • Freezing of interfaces: Since the transformed program is naturally a more restricted version of the original program, the method can also be used to explicitly encode e.g. calling conventions. This way, the program can be hardened against future modifications. • Aiding compiler optimizations: By rewriting analysis results as explicit tests a subsequent compilation process can use the invariants to generate optimized code. The presented method has been implemented in the SATIrE source-to-source analysis framework using the Termite program transformation library. First experiments showed promising results and proved already to be valuable for the debugging of analysis implementations. References SATIrE: http://www.complang.tuwien.ac.at/satire/ Termite: http://www.complang.tuwien.ac.at/adrian/termite/ ∗ This work has been partially supported by the Austrian Science Fund (Fonds zur F¨rderung der wissenschaftlichen Forschung) under contract P18925-N13 o

Shared by: Fittington Fit
Other docs by Fittington Fit
cd140
Views: 145  |  Downloads: 0
Shareholder Resolution Approving Sale of Stock
Views: 354  |  Downloads: 17
Form 3903 Moving Expenses
Views: 452  |  Downloads: 2
Sample Work Rules
Views: 592  |  Downloads: 24
Sample rejection Letters
Views: 1656  |  Downloads: 17
Shareholders Resolution Appointing Directors
Views: 365  |  Downloads: 5
Board Resolution Setting Record Date
Views: 251  |  Downloads: 2
CorpDocs-Articles of Incorporation California
Views: 359  |  Downloads: 11
WRONGFUL DEATH
Views: 279  |  Downloads: 0
CorpDocs-Board Resolution Changing Board Size
Views: 235  |  Downloads: 1
Related docs