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

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

56:                                               ; preds = %88, %0
  %57 = load i64, ptr %22, align 8, !tbaa !11
  %58 = icmp ult i64 %57, 8
  br i1 %58, label %59, label %91

59:                                               ; preds = %56
  store i64 0, ptr %23, align 8, !tbaa !11
  br label %60

60:                                               ; preds = %83, %59
  %61 = load i64, ptr %23, align 8, !tbaa !11
  %62 = icmp ult i64 %61, 8
  br i1 %62, label %63, label %86

63:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  store float 5.000000e-01, ptr %24, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #6
  store float 5.000000e-01, ptr %25, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #6
  %64 = load i64, ptr %23, align 8, !tbaa !11
  %65 = load i64, ptr %22, align 8, !tbaa !11
  %66 = mul i64 %65, 8
  %67 = add i64 %64, %66
  %68 = mul i64 2, %67
  store i64 %68, ptr %26, align 8, !tbaa !11
  %69 = load float, ptr %24, align 4, !tbaa !13
  %70 = load ptr, ptr %9, align 8, !tbaa !5
  %71 = load i64, ptr %26, align 8, !tbaa !11
  %72 = getelementptr inbounds float, ptr %70, i64 %71
  store float %69, ptr %72, align 4, !tbaa !13
  %73 = load float, ptr %25, align 4, !tbaa !13
  %74 = load ptr, ptr %9, align 8, !tbaa !5
  %75 = load i64, ptr %26, align 8, !tbaa !11
  %76 = add i64 %75, 1
  %77 = getelementptr inbounds float, ptr %74, i64 %76
  store float %73, ptr %77, align 4, !tbaa !13
  %78 = load float, ptr %24, align 4, !tbaa !13
  %79 = fpext float %78 to double
  %80 = load float, ptr %25, align 4, !tbaa !13
  %81 = fpext float %80 to double
  %82 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, double noundef %79, double noundef %81)
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  br label %83

83:                                               ; preds = %63
  %84 = load i64, ptr %23, align 8, !tbaa !11
  %85 = add i64 %84, 1
  store i64 %85, ptr %23, align 8, !tbaa !11
  br label %60, !llvm.loop !15

86:                                               ; preds = %60
  %87 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  br label %88

88:                                               ; preds = %86
  %89 = load i64, ptr %22, align 8, !tbaa !11
  %90 = add i64 %89, 1
  store i64 %90, ptr %22, align 8, !tbaa !11
  br label %56, !llvm.loop !17

