Why is my variable assigned a range of values in Polyspace Code Prover?
이전 댓글 표시
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?
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Polyspace Bug Finder에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!