...
Code Block | ||
---|---|---|
| ||
j = i++; func(j, i); |
Automated Detection
Splint Version 3.1.1 can detect violations of this rule.
Compass/ROSE can detect simple violations of this rule. It needs to examine each expression and make sure that no variable is modified twice in the expression. Also no variable is modified once, and read elsewhere, with the single exception that a variable may appear on both the left and right of an assignment operator.
...