1 /*
2 * Copyright (c) 2024-2025 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16 // Autogenerated file by gen_null_arg_tests.rb script -- DO NOT EDIT!
17
18 #include "libabckit/include/c/abckit.h"
19 #include "libabckit/include/c/metadata_core.h"
20 #include "libabckit/include/c/extensions/arkts/metadata_arkts.h"
21 #include "libabckit/include/c/extensions/js/metadata_js.h"
22 #include "libabckit/include/c/ir_core.h"
23 #include "libabckit/include/c/isa/isa_dynamic.h"
24 #include "libabckit/include/c/isa/isa_static.h"
25
26 #include "helpers/helpers.h"
27 #include "helpers/helpers_nullptr.h"
28
29 #include <gtest/gtest.h>
30
31 namespace libabckit::test {
32
33 static auto g_graphApiImp = AbckitGetGraphApiImpl(ABCKIT_VERSION_RELEASE_1_0_0);
34
35 class LibAbcKitNullptrTestsGraphApiImpl0 : public ::testing::Test {};
36
37 // Test: test-kind=api, api=GraphApiImpl::bbAddInstBack,
38 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsGraphApiImpl0,bbAddInstBack)39 TEST_F(LibAbcKitNullptrTestsGraphApiImpl0, bbAddInstBack)
40 {
41 helpers_nullptr::TestNullptr(g_graphApiImp->bbAddInstBack);
42 }
43
44 // Test: test-kind=api, api=GraphApiImpl::bbAddInstFront,
45 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsGraphApiImpl0,bbAddInstFront)46 TEST_F(LibAbcKitNullptrTestsGraphApiImpl0, bbAddInstFront)
47 {
48 helpers_nullptr::TestNullptr(g_graphApiImp->bbAddInstFront);
49 }
50
51 // Test: test-kind=api, api=GraphApiImpl::bbAppendSuccBlock,
52 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsGraphApiImpl0,bbAppendSuccBlock)53 TEST_F(LibAbcKitNullptrTestsGraphApiImpl0, bbAppendSuccBlock)
54 {
55 helpers_nullptr::TestNullptr(g_graphApiImp->bbAppendSuccBlock);
56 }
57
58 // Test: test-kind=api, api=GraphApiImpl::bbCheckDominance,
59 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsGraphApiImpl0,bbCheckDominance)60 TEST_F(LibAbcKitNullptrTestsGraphApiImpl0, bbCheckDominance)
61 {
62 helpers_nullptr::TestNullptr(g_graphApiImp->bbCheckDominance);
63 }
64
65 // Test: test-kind=api, api=GraphApiImpl::bbCreateCatchPhi,
66 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsGraphApiImpl0,bbCreateCatchPhi)67 TEST_F(LibAbcKitNullptrTestsGraphApiImpl0, bbCreateCatchPhi)
68 {
69 helpers_nullptr::TestNullptr(g_graphApiImp->bbCreateCatchPhi);
70 }
71
72 // Test: test-kind=api, api=GraphApiImpl::bbCreateEmpty,
73 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsGraphApiImpl0,bbCreateEmpty)74 TEST_F(LibAbcKitNullptrTestsGraphApiImpl0, bbCreateEmpty)
75 {
76 helpers_nullptr::TestNullptr(g_graphApiImp->bbCreateEmpty);
77 }
78
79 // Test: test-kind=api, api=GraphApiImpl::bbCreatePhi,
80 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsGraphApiImpl0,bbCreatePhi)81 TEST_F(LibAbcKitNullptrTestsGraphApiImpl0, bbCreatePhi)
82 {
83 helpers_nullptr::TestNullptr(g_graphApiImp->bbCreatePhi);
84 }
85
86 // Test: test-kind=api, api=GraphApiImpl::bbDump,
87 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsGraphApiImpl0,bbDump)88 TEST_F(LibAbcKitNullptrTestsGraphApiImpl0, bbDump)
89 {
90 helpers_nullptr::TestNullptr(g_graphApiImp->bbDump);
91 }
92
93 // Test: test-kind=api, api=GraphApiImpl::bbDisconnectSuccBlock,
94 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsGraphApiImpl0,bbDisconnectSuccBlock)95 TEST_F(LibAbcKitNullptrTestsGraphApiImpl0, bbDisconnectSuccBlock)
96 {
97 helpers_nullptr::TestNullptr(g_graphApiImp->bbDisconnectSuccBlock);
98 }
99
100 // Test: test-kind=api, api=GraphApiImpl::bbGetFalseBranch,
101 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsGraphApiImpl0,bbGetFalseBranch)102 TEST_F(LibAbcKitNullptrTestsGraphApiImpl0, bbGetFalseBranch)
103 {
104 helpers_nullptr::TestNullptr(g_graphApiImp->bbGetFalseBranch);
105 }
106
107 // Test: test-kind=api, api=GraphApiImpl::bbGetFirstInst,
108 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsGraphApiImpl0,bbGetFirstInst)109 TEST_F(LibAbcKitNullptrTestsGraphApiImpl0, bbGetFirstInst)
110 {
111 helpers_nullptr::TestNullptr(g_graphApiImp->bbGetFirstInst);
112 }
113
114 // Test: test-kind=api, api=GraphApiImpl::bbGetGraph,
115 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsGraphApiImpl0,bbGetGraph)116 TEST_F(LibAbcKitNullptrTestsGraphApiImpl0, bbGetGraph)
117 {
118 helpers_nullptr::TestNullptr(g_graphApiImp->bbGetGraph);
119 }
120
121 // Test: test-kind=api, api=GraphApiImpl::bbGetId,
122 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsGraphApiImpl0,bbGetId)123 TEST_F(LibAbcKitNullptrTestsGraphApiImpl0, bbGetId)
124 {
125 helpers_nullptr::TestNullptr(g_graphApiImp->bbGetId);
126 }
127
128 // Test: test-kind=api, api=GraphApiImpl::bbGetImmediateDominator,
129 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsGraphApiImpl0,bbGetImmediateDominator)130 TEST_F(LibAbcKitNullptrTestsGraphApiImpl0, bbGetImmediateDominator)
131 {
132 helpers_nullptr::TestNullptr(g_graphApiImp->bbGetImmediateDominator);
133 }
134
135 // Test: test-kind=api, api=GraphApiImpl::bbGetLastInst,
136 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsGraphApiImpl0,bbGetLastInst)137 TEST_F(LibAbcKitNullptrTestsGraphApiImpl0, bbGetLastInst)
138 {
139 helpers_nullptr::TestNullptr(g_graphApiImp->bbGetLastInst);
140 }
141
142 // Test: test-kind=api, api=GraphApiImpl::bbGetNumberOfInstructions,
143 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsGraphApiImpl0,bbGetNumberOfInstructions)144 TEST_F(LibAbcKitNullptrTestsGraphApiImpl0, bbGetNumberOfInstructions)
145 {
146 helpers_nullptr::TestNullptr(g_graphApiImp->bbGetNumberOfInstructions);
147 }
148
149 // Test: test-kind=api, api=GraphApiImpl::bbGetPredBlock,
150 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsGraphApiImpl0,bbGetPredBlock)151 TEST_F(LibAbcKitNullptrTestsGraphApiImpl0, bbGetPredBlock)
152 {
153 helpers_nullptr::TestNullptr(g_graphApiImp->bbGetPredBlock);
154 }
155
156 // Test: test-kind=api, api=GraphApiImpl::bbGetPredBlockCount,
157 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsGraphApiImpl0,bbGetPredBlockCount)158 TEST_F(LibAbcKitNullptrTestsGraphApiImpl0, bbGetPredBlockCount)
159 {
160 helpers_nullptr::TestNullptr(g_graphApiImp->bbGetPredBlockCount);
161 }
162
163 // Test: test-kind=api, api=GraphApiImpl::bbGetSuccBlock,
164 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsGraphApiImpl0,bbGetSuccBlock)165 TEST_F(LibAbcKitNullptrTestsGraphApiImpl0, bbGetSuccBlock)
166 {
167 helpers_nullptr::TestNullptr(g_graphApiImp->bbGetSuccBlock);
168 }
169
170 // Test: test-kind=api, api=GraphApiImpl::bbGetSuccBlockCount,
171 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsGraphApiImpl0,bbGetSuccBlockCount)172 TEST_F(LibAbcKitNullptrTestsGraphApiImpl0, bbGetSuccBlockCount)
173 {
174 helpers_nullptr::TestNullptr(g_graphApiImp->bbGetSuccBlockCount);
175 }
176
177 // Test: test-kind=api, api=GraphApiImpl::bbGetTrueBranch,
178 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsGraphApiImpl0,bbGetTrueBranch)179 TEST_F(LibAbcKitNullptrTestsGraphApiImpl0, bbGetTrueBranch)
180 {
181 helpers_nullptr::TestNullptr(g_graphApiImp->bbGetTrueBranch);
182 }
183
184 // Test: test-kind=api, api=GraphApiImpl::bbInsertSuccBlock,
185 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsGraphApiImpl0,bbInsertSuccBlock)186 TEST_F(LibAbcKitNullptrTestsGraphApiImpl0, bbInsertSuccBlock)
187 {
188 helpers_nullptr::TestNullptr(g_graphApiImp->bbInsertSuccBlock);
189 }
190
191 // Test: test-kind=api, api=GraphApiImpl::bbIsCatch,
192 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsGraphApiImpl0,bbIsCatch)193 TEST_F(LibAbcKitNullptrTestsGraphApiImpl0, bbIsCatch)
194 {
195 helpers_nullptr::TestNullptr(g_graphApiImp->bbIsCatch);
196 }
197
198 // Test: test-kind=api, api=GraphApiImpl::bbIsCatchBegin,
199 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsGraphApiImpl0,bbIsCatchBegin)200 TEST_F(LibAbcKitNullptrTestsGraphApiImpl0, bbIsCatchBegin)
201 {
202 helpers_nullptr::TestNullptr(g_graphApiImp->bbIsCatchBegin);
203 }
204
205 // Test: test-kind=api, api=GraphApiImpl::bbIsEnd,
206 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsGraphApiImpl0,bbIsEnd)207 TEST_F(LibAbcKitNullptrTestsGraphApiImpl0, bbIsEnd)
208 {
209 helpers_nullptr::TestNullptr(g_graphApiImp->bbIsEnd);
210 }
211
212 // Test: test-kind=api, api=GraphApiImpl::bbIsLoopHead,
213 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsGraphApiImpl0,bbIsLoopHead)214 TEST_F(LibAbcKitNullptrTestsGraphApiImpl0, bbIsLoopHead)
215 {
216 helpers_nullptr::TestNullptr(g_graphApiImp->bbIsLoopHead);
217 }
218
219 // Test: test-kind=api, api=GraphApiImpl::bbIsLoopPrehead,
220 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsGraphApiImpl0,bbIsLoopPrehead)221 TEST_F(LibAbcKitNullptrTestsGraphApiImpl0, bbIsLoopPrehead)
222 {
223 helpers_nullptr::TestNullptr(g_graphApiImp->bbIsLoopPrehead);
224 }
225
226 // Test: test-kind=api, api=GraphApiImpl::bbIsStart,
227 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsGraphApiImpl0,bbIsStart)228 TEST_F(LibAbcKitNullptrTestsGraphApiImpl0, bbIsStart)
229 {
230 helpers_nullptr::TestNullptr(g_graphApiImp->bbIsStart);
231 }
232
233 // Test: test-kind=api, api=GraphApiImpl::bbIsTry,
234 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsGraphApiImpl0,bbIsTry)235 TEST_F(LibAbcKitNullptrTestsGraphApiImpl0, bbIsTry)
236 {
237 helpers_nullptr::TestNullptr(g_graphApiImp->bbIsTry);
238 }
239
240 // Test: test-kind=api, api=GraphApiImpl::bbIsTryBegin,
241 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsGraphApiImpl0,bbIsTryBegin)242 TEST_F(LibAbcKitNullptrTestsGraphApiImpl0, bbIsTryBegin)
243 {
244 helpers_nullptr::TestNullptr(g_graphApiImp->bbIsTryBegin);
245 }
246
247 // Test: test-kind=api, api=GraphApiImpl::bbIsTryEnd,
248 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsGraphApiImpl0,bbIsTryEnd)249 TEST_F(LibAbcKitNullptrTestsGraphApiImpl0, bbIsTryEnd)
250 {
251 helpers_nullptr::TestNullptr(g_graphApiImp->bbIsTryEnd);
252 }
253
254 // Test: test-kind=api, api=GraphApiImpl::bbRemoveAllInsts,
255 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsGraphApiImpl0,bbRemoveAllInsts)256 TEST_F(LibAbcKitNullptrTestsGraphApiImpl0, bbRemoveAllInsts)
257 {
258 helpers_nullptr::TestNullptr(g_graphApiImp->bbRemoveAllInsts);
259 }
260
261 // Test: test-kind=api, api=GraphApiImpl::bbSplitBlockAfterInstruction,
262 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsGraphApiImpl0,bbSplitBlockAfterInstruction)263 TEST_F(LibAbcKitNullptrTestsGraphApiImpl0, bbSplitBlockAfterInstruction)
264 {
265 helpers_nullptr::TestNullptr(g_graphApiImp->bbSplitBlockAfterInstruction);
266 }
267
268 // Test: test-kind=api, api=GraphApiImpl::bbVisitDominatedBlocks,
269 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsGraphApiImpl0,bbVisitDominatedBlocks)270 TEST_F(LibAbcKitNullptrTestsGraphApiImpl0, bbVisitDominatedBlocks)
271 {
272 helpers_nullptr::TestNullptr(g_graphApiImp->bbVisitDominatedBlocks);
273 }
274
275 // Test: test-kind=api, api=GraphApiImpl::bbVisitPredBlocks,
276 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsGraphApiImpl0,bbVisitPredBlocks)277 TEST_F(LibAbcKitNullptrTestsGraphApiImpl0, bbVisitPredBlocks)
278 {
279 helpers_nullptr::TestNullptr(g_graphApiImp->bbVisitPredBlocks);
280 }
281
282 // Test: test-kind=api, api=GraphApiImpl::bbVisitSuccBlocks,
283 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsGraphApiImpl0,bbVisitSuccBlocks)284 TEST_F(LibAbcKitNullptrTestsGraphApiImpl0, bbVisitSuccBlocks)
285 {
286 helpers_nullptr::TestNullptr(g_graphApiImp->bbVisitSuccBlocks);
287 }
288
289 // Test: test-kind=api, api=GraphApiImpl::gFindOrCreateConstantF64,
290 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsGraphApiImpl0,gFindOrCreateConstantF64)291 TEST_F(LibAbcKitNullptrTestsGraphApiImpl0, gFindOrCreateConstantF64)
292 {
293 helpers_nullptr::TestNullptr(g_graphApiImp->gFindOrCreateConstantF64);
294 }
295
296 // Test: test-kind=api, api=GraphApiImpl::gFindOrCreateConstantI32,
297 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsGraphApiImpl0,gFindOrCreateConstantI32)298 TEST_F(LibAbcKitNullptrTestsGraphApiImpl0, gFindOrCreateConstantI32)
299 {
300 helpers_nullptr::TestNullptr(g_graphApiImp->gFindOrCreateConstantI32);
301 }
302
303 // Test: test-kind=api, api=GraphApiImpl::gFindOrCreateConstantI64,
304 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsGraphApiImpl0,gFindOrCreateConstantI64)305 TEST_F(LibAbcKitNullptrTestsGraphApiImpl0, gFindOrCreateConstantI64)
306 {
307 helpers_nullptr::TestNullptr(g_graphApiImp->gFindOrCreateConstantI64);
308 }
309
310 // Test: test-kind=api, api=GraphApiImpl::gFindOrCreateConstantU64,
311 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsGraphApiImpl0,gFindOrCreateConstantU64)312 TEST_F(LibAbcKitNullptrTestsGraphApiImpl0, gFindOrCreateConstantU64)
313 {
314 helpers_nullptr::TestNullptr(g_graphApiImp->gFindOrCreateConstantU64);
315 }
316
317 // Test: test-kind=api, api=GraphApiImpl::gDump,
318 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsGraphApiImpl0,gDump)319 TEST_F(LibAbcKitNullptrTestsGraphApiImpl0, gDump)
320 {
321 helpers_nullptr::TestNullptr(g_graphApiImp->gDump);
322 }
323
324 // Test: test-kind=api, api=GraphApiImpl::gGetBasicBlock,
325 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsGraphApiImpl0,gGetBasicBlock)326 TEST_F(LibAbcKitNullptrTestsGraphApiImpl0, gGetBasicBlock)
327 {
328 helpers_nullptr::TestNullptr(g_graphApiImp->gGetBasicBlock);
329 }
330
331 // Test: test-kind=api, api=GraphApiImpl::gGetEndBasicBlock,
332 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsGraphApiImpl0,gGetEndBasicBlock)333 TEST_F(LibAbcKitNullptrTestsGraphApiImpl0, gGetEndBasicBlock)
334 {
335 helpers_nullptr::TestNullptr(g_graphApiImp->gGetEndBasicBlock);
336 }
337
338 // Test: test-kind=api, api=GraphApiImpl::gGetFile,
339 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsGraphApiImpl0,gGetFile)340 TEST_F(LibAbcKitNullptrTestsGraphApiImpl0, gGetFile)
341 {
342 helpers_nullptr::TestNullptr(g_graphApiImp->gGetFile);
343 }
344
345 // Test: test-kind=api, api=GraphApiImpl::gGetIsa,
346 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsGraphApiImpl0,gGetIsa)347 TEST_F(LibAbcKitNullptrTestsGraphApiImpl0, gGetIsa)
348 {
349 helpers_nullptr::TestNullptr(g_graphApiImp->gGetIsa);
350 }
351
352 // Test: test-kind=api, api=GraphApiImpl::gGetNumberOfBasicBlocks,
353 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsGraphApiImpl0,gGetNumberOfBasicBlocks)354 TEST_F(LibAbcKitNullptrTestsGraphApiImpl0, gGetNumberOfBasicBlocks)
355 {
356 helpers_nullptr::TestNullptr(g_graphApiImp->gGetNumberOfBasicBlocks);
357 }
358
359 // Test: test-kind=api, api=GraphApiImpl::gGetNumberOfParameters,
360 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsGraphApiImpl0,gGetNumberOfParameters)361 TEST_F(LibAbcKitNullptrTestsGraphApiImpl0, gGetNumberOfParameters)
362 {
363 helpers_nullptr::TestNullptr(g_graphApiImp->gGetNumberOfParameters);
364 }
365
366 // Test: test-kind=api, api=GraphApiImpl::gGetParameter,
367 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsGraphApiImpl0,gGetParameter)368 TEST_F(LibAbcKitNullptrTestsGraphApiImpl0, gGetParameter)
369 {
370 helpers_nullptr::TestNullptr(g_graphApiImp->gGetParameter);
371 }
372
373 // Test: test-kind=api, api=GraphApiImpl::gGetStartBasicBlock,
374 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsGraphApiImpl0,gGetStartBasicBlock)375 TEST_F(LibAbcKitNullptrTestsGraphApiImpl0, gGetStartBasicBlock)
376 {
377 helpers_nullptr::TestNullptr(g_graphApiImp->gGetStartBasicBlock);
378 }
379
380 // Test: test-kind=api, api=GraphApiImpl::gInsertTryCatch,
381 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsGraphApiImpl0,gInsertTryCatch)382 TEST_F(LibAbcKitNullptrTestsGraphApiImpl0, gInsertTryCatch)
383 {
384 helpers_nullptr::TestNullptr(g_graphApiImp->gInsertTryCatch);
385 }
386
387 // Test: test-kind=api, api=GraphApiImpl::gRunPassRemoveUnreachableBlocks,
388 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsGraphApiImpl0,gRunPassRemoveUnreachableBlocks)389 TEST_F(LibAbcKitNullptrTestsGraphApiImpl0, gRunPassRemoveUnreachableBlocks)
390 {
391 helpers_nullptr::TestNullptr(g_graphApiImp->gRunPassRemoveUnreachableBlocks);
392 }
393
394 // Test: test-kind=api, api=GraphApiImpl::gVisitBlocksRpo,
395 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsGraphApiImpl0,gVisitBlocksRpo)396 TEST_F(LibAbcKitNullptrTestsGraphApiImpl0, gVisitBlocksRpo)
397 {
398 helpers_nullptr::TestNullptr(g_graphApiImp->gVisitBlocksRpo);
399 }
400
401 // Test: test-kind=api, api=GraphApiImpl::iAppendInput,
402 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsGraphApiImpl0,iAppendInput)403 TEST_F(LibAbcKitNullptrTestsGraphApiImpl0, iAppendInput)
404 {
405 helpers_nullptr::TestNullptr(g_graphApiImp->iAppendInput);
406 }
407
408 // Test: test-kind=api, api=GraphApiImpl::iCheckDominance,
409 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsGraphApiImpl0,iCheckDominance)410 TEST_F(LibAbcKitNullptrTestsGraphApiImpl0, iCheckDominance)
411 {
412 helpers_nullptr::TestNullptr(g_graphApiImp->iCheckDominance);
413 }
414
415 // Test: test-kind=api, api=GraphApiImpl::iCheckIsCall,
416 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsGraphApiImpl0,iCheckIsCall)417 TEST_F(LibAbcKitNullptrTestsGraphApiImpl0, iCheckIsCall)
418 {
419 helpers_nullptr::TestNullptr(g_graphApiImp->iCheckIsCall);
420 }
421
422 // Test: test-kind=api, api=GraphApiImpl::iDump,
423 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsGraphApiImpl0,iDump)424 TEST_F(LibAbcKitNullptrTestsGraphApiImpl0, iDump)
425 {
426 helpers_nullptr::TestNullptr(g_graphApiImp->iDump);
427 }
428
429 // Test: test-kind=api, api=GraphApiImpl::iGetBasicBlock,
430 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsGraphApiImpl0,iGetBasicBlock)431 TEST_F(LibAbcKitNullptrTestsGraphApiImpl0, iGetBasicBlock)
432 {
433 helpers_nullptr::TestNullptr(g_graphApiImp->iGetBasicBlock);
434 }
435
436 // Test: test-kind=api, api=GraphApiImpl::iGetConstantValueF64,
437 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsGraphApiImpl0,iGetConstantValueF64)438 TEST_F(LibAbcKitNullptrTestsGraphApiImpl0, iGetConstantValueF64)
439 {
440 helpers_nullptr::TestNullptr(g_graphApiImp->iGetConstantValueF64);
441 }
442
443 // Test: test-kind=api, api=GraphApiImpl::iGetConstantValueI32,
444 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsGraphApiImpl0,iGetConstantValueI32)445 TEST_F(LibAbcKitNullptrTestsGraphApiImpl0, iGetConstantValueI32)
446 {
447 helpers_nullptr::TestNullptr(g_graphApiImp->iGetConstantValueI32);
448 }
449
450 // Test: test-kind=api, api=GraphApiImpl::iGetConstantValueI64,
451 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsGraphApiImpl0,iGetConstantValueI64)452 TEST_F(LibAbcKitNullptrTestsGraphApiImpl0, iGetConstantValueI64)
453 {
454 helpers_nullptr::TestNullptr(g_graphApiImp->iGetConstantValueI64);
455 }
456
457 // Test: test-kind=api, api=GraphApiImpl::iGetConstantValueU64,
458 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsGraphApiImpl0,iGetConstantValueU64)459 TEST_F(LibAbcKitNullptrTestsGraphApiImpl0, iGetConstantValueU64)
460 {
461 helpers_nullptr::TestNullptr(g_graphApiImp->iGetConstantValueU64);
462 }
463
464 // Test: test-kind=api, api=GraphApiImpl::iGetFunction,
465 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsGraphApiImpl0,iGetFunction)466 TEST_F(LibAbcKitNullptrTestsGraphApiImpl0, iGetFunction)
467 {
468 helpers_nullptr::TestNullptr(g_graphApiImp->iGetFunction);
469 }
470
471 // Test: test-kind=api, api=GraphApiImpl::iGetId,
472 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsGraphApiImpl0,iGetId)473 TEST_F(LibAbcKitNullptrTestsGraphApiImpl0, iGetId)
474 {
475 helpers_nullptr::TestNullptr(g_graphApiImp->iGetId);
476 }
477
478 // Test: test-kind=api, api=GraphApiImpl::iGetImmediate,
479 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsGraphApiImpl0,iGetImmediate)480 TEST_F(LibAbcKitNullptrTestsGraphApiImpl0, iGetImmediate)
481 {
482 helpers_nullptr::TestNullptr(g_graphApiImp->iGetImmediate);
483 }
484
485 // Test: test-kind=api, api=GraphApiImpl::iGetImmediateCount,
486 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsGraphApiImpl0,iGetImmediateCount)487 TEST_F(LibAbcKitNullptrTestsGraphApiImpl0, iGetImmediateCount)
488 {
489 helpers_nullptr::TestNullptr(g_graphApiImp->iGetImmediateCount);
490 }
491
492 // Test: test-kind=api, api=GraphApiImpl::iGetImmediateSize,
493 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsGraphApiImpl0,iGetImmediateSize)494 TEST_F(LibAbcKitNullptrTestsGraphApiImpl0, iGetImmediateSize)
495 {
496 helpers_nullptr::TestNullptr(g_graphApiImp->iGetImmediateSize);
497 }
498
499 // Test: test-kind=api, api=GraphApiImpl::iGetInput,
500 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsGraphApiImpl0,iGetInput)501 TEST_F(LibAbcKitNullptrTestsGraphApiImpl0, iGetInput)
502 {
503 helpers_nullptr::TestNullptr(g_graphApiImp->iGetInput);
504 }
505
506 // Test: test-kind=api, api=GraphApiImpl::iGetInputCount,
507 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsGraphApiImpl0,iGetInputCount)508 TEST_F(LibAbcKitNullptrTestsGraphApiImpl0, iGetInputCount)
509 {
510 helpers_nullptr::TestNullptr(g_graphApiImp->iGetInputCount);
511 }
512
513 // Test: test-kind=api, api=GraphApiImpl::iGetLiteralArray,
514 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsGraphApiImpl0,iGetLiteralArray)515 TEST_F(LibAbcKitNullptrTestsGraphApiImpl0, iGetLiteralArray)
516 {
517 helpers_nullptr::TestNullptr(g_graphApiImp->iGetLiteralArray);
518 }
519
520 // Test: test-kind=api, api=GraphApiImpl::iGetNext,
521 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsGraphApiImpl0,iGetNext)522 TEST_F(LibAbcKitNullptrTestsGraphApiImpl0, iGetNext)
523 {
524 helpers_nullptr::TestNullptr(g_graphApiImp->iGetNext);
525 }
526
527 // Test: test-kind=api, api=GraphApiImpl::iGetPrev,
528 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsGraphApiImpl0,iGetPrev)529 TEST_F(LibAbcKitNullptrTestsGraphApiImpl0, iGetPrev)
530 {
531 helpers_nullptr::TestNullptr(g_graphApiImp->iGetPrev);
532 }
533
534 // Test: test-kind=api, api=GraphApiImpl::iGetString,
535 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsGraphApiImpl0,iGetString)536 TEST_F(LibAbcKitNullptrTestsGraphApiImpl0, iGetString)
537 {
538 helpers_nullptr::TestNullptr(g_graphApiImp->iGetString);
539 }
540
541 // Test: test-kind=api, api=GraphApiImpl::iGetType,
542 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsGraphApiImpl0,iGetType)543 TEST_F(LibAbcKitNullptrTestsGraphApiImpl0, iGetType)
544 {
545 helpers_nullptr::TestNullptr(g_graphApiImp->iGetType);
546 }
547
548 // Test: test-kind=api, api=GraphApiImpl::iGetUserCount,
549 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsGraphApiImpl0,iGetUserCount)550 TEST_F(LibAbcKitNullptrTestsGraphApiImpl0, iGetUserCount)
551 {
552 helpers_nullptr::TestNullptr(g_graphApiImp->iGetUserCount);
553 }
554
555 // Test: test-kind=api, api=GraphApiImpl::iInsertAfter,
556 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsGraphApiImpl0,iInsertAfter)557 TEST_F(LibAbcKitNullptrTestsGraphApiImpl0, iInsertAfter)
558 {
559 helpers_nullptr::TestNullptr(g_graphApiImp->iInsertAfter);
560 }
561
562 // Test: test-kind=api, api=GraphApiImpl::iInsertBefore,
563 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsGraphApiImpl0,iInsertBefore)564 TEST_F(LibAbcKitNullptrTestsGraphApiImpl0, iInsertBefore)
565 {
566 helpers_nullptr::TestNullptr(g_graphApiImp->iInsertBefore);
567 }
568
569 // Test: test-kind=api, api=GraphApiImpl::iRemove,
570 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsGraphApiImpl0,iRemove)571 TEST_F(LibAbcKitNullptrTestsGraphApiImpl0, iRemove)
572 {
573 helpers_nullptr::TestNullptr(g_graphApiImp->iRemove);
574 }
575
576 // Test: test-kind=api, api=GraphApiImpl::iSetFunction,
577 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsGraphApiImpl0,iSetFunction)578 TEST_F(LibAbcKitNullptrTestsGraphApiImpl0, iSetFunction)
579 {
580 helpers_nullptr::TestNullptr(g_graphApiImp->iSetFunction);
581 }
582
583 // Test: test-kind=api, api=GraphApiImpl::iSetImmediate,
584 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsGraphApiImpl0,iSetImmediate)585 TEST_F(LibAbcKitNullptrTestsGraphApiImpl0, iSetImmediate)
586 {
587 helpers_nullptr::TestNullptr(g_graphApiImp->iSetImmediate);
588 }
589
590 // Test: test-kind=api, api=GraphApiImpl::iSetInput,
591 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsGraphApiImpl0,iSetInput)592 TEST_F(LibAbcKitNullptrTestsGraphApiImpl0, iSetInput)
593 {
594 helpers_nullptr::TestNullptr(g_graphApiImp->iSetInput);
595 }
596
597 // Test: test-kind=api, api=GraphApiImpl::iSetInputs,
598 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsGraphApiImpl0,iSetInputs)599 TEST_F(LibAbcKitNullptrTestsGraphApiImpl0, iSetInputs)
600 {
601 helpers_nullptr::TestNullptr(g_graphApiImp->iSetInputs);
602 }
603
604 // Test: test-kind=api, api=GraphApiImpl::iSetLiteralArray,
605 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsGraphApiImpl0,iSetLiteralArray)606 TEST_F(LibAbcKitNullptrTestsGraphApiImpl0, iSetLiteralArray)
607 {
608 helpers_nullptr::TestNullptr(g_graphApiImp->iSetLiteralArray);
609 }
610
611 // Test: test-kind=api, api=GraphApiImpl::iSetString,
612 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsGraphApiImpl0,iSetString)613 TEST_F(LibAbcKitNullptrTestsGraphApiImpl0, iSetString)
614 {
615 helpers_nullptr::TestNullptr(g_graphApiImp->iSetString);
616 }
617
618 // Test: test-kind=api, api=GraphApiImpl::iVisitInputs,
619 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsGraphApiImpl0,iVisitInputs)620 TEST_F(LibAbcKitNullptrTestsGraphApiImpl0, iVisitInputs)
621 {
622 helpers_nullptr::TestNullptr(g_graphApiImp->iVisitInputs);
623 }
624
625 // Test: test-kind=api, api=GraphApiImpl::iVisitUsers,
626 // abc-kind=NoABC, category=negative-nullptr, extension=c
TEST_F(LibAbcKitNullptrTestsGraphApiImpl0,iVisitUsers)627 TEST_F(LibAbcKitNullptrTestsGraphApiImpl0, iVisitUsers)
628 {
629 helpers_nullptr::TestNullptr(g_graphApiImp->iVisitUsers);
630 }
631
632 } // namespace libabckit::test
633