Lines Matching refs:f
32 float f = 7.1F; in checkNotEqualFloatDeclCompare1() local
34 return (f != g); // no warning in checkNotEqualFloatDeclCompare1()
38 float f = 7.1F; in checkNotEqualFloatDeclCompare12() local
39 return (f != f); // no warning in checkNotEqualFloatDeclCompare12()
43 float f = 7.1F; in checkNotEqualFloatDeclCompare3() local
44 return (f != 7.1F); // no warning in checkNotEqualFloatDeclCompare3()
48 float f = 7.1F; in checkNotEqualFloatDeclCompare4() local
49 return (7.1F != f); // no warning in checkNotEqualFloatDeclCompare4()
53 float f = 7.1F; in checkNotEqualFloatDeclCompare5() local
55 return (t != f); // no warning in checkNotEqualFloatDeclCompare5()
59 float f = 7.1F; in checkNotEqualFloatDeclCompare6() local
61 return (f != t); // no warning in checkNotEqualFloatDeclCompare6()
67 float f = 7.1F; in checkNotEqualCastFloatDeclCompare11() local
68 …return ((int)f != (int)f); // expected-warning {{comparison of identical expressions always evalua… in checkNotEqualCastFloatDeclCompare11()
71 float f = 7.1F; in checkNotEqualCastFloatDeclCompare12() local
72 return ((char)f != (int)f); // no warning in checkNotEqualCastFloatDeclCompare12()
76 float f= 3.14F; in checkNotEqualBinaryOpFloatCompare1() local
77 res = (f + 3.14F != f + 3.14F); // no warning in checkNotEqualBinaryOpFloatCompare1()
81 float f = 7.1F; in checkNotEqualBinaryOpFloatCompare2() local
83 return (f + 3.14F != g + 3.14F); // no warning in checkNotEqualBinaryOpFloatCompare2()
87 float f= 3.14F; in checkNotEqualBinaryOpFloatCompare3() local
88 res = ((int)f + 3.14F != (int)f + 3.14F); // no warning in checkNotEqualBinaryOpFloatCompare3()
93 float f= 3.14F; in checkNotEqualBinaryOpFloatCompare4() local
94 res = ((int)f + 3.14F != (char)f + 3.14F); // no warning in checkNotEqualBinaryOpFloatCompare4()
102 float f= 3.14F; in checkNotEqualNestedBinaryOpFloatCompare1() local
103 res = (((int)f + (3.14F - u)*t) != ((int)f + (3.14F - u)*t)); // no warning in checkNotEqualNestedBinaryOpFloatCompare1()
111 float f= 3.14F; in checkNotEqualNestedBinaryOpFloatCompare2() local
112 res = (((int)f + (u - 3.14F)*t) != ((int)f + (3.14F - u)*t)); // no warning in checkNotEqualNestedBinaryOpFloatCompare2()
120 float f= 3.14F; in checkNotEqualNestedBinaryOpFloatCompare3() local
121 res = (((int)f + (u - 3.14F)*t) != ((int)f + (3.14F - u)*(f + t != f + t))); // no warning in checkNotEqualNestedBinaryOpFloatCompare3()
141 int f = 7; in checkNotEqualIntDeclCompare1() local
143 return (f != g); // no warning in checkNotEqualIntDeclCompare1()
147 int f = 7; in checkNotEqualIntDeclCompare3() local
148 return (f != 7); // no warning in checkNotEqualIntDeclCompare3()
152 int f = 7; in checkNotEqualIntDeclCompare4() local
153 return (7 != f); // no warning in checkNotEqualIntDeclCompare4()
157 int f = 7; in checkNotEqualCastIntDeclCompare11() local
158 …return ((int)f != (int)f); // expected-warning {{comparison of identical expressions always evalua… in checkNotEqualCastIntDeclCompare11()
161 int f = 7; in checkNotEqualCastIntDeclCompare12() local
162 return ((char)f != (int)f); // no warning in checkNotEqualCastIntDeclCompare12()
168 int f= 4; in checkNotEqualBinaryOpIntCompare1() local
169 …res = (f + 4 != f + 4); // expected-warning {{comparison of identical expressions always evaluate… in checkNotEqualBinaryOpIntCompare1()
173 int f = 7; in checkNotEqualBinaryOpIntCompare2() local
175 return (f + 4 != g + 4); // no warning in checkNotEqualBinaryOpIntCompare2()
183 int f= 4; in checkNotEqualBinaryOpIntCompare3() local
184 …res = ((int)f + 4 != (int)f + 4); // expected-warning {{comparison of identical expressions alway… in checkNotEqualBinaryOpIntCompare3()
191 int f= 4; in checkNotEqualBinaryOpIntCompare4() local
192 res = ((int)f + 4 != (char)f + 4); // no warning in checkNotEqualBinaryOpIntCompare4()
207 int f= 3; in checkNotEqualNestedBinaryOpIntCompare1() local
208 …res = (((int)f + (3 - u)*t) != ((int)f + (3 - u)*t)); // expected-warning {{comparison of identic… in checkNotEqualNestedBinaryOpIntCompare1()
216 int f= 3; in checkNotEqualNestedBinaryOpIntCompare2() local
217 res = (((int)f + (u - 3)*t) != ((int)f + (3 - u)*t)); // no warning in checkNotEqualNestedBinaryOpIntCompare2()
225 int f= 3; in checkNotEqualNestedBinaryOpIntCompare3() local
226 …res = (((int)f + (u - 3)*t) != ((int)f + (3 - u)*(t + 1 != t + 1))); // expected-warning {{compar… in checkNotEqualNestedBinaryOpIntCompare3()
247 int* f = &k; in checkNotEqualIntPointerDeclCompare1() local
249 return (f != g); // no warning in checkNotEqualIntPointerDeclCompare1()
254 int* f = &k; in checkNotEqualCastIntPointerDeclCompare11() local
255 …return ((int*)f != (int*)f); // expected-warning {{comparison of identical expressions always eval… in checkNotEqualCastIntPointerDeclCompare11()
259 int* f = &k; in checkNotEqualCastIntPointerDeclCompare12() local
260 return ((int*)((char*)f) != (int*)f); // no warning in checkNotEqualCastIntPointerDeclCompare12()
265 int* f= &k; in checkNotEqualBinaryOpIntPointerCompare1() local
266 …res = (f + 4 != f + 4); // expected-warning {{comparison of identical expressions always evaluate… in checkNotEqualBinaryOpIntPointerCompare1()
271 int* f = &k; in checkNotEqualBinaryOpIntPointerCompare2() local
273 return (f + 4 != g + 4); // no warning in checkNotEqualBinaryOpIntPointerCompare2()
280 int* f= &k; in checkNotEqualBinaryOpIntPointerCompare3() local
281 …res = ((int*)f + 4 != (int*)f + 4); // expected-warning {{comparison of identical expressions alw… in checkNotEqualBinaryOpIntPointerCompare3()
287 int* f= &k; in checkNotEqualBinaryOpIntPointerCompare4() local
288 res = ((int*)f + 4 != (int*)((char*)f) + 4); // no warning in checkNotEqualBinaryOpIntPointerCompare4()
297 int* f= &k+3; in checkNotEqualNestedBinaryOpIntPointerCompare1() local
298 …res = ((f + (3)*t) != (f + (3)*t)); // expected-warning {{comparison of identical expressions alw… in checkNotEqualNestedBinaryOpIntPointerCompare1()
307 int* f= &k+3; in checkNotEqualNestedBinaryOpIntPointerCompare2() local
308 res = (((3)*t + f) != (f + (3)*t)); // no warning in checkNotEqualNestedBinaryOpIntPointerCompare2()
353 int* f = &k; in checkEqualIntPointerDeclCompare() local
355 return (f == g); // no warning in checkEqualIntPointerDeclCompare()
360 int* f = &k; in checkEqualIntPointerDeclCompare0() local
361 …return (f+1 == f+1); // expected-warning {{comparison of identical expressions always evaluates to… in checkEqualIntPointerDeclCompare0()
375 float f = 7.1F; in checkEqualFloatDeclCompare1() local
377 return (f == g); // no warning in checkEqualFloatDeclCompare1()
381 float f = 7.1F; in checkEqualFloatDeclCompare12() local
382 return (f == f); // no warning in checkEqualFloatDeclCompare12()
387 float f = 7.1F; in checkEqualFloatDeclCompare3() local
388 return (f == 7.1F); // no warning in checkEqualFloatDeclCompare3()
392 float f = 7.1F; in checkEqualFloatDeclCompare4() local
393 return (7.1F == f); // no warning in checkEqualFloatDeclCompare4()
397 float f = 7.1F; in checkEqualFloatDeclCompare5() local
399 return (t == f); // no warning in checkEqualFloatDeclCompare5()
403 float f = 7.1F; in checkEqualFloatDeclCompare6() local
405 return (f == t); // no warning in checkEqualFloatDeclCompare6()
412 float f = 7.1F; in checkEqualCastFloatDeclCompare11() local
413 …return ((int)f == (int)f); // expected-warning {{comparison of identical expressions always evalua… in checkEqualCastFloatDeclCompare11()
416 float f = 7.1F; in checkEqualCastFloatDeclCompare12() local
417 return ((char)f == (int)f); // no warning in checkEqualCastFloatDeclCompare12()
421 float f= 3.14F; in checkEqualBinaryOpFloatCompare1() local
422 res = (f + 3.14F == f + 3.14F); // no warning in checkEqualBinaryOpFloatCompare1()
426 float f = 7.1F; in checkEqualBinaryOpFloatCompare2() local
428 return (f + 3.14F == g + 3.14F); // no warning in checkEqualBinaryOpFloatCompare2()
432 float f= 3.14F; in checkEqualBinaryOpFloatCompare3() local
433 res = ((int)f + 3.14F == (int)f + 3.14F); // no warning in checkEqualBinaryOpFloatCompare3()
438 float f= 3.14F; in checkEqualBinaryOpFloatCompare4() local
439 res = ((int)f + 3.14F == (char)f + 3.14F); // no warning in checkEqualBinaryOpFloatCompare4()
447 float f= 3.14F; in checkEqualNestedBinaryOpFloatCompare1() local
448 res = (((int)f + (3.14F - u)*t) == ((int)f + (3.14F - u)*t)); // no warning in checkEqualNestedBinaryOpFloatCompare1()
456 float f= 3.14F; in checkEqualNestedBinaryOpFloatCompare2() local
457 res = (((int)f + (u - 3.14F)*t) == ((int)f + (3.14F - u)*t)); // no warning in checkEqualNestedBinaryOpFloatCompare2()
465 float f= 3.14F; in checkEqualNestedBinaryOpFloatCompare3() local
466 res = (((int)f + (u - 3.14F)*t) == ((int)f + (3.14F - u)*(f + t == f + t))); // no warning in checkEqualNestedBinaryOpFloatCompare3()
485 int f = 7; in checkEqualIntDeclCompare1() local
487 return (f == g); // no warning in checkEqualIntDeclCompare1()
491 int f = 7; in checkEqualCastIntDeclCompare11() local
492 …return ((int)f == (int)f); // expected-warning {{comparison of identical expressions always evalua… in checkEqualCastIntDeclCompare11()
495 int f = 7; in checkEqualCastIntDeclCompare12() local
496 return ((char)f == (int)f); // no warning in checkEqualCastIntDeclCompare12()
500 int f = 7; in checkEqualIntDeclCompare3() local
501 return (f == 7); // no warning in checkEqualIntDeclCompare3()
505 int f = 7; in checkEqualIntDeclCompare4() local
506 return (7 == f); // no warning in checkEqualIntDeclCompare4()
513 int f= 4; in checkEqualBinaryOpIntCompare1() local
514 …res = (f + 4 == f + 4); // expected-warning {{comparison of identical expressions always evaluate… in checkEqualBinaryOpIntCompare1()
518 int f = 7; in checkEqualBinaryOpIntCompare2() local
520 return (f + 4 == g + 4); // no warning in checkEqualBinaryOpIntCompare2()
528 int f= 4; in checkEqualBinaryOpIntCompare3() local
529 …res = ((int)f + 4 == (int)f + 4); // expected-warning {{comparison of identical expressions alway… in checkEqualBinaryOpIntCompare3()
537 int f= 4; in checkEqualBinaryOpIntCompare4() local
538 res = ((int)f + 4 == (char)f + 4); // no warning in checkEqualBinaryOpIntCompare4()
553 int f= 3; in checkEqualNestedBinaryOpIntCompare1() local
554 …res = (((int)f + (3 - u)*t) == ((int)f + (3 - u)*t)); // expected-warning {{comparison of identic… in checkEqualNestedBinaryOpIntCompare1()
562 int f= 3; in checkEqualNestedBinaryOpIntCompare2() local
563 res = (((int)f + (u - 3)*t) == ((int)f + (3 - u)*t)); // no warning in checkEqualNestedBinaryOpIntCompare2()
571 int f= 3; in checkEqualNestedBinaryOpIntCompare3() local
572 …res = (((int)f + (u - 3)*t) == ((int)f + (3 - u)*(t + 1 == t + 1))); // expected-warning {{compar… in checkEqualNestedBinaryOpIntCompare3()
626 float f = 7.1F; in checkLessThanFloatDeclCompare1() local
628 return (f < g); // no warning in checkLessThanFloatDeclCompare1()
632 float f = 7.1F; in checkLessThanFloatDeclCompare12() local
633 …return (f < f); // expected-warning {{comparison of identical expressions always evaluates to fals… in checkLessThanFloatDeclCompare12()
637 float f = 7.1F; in checkLessThanFloatDeclCompare3() local
638 return (f < 7.1F); // no warning in checkLessThanFloatDeclCompare3()
642 float f = 7.1F; in checkLessThanFloatDeclCompare4() local
643 return (7.1F < f); // no warning in checkLessThanFloatDeclCompare4()
647 float f = 7.1F; in checkLessThanFloatDeclCompare5() local
649 return (t < f); // no warning in checkLessThanFloatDeclCompare5()
653 float f = 7.1F; in checkLessThanFloatDeclCompare6() local
655 return (f < t); // no warning in checkLessThanFloatDeclCompare6()
660 float f = 7.1F; in checkLessThanCastFloatDeclCompare11() local
661 …return ((int)f < (int)f); // expected-warning {{comparison of identical expressions always evaluat… in checkLessThanCastFloatDeclCompare11()
664 float f = 7.1F; in checkLessThanCastFloatDeclCompare12() local
665 return ((char)f < (int)f); // no warning in checkLessThanCastFloatDeclCompare12()
669 float f= 3.14F; in checkLessThanBinaryOpFloatCompare1() local
670 res = (f + 3.14F < f + 3.14F); // no warning in checkLessThanBinaryOpFloatCompare1()
674 float f = 7.1F; in checkLessThanBinaryOpFloatCompare2() local
676 return (f + 3.14F < g + 3.14F); // no warning in checkLessThanBinaryOpFloatCompare2()
680 float f= 3.14F; in checkLessThanBinaryOpFloatCompare3() local
681 res = ((int)f + 3.14F < (int)f + 3.14F); // no warning in checkLessThanBinaryOpFloatCompare3()
686 float f= 3.14F; in checkLessThanBinaryOpFloatCompare4() local
687 res = ((int)f + 3.14F < (char)f + 3.14F); // no warning in checkLessThanBinaryOpFloatCompare4()
695 float f= 3.14F; in checkLessThanNestedBinaryOpFloatCompare1() local
696 res = (((int)f + (3.14F - u)*t) < ((int)f + (3.14F - u)*t)); // no warning in checkLessThanNestedBinaryOpFloatCompare1()
704 float f= 3.14F; in checkLessThanNestedBinaryOpFloatCompare2() local
705 res = (((int)f + (u - 3.14F)*t) < ((int)f + (3.14F - u)*t)); // no warning in checkLessThanNestedBinaryOpFloatCompare2()
713 float f= 3.14F; in checkLessThanNestedBinaryOpFloatCompare3() local
714 res = (((int)f + (u - 3.14F)*t) < ((int)f + (3.14F - u)*(f + t < f + t))); // no warning in checkLessThanNestedBinaryOpFloatCompare3()
732 int f = 7; in checkLessThanIntDeclCompare1() local
734 return (f < g); // no warning in checkLessThanIntDeclCompare1()
738 int f = 7; in checkLessThanIntDeclCompare3() local
739 return (f < 7); // no warning in checkLessThanIntDeclCompare3()
743 int f = 7; in checkLessThanIntDeclCompare4() local
744 return (7 < f); // no warning in checkLessThanIntDeclCompare4()
748 int f = 7; in checkLessThanIntDeclCompare5() local
750 return (t < f); // no warning in checkLessThanIntDeclCompare5()
754 int f = 7; in checkLessThanIntDeclCompare6() local
756 return (f < t); // no warning in checkLessThanIntDeclCompare6()
760 int f = 7; in checkLessThanCastIntDeclCompare11() local
761 …return ((int)f < (int)f); // expected-warning {{comparison of identical expressions always evaluat… in checkLessThanCastIntDeclCompare11()
764 int f = 7; in checkLessThanCastIntDeclCompare12() local
765 return ((char)f < (int)f); // no warning in checkLessThanCastIntDeclCompare12()
769 int f= 3; in checkLessThanBinaryOpIntCompare1() local
770 …res = (f + 3 < f + 3); // expected-warning {{comparison of identical expressions always evaluates… in checkLessThanBinaryOpIntCompare1()
774 int f = 7; in checkLessThanBinaryOpIntCompare2() local
776 return (f + 3 < g + 3); // no warning in checkLessThanBinaryOpIntCompare2()
780 int f= 3; in checkLessThanBinaryOpIntCompare3() local
781 …res = ((int)f + 3 < (int)f + 3); // expected-warning {{comparison of identical expressions always… in checkLessThanBinaryOpIntCompare3()
786 int f= 3; in checkLessThanBinaryOpIntCompare4() local
787 res = ((int)f + 3 < (char)f + 3); // no warning in checkLessThanBinaryOpIntCompare4()
795 int f= 3; in checkLessThanNestedBinaryOpIntCompare1() local
796 …res = (((int)f + (3 - u)*t) < ((int)f + (3 - u)*t)); // expected-warning {{comparison of identica… in checkLessThanNestedBinaryOpIntCompare1()
804 int f= 3; in checkLessThanNestedBinaryOpIntCompare2() local
805 res = (((int)f + (u - 3)*t) < ((int)f + (3 - u)*t)); // no warning in checkLessThanNestedBinaryOpIntCompare2()
813 int f= 3; in checkLessThanNestedBinaryOpIntCompare3() local
814 …res = (((int)f + (u - 3)*t) < ((int)f + (3 - u)*(t + u < t + u))); // expected-warning {{comparis… in checkLessThanNestedBinaryOpIntCompare3()
836 float f = 7.1F; in checkGreaterThanFloatDeclCompare1() local
839 return (f > g); // no warning in checkGreaterThanFloatDeclCompare1()
843 float f = 7.1F; in checkGreaterThanFloatDeclCompare12() local
844 …return (f > f); // expected-warning {{comparison of identical expressions always evaluates to fals… in checkGreaterThanFloatDeclCompare12()
849 float f = 7.1F; in checkGreaterThanFloatDeclCompare3() local
850 return (f > 7.1F); // no warning in checkGreaterThanFloatDeclCompare3()
854 float f = 7.1F; in checkGreaterThanFloatDeclCompare4() local
855 return (7.1F > f); // no warning in checkGreaterThanFloatDeclCompare4()
859 float f = 7.1F; in checkGreaterThanFloatDeclCompare5() local
861 return (t > f); // no warning in checkGreaterThanFloatDeclCompare5()
865 float f = 7.1F; in checkGreaterThanFloatDeclCompare6() local
867 return (f > t); // no warning in checkGreaterThanFloatDeclCompare6()
871 float f = 7.1F; in checkGreaterThanCastFloatDeclCompare11() local
872 …return ((int)f > (int)f); // expected-warning {{comparison of identical expressions always evaluat… in checkGreaterThanCastFloatDeclCompare11()
875 float f = 7.1F; in checkGreaterThanCastFloatDeclCompare12() local
876 return ((char)f > (int)f); // no warning in checkGreaterThanCastFloatDeclCompare12()
880 float f= 3.14F; in checkGreaterThanBinaryOpFloatCompare1() local
881 res = (f + 3.14F > f + 3.14F); // no warning in checkGreaterThanBinaryOpFloatCompare1()
885 float f = 7.1F; in checkGreaterThanBinaryOpFloatCompare2() local
887 return (f + 3.14F > g + 3.14F); // no warning in checkGreaterThanBinaryOpFloatCompare2()
891 float f= 3.14F; in checkGreaterThanBinaryOpFloatCompare3() local
892 res = ((int)f + 3.14F > (int)f + 3.14F); // no warning in checkGreaterThanBinaryOpFloatCompare3()
897 float f= 3.14F; in checkGreaterThanBinaryOpFloatCompare4() local
898 res = ((int)f + 3.14F > (char)f + 3.14F); // no warning in checkGreaterThanBinaryOpFloatCompare4()
906 float f= 3.14F; in checkGreaterThanNestedBinaryOpFloatCompare1() local
907 res = (((int)f + (3.14F - u)*t) > ((int)f + (3.14F - u)*t)); // no warning in checkGreaterThanNestedBinaryOpFloatCompare1()
915 float f= 3.14F; in checkGreaterThanNestedBinaryOpFloatCompare2() local
916 res = (((int)f + (u - 3.14F)*t) > ((int)f + (3.14F - u)*t)); // no warning in checkGreaterThanNestedBinaryOpFloatCompare2()
924 float f= 3.14F; in checkGreaterThanNestedBinaryOpFloatCompare3() local
925 res = (((int)f + (u - 3.14F)*t) > ((int)f + (3.14F - u)*(f + t > f + t))); // no warning in checkGreaterThanNestedBinaryOpFloatCompare3()
943 int f = 7; in checkGreaterThanIntDeclCompare1() local
946 return (f > g); // no warning in checkGreaterThanIntDeclCompare1()
950 int f = 7; in checkGreaterThanIntDeclCompare3() local
951 return (f > 7); // no warning in checkGreaterThanIntDeclCompare3()
955 int f = 7; in checkGreaterThanIntDeclCompare4() local
956 return (7 > f); // no warning in checkGreaterThanIntDeclCompare4()
960 int f = 7; in checkGreaterThanCastIntDeclCompare11() local
961 …return ((int)f > (int)f); // expected-warning {{comparison of identical expressions always evaluat… in checkGreaterThanCastIntDeclCompare11()
964 int f = 7; in checkGreaterThanCastIntDeclCompare12() local
965 return ((char)f > (int)f); // no warning in checkGreaterThanCastIntDeclCompare12()
969 int f= 3; in checkGreaterThanBinaryOpIntCompare1() local
970 …res = (f + 3 > f + 3); // expected-warning {{comparison of identical expressions always evaluates… in checkGreaterThanBinaryOpIntCompare1()
974 int f = 7; in checkGreaterThanBinaryOpIntCompare2() local
976 return (f + 3 > g + 3); // no warning in checkGreaterThanBinaryOpIntCompare2()
980 int f= 3; in checkGreaterThanBinaryOpIntCompare3() local
981 …res = ((int)f + 3 > (int)f + 3); // expected-warning {{comparison of identical expressions always… in checkGreaterThanBinaryOpIntCompare3()
986 int f= 3; in checkGreaterThanBinaryOpIntCompare4() local
987 res = ((int)f + 3 > (char)f + 3); // no warning in checkGreaterThanBinaryOpIntCompare4()
995 int f= 3; in checkGreaterThanNestedBinaryOpIntCompare1() local
996 …res = (((int)f + (3 - u)*t) > ((int)f + (3 - u)*t)); // expected-warning {{comparison of identica… in checkGreaterThanNestedBinaryOpIntCompare1()
1004 int f= 3; in checkGreaterThanNestedBinaryOpIntCompare2() local
1005 res = (((int)f + (u - 3)*t) > ((int)f + (3 - u)*t)); // no warning in checkGreaterThanNestedBinaryOpIntCompare2()
1013 int f= 3; in checkGreaterThanNestedBinaryOpIntCompare3() local
1014 …res = (((int)f + (u - 3)*t) > ((int)f + (3 - u)*(t + u > t + u))); // expected-warning {{comparis… in checkGreaterThanNestedBinaryOpIntCompare3()