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!