; LLVM IR from kazulagi/plantFEM :: src/OpenCLClass (cOpenCLClass)

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

@.str = external hidden unnamed_addr constant [2 x i8], align 1
@stderr = external global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [19 x i8], align 1
@__const.opencl_add_kernel.fileName = external hidden unnamed_addr constant [13 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [41 x i8], align 1

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

; 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) #1

declare noalias ptr @fopen(ptr noundef, ptr noundef) #2

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

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #4

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

declare i64 @fread(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #2

declare i32 @fclose(ptr noundef) #2

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

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

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

declare ptr @clCreateCommandQueueWithProperties(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

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

declare ptr @clCreateProgramWithSource(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #2

declare i32 @clBuildProgram(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

declare ptr @clCreateKernel(ptr noundef, ptr noundef, ptr noundef) #2

declare i32 @clSetKernelArg(ptr noundef, i32 noundef, i64 noundef, ptr noundef) #2

declare i32 @clEnqueueNDRangeKernel(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) #2

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

declare i32 @clFlush(ptr noundef) #2

declare i32 @clFinish(ptr noundef) #2

declare i32 @clReleaseKernel(ptr noundef) #2

declare i32 @clReleaseProgram(ptr noundef) #2

declare i32 @clReleaseMemObject(ptr noundef) #2

declare i32 @clReleaseCommandQueue(ptr noundef) #2

declare i32 @clReleaseContext(ptr noundef) #2

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

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

; Function Attrs: nounwind uwtable
define dso_local double @opencl_add_kernel(double noundef %0, double noundef %1, i32 noundef %2) #6 {
  %4 = alloca double, align 8
  %5 = alloca double, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca ptr, align 8
  %26 = alloca ptr, align 8
  %27 = alloca [128 x i8], align 16
  %28 = alloca double, align 8
  %29 = alloca ptr, align 8
  %30 = alloca [13 x i8], align 1
  %31 = alloca ptr, align 8
  %32 = alloca i64, align 8
  %33 = alloca i64, align 8
  %34 = alloca [2048 x i8], align 16
  %35 = alloca [1 x i64], align 8
  %36 = alloca [1 x i64], align 8
  store double %0, ptr %4, align 8, !tbaa !5
  store double %1, ptr %5, align 8, !tbaa !5
  store i32 %2, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  store ptr null, ptr %7, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  store ptr null, ptr %8, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  store ptr null, ptr %9, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  store ptr null, ptr %10, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  store ptr null, ptr %11, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  store ptr null, ptr %12, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  store ptr null, ptr %13, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  store ptr null, ptr %14, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  store ptr null, ptr %15, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #7
  %37 = load double, ptr %4, align 8, !tbaa !5
  store double %37, ptr %19, align 8, !tbaa !5
  %38 = load double, ptr %5, align 8, !tbaa !5
  store double %38, ptr %20, align 8, !tbaa !5
  store ptr %19, ptr %22, align 8, !tbaa !11
  store ptr %20, ptr %23, align 8, !tbaa !11
  store ptr %21, ptr %24, align 8, !tbaa !11
  %39 = load double, ptr %4, align 8, !tbaa !5
  %40 = load double, ptr %5, align 8, !tbaa !5
  %41 = load double, ptr %21, align 8, !tbaa !5
  %42 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, double noundef %39, double noundef %40, double noundef %41)
  call void @llvm.lifetime.start.p0(i64 128, ptr %27) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #7
  call void @llvm.lifetime.start.p0(i64 13, ptr %30) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %30, ptr align 1 @__const.opencl_add_kernel.fileName, i64 13, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #7
  %43 = getelementptr inbounds [13 x i8], ptr %30, i64 0, i64 0
  %44 = call noalias ptr @fopen(ptr noundef %43, ptr noundef @.str)
  store ptr %44, ptr %29, align 8, !tbaa !11
  %45 = load ptr, ptr %29, align 8, !tbaa !11
  %46 = icmp ne ptr %45, null
  br i1 %46, label %50, label %47

47:                                               ; preds = %3
  %48 = load ptr, ptr @stderr, align 8, !tbaa !11
  %49 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %48, ptr noundef @.str.1) #7
  call void @exit(i32 noundef 1) #8
  unreachable

50:                                               ; preds = %3
  %51 = call noalias ptr @malloc(i64 noundef 1048576) #9
  store ptr %51, ptr %31, align 8, !tbaa !11
  %52 = load ptr, ptr %31, align 8, !tbaa !11
  %53 = load ptr, ptr %29, align 8, !tbaa !11
  %54 = call i64 @fread(ptr noundef %52, i64 noundef 1, i64 noundef 1048576, ptr noundef %53)
  store i64 %54, ptr %32, align 8, !tbaa !13
  %55 = load ptr, ptr %29, align 8, !tbaa !11
  %56 = call i32 @fclose(ptr noundef %55)
  %57 = call i32 @clGetPlatformIDs(i32 noundef 1, ptr noundef %15, ptr noundef %17)
  store i32 %57, ptr %18, align 4, !tbaa !9
  %58 = load ptr, ptr %15, align 8, !tbaa !11
  %59 = call i32 @clGetDeviceIDs(ptr noundef %58, i64 noundef 1, i32 noundef 1, ptr noundef %7, ptr noundef %16)
  store i32 %59, ptr %18, align 4, !tbaa !9
  %60 = call ptr @clCreateContext(ptr noundef null, i32 noundef 1, ptr noundef %7, ptr noundef null, ptr noundef null, ptr noundef %18)
  store ptr %60, ptr %8, align 8, !tbaa !11
  %61 = load i32, ptr %18, align 4, !tbaa !9
  %62 = icmp ne i32 %61, 0
  br i1 %62, label %63, label %66

63:                                               ; preds = %50
  %64 = load i32, ptr %18, align 4, !tbaa !9
  %65 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %64)
  call void @exit(i32 noundef 1) #8
  unreachable

66:                                               ; preds = %50
  %67 = load ptr, ptr %8, align 8, !tbaa !11
  %68 = load ptr, ptr %7, align 8, !tbaa !11
  %69 = call ptr @clCreateCommandQueueWithProperties(ptr noundef %67, ptr noundef %68, ptr noundef null, ptr noundef %18)
  store ptr %69, ptr %9, align 8, !tbaa !11
  %70 = load i32, ptr %18, align 4, !tbaa !9
  %71 = icmp ne i32 %70, 0
  br i1 %71, label %72, label %75

72:                                               ; preds = %66
  %73 = load i32, ptr %18, align 4, !tbaa !9
  %74 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %73)
  call void @exit(i32 noundef 1) #8
  unreachable

