SCAM08 Evaluating Key Statements AnalysisZheng Li - PowerPoint PPT Presentation

1 / 18
About This Presentation
Title:

SCAM08 Evaluating Key Statements AnalysisZheng Li

Description:

SCAM'08 -- Evaluating Key Statements Analysis Zheng Li. Evaluating Key Statements Analysis ... Many analyses produce far too much e.g. slicing, chopping ... – PowerPoint PPT presentation

Number of Views:23
Avg rating:3.0/5.0
Slides: 19
Provided by: zhe85
Category:

less

Transcript and Presenter's Notes

Title: SCAM08 Evaluating Key Statements AnalysisZheng Li


1
Evaluating Key Statements Analysis
  • David Binkley - Loyola College, USA
  • Nicolas Gold, Mark Harman, Zheng Li, Kiarash
    Mahdavi
  • CREST, Kings College London, UK

2
Overview
  • KSA
  • Two metrics
  • Impact
  • Cohesion
  • Research Questions
  • Empirical study
  • Results

3
Key Statement Analysis (KSA)
  • Identify key statements
  • The statements that capture most impact with
    highest cohesion

4
Why KSA
  • Many analyses produce far too much e.g. slicing,
    chopping

5
Framework
6
Principal Variables (PV)
  • Bieman and Otts Principal Variables
  • PVG a global variable assigned in F
  • PVO a variable used in an output statement in F
  • PVG U PVO

7
  • void cylinder(int r, h)
  • D2r
  • perimeterPID
  • undersurfacePIrr
  • sidesurfaceperimeterh
  • area2undersurfacesidesurface
  • volumeundersurfaceh
  • printf(\nThe Area is d\n", )
  • printf(\nThe Volume is d\n", )

area
volume
8
Metrics for KSA
  • Impact outward influence of the key statements
  • Cohesion inward connectedness of the key
    statements

9
Cohesion
10
Dependence Cluster
11
The worst case for KSA
  • If all statements in a module are in a dependence
    cluster

12
Research Questions
  • Size
  • Impact
  • Cohesion
  • Large dependence cluster

13
Analysis Subjects
14
Tools
  • CodeSurfer
  • SPSS

15
Impact
16
Cohesion
17
Results
  • Size
  • 25 of the function size
  • Impact
  • 70 of impact of the function.
  • Cohesion
  • More than 80 of cohesion
  • Large Dependence Cluster
  • a clear and largely negative impact

18
less is more
Write a Comment
User Comments (0)
About PowerShow.com