File tree Expand file tree Collapse file tree 5 files changed +24
-0
lines changed
cpp/ql/test/library-tests/controlflow/guards Expand file tree Collapse file tree 5 files changed +24
-0
lines changed Original file line number Diff line number Diff line change 29
29
| test.c:152:8:152:8 | p |
30
30
| test.c:158:8:158:9 | ! ... |
31
31
| test.c:158:9:158:9 | p |
32
+ | test.c:164:8:164:8 | s |
33
+ | test.c:170:8:170:9 | ! ... |
34
+ | test.c:170:9:170:9 | s |
32
35
| test.cpp:18:8:18:10 | call to get |
33
36
| test.cpp:31:7:31:13 | ... == ... |
34
37
| test.cpp:42:13:42:20 | call to getABool |
Original file line number Diff line number Diff line change 165
165
| 152 | p == 0 when p is false |
166
166
| 158 | ! ... != 0 when ! ... is true |
167
167
| 158 | ! ... == 0 when ! ... is false |
168
+ | 164 | s != 0 when s is true |
169
+ | 164 | s == 0 when s is false |
170
+ | 170 | ! ... != 0 when ! ... is true |
171
+ | 170 | ! ... == 0 when ! ... is false |
Original file line number Diff line number Diff line change 82
82
| test.c:152:8:152:8 | p | true | 152 | 154 |
83
83
| test.c:158:8:158:9 | ! ... | true | 158 | 160 |
84
84
| test.c:158:9:158:9 | p | false | 158 | 160 |
85
+ | test.c:164:8:164:8 | s | true | 164 | 166 |
86
+ | test.c:170:8:170:9 | ! ... | true | 170 | 172 |
87
+ | test.c:170:9:170:9 | s | false | 170 | 172 |
85
88
| test.cpp:18:8:18:10 | call to get | true | 19 | 19 |
86
89
| test.cpp:31:7:31:13 | ... == ... | false | 30 | 30 |
87
90
| test.cpp:31:7:31:13 | ... == ... | false | 34 | 34 |
Original file line number Diff line number Diff line change @@ -247,6 +247,8 @@ unary
247
247
| test.c:146:7:146:8 | ! ... | test.c:146:7:146:8 | ! ... | != | 0 | 146 | 147 |
248
248
| test.c:152:8:152:8 | p | test.c:152:8:152:8 | p | != | 0 | 152 | 154 |
249
249
| test.c:158:8:158:9 | ! ... | test.c:158:8:158:9 | ! ... | != | 0 | 158 | 160 |
250
+ | test.c:164:8:164:8 | s | test.c:164:8:164:8 | s | != | 0 | 164 | 166 |
251
+ | test.c:170:8:170:9 | ! ... | test.c:170:8:170:9 | ! ... | != | 0 | 170 | 172 |
250
252
| test.cpp:18:8:18:10 | call to get | test.cpp:18:8:18:10 | call to get | != | 0 | 19 | 19 |
251
253
| test.cpp:31:7:31:13 | ... == ... | test.cpp:31:7:31:7 | x | != | -1 | 30 | 30 |
252
254
| test.cpp:31:7:31:13 | ... == ... | test.cpp:31:7:31:7 | x | != | -1 | 34 | 34 |
Original file line number Diff line number Diff line change @@ -157,5 +157,17 @@ void test6(char* p) {
157
157
void test7 (char * p ) {
158
158
if (!p ) {
159
159
160
+ }
161
+ }
162
+
163
+ void test8 (short s ) {
164
+ if (s ) {
165
+
166
+ }
167
+ }
168
+
169
+ void test9 (short s ) {
170
+ if (!s ) {
171
+
160
172
}
161
173
}
You can’t perform that action at this time.
0 commit comments