; LLVM IR from GPUOpen-LibrariesAndSDKs/TAN :: tan/samples/src/GPUUtilities (GPUUtilities)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@stdout = external global ptr, align 8
@.str = external hidden unnamed_addr constant [37 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [29 x i8], align 1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

declare i32 @clGetPlatformIDs(i32 noundef, ptr noundef, ptr noundef) #1

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #3

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) #4

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) #5

declare i32 @clGetPlatformInfo(ptr noundef, i32 noundef, i64 noundef, ptr noundef, ptr noundef) #1

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #6

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

declare i32 @clGetDeviceIDs(ptr noundef, i64 noundef, i32 noundef, ptr noundef, ptr noundef) #1

declare i32 @clGetDeviceInfo(ptr noundef, i32 noundef, i64 noundef, ptr noundef, ptr noundef) #1

declare i32 @clReleaseDevice(ptr noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local i32 @getDeviceAndContext(i32 noundef %0, ptr noundef %1, ptr noundef %2, i64 noundef %3) #7 {
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca [100 x i8], align 16
  %19 = alloca [100 x i8], align 16
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca [3 x i64], align 16
  %23 = alloca i32, align 4
  %24 = alloca ptr, align 8
  %25 = alloca i32, align 4
  %26 = alloca [100 x i8], align 16
  %27 = alloca i32, align 4
  %28 = alloca [100 x i8], align 16
  %29 = alloca i32, align 4
  store i32 %0, ptr %6, align 4, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !9
  store ptr %2, ptr %8, align 8, !tbaa !9
  store i64 %3, ptr %9, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  store i32 -1, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  store ptr null, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  %30 = load ptr, ptr @stdout, align 8, !tbaa !9
  %31 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %30, ptr noundef @.str.10) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #8
  store i32 0, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  store ptr null, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  store ptr null, ptr %15, align 8, !tbaa !9
  %32 = call i32 @clGetPlatformIDs(i32 noundef 0, ptr noundef null, ptr noundef %13)
  store i32 %32, ptr %12, align 4, !tbaa !5
  %33 = load i32, ptr %12, align 4, !tbaa !5
  %34 = icmp ne i32 %33, 0
  br i1 %34, label %35, label %39

35:                                               ; preds = %4
  %36 = load ptr, ptr @stdout, align 8, !tbaa !9
  %37 = load i32, ptr %12, align 4, !tbaa !5
  %38 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %36, ptr noundef @.str, i32 noundef %37) #8
  store i32 0, ptr %5, align 4
  store i32 1, ptr %16, align 4
  br label %256

39:                                               ; preds = %4
  %40 = load i32, ptr %13, align 4, !tbaa !5
  %41 = icmp ult i32 0, %40
  br i1 %41, label %42, label %91

42:                                               ; preds = %39
  %43 = load i32, ptr %13, align 4, !tbaa !5
  %44 = zext i32 %43 to i64
  %45 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %44, i64 8)
  %46 = extractvalue { i64, i1 } %45, 1
  %47 = extractvalue { i64, i1 } %45, 0
  %48 = select i1 %46, i64 -1, i64 %47
  %49 = call noalias noundef nonnull ptr @_Znam(i64 noundef %48) #9
  store ptr %49, ptr %15, align 8, !tbaa !9
  %50 = load i32, ptr %13, align 4, !tbaa !5
  %51 = load ptr, ptr %15, align 8, !tbaa !9
  %52 = call i32 @clGetPlatformIDs(i32 noundef %50, ptr noundef %51, ptr noundef null)
  store i32 %52, ptr %12, align 4, !tbaa !5
  %53 = load i32, ptr %12, align 4, !tbaa !5
  %54 = icmp ne i32 %53, 0
  br i1 %54, label %55, label %63

55:                                               ; preds = %42
  %56 = load ptr, ptr @stdout, align 8, !tbaa !9
  %57 = load i32, ptr %12, align 4, !tbaa !5
  %58 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %56, ptr noundef @.str, i32 noundef %57) #8
  %59 = load ptr, ptr %15, align 8, !tbaa !9
  %60 = icmp eq ptr %59, null
  br i1 %60, label %62, label %61

61:                                               ; preds = %55
  call void @_ZdaPv(ptr noundef %59) #10
  br label %62

62:                                               ; preds = %61, %55
  store i32 0, ptr %5, align 4
  store i32 1, ptr %16, align 4
  br label %256

63:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  store i32 0, ptr %17, align 4, !tbaa !5
  br label %64

64:                                               ; preds = %87, %63
  %65 = load i32, ptr %17, align 4, !tbaa !5
  %66 = load i32, ptr %13, align 4, !tbaa !5
  %67 = icmp ult i32 %65, %66
  br i1 %67, label %69, label %68

68:                                               ; preds = %64
  store i32 2, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  br label %90

69:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 100, ptr %18) #8
  %70 = load ptr, ptr %15, align 8, !tbaa !9
  %71 = load i32, ptr %17, align 4, !tbaa !5
  %72 = zext i32 %71 to i64
  %73 = getelementptr inbounds ptr, ptr %70, i64 %72
  %74 = load ptr, ptr %73, align 8, !tbaa !9
  %75 = getelementptr inbounds [100 x i8], ptr %18, i64 0, i64 0
  %76 = call i32 @clGetPlatformInfo(ptr noundef %74, i32 noundef 2307, i64 noundef 100, ptr noundef %75, ptr noundef null)
  store i32 %76, ptr %12, align 4, !tbaa !5
  %77 = load i32, ptr %12, align 4, !tbaa !5
  %78 = icmp ne i32 %77, 0
  br i1 %78, label %79, label %83

79:                                               ; preds = %69
  %80 = load ptr, ptr @stdout, align 8, !tbaa !9
  %81 = load i32, ptr %12, align 4, !tbaa !5
  %82 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %80, ptr noundef @.str.2, i32 noundef %81) #8
  store i32 4, ptr %16, align 4
  br label %84

83:                                               ; preds = %69
  store i32 0, ptr %16, align 4
  br label %84

84:                                               ; preds = %83, %79
  call void @llvm.lifetime.end.p0(i64 100, ptr %18) #8
  %85 = load i32, ptr %16, align 4
  switch i32 %85, label %258 [
    i32 0, label %86
    i32 4, label %87
  ]

86:                                               ; preds = %84
  br label %87

87:                                               ; preds = %86, %84
  %88 = load i32, ptr %17, align 4, !tbaa !5
  %89 = add i32 %88, 1
  store i32 %89, ptr %17, align 4, !tbaa !5
  br label %64, !llvm.loop !13

90:                                               ; preds = %68
  br label %91

91:                                               ; preds = %90, %39
  call void @llvm.lifetime.start.p0(i64 100, ptr %19) #8
  call void @llvm.memset.p0.i64(ptr align 16 %19, i8 0, i64 100, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  store i32 0, ptr %20, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #8
  store i32 0, ptr %21, align 4, !tbaa !5
  br label %92

92:                                               ; preds = %240, %91
  %93 = load i32, ptr %21, align 4, !tbaa !5
  %94 = load i32, ptr %13, align 4, !tbaa !5
  %95 = icmp ult i32 %93, %94
  br i1 %95, label %97, label %96

96:                                               ; preds = %92
  store i32 5, ptr %16, align 4
  br label %243

97:                                               ; preds = %92
  %98 = load ptr, ptr %15, align 8, !tbaa !9
  %99 = load i32, ptr %21, align 4, !tbaa !5
  %100 = zext i32 %99 to i64
  %101 = getelementptr inbounds ptr, ptr %98, i64 %100
  %102 = load ptr, ptr %101, align 8, !tbaa !9
  store ptr %102, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %22) #8
  store i64 4228, ptr %22, align 8, !tbaa !11
  %103 = getelementptr inbounds i64, ptr %22, i64 1
  %104 = load ptr, ptr %14, align 8, !tbaa !9
  %105 = ptrtoint ptr %104 to i64
  store i64 %105, ptr %103, align 8, !tbaa !11
  %106 = getelementptr inbounds i64, ptr %22, i64 2
  store i64 0, ptr %106, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #8
  store i32 0, ptr %23, align 4, !tbaa !5
  %107 = load ptr, ptr %14, align 8, !tbaa !9
  %108 = load i64, ptr %9, align 8, !tbaa !11
  %109 = call i32 @clGetDeviceIDs(ptr noundef %107, i64 noundef %108, i32 noundef 0, ptr noundef null, ptr noundef %23)
  %110 = load i32, ptr %23, align 4, !tbaa !5
  %111 = icmp eq i32 %110, 0
  br i1 %111, label %112, label %113

