Augmenting Programs with Analysis Results∗
نویسنده
چکیده
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-sourceanalysis framework using the Termite program transformation library. Firstexperiments showed promising results and proved already to be valuable for thedebugging of analysis implementations. ReferencesSATIrE: 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 zurFörderung der wissenschaftlichen Forschung) under contract P18925-N13
منابع مشابه
The CC-V Flap: A Novel Technique for Augmenting a C-V Nipple Reconstruction Using a Free Dermal Graft
BACKGROUND We present a novel method for augmenting the standard C-V flap used for nipple reconstruction with a free dermal graft which aims to improve the appearance of the nipple reconstruction, decrease loss of projection and improve patient satisfaction overall. METHODS The surgical technique for performing a free dermal graft augmentation of a CV flap is described. All patients who unde...
متن کاملAugmenting Peripheral Nerve Regeneration Using Rat Hair Follicle Stem Cells (rHFSCs) in Rats
Introduction: Nowadays, cell therapy is the most advanced treatment of peripheral nerve injury. The aim of this study was to determine the effects of transplantation of hair follicle stem cells on the regeneration of the sciatic nerve injury in rats. Methods: The bulge region of the rat whisker was isolated and cultured. Morphological and biological features of the cultured bulge cells were ob...
متن کاملOrder-consistent programs are cautiously monotonic
Some normal logic programs under the answer set (or stable model) semantics lack the appealing property of “cautious monotonicity.” That is, augmenting a program with one of its consequences may cause it to lose another of its consequences. The syntactic condition of “order-consistency” was shown by Fages to guarantee existence of an answer set. This note establishes that order-consistent progr...
متن کاملAutomatic Diierentiation of Numerical Integration Algorithms
Automatic diierentiation (AD) is a technique for automatically augmenting computer programs with statements for the computation of derivatives. This article discusses the application of automatic diierentiation to numerical integration algorithms for ordinary diierential equations (ODEs), in particular, the ramiications of the fact that AD is applied not only to the solution of such an algorith...
متن کاملHow can schools help youth increase physical activity? An economic analysis comparing school-based programs.
OBJECTIVE For optimal health, physical activity should be an integral and routine part of daily life. Youth spend a significant amount of time at school yet rarely achieve the recommended 60 min of moderate and vigorous physical activity in physical education (PE) classes or recess. This study assessed the following types of school-based opportunities to improve physical activity for youth: aft...
متن کاملUsing a Model Checker to Determine Worst-case Execution Time
Hard real-time systems use worst-case execution time (WCET) estimates to ensure that timing requirements are met. The typical approach for obtaining WCET estimates is to employ static program analysis methods. While these approaches provide WCET bounds, they struggle to analyze programs with loops whose iteration counts depend on input data. Such programs mandate user-guided annotations. We pro...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2009