Polyspace code prover results are half analysed

조회 수: 2 (최근 30일)
Abhilash Hegde
Abhilash Hegde 2018년 9월 21일
댓글: Abhilash Hegde 2018년 10월 5일
Hi ,
My polyspace code prover result is not analysed well enough, since most of the functions go to grey code, and further more i found no Red/Green passes either.
My other projects seem to well analysed, but this one even with the same configuration isn't.
Can i get some pointers regarding this .

채택된 답변

Anirban
Anirban 2018년 10월 4일
Do you mean code that is colored grey indicating unreachable code or code that is simply not analyzed (no colors)?
In either case, if most of your code is not analyzed, it typically means you have an issue quite high up in the function call hierarchy in your program. For instance, you can have an infinite loop in the main function and most function calls occur after the infinite loop. In this case, all those function bodies will not analyzed. There can be many other reasons why code is not analyzed by Code Prover. See the documentation about reasons for unchecked code .
For more help with your specific case, you might want to contact MathWorks Technical Support.
  댓글 수: 1
Abhilash Hegde
Abhilash Hegde 2018년 10월 5일
Hey,
Thanks for your reply,
Upon tracing the function call hierarchy in the main function, i found out that the main function has calls whose body is empty(code yet to be written). Hence, i went with the approach of Polyspace Main generation method, which can cover all the function calls provided by the module.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by