File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed
cpp/ql/test/library-tests/controlflow/guards Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change 44
44
| 34 | j >= 10+0 when ... < ... is false |
45
45
| 42 | 10 < j+1 when ... < ... is false |
46
46
| 42 | 10 >= j+1 when ... < ... is true |
47
+ | 42 | call to getABool != 0 when call to getABool is true |
48
+ | 42 | call to getABool == 0 when call to getABool is false |
47
49
| 42 | j < 10 when ... < ... is true |
48
50
| 42 | j < 10+0 when ... < ... is true |
49
51
| 42 | j >= 10 when ... < ... is false |
149
151
| 111 | 0.0 == i+0 when ... != ... is false |
150
152
| 111 | i != 0.0+0 when ... != ... is true |
151
153
| 111 | i == 0.0+0 when ... != ... is false |
154
+ | 122 | b != 0 when b is true |
155
+ | 122 | b == 0 when b is false |
156
+ | 125 | ! ... != 0 when ! ... is true |
157
+ | 125 | ! ... == 0 when ! ... is false |
158
+ | 125 | call to safe != 0 when ! ... is false |
159
+ | 125 | call to safe != 0 when call to safe is true |
160
+ | 125 | call to safe == 0 when call to safe is false |
152
161
| 126 | 1 != 0 when 1 is true |
153
162
| 126 | 1 != 0 when ... && ... is true |
154
163
| 126 | 1 == 0 when 1 is false |
Original file line number Diff line number Diff line change @@ -257,10 +257,16 @@ unary
257
257
| test.cpp:31:7:31:13 | ... == ... | test.cpp:31:7:31:7 | x | != | -1 | 34 | 34 |
258
258
| test.cpp:31:7:31:13 | ... == ... | test.cpp:31:7:31:7 | x | == | -1 | 30 | 30 |
259
259
| test.cpp:31:7:31:13 | ... == ... | test.cpp:31:7:31:7 | x | == | -1 | 31 | 32 |
260
+ | test.cpp:42:13:42:20 | call to getABool | test.cpp:42:13:42:20 | call to getABool | != | 0 | 43 | 45 |
261
+ | test.cpp:42:13:42:20 | call to getABool | test.cpp:42:13:42:20 | call to getABool | == | 0 | 53 | 53 |
260
262
| test.cpp:61:10:61:10 | i | test.cpp:61:10:61:10 | i | == | 0 | 62 | 64 |
261
263
| test.cpp:61:10:61:10 | i | test.cpp:61:10:61:10 | i | == | 1 | 65 | 66 |
262
264
| test.cpp:74:10:74:10 | i | test.cpp:74:10:74:10 | i | < | 11 | 75 | 77 |
263
265
| test.cpp:74:10:74:10 | i | test.cpp:74:10:74:10 | i | < | 21 | 78 | 79 |
264
266
| test.cpp:74:10:74:10 | i | test.cpp:74:10:74:10 | i | >= | 0 | 75 | 77 |
265
267
| test.cpp:74:10:74:10 | i | test.cpp:74:10:74:10 | i | >= | 11 | 78 | 79 |
266
268
| test.cpp:93:6:93:6 | c | test.cpp:93:6:93:6 | c | != | 0 | 93 | 94 |
269
+ | test.cpp:122:9:122:9 | b | test.cpp:122:9:122:9 | b | != | 0 | 123 | 125 |
270
+ | test.cpp:122:9:122:9 | b | test.cpp:122:9:122:9 | b | != | 0 | 125 | 125 |
271
+ | test.cpp:125:13:125:20 | ! ... | test.cpp:125:13:125:20 | ! ... | != | 0 | 125 | 125 |
272
+ | test.cpp:125:14:125:17 | call to safe | test.cpp:125:14:125:17 | call to safe | == | 0 | 125 | 125 |
You can’t perform that action at this time.
0 commit comments