Lines Matching refs:a
5 int a,b; in f() local
8 …if ((a > 2) > 1) {} // expected-warning {{comparison of constant 1 with boolean expression is alwa… in f()
10 if (a > b) {} // no warning in f()
11 if (a < b) {} // no warning in f()
12 if (a >= b) {} // no warning in f()
13 if (a <= b) {} // no warning in f()
14 if (a == b) {} // no warning in f()
15 if (a != b) {} // no warning in f()
17 if (a > 0) {} // no warning in f()
18 if (a > 1) {} // no warning in f()
19 if (a > 2) {} // no warning in f()
21 if (a >= 0) {} // no warning in f()
22 if (a >= 1) {} // no warning in f()
23 if (a >= 2) {} // no warning in f()
24 if (a >= -1) {} // no warning in f()
26 if (a <= 0) {} // no warning in f()
27 if (a <= 1) {} // no warning in f()
28 if (a <= 2) {} // no warning in f()
29 if (a <= -1) {} // no warning in f()
32 if (!a > 0) {} // no warning in f()
33 …if (!a > 1) {} // expected-warning {{comparison of constant 1 with boolean expression is alway… in f()
34 …if (!a > 2) {} // expected-warning {{comparison of constant 2 with boolean expression is alway… in f()
35 if (!a > y) {} // no warning in f()
36 if (!a > b) {} // no warning in f()
37 …if (!a > -1) {} // expected-warning {{comparison of constant -1 with boolean expression is alwa… in f()
39 …if (!a < 0) {} // expected-warning {{comparison of constant 0 with boolean expression is alway… in f()
40 if (!a < 1) {} // no warning in f()
41 …if (!a < 2) {} // expected-warning {{comparison of constant 2 with boolean expression is alway… in f()
42 if (!a < y) {} // no warning in f()
43 if (!a < b) {} // no warning in f()
44 …if (!a < -1) {} // expected-warning {{comparison of constant -1 with boolean expression is alwa… in f()
46 …if (!a >= 0) {} // expected-warning {{comparison of constant 0 with boolean expression is alway… in f()
47 if (!a >= 1) {} // no warning in f()
48 …if (!a >= 2) {} // expected-warning {{comparison of constant 2 with boolean expression is alway… in f()
49 if (!a >= y) {} // no warning in f()
50 if (!a >= b) {} // no warning in f()
51 …if (!a >= -1) {} // expected-warning {{comparison of constant -1 with boolean expression is alwa… in f()
53 if (!a <= 0) {} // no warning in f()
54 …if (!a <= 1) {} // expected-warning {{comparison of constant 1 with boolean expression is alway… in f()
55 …if (!a <= 2) {} // expected-warning {{comparison of constant 2 with boolean expression is alway… in f()
56 if (!a <= y) {} // no warning in f()
57 if (!a <= b) {} // no warning in f()
58 …if (!a <= -1) {} // expected-warning {{comparison of constant -1 with boolean expression is alwa… in f()
60 if ((a||b) > 0) {} // no warning in f()
61 …if ((a||b) > 1) {} // expected-warning {{comparison of constant 1 with boolean expression is alway… in f()
62 …if ((a||b) > 4) {} // expected-warning {{comparison of constant 4 with boolean expression is alway… in f()
63 …if ((a||b) > -1) {}// expected-warning {{comparison of constant -1 with boolean expression is alwa… in f()
65 if ((a&&b) > 0) {} // no warning in f()
66 …if ((a&&b) > 1) {} // expected-warning {{comparison of constant 1 with boolean expression is alway… in f()
67 …if ((a&&b) > 4) {} // expected-warning {{comparison of constant 4 with boolean expression is alway… in f()
69 if ((a<y) > 0) {} // no warning in f()
70 …if ((a<y) > 1) {} // expected-warning {{comparison of constant 1 with boolean expression is alway… in f()
71 …if ((a<y) > 4) {} // expected-warning {{comparison of constant 4 with boolean expression is alway… in f()
72 if ((a<y) > z) {} // no warning in f()
73 …if ((a<y) > -1) {} // expected-warning {{comparison of constant -1 with boolean expression is alwa… in f()
75 if ((a<y) == 0) {} // no warning in f()
76 if ((a<y) == 1) {} // no warning in f()
77 …if ((a<y) == 2) {} // expected-warning {{comparison of constant 2 with boolean expression is alway… in f()
78 if ((a<y) == z) {} // no warning in f()
79 …if ((a<y) == -1) {}// expected-warning {{comparison of constant -1 with boolean expression is alwa… in f()
81 if ((a<y) != 0) {} // no warning in f()
82 if ((a<y) != 1) {} // no warning in f()
83 …if ((a<y) != 2) {} // expected-warning {{comparison of constant 2 with boolean expression is alway… in f()
84 if ((a<y) != z) {} // no warning in f()
85 …if ((a<y) != -1) {}// expected-warning {{comparison of constant -1 with boolean expression is alwa… in f()
87 if ((a<y) == z) {} // no warning in f()
88 if (a>y<z) {} // no warning in f()
89 if ((a<y) > z) {} // no warning in f()
90 if((a<y)>(z<y)) {} // no warning in f()
91 if((a<y)==(z<y)){} // no warning in f()
92 if((a<y)!=(z<y)){} // no warning in f()
94 if((a<y)!=((z==x)<(y==z))){} //no warning in f()
97 …if (0 > !a) {} // expected-warning {{comparison of constant 0 with boolean expression is alway… in f()
98 if (1 > !a) {} // no warning in f()
99 …if (2 > !a) {} // expected-warning {{comparison of constant 2 with boolean expression is alway… in f()
100 if (y > !a) {} // no warning in f()
101 …if (-1 > !a) {} // expected-warning {{comparison of constant -1 with boolean expression is alwa… in f()
103 if (0 < !a) {} // no warning in f()
104 …if (1 < !a) {} // expected-warning {{comparison of constant 1 with boolean expression is alway… in f()
105 …if (2 < !a) {} // expected-warning {{comparison of constant 2 with boolean expression is alway… in f()
106 if (y < !a) {} // no warning in f()
107 …if (-1 < !a) {} // expected-warning {{comparison of constant -1 with boolean expression is alwa… in f()
109 if (0 >= !a) {} // no warning in f()
110 …if (1 >= !a) {} // expected-warning {{comparison of constant 1 with boolean expression is alway… in f()
111 …if (2 >= !a) {} // expected-warning {{comparison of constant 2 with boolean expression is alway… in f()
112 if (y >= !a) {} // no warning in f()
113 …if (-1 >= !a) {} // expected-warning {{comparison of constant -1 with boolean expression is alwa… in f()
115 …if (0 <= !a) {} // expected-warning {{comparison of constant 0 with boolean expression is alway… in f()
116 if (1 <= !a) {} // no warning in f()
117 …if (2 <= !a) {} // expected-warning {{comparison of constant 2 with boolean expression is alway… in f()
118 if (y <= !a) {} // no warning in f()
119 …if (-1 <= !a) {} // expected-warning {{comparison of constant -1 with boolean expression is alwa… in f()
121 …if (0 > (a||b)) {} // expected-warning {{comparison of constant 0 with boolean expression is alway… in f()
122 if (1 > (a||b)) {} // no warning in f()
123 …if (4 > (a||b)) {} // expected-warning {{comparison of constant 4 with boolean expression is alway… in f()
125 …if (0 > (a&&b)) {} // expected-warning {{comparison of constant 0 with boolean expression is alway… in f()
126 if (1 > (a&&b)) {} // no warning in f()
127 …if (4 > (a&&b)) {} // expected-warning {{comparison of constant 4 with boolean expression is alway… in f()
129 …if (0 > (a<y)) {} // expected-warning {{comparison of constant 0 with boolean expression is alway… in f()
130 if (1 > (a<y)) {} // no warning in f()
131 …if (4 > (a<y)) {} // expected-warning {{comparison of constant 4 with boolean expression is alway… in f()
132 if (z > (a<y)) {} // no warning in f()
133 …if (-1 > (a<y)) {} // expected-warning {{comparison of constant -1 with boolean expression is alwa… in f()
135 if (0 == (a<y)) {} // no warning in f()
136 if (1 == (a<y)) {} // no warning in f()
137 …if (2 == (a<y)) {} // expected-warning {{comparison of constant 2 with boolean expression is alway… in f()
138 if (z == (a<y)) {} // no warning in f()
139 …if (-1 == (a<y)){} // expected-warning {{comparison of constant -1 with boolean expression is alwa… in f()
141 if (0 !=(a<y)) {} // no warning in f()
142 if (1 !=(a<y)) {} // no warning in f()
143 …if (2 !=(a<y)) {} // expected-warning {{comparison of constant 2 with boolean expression is alway… in f()
144 if (z !=(a<y)) {} // no warning in f()
145 …if (-1 !=(a<y)) {} // expected-warning {{comparison of constant -1 with boolean expression is alwa… in f()
147 if (z ==(a<y)) {} // no warning in f()
148 if (z<a>y) {} // no warning in f()
149 if (z > (a<y)) {} // no warning in f()
150 if((z<y)>(a<y)) {} // no warning in f()
151 if((z<y)==(a<y)){} // no warning in f()
152 if((z<y)!=(a<y)){} // no warning in f()
154 if(((z==x)<(y==z))!=(a<y)){} // no warning in f()
156 if(((z==x)<(-1==z))!=(a<y)){} // no warning in f()
157 if(((z==x)<(z==-1))!=(a<y)){} // no warning in f()
158 …if(((z==x)<-1)!=(a<y)){} // expected-warning {{comparison of constant -1 with boolean expression i… in f()
159 …if(((z==x)< 2)!=(a<y)){} // expected-warning {{comparison of constant 2 with boolean expression is… in f()
160 if(((z==x)<(z>2))!=(a<y)){} // no warning in f()