1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
|
function_decl func1:
statement_list : ptr1,
if_stmt : ptr1,
eq_expr : ptr1,
parm_decl ptr1: ptr1,
pointer_type : ptr1,
integer_type : ptr1,
type_decl int: ptr1,
integer_cst 32: ptr1,
integer_cst -2147483648: ptr1,
integer_cst 2147483647: ptr1,
integer_cst 64: ptr1,
integer_cst 0: ptr1,
return_expr : ptr1,
cleanup_point_expr : ptr1,
expr_stmt :
convert_expr :
modify_expr :
indirect_ref :
parm_decl ptr1:
pointer_type :
integer_type :
type_decl int:
integer_cst 32:
integer_cst -2147483648:
integer_cst 2147483647:
integer_cst 64:
integer_cst 100:
function_decl func2:
statement_list : ptr2,
if_stmt : ptr2,
eq_expr : ptr2,
parm_decl ptr2: ptr2,
pointer_type : ptr2,
integer_type : ptr2,
type_decl int: ptr2,
integer_cst 32: ptr2,
integer_cst -2147483648: ptr2,
integer_cst 2147483647: ptr2,
integer_cst 64: ptr2,
integer_cst 0: ptr2,
cleanup_point_expr : ptr2,
expr_stmt : ptr2,
convert_expr : ptr2,
modify_expr : ptr2,
component_ref : ptr2,
indirect_ref : ptr2,
parm_decl this: ptr2,
pointer_type : ptr2,
record_type : ptr2,
type_decl Object1: ptr2,
field_decl k: ptr2,
integer_cst 32: ptr2,
integer_type : ptr2,
type_decl int: ptr2,
integer_cst 32: ptr2,
integer_cst -2147483648: ptr2,
integer_cst 2147483647: ptr2,
type_decl Object1: ptr2,
integer_cst 64: ptr2,
field_decl k: ptr2,
integer_cst 32: ptr2,
integer_type : ptr2,
type_decl int: ptr2,
integer_cst 32: ptr2,
integer_cst -2147483648: ptr2,
integer_cst 2147483647: ptr2,
integer_cst 0: ptr2,
cleanup_point_expr : ptr2,
expr_stmt : ptr2,
convert_expr : ptr2,
modify_expr : ptr2,
test08.cpp: In member function 'void Object1::func2(int*)':
test08.cpp:20:20: warning: Using parameter 'ptr2' without checking for null pointer
*ptr2 = 200;
^
indirect_ref : ptr2,
parm_decl ptr2: ptr2,
pointer_type : ptr2,
integer_type : ptr2,
type_decl int: ptr2,
integer_cst 32: ptr2,
integer_cst -2147483648: ptr2,
integer_cst 2147483647: ptr2,
integer_cst 64: ptr2,
integer_cst 200: ptr2,
function_decl func3:
statement_list : ptr3,
if_stmt : ptr3,
ne_expr : ptr3,
parm_decl ptr3: ptr3,
pointer_type : ptr3,
integer_type : ptr3,
type_decl int: ptr3,
integer_cst 32: ptr3,
integer_cst -2147483648: ptr3,
integer_cst 2147483647: ptr3,
integer_cst 64: ptr3,
integer_cst 0: ptr3,
return_expr :
cleanup_point_expr : ptr3,
expr_stmt : ptr3,
convert_expr : ptr3,
modify_expr : ptr3,
test08.cpp: In member function 'void Object1::func3(int*)':
test08.cpp:28:20: warning: Using parameter 'ptr3' without checking for null pointer
*ptr3 = 300;
^
indirect_ref : ptr3,
parm_decl ptr3: ptr3,
pointer_type : ptr3,
integer_type : ptr3,
type_decl int: ptr3,
integer_cst 32: ptr3,
integer_cst -2147483648: ptr3,
integer_cst 2147483647: ptr3,
integer_cst 64: ptr3,
integer_cst 300: ptr3,
function_decl func4:
statement_list : ptr4,
if_stmt : ptr4,
ne_expr : ptr4,
parm_decl ptr4: ptr4,
pointer_type : ptr4,
integer_type : ptr4,
type_decl int: ptr4,
integer_cst 32: ptr4,
integer_cst -2147483648: ptr4,
integer_cst 2147483647: ptr4,
integer_cst 64: ptr4,
integer_cst 0: ptr4,
cleanup_point_expr :
expr_stmt :
convert_expr :
modify_expr :
component_ref :
indirect_ref :
parm_decl this:
pointer_type :
record_type :
type_decl Object1:
field_decl k:
integer_cst 32:
integer_type :
type_decl int:
integer_cst 32:
integer_cst -2147483648:
integer_cst 2147483647:
type_decl Object1:
integer_cst 64:
field_decl k:
integer_cst 32:
integer_type :
type_decl int:
integer_cst 32:
integer_cst -2147483648:
integer_cst 2147483647:
integer_cst 0:
return_expr : ptr4,
cleanup_point_expr : ptr4,
expr_stmt :
convert_expr :
modify_expr :
indirect_ref :
parm_decl ptr4:
pointer_type :
integer_type :
type_decl int:
integer_cst 32:
integer_cst -2147483648:
integer_cst 2147483647:
integer_cst 64:
integer_cst 400:
function_decl func5:
statement_list : ptr5,
if_stmt : ptr5,
eq_expr : ptr5,
parm_decl ptr5: ptr5,
pointer_type : ptr5,
integer_type : ptr5,
type_decl int: ptr5,
integer_cst 32: ptr5,
integer_cst -2147483648: ptr5,
integer_cst 2147483647: ptr5,
integer_cst 64: ptr5,
integer_cst 0: ptr5,
return_expr : ptr5,
cleanup_point_expr :
expr_stmt :
convert_expr :
modify_expr :
indirect_ref :
parm_decl ptr5:
pointer_type :
integer_type :
type_decl int:
integer_cst 32:
integer_cst -2147483648:
integer_cst 2147483647:
integer_cst 64:
integer_cst 501:
cleanup_point_expr : ptr5,
expr_stmt :
convert_expr :
modify_expr :
indirect_ref :
parm_decl ptr5:
pointer_type :
integer_type :
type_decl int:
integer_cst 32:
integer_cst -2147483648:
integer_cst 2147483647:
integer_cst 64:
integer_cst 500:
function_decl func6:
statement_list : ptr6,
if_stmt : ptr6,
ne_expr : ptr6,
parm_decl ptr6: ptr6,
pointer_type : ptr6,
integer_type : ptr6,
type_decl int: ptr6,
integer_cst 32: ptr6,
integer_cst -2147483648: ptr6,
integer_cst 2147483647: ptr6,
integer_cst 64: ptr6,
integer_cst 0: ptr6,
if_stmt :
eq_expr :
test08.cpp: In member function 'void Object1::func6(int*)':
test08.cpp:55:18: warning: Useless variable check 'ptr6'. It already was checked before
if (!ptr6)
^
parm_decl ptr6:
pointer_type :
integer_type :
type_decl int:
integer_cst 32:
integer_cst -2147483648:
integer_cst 2147483647:
integer_cst 64:
integer_cst 0:
return_expr :
cleanup_point_expr : ptr6,
expr_stmt : ptr6,
convert_expr : ptr6,
modify_expr : ptr6,
test08.cpp:59:20: warning: Using parameter 'ptr6' without checking for null pointer
*ptr6 = 600;
^
indirect_ref : ptr6,
parm_decl ptr6: ptr6,
pointer_type : ptr6,
integer_type : ptr6,
type_decl int: ptr6,
integer_cst 32: ptr6,
integer_cst -2147483648: ptr6,
integer_cst 2147483647: ptr6,
integer_cst 64: ptr6,
integer_cst 600: ptr6,
function_decl func7:
statement_list : ptr7,
if_stmt : ptr7,
eq_expr : ptr7,
parm_decl ptr7: ptr7,
pointer_type : ptr7,
integer_type : ptr7,
type_decl int: ptr7,
integer_cst 32: ptr7,
integer_cst -2147483648: ptr7,
integer_cst 2147483647: ptr7,
integer_cst 64: ptr7,
integer_cst 0: ptr7,
return_expr : ptr7,
statement_list :
if_stmt :
eq_expr :
test08.cpp: In member function 'void Object1::func7(int*)':
test08.cpp:70:18: warning: Useless variable check 'ptr7'. It already was checked before
if (!ptr7)
^
parm_decl ptr7:
pointer_type :
integer_type :
type_decl int:
integer_cst 32:
integer_cst -2147483648:
integer_cst 2147483647:
integer_cst 64:
integer_cst 0:
return_expr :
cleanup_point_expr :
expr_stmt :
convert_expr :
modify_expr :
indirect_ref :
parm_decl ptr7:
pointer_type :
integer_type :
type_decl int:
integer_cst 32:
integer_cst -2147483648:
integer_cst 2147483647:
integer_cst 64:
integer_cst 701:
cleanup_point_expr : ptr7,
expr_stmt :
convert_expr :
modify_expr :
indirect_ref :
parm_decl ptr7:
pointer_type :
integer_type :
type_decl int:
integer_cst 32:
integer_cst -2147483648:
integer_cst 2147483647:
integer_cst 64:
integer_cst 700:
|