PSCP: What is this report metric?

3 views (last 30 days)
david
david on 9 Jul 2024
Commented: Chandrika on 18 Jul 2024
This is the last metric shown in Chapter 2 of generated PSCP reports. It seems to be 100% unless there is a red check.In this case, there was 1 red check out of about 100 files processed. When the red check was eliminated, the value changed to 100%. I looked through the user guide and reference docs but did not find an answer.

Answers (1)

Chandrika
Chandrika on 16 Jul 2024
Hello David,
From the screenshot you shared, I could understand that the metric "Percentage of code checked for run-time errors" in your Polyspace Code Prover report seems to be 100% upon eliminating a red check.
Please know that this observation is actually expected since once a red check is hit, Polyspace cannot analyze the remaining code in the same scope as the check, thus never checking 100% of the code. In this case, you thus need to check where the red check is happening and fix it for a 100% check.
You may also find this information on the "Code Following Red Check" section in the following MathWorks documentation:
Hope that asnwers your query!
Regards,
Chandrika
  2 Comments
david
david on 16 Jul 2024
Thanks Chandrika. The one piece that doesn't make sense is that the metric seems to be a global one, since it is not in the main table that preceeds it. In my case, there are ~100 files being analyzed, and 1 red check that apparently set the metric to 56%.If it was a global metric, I would expect the value to be around 99%. In this situation, a value of 56% implies it is for the single file, but if so, it should be in the preceeding table.
Chandrika
Chandrika on 18 Jul 2024
Hello David,
I understand that you do not expect the percentage of your checked code to be 56% for a single red check. It could be the case that the file with the red check contains significant portion of code due to which the overall percentage of your checked code is showing to be only 56%. I would thus suggest you check the file where this red check is occuring in this case.
Regards,
Chandrika

Sign in to comment.

Products


Release

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!