Polyspace (either bug finder or code prover) is capable of detecting overflow on iteration variable?
显示 更早的评论
I have a compiler reported bug stating that a loop may iterate more than expected. It is quite a corner case, but when dealing with ISO26262, corner cases need to be taken into consideration. Now I wonder if Polyspace could help to anticipate the issue. Would it detect and report about an overflow in the following code construct:
for (uint8_t i=100;i>1;i+=255) do_something();
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 IEC Certification Kit (for ISO 26262 and IEC 61508) 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!