160 likes | 283 Vues
This project presents a comprehensive Source Code Metrics Tool for C/C++ aimed at quantitative measurement and analysis of source code complexity, redundancy reduction, and optimizing the testing phase. Designed by the Department of Computer Science at SRSIT, the tool includes a static analyzer and lexical scanner to handle token preparation, line tracking, and code measurements. By following IEEE standards, it generates insightful reports on lines of code, variables, and function details to enhance software quality and streamline development processes.
E N D
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 • Decrease Redundancy in Source Code • Reduce the time and effort spent on the testing phase Dept. of Computer Science, SRSIT RAD 'E' Division - LRDE
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: Dept. of Computer Science, SRSIT RAD 'E' Division - LRDE
Description Data Flow Diagram of the Overall System Dept. of Computer Science, SRSIT RAD 'E' Division - LRDE
Description Dept. of Computer Science, SRSIT RAD 'E' Division - LRDE
Description Dept. of Computer Science, SRSIT RAD 'E' Division - LRDE
Description Dept. of Computer Science, SRSIT RAD 'E' Division - LRDE
Technology • Design and Implementation of a Lexical Analyzer / Scanner • Can easily modify the scanner to suit the requirements • IEEE Conventions & Standards followed • One of the most recognized standards by the IT industry. IEEE: Institute of Electrical and Electronics Engineers Dept. of Computer Science, SRSIT RAD 'E' Division - LRDE
Screen Shots of the Generated Report • Lines of Code • Pure Comment Lines • Blank Lines • Code Lines • Code Comment Lines Dept. of Computer Science, SRSIT RAD 'E' Division - LRDE
Screen Shots of the Generated Report • Count of Variables Used Dept. of Computer Science, SRSIT RAD 'E' Division - LRDE
Screen Shots of the Generated Report • Function wise details Dept. of Computer Science, SRSIT RAD 'E' Division - LRDE
Screen Shots of the Generated Report • Halsteads Software Sciences • Program Volume • Program Length • Ease of Reading or Writing • Size of Program Vocabulary Dept. of Computer Science, SRSIT RAD 'E' Division - LRDE
Schedule • Project Milestones Requirements Specification System Design Detailed Design Coding,Testing & Modification May 31st – June 7th June 8th – June 18th June 19th – July 5th July 6th – July 30th Dept. of Computer Science, SRSIT RAD 'E' Division - LRDE
Related Documents • Software Requirements Specification Document • System Design Document • Detailed Design Document • Final Project Report • User Manual Dept. of Computer Science, SRSIT RAD 'E' Division - LRDE
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 http://www.iplbath.com FOR MORE INFO... Dept. of Computer Science, SRSIT RAD 'E' Division - LRDE
T h a n k Y o u ! for your time Madhu Sudan Rao G.K Srivathsa M.P Varun Bahl Yatham Venkata Kiran Reddy Justin Sagayaraj M,Scientist ,’D’,LRDE Dand Rakesh,Scientist ‘B’,LRDE Shailesh Chandra,HOD Comp Sc,SRSIT Project Guides : Visit us @ www.CodeEverywhere.Net