Slicing of Esterel - PowerPoint PPT Presentation

1 / 5
About This Presentation
Title:

Slicing of Esterel

Description:

Slicing of Esterel. Static Slicing: A program transformation that extracts a ... Slice preserves the behavior of original program w.r.t the slicing criterion. ... – PowerPoint PPT presentation

Number of Views:27
Avg rating:3.0/5.0
Slides: 6
Provided by: Adi135
Category:
Tags: esterel | slicing

less

Transcript and Presenter's Notes

Title: Slicing of Esterel


1
Slicing of Esterel
  • Static Slicing A program transformation that
    extracts a subset of program based on specific
    criterion.
  • Slice preserves the behavior of original program
    w.r.t the slicing criterion.
  • Esterel A synchronous language. Used to model
    control behavior of reactive systems.
  • Applications of slicing
  • Program understanding
  • Debugging
  • Formal Verification

2
Example of Slice
  • read ( n )
  • i 1
  • sum 0
  • prod 1
  • while ( i lt n )
  • sum sum i
  • prod prod i
  • i i 1
  • print ( sum )
  • print ( prod )
  • Slicing Criterion ltlineno, variablegt
  • read ( n )
  • i 1
  • sum 0
  • while ( i lt n )
  • sum sum i
  • i i 1
  • print ( sum )
  • Slice w.r.t lt10, sumgt

3
Esterel Slicer
Reduced Esterel Program Slice
Esterel Program
Slicing Criterion ltlineno, output signalgt
The behavior of slice and original program must
be same w.r.t the slicing criterion.
4
Architecture of Slicer
AST CFG
Parser Front end
Esterel Program
Data Flow Analysis
DDS
CDS
Control Flow Analysis
PDG
Slicing Algorithm
Slicing Criterion
Slice
5
Example
  • loop
  • emit S1
  • pause
  • present S2 then emit S3
  • emit S2
  • emit S1
  • end
  • Slicing Criterion lt 5, S3 gt
Write a Comment
User Comments (0)
About PowerShow.com