; LLVM IR from GPUOpen-LibrariesAndSDKs/TAN :: tan/tanlibrary/src/clFFT-master/src/examples (fft3d)

; 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"

%struct.clfftSetupData_ = type { i32, i32, i32, i64 }

@__const.main.props = external hidden unnamed_addr constant [3 x i64], align 16
@__const.main.clLengths = external hidden unnamed_addr constant [3 x i64], align 16
@.str = external hidden unnamed_addr constant [20 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [84 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [21 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca [3 x i64], align 16
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca [128 x i8], align 16
  %16 = alloca [128 x i8], align 16
  %17 = alloca i64, align 8
  %18 = alloca i32, align 4
  %19 = alloca [3 x i64], align 16
  %20 = alloca i64, align 8
  %21 = alloca %struct.clfftSetupData_, align 8
  %22 = alloca i64, align 8
  %23 = alloca i64, align 8
  %24 = alloca i64, align 8
  %25 = alloca i64, align 8
  %26 = alloca float, align 4
  %27 = alloca float, align 4
  %28 = alloca i64, align 8
  %29 = alloca i64, align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  store ptr null, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  store ptr null, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %5) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %5, ptr align 16 @__const.main.props, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  store ptr null, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  store ptr null, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  store ptr null, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 0, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  store i64 4, ptr %12, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  store i64 4, ptr %13, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  store i64 4, ptr %14, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 128, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 128, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  store i32 3, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %19) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %19, ptr align 16 @__const.main.clLengths, i64 24, i1 false)
  %30 = call i32 @clGetPlatformIDs(i32 noundef 1, ptr noundef %3, ptr noundef null)
  store i32 %30, ptr %2, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  store i64 0, ptr %20, align 8, !tbaa !11
  %31 = load ptr, ptr %3, align 8, !tbaa !5
  %32 = getelementptr inbounds [128 x i8], ptr %15, i64 0, i64 0
  %33 = call i32 @clGetPlatformInfo(ptr noundef %31, i32 noundef 2306, i64 noundef 128, ptr noundef %32, ptr noundef %20)
  store i32 %33, ptr %2, align 4, !tbaa !9
  %34 = getelementptr inbounds [128 x i8], ptr %15, i64 0, i64 0
  %35 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %34)
  %36 = load ptr, ptr %3, align 8, !tbaa !5
  %37 = call i32 @clGetDeviceIDs(ptr noundef %36, i64 noundef 1, i32 noundef 1, ptr noundef %4, ptr noundef null)
  store i32 %37, ptr %2, align 4, !tbaa !9
  %38 = load ptr, ptr %4, align 8, !tbaa !5
  %39 = getelementptr inbounds [128 x i8], ptr %16, i64 0, i64 0
  %40 = call i32 @clGetDeviceInfo(ptr noundef %38, i32 noundef 4139, i64 noundef 128, ptr noundef %39, ptr noundef %20)
  store i32 %40, ptr %2, align 4, !tbaa !9
  %41 = getelementptr inbounds [128 x i8], ptr %16, i64 0, i64 0
  %42 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %41)
  %43 = load ptr, ptr %3, align 8, !tbaa !5
  %44 = ptrtoint ptr %43 to i64
  %45 = getelementptr inbounds [3 x i64], ptr %5, i64 0, i64 1
  store i64 %44, ptr %45, align 8, !tbaa !11
  %46 = getelementptr inbounds [3 x i64], ptr %5, i64 0, i64 0
  %47 = call ptr @clCreateContext(ptr noundef %46, i32 noundef 1, ptr noundef %4, ptr noundef null, ptr noundef null, ptr noundef %2)
  store ptr %47, ptr %6, align 8, !tbaa !5
  %48 = load ptr, ptr %6, align 8, !tbaa !5
  %49 = load ptr, ptr %4, align 8, !tbaa !5
  %50 = call ptr @clCreateCommandQueue(ptr noundef %48, ptr noundef %49, i64 noundef 0, ptr noundef %2)
  store ptr %50, ptr %7, align 8, !tbaa !5
  %51 = load ptr, ptr %7, align 8, !tbaa !5
  %52 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %51)
  call void @llvm.lifetime.start.p0(i64 24, ptr %21) #6
  %53 = call i32 @clfftInitSetupData(ptr noundef %21)
  store i32 %53, ptr %2, align 4, !tbaa !9
  %54 = call i32 @clfftSetup(ptr noundef %21)
  store i32 %54, ptr %2, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  store i64 512, ptr %22, align 8, !tbaa !11
  %55 = load i64, ptr %22, align 8, !tbaa !11
  %56 = call noalias ptr @malloc(i64 noundef %55) #7
  store ptr %56, ptr %9, align 8, !tbaa !5
  %57 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i64 noundef 4, i64 noundef 4, i64 noundef 4)
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #6
  store i64 0, ptr %25, align 8, !tbaa !11
  store i64 0, ptr %24, align 8, !tbaa !11
  store i64 0, ptr %23, align 8, !tbaa !11
  store i64 0, ptr %23, align 8, !tbaa !11
  br label %58

58:                                               ; preds = %120, %0
  %59 = load i64, ptr %23, align 8, !tbaa !11
  %60 = icmp ult i64 %59, 4
  br i1 %60, label %61, label %123

61:                                               ; preds = %58
  store i64 0, ptr %24, align 8, !tbaa !11
  br label %62

62:                                               ; preds = %115, %61
  %63 = load i64, ptr %24, align 8, !tbaa !11
  %64 = icmp ult i64 %63, 4
  br i1 %64, label %65, label %118

65:                                               ; preds = %62
  store i64 0, ptr %25, align 8, !tbaa !11
  br label %66

66:                                               ; preds = %110, %65
  %67 = load i64, ptr %25, align 8, !tbaa !11
  %68 = icmp ult i64 %67, 4
  br i1 %68, label %69, label %113

69:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #6
  store float 0.000000e+00, ptr %26, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #6
  store float 0.000000e+00, ptr %27, align 4, !tbaa !13
  %70 = load i64, ptr %23, align 8, !tbaa !11
  %71 = icmp eq i64 %70, 0
  br i1 %71, label %72, label %79

72:                                               ; preds = %69
  %73 = load i64, ptr %24, align 8, !tbaa !11
  %74 = icmp eq i64 %73, 0
  br i1 %74, label %75, label %79

75:                                               ; preds = %72
  %76 = load i64, ptr %25, align 8, !tbaa !11
  %77 = icmp eq i64 %76, 0
  br i1 %77, label %78, label %79

78:                                               ; preds = %75
  store float 5.000000e-01, ptr %27, align 4, !tbaa !13
  store float 5.000000e-01, ptr %26, align 4, !tbaa !13
  br label %79

79:                                               ; preds = %78, %75, %72, %69
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #6
  %80 = load i64, ptr %25, align 8, !tbaa !11
  %81 = load i64, ptr %24, align 8, !tbaa !11
  %82 = mul i64 %81, 4
  %83 = add i64 %80, %82
  %84 = load i64, ptr %23, align 8, !tbaa !11
  %85 = mul i64 %84, 4
  %86 = mul i64 %85, 4
  %87 = add i64 %83, %86
  %88 = mul i64 2, %87
  store i64 %88, ptr %28, align 8, !tbaa !11
  %89 = load float, ptr %26, align 4, !tbaa !13
  %90 = load ptr, ptr %9, align 8, !tbaa !5
  %91 = load i64, ptr %28, align 8, !tbaa !11
  %92 = getelementptr inbounds float, ptr %90, i64 %91
  store float %89, ptr %92, align 4, !tbaa !13
  %93 = load float, ptr %27, align 4, !tbaa !13
  %94 = load ptr, ptr %9, align 8, !tbaa !5
  %95 = load i64, ptr %28, align 8, !tbaa !11
  %96 = add i64 %95, 1
  %97 = getelementptr inbounds float, ptr %94, i64 %96
  store float %93, ptr %97, align 4, !tbaa !13
  %98 = load ptr, ptr %9, align 8, !tbaa !5
  %99 = load i64, ptr %28, align 8, !tbaa !11
  %100 = getelementptr inbounds float, ptr %98, i64 %99
  %101 = load float, ptr %100, align 4, !tbaa !13
  %102 = fpext float %101 to double
  %103 = load ptr, ptr %9, align 8, !tbaa !5
  %104 = load i64, ptr %28, align 8, !tbaa !11
  %105 = add i64 %104, 1
  %106 = getelementptr inbounds float, ptr %103, i64 %105
  %107 = load float, ptr %106, align 4, !tbaa !13
  %108 = fpext float %107 to double
  %109 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, double noundef %102, double noundef %108)
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  br label %110

110:                                              ; preds = %79
  %111 = load i64, ptr %25, align 8, !tbaa !11
  %112 = add i64 %111, 1
  store i64 %112, ptr %25, align 8, !tbaa !11
  br label %66, !llvm.loop !15

113:                                              ; preds = %66
  %114 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  br label %115

115:                                              ; preds = %113
  %116 = load i64, ptr %24, align 8, !tbaa !11
  %117 = add i64 %116, 1
  store i64 %117, ptr %24, align 8, !tbaa !11
  br label %62, !llvm.loop !17

118:                                              ; preds = %62
  %119 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  br label %120

120:                                              ; preds = %118
  %121 = load i64, ptr %23, align 8, !tbaa !11
  %122 = add i64 %121, 1
  store i64 %122, ptr %23, align 8, !tbaa !11
  br label %58, !llvm.loop !18

123:                                              ; preds = %58
  %124 = load ptr, ptr %6, align 8, !tbaa !5
  %125 = load i64, ptr %22, align 8, !tbaa !11
  %126 = call ptr @clCreateBuffer(ptr noundef %124, i64 noundef 1, i64 noundef %125, ptr noundef null, ptr noundef %2)
  store ptr %126, ptr %8, align 8, !tbaa !5
  %127 = load ptr, ptr %7, align 8, !tbaa !5
  %128 = load ptr, ptr %8, align 8, !tbaa !5
  %129 = load i64, ptr %22, align 8, !tbaa !11
  %130 = load ptr, ptr %9, align 8, !tbaa !5
  %131 = call i32 @clEnqueueWriteBuffer(ptr noundef %127, ptr noundef %128, i32 noundef 1, i64 noundef 0, i64 noundef %129, ptr noundef %130, i32 noundef 0, ptr noundef null, ptr noundef null)
  store i32 %131, ptr %2, align 4, !tbaa !9
  %132 = load ptr, ptr %6, align 8, !tbaa !5
  %133 = load i32, ptr %18, align 4, !tbaa !9
  %134 = getelementptr inbounds [3 x i64], ptr %19, i64 0, i64 0
  %135 = call i32 @clfftCreateDefaultPlan(ptr noundef %17, ptr noundef %132, i32 noundef %133, ptr noundef %134)
  store i32 %135, ptr %2, align 4, !tbaa !9
  %136 = load i64, ptr %17, align 8, !tbaa !11
  %137 = call i32 @clfftSetPlanPrecision(i64 noundef %136, i32 noundef 1)
  store i32 %137, ptr %2, align 4, !tbaa !9
  %138 = load i64, ptr %17, align 8, !tbaa !11
  %139 = call i32 @clfftSetLayout(i64 noundef %138, i32 noundef 1, i32 noundef 1)
  store i32 %139, ptr %2, align 4, !tbaa !9
  %140 = load i64, ptr %17, align 8, !tbaa !11
  %141 = call i32 @clfftSetResultLocation(i64 noundef %140, i32 noundef 1)
  store i32 %141, ptr %2, align 4, !tbaa !9
  %142 = load i64, ptr %17, align 8, !tbaa !11
  %143 = call i32 @clfftBakePlan(i64 noundef %142, i32 noundef 1, ptr noundef %7, ptr noundef null, ptr noundef null)
  store i32 %143, ptr %2, align 4, !tbaa !9
  %144 = load i64, ptr %17, align 8, !tbaa !11
  %145 = call i32 @clfftEnqueueTransform(i64 noundef %144, i32 noundef -1, i32 noundef 1, ptr noundef %7, i32 noundef 0, ptr noundef null, ptr noundef null, ptr noundef %8, ptr noundef null, ptr noundef null)
  store i32 %145, ptr %2, align 4, !tbaa !9
  %146 = load ptr, ptr %7, align 8, !tbaa !5
  %147 = call i32 @clFinish(ptr noundef %146)
  store i32 %147, ptr %2, align 4, !tbaa !9
  %148 = load ptr, ptr %7, align 8, !tbaa !5
  %149 = load ptr, ptr %8, align 8, !tbaa !5
  %150 = load i64, ptr %22, align 8, !tbaa !11
  %151 = load ptr, ptr %9, align 8, !tbaa !5
  %152 = call i32 @clEnqueueReadBuffer(ptr noundef %148, ptr noundef %149, i32 noundef 1, i64 noundef 0, i64 noundef %150, ptr noundef %151, i32 noundef 0, ptr noundef null, ptr noundef null)
  store i32 %152, ptr %2, align 4, !tbaa !9
  %153 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  store i64 0, ptr %25, align 8, !tbaa !11
  store i64 0, ptr %24, align 8, !tbaa !11
  store i64 0, ptr %23, align 8, !tbaa !11
  store i64 0, ptr %23, align 8, !tbaa !11
  br label %154

