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

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

55:                                               ; preds = %60, %0
  %56 = load i32, ptr %20, align 4, !tbaa !9
  %57 = sext i32 %56 to i64
  %58 = load i64, ptr %12, align 8, !tbaa !11
  %59 = icmp ult i64 %57, %58
  br i1 %59, label %60, label %86

60:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  %61 = load i32, ptr %20, align 4, !tbaa !9
  %62 = sitofp i32 %61 to float
  store float %62, ptr %21, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  %63 = load i32, ptr %20, align 4, !tbaa !9
  %64 = sitofp i32 %63 to float
  %65 = fmul float %64, 3.000000e+00
  store float %65, ptr %22, align 4, !tbaa !13
  %66 = load float, ptr %21, align 4, !tbaa !13
  %67 = load ptr, ptr %9, align 8, !tbaa !5
  %68 = load i32, ptr %20, align 4, !tbaa !9
  %69 = mul nsw i32 2, %68
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds float, ptr %67, i64 %70
  store float %66, ptr %71, align 4, !tbaa !13
  %72 = load float, ptr %22, align 4, !tbaa !13
  %73 = load ptr, ptr %9, align 8, !tbaa !5
  %74 = load i32, ptr %20, align 4, !tbaa !9
  %75 = mul nsw i32 2, %74
  %76 = add nsw i32 %75, 1
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds float, ptr %73, i64 %77
  store float %72, ptr %78, align 4, !tbaa !13
  %79 = load float, ptr %21, align 4, !tbaa !13
  %80 = fpext float %79 to double
  %81 = load float, ptr %22, align 4, !tbaa !13
  %82 = fpext float %81 to double
  %83 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, double noundef %80, double noundef %82)
  %84 = load i32, ptr %20, align 4, !tbaa !9
  %85 = add nsw i32 %84, 1
  store i32 %85, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  br label %55, !llvm.loop !15

86:                                               ; preds = %55
  %87 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  %88 = load ptr, ptr %6, align 8, !tbaa !5
  %89 = load i64, ptr %12, align 8, !tbaa !11
  %90 = mul i64 %89, 2
  %91 = mul i64 %90, 4
  %92 = call ptr @clCreateBuffer(ptr noundef %88, i64 noundef 1, i64 noundef %91, ptr noundef null, ptr noundef %2)
  store ptr %92, ptr %8, align 8, !tbaa !5
  %93 = load ptr, ptr %7, align 8, !tbaa !5
  %94 = load ptr, ptr %8, align 8, !tbaa !5
  %95 = load i64, ptr %12, align 8, !tbaa !11
  %96 = mul i64 %95, 2
  %97 = mul i64 %96, 4
  %98 = load ptr, ptr %9, align 8, !tbaa !5
  %99 = call i32 @clEnqueueWriteBuffer(ptr noundef %93, ptr noundef %94, 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 %16, align 4, !tbaa !9
  %102 = getelementptr inbounds [1 x i64], ptr %17, i64 0, i64 0
  %103 = call i32 @clfftCreateDefaultPlan(ptr noundef %15, ptr noundef %100, i32 noundef %101, ptr noundef %102)
  store i32 %103, ptr %2, align 4, !tbaa !9
  %104 = load i64, ptr %15, 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 %15, 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 %15, 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 %15, 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 %15, 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 %12, align 8, !tbaa !11
  %119 = mul i64 %118, 2
  %120 = mul i64 %119, 4
  %121 = load ptr, ptr %9, align 8, !tbaa !5
  %122 = call i32 @clEnqueueReadBuffer(ptr noundef %116, ptr noundef %117, i32 noundef 1, i64 noundef 0, i64 noundef %120, ptr noundef %121, i32 noundef 0, ptr noundef null, ptr noundef null)
  store i32 %122, ptr %2, align 4, !tbaa !9
  store i32 0, ptr %20, align 4, !tbaa !9
  br label %123

123:                                              ; preds = %128, %86
  %124 = load i32, ptr %20, align 4, !tbaa !9
  %125 = sext i32 %124 to i64
  %126 = load i64, ptr %12, align 8, !tbaa !11
  %127 = icmp ult i64 %125, %126
  br i1 %127, label %128, label %147

128:                                              ; preds = %123
  %129 = load ptr, ptr %9, align 8, !tbaa !5
  %130 = load i32, ptr %20, align 4, !tbaa !9
  %131 = mul nsw i32 2, %130
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds float, ptr %129, i64 %132
  %134 = load float, ptr %133, align 4, !tbaa !13
  %135 = fpext float %134 to double
  %136 = load ptr, ptr %9, align 8, !tbaa !5
  %137 = load i32, ptr %20, align 4, !tbaa !9
  %138 = mul nsw i32 2, %137
  %139 = add nsw i32 %138, 1
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds float, ptr %136, i64 %140
  %142 = load float, ptr %141, align 4, !tbaa !13
  %143 = fpext float %142 to double
  %144 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, double noundef %135, double noundef %143)
  %145 = load i32, ptr %20, align 4, !tbaa !9
  %146 = add nsw i32 %145, 1
  store i32 %146, ptr %20, align 4, !tbaa !9
  br label %123, !llvm.loop !17

147:                                              ; preds = %123
  %148 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  %149 = load ptr, ptr %8, align 8, !tbaa !5
  %150 = call i32 @clReleaseMemObject(ptr noundef %149)
  %151 = load ptr, ptr %9, align 8, !tbaa !5
  call void @free(ptr noundef %151) #6
  %152 = call i32 @clfftDestroyPlan(ptr noundef %15)
  store i32 %152, ptr %2, align 4, !tbaa !9
  %153 = call i32 (...) @clfftTeardown()
  %154 = load ptr, ptr %7, align 8, !tbaa !5
  %155 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, ptr noundef %154)
  %156 = load ptr, ptr %7, align 8, !tbaa !5
  %157 = call i32 @clReleaseCommandQueue(ptr noundef %156)
  %158 = load ptr, ptr %6, align 8, !tbaa !5
  %159 = call i32 @clReleaseContext(ptr noundef %158)
  %160 = load i32, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 128, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 128, 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 %160
}

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


; 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
@.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 [61 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [2 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 [1 x i64], align 8
  %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 8, ptr nonnull %10) #7
  store i64 16, ptr %10, align 8, !tbaa !9
  %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(128) ptr @malloc(i64 noundef 128) #8
  %32 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i64 noundef 16)
  %33 = getelementptr inbounds i8, ptr %31, i64 4
  store <2 x float> zeroinitializer, ptr %31, align 4, !tbaa !13
  %34 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef 0.000000e+00, double noundef 0.000000e+00)
  %35 = getelementptr inbounds i8, ptr %31, i64 8
  %36 = getelementptr inbounds i8, ptr %31, i64 12
  store <2 x float> <float 1.000000e+00, float 3.000000e+00>, ptr %35, align 4, !tbaa !13
  %37 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef 1.000000e+00, double noundef 3.000000e+00)
  %38 = getelementptr inbounds i8, ptr %31, i64 16
  %39 = getelementptr inbounds i8, ptr %31, i64 20
  store <2 x float> <float 2.000000e+00, float 6.000000e+00>, ptr %38, align 4, !tbaa !13
  %40 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef 2.000000e+00, double noundef 6.000000e+00)
  %41 = getelementptr inbounds i8, ptr %31, i64 24
  %42 = getelementptr inbounds i8, ptr %31, i64 28
  store <2 x float> <float 3.000000e+00, float 9.000000e+00>, ptr %41, align 4, !tbaa !13
  %43 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef 3.000000e+00, double noundef 9.000000e+00)
  %44 = getelementptr inbounds i8, ptr %31, i64 32
  %45 = getelementptr inbounds i8, ptr %31, i64 36
  store <2 x float> <float 4.000000e+00, float 1.200000e+01>, ptr %44, align 4, !tbaa !13
  %46 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef 4.000000e+00, double noundef 1.200000e+01)
  %47 = getelementptr inbounds i8, ptr %31, i64 40
  %48 = getelementptr inbounds i8, ptr %31, i64 44
  store <2 x float> <float 5.000000e+00, float 1.500000e+01>, ptr %47, align 4, !tbaa !13
  %49 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef 5.000000e+00, double noundef 1.500000e+01)
  %50 = getelementptr inbounds i8, ptr %31, i64 48
  %51 = getelementptr inbounds i8, ptr %31, i64 52
  store <2 x float> <float 6.000000e+00, float 1.800000e+01>, ptr %50, align 4, !tbaa !13
  %52 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef 6.000000e+00, double noundef 1.800000e+01)
  %53 = getelementptr inbounds i8, ptr %31, i64 56
  %54 = getelementptr inbounds i8, ptr %31, i64 60
  store <2 x float> <float 7.000000e+00, float 2.100000e+01>, ptr %53, align 4, !tbaa !13
  %55 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef 7.000000e+00, double noundef 2.100000e+01)
  %56 = getelementptr inbounds i8, ptr %31, i64 64
  %57 = getelementptr inbounds i8, ptr %31, i64 68
  store <2 x float> <float 8.000000e+00, float 2.400000e+01>, ptr %56, align 4, !tbaa !13
  %58 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef 8.000000e+00, double noundef 2.400000e+01)
  %59 = getelementptr inbounds i8, ptr %31, i64 72
  %60 = getelementptr inbounds i8, ptr %31, i64 76
  store <2 x float> <float 9.000000e+00, float 2.700000e+01>, ptr %59, align 4, !tbaa !13
  %61 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef 9.000000e+00, double noundef 2.700000e+01)
  %62 = getelementptr inbounds i8, ptr %31, i64 80
  %63 = getelementptr inbounds i8, ptr %31, i64 84
  store <2 x float> <float 1.000000e+01, float 3.000000e+01>, ptr %62, align 4, !tbaa !13
  %64 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef 1.000000e+01, double noundef 3.000000e+01)
  %65 = getelementptr inbounds i8, ptr %31, i64 88
  %66 = getelementptr inbounds i8, ptr %31, i64 92
  store <2 x float> <float 1.100000e+01, float 3.300000e+01>, ptr %65, align 4, !tbaa !13
  %67 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef 1.100000e+01, double noundef 3.300000e+01)
  %68 = getelementptr inbounds i8, ptr %31, i64 96
  %69 = getelementptr inbounds i8, ptr %31, i64 100
  store <2 x float> <float 1.200000e+01, float 3.600000e+01>, ptr %68, align 4, !tbaa !13
  %70 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef 1.200000e+01, double noundef 3.600000e+01)
  %71 = getelementptr inbounds i8, ptr %31, i64 104
  %72 = getelementptr inbounds i8, ptr %31, i64 108
  store <2 x float> <float 1.300000e+01, float 3.900000e+01>, ptr %71, align 4, !tbaa !13
  %73 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef 1.300000e+01, double noundef 3.900000e+01)
  %74 = getelementptr inbounds i8, ptr %31, i64 112
  %75 = getelementptr inbounds i8, ptr %31, i64 116
  store <2 x float> <float 1.400000e+01, float 4.200000e+01>, ptr %74, align 4, !tbaa !13
  %76 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef 1.400000e+01, double noundef 4.200000e+01)
  %77 = getelementptr inbounds i8, ptr %31, i64 120
  %78 = getelementptr inbounds i8, ptr %31, i64 124
  store <2 x float> <float 1.500000e+01, float 4.500000e+01>, ptr %77, align 4, !tbaa !13
  %79 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef 1.500000e+01, double noundef 4.500000e+01)
  %80 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  %81 = call ptr @clCreateBuffer(ptr noundef %25, i64 noundef 1, i64 noundef 128, ptr noundef null, ptr noundef nonnull %1) #7
  store ptr %81, ptr %6, align 8, !tbaa !5
  %82 = call i32 @clEnqueueWriteBuffer(ptr noundef %27, ptr noundef %81, i32 noundef 1, i64 noundef 0, i64 noundef 128, ptr noundef nonnull %31, i32 noundef 0, ptr noundef null, ptr noundef null) #7
  store i32 %82, ptr %1, align 4, !tbaa !11
  %83 = call i32 @clfftCreateDefaultPlan(ptr noundef nonnull %9, ptr noundef %25, i32 noundef 1, ptr noundef nonnull %10) #7
  store i32 %83, ptr %1, align 4, !tbaa !11
  %84 = load i64, ptr %9, align 8, !tbaa !9
  %85 = call i32 @clfftSetPlanPrecision(i64 noundef %84, i32 noundef 1) #7
  store i32 %85, ptr %1, align 4, !tbaa !11
  %86 = load i64, ptr %9, align 8, !tbaa !9
  %87 = call i32 @clfftSetLayout(i64 noundef %86, i32 noundef 1, i32 noundef 1) #7
  store i32 %87, ptr %1, align 4, !tbaa !11
  %88 = load i64, ptr %9, align 8, !tbaa !9
  %89 = call i32 @clfftSetResultLocation(i64 noundef %88, i32 noundef 1) #7
  store i32 %89, ptr %1, align 4, !tbaa !11
  %90 = load i64, ptr %9, align 8, !tbaa !9
  %91 = call i32 @clfftBakePlan(i64 noundef %90, i32 noundef 1, ptr noundef nonnull %5, ptr noundef null, ptr noundef null) #7
  store i32 %91, ptr %1, align 4, !tbaa !11
  %92 = load i64, ptr %9, align 8, !tbaa !9
  %93 = call i32 @clfftEnqueueTransform(i64 noundef %92, 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 %93, ptr %1, align 4, !tbaa !11
  %94 = load ptr, ptr %5, align 8, !tbaa !5
  %95 = call i32 @clFinish(ptr noundef %94) #7
  store i32 %95, ptr %1, align 4, !tbaa !11
  %96 = load ptr, ptr %5, align 8, !tbaa !5
  %97 = load ptr, ptr %6, align 8, !tbaa !5
  %98 = call i32 @clEnqueueReadBuffer(ptr noundef %96, ptr noundef %97, i32 noundef 1, i64 noundef 0, i64 noundef 128, ptr noundef nonnull %31, i32 noundef 0, ptr noundef null, ptr noundef null) #7
  store i32 %98, ptr %1, align 4, !tbaa !11
  %99 = load float, ptr %31, align 4, !tbaa !13
  %100 = fpext float %99 to double
  %101 = load float, ptr %33, align 4, !tbaa !13
  %102 = fpext float %101 to double
  %103 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef %100, double noundef %102)
  %104 = load float, ptr %35, align 4, !tbaa !13
  %105 = fpext float %104 to double
  %106 = load float, ptr %36, align 4, !tbaa !13
  %107 = fpext float %106 to double
  %108 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef %105, double noundef %107)
  %109 = load float, ptr %38, align 4, !tbaa !13
  %110 = fpext float %109 to double
  %111 = load float, ptr %39, align 4, !tbaa !13
  %112 = fpext float %111 to double
  %113 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef %110, double noundef %112)
  %114 = load float, ptr %41, align 4, !tbaa !13
  %115 = fpext float %114 to double
  %116 = load float, ptr %42, align 4, !tbaa !13
  %117 = fpext float %116 to double
  %118 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef %115, double noundef %117)
  %119 = load float, ptr %44, align 4, !tbaa !13
  %120 = fpext float %119 to double
  %121 = load float, ptr %45, align 4, !tbaa !13
  %122 = fpext float %121 to double
  %123 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef %120, double noundef %122)
  %124 = load float, ptr %47, align 4, !tbaa !13
  %125 = fpext float %124 to double
  %126 = load float, ptr %48, align 4, !tbaa !13
  %127 = fpext float %126 to double
  %128 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef %125, double noundef %127)
  %129 = load float, ptr %50, align 4, !tbaa !13
  %130 = fpext float %129 to double
  %131 = load float, ptr %51, align 4, !tbaa !13
  %132 = fpext float %131 to double
  %133 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef %130, double noundef %132)
  %134 = load float, ptr %53, align 4, !tbaa !13
  %135 = fpext float %134 to double
  %136 = load float, ptr %54, align 4, !tbaa !13
  %137 = fpext float %136 to double
  %138 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef %135, double noundef %137)
  %139 = load float, ptr %56, align 4, !tbaa !13
  %140 = fpext float %139 to double
  %141 = load float, ptr %57, align 4, !tbaa !13
  %142 = fpext float %141 to double
  %143 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef %140, double noundef %142)
  %144 = load float, ptr %59, align 4, !tbaa !13
  %145 = fpext float %144 to double
  %146 = load float, ptr %60, align 4, !tbaa !13
  %147 = fpext float %146 to double
  %148 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef %145, double noundef %147)
  %149 = load float, ptr %62, align 4, !tbaa !13
  %150 = fpext float %149 to double
  %151 = load float, ptr %63, align 4, !tbaa !13
  %152 = fpext float %151 to double
  %153 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef %150, double noundef %152)
  %154 = load float, ptr %65, align 4, !tbaa !13
  %155 = fpext float %154 to double
  %156 = load float, ptr %66, align 4, !tbaa !13
  %157 = fpext float %156 to double
  %158 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef %155, double noundef %157)
  %159 = load float, ptr %68, align 4, !tbaa !13
  %160 = fpext float %159 to double
  %161 = load float, ptr %69, align 4, !tbaa !13
  %162 = fpext float %161 to double
  %163 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef %160, double noundef %162)
  %164 = load float, ptr %71, align 4, !tbaa !13
  %165 = fpext float %164 to double
  %166 = load float, ptr %72, align 4, !tbaa !13
  %167 = fpext float %166 to double
  %168 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef %165, double noundef %167)
  %169 = load float, ptr %74, align 4, !tbaa !13
  %170 = fpext float %169 to double
  %171 = load float, ptr %75, align 4, !tbaa !13
  %172 = fpext float %171 to double
  %173 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef %170, double noundef %172)
  %174 = load float, ptr %77, align 4, !tbaa !13
  %175 = fpext float %174 to double
  %176 = load float, ptr %78, align 4, !tbaa !13
  %177 = fpext float %176 to double
  %178 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef %175, double noundef %177)
  %179 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6)
  %180 = load ptr, ptr %6, align 8, !tbaa !5
  %181 = call i32 @clReleaseMemObject(ptr noundef %180) #7
  call void @free(ptr noundef %31) #7
  %182 = call i32 @clfftDestroyPlan(ptr noundef nonnull %9) #7
  store i32 %182, ptr %1, align 4, !tbaa !11
  %183 = call i32 (...) @clfftTeardown() #7
  %184 = load ptr, ptr %5, align 8, !tbaa !5
  %185 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7, ptr noundef %184)
  %186 = load ptr, ptr %5, align 8, !tbaa !5
  %187 = call i32 @clReleaseCommandQueue(ptr noundef %186) #7
  %188 = 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 8, 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}


; Effective O3 passes: DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass