...
Incorrect use of relational and equality operators can lead to incorrect control flow.
Rule | Severity | Likelihood | Remediation Cost | Priority | Level |
---|
EXP13-C | Low | Unlikely | Medium | P2 | L3 |
Automated Detection
Tool | Version | Checker | Description |
---|
Astrée | | chained-comparison | Fully checked |
ECLAIR | | CC2.EXP13
| Fully implemented |
GCC | |
R2016a | Possibly unintended evaluation of expression because of operator precedence rules |
Operator precedence rules cause unexpected evaluation order in arithmetic expression | PRQA QA-CPRQA QACvPRQA QACv3392 3401 4111 4112 4113 | RuleChecker_V |
---|
| RuleChecker_V |
---|
|
| chained-comparison | Fully checked |
Fully implementedRelated Guidelines
Bibliography
...
...