154:                                              ; preds = %197, %123
  %155 = load i64, ptr %23, align 8, !tbaa !11
  %156 = icmp ult i64 %155, 4
  br i1 %156, label %157, label %200

157:                                              ; preds = %154
  store i64 0, ptr %24, align 8, !tbaa !11
  br label %158

158:                                              ; preds = %192, %157
  %159 = load i64, ptr %24, align 8, !tbaa !11
  %160 = icmp ult i64 %159, 4
  br i1 %160, label %161, label %195

161:                                              ; preds = %158
  store i64 0, ptr %25, align 8, !tbaa !11
  br label %162

162:                                              ; preds = %187, %161
  %163 = load i64, ptr %25, align 8, !tbaa !11
  %164 = icmp ult i64 %163, 4
  br i1 %164, label %165, label %190

165:                                              ; preds = %162
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #6
  %166 = load i64, ptr %25, align 8, !tbaa !11
  %167 = load i64, ptr %24, align 8, !tbaa !11
  %168 = mul i64 %167, 4
  %169 = add i64 %166, %168
  %170 = load i64, ptr %23, align 8, !tbaa !11
  %171 = mul i64 %170, 4
  %172 = mul i64 %171, 4
  %173 = add i64 %169, %172
  %174 = mul i64 2, %173
  store i64 %174, ptr %29, align 8, !tbaa !11
  %175 = load ptr, ptr %9, align 8, !tbaa !5
  %176 = load i64, ptr %29, align 8, !tbaa !11
  %177 = getelementptr inbounds float, ptr %175, i64 %176
  %178 = load float, ptr %177, align 4, !tbaa !13
  %179 = fpext float %178 to double
  %180 = load ptr, ptr %9, align 8, !tbaa !5
  %181 = load i64, ptr %29, align 8, !tbaa !11
  %182 = add i64 %181, 1
  %183 = getelementptr inbounds float, ptr %180, i64 %182
  %184 = load float, ptr %183, align 4, !tbaa !13
  %185 = fpext float %184 to double
  %186 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, double noundef %179, double noundef %185)
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #6
  br label %187

187:                                              ; preds = %165
  %188 = load i64, ptr %25, align 8, !tbaa !11
  %189 = add i64 %188, 1
  store i64 %189, ptr %25, align 8, !tbaa !11
  br label %162, !llvm.loop !19

190:                                              ; preds = %162
  %191 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  br label %192

192:                                              ; preds = %190
  %193 = load i64, ptr %24, align 8, !tbaa !11
  %194 = add i64 %193, 1
  store i64 %194, ptr %24, align 8, !tbaa !11
  br label %158, !llvm.loop !20

195:                                              ; preds = %158
  %196 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  br label %197

197:                                              ; preds = %195
  %198 = load i64, ptr %23, align 8, !tbaa !11
  %199 = add i64 %198, 1
  store i64 %199, ptr %23, align 8, !tbaa !11
  br label %154, !llvm.loop !21

200:                                              ; preds = %154
  %201 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  %202 = load ptr, ptr %8, align 8, !tbaa !5
  %203 = call i32 @clReleaseMemObject(ptr noundef %202)
  %204 = load ptr, ptr %9, align 8, !tbaa !5
  call void @free(ptr noundef %204) #6
  %205 = call i32 @clfftDestroyPlan(ptr noundef %17)
  store i32 %205, ptr %2, align 4, !tbaa !9
  %206 = call i32 (...) @clfftTeardown()
  %207 = load ptr, ptr %7, align 8, !tbaa !5
  %208 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, ptr noundef %207)
  %209 = load ptr, ptr %7, align 8, !tbaa !5
  %210 = call i32 @clReleaseCommandQueue(ptr noundef %209)
  %211 = load ptr, ptr %6, align 8, !tbaa !5
  %212 = call i32 @clReleaseContext(ptr noundef %211)
  %213 = load i32, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 128, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 128, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  ret i32 %213
}

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

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

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

declare i32 @printf(ptr noundef, ...) #3

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

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

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

declare ptr @clCreateCommandQueue(ptr noundef, ptr noundef, i64 noundef, ptr noundef) #3

