Skip to Content

PPL citations from 2008

All citation years and BibTeX download

[AlbertACGPZ08]
Termination Analysis of Java Bytecode(Conference paper)
Authors:
E. Albert; P. Arenas; M. Codish; S. Genaim; G. Puebla; D. Zanardini
Editors:
G. Barthe; F. S. de Boer
Date:
2008
Publication:
Proceedings of the 10th IFIP WG 6.1 International Conference on Formal Methods for Open Object-Based Distributed Systems (FMOODS 2008)
Series:
Lecture Notes in Computer Science
Volume:
5051
Pages:
2–18
Publisher:
Springer-Verlag, Berlin
Location:
Oslo, Norway
ISBN:
978-3-540-68862-4
Abstract
Termination analysis has received considerable attention, traditionally in the context of declarative programming, and recently also for imperative languages. In existing approaches, termination is performed on source programs. However, there are many situations, including mobile code, where only the compiled code is available. In this work we present an automatic termination analysis for sequential Java Bytecode programs. Such analysis presents all of the challenges of analyzing a low-level language as well as those introduced by object-oriented languages. Interestingly, given a bytecode program, we produce a constraint logic program, CLP, whose termination entails termination of the bytecode program. This allows applying the large body of work in termination of CLP programs to termination of Java bytecode. A prototype analyzer is described and initial experimentation is reported.
[AlbertAGP08]
Automatic Inference of Upper Bounds for Recurrence Relations in Cost Analysis(Conference paper)
Authors:
E. Albert; P. Arenas; S. Genaim; G. Puebla
Editors:
M. Alpuente; G. Vidal
Date:
2008
Publication:
Static Analysis: Proceedings of the 15th International Symposium
Series:
Lecture Notes in Computer Science
Volume:
5079
Pages:
221–237
Publisher:
Springer-Verlag, Berlin
Location:
Valencia, Spain
ISBN:
978-3-540-69163-1
Abstract
The classical approach to automatic cost analysis consists of two phases. Given a program and some measure of cost, we first produce recurrence relations (RRs) which capture the cost of our program in terms of the size of its input data. Second, we convert such RRs into closed form (i.e., without recurrences). Whereas the first phase has received considerable attention, with a number of cost analyses available for a variety of programming languages, the second phase has received comparatively little attention. In this paper we first study the features of RRs generated by automatic cost analysis and discuss why existing computer algebra systems are not appropriate for automatically obtaining closed form solutions nor upper bounds of them. Then we present, to our knowledge, the first practical framework for the fully automatic generation of reasonably accurate upper bounds of RRs originating from cost analysis of a wide range of programs. It is based on the inference of ranking functions and loop invariants and on partial evaluation.
[AlbertAGPZ08]
COSTA: Design and Implementation of a Cost and Termination Analyzer for Java Bytecode(Book chapter)
Authors:
E. Albert; P. Arenas; S. Genaim; G. Puebla; D. Zanardini
Editors:
Frank S. de Boer; M. M. Bonsangue; S. Graf; W. P. de Roever
Date:
2008
Publication:
Formal Methods for Components and Objects
Series:
Lecture Notes in Computer Science
Volume:
5382
Pages:
113–132
Publisher:
Springer-Verlag, Berlin
Location:
Amsterdam, The Netherlands
ISBN:
978-3-540-92187-5
Revised papers presented at the 6th International Symposium on Formal Methods for Components and Objects (FMCO 2007), Amsterdam, The Netherlands, October 24–26, 2007
Abstract
This paper describes the architecture of COSTA, an abstract interpretation based COST and termination Analyzer for Java bytecode. The system receives as input a bytecode program, (a choice of) a resource of interest and tries to obtain an upper bound of the resource consumption of the program. COSTA provides several non-trivial notions of cost, as the consumption of the heap, the number of bytecode instructions executed and the number of calls to a specific method. Additionally, COSTA tries to prove termination of the bytecode program which implies the boundedness of any resource consumption. Having cost and termination together is interesting, as both analyses share most of the machinery to, respectively, infer cost upper bounds and to prove that the execution length is always finite (i.e., the program terminates). We report on experimental results which show that COSTA can deal with programs of realistic size and complexity, including programs which use Java libraries. To the best of our knowledge, this system provides for the first time evidence that resource usage analysis can be applied to a realistic object-oriented, bytecode programming language.
[AlonsoBlas08TR]
Una herramienta para inferir Cotas Superiores de Relaciones de Coste(Technical report)
Authors:
D. E. Alonso Blas
Date:
2008-09
Location:
Madrid, Spain
Institution:
Facultad de Informática, Universidad Complutense de Madrid
Publication type:
Proyecto de Sistemas Informáticos
Abstract
This project developes a software component devised for handling Cost Relations Systems (CRS) and infering closed-form upper bounds for their relations. CRS are numeric equations generated by static analysis tools. Our component manipulates CRS in order to infer an upper bound of those execution costs. We have also devlopd an application in order to illustrate these features. Both systems are developed in Java with free (free press and free beer) software.
[AlurKRS08]
Symbolic Analysis for Improving Simulation Coverage of Simulink/Stateflow Models(Conference paper)
Authors:
R. Alur; A. Kanade; S. Ramesh; K. Shashidhar
Editors:
L. de Alfaro; J. Palsberg
Date:
2008
Publication:
Proceedings of the 8th ACM & IEEE International Conference on Embedded Software (EMSOFT 2008)
Pages:
89–98
Publisher:
ACM Press
Location:
Atlanta, Georgia, USA
ISBN:
978-1-60558-468-3
Abstract
Aimed at verifying safety properties and improving simulation coverage for hybrid systems models of embedded controlsoftware, we propose a technique that combines numerical simulation and symbolic methods for computing state-sets. We consider systems with linear dynamics described in the commercial modeling tool Simulink/Stateflow. Given an initial state xx, and a discrete-time simulation trajectory, our method computes a set of initial states that are guaranteed to be equivalent to xx, where two initial states are considered to be equivalent if the resulting simulation trajectories contain the same discrete components at each step of the simulation. We illustrate the benefits of our method on two case studies. One case study is a benchmark proposed in the literature for hybrid systems verification and another is a Simulink demo model from Mathworks.
[Bondhugula08th]
Effective Automatic Parallelization and Locality Optimization Using the Polyhedral Model(PhD thesis)
Authors:
U. K. R. Bondhugula
Date:
2008
Location:
Columbus, OH, USA
School:
The Ohio State University
Abstract
Multicore processors have now become mainstream. The difficulty of programming these architectures to effectively tap the potential of multiple processing units is well-known. Among several ways of addressing this issue, one of the very promising and simultaneously hard approaches is Automatic Parallelization. This approach does not require any effort on part of the programmer in the process of parallelizing a program. The Polyhedral model for compiler optimization is a powerful mathematical framework based on parametric linear algebra and integer linear programming. It provides an abstraction to represent nested loop computation and its data dependences using integer points in polyhedra. Complex execution-reordering, that can improve performance by parallelization as well as locality enhancement, is captured by affine transformations in the polyhedral model. With several recent advances, the polyhedral model has reached a level of maturity in various aspects – in particular, as a powerful intermediate representation for performing transformations, and code generation after transformations. However, an approach to automatically find good transformations for communication-optimized coarse-grained parallelization together with locality optimization has been a key missing link. This dissertation presents a new automatic transformation framework that solves the above problem. Our approach works by finding good affine transformations through a powerful and practical linear cost function that enables efficient tiling and fusion of sequences of arbitrarily nested loops. This in turn allows simultaneous optimization for coarse-grained parallelism and locality. Synchronization-free parallelism and pipelined parallelism at various levels can be extracted. The framework can be targeted to different parallel architectures, like general-purpose multicores, the Cell processor, GPUs, or embedded multiprocessor SoCs. The proposed framework has been implemented into a new end-to-end transformation tool, PLUTO, that can automatically generate parallel code from regular C program sections. Experimental results from the implemented system show significant performance improvement for single core and multicore execution over state-of-the-art research compiler frameworks as well as the best native production compilers. For several dense linear algebra kernels, code generated from Pluto beats, by a significant margin, the same kernels implemented with sequences of calls to highly-tuned libraries supplied by vendors. The system also allows empirical optimization to be performed in a much wider context than has been attempted previously. In addition, Pluto can serve as the parallel code generation backend for several high-level domain-specific languages.
[BouchyFL08]
Decomposition of Decidable First-Order Logics over Integers and Reals(Conference paper)
Authors:
F. Bouchy; A. Finkel; J. Leroux
Editors:
S. Demri; C. S. Jensen
Date:
2008
Publication:
Proceedings of the 15th International Symposium on Temporal Representation and Reasoning (TIME '08)
Pages:
147–155
Publisher:
IEEE Computer Society Press
Location:
Montreal, Canada
ISBN:
978-0-7695-3181-6
Abstract
We tackle the issue of representing infinite sets of real-valued vectors. This paper introduces an operator for combining integer and real sets. Using this operator, we decompose three well-known logics extending Presburger with reals. Our decomposition splits a logic into two parts : one integer, and one decimal (i.e. on the interval [0,1[[0, 1[). We also give a basis for an implementation of our representation.
[Bouissou08th]
Analyse statique par interprétation abstraite de systèmes hybrides(PhD thesis)
Authors:
O. Bouissou
Date:
2008-09
Location:
Palaiseau, France
School:
École polytechnique
Abstract
Pour améliorer la précision des méthodes d'analyse statique des programmes critiques embarqués, on considère en plus du programme lui-même l'environnement physique dans lequel le programme est exécuté. Nous présentons une extension des langages de programmation impératifs décrivant à la fois le programme, l'environnement extérieur et leurs interactions. Nous donnons à l'ensemble (programme plus environnement physique) une sémantique dénotationnelle qui reste très proche de celle des langages impératifs. Les solutions des équations différentielles modélisant l'environnement sont exprimées comme le plus petit point fixe d'un opérateur monotone dans un CPO, et nous montrons que les itérées de Kleene convergent vers ce point fixe. Nous donnons aussi une méthode d'analyse statique de ces systèmes hybrides. Après avoir construit un recouvrement de l'espace des variables d'entrée via une analyse par intervalle, ce qui permet d'abstraire l'impact du programme sur son environnement, nous utilisons une méthode d'intégration garantie pour obtenir une surapproximation de l'évolution continue. Un analyseur prototype a été développé et les tests sur les exemples classiques de systèmes hybrides montrent de bons résultats. Enfin, nous présentons une méthode d'intégration garantie nommée GRKLib qui se fonde sur un schéma d'intégration numérique non garanti et nous calculons, grâce à l'arithmétique d'intervalles, une surapproximation de l'erreur globale. Cette erreur s'exprime comme la somme de trois termes calculés séparément et des techniques spécifiques permettent de les réduire. Une librairie C++ a été développée, et les résultats présentés dans cette thèse sont prometteurs.
[BramanM08]
Safety Verification of Fault Tolerant Goal-based Control Programs with Estimation Uncertainty(Conference paper)
Authors:
J. M. B. Braman; R. M. Murray
Date:
2008
Publication:
Proceedings of the 2008 American Control Conference
Pages:
27–32
Publisher:
IEEE Press
Location:
Seattle, Washington, USA
ISBN:
978-1-4244-2078-0
ISSN:
0743-1619
Abstract
Fault tolerance and safety verification of control systems that have state variable estimation uncertainty are essential for the success of autonomous robotic systems. A software control architecture called mission data system, developed at the Jet Propulsion Laboratory, uses goal networks as the control program for autonomous systems. Certain types of goal networks can be converted into linear hybrid systems and verified for safety using existing symbolic model checking software. A process for calculating the probability of failure of certain classes of verifiable goal networks due to state estimation uncertainty is presented. A verifiable example task is presented and the failure probability of the control program based on estimation uncertainty is found.
[ChenMC08]
A Sound Floating-Point Polyhedra Abstract Domain(Conference paper)
Authors:
L. Chen; A. Miné; P. Cousot
Editors:
G. Ramalingam
Date:
2008
Publication:
Proceedings of the 6th Asian Symposium on Programming Languages and Systems (APLAS 2008)
Series:
Lecture Notes in Computer Science
Volume:
5356
Pages:
3–18
Publisher:
Springer-Verlag, Berlin
Location:
Bangalore, India
ISBN:
978-3-540-89329-5
Abstract
The polyhedra abstract domain is one of the most powerful and commonly used numerical abstract domains in the field of static program analysis based on abstract interpretation. In this paper, we present an implementation of the polyhedra domain using floating-point arithmetic without sacrificing soundness. Floating-point arithmetic allows a compact memory representation and an efficient implementation on current hardware, at the cost of some loss of precision due to rounding. Our domain is based on a constraint-only representation and employs sound floating-point variants of Fourier-Motzkin elimination and linear programming. The preliminary experimental results of our prototype are encouraging. To our knowledge, this is the first time that the polyhedra domain is adapted to floating-point arithmetic in a sound way.
[Cortesi08]
Widening Operators for Abstract Interpretation(Conference paper)
Authors:
A. Cortesi
Editors:
A. Cerone; S. Gruner
Date:
2008
Publication:
Proceedings of the Sixth IEEE International Conference on Software Engineering and Formal Methods
Pages:
31–40
Publisher:
IEEE Press
Location:
Cape Town, South Africa
ISBN:
9780769534374
Abstract
Abstract Interpretation, one of the most applied techniques for semantics based static analysis of software, is based on two main key-concepts: the correspondence between concrete and abstract semantics through Galois connections/insertions, and the feasibility of a fixed point computation of the abstract semantics, through the fast convergence of widening operators. The latter point is crucial to ensure the scalability of the analysis to large software systems. In this paper, we investigate which properties are necessary to support a systematic design of widening operators, by discussing and comparing different definitions in the literature, and by proposing various ways to combine them. In particular, we prove that, for Galois insertions, widening is preserved by abstraction, and we show how widening operators can be combined for the cartesian and reduced product of abstract domains.
[Dobson08th]
Grid Domains for Analysing Software(PhD thesis)
Authors:
K. L. Dobson
Date:
2008-08
Location:
Leeds, UK
School:
University of Leeds
Abstract
Static analysis is the determination of correct though approximate information about the behaviour of a system, this approach is used to detect and locate programming errors or to certify the absence of such bugs. Abstract interpretation is a static program analysis method that uses abstract domains to provide a convenient but approximate representation of the accumulated information during the evaluation of a program. The focus of this thesis is to investigate numerical abstract domains that capture the distribution or patterns of values the program properties can take. There has already been a considerable amount of research into numerical abstract domains and a wide variety of such domains have been specified each providing a different degree of precision and efficiency. For instance the domain of convex polyhedra is precise but has exponential complexity while the interval or box domain is much less precise but has linear complexity. Note that these domains do not capture the distribution information which is the focus of this thesis. In the first part of this thesis we introduce the domain of grids. This domain interprets the patterns of distribution of the values that the program properties can take. The complete grid domain can interpret the relationships which hold between variables or properties in a program. There are two representations that form the two components of a double description method similar to that provided for convex polyhedra. This thesis gives algorithms and methods for computing canonical forms, conversion between the descriptions and the main abstract operations needed for software analysis, such as comparison, intersection, join, difference, affine image and pre-image. Also included is a widening operation and we show that all of these operations have polynomial complexity. In the second part of this thesis we consider the partially reduced product of two numerical domains. The partially reduced product allows a choice of interaction between the component domains ranging from “do nothing” required by the direct product to a total reduction required by the reduced product. We consider the partially reduced product where the components are those of the grid domain with either the convex polyhedra domain or one of its sub-domains, specifically the boxes, bounded difference shapes and octagon domains. The “weakly tight product” is introduced, an operation that ensures each constraint of the polyhedral representation intersects a point of the grid, and the “tight product”, which ensures each constraint of the polyhedral representation intersects a point of the grid-polyhedron. We provide an algorithm to compute the weakly tight product and show for what circumstances this algorithm achieves stronger results, so that the resulting grid-polyhedron is either a tight or a reduced product. Methods for testing if a grid-polyhedron is empty as well as several useful operations on grid-polyhedra are also described.
[FerraraLF08]
Safer Unsafe Code for .NET(Conference paper)
Authors:
P. Ferrara; F. Logozzo; M. Fähndrich
Editors:
G. E. Harris
Date:
2008
Publication:
Proceedings of the 23rd ACM SIGPLAN Conference on Object-Oriented Programming Systems Languages and Applications
Pages:
329–346
Publisher:
ACM Press, New York, USA
Location:
Nashville TN USA
ISBN:
9781605582153
Abstract
The .NET intermediate language (MSIL) allows expressing both statically verifiable memory and type safe code (typically called managed), as well as unsafe code using direct pointer manipulations. Unsafe code can be expressed in C# by marking regions of code as unsafe. Writing unsafe code can be useful where the rules of managed code are too strict. The obvious drawback of unsafe code is that it opens the door to programming errors typical of C and C++, namely memory access errors such as buffer overruns. Worse, a single piece of unsafe code may corrupt memory and destabilize the entire runtime or allow attackers to compromise the security of the platform. We present a new static analysis based on abstract interpretation to check memory safety for unsafe code in the .NET framework. The core of the analysis is a new numerical abstract domain, Strp, which is used to efficiently compute memory invariants. Strp is combined with lightweight abstract domains to raise the precision, yet achieving scalability. We implemented this analysis in Clousot, a generic static analyzer for .NET. In combination with contracts expressed in FoxTrot, an MSIL based annotation language for .NET, our analysis provides static safety guarantees on memory accesses in unsafe code. We tested it on all the assemblies of the .NET framework. We compare our results with those obtained using existing domains, showing how they are either too imprecise (e.g., Intervals or Octagons) or too expensive (Polyhedra) to be used in practice.
[Frehse08]
PHAVer: Algorithmic Verification of Hybrid Systems Past HyTech(Article)
Authors:
G. Frehse
Date:
2008
Publication:
Software Tools for Technology Transfer
Volume:
10
Issue:
3
Pages:
263–279
Publisher:
Springer-Verlag, Berlin
ISSN:
1433-2779
Abstract
In 1995, HyTech broke new ground as a potentially powerful tool for verifying hybrid systems — yet its appicability remains limited to relatively simple systems. We address the main problems of HyTech with PHAVer, a new tool for the exact verification of safety properties of hybrid systems with piecewise constant bounds on the derivatives. Affine dynamics are handled by on-the-fly overapproximation, partitioning the state space based on user-definable constraints and the dynamics of the system. PHAVer features exact arithmetic in a robust implementation that, based on the Parma Polyhedra Library, supports arbitrarily large numbers. To manage the complexity of the polyhedral computations, we propose methods to conservatively limit the number of bits and constraints of polyhedra. Experimental results for a navigation benchmark and a tunnel diode circuit show the effectiveness of the approach.
[GueguenLNZ08]
Safety Verification and Reachability Analysis for Hybrid Systems(Article)
Authors:
H. Guéguen; M. A. Lefebvre; O. Nasri; J. Zaytoon
Date:
2008
Publication:
IFAC Proceedings Volumes
Volume:
41
Issue:
2
Pages:
8949–8959
Publisher:
Elsevier
ISSN:
14746670
Abstract
Safety verification and reachability analysis for hybrid systems is a very active research domain. Many approaches that seem quite different, have been proposed to solve this complex problem. This paper presents an overview of various approaches for autonomous, continuous time hybrid systems and present them with respect to basic problems related to verification.
[GulavaniCNR08]
Automatically Refining Abstract Interpretations(Book chapter)
Authors:
B. S. Gulavani; S. Chakraborty; A. V. Nori; S. K. Rajamani
Editors:
C. R. Ramakrishnan; J. Rehof
Date:
2008
Publication:
Tools and Algorithms for the Construction and Analysis of Systems: Proceedings of the 14th International Conference (TACAS 2008)
Series:
Lecture Notes in Computer Science
Volume:
4963
Pages:
443–458
Publisher:
Springer-Verlag, Berlin
Location:
Budapest, Hungary
ISBN:
978-3-540-78799-0 (Print) 978-3-540-78800-3 (Online)
Abstract
Abstract interpretation techniques prove properties of programs by computing abstract fixpoints. All such analyses suffer from the possibility of false errors. We present three techniques to automatically refine such abstract interpretations to reduce false errors: (1) a new operator called interpolated widen, which automatically recovers precision lost due to widen, (2) a new way to handle disjunctions that arise due to refinement, and (3) a new refinement algorithm, which refines abstract interpretations that use the join operator to merge abstract states at join points. We have implemented our techniques in a tool Dagger. Our experimental results show our techniques are effective and that their combination is even more effective than any one of them in isolation. We also show that Dagger is able to prove properties of C programs that are beyond current abstraction-refinement tools, such as Slam [4], Blast [15], Armc [19], and our earlier tool [12].
[KingS08]
Inferring Congruence Equations Using SAT(Conference paper)
Authors:
A. King; H. Søndergaard
Editors:
A. Gupta; S. Malik
Date:
2008
Publication:
Computer Aided Verification: Proceedings of the 20th International Conference (CAV 2008)
Series:
Lecture Notes in Computer Science
Volume:
5123
Pages:
281–293
Publisher:
Springer-Verlag, Berlin
ISBN:
978-3-540-70543-7 (Print) 978-3-540-70545-1 (Online)
Abstract
This paper proposes a new approach for deriving invariants that are systems of congruence equations where the modulo is a power of 2. The technique is an amalgam of SAT-solving, where a propositional formula is used to encode the semantics of a basic block, and abstraction, where the solutions to the formula are systematically combined and summarised as a system of congruence equations. The resulting technique is more precise than existing congruence analyses since a single optimal transfer function is derived for a basic block as a whole.
[KumarZJ08]
Safety and Transition-Structure Preserving Abstraction of Hybrid Systems with Inputs/outputs(Conference paper)
Authors:
R. Kumar; C. Zhou; S. Jiang
Date:
2008
Publication:
Proceedings of the 9th International Workshop on Discrete Event Systems
Pages:
206–211
Publisher:
IEEE Press
Location:
Goteborg, Sweden
Abstract
We present a method for obtaining a discrete abstraction of a hybrid system modeled as an input-output hybrid automaton (I/O-HA), generalizing our earlier work on linear hybrid automaton with no inputs or outputs. The discrete abstraction we present preserves the discrete behaviors (the set of state trajectories sampled at instances immediately after the discrete transitions) of an I/O-HA, and thus it is adequate for safety verification. (The violation of a safety property can be formulated as the reachability of certain discrete states.) We represent the discrete behaviors of an I/O-HA as the discrete behaviors of an input-output transition system (I/O-TS), which possesses no continuous dynamics, i.e., it is a purely discrete system. A feature of our discrete abstraction of an I/O-HA into an I/O-TS is that it preserves the transition structure of the discrete dynamics, making it unique compared to the prior works on discrete abstraction of a hybrid system (which either did not preserve the discrete behaviors or the transition structure of the discrete dynamics). The discrete abstraction can be used for further analysis (such as verification, testing, control, diagnosis, monitoring, etc.) involving safety properties. The abstraction is illustrated through an adaptive cruise control example.
[Little08th]
Efficient Modeling and Verification of Analog/Mixed-Signal Circuits Using Labeled Hybrid Petri Nets(PhD thesis)
Authors:
S. R. Little
Date:
2008-12
Location:
Salt Lake City, UT, USA
School:
University of Utah
Abstract
Analog circuit design is traditionally done by expert designers in an ad hoc manner heavily dependent on simulation. This methodology has worked successfully for many years, but process variation and design complexity are prompting designers to explore new techniques. Formal methods are being used successfully to aid in the complex validation problem for digital circuits. This dissertation presents formal methods for analog and mixed-signal (AMS) circuits. This dissertation describes the development of a formal model, labeled hybrid Petri nets (LHPNs), appropriate for the modeling and verification of AMS circuits. An LHPN is a Petri net variant capable of modeling both continuous and discrete quantities. Creating an LHPN model of an AMS circuit by hand is a complicated and error prone exercise that requires expert knowledge. This is unacceptable for practical adoption of the LHPN model and its associated analysis methods. For this reason, this dissertation introduces an automatic LHPN model generation method. The method uses a set of simulation traces and a desired system property to generate an LHPN modeling the behavior of the simulation traces. The model generator can also be used to generate abstract Verilog-AMS or VHDL-AMS models suitable for use in system-level simulations. Formal verification of a property over the entire state space of an LHPN model is complicated by the infinite state of the model. For this reason, the infinite states of the model are grouped into potentially finite groups of equivalent states for verification. Difference bound matrices (DBMs), a restricted form of convex polygons, are used to represent these equivalent classes of infinite states. Reachability analysis using DBMs is very efficient at the cost of exactness. This dissertation presents algorithms for conservative state space analysis and verification of LHPNs. Finally, these methods are demonstrated on several case studies of AMS circuits from both academia and industry. The formal verification methods demonstrate the ability to find bugs missed by standard simulations. The abstract modeling methods show the promise of using automatically generated abstract models by demonstrating up to 40x speedup for some examples.
[LogozzoF08]
Pentagons: A Weakly Relational Abstract Domain for the Efficient Validation of Array Accesses(Conference paper)
Authors:
F. Logozzo; M. Fähndrich
Editors:
R. L. Wainwright; H. Haddad
Date:
2008
Publication:
Proceedings of the 2008 ACM Symposium on Applied Computing (SAC 2008)
Pages:
184–188
Publisher:
ACM Press
Location:
Fortaleza, Ceará, Brazil
ISBN:
978-1-59593-753-7
Abstract
We introduce Pentagons (Pntg), a weakly relational numerical abstract domain useful for the validation of array accesses in byte-code and intermediate languages (IL). This abstract domain captures properties of the form of x∈[a,b]∧x<yx \in [a, b] \wedge x < y. It is more precise than the well known Interval domain, but it is less precise than the Octagon domain. The goal of Pntg is to be a lightweight numerical domain useful for adaptive static analysis, where Pntg is used to quickly prove the safety of most array accesses, restricting the use of more precise (but also more expensive) domains to only a small fraction of the code. We implemented the Pntg abstract domain in Clousot, a generic abstract interpreter for .NET assemblies. Using it, we were able to validate 83% of array accesses in the core runtime library mscorlib.dll in less than 8 minutes.
[LogozzoF08a]
On the Relative Completeness of Bytecode Analysis Versus Source Code Analysis(Book chapter)
Authors:
F. Logozzo; M. Fähndrich
Editors:
L. Hendren
Date:
2008
Publication:
Compiler Construction: Proceedings of the 17th International Conference (CC 2008)
Series:
Lecture Notes in Computer Science
Volume:
4959
Pages:
197–212
Publisher:
Springer-Verlag, Berlin
Location:
Budapest, Hungary
ISBN:
978-3-540-78790-7 (Print) 978-3-540-78791-4 (Online)
Abstract
We discuss the challenges faced by bytecode analyzers designed for code verification compared to similar analyzers for source code. While a bytecode-level analysis brings many simplifications, e.g., fewer cases, independence from source syntax, name resolution, etc., it also introduces precision loss that must be recovered either via preprocessing, more precise abstract domains, more precise transfer functions, or a combination thereof. The paper studies the relative completeness of a static analysis for bytecode compared to the analysis of the program source. We illustrate it through examples originating from the design and the implementation of Clousot, a generic static analyzer based on Abstract Interpretation for the analysis of MSIL.
[Monniaux08]
A Quantifier Elimination Algorithm for Linear Real Arithmetic(Conference paper)
Authors:
D. Monniaux
Editors:
I. Cervesato; H. Veith; A. Voronkov
Date:
2008
Publication:
Logic for Programming, Artificial Intelligence, and Reasoning: Proceedings of the 15th International Conference (LPAR 2008)
Series:
Lecture Notes in Computer Science
Volume:
5330
Pages:
243–257
Publisher:
Springer-Verlag, Berlin
Location:
Doha, Qatar
ISBN:
978-3-540-89438-4
Abstract
We propose a new quantifier elimination algorithm for the theory of linear real arithmetic. This algorithm uses as subroutine satisfiability modulo this theory, a problem for which there are several implementations available. The quantifier elimination algorithm presented in the paper is compared, on examples arising from program analysis problems, to several other implementations, all of which cannot solve some of the examples that our algorithm solves easily.
[PopeeaC08]
Inferring Disjunctive Postconditions(Book chapter)
Authors:
C. Popeea; W.-N. Chin
Editors:
M. Okada; I. Satoh
Date:
2008
Publication:
Advances in Computer Science — ASIAN 2006. Secure Software and Related Issues
Series:
Lecture Notes in Computer Science
Volume:
4435
Pages:
331–345
Publisher:
Springer-Verlag, Berlin
ISBN:
978-3-540-77504-1
Revised selected papers presented at the 11th Asian Computing Science Conference, Tokyo, Japan, December 6–8, 2006
Abstract
Polyhedral analysis [9] is an abstract interpretation used for automatic discovery of invariant linear inequalities among numerical variables of a program. Convexity of this abstract domain allows efficient analysis but also loses precision via convex-hull and widening operators. To selectively recover the loss of precision, sets of polyhedra (disjunctive elements) may be used to capture more precise invariants. However a balance must be struck between precision and cost. We introduce the notion of affinity to characterize how closely related is a pair of polyhedra. Finding related elements in the polyhedron (base) domain allows the formulation of precise hull and widening operators lifted to the disjunctive (powerset extension of the) polyhedron domain. We have implemented a modular static analyzer based on the disjunctive polyhedral analysis where the relational domain and the proposed operators can progressively enhance precision at a reasonable cost.
[PopeeaXC08]
A Practical and Precise Inference and Specializer for Array Bound Checks Elimination(Conference paper)
Authors:
C. Popeea; D. N. Xu; W.-N. Chin
Editors:
R. Glück; O. de Moor
Date:
2008
Publication:
Proceedings of the 2008 ACM SIGPLAN Symposium on Partial Evaluation and Semantics-Based Program Manipulation
Pages:
177–187
Publisher:
ACM Press, New York, USA
Location:
San Francisco California USA
ISBN:
9781595939777
Abstract
Arrays are intensively used in many software programs, including those in the popular graphics and game programming domains. Although the problem of eliminating redundant array bound checks has been studied for a long time, there are few works that attempt to be both aggressively precise and practical. We propose an inference mechanism that achieves both aims by combining a forward relational analysis with a backward precondition derivation. Our inference algorithm works for a core imperative language with assignments, and analyses each method once through a summary-based approach. Our inference is precise as it is both path and context sensitive. Through a novel technique that can strengthen preconditions, we can selectively reduce the sizes of formulae to support a practical inference algorithm. Moreover, we subject each inferred program to a flexivariant specialization that can achieve good tradeoff between elimination of array checks and code explosion concerns. We have proven the soundness of our approach and have also implemented a prototype inference and specialization system. Initial experiments suggest that such a desired system is viable.
[Simon08]
Splitting the Control Flow with Boolean Flags(Conference paper)
Authors:
A. Simon
Editors:
M. Alpuente; G. Vidal
Date:
2008
Publication:
Static Analysis: Proceedings of the 15th International Symposium (SAS 2008)
Series:
Lecture Notes in Computer Science
Volume:
5079
Pages:
315–331
Publisher:
Springer-Verlag, Berlin
Location:
Valencia, Spain
ISBN:
978-3-540-69163-1 (Print) 978-3-540-69166-2 (Online)
Abstract
Tools for proving the absence of run-time errors often deploy a numeric domain that approximates the possible values of a variable using linear inequalities. These abstractions are adequate since the correct program state is often convex. For instance, if the upper and lower bound of an index lie within the bounds of an array, then so do all the indices inbetween. In certain cases, for example when analysing a division operation, the correct program state is not convex. In this case correctness can be shown by splitting the control flow path, that is, by partitioning the set of execution traces which is normally implemented by analysing a path several times. We show that adding a Boolean flag to the numeric domain has the same effect. The paper discusses prerequisites, limitations and presents an improved points-to analysis using Boolean flags.
[Simon08a]
Value-Range Analysis of C Programs: Towards Proving the Absence of Buffer Overflow Vulnerabilities(Book)
Authors:
A. Simon
Date:
2008
Publisher:
Springer, London
ISBN:
978-1-84800-016-2 (Print) 978-1-84800-017-9 (Online)
Abstract
The use of static analysis techniques to prove the partial correctness of C code has recently attracted much attention due to the high cost of software errors - particularly with respect to security vulnerabilities. However, research into new analysis techniques is often hampered by the technical difficulties of analysing accesses through pointers, pointer arithmetic, coercion between types, integer wrap-around and other low-level behaviour. Axel Simon provides a concise, yet formal description of a value-range analysis that soundly approximates the semantics of C programs using systems of linear inequalities (polyhedra). The analysis is formally specified down to the bit-level while providing a precise approximation of all low-level aspects of C using polyhedral operations and, as such, it provides a basis for implementing new analyses that are aimed at verifying higher-level program properties precisely. One example of such an analysis is the tracking of the NUL position in C string buffers, which is shown as an extension to the basic analysis and which thereby demonstrates the modularity of the approach. While the book focuses on a sound analysis of C, it will be useful to any researcher and student with an interest in static analysis of real-world programming languages. In fact, many concepts presented here carry over to other languages such as Java or assembler, to other applications such as taint analysis, array and shape analysis and possibly even to other approaches such as run-time verification and test data generation.
[Soffia08th]
Definizione ed implementazione di una analisi di points-to per linguaggi C-like(Master’s thesis)
Authors:
S. Soffia
Date:
2008
Location:
Parma, Italy
School:
University of Parma
Publication type:
Laurea dissertation
In Italian
Abstract
Il problema della points-to è il problema di determinare i possibili valori che le variabili puntatore possono assumere durante l'esecuzione ed è comunemente considerato parte del più generale problema dell'aliasing, che consiste nello stabilire se e quando le diverse espressioni che compaiono nel codice sorgente possono riferirsi alla stessa locazione di memoria. L'informazione di aliasing è essenziale ad ogni strumento che ragiona sulla semantica dei programmi. Tuttavia, a causa dei noti risultati di non decidibilità, per tutti i linguaggi rilevanti ai fini dell'aliasing, una soluzione esatta a questo problema non è in generale calcolabile. Questa dissertazione si concentra sulla ricerca di soluzioni approssimate a questo problema presentando una analisi di points-to store-based e flow-sensitive, per l'applicazione nel campo della verifica automatica del software. Contrariamente alle procedure di testing, le quali in modo euristico controllano il programma rispetto ad un insieme finito di esecuzioni, i metodi descritti in questa dissertazione possono essere classificati come analisi statiche, i cui risultati sono validi rispetto a tutte le possibili esecuzioni del programma analizzato. Nella dissertazione viene presentato un linguaggio di programmazione semplificato ed un relativo modello di esecuzione; quindi viene sviluppata una approssimazione di questo modello usando le idee della teoria dell'interpretazione astratta. In fine, la correttezza dell'approssimazione descritta è formalmente dimostrata. Allo scopo di presentare una analisi di points-to realistica, sono inoltre presentate alcune estensioni al modello semplificato descritto inizialmente e la loro correttezza è discussa. Questo lavoro contiene un contributo originale al problema dell'analisi di points-to in quanto presenta la formulazione di un'operazione di filtro su questo tipo di dominio astratto e dimostra formalmente la correttezza delle operazioni astratte definite: elementi che, per quanto in nostra conoscenza, non sono presenti nella letteratura precedente.
[Soffia08TR]
Definition and Implementation of a Points-To Analysis for C-like Languages(Technical report)
Authors:
S. Soffia
Date:
2008
Report number:
arXiv:0810.0753 [cs.PL]
Institution:
Dipartimento di Matematica, Università di Parma, Italy
Abstract
The points-to problem is the problem of determining the possible run-time targets of pointer variables and is usually considered part of the more general aliasing problem, which consists in establishing whether and when different expressions can refer to the same memory address. Aliasing information is essential to every tool that needs to reason about the semantics of programs. However, due to well-known undecidability results, for all interesting languages that admit aliasing, the exact solution of nontrivial aliasing problems is not generally computable. This work focuses on approximated solutions to this problem by presenting a store-based, flow-sensitive points-to analysis, for applications in the field of automated software verification. In contrast to software testing procedures, which heuristically check the program against a finite set of executions, the methods considered in this work are static analyses, where the computed results are valid for all the possible executions of the analyzed program. We present a simplified programming language and its execution model; then an approximated execution model is developed using the ideas of abstract interpretation theory. Finally, the soundness of the approximation is formally proved. The aim of developing a realistic points-to analysis is pursued by presenting some extensions to the initial simplified model and discussing the correctness of their formulation. This work contains original contributions to the issue of points-to analysis, as it provides a formulation of a filter operation on the points-to abstract domain and a formal proof of the soundness of the defined abstract operations: these, as far as we now, are lacking from the previous literature.
[TraonouezLR08]
Parametric Model-Checking of Time Petri Nets with Stopwatches Using the State-Class Graph(Conference paper)
Authors:
L.-M. Traonouez; D. Lime; O. H. Roux
Editors:
F. Cassez; C. Jard
Date:
2008
Publication:
Proceedings of the 6th International Conference on Formal Modeling and Analysis of Timed Systems (FORMATS 2008)
Series:
Lecture Notes in Computer Science
Volume:
5215
Pages:
280–294
Publisher:
Springer-Verlag, Berlin
Location:
Saint Malo, France
ISBN:
978-3-540-85777-8
Abstract
In this paper, we propose a new framework for the parametric verification of time Petri nets with stopwatches controlled by inhibitor arcs. We first introduce an extension of time Petri nets with inhibitor arcs (ITPNs) with temporal parameters. Then, we define a symbolic representation of the parametric state space based on the classical state class graph method. The parameters of the model are embedded into the firing domains of the classes, that are represented by convex polyhedra. Finally, we propose semi-algorithms for the parametric model-checking of a subset of parametric TCTL formulae on ITPNs. We can thus generate the set of the parameter valuations that satisfy the formulae.
[Vasconcelos08th]
Space Cost Analysis Using Sized Types(PhD thesis)
Authors:
P. B. Vasconcelos
Date:
2008-08
Location:
St Andrews, UK
School:
School of Computer Science, University of St Andrews
Abstract
Programming resource-sensitive systems, such as real-time embedded systems, requires guaranteeing both the functional correctness of computations and also that time and space usage fit within constraints imposed by hardware limits or the environment. Functional programming languages have proved very good at meeting the former logical kind of guarantees but not the latter resource guarantees. This thesis contributes to demonstrate the applicability of functional programming in resource-sensitive systems with an automatic program analysis for obtaining guaranteed upper bounds on dynamic space usage of functional programs. Our analysis is developed for a core subset of Hume, a domain-specific functional language targeting resource-sensitive systems (Hammond et al. 2007), and presented as a type and effeect system that builds on previous sized type systems (Hughes et al. 1996, Chin and Khoo 2001) and effeect systems for costs (Dornic et al. 1992, Reistad and Gifford 1994, Hughes and Pareto 1999). It extends previous approaches by using abstract interpretation techniques to automatically infer linear approximations of the sizes of recursive data types and the stack and heap costs of recursive functions. The correctness of the analysis is formally proved with respect to an operational semantics for the language and an inferrence algorithm that automatically reconstructs size and cost bounds is presented. A prototype implementation of the analysis and operational semantics has been constructed and used to experimentally assess the quality of the cost bounds with some examples, including implementations of textbook functional programming algorithms and simplified embedded systems.
[WilhelmW08]
Abstract Interpretation with Applications to Timing Validation(Conference paper)
Authors:
R. Wilhelm; B. Wachter
Editors:
A. Gupta; S. Malik
Date:
2008
Publication:
Computer Aided Verification: Proceedings of the 20th International Conference (CAV 2008)
Series:
Lecture Notes in Computer Science
Volume:
5123
Pages:
22–36
Publisher:
Springer-Verlag, Berlin
ISBN:
978-3-540-70543-7 (Print) 978-3-540-70545-1 (Online)
Abstract
Abstract interpretation is one of the main verification technologies besides model checking and deductive verification. Abstract interpretation has a rich theory of abstraction and strong support for the construction of abstract domains. It allows to express a precise relation to the (concrete) semantics of the programming language inducing a clear relation between the results of an abstract interpretation and the properties of the analyzed program. It permits trading efficiency against precision and offers means to enforce termination where this is not guaranteed. We explain abstract interpretation using examples from a particular application domain: the determination of bounds on the execution times of programs. These bounds are used to show reliably that hard real-time systems satisfy their timing constraints. The application domain requires a number of static analyses and domains with different characteristics. Most domains exhibit Galois connections, a few do not. Some analyses require widening to leap infinite ascending chains and ensure termination.