PPL citations from 2018
All citation years and BibTeX download
[AmatoR18]
Experimental Evaluation of Numerical Domains for Inferring Ranges(Article)- Authors:
- G. Amato; M. Rubino
- Date:
- 2018
- Publication:
- Electronic Notes in Theoretical Computer Science
- Volume:
- 334
- Pages:
- 3–16
- Publisher:
- Elsevier
- ISSN:
- 1571-0661
Abstract
Among the numerical abstract domains for detecting linear relationships between program variables, the polyhedra domain is, from a purely theoretical point of view, the most precise one. Other domains, such as intervals, octagons and parallelotopes, are less expressive but generally more efficient. We focus our attention on interval constraints and, using a suite of benchmarks, we experimentally show that, in practice, polyhedra may often compute results less precise than the other domains, due to the use of the widening operator.
[AndreHW18]
Offline Timed Pattern Matching Under Uncertainty(Conference paper)- Authors:
- É. André; I. Hasuo; M. Waga
- Date:
- 2018
- Publication:
- Proceedings of the 23rd International Conference on Engineering of Complex Computer Systems (ICECCS)
- Pages:
- 10–20
- Publisher:
- IEEE Press
- Location:
- Melbourne, VIC
- ISBN:
- 9781538693414
Abstract
Given a log and a specification, timed pattern matching aims at exhibiting for which start and end dates a specification holds on that log. For example, “a given action is always followed by another action before a given deadline”. This problem has strong connections with monitoring real-time systems. We address here timed pattern matching in presence of an uncertain specification, i.e., that may contain timing parameters (e.g., the deadline can be uncertain or unknown). That is, we want to know for which start and end dates, and for what values of the deadline, this property holds. Or what is the minimum or maximum deadline (together with the corresponding start and end dates) for which this property holds. We propose here a framework for timed pattern matching based on parametric timed model checking. In contrast to most parametric timed problems, the solution is effectively computable, and we perform experiments using IMITATOR to show the applicability of our approach.
[AudrenK18]
3-D Robust Stability Polyhedron in Multicontact(Article)- Authors:
- H. Audren; A. Kheddar
- Date:
- 2018
- Publication:
- IEEE Transactions on Robotics
- Volume:
- 34
- Issue:
- 2
- Pages:
- 388–403
- Publisher:
- IEEE Press
- ISSN:
- 1552-3098
Abstract
We propose algorithms to compute the 3D robust stability region in multi-contact. It is well known that the stability region is a product of convex cones and hence is a convex polyhedron. Our stability region extends existing recursive 2D static stability approaches to 3D by accounting for possible center of mass accelerations. We provide algorithms that construct the region of robust stability in a systematic way. We compare our lgorithms and discuss possible computation of intermediary shapes using morphing. Finally, we provide an example of usage in generating robust static postures that can serve the purpose of multi-contact planning.
[AvisJ18]
mplrs: A Scalable Parallel Vertex/Facet Enumeration Code(Article)- Authors:
- D. Avis; C. Jordan
- Date:
- 2018-06
- Publication:
- Mathematical Programming Computation
- Volume:
- 10
- Issue:
- 2
- Pages:
- 267–302
- Publisher:
- Springer
- ISSN:
- 1867-2949
Abstract
We describe a new parallel implementation, mplrs, of the vertex enumeration code lrs that uses the MPI parallel environment and can be run on a network of computers. The implementation makes use of a C wrapper that essentially uses the existing lrs code with only minor modifications. mplrs was derived from the earlier parallel implementation plrs, written by G. Roumanis in C++ which runs on a shared memory machine. By improving load balancing we are able to greatly improve performance for medium to large scale parallelization of lrs. We report computational results comparing parallel and sequential codes for vertex/facet enumeration problems for convex polyhedra. The problems chosen span the range from simple to highly degenerate polytopes. For most problems tested, the results clearly show the advantage of using the parallel implementation mplrs of the reverse search based code lrs, even when as few as 8 cores are available. For some problems almost linear speedup was observed up to 1200 cores, the largest number of cores tested. The software that was reviewed as part of this submission is included in lrslib-062.tar.gz which has MD5 hash be5da7b3b90cc2be628dcade90c5d1b9.
[Bai18]
Verification of Eventuality Properties for Discrete-Time Affine Systems(Conference paper)- Authors:
- X. Bai
- Date:
- 2018
- Publication:
- Proceedings of the IEEE Conference on Decision and Control (CDC)
- Pages:
- 1560–1565
- Publisher:
- IEEE Press
- Location:
- Miami Beach, FL
- ISBN:
- 9781538613955
Abstract
Regarding the eventuality property of a discrete-time affine system (DTAS), we investigate whether all trajectories in the system leave a given region. Based on the compactness of the region, this study is divided into two cases. For a compact region, we give an exact characterisation of the eventuality property. For a not necessarily compact region, we argue the verification problem can be converted to the evaluation of an invariant cone under a linear map. Finally we provide a sufficient condition for the eventuality property based on the knowledge of eigenvalues and generalized eigenvectors of a matrix. A computational evaluation of the analytical criteria is outlined.
[BakhirkinFHN18]
Keynote: The First-Order Logic of Signals(Conference paper)- Authors:
- A. Bakhirkin; T. Ferrère; T. A. Henzinger; D. Nickovicl
- Editors:
- B. B. Brandenburg; S. Sankaranarayanan
- Date:
- 2018
- Publication:
- Proceedings of the International Conference on Embedded Software (EMSOFT)
- Pages:
- 1
- Publisher:
- IEEE Press
- Location:
- Turin, Italy
- ISBN:
- 9781538655603 9781538655641
Abstract
Formalizing properties of systems with continuous dynamics is a challenging task. In this paper, we propose a formal framework for specifying and monitoring rich temporal properties of real-valued signals. We introduce signal first-order logic (SFO) as a specification language that combines first-order logic with linear-real arithmetic and unary function symbols interpreted as piecewise-linear signals. We first show that while the satisfiability problem for SFO is undecidable, its membership and monitoring problems are decidable. We develop an offline monitoring procedure for SFO that has polynomial complexity in the size of the input trace and the specification, for a fixed number of quantifiers and function symbols. We show that the algorithm has computation time linear in the size of the input trace for the important fragment of bounded-response specifications interpreted over input traces with finite variability. We can use our results to extend signal temporal logic with first-order quantifiers over time and value parameters, while preserving its efficient monitoring. We finally demonstrate the practical appeal of our logic through a case study in the micro-electronics domain.
[BakhirkinM18]
Extending Constraint-Only Representation of Polyhedra with Boolean Constraints(Conference paper)- Authors:
- A. Bakhirkin; D. Monniaux
- Editors:
- A. Podelski
- Date:
- 2018
- Publication:
- Static Analysis: Proceedings of the 25th International Symposium (SAS 2018)
- Series:
- Lecture Notes in Computer Science
- Volume:
- 11002
- Pages:
- 127–145
- Publisher:
- Springer, Cham
- Location:
- Freiburg, Germany
- ISBN:
- 978-3-319-99724-7 (Print) 978-3-319-99725-4 (Online)
Abstract
We propose a new relational abstract domain for analysing programs with numeric and Boolean variables. The main idea is to represent an abstract state as a set of linear constraints over numeric variables, with every constraint being enabled by a formula over Boolean variables. This allows us, unlike in some existing approaches, to avoid duplicating linear constraints shared by multiple Boolean formulas. To perform domain operations, we adapt algorithms from constraint-only representation of convex polyhedra, most importantly Fourier-Motzkin elimination and projection-based convex hull. We made a prototype implementation of the new domain in our abstract interpreter for Horn clauses. Our initial experiments are, in our opinion, promising and show directions for future improvement.
[BecchiZ18a]
A Direct Encoding for NNC Polyhedra(Conference paper)- Authors:
- A. Becchi; E. Zaffanella
- Editors:
- H. Chockler; G. Weissenbacher
- Date:
- 2018
- Publication:
- Computer Aided Verification: Proceedings of the 30th International Conference (CAV 2018), Part I
- Series:
- Lecture Notes in Computer Science
- Volume:
- 10981
- Pages:
- 230–248
- Publisher:
- Springer, Cham
- Location:
- Oxford, UK
- ISBN:
- 978-3-319-96144-6 (Print) 978-3-319-96145-3 (Online)
Abstract
We present an alternative Double Description representation for the domain of NNC (not necessarily closed) polyhedra, together with the corresponding Chernikova-like conversion procedure. The representation uses no slack variable at all and provides a solution to a few technical issues caused by the encoding of an NNC polyhedron as a closed polyhedron in a higher dimension space. A preliminary experimental evaluation shows that the new conversion algorithm is able to achieve significant efficiency improvements.
[BecchiZ18b]
An Efficient Abstract Domain for Not Necessarily Closed Polyhedra(Conference paper)- Authors:
- A. Becchi; E. Zaffanella
- Editors:
- A. Podelski
- Date:
- 2018
- Publication:
- Static Analysis: Proceedings of the 25th International Symposium (SAS 2018)
- Series:
- Lecture Notes in Computer Science
- Volume:
- 11002
- Pages:
- 146–165
- Publisher:
- Springer, Cham
- Location:
- Freiburg, Germany
- ISBN:
- 978-3-319-99724-7 (Print) 978-3-319-99725-4 (Online)
Abstract
We present a construction of the abstract domain of NNC (not necessarily topologically closed) polyhedra based on a recently introduced variant of the double description representation and conversion procedure. We describe the implementation of the operators needed to interface the new abstract domain with commonly available static analysis tools, highlighting the efficiency gains enabled by the new representation. We also reconsider the widening operator for NNC polyhedra, proposing a more appropriate specification based on the semantics of the domain elements, rather than their low level representation details. Finally, we provide an experimental evaluation comparing the efficiency of the new abstract domain with respect to more classical implementations.
[BezdekBCB18]
On Clock-Aware LTL Parameter Synthesis of Timed Automata(Article)- Authors:
- P. Bezděk; N. Beneš; I. Černá; J. Barnat
- Date:
- 2018-10
- Publication:
- Journal of Logical and Algebraic Methods in Programming
- Volume:
- 99
- Pages:
- 114–142
- Publisher:
- Elsevier
- ISSN:
- 2352-2208
Abstract
The parameter synthesis problem for timed automata is undecidable in general even for very simple reachability properties. In this paper we introduce restrictions on parameter valuations under which the parameter synthesis problem is decidable for Clock-Aware LTL properties. The investigated bounded integer parameter synthesis problem could be solved using an explicit enumeration of all possible parameter valuations. We propose an alternative symbolic zone-based method for this problem which can result in a faster computation. Our technique adapts the ideas of the automata-based approach to Clock-Aware LTL model checking of timed automata. In order to simplify the explanation of our method, we first introduce a parameter synthesis algorithm for timed automata, then we describe method for checking Clock-Aware LTL properties of timed automata and finally we combine these two methods together to provide general parameter synthesis algorithm for Clock-Aware LTL properties. To demonstrate the usefulness of our approach, we provide experimental evaluation and compare the proposed method with the explicit enumeration technique.
[BoigelotM18]
Efficient Symbolic Representation of Convex Polyhedra in High-Dimensional Spaces(Conference paper)- Authors:
- B. Boigelot; I. Mainz
- Editors:
- S. K. Lahiri; C. Wang
- Date:
- 2018
- Publication:
- Automated Technology for Verification and Analysis: Proceedings of the 16th International Symposium (ATVA 2018)
- Series:
- Lecture Notes in Computer Science
- Volume:
- 11138
- Pages:
- 284–299
- Publisher:
- Springer, Cham
- Location:
- Los Angeles, CA, USA
- ISBN:
- 978-3-030-01089-8 (Print) 978-3-030-01090-4 (Online)
Abstract
This work is aimed at developing an efficient data structure for representing symbolically convex polyhedra. We introduce an original data structure, the Decomposed Convex Polyhedron (DCP), that is closed under intersection and linear transformations, and allows to check inclusion, equality, and emptiness. The main feature of DCPs lies in their ability to represent concisely polyhedra that can be expressed as combinations of simpler sets, which can overcome combinatorial explosion in high dimensional spaces. DCPs also have the advantage of being reducible into a canonical form, which makes them efficient for representing simple sets constructed by long sequences of manipulations, such as those handled by state-space exploration tools. Their practical efficiency has been evaluated with the help of a prototype implementation, with promising results.
[BoulmeMMPY18]
The Verified Polyhedron Library: An Overview(Conference paper)- Authors:
- S. Boulmé; A. Marechaly; D. Monniaux; M. Périn; H. Yu
- Date:
- 2018
- Publication:
- Proceedings of the 20th International Symposium on Symbolic and Numeric Algorithms for Scientific Computing (SYNASC)
- Pages:
- 9–17
- Publisher:
- IEEE Press
- Location:
- Timisoara, Romania
- ISBN:
- 978-1-7281-0625-0
Abstract
The Verified Polyhedra Library operates upon a constraint-only representation of convex polyhedra and provides all common operations (image, pre-image, projection, convex hull, widening, inclusion and equality tests..). Optionally, the soundness of the results is checked by a layer certified in Coq.
[BoutonnetH18]
Improving the Results of Program Analysis by Abstract Interpretation Beyond the Decreasing Sequence(Article)- Authors:
- R. Boutonnet; N. Halbwachs
- Date:
- 2018
- Publication:
- Formal Methods in System Design
- Volume:
- 53
- Issue:
- 3
- Pages:
- 384–406
- Publisher:
- Springer
- ISSN:
- 0925-9856
Abstract
The classical method for program analysis by abstract interpretation consists in computing first an increasing sequence using an extrapolation operation, called widening, to correctly approximate the limit of the sequence. Then, this approximation is improved by computing a decreasing sequence without widening, the terms of which are all correct, more and more precise approximations. It is generally admitted that, when the decreasing sequence reaches a fixpoint, it cannot be improved further. As a consequence, most efforts for improving the precision of an analysis have been devoted to improving the limit of the increasing sequence. In a previous paper, we proposed a method to improve a fixpoint after its computation. This method consists in computing from the obtained solution a new starting value from which increasing and decreasing sequences are computed again. The new starting value is obtained by projecting the solution onto well-chosen components. The present paper extends and improves the previous paper: the method is discussed in view of some example programs for which it fails. A new method is proposed to choose the restarting value: the restarting value is no longer a simple projection, but is built by gathering and combining information backward the widening nodes in the basic solution. Experiments show that the new method properly solves all our examples, and improves significantly the results obtained on a classical benchmark.
[ChawdharyK18]
Closing the Performance Gap Between Doubles and Rationals for Octagons(Conference paper)- Authors:
- A. Chawdhary; A. King
- Editors:
- A. Podelski
- Date:
- 2018
- Publication:
- Static Analysis: Proceedings of the 25th International Symposium (SAS 2018)
- Series:
- Lecture Notes in Computer Science
- Volume:
- 11002
- Pages:
- 187–204
- Publisher:
- Springer, Cham
- Location:
- Freiburg, Germany
- ISBN:
- 978-3-319-99724-7 (Print) 978-3-319-99725-4 (Online)
Abstract
Octagons have enduring appeal because their domain operations are simple, readily mapping to for-loops which apply max, min and sum to the entries of a Difference Bound Matrix (DBM). In the quest for efficiency, arithmetic is often realised with double-precision floating-point, albeit at the cost of the certainty provided by arbitrary-precision rationals. In this paper we show how Compact DBMs (CoDBMs), which have recently been proposed as a memory refinement for DBMs, enable arithmetic calculation to be short-circuited in various domain operations. We also show how comparisons can be avoided by changing the tables which underpin CoDBMs. From the perspective of implementation, the optimisations are attractive because they too are conceptually simple, following the ethos of Octagons. Yet they can halve the running time on rationals, putting CoDBMs on rationals on a par with DBMs on doubles.
[ChenLZJ18]
The Research on Adaptive Reinforcement Learning Technique Based on Convex Polyhedra Abstraction Domain(Article)- Authors:
- D.-H. Chen; Q. Liu; F. Zhu; H.-D. Jin
- Date:
- 2018-01
- Publication:
- Chinese Journal of Computers
- Volume:
- 41
- Issue:
- 1
- Pages:
- 112–131
- ISSN:
- 0254-4164
In Chinese, with English abstract
Abstract
The table-driven based algorithm is an important method for solving the reinforcement learning problems, but for the real world problems with continuous state spaces, the method is challenged by the curse of dimensionality, also named as the state explosion problem. Two methods have been presented for attacking the curse of dimensionality, including discretization of continuous state space and function approximation. For the usage of the discretization of continuous state space, the table-driven based algorithm is of some advantages than the function approximation based algorithms, namely straightforward principle, the implementation with concise data structure and the lightweight computation. Note that the core of algorithm is to discover a qualified discretization mechanism with which the computation cost and the accuracy of the abstract model are well balanced, and the optimal policy of an original reinforcement learning problem can be approximately derived according to its abstract state space and quantitative reward metrics. This paper presents an adaptive discretization technique based on the convex polyhedra abstraction domain, and designs an adaptive polyhedra domain based algorithm () on the basis of , an important algorithm in reinforcement learning. Convex polyhedron is a qualified representation of abstract state, which is widely in performance evaluation of complex stochastic systems and verification of numerical properties of programs. The method abstracts a continuous (infinite) concrete state space into a discrete and manageable set of abstract states by defining an abstract function, such that the control problem of the original system can be resolved directly by the corresponding abstract system. Especially, some adaptive refinement operators, such as BoxRefinement, LFRefinement and MVLFRefinement, are studied, which are dependent on the online samples information for a refined abstract polyhedron state. The abstract state space is dynamically adjusted, such that a finite and discrete model is statistically derived according to online samples, which approximates the dynamic and reward model of continuous Markov system. Finally, is implemented, in which, the involved algebraic and geometrical computations of polyhedra with the requirement of high precision are programmed by calling the APIs of Parma polyhedra library(PPL) and GNU multiple precision(GMP), and some case studies are conducted for showing the performance of . In the experiments, using mountain car (MC) and acrobatic robot (Acrobot) with the continuous state spaces as the experimental subjects, the ability and the limitation of under different combinations of parameters values are probed in detail. The experimental results demonstrate that (1) behave well when , just as shown in figures 6–13: The policy is rapidly improved in the initial phase and inclines to converge later on, moreover, it has fine adaptability to learning rate and all sorts of parameters related to the refinement of abstract state space; (2) the performance of the algorithm degrades severely when . Summarily, it is a novel idea on solving reinforcement learning problems with continuous state space that abstraction interpretation technique is applied to statistical learning process, and many topics deserve more attention, such as the sampling policy and the update of value functions in the context of abstract approximate model.
[CortesiFHZ18]
Combining Symbolic and Numerical Domains for Information Leakage Analysis(Book chapter)- Authors:
- A. Cortesi; P. Ferrara; R. Halder; M. Zanioli
- Editors:
- M. L. Gavrilova; C. J. K. Tan; N. Chaki; K. Saeed
- Date:
- 2018
- Publication:
- Transactions on Computational Science XXXI
- Series:
- Lecture Notes in Computer Science
- Volume:
- 10730
- Pages:
- 98–135
- Publisher:
- Springer-Verlag, Berlin
- ISBN:
- 978-3-662-56498-1 (Print) 978-3-662-56499-8 (Online)
Abstract
We introduce an abstract domain for information-flow analysis of software. The proposal combines variable dependency analysis with numerical abstractions, yielding to accuracy and efficiency improvements. We apply the full power of the proposal to the case of database query languages as well. Finally, we present an implementation of the analysis, called Sails, as an instance of a generic static analyzer. Keeping the modular construction of the analysis, the tool allows one to tune the granularity of heap analysis and to choose the numerical domain involved in the reduced product. This way the user can tune the information leakage analysis at different levels of precision and efficiency.
[DeAngelisFPP18a]
Predicate Pairing with Abstraction for Relational Verification(Conference paper)- Authors:
- E. De Angelis; F. Fioravanti; A. Pettorossi; M. Proietti
- Editors:
- F. Fioravanti; J. P. Gallagher
- Date:
- 2018
- Publication:
- Logic-Based Program Synthesis and Transformation: Proceedings of the 27th International Symposium (LOPSTR 2017)
- Series:
- Lecture Notes in Computer Science
- Volume:
- 10855
- Pages:
- 289–305
- Publisher:
- Springer, Cham
- Location:
- Namur, Belgium
- ISBN:
- 978-3-319-94459-3 (Print) 978-3-319-94460-9 (Online)
Abstract
Relational verification is a technique that aims at proving properties that relate two different program fragments, or two different program runs. It has been shown that constrained Horn clauses (CHCs) can effectively be used for relational verification by applying a CHC transformation, called Predicate Pairing, which allows the CHC solver to infer relations among arguments of different predicates. In this paper we study how the effects of the Predicate Pairing transformation can be enhanced by using various abstract domains based on Linear Arithmetic (i.e., the domain of convex polyhedra and some of its subdomains) during the transformation. After presenting an algorithm for Predicate Pairing with abstraction, we report on the experiments we have performed on over a hundred relational verification problems by using various abstract domains. The experiments have been performed by using the VeriMAP verification system, together with the Parma Polyhedra Library (PPL) and the Z3 solver for CHCs.
[DeAngelisFPP18b]
Solving Horn Clauses on Inductive Data Types without Induction(Article)- Authors:
- E. De Angelis; F. Fioravanti; A. Pettorossi; M. Proietti
- Date:
- 2018
- Publication:
- Theory and Practice of Logic Programming
- Volume:
- 18
- Issue:
- 3–4
- Pages:
- 452–469
- Publisher:
- Cambridge University Press
- ISSN:
- 1471-0684
Abstract
We address the problem of verifying the satisfiability of Constrained Horn Clauses (CHCs) based on theories of inductively defined data structures, such as lists and trees. We propose a transformation technique whose objective is the removal of these data structures from CHCs, hence reducing their satisfiability to a satisfiability problem for CHCs on integers and booleans. We propose a transformation algorithm and identify a class of clauses where it always succeeds. We also consider an extension of that algorithm, which combines clause transformation with reasoning on integer constraints. Via an experimental evaluation we show that our technique greatly improves the effectiveness of applying the Z3 solver to CHCs. We also show that our verification technique based on CHC transformation followed by CHC solving, is competitive with respect to CHC solvers extended with induction.
[DoyenFPP18]
Verification of Hybrid Systems(Book chapter)- Authors:
- L. Doyen; G. Frehse; G. J. Pappas; A. Platzer
- Editors:
- E. M. Clarke; T. A. Henzinger; H. Veith; R. Bloem
- Date:
- 2018
- Publication:
- Handbook of Model Checking
- Pages:
- 1047–1110
- Publisher:
- Springer, Cham
- ISBN:
- 978-3-319-10574-1 (Print) 978-3-319-10575-8 (Online)
Abstract
Hybrid systems are models which combine discrete and continuous behavior. They occur frequently in safety-critical applications in various domains such as health care, transportation, and robotics, as a result of interactions between a digital controller and a physical environment. They also have relevance in other areas such as systems biology, in which the discrete dynamics arises as an abstraction of fast continuous processes. One of the prominent models is that of hybrid automata, where differential equations are associated with each node, and jump constraints such as guards and resets are associated with each edge. In this chapter, we focus on the problem of model checking of hybrid automata against reachability and invariance properties, enabling the verification of general temporal logic specifications. We review the main decidability results for hybrid automata, and since model checking is in general undecidable, we present three complementary analysis approaches based on symbolic representations, abstraction, and logic. In particular, we illustrate polyhedron-based reachability analysis, finite quotients, abstraction refinement techniques, and logic-based verification. We survey important tools and application domains of successful hybrid system verification in this vibrant area of research.
[FrehseAABGMZ18]
ARCH-COMP18 Category Report: Hybrid Systems with Piecewise Constant Dynamics(Conference paper)- Authors:
- G. Frehse; A. Abate; D. Adzkiya; L. Bu; M. Giacobbe; M. S. Mufid; E. Zaffanella
- Editors:
- G. Frehse
- Date:
- 2018
- Publication:
- Proceedings of the 5th International Workshop on Applied Verification of Continuous and Hybrid Systems (ARCH 2018)
- Series:
- EPiC Series in Computing
- Volume:
- 54
- Pages:
- 1–13
- Publisher:
- EasyChair
- DOI:
- 10.29007/p11g
Abstract
This report presents results of a friendly competition for formal verification of continuous and hybrid systems with piecewise constant dynamics. The friendly competition took place as part of the workshop Applied Verification for Continuous and Hybrid Systems (ARCH) in 2018. In this second edition, five tools have been applied to solve five different benchmark problems in the category for piecewise constant dynamics: BACH, Lyse, PHAVer, PHAVer-lite, and VeriSiMPL. Compared to last year, a new tool has participated (PHAVer-lite) and a benchmark has been made more complex (Dutch Railway Network). The result is a snapshot of the current landscape of tools and the types of benchmarks they are particularly suited for. Due to the diversity of problems, we are not ranking tools, yet the presented results probably provide the most complete assessment of tools for the safety verification of continuous and hybrid systems with piecewise constant dynamics up to this date.
[FrehseGH18]
Space-Time Interpolants(Conference paper)- Authors:
- G. Frehse; M. Giacobbe; T. A. Henzinger
- Editors:
- H. Chockler; G. Weissenbacher
- Date:
- 2018
- Publication:
- Computer Aided Verification: Proceedings of the 30th International Conference (CAV 2018), Part I
- Series:
- Lecture Notes in Computer Science
- Volume:
- 10981
- Pages:
- 468–486
- Publisher:
- Springer, Cham
- Location:
- Oxford, UK
- ISBN:
- 978-3-319-96144-6 (Print) 978-3-319-96145-3 (Online)
Abstract
Reachability analysis is difficult for hybrid automata with affine differential equations, because the reach set needs to be approximated. Promising abstraction techniques usually employ interval methods or template polyhedra. Interval methods account for dense time and guarantee soundness, and there are interval-based tools that overapproximate affine flowpipes. But interval methods impose bounded and rigid shapes, which make refinement expensive and fixpoint detection difficult. Template polyhedra, on the other hand, can be adapted flexibly and can be unbounded, but sound template refinement for unbounded reachability analysis has been implemented only for systems with piecewise constant dynamics. We capitalize on the advantages of both techniques, combining interval arithmetic and template polyhedra, using the former to abstract time and the latter to abstract space. During a CEGAR loop, whenever a spurious error trajectory is found, we compute additional space constraints and split time intervals, and use these space-time interpolants to eliminate the counterexample. Space-time interpolation offers a lazy, flexible framework for increasing precision while guaranteeing soundness, both for error avoidance and fixpoint detection. To the best of out knowledge, this is the first abstraction refinement scheme for the reachability analysis over unbounded and dense time of affine hybrid systems, which is both sound and automatic. We demonstrate the effectiveness of our algorithm with several benchmark examples, which cannot be handled by other tools.
[GarciaSotoP18]
AVERIST(Conference paper)- Authors:
- M. García Soto; P. Prabhakar
- Editors:
- M. Prandini; J. V. Deshmukh
- Date:
- 2018
- Publication:
- Proceedings of the 21st International Conference on Hybrid Systems: Computation and Control (Part of CPS Week)
- Pages:
- 259–264
- Publisher:
- ACM Press, New York, USA
- Location:
- Porto Portugal
Abstract
In this paper, we explain the architecture and implementation of the tool Averist that performs stability verification for linear hybrid systems. This tool implements a hybridization method for approximating linear hybrid systems by hybrid systems with polyhedral inclusion dynamics. It also implements a new counterexample guided abstraction refinement framework for analyzing the hybrid systems with polyhedral inclusion dynamics that are generated as a result of the hybridization. Some of the main features of our tool are as follows: (1) our tool is based on algorithmic techniques that do not rely on the computation of Lyapunov functions, (2) it returns a counterexample when it fails to establish stability, (3) it is less prone to numerical instability issues as compared to Lyapunov function based tools.
[JovanovicK18]
Parameter Synthesis for Probabilistic Timed Automata Using Stochastic Game Abstractions(Article)- Authors:
- A. Jovanović; M. Kwiatkowska
- Date:
- 2018-07
- Publication:
- Theoretical Computer Science
- Volume:
- 735
- Pages:
- 64–81
- Publisher:
- Elsevier
- ISSN:
- 0304-3975
Abstract
We propose a symbolic method to synthesise optimal values of timing parameters for probabilistic timed automata, in the sense that the probability of reaching some set of states is either maximised or minimised. Our first algorithm, based on forward exploration of the symbolic states, can only guarantee parameter values that correspond to upper (resp. lower) bounds on maximum (resp. minimum) reachability probability. To ensure precise reachability probabilities, we adapt the game-based abstraction refinement method. In the parametric setting, our method is able to determine all the possible maximum or minimum reachability probabilities that arise for different values of timing parameters, and yields optimal valuations represented as a set of symbolic constraints between parameters. We report on a prototype implementation of the algorithm in the Prism model checker and its evaluation on a case study.
[KafleGG18]
Tree Dimension in Verification of Constrained Horn Clauses(Article)- Authors:
- B. Kafle; J. P. Gallagher; P. Ganty
- Date:
- 2018
- Publication:
- Theory and Practice of Logic Programming
- Volume:
- 18
- Issue:
- 2
- Pages:
- 224–251
- Publisher:
- Cambridge University Press
- ISSN:
- 1471-0684
Abstract
In this paper, we show how the notion of tree dimension can be used in the verification of constrained Horn clauses (CHCs). The dimension of a tree is a numerical measure of its branching complexity and the concept here applies to Horn clause derivation trees. Derivation trees of dimension zero correspond to derivations using linear CHCs, while trees of higher dimension arise from derivations using non-linear CHCs. We show how to instrument CHCs predicates with an extra argument for the dimension, allowing a CHC verifier to reason about bounds on the dimension of derivations. Given a set of CHCs , we define a transformation of yielding a dimension bounded set of CHCs . The set of derivations for consists of the derivations for that have dimension at most . We also show how to construct a set of clauses denoted whose derivations have dimension exceeding . We then present algorithms using these constructions to decompose a CHC verification problem. One variation of this decomposition considers derivations of successively increasing dimension. The paper includes descriptions of implementations and experimental results.
[KafleGGSSS18]
An Iterative Approach to Precondition Inference Using Constrained Horn Clauses(Article)- Authors:
- B. Kafle; J. P. Gallagher; G. Gange; P. Schachte; H. Søndergaard; P. J. Stuckey
- Date:
- 2018
- Publication:
- Theory and Practice of Logic Programming
- Volume:
- 18
- Issue:
- 3–4
- Pages:
- 553–570
- Publisher:
- Cambridge University Press
- ISSN:
- 1471-0684
Abstract
We present a method for automatic inference of conditions on the initial states of a program that guarantee that the safety assertions in the program are not violated. Constrained Horn clauses (CHCs) are used to model the program and assertions in a uniform way, and we use standard abstract interpretations to derive an over-approximation of the set of unsafe initial states. The precondition then is the constraint corresponding to the complement of that set, under-approximating the set of safe initial states. This idea of complementation is not new, but previous attempts to exploit it have suffered from the loss of precision. Here we develop an iterative specialisation algorithm to give more precise, and in some cases optimal safety conditions. The algorithm combines existing transformations, namely constraint specialisation, partial evaluation and a trace elimination transformation. The last two of these transformations perform polyvariant specialisation, leading to disjunctive constraints which improve precision. The algorithm is implemented and tested on a benchmark suite of programs from the literature in precondition inference and software verification competitions.
[KafleGSSS18TR]
Precondition Inference via Partitioning of Initial States(Technical report)- Authors:
- B. Kafle; G. Gange; P. Schachte; H. Søndergaard; P. J. Stuckey
- Date:
- 2018-11
- Report number:
- arXiv:1811.06771
- Institution:
- arXiv
- Publication type:
- Preprint
Abstract
Precondition inference is a non-trivial task with several applications in program analysis and verification. We present a novel iterative method for automatically deriving sufficient preconditions for safety and unsafety of programs which introduces a new dimension of modularity. Each iteration maintains over-approximations of the set of safe and unsafe initial states. Then we repeatedly use the current abstractions to partition the program's initial states into those known to be safe, known to be unsafe and unknown, and construct a revised program focusing on those initial states that are not yet known to be safe or unsafe. An experimental evaluation of the method on a set of software verification benchmarks shows that it can solve problems which are not solvable using previous methods.
[Kormanyos18]
Real-Time C++: Efficient Object-Oriented and Template Microcontroller Programming(Book)- Authors:
- C. Kormanyos
- Date:
- 2018
- Publisher:
- Springer-Verlag, Berlin
- Edition:
- Third
- ISBN:
- 978-3-662-56717-3 (Print) 978-3-662-56718-0 (Online)
Abstract
With this book, Christopher Kormanyos delivers a highly practical guide to programming real-time embedded microcontroller systems in C++. It is divided into three parts plus several appendices. Part I provides a foundation for real-time C++ by covering language technologies, including object-oriented methods, template programming and optimization. Next, part II presents detailed descriptions of a variety of C++ components that are widely used in microcontroller programming. It details some of C++'s most powerful language elements, such as class types, templates and the STL, to develop components for microcontroller register access, low-level drivers, custom memory management, embedded containers, multitasking, etc. Finally, part III describes mathematical methods and generic utilities that can be employed to solve recurring problems in real-time C++. The appendices include a brief C++ language tutorial, information on the real-time C++ development environment and instructions for building GNU GCC cross-compilers and a microcontroller circuit. For this third edition, the most recent specification of C++17 in ISO/IEC 14882:2017 is used throughout the text. Several sections on new C++17 functionality have been added, and various others reworked to reflect changes in the standard. Also several new sample projects are introduced and existing ones extended, and various user suggestions have been incorporated. To facilitate portability, no libraries other than those specified in the language standard itself are used. Efficiency is always in focus and numerous examples are backed up with real-time performance measurements and size analyses that quantify the true costs of the code down to the very last byte and microsecond. The target audience of this book mainly consists of students and professionals interested in real-time C++. Readers should be familiar with C or another programming language and will benefit most if they have had some previous experience with microcontroller electronics and the performance and size issues prevalent in embedded systems programming.
[KwiatkowskaPW18]
PRISM-Games: Verification and Strategy Synthesis for Stochastic Multi-Player Games with Multiple Objectives(Article)- Authors:
- M. Kwiatkowska; D. Parker; C. Wiltsche
- Date:
- 2018
- Publication:
- International Journal on Software Tools for Technology Transfer
- Volume:
- 20
- Issue:
- 2
- Pages:
- 195–210
- Publisher:
- Springer
- ISSN:
- 1433-2779
Abstract
PRISM-games is a tool for modelling, verification and strategy synthesis for stochastic multi-player games. These allow models to incorporate both probability, to represent uncertainty, unreliability or randomisation, and game-theoretic aspects, for systems where different entities have opposing objectives. Applications include autonomous transport, security protocols, energy management systems and many more. We provide a detailed overview of the PRISM-games tool, including its modelling and property specification formalisms, and its underlying architecture and implementation. In particular, we discuss some of its key features, which include multi-objective and compositional approaches to verification and strategy synthesis. We also discuss the scalability and efficiency of the tool and give an overview of some of the case studies to which it has been applied.
[LalP18]
Hierarchical Abstractions for Reachability Analysis of Probabilistic Hybrid Systems(Conference paper)- Authors:
- R. Lal; P. Prabhakar
- Date:
- 2018
- Publication:
- Proceedings of the 56th Annual Allerton Conference on Communication, Control, and Computing (Allerton)
- Pages:
- 848–855
- Publisher:
- IEEE Press
- Location:
- Monticello, IL, USA
- ISBN:
- 9781538665961
Abstract
We consider the problem of reachability analysis of probabilistic hybrid systems (PHS) which model discrete, continuous and probabilistic behaviors. The discrete and probabilistic dynamics are captured using finite state Markov decision processes (MDP), and the continuous dynamics are modeled by annotating the states of the MDP with differential equations/inclusions. We focus on linear dynamics and propose a two tier abstraction for computing bounds on the probability of reachability, wherein the first step performs dynamics simplification by applying hybridization such that the resulting dynamics is a polyhedral inclusion and the second step constructs a finite state markov decision process that abstracts the polyhedral inclusion dynamics. This two-tier abstraction is computationally simpler than applying predicate abstraction directly on the linear PHS. We have implemented the abstraction and analysis algorithms in a Python toolbox. Our experimental results demonstrate the feasibility of the approach.
[Li18th]
Shape Abstractions with Support for Sharing and Disjunctions(PhD thesis)- Authors:
- H. Li
- Date:
- 2018-03
- Location:
- Paris, France
- School:
- Université Paris Sciences et Lettres
Abstract
Shape analyses rely on expressive families of logical properties to infer complex structural invariants, such that memory safety, structure preservation and other memory properties of programs dealing with dynamic data structures can be automatically verified. Many such analyses manipulate abstract memory states that consist of separating conjunctions of basic predicates describing atomic blocks or summary predicates that describe unbounded heap regions like lists or trees using inductive definitions. Moreover, they use finite disjunctions of abstract memory states in order to take into account dissimilar shapes. Although existing analyses enable local reasoning of memory regions, they do, however, have the following issues: (1) The summary predicates are not expressive enough to describe precisely all the dynamic data structures. In particular, a fairly large number of data structures with unbounded sharing, such as graphs, cannot be described inductively in a local manner; (2) Abstract operations that read or write into summaries rely on materialization of memory cells. The materialization operation in general creates new disjunctions, yet the size of disjunctions should be kept small for the sake of efficiency. However, local predicates are not enough to determine the right set of disjuncts that should be clumped together and to define precise abstract join and widen operations. In this thesis, we study separating conjunction-based shape predicates and the related abstract operations, in particular, abstract joining and widening operations that lead to critical modifications of abstract states. We seek a lightweight way to enable some global reasoning in existing shape analyses such that shape predicates are more expressive for abstracting data structures with unbounded sharing and disjuncts can be clumped precisely and efficiently. We propose a shape abstraction based on set variables that when integrated with inductive definitions enables the specification and shape analysis of structures with unbounded sharing. We implemented the shape analysis domain by combining a separation logic-based shape abstract domain of the MemCAD analyzer and a set abstract domain, where the set abstractions are used to track unbounded pointer sharing properties. Based on this abstract domain, we analyzed a group of programs dealing with adjacency lists of graphs. We design a general semantic criterion to clump abstract memory states based on their silhouettes that express global shape properties, i.e., clumping abstract states when their silhouettes are similar. Silhouettes apply not only to the conservative union of disjuncts but also to the weakening of separating conjunctions of memory predicates into inductive summaries. Our approach allows us to define union and widening operators that aim at preserving the case splits that are required for the analysis to succeed. We implement this approach in the MemCAD analyzer and evaluate it on real-world C libraries for different data structures, including doubly-linked lists, red-black trees, AVL-trees and splay-trees. The experimental results show that our approach is able to keep the size of disjunctions small for scalability and preserve case splits that takes into account dissimilar shapes for precision.
[LiSLSD18]
A Formal Specification and Verification Framework for Timed Security Protocols(Article)- Authors:
- L. Li; J. Sun; Y. Liu; M. Sun; J. S. Dong
- Date:
- 2018
- Publication:
- IEEE Transactions on Software Engineering
- Volume:
- 44
- Issue:
- 8
- Pages:
- 725–746
- Publisher:
- IEEE Press
- ISSN:
- 0098-5589
Abstract
Nowadays, protocols often use time to provide better security. For instance, critical credentials are often associated with expiry dates in system designs. However, using time correctly in protocol design is challenging, due to the lack of time related formal specification and verification techniques. Thus, we propose a comprehensive analysis framework to formally specify as well as automatically verify timed security protocols. A parameterized method is introduced in our framework to handle timing parameters whose values cannot be decided in the protocol design stage. In this work, we first propose timed applied -calculus as a formal language for specifying timed security protocols. It supports modeling of continuous time as well as application of cryptographic functions. Then, we define its formal semantics based on timed logic rules , which facilitates efficient verification against various authentication and secrecy properties. Given a parameterized security protocol, our method either produces a constraint on the timing parameters which guarantees the security property satisfied by the protocol, or reports an attack that works for any parameter value. The correctness of our verification algorithm has been formally proved. We evaluate our framework with multiple timed and untimed security protocols and successfully find a previously unknown timing attack in Kerberos V.
[MajumdarR18]
Symbolic Model Checking in Non-Boolean Domains(Book chapter)- Authors:
- R. Majumdar; J.-F. Raskin
- Editors:
- E. M. Clarke; T. A. Henzinger; H. Veith; R. Bloem
- Date:
- 2018
- Publication:
- Handbook of Model Checking
- Pages:
- 1111–1147
- Publisher:
- Springer, Cham
- ISBN:
- 978-3-319-10574-1 (Print) 978-3-319-10575-8 (Online)
Abstract
We consider symbolic model checking as a general procedure to compute fixed points on general lattices. We show that this view provides a unified approach for formal reasoning about systems that is applicable to many different classes of systems and properties. Our unified view is based on the notion of region algebras together with appropriate generalizations of the modal -calculus. We show applications of our general approach to problems in infinite-state verification, reactive synthesis, and the analysis of probabilistic systems.
[MazoS-KAH18]
Abstracted Models for Scheduling of Event-Triggered Control Data Traffic(Book chapter)- Authors:
- M. Mazo; A. Sharifi-Kolarijani; D. Adzkiya; C. Hop
- Editors:
- S. Tarbouriech; A. Girard; L. Hetel
- Date:
- 2018
- Publication:
- Control Subject to Computational and Communication Constraints
- Series:
- Lecture Notes in Control and Information Sciences
- Volume:
- 475
- Pages:
- 197–217
- Publisher:
- Springer, Cham
- ISBN:
- 978-3-319-78448-9 (Print) 978-3-319-78449-6 (Online)
Abstract
Event-Triggered control (ETC) implementations have been proposed to overcome the inefficiencies of periodic (time-triggered) controller designs, namely the over-exploitation of the computing and communication infrastructure. However, the potential of aperiodic Event-Triggered techniques to reuse the freed bandwidth, and to reduce energy consumption on wireless settings, has not yet been truly reached. The main limitation to fully exploit ETC's great traffic reductions lies on the difficulty to predict the occurrence of controller updates, forcing the use of conservative scheduling approaches in practice. Having a model of the timing behaviour of ETC is of paramount importance to enable the construction of model-based schedulers for such systems. Furthermore, on wireless control systems these schedulers allow to tightly schedule listening times, thus reducing energy consumption. In this chapter we describe an approach to model ETC traffic employing ideas from the symbolic abstractions literature. The resulting models of traffic are timed-automata. We also discuss briefly how these models can be employed to automatically synthesize schedulers.
[Nguyen18th]
Efficient Parametric Verification of Parametric Timed Automata(PhD thesis)- Authors:
- H. G. Nguyen
- Date:
- 2018-08
- Location:
- Paris, France
- School:
- Université Sorbonne Paris Cité
Abstract
Critical real-time systems are becoming ubiquitous and are playing a vital role in our world. To provide guarantees that the system is behaving correctly, the correctness of these systems need to be verified before running. Besides functional checking, the timed behavior checking is also crucial. Indeed, the correctness of the systems also depends on the timing values or delays of internal operations that can be affected by the environment. Verification techniques assure that software or hardware systems fully satisfy all their expected requirements. Most formal verification methods for timed systems guarantee the correctness of a timed system for the predefined timing values in its blueprint, but not for other undefined timing values which might occur by the environment change and lead to undesired system behaviors. Unfortunately, verifying such system for various timing values can be an obstacle and time-consuming. Therefore, by abstracting these specific timing values with parameters, many timing values of a system can be easily synthesized and checked at the same time : this technique is also known as parameter synthesis. As a huge challenge for the verification, parameter synthesis techniques also suffer from the “state space explosion” problem, which is the explosion of the number of possible states while verifying a system formally. First of all, we are interested in taking advantage of the capabilities of current distributed architectures, and parameter synthesis algorithms should be redefined and adapted to the distributed case. We propose in the thesis several distribution schemes that can accelerate our parameter synthesis procedures. We also focus on studying the techniques such as symbolic verification, zone subsumption, etc. and how they affect the state space explosion problem. Then we introduce several smart state exploration techniques with some heuristics, in order to reduce the state space explosion. These techniques and heuristics are integrated into our new synthesis algorithms, and one of these algorithms is also extended in a distributed manner which gives an impressive performance in our benchmarks. Furthermore, to achieve a reliable result we present an approach for detecting timed systems doing an infinite amount of actions in a finite time, which is known as the Zeno phenomenon in theory. In reality, it is infeasible and such counterexamples should always be avoided. Additionally, to detect the non-Zeno phenomenon on a large scale network model, we also distribute our approach on clusters. In the end, we introduce an algorithm to detect non-Zeno runs and its distributed version of it for large-scale models. At the time of writing this thesis, this is also the first work on non-Zeno parameter synthesis.
[NguyenPvdP18]
Layered and Collecting NDFS with Subsumption for Parametric Timed Automata(Conference paper)- Authors:
- H. G. Nguyen; L. Petrucci; J. van de Pol
- Date:
- 2018
- Publication:
- Proceedings of the 23rd International Conference on Engineering of Complex Computer Systems (ICECCS)
- Pages:
- 1–9
- Publisher:
- IEEE Press
- Location:
- Melbourne, VIC
- ISBN:
- 9781538693414
Abstract
This paper studies the analysis and parameter synthesis problems for Parametric Timed Automata (PTA) with properties in Linear-time Temporal Logic (LTL). It introduces a series of variations of Nested Depth-First Search (NDFS). We first study the LTL model checking problem for PTA. Based on a careful analysis of parametric zones, we introduce a new layered NDFS approach to LTL model checking. We integrate this with several techniques to prune the search space. In particular, we apply subsumption abstraction to PTA for the first time. We also propose heuristics on the search order to improve the performance. Next, we study parameter synthesis. To this end, this new layered approach and subsumption are added to a Collecting NDFS scheme. We implemented all algorithms in the Imitator tool and analyse their efficiency in a number of experiments.
[PayetS18]
Checking Array Bounds by Abstract Interpretation and Symbolic Expressions(Conference paper)- Authors:
- É. Payet; F. Spoto
- Editors:
- D. Galmiche; S. Schulz; R. Sebastiani
- Date:
- 2018
- Publication:
- Automated Reasoning: Proceedings of the 9th International Joint Conference (IJCAR 2018)
- Series:
- Lecture Notes in Computer Science
- Volume:
- 10900
- Pages:
- 706–722
- Publisher:
- Springer, Cham
- Location:
- Oxford, UK
- ISBN:
- 978-3-319-94204-9 (Print) 978-3-319-94205-6 (Online)
Abstract
Array access out of bounds is a typical programming error. From the '70s, static analysis has been used to identify where such errors actually occur at runtime, through abstract interpretation into linear constraints. However, feasibility and scalability to modern object-oriented code has not been established yet. This article builds on previous work on linear constraints and shows that the result does not scale, when polyhedra implement the linear constraints, while the more abstract zones scale to the analysis of medium-size applications. Moreover, this article formalises the inclusion of symbolic expressions in the constraints and shows that this improves its precision. Expressions are automatically selected on-demand. The resulting analysis applies to code with dynamic memory allocation and arrays held in expressions. It is sound, also in the presence of arbitrary side-effects. It is fully defined in the abstract interpretation framework and does not use any code instrumentation. Its proof of correctness, its implementation inside the commercial Julia analyzer and experiments on third-party code complete the work.
[PetruccivdP18]
Parameter Synthesis Algorithms for Parametric Interval Markov Chains(Conference paper)- Authors:
- L. Petrucci; J. van de Pol
- Editors:
- C. Baier; L. Caires
- Date:
- 2018
- Publication:
- Formal Techniques for Distributed Objects, Components, and Systems: Proceedings of the 38th IFIP WG 6.1 International Conference (FORTE 2018)
- Series:
- Lecture Notes in Computer Science
- Volume:
- 10854
- Pages:
- 121–140
- Publisher:
- Springer, Cham
- Location:
- Madrid, Spain
- ISBN:
- 978-3-319-92611-7 (Print) 978-3-319-92612-4 (Online)
Abstract
This paper considers the consistency problem for Parametric Interval Markov Chains. In particular, we introduce a co-inductive definition of consistency, which improves and simplifies previous inductive definitions considerably. The equivalence of the inductive and co-inductive definitions has been formally proved in the interactive theorem prover PVS.These definitions lead to forward and backward algorithms, respectively, for synthesizing an expression for all parameters for which a given PIMC is consistent. We give new complexity results when tackling the consistency problem for IMCs (i.e. without parameters). We provide a sharper upper bound, based on the longest simple path in the IMC. The algorithms are also optimized, using different techniques (dynamic programming cache, polyhedra representation, etc.). They are evaluated on a prototype implementation. For parameter synthesis, we use Constraint Logic Programming and the PARMA library for convex polyhedra.
[RuefHC18]
Volume-Based Merge Heuristics for Disjunctive Numeric Domains(Conference paper)- Authors:
- A. Ruef; K. Hietala; A. Cox
- Editors:
- A. Podelski
- Date:
- 2018
- Publication:
- Static Analysis: Proceedings of the 25th International Symposium (SAS 2018)
- Series:
- Lecture Notes in Computer Science
- Volume:
- 11002
- Pages:
- 383–401
- Publisher:
- Springer, Cham
- Location:
- Freiburg, Germany
- ISBN:
- 978-3-319-99724-7 (Print) 978-3-319-99725-4 (Online)
Abstract
Static analysis of numeric programs allows proving important properties of programs such as a lack of buffer overflows, division by zero, or integer overflow. By using convex numeric abstractions, such as polyhedra, octagons, or intervals, representations of program states are concise and the analysis operations are efficient. Unfortunately, many sets of program states can only be very imprecisely represented with a single convex numeric abstraction. This means that many important properties cannot be proven using only these abstractions. One solution to this problem is to use powerset abstractions where a set of convex numeric abstractions represents the union rather than the hull of those state sets. This leads to a new challenge: when to merge elements of the powerset and when to keep them separate. We present a new methodology for determining when to merge based on counting and volume arguments. Unlike previous techniques, this heuristic directly represents losses in precision through hull computations. In this paper we develop these techniques and show their utility on a number of programs from the SV-COMP and WCET benchmark suites.
[SchulzeFrielinghausSV18]
Enforcing Termination of Interprocedural Analysis(Article)- Authors:
- S. Schulze Frielinghaus; H. Seidl; R. Vogler
- Date:
- 2018
- Publication:
- Formal Methods in System Design
- Volume:
- 53
- Issue:
- 2
- Pages:
- 313–338
- Publisher:
- Springer
- ISSN:
- 0925-9856
Abstract
Interprocedural analysis by means of partial tabulation of summary functions may not terminate when the same procedure is analyzed for infinitely many abstract calling contexts or when the abstract domain has infinite strictly ascending chains. As a remedy, we present a novel local solver for general abstract equation systems, be they monotonic or not, and prove that this solver fails to terminate only when infinitely many variables are encountered. We clarify in which sense the computed results are sound. Moreover, we show that interprocedural analysis performed by this novel local solver, is guaranteed to terminate for all non-recursive programs — irrespective of whether the complete lattice is infinite or has infinite strictly ascending or descending chains.
[SeladjiQ18]
Polyhedron over-Approximation for Complexity Reduction in Static Analysis(Article)- Authors:
- Y. Seladji; Z. Qu
- Date:
- 2018-10
- Publication:
- International Journal of Computer Mathematics: Computer Systems Theory
- Volume:
- 3
- Issue:
- 4
- Pages:
- 215–229
- Publisher:
- Informa UK Limited
- ISSN:
- 2379-9927
Abstract
Polyhedra are widely used in the verification of numerical programs. Specially, in the field of static analysis by abstract interpretation to express the program invariants. Polyhedra make the analysis very expressive but also very time consuming. That cost is mostly due to the minimization function, which is used to maintain polyhedra in their minimal representation without redundant constraints or generators. In this article, we propose method to over-approximate a polyhedron by minimizing the loss of accuracy. The idea is to find a good trade off between accuracy and execution time. The proposed method is applied as an alternative to the minimization function for the template polyhedra abstract domain.
[Sherman18]
Redesigning Soot's Data-Flow Analysis Framework for Abstract Interpretation(Conference paper)- Authors:
- E. Sherman
- Editors:
- J. Dolby; W. G. J. Halfond; A. Mishra
- Date:
- 2018
- Publication:
- Companion Proceedings for the ISSTA/ECOOP 2018 Workshops
- Pages:
- 78–84
- Publisher:
- ACM Press, New York, USA
- Location:
- Amsterdam Netherlands
- ISBN:
- 978-1-4503-5939-9
Abstract
The goal of a program analysis framework is to decrease the effort required of a program analysis developer to implement a new analysis. The Soot Java optimization framework provides analysis developers with several types of abstract analyses, which depending on the developers' needs, can be further extended. Unfortunately, the applicability of the available abstract analyses in Soot is limited to analyses with finite ascending chains abstract domains, which are sufficient for the majority of program optimization tasks. This limitation hinders the use of Soot for program verification that requires reasoning about a program's semantic over infinite abstract domains, i.e., abstract interpretation. In this work we re-design Soot's forward flow analysis framework to provide basic support for abstract interpretation. To accomplish this goal, we first extend the definition of a data-flow analysis to include additional parameters required for efficient and precise computation of abstract interpretation analyses. Next, we re-factor the current Soot's implementation of a data-flow analysis to represent the extended definition. Finally, we demonstrate the flexibility and the applicability of the refactored implementation by instantiating several essential data-flow analyses used in abstract interpretation research.
[SinghPV18a]
A Practical Construction for Decomposing Numerical Abstract Domains(Article)- Authors:
- G. Singh; M. Püschel; M. Vechev
- Date:
- 2018
- Publication:
- Proceedings of the ACM on Programming Languages
- Volume:
- 2
- Issue:
- POPL
- Pages:
- 55:1–55:28
- Publisher:
- ACM Press, New York, USA
- ISSN:
- 2475-1421
- DOI:
- 10.1145/3158143
Abstract
Numerical abstract domains such as Polyhedra, Octahedron, Octagon, Interval, and others are an essential component of static program analysis. The choice of domain offers a performance/precision tradeoff ranging from cheap and imprecise (Interval) to expensive and precise (Polyhedra). Recently, significant speedups were achieved for Octagon and Polyhedra by manually decomposing their transformers to work with the Cartesian product of projections associated with partitions of the variable set. While practically useful, this manual process is time consuming, error-prone, and has to be applied from scratch for every domain. In this paper, we present a generic approach for decomposing the transformers of sub-polyhedra domains along with conditions for checking whether the decomposed transformers lose precision with respect to the original transformers. These conditions are satisfied by most practical transformers, thus our approach is suitable for increasing the performance of these transformers without compromising their precision. Furthermore, our approach is “black box:” it does not require changes to the internals of the original non-decomposed transformers or additional manual effort per domain. We implemented our approach and applied it to the domains of Zones, Octagon, and Polyhedra. We then compared the performance of the decomposed transformers obtained with our generic method versus the state of the art: the (non-decomposed) PPL for Polyhedra and the much faster ELINA (which uses manual decomposition) for Polyhedra and Octagon. Against ELINA we demonstrate finer partitions and an associated speedup of about 2x on average. Our results indicate that the general construction presented in this work is a viable method for improving the performance of sub-polyhedra domains. It enables designers of abstract domains to benefit from decomposition without re-writing all of their transformers from scratch as required by prior work.
[SinghPV18b]
Fast Numerical Program Analysis with Reinforcement Learning(Conference paper)- Authors:
- G. Singh; M. Püschel; M. Vechev
- Editors:
- H. Chockler; G. Weissenbacher
- Date:
- 2018
- Publication:
- Computer Aided Verification: Proceedings of the 30th International Conference (CAV 2018), Part I
- Series:
- Lecture Notes in Computer Science
- Volume:
- 10981
- Pages:
- 211–229
- Publisher:
- Springer, Cham
- Location:
- Oxford, UK
- ISBN:
- 978-3-319-96144-6 (Print) 978-3-319-96145-3 (Online)
Abstract
We show how to leverage reinforcement learning (RL) in order to speed up static program analysis. The key insight is to establish a correspondence between concepts in RL and those in analysis: a state in RL maps to an abstract program state in analysis, an action maps to an abstract transformer, and at every state, we have a set of sound transformers (actions) that represent different trade-offs between precision and performance. At each iteration, the agent (analysis) uses a policy learned offline by RL to decide on the transformer which minimizes loss of precision at fixpoint while improving analysis performance. Our approach leverages the idea of online decomposition (applicable to popular numerical abstract domains) to define a space of new approximate transformers with varying degrees of precision and performance. Using a suitably designed set of features that capture key properties of abstract program states and available actions, we then apply Q-learning with linear function approximation to compute an optimized context-sensitive policy that chooses transformers during analysis. We implemented our approach for the notoriously expensive Polyhedra domain and evaluated it on a set of Linux device drivers that are expensive to analyze. The results show that our approach can yield massive speedups of up to two orders of magnitude while maintaining precision at fixpoint.
[Stulova18th]
Improving Run-Time Checking in Dynamic Programming Languages(PhD thesis)- Authors:
- N. Stulova
- Date:
- 2018
- Location:
- Madrid, Spain
- School:
- Universidad Politécnica de Madrid
Abstract
Detecting incorrect program behaviors is an important part of the software development life cycle. It is also a complex and tedious one, in which dynamic languages bring special challenges. A number of techniques have been proposed to aid in the process, among which we center our attention on the use of language-level constructs to describe expected program behavior, and of associated tools to compare actual program behavior against expectations, such as static code analyzers/ verifiers and run-time verification frameworks. In practice, however, the run-time overhead associated with these tools often remains impractically high, specially for non-trivial properties, or complex data structure tests. This reduces the attractiveness of run-time checking to programmers, who may allow sporadic checking of very simple conditions, but will tend to turn off run-time checking for more complex properties in favor of faster execution. Some approaches even opt for limiting the expressiveness of the assertion language in order to reduce the overhead. Our research objective in this thesis is twofold: - first, we aim to enhance the expressiveness of the assertion language to reflect all the features of the related programming language, including, e.g., higher-order constructs, and to do so in a way that allows the programmer to write precise program specifications while not imposing a learning or programming burden on them; - at the same time, our goal is to efficiently check specifications, mitigating the associated run-time overhead as much as possible without compromising the safety guarantees that the checks provide. With respect to checking specifications efficiently this dissertation presents several improvements for run-time specification checking, including: - a mechanism for unobtrusive caching of intermediate run-time checking results so that they can be re-used in the checking process instead of being re-evaluated, contributing to undesirable (and unnecessary) run-time overhead; - a technique of combining compile- and run-time checking in a way that uses the properties from the program specification as an additional information source during static specification checking, which results in more properties checked statically and fewer of them turned into run-time checks; - and another technique for improving term shape inference during static program analysis, exploiting term visibility rules of the underlying module system, which allows to simplify property checks in a program in a way that constant run-time overhead is achievable in relevant cases. Finally, to address the limited expressiveness of the specification languages, this dissertation targets the concrete case of providing detailed specifications for higher-order program routines. The techniques and tools discussed in this thesis are presented for concreteness in the context of the Ciao run-time checking framework. Nevertheless, these results are general and system-independent, and we believe they can be straightforwardly transferred to the contexts of other declarative languages. In addition, given the recent advances in verification of a wide class of programming languages, including imperative ones, by translation into Horn clauses and proving properties at this level, and the fact that this approach is fully supported in the Ciao system, we argue that our results can easily be adapted to a much broader spectrum of languages.
[StulovaMH18]
Some Trade-Offs in Reducing the Overhead of Assertion Run-Time Checks via Static Analysis(Article)- Authors:
- N. Stulova; J. F. Morales; M. V. Hermenegildo
- Date:
- 2018
- Publication:
- Science of Computer Programming
- Volume:
- 155
- Pages:
- 3–26
- Publisher:
- Elsevier
- ISSN:
- 0167-6423
Abstract
A number of approaches for helping programmers detect incorrect program behaviors are based on combining language-level constructs (such as procedure-level assertions/contracts, program-point assertions, or gradual types) with a number of associated tools (such as code analyzers and run-time verification frameworks) that automatically check the validity of such constructs. However, these constructs and tools are often not used to their full extent in practice due to excessive run-time overhead, limited expressiveness, and/or limitations in the effectiveness of the tools. Verification frameworks that combine static and dynamic verification techniques and are based on abstraction offer the potential to bridge this gap. In this paper we explore the effectiveness of abstract interpretation in detecting parts of program specifications that can be statically simplified to true or false, as well as in reducing the cost of the run-time checks required for the remaining parts of these specifications. Starting with a semantics for programs with assertion checking, and for assertion simplification based on static analysis information obtained via abstract interpretation, we propose and study a number of practical assertion checking “modes,” each of which represents a trade-off between code annotation depth, execution time slowdown, and program safety. We then explore these modes in two typical, library-oriented scenarios. We also propose program transformation-based methods for taking advantage of the run-time checking semantics to improve the precision of the analysis. Finally, we study experimentally the performance of these techniques. Our experiments illustrate the benefits and costs of each of the assertion checking modes proposed, as well as the benefits obtained from analysis and the proposed transformations in these scenarios
[SubramaniW18]
A Certifying Algorithm for Lattice Point Feasibility in a System of UTVPI Constraints(Article)- Authors:
- K. Subramani; P. Wojciechowski
- Date:
- 2018-02
- Publication:
- Journal of Combinatorial Optimization
- Volume:
- 35
- Issue:
- 2
- Pages:
- 389–408
- Publisher:
- Springer
- ISSN:
- 1382-6905
Abstract
This paper is concerned with the design and analysis of a certifying algorithm for checking the lattice point feasibility of a class of constraints called unit two variable per inequality (UTVPI) constraints. A UTVPI constraint has at most two non-zero variables and the coefficients of the non-zero variables belong to the set . These constraints occur in a number of application domains, including but not limited to program verification, abstract interpretation, and operations research. As per the literature, the fastest known model generating algorithm for checking lattice point feasibility in UTVPI constraint systems runs in time and space, where represents the number of constraints and represents the number of variables in the constraint system (Lahiri and Musuvathi, in: Proceedings of the 5th international workshop on the frontiers of combining systems (FroCos), lecture notes in computer science, vol 3717, pp 168–183, 2005). In this paper, we design and analyze a new algorithm for checking the lattice point feasibility of UTVPI constraints. The presented algorithm runs in time and space. Additionally it is certifying in that it produces a satisfying assignment in the event that it is presented with feasible instances and refutations in the event that it is presented with infeasible instances. The importance of providing certificates cannot be overemphasized, especially in mission-critical applications. Our approaches for the lattice point feasibility problem in UTVPI constraint systems is fundamentally different from existing approaches for this problem; indeed, it is based on new insights into combining well-known inference rules for these systems.
[SubramaniWSA18]
An Empirical Analysis of Feasibility Checking Algorithms for UTVPI Constraints(Conference paper)- Authors:
- K. Subramani; P. Wojciechowski; Z. Santer; M. Anderson
- Editors:
- S. Tang; D.-Z. Du; D. Woodruff; S. Butenko
- Date:
- 2018
- Publication:
- Algorithmic Aspects in Information and Management: Proceedings of the 12th International Conference (AAIM 2018)
- Series:
- Lecture Notes in Computer Science
- Volume:
- 11343
- Pages:
- 111–123
- Publisher:
- Springer, Cham
- Location:
- Dallas, TX, USA
- ISBN:
- 978-3-030-04617-0 (Print) 978-3-030-04618-7 (Online)
Abstract
In this paper, we document the results of a detailed implementation study of two different algorithms for checking real (linear) and integer feasibility in a conjunction of Unit Two Variable per Inequality (UTVPI) constraints. Recall that a UTVPI constraint is a linear relationship of the form: , where . A conjunction of UTVPI constraints is called a UTVPI constraint system (UCS). UTVPI constraints subsume difference constraints. Unlike difference constraints, the linear and integer feasibilities for UCSs do not coincide. UCSs find applications in a number of different domains such as abstract interpretation, packing, and covering. There exist several algorithms for UCS linear feasibility and integer feasibility with various running times. We will focus on the linear feasibility algorithms in [19] () and [13] (). We also focus on the integer feasibility algorithms in [18] () and [13] (). We compare our implementations to the Yices SMT solver [17] running linear real arithmetic (QF_LRA) and linear integer arithmetic (QF_LIA). Our experiments indicate that is moderately superior to in terms of time, and that is vastly superior to in terms of time. Additionally on small inputs the Yices Solver performs better than the implemented algorithms, however the implemented algorithms perform much better on larger inputs.
[SweetTSHM18]
What's the Over/Under? Probabilistic Bounds on Information Leakage(Book chapter)- Authors:
- I. Sweet; J. M. C. Trilla; C. Scherrer; M. Hicks; S. Magill
- Editors:
- L. Bauer; R. Küsters
- Date:
- 2018
- Publication:
- Principles of Security and Trust: Proceedings of the 7th International Conference (POST 2018)
- Series:
- Lecture Notes in Computer Science
- Volume:
- 10804
- Pages:
- 3–27
- Publisher:
- Springer, Cham
- Location:
- Thessaloniki, Greece
- ISBN:
- 978-3-319-89721-9 (Print) 978-3-319-89722-6 (Online)
Abstract
Quantitative information flow (QIF) is concerned with measuring how much of a secret is leaked to an adversary who observes the result of a computation that uses it. Prior work has shown that QIF techniques based on abstract interpretation with probabilistic polyhedra can be used to analyze the worst-case leakage of a query, on-line, to determine whether that query can be safely answered. While this approach can provide precise estimates, it does not scale well. This paper shows how to solve the scalability problem by augmenting the baseline technique with sampling and symbolic execution. We prove that our approach never underestimates a query's leakage (it is sound), and detailed experimental results show that we can match the precision of the baseline technique but with orders of magnitude better performance.
[TitoloFMM18]
An Abstract Interpretation Framework for the Round-Off Error Analysis of Floating-Point Programs(Conference paper)- Authors:
- L. Titolo; M. A. Feliú; M. Moscato; C. A. Muñoz
- Editors:
- I. Dillig; J. Palsberg
- Date:
- 2018
- Publication:
- Verification, Model Checking, and Abstract Interpretation: Proceedings of the 19th International Conference (VMCAI 2018)
- Series:
- Lecture Notes in Computer Science
- Volume:
- 10747
- Pages:
- 516–537
- Publisher:
- Springer, Cham
- Location:
- Los Angeles, CA, USA
- ISBN:
- 978-3-319-73720-1 (Print) 978-3-319-73721-8 (Online)
Abstract
This paper presents an abstract interpretation framework for the round-off error analysis of floating-point programs. This framework defines a parametric abstract analysis that computes, for each combination of ideal and floating-point execution path of the program, a sound over-approximation of the accumulated floating-point round-off error that may occur. In addition, a Boolean expression that characterizes the input values leading to the computed error approximation is also computed. An abstraction on the control flow of the program is proposed to mitigate the explosion of the number of elements generated by the analysis. Additionally, a widening operator is defined to ensure the convergence of recursive functions and loops. An instantiation of this framework is implemented in the prototype tool PRECiSA that generates formal proof certificates stating the correctness of the computed round-off errors.
[WeiMRFH18]
Evaluating Design Tradeoffs in Numeric Static Analysis for Java(Book chapter)- Authors:
- S. Wei; P. Mardziel; A. Ruef; J. S. Foster; M. Hicks
- Editors:
- A. Ahmed
- Date:
- 2018
- Publication:
- Programming Languages and Systems
- Series:
- Lecture Notes in Computer Science
- Volume:
- 10801
- Pages:
- 653–682
- Publisher:
- Springer, Cham
- Location:
- Thessaloniki, Greece
- ISBN:
- 978-3-319-89883-4 (Print) 978-3-319-89884-1 (Online)
Abstract
Numeric static analysis for Java has a broad range of potentially useful applications, including array bounds checking and resource usage estimation. However, designing a scalable numeric static analysis for real-world Java programs presents a multitude of design choices, each of which may interact with others. For example, an analysis could handle method calls via either a top-down or bottom-up interprocedural analysis. Moreover, this choice could interact with how we choose to represent aliasing in the heap and/or whether we use a relational numeric domain, e.g., convex polyhedra. In this paper, we present a family of abstract interpretation-based numeric static analyses for Java and systematically evaluate the impact of 162 analysis configurations on the DaCapo benchmark suite. Our experiment considered the precision and performance of the analyses for discharging array bounds checks. We found that top-down analysis is generally a better choice than bottom-up analysis, and that using access paths to describe heap objects is better than using summary objects corresponding to points-to analysis locations. Moreover, these two choices are the most significant, while choices about the numeric domain, representation of abstract objects, and context-sensitivity make much less difference to the precision/performance tradeoff.
[Zaffanella18]
On the Efficiency of Convex Polyhedra(Article)- Authors:
- E. Zaffanella
- Date:
- 2018
- Publication:
- Electronic Notes in Theoretical Computer Science
- Volume:
- 334
- Pages:
- 31–44
- Publisher:
- Elsevier
- ISSN:
- 1571-0661
Abstract
The domain of convex polyhedra plays a special role in the collection of numerical domains considered for program analysis and verification. As far as precision is concerned, it would be the most natural choice in many contexts but, due to its worst case exponential complexity, it is sometimes considered an unaffordable option. This has led to a systematic quest for simpler domains that are capable of reasonable precision using less computational resources. There are anyway cases where the use of the domain of convex polyhedra turns out to be feasible, also due to recent progress in their implementation. After reviewing a few known approaches to decrease the amount of resources needed when computing on this domain, we will introduce a couple of novel techniques that can be used to further improve its efficiency, without incurring precision losses.
[Zhao18th]
A Combined Language and Polyhedral Approach to Heterogeneous Parallelism(PhD thesis)- Authors:
- J. Zhao
- Date:
- 2018-12
- Location:
- Paris, France
- School:
- Université Paris Sciences et Lettres
Abstract
Nowadays, optimizing compilers are increasingly challenged by the diversity of programming languages and heterogeneity of architectures. The polyhedral model is a powerful mathematical framework for programs to exploit automatic parallelization and locality optimization, playing an important role in the field of optimizing compilers. A long standing limitation of the model has been its restriction to static control affine programs, resulting in an emergent demand for the support of non-affine extensions. This is particularly acute in the context of heterogeneous architectures where a variety of computation kernels need to be analyzed and transformed to match the constraints of hardware accelerators and to manage data transfers across memory spaces. We explore multiple non-affine extensions of the polyhedral model, in the context of a well defined intermediate language combining affine and syntactic elements. On the one hand, we explain how transformations and code generation for loops with non-affine, data-dependent and dynamic loop bounds are integrated into a polyhedral framework, extending the applicable domain of polyhedral compilation in the realm of non-affine applications. On the other hand, we describe the integration of overlapped tiling for stencil computations into a general polyhedral framework, automating non-affine transformations in polyhedral compilation. We evaluate our techniques on both CPU and GPU architectures, validating the effectiveness of the optimizations by conducting an in-depth performance comparison with state-of-the-art frameworks and manually-written libraries.
[ZhaoLZ18]
“Black Magic” of Polyhedral Compilation(Article)- Authors:
- J. Zhao; Y.-Y. Li; R.-C. Zhao
- Date:
- 2018
- Publication:
- Journal of Software
- Volume:
- 29
- Issue:
- 8
- Pages:
- 2371–2396
- ISSN:
- 1000-9825
In Chinese, with English abstract
Abstract
Polyhedral compilation has evolved for nearly three decades, being implemented as a building block or an optional extension of numerous open-source and/or commercial compilers. On the one hand, the polyhedral model is equipped with wider range of applications, more powerful expressiveness and greater optimization space when compared with those traditional models adopted for parallelizing compilers, thus representing the state of the art of almost each domain of parallelizing compilers and becoming a hot topic to a great number of international research teams working on compilers. On the other hand, the polyhedral model is also characterized as being difficult in theory, complex for manipulation, and diverse with challenges, hampering its adoption in underdeveloped countries and areas and drawing few researchers working on this topic from the domestic compiler community. Aiming at opening the “black-box” of the polyhedral model, this paper conducts a survey on the “black magic” of polyhedral compilation. First, the underlaying theory behind the polyhedral model is introduced along with a desciption of the general compilation process and an overview of the research directions. Next, the research progress of the polyhedral compilation targeting on parallelism, data locality, and extensions in various application domains is presented. Last but not least, open challenges faced by the polyhedral community and potential research directions on this topic are disussed. The purpose of this work is to provide an important reference for the domestic compiler community by reviewing and summarizing current trends on the polyhedral compilation, and to promote Chinese compiler researchers in making progress on this topic.
[ZolotykhKL18]
Double Description Method over the Field of Algebraic Numbers(Article)- Authors:
- N. Yu. Zolotykh; V. K. Kubarev; S. S. Lyalin
- Date:
- 2018-06
- Publication:
- Vestnik Udmurtskogo Universiteta. Matematika. Mekhanika. Komp'yuternye Nauki
- Volume:
- 28
- Issue:
- 2
- Pages:
- 161–175
- Publisher:
- Izhevsk Institute of Computer Science
- ISSN:
- 1994-9197
Abstract
We consider the problem of constructing the dual representation of a convex polyhedron defined as a set of solutions to a system of linear inequalities with coefficients which are algebraic numbers. The inverse problem is equivalent (dual) to the initial problem. We propose program implementations of several variations of the well-known double description method (Motzkin–Burger method) solving this problem. The following two cases are considered: 1) the elements of the system of inequalities are arbitrary algebraic numbers, and each such number is represented by its minimal polynomial and a localizing interval; 2) the elements of the system belong to a given extension of , and the minimal polynomial and the localizing interval are given only for , all elements of the system, intermediate and final results are represented as polynomials of . As expected, the program implementation for the second case significantly outperforms the implementation for the first one in terms of speed. In the second case, for greater acceleration, we suggest using a Boolean matrix instead of the discrepancy matrix. The results of a computational experiment show that the program is quite suitable for solving medium-scale problems.