declare i32 @clfftInitSetupData(ptr noundef) #3

declare i32 @clfftSetup(ptr noundef) #3

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #4

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

declare ptr @clCreateBuffer(ptr noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef) #3

declare i32 @clEnqueueWriteBuffer(ptr noundef, ptr noundef, i32 noundef, i64 noundef, i64 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) #3

declare i32 @clfftCreateDefaultPlan(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #3

declare i32 @clfftSetPlanPrecision(i64 noundef, i32 noundef) #3

declare i32 @clfftSetLayout(i64 noundef, i32 noundef, i32 noundef) #3

declare i32 @clfftSetResultLocation(i64 noundef, i32 noundef) #3

declare i32 @clfftBakePlan(i64 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #3

declare i32 @clfftEnqueueTransform(i64 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3

declare i32 @clFinish(ptr noundef) #3

declare i32 @clEnqueueReadBuffer(ptr noundef, ptr noundef, i32 noundef, i64 noundef, i64 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) #3

declare i32 @clReleaseMemObject(ptr noundef) #3

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

declare i32 @clfftDestroyPlan(ptr noundef) #3

declare i32 @clfftTeardown(...) #3

declare i32 @clReleaseCommandQueue(ptr noundef) #3

declare i32 @clReleaseContext(ptr noundef) #3

attributes #0 = { nounwind 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "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 = { nounwind 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 = { 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 = { nounwind }
attributes #7 = { nounwind allocsize(0) }

!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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"float", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = distinct !{!18, !16}
!19 = distinct !{!19, !16}
!20 = distinct !{!20, !16}
!21 = distinct !{!21, !16}


; 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"

%struct.clfftSetupData_ = type { i32, i32, i32, i64 }

@__const.main.props = external hidden unnamed_addr constant [3 x i64], align 16
@__const.main.clLengths = external hidden unnamed_addr constant [3 x i64], align 16
@.str = external hidden unnamed_addr constant [20 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [84 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [21 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
.preheader58.peel.begin:
  %0 = alloca i32, align 4
  %1 = alloca ptr, align 8
  %2 = alloca ptr, align 8
  %3 = alloca [3 x i64], align 16
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca [128 x i8], align 16
  %7 = alloca [128 x i8], align 16
  %8 = alloca i64, align 8
  %9 = alloca [3 x i64], align 16
  %10 = alloca i64, align 8
  %11 = alloca %struct.clfftSetupData_, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %0) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #7
  store ptr null, ptr %1, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #7
  store ptr null, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(24) %3, ptr noundef nonnull align 16 dereferenceable(24) @__const.main.props, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(24) %9, ptr noundef nonnull align 16 dereferenceable(24) @__const.main.clLengths, i64 24, i1 false)
  %12 = call i32 @clGetPlatformIDs(i32 noundef 1, ptr noundef nonnull %1, ptr noundef null) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #7
  store i64 0, ptr %10, align 8, !tbaa !9
  %13 = load ptr, ptr %1, align 8, !tbaa !5
  %14 = call i32 @clGetPlatformInfo(ptr noundef %13, i32 noundef 2306, i64 noundef 128, ptr noundef nonnull %6, ptr noundef nonnull %10) #7
  %15 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, ptr noundef nonnull %6)
  %16 = load ptr, ptr %1, align 8, !tbaa !5
  %17 = call i32 @clGetDeviceIDs(ptr noundef %16, i64 noundef 1, i32 noundef 1, ptr noundef nonnull %2, ptr noundef null) #7
  %18 = load ptr, ptr %2, align 8, !tbaa !5
  %19 = call i32 @clGetDeviceInfo(ptr noundef %18, i32 noundef 4139, i64 noundef 128, ptr noundef nonnull %7, ptr noundef nonnull %10) #7
  store i32 %19, ptr %0, align 4, !tbaa !11
  %20 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef nonnull %7)
  %21 = load ptr, ptr %1, align 8, !tbaa !5
  %22 = ptrtoint ptr %21 to i64
  %23 = getelementptr inbounds i8, ptr %3, i64 8
  store i64 %22, ptr %23, align 8, !tbaa !9
  %24 = call ptr @clCreateContext(ptr noundef nonnull %3, i32 noundef 1, ptr noundef nonnull %2, ptr noundef null, ptr noundef null, ptr noundef nonnull %0) #7
  %25 = load ptr, ptr %2, align 8, !tbaa !5
  %26 = call ptr @clCreateCommandQueue(ptr noundef %24, ptr noundef %25, i64 noundef 0, ptr noundef nonnull %0) #7
  store ptr %26, ptr %4, align 8, !tbaa !5
  %27 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, ptr noundef %26)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #7
  %28 = call i32 @clfftInitSetupData(ptr noundef nonnull %11) #7
  store i32 %28, ptr %0, align 4, !tbaa !11
  %29 = call i32 @clfftSetup(ptr noundef nonnull %11) #7
  store i32 %29, ptr %0, align 4, !tbaa !11
  %30 = call noalias dereferenceable_or_null(512) ptr @malloc(i64 noundef 512) #8
  %31 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i64 noundef 4, i64 noundef 4, i64 noundef 4)
  store float 5.000000e-01, ptr %30, align 4, !tbaa !13
  %32 = getelementptr inbounds i8, ptr %30, i64 4
  store float 5.000000e-01, ptr %32, align 4, !tbaa !13
  %33 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef 5.000000e-01, double noundef 5.000000e-01)
  %34 = getelementptr inbounds i8, ptr %30, i64 8
  store <2 x float> zeroinitializer, ptr %34, align 4, !tbaa !13
  %35 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef 0.000000e+00, double noundef 0.000000e+00)
  %36 = getelementptr inbounds i8, ptr %30, i64 16
  store <2 x float> zeroinitializer, ptr %36, align 4, !tbaa !13
  %37 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef 0.000000e+00, double noundef 0.000000e+00)
  %38 = getelementptr inbounds i8, ptr %30, i64 24
  store <2 x float> zeroinitializer, ptr %38, align 4, !tbaa !13
  %39 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef 0.000000e+00, double noundef 0.000000e+00)
  %40 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  %41 = getelementptr inbounds i8, ptr %30, i64 32
  store <2 x float> zeroinitializer, ptr %41, align 4, !tbaa !13
  %42 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef 0.000000e+00, double noundef 0.000000e+00)
  %43 = getelementptr inbounds i8, ptr %30, i64 40
  store <2 x float> zeroinitializer, ptr %43, align 4, !tbaa !13
  %44 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef 0.000000e+00, double noundef 0.000000e+00)
  %45 = getelementptr inbounds i8, ptr %30, i64 48
  store <2 x float> zeroinitializer, ptr %45, align 4, !tbaa !13
  %46 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef 0.000000e+00, double noundef 0.000000e+00)
  %47 = getelementptr inbounds i8, ptr %30, i64 56
  store <2 x float> zeroinitializer, ptr %47, align 4, !tbaa !13
  %48 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef 0.000000e+00, double noundef 0.000000e+00)
  %49 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  %50 = getelementptr inbounds i8, ptr %30, i64 64
  store <2 x float> zeroinitializer, ptr %50, align 4, !tbaa !13
  %51 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef 0.000000e+00, double noundef 0.000000e+00)
  %52 = getelementptr inbounds i8, ptr %30, i64 72
  store <2 x float> zeroinitializer, ptr %52, align 4, !tbaa !13
  %53 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef 0.000000e+00, double noundef 0.000000e+00)
  %54 = getelementptr inbounds i8, ptr %30, i64 80
  store <2 x float> zeroinitializer, ptr %54, align 4, !tbaa !13
  %55 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef 0.000000e+00, double noundef 0.000000e+00)
  %56 = getelementptr inbounds i8, ptr %30, i64 88
  store <2 x float> zeroinitializer, ptr %56, align 4, !tbaa !13
  %57 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef 0.000000e+00, double noundef 0.000000e+00)
  %58 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  %59 = getelementptr inbounds i8, ptr %30, i64 96
  store <2 x float> zeroinitializer, ptr %59, align 4, !tbaa !13
  %60 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef 0.000000e+00, double noundef 0.000000e+00)
  %61 = getelementptr inbounds i8, ptr %30, i64 104
  store <2 x float> zeroinitializer, ptr %61, align 4, !tbaa !13
  %62 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef 0.000000e+00, double noundef 0.000000e+00)
  %63 = getelementptr inbounds i8, ptr %30, i64 112
  store <2 x float> zeroinitializer, ptr %63, align 4, !tbaa !13
  %64 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef 0.000000e+00, double noundef 0.000000e+00)
  %65 = getelementptr inbounds i8, ptr %30, i64 120
  store <2 x float> zeroinitializer, ptr %65, align 4, !tbaa !13
  %66 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef 0.000000e+00, double noundef 0.000000e+00)
  %67 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  %68 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  br label %.preheader58

