File tree Expand file tree Collapse file tree 5 files changed +28
-0
lines changed
cpp/ql/test/library-tests/controlflow/guards Expand file tree Collapse file tree 5 files changed +28
-0
lines changed Original file line number Diff line number Diff line change 32
32
| test.c:164:8:164:8 | s |
33
33
| test.c:170:8:170:9 | ! ... |
34
34
| test.c:170:9:170:9 | s |
35
+ | test.c:176:8:176:15 | ! ... |
36
+ | test.c:176:10:176:14 | ... < ... |
35
37
| test.cpp:18:8:18:10 | call to get |
36
38
| test.cpp:31:7:31:13 | ... == ... |
37
39
| test.cpp:42:13:42:20 | call to getABool |
Original file line number Diff line number Diff line change 381
381
| 170 | s != 0 when s is true |
382
382
| 170 | s == 0 when ! ... is true |
383
383
| 170 | s == 0 when s is false |
384
+ | 176 | ! ... != 0 when ! ... is true |
385
+ | 176 | ! ... != 0 when ... < ... is false |
386
+ | 176 | ! ... != 1 when ! ... is false |
387
+ | 176 | ! ... != 1 when ... < ... is true |
388
+ | 176 | ! ... == 0 when ! ... is false |
389
+ | 176 | ! ... == 0 when ... < ... is true |
390
+ | 176 | ! ... == 1 when ! ... is true |
391
+ | 176 | ! ... == 1 when ... < ... is false |
392
+ | 176 | ... < ... != 0 when ! ... is false |
393
+ | 176 | ... < ... != 0 when ... < ... is true |
394
+ | 176 | ... < ... == 0 when ! ... is true |
395
+ | 176 | ... < ... == 0 when ... < ... is false |
Original file line number Diff line number Diff line change 85
85
| test.c:164:8:164:8 | s | true | 164 | 166 |
86
86
| test.c:170:8:170:9 | ! ... | true | 170 | 172 |
87
87
| test.c:170:9:170:9 | s | false | 170 | 172 |
88
+ | test.c:176:8:176:15 | ! ... | true | 176 | 178 |
89
+ | test.c:176:10:176:14 | ... < ... | false | 176 | 178 |
88
90
| test.cpp:18:8:18:10 | call to get | true | 19 | 19 |
89
91
| test.cpp:31:7:31:13 | ... == ... | false | 30 | 30 |
90
92
| test.cpp:31:7:31:13 | ... == ... | false | 34 | 34 |
Original file line number Diff line number Diff line change @@ -461,6 +461,12 @@ unary
461
461
| test.c:170:9:170:9 | s | test.c:170:8:170:9 | ! ... | != | 0 | 170 | 172 |
462
462
| test.c:170:9:170:9 | s | test.c:170:8:170:9 | ! ... | == | 1 | 170 | 172 |
463
463
| test.c:170:9:170:9 | s | test.c:170:9:170:9 | s | == | 0 | 170 | 172 |
464
+ | test.c:176:8:176:15 | ! ... | test.c:176:8:176:15 | ! ... | != | 0 | 176 | 178 |
465
+ | test.c:176:8:176:15 | ! ... | test.c:176:8:176:15 | ! ... | == | 1 | 176 | 178 |
466
+ | test.c:176:8:176:15 | ! ... | test.c:176:10:176:14 | ... < ... | == | 0 | 176 | 178 |
467
+ | test.c:176:10:176:14 | ... < ... | test.c:176:8:176:15 | ! ... | != | 0 | 176 | 178 |
468
+ | test.c:176:10:176:14 | ... < ... | test.c:176:8:176:15 | ! ... | == | 1 | 176 | 178 |
469
+ | test.c:176:10:176:14 | ... < ... | test.c:176:10:176:14 | ... < ... | == | 0 | 176 | 178 |
464
470
| test.cpp:18:8:18:10 | call to get | test.cpp:18:8:18:10 | call to get | != | 0 | 19 | 19 |
465
471
| test.cpp:18:8:18:10 | call to get | test.cpp:18:8:18:10 | call to get | == | 1 | 19 | 19 |
466
472
| test.cpp:31:7:31:13 | ... == ... | test.cpp:31:7:31:7 | x | != | -1 | 30 | 30 |
Original file line number Diff line number Diff line change @@ -169,5 +169,11 @@ void test8(short s) {
169
169
void test9 (short s ) {
170
170
if (!s ) {
171
171
172
+ }
173
+ }
174
+
175
+ void test10 (int a , int b ) {
176
+ if (!(a < b )) {
177
+
172
178
}
173
179
}
You can’t perform that action at this time.
0 commit comments