112:                                              ; preds = %97
  store i32 7, ptr %16, align 4
  br label %237

113:                                              ; preds = %97
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #8
  %114 = load i32, ptr %23, align 4, !tbaa !5
  %115 = zext i32 %114 to i64
  %116 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %115, i64 8)
  %117 = extractvalue { i64, i1 } %116, 1
  %118 = extractvalue { i64, i1 } %116, 0
  %119 = select i1 %117, i64 -1, i64 %118
  %120 = call noalias noundef nonnull ptr @_Znam(i64 noundef %119) #9
  store ptr %120, ptr %24, align 8, !tbaa !9
  %121 = load ptr, ptr %14, align 8, !tbaa !9
  %122 = load i64, ptr %9, align 8, !tbaa !11
  %123 = load i32, ptr %23, align 4, !tbaa !5
  %124 = load ptr, ptr %24, align 8, !tbaa !9
  %125 = call i32 @clGetDeviceIDs(ptr noundef %121, i64 noundef %122, i32 noundef %123, ptr noundef %124, ptr noundef %23)
  store i32 %125, ptr %12, align 4, !tbaa !5
  %126 = load i32, ptr %12, align 4, !tbaa !5
  %127 = icmp ne i32 %126, 0
  br i1 %127, label %128, label %136

128:                                              ; preds = %113
  %129 = load ptr, ptr @stdout, align 8, !tbaa !9
  %130 = load i32, ptr %12, align 4, !tbaa !5
  %131 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %129, ptr noundef @.str.3, i32 noundef %130) #8
  %132 = load ptr, ptr %24, align 8, !tbaa !9
  %133 = icmp eq ptr %132, null
  br i1 %133, label %135, label %134

134:                                              ; preds = %128
  call void @_ZdaPv(ptr noundef %132) #10
  br label %135

135:                                              ; preds = %134, %128
  store i32 0, ptr %5, align 4
  store i32 1, ptr %16, align 4
  br label %236

136:                                              ; preds = %113
  %137 = load ptr, ptr %24, align 8, !tbaa !9
  %138 = getelementptr inbounds ptr, ptr %137, i64 0
  %139 = load ptr, ptr %138, align 8, !tbaa !9
  %140 = getelementptr inbounds [100 x i8], ptr %19, i64 0, i64 0
  %141 = call i32 @clGetDeviceInfo(ptr noundef %139, i32 noundef 4141, i64 noundef 100, ptr noundef %140, ptr noundef null)
  %142 = load ptr, ptr @stdout, align 8, !tbaa !9
  %143 = getelementptr inbounds [100 x i8], ptr %19, i64 0, i64 0
  %144 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %142, ptr noundef @.str.11, ptr noundef %143) #8
  %145 = load ptr, ptr @stdout, align 8, !tbaa !9
  %146 = load i32, ptr %23, align 4, !tbaa !5
  %147 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %145, ptr noundef @.str.12, i32 noundef %146) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #8
  store i32 0, ptr %25, align 4, !tbaa !5
  br label %148

148:                                              ; preds = %164, %136
  %149 = load i32, ptr %25, align 4, !tbaa !5
  %150 = load i32, ptr %23, align 4, !tbaa !5
  %151 = icmp ult i32 %149, %150
  br i1 %151, label %153, label %152

152:                                              ; preds = %148
  store i32 8, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  br label %167

153:                                              ; preds = %148
  call void @llvm.lifetime.start.p0(i64 100, ptr %26) #8
  call void @llvm.memset.p0.i64(ptr align 16 %26, i8 0, i64 100, i1 false)
  %154 = load ptr, ptr %24, align 8, !tbaa !9
  %155 = load i32, ptr %25, align 4, !tbaa !5
  %156 = zext i32 %155 to i64
  %157 = getelementptr inbounds ptr, ptr %154, i64 %156
  %158 = load ptr, ptr %157, align 8, !tbaa !9
  %159 = getelementptr inbounds [100 x i8], ptr %26, i64 0, i64 0
  %160 = call i32 @clGetDeviceInfo(ptr noundef %158, i32 noundef 4139, i64 noundef 100, ptr noundef %159, ptr noundef null)
  %161 = load ptr, ptr @stdout, align 8, !tbaa !9
  %162 = getelementptr inbounds [100 x i8], ptr %26, i64 0, i64 0
  %163 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %161, ptr noundef @.str.13, ptr noundef %162) #8
  call void @llvm.lifetime.end.p0(i64 100, ptr %26) #8
  br label %164