.preheader58:                                     ; preds = %.preheader58.peel.begin, %.preheader58
  %.061 = phi i64 [ 1, %.preheader58.peel.begin ], [ %139, %.preheader58 ]
  %69 = shl i64 %.061, 5
  %70 = shl nuw nsw i64 %.061, 5
  %71 = getelementptr inbounds float, ptr %30, i64 %70
  store float 0.000000e+00, ptr %71, align 4, !tbaa !13
  %72 = or disjoint i64 %70, 1
  %73 = getelementptr inbounds float, ptr %30, i64 %72
  store float 0.000000e+00, ptr %73, align 4, !tbaa !13
  %74 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef 0.000000e+00, double noundef 0.000000e+00)
  %75 = shl i64 %.061, 5
  %76 = or disjoint i64 %75, 2
  %77 = getelementptr inbounds float, ptr %30, i64 %76
  store <2 x float> zeroinitializer, ptr %77, align 4, !tbaa !13
  %78 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef 0.000000e+00, double noundef 0.000000e+00)
  %79 = shl i64 %.061, 5
  %80 = or disjoint i64 %79, 4
  %81 = getelementptr inbounds float, ptr %30, i64 %80
  store <2 x float> zeroinitializer, ptr %81, align 4, !tbaa !13
  %82 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef 0.000000e+00, double noundef 0.000000e+00)
  %83 = shl i64 %.061, 5
  %84 = or disjoint i64 %83, 6
  %85 = getelementptr inbounds float, ptr %30, i64 %84
  store <2 x float> zeroinitializer, ptr %85, align 4, !tbaa !13
  %86 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef 0.000000e+00, double noundef 0.000000e+00)
  %87 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  %88 = shl i64 %.061, 5
  %89 = or disjoint i64 %88, 8
  %90 = getelementptr inbounds float, ptr %30, i64 %89
  store <2 x float> zeroinitializer, ptr %90, align 4, !tbaa !13
  %91 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef 0.000000e+00, double noundef 0.000000e+00)
  %92 = shl i64 %.061, 5
  %93 = or disjoint i64 %92, 10
  %94 = getelementptr inbounds float, ptr %30, i64 %93
  store <2 x float> zeroinitializer, ptr %94, align 4, !tbaa !13
  %95 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef 0.000000e+00, double noundef 0.000000e+00)
  %96 = shl i64 %.061, 5
  %97 = or disjoint i64 %96, 12
  %98 = getelementptr inbounds float, ptr %30, i64 %97
  store <2 x float> zeroinitializer, ptr %98, align 4, !tbaa !13
  %99 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef 0.000000e+00, double noundef 0.000000e+00)
  %100 = shl i64 %.061, 5
  %101 = or disjoint i64 %100, 14
  %102 = getelementptr inbounds float, ptr %30, i64 %101
  store <2 x float> zeroinitializer, ptr %102, align 4, !tbaa !13
  %103 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef 0.000000e+00, double noundef 0.000000e+00)
  %104 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  %105 = shl i64 %.061, 5
  %106 = or disjoint i64 %105, 16
  %107 = getelementptr inbounds float, ptr %30, i64 %106
  store <2 x float> zeroinitializer, ptr %107, align 4, !tbaa !13
  %108 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef 0.000000e+00, double noundef 0.000000e+00)
  %109 = shl i64 %.061, 5
  %110 = or disjoint i64 %109, 18
  %111 = getelementptr inbounds float, ptr %30, i64 %110
  store <2 x float> zeroinitializer, ptr %111, align 4, !tbaa !13
  %112 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef 0.000000e+00, double noundef 0.000000e+00)
  %113 = shl i64 %.061, 5
  %114 = or disjoint i64 %113, 20
  %115 = getelementptr inbounds float, ptr %30, i64 %114
  store <2 x float> zeroinitializer, ptr %115, align 4, !tbaa !13
  %116 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef 0.000000e+00, double noundef 0.000000e+00)
  %117 = shl i64 %.061, 5
  %118 = or disjoint i64 %117, 22
  %119 = getelementptr inbounds float, ptr %30, i64 %118
  store <2 x float> zeroinitializer, ptr %119, align 4, !tbaa !13
  %120 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef 0.000000e+00, double noundef 0.000000e+00)
  %121 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  %122 = shl i64 %.061, 5
  %123 = or disjoint i64 %122, 24
  %124 = getelementptr inbounds float, ptr %30, i64 %123
  store <2 x float> zeroinitializer, ptr %124, align 4, !tbaa !13
  %125 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef 0.000000e+00, double noundef 0.000000e+00)
  %126 = shl i64 %.061, 5
  %127 = or disjoint i64 %126, 26
  %128 = getelementptr inbounds float, ptr %30, i64 %127
  store <2 x float> zeroinitializer, ptr %128, align 4, !tbaa !13
  %129 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef 0.000000e+00, double noundef 0.000000e+00)
  %130 = shl i64 %.061, 5
  %131 = or disjoint i64 %130, 28
  %132 = getelementptr inbounds float, ptr %30, i64 %131
  store <2 x float> zeroinitializer, ptr %132, align 4, !tbaa !13
  %133 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef 0.000000e+00, double noundef 0.000000e+00)
  %134 = or disjoint i64 %69, 30
  %135 = getelementptr inbounds float, ptr %30, i64 %134
  store <2 x float> zeroinitializer, ptr %135, align 4, !tbaa !13
  %136 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef 0.000000e+00, double noundef 0.000000e+00)
  %137 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  %138 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  %139 = add nuw nsw i64 %.061, 1
  %exitcond.not = icmp eq i64 %139, 4
  br i1 %exitcond.not, label %.loopexit, label %.preheader58, !llvm.loop !15

.loopexit:                                        ; preds = %.preheader58
  %140 = call ptr @clCreateBuffer(ptr noundef %24, i64 noundef 1, i64 noundef 512, ptr noundef null, ptr noundef nonnull %0) #7
  store ptr %140, ptr %5, align 8, !tbaa !5
  %141 = load ptr, ptr %4, align 8, !tbaa !5
  %142 = call i32 @clEnqueueWriteBuffer(ptr noundef %141, ptr noundef %140, i32 noundef 1, i64 noundef 0, i64 noundef 512, ptr noundef nonnull %30, i32 noundef 0, ptr noundef null, ptr noundef null) #7
  store i32 %142, ptr %0, align 4, !tbaa !11
  %143 = call i32 @clfftCreateDefaultPlan(ptr noundef nonnull %8, ptr noundef %24, i32 noundef 3, ptr noundef nonnull %9) #7
  store i32 %143, ptr %0, align 4, !tbaa !11
  %144 = load i64, ptr %8, align 8, !tbaa !9
  %145 = call i32 @clfftSetPlanPrecision(i64 noundef %144, i32 noundef 1) #7
  store i32 %145, ptr %0, align 4, !tbaa !11
  %146 = load i64, ptr %8, align 8, !tbaa !9
  %147 = call i32 @clfftSetLayout(i64 noundef %146, i32 noundef 1, i32 noundef 1) #7
  store i32 %147, ptr %0, align 4, !tbaa !11
  %148 = load i64, ptr %8, align 8, !tbaa !9
  %149 = call i32 @clfftSetResultLocation(i64 noundef %148, i32 noundef 1) #7
  store i32 %149, ptr %0, align 4, !tbaa !11
  %150 = load i64, ptr %8, align 8, !tbaa !9
  %151 = call i32 @clfftBakePlan(i64 noundef %150, i32 noundef 1, ptr noundef nonnull %4, ptr noundef null, ptr noundef null) #7
  store i32 %151, ptr %0, align 4, !tbaa !11
  %152 = load i64, ptr %8, align 8, !tbaa !9
  %153 = call i32 @clfftEnqueueTransform(i64 noundef %152, i32 noundef -1, i32 noundef 1, ptr noundef nonnull %4, i32 noundef 0, ptr noundef null, ptr noundef null, ptr noundef nonnull %5, ptr noundef null, ptr noundef null) #7
  store i32 %153, ptr %0, align 4, !tbaa !11
  %154 = load ptr, ptr %4, align 8, !tbaa !5
  %155 = call i32 @clFinish(ptr noundef %154) #7
  store i32 %155, ptr %0, align 4, !tbaa !11
  %156 = load ptr, ptr %4, align 8, !tbaa !5
  %157 = load ptr, ptr %5, align 8, !tbaa !5
  %158 = call i32 @clEnqueueReadBuffer(ptr noundef %156, ptr noundef %157, i32 noundef 1, i64 noundef 0, i64 noundef 512, ptr noundef nonnull %30, i32 noundef 0, ptr noundef null, ptr noundef null) #7
  store i32 %158, ptr %0, align 4, !tbaa !11
  %159 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6)
  br label %.preheader56

.preheader56:                                     ; preds = %.loopexit, %.preheader56
  %.164 = phi i64 [ 0, %.loopexit ], [ %324, %.preheader56 ]
  %160 = shl i64 %.164, 5
  %161 = shl nuw nsw i64 %.164, 5
  %162 = getelementptr inbounds float, ptr %30, i64 %161
  %163 = load float, ptr %162, align 4, !tbaa !13
  %164 = fpext float %163 to double
  %165 = or disjoint i64 %161, 1
  %166 = getelementptr inbounds float, ptr %30, i64 %165
  %167 = load float, ptr %166, align 4, !tbaa !13
  %168 = fpext float %167 to double
  %169 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef %164, double noundef %168)
  %170 = shl i64 %.164, 5
  %171 = or disjoint i64 %170, 2
  %172 = getelementptr inbounds float, ptr %30, i64 %171
  %173 = load float, ptr %172, align 4, !tbaa !13
  %174 = fpext float %173 to double
  %175 = or disjoint i64 %170, 3
  %176 = getelementptr inbounds float, ptr %30, i64 %175
  %177 = load float, ptr %176, align 4, !tbaa !13
  %178 = fpext float %177 to double
  %179 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef %174, double noundef %178)
  %180 = shl i64 %.164, 5
  %181 = or disjoint i64 %180, 4
  %182 = getelementptr inbounds float, ptr %30, i64 %181
  %183 = load float, ptr %182, align 4, !tbaa !13
  %184 = fpext float %183 to double
  %185 = or disjoint i64 %180, 5
  %186 = getelementptr inbounds float, ptr %30, i64 %185
  %187 = load float, ptr %186, align 4, !tbaa !13
  %188 = fpext float %187 to double
  %189 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef %184, double noundef %188)
  %190 = shl i64 %.164, 5
  %191 = or disjoint i64 %190, 6
  %192 = getelementptr inbounds float, ptr %30, i64 %191
  %193 = load float, ptr %192, align 4, !tbaa !13
  %194 = fpext float %193 to double
  %195 = or disjoint i64 %190, 7
  %196 = getelementptr inbounds float, ptr %30, i64 %195
  %197 = load float, ptr %196, align 4, !tbaa !13
  %198 = fpext float %197 to double
  %199 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef %194, double noundef %198)
  %200 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  %201 = shl i64 %.164, 5
  %202 = or disjoint i64 %201, 8
  %203 = getelementptr inbounds float, ptr %30, i64 %202
  %204 = load float, ptr %203, align 4, !tbaa !13
  %205 = fpext float %204 to double
  %206 = or disjoint i64 %201, 9
  %207 = getelementptr inbounds float, ptr %30, i64 %206
  %208 = load float, ptr %207, align 4, !tbaa !13
  %209 = fpext float %208 to double
  %210 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef %205, double noundef %209)
  %211 = shl i64 %.164, 5
  %212 = or disjoint i64 %211, 10
  %213 = getelementptr inbounds float, ptr %30, i64 %212
  %214 = load float, ptr %213, align 4, !tbaa !13
  %215 = fpext float %214 to double
  %216 = or disjoint i64 %211, 11
  %217 = getelementptr inbounds float, ptr %30, i64 %216
  %218 = load float, ptr %217, align 4, !tbaa !13
  %219 = fpext float %218 to double
  %220 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef %215, double noundef %219)
  %221 = shl i64 %.164, 5
  %222 = or disjoint i64 %221, 12
  %223 = getelementptr inbounds float, ptr %30, i64 %222
  %224 = load float, ptr %223, align 4, !tbaa !13
  %225 = fpext float %224 to double
  %226 = or disjoint i64 %221, 13
  %227 = getelementptr inbounds float, ptr %30, i64 %226
  %228 = load float, ptr %227, align 4, !tbaa !13
  %229 = fpext float %228 to double
  %230 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef %225, double noundef %229)
  %231 = shl i64 %.164, 5
  %232 = or disjoint i64 %231, 14
  %233 = getelementptr inbounds float, ptr %30, i64 %232
  %234 = load float, ptr %233, align 4, !tbaa !13
  %235 = fpext float %234 to double
  %236 = or disjoint i64 %231, 15
  %237 = getelementptr inbounds float, ptr %30, i64 %236
  %238 = load float, ptr %237, align 4, !tbaa !13
  %239 = fpext float %238 to double
  %240 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef %235, double noundef %239)
  %241 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  %242 = shl i64 %.164, 5
  %243 = or disjoint i64 %242, 16
  %244 = getelementptr inbounds float, ptr %30, i64 %243
  %245 = load float, ptr %244, align 4, !tbaa !13
  %246 = fpext float %245 to double
  %247 = or disjoint i64 %242, 17
  %248 = getelementptr inbounds float, ptr %30, i64 %247
  %249 = load float, ptr %248, align 4, !tbaa !13
  %250 = fpext float %249 to double
  %251 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef %246, double noundef %250)
  %252 = shl i64 %.164, 5
  %253 = or disjoint i64 %252, 18
  %254 = getelementptr inbounds float, ptr %30, i64 %253
  %255 = load float, ptr %254, align 4, !tbaa !13
  %256 = fpext float %255 to double
  %257 = or disjoint i64 %252, 19
  %258 = getelementptr inbounds float, ptr %30, i64 %257
  %259 = load float, ptr %258, align 4, !tbaa !13
  %260 = fpext float %259 to double
  %261 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef %256, double noundef %260)
  %262 = shl i64 %.164, 5
  %263 = or disjoint i64 %262, 20
  %264 = getelementptr inbounds float, ptr %30, i64 %263
  %265 = load float, ptr %264, align 4, !tbaa !13
  %266 = fpext float %265 to double
  %267 = or disjoint i64 %262, 21
  %268 = getelementptr inbounds float, ptr %30, i64 %267
  %269 = load float, ptr %268, align 4, !tbaa !13
  %270 = fpext float %269 to double
  %271 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef %266, double noundef %270)
  %272 = shl i64 %.164, 5
  %273 = or disjoint i64 %272, 22
  %274 = getelementptr inbounds float, ptr %30, i64 %273
  %275 = load float, ptr %274, align 4, !tbaa !13
  %276 = fpext float %275 to double
  %277 = or disjoint i64 %272, 23
  %278 = getelementptr inbounds float, ptr %30, i64 %277
  %279 = load float, ptr %278, align 4, !tbaa !13
  %280 = fpext float %279 to double
  %281 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef %276, double noundef %280)
  %282 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  %283 = shl i64 %.164, 5
  %284 = or disjoint i64 %283, 24
  %285 = getelementptr inbounds float, ptr %30, i64 %284
  %286 = load float, ptr %285, align 4, !tbaa !13
  %287 = fpext float %286 to double
  %288 = or disjoint i64 %283, 25
  %289 = getelementptr inbounds float, ptr %30, i64 %288
  %290 = load float, ptr %289, align 4, !tbaa !13
  %291 = fpext float %290 to double
  %292 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef %287, double noundef %291)
  %293 = shl i64 %.164, 5
  %294 = or disjoint i64 %293, 26
  %295 = getelementptr inbounds float, ptr %30, i64 %294
  %296 = load float, ptr %295, align 4, !tbaa !13
  %297 = fpext float %296 to double
  %298 = or disjoint i64 %293, 27
  %299 = getelementptr inbounds float, ptr %30, i64 %298
  %300 = load float, ptr %299, align 4, !tbaa !13
  %301 = fpext float %300 to double
  %302 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef %297, double noundef %301)
  %303 = shl i64 %.164, 5
  %304 = or disjoint i64 %303, 28
  %305 = getelementptr inbounds float, ptr %30, i64 %304
  %306 = load float, ptr %305, align 4, !tbaa !13
  %307 = fpext float %306 to double
  %308 = or disjoint i64 %303, 29
  %309 = getelementptr inbounds float, ptr %30, i64 %308
  %310 = load float, ptr %309, align 4, !tbaa !13
  %311 = fpext float %310 to double
  %312 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef %307, double noundef %311)
  %313 = or disjoint i64 %160, 30
  %314 = getelementptr inbounds float, ptr %30, i64 %313
  %315 = load float, ptr %314, align 4, !tbaa !13
  %316 = fpext float %315 to double
  %317 = or disjoint i64 %160, 31
  %318 = getelementptr inbounds float, ptr %30, i64 %317
  %319 = load float, ptr %318, align 4, !tbaa !13
  %320 = fpext float %319 to double
  %321 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef %316, double noundef %320)
  %322 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  %323 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  %324 = add nuw nsw i64 %.164, 1
  %exitcond67.not = icmp eq i64 %324, 4
  br i1 %exitcond67.not, label %325, label %.preheader56, !llvm.loop !18

