+ All Categories
Home > Documents > S o u r c e C o d e M e t r i c s T o o l for C / C++

S o u r c e C o d e M e t r i c s T o o l for C / C++

Date post: 22-Feb-2016
Category:
Upload: cliff
View: 27 times
Download: 0 times
Share this document with a friend
Description:
S o u r c e C o d e M e t r i c s T o o l for C / C++. Presented by :. Yatham Venkata Kiran Reddy Madhu Sudan Rao G.K Srivathsa M.P Varun Bahl. Visit us @ www.CodeEverywhere.Net. Project Goals. Quantitative Measurements of Software Metrics Analyze Complexity of Source Code - PowerPoint PPT Presentation
16
S o u r c e C S o u r c e C o d e o d e M e t r i c s M e t r i c s T o o l T o o l for C / C++ for C / C++ Yatham Venkata Kiran Reddy Yatham Venkata Kiran Reddy Madhu Sudan Rao G.K Madhu Sudan Rao G.K Srivathsa M.P Srivathsa M.P Varun Bahl Varun Bahl Presented by : Visit us @ www.CodeEverywhere.Net
Transcript
Page 1: S o u r c e   C o d e  M e t r i c s   T o o l  for C / C++

S o u r c e C o d S o u r c e C o d e e

M e t r i c s T o M e t r i c s T o o l o l

for C / C++for C / C++Yatham Venkata Kiran ReddyYatham Venkata Kiran Reddy

Madhu Sudan Rao G.KMadhu Sudan Rao G.KSrivathsa M.PSrivathsa M.P

Varun BahlVarun Bahl

Presented by :

Visit us @ www.CodeEverywhere.Net

Page 2: S o u r c e   C o d e  M e t r i c s   T o o l  for C / C++

04/22/23 Dept. of Computer Science, SRSIT RAD 'E' Division - LRDE

2

Project Goals

Quantitative Measurements of Software Metrics

Analyze Complexity of Source CodeDecrease Redundancy in Source CodeReduce the time and effort spent on the

testing phase

Page 3: S o u r c e   C o d e  M e t r i c s   T o o l  for C / C++

04/22/23 Dept. of Computer Science, SRSIT RAD 'E' Division - LRDE

3

The Static Analyzer

The Scanner Prepares Tokens Keeps track of Line numbers Strips out White Space Deletes Comments

Table Management Hash Table Collision Management Operations performed on

Symbol Table

Input & Output .C / .CPP / .H file as Input .SAR / .CSV file as Output

The System consists of three main components which constitutes the Static Analyzer:

Page 4: S o u r c e   C o d e  M e t r i c s   T o o l  for C / C++

04/22/23 Dept. of Computer Science, SRSIT RAD 'E' Division - LRDE

4

Description

Data Flow Diagram of the Overall System

Page 5: S o u r c e   C o d e  M e t r i c s   T o o l  for C / C++

04/22/23 Dept. of Computer Science, SRSIT RAD 'E' Division - LRDE

5

Description

Page 6: S o u r c e   C o d e  M e t r i c s   T o o l  for C / C++

04/22/23 Dept. of Computer Science, SRSIT RAD 'E' Division - LRDE

6

Description

Page 7: S o u r c e   C o d e  M e t r i c s   T o o l  for C / C++

04/22/23 Dept. of Computer Science, SRSIT RAD 'E' Division - LRDE

7

Description

Page 8: S o u r c e   C o d e  M e t r i c s   T o o l  for C / C++

04/22/23 Dept. of Computer Science, SRSIT RAD 'E' Division - LRDE

8

Technology

Design and Implementation of a Lexical Analyzer / ScannerCan easily modify the scanner to suit the

requirementsIEEE Conventions & Standards followed

One of the most recognized standards by the IT industry.

IEEE: Institute of Electrical and Electronics Engineers

Page 9: S o u r c e   C o d e  M e t r i c s   T o o l  for C / C++

04/22/23 Dept. of Computer Science, SRSIT RAD 'E' Division - LRDE

9

Screen Shots of the Generated Report

Lines of Code

- Pure Comment Lines

- Blank Lines- Code Lines- Code

Comment Lines

Page 10: S o u r c e   C o d e  M e t r i c s   T o o l  for C / C++

04/22/23 Dept. of Computer Science, SRSIT RAD 'E' Division - LRDE

10

Screen Shots of the Generated Report

Count of Variables Used

Variable Counts

111

54

11

24

1

0 2 4 6

cur_line(4)cur_token(2)cur_token(3)

ii(2)jj(2)

buffer(4)cur_token(4)

v(1)size(2)

temp(4)

Page 11: S o u r c e   C o d e  M e t r i c s   T o o l  for C / C++

04/22/23 Dept. of Computer Science, SRSIT RAD 'E' Division - LRDE

11

Screen Shots of the Generated Report

Function wise details

Page 12: S o u r c e   C o d e  M e t r i c s   T o o l  for C / C++

04/22/23 Dept. of Computer Science, SRSIT RAD 'E' Division - LRDE

12

Screen Shots of the Generated Report

Halsteads Software Sciences

- Program Volume

- Program Length

- Ease of Reading or Writing

- Size of Program Vocabulary

Halstead's Measure

246.379796

419

58

145

3028

0 50 100 150 200 250 300

TOTAL NUMBER OF OPERATORS

TOTAL NUMBER OF OPERANDS

NUMBER OF DISTINCT OPERATORS

NUMBER OF DISTINCT OPERANDS

LENGTH OF THE PROGRAM

VOLUME OF THE PROGRAM

SIZE OF PROGRAM VOCABULARY

EASE OF READING OR WRITING

Page 13: S o u r c e   C o d e  M e t r i c s   T o o l  for C / C++

04/22/23 Dept. of Computer Science, SRSIT RAD 'E' Division - LRDE

13

Schedule

Project Milestones

May 31st – June 7th June 8th – June 18th

Requirements Specification

System Design

Detailed Design

June 19th – July 5th

Coding,Testing & Modification

July 6th – July 30th

Page 14: S o u r c e   C o d e  M e t r i c s   T o o l  for C / C++

04/22/23 Dept. of Computer Science, SRSIT RAD 'E' Division - LRDE

14

Related Documents

Software Requirements Specification Document

System Design DocumentDetailed Design DocumentFinal Project ReportUser Manual

Page 15: S o u r c e   C o d e  M e t r i c s   T o o l  for C / C++

04/22/23 Dept. of Computer Science, SRSIT RAD 'E' Division - LRDE

15

Competitive Analysis

Competitors Cantata , Cantata++

Strengths Greater Emphasis given to Static Analysis Detailed Static Analysis Report

Weaknesses Does not include Testing and Test Case

Generators

FOR MORE INFO... http://www.iplbath.com

Page 16: S o u r c e   C o d e  M e t r i c s   T o o l  for C / C++

T h a n k Y o u !

for your time Yatham Venkata Kiran Reddy Madhu Sudan Rao G.K Srivathsa M.P Varun Bahl

Project Guides : Justin Sagayaraj M,Scientist ,’D’,LRDE Dand Rakesh,Scientist ‘B’,LRDE Shailesh Chandra,HOD Comp Sc,SRSIT

Visit us @ www.CodeEverywhere.Net


Recommended