Why does Polyspace Code Prover show a function returning a value with full range which seems to ignore DRS variable constraints in R2018b?
Afficher commentaires plus anciens
I am using Polyspace Code Prover with some C code and am seeing a function analyzed to return the full range of my variable type (float) even though I believe it should be constrained with ranges I setup in my DRS (Data Range Specification) file for the function parameters. Why is this happening?
This is my example C code function signature:
FUNC(float32) foo(const boolean boolVarOne, const volatile float32 *floatVarOne, const volatile float32 *floatVarTwo)
When these parameters are constrained in the DRS file, I expect my function to only be able to output between [-10.0, 10.0]. However, I see the full range of a float instead being called when I look at my function implemented with these constrained arguments.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Bug Finder Analysis in Polyspace Platform User Interface 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!