325:                                              ; preds = %.preheader56
  %326 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  %327 = load ptr, ptr %5, align 8, !tbaa !5
  %328 = call i32 @clReleaseMemObject(ptr noundef %327) #7
  call void @free(ptr noundef nonnull %30) #7
  %329 = call i32 @clfftDestroyPlan(ptr noundef nonnull %8) #7
  store i32 %329, ptr %0, align 4, !tbaa !11
  %330 = call i32 (...) @clfftTeardown() #7
  %331 = load ptr, ptr %4, align 8, !tbaa !5
  %332 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7, ptr noundef %331)
  %333 = load ptr, ptr %4, align 8, !tbaa !5
  %334 = call i32 @clReleaseCommandQueue(ptr noundef %333) #7
  %335 = call i32 @clReleaseContext(ptr noundef %24) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %0) #7
  ret i32 0
}

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

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

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

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

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

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

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

declare ptr @clCreateCommandQueue(ptr noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #3

declare i32 @clfftInitSetupData(ptr noundef) local_unnamed_addr #3

declare i32 @clfftSetup(ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #5

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

declare ptr @clCreateBuffer(ptr noundef, i64 noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare i32 @clEnqueueWriteBuffer(ptr noundef, ptr noundef, i32 noundef, i64 noundef, i64 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare i32 @clfftCreateDefaultPlan(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

declare i32 @clfftSetPlanPrecision(i64 noundef, i32 noundef) local_unnamed_addr #3

declare i32 @clfftSetLayout(i64 noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

declare i32 @clfftSetResultLocation(i64 noundef, i32 noundef) local_unnamed_addr #3

declare i32 @clfftBakePlan(i64 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare i32 @clfftEnqueueTransform(i64 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare i32 @clFinish(ptr noundef) local_unnamed_addr #3

declare i32 @clEnqueueReadBuffer(ptr noundef, ptr noundef, i32 noundef, i64 noundef, i64 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare i32 @clReleaseMemObject(ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #6

declare i32 @clfftDestroyPlan(ptr noundef) local_unnamed_addr #3

declare i32 @clfftTeardown(...) local_unnamed_addr #3

declare i32 @clReleaseCommandQueue(ptr noundef) local_unnamed_addr #3

declare i32 @clReleaseContext(ptr noundef) local_unnamed_addr #3

attributes #0 = { nounwind 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "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 = { 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 #5 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { nounwind allocsize(0) }

!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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"float", !7, i64 0}
!15 = distinct !{!15, !16, !17}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!"llvm.loop.peeled.count", i32 1}
!18 = distinct !{!18, !16}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass