Local Variable is calculated differently in the two runs
Afficher commentaires plus anciens
Hi Matlab Support teams,
I'm using Polyspace R2019a, and i got a problem about local variable, which is calculated differently in the two runs
At version 1: At the line 1520, range value of local variable "u1t_InBitId" = [0...7]
Please take a look following pic 1:

At version 2: Source code doesn't change in function, but range value of local variable "u1t_InBitId" = [0..199]
Please take a look following pic 2:

We think the reason of this issue is wrong calculation of Code Prover
=> We added 3 lines of code as bellow:
At line 1522: #pragma Inspection_Point u1t_InIdCnv
At line 1523: #pragma Inspection_Point u1t_InCalcWork
At line 1525: #pragma Inspection_Point u1t_InBitId
This is the result after running Code Prover
Range value of local variable "u1t_InBitId" = [0..255]
Please take a look following pic 3:

Why does "u1t_InBitId" change range value?
Please help me answer the question above.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Target and Compiler dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!