91:                                               ; preds = %56
  %92 = load ptr, ptr %6, align 8, !tbaa !5
  %93 = load i64, ptr %21, align 8, !tbaa !11
  %94 = call ptr @clCreateBuffer(ptr noundef %92, i64 noundef 1, i64 noundef %93, ptr noundef null, ptr noundef %2)
  store ptr %94, ptr %8, align 8, !tbaa !5
  %95 = load ptr, ptr %7, align 8, !tbaa !5
  %96 = load ptr, ptr %8, align 8, !tbaa !5
  %97 = load i64, ptr %21, align 8, !tbaa !11
  %98 = load ptr, ptr %9, align 8, !tbaa !5
  %99 = call i32 @clEnqueueWriteBuffer(ptr noundef %95, ptr noundef %96, i32 noundef 1, i64 noundef 0, i64 noundef %97, ptr noundef %98, i32 noundef 0, ptr noundef null, ptr noundef null)
  store i32 %99, ptr %2, align 4, !tbaa !9
  %100 = load ptr, ptr %6, align 8, !tbaa !5
  %101 = load i32, ptr %17, align 4, !tbaa !9
  %102 = getelementptr inbounds [2 x i64], ptr %18, i64 0, i64 0
  %103 = call i32 @clfftCreateDefaultPlan(ptr noundef %16, ptr noundef %100, i32 noundef %101, ptr noundef %102)
  store i32 %103, ptr %2, align 4, !tbaa !9
  %104 = load i64, ptr %16, align 8, !tbaa !11
  %105 = call i32 @clfftSetPlanPrecision(i64 noundef %104, i32 noundef 1)
  store i32 %105, ptr %2, align 4, !tbaa !9
  %106 = load i64, ptr %16, align 8, !tbaa !11
  %107 = call i32 @clfftSetLayout(i64 noundef %106, i32 noundef 1, i32 noundef 1)
  store i32 %107, ptr %2, align 4, !tbaa !9
  %108 = load i64, ptr %16, align 8, !tbaa !11
  %109 = call i32 @clfftSetResultLocation(i64 noundef %108, i32 noundef 1)
  store i32 %109, ptr %2, align 4, !tbaa !9
  %110 = load i64, ptr %16, align 8, !tbaa !11
  %111 = call i32 @clfftBakePlan(i64 noundef %110, i32 noundef 1, ptr noundef %7, ptr noundef null, ptr noundef null)
  store i32 %111, ptr %2, align 4, !tbaa !9
  %112 = load i64, ptr %16, align 8, !tbaa !11
  %113 = call i32 @clfftEnqueueTransform(i64 noundef %112, 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 %113, ptr %2, align 4, !tbaa !9
  %114 = load ptr, ptr %7, align 8, !tbaa !5
  %115 = call i32 @clFinish(ptr noundef %114)
  store i32 %115, ptr %2, align 4, !tbaa !9
  %116 = load ptr, ptr %7, align 8, !tbaa !5
  %117 = load ptr, ptr %8, align 8, !tbaa !5
  %118 = load i64, ptr %21, align 8, !tbaa !11
  %119 = load ptr, ptr %9, align 8, !tbaa !5
  %120 = call i32 @clEnqueueReadBuffer(ptr noundef %116, ptr noundef %117, i32 noundef 1, i64 noundef 0, i64 noundef %118, ptr noundef %119, i32 noundef 0, ptr noundef null, ptr noundef null)
  store i32 %120, ptr %2, align 4, !tbaa !9
  %121 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  store i64 0, ptr %23, align 8, !tbaa !11
  store i64 0, ptr %22, align 8, !tbaa !11
  store i64 0, ptr %22, align 8, !tbaa !11
  br label %122

122:                                              ; preds = %152, %91
  %123 = load i64, ptr %22, align 8, !tbaa !11
  %124 = icmp ult i64 %123, 8
  br i1 %124, label %125, label %155

125:                                              ; preds = %122
  store i64 0, ptr %23, align 8, !tbaa !11
  br label %126

126:                                              ; preds = %147, %125
  %127 = load i64, ptr %23, align 8, !tbaa !11
  %128 = icmp ult i64 %127, 8
  br i1 %128, label %129, label %150

129:                                              ; preds = %126
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #6
  %130 = load i64, ptr %23, align 8, !tbaa !11
  %131 = load i64, ptr %22, align 8, !tbaa !11
  %132 = mul i64 %131, 8
  %133 = add i64 %130, %132
  %134 = mul i64 2, %133
  store i64 %134, ptr %27, align 8, !tbaa !11
  %135 = load ptr, ptr %9, align 8, !tbaa !5
  %136 = load i64, ptr %27, align 8, !tbaa !11
  %137 = getelementptr inbounds float, ptr %135, i64 %136
  %138 = load float, ptr %137, align 4, !tbaa !13
  %139 = fpext float %138 to double
  %140 = load ptr, ptr %9, align 8, !tbaa !5
  %141 = load i64, ptr %27, align 8, !tbaa !11
  %142 = add i64 %141, 1
  %143 = getelementptr inbounds float, ptr %140, i64 %142
  %144 = load float, ptr %143, align 4, !tbaa !13
  %145 = fpext float %144 to double
  %146 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, double noundef %139, double noundef %145)
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  br label %147

147:                                              ; preds = %129
  %148 = load i64, ptr %23, align 8, !tbaa !11
  %149 = add i64 %148, 1
  store i64 %149, ptr %23, align 8, !tbaa !11
  br label %126, !llvm.loop !18

150:                                              ; preds = %126
  %151 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  br label %152

152:                                              ; preds = %150
  %153 = load i64, ptr %22, align 8, !tbaa !11
  %154 = add i64 %153, 1
  store i64 %154, ptr %22, align 8, !tbaa !11
  br label %122, !llvm.loop !19

155:                                              ; preds = %122
  %156 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  %157 = load ptr, ptr %8, align 8, !tbaa !5
  %158 = call i32 @clReleaseMemObject(ptr noundef %157)
  %159 = load ptr, ptr %9, align 8, !tbaa !5
  call void @free(ptr noundef %159) #6
  %160 = call i32 @clfftDestroyPlan(ptr noundef %16)
  store i32 %160, ptr %2, align 4, !tbaa !9
  %161 = call i32 (...) @clfftTeardown()
  %162 = load ptr, ptr %7, align 8, !tbaa !5
  %163 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, ptr noundef %162)
  %164 = load ptr, ptr %7, align 8, !tbaa !5
  %165 = call i32 @clReleaseCommandQueue(ptr noundef %164)
  %166 = load ptr, ptr %6, align 8, !tbaa !5
  %167 = call i32 @clReleaseContext(ptr noundef %166)
  %168 = load i32, ptr %11, align 4, !tbaa !9
  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 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 128, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 128, 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 %168
}

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


; 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 [2 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 [73 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 {
  %1 = alloca i32, align 4
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca [3 x i64], align 16
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca [128 x i8], align 16
  %8 = alloca [128 x i8], align 16
  %9 = alloca i64, align 8
  %10 = alloca [2 x i64], align 16
  %11 = alloca i64, align 8
  %12 = alloca %struct.clfftSetupData_, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #7
  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 8, ptr nonnull %3) #7
  store ptr null, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(24) %4, ptr noundef nonnull align 16 dereferenceable(24) @__const.main.props, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %10, ptr noundef nonnull align 16 dereferenceable(16) @__const.main.clLengths, i64 16, i1 false)
  %13 = call i32 @clGetPlatformIDs(i32 noundef 1, ptr noundef nonnull %2, ptr noundef null) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #7
  store i64 0, ptr %11, align 8, !tbaa !9
  %14 = load ptr, ptr %2, align 8, !tbaa !5
  %15 = call i32 @clGetPlatformInfo(ptr noundef %14, i32 noundef 2306, i64 noundef 128, ptr noundef nonnull %7, ptr noundef nonnull %11) #7
  %16 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, ptr noundef nonnull %7)
  %17 = load ptr, ptr %2, align 8, !tbaa !5
  %18 = call i32 @clGetDeviceIDs(ptr noundef %17, i64 noundef 1, i32 noundef 1, ptr noundef nonnull %3, ptr noundef null) #7
  %19 = load ptr, ptr %3, align 8, !tbaa !5
  %20 = call i32 @clGetDeviceInfo(ptr noundef %19, i32 noundef 4139, i64 noundef 128, ptr noundef nonnull %8, ptr noundef nonnull %11) #7
  store i32 %20, ptr %1, align 4, !tbaa !11
  %21 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef nonnull %8)
  %22 = load ptr, ptr %2, align 8, !tbaa !5
  %23 = ptrtoint ptr %22 to i64
  %24 = getelementptr inbounds i8, ptr %4, i64 8
  store i64 %23, ptr %24, align 8, !tbaa !9
  %25 = call ptr @clCreateContext(ptr noundef nonnull %4, i32 noundef 1, ptr noundef nonnull %3, ptr noundef null, ptr noundef null, ptr noundef nonnull %1) #7
  %26 = load ptr, ptr %3, align 8, !tbaa !5
  %27 = call ptr @clCreateCommandQueue(ptr noundef %25, ptr noundef %26, i64 noundef 0, ptr noundef nonnull %1) #7
  store ptr %27, ptr %5, align 8, !tbaa !5
  %28 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, ptr noundef %27)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %12) #7
  %29 = call i32 @clfftInitSetupData(ptr noundef nonnull %12) #7
  store i32 %29, ptr %1, align 4, !tbaa !11
  %30 = call i32 @clfftSetup(ptr noundef nonnull %12) #7
  store i32 %30, ptr %1, align 4, !tbaa !11
  %31 = call noalias dereferenceable_or_null(512) ptr @malloc(i64 noundef 512) #8
  %32 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i64 noundef 8, i64 noundef 8)
  br label %.preheader38

.preheader38:                                     ; preds = %0, %.preheader38
  %.040 = phi i64 [ 0, %0 ], [ %58, %.preheader38 ]
  %33 = shl nuw nsw i64 %.040, 4
  %34 = getelementptr inbounds float, ptr %31, i64 %33
  store <2 x float> <float 5.000000e-01, float 5.000000e-01>, ptr %34, align 4, !tbaa !13
  %35 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef 5.000000e-01, double noundef 5.000000e-01)
  %36 = or disjoint i64 %33, 2
  %37 = getelementptr inbounds float, ptr %31, i64 %36
  store <2 x float> <float 5.000000e-01, float 5.000000e-01>, ptr %37, align 4, !tbaa !13
  %38 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef 5.000000e-01, double noundef 5.000000e-01)
  %39 = or disjoint i64 %33, 4
  %40 = getelementptr inbounds float, ptr %31, i64 %39
  store <2 x float> <float 5.000000e-01, float 5.000000e-01>, ptr %40, align 4, !tbaa !13
  %41 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef 5.000000e-01, double noundef 5.000000e-01)
  %42 = or disjoint i64 %33, 6
  %43 = getelementptr inbounds float, ptr %31, i64 %42
  store <2 x float> <float 5.000000e-01, float 5.000000e-01>, ptr %43, align 4, !tbaa !13
  %44 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef 5.000000e-01, double noundef 5.000000e-01)
  %45 = or disjoint i64 %33, 8
  %46 = getelementptr inbounds float, ptr %31, i64 %45
  store <2 x float> <float 5.000000e-01, float 5.000000e-01>, ptr %46, align 4, !tbaa !13
  %47 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef 5.000000e-01, double noundef 5.000000e-01)
  %48 = or disjoint i64 %33, 10
  %49 = getelementptr inbounds float, ptr %31, i64 %48
  store <2 x float> <float 5.000000e-01, float 5.000000e-01>, ptr %49, align 4, !tbaa !13
  %50 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef 5.000000e-01, double noundef 5.000000e-01)
  %51 = or disjoint i64 %33, 12
  %52 = getelementptr inbounds float, ptr %31, i64 %51
  store <2 x float> <float 5.000000e-01, float 5.000000e-01>, ptr %52, align 4, !tbaa !13
  %53 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef 5.000000e-01, double noundef 5.000000e-01)
  %54 = or disjoint i64 %33, 14
  %55 = getelementptr inbounds float, ptr %31, i64 %54
  store <2 x float> <float 5.000000e-01, float 5.000000e-01>, ptr %55, align 4, !tbaa !13
  %56 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef 5.000000e-01, double noundef 5.000000e-01)
  %57 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  %58 = add nuw nsw i64 %.040, 1
  %exitcond.not = icmp eq i64 %58, 8
  br i1 %exitcond.not, label %59, label %.preheader38, !llvm.loop !15

