The result of an assignment operator should not be used
The result of an assignment operator should not be used.
The rule is violated if the following happens in the same line of code:
The assignment operator acts on a variable.
Another read or operation is performed on the result of the assignment.
For example, the line a[x]=a[x=y]; violates
this rule. The [] operator acts on the result of
the assignment x=y.
If you expect a rule violation but do not see it, refer to the documentation of Polyspace® Code Prover™ or Polyspace Code Prover Server™.
| Group: Side Effects |
| Category: Advisory |
| AGC Category: Advisory |