Managing Orange Checks in Polyspace Code Prover
Polyspace® checks every operation in your code for certain run-time errors. Therefore, you can have several orange checks in your verification results. To avoid spending unreasonable time on an orange check review, you must develop an efficient review process.
Depending on your stage of software development and quality goals, you can choose to:
Review all red checks and critical orange checks. See Critical Orange Checks in Polyspace Code Prover.
Review all red checks and all orange checks.
Software Development Stage
Development Stage | Situation | Review Process |
---|---|---|
Initial stage or unit development stage | In initial stages of development, you can have partially developed code or want to verify each source file independently. In that case, it is possible that:
Because of insufficient information in the code, Polyspace makes assumptions that result in many orange checks. For instance, if you use the default configuration, Polyspace assumes full range for inputs of functions that are not called in the code. | In the initial stages of development, review all red checks. For orange checks, depending on your requirements, do one of the following:
|
Later stage or integration stage | In later stages of development, you have provided all your source files. However, it is possible that your code does not contain all information required for verification. For example, you have variables whose values are known only at run time. | Depending on the time you want to spend, do one of the following:
|
Final stage |
| Depending on the time you want to spend, do one of the following:
For each orange check:
As part of your final release process, you can have one of these criteria:
To justify a check, assign the Status of
|
Quality Goals
For critical applications, you must review all red and orange checks.
If an orange check indicates a run-time error, fix the cause of the error.
If an orange check indicates a Polyspace approximation, enter a comment in your results or source code.
As part of your final release process, review and justify
all red and orange checks. To justify a check, assign the
Status of No action
planned
or Justified
to the check.
For noncritical applications, you can choose whether or not to review the noncritical orange checks.
Related Examples
- Limit Display of Orange Checks in Polyspace Desktop User Interface
- Limit Display of Orange Checks in Polyspace Platform User Interface