164:                                              ; preds = %153
  %165 = load i32, ptr %25, align 4, !tbaa !5
  %166 = add i32 %165, 1
  store i32 %166, ptr %25, align 4, !tbaa !5
  br label %148, !llvm.loop !15

167:                                              ; preds = %152
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #8
  store i32 0, ptr %27, align 4, !tbaa !5
  %168 = load i32, ptr %6, align 4, !tbaa !5
  %169 = load i32, ptr %20, align 4, !tbaa !5
  %170 = icmp sge i32 %168, %169
  br i1 %170, label %171, label %212

171:                                              ; preds = %167
  %172 = load i32, ptr %6, align 4, !tbaa !5
  %173 = load i32, ptr %20, align 4, !tbaa !5
  %174 = load i32, ptr %23, align 4, !tbaa !5
  %175 = add nsw i32 %173, %174
  %176 = icmp slt i32 %172, %175
  br i1 %176, label %177, label %212

177:                                              ; preds = %171
  %178 = load i32, ptr %6, align 4, !tbaa !5
  %179 = load i32, ptr %20, align 4, !tbaa !5
  %180 = sub nsw i32 %178, %179
  store i32 %180, ptr %27, align 4, !tbaa !5
  %181 = load ptr, ptr %24, align 8, !tbaa !9
  %182 = load i32, ptr %27, align 4, !tbaa !5
  %183 = sext i32 %182 to i64
  %184 = getelementptr inbounds ptr, ptr %181, i64 %183
  %185 = load ptr, ptr %184, align 8, !tbaa !9
  %186 = load ptr, ptr %8, align 8, !tbaa !9
  store ptr %185, ptr %186, align 8, !tbaa !9
  %187 = load ptr, ptr %8, align 8, !tbaa !9
  %188 = load ptr, ptr %187, align 8, !tbaa !9
  %189 = call i32 @clRetainDevice(ptr noundef %188)
  %190 = getelementptr inbounds [3 x i64], ptr %22, i64 0, i64 0
  %191 = load ptr, ptr %8, align 8, !tbaa !9
  %192 = call ptr @clCreateContext(ptr noundef %190, i32 noundef 1, ptr noundef %191, ptr noundef null, ptr noundef null, ptr noundef %10)
  %193 = load ptr, ptr %7, align 8, !tbaa !9
  store ptr %192, ptr %193, align 8, !tbaa !9
  %194 = load i32, ptr %10, align 4, !tbaa !5
  %195 = icmp eq i32 %194, 0
  br i1 %195, label %196, label %207

196:                                              ; preds = %177
  call void @llvm.lifetime.start.p0(i64 100, ptr %28) #8
  call void @llvm.memset.p0.i64(ptr align 16 %28, i8 0, i64 100, i1 false)
  %197 = load ptr, ptr %24, align 8, !tbaa !9
  %198 = load i32, ptr %27, align 4, !tbaa !5
  %199 = sext i32 %198 to i64
  %200 = getelementptr inbounds ptr, ptr %197, i64 %199
  %201 = load ptr, ptr %200, align 8, !tbaa !9
  %202 = getelementptr inbounds [100 x i8], ptr %28, i64 0, i64 0
  %203 = call i32 @clGetDeviceInfo(ptr noundef %201, i32 noundef 4139, i64 noundef 100, ptr noundef %202, ptr noundef null)
  %204 = load ptr, ptr @stdout, align 8, !tbaa !9
  %205 = getelementptr inbounds [100 x i8], ptr %28, i64 0, i64 0
  %206 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %204, ptr noundef @.str.14, ptr noundef %205) #8
  call void @llvm.lifetime.end.p0(i64 100, ptr %28) #8
  br label %211

207:                                              ; preds = %177
  %208 = load ptr, ptr @stdout, align 8, !tbaa !9
  %209 = load i32, ptr %10, align 4, !tbaa !5
  %210 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %208, ptr noundef @.str.15, i32 noundef %209) #8
  br label %211

211:                                              ; preds = %207, %196
  br label %212

212:                                              ; preds = %211, %171, %167
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #8
  store i32 0, ptr %29, align 4, !tbaa !5
  br label %213

