Library-Based Scalable Refinement Checking for Contract-Based Design

Similar documents
Library-Based Scalable Refinement Checking for Contract-Based Design

Modular Synthesis of Sketches Using Models

ExCAPE. Expeditions in Computer Augmented Program Engineering

ALARGE number of new IT applications are emerging,

Refinement calculus for reactive systems

COMPOSITION OF ANALOG

Sciduction: Combining Induction, Deduction and Structure for Verification and Synthesis

From synchronous models to distributed, asynchronous architectures

Combining Induction, Deduction and Structure for Synthesis

Webinar on Design Automation for Cyber-Physical Systems

Complexity-Reducing Design Patterns for Cyber-Physical Systems. DARPA META Project. AADL Standards Meeting January 2011 Steven P.

Scalable Semantic Annotation using Lattice-based Ontologies

Crosstalk Noise Avoidance in Asynchronous Circuits

Outline. SLD challenges Platform Based Design (PBD) Leveraging state of the art CAD Metropolis. Case study: Wireless Sensor Network

From MetroII to Metronomy, Designing Contract-based Function-Architecture Co-simulation Framework for Timing Verification of Cyber-Physical Systems

System Correctness. EEC 421/521: Software Engineering. System Correctness. The Problem at Hand. A system is correct when it meets its requirements

Advanced Tool Architectures. Edited and Presented by Edward A. Lee, Co-PI UC Berkeley. Tool Projects. Chess Review May 10, 2004 Berkeley, CA

Timing Analysis of Embedded Software for Families of Microarchitectures

Quantitative Verification and Synthesis of Systems

ISO compliant verification of functional requirements in the model-based software development process

Compositionality in system design: interfaces everywhere! UC Berkeley

Motivation Thermal Modeling

Introduction to Electronic Design Automation. Model of Computation. Model of Computation. Model of Computation

Ptolemy II The automotive challenge problems version 4.1

Scalable Lazy SMT-Based Motion Planning

Index. ADEPT (tool for modelling proposed systerns),

A Graduate Embedded System Education Program

Towards Lab Based MOOCs: Embedded Systems, Robotics, and Beyond

Introduction to Linear-Time Temporal Logic. CSE 814 Introduction to LTL

Unit 2: High-Level Synthesis

The Gigascale Silicon Research Center

FILTER SYNTHESIS USING FINE-GRAIN DATA-FLOW GRAPHS. Waqas Akram, Cirrus Logic Inc., Austin, Texas

Automated Refinement Checking of Asynchronous Processes. Rajeev Alur. University of Pennsylvania

Decoupling Among Design Concerns

Standards for NoC: What can we gain?

Time-annotated game graphs for synthesis from abstracted systems

Introduction to Embedded Systems

ADAPTIVE FINITE ELEMENT

From Software Sensitivity to Software Dynamics: Performance Metrics for Real-Time Software Architectures

Routing in a Delay Tolerant Network

Communication Systems Design in Practice

Outline. CSC 447: Parallel Programming for Multi- Core and Cluster Systems

CS/ECE 5780/6780: Embedded System Design

Communication Systems Design in Practice

Xuandong Li. BACH: Path-oriented Reachability Checker of Linear Hybrid Automata

Portable Real-Time Code from PTIDES Models

Boon Thau Loo University of Pennsylvania

By: Chaitanya Settaluri Devendra Kalia

INVITED: Runtime Monitoring for Safety of Intelligent Vehicles

Model-based testing in the automotive industry challenges and solutions

Creating Smart Agents:

Formalization of Incremental Simplex Algorithm by Stepwise Refinement

What Is a Distributed Simulation (i.e., A Federation)?

Feature Selection in Learning Using Privileged Information

Continuous auditing certification

PRISM An overview. automatic verification of systems with stochastic behaviour e.g. due to unreliability, uncertainty, randomisation,

Fundamental Algorithms for System Modeling, Analysis, and Optimization

System-Level Design Languages: Orthogonalizing the Issues

Automated Software Synthesis for Complex Robotic Systems

System Debugging and Verification : A New Challenge. Center for Embedded Computer Systems University of California, Irvine

Formal Foundations of Software Engineering

Digital System Design

Summary of New DARWIN TM Capabilities for Surface Damage Tolerance Assessment and Related Enhancements

Kronos: A Model-Checking Tool for Real-Time Systems*

A Modal Specification Approach for Assuring the Safety of On-Demand Medical Cyber-Physical Systems

Contract-based design, model checking, and model-based safety assessment

Administrivia. ECE/CS 5780/6780: Embedded System Design. Acknowledgements. What is verification?

Counterexample Guided Synthesis of Monitors for Realizability Enforcement. Matthias Güdemann Gwen Salaün Meriem Ouederni

Learning-Based Assume-Guarantee Verification (Tool Paper)

Advanced Tool Architectures

A Modeling Framework for Schedulability Analysis of Distributed Avionics Systems. Pujie Han MARS/VPT Thessaloniki, 20 April 2018

Sireesha R Basavaraju Embedded Systems Group, Technical University of Kaiserslautern

Automotive Networks Are New Busses and Gateways the Answer or Just Another Challenge? ESWEEK Panel Oct. 3, 2007

Practical Model-based Testing With Papyrus and RT-Tester

Milind Kulkarni Research Statement

