Modelbased Code Generation for Hybrid Systems - PowerPoint PPT Presentation

About This Presentation
Title:

Modelbased Code Generation for Hybrid Systems

Description:

... generates platform-specific executable code from a platform-independent CHARON model ... Platform dependency. Makefile-like script. 7. Semantics of Models. CHARON ... – PowerPoint PPT presentation

Number of Views:38
Avg rating:3.0/5.0
Slides: 10
Provided by: jesun
Learn more at: http://www.cs.cmu.edu
Category:

less

Transcript and Presenter's Notes

Title: Modelbased Code Generation for Hybrid Systems


1
Model-based Code Generation for Hybrid Systems
  • Rajeev Alur
  • Franjo Ivancic
  • Jesung Kim
  • Insup Lee
  • Oleg Sokolsky

2
Goal
  • Automatic transition from abstract models to
    concrete implementations
  • Model hybrid automata (continuousdiscrete)
  • Implementation programming language (C/C)
  • Formal correspondence between models and
    implementations
  • Making formal verification done at the level of
    models also meaningful in implementations

3
Methodology
  • To design a software tool that generates
    platform-specific executable code from a
    platform-independent CHARON model
  • Input CHARON model Platform description
  • Output Executable code

4
Motivational Example Walking Dog Model
Walk
tokenMYTOKEN
UpDown(-1)
OnGround
x
y lt y_lift
token (token1)4
L1
j1
ground
Forward
UpDown(1)
L2
g_stop
j3
(x, y)
y
5
Code Generation Framework
6
Challenges
  • Discretization of the continuous model
  • Fixed step-size simulation
  • Validation
  • Transition error
  • ?-lookahead agent
  • Numerical error
  • Instrumented Hybrid Automata
  • Code quality
  • Modular C code
  • Platform dependency
  • Makefile-like script

7
Semantics of Models
  • CHARON
  • Hybrid System with continuous time semantics
  • Fixed step-size simulator
  • Read, write, and transitions occur
    instantaneously at a time multiple of the step
    size
  • Generated code

Read Write Transition
8
Validation of Generated Code
  • Given a step size ? and a CHARON model, check
    whether for all pairs of invariants I and guards
    g of outgoing transitions
  • If so, the generated code will produce a valid
    execution trace on hypothetic fixed step size
    simulator.
  • Otherwise, even for the fixed step size simulator
    we cannot guarantee a valid execution trace.

9
Current Status Future Works
  • Formal semantics
  • ?-lookahead agent
  • Suitable for formal reasoning of correctness
  • Modular code generation
  • Modularized C code
  • Suitable for distributed systems
  • Consideration of numerical errors
  • Instrumentation
  • Consideration of computational / IO delays
  • Comparison with other tools
Write a Comment
User Comments (0)
About PowerShow.com