213:                                              ; preds = %225, %212
  %214 = load i32, ptr %29, align 4, !tbaa !5
  %215 = load i32, ptr %23, align 4, !tbaa !5
  %216 = icmp ult i32 %214, %215
  br i1 %216, label %218, label %217

217:                                              ; preds = %213
  store i32 11, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #8
  br label %228

218:                                              ; preds = %213
  %219 = load ptr, ptr %24, align 8, !tbaa !9
  %220 = load i32, ptr %29, align 4, !tbaa !5
  %221 = zext i32 %220 to i64
  %222 = getelementptr inbounds ptr, ptr %219, i64 %221
  %223 = load ptr, ptr %222, align 8, !tbaa !9
  %224 = call i32 @clReleaseDevice(ptr noundef %223)
  br label %225

225:                                              ; preds = %218
  %226 = load i32, ptr %29, align 4, !tbaa !5
  %227 = add i32 %226, 1
  store i32 %227, ptr %29, align 4, !tbaa !5
  br label %213, !llvm.loop !16

228:                                              ; preds = %217
  %229 = load ptr, ptr %24, align 8, !tbaa !9
  %230 = icmp eq ptr %229, null
  br i1 %230, label %232, label %231

231:                                              ; preds = %228
  call void @_ZdaPv(ptr noundef %229) #10
  br label %232

232:                                              ; preds = %231, %228
  store ptr null, ptr %24, align 8, !tbaa !9
  %233 = load i32, ptr %23, align 4, !tbaa !5
  %234 = load i32, ptr %20, align 4, !tbaa !5
  %235 = add i32 %234, %233
  store i32 %235, ptr %20, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #8
  store i32 0, ptr %16, align 4
  br label %236

236:                                              ; preds = %232, %135
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  br label %237

237:                                              ; preds = %236, %112
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #8
  %238 = load i32, ptr %16, align 4
  switch i32 %238, label %243 [
    i32 0, label %239
    i32 7, label %240
  ]

239:                                              ; preds = %237
  br label %240

240:                                              ; preds = %239, %237
  %241 = load i32, ptr %21, align 4, !tbaa !5
  %242 = add i32 %241, 1
  store i32 %242, ptr %21, align 4, !tbaa !5
  br label %92, !llvm.loop !17

243:                                              ; preds = %237, %96
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  %244 = load i32, ptr %16, align 4
  switch i32 %244, label %255 [
    i32 5, label %245
  ]

245:                                              ; preds = %243
  %246 = load ptr, ptr %15, align 8, !tbaa !9
  %247 = icmp ne ptr %246, null
  br i1 %247, label %248, label %253

248:                                              ; preds = %245
  %249 = load ptr, ptr %15, align 8, !tbaa !9
  %250 = icmp eq ptr %249, null
  br i1 %250, label %252, label %251

251:                                              ; preds = %248
  call void @_ZdaPv(ptr noundef %249) #10
  br label %252

252:                                              ; preds = %251, %248
  br label %253

253:                                              ; preds = %252, %245
  %254 = load i32, ptr %10, align 4, !tbaa !5
  store i32 %254, ptr %5, align 4
  store i32 1, ptr %16, align 4
  br label %255

255:                                              ; preds = %253, %243
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 100, ptr %19) #8
  br label %256

256:                                              ; preds = %255, %62, %35
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  %257 = load i32, ptr %5, align 4
  ret i32 %257

258:                                              ; preds = %84
  unreachable
}

declare i32 @clRetainDevice(ptr noundef) #1

declare ptr @clCreateContext(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nobuiltin nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #7 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { nounwind }
attributes #9 = { builtin allocsize(0) }
attributes #10 = { builtin nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@stdout = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [37 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [29 x i8], align 1

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

declare i32 @clGetPlatformIDs(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #2

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) local_unnamed_addr #3

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) local_unnamed_addr #4

