How to include another source file to Polyspace Code Prover analysis WITHOUT verifying this extra file?
3 ビュー (過去 30 日間)
古いコメントを表示
How does the analysis in "Polyspace Code Prover" perform its analysis of a source file, regarding to its defined includes?
I work in an embedded project where we have one source file for each embedded function inside the system. My situation is that I would like to use one specific "header"'s real implementation to increase the quality of the source file currently being verified? DO NOTE that I would NOT like to verify that extra source file, it comes from a third part.
The intention is to use this implementation to offer the source file "under test" real (not stubbed) function implementations so values returned to the source in the analysis comes from the actual support function, not some random stub value.
I am running this automatically through a script using "polyspace-code-prover-nodesktop".
1 件のコメント
Lorenz Mende
2016 年 9 月 19 日
I come from a similar situation, also working with files from a third party corp. Are you able to dynamically generate the sources file?
If yes, you may just filter the sources file on runtime before the analysis. In our project the analysis is automated via Jenkins and sources.txt is generated with a python file just before starting polyspace.
回答 (1 件)
Jatin
2024 年 9 月 18 日
From what I understand, you want to run Polyspace Code Prover on a source file while using the real implementation of a header file, so that it ensures that the values returned during analysis come from the actual support functions.
To achieve this, you could write the implementation of the header file in a separate file and use the "Exclude paths" feature introduced in R2024a. This feature allows you to exclude specific files and folders from static analysis or testing.
You can learn more about the "Exclude paths" feature in Polyspace Code Prover by referring the documentation below:
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Generate Report についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!