How can I reduce the number of orange warnings in my Ada verification when using Polyspace Client for Ada?
조회 수: 1 (최근 30일)
이전 댓글 표시
When I ran the PolySpace verification for my code with precision 2, PolySpace found 800 orange warnings in my application. I then ran the verification for the same code with precision 3, hoping to reduce the number of orange warnings, but I found exactly the same number of orange warnings.
채택된 답변
MathWorks Support Team
2009년 7월 30일
The number of orange warnings depends strongly on the code. Here are a few coding suggestions to reduce the number of orange warnings:
- Initialize variables at declaration time
- Use constrained types (subtypes and not standard types)
- Minimize use of "use at" clauses
- Minimize use of address
- Minimize use of unchecked_conversion
- Minimize use of big and complex types (such as record of record and array of record)
- Minimize use of volatile variables
- Use operator "<" or ">" in conditions instead of "/="
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Verification Mode에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!