75:                                               ; preds = %66
  %76 = load ptr, ptr %8, align 8, !tbaa !11
  %77 = load ptr, ptr %22, align 8, !tbaa !11
  %78 = call ptr @clCreateBuffer(ptr noundef %76, i64 noundef 32, i64 noundef 8, ptr noundef %77, ptr noundef %18)
  store ptr %78, ptr %10, align 8, !tbaa !11
  %79 = load ptr, ptr %8, align 8, !tbaa !11
  %80 = load ptr, ptr %23, align 8, !tbaa !11
  %81 = call ptr @clCreateBuffer(ptr noundef %79, i64 noundef 32, i64 noundef 8, ptr noundef %80, ptr noundef %18)
  store ptr %81, ptr %11, align 8, !tbaa !11
  %82 = load ptr, ptr %8, align 8, !tbaa !11
  %83 = load ptr, ptr %24, align 8, !tbaa !11
  %84 = call ptr @clCreateBuffer(ptr noundef %82, i64 noundef 32, i64 noundef 8, ptr noundef %83, ptr noundef %18)
  store ptr %84, ptr %12, align 8, !tbaa !11
  %85 = load i32, ptr %18, align 4, !tbaa !9
  %86 = icmp ne i32 %85, 0
  br i1 %86, label %87, label %90

87:                                               ; preds = %75
  %88 = load i32, ptr %18, align 4, !tbaa !9
  %89 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %88)
  call void @exit(i32 noundef 1) #8
  unreachable

90:                                               ; preds = %75
  %91 = load ptr, ptr %8, align 8, !tbaa !11
  %92 = call ptr @clCreateProgramWithSource(ptr noundef %91, i32 noundef 1, ptr noundef %31, ptr noundef %32, ptr noundef %18)
  store ptr %92, ptr %13, align 8, !tbaa !11
  %93 = load i32, ptr %18, align 4, !tbaa !9
  %94 = icmp ne i32 %93, 0
  br i1 %94, label %95, label %98

