Software:Polyspace

From HandWiki
Short description: Static program analysis tool
Polyspace
Developer(s)MathWorks[1]
Stable release
R2022b / September 15, 2022; 22 months ago (2022-09-15)
Operating systemCross-platform[2]
Typestatic code analysis
LicenseProprietary

Polyspace is a static code analysis tool for large-scale analysis by abstract interpretation to detect, or prove the absence of, certain run-time errors in source code for the C, C++, and Ada programming languages. The tool also checks source code for adherence to appropriate code standards.[3]

Common uses

Polyspace examines the source code to determine where potential run-time errors such as arithmetic overflow, buffer overrun, division by zero, and others could occur. Software developers and quality assurance managers use this information to identify which parts of the code are faulty or proven to be reliable. Other parts of the code are marked for unproven checks and deserve individual review.[4][5]

Code standards or guidelines such as MISRA C attempt to address code quality, portability, and reliability. The product checks C and C++ source code for conformance to a subset of rules in these coding standards.[6]

Capabilities

The product family consists of Polyspace Code Prover and Polyspace Bug Finder. The Code Prover module annotates source code with a color-coding scheme to indicate the status of each element in the code.[7] It uses formal methods-based static code analysis to verify program execution at the language level.[5] The tool checks each code instruction by taking into account all possible values of every variable at every point in the code, providing a formal diagnostic for each operation in the code under both normal and abnormal usage conditions.[8]

The Bug Finder module identifies software bugs by performing static program analysis on source code. It finds defects such as numerical computation, programming, memory, and other errors. It also produces software metrics such as Comment density of a source file, Cyclomatic complexity, Number of lines, parameters, call levels, etc. in a function, Identified run-time errors in the software.[9]

See also

References

  1. Pele, Anne-Francoise (2007-04-25). "The Mathworks acquires PolySpace Technologies". EETimes. http://www.eetimes.com/electronics-news/4187806/The-Mathworks-acquires-PolySpace-Technologies. Retrieved 2010-08-13. 
  2. The MathWorks - Polyspace - Requirements
  3. Deutsch, Alain (2003-11-27). "Static Verification of Dynamic Properties". Polyspace Technologies. Archived from the original on 2012-03-13. https://web.archive.org/web/20120313084616/http://nesl.ee.ucla.edu/courses/ee202a/2005f/papers/Static_Verification.pdf. Retrieved 2014-05-17. 
  4. Brat, Guillaume (2004). "Experimental Evaluation of Verification and Validation Tools on Martian Rover Software". Formal Methods in System Design 25 (2/3): 167–198. doi:10.1023/B:FORM.0000040027.28662.a4. 
  5. 5.0 5.1 Exponent (2012-09-24). "Exponent's Investigation of Toyota ETCS-i Vehicle Hardware and Software". Exponent. http://pressroom.toyota.com/article_download.cfm?article_id=3597. Retrieved 2010-09-07. 
  6. MathWorks: static code analysis.
  7. Jones, Paul; Jetley, Raoul; Abraham, Jay (2010-02-09). "A Formal Methods-based verification approach to medical device software analysis". Embedded Systems Design. http://www.embedded.com/design/prototyping-and-development/4008888/A-Formal-Methods-based-verification-approach-to-medical-device-software-analysis. Retrieved 2010-08-16. 
  8. Wissing, Klaus (2007-09-27). "Static Analysis of Dynamic Properties - Automatic Program Verification to Prove the Absence of Dynamic Runtime Errors". Workshop on Applied Program Analysis. http://subs.emis.de/LNI/Proceedings/Proceedings110/gi-proc-110-048.pdf. Retrieved 2010-08-13. 
  9. "Software Metrics-MATLAB". India: MathWorks. http://in.mathworks.com/discovery/software-metrics.html. Retrieved 2015-08-27. 

External links