File tree Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 31
31
)
32
32
)
33
33
) and
34
- message = "Controlling expression in if statement has invariant value."
34
+ message = "Controlling expression in if statement has an invariant value."
35
35
or
36
36
exists ( Loop loop |
37
37
loop .getControllingExpr ( ) = expr and
47
47
not expr instanceof Literal
48
48
)
49
49
) and
50
- message = "Controlling expression in loop statement has invariant value."
50
+ message = "Controlling expression in loop statement has an invariant value."
51
51
or
52
52
exists ( SwitchStmt switch |
53
53
switch .getControllingExpr ( ) = expr and
56
56
conditionAlwaysTrue ( expr )
57
57
)
58
58
) and
59
- message = "Controlling expression in switch statement has invariant value."
59
+ message = "Controlling expression in switch statement has an invariant value."
60
60
or
61
61
exists ( ConditionalExpr conditional |
62
62
conditional .getCondition ( ) = expr and
65
65
conditionAlwaysTrue ( expr )
66
66
)
67
67
) and
68
- message = "Controlling expression in conditional statement has invariant value."
68
+ message = "Controlling expression in conditional statement has an invariant value."
69
69
) and
70
70
// Exclude cases where the controlling expressions is affected by a macro, because they can appear
71
71
// invariant in a particular invocation, but be variant between invocations.
Original file line number Diff line number Diff line change 1
- | test.c:4:7:4:11 | ... > ... | Controlling expression in if statement has invariant value. |
2
- | test.c:15:10:15:16 | ... > ... | Controlling expression in loop statement has invariant value. |
3
- | test.c:16:9:16:13 | ... > ... | Controlling expression in if statement has invariant value. |
4
- | test.c:20:20:20:24 | ... < ... | Controlling expression in loop statement has invariant value. |
5
- | test.c:27:10:27:14 | ... < ... | Controlling expression in loop statement has invariant value. |
6
- | test.c:37:3:37:6 | 1 | Controlling expression in conditional statement has invariant value. |
7
- | test.c:38:3:38:3 | 1 | Controlling expression in conditional statement has invariant value. |
1
+ | test.c:4:7:4:11 | ... > ... | Controlling expression in if statement has an invariant value. |
2
+ | test.c:15:10:15:16 | ... > ... | Controlling expression in loop statement has an invariant value. |
3
+ | test.c:16:9:16:13 | ... > ... | Controlling expression in if statement has an invariant value. |
4
+ | test.c:20:20:20:24 | ... < ... | Controlling expression in loop statement has an invariant value. |
5
+ | test.c:27:10:27:14 | ... < ... | Controlling expression in loop statement has an invariant value. |
6
+ | test.c:37:3:37:6 | 1 | Controlling expression in conditional statement has an invariant value. |
7
+ | test.c:38:3:38:3 | 1 | Controlling expression in conditional statement has an invariant value. |
You can’t perform that action at this time.
0 commit comments