Why does Polyspace Code Prover show a function returning a value with full range which seems to ignore DRS variable constraints in R2018b?
Ältere Kommentare anzeigen
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.
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Bug Finder Analysis in Polyspace Platform User Interface finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!