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

the variable imask never has value of this simple program.

 Respuesta aceptada

ElectronicABC
ElectronicABC el 12 de Sept. de 2023
Editada: ElectronicABC el 12 de Sept. de 2023
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 ...

Más respuestas (1)

Shubham
Shubham el 8 de Sept. de 2023
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 comentarios

ElectronicABC
ElectronicABC el 11 de Sept. de 2023
Editada: ElectronicABC el 11 de Sept. de 2023
not variable acess,but left yelllow tool tips show range[0..4] contains value 3 during program exectution.
Hi Chen,
Could you please tell me which version of Polyspace are you using?
version 2021A
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

Iniciar sesión para comentar.

Productos

Versión

R2021a

Etiquetas

Preguntada:

el 5 de Sept. de 2023

Comentada:

el 12 de Sept. de 2023

Community Treasure Hunt

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

Start Hunting!

Translated by