Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Does Polyspace Prover's wrong analysis occur in a run-time loop execution ?

조회 수: 4 (최근 30일)
Thao H
Thao H 2019년 6월 6일
마감: MATLAB Answer Bot 2021년 8월 20일
I have an orange warning in my source code reported by Polyspace Code Prover R2018a. But it is too weird and shown as below:
Untitled1.png
u4Data[] and ptMb->u4DFReg[] are using the same index (and this index is legal and equal to [0 .. 15]) to access the data arrays.
Could you (Technical support team) tell me what is the problem in the source code above ? And tell me how to resolve the warning ?
Thanks!

답변 (1개)

John Boyd
John Boyd 2020년 1월 8일
The ulDataReadSize variable is probably an unproven/unkown value and equal to full range. Since Polyspace is uncertain as to what the termination index is, it produced an orange on the first subscript that was out of bounds, in this case 16.

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by