Skip to Content

PPL citations from 2021

All citation years and BibTeX download

[AlbertHMS21]
Certified Abstract Cost Analysis(Conference paper)
Authors:
E. Albert; R. Hähnle; A. Merayo; D. Steinhöfel
Editors:
E. Guerra; M. Stoelinga
Date:
2021
Publication:
Fundamental Approaches to Software Engineering: Proceedings of the 24th International Conference (FASE 2021)
Series:
Lecture Notes in Computer Science
Volume:
12649
Pages:
24–45
Publisher:
Springer, Cham
Location:
Luxembourg City, Luxembourg
ISBN:
978-3-030-71499-4 (Print) 978-3-030-71500-7 (Online)
Abstract
A program containing placeholders for unspecified statements or expressions is called an abstract (or schematic) program. Placeholder symbols occur naturally in program transformation rules, as used in refactoring, compilation, optimization, or parallelization. We present a generalization of automated cost analysis that can handle abstract programs and, hence, can analyze the impact on the cost of program transformations. This kind of relational property requires provably precise cost bounds which are not always produced by cost analysis. Therefore, we certify by deductive verification that the inferred abstract cost bounds are correct and sufficiently precise. It is the first approach solving this problem. Both, abstract cost analysis and certification, are based on quantitative abstract execution (QAE) which in turn is a variation of abstract execution, a recently developed symbolic execution technique for abstract programs. To realize QAE the new concept of a cost invariant is introduced. QAE is implemented and runs fully automatically on a benchmark set consisting of representative optimization rules.
[AllartNV21]
Exact Boolean Abstraction of Linear Equation Systems(Article)
Authors:
E. Allart; J. Niehren; C. Versari
Date:
2021
Publication:
Computation
Volume:
9
Issue:
11
Pages:
113
Publisher:
MDPI AG
ISSN:
2079-3197
Abstract
We study the problem of how to compute the boolean abstraction of the solution set of a linear equation system over the positive reals. We call a linear equation system φ\varphi exact for the boolean abstraction if the abstract interpretation of φ\varphi over the structure of booleans is equal to the boolean abstraction of the solution set of φ\varphi over the positive reals. Abstract interpretation over the booleans is thus complete for the boolean abstraction when restricted to exact linear equation systems, while it is not complete more generally. We present a new rewriting algorithm that makes linear equation systems exact for the boolean abstraction while preserving the solutions over the positive reals. The rewriting algorithm is based on the elementary modes of the linear equation system. The computation of the elementary modes may require exponential time in the worst case, but is often feasible in practice with freely available tools. For exact linear equation systems, we can compute the boolean abstraction by finite domain constraint programming. This yields a solution of the initial problem that is often feasible in practice. Our exact rewriting algorithm has two further applications. Firstly, it can be used to compute the sign abstraction of linear equation systems over the reals, as needed for analyzing function programs with linear arithmetics. Secondly, it can be applied to compute the difference abstraction of a linear equation system as used in change prediction algorithms for flux networks in systems biology.
[Andre21]
IMITATOR 3: Synthesis of Timing Parameters Beyond Decidability(Conference paper)
Authors:
É. André
Editors:
A. Silva; K. R. M. Leino
Date:
2021
Publication:
Computer Aided Verification: Proceedings of the 33rd International Conference (CAV 2021), Part I
Series:
Lecture Notes in Computer Science
Volume:
12759
Pages:
552–565
Publisher:
Springer, Cham
Location:
Virtual Event
ISBN:
978-3-030-81684-1 (Print) 978-3-030-81685-8 (Online)
Abstract
Real-time systems are notoriously hard to verify due to nondeterminism, concurrency and timing constraints. When timing constants are uncertain (in early the design phase, or due to slight variations of the timing bounds), timed model checking techniques may not be satisfactory. In contrast, parametric timed model checking synthesizes timing values ensuring correctness. takes as input an extension of parametric timed automata (PTAs), a powerful formalism to formally verify critical real-time systems. extends PTAs with multi-rate clocks, global rational-valued variables and a set of additional useful features. We describe here the new features and algorithms offered by 3, that moved along the years from a simple prototype dedicated to robustness analysis to a standalone parametric model checker for timed systems.
[AndreAPvdP21]
Iterative Bounded Synthesis for Efficient Cycle Detection in Parametric Timed Automata(Conference paper)
Authors:
É. André; J. Arias; L. Petrucci; J. van de Pol
Editors:
J. F. Groote; K. G. Larsen
Date:
2021
Publication:
Tools and Algorithms for the Construction and Analysis of Systems: Proceedings of the 27th International Conference (TACAS 2021), Part I
Series:
Lecture Notes in Computer Science
Volume:
12651
Pages:
311–329
Publisher:
Springer, Cham
Location:
Luxembourg City, Luxembourg
ISBN:
978-3-030-72015-5 (Print) 978-3-030-72016-2 (Online)
Abstract
We study semi-algorithms to synthesise the constraints under which a Parametric Timed Automaton satisfies some liveness requirement. The algorithms traverse a possibly infinite parametric zone graph, searching for accepting cycles. We provide new search and pruning algorithms, leading to successful termination for many examples. We demonstrate the success and efficiency of these algorithms on a benchmark. We also illustrate parameter synthesis for the classical Bounded Retransmission Protocol. Finally, we introduce a new notion of completeness in the limit, to investigate if an algorithm enumerates all solutions.
[AndreCFJL21]
Parametric Schedulability Analysis of a Launcher Flight Control System Under Reactivity Constraints(Article)
Authors:
É. André; E. Coquard; L. Fribourg; J. Jerray; D. Lesens
Date:
2021
Publication:
Fundamenta Informaticae
Volume:
182
Issue:
1
Pages:
31–67
Publisher:
IOS Press
ISSN:
0169-2968
Abstract
The next generation of space systems will have to achieve more and more complex missions. In order to master the development cost and duration of such systems, an alternative to a manual design is to automatically synthesize the main parameters of the system. In this paper, we present an approach for the specific case of the scheduling of the flight control of a space launcher. The approach requires two successive steps: (1) the formalization of the problem to be solved in a parametric formal model and (2) the synthesis of the model parameters with a tool. We first describe the problem of the scheduling of a launcher flight control, then we show how this problem can be formalized with parametric stopwatch automata; we then present the results computed by the parametric timed model checker IMITATOR. We enhance our model by taking into consideration the time for switching context, and we compare the results to those obtained by other tools classically used in scheduling.
[AndreNPS21]
Distributed Parametric Model Checking Timed Automata Under Non-Zenoness Assumption(Article)
Authors:
É. André; H. G. Nguyen; L. Petrucci; J. Sun
Date:
2021
Publication:
Formal Methods in System Design
Volume:
59
Issue:
1–3
Pages:
253–290
Publisher:
Springer
ISSN:
0925-9856
Abstract
Model checking timed systems may be negatively impacted by the presence of Zeno runs as counterexamples. Such runs contain an infinite number of discrete actions occurring in a finite time, which is unrealistic; therefore, these runs must be pruned during model checking. Given a model of a timed system and a property, parametric model checking aims at synthesizing timing valuations such that the model satisfies the property. A popular formalism for parametric timed model checking is parametric timed automata (PTAs), an extension of timed automata with unknown constants. We address the presence of Zeno runs in parametric model checking. We first show that the emptiness of the set of parameter valuations for which at least one counterexample run being non-Zeno is undecidable for PTAs. As a second contribution, we adopt a more pragmatic approach, and propose a procedure based on a transformation of PTAs into Clock Upper Bound PTAs to derive all valuations whenever it terminates, and some of them otherwise. We implemented our algorithm in IMITATOR, and we show that our method can be distributed over a cluster to further speedup the computation.
[AsadiCFGM21]
Polynomial Reachability Witnesses via Stellensätze(Conference paper)
Authors:
A. Asadi; K. Chatterjee; H. Fu; A. K. Goharshady; M. Mahdavi
Editors:
S. N. Freund; E. Yahav
Date:
2021
Publication:
Proceedings of the 42nd ACM SIGPLAN International Conference on Programming Language Design and Implementation
Pages:
772–787
Publisher:
ACM Press, New York, USA
Location:
Virtual Canada
ISBN:
978-1-4503-8391-2
Abstract
We consider the fundamental problem of reachability analysis over imperative programs with real variables. Previous works that tackle reachability are either unable to handle programs consisting of general loops (e.g. symbolic execution), or lack completeness guarantees (e.g. abstract interpretation), or are not automated (e.g. incorrectness logic). In contrast, we propose a novel approach for reachability analysis that can handle general and complex loops, is complete, and can be entirely automated for a wide family of programs. Through the notion of Inductive Reachability Witnesses (IRWs), our approach extends ideas from both invariant generation and termination to reachability analysis. We first show that our IRW-based approach is sound and complete for reachability analysis of imperative programs. Then, we focus on linear and polynomial programs and develop automated methods for synthesizing linear and polynomial IRWs. In the linear case, we follow the well-known approaches using Farkas' Lemma. Our main contribution is in the polynomial case, where we present a pushbutton semicomplete algorithm. We achieve this using a novel combination of classical theorems in real algebraic geometry, such as Putinar's Positivstellensatz and Hilbert's Strong Nullstellensatz. Finally, our experimental results show we can prove complex reachability objectives over various benchmarks that were beyond the reach of previous methods.
[BagnaraCGB21]
A Practical Approach to Verification of Floating-Point C/C++ Programs with Math.h/cmath Functions(Article)
Authors:
R. Bagnara; M. Chiari; R. Gori; A. Bagnara
Date:
2021
Publication:
ACM Transactions on Software Engineering and Methodology
Volume:
30
Issue:
1
Pages:
9:1–9:53
Publisher:
ACM Press, New York, USA
ISSN:
1049-331X
Abstract
Verification of C++ programs has seen considerable progress in several areas, but not for programs that use these languages' mathematical libraries. The reason is that all libraries in widespread use come with no guarantees about the computed results. This would seem to prevent any attempt at formal verification of programs that use them: without a specification for the functions, no conclusion can be drawn statically about the behavior of the program. We propose an alternative to surrender. We introduce a pragmatic approach that leverages the fact that most math.h/cmath functions are almost piecewise monotonic: as we discovered through exhaustive testing, they may have glitches, often of very small size and in small numbers. We develop interval refinement techniques for such functions based on a modified dichotomic search, that enable verification via symbolic execution based model checking, abstract interpretation, and test data generation. Our refinement algorithms are the first in the literature to be able to handle non-correctly rounded function implementations, enabling verification in the presence of the most common implementations. We experimentally evaluate our approach on real-world code, showing its ability to detect or rule out anomalous behaviors.
[BastrakovCZ21]
Accelerating Fourier–Motzkin Elimination Using Bit Pattern Trees(Article)
Authors:
S. I. Bastrakov; A. V. Churkin; N. Yu. Zolotykh
Date:
2021-09
Publication:
Optimization Methods and Software
Volume:
36
Issue:
5
Pages:
1082–1095
Publisher:
Informa UK Limited
ISSN:
1055-6788
Abstract
The paper concerns the elimination of a set of variables from a system of linear inequalities. We employ the widely used Fourier–Motzkin elimination method extended with the Chernikov rules. A straightforward implementation of the algorithm results in extensive enumeration during the most computationally demanding stage. We propose a new way of checking Chernikov rules using bit pattern trees as an accelerating data structure to avoid extensive enumeration. The bit pattern tree is a data structure based on k-d tree used to accelerate the double description method. First we describe an adaptation of that approach to check the second Chernikov rule in Fourier–Motzkin elimination. We also propose a new algorithm that employs bit pattern trees to accelerate both Chernikov rules. Presented results of computational evaluation prove competitiveness of the proposed algorithms.
[BrunoB21]
Algorithms and Programs for Calculating the Roots of Polynomial of One or Two Variables(Article)
Authors:
A. D. Bruno; A. B. Batkhin
Date:
2021
Publication:
Programming and Computer Software
Volume:
47
Issue:
5
Pages:
353–373
Publisher:
Pleiades Publishing Ltd
ISSN:
0361-7688
Abstract
Abstract: Algorithms and software for two new methods of solving polynomial equations based on constructing a convex polygon are described. The first method approximately solves the equations using the Hadamard polygon. The second method makes it possible to find branches of an algebraic curve in the vicinity of its singular points and in the vicinity of infinity using the Newton polygon and sketch real algebraic curves on the plane. The corresponding geometries and computer algebra algorithms for analyzing arbitrarily complicated cases are discussed.
[CorreasGR-D21]
Static Profiling and Optimization of Ethereum Smart Contracts Using Resource Analysis(Article)
Authors:
J. Correas; P. Gordillo; G. Román-Díez
Date:
2021
Publication:
IEEE Access
Volume:
9
Pages:
25495–25507
Publisher:
IEEE Press
ISSN:
2169-3536
Abstract
Profiling tools have been widely used for studying the behavior of the programs with the objective of reducing the amount of resources consumed by them. Most profilers collect the information with dynamic techniques, i.e., execute an instrumented version of the program with some specific input arguments to profile the measures of interest. This article presents a novel static profiling technique for Ethereum smart contracts that, using static resource analysis, is able to generate upper-bound expressions that can be used to produce profiling information about the measure of interest. Unlike traditional profiling tools, we get upper-bounds on the measures of interest expressed in terms of the input arguments or the state variables of the smart contracts. The information that can be obtained by the upper-bounds allows us to detect gas-expensive fragments of a Solidity program or to spot resource-related vulnerabilities at specific program points of the program. Moreover, in this article we propose an automatic optimization of Solidity programs which reduces their gas consumption replacing the accesses to state variables by gas-efficient accesses to local variables. We have experimentally evaluated our technique and we have detected that 6.81% of the public functions analyzed can be optimized and 1.43% are vulnerable to execute arbitrary code.
[CotiMY21]
A Task-based Approach to Parallel Parametric Linear Programming Solving, and Application to Polyhedral Computations(Article)
Authors:
C. Coti; D. Monniaux; H. Yu
Date:
2021
Publication:
Concurrency and Computation: Practice and Experience
Volume:
33
Issue:
6
Pages:
e6050
Publisher:
Wiley
ISSN:
1532-0626
Abstract
Parametric linear programming is a central operation for polyhedral computations, as well as in certain control applications. Here, we propose a task-based scheme for parallelizing it, with quasi-linear speedup over large problems. This type of parallel applications is challenging, because several tasks might be computing the same region. In this article, we are presenting the algorithm itself with a parallel redundancy elimination algorithm, and conducting a thorough performance analysis.
[DasP21TR]
Probabilistic Stability Analysis of Planar Robots with Piecewise Constant Derivative Dynamics(Technical report)
Authors:
S. Das; P. Prabhakar
Date:
2021-09
Report number:
arXiv:2109.08265v1
Institution:
arXiv
Publication type:
Preprint
Abstract
In this paper, we study the probabilistic stability analysis of a subclass of stochastic hybrid systems, called the Planar Probabilistic Piecewise Constant Derivative Systems (Planar PPCD), where the continuous dynamics is deterministic, constant rate and planar, the discrete switching between the modes is probabilistic and happens at boundary of the invariant regions, and the continuous states are not reset during switching. These aptly model piecewise linear behaviors of planar robots. Our main result is an exact algorithm for deciding absolute and almost sure stability of Planar PPCD under some mild assumptions on mutual reachability between the states and the presence of non-zero probability self-loops. Our main idea is to reduce the stability problems on planar PPCD into corresponding problems on Discrete Time Markov Chains with edge weights. Our experimental results on planar robots with faulty angle actuator demonstrate the practical feasibility of this approach.
[EiflerG21]
A Computational Status Update for Exact Rational Mixed Integer Programming(Conference paper)
Authors:
L. Eifler; A. Gleixner
Editors:
M. Singh; D. P. Williamson
Date:
2021
Publication:
Integer Programming and Combinatorial Optimization: Proceedings of the 22nd International Conference (IPCO 2021)
Series:
Lecture Notes in Computer Science
Volume:
12707
Pages:
163–177
Publisher:
Springer, Cham
Location:
Atlanta, GA, USA
ISBN:
978-3-030-73878-5 (Print) 978-3-030-73879-2 (Online)
Abstract
The last milestone achievement for the roundoff-error-free solution of general mixed integer programs over the rational numbers was a hybrid-precision branch-and-bound algorithm published by Cook, Koch, Steffy, and Wolter in 2013. We describe a substantial revision and extension of this framework that integrates symbolic presolving, features an exact repair step for solutions from primal floating-point heuristics, employs a faster rational LP solver based on LP iterative refinement, and is able to produce independently verifiable certificates of optimality. We study the significantly improved performance and give insights into the computational behavior of the new algorithmic components. On the MIPLIB 2017 benchmark set, we observe an average speedup of 6.6x over the original framework and 2.8 times as many instances solved within a time limit of two hours.
[Esposito21]
AI-Guided Optimal Deployments of Drone-Intercepting Systems in Large Critical Areas(Conference paper)
Authors:
M. Esposito
Editors:
D. Della Monica; G. L. Pozzato; E. Scala
Date:
2021
Publication:
Proceedings of the 3rd Workshop on Artificial Intelligence and Formal Verification, Logic, Automata, and Synthesis Hosted by the Twelfth International Symposium on Games, Automata, Logics, and Formal Verification (GandALF 2021), Padua, Italy, September 22, 2021
Series:
CEUR Workshop Proceedings
Volume:
2987
Pages:
97–101
Publisher:
CEUR-WS.org
Location:
Padua, Italy
Abstract
The problem of designing effective systems to prevent risks and hazards caused by drones in critical areas has gained significant attention in recent years. In this short paper, we introduce the idea of computing optimal deployments of anti-drone sensors in a given region using simulation-based optimisation via heuristic-guided intelligent search and a geometric modelling of the problem, and show preliminary results in a real-world scenario.
[GangeMNSSS21]
A Fresh Look at Zones and Octagons(Article)
Authors:
G. Gange; Z. Ma; J. A. Navas; P. Schachte; H. Søndergaard; P. J. Stuckey
Date:
2021
Publication:
ACM Transactions on Programming Languages and Systems
Volume:
43
Issue:
3
Pages:
11:1–11:51
Publisher:
ACM Press, New York, USA
ISSN:
0164-0925
Abstract
Zones and Octagons are popular abstract domains for static program analysis. They enable the automated discovery of simple numerical relations that hold between pairs of program variables. Both domains are well understood mathematically but the detailed implementation of static analyses based on these domains poses many interesting algorithmic challenges. In this article, we study the two abstract domains, their implementation and use. Utilizing improved data structures and algorithms for the manipulation of graphs that represent difference-bound constraints, we present fast implementations of both abstract domains, built around a common infrastructure. We compare the performance of these implementations against alternative approaches offering the same precision. We quantify the differences in performance by measuring their speed and precision on standard benchmarks. We also assess, in the context of software verification, the extent to which the improved precision translates to better verification outcomes. Experiments demonstrate that our new implementations improve the state of the art for both Zones and Octagons significantly.
[GilrayKM21]
Compiling Data-Parallel Datalog(Conference paper)
Authors:
T. Gilray; S. Kumar; K. Micinski
Editors:
A. Smith; D. Demange; R. Gupta
Date:
2021
Publication:
Proceedings of the 30th ACM SIGPLAN International Conference on Compiler Construction
Pages:
23–35
Publisher:
ACM Press, New York, USA
Location:
Virtual Republic of Korea
ISBN:
978-1-4503-8325-7
Abstract
Datalog allows intuitive declarative specification of logical inference tasks while enjoying efficient implementation via state-of-the-art engines such as LogicBlox and Souffle. These engines enable high-performance implementation of complex logical tasks including graph mining, program analysis, and business analytics. However, all efficient modern Datalog solvers make use of shared memory, and present inherent challenges scalability. In this paper, we leverage recent insights in parallel relational algebra and present a methodology for constructing data-parallel deductive databases. Our approach leverages recent developments in parallelizing relational algebra to create an efficient data-parallel semantics for Datalog. Based on our methodology, we have implemented the first MPI-based data-parallel Datalog solver. Our experiments demonstrate comparable performance and improved single-node scalability versus Souffle, a state-of-art solver.
[HaurBR21]
Formal Schedulability Analysis Based on Multi-Core RTOS Model(Conference paper)
Authors:
I. Haur; J.-L. Béchennec; O. H. Roux
Editors:
A. Queudet; I. Bate; G. Lipari
Date:
2021
Publication:
29th International Conference on Real-Time Networks and Systems
Pages:
216–225
Publisher:
ACM Press, New York, USA
Location:
NANTES France
ISBN:
978-1-4503-9001-9
Abstract
Verification of real-time application schedulability is usually performed using a very abstract representation of the system which poorly supports inter-task dependencies. This paper presents the use of model-checking techniques to check the schedulability on a detailed model of a multi-core operating system. The operating system as a whole is modeled by a High-level Petri net reproducing the control flow and using the same variables as those of the implementation. Each task of the application is represented by a Stopwatch Petri Net whose transitions carry Best-Case Execution Time and Worst-Case Execution Time [BCET, WCET] firing intervals and make service calls to the OS. Preemption is supported by means of stopwatches. Verification is performed using observers and allows to determine the schedulability of the multi-core application, or, using parameters on the firing intervals, allows determining under which temporal conditions the application is schedulable.
[HertrichBDSS21]
Towards Lower Bounds on the Depth of ReLU Neural Networks(Conference paper)
Authors:
C. Hertrich; A. Basu; M. Di Summa; M. Skutella
Editors:
M. Ranzato; A. Beygelzimer; Y. N. Dauphin; P. Liang; J. W. Vaughan
Date:
2021
Publication:
Advances in Neural Information Processing Systems
Volume:
34
Pages:
3336–3348
Abstract
We contribute to a better understanding of the class of functions that is represented by a neural network with ReLU activations and a given architecture. Using techniques from mixed-integer optimization, polyhedral theory, and tropical geometry, we provide a mathematical counterbalance to the universal approximation theorems which suggest that a single hidden layer is sufficient for learning tasks. In particular, we investigate whether the class of exactly representable functions strictly increases by adding more layers (with no restrictions on size). This problem has potential impact on algorithmic and statistical aspects because of the insight it provides into the class of functions represented by neural hypothesis classes. However, to the best of our knowledge, this question has not been investigated in the neural network literature. We also present upper bounds on the sizes of neural networks required to represent functions in these neural hypothesis classes.
[HulsPSNDR21]
State-Space Construction of Hybrid Petri Nets with Multiple Stochastic Firings(Article)
Authors:
J. Hüls; C. Pilch; P. Schinke; H. Niehaus; J. Delicaris; A. Remke
Date:
2021
Publication:
ACM Transactions on Modeling and Computer Simulation
Volume:
31
Issue:
3
Pages:
13:1–13:37
Publisher:
ACM Press, New York, USA
ISSN:
1049-3301
Abstract
Hybrid Petri nets have been extended to include general transitions that fire after a randomly distributed amount of time. With a single general one-shot transition the state space and evolution over time can be represented either as a Parametric Location Tree or as a Stochastic Time Diagram. Recent work has shown that both representations can be combined and then allow multiple stochastic firings. This work presents an algorithm for building the Parametric Location Tree with multiple general transition firings and shows how its transient probability distribution can be computed using multi-dimensional integration. We discuss the (dis-)advantages of an interval arithmetic and a geometric approach to compute the areas of integration. Furthermore, we provide details on how to perform a Monte Carlo integration either directly on these intervals or convex polytopes, or after transformation to standard simplices. A case study on a battery-backup system shows the feasibility of the approach and discusses the performance of the different integration approaches.
[Jerray21th]
Guaranteed Properties of Dynamical Systems Under Perturbations(PhD thesis)
Authors:
J. Jerray
Date:
2021-12
Location:
Villetaneuse, France
School:
Université Sorbonne Paris Nord
Abstract
Since dynamical systems has a major impact on human development, especially critical systems that can put human lives at risk if something goes wrong. Hence, the need of studying the behavior of these systems in order to guarantee their correct functioning. Nevertheless, computing such type of system has never been an easy task, as the complexity of these systems is constantly increasing, in addition to the perturbations that may arise during their performance, as well as undefined parameters that may exist. To ensure that a system always produces the expected results and does not fail in any way, a formal verification of its behavior and properties is necessary. In this thesis, we study dynamical systems from different aspects and using various techniques. More specifically, we focus on the formal verification of some of its critical properties such as schedulability, synchronization, robustness and stability. In the first part, we start with the formal verification of real-time systems under uncertainty, where we use parametric timed automata sometimes extended by stopwatches to model systems with preemption. This formalism is very suitable for real-time systems due to its good expressiveness. It allows to study the schedulability of the flight control of a space launcher with unknown parameters and under constraints. Then, a synthesis of the admissible timing values of the unknown parameters is provided by a parametric timed model checker. We increase the complexity of the problem by taking into consideration the switch time between two threads. We extend this work by developing a tool that translates a given real-time system design into parametric timed automata in order to infer some timing constraints ensuring schedulability. In the second part, we study the stability of dynamical systems and the robustness of controls. We give a simple technique based on Euler's integration method which allows to build an invariant set around a given system. This technique guarantees that the approximate Euler solutions are attracted by a limit cycle. We apply the method on different systems, including chaotic systems with strange attractors. Furthermore, we show that a basic combination of a random sampling with a symbolic computation method assists to deal with robust control problems for nonlinear systems. Also, we illustrate a basic condition guaranteeing that a system with perturbation is robust under a repeated control sequence obtained by solving a horizon optimal control problem. Finally, we unified the main contributions of the second part in a tool called ORBITADOR which checks the stability of a given system and notably returns plots containing the evolution of the system in different views and the shape of the invariant if it exists
[KafleGSSS21a]
Lightweight Nontermination Inference with CHCs(Conference paper)
Authors:
B. Kafle; G. Gange; P. Schachte; H. Søndergaard; P. J. Stuckey
Editors:
R. Calinescu; C. S. Păsăreanu
Date:
2021
Publication:
Software Engineering and Formal Methods: Proceedings of the 19th International Conference (SEFM 2021)
Series:
Lecture Notes in Computer Science
Volume:
13085
Pages:
383–402
Publisher:
Springer, Cham
Location:
Virtual Event
ISBN:
978-3-030-92123-1 (Print) 978-3-030-92124-8 (Online)
Abstract
Non-termination is an unwanted program property (considered a bug) for some software systems, and a safety property for other systems. In either case, automated discovery of preconditions for non-termination is of interest. We introduce NtHorn, a fast lightweight non-termination analyser, able to deduce non-trivial sufficient conditions for non-termination. Using Constrained Horn Clauses (CHCs) as a vehicle, we show how established techniques for CHC program transformation and abstract interpretation can be exploited for the purpose of non-termination analysis. NtHorn is comparable in power to the state-of-the-art non-termination analysis tools, as measured on standard competition benchmark suites (consisting of integer manipulating programs), while typically solving problems an order of magnitude faster.
[KafleGSSS21b]
Transformation-Enabled Precondition Inference(Article)
Authors:
B. Kafle; G. Gange; P. J. Stuckey; P. Schachte; H. Søndergaard
Date:
2021
Publication:
Theory and Practice of Logic Programming
Volume:
21
Issue:
6
Pages:
700–716
Publisher:
Cambridge University Press
ISSN:
1471-0684
Abstract
Precondition inference is a non-trivial problem with important applications in program analysis and verification. We present a novel iterative method for automatically deriving preconditions for the safety and unsafety of programs. Each iteration maintains over-approximations of the set of safe and unsafe initial states; which are used to partition the program's initial states into those known to be safe, known to be unsafe and unknown. We then construct revised programs with those unknown initial states and iterate the procedure until the approximations are disjoint or some termination criteria are met. An experimental evaluation of the method on a set of software verification benchmarks shows that it can infer precise preconditions (sometimes optimal) that are not possible using previous methods.
[Kormanyos21]
Real-Time C++: Efficient Object-Oriented and Template Microcontroller Programming(Book)
Authors:
C. Kormanyos
Date:
2021
Publisher:
Springer-Verlag, Berlin
Edition:
Fourth
ISBN:
978-3-662-62995-6 (Print) 978-3-662-62996-3 (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 fourth edition, the most recent specification of C++20 is used throughout the text. Several sections on new C++20 functionality have been added, and various others reworked to reflect changes in the standard. Also several new example projects ranging from introductory to advanced level are included and existing ones extended, and various reader suggestions have been incorporated. Efficiency is always in focus and numerous examples are backed up with runtime 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.
[LiLLSYYLGYQ21]
The Deep Learning Compiler: A Comprehensive Survey(Article)
Authors:
M. Li; Y. Liu; X. Liu; Q. Sun; X. You; H. Yang; Z. Luan; L. Gan; G. Yang; D. Qian
Date:
2021
Publication:
IEEE Transactions on Parallel and Distributed Systems
Volume:
32
Issue:
3
Pages:
708–727
Publisher:
IEEE Press
ISSN:
1045-9219
Abstract
The difficulty of deploying various deep learning (DL) models on diverse DL hardware has boosted the research and development of DL compilers in the community. Several DL compilers have been proposed from both industry and academia such as Tensorflow XLA and TVM. Similarly, the DL compilers take the DL models described in different DL frameworks as input, and then generate optimized codes for diverse DL hardware as output. However, none of the existing survey has analyzed the unique design architecture of the DL compilers comprehensively. In this article, we perform a comprehensive survey of existing DL compilers by dissecting the commonly adopted design in details, with emphasis on the DL oriented multi-level IRs, and frontend/backend optimizations. We present detailed analysis on the design of multi-level IRs and illustrate the commonly adopted optimization techniques. Finally, several insights are highlighted as the potential research directions of DL compiler. This is the first survey article focusing on the design architecture of DL compilers, which we hope can pave the road for future research towards DL compiler.
[LimeRS21]
Cost Problems for Parametric Time Petri Nets(Article)
Authors:
D. Lime; O. H. Roux; C. Seidner
Date:
2021
Publication:
Fundamenta Informaticae
Volume:
183
Issue:
1–2
Pages:
97–123
Publisher:
IOS Press
ISSN:
0169-2968
Abstract
We investigate the problem of parameter synthesis for time Petri nets with a cost variable that evolves both continuously with time, and discretely when firing transitions. More precisely, parameters are rational symbolic constants used for time constraints on the firing of transitions and we want to synthesise all their values such that some marking is reachable, with a cost that is either minimal or simply less than a given bound. We first prove that the mere existence of values for the parameters such that the latter property holds is undecidable. We nonetheless provide symbolic semi-algorithms for the two synthesis problems and we prove them both sound and complete when they terminate. We also show how to modify them for the case when parameter values are integers. Finally, we prove that these modified versions terminate if parameters are bounded. While this is to be expected since there are now only a finite number of possible parameter values, our algorithms are symbolic and thus avoid an explicit enumeration of all those values. Furthermore, the results are symbolic constraints representing finite unions of convex polyhedra that are easily amenable to further analysis through linear programming. We finally report on the implementation of the approach in Romeo, a software tool for the analysis of time Petri nets.
[LundvDLMJA21]
An Integer Static Analysis for Better Extrapolation in Uppaal(Conference paper)
Authors:
S. Lund; J. van Diepen; K. G. Larsen; M. Muñiz; T. R. Jørgensen; T. S. D. Andersen
Editors:
C. Dima; M. Shirmohammadi
Date:
2021
Publication:
Formal Modeling and Analysis of Timed Systems: Proceedings of the 19th International Conference (FORMATS 2021)
Series:
Lecture Notes in Computer Science
Volume:
12860
Pages:
84–99
Publisher:
Springer, Cham
Location:
Paris, France
ISBN:
978-3-030-85036-4 (Print) 978-3-030-85037-1 (Online)
Abstract
Extended Timed Automata (XTA) is a widely used formalism to show the correctness of industrial applications. The decidability results and current extrapolations for XTA are based on constants in the automaton. However, in the case of XTA such bounds depend on integer variables or variable expressions. Since computing such bounds can be as expensive as the verification task, tools such as Uppaal over-approximate the bounds by values given in the type definitions. These values are excessively large and can yield huge state spaces. In this paper we outline a targeted static analysis to efficiently over-approximate location based invariants (and thereby ranges) of integer variables. We have implemented our analysis in Uppaal where the new tighter bounds are available to all currently implemented extrapolation operations. Our experiments show an exponential reduction in the state space of several models. In addition, the computation overhead introduced by the integer static analysis is negligible.
[PavlinovicSW21]
Data Flow Refinement Type Inference(Article)
Authors:
Z. Pavlinovic; Y. Su; T. Wies
Date:
2021
Publication:
Proceedings of the ACM on Programming Languages
Volume:
5
Issue:
POPL
Pages:
1–31
Publisher:
ACM Press, New York, USA
Abstract
Refinement types enable lightweight verification of functional programs. Algorithms for statically inferring refinement types typically work by reduction to solving systems of constrained Horn clauses extracted from typing derivations. An example is Liquid type inference, which solves the extracted constraints using predicate abstraction. However, the reduction to constraint solving in itself already signifies an abstraction of the program semantics that affects the precision of the overall static analysis. To better understand this issue, we study the type inference problem in its entirety through the lens of abstract interpretation. We propose a new refinement type system that is parametric with the choice of the abstract domain of type refinements as well as the degree to which it tracks context-sensitive control flow information. We then derive an accompanying parametric inference algorithm as an abstract interpretation of a novel data flow semantics of functional programs. We further show that the type system is sound and complete with respect to the constructed abstract semantics. Our theoretical development reveals the key abstraction steps inherent in refinement type inference algorithms. The trade-off between precision and efficiency of these abstraction steps is controlled by the parameters of the type system. Existing refinement type systems and their respective inference algorithms, such as Liquid types, are captured by concrete parameter instantiations. We have implemented our framework in a prototype tool and evaluated it for a range of new parameter instantiations (e.g., using octagons and polyhedra for expressing type refinements). The tool compares favorably against other existing tools. Our evaluation indicates that our approach can be used to systematically construct new refinement type inference algorithms that are both robust and precise.
[PitchanathanUWHG21]
FPL: Fast Presburger Arithmetic Through Transprecision(Article)
Authors:
A. Pitchanathan; C. Ulmann; M. Weber; T. Hoefler; T. Grosser
Date:
2021
Publication:
Proceedings of the ACM on Programming Languages
Volume:
5
Issue:
OOPSLA
Pages:
1–26
Publisher:
ACM Press, New York, USA
ISSN:
2475-1421
Abstract
Presburger arithmetic provides the mathematical core for the polyhedral compilation techniques that drive analytical cache models, loop optimization for ML and HPC, formal verification, and even hardware design. Polyhedral compilation is widely regarded as being slow due to the potentially high computational cost of the underlying Presburger libraries. Researchers typically use these libraries as powerful black-box tools, but the perceived internal complexity of these libraries, caused by the use of C as the implementation language and a focus on end-user-facing documentation, holds back broader performance-optimization efforts. With FPL, we introduce a new library for Presburger arithmetic built from the ground up in modern C++. We carefully document its internal algorithmic foundations, use lightweight C++ data structures to minimize memory management costs, and deploy transprecision computing across the entire library to effectively exploit machine integers and vector instructions. On a newly-developed comprehensive benchmark suite for Presburger arithmetic, we show a 5.4x speedup in total runtime over the state-of-the-art library isl in its default configuration and 3.6x over a variant of isl optimized with element-wise transprecision computing. We expect that the availability of a well-documented and fast Presburger library will accelerate the adoption of polyhedral compilation techniques in production compilers.
[RustamovKYY21]
Exploratory Review of Hybrid Fuzzing for Automated Vulnerability Detection(Article)
Authors:
F. Rustamov; J. Kim; J. Yu; J. Yun
Date:
2021
Publication:
IEEE Access
Volume:
9
Pages:
131166–131190
Publisher:
IEEE Press
ISSN:
2169-3536
Abstract
Recently, software testing has become a significant component of information security. The most reliable technique for automated software testing is a fuzzing tool that feeds programs with random test-input and detects software vulnerabilities that are critical to security. Similarly, symbolic execution has gained the most attention as an efficient testing tool for producing smart test-inputs and discovering hard-to-reach bugs using search-based heuristics and compositional approaches. The combination of fuzzing and symbolic execution makes software testing more efficient by mitigating the limitations in each other. Although several studies have been conducted on hybrid fuzzing in recent years, a comprehensive and consistent review of hybrid fuzzing techniques has not been explored. To add coherence to the extensive literature on hybrid fuzzing and to make it reach a large audience, this study provides an overview of key concepts along with the taxonomy of existing hybrid fuzzing tools, problems, and solutions that have been developed in this sphere. It also includes evaluations of the proposed approaches and a number of suggestions for the development of hybrid fuzzing in the future.
[ShuaiCZSW21]
Type and Interval Aware Array Constraint Solving for Symbolic Execution(Conference paper)
Authors:
Z. Shuai; Z. Chen; Y. Zhang; J. Sun; J. Wang
Editors:
C. Cadar; X. Zhang
Date:
2021
Publication:
Proceedings of the 30th ACM SIGSOFT International Symposium on Software Testing and Analysis
Pages:
361–373
Publisher:
ACM Press, New York, USA
Location:
Virtual Denmark
ISBN:
978-1-4503-8459-9
Abstract
Array constraints are prevalent in analyzing a program with symbolic execution. Solving array constraints is challenging due to the complexity of the precise encoding for arrays. In this work, we propose to synergize symbolic execution and array constraint solving. Our method addresses the difficulties in solving array constraints with novel ideas. First, we propose a lightweight method for pre-checking the unsatisfiability of array constraints based on integer linear programming. Second, observing that encoding arrays at the byte-level introduces many redundant axioms that reduce the effectiveness of constraint solving, we propose type and interval aware axiom generation. Note that the type information of array variables is inferred by symbolic execution, whereas interval information is calculated through the above pre-checking step. We have implemented our methods based on KLEE and its underlying constraint solver STP and conducted large-scale experiments on 75 real-world programs. The experimental results show that our method effectively improves the efficiency of symbolic execution. Our method solves 182.56% more constraints and explores 277.56% more paths on average under the same time threshold.
[SunYAW21]
Improved Online Adjustment of Step Timing and Location for Legged Locomotion(Article)
Authors:
H. Sun; J. Yang; H. An; C. Wang
Date:
2021
Publication:
Journal of Intelligent & Robotic Systems
Volume:
102
Issue:
2
Pages:
37
Publisher:
Springer
ISSN:
0921-0296
Abstract
Online step adaptation is critical for legged locomotion to resist disturbances, while current approaches mainly focus on step location regardless of step timing. This paper proposes an online adaptation algorithm that deals with both step timing and step location. A model predictive control framework is developed based on centroidal dynamics to predict robot state trajectories, which are utilized to simultaneously optimize step timing and location with full considerations on capturability, feasibility and reachability. Then, a swing foot trajectory generation method is presented to accommodate mutiple constraints on kinematics and actuators. Moreover, a heuristic compensation is enhanced to the step location for quadruped trotting locomotion, increasing the anti-disturbance ability of legged locomotion. Various push-recovery simulation and experiment on an 18 degree-of-freedom legged robot are implemented to verify the proposed algorithm.
[WagaAH21]
Model-Bounded Monitoring of Hybrid Systems(Conference paper)
Authors:
M. Waga; É. André; I. Hasuo
Editors:
M. Maggio; J. Weimer; M. A. Farque; M. Oishi
Date:
2021
Publication:
Proceedings of the ACM/IEEE 12th International Conference on Cyber-Physical Systems
Pages:
21–32
Publisher:
ACM Press, New York, USA
Location:
Nashville Tennessee
ISBN:
978-1-4503-8353-0
Abstract
Monitoring of hybrid systems attracts both scientific and practical attention. However, monitoring algorithms suffer from the methodological difficulty of only observing sampled discrete-time signals, while real behaviors are continuous-time signals. To mitigate this problem of sampling uncertainties, we introduce a model-bounded monitoring scheme, where we use prior knowledge about the target system to prune interpolation candidates. Technically, we express such prior knowledge by linear hybrid automata (LHAs) - the LHAs are called bounding models. We introduce a novel notion of monitored language of LHAs, and we reduce the monitoring problem to the membership problem of the monitored language. We present two partial algorithms - one is via reduction to reachability in LHAs and the other is a direct one using polyhedra - and show that these methods, and thus the proposed model-bounded monitoring scheme, are efficient and practically relevant.
[WangSFCG21]
Quantitative Analysis of Assertion Violations in Probabilistic Programs(Conference paper)
Authors:
J. Wang; Y. Sun; H. Fu; K. Chatterjee; A. K. Goharshady
Editors:
S. N. Freund; E. Yahav
Date:
2021
Publication:
Proceedings of the 42nd ACM SIGPLAN International Conference on Programming Language Design and Implementation
Pages:
1171–1186
Publisher:
ACM Press, New York, USA
Location:
Virtual Canada
ISBN:
978-1-4503-8391-2
Abstract
We consider the fundamental problem of deriving quantitative bounds on the probability that a given assertion is violated in a probabilistic program. We provide automated algorithms that obtain both lower and upper bounds on the assertion violation probability. The main novelty of our approach is that we prove new and dedicated fixed-point theorems which serve as the theoretical basis of our algorithms and enable us to reason about assertion violation bounds in terms of pre and post fixed-point functions. To synthesize such fixed-points, we devise algorithms that utilize a wide range of mathematical tools, including repulsing ranking supermartingales, Hoeffding's lemma, Minkowski decompositions, Jensen's inequality, and convex optimization. On the theoretical side, we provide (i) the first automated algorithm for lower-bounds on assertion violation probabilities, (ii) the first complete algorithm for upper-bounds of exponential form in affine programs, and (iii) provably and significantly tighter upper-bounds than the previous approaches. On the practical side, we show our algorithms can handle a wide variety of programs from the literature and synthesize bounds that are remarkably tighter than previous results, in some cases by thousands of orders of magnitude.
[WelchHC21]
Combining Static and Dynamic Analysis to Query Characteristics of HPC Applications(Conference paper)
Authors:
A. Welch; O. Hernandez; B. Chapman
Date:
2021
Publication:
Proceedings of the IEEE International Parallel and Distributed Processing Symposium Workshops (IPDPSW)
Pages:
420–429
Publisher:
IEEE Press
Location:
Portland, OR, USA
ISBN:
978-1-6654-3577-2
Abstract
Emerging HPC platforms are becoming more difficult to program as a result of systems with different node architectures, some with a small number of “fat” heterogenous nodes (consisting of multiple accelerators) and others with a large number of “thin” homogenous nodes consisting of multi-core CPUs connected with high speed interconnects. New programming models are emerging to address performance portability of the applications as well as a set of scientific libraries that applications can use to exploit these architectures efficiently. To port applications to new architectures, developers need information about their source code characteristics including static and dynamic (e.g. performance) information to refactor the code, understand their data and code structure, and library usage as well as program information to direct their optimisation efforts and make key decisions. In this paper, we describe a tool that combines compiler and profiler information to query program characteristics in a given programming environment. Static and dynamic data about applications is collected and stored together in an SQL database that can be later queried to study application characteristics and patterns. We will demonstrate the capabilities of this tool with an application-driven case study that aims at understanding application code and its use of scientific libraries via a real world example from the molecular simulation application CP2K.
[WinklerW21]
Stochastic Games with Disjunctions of Multiple Objectives(Article)
Authors:
T. Winkler; M. Weininger
Date:
2021
Publication:
Electronic Proceedings in Theoretical Computer Science
Volume:
346
Pages:
83–100
Publisher:
Open Publishing Association
ISSN:
2075-2180
Abstract
Stochastic games combine controllable and adversarial non-determinism with stochastic behavior and are a common tool in control, verification and synthesis of reactive systems facing uncertainty. Multi-objective stochastic games are natural in situations where several-possibly conflicting-performance criteria like time and energy consumption are relevant. Such conjunctive combinations are the most studied multi-objective setting in the literature. In this paper, we consider the dual disjunctive problem. More concretely, we study turn-based stochastic two-player games on graphs where the winning condition is to guarantee at least one reachability or safety objective from a given set of alternatives. We present a fine-grained overview of strategy and computational complexity of such disjunctive queries (DQs) and provide new lower and upper bounds for several variants of the problem, significantly extending previous works. We also propose a novel value iteration-style algorithm for approximating the set of Pareto optimal thresholds for a given DQ.