95:                                               ; preds = %90
  %96 = load i32, ptr %18, align 4, !tbaa !9
  %97 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i32 noundef %96)
  call void @exit(i32 noundef 1) #8
  unreachable

98:                                               ; preds = %90
  %99 = load ptr, ptr %13, align 8, !tbaa !11
  %100 = call i32 @clBuildProgram(ptr noundef %99, i32 noundef 1, ptr noundef %7, ptr noundef null, ptr noundef null, ptr noundef null)
  store i32 %100, ptr %18, align 4, !tbaa !9
  %101 = load i32, ptr %18, align 4, !tbaa !9
  %102 = icmp ne i32 %101, 0
  br i1 %102, label %103, label %111

103:                                              ; preds = %98
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #7
  call void @llvm.lifetime.start.p0(i64 2048, ptr %34) #7
  %104 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
  %105 = load ptr, ptr %13, align 8, !tbaa !11
  %106 = load ptr, ptr %7, align 8, !tbaa !11
  %107 = getelementptr inbounds [2048 x i8], ptr %34, i64 0, i64 0
  %108 = call i32 @clGetProgramBuildInfo(ptr noundef %105, ptr noundef %106, i32 noundef 4483, i64 noundef 2048, ptr noundef %107, ptr noundef %33)
  %109 = getelementptr inbounds [2048 x i8], ptr %34, i64 0, i64 0
  %110 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, ptr noundef %109)
  call void @exit(i32 noundef 1) #8
  unreachable

111:                                              ; preds = %98
  %112 = load ptr, ptr %13, align 8, !tbaa !11
  %113 = call ptr @clCreateKernel(ptr noundef %112, ptr noundef @.str.10, ptr noundef %18)
  store ptr %113, ptr %14, align 8, !tbaa !11
  %114 = load i32, ptr %18, align 4, !tbaa !9
  %115 = icmp ne i32 %114, 0
  br i1 %115, label %116, label %119

116:                                              ; preds = %111
  %117 = load i32, ptr %18, align 4, !tbaa !9
  %118 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, i32 noundef %117)
  call void @exit(i32 noundef 1) #8
  unreachable

119:                                              ; preds = %111
  %120 = load ptr, ptr %14, align 8, !tbaa !11
  %121 = call i32 @clSetKernelArg(ptr noundef %120, i32 noundef 0, i64 noundef 8, ptr noundef %10)
  store i32 %121, ptr %18, align 4, !tbaa !9
  %122 = load ptr, ptr %14, align 8, !tbaa !11
  %123 = call i32 @clSetKernelArg(ptr noundef %122, i32 noundef 1, i64 noundef 8, ptr noundef %11)
  store i32 %123, ptr %18, align 4, !tbaa !9
  %124 = load ptr, ptr %14, align 8, !tbaa !11
  %125 = call i32 @clSetKernelArg(ptr noundef %124, i32 noundef 2, i64 noundef 8, ptr noundef %12)
  store i32 %125, ptr %18, align 4, !tbaa !9
  %126 = load i32, ptr %18, align 4, !tbaa !9
  %127 = icmp ne i32 %126, 0
  br i1 %127, label %128, label %131

128:                                              ; preds = %119
  %129 = load i32, ptr %18, align 4, !tbaa !9
  %130 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, i32 noundef %129)
  call void @exit(i32 noundef 1) #8
  unreachable

131:                                              ; preds = %119
  %132 = load ptr, ptr %22, align 8, !tbaa !11
  %133 = load double, ptr %132, align 8, !tbaa !5
  %134 = call i32 (ptr, ...) @printf(ptr noundef @.str.13, double noundef %133)
  %135 = load ptr, ptr %23, align 8, !tbaa !11
  %136 = load double, ptr %135, align 8, !tbaa !5
  %137 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, double noundef %136)
  %138 = load ptr, ptr %24, align 8, !tbaa !11
  %139 = load double, ptr %138, align 8, !tbaa !5
  %140 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, double noundef %139)
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #7
  %141 = load i32, ptr %6, align 4, !tbaa !9
  %142 = sext i32 %141 to i64
  store i64 %142, ptr %35, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #7
  %143 = load i32, ptr %6, align 4, !tbaa !9
  %144 = sext i32 %143 to i64
  store i64 %144, ptr %36, align 8, !tbaa !13
  %145 = load ptr, ptr %9, align 8, !tbaa !11
  %146 = load ptr, ptr %14, align 8, !tbaa !11
  %147 = getelementptr inbounds [1 x i64], ptr %35, i64 0, i64 0
  %148 = getelementptr inbounds [1 x i64], ptr %36, i64 0, i64 0
  %149 = call i32 @clEnqueueNDRangeKernel(ptr noundef %145, ptr noundef %146, i32 noundef 1, ptr noundef null, ptr noundef %147, ptr noundef %148, i32 noundef 0, ptr noundef null, ptr noundef null)
  store i32 %149, ptr %18, align 4, !tbaa !9
  %150 = load i32, ptr %18, align 4, !tbaa !9
  %151 = icmp ne i32 %150, 0
  br i1 %151, label %152, label %155