59:                                               ; preds = %.preheader38
  %60 = call ptr @clCreateBuffer(ptr noundef %25, i64 noundef 1, i64 noundef 512, ptr noundef null, ptr noundef nonnull %1) #7
  store ptr %60, ptr %6, align 8, !tbaa !5
  %61 = call i32 @clEnqueueWriteBuffer(ptr noundef %27, ptr noundef %60, i32 noundef 1, i64 noundef 0, i64 noundef 512, ptr noundef nonnull %31, i32 noundef 0, ptr noundef null, ptr noundef null) #7
  store i32 %61, ptr %1, align 4, !tbaa !11
  %62 = call i32 @clfftCreateDefaultPlan(ptr noundef nonnull %9, ptr noundef %25, i32 noundef 2, ptr noundef nonnull %10) #7
  store i32 %62, ptr %1, align 4, !tbaa !11
  %63 = load i64, ptr %9, align 8, !tbaa !9
  %64 = call i32 @clfftSetPlanPrecision(i64 noundef %63, i32 noundef 1) #7
  store i32 %64, ptr %1, align 4, !tbaa !11
  %65 = load i64, ptr %9, align 8, !tbaa !9
  %66 = call i32 @clfftSetLayout(i64 noundef %65, i32 noundef 1, i32 noundef 1) #7
  store i32 %66, ptr %1, align 4, !tbaa !11
  %67 = load i64, ptr %9, align 8, !tbaa !9
  %68 = call i32 @clfftSetResultLocation(i64 noundef %67, i32 noundef 1) #7
  store i32 %68, ptr %1, align 4, !tbaa !11
  %69 = load i64, ptr %9, align 8, !tbaa !9
  %70 = call i32 @clfftBakePlan(i64 noundef %69, i32 noundef 1, ptr noundef nonnull %5, ptr noundef null, ptr noundef null) #7
  store i32 %70, ptr %1, align 4, !tbaa !11
  %71 = load i64, ptr %9, align 8, !tbaa !9
  %72 = call i32 @clfftEnqueueTransform(i64 noundef %71, i32 noundef -1, i32 noundef 1, ptr noundef nonnull %5, i32 noundef 0, ptr noundef null, ptr noundef null, ptr noundef nonnull %6, ptr noundef null, ptr noundef null) #7
  store i32 %72, ptr %1, align 4, !tbaa !11
  %73 = load ptr, ptr %5, align 8, !tbaa !5
  %74 = call i32 @clFinish(ptr noundef %73) #7
  store i32 %74, ptr %1, align 4, !tbaa !11
  %75 = load ptr, ptr %5, align 8, !tbaa !5
  %76 = load ptr, ptr %6, align 8, !tbaa !5
  %77 = call i32 @clEnqueueReadBuffer(ptr noundef %75, ptr noundef %76, i32 noundef 1, i64 noundef 0, i64 noundef 512, ptr noundef nonnull %31, i32 noundef 0, ptr noundef null, ptr noundef null) #7
  store i32 %77, ptr %1, align 4, !tbaa !11
  %78 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6)
  br label %.preheader

