Linking Analysis and Transformation Tools using Sourcebased Mappings - PowerPoint PPT Presentation

1 / 13
About This Presentation
Title:

Linking Analysis and Transformation Tools using Sourcebased Mappings

Description:

Linking Analysis and Transformation Tools using Source-based Mappings ... Schema - 'A diagrammatic representation; an outline or a model.' - Dictionary.com ... – PowerPoint PPT presentation

Number of Views:42
Avg rating:3.0/5.0
Slides: 14
Provided by: brun74
Category:

less

Transcript and Presenter's Notes

Title: Linking Analysis and Transformation Tools using Sourcebased Mappings


1
Linking Analysis and Transformation Tools using
Source-based Mappings
  • SCAM
  • 28-9-2006
  • Magiel Bruntink

2
Linking tools
  • Can we exploit the source code itself?
  • What are traditional means?
  • How do source-based mappings work?
  • How do they compare?

3
Context
  • Source-to-source code manipulations
  • Use of analysis results to guide transformations
  • Analysis tools
  • CodeSurfer, LClint, PREfix, Coverity,
  • Transformation tools
  • ASFSDF, Stratego, TXL,

4
Schema-based mappings
  • Schema - A diagrammatic representation an
    outline or a model. - Dictionary.com
  • Grammar, model, abstract representation
  • GXL, DMM, ANSI C grammar
  • Use target schema directly in mapping

5
Code example
Analysis
Transformation
1 for (i 0 i lt length i) 2 3 if
(arrayi gt max) 4 5 max
arrayi 6 7
6
Example schema-based mapping
Analysis
Transformation
1 for (i 0 i lt length i) 2 3 if
(arrayi gt max) 4 5 max
arrayi 6 7
Stat -gt Block -gt Stat1 -gt Block -gt Stat1
7
Cant that be done simpler?
Analysis
Transformation
1 for (i 0 i lt length i) 2 3 if
(arrayi gt max) 4 5 max
arrayi 6 7
Stat node at line 5
8
Source-based mappings
9
Which node exactly?
Analysis
Transformation
1 for (i 0 i lt length i) 2 3 if
(arrayi gt max) 4 5 max
arrayi 6 7
Stat node at line 5
10
Comparison
  • Schema-based
  • Need to know target schema top-down
  • Path expressions can be fragile
  • Source-based
  • Need to know source correspondence
  • Source positions very fragile, unless

11
SCATR
  • Framework for source-based mappings to ASFSDF
  • Analysis tool unrestricted
  • Based on Scaffolding (Sellink Verhoef)

12
SCATR architecture
13
Finally
  • Questions?
  • Email Magiel.Bruntink_at_cwi.nl
  • Webhttp//www.cwi.nl/bruntink
Write a Comment
User Comments (0)
About PowerShow.com