Skip to Content

PPL citations from 2022

All citation years and BibTeX download

[AllamigeonKS22]
Formalizing the Face Lattice of Polyhedra(Article)
Authors:
X. Allamigeon; R. D. Katz; P.-Y. Strub
Date:
2022
Publication:
Logical Methods in Computer Science
Volume:
18
Issue:
2
Pages:
10:1–10:23
Publisher:
Logical Methods in Computer Science
Abstract
Faces play a central role in the combinatorial and computational aspects of polyhedra. In this paper, we present the first formalization of faces of polyhedra in the proof assistant Coq. This builds on the formalization of a library providing the basic constructions and operations over polyhedra, including projections, convex hulls and images under linear maps. Moreover, we design a special mechanism which automatically introduces an appropriate representation of a polyhedron or a face, depending on the context of the proof. We demonstrate the usability of this approach by establishing some of the most important combinatorial properties of faces, namely that they constitute a family of graded atomistic and coatomistic lattices closed under interval sublattices. We also prove a theorem due to Balinski on the d-connectedness of the adjacency graph of polytopes of dimension d.
[AmatoMS22]
On the Need for a Common API for Abstract Domains of Object-Oriented Programs(Conference paper)
Authors:
G. Amato; M. C. Meo; F. Scozzari
Editors:
H. Rebêlo
Date:
2022
Publication:
Proceedings of the 24th ACM International Workshop on Formal Techniques for Java-Like Programs
Pages:
15–17
Publisher:
ACM Press, New York, USA
Location:
Berlin Germany
Abstract
In the last years almost all families of programming languages, from imperative to functional, logic, object-oriented and machine code, have been subject to static analysis by abstract interpretation. The use of a principled approach to static analysis based on the theory of abstract interpretation provided mathematical tools to reason about program properties and allowed for the rigorous and incremental design of precise and scalable static analyzers, ensuring soundness by construction. The large variety of abstract domains for many different programming languages, the ability to combine and refine them with standard abstract interpretation tools and the availability of mature abstract domain libraries allowed easily porting, reusing and experimenting with techniques born in a specific family to other programming languages and properties. Since the use of abstract interpretation for the analysis of object-oriented languages is less common than in other application fields of static analysis, in order to increase its adoption, we advocate the need to establish a common interface for designing and implementing abstract domains for the static analysis of Java-like programs. This interface should allow developing abstract domains pluggable in a generic abstract interpreter, as it is customary, for example, in abstract interpretation-based static analysis of numerical properties.
[AndreBLM22]
strategFTO: Untimed Control for Timed Opacity(Conference paper)
Authors:
É. André; S. Bolat; E. Lefaucheux; D. Marinho
Editors:
C. Artho; P. C. Ölveczky
Date:
2022
Publication:
Proceedings of the 8th ACM SIGPLAN International Workshop on Formal Techniques for Safety-Critical Systems
Pages:
27–33
Publisher:
ACM Press, New York, USA
Location:
Auckland New Zealand
ISBN:
978-1-4503-9907-4
Abstract
We introduce a prototype tool strategFTO addressing the verification of a security property in critical software. We consider a recent definition of timed opacity where an attacker aims to deduce some secret while having access only to the total execution time. The system, here modeled by timed automata, is deemed opaque if for any execution time, there are either no corresponding runs, or both public and private corresponding runs. We focus on the untimed control problem: exhibiting a controller, i.e., a set of allowed actions, such that the system restricted to those actions is fully timed-opaque. We first show that this problem is not more complex than the full timed opacity problem, and then we propose an algorithm, implemented and evaluated in practice.
[AndreLMS22]
Guaranteeing Timed Opacity Using Parametric Timed Model Checking(Article)
Authors:
É. André; D. Lime; D. Marinho; J. Sun
Date:
2022
Publication:
ACM Transactions on Software Engineering and Methodology
Volume:
31
Issue:
4
Pages:
64:1–64:36
Publisher:
ACM Press, New York, USA
ISSN:
1049-331X
Abstract
Information leakage can have dramatic consequences on systems security. Among harmful information leaks, the timing information leakage occurs whenever an attacker successfully deduces confidential internal information. In this work, we consider that the attacker has access (only) to the system execution time. We address the following timed opacity problem: given a timed system, a private location and a final location, synthesize the execution times from the initial location to the final location for which one cannot deduce whether the system went through the private location. We also consider the full timed opacity problem, asking whether the system is opaque for all execution times. We show that these problems are decidable for timed automata (TAs) but become undecidable when one adds parameters, yielding parametric timed automata (PTAs). We identify a subclass with some decidability results. We then devise an algorithm for synthesizing PTAs parameter valuations guaranteeing that the resulting TA is opaque. We finally show that our method can also apply to program analysis.
[AndreMPvdP22]
Efficient Convex Zone Merging in Parametric Timed Automata(Conference paper)
Authors:
É. André; D. Marinho; L. Petrucci; J. van de Pol
Editors:
S. Bogomolov; D. Parker
Date:
2022
Publication:
Formal Modeling and Analysis of Timed Systems: Proceedings of the 20th International Conference (FORMATS 2022)
Series:
Lecture Notes in Computer Science
Volume:
13465
Pages:
200–218
Publisher:
Springer, Cham
Location:
Warsaw, Poland
ISBN:
978-3-031-15838-4 (Print) 978-3-031-15839-1 (Online)
Abstract
Parametric timed automata are a powerful formalism for reasoning on concurrent real-time systems with unknown or uncertain timing constants. Reducing their state space is a significant way to reduce the inherently large analysis times. We present here different merging reduction techniques based on convex union of constraints (parametric zones), allowing to decrease the number of states while preserving the correctness of verification and synthesis results. We perform extensive experiments, and identify the best heuristics in practice, bringing a significant decrease in the computation time on a benchmarks library.
[AndreWUH22]
Exemplifying Parametric Timed Specifications over Signals with Bounded Behavior(Conference paper)
Authors:
É. André; M. Waga; N. Urabe; I. Hasuo
Editors:
J. V. Deshmukh; K. Havelund; I. Perez
Date:
2022
Publication:
NASA Formal Methods: Proceedings of the 14th International Symposium (NFM 2022)
Series:
Lecture Notes in Computer Science
Volume:
13260
Pages:
470–488
Publisher:
Springer, Cham
Location:
Pasadena, CA, USA
ISBN:
978-3-031-06772-3 (Print) 978-3-031-06773-0 (Online)
Abstract
Specifying properties can be challenging work. In this paper, we propose an automated approach to exemplify properties given in the form of automata extended with timing constraints and timing parameters, and that can also encode constraints over real-valued signals. That is, given such a property and given an admissible automaton for each signal, we output concrete runs exemplifying real (or impossible) runs for this property. Specifically, our method takes as input a property, and a set of admissible behaviors, all given as a subclass of linear hybrid automata, namely timed automata extended with arbitrary clock rates and timing parameters. Our method then generates concrete runs exemplifying the property.
[ArceriMZ22]
Decoupling the Ascending and Descending Phases in Abstract Interpretation(Conference paper)
Authors:
V. Arceri; I. Mastroeni; E. Zaffanella
Editors:
I. Sergey
Date:
2022
Publication:
Programming Languages and Systems: Proceedings of the 20th Asian Symposium (APLAS 2022)
Series:
Lecture Notes in Computer Science
Volume:
13658
Pages:
25–44
Publisher:
Springer, Cham
Location:
Auckland, New Zealand
ISBN:
978-3-031-21036-5 (Print) 978-3-031-21037-2 (Online)
Abstract
Abstract Interpretation approximates the semantics of a program by mimicking its concrete fixpoint computation on an abstract domain A\mathbb{A}. The abstract (post-) fixpoint computation is classically divided into two phases: the ascending phase, using widenings as extrapolation operators to enforce termination, is followed by a descending phase, using narrowings as interpolation operators, so as to mitigate the effect of the precision losses introduced by widenings. In this paper we propose a simple variation of this classical approach where, to more effectively recover precision, we decouple the two phases: in particular, before starting the descending phase, we replace the domain A\mathbb{A} with a more precise abstract domain D\mathbb{D}. The correctness of the approach is justified by casting it as an instance of the A2^2I framework. After demonstrating the new technique on a simple example, we summarize the results of a preliminary experimental evaluation, showing that it is able to obtain significant precision improvements for several choices of the domains A\mathbb{A} and D\mathbb{D}.
[ArceriOCF22]
Relational String Abstract Domains(Conference paper)
Authors:
V. Arceri; M. Olliaro; A. Cortesi; P. Ferrara
Editors:
B. Finkbeiner; T. Wies
Date:
2022
Publication:
Verification, Model Checking, and Abstract Interpretation: Proceedings of the 23rd International Conference (VMCAI 2022)
Series:
Lecture Notes in Computer Science
Volume:
13182
Pages:
20–42
Publisher:
Springer, Cham
Location:
Philadelphia, PA, USA
ISBN:
978-3-030-94582-4 (Print) 978-3-030-94583-1 (Online)
Abstract
In modern programming languages, more and more functionalities, such as reflection and data interchange, rely on string values. String analysis statically computes the set of string values that are possibly assigned to a variable, and it involves a certain degree of approximation. During the last decade, several abstract domains approximating string values have been introduced and applied to statically analyze programs. However, most of them are not precise enough to track relational information between string variables whose value is statically unknown (e.g., user input), causing the loss of relevant knowledge about their possible values. This paper introduces a generic approach to formalize relational string abstract domains based on ordering relationships. We instantiate it to several domains built upon different well-known string orders (e.g., substring). We implemented the domain based on the substring ordering into a prototype static analyzer for Go, and we experimentally evaluated its precision and performance on some real-world case studies.
[ArcileA22]
Zone Extrapolations in Parametric Timed Automata(Conference paper)
Authors:
J. Arcile; É. André
Editors:
J. V. Deshmukh; K. Havelund; I. Perez
Date:
2022
Publication:
NASA Formal Methods: Proceedings of the 14th International Symposium (NFM 2022)
Series:
Lecture Notes in Computer Science
Volume:
13260
Pages:
451–469
Publisher:
Springer, Cham
Location:
Pasadena, CA, USA
ISBN:
978-3-031-06772-3 (Print) 978-3-031-06773-0 (Online)
Abstract
Timed automata (TAs) are an efficient formalism to model and verify systems with hard timing constraints, and concurrency. While TAs assume exact timing constants with infinite precision, parametric TAs (PTAs) leverage this limitation and increase their expressiveness, at the cost of undecidability. A practical explanation for the efficiency of TAs is zone extrapolation, where clock valuations beyond a given constant are considered equivalent. This concept cannot be easily extended to PTAs, due to the fact that parameters can be unbounded or can take arbitrary rational values. In this work, we propose several definitions of extrapolation for PTAs based on the M-extrapolation, and we study their correctness. Our experiments show an overall decrease of the computation time and, most importantly, allow termination of some previously unsolvable benchmarks.
[BertoutGGJP22]
Workload Assignment for Global Real-Time Scheduling on Unrelated Clustered Platforms(Article)
Authors:
A. Bertout; J. Goossens; E. Grolleau; R. Jamil; X. Poczekajlo
Date:
2022
Publication:
Real-Time Systems
Volume:
58
Issue:
1
Pages:
4–35
Publisher:
Springer
ISSN:
0922-6443
Abstract
Heterogeneous MPSoCs are being used more and more, from cellphones to critical embedded systems. Most of those systems offer heterogeneous sets of identical cores. In this paper, we propose new results on the global scheduling approach. We extend fundamental global scheduling results on unrelated processors to results on unrelated multicore platforms, a more realistic model. We introduce several methods to construct the workload assignment of tasks to cores taking advantage of this new model. Every studied result is optimal regarding schedulability, and all the proposed methods but one have a polynomial time complexity. Thanks to the model, the produced schedules have a limited degree of migrations. The benefits of the methods are demonstrated and compared using synthetic tasks sets. Practical limitations of the global scheduling approach on unrelated platforms are discussed, but we argue that it is still worth investigating considering modern MPSoCs.
[BuFKRSZ22]
ARCH-COMP22 Category Report: Hybrid Systems with Piecewise Constant Dynamics and Bounded Model Checking(Conference paper)
Authors:
L. Bu; G. Frehse; A. Kundu; R. Ray; Y. Shi; E. Zaffanella
Editors:
G. Frehse; M. Althoff; E. Schoitsch; J. Guiochet
Date:
2022
Publication:
Proceedings of the 9th International Workshop on Applied Verification of Continuous and Hybrid Systems (ARCH22)
Series:
EPiC Series in Computing
Volume:
90
Pages:
44–57
Publisher:
EasyChair
Abstract
This report presents the 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 2022. In this edition, five tools have been applied to solve six different benchmark problems in the category for piecewise constant dynamics: BACH, PHAVer, PHAVerLite, SAT-Reach, and XSpeed. 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.
[ChenFYCW22]
Optimization Technique for Interprocedual Analysis Using Function Inlining in Abstract Interpretation(Article)
Authors:
T.-Q. Chen; G.-S. Fan; B.-H. Yin; L.-Q. Chen; J. Wang
Date:
2022-08
Publication:
Journal of Software
Volume:
33
Issue:
8
Pages:
2964–2979
ISSN:
1000-9825
In Chinese, with English abstract
Abstract
When analyzing real-world programs, it is often necessary to analyze the function calls in the program, and interprocedural analysis is generally used to achieve full program analysis. Function inlining is one of the most accurate and easily achievable methods for interprocedural analysis. Function inlining allows existing intraprocedural analysis methods and tools to support the analysis of programs that contain function calls. However, the size of the code increases dramatically after function inlining, and a large number of intermediate variables will be generated, which increases the variable dimension of program analysis and causes the process of program analysis to consume a lot of memory and time. This study considers some shortcomings of interprocedural analysis of function inlining based on the abstract interpretation framework and proposes a corresponding optimization method. Program analysis based on abstract interpretation is concerned with automatically deriving invariant constraint relations among program variables, so the size of the program environment constituted by program variables (i.e., the set of relevant variables to be considered at each program point) has an important impact on the time and space overhead of the analysis. In order to reduce the overhead of program analysis after function inlining, this study proposes a program environment reduction optimization method for inline function blocks. The method analyzes the program code after inlining functions to determine the program environment (i.e., set of related variables) to be maintained at different program points, instead of sharing the same global program environment at all program points, so as to realize the dimensionality reduction of the program state. The architecture, modules, and algorithm details of the tool DRIP (dimension reduction for analyzing function inlined program) implemented based on this method are described in detail. The results show that DRIP achieves sound results in variable elimination, even reducing more than half of the variables in some test suites, and the time and space spent is also reduced to a certain extent.
[CimattiGM22]
LTL Falsification in Infinite-State Systems(Article)
Authors:
A. Cimatti; A. Griggio; E. Magnago
Date:
2022-11
Publication:
Information and Computation
Volume:
289
Pages:
104977
Publisher:
Elsevier
ISSN:
0890-5401
Abstract
In finite-state systems, if an LTL property is false, there is always a counterexample path (i.e. a witness) for it which is ultimately periodic (i.e. in a lasso-shaped form). When dealing with infinite-state systems, this is no longer the case. In this work, we address this issue by proposing an automatic approach that presents witnesses in an indirect way. The approach is based on two key insights. First, we leverage the notion of well-founded funnel, where a ranking function ensures that the states in the source set are guaranteed to inevitably reach the destination set. We show that, under suitable conditions, a sequence of funnels ensures the existence of a fair path. Second, we adopt a compositional approach to partition the original system into projections and to prove that they result in a non-empty under-approximation of the original system that only contains fair paths. Then, we propose an algorithm that, working in an abstract space induced by a set of predicates, identifies candidate funnels, proves their well-foundedness, and searches for a sequencing order. We experimentally evaluate the approach on examples taken from software, timed and hybrid systems, showing its wide applicability and expressiveness, with an implementation that outperforms various competitor tools.
[DeAngelisFGHPP22]
Analysis and Transformation of Constrained Horn Clauses for Program Verification(Article)
Authors:
E. De Angelis; F. Fioravanti; J. P. Gallagher; M. V. Hermenegildo; A. Pettorossi; M. Proietti
Date:
2022
Publication:
Theory and Practice of Logic Programming
Volume:
22
Issue:
6
Pages:
974–1042
Publisher:
Cambridge University Press
ISSN:
1471-0684
Abstract
This paper surveys recent work on applying analysis and transformation techniques that originate in the field of constraint logic programming (CLP) to the problem of verifying software systems. We present specialization-based techniques for translating verification problems for different programming languages, and in general software systems, into satisfiability problems for constrained Horn clauses (CHCs), a term that has become popular in the verification field to refer to CLP programs. Then, we describe static analysis techniques for CHCs that may be used for inferring relevant program properties, such as loop invariants. We also give an overview of some transformation techniques based on specialization and fold/unfold rules, which are useful for improving the effectiveness of CHC satisfiability tools. Finally, we discuss future developments in applying these techniques.
[Delmas22th]
Static Analysis of Program Portability by Abstract Interpretation(PhD thesis)
Authors:
D. Delmas
Date:
2022-11
Location:
Paris, France
School:
Sorbonne Université
Abstract
Computer programs tend to be used much longer than expected at design time, and in a wider variety of environments. Adapting a software product for new usage may turn out to be difficult and costly. Ensuring the portability of programs is a major stake: it amounts to ensuring that their compilation and execution in a different environment will have small controlled impact on their semantics. The goal of this thesis is to develop a novel class of static analyses by abstract interpretation, allowing to verify portability properties of low-level C programs. Portability verification aims at proving the equivalence of two syntactically close versions of a program running in different environments. We first focus on the particular case of regression verification, which aims at proving the equivalence of two program versions running in the same environment. We propose a static analysis of software patches that is able to infer such equivalence properties, in particular in the context of low-level C programs such as those used in embedded software. Then we develop an approach to portability analysis of C programs that is designed as an extension of patch analysis. We focus on two portability properties, related to the representation of the computer memory specified by the ABI: portability against different representations of scalars (endianness), and against different memory layouts (offsets of scalar fields in C structs). We implemented a prototype static analyzer on top of the MOPSA platform, and experimented it on real-world open source and industrial software. It allows successful analyses of large, real-world avionics software up to one million lines of C.
[DengC22]
The Systematic Design of Responsibility Analysis by Abstract Interpretation(Article)
Authors:
C. Deng; P. Cousot
Date:
2022
Publication:
ACM Transactions on Programming Languages and Systems
Volume:
44
Issue:
1
Pages:
3:1–3:90
Publisher:
ACM Press, New York, USA
ISSN:
0164-0925
Abstract
Given a behavior of interest, automatically determining the corresponding responsible entity (i.e., the root cause) is a task of critical importance in program static analysis. In this article, a novel definition of responsibility based on the abstraction of trace semantics is proposed, which takes into account the cognizance of observer, which, to the best of our knowledge, is a new innovative idea in program analysis. Compared to current dependency and causality analysis methods, the responsibility analysis is demonstrated to be more precise on various examples. However, the concrete trace semantics used in defining responsibility is uncomputable in general, which makes the corresponding concrete responsibility analysis undecidable. To solve this problem, the article proposes a sound framework of abstract responsibility analysis, which allows a balance between cost and precision. Essentially, the abstract analysis builds a trace partitioning automaton by an iteration of over-approximating forward reachability analysis with trace partitioning and under/over-approximating backward impossible failure accessibility analysis, and determines the bounds of potentially responsible entities along paths in the automaton. Unlike the concrete responsibility analysis that identifies exactly a single action as the responsible entity along every concrete trace, the abstract analysis may lose some precision and find multiple actions potentially responsible along each automaton path. However, the soundness is preserved, and every responsible entity in the concrete is guaranteed to be also found responsible in the abstract.
[DerbezL22]
Fast MILP Models for Division Property(Article)
Authors:
P. Derbez; B. Lambin
Date:
2022
Publication:
IACR Transactions on Symmetric Cryptology
Volume:
2022
Issue:
2
Pages:
289–321
Publisher:
Universitatsbibliothek der Ruhr-Universitat Bochum
Abstract
Nowadays, MILP is a very popular tool to help cryptographers search for various distinguishers, in particular for integral distinguishers based on the division property. However, cryptographers tend to use MILP in a rather naive way, modeling problems in an exact manner and feeding them to a MILP solver. In this paper, we show that a proper use of some features of MILP solvers such as lazy constraints, along with using simpler but less accurate base models, can achieve much better solving times, while maintaining the precision of exact models. In particular, we describe several new modelization techniques for division property related models as well as a new variant of the Quine-McCluskey algorithm for this specific setting. Moreover, we positively answer a problem raised in [DF20] about handling the large sets of constraints describing valid transitions through Super S-boxes into a MILP model. As a result, we greatly improve the solving times to recover the distinguishers from several previous works ([DF20], [HWW20], [SWW17], [Udo21], [EY21]) and we were able to search for integral distinguishers on 5-round ARIA which was out of reach of previous modeling techniques.
[EiflerGP22]
A Safe Computational Framework for Integer Programming Applied to Chvátal's Conjecture(Article)
Authors:
L. Eifler; A. Gleixner; J. Pulaj
Date:
2022
Publication:
ACM Transactions on Mathematical Software
Volume:
48
Issue:
2
Pages:
14:1–14:12
Publisher:
ACM Press, New York, USA
ISSN:
0098-3500
Abstract
We describe a general and safe computational framework that provides integer programming results with the degree of certainty that is required for machine-assisted proofs of mathematical theorems. At its core, the framework relies on a rational branch-and-bound certificate produced by an exact integer programming solver, SCIP, in order to circumvent floating-point roundoff errors present in most state-of-the-art solvers for mixed-integer programs. The resulting certificates are self-contained and checker software exists that can verify their correctness independently of the integer programming solver used to produce the certificate. This acts as a safeguard against programming errors that may be present in complex solver software. The viability of this approach is tested by applying it to finite cases of Chvátal's conjecture, a long-standing open question in extremal combinatorics. We take particular care to verify also the correctness of the input for this specific problem, using the Coq formal proof assistant. As a result, we are able to provide a first machine-assisted proof that Chvátal's conjecture holds for all downsets whose union of sets contains seven elements or less.
[FrehseGZ22]
Symbolic Analysis of Linear Hybrid Automata – 25 Years Later(Book chapter)
Authors:
G. Frehse; M. Giacobbe; E. Zaffanella
Editors:
J.-F. Raskin; K. Chatterjee; L. Doyen; R. Majumdar
Date:
2022
Publication:
Principles of Systems Design
Series:
Lecture Notes in Computer Science
Volume:
13660
Pages:
39–60
Publisher:
Springer, Cham
ISBN:
978-3-031-22336-5 (Print) 978-3-031-22337-2 (Online)
Abstract
We present a collection of advances in the algorithmic verification of hybrid automata with piecewise linear derivatives, so-called Linear Hybrid Automata. New ways to represent and compute with polyhedra, in combination with heuristic algorithmic improvements, have led to considerable speed-ups in checking safety properties through set propagation. We also showcase a CEGAR-style approach that iteratively constructs a polyhedral abstraction. We illustrate the efficiency and scalability of both approaches with two sets of benchmarks.
[Haur22th]
AUTOSAR Compliant Multi-Core RTOS Formal Modeling and Verification(PhD thesis)
Authors:
I. Haur
Date:
2022-11
Location:
Nantes, France
School:
École centrale de Nantes
Abstract
Formal verification is a solution to increase the system's implementation reliability. In our thesis work, we are interested in using these methods to verify multi-core RTOS. We propose a model-checking approach using time Petri nets extended with colored transitions and high-level features. We use this formalism to model the Trampoline multi-core OS, compliant with the OSEK/VDX and AUTOSAR standards. We first define this formalism and show its suitability for modeling real-time concurrent systems. We then use this formalism to model the Trampoline multi-core RTOS and verify by model-checking its conformity with the AUTOSAR standard. From this model, we can verify properties of both the OS and the application, such as the schedulability of a real-time system and the synchronization mechanisms: concurrent access to the data structures of the OS, multicore scheduling, and inter-core interrupt handling. As an illustration, this method allowed the automatic identification of two possible errors of the Trampoline OS in concurrent execution, showing insufficient data protection and faulty synchronization.
[LiuFYSL22]
Scalable Linear Invariant Generation with Farkas' Lemma(Article)
Authors:
H. Liu; H. Fu; Z. Yu; J. Song; G. Li
Date:
2022
Publication:
Proceedings of the ACM on Programming Languages
Volume:
6
Issue:
OOPSLA2
Pages:
204–232
Publisher:
ACM Press, New York, USA
ISSN:
2475-1421
Abstract
Invariant generation is a classical problem to automatically generate invariants to aid the formal analysis of programs. In this work, we consider the problem of generating tight linear-invariants over affine programs (i.e., programs with affine guards and updates) without a prescribed goal property. In the literature, the only known sound and complete characterization to solve this problem is via Farkas' Lemma (FL), and has been implemented through either quantifier elimination or reasonable heuristics. Although FL-based approaches can generate highly accurate linear invariants from the completeness of FL, the main bottleneck to applying these approaches is the scalability issue caused by either non-linear constraints or combinatorial explosion. We base our approach on the only practical FL-based approach [Sankaranarayanan et al., SAS 2004] that applies FL with reasonable heuristics, and develop two novel and independent improvements to leverage the scalability. The first improvement is the novel idea to generate invariants at one program location in a single invariant-generation process, so that the invariants for each location are generated separately rather than together in a single computation. This idea naturally leads to a parallel processing that divides the invariant-generation task for all program locations by assigning the locations separately to multiple processors. Moreover, the idea enables us to develop detailed technical improvements to further reduce the combinatorial explosion in the original work [Sankaranarayanan et al., SAS 2004]. The second improvement is a segmented subsumption testing in the CNF-to-DNF expansion that allows discovering more local subsumptions in advance. We formally prove that our approach has the same accuracy as the original work and thus does not incur accuracy loss on the generated invariants. Moreover, experimental results on representative benchmarks involving non-trivial linear invariants demonstrate that our approach improves the runtime of the original work by several orders of magnitude, even in the non-parallel scenario that sums up the execution time for all program locations. Hence, our approach constitutes the first significant improvement in FL-based approaches for linear invariant generation after almost two decades.
[MarussySV22]
Automated Generation of Consistent Graph Models with Multiplicity Reasoning(Article)
Authors:
K. Marussy; O. Semerath; D. Varro
Date:
2022
Publication:
IEEE Transactions on Software Engineering
Volume:
48
Issue:
5
Pages:
1610–1629
Publisher:
IEEE Press
ISSN:
0098-5589
Abstract
Advanced tools used in model-based systems engineering (MBSE) frequently represent their models as graphs. In order to test those tools, the automated generation of well-formed (or intentionally malformed) graph models is necessitated which is often carried out by solver-based model generation techniques. In many model generation scenarios, one needs more refined control over the generated unit tests to focus on the more relevant models. Type scopes allow to precisely define the required number of newly generated elements, thus one can avoid the generation of unrealistic and highly symmetric models having only a single type of elements. In this paper, we propose a 3-valued scoped partial modeling formalism, which innovatively extends partial graph models with predicate abstraction and counter abstraction. As a result, well-formedness constraints and multiplicity requirements can be evaluated in an approximated way on incomplete (unfinished) models by using advanced graph query engines with numerical solvers (e.g., IP or LP solvers). Based on the refinement of 3-valued scoped partial models, we propose an efficient model generation algorithm that generates models that are both well-formed and satisfy the scope requirements. We show that the proposed approach scales significantly better than existing SAT-solver techniques or the original graph solver without multiplicity reasoning. We illustrate our approach in a complex design-space exploration case study of collaborating satellites introduced by researchers at NASA JPL.
[SchuppAE22]
Recent Developments in Theory and Tool Support for Hybrid Systems Verification with HyPro(Article)
Authors:
S. Schupp; E. Ábrahám; T. Ebert
Date:
2022
Publication:
Information and Computation
Volume:
289
Pages:
104945
Publisher:
Elsevier
ISSN:
0890-5401
Abstract
Over the last decades, the development of algorithms and tools for the safety verification of hybrid systems has been content of intensive research. Numerous novel ideas have been presented and implemented in different tools. Whereas the majority of these tools offer fixed implementations, only few general libraries have been provided for the development of new verification tools. HYPRO is such an example, providing a C++ programming library for the implementation of certain types of reachability analysis algorithms for linear hybrid systems. These algorithms, based on flowpipe construction, need geometric or symbolic representation for state sets of hybrid systems. HYPRO offers datatypes for different representations, conversions between them, and efficient algorithms based on these datatypes. Since its release in 2017, HYPRO's functionalities have been extended by several implementations. In this paper we give a general introduction to flowpipe-construction-based methods and report on HYPRO's functional advances as well as on applications of the library.
[TangM22]
Data Assimilation with Agent-Based Models Using Markov Chain Sampling(Article)
Authors:
D. Tang; N. Malleson
Date:
2022
Publication:
Open Research Europe
Pages:
70
Publisher:
CERN
Abstract
Every day, weather forecasting centres around the world make use of noisy, incomplete observations of the atmosphere to update their weather forecasts. This process is known as data assimilation, data fusion or state estimation and is best expressed as Bayesian inference: given a set of observations, some prior beliefs and a model of the target system, what is the probability distribution of some set of unobserved quantities or latent variables at some time, possibly in the future? While data assimilation has developed rapidly in some areas, relatively little progress has been made in performing data assimilation with agent-based models. This has hampered the use of agent-based models to make quantitative claims about real-world systems. Here we present an algorithm that uses Markov-Chain-Monte-Carlo (MCMC) methods to generate samples of the parameters and trajectories of an agent-based model over a window of time given a set of possibly noisy, aggregated and incomplete observations of the system. This can be used as-is, or as part of a data assimilation cycle or sequential-MCMC algorithm. Our algorithm is applicable to time-stepping, agent-based models whose agents have a finite set of states and a finite number of ways of acting on the world. As presented, the algorithm is only practical for agents with a few bytes of internal state although we discuss ways of removing this restriction. We demonstrate the algorithm by performing data assimilation with an agent-based, spatial predator-prey model.
[TangZWJZYZ22]
FreeTensor: A Free-Form DSL with Holistic Optimizations for Irregular Tensor Programs(Conference paper)
Authors:
S. Tang; J. Zhai; H. Wang; L. Jiang; L. Zheng; Z. Yuan; C. Zhang
Editors:
R. Jhala; I. Dillig
Date:
2022
Publication:
Proceedings of the 43rd ACM SIGPLAN International Conference on Programming Language Design and Implementation
Pages:
872–887
Publisher:
ACM Press, New York, USA
Location:
San Diego CA USA
ISBN:
978-1-4503-9265-5
Abstract
Tensor programs are of critical use in many domains. Existing frameworks, such as PyTorch, TensorFlow, and JAX, adopt operator-based programming to ease programming, increase performance, and perform automatic differentiation. However, as the rapid development of tensor programs, operator-based programming shows significant limitations for irregular patterns since a large amount of redundant computation or memory access is introduced. In this work, we propose FreeTensor, a free-form domain specific language which supports redundancy-avoid programming by introducing fine-grained control flow. With optimizations including partial evaluation, dependence-aware transformations, and fine-grained automatic differentiation, FreeTensor is able to generate high performance tensor programs on both CPU and GPU. Experiments show a speedup over existing tensor programming frameworks up to 5.10 ×\times (2.08 ×\times on average) without differentiation, and up to 127.74 ×\times (36.26 ×\times on average) after differentiation, for typical irregular tensor programs.
[WagaAH22]
Model-Bounded Monitoring of Hybrid Systems(Article)
Authors:
M. Waga; É. André; I. Hasuo
Date:
2022
Publication:
ACM Transactions on Cyber-Physical Systems
Volume:
6
Issue:
4
Pages:
30:1–30:26
Publisher:
ACM Press, New York, USA
ISSN:
2378-962X
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.