.preheader:                                       ; preds = %59, %.preheader
  %.142 = phi i64 [ 0, %59 ], [ %152, %.preheader ]
  %79 = shl nuw nsw i64 %.142, 4
  %80 = getelementptr inbounds float, ptr %31, i64 %79
  %81 = load float, ptr %80, align 4, !tbaa !13
  %82 = fpext float %81 to double
  %83 = or disjoint i64 %79, 1
  %84 = getelementptr inbounds float, ptr %31, i64 %83
  %85 = load float, ptr %84, align 4, !tbaa !13
  %86 = fpext float %85 to double
  %87 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef %82, double noundef %86)
  %88 = or disjoint i64 %79, 2
  %89 = getelementptr inbounds float, ptr %31, i64 %88
  %90 = load float, ptr %89, align 4, !tbaa !13
  %91 = fpext float %90 to double
  %92 = or disjoint i64 %79, 3
  %93 = getelementptr inbounds float, ptr %31, i64 %92
  %94 = load float, ptr %93, align 4, !tbaa !13
  %95 = fpext float %94 to double
  %96 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef %91, double noundef %95)
  %97 = or disjoint i64 %79, 4
  %98 = getelementptr inbounds float, ptr %31, i64 %97
  %99 = load float, ptr %98, align 4, !tbaa !13
  %100 = fpext float %99 to double
  %101 = or disjoint i64 %79, 5
  %102 = getelementptr inbounds float, ptr %31, i64 %101
  %103 = load float, ptr %102, align 4, !tbaa !13
  %104 = fpext float %103 to double
  %105 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef %100, double noundef %104)
  %106 = or disjoint i64 %79, 6
  %107 = getelementptr inbounds float, ptr %31, i64 %106
  %108 = load float, ptr %107, align 4, !tbaa !13
  %109 = fpext float %108 to double
  %110 = or disjoint i64 %79, 7
  %111 = getelementptr inbounds float, ptr %31, i64 %110
  %112 = load float, ptr %111, align 4, !tbaa !13
  %113 = fpext float %112 to double
  %114 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef %109, double noundef %113)
  %115 = or disjoint i64 %79, 8
  %116 = getelementptr inbounds float, ptr %31, i64 %115
  %117 = load float, ptr %116, align 4, !tbaa !13
  %118 = fpext float %117 to double
  %119 = or disjoint i64 %79, 9
  %120 = getelementptr inbounds float, ptr %31, i64 %119
  %121 = load float, ptr %120, align 4, !tbaa !13
  %122 = fpext float %121 to double
  %123 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef %118, double noundef %122)
  %124 = or disjoint i64 %79, 10
  %125 = getelementptr inbounds float, ptr %31, i64 %124
  %126 = load float, ptr %125, align 4, !tbaa !13
  %127 = fpext float %126 to double
  %128 = or disjoint i64 %79, 11
  %129 = getelementptr inbounds float, ptr %31, i64 %128
  %130 = load float, ptr %129, align 4, !tbaa !13
  %131 = fpext float %130 to double
  %132 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef %127, double noundef %131)
  %133 = or disjoint i64 %79, 12
  %134 = getelementptr inbounds float, ptr %31, i64 %133
  %135 = load float, ptr %134, align 4, !tbaa !13
  %136 = fpext float %135 to double
  %137 = or disjoint i64 %79, 13
  %138 = getelementptr inbounds float, ptr %31, i64 %137
  %139 = load float, ptr %138, align 4, !tbaa !13
  %140 = fpext float %139 to double
  %141 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef %136, double noundef %140)
  %142 = or disjoint i64 %79, 14
  %143 = getelementptr inbounds float, ptr %31, i64 %142
  %144 = load float, ptr %143, align 4, !tbaa !13
  %145 = fpext float %144 to double
  %146 = or disjoint i64 %79, 15
  %147 = getelementptr inbounds float, ptr %31, i64 %146
  %148 = load float, ptr %147, align 4, !tbaa !13
  %149 = fpext float %148 to double
  %150 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef %145, double noundef %149)
  %151 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  %152 = add nuw nsw i64 %.142, 1
  %exitcond44.not = icmp eq i64 %152, 8
  br i1 %exitcond44.not, label %153, label %.preheader, !llvm.loop !17

153:                                              ; preds = %.preheader
  %154 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  %155 = load ptr, ptr %6, align 8, !tbaa !5
  %156 = call i32 @clReleaseMemObject(ptr noundef %155) #7
  call void @free(ptr noundef nonnull %31) #7
  %157 = call i32 @clfftDestroyPlan(ptr noundef nonnull %9) #7
  store i32 %157, ptr %1, align 4, !tbaa !11
  %158 = call i32 (...) @clfftTeardown() #7
  %159 = load ptr, ptr %5, align 8, !tbaa !5
  %160 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7, ptr noundef %159)
  %161 = load ptr, ptr %5, align 8, !tbaa !5
  %162 = call i32 @clReleaseCommandQueue(ptr noundef %161) #7
  %163 = call i32 @clReleaseContext(ptr noundef %25) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #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}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}


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