152:                                              ; preds = %131
  %153 = load i32, ptr %18, align 4, !tbaa !9
  %154 = call i32 (ptr, ...) @printf(ptr noundef @.str.16, i32 noundef %153)
  call void @exit(i32 noundef 1) #8
  unreachable

155:                                              ; preds = %131
  %156 = load ptr, ptr %9, align 8, !tbaa !11
  %157 = load ptr, ptr %12, align 8, !tbaa !11
  %158 = load ptr, ptr %24, align 8, !tbaa !11
  %159 = call i32 @clEnqueueReadBuffer(ptr noundef %156, ptr noundef %157, i32 noundef 1, i64 noundef 0, i64 noundef 8, ptr noundef %158, i32 noundef 0, ptr noundef null, ptr noundef null)
  store i32 %159, ptr %18, align 4, !tbaa !9
  %160 = load i32, ptr %18, align 4, !tbaa !9
  %161 = icmp ne i32 %160, 0
  br i1 %161, label %162, label %165

162:                                              ; preds = %155
  %163 = load i32, ptr %18, align 4, !tbaa !9
  %164 = call i32 (ptr, ...) @printf(ptr noundef @.str.17, i32 noundef %163)
  call void @exit(i32 noundef 1) #8
  unreachable

165:                                              ; preds = %155
  %166 = load ptr, ptr %22, align 8, !tbaa !11
  %167 = load double, ptr %166, align 8, !tbaa !5
  %168 = call i32 (ptr, ...) @printf(ptr noundef @.str.18, double noundef %167)
  %169 = load ptr, ptr %23, align 8, !tbaa !11
  %170 = load double, ptr %169, align 8, !tbaa !5
  %171 = call i32 (ptr, ...) @printf(ptr noundef @.str.19, double noundef %170)
  %172 = load ptr, ptr %24, align 8, !tbaa !11
  %173 = load double, ptr %172, align 8, !tbaa !5
  %174 = call i32 (ptr, ...) @printf(ptr noundef @.str.20, double noundef %173)
  %175 = load ptr, ptr %9, align 8, !tbaa !11
  %176 = call i32 @clFlush(ptr noundef %175)
  store i32 %176, ptr %18, align 4, !tbaa !9
  %177 = load ptr, ptr %9, align 8, !tbaa !11
  %178 = call i32 @clFinish(ptr noundef %177)
  store i32 %178, ptr %18, align 4, !tbaa !9
  %179 = load ptr, ptr %14, align 8, !tbaa !11
  %180 = call i32 @clReleaseKernel(ptr noundef %179)
  store i32 %180, ptr %18, align 4, !tbaa !9
  %181 = load ptr, ptr %13, align 8, !tbaa !11
  %182 = call i32 @clReleaseProgram(ptr noundef %181)
  store i32 %182, ptr %18, align 4, !tbaa !9
  %183 = load ptr, ptr %10, align 8, !tbaa !11
  %184 = call i32 @clReleaseMemObject(ptr noundef %183)
  store i32 %184, ptr %18, align 4, !tbaa !9
  %185 = load ptr, ptr %9, align 8, !tbaa !11
  %186 = call i32 @clReleaseCommandQueue(ptr noundef %185)
  store i32 %186, ptr %18, align 4, !tbaa !9
  %187 = load ptr, ptr %8, align 8, !tbaa !11
  %188 = call i32 @clReleaseContext(ptr noundef %187)
  store i32 %188, ptr %18, align 4, !tbaa !9
  %189 = load ptr, ptr %31, align 8, !tbaa !11
  call void @free(ptr noundef %189) #7
  %190 = load ptr, ptr %24, align 8, !tbaa !11
  %191 = load double, ptr %190, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 13, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 128, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  ret double %191
}

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

declare i32 @clGetProgramBuildInfo(ptr noundef, ptr noundef, i32 noundef, i64 noundef, ptr noundef, ptr noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { noreturn 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 = { 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 #6 = { 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 #7 = { nounwind }
attributes #8 = { noreturn nounwind }
attributes #9 = { 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 = !{!"double", !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 = !{!"any pointer", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !7, i64 0}


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

@.str = external hidden unnamed_addr constant [2 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [19 x i8], align 1
@__const.opencl_add_kernel.fileName = external hidden unnamed_addr constant [13 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [41 x i8], align 1

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

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #1

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

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #2

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

; Function Attrs: nofree nounwind
declare noundef i64 @fread(ptr nocapture noundef, i64 noundef, i64 noundef, ptr nocapture noundef) local_unnamed_addr #1

; Function Attrs: nofree nounwind
declare noundef i32 @fclose(ptr nocapture noundef) local_unnamed_addr #1

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

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

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

declare ptr @clCreateCommandQueueWithProperties(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

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

declare ptr @clCreateProgramWithSource(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

declare i32 @clBuildProgram(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

declare ptr @clCreateKernel(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

declare i32 @clSetKernelArg(ptr noundef, i32 noundef, i64 noundef, ptr noundef) local_unnamed_addr #4

declare i32 @clEnqueueNDRangeKernel(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

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

declare i32 @clFlush(ptr noundef) local_unnamed_addr #4

declare i32 @clFinish(ptr noundef) local_unnamed_addr #4

declare i32 @clReleaseKernel(ptr noundef) local_unnamed_addr #4

declare i32 @clReleaseProgram(ptr noundef) local_unnamed_addr #4

declare i32 @clReleaseMemObject(ptr noundef) local_unnamed_addr #4

declare i32 @clReleaseCommandQueue(ptr noundef) local_unnamed_addr #4

declare i32 @clReleaseContext(ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture 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) #0

; Function Attrs: nounwind uwtable
define dso_local double @opencl_add_kernel(double noundef %0, double noundef %1, i32 noundef %2) local_unnamed_addr #6 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca [2048 x i8], align 16
  %19 = alloca [1 x i64], align 8
  %20 = alloca [1 x i64], align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #7
  store ptr null, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  store ptr null, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  store ptr null, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  store ptr null, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  store ptr null, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #7
  store double %0, ptr %12, align 8, !tbaa !9
  store double %1, ptr %13, align 8, !tbaa !9
  %21 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, double noundef %0, double noundef %1, double noundef undef)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #7
  %22 = tail call noalias ptr @fopen(ptr noundef nonnull @__const.opencl_add_kernel.fileName, ptr noundef nonnull @.str)
  %.not = icmp eq ptr %22, null
  br i1 %.not, label %23, label %26

23:                                               ; preds = %3
  %24 = load ptr, ptr @stderr, align 8, !tbaa !5
  %25 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %24, ptr noundef nonnull @.str.1) #8
  tail call void @exit(i32 noundef 1) #9
  unreachable

26:                                               ; preds = %3
  %27 = tail call noalias dereferenceable_or_null(1048576) ptr @malloc(i64 noundef 1048576) #10
  store ptr %27, ptr %15, align 8, !tbaa !5
  %28 = tail call i64 @fread(ptr noundef %27, i64 noundef 1, i64 noundef 1048576, ptr noundef nonnull %22)
  store i64 %28, ptr %16, align 8, !tbaa !11
  %29 = tail call i32 @fclose(ptr noundef nonnull %22)
  %30 = call i32 @clGetPlatformIDs(i32 noundef 1, ptr noundef nonnull %8, ptr noundef nonnull %10) #7
  %31 = load ptr, ptr %8, align 8, !tbaa !5
  %32 = call i32 @clGetDeviceIDs(ptr noundef %31, i64 noundef 1, i32 noundef 1, ptr noundef nonnull %4, ptr noundef nonnull %9) #7
  store i32 %32, ptr %11, align 4, !tbaa !13
  %33 = call ptr @clCreateContext(ptr noundef null, i32 noundef 1, ptr noundef nonnull %4, ptr noundef null, ptr noundef null, ptr noundef nonnull %11) #7
  %34 = load i32, ptr %11, align 4, !tbaa !13
  %.not47 = icmp eq i32 %34, 0
  br i1 %.not47, label %37, label %35

35:                                               ; preds = %26
  %36 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef %34)
  call void @exit(i32 noundef 1) #9
  unreachable

37:                                               ; preds = %26
  %38 = load ptr, ptr %4, align 8, !tbaa !5
  %39 = call ptr @clCreateCommandQueueWithProperties(ptr noundef %33, ptr noundef %38, ptr noundef null, ptr noundef nonnull %11) #7
  %40 = load i32, ptr %11, align 4, !tbaa !13
  %.not48 = icmp eq i32 %40, 0
  br i1 %.not48, label %43, label %41

41:                                               ; preds = %37
  %42 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, i32 noundef %40)
  call void @exit(i32 noundef 1) #9
  unreachable

43:                                               ; preds = %37
  %44 = call ptr @clCreateBuffer(ptr noundef %33, i64 noundef 32, i64 noundef 8, ptr noundef nonnull %12, ptr noundef nonnull %11) #7
  store ptr %44, ptr %5, align 8, !tbaa !5
  %45 = call ptr @clCreateBuffer(ptr noundef %33, i64 noundef 32, i64 noundef 8, ptr noundef nonnull %13, ptr noundef nonnull %11) #7
  store ptr %45, ptr %6, align 8, !tbaa !5
  %46 = call ptr @clCreateBuffer(ptr noundef %33, i64 noundef 32, i64 noundef 8, ptr noundef nonnull %14, ptr noundef nonnull %11) #7
  store ptr %46, ptr %7, align 8, !tbaa !5
  %47 = load i32, ptr %11, align 4, !tbaa !13
  %.not49 = icmp eq i32 %47, 0
  br i1 %.not49, label %50, label %48

48:                                               ; preds = %43
  %49 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, i32 noundef %47)
  call void @exit(i32 noundef 1) #9
  unreachable

50:                                               ; preds = %43
  %51 = call ptr @clCreateProgramWithSource(ptr noundef %33, i32 noundef 1, ptr noundef nonnull %15, ptr noundef nonnull %16, ptr noundef nonnull %11) #7
  %52 = load i32, ptr %11, align 4, !tbaa !13
  %.not50 = icmp eq i32 %52, 0
  br i1 %.not50, label %55, label %53

53:                                               ; preds = %50
  %54 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7, i32 noundef %52)
  call void @exit(i32 noundef 1) #9
  unreachable

55:                                               ; preds = %50
  %56 = call i32 @clBuildProgram(ptr noundef %51, i32 noundef 1, ptr noundef nonnull %4, ptr noundef null, ptr noundef null, ptr noundef null) #7
  store i32 %56, ptr %11, align 4, !tbaa !13
  %.not51 = icmp eq i32 %56, 0
  br i1 %.not51, label %62, label %57

57:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #7
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %18) #7
  %58 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8)
  %59 = load ptr, ptr %4, align 8, !tbaa !5
  %60 = call i32 @clGetProgramBuildInfo(ptr noundef %51, ptr noundef %59, i32 noundef 4483, i64 noundef 2048, ptr noundef nonnull %18, ptr noundef nonnull %17) #7
  %61 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9, ptr noundef nonnull %18)
  call void @exit(i32 noundef 1) #9
  unreachable

62:                                               ; preds = %55
  %63 = call ptr @clCreateKernel(ptr noundef %51, ptr noundef nonnull @.str.10, ptr noundef nonnull %11) #7
  %64 = load i32, ptr %11, align 4, !tbaa !13
  %.not52 = icmp eq i32 %64, 0
  br i1 %.not52, label %67, label %65

65:                                               ; preds = %62
  %66 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11, i32 noundef %64)
  call void @exit(i32 noundef 1) #9
  unreachable

