Why is my variable assigned a range of values in Polyspace Code Prover?
Show older comments
I have the following code written in C language:
const volatile float V[3] = {1.F, 2.F, 3.F};
const volatile W[3] = {4.F, 5.F, 6.F};
void fun1(void){
float x;
x = fun2((float *) &(V[0]), (float *) &(W[0]));
}
float fun2(float p1[], float p2[]){
return p1[0]*p2[0];
}
When using Polyspace Code Prover, variable "x" is assigned a range of possible values. However, I would expect the value of "x" to be uniquely determined by the code execution.
Why is variable "x" assigned a range of values instead of a single numerical value?
Accepted Answer
More Answers (0)
Categories
Find more on Polyspace Bug Finder in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!