some bug on Polyspace ,the variable imask never has value of 3。

조회 수: 2 (최근 30일)
ElectronicABC
ElectronicABC 2023년 9월 5일
댓글: Shubham 2023년 9월 12일
the variable imask never has value of this simple program.

채택된 답변

ElectronicABC
ElectronicABC 2023년 9월 12일
편집: ElectronicABC 2023년 9월 12일
this is a bug in this verion polyspace ,I run the same on my friends computer,get the right answer [0 ..2] or 4 or 8 ...

추가 답변 (1개)

Shubham
Shubham 2023년 9월 8일
Hi Chen,
I understand you could not figure out when the value of the variable "imask" reaches "3" as shown in the variable access panel.
The value of 3 in the "Reads" and "Writes" columns in the variable access denotes the frequency of reading or writing operations performed on the variable. It does not indicate the specific value of the variable "imask" during program execution.
For more info, read here:
  댓글 수: 4
Shubham
Shubham 2023년 9월 12일
Hi Chen, Polyspace does not execute source code but does approximation. It looks like it is an over approximation in Polyspace R2021. Polyspace provided an over approximation of the possible values of imask. This issue has been fixed in the latest release. Thanks

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

태그

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by