67:                                               ; preds = %62
  %68 = call i32 @clSetKernelArg(ptr noundef %63, i32 noundef 0, i64 noundef 8, ptr noundef nonnull %5) #7
  store i32 %68, ptr %11, align 4, !tbaa !13
  %69 = call i32 @clSetKernelArg(ptr noundef %63, i32 noundef 1, i64 noundef 8, ptr noundef nonnull %6) #7
  store i32 %69, ptr %11, align 4, !tbaa !13
  %70 = call i32 @clSetKernelArg(ptr noundef %63, i32 noundef 2, i64 noundef 8, ptr noundef nonnull %7) #7
  store i32 %70, ptr %11, align 4, !tbaa !13
  %.not53 = icmp eq i32 %70, 0
  br i1 %.not53, label %73, label %71

71:                                               ; preds = %67
  %72 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.12, i32 noundef %70)
  call void @exit(i32 noundef 1) #9
  unreachable

73:                                               ; preds = %67
  %74 = load double, ptr %12, align 8, !tbaa !9
  %75 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.13, double noundef %74)
  %76 = load double, ptr %13, align 8, !tbaa !9
  %77 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.14, double noundef %76)
  %78 = load double, ptr %14, align 8, !tbaa !9
  %79 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, double noundef %78)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #7
  %80 = sext i32 %2 to i64
  store i64 %80, ptr %19, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #7
  store i64 %80, ptr %20, align 8, !tbaa !11
  %81 = call i32 @clEnqueueNDRangeKernel(ptr noundef %39, ptr noundef %63, i32 noundef 1, ptr noundef null, ptr noundef nonnull %19, ptr noundef nonnull %20, i32 noundef 0, ptr noundef null, ptr noundef null) #7
  store i32 %81, ptr %11, align 4, !tbaa !13
  %.not54 = icmp eq i32 %81, 0
  br i1 %.not54, label %84, label %82

