You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 8bb5bdb
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: cpp/ql/test/query-tests/Likely Bugs/Arithmetic/PointlessComparison/PointlessComparison.expected
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,7 @@
1
1
| ConstVirtual.cpp:24:7:24:11 | ... > ... | Comparison is always false because i <= -1. |
2
+
| ConvertedConstants.c:5:25:5:60 | ... >= ... | Comparison is always true because size >= 1024 and the right operand evaluates to -1 after conversion. |
3
+
| ConvertedConstants.c:9:26:9:60 | ... > ... | Comparison is always false because 1024 <= size and the left operand evaluates to -1 after conversion. |
4
+
| ConvertedConstants.c:13:26:13:35 | ... >= ... | Comparison is always true because size >= 1024. |
2
5
| PointlessComparison.c:7:9:7:14 | ... < ... | Comparison is always true because i <= 15. |
3
6
| PointlessComparison.c:8:9:8:15 | ... <= ... | Comparison is always true because i <= 15. |
4
7
| PointlessComparison.c:9:9:9:14 | ... > ... | Comparison is always false because i <= 15. |
0 commit comments