Virtual Functions are not reachable while performing Module run in Polyspace 2019b
조회 수: 1 (최근 30일)
이전 댓글 표시
We know that While Performing polyspace run as
verifiy Module or Library run .
Functions which are unreachable are stubbed by Polyspace itself and those functions will be reachable .
But im facing issue that few functions are stubbed by Polyspace but still it remains unreachable .And All those functions are virtual function.
Kindly,Support me in this .
댓글 수: 0
답변 (1개)
Anirban
2021년 2월 22일
편집: Anirban
2021년 2월 22일
It is not clear what you mean by 'still it remains unreachable'.
Do you mean that the body of the function is not analyzed at all? That is expected behavior if a function is stubbed. I am not sure I understood the question well, so I am explaining how stubbing works and maybe you will have your answer here.
If a function is stubbed by Polyspace, it means that somehow Polyspace did not find the function definition in the files given to the analysis. If the function is a standard function, say, a standard library function, then Polyspace will correctly emulate its effect, and when you call the function, you will see a precise result as if Polyspace had the function definition. If the function is a user-defined one, then Polyspace has no way of knowing what the function actually does. Then, Polyspace has to make the best assumptions possible from the function signature.
In all these cases, if the function definition actually exists and Polyspace just did not happen to find the definition, the function will not be reachable. In other words, the function body will look black (no greens/oranges/greys), indicating that it was not verified. The situation where a function definition actually exists and Polyspace still cannot find it is rare. For instance, it might happen if you call a function through several layers of function pointers and Polyspace cannot resolve a call through a function pointer to an actual function.
However, in your case, this is what seems to be happening (or is it?). You probably have the function definitions, but Polyspace seems to not find them and uses stubs instead (if a stub is used, that itself means that the function definition was not found and it is not reachable). If this is indeed the case, we have to understand why.
You say that you are using the option Verify module or library (-main-generator) but does your code have a main function? In that case, it might simply mean that somehow Polyspace cannot find a path starting from the main to the unverified function bodies.
Or, there might be something else happening. Please contact support for a more in-depth investigation: https://www.mathworks.com/support/contact_us.html
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Verification Mode에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!