82:                                               ; preds = %73
  %83 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, i32 noundef %81)
  call void @exit(i32 noundef 1) #9
  unreachable

84:                                               ; preds = %73
  %85 = load ptr, ptr %7, align 8, !tbaa !5
  %86 = call i32 @clEnqueueReadBuffer(ptr noundef %39, ptr noundef %85, i32 noundef 1, i64 noundef 0, i64 noundef 8, ptr noundef nonnull %14, i32 noundef 0, ptr noundef null, ptr noundef null) #7
  store i32 %86, ptr %11, align 4, !tbaa !13
  %.not55 = icmp eq i32 %86, 0
  br i1 %.not55, label %89, label %87

87:                                               ; preds = %84
  %88 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.17, i32 noundef %86)
  call void @exit(i32 noundef 1) #9
  unreachable

89:                                               ; preds = %84
  %90 = load double, ptr %12, align 8, !tbaa !9
  %91 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.18, double noundef %90)
  %92 = load double, ptr %13, align 8, !tbaa !9
  %93 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.19, double noundef %92)
  %94 = load double, ptr %14, align 8, !tbaa !9
  %95 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.20, double noundef %94)
  %96 = call i32 @clFlush(ptr noundef %39) #7
  store i32 %96, ptr %11, align 4, !tbaa !13
  %97 = call i32 @clFinish(ptr noundef %39) #7
  store i32 %97, ptr %11, align 4, !tbaa !13
  %98 = call i32 @clReleaseKernel(ptr noundef %63) #7
  store i32 %98, ptr %11, align 4, !tbaa !13
  %99 = call i32 @clReleaseProgram(ptr noundef %51) #7
  store i32 %99, ptr %11, align 4, !tbaa !13
  %100 = load ptr, ptr %5, align 8, !tbaa !5
  %101 = call i32 @clReleaseMemObject(ptr noundef %100) #7
  store i32 %101, ptr %11, align 4, !tbaa !13
  %102 = call i32 @clReleaseCommandQueue(ptr noundef %39) #7
  store i32 %102, ptr %11, align 4, !tbaa !13
  %103 = call i32 @clReleaseContext(ptr noundef %33) #7
  store i32 %103, ptr %11, align 4, !tbaa !13
  %104 = load ptr, ptr %15, align 8, !tbaa !5
  call void @free(ptr noundef %104) #7
  %105 = load double, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 8, 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 8, ptr nonnull %4) #7
  ret double %105
}

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

declare i32 @clGetProgramBuildInfo(ptr noundef, ptr noundef, i32 noundef, i64 noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { "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 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 #6 = { 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 #7 = { nounwind }
attributes #8 = { cold nounwind }
attributes #9 = { noreturn nounwind }
attributes #10 = { 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 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}


; Effective O3 passes: DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,TailCallElimPass