Orange OBAI check in Polyspace Code Prover R2015a
5 ビュー (過去 30 日間)
古いコメントを表示
The code snippet below is verified with CodeProver R2015a. The tool detects an orange OBAI at line 11033 (iter [-2^31...2^31+1]). The variable iter is type unsigned int.
typedef uint8_least Dcm_TimerIdType;
typedef unsigned int uint8_least; /* At least 8 bit */
Nevertheless at line 11033 the tool says array index value: [ -2^31...2^31+1]???
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/167631/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/167632/image.png)
0 件のコメント
回答 (1 件)
Alexandre De Barros
2017 年 12 月 12 日
Hi,
There is a similar question here:
You can also refer to the C standard, paragraph 6.5.2.1 "Array subscripting" (item 2) mentioning the type "integer".
Best regards,
Alex
2 件のコメント
Alexandre De Barros
2017 年 12 月 19 日
Hello,
I have discussed with the development and this cast is indeed not "realistic". I have then created a request to discard this cast.
Regards,
Alex
参考
カテゴリ
Help Center および File Exchange で Other Checks についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!