declare i32 @clGetPlatformInfo(ptr noundef, i32 noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

declare i32 @clGetDeviceIDs(ptr noundef, i64 noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare i32 @clGetDeviceInfo(ptr noundef, i32 noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare i32 @clReleaseDevice(ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local i32 @getDeviceAndContext(i32 noundef %0, ptr nocapture noundef writeonly %1, ptr noundef %2, i64 noundef %3) local_unnamed_addr #6 {
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca [100 x i8], align 16
  %8 = alloca [100 x i8], align 16
  %9 = alloca [3 x i64], align 16
  %10 = alloca i32, align 4
  %11 = alloca [100 x i8], align 16
  %12 = alloca [100 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #7
  store i32 -1, ptr %5, align 4, !tbaa !5
  %13 = load ptr, ptr @stdout, align 8, !tbaa !9
  %14 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %13, ptr noundef nonnull @.str.10) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #7
  store i32 0, ptr %6, align 4, !tbaa !5
  %15 = call i32 @clGetPlatformIDs(i32 noundef 0, ptr noundef null, ptr noundef nonnull %6)
  %.not = icmp eq i32 %15, 0
  br i1 %.not, label %19, label %16

16:                                               ; preds = %4
  %17 = load ptr, ptr @stdout, align 8, !tbaa !9
  %18 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %17, ptr noundef nonnull @.str, i32 noundef %15) #7
  br label %110

19:                                               ; preds = %4
  %20 = load i32, ptr %6, align 4, !tbaa !5
  %.not74 = icmp eq i32 %20, 0
  br i1 %.not74, label %.critedge.thread121, label %21

.critedge.thread121:                              ; preds = %19
  call void @llvm.lifetime.start.p0(i64 100, ptr nonnull %8) #7
  br label %107

21:                                               ; preds = %19
  %22 = zext i32 %20 to i64
  %23 = shl nuw nsw i64 %22, 3
  %24 = call noalias noundef nonnull ptr @_Znam(i64 noundef %23) #8
  %25 = call i32 @clGetPlatformIDs(i32 noundef %20, ptr noundef nonnull %24, ptr noundef null)
  %.not75 = icmp eq i32 %25, 0
  br i1 %.not75, label %.preheader, label %27

.preheader:                                       ; preds = %21
  %26 = load i32, ptr %6, align 4, !tbaa !5
  %.not99 = icmp eq i32 %26, 0
  br i1 %.not99, label %.critedge, label %.lr.ph

27:                                               ; preds = %21
  %28 = load ptr, ptr @stdout, align 8, !tbaa !9
  %29 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %28, ptr noundef nonnull @.str, i32 noundef %25) #7
  call void @_ZdaPv(ptr noundef nonnull %24) #9
  br label %110

.lr.ph:                                           ; preds = %.preheader, %36
  %indvars.iv = phi i64 [ %indvars.iv.next, %36 ], [ 0, %.preheader ]
  call void @llvm.lifetime.start.p0(i64 100, ptr nonnull %7) #7
  %30 = getelementptr inbounds ptr, ptr %24, i64 %indvars.iv
  %31 = load ptr, ptr %30, align 8, !tbaa !9
  %32 = call i32 @clGetPlatformInfo(ptr noundef %31, i32 noundef 2307, i64 noundef 100, ptr noundef nonnull %7, ptr noundef null)
  %.not80 = icmp eq i32 %32, 0
  br i1 %.not80, label %36, label %33

33:                                               ; preds = %.lr.ph
  %34 = load ptr, ptr @stdout, align 8, !tbaa !9
  %35 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %34, ptr noundef nonnull @.str.2, i32 noundef %32) #7
  br label %36

36:                                               ; preds = %.lr.ph, %33
  call void @llvm.lifetime.end.p0(i64 100, ptr nonnull %7) #7
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %37 = load i32, ptr %6, align 4, !tbaa !5
  %38 = zext i32 %37 to i64
  %39 = icmp ult i64 %indvars.iv.next, %38
  br i1 %39, label %.lr.ph, label %.loopexit, !llvm.loop !11

.loopexit:                                        ; preds = %36
  %40 = icmp eq i32 %37, 0
  call void @llvm.lifetime.start.p0(i64 100, ptr nonnull %8) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(100) %8, i8 0, i64 100, i1 false)
  br i1 %40, label %.critedge.thread, label %.lr.ph98

.lr.ph98:                                         ; preds = %.loopexit
  %41 = getelementptr inbounds i8, ptr %9, i64 8
  %42 = getelementptr inbounds i8, ptr %9, i64 16
  br label %43

43:                                               ; preds = %.lr.ph98, %101
  %indvars.iv112 = phi i64 [ 0, %.lr.ph98 ], [ %indvars.iv.next113, %101 ]
  %.05695 = phi i32 [ 0, %.lr.ph98 ], [ %.2.ph, %101 ]
  %44 = getelementptr inbounds ptr, ptr %24, i64 %indvars.iv112
  %45 = load ptr, ptr %44, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #7
  store i64 4228, ptr %9, align 16, !tbaa !13
  %46 = ptrtoint ptr %45 to i64
  store i64 %46, ptr %41, align 8, !tbaa !13
  store i64 0, ptr %42, align 16, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #7
  store i32 0, ptr %10, align 4, !tbaa !5
  %47 = call i32 @clGetDeviceIDs(ptr noundef %45, i64 noundef %3, i32 noundef 0, ptr noundef null, ptr noundef nonnull %10)
  %48 = load i32, ptr %10, align 4, !tbaa !5
  %49 = icmp eq i32 %48, 0
  br i1 %49, label %101, label %50

50:                                               ; preds = %43
  %51 = zext i32 %48 to i64
  %52 = shl nuw nsw i64 %51, 3
  %53 = call noalias noundef nonnull ptr @_Znam(i64 noundef %52) #8
  %54 = call i32 @clGetDeviceIDs(ptr noundef %45, i64 noundef %3, i32 noundef %48, ptr noundef nonnull %53, ptr noundef nonnull %10)
  %.not76 = icmp eq i32 %54, 0
  br i1 %.not76, label %55, label %104

55:                                               ; preds = %50
  %56 = load ptr, ptr %53, align 8, !tbaa !9
  %57 = call i32 @clGetDeviceInfo(ptr noundef %56, i32 noundef 4141, i64 noundef 100, ptr noundef nonnull %8, ptr noundef null)
  %58 = load ptr, ptr @stdout, align 8, !tbaa !9
  %59 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %58, ptr noundef nonnull @.str.11, ptr noundef nonnull %8) #7
  %60 = load ptr, ptr @stdout, align 8, !tbaa !9
  %61 = load i32, ptr %10, align 4, !tbaa !5
  %62 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %60, ptr noundef nonnull @.str.12, i32 noundef %61) #7
  %63 = load i32, ptr %10, align 4, !tbaa !5
  %.not100 = icmp eq i32 %63, 0
  br i1 %.not100, label %._crit_edge, label %.lr.ph89

._crit_edge:                                      ; preds = %.lr.ph89, %55
  %.lcssa = phi i32 [ 0, %55 ], [ %71, %.lr.ph89 ]
  %.not77 = icmp sle i32 %.05695, %0
  %64 = add nsw i32 %.lcssa, %.05695
  %65 = icmp sgt i32 %64, %0
  %or.cond = select i1 %.not77, i1 %65, i1 false
  br i1 %or.cond, label %74, label %91

.lr.ph89:                                         ; preds = %55, %.lr.ph89
  %indvars.iv106 = phi i64 [ %indvars.iv.next107, %.lr.ph89 ], [ 0, %55 ]
  call void @llvm.lifetime.start.p0(i64 100, ptr nonnull %11) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(100) %11, i8 0, i64 100, i1 false)
  %66 = getelementptr inbounds ptr, ptr %53, i64 %indvars.iv106
  %67 = load ptr, ptr %66, align 8, !tbaa !9
  %68 = call i32 @clGetDeviceInfo(ptr noundef %67, i32 noundef 4139, i64 noundef 100, ptr noundef nonnull %11, ptr noundef null)
  %69 = load ptr, ptr @stdout, align 8, !tbaa !9
  %70 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %69, ptr noundef nonnull @.str.13, ptr noundef nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 100, ptr nonnull %11) #7
  %indvars.iv.next107 = add nuw nsw i64 %indvars.iv106, 1
  %71 = load i32, ptr %10, align 4, !tbaa !5
  %72 = zext i32 %71 to i64
  %73 = icmp ult i64 %indvars.iv.next107, %72
  br i1 %73, label %.lr.ph89, label %._crit_edge, !llvm.loop !15

74:                                               ; preds = %._crit_edge
  %75 = sub nsw i32 %0, %.05695
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds ptr, ptr %53, i64 %76
  %78 = load ptr, ptr %77, align 8, !tbaa !9
  store ptr %78, ptr %2, align 8, !tbaa !9
  %79 = call i32 @clRetainDevice(ptr noundef %78)
  %80 = call ptr @clCreateContext(ptr noundef nonnull %9, i32 noundef 1, ptr noundef nonnull %2, ptr noundef null, ptr noundef null, ptr noundef nonnull %5)
  store ptr %80, ptr %1, align 8, !tbaa !9
  %81 = load i32, ptr %5, align 4, !tbaa !5
  %82 = icmp eq i32 %81, 0
  br i1 %82, label %83, label %88

83:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 100, ptr nonnull %12) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(100) %12, i8 0, i64 100, i1 false)
  %84 = load ptr, ptr %77, align 8, !tbaa !9
  %85 = call i32 @clGetDeviceInfo(ptr noundef %84, i32 noundef 4139, i64 noundef 100, ptr noundef nonnull %12, ptr noundef null)
  %86 = load ptr, ptr @stdout, align 8, !tbaa !9
  %87 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %86, ptr noundef nonnull @.str.14, ptr noundef nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 100, ptr nonnull %12) #7
  br label %91

88:                                               ; preds = %74
  %89 = load ptr, ptr @stdout, align 8, !tbaa !9
  %90 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %89, ptr noundef nonnull @.str.15, i32 noundef %81) #7
  br label %91

91:                                               ; preds = %83, %88, %._crit_edge
  %92 = load i32, ptr %10, align 4, !tbaa !5
  %.not101 = icmp eq i32 %92, 0
  br i1 %.not101, label %._crit_edge93, label %.lr.ph92

.lr.ph92:                                         ; preds = %91, %.lr.ph92
  %indvars.iv109 = phi i64 [ %indvars.iv.next110, %.lr.ph92 ], [ 0, %91 ]
  %93 = getelementptr inbounds ptr, ptr %53, i64 %indvars.iv109
  %94 = load ptr, ptr %93, align 8, !tbaa !9
  %95 = call i32 @clReleaseDevice(ptr noundef %94)
  %indvars.iv.next110 = add nuw nsw i64 %indvars.iv109, 1
  %96 = load i32, ptr %10, align 4, !tbaa !5
  %97 = zext i32 %96 to i64
  %98 = icmp ult i64 %indvars.iv.next110, %97
  br i1 %98, label %.lr.ph92, label %._crit_edge93, !llvm.loop !16

._crit_edge93:                                    ; preds = %.lr.ph92, %91
  call void @_ZdaPv(ptr noundef nonnull %53) #9
  %99 = load i32, ptr %10, align 4, !tbaa !5
  %100 = add i32 %99, %.05695
  br label %101

101:                                              ; preds = %43, %._crit_edge93
  %.2.ph = phi i32 [ %100, %._crit_edge93 ], [ %.05695, %43 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #7
  %indvars.iv.next113 = add nuw nsw i64 %indvars.iv112, 1
  %102 = load i32, ptr %6, align 4, !tbaa !5
  %103 = zext i32 %102 to i64
  %.not78 = icmp ult i64 %indvars.iv.next113, %103
  br i1 %.not78, label %43, label %.critedge.thread, !llvm.loop !17

104:                                              ; preds = %50
  %105 = load ptr, ptr @stdout, align 8, !tbaa !9
  %106 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %105, ptr noundef nonnull @.str.3, i32 noundef %54) #7
  call void @_ZdaPv(ptr noundef nonnull %53) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #7
  br label %109

.critedge:                                        ; preds = %.preheader
  call void @llvm.lifetime.start.p0(i64 100, ptr nonnull %8) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(100) %8, i8 0, i64 100, i1 false)
  br label %.critedge.thread

.critedge.thread:                                 ; preds = %101, %.loopexit, %.critedge
  call void @_ZdaPv(ptr noundef nonnull %24) #9
  br label %107

107:                                              ; preds = %.critedge.thread121, %.critedge.thread
  %108 = load i32, ptr %5, align 4, !tbaa !5
  br label %109

109:                                              ; preds = %104, %107
  %.4 = phi i32 [ %108, %107 ], [ 0, %104 ]
  call void @llvm.lifetime.end.p0(i64 100, ptr nonnull %8) #7
  br label %110

110:                                              ; preds = %109, %27, %16
  %.5 = phi i32 [ 0, %16 ], [ 0, %27 ], [ %.4, %109 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  ret i32 %.5
}

declare i32 @clRetainDevice(ptr noundef) local_unnamed_addr #1

declare ptr @clCreateContext(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nobuiltin nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind }
attributes #8 = { builtin allocsize(0) }
attributes #9 = { builtin nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass