Polyspace R2021a 〈Instant • Choice〉
The Polyspace R2021a release from MathWorks introduced significant advancements in handling complex C/C++ projects, particularly for safety-critical and automotive industries. This version focused on speed, mixed-language support, and expanded compliance for international safety standards. Key Features & Major Updates
Free Trials: Prospective users can access free trials to evaluate Polyspace R2021a's capabilities firsthand.
AUTOSAR Enhancements: Analysis of code using the AUTOSAR RTE API is faster and more precise. New "smart stubs" for AUTOSAR libraries allow users to check for standard compliance without losing precision or needing complex manual setups. polyspace r2021a
Step 3: Run Code Prover (Weekly Milestone)
Once per milestone, the verification team runs Code Prover. Analysis takes 4–8 hours for 500k LOC. The output is a colored source browser:
Custom Filters: Users can define and share custom filter groups, allowing organizations to focus on the specific findings most relevant to their internal safety or security standards. License : Network Named User or Floating (supports
For ASIL D, no additional testing is required for runtime errors that Code Prover proved absent—a massive reduction in integration test effort.
2.4 Multi-Core Code Prover
Code Prover’s formal analysis is computationally expensive. R2021a introduced a parallelization engine that automatically partitions analysis jobs across multiple cores. Benchmarks show a 40% reduction in analysis time for aerospace flight control logic tested on 8-core machines. polyspace r2021a
Reduced Development Costs: By catching bugs early, developers can avoid the significant costs associated with fixing errors later in the development process or in the field.
Getting Started in R2021a
- License: Network Named User or Floating (supports concurrent usage on servers).
- Installation: Use MATLAB installer → select "Polyspace Bug Finder" + "Polyspace Code Prover".
- First analysis:
% From MATLAB command window polyspaceBugFinder('sources','src/*.c','target-compiler','clang')