Polyspace Explained

Polyspace
Developer:MathWorks[1]
Latest Release Version:R2022b
Operating System:Cross-platform[2]
Genre:static code analysis
License:Proprietary

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]

History

Polyspace was originally developed by the French company PolySpace Technologies, which was acquired by MathWorks in 2007.[4] The product was subsequently integrated into MATLAB.

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.[5] [6]

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.[7]

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.[8] It uses formal methods-based static code analysis to verify program execution at the language level.[6] 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.[9]

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.[10]

See also

Notes and References

  1. Web site: The Mathworks acquires PolySpace Technologies . Pele . Anne-Francoise . EETimes . 2007-04-25 . 2010-08-13 . https://web.archive.org/web/20120211091351/http://www.eetimes.com/electronics-news/4187806/The-Mathworks-acquires-PolySpace-Technologies . 2012-02-11 . dead .
  2. http://www.mathworks.com/support/sysreq/current_release/polyspace/index.html?s_cid=wiki_polyspace_1 The MathWorks - Polyspace - Requirements
  3. Web site: Static Verification of Dynamic Properties . Deutsch . Alain . Polyspace Technologies . 2003-11-27 . 2014-05-17 . dead . https://web.archive.org/web/20120313084616/http://nesl.ee.ucla.edu/courses/ee202a/2005f/papers/Static_Verification.pdf . 2012-03-13.
  4. Web site: Pelé . Anne-Françoise . 2007-04-25 . The Mathworks acquires PolySpace Technologies . 2024-07-12 . EE Times.
  5. Experimental Evaluation of Verification and Validation Tools on Martian Rover Software . Brat . Guillaume . Formal Methods in System Design . 25 . 2/3 . 167–198 . 2004 . 10.1023/B:FORM.0000040027.28662.a4 . 2060/20040010327 . free .
  6. Web site: Exponent's Investigation of Toyota ETCS-i Vehicle Hardware and Software . Exponent . Exponent . 2012-09-24 . 2010-09-07 . https://web.archive.org/web/20140727010643/http://pressroom.toyota.com/article_download.cfm?article_id=3597 . 2014-07-27 . dead .
  7. MathWorks: static code analysis.
  8. Web site: A Formal Methods-based verification approach to medical device software analysis . Jones. Paul. Jetley . Raoul . Abraham . Jay . Embedded Systems Design . 2010-02-09 . 2010-08-16.
  9. Web site: Static Analysis of Dynamic Properties - Automatic Program Verification to Prove the Absence of Dynamic Runtime Errors . Wissing . Klaus . Workshop on Applied Program Analysis . 2007-09-27 . 2010-08-13.
  10. Web site: Software Metrics-MATLAB . India . MathWorks . 2015-08-27.