Emerging Platforms, Emerging Technologies, and the Need for Crosscutting Tools Luca Carloni

Lecture 2: Symbolic Model Checking With SAT

A Capacity Planning Methodology for Distributed E-Commerce Applications

ANALYSIS AND SYNTHESIS OF FLOATING-POINT ROUTINES. Zvonimir Rakamarić

Summary of Networked Systems Breakout Group

Applications of Program analysis in Model-Based Design

Predicate Refinement Heuristics in Program Verification with CEGAR

Simulation-Guided Verification & Validation for Large-Scale Automotive Control Systems

Advancing the MRJ project

Modelling and Verifying of e-commerce Systems

Exploring the Convertibility between IFPUG and COSMIC FP: Preliminary Findings. October , Assisi, Italy

Architecture-driven development of Climate Control Software LMS Imagine.Lab Embedded Software Designer Siemens DF PL

Business Process Modelling

Test and Evaluation of Autonomous Systems in a Model Based Engineering Context

EECS 144/244. Fundamental Algorithms for System Modeling, Analysis, and Optimization. Lecture 1: Introduction, Systems

Formal Verification of Flight Control Applications along a Model- Based Development Process A Case Study

SMC: Satisfiability Modulo Convex Optimization

Hierarchical FSMs with Multiple CMs

Floating-point Precision vs Performance Trade-offs

Kismet: Parallel Speedup Estimates for Serial Programs

Mike Whalen Program Director, UMSEC University of Minnesota

Exploring Trade-off s Between Centralized versus Decentralized Automotive Architectures Using a Virtual Integration Environment

FACTOR: A Hierarchical Methodology for Functional Test Generation and Testability Analysis

Virtual EM Inc. Ann Arbor, Michigan, USA

Stress due to surface load

Transcription:

Library-Based Scalable Refinement Checking for Contract-Based Design Antonio Iannopollo Pierluigi Nuzzo Stavros Tripakis Alberto Sangiovanni-Vincentelli EXCAPE ANNUAL MEETING 10-11 MARCH 2014 UC BERKELEY

Design as composition of library elements Libraries of components capture domain knowledge System design can be realized by composition of components Given a design built using libraries, we need to verify that system specifications are met Contract-based design allows for compositional reasoning Each library component is described by a contract System design is a composition of contracts Each specification is also represented as a contract The verification of a system design reduces to verify contract refinements Our work is focused on making contract refinement check more scalable

Assume/Guarantee Contracts Contract Set P of ports, P = I O Set A of assumptions Set G of guarantees Component A contract expressed in form of C = (A, G v A) is in saturated form Implementation Implementation Implementation A/G contract theory specifies Composition of contracts Refinement relations Compatibilityand Consistency

Assume/Guarantee Contracts Concrete representation of contracts using Linear Temporal Logic formulas: Assumptions and guarantees of a contract represented by a pair of LTL formulas, Given contracts and Composition is Refinement is C1 A G C2

Refinement Check Problem (RPC) Given A set of contracts A composition of contracts specifying a system, where A propertyexpressed as a contract We want to verify that For LTL A/G contracts, RCP can be solved as a LTL satisfiability problem Computationally expensive!

Library of contracts A library is defined as a pair, where is a set of contracts is a finite set of refinement relations over contracts in E.g.,, where (meaning that! ) and Library is hierarchically organized Strict refinement relations, to avoid circular dependencies Once a library has been defined (by domain experts) it is possible to verify it as a sequence of simple RCP instances

Refinement Check Problem with Libraries (RCPL) Given A contract library A composition of contractsspecifying a system, where A propertyexpressed as a contract We want to verify that

Refinement Check Problem with Libraries (RCPL) Consider the library And the design C2 (a connection means shared variables) abstract-contract: C2 C1 C4 RCP: If, we are done! otherwise propagate-no-abstraction: C2

The Aircraft Electrical Power System (EPS) Example The goal is synthesize a control software for the whole plant Physical elements consist of generators, buses, contactors, loads Library defined as set of subsystem contracts Assumptions: G(gen_failure -> X(gen_failure)) Guarantees: G(!gen_failure -> sys_health) & G(gen_failure ->!sys_health)

The Aircraft Electrical Power System (EPS) Example Set of 13 global specificationsexpressed as contracts, such as: C p5 : If generators G L and G R are healthy, contactors c 5 and c 6 must be opened; C p6 : Contactors c 2 and c 3 cannot be both closed at the same time; Seconds EPS property verification execution time 10000 1000 100 10 1 Cp1 Cp2 Cp3 Cp4 Cp5 Cp6 Cp7 Cp8 Cp9 Cp10 Cp11 Cp12 Cp13 RCP RCPL Up to 80% contract size reduction Up to 2 orders of magnitude performance improvement (refinement check execution time) % 100 80 60 40 20 0 EPS composite contract formula size ratio assumptions guarantees w/o abstraction w abstraction

Conclusion This work addresses the problem of performing scalable refinement checks for contract-based design Proposed solution leverages a pre-characterized library of contractsto reduce complexity, solving smaller scale problems We applied the proposed algorithm to verify controllers for aircraft electrical power systems Future works include algorithms for automatic mapping of library contracts to plant architectures definition of benchmarks and quality metrics to estimate the effectiveness of a library

Questions?